
    hg                     :    d dl mZ d dlmZ  G d de          ZdS )    )DesiredCapabilities)ChromiumOptionsc                        e Zd ZdZ fdZedefd            Zej        defd            Zde	f fdZ
ede	fd            Z xZS )	Optionszms:edgeOptionsc                 d    t          t          |                                            d| _        d S )NF)superr   __init___use_webview)self	__class__s    X/var/www/fb-scrape/myenv/lib/python3.11/site-packages/selenium/webdriver/edge/options.pyr	   zOptions.__init__   s-    gt%%'''!    returnc                     | j         S N)r
   r   s    r   use_webviewzOptions.use_webview   s      r   valuec                 .    t          |          | _        d S r   )boolr
   )r   r   s     r   r   zOptions.use_webview!   s     KKr   c                 n    t          t          |                                           }| j        rd|d<   |S )z
        Creates a capabilities with all the options that have been set and
        :Returns: A dictionary with everything
        webview2browserName)r   r   to_capabilitiesr
   )r   capsr   s     r   r   zOptions.to_capabilities%   s:    
 Wd##3355 	-",Dr   c                 >    t           j                                        S r   )r   EDGEcopyr   s    r   default_capabilitieszOptions.default_capabilities0   s    "',,...r   )__name__
__module____qualname__KEYr	   propertyr   r   setterdictr   r   __classcell__)r   s   @r   r   r      s        
C" " " " " !T ! ! ! X! ( ( ( ( (	 	 	 	 	 	 	 /d / / / X/ / / / /r   r   N).selenium.webdriver.common.desired_capabilitiesr   #selenium.webdriver.chromium.optionsr   r    r   r   <module>r+      s`   $ O N N N N N ? ? ? ? ? ?/ / / / /o / / / / /r   