Class RightClick
java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.RightClick
- All Implemented Interfaces:
net.serenitybdd.core.SkipNested,net.serenitybdd.screenplay.Performable
Right-click (context click) on an element.
Sample usage:
actor.attemptsTo(
RightClick.on("#element"),
RightClick.on(MY_TARGET)
);
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RightClickRight-click on an element identified by a selector.static RightClickRight-click on a Target element.<T extends net.serenitybdd.screenplay.Actor>
voidperformAs(T actor) withOptions(com.microsoft.playwright.Locator.ClickOptions options) Provide additional click options.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.serenitybdd.screenplay.Performable
then
-
Constructor Details
-
RightClick
-
-
Method Details
-
on
Right-click on an element identified by a selector. -
on
Right-click on a Target element. -
withOptions
Provide additional click options. -
performAs
public <T extends net.serenitybdd.screenplay.Actor> void performAs(T actor) - Specified by:
performAsin interfacenet.serenitybdd.screenplay.Performable
-