Robotframework,firefox没有打开,webdriverexception

时间:2017-11-26 13:15:28

标签: python-3.x robotframework selenium-firefoxdriver

我尝试使用robotframework运行脚本,但它不会工作。

  • robotframework 3.0.2
  • selenium2library 3.0.0
  • firefox 56& 57
  • python 3.5.2& python 2.7.9
  • Geckodriver 0.19.1(安装在路径中)
  • windows 10 pro

编辑: python 2.7.9遇见chromedriver就像一个魅力!

我的剧本:

*** Settings ***
Library           SeleniumLibrary

*** Variables ***
${SERVER}         localhost:7272
${BROWSER}        Firefox
${PROFILE}        C:\\Users\\Kees\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\89res77i.default
${VALID USER}     demo
${VALID PASSWORD}    mode
${LOGIN URL}      http://${SERVER}/
${WELCOME URL}    http://${SERVER}/welcome.html
${ERROR URL}      http://${SERVER}/error.html

*** Test Cases ***
Test1
    Open Browser To Login Page
    Login Page Should Be Open    

*** Keywords ***

Open Browser To Login Page
    Open Browser    ${LOGIN URL}    ${BROWSER}    ff_profile_dir=${PROFILE}
    Maximize Browser Window
    Set Selenium Speed    ${DELAY}
    Login Page Should Be Open

Login Page Should Be Open
    Title Should Be    Login Page        

如果我运行它,会打开一个新的firefox窗口,我收到此错误: enter image description here firefox对我来说似乎很奇怪: enter image description here 我甚至没有看到那张照片,即使是橙色......

任何人都可以帮我吗?

0 个答案:

没有答案