Replacing a membrane switch with a relay for automated testing

Could you leave the tested equipment intact and just use a servo to rig up an artificial 'finger' to press the membrane switch for you?