At the time of execution of script, i get an on error dialog box, so i need to navigate through it manually, Is there any way to automate that process as well, as per the condition, I want to navigate those errors automatically, by lookin at the error message i want to navigate
Skip button using Script
|
use "on error resume next" statement. See QTP help for reference.
But i dont want to skip all the errors, i just want to skip some particular message, can we not identify the text on the error dialog box
you can put a simple if condition ..if that dialog box appears then perform the action.
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. 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
Ok is that so, i was talking about QTP error pop up and not app based, popup, how can i check the number of the qtp based error window?
You can use Err object to capture error number and error message
Please see the example below Code: On error resume next Regards, Ravi
But the question is, say der are two line of code
Line1 Line2 and in line 2 qtp throws an error how can i skip those errors dat too depending on its desc.
Could you please post your code.
Regards, Sankalp
Its a custome code for SAP in which its not able to find the Object or so, so QTP throws an error, am asking for such cases
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Help for instruction to click on Skip button in the warning message | vijilesh | 0 | 1,623 |
09-16-2018, 03:48 PM Last Post: vijilesh |
|
How to skip a For count? | mv8167 | 2 | 2,630 |
10-23-2013, 07:06 PM Last Post: mv8167 |
|
How to skip an action | newqtp | 2 | 5,976 |
02-13-2013, 03:31 AM Last Post: newqtp |
|
Press the Skip button on the dialog box | mv8167 | 3 | 3,350 |
12-06-2011, 12:24 PM Last Post: prasant |
|
How to skip the execution of Script lines in run time | azeem | 5 | 12,264 |
02-01-2010, 03:14 PM Last Post: Saket |
Users browsing this thread: 1 Guest(s)