java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.Press
All Implemented Interfaces:
net.serenitybdd.core.SkipNested, net.serenitybdd.screenplay.Performable

public class Press extends Object implements net.serenitybdd.screenplay.Performable
Press keyboard key(s). More info: https://playwright.dev/java/docs/api/class-keyboard#keyboardpresskey-options
  • Constructor Summary

    Constructors
    Constructor
    Description
    Press(String keysSequence)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Press
    keys(String... keys)
     
    <T extends net.serenitybdd.screenplay.Actor>
    void
    performAs(T actor)
     
    net.serenitybdd.screenplay.Performable
    withOptions(com.microsoft.playwright.Keyboard.PressOptions options)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.serenitybdd.screenplay.Performable

    then
  • Constructor Details

    • Press

      public Press(String keysSequence)
  • Method Details

    • keys

      public static Press keys(String... keys)
    • withOptions

      public net.serenitybdd.screenplay.Performable withOptions(com.microsoft.playwright.Keyboard.PressOptions options)
    • performAs

      public <T extends net.serenitybdd.screenplay.Actor> void performAs(T actor)
      Specified by:
      performAs in interface net.serenitybdd.screenplay.Performable