| Alert Class |
Namespace: Selenium
Dim instance As Alert
The Alert type exposes the following members.
| Name | Description | |
|---|---|---|
| Accept |
Accepts the alert.
| |
| Dismiss |
Dismisses the alert.
| |
| SendKeys |
Sends keys to the alert.
| |
| SetCredentials |
Sets the user name and password in an alert prompting for credentials.
|
Set dlg = driver.SwitchToAlert()
txt = dlg.Text
dlg.Accept