browser.Load or devtoolcontext.GotoAsync ? #52
Answered
by
amaitland
aadslingerland
asked this question in
Q&A
-
Greetings, Working with and learning about CefSharp and CefSharp.DOM. When using a DevToolContext for element location is there a good reason to choose devtoolcontext.GotoAsync instead of browser.Load ? |
Beta Was this translation helpful? Give feedback.
Answered by
amaitland
Feb 7, 2024
Replies: 1 comment
-
Load initiates a navigation, it doesn't wait for the page to actually load. Use GotoAsync over LoadUrlAsync as it ties into the CDP events, and that's what the tests use. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aadslingerland
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Load initiates a navigation, it doesn't wait for the page to actually load.
Use GotoAsync over LoadUrlAsync as it ties into the CDP events, and that's what the tests use.