Ask a Question

How to Check if Popup window is active or not

mazhar555
Contributor

How to Check if Popup window is active or not

HI, I am testing a web application and want to check if Popup window is active then perform certain actions otherwise perform nothing. Do i need to check the Object property if it is true or false? If yes then how?
-
Muhammad Mazhar Mahmood
Certified Software Tester (CSTE)
3 REPLIES 3

RE: How to Check if Popup window is active or not


Hi Muhammad,





You can check whether the window exists on the screen before performing some actions. Please refer to the "Checking Whether an Object Exists" article for more information.
--
Dmitry Nikolaev

Join Wintertainment 2021 to share your stories, have fun, earn community badges, and more!
mazhar555
Contributor

RE: How to Check if Popup window is active or not

Thanks, but what i want, system should not wait for the Object if it is not there and execute the Else statement, in my case it waits for few seconds and at end it fails the test as Object is  not available.
-
Muhammad Mazhar Mahmood
Certified Software Tester (CSTE)

RE: How to Check if Popup window is active or not

Hi Muhammad,


Could you please zip your entire project suite folder along with the log of the failed test execution and send us the archive via our Contact Support form?


Best regards,
Alexey

Join Wintertainment 2021 to share your stories, have fun, earn community badges, and more!
cancel
Showing results for 
Search instead for 
Did you mean: