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,Unhighlight
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidexecute(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:
executein interfaceCommand<SelenideElement>
-
execute
-
execute(WebElementSource, Object[])instead.