How to set chrome driver for robot framework?

6,592 views
Skip to first unread message

Akshay Thite

unread,
Sep 23, 2016, 4:31:18 AM9/23/16
to robotframework-users
Hi all,

I am new to robot framework and trying to setup chrome driver. I am getting the following error :- " The path to the driver executable must be set by the webdriver.chrome.driver system property"

I have placed the chrome driver at an appropriate location and have set the path detail in my code as well.

My code:-

*** Settings ***
Documentation  A resource file containing the application specific keywords
Library Selenium2Library
Library OperatingSystem
*** Keywords ****
#Set Environment Variable  webdriver.chrome.driver  C:\\selenium_drivers\\chromedriver.exe

Set Environment Variable webdriver.chrome(executable_path=C:\\selenium_drivers\\chromedriver.exe)
*** Test Cases ***
Check out joe colantonio dot com
Open Browser  http://www.joecolantonio.com chrome

Any help would be appreciated.



Thanks,
Akshay

Hélio Guilherme

unread,
Sep 23, 2016, 4:49:40 AM9/23/16
to robotframework-users
The usual way is to add the path to chromedriver in the %PATH% (or $PATH) operative system environment variable (before calling robot/pybot).

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages