protected override void Given()
        {
            base.Given();
            WebView.IsJavaScriptEnabled = true;
            WebView.AddPreLoadedScript($"./non-exist.js");

            WebView.NavigationCompleted += (o, e) =>
            {
                _navSuccess = e.IsSuccess;
                Form.Close();
            };
        }
        protected override void Given()
        {
            base.Given();
            WebView.IsScriptNotifyAllowed = true;
            WebView.IsJavaScriptEnabled   = true;

            // Not sure how to get this to execute
            WebView.AddPreLoadedScript(Path.Combine(TestContext.TestDeploymentDir, "preload.js"));

            // Set up the event handler
            WebView.ScriptNotify += (o, e) =>
            {
                _scriptNotifyCalled = true;
                Form.Close();
            };
        }
 public void CannotPassNullForPreLoadScript()
 {
     WebView.AddPreLoadedScript(null);
 }