U
    PÖýfž  ã                   @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é    )ÚChromiumOptions)ÚDesiredCapabilitiesc                       sr   e Zd ZdZddœ‡ fdd„Zeedœdd„ƒZejeddœd	d„ƒZe	dœ‡ fd
d„Z
ee	dœdd„ƒZ‡  ZS )ÚOptionszms:edgeOptionsN)Úreturnc                    s   t ƒ  ¡  d| _d S )NF)ÚsuperÚ__init__Ú_use_webview©Úself©Ú	__class__© úC/tmp/pip-unpacked-wheel-ds5t_0qj/selenium/webdriver/edge/options.pyr      s    
zOptions.__init__c                 C   s   | j S ©N)r   r	   r   r   r   Úuse_webview   s    zOptions.use_webview)Úvaluer   c                 C   s   t |ƒ| _d S r   )Úboolr   )r
   r   r   r   r   r   !   s    c                    s   t ƒ  ¡ }| jrd|d< |S )zrCreates 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_capabilities.   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.chromium.optionsr   Z.selenium.webdriver.common.desired_capabilitiesr   r   r   r   r   r   Ú<module>   s   