Package io.fluentlenium.core.action
Interface FluentActions<T,
E extends FluentWebElement>
- Type Parameters:
T
-this
object type to chain method callsE
- type of fluent web element
- All Superinterfaces:
FluentJavascriptActions
- All Known Subinterfaces:
FluentList<E>
- All Known Implementing Classes:
FluentListImpl
,FluentWebElement
All actions that can be used on the list or on a web element.
-
Method Summary
Modifier and TypeMethodDescriptionclick()
Perform a click.Perform a context click.Perform a double click.fill()
Construct a Fill Builder in order to allow easy fill of visible input fields.Construct a Fill Select Builder in order to allow easy fill of visible input fields.frame()
Select a frame using this element.Hovers the mouse over the current element.submit()
Perform a form submission.Helper method that: a) waits at most 5 seconds for element b) scrolls centrally into it c) clicks on itwaitAndClick
(Duration duration) Helper method that: a) waits for element b) scrolls centrally into it c) clicks on itWrite text in the element.Methods inherited from interface io.fluentlenium.core.action.FluentJavascriptActions
modifyAttribute, scrollIntoView, scrollIntoView, scrollToCenter
-
Method Details
-
click
T click()Perform a click.- Returns:
- this object reference to chain methods calls
- See Also:
-
WebElement.click()
-
doubleClick
T doubleClick()Perform a double click.- Returns:
- this object reference to chain methods calls
-
contextClick
T contextClick()Perform a context click.- Returns:
- this object reference to chain methods calls
-
waitAndClick
T waitAndClick()Helper method that: a) waits at most 5 seconds for element b) scrolls centrally into it c) clicks on it- Returns:
- this object reference to chain methods calls
-
waitAndClick
Helper method that: a) waits for element b) scrolls centrally into it c) clicks on it- Parameters:
duration
- - enabled to override default 5 seconds of waiting- Returns:
- this object reference to chain methods calls
-
submit
T submit()Perform a form submission.- Returns:
- this object reference to chain methods calls.
- See Also:
-
WebElement.submit()
-
write
Write text in the element.- Parameters:
text
- one or many text to send.- Returns:
- this object reference to chain methods calls.
- See Also:
-
WebElement.sendKeys(CharSequence...)
-
fill
Construct a Fill Builder in order to allow easy fill of visible input fields.- Returns:
- Fill builder
-
fillSelect
FillSelect<E> fillSelect()Construct a Fill Select Builder in order to allow easy fill of visible input fields.- Returns:
- Fill select builder
-
hoverOver
T hoverOver()Hovers the mouse over the current element.By default, this is a convenience method for calling
element.mouse().moveToElement()
.- Returns:
- the current element
-
frame
T frame()Select a frame using this element.- Returns:
- this object reference to chain methods calls.
-