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â
doubleTapâ
This method will double tap on the screen / element.
import static io.github.boykaframework.actions.elements.FingerActions.withFinger;
withFinger (sourceElement).doubleTap ();
longPressâ
This method will long press on the screen / element.
import static io.github.boykaframework.actions.elements.FingerActions.withFinger;
withFinger (sourceElement).longPress ();
tapâ
This method will tap on the screen / element.
import static io.github.boykaframework.actions.elements.FingerActions.withFinger;
withFinger (sourceElement).tap ();
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);