Trouble getting started

227 views
Skip to first unread message

Ben Frey

unread,
Apr 4, 2022, 9:06:41 PM4/4/22
to Geb User Mailing List
It's been a while since I started up a new Geb project, and I haven't done so on Windows before. I set up my dependencies via Gradle and created a very short Spock test. (code: https://github.com/spartanhooah/YT-music-deleter). However, the driver complains "java.lang.IllegalStateException: The path to the driver executable The path to the driver executable must be set by the webdriver.gecko.driver system property". I tried doing so in the test closure in build.gradle but evidently that isn't the correct way to do it. What am I missing?

jc

unread,
Apr 12, 2022, 10:32:26 AM4/12/22
to Geb User Mailing List
Use https://bonigarcia.dev/webdrivermanager/ to solve these issue, otherwise you are probably missing something like `System.setProperty("webdriver.gecko.driver",'/path/to/driver')`

Marcin Erdmann

unread,
Apr 26, 2022, 5:37:02 AM4/26/22
to geb-...@googlegroups.com
Or use https://github.com/erdi/webdriver-binaries-gradle-plugin if you want to setup webdriver binaries natively in Gradle.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/c72fcba6-3c3b-4e19-8e00-d10b077dd6cen%40googlegroups.com.

Ben Frey

unread,
Apr 26, 2022, 7:49:32 PM4/26/22
to Geb User Mailing List
Thanks, WebDriver Manager worked (sorry for the late reply).
Reply all
Reply to author
Forward
0 new messages