Closing a window based on a particular text

Hi All

Trying to open a window from HTML page. I am able to spy the ("X") mark on the top hand right corner and the window is getting closed

Point here is i know now the window is showing the error 1234 hence i spied the X mark and it is getting closed, and if not that error it will open the normal log in screen,

The window should be closed only if a following text appears in the window "Error1234". Any suggestions on this please,

Thank you
 
Hi,

Try to get window title every time u navigate , check if window title is different , then u can put a condition accordingly u can choose close or continue with window

Thanks
 
Hi Bharagavi

At the outset thank you

So i am trying to use read stage to get the window title i am able to store the value in data type. i am not getting the window title "Router-IE" which is on the top left corner. only doubt which one should i select in the data type.

Is this approach correct ?
 
Top