Engine painting while in the car?

The same people that make Brakekleen make a specific spray product to clean electrical components like your alternator