Package com.codeborne.selenide.commands
Class Click
java.lang.Object
com.codeborne.selenide.commands.Click
- All Implemented Interfaces:
Command<SelenideElement>
- Direct Known Subclasses:
AppiumClick
,DoubleClick
@ParametersAreNonnullByDefault
public class Click
extends Object
implements Command<SelenideElement>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
click
(Driver driver, org.openqa.selenium.WebElement webElement, ClickOptions clickOptions) protected void
clickViaJS
(Driver driver, org.openqa.selenium.WebElement element, int offsetX, int offsetY) protected void
defaultClick
(Driver driver, org.openqa.selenium.WebElement element, int offsetX, int offsetY) execute
(SelenideElement proxy, WebElementSource locator, Object[] args) protected org.openqa.selenium.WebElement
findElement
(WebElementSource locator, boolean force) protected boolean
isCenter
(int offsetX, int offsetY) protected ClickOptions
-
Constructor Details
-
Click
public Click()
-
-
Method Details
-
execute
@Nonnull public SelenideElement execute(SelenideElement proxy, WebElementSource locator, @Nullable Object[] args) - Specified by:
execute
in interfaceCommand<SelenideElement>
-
options
-
findElement
@Nonnull @CheckReturnValue protected org.openqa.selenium.WebElement findElement(WebElementSource locator, boolean force) -
click
protected void click(Driver driver, org.openqa.selenium.WebElement webElement, ClickOptions clickOptions) -
defaultClick
protected void defaultClick(Driver driver, org.openqa.selenium.WebElement element, int offsetX, int offsetY) -
isCenter
protected boolean isCenter(int offsetX, int offsetY) -
clickViaJS
protected void clickViaJS(Driver driver, org.openqa.selenium.WebElement element, int offsetX, int offsetY)
-