A condition that I am trying to automate in Robotframework:
- Go to URL(Library Selenium2Library)
- Login with windows authentication (Library AutoItLibrary)
- focus back to the browser
TestCase in RobotFramework:
Open browser:
*** Settings ***
Library Selenium2Library
*** Variables ***
*** Keywords ***
Begin Web Test
open browser ${URL} ${BROWSER}
End Web Test
close all browsers
Login and createIO:
*** 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]
The problem I have:
- After this authentication, the user gets access to the browser but the next test where the link is clicked does not work. It's like the focus is not on the browser. I used all these after the authentication:
#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:
Error when I run the test on 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]
Would appreciate any suggestions to solve this...