a
    5ñ»jx  ã                   @   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 )	ÚSafariRemoteConnectionZbrowserNameTFN)Úremote_server_addrÚ
keep_aliveÚignore_proxyÚclient_configÚreturnc                    sD   |pt ||dd�}tƒ j||d� d| jd< d| jd< d| jd	< d S )
Néx   )r   r   Útimeout)r	   r
   )ÚGETú%/session/$sessionId/apple/permissionsZGET_PERMISSIONS)ÚPOSTr   ZSET_PERMISSIONS)r   z)/session/$sessionId/apple/attach_debuggerZATTACH_DEBUGGER)r   ÚsuperÚ__init__Z	_commands)Úselfr   r   r	   r
   ©Ú	__class__© úQE:\soccer\ml_env\Lib\site-packages\selenium/webdriver/safari/remote_connection.pyr      s    ÿþ

zSafariRemoteConnection.__init__)TFN)Ú__name__Ú
__module__Ú__qualname__r   ZSAFARIZ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   