
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
nightwatch-mobile-helper
Advanced tools
Mobile helper tool to easily setup mobile requirements
From your Nightwatch project's root dir, run:
npx @nightwatch/mobile-helper android
Answer a few questions related to your requirements:
It will verify if all the requirements are being met.
If some requirements are not being met, it will ask whether to download and setup those requirements:
Voila :tada: Your setup is now complete. (If something fails, follow the instructions and re-run the command.)
Add the following env configuration to your nightwatch.conf.js
or nightwatch.json
file:
"test_settings": {
// other envs above this line
'android.chrome': {
desiredCapabilities: {
browserName: 'chrome',
'goog:chromeOptions': {
w3c: true,
args: [
//'--no-sandbox',
//'--ignore-certificate-errors',
//'--allow-insecure-localhost',
//'--headless'
],
androidPackage: 'com.android.chrome',
// add the device serial to run tests on, if multiple devices are online
// Run command: `$ANDROID_HOME/platform-tools/adb devices`
// androidDeviceSerial: ''
},
},
webdriver: {
start_process: true,
server_path: 'chromedriver-mobile/chromedriver',
cli_args: [
// --verbose
]
}
},
'android.firefox': {
desiredCapabilities: {
browserName: 'firefox',
acceptInsecureCerts: true,
'moz:firefoxOptions': {
args: [
// '-headless',
// '-verbose'
],
androidPackage: 'org.mozilla.firefox',
// add the device serial to run tests on, if multiple devices are online
// Run command: `$ANDROID_HOME/platform-tools/adb devices`
// androidDeviceSerial: 'ZD2222W62Y'
}
},
webdriver: {
start_process: true,
server_path: '',
cli_args: [
// very verbose geckodriver logs
// '-vv'
]
}
},
}
If testing on real-device:
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.
Run your nightwatch tests on Android mobile browsers:
# for firefox
npx nightwatch --env android.firefox
# for chrome
npx nightwatch --env android.chrome
FAQs
Mobile helper tool to easily setup mobile requirements
We found that nightwatch-mobile-helper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.