1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
U
\±dýã@s.ddlZddlmZdZGdd„dejƒZdS)éN)ÚserviceZWebKitWebDriverc    speZdZdZeddddfeeejeejej    eejej
eefdœ‡fdd„ Z ej    edœdd    „Z ‡Z S)
ÚServicea‚A Service class that is responsible for the starting and stopping of
    `WPEWebDriver`.
 
    :param executable_path: install path of the WebKitWebDriver executable, defaults to `WebKitWebDriver`.
    :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_path: (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`.
    rN)Úexecutable_pathÚportÚlog_pathÚ service_argsÚenvc s<|pg|_|rt|dƒnd}tƒjf||||dœ|—ŽdS)NÚwb)Ú
executablerÚlog_filer)rÚopenÚsuperÚ__init__)ÚselfrrrrrÚkwargsr ©Ú    __class__©ú[d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/webkitgtk/service.pyr#s    
üûzService.__init__)ÚreturncCsd|j›g|jS)Nz-p)rr)rrrrÚcommand_line_args6szService.command_line_args)Ú__name__Ú
__module__Ú __qualname__Ú__doc__ÚDEFAULT_EXECUTABLE_PATHÚstrÚintÚtypingÚOptionalÚListÚMappingrrÚ __classcell__rrrrrs úúr)rZselenium.webdriver.commonrrrrrrrÚ<module>s