.goBack()
Go to the previous screen. On Android, this will use the hardware back button.
Usage
device.goBack()
Returns
Promise
: A promise that resolves after navigating to the previous screen.
Support
Platform | Supported |
---|---|
iOS | Not Supported |
Android | Yes |
Web | Yes |
Examples
Go to previous screen or exit app.
const { device } = require("appdriver");
(async () => {
await device.goBack();
})();