Skip to content
New issue

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

[Question] Is there a way to get NodeId from an elementHandle? #3345

Closed
VikramTiwari opened this issue Aug 7, 2020 · 1 comment
Closed

Comments

@VikramTiwari
Copy link

VikramTiwari commented Aug 7, 2020

NodeId: https://chromedevtools.github.io/devtools-protocol/tot/DOM/#type-NodeId

Goal: I am trying to force a pseudo state on a DOM node using https://chromedevtools.github.io/devtools-protocol/tot/CSS/#method-forcePseudoState

NOTE: Using CDP to get nodeId doesn't work because the node in question is inside a cross-origin iframe

@aslushnikov
Copy link
Collaborator

I don't think there's a good way.. But #3347 should help! Let me close this as dupe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants