You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add ability to use a remote selenium server that requires auth #1
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?
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'
Activity
beatfactor commentedon Jan 30, 2014
Thanks for submitting this, I'll look into it.
timcrider commentedon Jan 31, 2014
Are there any plans to add BrowserStack integration?
beatfactor commentedon Jan 31, 2014
Yes, soon after saucelabs support will be added.
yyx990803 commentedon Jan 31, 2014
👍
beatfactor commentedon Feb 1, 2014
Support for saucelabs is added. Use as follows or check the sample
settings.jsonfile inside thebinfolder:yyx990803 commentedon Feb 1, 2014
Wow that was fast, thank you and great job!
beatfactor commentedon Feb 5, 2014
timcrider, I think it may already work with BrowserStack as well? Could you give it a try please?
dudeman commentedon Feb 10, 2014
Confirmed. This works with BrowserStack.
Frandango commentedon 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 commentedon Apr 14, 2016
You need to pass in the 'environment' via the
-ecommand line argument..Frandango commentedon Apr 14, 2016
Got it working, thank you davidlinse!
kirankabadi7 commentedon May 15, 2017
Anyone here using Sauceconnect with nightwatch? need info on how it is to be setup.
justinadesriuteRE commentedon 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!
Merge pull request #1 from yak80/fix-probs-with-selenium.3.5.firefox