
    hg
                     :    d dl mZ d dlmZ  G d de          ZdS )    )DesiredCapabilities)
ArgOptionsc                        e Zd ZdZ fdZed             Zej        d             Zed             Zej        d             Zd Z	ed             Z
 xZS )	Optionszwebkitgtk:browserOptionsc                 r    t          t          |                                            d| _        d| _        d S )N T)superr   __init___binary_location_overlay_scrollbars_enabled)self	__class__s    ]/var/www/fb-scrape/myenv/lib/python3.11/site-packages/selenium/webdriver/webkitgtk/options.pyr
   zOptions.__init__   s5    gt%%''' "+/(((    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   c                     || _         dS )z~
        Allows you to set the browser binary to launch

        :Args:
         - value : path to the browser binary
        Nr   r   values     r   r   zOptions.binary_location%   s     !&r   c                     | j         S )zH
        :Returns: Whether overlay scrollbars should be enabled
        r   r   s    r   overlay_scrollbars_enabledz"Options.overlay_scrollbars_enabled/   s    
 //r   c                     || _         dS )zu
        Allows you to enable or disable overlay scrollbars

        :Args:
         - value : True or False
        Nr   r   s     r   r   z"Options.overlay_scrollbars_enabled6   s     ,1(((r   c                     | j         }i }| j        r
| j        |d<   | j        r
| j        |d<   | 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useOverlayScrollbars)_capsr   	argumentsr   r   KEY)r   capsbrowser_optionss      r   to_capabilitieszOptions.to_capabilities@   s]    
 z 	=(,(<OH%> 	5&*nOF#262Q./+W[r   c                 >    t           j                                        S )N)r   	WEBKITGTKcopyr   s    r   default_capabilitieszOptions.default_capabilitiesR   s    ",11333r   )__name__
__module____qualname__r"   r
   propertyr   setterr   r%   r)   __classcell__)r   s   @r   r   r      s        
$C0 0 0 0 0
 % % X% & & & 0 0 X0  &1 1 '&1  $ 4 4 X4 4 4 4 4r   r   N).selenium.webdriver.common.desired_capabilitiesr   !selenium.webdriver.common.optionsr   r    r   r   <module>r3      s`   $ O N N N N N 8 8 8 8 8 8>4 >4 >4 >4 >4j >4 >4 >4 >4 >4r   