org.openqa.selenium.internal.seleniumemulation
Class Windows
java.lang.Object
org.openqa.selenium.internal.seleniumemulation.Windows
public class Windows
- extends Object
Constructor Summary |
Windows(org.openqa.selenium.WebDriver driver)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Windows
public Windows(org.openqa.selenium.WebDriver driver)
selectWindow
public void selectWindow(org.openqa.selenium.WebDriver driver,
String windowID)
selectFrame
public void selectFrame(org.openqa.selenium.WebDriver driver,
String locator)
selectBlankWindow
public void selectBlankWindow(org.openqa.selenium.WebDriver driver)
- Selects the only
_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.
- Throws:
org.openqa.selenium.NoSuchWindowException
- if no window with window.name = null
is found.
Copyright © 2012. All Rights Reserved.