utils.webdriver
===============

.. py:module:: utils.webdriver

.. autoapi-nested-parse::

   This Webdriver class acts as a context manager for the selenium webdriver.





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

.. py:class:: CookieSettingDriver(cookie, cookie_jar, facebook_accept_cookies, *args, **kwargs)

   Bases: :py:obj:`selenium.webdriver.Firefox`


   Controls the GeckoDriver and allows you to drive the browser.


   .. py:attribute:: facebook_accept_cookies
      :type:  bool


   .. py:attribute:: cookie
      :type:  str


   .. py:attribute:: cookie_jar
      :type:  http.cookiejar.MozillaCookieJar


   .. py:method:: get(url: str)

      Navigate the browser to the specified URL in the current window or
      tab.

      The method does not return until the page is fully loaded (i.e. the
      onload event has fired).

      Parameters:
      ----------
      url : str
          - The URL to be opened by the browser.
          - Must include the protocol (e.g., http://, https://).

      Example:
      --------
      >>> driver = webdriver.Chrome()
      >>> driver.get("https://example.com")



.. py:class:: Webdriver(width: int, height: int, timeout_seconds: int, facebook_accept_cookies: bool = False, http_proxy: str = '', print_options: dict = {}, auth: dict = {})

   .. py:attribute:: width


   .. py:attribute:: height


   .. py:attribute:: timeout_seconds


   .. py:attribute:: auth


   .. py:attribute:: facebook_accept_cookies
      :value: False



   .. py:attribute:: http_proxy
      :value: ''



   .. py:attribute:: print_options


