
    vKg                     B    S SK r S SKJr   " S S\R                  5      rg)    N)servicec                   R  ^  \ rS rSrSr       SS\S\S\R                  \R                  \      S\R                  \R                  \\4      S\S	\S
S4U 4S jjjrS
\R                  \   4S jr\S
\4S j5       r\S
\4S j5       r\R"                  S\S
S4S j5       rSrU =r$ )Service   a  A Service class that is responsible for the starting and stopping of
`safaridriver`  This is only supported on MAC OSX.

:param executable_path: install path of the safaridriver executable, defaults to `/usr/bin/safaridriver`.
: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 env: (Optional) Mapping of environment variables for the new process, defaults to `os.environ`.
:param enable_logging: (Optional) Enable logging of the service. Logs can be located at `~/Library/Logs/com.apple.WebDriver/`
Nexecutable_pathportservice_argsenvenable_loggingdriver_path_env_keyreturnc                    > U=(       d    / U l         U=(       d    SnU(       a  U R                   R                  S5        XPl        [        T	U ]  " SUUUUS.UD6  g )NSE_SAFARIDRIVERz
--diagnose)r   r   r
   r    )r	   appendreuse_servicesuper__init__)
selfr   r   r	   r
   r   r   r   kwargs	__class__s
            a/var/www/highfloat_scraper/venv/lib/python3.13/site-packages/selenium/webdriver/safari/service.pyr   Service.__init__"   sc     ).B1F5F$$\2* 	
+ 3		

 	
    c                 :    SU R                    /U R                  -   $ )Nz-p)r   r	   r   s    r   command_line_argsService.command_line_args<   s    %(9(999r   c                      SU R                    3$ )z)Gets the url of the SafariDriver Service.zhttp://localhost:)r   r   s    r   service_urlService.service_url?   s     #499+..r   c                     U R                   $ )N)_reuse_servicer   s    r   r   Service.reuse_serviceD   s    """r   reusec                 P    [        U[        5      (       d  [        S5      eXl        g )Nzreuse must be a boolean)
isinstancebool	TypeErrorr#   )r   r%   s     r   r   r$   H   s!    %&&566#r   )r#   r   r	   )Nr   NNFFN)__name__
__module____qualname____firstlineno____doc__strinttypingOptionalListMappingr(   r   r   propertyr    r   setter__static_attributes____classcell__)r   s   @r   r   r      s     $:>9=$#'

 
 oofkk#&67	

 __V^^CH56
 
 !
 

 
4:6;;s#3 : /S / / #t # # $4 $D $ $r   r   )r1   selenium.webdriver.commonr   r   r   r   r   <module>r:      s   $  -5$goo 5$r   