
    hg
                     V    d dl mZ d dlmZ  G d de          Z G d de          ZdS )    )DesiredCapabilities)
ArgOptionsc                        e Zd Zd ZdefdZdS )Logc                     d | _         d S Nlevelselfs    Z/var/www/fb-scrape/myenv/lib/python3.11/site-packages/selenium/webdriver/safari/options.py__init__zLog.__init__   s    


    returnc                 *    | j         rdd| j         iiS i S )Nlogr
   r	   r   s    r   to_capabilitieszLog.to_capabilities   s#    : 	2GTZ011	r   N)__name__
__module____qualname__r   dictr    r   r   r   r      s>                r   r   c                        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dZ
ede	fd            Z xZS )	Optionszsafari.optionsc                     t          t          |                                            d | _        i | _        t                      | _        d S r   )superr   r   _binary_location_preferencesr   r   )r   	__class__s    r   r   zOptions.__init__"   s>    gt%%''' $"$55r   r   c                     | j         S )zX
        :Returns: The location of the browser binary otherwise an empty string
        r   r   s    r   binary_locationzOptions.binary_location(   s    
 $$r   valuec                     || _         dS )z~
        Allows you to set the browser binary to launch

        :Args:
         - value : path to the browser binary
        Nr!   )r   r#   s     r   r"   zOptions.binary_location/   s     !&r   c                     | j         }i }| j        r
| j        |d<   | j        r
| j        |d<   |                    | j                                                   |r||t          j        <   |S )zAMarshals the  options to an desired capabilities object.
        argsbinary)_caps
_argumentsr   updater   r   r   KEY)r   capsoptss      r   r   zOptions.to_capabilities9   su     z? 	+?DL  	3!2DNDH,,../// 	% $Dr   c                 >    t           j                                        S r   )r   SAFARIcopyr   s    r   default_capabilitieszOptions.default_capabilitiesN   s    ")..000r   )r   r   r   r+   r   propertystrr"   setterr   r   r1   __classcell__)r   s   @r   r   r      s        
C     % % % % X% &S & & & &    * 1d 1 1 1 X1 1 1 1 1r   r   N).selenium.webdriver.common.desired_capabilitiesr   !selenium.webdriver.common.optionsr   objectr   r   r   r   r   <module>r9      s   " O N N N N N 8 8 8 8 8 8    &   11 11 11 11 11j 11 11 11 11 11r   