org.openqa.selenium
Class NoSuchElementException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.openqa.selenium.WebDriverException
                  extended by org.openqa.selenium.NotFoundException
                      extended by org.openqa.selenium.NoSuchElementException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidSelectorException

public class NoSuchElementException
extends NotFoundException

Thrown by WebDriver.findElement(By by) and WebElement.findElement(By by).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openqa.selenium.WebDriverException
DRIVER_INFO, SESSION_ID
 
Constructor Summary
NoSuchElementException(String reason)
           
NoSuchElementException(String reason, Throwable cause)
           
 
Method Summary
 String getSupportUrl()
           
 
Methods inherited from class org.openqa.selenium.WebDriverException
addInfo, getAdditionalInformation, getBuildInformation, getDriverName, getMessage, getSystemInformation
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoSuchElementException

public NoSuchElementException(String reason)

NoSuchElementException

public NoSuchElementException(String reason,
                              Throwable cause)
Method Detail

getSupportUrl

public String getSupportUrl()
Overrides:
getSupportUrl in class WebDriverException


Copyright © 2013. All Rights Reserved.