I have a problem of which I spent 3 days and no useful solution for it.
I'm beginer with RR, sorry for the question if it is too bad or I mix some things. I'm using RR 4.0.5 with .net 4.0 on windows7.
Scenario:
- Open a page which contains links in IE.
Press CTRL and click on a link. It opens the link in new window.
Try to get the location of the new Window. (validation)
My first idea was to found out the process id. But in Spy I saw if see DOM container I see now difference just the url-s. That is not helped me.
I checked the Form objects and realized a strange thing: both of the form object /IEFrame/ has the same process Id while I see the two windows in windows'task manager with different process Id.
I tried to grab the new process id but I was not able to do it in RR.
I also realized the Instance attribute of the NativeWindow view changed for the new (popup) window.
I wrote RRpath which can identify the forms separetely like this:
Original window:
Code: Select all
form[@processname='iexplore' and @visible='true' and @instance='0']
Code: Select all
form[@processname='iexplore' and @visible='true' and @instance='1']
With this Form I couldn't get the location and I also had problems to access to the page elements.
But I don't see how can I convert from this Form element to WebDocument element or how I can do the popup window identification on some different ways.
- Is there any easier way to follow popups?
Is this duplicated process Id ok or is this a bug?
How can I get application window from Form element?
Laszlo