Files
Detox/docs/APIRef.DeviceObjectAPI.md
T
2017-05-10 22:23:06 +03:00

1.1 KiB

The device Object

device is globally available in every test file, it enables control over the current attached device (currently only simulatoris supported).

Methods

device.relaunchApp()

Kill and relaunch the app defined in the current configuration.

device.reloadReactNative()

If this is a react native app, reload react native JS bundle. This action is much faster than device.relaunchApp(), and is recommended if you just need to reset your react native logic.

device.installApp()

Install the app file defined in the current configuration.

device.uninstallApp()

Uninstall the app defined in the current configuration.

device.openURL(url)

device.sendUserNotification(params)