WebDriverException: Message: 'chromedriver' executable needs to be in PATH even though chromedriver is in PATH - macOS 10.14.4

981 views
Skip to first unread message

Peter K

unread,
Mar 31, 2019, 8:58:50 PM3/31/19
to robotframe...@googlegroups.com
Hi.

chromedriver is in PATH but I am getting an "WebDriverException: Message: 'chromedriver' executable needs to be in PATH" error on macOS 10.14.4, when I run the test case in RED.

Peters-MBP:bin peter$ echo $PATH
/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/apache-maven-3.6.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Peters-MBP:bin peter$ which chromedriver
/
usr/local/bin/chromedriver

Peters-MBP:bin peter$ ls -l /usr/local/bin/chromedriver
lrwxr
-xr-x  1 peter  admin  101 Mar 31 19:33 /usr/local/bin/chromedriver@ -> /Users/peter/Library/Application Support/WebDriverManager/chrome/2.46/chromedriver_mac64/chromedriver

Peters-MBP:bin peter$ ls -l '/Users/peter/Library/Application Support/WebDriverManager/chrome/2.46/chromedriver_mac64/chromedriver'
-rwxr-xr-x  1 peter  staff  14947256 Mar 31 19:33 /Users/peter/Library/Application Support/WebDriverManager/chrome/2.46/chromedriver_mac64/chromedriver*


Here is the output of the failed test:

Command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -m robot.run --listener /var/folders/14/tc2fv6dx3n3gpxnm5n77htd80000gn/T/RobotTempDir6057640971533145971/TestRunnerAgent.py:54401 --argumentfile /var/folders/14/tc2fv6dx3n3gpxnm5n77htd80000gn/T/RobotTempDir6057640971533145971/args_024721b7.arg /Users/peter/eclipse-workspace/Test

Suite Executor: Robot Framework 3.1.1 (Python 3.7.2 on darwin)

==============================================================================

Test                                                                          

==============================================================================

Test.Test                                                                     

==============================================================================

Navigate to Web Page                                                  | FAIL |

WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

------------------------------------------------------------------------------

Test.Test                                                             | FAIL |

1 critical test, 0 passed, 1 failed

1 test total, 0 passed, 1 failed

==============================================================================

Test                                                                  | FAIL |

1 critical test, 0 passed, 1 failed 


Thank you.


Peter


Peter K

unread,
Apr 1, 2019, 7:42:33 AM4/1/19
to robotframework-users
I found out that %{PATH} in RED is different from ${PATH} in macOS and indeed chromedriver was not in %{PATH}.
So now I am trying to figure out how to add /usr/local/bin to %{PATH} in Test Suite Setup and restore it in Teardown.

Jayson Dangerous

unread,
Apr 10, 2019, 3:25:32 PM4/10/19
to robotframework-users

Hi Peter,

I've installed RED on mac but keeps on getting issue with Installed Framework under Eclipse preferences.It cant automatically detect python interpreter, have you encountered the same, if yes how did you manage to make it work? Thanks.
Reply all
Reply to author
Forward
0 new messages