Closed amirGaouaou closed 4 years ago
See v1.1.12.
Hi @beatfactor
Unfortunately, it happens for us still with 1.1.12.
I noticed that the error still happens whether I put an xpath/css selector that identifies a unique element/multiple element inside a page object
But it doesnt happen when I put an xpath/css selector that identifies a unique element directly as an argument when calling click
Hi @beatfactor,
Is this being triaged or prioritized ? Thank you
We are seeing the same issue on our Ubuntu Linux box as well. The same test works fine on my windows 10 machine:
Linux info: ChromeDriver 75.0.3770.8 Google Chrome 75.0.3770.90 Distributor ID: Ubuntu Description: Ubuntu 16.04.6 LTS Release: 16.04 Codename: xenial
Error: NoSuchElementError: Error while running "waitForElementVisible" command: Timed out while waiting for element "[id="referralGroup"] option[value=Onboarding]" with "css selector" to be present for 1000 milliseconds.[0m
Command being run let fillForm = browser.page.referralForm.legalzoomReferralPO() fillForm .chooseReferralOnboarding()
Page Objects File: chooseReferralOnboarding: function () { return this.waitForElementVisible('@referralGroup', 1000) .click('@referralGroup') },
Identifier in PO file: referralGroup: { selector: '[id="referralGroup"] option[value=Onboarding]' },
I was just doing the click command from the test itself, I moved it into a funciton in the pageObject to see if that would fix it but it didn't.
Just an update, my problems went away in linux + chrome when I made this change
use_legacy_jsonwire = true
Can someone help me understand why this is just affecting my linux chrome env?
webdriver: { start_process: true, server_path: './node_modules/chromedriver/lib/chromedriver/chromedriver', use_legacy_jsonwire: true, port: 9515 },
@jlee-locktonmylo
Can someone help me understand ...
It depends on chromedriver's version. See #2118
In the example here. In 1.0.19 => The click works and the test passes In 1.1.13 => The click fails and throws an error
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.
Hi we're seeing an issue in our tests when we upgraded from Nightwatch 1.0.19 to 1.1.11.
We're getting a NoSuchElementError when we call
.click(selector)
us with a Page object selector in css that matches more than 1 item.The error also happens when we put a CSS selector that matches with a unique item.
This command worked in previous versions and just started failling in 1.1.11
Page object selector
Code
Error
Server version;
Thank you