java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.Focus

public class Focus extends Object
Focus on an element or blur (unfocus) the currently focused element.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.serenitybdd.screenplay.Performable
    Remove focus from the currently focused element.
    static net.serenitybdd.screenplay.Performable
    blurElement(String selector)
    Remove focus from a specific element.
    static net.serenitybdd.screenplay.Performable
    on(String selector)
    Focus on the specified element.

    Methods inherited from class java.lang.Object

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

    • Focus

      public Focus()
  • Method Details

    • on

      public static net.serenitybdd.screenplay.Performable on(String selector)
      Focus on the specified element.
    • blur

      public static net.serenitybdd.screenplay.Performable blur()
      Remove focus from the currently focused element.
    • blurElement

      public static net.serenitybdd.screenplay.Performable blurElement(String selector)
      Remove focus from a specific element.