The geckodriver can't be found while executing jar file: The driver executable does not exist

69 views
Skip to first unread message

Laurence Lin

unread,
Oct 8, 2020, 1:37:17 AM10/8/20
to Selenium Users
Please help with this problem, any advice is appreciated!

My current settings:
Java 11
Selenium 3.141.59
Firefox: 81
geckodriver: 2.7
I'd tested the work of Selenium with my firefox, and successfully open firefox browser and load to a specific webpage.

I'm recently building an jar file from a project, which created an jar file. While running the file by command:
java -jar file.jar 
It shows the error:
java.lang.IllegalStateException: The driver executable does not exist: Directory\geckodriver

I'd made sure that my geckodriver.exe is correctly located in the indicated path Directory\geckodriver, and I'd also add the path of geckodriver location to System Path.

What could I do to solve the problem? Since I'm running on a jar file, most of the solutions I found online that directly modifying the .java file couldn't work.

Thanks for any help!

salahuddin...@gmail.com

unread,
Oct 13, 2020, 8:59:29 AM10/13/20
to Selenium Users
did you find a solution
Message has been deleted
Message has been deleted

林彥良

unread,
Oct 13, 2020, 10:40:43 PM10/13/20
to seleniu...@googlegroups.com
Sorry for the late response! The solutions is solved, since I'm using windows, I just have to add .exe at the extend of the geckodriver path.

I'm still working on the website layout testing right now, but I'm not going to use automate detect tools like Galen, instead try to capture the screenshot.
Hope we could help each other!

salahuddin...@gmail.com <salahuddin...@gmail.com> 於 2020年10月13日 週二 下午9:00寫道:
wanna be friends?
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/wtg0xoOoooU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/258b6c90-2bc8-45ce-ba5e-ca17e79164b8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages