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

public class RightClick extends Object implements net.serenitybdd.screenplay.Performable
Right-click (context click) on an element.

Sample usage:

     actor.attemptsTo(
         RightClick.on("#element"),
         RightClick.on(MY_TARGET)
     );
 
  • Constructor Details

    • RightClick

      public RightClick(Target target)
  • Method Details

    • on

      public static RightClick on(String selector)
      Right-click on an element identified by a selector.
    • on

      public static RightClick on(Target target)
      Right-click on a Target element.
    • withOptions

      public RightClick withOptions(com.microsoft.playwright.Locator.ClickOptions options)
      Provide additional click options.
    • performAs

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