[webdriver] problem when launching Chrome

1,693 views
Skip to first unread message

shen xieyin

unread,
Feb 15, 2012, 4:24:34 AM2/15/12
to webdriver

Getting Started

To get set up, first download the appropriate prebuilt server. Make sure the server can be located on your PATH or specify its location via the webdriver.chrome.driver system property. Finally, all you need to do is create a new ChromeDriver instance:


I just followed this step to create the environment variable "webdriver.chrome.driver" with value "%HOMEPATH%\Local Settings\Application Data\Google\Chrome\Application\chrome.exe", and I can call System.getEnv("webdriver.chrome.driver") to retrieve it, but it fails in the following step:


String exePath = System.getProperty(CHROME_DRIVER_EXE_PROPERTY, defaultPath) in ChromeDriverService.


message:

The path to the chromedriver executable must be set by the webdriver.chrome.driver system property; for more information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://code.google.com/p/chromium/downloads/list



Any idea?


Thanks,

-Shen

Krishnan Mahadevan

unread,
Feb 15, 2012, 4:37:09 AM2/15/12
to webd...@googlegroups.com
You need to point webdriver.chrome.driver to the path where "chromedriver.exe" exists and not "chrome.exe"

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"


--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.

niharika varshney

unread,
Feb 15, 2012, 4:38:01 AM2/15/12
to webd...@googlegroups.com
Assuming you are using eclipse for your coding, have you restarted it after setting up your env variables..I have noticed it doesn't pick those up at times..just a guess :)

Regards,
Niharika



On Wed, Feb 15, 2012 at 2:54 PM, shen xieyin <shenx...@gmail.com> wrote:

--

shen xieyin

unread,
Feb 15, 2012, 10:17:33 PM2/15/12
to webd...@googlegroups.com, krishnan.ma...@gmail.com
Where does " chromedriver.exe " locate? I searched in the disk but failed to find it.

-Shen

2012/2/15 Krishnan Mahadevan <krishnan.ma...@gmail.com>

Krishnan Mahadevan

unread,
Feb 15, 2012, 10:23:44 PM2/15/12
to shen xieyin, webd...@googlegroups.com
You would need to download it from the chromium site. The instructions are available in the twiki page for ChromeDriver

http://code.google.com/p/selenium/wiki/ChromeDriver


On Thursday, February 16, 2012, shen xieyin <shenx...@gmail.com> wrote:
> Where does " chromedriver.exe " locate? I searched in the disk but failed to find it.
> -Shen
>
> 2012/2/15 Krishnan Mahadevan <krishnan.ma...@gmail.com>
>
> You need to point webdriver.chrome.driver to the path where "chromedriver.exe" exists and not "chrome.exe"
> Thanks & Regards
> Krishnan Mahadevan
>
> "All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
>
>
> On Wed, Feb 15, 2012 at 2:54 PM, shen xieyin <shenx...@gmail.com> wrote:
>
> Getting Started
>
> To get set up, first download the appropriate prebuilt server. Make sure the server can be located on your PATH or specify its location via the webdriver.chrome.driver system property. Finally, all you need to do is create a new ChromeDriver instance:
>
> I just followed this step to create the environment variable "webdriver.chrome.driver" with value "%HOMEPATH%\Local Settings\Application Data\Google\Chrome\Application\chrome.exe", and I can call System.getEnv("webdriver.chrome.driver") to retrieve it, but it fails in the following step:
>
> String exePath = System.getProperty(CHROME_DRIVER_EXE_PROPERTY, defaultPath) in ChromeDriverService.
>
> message:
>
> The path to the chromedriver executable must be set by the webdriver.chrome.driver system property; for more information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://code.google.com/p/chromium/downloads/list
>
> Any idea?
>

--
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/
Reply all
Reply to author
Forward
0 new messages