U
    OfN
                     @   s    d dl mZ G dd deZdS )    )RemoteConnectionc                       s6   e Zd Zd	eeeeedd fddZdd Z  ZS )
ChromiumRemoteConnectionTFN)remote_server_addrvendor_prefixbrowser_name
keep_aliveignore_proxyreturnc           	         s@   t  ||| || _| |}| D ]\}}|| j|< q(d S )N)super__init__r   _remote_commandsitemsZ	_commands)	selfr   r   r   r   r   commandskeyvalue	__class__ Q/tmp/pip-unpacked-wheel-ds5t_0qj/selenium/webdriver/chromium/remote_connection.pyr      s
    
z!ChromiumRemoteConnection.__init__c                 C   sv   ddddddd| dfd	d| d
fd	d| dfdd| dfdd| dfdd| dfdd| dfd}|S )N)POSTz'/session/$sessionId/chromium/launch_app)r   z/session/$sessionId/permissions)r   //session/$sessionId/chromium/network_conditions)GETr   )DELETEr   r   z/session/$sessionId/z/cdp/executer   z/cast/get_sinksz/cast/get_issue_messagez/cast/set_sink_to_usez/cast/start_desktop_mirroringz/cast/start_tab_mirroringz/cast/stop_casting)Z	launchAppZsetPermissionsZsetNetworkConditionsZgetNetworkConditionsZdeleteNetworkConditionsZexecuteCdpCommandZgetSinksZgetIssueMessageZsetSinkToUseZstartDesktopMirroringZstartTabMirroringZstopCastingr   )r   r   Zremote_commandsr   r   r   r   $   s    z)ChromiumRemoteConnection._remote_commands)TF)__name__
__module____qualname__strboolr   r   __classcell__r   r   r   r   r      s     r   N)Z+selenium.webdriver.remote.remote_connectionr   r   r   r   r   r   <module>   s   