protected class RemoteWebDriver.RemoteTargetLocator extends java.lang.Object implements WebDriver.TargetLocator
| Modifier | Constructor and Description |
|---|---|
protected |
RemoteTargetLocator() |
| Modifier and Type | Method and Description |
|---|---|
WebElement |
activeElement()
Switches to the element that currently has focus within the document currently "switched to",
or the body element if this cannot be detected.
|
Alert |
alert()
Switches to the currently active modal dialog for this particular driver instance.
|
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 |
frame(WebElement frameElement)
Select a frame using its previously located
WebElement. |
WebDriver |
parentFrame()
Change focus to the parent context.
|
WebDriver |
window(java.lang.String windowName)
Switch the focus of future commands for this driver to the window with the given name/handle.
|
public WebDriver frame(int frameIndex)
WebDriver.TargetLocatorframe in interface WebDriver.TargetLocatorframeIndex - (zero-based) indexpublic WebDriver frame(java.lang.String frameName)
WebDriver.TargetLocatorframe in interface WebDriver.TargetLocatorframeName - the name of the frame window, the id of the <frame> or <iframe>
element, or the (zero-based) indexpublic WebDriver frame(WebElement frameElement)
WebDriver.TargetLocatorWebElement.frame in interface WebDriver.TargetLocatorframeElement - The frame element to switch to.WebDriver.findElement(By)public WebDriver parentFrame()
WebDriver.TargetLocatorparentFrame in interface WebDriver.TargetLocatorpublic WebDriver window(java.lang.String windowName)
WebDriver.TargetLocatorwindow in interface WebDriver.TargetLocatorwindowName - The name of the window or the handle as returned by
WebDriver.getWindowHandle()public WebDriver defaultContent()
WebDriver.TargetLocatordefaultContent in interface WebDriver.TargetLocatorpublic WebElement activeElement()
WebDriver.TargetLocatoractiveElement in interface WebDriver.TargetLocatorpublic Alert alert()
WebDriver.TargetLocatoralert in interface WebDriver.TargetLocator