@Deprecated public enum SwipeElementDirection extends java.lang.Enum<SwipeElementDirection>
Enum Constant and Description |
---|
DOWN
Deprecated.
Down from the center of the upper.
|
LEFT
Deprecated.
To the left from the center of the rightmost.
|
RIGHT
Deprecated.
To the right from the center of the leftmost.
|
UP
Deprecated.
Up from the center of the lower.
|
Modifier and Type | Method and Description |
---|---|
void |
swipe(AppiumDriver<?> driver,
MobileElement element,
int offset1,
int offset2,
int duration)
Deprecated.
Creates the swiping action.
|
static SwipeElementDirection |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static SwipeElementDirection[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SwipeElementDirection UP
public static final SwipeElementDirection DOWN
public static final SwipeElementDirection LEFT
public static final SwipeElementDirection RIGHT
public static SwipeElementDirection[] values()
for (SwipeElementDirection c : SwipeElementDirection.values()) System.out.println(c);
public static SwipeElementDirection valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void swipe(AppiumDriver<?> driver, MobileElement element, int offset1, int offset2, int duration) throws IllegalCoordinatesException
driver
- an instance that extends AppiumDriver
element
- the element that is going to be swipedoffset1
- from the first (starting) element boardoffset2
- from the ending element boardduration
- in millisecondsIllegalCoordinatesException
- when starting/ending coordinates are outside of the given element