org.openqa.selenium
Class UnhandledAlertException

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.UnhandledAlertException
All Implemented Interfaces:
Serializable

public class UnhandledAlertException
extends WebDriverException

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openqa.selenium.WebDriverException
DRIVER_INFO, SESSION_ID
 
Constructor Summary
UnhandledAlertException(String commandName)
           
UnhandledAlertException(String commandName, String alertText)
           
 
Method Summary
 Alert getAlert()
          Deprecated. To be removed in 2.31, use getAlertText() instead.
 String getAlertText()
          Returns the text of the unhandled alert.
 
Methods inherited from class org.openqa.selenium.WebDriverException
addInfo, getAdditionalInformation, getBuildInformation, getDriverName, getMessage, getSupportUrl, 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

UnhandledAlertException

public UnhandledAlertException(String commandName)

UnhandledAlertException

public UnhandledAlertException(String commandName,
                               String alertText)
Method Detail

getAlertText

public String getAlertText()
Returns the text of the unhandled alert.


getAlert

@Deprecated
public Alert getAlert()
Deprecated. To be removed in 2.31, use getAlertText() instead.

Returns null if alert text could not be retrieved.



Copyright © 2013. All Rights Reserved.