public interface ScrollStepStrategy
Modifier and Type | Method and Description |
---|---|
void |
beginScrolling(DroidDriver driver,
Finder containerFinder,
Finder itemFinder,
Direction.PhysicalDirection direction)
Called only if this step is at the beginning of a series of scroll steps with regard to the
given arguments.
|
void |
doScroll(UiElement container,
Direction.PhysicalDirection direction)
Performs the scroll action on
container . |
void |
endScrolling(DroidDriver driver,
Finder containerFinder,
Finder itemFinder,
Direction.PhysicalDirection direction)
Called only if this step is at the end of a series of scroll steps with regard to the given
arguments.
|
Direction.DirectionConverter |
getDirectionConverter()
Returns the
Direction.DirectionConverter . |
boolean |
scroll(DroidDriver driver,
Finder containerFinder,
Direction.PhysicalDirection direction)
Tries to scroll
containerFinder in direction . |
java.lang.String |
toString()
It is recommended that this method return a description to help debugging.
|
boolean scroll(DroidDriver driver, Finder containerFinder, Direction.PhysicalDirection direction)
containerFinder
in direction
. Returns whether scrolling is
effective.driver
- a DroidDriver instancecontainerFinder
- Finder for the container that can scroll, for instance a ListViewdirection
- specifies where the view port will move instead of the fingerDirection.DirectionConverter getDirectionConverter()
Direction.DirectionConverter
.void beginScrolling(DroidDriver driver, Finder containerFinder, Finder itemFinder, Direction.PhysicalDirection direction)
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 fingervoid endScrolling(DroidDriver driver, Finder containerFinder, Finder itemFinder, Direction.PhysicalDirection direction)
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 fingervoid doScroll(UiElement container, Direction.PhysicalDirection direction)
container
. Subclasses can override this to customize the
scroll action, for example, to adjust the scroll margins.container
- the container that can scrolldirection
- specifies where the view port will move instead of the fingerjava.lang.String toString()
toString
in class java.lang.Object