I click on a link through script, two instance of the same login windows are getting open, script is failing.
I need to close one, and work on the other. How to do that?
please note that thr in property difference in both windows.
In that case you'll need to use an ordinal identifier like creationtime in case of a browser or index if it's a vbwindow or some such.
its a window (parent). how to deal with that?
and close the later one.
Note: i am using window id as a property but change this accordingly
when things gets harder ,the harder gets going
You can also try out SendKeys method. When the 2nd window is opened, do Alt + F4, this should close the newly opened login window.
A n i s h [My QTP Blog]