geb.driver.DriverCreationException: failed to create driver from callback

79 views
Skip to first unread message

Siviwe

unread,
Jan 31, 2019, 6:17:55 AM1/31/19
to Geb User Mailing List
Hi 

I am new in Geb and when i try to run the project i cloned i get "geb.driver.DriverCreationException: failed to create driver from callback"

Chrome version: 72

pom file attached,

Thanks
pom.xml

Alexander Kriegisch

unread,
Jan 31, 2019, 10:51:54 PM1/31/19
to geb-...@googlegroups.com
Welcome to the Geb world and thanks for the POM. Would you please also
attach your MCVE (http://stackoverflow.com/help/mcve)? I am talking
about
-- Geb specification,
-- Geb and Spock configuration files, if any,
-- application code under test.

Thank you very much and kind regards
--
Alexander Kriegisch
https://scrum-master.de
pom.xml

Siviwe super

unread,
Feb 2, 2019, 12:15:21 AM2/2/19
to geb-...@googlegroups.com
Hi Alex
Thanks for the warm welcome, please find the files attached . Application under test is http://gebish.org which is used on the example.
Thanks

--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/20190201035152.C123144C4E14%40dd39516.kasserver.com.
For more options, visit https://groups.google.com/d/optout.
GebishOrgHomePage.groovy
ManualsMenuModule.groovy
GebishOrgSpec.groovy
TheBookOfGebPage.groovy
GebConfig.groovy

Alexander Kriegisch

unread,
Feb 2, 2019, 12:57:10 AM2/2/19
to geb-...@googlegroups.com

I see. thanks.

 
When copying everything you attached into a new Maven project (test files and GebConfig got to src/test/groovy) and upgrading the Chromedriver to 2.45 for Chrome 71 or 72, everything works beautifully on my workstation. The 2.10 driver version is definitely too old for a current Chrome, even though I saw a different error from yours.
 
 
Good luck!

--
Alexander Kriegisch
https://scrum-master.de
ManualsMenuModule.groovy
GebishOrgSpec.groovy
GebConfig.groovy
TheBookOfGebPage.groovy
GebishOrgHomePage.groovy

Siviwe super

unread,
Feb 2, 2019, 2:01:29 AM2/2/19
to geb-...@googlegroups.com
Thanks Alex,
1. What version of chrome driver do you recommend for version 72,windows 10, Intellij Community 2017, 2.5, JDK 1.8.0_152  and can i leave my selenium version as 3.3.1?
2. How does ExecutableFinder find the correct version of chrome (do i need to save chromedriver jar somewhere as on my machine)?
3. Other than Java JDK, Maven, Intellij is there any other configuration or installation required for geb to work which i might be missing?


Alexander Kriegisch

unread,
Feb 2, 2019, 2:08:23 AM2/2/19
to geb-...@googlegroups.com
  1. I already told you and even sent a screenshot. I also said I changed nothing else in the POM.
  2. You just need a regular local Chrome installation. And no, the Maven plugin takes care of downloading and finding the driver.
  3. I also happen to use IntelliJ, but ran your test via Maven, so an IDE is not strictly needed. But running the test directly from IDEA should work out of the box after (auto-)importing the Maven project and building it once.
Maybe you should try first and then ask. I assume you have not tried yet, as your questions seem to imply.
--
Alexander Kriegisch

Siviwe super

unread,
Feb 2, 2019, 2:39:12 AM2/2/19
to geb-...@googlegroups.com
Thanks Alex, i have tried it again after your response.

Will continue trying

Reply all
Reply to author
Forward
0 new messages