While automation it's quite common that we all come across different kind of Exceptions occurring In Selenium WebDriver.
Lets see few Exceptions and what’s the reason for those !!!! I hope this post will help you in memorizing such exceptions which you have been facing.
NoSuchElement : An element could not be located on the page using the given search parameters.
NoSuchFrame : A request to switch to a frame could not be satisfied because the frame could not be found.
StaleElementReference : An element command failed because the referenced element is no longer attached to the DOM.
Firefox Not Connected : Firefox browser upgraded toop new version.
ElementIsNotSelectable : An attempt was made to select an element that cannot be selected.
UnknownCommand : The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource.
ElementNotVisible : An element command could not be completed because the element is not visible on the page.
InvalidElementState : An element command could not be completed because the element is in an invalid state (e.g. attempting to click a disabled element).
UnknownError : An unknown server-side error occurred while processing the command.
JavaScriptError : An error occurred while executing JavaScript code.
XPathLookupError : An error occurred while searching for an element by XPath.
Timeout : An operation did not complete before its timeout expired.
NoSuchWindow : A request to switch to a different window could not be satisfied because the window could not be found.
InvalidCookieDomain : An illegal attempt was made to set a cookie under a different domain than the current page.
UnableToSetCookie : A request to set a cookie’s value could not be satisfied.
UnexpectedAlertOpen : A modal dialog was open, blocking this operation
NoAlertOpenError : An attempt was made to operate on a modal dialog when one was not open.
ScriptTimeout : A script did not complete before its timeout expired.
InvalidElementCoordinates : The coordinates provided to an interactions operation are invalid.
IMENotAvailable : IME was not available.
IMEEngineActivationFailed : An IME engine could not be started.
InvalidSelector : Argument was an invalid selector (e.g. XPath/CSS).
Hope this post helps you guys…! And Please Correct me if there is something to be added…! ;)
0 on: "Different kind of Exceptions occuring In Selenium WebDriver."