Disconnect power to the switch by turning off the circuit breaker at the service panel. Unscrew the cover plate and test for power with a voltage tester.
Read more: http://www.familyhandyman.com/electrical/wiring-switches/how-to-install-dimmer-switches/view-all#ixzz3Qg2QTF3B