Webdriver_cohttp_eio.CapabilitiesThe requested capabilities when creating a new session.
See the WebDriver specification and the documentation of the chosen browser for more informations.
type t = jsonA json describing the required capabilities for the session.
The capabilities are highly specific to the targetted browser. Here are some examples to get you started:
val chrome : tThe default chrome configuration:
{ "capabilities":
{ "firstMatch": [{ "browser_name": "chrome" } ] } }val chrome_headless : tSame as chrome, but runs in the background without a graphical window:
{ "capabilities":
{ "firstMatch":
[{ "browser_name": "chrome",
"goog:chromeOptions": { "args": [ "--headless"
, "--disable-gpu"
, "--no-sandbox"
, "--disable-dev-shm-usage"
, "--window-size=1920,1080"
] }
}
]
}
}val firefox : tThe default firefox configuration:
{ "capabilities":
{ "firstMatch": [{ "browser_name": "firefox" } ] } }val firefox_headless : tSame as firefox, but runs in the background without a graphical window:
{ "capabilities":
{ "firstMatch":
[{ "browser_name": "firefox",
"moz:firefoxOptions": { "args": ["-headless"] }
}
]
}
}