Karana.WebUI.selenium#
Functions to setup selenium for frontend testing.
Functions#
|
Create and setup a selenium WebDriver for frontend testing. |
Module Contents#
- Karana.WebUI.selenium.setup(url: str, width: int = 800, height: int = 600) selenium.webdriver.remote.webdriver.WebDriver[source]#
Create and setup a selenium WebDriver for frontend testing.
- Parameters:
url (str) – The url of the frontend to load.
width (int) – Viewport width. Defaults to 800.
height (int) – Viewport height. Defaults to 600.
- Returns:
The selenium driver.
- Return type:
WebDriver