For now Genymotion allows you to start a VM from the command line, by calling the "player" binary, and passing the VM name as a parameter.
You could write a shell script that:
- run:
<GENYMOTION PATH>/player --vm-name <VM NAME>
, - wait some seconds for the VM to boot:
sleep 10
, - then use adb to start your Application:
adb shell am start -n com.whatsapp/com.whatsapp.Main
Luckily, no need to simulate clicks for this.