Class Scroll.ScrollToElement
java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.Scroll.ScrollToElement
- All Implemented Interfaces:
net.serenitybdd.core.SkipNested,net.serenitybdd.screenplay.Performable
- Enclosing class:
- Scroll
public static class Scroll.ScrollToElement
extends Object
implements net.serenitybdd.screenplay.Performable
Element scrolling with alignment options.
-
Method Summary
Modifier and TypeMethodDescriptionAlign the element to the bottom of the viewport after scrolling.Align the element to the center of the viewport after scrolling.Align the element to the top of the viewport after scrolling.<T extends net.serenitybdd.screenplay.Actor>
voidperformAs(T actor) 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
-
Method Details
-
andAlignToTop
Align the element to the top of the viewport after scrolling. -
andAlignToCenter
Align the element to the center of the viewport after scrolling. -
andAlignToBottom
Align the element to the bottom of the viewport after scrolling. -
performAs
public <T extends net.serenitybdd.screenplay.Actor> void performAs(T actor) - Specified by:
performAsin interfacenet.serenitybdd.screenplay.Performable
-