Setting up a Selenium IE node to start on boot can be a bit tricky. However, with right tools and configuration, it is definitely possible. Here is a step-by-step guide on how to do it:
1 Download the latest version of the Selenium standalone server jar file and the Internet Explorer driver from the official Selenium website.
2 Install the Internet Explorer driver on your Windows machine. You can do this by following the instructions provided on the official Selenium website.
3 Create a new Windows service using NSSM (Non-Sucking Service Manager). NSSM is a free and open-source utility that allows you to easily create Windows services from any executable.
4 Open a command prompt as an administrator and navigate to the directory where you have saved the NSSM executable.
5 Run the following command to create a new service:
nssm.exe install SeleniumNode "C:\Program Files (x86)\Java\jre1.8.0_261\bin\java.exe" "-jar C:\Selenium\selenium-server-standalone-3.141.59.jar -role node -hub http://localhost:4444/grid/register -browser browserName=InternetExplorer,maxInstances=5,platform=WINDOWS -Dwebdriver.ie.driver=C:\IEDriverServer.exe"
Replace the paths to the Java executable, Selenium standalone server jar file, and Internet Explorer driver with the actual paths on your machine.
6 Open the Services panel in Windows and locate the newly created SeleniumNode service. Start the service and verify that it is running correctly.
7 Now, you can run your Selenium IE tests on the node by specifying the browser capabilities in your test script. For example, in Java you can use the following code to create a new Internet Explorer driver instance:
DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();
capabilities.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION, true);
WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), capabilities);
With these steps, you should now have a Selenium IE node that starts on boot and is capable of running IE tests without additional intervention.
Here are some useful resources that you can refer to for more information and guidance: