Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

while automation using selenium, popup are not recognized

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

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)