Using Java for Selenium, and am curious about the firefoxdriver package. There are several python specific packages, but does firefoxdriver perhaps install the geckodriver to the system in a way which is easy for a Java based Selenium project to find?
I've been using a properties file:
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>selenium config and vehicle type</comment>
<entry key="gecko">/home/thufir/.gecko/geckodriver</entry>
<entry key="url">http://books.toscrape.com/</entry>
<entry key="driver">webdriver.gecko.driver</entry>
<entry key="usr">admin</entry>
<entry key="pwd">12345</entry>
<entry key="option01">--headless</entry>
</properties>
Which would be slightly less fragile if it point to some standard place on the system. (I suppose it's probably possible to bundle it in the JAR, also.)
thufir@dur:~$
thufir@dur:~$ sudo apt install firefoxdriver
Reading package lists... Done
Building dependency tree
Reading state information... Done
firefoxdriver is already the newest version (3.8.0-1).
0 upgraded, 0 newly installed, 0 to remove and 98 not upgraded.
thufir@dur:~$