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

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

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

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

Are there any plans to add BrowserStack integration?

@beatfactor
Copy link
Member

Yes, soon after saucelabs support will be added.

@yyx990803
Copy link
Contributor Author

👍

@beatfactor
Copy link
Member

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

@yyx990803
Copy link
Contributor Author

Wow that was fast, thank you and great job!

@beatfactor
Copy link
Member

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
Copy link
Contributor

dudeman commented Feb 10, 2014

Confirmed. This works with BrowserStack.

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

@Frandango
Copy link

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
Copy link
Contributor

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

@Frandango
Copy link

Got it working, thank you davidlinse!

@kirankabadi7
Copy link

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

@justinadesriuteRE
Copy link

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
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
Development

No branches or pull requests

8 participants