Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Link in application
#1
Not Solved
On my application when I select this 'help' link manually it opens up as a pop up window. whenevr i run with qtp it sometimes just opens loads the help page in same browser. that is it does not open up as a popup.
When this happens my script fails as i have a code browser(title:=help", creationtime:-1") .close. if there is no popup qtp goeas ahead to close my main window. I dont want this to happen i only want to close window when there is a pop window. which is why i have the creation 1 there. but yet its not worked.
Can anyone help/
Thanks all.
Reply
#2
Not Solved
Try this,
Code:
If Browser("creationtime:=1","title:=help").Exist Then
    Browser("creationtime:=1","title:=help").close
End If
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Not Solved
Tried that and still didnt work when a new browser isnt opened it just closes off the main browser.
Reply
#4
Not Solved
Try to get the number of count of browsers opened if Browser count is > 1 then execute the statement to close the help browser.

Reply
#5
Not Solved
Laura -
Please upload a screenshot of your browser popup and the spyshot for the popup.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  qtp sometimes does not application link Jenny 1 1,607 08-13-2010, 07:24 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)