
    hg                     :    d dl mZ d dlmZ  G d de          ZdS )    )DesiredCapabilities)
ArgOptionsc                   z     e Zd ZdZ fdZed             Zd Zed             Zej	        d             Zd Z
 xZS )Optionszwpe:browserOptionsc                     t          t          |                                            d| _        t          j                                        | _        d S )N )superr   __init___binary_locationr   	WPEWEBKITcopy_caps)self	__class__s    ]/var/www/fb-scrape/myenv/lib/python3.11/site-packages/selenium/webdriver/wpewebkit/options.pyr
   zOptions.__init__   sA    gt%%''' "(27799


    c                     | j         S )Nr   r   s    r   capabilitieszOptions.capabilities   s
    zr   c                     || j         |<   dS )zSets a capability.Nr   )r   namevalues      r   set_capabilityzOptions.set_capability"   s     
4r   c                     | j         S )zV
        Returns the location of the browser binary otherwise an empty string
        r   r   s    r   binary_locationzOptions.binary_location&   s    
 $$r   c                     || _         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                 z    | j         }i }| j        r
| j        |d<   | j        r
| j        |d<   ||t          j        <   |S )z
        Creates a capabilities with all the options that have been set and
        returns a dictionary with everything
        binaryargs)r   r   	argumentsr   KEY)r   capsbrowser_optionss      r   to_capabilitieszOptions.to_capabilities7   sO    
 z 	=(,(<OH%> 	5&*nOF#+W[r   )__name__
__module____qualname__r#   r
   propertyr   r   r   setterr&   __classcell__)r   s   @r   r   r      s        
C: : : : :
   X! ! ! % % X% & & &      r   r   N).selenium.webdriver.common.desired_capabilitiesr   !selenium.webdriver.common.optionsr   r    r   r   <module>r0      s`   $ O N N N N N 8 8 8 8 8 80 0 0 0 0j 0 0 0 0 0r   