
    ,h$                     J    d dl mZ d dlmZ d dlmZ d dlmZ  G d de      Zy)    )Optional)DesiredCapabilities)ClientConfig)RemoteConnectionc                   f     e Zd Zej                  d   Z	 	 	 d	dededee   dee	   ddf
 fdZ
 xZS )
FirefoxRemoteConnectionbrowserNameNremote_server_addr
keep_aliveignore_proxyclient_configreturnc                     |xs t        ||d      }t        | 	  ||       d| j                  d<   d| j                  d<   d| j                  d	<   d
| j                  d<   d| j                  d<   y )Nx   )r
   r   timeout)r   r   )GET/session/$sessionId/moz/contextGET_CONTEXT)POSTr   SET_CONTEXT)r   z%/session/$sessionId/moz/addon/installINSTALL_ADDON)r   z'/session/$sessionId/moz/addon/uninstallUNINSTALL_ADDON)r   z'/session/$sessionId/moz/screenshot/fullFULL_PAGE_SCREENSHOT)r   super__init__	_commands)selfr
   r   r   r   	__class__s        n/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/selenium/webdriver/firefox/remote_connection.pyr   z FirefoxRemoteConnection.__init__   s     & 
1jRU*
 	%' 	 	

 )S}%(S}%*[',_()1c-.    )TFN)__name__
__module____qualname__r   FIREFOXbrowser_namestrboolr   r   r   __classcell__)r   s   @r   r   r      sh    &..}=L
  ',04dd d tn	d
  -d 
d dr    r   N)	typingr   .selenium.webdriver.common.desired_capabilitiesr   'selenium.webdriver.remote.client_configr   +selenium.webdriver.remote.remote_connectionr   r    r    r   <module>r.      s"   $  N @ Hd. dr    