WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

3,523 views
Skip to first unread message

Amol Joshi

unread,
Apr 17, 2017, 3:52:40 AM4/17/17
to robotframework-users
Hello,

Can anybody help me out on this. I am trying to run sample program in robot framework using Python 2.7 and Selenium Library 2 on Windows 7 machine but it showing me below.
Also downloaded geckodriver exe for 64 bit and 32 bit & tried both by setting path under environment variable but it not works for me.

Exception for Firefox :-

Starting test: Test.Login Should Failed With Unregistered Mail Address
20170417 09:27:20.087 :  INFO : Opening browser 'Firefox' to base url 'http://www.linkedin.com'
20170417 09:27:20.114 :  FAIL : No browser is open
20170417 09:27:20.117 :  WARN : Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open
20170417 09:27:20.119 :  FAIL : 
WebDriverException: Message: 'geckodriver' executable needs to be in PATH. 

Ending test:   Test.Login Should Failed With Unregistered Mail Address


Exception for Chrome :-

Starting test: Test.Login Should Failed With Unregistered Mail Address
20170417 09:28:44.869 :  INFO : Opening browser 'Chrome' to base url 'http://www.linkedin.com'
20170417 09:28:44.883 :  FAIL : No browser is open
20170417 09:28:44.884 :  WARN : Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open
20170417 09:28:44.888 :  FAIL : 
WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

Ending test:   Test.Login Should Failed With Unregistered Mail Address

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

Also showing warning as '[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open'. 

Could anybody help me out in this to fix this issue?

I am currently using FF Version 46.0.1 & Chrome Version 57.0.

Thanks,

Amol





RIDE console.PNG

Hélio Guilherme

unread,
Apr 17, 2017, 5:56:22 AM4/17/17
to robotframework-users
You are not placing the files on a directory in the %PATH% variable, or setting the env.var. wrong.

Best way is to right click on My Computer on Windows Explorer, go to Advanced System properties, then Environment Variables, and on the System variables locate the Path variable and add the directories with the webdrivers executables.

To test this open a NEW command window and enter "chromedriver --version", "geckodriver --version", or "iedriverserver --version". If not found then you have misplaced the files.

Also RIDE may only see the new setting after being restarted.



My Favorite Open Source Projects
awsome-lists gretl robotframework
(sponsored/patrocinado) Recomendo servidores e alojamento Web em:
http://www.proalojamento.pt/

--
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