Ask a Question

event handlers

tmahender12
Frequent Contributor

event handlers

What is differencfe between Overlap window event handler and Unexpected window event handler??

attached screen ..iam not able to handle with the eventhandlers...any suggestions??

20 REPLIES 20
baxatob
Community Hero

Overlapped window is a window that was expected during test, but it can overlap another elements and make unable interacting with them.

 

Unexpected window is a window that was not expected during the test run (e.g. system alerts, errors or other dialogs).

 

Check your project's playback properties:

TC_PlaybackProps.png

tmahender12
Frequent Contributor

i want to handle the dlg i sent in the event handler, how can i achieve it?

tmahender12
Frequent Contributor

I got a modal window, which is not recognized by unexpected window handler,so it is not entering into unexpected handler.

i tried play back->Unexpected window options, nothing could work.

is there any other way of handling attached modal window/dialog

Does Test Complete logs an error under this condition? If so we have an OnLogError event and we can write the event handler for addressing the modal dialog insiide the event handler function for .OnLogError

tmahender12
Frequent Contributor

No, Test Complete just remains in Pause state until i click o.k in the attached pop up

If a non window dialog box appears in between the tests, then what is the solution??, as the tests are not entereing into Unexpec t window Event handlers, as there is non window dialog,

May be you can handle this dialog using IF/THEN statement?

 

IF unexpectedObject.Exists
THEN do some action
ELSE do another action
tmahender12
Frequent Contributor

the error may occur any time....almost there are 1000 methods, i can't keep this in every method...So is there any other solution for this?

cancel
Showing results for 
Search instead for 
Did you mean: