Window クラス
現在のブラウザウィンドウの位置・サイズ、タイトル、向きなどを取得・変更するためのクラスです。
継承階層
SystemObject
  SeleniumWindow

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

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

メソッド
  名前説明
公開メソッドActivate
Change focus to this window.
公開メソッドClose
現在のウィンドウを閉じます。
公開メソッドEquals
指定したインスタンスが等しいとみなされるかを判定します。
(Overrides ObjectEquals(Object).)
公開メソッドFullScreen
Set the current window full screen.
公開メソッドGetHashCode
ハッシュコードを返します。
(Overrides ObjectGetHashCode.)
公開メソッドMaximize
Maximizes the current window if it is not already maximized.
公開メソッドPosition
Gets the position of the browser window relative to the upper-left corner of the screen.
公開メソッドSetPosition
Sets the position of the browser window relative to the upper-left corner of the screen.
公開メソッドSetSize
Sets the size of the outer browser window, including title bars and window borders.
公開メソッドSize
Gets the size of the outer browser window, including title bars and window borders.
公開メソッドSwitchToNextWindow
Switch to the next available window
公開メソッドSwitchToPreviousWindow
Switch to the previous focused window.
公開メソッドSwitchToWindowByName
Change focus to another window.
公開メソッドSwitchToWindowByTitle
Change focus to another window.
ページ先頭
プロパティ
  名前説明
公開プロパティHandle
Returns the handle of the current window.
公開プロパティTitle
現在のページタイトルを取得します。
ページ先頭
Set win1 = driver.Window
driver.SwitchToNextWindow().Close
win1.Activate();
txt = dlg.Text
dlg.Accept
参照