private void NavigationOnFrameLoadFinished(object sender, FrameLoadFinishedEventArgs e) { if (e.Frame.IsMain) { //Navigation is finished, notify that the URL is possibly updated. OnPropertyChanged(nameof(Url)); } }
private void browser1_FrameLoadFinished(object sender, FrameLoadFinishedEventArgs e) { if (!e.Frame.IsDisposed && e.Frame.IsMain) { IDocument document = browser1.MainFrame.Document; IEnumerable <IElement> inputs = document.GetElementsByTagName("input"); foreach (IElement element in inputs) { if (element.Attributes["type"].ToLower().Equals("submit")) { element.Events.Click += OnSubmitClicked; } } } }