Open Lco4eDb2 opened 10 months ago
Makes sense to me. Was waiting for someone to ask to implement this.
This isn't particularly challenging but it is making me rethink the API. Puppeteer and Playwright have entirely different APIs on this front. I tend to air towards Playwright when that happens but I've already started down a path which is closer to Puppeteer. This would probably require a breaking change to fix.
This is to say: I haven't forgotten this issue! It's just not super clear how to approach.
have you made any progress on this one? also, do you need any help with it?
Unfortunately, I have not. This needs to be a breaking change to align us with playwright. If you'd like to pick it up, feel free!
So umm, can we just use document.evaluate
here?
What would the implementation in the astral universe look like?
https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate
Internally, yep. That's exactly what puppeteer does iirc.
Support for finding elements by XPath?