Sarada Akurathi
Sarada Akurathi

Reputation: 1188

robot framework - RIDE : unable to run scripts getting WebDriverException

I tried to run the test scripts using Robot Framework RIDE

I am getting the exception as WebDriverException: Message: 'chromedriver' executable needs to be in PATH.

I tried with firefox also then i am getting the error as WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

The Test Script as below:

*** Settings ***
Documentation     CLM Registration Test Case
Library           Selenium2Library
Library           DatabaseLibrary

*** Variables ***
${MSISDN_NUMBER}    9300012067
@{QueryResult}
${Delay}          5s

*** Test Cases ***
Prepaid Retail Registration
    Login to CLM
    Change Language to English
    Click on Register Kit


*** Keywords ***
Login to CLM
    Open Browser    http://172.20.24.74/clm-ui/#/login/    ff
    Input Text    id=username    akurasa
    Input Password    id=password    Srija210$
    Click Button    css=.btn.btn-primary

Change Language to English
    Sleep    ${Delay}
    Wait Until Element Is Visible    xpath=//*[@id='top-navbar']/ul[2]/li/a/span[2]    30s
    Click Element    xpath=//*[@id='top-navbar']/ul[2]/li/a/span[2]
    Click Element    xpath=//*[@id='top-navbar']//a[contains(text(),'English')]

Click on Register Kit
    Sleep    ${Delay}
    Wait Until Element Is Visible    //a[contains(text(),'Register Kit')]    30s
    Click Element    xpath=//a[contains(text(),'Register Kit')]

for chrome only statement changed is

 Open Browser    http://172.20.24.74/clm-ui/#/login/    Chrome

Please any one help on this.

Thanks Sarada

Upvotes: 0

Views: 523

Answers (1)

Sarada Akurathi
Sarada Akurathi

Reputation: 1188

Posting answer because to tell what exact steps i followed solved the issue.

I downloaded latest version of chrome driver and placed in C:\Python\Scripts folder.

Which solved the issue.

Thanks Saurabh and Waman for your time

Upvotes: 2

Related Questions