Reg: chrome binary path

1,867 views
Skip to first unread message

Baskar chinnakonda

unread,
May 31, 2017, 11:01:08 AM5/31/17
to Serenity BDD Users Group
Is there any way to set chrome binary path in Serenity?

eg: options.setbinarypath()

John Smart

unread,
May 31, 2017, 11:11:27 AM5/31/17
to Baskar chinnakonda, Serenity BDD Users Group
Yes, you can set the webdriver.chrome.binary property. But it is a really bad idea to hard-code this value anywhere in your build script (or worse still in your test code).

On 31 May 2017 at 16:01, Baskar chinnakonda <baskarch...@gmail.com> wrote:
Is there any way to set chrome binary path in Serenity?

eg: options.setbinarypath()

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-users+unsubscribe@googlegroups.com.
To post to this group, send email to thucydides-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
___________________________________________________
John Smart | Wakaleo Consulting  |  +44 7398 832273
Making smart teams collaborate better
http://johnfergusonsmart.com  |  john....@wakaleo.com
___________________________________________________

We love breaking down silos and helping smart teams collaborate better! Ask about our tailored on-site workshops in Agile Product Planning, BDD Requirements Discovery,  BDD, TDD and Clean Coding, and Advanced BDD Test Automation.

Need some help with Serenity BDD? Check out our Serenity BDD training and support packages here.
___________________________________________________

Baskar chinnakonda

unread,
May 31, 2017, 11:51:49 AM5/31/17
to Serenity BDD Users Group, baskarch...@gmail.com
Thanks John, this is just want to do a poc with chrome canary version.

 As mentioned, i set the binary in property file, but still it fails. - see below

webdriver.chrome.binary = "C:\\Users\\Administrator\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe"


Caused by: org.openqa.selenium.WebDriverException: unknown error: cannot find Chrome binary
  (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 6.3.9600 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 551 milliseconds
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: 'usmkeehlpta58', ip: '3.20.224.171', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_91'
Driver info: org.openqa.selenium.chrome.ChromeDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  



On Wednesday, 31 May 2017 15:11:27 UTC, John Smart wrote:
Yes, you can set the webdriver.chrome.binary property. But it is a really bad idea to hard-code this value anywhere in your build script (or worse still in your test code).
On 31 May 2017 at 16:01, Baskar chinnakonda <baskarch...@gmail.com> wrote:
Is there any way to set chrome binary path in Serenity?

eg: options.setbinarypath()

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send email to thucydid...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

John Smart

unread,
May 31, 2017, 11:54:10 AM5/31/17
to Baskar chinnakonda, Serenity BDD Users Group
It's not the chrome executable, it's the chromedriver binary, that you need to configure.

To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-users+unsubscribe@googlegroups.com.
To post to this group, send email to thucydides-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Bill.pm

unread,
Jul 15, 2017, 8:07:07 PM7/15/17
to Serenity BDD Users Group, baskarch...@gmail.com
It should be like this, it works on my test

webdriver.driver=chrome
webdriver.chrome.driver=d:\\download\\chromedriver.exe


Vào 22:54:10 UTC+7 Thứ Tư, ngày 31 tháng 5 năm 2017, John Smart đã viết:
Reply all
Reply to author
Forward
0 new messages