Package org.openqa.selenium
Class UnhandledAlertException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.openqa.selenium.WebDriverException
-
- org.openqa.selenium.UnhandledAlertException
-
- All Implemented Interfaces:
java.io.Serializable
public class UnhandledAlertException extends WebDriverException
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openqa.selenium.WebDriverException
BASE_SUPPORT_URL, DRIVER_INFO, SESSION_ID
-
-
Constructor Summary
Constructors Constructor Description UnhandledAlertException(java.lang.String message)
UnhandledAlertException(java.lang.String message, java.lang.String alertText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getAlert()
java.lang.String
getAlertText()
-
Methods inherited from class org.openqa.selenium.WebDriverException
addInfo, getAdditionalInformation, getBuildInformation, getDriverName, getMessage, getRawMessage, getSupportUrl, getSystemInformation
-
-
-
-
Method Detail
-
getAlertText
public java.lang.String getAlertText()
- Returns:
- the text of the unhandled alert.
-
getAlert
@Beta public java.util.Map<java.lang.String,java.lang.String> getAlert()
-
-