You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to do some ways to synchronize Callback (NavigationCompleted), but I was unsuccessful.
For example, I want to execute (ExecuteScript or PostWebMessageAsString). But I need to make sure the page loads before! I know that AddScriptToExecuteOnDocumentCreated exists and I could use it, but it's not just in the creation, in some moments if I need to run a script I have no way of knowing if the full navigation was done.
I tried how to run with Navigate with RunAsync (using POSTMESSAGE), but nothing!
From what I saw it is on the same thread and does not run async on another! I also didn't see anything like std :: future using a myFuture.wait (); I tried with CreateEvent and condition_variable, but it ends up the same.
I don't know if it's the best way! What do you suggest?
The text was updated successfully, but these errors were encountered:
I tried to do some ways to synchronize Callback (NavigationCompleted), but I was unsuccessful.
For example, I want to execute (ExecuteScript or PostWebMessageAsString). But I need to make sure the page loads before! I know that AddScriptToExecuteOnDocumentCreated exists and I could use it, but it's not just in the creation, in some moments if I need to run a script I have no way of knowing if the full navigation was done.
One of the examples I tested:
I tried how to run with Navigate with RunAsync (using POSTMESSAGE), but nothing!
From what I saw it is on the same thread and does not run async on another! I also didn't see anything like std :: future using a myFuture.wait (); I tried with CreateEvent and condition_variable, but it ends up the same.
I don't know if it's the best way! What do you suggest?
The text was updated successfully, but these errors were encountered: