o
    Ñ·6iD
  ã                   @   s8   d dl mZ d dlmZ d dlmZ G dd„ deƒZdS )é    )ÚAny)Ú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e	fd
d„ƒZ
e
jddd„ƒZ
def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__© úi/var/www/hoanhtaovolam_webdjango/env/lib/python3.10/site-packages/selenium/webdriver/webkitgtk/options.pyr	      s   

zOptions.__init__c                 C   ó   | j S )z=Return the location of the browser binary or an empty string.©r
   r   r   r   r   Úbinary_location    ó   zOptions.binary_locationÚvaluec                 C   ó
   || _ dS )zuAllows 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   )z4Return whether overlay scrollbars should be enabled.©r   r   r   r   r   Úoverlay_scrollbars_enabled.   r   z"Options.overlay_scrollbars_enabledc                 C   r   )zlAllows you to enable or disable overlay scrollbars.

        Args:
            value: True or False
        Nr   r   r   r   r   r   3   r   c                 C   sB   | j }i }| jr| j|d< | jr| j|d< | j|d< ||tj< |S )z6Create a capabilities dictionary with all set options.ÚbinaryÚargsÚuseOverlayScrollbars)Ú_capsr   Ú	argumentsr   r   ÚKEY)r   ÚcapsÚbrowser_optionsr   r   r   Úto_capabilities<   s   



zOptions.to_capabilitiesc                 C   s
   t j ¡ S )N)r   Ú	WEBKITGTKÚcopyr   r   r   r   Údefault_capabilitiesK   s   
zOptions.default_capabilities)r   N)Ú__name__Ú
__module__Ú__qualname__r!   r	   ÚpropertyÚstrr   ÚsetterÚboolr   Údictr$   r'   Ú__classcell__r   r   r   r   r      s    r   N)Útypingr   Ú.selenium.webdriver.common.desired_capabilitiesr   Ú!selenium.webdriver.common.optionsr   r   r   r   r   r   Ú<module>   s   