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, ScrollIntoView, ScrollTo, SetSelected, SetValue, Should, ShouldNot, Type, Unfocus

public abstract class FluentCommand extends Object implements Command<SelenideElement>
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();