Interface Act<T,R>

All Known Implementing Classes:
Act.Func, Act.Let, Act.Sink, Act.Source, Click, ClickBase, ClickIfPresent, CloseBrowser, CloseWindow, Navigate, PageAct, Screenshot, SendKey, StoreStorageState, Value, Wait

public interface Act<T,R>
This interface represents the smallest and indivisible unit of action in insdog 's programming model.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    An act that models a function whose input is T and output is R
    static class 
    A leaf act, which represents a value assignment behavior.
    static class 
    A leaf act, which models a "sink".
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default <S> Act<T,S>
    andThen(Act<R,S> next)
     
    static <T,R> Act<T,R>
    create(String name, Function<T,R> action)
     
    static <T,R> Act<T,R>
    create(Function<T,R> func)
     
    default Act<T,R>
    describe(String description)
     
    default String
    Returns a name of an instance of this interface.
    perform(T value, ExecutionEnvironment executionEnvironment)
    Applies this function the given argument: value(T) and returns the result (R).
  • Method Details

    • perform

      R perform(T value, ExecutionEnvironment executionEnvironment)
      Applies this function the given argument: value(T) and returns the result (R).
      Parameters:
      value - An argument value.
      executionEnvironment - An environment in which this function is executed.
      Returns:
      the function result.
    • name

      default String name()
      Returns a name of an instance of this interface.
      Returns:
      A name of this instance.
    • describe

      default Act<T,R> describe(String description)
    • andThen

      default <S> Act<T,S> andThen(Act<R,S> next)
    • create

      static <T,R> Act<T,R> create(Function<T,R> func)
    • create

      static <T,R> Act<T,R> create(String name, Function<T,R> action)