|
||||||||||
| 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 frameIndex)
Select a frame by its (zero-based) index. |
WebDriver |
frame(java.lang.String frameName)
Select a frame by its name or ID. |
WebDriver |
window(java.lang.String windowName)
Switch the focus of future commands for this driver to the window with the given name |
| Method Detail |
|---|
WebDriver frame(int frameIndex)
frameIndex -
NoSuchFrameException - If the frame cannot be foundWebDriver frame(java.lang.String frameName)
frameName -
NoSuchFrameException - If the frame cannot be foundWebDriver window(java.lang.String windowName)
windowName -
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 | |||||||||