RE: Switching to popups, windows and alerts

I’m trying to select an option from drop-down list in a popup window.
This is similar to the ASK A QUESTION popup on this page.

I’ve tried using iframe and switch window and switch and alerts but none of these works.

oseic Default Asked on November 24, 2015 in Selenium WebDriver.
Add Comment
1 Answers

You dont have to switch here, you pop us seems to be a simple html code, try to find the css Path when the pop us is open. Then find the element and do what you want to do on it.

Make sure that in your test code you open the pop up and then find the pop us window using the css selector.


Professor Answered on November 25, 2015.

I solved the problem by just clicking on the popup and then locating the web element.

Thanks Virender, the tip simple html code helped meĀ  to resolve this issue.

on November 27, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.