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

public class Hover extends Object implements net.serenitybdd.screenplay.Performable
Hover over an element.

Sample usage:

     actor.attemptsTo(
         Hover.over("#menu-item"),
         Hover.over(DROPDOWN_TRIGGER)
     );
 
  • Constructor Summary

    Constructors
    Constructor
    Description
    Hover(Target target)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Hover
    over(String selector)
    Hover over an element identified by a selector.
    static Hover
    over(Target target)
    Hover over a Target element.
    <T extends net.serenitybdd.screenplay.Actor>
    void
    performAs(T actor)
     
    withOptions(com.microsoft.playwright.Locator.HoverOptions options)
    Provide additional hover 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

    • Hover

      public Hover(Target target)
  • Method Details

    • over

      public static Hover over(String selector)
      Hover over an element identified by a selector.
    • over

      public static Hover over(Target target)
      Hover over a Target element.
    • withOptions

      public Hover withOptions(com.microsoft.playwright.Locator.HoverOptions options)
      Provide additional hover options.
    • performAs

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