|
Answer» Some of the COMMONLY seen exceptions in selenium are- - NoSuchElementException - You get this exception when the locator mentioned in the Selenium Program code is unable to find the web element on the web page.
- ElementNotVisibleException - You get this exception when a WebDriver is ABLE to locate web elements on the current webpage but it is not visible on the screen.
- NoAlertPresentException - You get this exception when we try to switch to an alert but the TARGETED alert is not present.
- InvalidElementStateException - You get this exception when the state of an element is not appropriate for the desired action.
- NoSuchAttributeException - You get this exception when you are trying to fetch an attribute's value but the attribute is not correct.
- WebDriverException - You get this exception when there is an issue with driver instance preventing it from GETTING launched.
- NoSuchFrameException - You get this exception when you try to switch to a frame but the targeted frame is not present.
- NoSuchWindowException - You get this exception when you try to switch to a window but the targeted window is not present.
- UnexpectedAlertPresentException - You get this exception when an unexpected alert blocks the normal interaction of the driver.
- TimeoutException - You get this exception when a COMMAND execution gets a timeout.
|