Learn about Exceptions in Selenium

exceptions of selenium


  • knowledge about selenium


Exceptions and errors are part and parcel of coding activities. As we use Selenium for different activtities which primarily involves driving the browser, we will come across issues as we use a programming language to implement it. Selenium primarily just drives the browser, what we do with that power is entirely upto us. Selenium doesn’t comeup with any ability to handle exceptions, the onus of it lies on the programming language we will use to implement Selenium.

In this brief course we have tried to talk about exceptions, errors and a few most common exceptions one can encounter while working with Selenium .

WebDriverException is the parent class from which all exceptions are derived. The implementation of this class and its sub classes is same across different libraries of selenium found in different programming languages.

Some of the exceptions we see in this video are NotFoundException like NoSuchElementFound, NoAlertFound, NoWindowException, NoFrameException, StaleElementException ElementNotInteractableException

and then we see recreating them using code and websites examples.

ATATalk is an initiative by Agile Testing Alliance for the community and if you want to be a part of it, please do get in touch.

We welcome topics and insights from the global community of testing, and lets learn by sharing. If you like this please spread the word, and we welcome feedback from you.

Who this course is for:

  • testers

Course content

1 section • 5 lectures • 58m total length

Introduction5 lectures • 58min

  • Part 111:38
  • Part 211:38
  • Part 311:38
  • Part 411:38
  • Part 511:38