Forum Discussion

pneuma's avatar
pneuma
Occasional Contributor
2 years ago
Solved

Close Web Browser if a Keyword Test Fails

Hello. Is there a way to close the web browser if a Keyword Test fails? I can't find any operations to do so. Thanks!
  • rraghvani's avatar
    2 years ago

    You could use OnLogError Event, which will be triggered when an error occurs, followed by Close Web Browsers.

     

    Here's a small example in script code, but should be enough to get you started