如何在 webdriverIO(或量角器)conf 文件中使用 edgeOptions args 来加载扩展?对于新的边缘驱动程序 (81.xx)

How can I use edgeOptions args in the webdriverIO (or protractor)conf file to load extension? for new edge drivers (81.xx)

我正在尝试自动执行 Microsoft Edge (Chromium) 的扩展程序,在 Microsoft Edge 浏览器更新到 80.xx 并结束对 chromeOptions 对其新边缘驱动程序的支持之前,它一直运行良好。

像之前一样,我使用带有 Edge 驱动程序的 chromeOptions 来加载扩展程序,但现在通过终止对新边缘驱动程序的 chromeOption 支持,我无法加载扩展程序或将任何参数传递给 Edge 浏览器用于 WebdriverIO(或 Protractor)框架。

那么如何使用conf文件中的edgeOptions来传递参数呢?

无论如何,我找到了解决方案,只需要在功能下添加 "ms:edgeOptions"(如 goog:chromeOptions),这样做会将 args 视为 Chromium。