Exceptions (selenium.common.exceptions.) |
Description |
ElementNotSelectableException |
Thrown when trying to select an unselectable element |
ElementNotVisibleException |
Thrown when an element is present on the DOM, but it is not visible, and so is not able to be interacted with. |
ErrorInResponseException |
Thrown when an error has occurred on the server side |
ImeActivationFailedException |
Thrown when activating an IME engine has failed. |
ImeNotAvailableException |
Thrown when IME support is not available. This exception is thrown for every IME-related method call if IME support is not available on the machine. |
InvalidCookieDomainException |
Thrown when attempting to add a cookie under a different domain than the current URL. |
InvalidElementStateException |
|
InvalidSelectorException |
Thrown when the selector which is used to find an element does not return a WebElement. Currently this only happens when the selector is an xpath expression and it is either syntactically invalid (i.e. it is not a xpath expression) or the expression does not select WebElements (e.g. “count(//input)”). |
InvalidSwitchToTargetException |
Thrown when frame or window target to be switched doesn’t exist. |
MoveTargetOutOfBoundsException |
Thrown when the target provided to the ActionsChains move() method is invalid, i.e. out of document. |
NoAlertPresentException |
Thrown when switching to no presented alert. |
NoSuchAttributeException |
Thrown when the attribute of element could not be found. |
NoSuchElementException |
Thrown when element could not be found. |
NoSuchFrameException |
Thrown when frame target to be switched doesn’t exist. |
NoSuchWindowException |
Thrown when window target to be switched doesn’t exist. |
RemoteDriverServerException |
|
StaleElementReferenceException |
Thrown when a reference to an element is now “stale”. |
TimeoutException |
Thrown when a command does not complete in enough time. |
UnableToSetCookieException |
Thrown when a driver fails to set a cookie. |
UnexpectedAlertPresentException |
Thrown when an unexpected alert is appeared. |
UnexpectedTagNameException |
Thrown when a support class did not get an expected web element. |
WebDriverException |
Base webdriver exception. |