我尝试使用Robot Framework RIDE运行测试脚本
我的异常为WebDriverException: Message: 'chromedriver' executable needs to be in PATH.
我尝试使用Firefox,然后我收到错误为WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
测试脚本如下:
*** 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')]
仅用于chrome的语句更改为
Open Browser http://172.20.24.74/clm-ui/#/login/ Chrome
请提供任何帮助。
由于 Sarada
答案 0 :(得分:2)
发布回答是因为我告诉我所遵循的确切步骤解决了这个问题。
我下载了最新版本的chrome驱动程序并放在C:\ Python \ Scripts文件夹中。
这解决了这个问题。
感谢Saurabh和Waman的时间