Gripper

A web-scraping toolbox for .NET.

View on GitHub

Gripper.WebClient

Gripper.WebClient.IContext

IContext.ExecuteScriptAsync(string, CancellationToken) Method

Executes a script in the global context.

System.Threading.Tasks.Task<Gripper.ChromeDevTools.Runtime.EvaluateCommandResponse> ExecuteScriptAsync(string script, System.Threading.CancellationToken cancellationToken);

Parameters

script System.String
The script to execute.

cancellationToken System.Threading.CancellationToken
Token to cancel the System.Threading.Tasks.Task.

Returns

System.Threading.Tasks.Task<Gripper.ChromeDevTools.Runtime.EvaluateCommandResponse>
A RemoteObject mapped to a Newtonsoft.Json.Linq.JToken that represents the result of the operation.