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
U
[±dã@spddlZddlmZddlmZddlmZddlmZddl    m
Z
ddl    m Z dZ dZ dZGd    d
„d
eƒZdS) éN)ÚChromiumDriver)ÚDesiredCapabilities)Ú DriverFinderé©ÚOptions)ÚDEFAULT_EXECUTABLE_PATH)ÚServicec    sLeZdZdZeedddeddef    ee    ddœ‡fdd„ Z
edœdd„Z ‡Z S)    Ú    WebDriverz½Controls the ChromeDriver and allows you to drive the browser.
 
    You will need to download the ChromeDriver executable from
    http://chromedriver.storage.googleapis.com/index.html
    N)ÚoptionsÚserviceÚreturnc
 
s |dkrtjdtdd|r0tjdtdd|}|    tkrJtjdtddnd}    |sZ| ¡}|slt||||ƒ}t ||¡|_t    ƒ 
t j dd    |||||||    ¡    d
S) aËCreates a new instance of the chrome driver. Starts the service and
        then creates new instance of chrome 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 ChromeOptions
         - service - Service object for handling the browser driver if you need to pass extra details
         - service_args - Deprecated: List of args to pass to the driver service
         - desired_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.
         - keep_alive - Deprecated: Whether to configure ChromeRemoteConnection to use HTTP keep-alive.
        Z chromedriverzDexecutable_path has been deprecated, please pass in a Service objecté)Ú
stacklevelz%use options instead of chrome_optionsz?keep_alive has been deprecated, please pass in a Service objectTZ browserNameZgoogN) ÚwarningsÚwarnÚDeprecationWarningÚDEFAULT_KEEP_ALIVEÚcreate_optionsr    rÚget_pathÚpathÚsuperÚ__init__rZCHROME)
ÚselfZexecutable_pathÚportr Z service_argsZdesired_capabilitiesZservice_log_pathZchrome_optionsr Ú
keep_alive©Ú    __class__©úZd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/chrome/webdriver.pyr's@ÿÿ÷zWebDriver.__init__)r cCstƒS)Nr)rrrrr`szWebDriver.create_options) Ú__name__Ú
__module__Ú __qualname__Ú__doc__rÚ DEFAULT_PORTÚDEFAULT_SERVICE_LOG_PATHrrr    rrÚ __classcell__rrrrr
 s öõ9r
)rZ%selenium.webdriver.chromium.webdriverrZ.selenium.webdriver.common.desired_capabilitiesrZ'selenium.webdriver.common.driver_finderrr rr rr    r$r%rr
rrrrÚ<module>s