public interface Scroller
Modifier and Type | Method and Description |
---|---|
UiElement |
scrollTo(DroidDriver driver,
Finder containerFinder,
Finder itemFinder)
Scrolls
containerFinder in both directions if necessary to find itemFinder ,
which is a descendant of containerFinder . |
UiElement |
scrollTo(DroidDriver driver,
Finder containerFinder,
Finder itemFinder,
Direction.PhysicalDirection direction)
Scrolls
containerFinder in direction if necessary to find itemFinder ,
which is a descendant of containerFinder . |
UiElement scrollTo(DroidDriver driver, Finder containerFinder, Finder itemFinder)
containerFinder
in both directions if necessary to find itemFinder
,
which is a descendant of containerFinder
.driver
- a DroidDriver instancecontainerFinder
- Finder for the container that can scroll, for instance a ListViewitemFinder
- Finder for the desired item; relative to containerFinder
itemFinder
ElementNotFoundException
- If no match is foundUiElement scrollTo(DroidDriver driver, Finder containerFinder, Finder itemFinder, Direction.PhysicalDirection direction)
containerFinder
in direction
if necessary to find itemFinder
,
which is a descendant of containerFinder
.driver
- a DroidDriver instancecontainerFinder
- Finder for the container that can scroll, for instance a ListViewitemFinder
- Finder for the desired item; relative to containerFinder
direction
- specifies where the view port will move instead of the fingeritemFinder
ElementNotFoundException
- If no match is found