- NoSuchElementException ---> When driver failed to locate element from DOM.
- NoSuchWindowException/NoSuchFrameException ---> While Switching between windows/frames failed to find mentioned window/frame
- NoAlertFoundException ---> Written alert Accept/Dismiss code at the wrong place
- TimeOutException ---> When given command failed to complete task in alloted time
- ElementNotVisibleException ---> Element is present in the DOM but not visible.
- InvalidSessionIDException ---> When session id gets expired
- JavaScriptException ---> When javascript executor contains incorrect JavaScript code
- StaleElementException ---> Once element stopped appearing in the DOM then StaleElementException.
- UnsupportedOperationException---> By mistake used method(deselectAll()) of Select class for single select dropdown. deselectAll() can only be used for multi-select dropdown
- SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 75 ---> It is due to browser version and chrome driver version compatibility mismatch. If your browser is updated with latest version than check compatible chrome driver version. Replace old chrome driver with compatible one.
org.openqa.selenium.nosuchelementexception
org.openqa.selenium.NoSuchWindowException
org.openqa.selenium.NoSuchFrameException
org.openqa.selenium.noalertpresentexception
org.openqa.selenium.TimeoutException
org.openqa.selenium.elementnotvisibleexception
selenium.common.exceptions.invalidsessionidexception
org.openqa.selenium.javascriptexception
org.openqa.selenium.staleelementreferenceexception
java.lang.UnsupportedOperationException
org.openqa.selenium.SessionNotCreatedException
If you are aware of any other types of exception in Selenium then write in the comment.
java.lang.UnsupportedOperationException
org.openqa.selenium.SessionNotCreatedException
If you are aware of any other types of exception in Selenium then write in the comment.
No comments:
Post a Comment