Forum Discussion

TestQA1's avatar
TestQA1
Frequent Contributor
2 years ago

Killing/Cancelling any Error popup while running test execute

Hi folks,

 

I run tests with batch files and Test Execute. During test run, there are often errors with Test Execute as its window title. These errors could be due to any reason such as object cannot be found etc. 

I have created my batch files in a way that if the error pops out and I manually click on it, the batch file waits until test run timeout and then runs the next test.

Now the main issue is that I cannot manually cancel the errors and it's pointless in automation to keep checking the errors manually.

Is there anyway I can auto click on errors whenever one pops out? I can find the object details for the popup as it always contains 'Test Complete' in its title and the Wnd class is always same for the pop up object. But, I don't know where to define the functionality that cancels these errors as they may appear any time during the test run. 

 

Any help would be appreciated.

 

Best