B
     h                 @   s"   d dl mZ G dd dejZdS )    )servicec               @   s*   e Zd ZdZdddZdd Zd	d
 ZdS )ServicezEObject that manages the starting and stopping of the
    GeckoDriver.r   Ngeckodriver.logc             C   sB   |dk	r|dkrt |dnd}tjj| ||||d |p:g | _dS )a  Creates a new instance of the GeckoDriver remote service proxy.

        GeckoDriver provides a HTTP interface speaking the W3C WebDriver
        protocol to Marionette.

        :param executable_path: Path to the GeckoDriver binary.
        :param port: Run the remote service on a specified port.
            Defaults to 0, which binds to a random open port of the
            system's choosing.
        :param service_args: Optional list of arguments to pass to the
            GeckoDriver binary.
        :param log_path: Optional path for the GeckoDriver to log to.
            Defaults to _geckodriver.log_ in the current working directory.
        :param env: Optional dictionary of output variables to expose
            in the services' environment.

        N za+)portlog_fileenv)openr   r   __init__service_args)selfexecutable_pathr   r   log_pathr   r    r   _C:\Users\sanjo\AppData\Local\Qlobot\Launcher\ext_packages\selenium\webdriver\firefox\service.pyr
      s    zService.__init__c             C   s   dd| j  g| j S )Nz--portz%d)r   r   )r   r   r   r   command_line_args2   s    zService.command_line_argsc             C   s   d S )Nr   )r   r   r   r   send_remote_shutdown_command5   s    z$Service.send_remote_shutdown_command)r   Nr   N)__name__
__module____qualname____doc__r
   r   r   r   r   r   r   r      s
    
r   N)Zselenium.webdriver.commonr   r   r   r   r   r   <module>   s   