
    ,ih                     2    d dl mZ d dlmZ  G d de      Zy)    )ChromiumOptions)DesiredCapabilitiesc                        e Zd ZdZd
 fdZedefd       Zej                  deddfd       Zde	f fdZ
ede	fd	       Z xZS )Optionszms:edgeOptionsreturnNc                 0    t         |           d| _        y)z-Initialize EdgeOptions with default settings.FN)super__init___use_webview)self	__class__s    n/var/www/system.tvplus.app.br/jogos/scrap/venv/lib/python3.12/site-packages/selenium/webdriver/edge/options.pyr
   zOptions.__init__   s    !    c                     | j                   S )zT
        Returns:
            Whether WebView2 is enabled for Edge browser.
        )r   r   s    r   use_webviewzOptions.use_webview   s        r   valuec                 $    t        |      | _        y)zEnables or disables WebView2 support for Edge browser.

        Args:
            value: True to enable WebView2 support, False to disable.
        N)boolr   )r   r   s     r   r   zOptions.use_webview&   s     !Kr   c                 F    t         |          }| j                  rd|d<   |S )zCreates a capabilities with all the options that have been set.

        Returns:
            A dictionary with all set options for Edge browser.
        webview2browserName)r	   to_capabilitiesr   )r   capsr   s     r   r   zOptions.to_capabilities/   s*     w&(",Dr   c                 >    t         j                  j                         S )zQ
        Returns:
            The default capabilities for Edge browser.
        )r   EDGEcopyr   s    r   default_capabilitieszOptions.default_capabilities;   s     #'',,..r   )r   N)__name__
__module____qualname__KEYr
   propertyr   r   setterdictr   r   __classcell__)r   s   @r   r   r      sw    
C"
 !T ! ! ( ($ ( (
 
 /d / /r   r   N)#selenium.webdriver.chromium.optionsr   .selenium.webdriver.common.desired_capabilitiesr   r    r   r   <module>r*      s   $ @ N+/o +/r   