3 Common Selenium Exceptions
3 Common Selenium Exceptions
Selenium Exceptions
Rex Jones II
NoSuchElementException 1
extends NotFoundException
The exception is returned when Selenium WebDriver cannot locate the specified
element.
Rex Jones II
2
StaleElementReferenceException
extends WebDriverException
Rex Jones II
3
TimeoutException
extends WebDriverException
Rex Jones II
Honorable Mention
Selenium Exceptions
Rex Jones II
ElementNotInteractableException
extends InvalidElementStateException
This includes an element that is not displayed or whose center point cannot be
scrolled into the viewport.
Rex Jones II
NoSuchFrameException
extends NotFoundException
The exception is returned when Selenium WebDriver cannot locate the specified
frame/iframe.
Rex Jones II
NoAlertPresentException
extends NotFoundException
Indicates that a user has tried to access an alert when one is not present
Rex Jones II
NoSuchWindowException
extends NotFoundException
The exception is returned when Selenium WebDriver cannot find the specified
window or tab.
Rex Jones II