Id | Detail |
WebDriverException | Mismatching between webdriver version and browser version |
TimeoutException | Give Explicitly wait or implicitly wait for 20 seconds, and after 20 seconds also the element is not available in that case |
NoAlterPresentException | NoAlertPresentException is one of the different WebDriver Exceptions and this Exception occurs, when the driver in the Selenium Program code is unable to find the Alert on the web page to switch. i.e. when the driver is switching to an invalid or non-existing Alert pop-up. In order to work with Alert pop-ups, we have to first switch to Alert and then perform operations on Alert like reading the messages on the Alerts or Accepting the alert by pressing 'OK' button on the alert etc. Hence switching to invalid or non-existing Alert pop-up will give NoAlertPresentException. |
NoSuchElementException |
|
StaleElementReferenceException | Stale Element means an old element or no longer available element. Assume there is an element that is found on a web page referenced as a WebElement in WebDriver. If the DOM changes then the WebElement goes stale. If we try to interact with an element which is staled then the StaleElementReferenceException is thrown. |
IllegalStateException | When using Local driver, Your are written directly using webdriver and not setProperty as below:
System.setProperty("webdriver.ie.driver", "C:/XXXXX/IEDriverServer.exe"); // if no this line, get IllegalStateException driver = new InternetExplorerDriver(capabilities); |
NoSuchSessionException | Often get following error: Org.openqa.selenim.NoSuchSessionException: Unexpected error launching Internet Explore. IELaunchURL() returned HRESULT 8007005(“Access is denied.”) for URL http://locallhost:45728/
Solution: Update the checkbox to same value for Internet, Local Intranet, Trusted Sites and Restricted sites under Security. |
Exceptions in Selenium WebDriver
最新推荐文章于 2024-02-07 16:39:20 发布