AppDriver
Docs
API
GitHub
›
Gestures
Introduction
API Reference
Top-Level
Device
Element
Elements
Matchers
Gestures
Alert
Expect
Runner
🔨 CLI Options
Configuration
Reporters
Device
🔨 .name
🔨 .platform
.session
.wait(duration)
.waitFor(condition, options)
.while(condition, action, options)
🔨 .restartApp()
🔨 .resetApp()
.navigate(url)
.goBack()
.isPortrait()
.setPortrait()
.setLandscape()
.getViewport()
.takeScreenshot(options)
.startScreenRecording(options)
.stopScreenRecording()
.isKeyboardVisible()
.hideKeyboard()
🔨 .getContext()
🔨 .getContexts()
🔨 .switchContext(contextId)
🔨 .switchToWebContext()
🔨 .switchToNativeContext()
.execute(script, ...params)
.scroll(options)
.swipe(options)
.swipeUp(options)
.swipeDown(options)
.swipeLeft(options)
.swipeRight(options)
🔨 .performGesture(gesture)
Element
.getRef()
.tap(options)
.doubleTap(options)
.longPress(options)
.setValue(value)
.typeText(text)
.clearText()
🔨 .tapReturnKey()
🔨 .tapBackspaceKey()
.getText(options)
.getValue()
.exists()
.isVisible()
.isDisabled()
.isSelected()
.isFocused()
.getAttribute(attribute)
.getLocation(options)
.getSize()
.takeScreenshot(options)
.waitFor(condition, options)
.waitToBeVisible(options)
.waitToBeInvisible(options)
.waitToExist(options)
.waitToNotExist(options)
.waitToBeFocused(options)
.findElement(matcher, options)
.findElements(matcher, options)
.swipe(options)
.swipeUp(options)
.swipeDown(options)
.swipeLeft(options)
.swipeRight(options)
Matchers
.id(id)
.label(label)
.text(text)
.type(type)
🔨 .iosPredicate(predicate)
🔨 .uiAutomator(selector)
🔨 .xPath(query)
🔨 .css(css)
Gestures
🔨 .series(gestures)
🔨 .parallel(gestures)
🔨 .moveTo(options)
🔨 .press()
🔨 .release()
🔨 .wait(duration)
🔨 .tap(options)
🔨 .doubleTap(options)
🔨 .longPress(options)
🔨 .swipe(options)
🔨 .swipeUp(options)
🔨 .swipeDown(options)
🔨 .swipeLeft(options)
🔨 .swipeRight(options)
🔨 .pinch(options)
🔨 .spread(options)
⚠️ .rotate(options)
⚠️ .dragAndDrop(options)
Alert
.accept()
.dismiss()
.getText()
.setValue(value)
.isVisible()
.waitToBeVisible(options)
Expect
.not
.toHaveValue(value)
.toHaveText(text)
.toExist()
.toBeVisible()
.toBeDisabled()
.toBeSelected()
.toBeFocused()
.toHaveAttribute(attribute, value)
.toEqual(value)
🔨 .toHaveLength(length)
🔨 .toBeFalsy()
🔨 .toBeTruthy()
🔨 .toMatch(pattern)
🔨 .toBeLessThan(value)
🔨 .toBeLessThanOrEqual(value)
🔨 .toBeMoreThan(value)
🔨 .toBeMoreThanOrEqual(value)
Proposals
Runner
🔬 Configuration
Device
🔬 .isReal
🔬 .getSource()
🔬 .getGeoLocation()
🔬 .setGeoLocation(options)
🔬 .getClipboard(options)
🔬 .setClipboard(value, options)
🔬 .toggleAirplaneMode()
🔬 .toggleWifi()
🔬 .toggleLocation()
🔬 .sendSms(options)
🔬 .getSettings()
🔬 .setSettings(settings)
🔬 .readFile(filePath)
🔬 .writeFile(filePath, data)
Element
🔬 .while(condition, action, options)
🔬 .swipeIntoView(options)
Matchers
🔬 .ref(ref)
Utils
🔬 .selectPlatform(options)
⚠️ .dragAndDrop(options)
TODO: Description here.
Last updated on 5/10/2020
←
⚠️ .rotate(options)
.accept()
→