An electromagnet advances (steps) the wipers to the next position when fed with a pulse of DC. The magnet's armature (spring-loaded) operates a pawl that advances a ratchet. When the pawl reaches its full stroke, it blocks the ratchet so it and the wipers will not overshoot. When power to the coil disconnects, the spring retracts the pawl. Another pawl pivoted on the frame ensures that the wipers do not move backward; contact friction keeps them in place. Some uniselector designs step on application of the operate pulse; others step on its removal.
Reference:
https://en.wikipedia.org/wiki/Stepping_switch