Abstract: The invention relates to an electromagnetic gripper comprising an electromagnet (1) housed in an enclosure consisting mainly of a channel section (2), and a light source, the rays of which exit through an aperture (5) provided in one (2a) of the arms of said channel section, said electromagnetic gripper being characterized in that the aperture through which the light rays exit is blocked by a blade (7) made of translucent material and extending over the entirety or a portion of said flange (2a).