a
    ¾Ê.ct
  ã                   @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é    )ÚDesiredCapabilities)Ú
ArgOptionsc                       sh   e Zd ZdZ‡ fdd„Zedd„ ƒZejdd„ ƒZedd„ ƒZejd	d„ ƒZd
d„ Z	edd„ ƒZ
‡  ZS )ÚOptionszwebkitgtk:browserOptionsc                    s   t ƒ  ¡  d| _d| _d S )NÚ T)ÚsuperÚ__init__Ú_binary_locationÚ_overlay_scrollbars_enabled©Úself©Ú	__class__© ú^/var/www/brookimports/venv/lib/python3.9/site-packages/selenium/webdriver/webkitgtk/options.pyr      s    
zOptions.__init__c                 C   s   | j S )zX
        :Returns: The location of the browser binary otherwise an empty string
        ©r   r
   r   r   r   Úbinary_location   s    zOptions.binary_locationc                 C   s
   || _ dS )z~
        Allows you to set the browser binary to launch

        :Args:
         - value : path to the browser binary
        Nr   ©r   Úvaluer   r   r   r   %   s    c                 C   s   | j S )zH
        :Returns: Whether overlay scrollbars should be enabled
        ©r	   r
   r   r   r   Úoverlay_scrollbars_enabled/   s    z"Options.overlay_scrollbars_enabledc                 C   s
   || _ dS )zu
        Allows you to enable or disable overlay scrollbars

        :Args:
         - value : True or False
        Nr   r   r   r   r   r   6   s    c                 C   sB   | 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ÚargsZuseOverlayScrollbars)Z_capsr   Ú	argumentsr   r   ÚKEY)r   ZcapsZbrowser_optionsr   r   r   Úto_capabilities@   s    



zOptions.to_capabilitiesc                 C   s
   t j ¡ S )N)r   Z	WEBKITGTKÚcopyr
   r   r   r   Údefault_capabilitiesR   s    zOptions.default_capabilities)Ú__name__Ú
__module__Ú__qualname__r   r   Úpropertyr   Úsetterr   r   r   Ú__classcell__r   r   r   r   r      s   

	

	r   N)Z.selenium.webdriver.common.desired_capabilitiesr   Z!selenium.webdriver.common.optionsr   r   r   r   r   r   Ú<module>   s   