|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.selenium.internal.seleniumemulation.Windows
public class Windows
| Constructor Summary | |
|---|---|
Windows(WebDriver driver)
|
|
| Method Summary | |
|---|---|
void |
selectBlankWindow(WebDriver driver)
Selects the only _blank window. |
void |
selectFrame(WebDriver driver,
java.lang.String locator)
|
void |
selectWindow(WebDriver driver,
java.lang.String windowID)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Windows(WebDriver driver)
| Method Detail |
|---|
public void selectWindow(WebDriver driver,
java.lang.String windowID)
public void selectFrame(WebDriver driver,
java.lang.String locator)
public void selectBlankWindow(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.
NoSuchWindowException - if no window with window.name = null is found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||