o
    US`c§  ã                   @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é    )ÚDesiredCapabilities)ÚChromiumOptionsc                       sn   e Zd ZdZ‡ fdd„Zedefdd„ƒZejdeddfd	d„ƒZde	f‡ fd
d„Z
ede	fdd„ƒZ‡  ZS )ÚOptionszms:edgeOptionsc                    s   t ƒ  ¡  d| _d S )NF)ÚsuperÚ__init__Ú_use_webview©Úself©Ú	__class__© úJ/usr/local/lib/python3.10/dist-packages/selenium/webdriver/edge/options.pyr      s   

zOptions.__init__Úreturnc                 C   s   | j S ©N)r   r   r   r   r   Úuse_webview   s   zOptions.use_webviewÚvalueNc                 C   s   t |ƒ| _d S r   )Úboolr   )r	   r   r   r   r   r   !   s   c                    s   t ƒ  ¡ }| jrd|d< |S )zƒ
        Creates a capabilities with all the options that have been set and
        :Returns: A dictionary with everything
        Zwebview2ZbrowserName)r   Úto_capabilitiesr   )r	   Zcapsr
   r   r   r   %   s   
zOptions.to_capabilitiesc                 C   s
   t j ¡ S r   )r   ZEDGEÚcopyr   r   r   r   Údefault_capabilities0   s   
zOptions.default_capabilities)Ú__name__Ú
__module__Ú__qualname__ZKEYr   Úpropertyr   r   ÚsetterÚdictr   r   Ú__classcell__r   r   r
   r   r      s    r   N)Z.selenium.webdriver.common.desired_capabilitiesr   Z#selenium.webdriver.chromium.optionsr   r   r   r   r   r   Ú<module>   s   