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

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

    Constructors
    Constructor Description
    Press​(java.lang.String keysSequence)  
  • Method Summary

    Modifier and Type Method Description
    static Press keys​(java.lang.String... keys)  
    <T extends Actor>
    void
    performAs​(T actor)  
    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​(java.lang.String keysSequence)
  • Method Details

    • keys

      public static Press keys​(java.lang.String... keys)
    • withOptions

      public Performable withOptions​(com.microsoft.playwright.Keyboard.PressOptions options)
    • performAs

      public <T extends Actor> void performAs​(T actor)
      Specified by:
      performAs in interface Performable