public class SeleneseRunnerWindows
extends com.thoughtworks.selenium.webdriven.Windows
| Constructor and Description |
|---|
SeleneseRunnerWindows(Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
selectBlankWindow(org.openqa.selenium.WebDriver driver)
Selects the only
_blank window. |
void |
selectFrame(org.openqa.selenium.WebDriver driver,
String locator) |
void |
selectPopUp(org.openqa.selenium.WebDriver driver,
String windowID) |
void |
selectWindow(org.openqa.selenium.WebDriver driver,
String windowID) |
public SeleneseRunnerWindows(Context context)
public void selectWindow(org.openqa.selenium.WebDriver driver,
String windowID)
selectWindow in class com.thoughtworks.selenium.webdriven.Windowspublic void selectPopUp(org.openqa.selenium.WebDriver driver,
String windowID)
selectPopUp in class com.thoughtworks.selenium.webdriven.Windowspublic void selectFrame(org.openqa.selenium.WebDriver driver,
String locator)
selectFrame in class com.thoughtworks.selenium.webdriven.Windowspublic void selectBlankWindow(org.openqa.selenium.WebDriver driver)
_blank window. A window open with target='_blank'
will have a window.name = null.
This method assumes that there will only be one single _blank window and selects
the first one with no name. Therefore if for any reasons there are multiple windows with
window.name = null the first found one will be selected.
If none of the windows have window.name = null the last selected one will be
re-selected and a SeleniumException will be thrown.
selectBlankWindow in class com.thoughtworks.selenium.webdriven.Windowsorg.openqa.selenium.NoSuchWindowException - if no window with window.name = null is found.Copyright © 2016. All rights reserved.