Quality Testing

Quality is delighting customers

Hi,

 

How to close pop-up windows using selenium tool?

 

Regards,

Madhu Priya

 

Views: 736

Reply to This

Replies to This Discussion

Try below command:
selenium.click("locator");
Note:- "locator" can say that element ID.

Hi,

You may try this 'chooseOkOnNextConfirmation' or 'chooseCancelOnNextConfirmation'

 

-S Sarita

its the browser issue and not selenium issue

Hi,

If the focus is on the pop-up window, you can use Selenium.close().

For Example.. Go through the post 

http://testerinyou.blogspot.com/2011/07/working-on-new-window.html

 

-Madhu

you can use selenium.selectwindow("null").
selenium.windowfocus("window title")
What version of Selenium are you using? What language are you coding in?

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2020   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service