|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface WebDriver.TargetLocator
Used to locate a given frame or window.
| Method Summary | |
|---|---|
WebElement |
activeElement()
Switches to the element that currently has focus, or the body element if this cannot be detected. |
WebDriver |
defaultContent()
Selects either the first frame on the page, or the main document when a page contains iframes. |
WebDriver |
frame(int index)
Select a frame by its (zero-based) index. |
WebDriver |
frame(java.lang.String nameOrIdOrIndex)
Select a frame by its name, id or (zero-based) index. |
WebDriver |
window(java.lang.String nameOrHandle)
Switch the focus of future commands for this driver to the window with the given name/handle. |
| Method Detail |
|---|
WebDriver frame(int index)
index - (zero-based) index
NoSuchFrameException - If the frame cannot be foundWebDriver frame(java.lang.String nameOrIdOrIndex)
nameOrIdOrIndex - the name of the frame window, the id of the <frame> or <iframe> element, or the (zero-based) index
NoSuchFrameException - If the frame cannot be foundWebDriver window(java.lang.String nameOrHandle)
nameOrHandle - The name of the window or the handle as returned by WebDriver.getWindowHandle()
NoSuchWindowException - If the window cannot be foundWebDriver defaultContent()
WebElement activeElement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||