---
id: "T:cAlgo.API.WebViewNavigationCompletedEventArgs"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/WebViewNavigationCompletedEventArgs/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# WebViewNavigationCompletedEventArgs (class)

Provides data for the WebView control NavigationCompleted event.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Never raised in the CLI: the events that pass it never fire there (WebView.NavigationCompleted).
- Cloud: Never raised in the cloud: the events that pass it never fire there (WebView.NavigationCompleted).

## Definition

```csharp
public class WebViewNavigationCompletedEventArgs
```

## Examples

C#:

```csharp
protected override void OnStart()
{
    var webView = new WebView();
    webView.NavigationCompleted += OnNavigationCompleted;
    Chart.AddControl(webView);
    webView.NavigateAsync("https://ctrader.com/");
}

private void OnNavigationCompleted(WebViewNavigationCompletedEventArgs args)
{
    Print("Navigation to {0} completed | Successful: {1} | HTTP status: {2}", args.Url, args.IsSuccessful, args.HttpStatusCode);
}
```

Python:

```python
def on_start(self):
    webView = WebView()
    webView.NavigationCompleted += self.on_navigation_completed
    api.Chart.AddControl(webView)
    webView.NavigateAsync("https://ctrader.com/")

def on_navigation_completed(self, args):
    api.Print(f"Navigation to {args.Url} completed | Successful: {args.IsSuccessful} | HTTP status: {args.HttpStatusCode}")
```

## Properties

- `public int HttpStatusCode {get;}` — Response HTTP status code. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/WebViewNavigationCompletedEventArgs/HttpStatusCode/index.md)
- `public bool IsSuccessful {get;}` — True if navigation was successful otherwise false. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/WebViewNavigationCompletedEventArgs/IsSuccessful/index.md)
- `public string Url {get;}` — URL from WebView Source property at the moment of NavigationCompleted in big process. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/WebViewNavigationCompletedEventArgs/Url/index.md)
- `public WebView WebView {get;}` — The WebView control. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/WebViewNavigationCompletedEventArgs/WebView/index.md)

