How to use saucelabs with nightwatch?

Viewed 3285

I have the following configuration in my nightwatch.json file

"saucelabsChrome": {
  "selenium_host": "ondemand.saucelabs.com",
  "selenium_port": 80,
  "username": "example",
  "access_key": "--REDACTED---",
  "desiredCapabilities": {
    "acceptsSslCerts": true,
    "name": "chrome",
    "browserName": "chrome",
    "platform": "OS X 10.11",
    "version": "45.0"
  }
},

However, when I run nightwatch with sauce labs

node nightwatch  ---args '{"beta": "true", "env": "stage"}' --test tests/example.js -e saucelabsChrome

I get an error

Couldn't find element signUpAdobe

Two questions

  • Where can I see the nightwatch command running on Saucelabs?
  • What is the best way to integrate saucelabs with nightwatch?
2 Answers

I realize it's been a few years, but when I was searching I came across this post and found a newer guide for how to use SauceLabs with Nightwatch

Hopefully this helps anyone ending up here like I did :D

Related