org.openqa.selenium
Class WebDriverException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.openqa.selenium.WebDriverException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ElementNotVisibleException, IllegalLocatorException, ImeActivationFailedException, ImeNotAvailableException, InvalidCookieDomainException, InvalidCoordinatesException, InvalidElementStateException, MoveTargetOutOfBoundsException, NotFoundException, SessionNotCreatedException, StaleElementReferenceException, TimeoutException, UnableToSetCookieException, UnhandledAlertException, UnsupportedCommandException, XPathLookupException

public class WebDriverException
extends RuntimeException

See Also:
Serialized Form

Field Summary
static String DRIVER_INFO
           
static String SESSION_ID
           
 
Constructor Summary
WebDriverException()
           
WebDriverException(String message)
           
WebDriverException(String message, Throwable cause)
           
WebDriverException(Throwable cause)
           
 
Method Summary
 void addInfo(String key, String value)
           
 BuildInfo getBuildInformation()
           
 String getDriverInformation()
          Deprecated. To be removed in 2.28
static String getDriverName(StackTraceElement[] stackTraceElements)
           
 String getMessage()
           
 String getSupportUrl()
           
 String getSystemInformation()
           
 void setSessionId(String sessionId)
          Deprecated. To be removed in 2.28
 
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
 

Field Detail

SESSION_ID

public static final String SESSION_ID
See Also:
Constant Field Values

DRIVER_INFO

public static final String DRIVER_INFO
See Also:
Constant Field Values
Constructor Detail

WebDriverException

public WebDriverException()

WebDriverException

public WebDriverException(String message)

WebDriverException

public WebDriverException(Throwable cause)

WebDriverException

public WebDriverException(String message,
                          Throwable cause)
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getSystemInformation

public String getSystemInformation()

getSupportUrl

public String getSupportUrl()

getBuildInformation

public BuildInfo getBuildInformation()

getDriverInformation

@Deprecated
public String getDriverInformation()
Deprecated. To be removed in 2.28


setSessionId

@Deprecated
public void setSessionId(String sessionId)
Deprecated. To be removed in 2.28


getDriverName

public static String getDriverName(StackTraceElement[] stackTraceElements)

addInfo

public void addInfo(String key,
                    String value)


Copyright © 2012. All Rights Reserved.