Ishan mahajan
Ishan mahajan

Reputation: 346

Automation in Robot framework

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

Upvotes: 2

Views: 1647

Answers (5)

Ayen
Ayen

Reputation: 1

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

Upvotes: 0

Sidara KEO
Sidara KEO

Reputation: 1709

you need download driver firefox first

Download Here

Upvotes: 1

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

Upvotes: 0

Krishna Barri
Krishna Barri

Reputation: 1073

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

Upvotes: 2

A. Kootstra
A. Kootstra

Reputation: 6961

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.

Upvotes: 0

Related Questions