Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to use a remote selenium server that requires auth #1

Closed
yyx990803 opened this issue Jan 30, 2014 · 13 comments

Comments

@yyx990803
Copy link
Contributor

commented Jan 30, 2014

Currently nightwatch seems to only run locally. Would be great to e.g. run tests on Sauce Labs using nightwatch saucelabs:

{
  ...        
  "test_settings" : {
    "default" : {
      ...
    },
    "saucelabs" : {
      "selenium_host": "ondemand.saucelabs.com",
      "selenium_port": 80,
      "username": ...,
      "key": ...
    }
  }        
}
@beatfactor

This comment has been minimized.

Copy link
Member

commented Jan 30, 2014

Thanks for submitting this, I'll look into it.

@ghost ghost assigned beatfactor Jan 31, 2014

@timcrider

This comment has been minimized.

Copy link

commented Jan 31, 2014

Are there any plans to add BrowserStack integration?

@beatfactor

This comment has been minimized.

Copy link
Member

commented Jan 31, 2014

Yes, soon after saucelabs support will be added.

@yyx990803

This comment has been minimized.

Copy link
Contributor Author

commented Jan 31, 2014

👍

@beatfactor

This comment has been minimized.

Copy link
Member

commented Feb 1, 2014

Support for saucelabs is added. Use as follows or check the sample settings.json file inside the bin folder:

"saucelabs" : {
      "selenium_host": "ondemand.saucelabs.com",
      "selenium_port": 80,
      "username": ...,
      "access_key": ...
    }

@beatfactor beatfactor closed this Feb 1, 2014

@yyx990803

This comment has been minimized.

Copy link
Contributor Author

commented Feb 1, 2014

Wow that was fast, thank you and great job!

@beatfactor

This comment has been minimized.

Copy link
Member

commented Feb 5, 2014

timcrider, I think it may already work with BrowserStack as well? Could you give it a try please?

@beatfactor beatfactor reopened this Feb 5, 2014

@dudeman

This comment has been minimized.

Copy link
Contributor

commented Feb 10, 2014

Confirmed. This works with BrowserStack.

"browserstack" : {
      "selenium_host": "hub.browserstack.com",
      "selenium_port": 80,
      "username": ...,
      "access_key": ...
    }
@Frandango

This comment has been minimized.

Copy link

commented Apr 12, 2016

Greetings,

I've added
"saucelabs" : {
"selenium_host": "ondemand.saucelabs.com",
"selenium_port": 80,
"username": ...,
"access_key": ...
}

to my nightwatch.json file in the bin directory, but am getting a "No testing environment specified" error when I run my test from the cmd line. Anyone else run into this?

@davidlinse

This comment has been minimized.

Copy link
Contributor

commented Apr 14, 2016

You need to pass in the 'environment' via the -e command line argument..

@Frandango

This comment has been minimized.

Copy link

commented Apr 14, 2016

Got it working, thank you davidlinse!

@kirankabadi7

This comment has been minimized.

Copy link

commented May 15, 2017

Anyone here using Sauceconnect with nightwatch? need info on how it is to be setup.

@justinadesriuteRE

This comment has been minimized.

Copy link

commented Aug 10, 2017

Hello everyone! Some support needed.

My nightwatch configuration looks like this:
<...>
'test_settings': {
'default': {
'launch_url': 'http://localhost:8085',
'selenium_port': 80,
'selenium_host': 'ondemand.saucelabs.com',
'silent': true,
'username': my_username,
'access_key': my_key,
<...>
But I keep receiving an error "Error, no user specified."
What is a proper syntax for specifying the username in nightwatch configuration in this case?
I also tried:
'username': 'my_username'

and

'username': ${my_username}

Thanks in advance!

beatfactor pushed a commit that referenced this issue Dec 5, 2017
Merge pull request #1 from yak80/fix-probs-with-selenium.3.5.firefox
Fix probs with selenium/standalone-firefox:3.5.0

@nightwatchjs nightwatchjs locked as resolved and limited conversation to collaborators Jan 22, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
8 participants
You can’t perform that action at this time.