Alert クラス
JavaScript の alert/confirm/prompt などブラウザダイアログのテキスト取得、ボタン操作、入力を行うためのクラスです。
継承階層
SystemObject
  SeleniumAlert

名前空間: Selenium
アセンブリ: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
構文
VB 使用例
Dim instance As Alert

Alert には次のメンバーが定義されています。

メソッド
  名前説明
公開メソッド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.
ページ先頭
プロパティ
  名前説明
公開プロパティText
Text displayed on the alert.
ページ先頭
Set dlg = driver.SwitchToAlert()
txt = dlg.Text
dlg.Accept
参照