Added
* `WebDriverFactory().build_capabilities()`
* capabilities is a single dictionary instead of a list of dictionaries
Originally I wasn't going to add capabilities because it was going to be deprecated in Selenium 4. However, it seems enough people need it \(including my very own Workfront\) and even with Selenium 4, there will be cases where they are needed.
Also, with the refactor it became very clear that a single dictionary of capabilities was much better than a list of them. This change has been reflected in `pylenium.json` as well as in the CLI args.
{% code title="pylenium.json" %}
python
{
"driver": {
"capabilities": {
"enableVNC": true,
"enableVideo": false,
"name": "value"
}
}
}
{% endcode %}
{% code title="Terminal" %}
python
--caps = '{"name": "value", "boolean": true}'
{% endcode %}