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

public class ScrollIntoView extends Object implements net.serenitybdd.screenplay.Performable
Scroll an element into view.

Sample usage:

     actor.attemptsTo(
         ScrollIntoView.element("#footer"),
         ScrollIntoView.element(FOOTER_ELEMENT)
     );
 
  • Constructor Details

    • ScrollIntoView

      public ScrollIntoView(Target target)
  • Method Details

    • element

      public static ScrollIntoView element(String selector)
      Scroll an element identified by a selector into view.
    • element

      public static ScrollIntoView element(Target target)
      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:
      performAs in interface net.serenitybdd.screenplay.Performable