Karana.WebUI.selenium
=====================

.. py:module:: Karana.WebUI.selenium

.. autoapi-nested-parse::

   Functions to setup selenium for frontend testing.



Functions
---------

.. autoapisummary::

   Karana.WebUI.selenium.setup


Module Contents
---------------

.. py:function:: setup(url: str, width: int = 800, height: int = 600) -> selenium.webdriver.remote.webdriver.WebDriver

   Create and setup a selenium WebDriver for frontend testing.

   :param url: The url of the frontend to load.
   :type url: str
   :param width: Viewport width. Defaults to 800.
   :type width: int
   :param height: Viewport height. Defaults to 600.
   :type height: int

   :returns: The selenium driver.
   :rtype: WebDriver


