Safely evaluate parents and path for orphan nodes. - #81
Conversation
It's possible for Cuprite to evaluate the parents or the path for a node that no longer belongs to the document.
|
@edlebert could you describe scenario when it is possible? Looks like also there'a at least one failing test in all builds |
|
I'll try to rebase and see if it's useful, didn't hear from you ;) |
|
Thank you! Yes, it definitely is an issue. It can happen for "waiting" Capybara code such as |
|
okay, we have only one fail test after the merge with the updated master. Not bad! I will take a look, it is also nice to have some tests with the scenario |
|
Thanks for the patch, and sorry this sat so long without a resolution. I tried to build a concrete repro against current Repro attempt: using a real Chrome session via Cuprite, I located a 3-levels-deep element ( Result: both And This matches my original question in 2019 ("could you describe scenario when it is possible?"), which never got a concrete answer or test. Since I can't reproduce the failure mode on current |
It's possible for Cuprite to evaluate the parents or the path for a node
that no longer belongs to the document.