SELENIUM BASICS:

  • What is Automation Testing - Advantages & Types of Tools
  • What is Selenium IDE, Selenium RC, Selenium WebDriver, Selenium Grid?
  • Selenium IDE, Firebug & Firepath Installation

  • SELENIUM WEBDRIVER:

  • Selenium WebDriver Architecture
  • Selenium Installation
  • Challenges and Limitations of Selenium
  • First Selenium WebDriver Script
  • Working with Firefox Browser
  • Solution - Failed To Launch Browser Using Selenium WebDriver
  • Working with Chrome Browser
  • Working with IE Browser
  • Difference Between FindElement & FindElements
  • Install Firebug, Fire path and other add on for Selenium
  • Locators in Selenium
  • Dynamic Xpath
  • Dynamic CSS
  • Handle drop-downs
  • How to work with file upload
  • Handle Alerts & Popups
  • Handle Multiple Windows
  • Mouse Hover event in Selenium
  • Right Click
  • Double Click
  • Drag and Drop
  • Capture Screenshots in Selenium
  • Parameterization
  • Synchronization
  • Implicit Wait, Explicit Wait and Fluent Wait in Selenium
  • Implicit Waits
  • Explicit WebDriver Waits
  • Fluent Wait In Selenium
  • Apache POI
  • How To Read Data From Excel File
  • How To Write Data In Excel File
  • Database Testing Using MSSQL
  • Database Testing Using MySQL
  • Database Testing Using DB2
  • Handle Ajax Call in Selenium
  • Listeners in Selenium
  • Handling JavaScript in Selenium
  • Stale Element Reference Exception in Selenium
  • Integrate Sikuli with Selenium
  • Headless Browser Testing 
  • Headless Browser Testing using HtmlUnitDriver
  • Headless Browser Testing using PhanthomJSDriver

  • TESTNG:

  • TestNG Installation
  • TestNG Complete Tutorial

  • REPORTS:

  • Extent Reports Introduction
  • Extent Reports Generation
  • Capturing Screenshots & Including In Extent Reports
  • Extent Reports Version 4

  • BUILD & CONTINUOUS INTEGRATION TOOLS:

  • ANT Build Tool - How To Download & Install
  • Maven Build Tool - How To Download & Install
  • Creating Maven Selenium Project
  • GIT Integration with Selenium
  • Jenkins - How To Download & Install
  • Jenkins - Executing TestNG Scripts
  • Jenkins - Generating Reports After Test Execution
  • Jenkins - Executing Maven Project
  • Create build and Execute build for nightly execution
  • Send Email report based on build Status
  • Selenium Continuous Integration with Jenkins [Selenium – Maven – Git – Jenkins] – Step By Step Guide

  • CROSS BROWSER TESTING:

  • Running Selenium Tests On BrowserStack
  • Kobiton - Mobile Testing Platform with Real Devices

  • MOBILE TESTING:

  • Mobile Testing Platform with Real Devices

  • AUTOMATION FRAMEWORKS:

  • What is Framework & Types of Framework
  • Page Object Model Design Pattern
  • Data Driven Framework
  • How to explain Test Automation Framework or Selenium Automation Framework Architecture In Interview

  • API Testing:

  • Learn API Testing
  • Postman Tutorial (API Testing with Postman)

  • INTERVIEW QUESTIONS:

  • Test Automation Framework Interview Questions
  • Selenium Interview Questions
  • TestNG Interview Questions
  • Java Interview Questions
  • Python Interview Questions
  • API Testing Interview Questions

  • SAMPLE RESUME:

  • Automation Tester Resume
  • Exceptions in Selenium Python

    In the previous articles on Selenium Python Tutorial, we have covered “Assertions in Selenium Python“. In this tutorial, we will learn Exceptions in Selenium Python. 

    An exception is an unexpected incident that is encountered during the program execution. It halts the normal execution flow of the program, can cause system crash or stop all the other processes.

    Selenium exception classes are a part of selenium.common.execeptions. Let us discuss some of the common Selenium exceptions.

    ElementClickInterceptedException – This exception is encountered if a click action could not be performed as the web element we are currently dealing with is hidden.

    ElementNotInteractableException – This exception is encountered if we want to perform an action on the web element is unavailable in DOM.

    ElementNotSelectableException – This exception is encountered with a web element having <select> tag. This exception comes if we try to select an option which is unavailable or not selectable.

    ElementNotVisibleException – This exception is encountered if we want to perform an action on a web element which is invisible on the web page but present in DOM.

    ErrorInResponseException – This exception is encountered if there exists an error on the server side.

    ImeActivationFailedException – This exception is encountered if IME engine activation failed.

    ImeNotAvailableException – This exception is encountered if IME support is unavailable from all the IME related method invocation.

    InsecureCertificateException – This exception is encountered when a navigation by a user agent comes across a certificate warning. The warning from a certificate is generated by an improper TLS certificate.

    InvalidArgumentException – This exception is encountered when improper arguments are passed to a command.

    InvalidCookieDomainException – This exception is encountered in addition to a cookie from a different URL to the present URL.

    InvalidCoordinatesException – This exception is encountered if we try to do mouse movement to an invalid coordinate.

    InvalidElementStateException – This exception is encountered when an action is being performed on a web element which is in disabled state.

    InvalidSelectorException – This exception is encountered if a selector fails to identify a web element on the page. This is common with customized xpath expressions having incorrect syntax or formation.

    InvalidSessionIdException – This exception is encountered if the provided session id is not among the list of sessions which are active. This means the session id is inactive.

    InvalidSwitchToTargetException – This exception is encountered if the user tries to switch to a nonexistent window or frame.

    MoveTargetOutOfBoundsException – This exception is encountered when a user makes an attempt to drag or move a web element or cursor beyond the visible portion of the screen.

    NoAlertPresentException – This exception is encountered if the user makes an attempt to switch to a nonexistent alert pop up.

    NoSuchAttributeException – This exception is encountered if an attribute of a web element could not be traced.

    NoSuchCookieException – This exception is encountered if there is no identical cookie in the list of available cookies in the active browser.

    NoSuchElementException – This exception is encountered when there is no matching web element on the page.

    NoSuchFrameException – This exception is encountered if the user makes an attempt to switch to a nonexistent frame.

    NoSuchWindowException – This exception is encountered if the user makes an attempt to switch to a nonexistent browser window.

    ScreenshotException – This exception is encountered when there is a failure to capture a screenshot of a page.

    SessionNotCreatedException – This exception is encountered when there is a failure to build a new session.

    StaleElementReferenceException – This exception is encountered if the web element has been deleted or detached from the DOM.

    TimeoutException – This exception is encountered if the web element cannot be identified within the specified wait time provided by the user.

    UnableToSetCookieException – This exception is encountered if the driver object could not position a cookie.

    UnexpectedAlertPresentException – This exception is encountered due to the appearance of an unanticipated alert pop up.

    UnexpectedTagNameException – This exception is encountered when a user attempts to access a web element with a class which does not work with a particular tag name. For example, using the Select class with an input tag.

    WebDriverException – This exception extends the Runtime Exception class. WebDriverException class is the super class of all exceptions in Selenium.

    In the next article, we will learn How To Handle Web Tables in Selenium Python

    Related posts:

    Get our latest blog posts delivered to your inbox

    Subscribe and get popular blog posts about software testing industry.

    Rajkumar

    Leave a Comment

    Share via
    Copy link
    Powered by Social Snap