• selector - optional selector to scope the assertion to a nested element

The scrollableY() assertion mirrors the corresponding interactor property and asserts that an element is scrollable in the vertical direction. If the corresponding property has been redefined, a new assertion is defined which does not accept a selector.

// with a scoped selector
await new Interactor('.page')

// without a scoped selector
await new Interactor('.has-overflow-x')

// when the corresponding property is overridden
@interactor class PageInteractor {
  scrollableY = scrollableY('.content')

// the scoped selector argument is no longer available
await new PageInteractor('.about-page')