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
Hi, I was using this function to execute JS in the page.
public static async Task<string> EvalJSByContextIdAsync(ChromeSession session, long executionContextId, string javaScriptStr) { await s.WaitAsync(); var evaluateResponse = await session.Runtime.Evaluate(new Runtime.EvaluateCommand { AwaitPromise = false, Expression = javaScriptStr, IncludeCommandLineAPI = true, ContextId = executionContextId, ObjectGroup = "ChromeDevProtocolWrapper" }); await session.Runtime.Enable(new Runtime.EnableCommand()); s.Release(); return evaluateResponse.Result.Value.ToString(); }
I will get A command response was not received:Runtime.evaluate error when I call this function more than once.
A command response was not received:Runtime.evaluate
var check = await CDP.EvalJSByContextIdAsync(session, executionContextId, checkScript); while (check.Equals("False")) { Thread.Sleep(5000); Console.WriteLine("Sleep"); check = await CDP.EvalJSByContextIdAsync(session, executionContextId, checkScript); //Error here }
The text was updated successfully, but these errors were encountered:
Do you have any idea?
Sorry, something went wrong.
No branches or pull requests
Hi, I was using this function to execute JS in the page.
I will get
A command response was not received:Runtime.evaluate
error when I call this function more than once.The text was updated successfully, but these errors were encountered: