Gripper.WebClient
Gripper.WebClient
IWebClient Interface
Enables interaction with the hooked web browser window.
public interface IWebClient :
System.IDisposable
Derived
↳ ChromeClient
Implements System.IDisposable
Properties | |
---|---|
MainContext | The execution context that corresponds to the root of the page iFrame tree DOM. |
Methods | |
---|---|
ExecuteCdpCommandAsync(string, JToken) | Tunnels a CDP command directly to the CDP client endpoint. |
GetAllCookiesAsync() | Gets all cookies stored by the browser. |
GetContextsAsync() | Gets an System.Collections.Generic.IReadOnlyCollection<> of interactable contexts. There is no guarantee w.r.t. the lifespan of the resulting IContexts. |
GetCurrentUrlAsync() | Gets the current URL of the top page. |
NavigateAsync(string, PollSettings, CancellationToken) | Navigates to the address and awaits the resulting System.Threading.Tasks.Task of WaitUntilFramesLoadedAsync(PollSettings, CancellationToken) using the provided PollSettings and System.Threading.CancellationToken |
ReloadAsync(PollSettings, CancellationToken) | Reloads the browser window and awaits the resulting System.Threading.Tasks.Task of WaitUntilFramesLoadedAsync(PollSettings, CancellationToken) using the provided PollSettings and System.Threading.CancellationToken |
WaitUntilFramesLoadedAsync(PollSettings, CancellationToken) | Blocks until either 1. All of the following has happened: 1.1. No frame has been added to the frame tree for one PeriodMs period, 1.2. All frames in the frame tree have received the Page.frameNavigated and Page.frameLoaded events, 1.3. One PeriodMs period has elapsed since the last Page.frameNavigated or Page.frameLoaded event, or 2. TimeoutMs has elapsed. or 3. Task has been cancelled. |
Events | |
---|---|
WebClientEvent | An aggregate event handler for events from all CDP domains, all targets. |