AppDriver
Docs
API
GitHub
โบ
Runner
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)
๐จ CLI Options
TODO: Description here.
Last updated on 5/10/2020
โ
Expect
Configuration
โ