@christian-bromann/webdriverio
Version:
A nodejs bindings implementation for selenium 2.0/webdriver
24 lines (21 loc) • 496 B
JavaScript
/**
*
* Reset the device by clearing the device un- and reinstalling app package (if existing).
*
* <example>
:resetAppSync.js
browser.reset()
* </example>
*
* @see https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/appium-bindings.md#reset
* @type mobile
* @for android
*
*/
let reset = function () {
return this.requestHandler.create({
path: '/session/:sessionId/appium/app/reset',
method: 'POST'
})
}
export default reset