Interview Questions

After clicking on "login" button, they opens other windows of the web application, how to check that page is opened or not

Mercury WinRunner FAQ


(Continued from previous question...)

After clicking on "login" button, they opens other windows of the web application, how to check that page is opened or not

When your expecting "Window1" to come up after clicking on Login...

Capture the window in the GUI Map. No two windows
in an web based application can have the same
html_name property. Hence, this would be the
property to check.

First try a simple win_exists("window1", <time>)
in an IF condition.

If that does'nt work, try the function,

win_exists("{ class: window, MSW_class:
 html_frame, 
html_name: "window1"}",<time>);

(Continued on next question...)

Other Interview Questions