U
    g                     @   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-3ysq0mf8/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   