How can we start a selenium grid hub on a remote machine programmatically?
As of now, i know the following ways of doing it but i have some questions on those.
Approach 1: Execute a batch file on remote machine with required command (java -jar selenium-server-standalone-2.14.0.jar -role hub) to start the hub. (using PSExec to execute command on remote machine)
No questions and issues with above approach. But looking for an API way of doing this.
Approach 2: This approach (I didn't try this way since these are JAVA APIs and i have very little knowledge in JAVA).
Q1: Can we use the above approach to start the hub on a remote machine?
Q2: Does selenium server jar file is required in this approach?
Can we use these APIs in our program (some how making a POST or GET http request with required configuration in JSON) to configure Hub on a remote machine and start it? (I know console way of using these APIs with selenium server jar file)