# How to create a Selenium IE Node that starts on boot?

I've been hitting my head against the wall with this one for a while now.

On Linux Chrome and Firefox selenium nodes are fairly easy to setup and start automatically at boot time using docker or even just a plain init.d service.

I've even gotten them to run on windows at boot using various methods. However, none of these methods work with IE. That is, the standalone-selenium-server.jar starts correctly but IE cannot execute tests even though Chrome and Firefox can.

This issue seems to be related to the IEDriver being unable to send events to the browser. Unlike Chrome and Firefox which use javascript to emulate clicks the IEDriver sends events to Windows to emulate the user. It appears that when the application is started automatically and no one is logged in Windows drops these events rather than passing them along.

Has anyone had any luck starting a Windows Selenium Node at boot that is capable of running IE tests without additional intervention?

• What do yo mean "start on boot"? After you have logged in? or before? What is the exact use-case? Mar 16 '18 at 17:11
• When the machine starts (boot), i.e. before anyone has logged in. The use case is that my nodes are subject to update/reboot that is not under my control and I'd like the nodes to reconnect to the hub in a fully automated fashion. Mar 16 '18 at 17:17
• What format is the node software in? exe? jar? Mar 19 '18 at 17:22
• It's a jar file, the issue is not getting the jar to execute on startup but getting the selenium IEDriver to function correctly when the jar is started automatically. Without anyone logging in. Mar 19 '18 at 21:13

javaw -jar C:\Path\to\jarfile\selenium-node.jar
javaw -Xms1g -Xmx2g -jar C:\Path\to\jarfile\selenium-node.jar