@@ -67,26 +67,26 @@ def _make_w3c_caps(caps):
67
67
68
68
caps = copy .deepcopy (caps )
69
69
profile = caps .get ('firefox_profile' )
70
- always_match = {}
70
+ first_match = {}
71
71
if caps .get ('proxy' ) and caps ['proxy' ].get ('proxyType' ):
72
72
caps ['proxy' ]['proxyType' ] = caps ['proxy' ]['proxyType' ].lower ()
73
73
for k , v in caps .items ():
74
74
if v and k in _OSS_W3C_CONVERSION :
75
- always_match [_OSS_W3C_CONVERSION [k ]] = v .lower () if k == 'platform' else v
75
+ first_match [_OSS_W3C_CONVERSION [k ]] = v .lower () if k == 'platform' else v
76
76
if k in _W3C_CAPABILITY_NAMES or _EXTENSION_CAPABILITY in k :
77
- always_match [k ] = v
77
+ first_match [k ] = v
78
78
else :
79
79
if not k .startswith (appium_prefix ):
80
- always_match [appium_prefix + k ] = v
80
+ first_match [appium_prefix + k ] = v
81
81
if profile :
82
- moz_opts = always_match .get ('moz:firefoxOptions' , {})
82
+ moz_opts = first_match .get ('moz:firefoxOptions' , {})
83
83
# If it's already present, assume the caller did that intentionally.
84
84
if 'profile' not in moz_opts :
85
85
# Don't mutate the original capabilities.
86
86
new_opts = copy .deepcopy (moz_opts )
87
87
new_opts ['profile' ] = profile
88
- always_match ['moz:firefoxOptions' ] = new_opts
89
- return {'firstMatch' : [{}], 'alwaysMatch' : always_match }
88
+ first_match ['moz:firefoxOptions' ] = new_opts
89
+ return {'firstMatch' : [first_match ] }
90
90
91
91
92
92
class WebDriver (webdriver .Remote ):
0 commit comments