概要
Seleniumを利用するときに設定できるCapabilitiesの値を探すのが面倒でした。
Capabilitiesリンク集を作り、このページから探せればと思い作成しています。
各ブラウザのオプション名はJavaの org.openqa.selenium.MutableCapabilities 内にある OPTION_KEYS から取っています。
後で簡単なcapabilitiesのjson記述サンプルも載せたい。
こんなのあるよってのがあれば、追加したいので教えていただきたいです。
Selenium
- DesiredCapabilities - Selenium本家
json Example
Chrome
- Capabilities & ChromeOptions - ChromeDriver用
chromeOptions
- List of Chromium Command Line Switches - argsの説明
- Preferences - prefsの説明
- Configuring Other Preferences - prefsの説明
json Example
[
{
"browserName": "chrome",
"chromeOptions": {
"args": [
"headless",
"disable-gpu",
"proxy-server=http://proxy:8080",
"remote-debugging-port=9222"
],
"prefs": {
"download.prompt_for_download":false
}
}
}
]
Firefox
- WebDriver capabilities - GeckoDriver用
moz:firefoxOptions
- コマンドラインオプション - argsの説明
- About:config entries - prefsの説明
json Example
[
{
"browserName": "firefox",
"moz:firefoxOptions": {
"args": [
"-headless"
],
"prefs": {
"browser.download.folderList": 0,
"browser.download.useDownloadDir": true,
"browser.download.manager.closeWhenDone": true
}
}
}
]
Internet Explorer
これといったものが見つからなかった・・・探し方が悪いかも。
se:ieOptions
- InternetExplorerOptions - ここのPropertiesの名前で試すくらい?
json Example
[
{
"browserName": "internet explorer",
"se:ieOptions" : {
"enablePersistentHover" : true,
"requireWindowFocus" : true
}
}
]
Edge
- WebDriver - EdgeDriver用
edgeOptions
json Example
Safari
これといったものが(略
safari.options
json Example
Appium
- Appium Desired Capabilities - Appium本家
json Example
その他
- WebDriver capabilities - W3Cの資料