o
    US`c
                     @   s,   d dl mZ d dlmZ G dd deZdS )    )DesiredCapabilities)
ArgOptionsc                       s|   e Zd ZdZd fddZedefddZejdeddfd	dZed
d Z	e	jdddZ	dd Z
edd Z  ZS )Optionszwebkitgtk:browserOptionsreturnNc                    s   t    d| _d| _d S )N T)super__init___binary_location_overlay_scrollbars_enabledself	__class__ O/usr/local/lib/python3.10/dist-packages/selenium/webdriver/webkitgtk/options.pyr      s   

zOptions.__init__c                 C      | j S )zX
        :Returns: The location of the browser binary otherwise an empty string
        r	   r   r   r   r   binary_location      zOptions.binary_locationvaluec                 C   
   || _ dS )z~
        Allows you to set the browser binary to launch

        :Args:
         - value : path to the browser binary
        Nr   r   r   r   r   r   r   %      
c                 C   r   )zH
        :Returns: Whether overlay scrollbars should be enabled
        r
   r   r   r   r   overlay_scrollbars_enabled/   r   z"Options.overlay_scrollbars_enabledc                 C   r   )zu
        Allows you to enable or disable overlay scrollbars

        :Args:
         - value : True or False
        Nr   r   r   r   r   r   6   r   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)r   N)__name__
__module____qualname__r   r   propertystrr   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   