Predefined Capability Sets
When you execute a Selenium test in webmate, you can use the capability wm:capabilitySet to activate a predefined set of capabilities.
These sets contain assignments for frequently used combinations of capabilities, e.g. the latest chrome version on a Windows 11 machine.
Currently, the following capability sets are available:
| Capability Set | Capability Assignments | Description |
|---|---|---|
chrome-latest | browserName: Chrome version: 126 platform: WINDOWS_11_64 | Use the most recent version of Google Chrome on Windows 11. |
firefox-latest | browserName: Firefox version: 124 platform: WINDOWS_11_64 | Use the most recent version of Firefox on Windows 11. |
edge-latest | browserName: Edge version: 126 platform: WINDOWS_11_64 | Use the most recent version of Edge on Windows 11. |
safari-latest | browserName: Safari version: 17 platform: MACOS_MONTEREY_64 | Use the most recent version of Safari on macOS Monterey. |
Overwriting Predefined Capabilities
Capabilities that are specified using capability sets can be overwritten. The chrome-latest set defines a WINDOWS_11_64 target platform. Explicitly setting the platform capability overwrites this. The test will then run on a different operating system.
Example: The following capability specification
results in the following effective capabilities: