EdgeWebDriver icon indicating copy to clipboard operation
EdgeWebDriver copied to clipboard

Edge driver 使用IE-mode提示相关反馈

Open joung opened this issue 3 years ago • 2 comments

场景: edge使用域策略管理配置,用site.xml设置IE模式相关网站,使用驱动代填的时候,会有相应的提示bar弹出。

使用Edge驱动打开IE模式页面,会有提示: 199149434-28c0eb71-ef47-4500-af43-a1d095d6a3d8

代码:

                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驱动打开网站,则提示更多: 199149620-70edb6a7-6c6c-4968-8e6f-f98034d78fe9

代码:

                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

joung avatar Nov 03 '22 08:11 joung

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.

bwalderman avatar Nov 03 '22 18:11 bwalderman

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.

joung avatar Nov 04 '22 01:11 joung