T - self typepublic class FluentTargetLocatorImpl<T> extends java.lang.Object implements FluentTargetLocator<T>
WebDriver.TargetLocator.| Constructor and Description |
|---|
FluentTargetLocatorImpl(T self,
ComponentInstantiator componentInstantiator,
org.openqa.selenium.WebDriver.TargetLocator targetLocator)
Creates a new fluent target locator
|
| 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(java.lang.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(java.lang.String nameOrHandle)
Switch the focus of future commands for this driver to the window with the given name/handle.
|
public FluentTargetLocatorImpl(T self, ComponentInstantiator componentInstantiator, org.openqa.selenium.WebDriver.TargetLocator targetLocator)
self - object returned by this target locatorcomponentInstantiator - component instantiatortargetLocator - underlying target locatorpublic T frame(int index)
FluentTargetLocatorframe in interface FluentTargetLocator<T>index - (zero-based) indexthis reference for chain calls.public T frame(java.lang.String nameOrId)
FluentTargetLocatorframe in interface FluentTargetLocator<T>nameOrId - the name of the frame window, the id of the <frame> or <iframe>
element, or the (zero-based) indexpublic T frame(org.openqa.selenium.WebElement frameElement)
FluentTargetLocatorWebElement.frame in interface FluentTargetLocator<T>frameElement - The frame element to switch to.public T frame(FluentWebElement frameElement)
FluentTargetLocatorWebElement.frame in interface FluentTargetLocator<T>frameElement - The frame element to switch to.public T parentFrame()
FluentTargetLocatorparentFrame in interface FluentTargetLocator<T>public T window(java.lang.String nameOrHandle)
FluentTargetLocatorwindow in interface FluentTargetLocator<T>nameOrHandle - The name of the window or the handle as returned by
WebDriver.getWindowHandle()public T defaultContent()
FluentTargetLocatordefaultContent in interface FluentTargetLocator<T>public FluentWebElement activeElement()
FluentTargetLocatoractiveElement in interface FluentTargetLocator<T>public AlertImpl alert()
FluentTargetLocatoralert in interface FluentTargetLocator<T>Copyright © 2018 FluentLenium. All Rights Reserved.