01-29-2009, 03:30 PM
I found how to resolve this issue
First we must get all IE open pages using next script:
The function return the name of the second IE page. The script work only if you have 2 IE pages opened.
First we must get all IE open pages using next script:
Code:
function getSecondIEPage(FirstPageName)
set x=Description.Create
x("micclass").value="Browser"
Set obj=Desktop.ChildObject(x)
NoPages = obj.count
For i=o to NoPages-1
y=obj(i).getroproperty("name")
If FirstPageName = y Then
msgbox("This is the name of the first IE page that I opened")
else
getSecondIEPage = c
end If
Next
End Function
The function return the name of the second IE page. The script work only if you have 2 IE pages opened.