I have downloaded the Chrome Driver and i am able to execute my tests on Chrome. However Only local connections are allowed for it.
How can i execute it globally on any machine without changing anything?
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.Sign up to join this community
In order to run Webdriver commands on a remote machine, Selenium Server must be installed on that machine. What I usually do to enable IE and Chrome support is place the IE and Chrome drivers right alongside Selenium Server. I can then create a batch script with the complete command, something like:
java -jar selenium-server-standalone-2.44.0.jar -timeout=20 -browserTimeout=60 -Dwebdriver.ie.driver=C:\selenium\IEDriverServer_32.exe -Dwebdriver.chrome.driver=C:\selenium\Chromedriver.exe
That starts the server with the extra drivers and some custom settings. That way it's easy to start Selenium properly, either on startup or on demand depending on my use case for that machine.
Create one folder Util in your test project and place the chrome drive in that. in your driver and set the system property with the relative path. Now wher ever you take your code your chrome driver will also get copied and driver setup will always read the system property from the relative path. This way it can be run from any machine.