Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 4
Exception name Description
This type of Selenium exception occurs when an existing element in
ElementNotVisibleException DOM has a feature set as hidden. This Selenium exception occurs when an element is presented in ElementNotSelectableException the DOM, but you can be able to select. Therefore, it is not possible to interact. NoSuchElementException This Exception occurs if an element could not be found. This Exception occurs if the frame target to be switched to does not NoSuchFrameException exist. NoAlertPresentException This Exception occurs when you switch to no presented alert. NoSuchWindowException This Exception occurs if the window target to be switch does not exist. This Selenium exception occurs happens when the web element is StaleElementReferenceException detached from the current DOM. SessionNotFoundException The WebDriver is acting after you quit the browser. Thrown when there is not enough time for a command to be TimeoutException completed. For Example, the element searched wasn’t found in the specified time. This Exception takes place when the WebDriver is acting right after you WebDriverException close the browser. This type of Exception takes place when there is a disconnection in the ConnectionClosedException driver. The command may not be completed as the element receiving the ElementClickInterceptedException events is concealing the element which was requested clicked. ElementNotInteractableException This Selenium exception is thrown when any element is presented in the DOM. However, it is impossible to interact with such an element. This happens while interacting with the Firefox extension or the remote ErrorInResponseException driver server. ErrorHandler.UnknownServerExceptio Exception is used as a placeholder in case if the server returns an error n without a stack trace. ImeActivationFailedException This expectation will occur when IME engine activation has failed. ImeNotAvailableException It takes place when IME support is unavailable. Navigation made the user agent to hit a certificate warning. This can InsecureCertificateException cause by an invalid or expired TLS certificate. InvalidArgumentException It occurs when an argument does not belong to the expected type. This happens when you try to add a cookie under a different domain InvalidCookieDomainException instead of current URL. This type of Exception matches an interacting operation that is not InvalidCoordinatesException valid. InvalidElementStateExceptio It occurs when command can’t be finished when the element is invalid. This Exception took place when the given session ID is not included in InvalidSessionIdException the list of active sessions. It means the session does not exist or is inactive either. This occurs when the frame or window target to be switched does not InvalidSwitchToTargetException exist. JavascriptException This issue occurs while executing JavaScript given by the user. It occurs when you afford to get the session when the session is not JsonException created. NoSuchAttributeException This kind of Exception occurs when the attribute of an element could not be found. It takes place if the target provided to the ActionChains move() MoveTargetOutOfBoundsException methodology is not valid. For Example, out of the document. NoSuchContextException ContextAware does mobile device testing. This Exception occurs when no cookie matching with the given NoSuchCookieException pathname found for all the associated cookies of the currently browsing document. This Exception is a subclass of WebDriverException. This will occur NotFoundException when an element on the DOM does not exist. This Selenium exception is thrown when the server is not responding RemoteDriverServerException because of the problem that the capabilities described are not proper. ScreenshotException It is not possible to capture a screen. SessionNotCreatedException It happens when a new session could not be successfully created. UnableToSetCookieException This occurs if a driver is unable to set a cookie. UnexpectedTagNameException Happens if a support class did not get a web element as expected. This expectation occurs when there is an alert, but WebDriver is not UnhandledAlertException able to perform Alert operation. UnexpectedAlertPresentException It occurs when there is the appearance of an unexpected alert. This Exception happens when the requested command matches with a UnknownMethodException known URL but and not matching with a methodology for a specific URL. This Exception occurs only when the browser is not able to be opened UnreachableBrowserException or crashed because of some reason. UnsupportedCommandException This occurs when remote WebDriver does n’t send valid commands as expected.