a
    5ñ»j$  ã                   @   sD   d dl mZ d dlmZ d dlmZ d dlmZ G dd„ deƒZdS )é    )ÚOptional)ÚDesiredCapabilities)ÚClientConfig)ÚRemoteConnectionc                       s>   e Zd Zejd Zdeeee ee	 ddœ‡ fdd„Z
‡  ZS )	ÚFirefoxRemoteConnectionZbrowserNameTFN)Úremote_server_addrÚ
keep_aliveÚignore_proxyÚclient_configÚreturnc                    sX   |pt ||dd�}tƒ j||d� d| jd< d| jd< d| jd	< d
| jd< d| jd< d S )Néx   )r   r   Útimeout)r	   r
   )ÚGETú/session/$sessionId/moz/contextZGET_CONTEXT)ÚPOSTr   ZSET_CONTEXT)r   z%/session/$sessionId/moz/addon/installZINSTALL_ADDON)r   z'/session/$sessionId/moz/addon/uninstallZUNINSTALL_ADDON)r   z'/session/$sessionId/moz/screenshot/fullZFULL_PAGE_SCREENSHOT)r   ÚsuperÚ__init__Z	_commands)Úselfr   r   r	   r
   ©Ú	__class__© úRE:\soccer\ml_env\Lib\site-packages\selenium/webdriver/firefox/remote_connection.pyr      s    ÿþ



z FirefoxRemoteConnection.__init__)TFN)Ú__name__Ú
__module__Ú__qualname__r   ZFIREFOXZbrowser_nameÚstrÚboolr   r   r   Ú__classcell__r   r   r   r   r      s   
   ûúr   N)	Útypingr   Z.selenium.webdriver.common.desired_capabilitiesr   Z'selenium.webdriver.remote.client_configr   Z+selenium.webdriver.remote.remote_connectionr   r   r   r   r   r   Ú<module>   s   