πŸš—Driver

Configure the driver via the pylenium.json or the CLI.

The Driver Settings

Supported Drivers:

  • Chrome

  • Edge

  • Safari

  • Firefox

  • Internet Explorer

Let's take a look at the Driver Settings in pylenium.json

pylenium.json
"driver": {
    "browser": "chrome",
    "remote_url": "",
    "wait_time": 10,
    "page_load_wait_time": 0,
    "options": [],
    "capabilities": {},
    "experimental_options": null,
    "extension_paths": [],
    "webdriver_kwargs": {},
    "local_path": ""
}

Let's break each one of these down so you know what they are for and how you can configure them.

browser

Default is chrome

This is the browser name - "chrome" or "firefox" or "ie" or "safari" or "edge"

remote_url

Default is empty or""

This is used to connect to things like Selenium Grid.

wait_time

Default is 10

The global number of seconds for actions to wait for.

page_load_wait_time

Default is 0

The amount of time to wait for the page to load before raising an error.

options

Default is empty or []

A list of browser options to include when instantiating Pylenium.

experimental_options

Default is null or None

A list of experimental options to include in the driver. These can only be added using pylenium.json

capabilities

Default is empty or {}

A dictionary of the desired capabilities to include when instantiating Pylenium.

extension_paths

The list of extensions to be included when instantiating Pylenium.

Default is empty or []

Last updated