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
29
30
31
32
33
34
35
36
U
\±d#ã@slddlZddlmZddlmZddlmZddlmZddl    m
Z
ddl    m Z dZ dZ Gd    d
„d
eƒZdS) éN)ÚChromiumDriver)ÚDesiredCapabilities)Ú DriverFinderé©ÚOptions)ÚDEFAULT_EXECUTABLE_PATH)ÚServicec    sNeZdZdZeeeƒddedddf    eeddœ‡fdd„ Z    edœdd    „Z
‡Z S)
Ú    WebDriverzÐControls the Microsoft Edge driver and allows you to drive the browser.
 
    You will need to download the MSEdgeDriver executable from
    https://developer.microsoft.com/microsoft-edge/tools/webdriver/
    NF)ÚoptionsÚserviceÚreturnc
 
sj|dkrtjdtdd|s$| ¡}|s6t||||ƒ}t ||¡|_tƒ     t
j dd|||||||¡    dS)aóCreates a new instance of the edge driver. Starts the service and
        then creates new instance of edge driver.
 
        :Args:
         - executable_path - Deprecated: path to the executable. If the default is used it assumes the executable is in the $PATH
         - port - Deprecated: port you would like the service to run, if left as 0, a free port will be found.
         - options - this takes an instance of EdgeOptions
         - service_args - Deprecated: List of args to pass to the driver service
         - capabilities - Deprecated: Dictionary object with non-browser specific
           capabilities only, such as "proxy" or "loggingPref".
         - service_log_path - Deprecated: Where to log information from the driver.
         - service - Service object for handling the browser driver if you need to pass extra details
         - keep_alive - Whether to configure EdgeRemoteConnection to use HTTP keep-alive.
         - verbose - whether to set verbose logging in the service.
        Z msedgedriverzDexecutable_path has been deprecated, please pass in a Service objecté)Ú
stacklevelZ browserNameÚmsN) ÚwarningsÚwarnÚDeprecationWarningÚcreate_optionsr    rÚget_pathÚpathÚsuperÚ__init__rZEDGE)
ÚselfZexecutable_pathÚportr Z service_argsZ capabilitiesZservice_log_pathr Ú
keep_aliveÚverbose©Ú    __class__©úXd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/edge/webdriver.pyr&s,ÿ÷zWebDriver.__init__)r cCstƒS)Nr)rrrr rXszWebDriver.create_options) Ú__name__Ú
__module__Ú __qualname__Ú__doc__rÚ DEFAULT_PORTrÚDEFAULT_SERVICE_LOG_PATHr    rrÚ __classcell__rrrr r
s öõ2r
)rZ%selenium.webdriver.chromium.webdriverrZ.selenium.webdriver.common.desired_capabilitiesrZ'selenium.webdriver.common.driver_finderrr rr rr    r%r&r
rrrr Ú<module>s