Skip to content

[Feature] elementHandle.$ query in whole page instead of the given element #5083

@sarut0bi

Description

@sarut0bi

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/

  • Click button (//div[@Class="example"]/button)
  • Retrieve elementHandle(//div[@Class="elements"])
  • Subquery this one using elementHandle.$('//button')
  • Click this element
    => Add element button is clicked instead of Delete

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions