12-27-2016 11:38 AM
I am trying to automate application using Selenium, at runtime popup are not recognized and hence i am unable to identify objects inside the pop up.
Each time the script fails with error element not found.
01-09-2017 11:05 AM
Hi, I've been testing SapUI5 with selenium and I switch to pop ups using the following:
driver.switchTo().frame("contentAreaFrame");
driver.switchTo().frame("isolatedWorkArea");
I needed both lines to switch into one pop up. I used the selenium ide tool on firefox to get the frame names. Hopefully this helps.
I also used:
for (String winHandle : driver.getWindowHandles()) { driver.switchTo().window(winHandle);}
// switch focus of WebDriver to the next found window handle (that's your newly opened window)