public class DetoxAction
Created by simonracz on 10/07/2017.
| Modifier and Type | Method and Description |
|---|---|
static androidx.test.espresso.ViewAction |
multiClick(int times) |
static androidx.test.espresso.ViewAction |
scrollInDirection(int direction,
double amountInDP,
double startOffsetPercentX,
double startOffsetPercentY)
Scrolls the View in a direction by the Density Independent Pixel amount.
|
static androidx.test.espresso.ViewAction |
scrollInDirectionStaleAtEdge(int direction,
double amountInDP,
double startOffsetPercentX,
double startOffsetPercentY)
Scroll the view in a direction by a specified amount (DP units).
Similar to , but stops gracefully in the case where the scrolling-edge is reached, by throwing the exception (i.e. so as to make this use case manageable by the user). |
static androidx.test.espresso.ViewAction |
scrollToEdge(int edge)
Scrolls to the edge of the given scrollable view.
|
static androidx.test.espresso.ViewAction |
swipeInDirection(int direction,
boolean fast,
double normalizedOffset,
double normalizedStartingPointX,
double normalizedStartingPointY)
Swipes the View in a direction.
|
static androidx.test.espresso.ViewAction |
takeViewScreenshot() |
static androidx.test.espresso.ViewAction |
tapAtLocation(int x,
int y) |
public static androidx.test.espresso.ViewAction multiClick(int times)
public static androidx.test.espresso.ViewAction tapAtLocation(int x,
int y)
public static androidx.test.espresso.ViewAction scrollToEdge(int edge)
Scrolls to the edge of the given scrollable view.
edge - org.jetbrains.dokka.NodeRenderContent@31da49d4: Direction to scroll (see annotationclass MotionDir)public static androidx.test.espresso.ViewAction scrollInDirection(int direction,
double amountInDP,
double startOffsetPercentX,
double startOffsetPercentY)
Scrolls the View in a direction by the Density Independent Pixel amount.
direction - org.jetbrains.dokka.NodeRenderContent@7af7700d: Direction to scroll (see annotationclass MotionDir)amountInDP - org.jetbrains.dokka.NodeRenderContent@59e4e0f4: Density Independent PixelsstartOffsetPercentX - org.jetbrains.dokka.NodeRenderContent@3a9386f5: Percentage denoting where X-swipe should start, with respect to the scrollable view.startOffsetPercentY - org.jetbrains.dokka.NodeRenderContent@6f92d974: Percentage denoting where Y-swipe should start, with respect to the scrollable view.public static androidx.test.espresso.ViewAction scrollInDirectionStaleAtEdge(int direction,
double amountInDP,
double startOffsetPercentX,
double startOffsetPercentY)
Scroll the view in a direction by a specified amount (DP units).
Similar to , but stops gracefully in the case where the scrolling-edge is reached, by throwing the com.wix.detox.espresso.DetoxAction$scrollInDirection(kotlin.Int,kotlin.Double,kotlin.Double,kotlin.Double) exception (i.e. so as to make this use case manageable by the user).exception DetoxErrors.StaleActionException
direction - org.jetbrains.dokka.NodeRenderContent@2ea4bb93: Direction to scroll (see annotationclass MotionDir)amountInDP - org.jetbrains.dokka.NodeRenderContent@50b91df3: Density Independent PixelsstartOffsetPercentX - org.jetbrains.dokka.NodeRenderContent@76bb8d3f: Percentage denoting where X-swipe should start, with respect to the scrollable view.startOffsetPercentY - org.jetbrains.dokka.NodeRenderContent@f1ba3e5: Percentage denoting where Y-swipe should start, with respect to the scrollable view.com.wix.detox.espresso.DetoxAction$scrollInDirection(kotlin.Int,kotlin.Double,kotlin.Double,kotlin.Double),
exception DetoxErrors.StaleActionExceptionpublic static androidx.test.espresso.ViewAction swipeInDirection(int direction,
boolean fast,
double normalizedOffset,
double normalizedStartingPointX,
double normalizedStartingPointY)
Swipes the View in a direction.
direction - org.jetbrains.dokka.NodeRenderContent@468e9b6: Direction to swipe (see annotationclass MotionDir)fast - org.jetbrains.dokka.NodeRenderContent@1c262a4d: true if fast, false if slownormalizedOffset - org.jetbrains.dokka.NodeRenderContent@365e9e83: or "swipe amount" between 0.0 and 1.0, relative to the screen width/heightnormalizedStartingPointX - org.jetbrains.dokka.NodeRenderContent@64081726: X coordinate of swipe starting point (between 0.0 and 1.0), relative to the view widthnormalizedStartingPointY - org.jetbrains.dokka.NodeRenderContent@27ee6748: Y coordinate of swipe starting point (between 0.0 and 1.0), relative to the view heightpublic static androidx.test.espresso.ViewAction takeViewScreenshot()