Features

This section describes all features that are shipped with this package.

Scenario Features

class balderhub.selenium.lib.scenario_features.SeleniumFeature(**kwargs)

Bases: WebdriverControlFeature

The specific browser automation tool feature implementation for selenium environments.

create() None

sets up the selenium driver

property driver: BaseSeleniumDriver
Returns:

returns the base driver class (holds the custom implementation of the guicontrol tool)

class balderhub.selenium.lib.scenario_features.SeleniumProxy(**kwargs)

Bases: WebdriverControlFeature

Proxy feature implementation for selenium environments in case the selenium instance is provided within another device.

class Selenium

Bases: VDevice

vdevice that has the real SeleniumFeature

create() None

set up the used guicontrol webdriver tool

property driver: BaseSeleniumDriver
Returns:

returns the base driver class (holds the custom implementation of the guicontrol tool)

property selenium_feature: SeleniumFeature
Returns:

returns the orginal selenium feature instance

Setup Features

class balderhub.selenium.lib.setup_features.SeleniumChromeWebdriverFeature(**kwargs)

Bases: SeleniumFeature

Setup Feature to work with Selenium and Chrome Webdriver

create()

sets up the selenium driver

property keep_alive: bool
Returns:

True if keep_alive of selenium session should be enabled, otherwise False

property selenium_options: Options | None
Returns:

returns the selenium options

property selenium_service: Service | None
Returns:

returns the selenium service

class balderhub.selenium.lib.setup_features.SeleniumEdgeWebdriverFeature(**kwargs)

Bases: SeleniumFeature

Setup Feature to work with Selenium and Edge Webdriver

create()

sets up the selenium driver

property keep_alive: bool
Returns:

True if keep_alive of selenium session should be enabled, otherwise False

property selenium_options: Options | None
Returns:

returns the selenium options

property selenium_service: Service | None
Returns:

returns the selenium service

class balderhub.selenium.lib.setup_features.SeleniumFirefoxWebdriverFeature(**kwargs)

Bases: SeleniumFeature

Setup Feature to work with Selenium and Firefox Webdriver

create()

sets up the selenium driver

property keep_alive: bool
Returns:

True if keep_alive of selenium session should be enabled, otherwise False

property selenium_options: Options | None
Returns:

returns the selenium options

property selenium_service: Service | None
Returns:

returns the selenium service

class balderhub.selenium.lib.setup_features.SeleniumIeWebdriverFeature(**kwargs)

Bases: SeleniumFeature

Setup Feature to work with Selenium and IE Webdriver

create()

sets up the selenium driver

property keep_alive: bool
Returns:

True if keep_alive of selenium session should be enabled, otherwise False

property selenium_options: Options | None
Returns:

returns the selenium options

property selenium_service: Service | None
Returns:

returns the selenium service

class balderhub.selenium.lib.setup_features.SeleniumRemoteWebdriverFeature(**kwargs)

Bases: SeleniumFeature

Setup Feature to work with Selenium and Remote Webdriver like Selenium Grid

property command_executor: str
Returns:

returns the command executor

create()

sets up the selenium driver

property file_detector: object | None
Returns:

returns the selenium session file detector or None if no one should be set

property keep_alive: bool
Returns:

True if keep_alive of selenium session should be enabled, otherwise False

property selenium_options: BaseOptions
Returns:

returns the selenium options

class balderhub.selenium.lib.setup_features.SeleniumSafariWebdriverFeature(**kwargs)

Bases: SeleniumFeature

Setup Feature to work with Selenium and Safari Webdriver

create()

sets up the selenium driver

property keep_alive: bool
Returns:

True if keep_alive of selenium session should be enabled, otherwise False

property reuse_service: bool
Returns:

returns true if the selenium session should reuse the service, otherwise False

property selenium_options: Options | None
Returns:

returns the selenium options

property selenium_service: Service | None
Returns:

returns the selenium service