chrome driver does not work

6,542 views
Skip to first unread message

Muhammed Salman

unread,
Aug 6, 2013, 5:52:28 AM8/6/13
to thucydid...@googlegroups.com
Hi,
I am new to Thucydides and am trying to make it work with chrome. But am getting following error

2129 [pool-1-thread-1] ERROR net.thucydides.core.webdriver.WebDriverFacade - FAILED TO CREATE NEW DRIVER INSTANCE class org.openqa.selenium.chrome.ChromeDriver: Could not instantiate class org.openqa.selenium.chrome.ChromeDriver
net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate class org.openqa.selenium.chrome.ChromeDriver

My thucydides.properties file looks something like : 

webdriver.driver = chrome
webdriver.chrome.driver = C:\\Development\\Tools\\chromedriver.exe
webdriver.base.url = http://google.com
 

Any hints on what could be missing, firefox seems to be working with something like

webdriver.driver = firefox
webdriver.firefox.profile = C:\\Users\\....
webdriver.base.url = http://google.com

John Smart

unread,
Aug 6, 2013, 6:33:32 AM8/6/13
to Muhammed Salman, thucydid...@googlegroups.com
Maybe try putting the chromedriver on the system path?


--
You received this message because you are subscribed to the Google Groups "Thucydides 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 an email to thucydid...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
___________________________________________________
John Smart | Wakaleo Consulting  |  +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com  |  john....@wakaleo.com

Muhammed Salman

unread,
Aug 6, 2013, 6:40:27 AM8/6/13
to thucydid...@googlegroups.com, Muhammed Salman
Bingo, thanks. Worked !

80Vikram

unread,
Jan 21, 2014, 11:29:34 AM1/21/14
to thucydid...@googlegroups.com, Muhammed Salman
http://damien.co/resources/how-to-install-chromedriver-mac-os-x-selenium-python-7406

easiest way to do , just for new people with same issue.

Regards,
Vikram

tellet

unread,
Jan 23, 2014, 5:43:04 AM1/23/14
to thucydid...@googlegroups.com, Muhammed Salman
I'm facing the same problem. I've put the chromedriver into the system path. May the problem be in incompatible versions of chromedriver (2.8), chrome (32.0.1700.76) and thucydides.version (0.9.228) ? I've tried different ways to launch test with chromedriver:
- setting properties as mentioned above
 - with tag @WithDriver("chrome")
 - in code by creatin new ChromeDriver

вторник, 21 января 2014 г., 22:29:34 UTC+6 пользователь 80Vikram написал:

MK

unread,
Jul 25, 2014, 2:02:06 PM7/25/14
to thucydid...@googlegroups.com, salman...@gmail.com
I am having similar issue using: chromedriver (2.9), chrome (36.0.1985.125) and thucydides.version (0.9.229). Wondering what version of chromedriver should I be using?

Ilyas Patel

unread,
Jul 29, 2014, 5:37:10 AM7/29/14
to thucydid...@googlegroups.com, salman...@gmail.com
Worth trying the newer version of chrome driver 2.10 - http://chromedriver.storage.googleapis.com/index.html?path=2.10/

tellet

unread,
Sep 4, 2014, 9:55:17 AM9/4/14
to thucydid...@googlegroups.com, salman...@gmail.com
Well, I've tried 2.10 version and still Thucydides can not launch the test. It opens chrome window and then opens new firefox window (firefox my default browser).

I setup ChromeDriver like this:

        System.setProperty("webdriver.chrome.driver", "c:\\Users\\chromeDriver\\chromedriver.exe");
        DesiredCapabilities capabilities = DesiredCapabilities.chrome();
        ChromeOptions options = new ChromeOptions();
        options.addArguments("test-type");
        capabilities.setCapability("chrome.binary", "c:\\Users\\chromeDriver\\chromedriver.exe");
        capabilities.setCapability(ChromeOptions.CAPABILITY, options);
        webdriver = new ChromeDriver(capabilities);

вторник, 29 июля 2014 г., 15:37:10 UTC+6 пользователь Ilyas Patel написал:

Theo

unread,
Sep 5, 2014, 4:59:19 AM9/5/14
to thucydid...@googlegroups.com, salman...@gmail.com
Follow the steps below and see if it works or not

  1. Download the ChromeDriver to a location on your drive (e.g. I have it on C:\drivers\chromedriver.exe)
  2. Set the Environment Property webdriver.chrome.driver = C:\drivers\chromedriver.exe (using your relevant path to the ChromeDriver executable, including the .exe)
  3. In thucydides.properties file set the entry webdriver.driver=CHROME
  4. In the pom.xml, change <webdriver.driver>firefox</webdriver.driver> to <webdriver.driver>chrome</webdriver.driver>
  5. If you run the project now from command line using mvn verify – it will run against the ChromeDriver
  6. However, this will not be enough when you run your story from Eclipse. In order to make it work from Eclipse as well, you have to right click your story, Run As > Run configurations … and in the TAB Arguments you have to add “-Dwebdriver.chrome.driver=C:\drivers\chromedriver.exe”

See below how my Env Variables and Eclipse Configuration looks like




80Vikram

unread,
Aug 5, 2016, 5:21:23 AM8/5/16
to Serenity BDD Users Group, salman...@gmail.com
latest Mac OS , chrome driver should be put under /usr/loca/bin/

Refer to http://apple.stackexchange.com/questions/208764/cant-write-to-usr-lib

Regards,
Vikram
Reply all
Reply to author
Forward
0 new messages