
    vKg                     V    S SK Jr  S SKJr  S SKJr  SSKJ	r	  SSK
Jr   " S S\5      rg)	    N)DriverFinder)	WebDriver   )Options)Servicec                   H   ^  \ rS rSrSr  SS\4U 4S jjjrU 4S jrSrU =r	$ )r      zAControls the WPEWebKitDriver and allows you to drive the browser.servicec                 H  > U(       a  UO	[        5       nU(       a  UO	[        5       U l        [        U R                  U5      R	                  5       U R                  l        U R                  R                  5         [        TU ]!  U R                  R                  US9  SU l
        g)a  Creates a new instance of the WPEWebKit driver.

Starts the service and then creates new instance of WPEWebKit Driver.

:Args:
 - options : an instance of ``WPEWebKitOptions``
 - service : Service object for handling the browser driver if you need to pass extra details
)command_executoroptionsFN)r   r   r
   r   get_driver_pathpathstartsuper__init__service_url
_is_remote)selfr   r
   	__class__s      f/var/www/highfloat_scraper/venv/lib/python3.13/site-packages/selenium/webdriver/wpewebkit/webdriver.pyr   WebDriver.__init__   sp     %'')")wwy(w?OOQ$,,*B*BGT    c                    >  [         TU ]  5         U R                  R                  5         g! [        R                   a     N1f = f! U R                  R                  5         f = f)zsCloses the browser and shuts down the WPEWebKitDriver executable
that is started when starting the WPEWebKitDriver.N)r   quithttp_clientBadStatusLiner
   stop)r   r   s    r   r   WebDriver.quit4   sP    	 GLN LL (( 		 LLs!   , A A AA A")r   r
   )NN)
__name__
__module____qualname____firstlineno____doc__r   r   r   __static_attributes____classcell__)r   s   @r   r   r      s,    K      ,   r   r   )http.clientclientr   'selenium.webdriver.common.driver_finderr   #selenium.webdriver.remote.webdriverr   RemoteWebDriverr   r   r
   r    r   r   <module>r-      s"   $ " @ L  !  ! r   