Is OnWebBeforeNavigate supported in Edge Chromium?
I recently migrated a project over from IE to Edge Chomium and the OnWebBeforeNavigate event handler no longer works.
This says it is fired only by browsers that use the Microsoft WebBrowser control:
Does Edge use the MS WebBrowser control?
The real problem I have is "Leave Webpage?" popups that are not detected by TC's Unexpected Window handler.
Previously I handled these in a WebBeforeNavigate event handler and it worked quite well.
Even closing the browser is not possible because it produces the popup if pages are in unsaved states.
From this Microsoft reference, I would say it does not.
Can I simply swap out the Internet Explorer WebBrowser for Microsoft Edge WebViewControl in my application?
No, the APIs differ significantly, as the WebViewControl represents several generations of browser development since the IE WebBrowser control was released.