Class ScrollIntoView
java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.ScrollIntoView
- All Implemented Interfaces:
net.serenitybdd.core.SkipNested,net.serenitybdd.screenplay.Performable
Scroll an element into view.
Sample usage:
actor.attemptsTo(
ScrollIntoView.element("#footer"),
ScrollIntoView.element(FOOTER_ELEMENT)
);
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScrollIntoViewScroll an element identified by a selector into view.static ScrollIntoViewScroll a Target element into view.<T extends net.serenitybdd.screenplay.Actor>
voidperformAs(T actor) withOptions(com.microsoft.playwright.Locator.ScrollIntoViewIfNeededOptions options) Provide additional scroll 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
-
ScrollIntoView
-
-
Method Details
-
element
Scroll an element identified by a selector into view. -
element
Scroll a Target element into view. -
withOptions
public ScrollIntoView withOptions(com.microsoft.playwright.Locator.ScrollIntoViewIfNeededOptions options) Provide additional scroll options. -
performAs
public <T extends net.serenitybdd.screenplay.Actor> void performAs(T actor) - Specified by:
performAsin interfacenet.serenitybdd.screenplay.Performable
-