supercontest.util.web
Utilities for managing browser access within the app (webscrapes).
Functions
Instantiate and configure a selenium webdriver for chrome (headless). |
|
Provides a webdriver for the calling function. |
- supercontest.util.web.get_webdriver() Any
Instantiate and configure a selenium webdriver for chrome (headless).
- Returns:
The configured web driver.
- supercontest.util.web.with_webdriver(func: Callable[[Concatenate[Any, P]], R]) Callable[[P], R]
Provides a webdriver for the calling function. And quits the driver after.
- Parameters:
func – The decorated function.
- Returns:
The wrapper function.