mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
1.1 KiB
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()device.reloadReactNative()device.installApp()device.uninstallApp()device.openURL(url)device.sendUserNotification(params)
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.