
    i                     &    d dl mZ  G d de      Zy)    )	WebDriverc                   F     e Zd ZdZ fdZd Zd fdZd Zd Zd Z	 xZ
S )	LocalWebDriverz Base class for local WebDrivers.c                 2    t        |   |i | d| _        y )NF)super__init__
_is_remote)selfargskwargs	__class__s      _/var/www/html/BatchJob/venv/lib/python3.12/site-packages/selenium/webdriver/common/webdriver.pyr   zLocalWebDriver.__init__   s    $)&)    c                 n    | t         u rt        d| j                   d      t        j	                  |       S )NzOnly children of 'z' may be instantiated)r   	TypeError__name__object__new__)clsr   r   s      r   r   zLocalWebDriver.__new__   s3    . 0>STUU~~c""r   c                    	 t         |           t        | d      r(| j                  | j                  j                          yyy# t        $ r Y @w xY w# t        | d      r(| j                  | j                  j                          w w w xY w)z8Closes the browser and shuts down the driver executable.serviceN)r   quit	Exceptionhasattrr   stop)r
   r   s    r   r   zLocalWebDriver.quit!   s    	$GLN
 tY'DLL,D!!# -E'	  		 tY'DLL,D!!# -E's#   A 	AA AA 6Bc                     t         z$Only implemented in RemoteWebDriver.NotImplementedErrorr
   r   r   s      r   download_filezLocalWebDriver.download_file,       !!r   c                     t         r   r   r    s      r   get_downloadable_filesz%LocalWebDriver.get_downloadable_files0   r"   r   c                     t         r   r   r    s      r   delete_downloadable_filesz(LocalWebDriver.delete_downloadable_files4   r"   r   )returnN)r   
__module____qualname____doc__r   r   r   r!   r$   r&   __classcell__)r   s   @r   r   r      s$    * #
	$"""r   r   N)#selenium.webdriver.remote.webdriverr   RemoteWebDriverr    r   r   <module>r/      s   $ M!"_ !"r   