-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Selenium Host Ignored #2803
Comments
Thanks for reporting this, it will be fixed soon. |
Hi @dmcmullen 👋 you can use the below settings to make it work in v1.7 default: {
launch_url: 'https://nightwatchjs.org',
selenium: {
start_process: false,
port: 443,
host: 'ondemand.saucelabs.com'
}
}, Let me know if you still have an issue |
Thank you for the update. That worked for me. |
I am closing the issue then, please feel free to reopen if it occurs again |
Selenium Host Ignored
When setting selenium_host it is ignored and localhost is used instead.
This occurs during test setup.
Expected behavior looks as follows
This is occurring because here in NightwatchClient is the first time the selenium_host is used if the webdriver.host is undefined. An update occurred in 1.7 that sets a default value for webdriver.host making it impossible to set the value to anything else. That code is here
Changing https://github.com/nightwatchjs/nightwatch/blob/main/lib/settings/settings.js#L151 to
const {port, host = 'localhost'} = this.settings.webdriver;
and deleting the setting of the default should correct this bug.The text was updated successfully, but these errors were encountered: