File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,15 @@ async function _parseCapabilities (id, capability) {
276276 if ( PROCESS_ENVIRONMENT . LT_SAFARI_COOKIES === true || PROCESS_ENVIRONMENT . LT_SAFARI_COOKIES === 'true' ) capabilities [ id ] [ 'safari.cookies' ] = true ;
277277 if ( PROCESS_ENVIRONMENT . LT_SAFARI_POPUPS === true || PROCESS_ENVIRONMENT . LT_SAFARI_POPUPS === 'true' ) capabilities [ id ] [ 'safari.popups' ] = true ;
278278
279+ if ( ! browserName || browserName === 'any' ) {
280+ const browserKey = Object . keys ( additionalCapabilities ) [ 0 ] ;
281+ browserName = browserKey ;
282+ }
283+ if ( ! browserVersion || browserVersion === 'any' ) {
284+ const browserVersionKey = additionalCapabilities [ capability ] [ 'browserVersion' ] ;
285+ browserVersion = browserVersionKey ;
286+ }
287+
279288 if ( browserName && browserName . trim ( ) . toLowerCase ( ) === 'firefox' && browserVersion && browserVersion . split ( '.' ) [ 0 ] > 47 && ! ( 'enableCustomTranslation' in capabilities [ id ] ) )
280289 capabilities [ id ] . enableCustomTranslation = true ;
281290
You can’t perform that action at this time.
0 commit comments