a
    ¾Ê.cŸ  ã                   @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é    )ÚDesiredCapabilities)ÚChromiumOptionsc                       sj   e Zd ZdZ‡ fdd„Zeedœdd„ƒZejedœdd„ƒZe	dœ‡ fd	d
„Z
ee	dœdd„ƒZ‡  ZS )ÚOptionszms:edgeOptionsc                    s   t ƒ  ¡  d| _d S )NF)ÚsuperÚ__init__Ú_use_webview©Úself©Ú	__class__© úY/var/www/brookimports/venv/lib/python3.9/site-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)Úvaluec                 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   