T - self typepublic interface FluentTargetLocator<T>
| Modifier and Type | Method and Description |
|---|---|
FluentWebElement |
activeElement()
Switches to the element that currently has focus within the document currently "switched to",
or the body element if this cannot be detected.
|
AlertImpl |
alert()
Switches to the currently active modal dialog for this particular driver instance.
|
T |
defaultContent()
Selects either the first frame on the page, or the main document when a page contains
iframes.
|
T |
frame(FluentWebElement frameElement)
Select a frame using its previously located
WebElement. |
T |
frame(int index)
Select a frame by its (zero-based) index.
|
T |
frame(String nameOrId)
Select a frame by its name or ID.
|
T |
frame(org.openqa.selenium.WebElement frameElement)
Select a frame using its previously located
WebElement. |
T |
parentFrame()
Change focus to the parent context.
|
T |
window(String nameOrHandle)
Switch the focus of future commands for this driver to the window with the given name/handle.
|
T frame(int index)
index - (zero-based) indexthis reference for chain calls.org.openqa.selenium.NoSuchFrameException - If the frame cannot be foundT frame(String nameOrId)
nameOrId - the name of the frame window, the id of the <frame> or <iframe>
element, or the (zero-based) indexorg.openqa.selenium.NoSuchFrameException - If the frame cannot be foundT frame(org.openqa.selenium.WebElement frameElement)
WebElement.frameElement - The frame element to switch to.org.openqa.selenium.NoSuchFrameException - If the given element is neither an IFRAME nor a FRAME element.org.openqa.selenium.StaleElementReferenceException - If the WebElement has gone stale.T frame(FluentWebElement frameElement)
WebElement.frameElement - The frame element to switch to.org.openqa.selenium.NoSuchFrameException - If the given element is neither an IFRAME nor a FRAME element.org.openqa.selenium.StaleElementReferenceException - If the WebElement has gone stale.T parentFrame()
T window(String nameOrHandle)
nameOrHandle - The name of the window or the handle as returned by
WebDriver.getWindowHandle()org.openqa.selenium.NoSuchWindowException - If the window cannot be foundT defaultContent()
FluentWebElement activeElement()
AlertImpl alert()
org.openqa.selenium.NoAlertPresentException - If the dialog cannot be foundCopyright © 2016 FluentLenium. All Rights Reserved.