Skip to content

Instantly share code, notes, and snippets.

@dannyshain
Created September 10, 2021 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannyshain/bb6e669a141b04c37b3178df9b7fc7a6 to your computer and use it in GitHub Desktop.
Save dannyshain/bb6e669a141b04c37b3178df9b7fc7a6 to your computer and use it in GitHub Desktop.
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