Package org.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
public interface FluentActions<T,E extends FluentWebElement> extends FluentJavascriptActions
All actions that can be used on the list or on a web element.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
click()
Perform a click.T
contextClick()
Perform a context click.T
doubleClick()
Perform a double click.Fill<E>
fill()
Construct a Fill Builder in order to allow easy fill of visible input fields.FillSelect<E>
fillSelect()
Construct a Fill Select Builder in order to allow easy fill of visible input fields.T
frame()
Select a frame using this element.T
hoverOver()
Hovers the mouse over the current element.T
submit()
Perform a form submission.T
waitAndClick()
Helper method that: a) waits at most 5 seconds for element b) scrolls centrally into it c) clicks on itT
waitAndClick(java.time.Duration duration)
Helper method that: a) waits for element b) scrolls centrally into it c) clicks on itT
write(java.lang.String... text)
Write text in the element.-
Methods inherited from interface org.fluentlenium.core.action.FluentJavascriptActions
modifyAttribute, scrollIntoView, scrollIntoView, scrollToCenter
-
-
-
-
Method Detail
-
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
T waitAndClick(java.time.Duration duration)
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
T write(java.lang.String... text)
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
Fill<E> 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.
-
-