Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learn about Exceptions in Selenium
Rating: 4.0 out of 5(22 ratings)
1,390 students

Learn about Exceptions in Selenium

This brief course talks about exceptions of selenium
Last updated 3/2021
English
English [Auto],

What you'll learn

  • exceptions of selenium

Course content

1 section5 lectures58m total length
  • Part 111:38

    Explore defining exceptions in Selenium, compare checked and unchecked exceptions, and distinguish syntax, runtime, and logical errors, with cross-language examples and practical handling strategies.

  • Part 211:38

    Learn how selenium uses the web driver exception class to handle runtime errors in browser automation, enabling unattended tests, clear logs, and easier debugging.

  • Part 311:38

    Explore common Selenium not found exceptions such as no such element, no such frame or window, and no alert, and learn to handle them with driver wait and try/catch.

  • Part 411:38

    Explore handling Selenium stale element reference and element not interactable exceptions, reattaching dropdown elements, and using Stack Overflow and community resources for robust test automation.

  • Part 511:38

    Learn how to handle selenium exceptions, including stale element and index out of bounds errors, using try-catch and generic exceptions, with a page object model and relative locator concepts.

Requirements

  • knowledge about selenium

Description

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