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
U
\±dt ã@shddlmZddlmZddlmZddlmZ    ddl
m Z ddl m Z ddl mZGd    d
„d
e    ƒZdS) éN)ÚDesiredCapabilities)Ú DriverFinder)Ú    WebDriveré)ÚOptions)ÚDEFAULT_EXECUTABLE_PATH)ÚServicecs:eZdZdZeddejdf‡fdd„    Z‡fdd„Z‡Z    S)rzAControls the WPEWebKitDriver and allows you to drive the browser.rNcsl|r| ¡}| |¡|}ntƒ}t|||d|_t |j|¡|j_|j ¡t    ƒj
|jj |dd|_ dS)aBCreates a new instance of the WPEWebKit driver.
 
        Starts the service and then creates new instance of WPEWebKit 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 WPEWebKitOptions
         - desired_capabilities : Dictionary object with desired capabilities
         - service_log_path : Path to write service stdout and stderr output.
        )ÚportZlog_path)Zcommand_executorÚdesired_capabilitiesFN) Zto_capabilitiesÚupdaterrÚservicerÚget_pathÚpathÚstartÚsuperÚ__init__Z service_urlZ
_is_remote)ÚselfZexecutable_pathr    Úoptionsr
Zservice_log_pathZ capabilities©Ú    __class__©ú]d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/wpewebkit/webdriver.pyr s
 
zWebDriver.__init__cs<z*ztƒ ¡Wntjk
r&YnXW5|j ¡XdS)z{Closes the browser and shuts down the WPEWebKitDriver executable
        that is started when starting the WPEWebKitDriver.N)r ÚstoprÚquitÚ http_clientÚ BadStatusLine)rrrrrAs
 
zWebDriver.quit)
Ú__name__Ú
__module__Ú __qualname__Ú__doc__rrZ    WPEWEBKITrrÚ __classcell__rrrrrsú!r)Ú http.clientÚclientrZ.selenium.webdriver.common.desired_capabilitiesrZ'selenium.webdriver.common.driver_finderrZ#selenium.webdriver.remote.webdriverrZRemoteWebDriverrrr rrrrrrÚ<module>s