zmc
2023-10-12 ed135d79df12a2466b52dae1a82326941211dcc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
U
\±dŸã@s,ddlmZddlmZGdd„deƒZdS)é)ÚDesiredCapabilities)Ú
ArgOptionscsneZdZdZddœ‡fdd„ Zedd„ƒZddœdd    „Zeedœd
d „ƒZ    e    j
ddœd d „ƒZ    d d„Z ‡Z S)ÚOptionszwpe:browserOptionsN)Úreturncs tƒ ¡d|_tj ¡|_dS)NÚ)ÚsuperÚ__init__Ú_binary_locationrZ    WPEWEBKITÚcopyÚ_caps©Úself©Ú    __class__©ú[d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/wpewebkit/options.pyrs
zOptions.__init__cCs|jS)N©r r rrrÚ capabilitiesszOptions.capabilitiescCs||j|<dS)zSets a capability.Nr)r ÚnameÚvaluerrrÚset_capability"szOptions.set_capabilitycCs|jS)zMReturns the location of the browser binary otherwise an empty
        string.©r    r rrrÚbinary_location&szOptions.binary_locationcCs
||_dS)zvAllows you to set the browser binary to launch.
 
        :Args:
         - value : path to the browser binary
        Nr)r rrrrr,scCs8|j}i}|jr|j|d<|jr*|j|d<||tj<|S)zpCreates a capabilities with all the options that have been set and
        returns a dictionary with everything.ÚbinaryÚargs)r rÚ    argumentsrÚKEY)r ZcapsZbrowser_optionsrrrÚto_capabilities5s
 
 
zOptions.to_capabilities) Ú__name__Ú
__module__Ú __qualname__rrÚpropertyrrÚstrrÚsetterrÚ __classcell__rrrrrs
rN)Z.selenium.webdriver.common.desired_capabilitiesrZ!selenium.webdriver.common.optionsrrrrrrÚ<module>s