Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Skip button using Script
#5
Not Solved
Yes sure you can just capture the message in the error dialog box if they are application related pop ups.

Use the code
Code:
strMsg=Browser("").Page("").Dialog("").GetRoProperty("PopupDialogText") 'get the txt displayed,chnge the objecthierarcrhy as per ur need.
if Instr(strMsg,"<Your Message that you want to chk>")>0 Then
  //your code to perform operation if the msg is as expected
End IF

Above code will work only for application related popups, if you want to work on the QTP error popup, u'll have to use On Error resume next statement. You can chk for the error number there as a condition.


Regards,
Ankesh
Reply


Messages In This Thread
Skip button using Script - by manishnangalia - 07-19-2012, 11:52 AM
RE: Skip button using Script - by Ankesh - 07-19-2012, 03:17 PM
RE: Skip button using Script - by manishnangalia - 07-19-2012, 03:41 PM
RE: Skip button using Script - by Ankesh - 07-20-2012, 11:37 AM
RE: Skip button using Script - by manishnangalia - 07-20-2012, 11:45 AM
RE: Skip button using Script - by ravi.gajul - 07-20-2012, 12:53 PM
RE: Skip button using Script - by manishnangalia - 08-01-2012, 05:16 PM
RE: Skip button using Script - by sshukla12 - 08-01-2012, 05:47 PM
RE: Skip button using Script - by manishnangalia - 08-01-2012, 07:04 PM
RE: Skip button using Script - by Ankesh - 08-01-2012, 07:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help for instruction to click on Skip button in the warning message vijilesh 0 1,505 09-16-2018, 03:48 PM
Last Post: vijilesh
  How to skip a For count? mv8167 2 2,501 10-23-2013, 07:06 PM
Last Post: mv8167
  How to skip an action newqtp 2 5,801 02-13-2013, 03:31 AM
Last Post: newqtp
  Press the Skip button on the dialog box mv8167 3 3,245 12-06-2011, 12:24 PM
Last Post: prasant
  How to skip the execution of Script lines in run time azeem 5 11,960 02-01-2010, 03:14 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 2 Guest(s)