In my application recevies unexpeted page close the record (webButton).So i have to write function navigate to another page and do some actions to perform.
Please let me know how to write function and which recoery i need to take.
My problem is i am not sure when can i get the error on page. I have to close the screen and perform the operation.If i have written in function,i am not where can i call the function in my script.
For this type of situation, You can create two scenario's in the Recovery scenario.
1) Handles Pop up: Closes unexpected Popup window. Post recovery steps would be Bring back the application to base State.
2) During Test Error: This you can customize it to your needs. There you can use your Functions.
Note: It is a best practice to use "on error resume Next" in most/all of your vbs functions for error handling.
Clearly define what are the things you would like to do it thru Recovery scenario & What are the exception handling thru VBS function.
Below i am providing steps of my scenario.
1.Login to the application.
2.search with criteria.
3.Close this record(Button in the screen) because this participant has locked.(Unexpected scenario)
4. Navigate to the another screen.
5. Perform Unlock operation.
6.Proceed step 2.
I want to handle step 2 in recovery scenario. This is not pop-op. Please let me know which trigger event i need to use