-
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
ancestor
returning no nodes since 3.27
#2234
Comments
What driver are you using and what is the relevant HTML? |
Here are the versions of our drivers:
The command:
And the full html corresponding:
|
https://gist.github.com/twalpole/4084690d90cc4beac28fcebf887cb6c1 is a self-contained example with that HTML showing the ancestor call working. What is it doing differently than your code? |
Thanks for the nice sample, i will keep it :) |
@cyrilchampier Ok - I'm willing to provide a guaranteed stable API for them if there's something specific they need - overriding |
Meta
Capybara Version:
3.27.0
Driver Information (and browser if relevant):
selenium-webdriver (3.142.3)
Expected Behavior
ancestor
method keep the same behavior as in3.26.0
Actual Behavior
Most of our call to ancestors now fails.
From what I understand, here, we compare ancestors nodes with all nodes matching the selector, and select only intersection.
Problem seems to be the type,
match_results
contains typesCapybara::Node::Simple
while elements in the other array areCapybara::Node::Element
.Steps to reproduce
I did not fully understood, but here is our "call".
find('.dc-multi-level-selector-item-label', text: 'something').ancestor('.dc-multi-level-selector-item')
Tell me if you need more investigations on my side
The text was updated successfully, but these errors were encountered: