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
U
\±dw
ã@s,ddlmZddlmZGdd„deƒZdS)é)ÚDesiredCapabilities)Ú
ArgOptionscs‚eZdZdZddœ‡fdd„ Zeedœdd„ƒZejeddœd    d„ƒZed
d „ƒZ    e    jddœd d „ƒZ    d d„Z
edd„ƒZ ‡Z S)ÚOptionszwebkitgtk:browserOptionsN)Úreturncstƒ ¡d|_d|_dS)NÚT)ÚsuperÚ__init__Ú_binary_locationÚ_overlay_scrollbars_enabled©Úself©Ú    __class__©ú[d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/webkitgtk/options.pyrs
zOptions.__init__cCs|jS)zX
        :Returns: The location of the browser binary otherwise an empty string
        ©r    r rrrÚbinary_locationszOptions.binary_location)ÚvaluercCs
||_dS)zvAllows you to set the browser binary to launch.
 
        :Args:
         - value : path to the browser binary
        Nr©r rrrrr%scCs|jS)zH
        :Returns: Whether overlay scrollbars should be enabled
        ©r
r rrrÚoverlay_scrollbars_enabled.sz"Options.overlay_scrollbars_enabledcCs
||_dS)zmAllows you to enable or disable overlay scrollbars.
 
        :Args:
         - value : True or False
        Nrrrrrr5scCsB|j}i}|jr|j|d<|jr*|j|d<|j|d<||tj<|S)zpCreates a capabilities with all the options that have been set and
        returns a dictionary with everything.ÚbinaryÚargsZuseOverlayScrollbars)Z_capsrÚ    argumentsrrÚKEY)r ZcapsZbrowser_optionsrrrÚto_capabilities>s
 
 
 
zOptions.to_capabilitiescCs
tj ¡S)N)rZ    WEBKITGTKÚcopyr rrrÚdefault_capabilitiesNszOptions.default_capabilities) Ú__name__Ú
__module__Ú __qualname__rrÚpropertyÚstrrÚsetterrrrÚ __classcell__rrr rrs
rN)Z.selenium.webdriver.common.desired_capabilitiesrZ!selenium.webdriver.common.optionsrrrrrrÚ<module>s