Skip to navigation

Browser

Browser configuration.

Referenced In

Fields

FieldTypeDescriptionDefault
namestringRequired. Name of the browser.

Accepted values: chrome, firefox, safari, webkit
—
explicitbooleanReadOnly. Set automatically during context resolution: true when the author explicitly requested this browser (as opposed to it being auto-selected as the default). The runner’s cross-browser fallback uses it to decide whether substituting another engine reports PASS (auto-selected) or WARNING (explicitly pinned).—
headlessbooleanOptional. If true, runs the browser in headless mode.true
windowobject(Browser Window)Optional. Browser dimensions.—
viewportobject(Browser Viewport)Optional. Viewport dimensions.—

Examples

{
"name": "chrome",
"headless": true,
"window": {
"width": 42,
"height": 42
},
"viewport": {
"width": 42,
"height": 42
}
}