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 Details

    • andAlignToTop

      public Scroll.ScrollToElement andAlignToTop()
      Align the element to the top of the viewport after scrolling.
    • andAlignToCenter

      public Scroll.ScrollToElement andAlignToCenter()
      Align the element to the center of the viewport after scrolling.
    • andAlignToBottom

      public Scroll.ScrollToElement 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:
      performAs in interface net.serenitybdd.screenplay.Performable