FingerActions
Static methodsâ
withFinger (locator)
â
This will return IFingerActions
which will expose different methods to handle all finger related actions on an element.
IFingerActions fingerActions = FingerActions.withFinger (locator);
withFinger
â
This will return IFingerActions
which will expose different methods to handle all finger related actions on the screen.
IFingerActions fingerActions = FingerActions.withFinger ();
Instance methodsâ
swipe
â
This method will swipe on the screen / element, i.e: finger will move from center of the screen to mentioned direction of the screen / element.
import static io.github.boykaframework.actions.elements.FingerActions.withFinger;
. . .
withFinger (sourceElement).swipe (SwipeDirection.UP);
dragTo (target)
â
This method will drag the source element to the target element.
import static io.github.boykaframework.actions.elements.FingerActions.withFinger;
. . .
Locator source = // source element to drag
Locator target = // target element to drag the source to
withFinger (source).dragTo (target);
swipeTill
â
This method will swipe left on the screen, i.e: finger will move from center of the screen to left of the screen.
import static io.github.boykaframework.actions.elements.FingerActions.withFinger;
. . .
withFinger (sourceElement).swipeTill (SwipeDirection.UP);