You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to reproduce it with the following example which seems to work as expected, once I move it inside the div, I get two results and otherwise 1 result: https://try.playwright.tech/?s=evnej1h
This isn't a bug formally, because instead of .// that starts search from the current node, you explicitly requested // that resets search to the root of the document. But I can see how this can be confusing. We should probably treat // as .// in this method.
dgozman
changed the title
elementHandle.$ query in whole page instead of the given element
[Feature] elementHandle.$ query in whole page instead of the given element
Feb 2, 2021
According https://playwright.dev/docs/api/class-elementhandle#elementhandleselector, i should be able to subquery for a given element .
It appears to query the whole page instead of the given element.
Ex:
https://the-internet.herokuapp.com/add_remove_elements/
=>
Add element
button is clicked instead ofDelete
The text was updated successfully, but these errors were encountered: