-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Geckodriver standalone - No way to set browser connection timeout #1483
Comments
In the hopes that this helps, here is my configuration: const geckodriver = require('geckodriver');
require('../getEnv');
const directory = __dirname;
module.exports = {
src_folders: [`${directory}/../../specs`],
custom_commands_path: `${directory}/../../commands`,
output_folder: `${directory}/../../reports`,
selenium: {
start_process: false,
},
test_settings: {
default : {
launch_url: getEnv('baseUrl'),
selenium_port: 4444,
selenium_host: 'localhost',
request_timeout_options: {
timeout: 15000,
retry_attempts: 3
},
default_path_prefix : '',
silent: true,
screenshots: {
enabled: getEnv('screenshots', false),
path: `${directory}/../../screenshots`
},
desiredCapabilities: {
browserName: 'firefox',
marionette: true
},
globals: {
before: done => {
let chai = require('chai');
global.expect = chai.expect;
chai.Should();
geckodriver.start();
done();
},
after: done => {
geckodriver.stop();
done();
},
isBrowserstack: false
}
}
}
}; I have tried running |
You should be able to achieve this with |
To further clarify, I attempted adding request_timeout_options, see above configuration for example |
Bump on this? Any idea of what might be causing this? Is this user error or something deeper? |
I did some further tests of this, using a standalone selenium server (3.4.0) and geckodriver (0.17.0). I get the browser to open up in the exact same way, and then once again it fails after the browser runs. EDIT: Here is the output I'm receiving:
Based on some logging I did, it appears to be calling |
The issue is 100% because that response gets returned wrapped in a Examples: Chrome response:
Firefox response equivalent:
EDIT 2.0 (sorry) - Actually, looks to be intentional - https://github.com/mozilla/geckodriver/releases/tag/v0.15.0 So - chromedriver doesn't appear to be up to that spec, nor is this lib. Both nightwatch and chromedriver apparently are following the old selenium bindings. This issue is bigger than nightwatch, but nonetheless I want to bring it to your attention in the hopes of getting a solution. |
Closing this issue since the original issue was not the issue. Instead, for anybody who finds their way here, please instead take a look at issues regarding Nightwatch's compatibility with the W3C Webdriver Standard. |
I am currently attempting to get firefox tests running locally. To that end, I'm spinning up a separate instance of geckodriver via CLI (not using the selenium server). When I change my configuration to point towards firefox, everything is working fine - the browser begins to load. However, firefox loads so slowly that by the time it's finished, nightwatch has killed the connection and assumed the browser is not there. It then throws a connection refused error.
I have not seen anywhere in the docs mentioning the ability to set a startup timeout. Is such a configuration option available?
EDIT: Perhaps this is tied in with the issue described in #1456 ?
EDIT: Using nightwatch version 0.9.14. I have tried 0.9.16 as well, no change. I have tested this on both firefox version 48 and 53.0.3, same issue.
The text was updated successfully, but these errors were encountered: