2

I have written a simple test case to open Firefox browser and go to "https://www.google.co.in". I am getting this error.

enter image description here

Test script

*** Settings ***
Library           Selenium2Library

*** Test Cases ***  
case1
        Open Browser    https://www.google.co.in/    ff
A. Kootstra
  • 6,827
  • 3
  • 20
  • 43
Ishan mahajan
  • 336
  • 1
  • 5
  • 15

5 Answers5

2

To Run in Firefox we need geckodriver. Place geckodriver in C:/python/scripts and then try to run the scripts. To Run in Chrome, place chrome driver X32 in C:/python/scripts and then run your scrpts

Krishna Barri
  • 1,073
  • 11
  • 23
  • By the looks of it (the screenshot), @Ishanmahajan is using linux, don't put it in c:\ :). Get the latest version of (https://github.com/mozilla/geckodriver/releases), andadd it to the system path (`export PATH=$PATH:/path/to/geckodriver`); the gents at FF are recommedning the latest selenium, so make sure you're up to date. Also make sure firefox binary is in the path. – Todor Minakov Mar 23 '17 at 16:37
  • yup i am using ubuntu 16.04. I have put them in /usr/local/bin. Selenium and firefox are upto date. – Ishan mahajan Mar 24 '17 at 07:31
1

you need download driver firefox first

Download Here

Sidara KEO
  • 1,693
  • 1
  • 14
  • 34
0

Searching for the error: "Selenium OSerror [Errno 8] firefox" in Google the first few results were quite informative and it seems to me that this was not done.

The first few options highlight that not the correct webdriver is installed. Example here. (A different error is presented when the Gecko driver is not installed).

In a follow-up result item an explanation was given that the script is missing a shebang: #!/usr/bin/env bash when a script is fired.

Community
  • 1
  • 1
A. Kootstra
  • 6,827
  • 3
  • 20
  • 43
  • Most of the links relate to chrome driver not firefox. Well I degrade my firefox version and selenium version and this was solved. – Ishan mahajan Mar 24 '17 at 07:27
  • For the help of others, can you write an answer in which you explain what you did to solve your issue. I.e. from which version you downgraded from and to so that others can benefit from it? – A. Kootstra Mar 24 '17 at 21:04
0

Check the browser version and browser operation system(32 bit or 64 bit) then install the driver put inside python installation directory. For Example : C:\Python27/yourinstalleddriver.exe either C:\Python27\Scripts/yourinstalleddriver.exe

0

Most of the links relate to chrome driver not firefox. Well I degrade my firefox version and selenium version and this was solved.

Ayen
  • 1