Forum Discussion

sdruker's avatar
sdruker
Contributor
10 years ago

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

  • TanyaYatskovska's avatar
    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.