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>

public class Click extends ClickBase
An act that models a user behavior, which clicks a specified element.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface jp.co.moneyforward.autotest.framework.action.Act

    Act.Func<T,R>, Act.Let<T>, Act.Sink<T>, Act.Source<T>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Click(String selector)
    Creates an object of this class.
    Click(Function<com.microsoft.playwright.Page, com.microsoft.playwright.Locator> locatorFunction)
    Creates an objct of this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.microsoft.playwright.Page
    perform(com.microsoft.playwright.Page page, ExecutionEnvironment executionEnvironment)
    Applies this function the given argument: value(T) and returns the result (R).

    Methods inherited from class jp.co.moneyforward.autotest.actions.web.ClickBase

    name

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Click

      public Click(String selector)
      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: Act
      Applies 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.