Closed vlad-vinogradov closed 5 years ago
I tried using these webdriver settings to run Chrome 75, but waitForElementVisible
command is failing for me:
[..]
→ Running command: waitForElementVisible ('body', 10000)
Request POST /wd/hub/session/c7d26173023113a7a268898f3ad80c79/elements
{ using: 'css selector', value: 'body' }
Response 200 POST /wd/hub/session/c7d26173023113a7a268898f3ad80c79/elements (51ms)
{ value:
[ { 'element-6066-11e4-a52e-4f735466cecf': 'dc40ff66-f430-4624-a581-919e9e058dee' } ] }
Request GET /wd/hub/session/c7d26173023113a7a268898f3ad80c79/element/dc40ff66-f430-4624-a581-919e9e058dee/displayed
Response 404 GET /wd/hub/session/c7d26173023113a7a268898f3ad80c79/element/dc40ff66-f430-4624-a581-919e9e058dee/displayed (5ms)
{ value:
{ error: 'unknown command',
message:
'unknown command: Cannot call non W3C standard command while in W3C mode',
stacktrace: '#0 0x55eed9994299 <unknown>\n' } }
Error while running .isElementDisplayed() protocol action: unknown command: Cannot call non W3C standard command while in W3C mode
[..]
Chromedrivers implementation page does not mention /session/{session id}/element/{element id}/displayed
endpoint, so I am not sure if it is supposed to work.
... waitForElementVisible command is failing for me ... Chromedrivers implementation page does not mention /session/{session id}/element/{element id}/displayed endpoint
Yes, this is true. The latest chromedriver versions running in w3c mode no longer support displayed-endpoint. There is no such endpoint in the current W3C WebDriver specification:
It's optional (maybe appear as chromedriver protocol extension). This is another problem not directly related to this issue. But, of course, there should be some kind of solution for this one, because stable Chrome version may be changed at any time.
I've opened a new issue for the second problem #2118 looks to me that I have the same one
This issue has been automatically marked as stale because it has not had any recent activity. If possible, please retry using the latest Nightwatch version and update the issue with any relevant details. If no further activity occurs, it will be closed. Thank you for your contribution.
Using
selenium_host
andselenium_port
settings change Nightwatch behavior and make it incompatible withSelenium Grid 3
and latestgeckodriver
andchromedriver
versions(tested on Nightwatch 1.1.11, Selenium Grid 3.141.59, Ubuntu).
I think this should be clarified somewhere in the Wiki or Configuration guide.
The following settings should be used for Firefox:
The following settings should be used for Google Chrome >= 75
(and compatible chromedriver):
The following settings may be used for Google Chrome < 75
(and compatible chromedriver):