Class Click
java.lang.Object
jp.co.moneyforward.autotest.actions.web.ClickBase
jp.co.moneyforward.autotest.actions.web.Click
- All Implemented Interfaces:
Act<com.microsoft.playwright.Page, com.microsoft.playwright.Page>
An act that models a user behavior, which clicks a specified element.
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.microsoft.playwright.Pageperform(com.microsoft.playwright.Page page, ExecutionEnvironment executionEnvironment) Applies this function the given argument:value(T) and returns the result (R).
-
Constructor Details
-
Click
Creates an object of this class.- Parameters:
selector- A selector to designate an element to click.
-
Click
public Click(Function<com.microsoft.playwright.Page, com.microsoft.playwright.Locator> locatorFunction) Creates an objct of this class.- Parameters:
locatorFunction- A locator for an element to click.
-
-
Method Details
-
perform
public com.microsoft.playwright.Page perform(com.microsoft.playwright.Page page, ExecutionEnvironment executionEnvironment) Description copied from interface:ActApplies this function the given argument:value(T) and returns the result (R).- Parameters:
page- An argument value.executionEnvironment- An environment in which this function is executed.- Returns:
- the function result.
-