
In order to locate elements on a web page we use ‘ find_element’ method.
#KALI LINUX HOW TO INSTALL SELENIUM CODE#
To copy XPath, right click on highlighted source code on source page.

Make sure that your OS can find the file in its systempath.If however you want your code to work with the most recent release of Firefox, then you choose option #2 and the basic gist of how to accomplish that is as follows: If you choose option #1, then simply find a way to downgrade to Firefox 46.
#KALI LINUX HOW TO INSTALL SELENIUM DRIVER#

You're trying to spawn an instance of firefox, through selenium, but it's not working. That answers the question, I believe, however I'd like to try to address the issue you're having. It's described here:, and it's made available here But first, to answer the question as to where you can download firefoxdriver, my answer would be maybe firefoxdriver is not available, because the file is now called geckodriver, but it's really called Marionette Driver. I'm not certain if this will fix the issue you're having, but you can give it a try. I did searching for packages name firefoxdriver in Ubuntu repositories but none exist.Īny help with installing the webdrivers appreciated! t_preference("", True)īrowser = webdriver.Firefox(firefox_profile=getProfile())įile "/usr/lib/python3/dist-packages/selenium/webdriver/firefox /webdriver.py", line 77, in initįile "/usr/lib/python3/dist-packages/selenium/webdriver/firefox/extension_connection.py", line 47, in initįile "/usr/lib/python3/dist-packages/selenium/webdriver/firefox/firefox_profile.py", line 91, in add_extensionįile "/usr/lib/python3/dist-packages/selenium/webdriver/firefox/firefox_profile.py", line 251, in _install_extensionĬompressed_file = zipfile.ZipFile(addon, 'r')įile "/usr/lib/python3.5/zipfile.py", line 1009, in initįileNotFoundError: No such file or directory: '/usr/lib /firefoxdriver/webdriver.xpi' When I try to run the following python code, #! /usr/bin/python3.5

The following NEW packages will be installed: While installing, got a message: Suggested packages: I installed python3-selenium apt package on Ubuntu 16.04.
