We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it expected to add such apis, I use them frequently like this ElementHandle.parentElement.children[1] for example
ElementHandle.parentElement.children[1]
The text was updated successfully, but these errors were encountered:
puppetter also doesn't have this, seems the way to do this is with https://pptr.dev/api/puppeteer.page.evaluatehandle
Sorry, something went wrong.
The API as written is not technically feasible. At best (with the current API), it could be
await(await ElementHandle.parentElement()).children()[1]
we will be moving to locators soon, which solve this problem. With locators you could just do
Locator.parentElement.children[1]
and it could just work. TLDR; This is dependent on #2
This trick works in puppeteer https://stackoverflow.com/a/66435477/6900891
No branches or pull requests
Is it expected to add such apis, I use them frequently like this
ElementHandle.parentElement.children[1]
for exampleThe text was updated successfully, but these errors were encountered: