.navigate(url)
Navigate to the given url. In the native context, this will open a deep link.
Deep links are a great way to speed up tests. They can act as a shortcut to specific states within an application where traditionally complex flows maybe required as part of the test setup phase (e.g. before and beforeEach).
device.navigate(url)
Parameters
url(String): Url to navigate to.
Returns
Promise: A promise that resolves once navigation is complete.
Support
| Platform | Supported |
|---|---|
| iOS | Yes |
| Android | Yes |
| Web | Unknown |
Examples
Open deep link:
const { device } = require("appdriver");
(async () => {
await device.navigate("myapp://login?username=test&password=1234");
})();