List some exceptions that you had faced in the Selenium web driver?

devquora
devquora

Posted On: Mar 04, 2020

 

Some of the common Exceptions in the Selenium WebDriver are,

ElementNotVisibleException - Here, the element will not be visible even if it is present.

ElementNotSelectableException - Here, the element is disabled.

NoSuchElementException - Here, the WebDriver cannot determine the element during the runtime.

NoSuchFrameException - Here, the switching to an invalid frame by the WebDriver is unavailable.

NoAlertPresentException - Here, the switching to an invalid alert by the WebDriver is unavailable.

NoSuchWindowException - Here, the switching to an invalid window by the WebDriver is unavailable.

WebDriverException - Here, the WebDriver will be acting immediately after closing the browser.

TimeoutException - Here, the command will not be completed in the specified time.

SessionNotFoundException - It occurs when the session is not found in the Selenium WebDriver.

StaleElementReferenceException - Here, the referenced element is longer present on the DOM page.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Selenium WebDriver Interview Questions

    What is a WebDriver in selenium?

    WebDriver in Selenium is a web automation framework. It allows the developers to execute their tests against different browsers. With this, the developers can also use different programming languages ...

    Selenium WebDriver Interview Questions

    What are the components of selenium?

    There are four basic components present in the WebDriver architecture.Bindings JSON Wire Protocol Browser Drivers Real BrowsersBindings are used by the developers in order to support multi...

    Selenium WebDriver Interview Questions

    What are the limitations of Selenium WebDriver?

    Some of the limitations of the Selenium WebDriver are,Only support for Web-Based applications Takes time to create test cases Difficult to set up a test environment No support for automation o...