Accessing chromewebdriver exe from a remote machine

25 views
Skip to first unread message

Engr. Riaz Ahmed Memon

unread,
Feb 27, 2015, 1:08:55 AM2/27/15
to seleniu...@googlegroups.com
Hi All,

I am executing testSuite against multiple browsers. Currently I have configured it on my local system and executing testSuite from local system and webdriver paths are also available on my local system

System.setProperty("webdriver.chrome.driver", "/path/for/chromewebdriver/chromedrivrer");
System.setProperty("webdriver.ie.driver", "/path/for/iewebdriver/IEDriverServer.exe");


Now i am looking for something that my webdriver exe for Chrome & IE should be on a remote machine and i m executing testSuite from local machine.

Kindly do let me know if there is any possibility to do it?

Krishnan Mahadevan

unread,
Feb 27, 2015, 3:09:40 AM2/27/15
to Selenium Users
Just add the location of the IEDriverServer and ChromeDriver binaries in your PATH variable and that should do.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMQjZaZxcGDgU0HFCPgckp%2Bxd_iQiyhVdcg1VMZTfYC6JFKE_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Engr. Riaz Ahmed Memon

unread,
Feb 27, 2015, 4:07:17 AM2/27/15
to seleniu...@googlegroups.com
Krishnan,

I have created a project as 'TestUtility' and provided IEDriverServer and ChromeDriver binaries path in that once they are on local sytem as

System.setProperty("webdriver.
chrome.driver", "/path/for/chromewebdriver/chromedrivrer");
System.setProperty("webdriver.ie.driver", "/path/for/iewebdriver/IEDriverServer.exe");

Now i want to provide IEDriverServer and ChromeDriver binaries path as placed on remote machine then will make a jar and deploy at our repo server and use the it as dependency in testSuite to launch available browsers.

Provide me a sample code to access 
IEDriverServer and ChromeDriver binaries placed on remote machine once testSuite executes from local machine.

On Fri, Feb 27, 2015 at 1:09 PM, Krishnan Mahadevan <krishnan.ma...@gmail.com> wrote:
Boxbe This message is eligible for Automatic Cleanup! (krishnan.ma...@gmail.com) Add cleanup rule | More info

Just add the location of the IEDriverServer and ChromeDriver binaries in your PATH variable and that should do.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

On Fri, Feb 27, 2015 at 11:38 AM, Engr. Riaz Ahmed Memon <engineer...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMQjZaZxcGDgU0HFCPgckp%2Bxd_iQiyhVdcg1VMZTfYC6JFKE_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

Krishnan Mahadevan

unread,
Feb 27, 2015, 4:49:46 AM2/27/15
to Selenium Users
That is not going to be possible. You cannot make binaries available on your remote machine using your test code without getting a bit fancy about it.
I would instead just suggest that you please add the location of these binaries in the PATH environment variable and get done with it.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

David

unread,
Feb 27, 2015, 2:19:21 PM2/27/15
to seleniu...@googlegroups.com
Ahmed,

It would be helpful if you can describe your intended test setup. You want to execute tests from local machine (or some other machine for CI/build process), and the tests being executed connect to Chrome or IE on the remote machine?

If so, sounds like you should change your code to not use the local Chrome and IE driver instantiation, but instead use instance of RemoteWebDriver, specify Chrome/IE desired capabilities for the remote driver, and have the Selenium server JAR running on the remote machine to accept RemoteWebDriver requests. And for the path reference to Chrome and IE drivers, you would set them to be part of the environment path (on the remote machine, not your local machine) as Krishnan mentioned. Then when server JAR gets request to start Chrome/IE, it knows where to find the driver based on the environment path on the remote machine.

or am I mistaken and you have a different test setup you want?
Reply all
Reply to author
Forward
0 new messages