EdgeWebDriver
EdgeWebDriver copied to clipboard
Edge driver 使用IE-mode提示相关反馈
场景: edge使用域策略管理配置,用site.xml设置IE模式相关网站,使用驱动代填的时候,会有相应的提示bar弹出。
使用Edge驱动打开IE模式页面,会有提示:

代码:
var edgeOption = new QA.Edge.EdgeOptions();
//去除“Microsoft Edge 正在由自动化测试软件控制”提示
edgeOption.AddAdditionalEdgeOption("useAutomationExtension", false);
edgeOption.AddExcludedArgument("enable-automation");
edgeOption.AddExcludedArgument("enable-logging");
edgeOption.AddArgument("--start-maximized");
edgeOption.AddArgument("--disable-infobars");
//忽略证书错误
edgeOption.AddArgument("--ignore-certificate-errors");
而使用官方提示方法,IE驱动打开网站,则提示更多:

代码:
var ieOptions = new QA.IE.InternetExplorerOptions();
ieOptions.AttachToEdgeChrome = true;
ieOptions.IntroduceInstabilityByIgnoringProtectedModeSettings = true;
ieOptions.IgnoreZoomLevel = true;
ieOptions.EnableNativeEvents = false;
ieOptions.EdgeExecutablePath = @"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe";
麻烦问下: 有没有对应的方式,去除掉提示。因为此提示影响用户体验。
AB#42089655
Thank you for submitting this feedback. The banners should not interfere with tests, but I understand they can cause clutter. I've added this to our internal backlog for consideration.
Thank you for submitting this feedback. The banners should not interfere with tests, but I understand they can cause clutter. I've added this to our internal backlog for consideration.
Thanks for the adoption, and look forward to the relevant features.