Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
open new window
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
This is my script ....
it gives pass result but Browser("dft").Page("xyz") page does not open

Code:
url_Value=Browser("abc").Page("qtp").Link("Movies").GetRoProperty("href")
if len(url_Value)>0 then
Browser("abc").Page("qtp").Link("Movies").Click
wait(2)
If Browser("dft").Page("xyz").Exist Then
Reporter.ReportEvent micPass,"Pass","valid link"
else
Reporter.ReportEvent micFail,"Fail","invalid link"
End If


Thanks
sia
Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi,

Use syncronization, it will hault ur script untill the page is displayed.

Regards,
Sankalp
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to call Java window and Power Builder Window in 1 Action sbkhbk 0 2,442 06-05-2014, 08:18 PM
Last Post: sbkhbk
  When QTP is open am not able to open my AUT. chetan3987 2 2,940 02-12-2014, 01:18 AM
Last Post: supputuri
  qtp 11 not recording window within a window kp_usa 0 2,277 12-19-2012, 10:52 PM
Last Post: kp_usa
  QTP Opens a popup window but won't recognize the buttons in the window Blaster0007 4 7,642 07-20-2012, 12:03 AM
Last Post: sree.85
  new window open with report during a recording session? fieldsje 0 1,355 04-23-2008, 01:23 AM
Last Post: fieldsje

Forum Jump:


Users browsing this thread: 1 Guest(s)