Here is a common exception raised when trying to invoke selenium’s webriver component for browser automation launching. Here is how to fix it.
For a professional need, I installed selenium testing framework on Ubuntu 17.04 LTS within a virtual environment I created using the recommended method I found on the documentation:
As a robot, I googled about that weird “chromedriver” and landed on this:
WebDriver is an open source tool for automated testing of webapps across many browsers. It provides capabilities for navigating to web pages, user input, JavaScript execution, and more. ChromeDriver is a standalone server which implements WebDriver’s wire protocol for Chromium. ChromeDriver is available for Chrome on Android and Chrome on Desktop (Mac, Linux, Windows and ChromeOS).
So I obeyed to the error message I got above by downloading the latest version of ChromeDriver, uncompressed the executable file and set a path to it like this:
Even if I do not use Mozilla Firefox on Ubuntu 17.04 and Ubuntu 16.10 for speed performance reasons, I was curious and tried to achieve the same goal I did with Chrome previously:
As previously, I googled about the weird ‘geckodriver’ and found that it is a web browser engine used most noticeably the Firefox web browser. So I simply downloadedgeckodriver, uncompressed it and defined a path to the executable file: