The switch should be removed from the hole its placed in and the wire leads would be internally of door frame with wire connectors possibly the twist type.
Wiring for the ones stuck to screens were hidden behind the door frame on mine than wired down through the floor to below one to staire control and the other to a frame ground under the chassis, this ground location was always becoming corroded or dirty and needed to be checked yearly.
A small green wire out of controller was connected to a mounting screw for controller and the heavier green wire from controller went to a chassis frame connection that was permanently sealed to frame.
The smaller grounds were the ones that need to be checked periodically.
Your switch is probably OK its the grounds that are the problem.
is from the Tech Information link below
If you have the 42 style step that's in the same link.