LoginSignup
14
12

More than 5 years have passed since last update.

SeleniumのCapabilitiesリンク集(を作りたい)

Last updated at Posted at 2018-07-25

概要

Seleniumを利用するときに設定できるCapabilitiesの値を探すのが面倒でした。
Capabilitiesリンク集を作り、このページから探せればと思い作成しています。

各ブラウザのオプション名はJavaの org.openqa.selenium.MutableCapabilities 内にある OPTION_KEYS から取っています。

後で簡単なcapabilitiesのjson記述サンプルも載せたい。

こんなのあるよってのがあれば、追加したいので教えていただきたいです。

Selenium

json Example

Chrome

chromeOptions

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

moz:firefoxOptions

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

json Example

[
 {
  "browserName": "internet explorer",
  "se:ieOptions" : {
    "enablePersistentHover" : true,
    "requireWindowFocus" : true
  }
 }
]

Edge

edgeOptions

json Example

Safari

これといったものが(略

safari.options

json Example

Appium

json Example

その他

14
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
12