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
Closed

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

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

Comments

@yyx990803
Copy link
Contributor

@yyx990803 yyx990803 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
Copy link
Member

@beatfactor beatfactor commented Jan 30, 2014

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

Loading

@ghost ghost assigned beatfactor Jan 31, 2014
@timcrider
Copy link

@timcrider timcrider commented Jan 31, 2014

Are there any plans to add BrowserStack integration?

Loading

@beatfactor
Copy link
Member

@beatfactor beatfactor commented Jan 31, 2014

Yes, soon after saucelabs support will be added.

Loading

@yyx990803
Copy link
Contributor Author

@yyx990803 yyx990803 commented Jan 31, 2014

👍

Loading

@beatfactor
Copy link
Member

@beatfactor beatfactor 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": ...
    }

Loading

@beatfactor beatfactor closed this Feb 1, 2014
@yyx990803
Copy link
Contributor Author

@yyx990803 yyx990803 commented Feb 1, 2014

Wow that was fast, thank you and great job!

Loading

@beatfactor
Copy link
Member

@beatfactor beatfactor commented Feb 5, 2014

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

Loading

@beatfactor beatfactor reopened this Feb 5, 2014
@dudeman
Copy link
Contributor

@dudeman dudeman commented Feb 10, 2014

Confirmed. This works with BrowserStack.

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

Loading

@Frandango
Copy link

@Frandango Frandango 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?

Loading

@davidlinse
Copy link
Contributor

@davidlinse davidlinse commented Apr 14, 2016

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

Loading

@Frandango
Copy link

@Frandango Frandango commented Apr 14, 2016

Got it working, thank you davidlinse!

Loading

@kirankabadi7
Copy link

@kirankabadi7 kirankabadi7 commented May 15, 2017

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

Loading

@justinadesriuteRE
Copy link

@justinadesriuteRE justinadesriuteRE 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!

Loading

beatfactor pushed a commit that referenced this issue Dec 5, 2017
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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants