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
37
38
39
40
41
42
43
U
\±d¼ã@sBddlZddlmZddlmZGdd„dƒZGdd„deƒZdS)éN)ÚDesiredCapabilities)Ú
ArgOptionsc@s(eZdZddœdd„Zedœdd„ZdS)ÚLogN©ÚreturncCs
d|_dS©N©Úlevel©Úself©r úXd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/safari/options.pyÚ__init__sz Log.__init__cCs|jrdd|jiiSiS)NÚlogr    rr
r r r Úto_capabilitiesszLog.to_capabilities)Ú__name__Ú
__module__Ú __qualname__rÚdictrr r r r rsrcsüeZdZdZdZdZdZddœ‡fdd„ Zee    dœd    d
„ƒZ
e
j e    dd œd d
„ƒZ
e dœd d„Z eeje    e    fdœdd„ƒZeedœdd„ƒZej edd œdd„ƒZeedœdd„ƒZej edd œdd„ƒZeedœdd„ƒZej edd œdd„ƒZ‡ZS)ÚOptionszsafari.optionszsafari:automaticInspectionzsafari:automaticProfilingzSafari Technology PreviewNrcs"tƒ ¡d|_i|_tƒ|_dSr)ÚsuperrÚ_binary_locationZ _preferencesrrr
©Ú    __class__r r r*s
zOptions.__init__cCs|jS)zX
        :Returns: The location of the browser binary otherwise an empty string
        ©rr
r r r Úbinary_location0szOptions.binary_location)ÚvaluercCs
||_dS)zvAllows you to set the browser binary to launch.
 
        :Args:
         - value : path to the browser binary
        Nr©r rr r r r7scCsL|j}i}|jr|j|d<|jr*|j|d<| |j ¡¡|rH||tj<|S)z8Marshals the  options to an desired capabilities object.ÚargsÚbinary)Ú_capsZ
_argumentsrÚupdaterrrÚKEY)r ZcapsÚoptsr r r r@s
 
 
zOptions.to_capabilitiescCs
tj ¡Sr)rZSAFARIÚcopyr
r r r Údefault_capabilitiesTszOptions.default_capabilitiescCs|j |j¡S)z/:Returns: The option Automatic Inspection value)r ÚgetÚAUTOMATIC_INSPECTIONr
r r r Úautomatic_inspectionXszOptions.automatic_inspectioncCs| |j|¡dS)zgSets the option Automatic Inspection to value.
 
        :Args:
         - value: boolean value
        N)Úset_capabilityr'rr r r r(]scCs|j |j¡S)z/:Returns: The options Automatic Profiling value)r r&ÚAUTOMATIC_PROFILINGr
r r r Úautomatic_profilingfszOptions.automatic_profilingcCs| |j|¡dS)zfSets the option Automatic Profiling to value.
 
        :Args:
         - value: boolean value
        N)r)r*rr r r r+kscCs|j d¡|jkS)zD:Returns: whether BROWSER_NAME is equal to Safari Technology PreviewÚ browserName)r r&ÚSAFARI_TECH_PREVIEWr
r r r Úuse_technology_previewtszOptions.use_technology_previewcCs| d|r|jnd¡dS)zˆSets browser name to Safari Technology Preview if value else to
        safari.
 
        :Args:
         - value: boolean value
        r,ZsafariN)r)r-rr r r r.ys)rrrr"r'r*r-rÚpropertyÚstrrÚsetterrrÚtypingÚDictr%Úboolr(r+r.Ú __classcell__r r rr r!s0r)r2Z.selenium.webdriver.common.desired_capabilitiesrZ!selenium.webdriver.common.optionsrrrr r r r Ú<module>s