Skip to content
Advertisement

‘chromedriver’ executable needs to be in PATH. Robot framework pycharm

I am new to Robot framework and I have followed all set up related steps from this link, however, I am getting some error which I am not able to identify. Anybody, please help.

JavaScript

And here is the error I am getting

JavaScript

My ChromeDriverPath is absolutely correct and I am using the latest version of chrome driver.

Adding one more point here: my Intellibot is also giving me compile time error for selenium keywords like ‘Open Browser’ which is I am not able to understand why? Installed robot and pycharm versions: Robot Framework 3.0.2 (Python 3.6.3 on win32)

Advertisement

Answer

As highlighted by Bryan Oakley, this is quite a common error and as such finding a solution for it shouldn’t be too difficult. For this reason I’m not going to answer the obvious

“Chrome Driver is not in %PATH%” error.

In your script you tried to set a custom path to the ChromeDriver which is something that can be useful on occasions. You tried to set the environment variable webdriver.chrome.driver which does not work, because the Python binding does not check it for the chromedriver executable.

However, it is possible to provide the executable at the instantiation of the chromedriver. In Robot Framework SeleniumLibrary this is done using executable_path parameter. This then results in the following example:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement