Ask a Question

Disable Event handlers in some tests

sdruker
Contributor

Disable Event handlers in some tests

Hi,



Is it possible to disable the event handlers in part of my test under the same excecutaion?



I want that in some of the the event handlers (on log error, on unexpected window)

will work in some tests, and to diable them in others



Thanks!





1 REPLY 1
TanyaYatskovska
SmartBear Alumni (Retired)

Hi Sivan,

 


Event handlers work for the entire project. To accomplish your task, you can create a global variable that will identify when the event should be processed and check its value in the event handler.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



cancel
Showing results for 
Search instead for 
Did you mean: