Hello!
I have a problem, that sometimes when im running my test suite there is an error “Unable to verify object ‘’{0}‘’ is present”.
The test cases looks like this:
- startApplication
- waitForElementPresent (findWindowsObject(‘Object Repository/mainWindow/loginWindow/tbUser’), 120)
- setText for login and password
- click Login button
- delay(15)
- switchToDesktop()
- waitForElementPreset(findWindowsObject(‘Object Repository/mainWindow/mainFrame’)), 120)
- Windows.switchToWindow(findWindowsObject(‘Object Repository/mainWindow/mainFrame’))
- do some stuff
After switching from Desktop to mainFrame the error occurs.
The object mainFrame is located by “//Window[contains(@Name, ‘MAINPRG’)]” by locator strategy “XPATH”:
The log: log.txt (20.0 KB)
Why does the error occurs? How to avoid it?