
    Y j                     J    S SK JrJr  S SKJr   " S S\R
                  5      rg)    )MappingSequence)servicec                   J  ^  \ rS rSrSr       SS\S-  S\S\\   S-  S\\\4   S-  S\	S	\S-  S
S4U 4S jjjr
S
\\   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
\\   4S j5       r\R                   S\\   4S j5       rSrU =r$ )Service   a  Service class responsible for starting and stopping of `safaridriver`.

This service is only supported on macOS.

Args:
    executable_path: (Optional) Install path of the safaridriver executable, defaults to `/usr/bin/safaridriver`.
    port: (Optional) Port for the service to run on, defaults to 0 where the operating system will decide.
    service_args: (Optional) Sequence of args to be passed to the subprocess when launching the executable.
    env: (Optional) Mapping of environment variables for the new process, defaults to `os.environ`.
    enable_logging: (Optional) Enable logging of the service. Logs can be located at
        `~/Library/Logs/com.apple.WebDriver/`
    driver_path_env_key: (Optional) Environment variable to use to get the path to the driver executable.
Nexecutable_pathportservice_argsenvenable_loggingdriver_path_env_keyreturnc                    > [        U=(       d    / 5      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    )list_service_argsappendreuse_servicesuper__init__)
selfr	   r
   r   r   r   r   r   kwargs	__class__s
            r/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/selenium/webdriver/safari/service.pyr   Service.__init__&   sh     ","4"51F5F%%l3* 	
+ 3		

 	
    c                 :    SU R                    /U R                  -   $ )Nz-p)r
   r   r   s    r   command_line_argsService.command_line_args@   s    %(:(:::r   c                      SU R                    3$ )z)Gets the url of the SafariDriver Service.zhttp://localhost:)r
   r    s    r   service_urlService.service_urlC   s     #499+..r   c                     U R                   $ )N)_reuse_servicer    s    r   r   Service.reuse_serviceH   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(   L   s!    %&&566#r   c                     U R                   $ )z*Returns the sequence of service arguments.)r   r    s    r   r   Service.service_argsR   s     !!!r   valuec                     [        U[        5      (       d  [        U[        5      (       d  [        S5      e[	        U5      U l        g )Nzservice_args must be a sequence)r+   strr   r-   r   r   )r   r0   s     r   r   r/   W   s3    eS!!E8)D)D=>>!%[r   )r'   r   r   )Nr   NNFFN)__name__
__module____qualname____firstlineno____doc__r2   intr   r   r,   r   r   r!   propertyr$   r   setterr   __static_attributes____classcell__)r   s   @r   r   r      s>     '+-1(,$*.
t
 
 smd*	

 S#X%
 
 !4Z
 

 
4;49 ; /S / / #t # # $4 $D $ $
 "hsm " " )(3- ) )r   r   N)collections.abcr   r   selenium.webdriver.commonr   r   r   r   r   <module>r?      s   $ . -D)goo D)r   