
    vKg                     n    S SK r S SKrS SKJr  \ R                  " S5      r " S S\R                  5      rg)    N)serviceWPEWebDriverc                      ^  \ rS rSrSr\SSSS4S\S\S\R                  \   S\R                  \R                  \      S	\R                  \R                  \\4      4
U 4S
 jjjrS\R                  \   4S jrSrU =r$ )Service   aw  A Service class that is responsible for the starting and stopping of
`WPEWebDriver`.

:param executable_path: install path of the WPEWebDriver executable, defaults to the first `WPEWebDriver` in `$PATH`.
:param port: Port for the service to run on, defaults to 0 where the operating system will decide.
:param service_args: (Optional) List of args to be passed to the subprocess when launching the executable.
:param log_output: (Optional) File path for the file to be opened and passed as the subprocess stdout/stderr handler.
:param env: (Optional) Mapping of environment variables for the new process, defaults to `os.environ`.
r   Nexecutable_pathport
log_outputservice_argsenvc                 P   > U=(       d    / U l         [        TU ]  " SUUUUS.UD6  g )N)r   r	   r
   r    )r   super__init__)selfr   r	   r
   r   r   kwargs	__class__s          d/var/www/highfloat_scraper/venv/lib/python3.13/site-packages/selenium/webdriver/wpewebkit/service.pyr   Service.__init__$   s:     ).B 	
+!		

 	
    returnc                 :    SU R                    /U R                  -   $ )Nz-p)r	   r   )r   s    r   command_line_argsService.command_line_args6   s    %(9(999r   )r   )__name__
__module____qualname____firstlineno____doc__DEFAULT_EXECUTABLE_PATHstrinttypingOptionalListMappingr   r   __static_attributes____classcell__)r   s   @r   r   r      s      7+/:>9=

 
 OOC(	

 oofkk#&67
 __V^^CH56
 
$:6;;s#3 : :r   r   )shutilr#   selenium.webdriver.commonr   whichr    r   r   r   r   <module>r,      s/   "   - ,,~6 :goo :r   