U
    g]
                     @   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d fddZeedddZejeddd	dZed
d Z	e	jddddZ	dd Z
edd Z  ZS )Optionszwebkitgtk:browserOptionsN)returnc                    s   t    d| _d| _d S )N T)super__init___binary_location_overlay_scrollbars_enabledself	__class__ H/tmp/pip-unpacked-wheel-3ysq0mf8/selenium/webdriver/webkitgtk/options.pyr      s    
zOptions.__init__c                 C   s   | j S )zO:Returns: The location of the browser binary otherwise an empty
        string.r	   r   r   r   r   binary_location   s    zOptions.binary_location)valuer   c                 C   s
   || _ dS )zvAllows you to set the browser binary to launch.

        :Args:
         - value : path to the browser binary
        Nr   r   r   r   r   r   r   $   s    c                 C   s   | j S )z7: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 )zmAllows you to enable or disable overlay scrollbars.

        :Args:
         - value : True or False
        Nr   r   r   r   r   r   2   s    c                 C   sB   | j }i }| jr| j|d< | jr*| j|d< | j|d< ||tj< |S )zpCreates 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_capabilitiesK   s    zOptions.default_capabilities)__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   