Skip to content

WebViewNavigationCompletedEventArgs.Url

property · WebViewNavigationCompletedEventArgs · cAlgo.API

DesktopCLICloud

URL from WebView Source property at the moment of NavigationCompleted in big process.

Environment behaviour

CLI — not supported. Never raised in the CLI: the events that pass it never fire there (WebView.NavigationCompleted).

Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (WebView.NavigationCompleted).

Definition

public string Url {get;}
webViewNavigationCompletedEventArgs.Url: str

Returns string

Examples

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("Current page: {0}", args.Url);
}
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"Current page: {args.Url}")