嗨,您知道我在哪里可以找到与Webdriver协议一起使用的浏览器功能的完整列表吗?
由于要使用更好的Webdriver.io,我需要对它有所了解,但是任何Webdriver客户端都应该使用我想的相同列表。
例如在wdio.conf.js中,对于Chrome,我们可以添加
'chromeOptions': {
args: ['--start-fullscreen']
}
还支持哪些其他args(完整列表)以及除args之外还有哪些其他选项。
找不到所有主要浏览器的完整列表:chrome,safari,firefox,edge ...
谢谢
更新:老实说,我已经在网上搜索了很多,但是args的完整列表并不容易找到(除了chrome之外)。因此,我将保留此答案,一旦找到更多信息,我将更新该帖子。
答案 0 :(得分:1)
文档分布在几个不同的站点。
对于chromeOptions
,您似乎需要此列表:
https://chromedriver.chromium.org/capabilities
Firefox:
https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/firefoxOptions
Safari:
https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/safari/SafariOptions.html
边缘:
https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/edge/EdgeDriver.html
Internet Explorer: