-
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
'Element reference not seen before: undefined' using geckodriver, waitForElementVisible fails #1332
Comments
After briefly poking around the Marionette source code: Look what we have here...
And, surprise, this is according to the WebDriver spec:
PR would include something that is vaguely like this:
|
The cause of this appears to be because of how I was loading the geckodriver. I loaded the geckodriver from the command line:
Then in my
Apparently that's the wrong approach to take since Selenium has Firefox support built-in but that doesn't guarantee Selenium will always just return the ELEMENT key in the future so going to keep this issue open. Anyway... To workaround the issue just setup a Firefox profile and set your |
Using geckodriver directly is not fully supported yet, full support will come in a future version. |
Related to #1285. |
This issue has been automatically marked as stale because it has not had any recent activity. |
Info on Firefox (latest version):
Firefox 50.1.0
geckodriver 0.11.1 using the geckodriver npm. (yes, there is a new geckodriver just released today! can test with that if necessary)
Nightwatch 0.9.12
Calling
waitForElementVisible
fails.Verbose output from Nightwatch:
It looks like Nightwatch is expecting the property
ELEMENT
:https://github.com/nightwatchjs/nightwatch/blob/master/lib/api/element-commands/_waitForElement.js#L217
But geckodriver/Firefox is returning:
So... I don't know enough about the moving parts involved in this. It seems like Nightwatch should just take the element value instead of checking for
ELEMENT
but is Firefox/geckodriver now returning everything as an element GUID key?Thoughts?
In addition to this, perhaps Nightwatch could display the error in the regular Nightwatch output when an actual error occurs instead of having to enable verbose.
Also, here is the output from geckodriver:
Quick and dirty fix for a brand new year:
The text was updated successfully, but these errors were encountered: