Package com.codeborne.selenide
Class FluentCommand
java.lang.Object
com.codeborne.selenide.FluentCommand
- All Implemented Interfaces:
Command<SelenideElement>
- Direct Known Subclasses:
Append
,AppiumDoubleClick
,AppiumScrollTo
,AppiumSwipeTo
,As
,Clear
,Click
,ContextClick
,DragAndDrop
,HideKeyboard
,Highlight
,Hover
,Paste
,Press
,PressEnter
,PressEscape
,PressTab
,Scroll
,ScrollIntoView
,ScrollTo
,SetSelected
,SetValue
,Should
,ShouldNot
,Type
,Unfocus
Almost the same as
Command
, but returns SelenideElement
(non-nullable!).
Convenient to write fluent apis (that may be chained):
$("button")
.execute(highlight()) // custom command
.execute(pressEscape()) // another custom command
.click();
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
execute
(WebElementSource locator, Object @Nullable [] args) execute
(SelenideElement proxy, WebElementSource locator, Object @Nullable [] args) Deprecated.
-
Constructor Details
-
FluentCommand
public FluentCommand()
-
-
Method Details
-
execute
@CanIgnoreReturnValue @Deprecated public SelenideElement execute(SelenideElement proxy, WebElementSource locator, Object @Nullable [] args) Deprecated.It's easier to override methodexecute(WebElementSource, Object[])
instead.- Specified by:
execute
in interfaceCommand<SelenideElement>
-
execute
-
execute(WebElementSource, Object[])
instead.