An electromagnetic relay comprising a case and a contact mechanism housed in the case, the electromagnetic relay comprising: a slide switch including: a cover mounted on one surface of the case; a slide lever housed in the cover and configured to be slidable in a sliding direction via an operation hole formed in a ceiling surface of the cover; and an elastic test button (90; 100; 110; 120) disposed in an actuation hole formed in said one surface of the case and housed in the cover, the elastic test button being actuated in a direction crossing said one surface of the case so as to be pressed into the case, in accordance with the sliding operation of the slide lever from a return position to an actuation position, the slide switch being configured to open and close a contact (31b, 32b, 33b) of the contact mechanism in conjunction with the actuation of the elastic test button (90; 100; 110; 120) according to the sliding operation of the slide lever, wherein the slide lever has a planar shaped main body to block the operation hole, a pressing projection protruding from the bottom surface of the main body at one end where an elastic locking claw extending from the main body in the sliding direction is formed, the slide switch further includes a locking mechanism having a pair of grooves (74, 75) formed in an inner surface of the cover to receive the elastic locking claw and to maintain the slide lever at said actuation position and said return position, and the elastic test button (90; 100; 110; 120) presses the slide lever to bring the slide lever into press contact with the ceiling surface of the cover by pressing the elastic locking claw when the slide lever is at said return position and by pressing the pressing projection when the slide lever is at said actuation position. a slide switch including: a cover mounted on one surface of the case; a slide lever housed in the cover and configured to be slidable in a sliding direction via an operation hole formed in a ceiling surface of the cover; and an elastic test button (90; 100; 110; 120) disposed in an actuation hole formed in said one surface of the case and housed in the cover, the elastic test button being actuated in a direction crossing said one surface of the case so as to be pressed into the case, in accordance with the sliding operation of the slide lever from a return position to an actuation position, a cover mounted on one surface of the case; a slide lever housed in the cover and configured to be slidable in a sliding direction via an operation hole formed in a ceiling surface of the cover; and an elastic test button (90; 100; 110; 120) disposed in an actuation hole formed in said one surface of the case and housed in the cover, the elastic test button being actuated in a direction crossing said one surface of the case so as to be pressed into the case, in accordance with the sliding operation of the slide lever from a return position to an actuation position, the slide switch being configured to open and close a contact (31b, 32b, 33b) of the contact mechanism in conjunction with the actuation of the elastic test button (90; 100; 110; 120) according to the sliding operation of the slide lever, wherein the slide lever has a planar shaped main body to block the operation hole, a pressing projection protruding from the bottom surface of the main body at one end where an elastic locking claw extending from the main body in the sliding direction is formed, the slide switch further includes a locking mechanism having a pair of grooves (74, 75) formed in an inner surface of the cover to receive the elastic locking claw and to maintain the slide lever at said actuation position and said return position, and the elastic test button (90; 100; 110; 120) presses the slide lever to bring the slide lever into press contact with the ceiling surface of the cover by pressing the elastic locking claw when the slide lever is at said return position and by pressing the pressing projection when the slide lever is at said actuation position.