quilla.browser package¶
Submodules¶
quilla.browser.browser_validations module¶
- class quilla.browser.browser_validations.BrowserValidations(ctx, target, url_root, steps)¶
Bases:
object
A class that defines the behaviours for validating a set of steps for a specific browser target.
- Parameters
ctx (
Context
) – The runtime context for the applicationtarget (
BrowserTargets
) – An enum specifying the target browser that is desiredurl_root (
str
) – The initial url for the browser to navigate tosteps (
StepsAggregator
) – An aggregator class that manages all substeps
- ctx¶
The runtime context for the application
- clean()¶
Closes the browser instance and resets all the step drivers to None state
- driver_selector: Dict[quilla.common.enums.BrowserTargets, selenium.webdriver.remote.webdriver.WebDriver] = {<BrowserTargets.FIREFOX: 'Firefox'>: <class 'quilla.browser.drivers.FirefoxBrowser'>, <BrowserTargets.CHROME: 'Chrome'>: <class 'quilla.browser.drivers.ChromeBrowser'>, <BrowserTargets.EDGE: 'Edge'>: <class 'quilla.browser.drivers.EdgeBrowser'>}¶
- init()¶
Creates the appropriate driver, sets the start URL to the specified root, and sets all steps to have the appropriate driver
- run_steps()¶
Executes all stored steps. Pass through method for the steps run_steps method
- Return type
List
[BaseReport
]- Returns
A list of reports generated by the steps
- property target¶
- validate()¶
Initializes the browser, runs the execution steps, and closes up the browser while ensuring that any exceptions still allow for cleanup of the browser
- Return type
List
[BaseReport
]- Returns
A list of reports produced by the run_steps function
- Raises
Exception – Any exception produced by the run_steps function
quilla.browser.drivers module¶
Module for webdriver subclasses that configure the browsers
- class quilla.browser.drivers.ChromeBrowser(ctx)¶
Bases:
selenium.webdriver.chrome.webdriver.WebDriver
A class used to configure the Chrome browser driver for use in UIValidation module.
- Parameters
ctx (
Context
) – The runtime context for the application