Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP and secondary web pages
#4
Solved: 10 Years, 9 Months, 3 Weeks ago
I found how to resolve this issue
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.
Reply


Messages In This Thread
QTP and secondary web pages - by gabif - 01-13-2009, 09:39 PM
RE: QTP and secondary web pages - by Ankur - 01-14-2009, 12:46 AM
RE: QTP and secondary web pages - by gabif - 01-14-2009, 01:07 PM
RE: QTP and secondary web pages - by gabif - 01-29-2009, 03:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pages and Frames adding _1, _2, _3... zunebuggy 1 1,513 05-30-2017, 12:17 AM
Last Post: Vichu M J
  I want to compare string present on two pages excellentpawan 3 3,313 07-23-2013, 02:33 PM
Last Post: ssvali
  Verify images get properly loaded or not(Broken Images) in respective pages nilanjans 4 3,831 01-17-2013, 10:51 AM
Last Post: nilanjans
  Capturing Multiple Pages tfritz13 1 2,194 12-20-2012, 10:35 AM
Last Post: sshukla12
  How to find out error pages using QTP sams001 3 5,082 12-17-2012, 11:40 PM
Last Post: udayanem

Forum Jump:


Users browsing this thread: 1 Guest(s)