我要在Robotframework中自动执行的条件:
RobotFramework中的TestCase:
打开浏览器:
*** Settings ***
Library Selenium2Library
*** Variables ***
*** Keywords ***
Begin Web Test
open browser ${URL} ${BROWSER}
End Web Test
close all browsers
登录并创建IO:
*** Settings ***
Library Selenium2Library
Library AutoItLibrary
*** Variables ***
*** Keywords ***
Login and createIO
sleep 3s
WaitForActiveWindow WindowTitle=Authentication Required
Send ${Subscriptionsusername}
Send {TAB}
Send ${Subscriptionspassword}
Send {ENTER}
Capture Page Screenshot
Click Link xpath=//*[@class='tss-main-nav']/nav/ul/li[3]
我遇到的问题:
#Select Window URL=${URL}
#Select Window NEW
#Select Window MAIN
#Wait Until Element Is Visible xpath=//*[@class='tss-main-nav']/nav/ul/li[3]
#Set focus Campaign Start:
在Robotframework上运行测试时出错:
Should be able to CreateIO :: Testing Apollo website | FAIL |
WebDriverException: Message: [Exception... "Component not initialized" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: chrome://marionette/content/modal.js :: get window :: line 143" data: n
o]
非常感谢您提出解决此问题的建议...