zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
U
\±d@ ã@s\ddlmZddlmZddlmZddlm    Z    ddl
m Z ddl
m Z Gdd    „d    eƒZdS)
éN)Ú DriverFinder)Ú    WebDriveré)ÚOptions)ÚDEFAULT_EXECUTABLE_PATH)ÚServicecs:eZdZdZedddddf‡fdd„    Z‡fdd„Z‡ZS)    rzAControls the WebKitGTKDriver and allows you to drive the browser.rNFcs~|stƒ}|s2| ¡}n| ¡}|r.| |¡|}t|||d|_t |j|¡|j_|j ¡t    ƒj
|jj ||dd|_ dS)a˜Creates a new instance of the WebKitGTK driver.
 
        Starts the service and then creates new instance of WebKitGTK Driver.
 
        :Args:
         - executable_path : path to the executable. If the default is used it assumes the executable is in the $PATH.
         - port : port you would like the service to run, if left as 0, a free port will be found.
         - options : an instance of WebKitGTKOptions
         - desired_capabilities : Dictionary object with desired capabilities
         - service_log_path : Path to write service stdout and stderr output.
         - keep_alive : Whether to configure RemoteConnection to use HTTP keep-alive.
        )ÚportZlog_path)Zcommand_executorÚdesired_capabilitiesÚ
keep_aliveFN) rZto_capabilitiesÚupdaterÚservicerÚget_pathÚpathÚstartÚsuperÚ__init__Z service_urlZ
_is_remote)ÚselfZexecutable_pathrÚoptionsr    Zservice_log_pathr
Z capabilities©Ú    __class__©ú]d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/webkitgtk/webdriver.pyrs"
 
 
ÿzWebDriver.__init__cs<z*ztƒ ¡Wntjk
r&YnXW5|j ¡XdS)z{Closes the browser and shuts down the WebKitGTKDriver executable
        that is started when starting the WebKitGTKDriver.N)r ÚstoprÚquitÚ http_clientÚ BadStatusLine)rrrrrGs
 
zWebDriver.quit)Ú__name__Ú
__module__Ú __qualname__Ú__doc__rrrÚ __classcell__rrrrrsù(r) Ú http.clientÚclientrZ'selenium.webdriver.common.driver_finderrZ#selenium.webdriver.remote.webdriverrZRemoteWebDriverrrr rrrrrrÚ<module>s