Skip to content

If page.Target is deprecated, how do we get the TargetId? #2830

Answered by kblok
blackcid asked this question in Q&A
Discussion options

You must be logged in to vote

@blackcid TargetId is deprecated because it's tied to CDP and we're preparing for Bidi.
If you need the target ID, you can cast your IPage to CdpPage and access its target. Something like ((CdpPage)page).Target.TargetId.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by blackcid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants