-
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
Doesn't work with selenium v3.5.0 (but works with v.3.4.0) #1558
Comments
Same for me, works fine with Chrome, but doesn't work with Firefox. |
I just downloaded the latest selenium-server-standalone (3.5.3) and tried to make a simple waitForElementVisible() / setValue() example to work. After a lot of It definitely doen't work with the selenium 3.5 version nightwatch --version
nightwatch v0.9.16 |
Is the samething working in firefox ?? |
I'll add to this that with Selenium 3.5.x, even though Nightwatch (0.9.16) commands seem to work fine in Chrome, the chromedriver (2.32) process doesn't get released when the Nightwatch tests are done. Selenium 3.4.0 does seem to do better with Firefox (56, with marionette/geckodriver 0.18.0) but there are some things that still don't work with it (e.g. |
Same with selenium 3.6.0. & geckodriver 0.19 |
Finding the same issue with Selenium 3.5.0 & 3.6.0 with geckodriver 0.19. Reverting to 3.4.0 works fine |
Hi, We tried also to work with Selenium 3.5+ and the Gecko driver version 0.19. The strangest thing is that if you wrote this thing in your page object:
It doesn't work. However, if you write the following:
it works. I am wondering if there is not some magic going on in the Nightwatch API which may explain why one way works and the other doesn't. And it happens only with Firefox and the Gecko driver. Any updates from the maintainers? |
@JackTheRipper your issue sounds different, where are you getting the |
@straris : I don't think it's different since I am experiencing the same issue as the one described here. This is from my page object, my selectors are specified in my page object as it follows: export default function searchbox() {
return {
selector: '.searchbox',
elements: {
returnFlightRadioButton: { selector: 'input[name=therightname]' },
},
commands: [{
clickOnReturn() {
this.waitForElementPresent('@returnFlightRadioButton', this.api.globals.waitForSectionVisibleBigTimeout)
.moveToElement('@returnFlightRadioButton', 0, 0)
.click('@returnFlightRadioButton');
},
}],
};
}; |
@JackTheRipper does it work for you with selenium 3.4.0? |
Yes, it does. But it does work with Selenium 3.5+ as well as soon as I am not using the |
that is interesting, I am not using the selectors implementation, but might be an indication for the maintainers |
@straris: are you using a Selenium Grid? |
yup |
Which configuration are you using? When running with Selenium 3.6, I am using Firefox 56 and Gecko driver 0.19.0. I deploy my grid behind NGinx. I access my websites using the HTTP basic authentication and a Firefox Profile. Here is my configuration: 'firefox': {
'desiredCapabilities': {
'browserName': 'firefox',
'javascriptEnabled': true,
'acceptSslCerts': true,
'firefox_profile': firefoxProfile
}
}, The Firefox profile is a base64 encoded string. What are you using on your side? |
Same driver/selenium configuration, using docker for deployment.
|
Hi, is this going to be fixed any time near in the future? Going back to 3.4.0 did not help so far. |
Hi. To these one: geckodriver 0.17.0 |
I'm pretty sure it's related to this issue #1332. |
@ryan-sandy do you have any clues about it? It looks like #1332 is related to using gecko directly but this is not the case for this one. |
@straris I'm not sure, as I am totally new to Selenium. My understanding was Selenium 3 called the geckodriver, but you could run geckodriver without selenium. When I look at the output of Selenium in this issue, it matches the output of #1332.
You can see the
I think it is an issue with Nightwatch expecting a different key from the value array. That's why downgrading works. Again, I'm a new to Selenium/geckodriver so I could be totally wrong. |
Everything works fine on a mac, but when trying to run on Win7 64, we get this: Starting selenium server... started - PID: 17228
[Layouts Test] Test Suite
=============================
Running: turbinesTestWithSettingSearchValue
Error retrieving a new session from the selenium server
Connection refused! Is selenium server started?
{ value:
{ stacktrace: 'org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.\nBuild info: version: \'3.7.1\', revision: \'8a0099a\', time: \'2017-11-06T21:07:36.161Z\'\nSystem info: host: \'W7D0596\', ip: \'172.21.1.54\', os.name: \'Windows 7\', os.arch: \'amd64\', os.version: \'6.1\', java.version: \'1.8.0_91\'\nDriver info: driver.version: unknown\r\n\tat org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:192)\r\n\tat ```
any ideas what we can do next? |
This is fixed in v0.9.19. |
I really wish there were somewhere that listed the Nightwatch/Selenium/Chromedriver version compatibilities. It's becoming obvious that there are only specific combinations that work; but that info isn't well documented. This and this are the best I can find. :/ Nightwatch Selenium / ChromeDriver Compatibility ChromeDriver / Chrome Compatibility |
A update list for chrome -> chromedriver compatibility can always be found here: |
@beatfactor using 0.9.20 I still get this error on AWS Lambda. What could be the reason? |
Thanks for awesome library!
We recently tried to use nighwatch with remote selenium(runs on modern.ie Windows env)
When we tried to use nightwatch with selenium v3.5.0, nightwatch not works correctly. response looks like below.
But when we try same test case with Selenium 3.4.0, it works as expected.
Is nightwatch compatible with selenium v3.5.0 or not?
[IEDriverServer changelog]
https://github.com/SeleniumHQ/selenium/blob/master/cpp/iedriverserver/CHANGELOG
this line looks like suspicious for me ...
nightwatch.json(only relevant section)
Sample tests
Versions
Nightwatch version: 0.9.16
Node.js version: v7.10.0
OS version: Windows 7 Enterprise SP1 (modern.ie / Virtualbox)
Browser version: Internet Explorer 11 (v11.0.9600.17420)
selenium-server-standalone version: v3.5.0
IEDriverServer version: v3.5.0(Win32)
Env
192.168.99.100:4444 -> selenium-standalone-server
10.0.2.2:80 -> Web server (at Virtualbox host)
The text was updated successfully, but these errors were encountered: