Created
September 10, 2021 00:25
-
-
Save dannyshain/bb6e669a141b04c37b3178df9b7fc7a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
//some Selenium code here | |
fail("The exception was not thrown!"); | |
} | |
catch (NoSuchElementException e) { | |
//some other code to execute | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment