You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+100Lines changed: 100 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,8 @@ Official Nightwatch helper-tool to easily setup all the requirements needed to g
26
26
// other envs above this line
27
27
'android.chrome': {
28
28
desiredCapabilities: {
29
+
real_mobile:false,
30
+
avd:'nightwatch-android-11',
29
31
browserName:'chrome',
30
32
'goog:chromeOptions': {
31
33
w3c:true,
@@ -53,6 +55,8 @@ Official Nightwatch helper-tool to easily setup all the requirements needed to g
53
55
54
56
'android.firefox': {
55
57
desiredCapabilities: {
58
+
real_mobile:false,
59
+
avd:'nightwatch-android-11',
56
60
browserName:'firefox',
57
61
acceptInsecureCerts:true,
58
62
'moz:firefoxOptions': {
@@ -80,6 +84,8 @@ Official Nightwatch helper-tool to easily setup all the requirements needed to g
80
84
7. If testing on real-device:
81
85
1. Make sure latest version of Chrome/Firefox browsers are installed. If not, install them from Google Play Store.
82
86
2.[Turn on USB Debugging](https://developer.android.com/studio/debug/dev-options#enable) on your Android Device and connect it to your system via data cable.
87
+
3. Set `real_mobile` capability to true in the configuration.
88
+
83
89
8. If testing on emulator, make sure `chromedriver-mobile/chromedriver` is present in your Nightwatch project's root dir. If not present, re-run the command in first step.
84
90
9. Run your nightwatch tests on Android mobile browsers:
85
91
```sh
@@ -88,3 +94,97 @@ Official Nightwatch helper-tool to easily setup all the requirements needed to g
88
94
# for chrome
89
95
npx nightwatch --env android.chrome
90
96
```
97
+
98
+
### iOS
99
+
100
+
1. From your [Nightwatch](https://nightwatch.org) project's root dir, run:
Set `safari:deviceUDID` capability to *UDID* from the previous step, in your Nightwatch configuration for`ios.real.safari` environment.
171
+
172
+
**Simulators**
173
+
174
+
Run the following command to get a list of simulators:
175
+
```sh
176
+
xcrun simctl list devices
177
+
```
178
+
And then update `safari:deviceName` (eg: 'iphone 13') and `safari:platformVersion` (eg: '15.0') in your Nightwatch configuration for`ios.simulator.safari` environment according to your preference.
179
+
180
+
181
+
8. Run your nightwatch tests on Android mobile browsers:
0 commit comments