Gripper

A web-scraping toolbox for .NET.

View on GitHub

Gripper.WebClient

Gripper.WebClient.IWebClient

IWebClient.GetCurrentUrlAsync() Method

Gets the current URL of the top page.

System.Threading.Tasks.Task<string?> GetCurrentUrlAsync();

Returns

System.Threading.Tasks.Task<System.String>
Current URL of the top page or null if the window is not displaying a response to any Http request
(e.g. if last request was 4XX or if the top frame is in a state between the Page.frameStartedLoading and Page.frameNavigated events.