browserstack-node-sdk 1.34.12 → 1.34.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x1d880e=a29_0x4408;(function(_0x1441c1,_0x22bf5e){const _0x254966=a29_0x4408,_0x328479=_0x1441c1();while(!![]){try{const _0x266ce7=-parseInt(_0x254966(0x19c))/0x1+-parseInt(_0x254966(0x1ab))/0x2+-parseInt(_0x254966(0x1c0))/0x3+parseInt(_0x254966(0x191))/0x4*(parseInt(_0x254966(0x1c4))/0x5)+-parseInt(_0x254966(0x1cb))/0x6+parseInt(_0x254966(0x1b3))/0x7*(parseInt(_0x254966(0x192))/0x8)+parseInt(_0x254966(0x1de))/0x9*(parseInt(_0x254966(0x182))/0xa);if(_0x266ce7===_0x22bf5e)break;else _0x328479['push'](_0x328479['shift']());}catch(_0x4a8e9e){_0x328479['push'](_0x328479['shift']());}}}(a29_0x55b0,0x7cb04));const logger=require(a29_0x1d880e(0x194))[a29_0x1d880e(0x17b)],helper=require('../../../helpers/helper'),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x1d880e(0x1ca)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x1d880e(0x1ae)),{setAccessibilityCapabilities,setExtension}=require(a29_0x1d880e(0x1b7)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x1d880e(0x1be)),globals=require(a29_0x1d880e(0x16f)),modify=(_0x46157d,_0x376574=null,_0xfbe12d=![])=>{const _0x5300d6=a29_0x1d880e,_0x5385e8={'xngjM':function(_0x77f7cd,_0x20828c){return _0x77f7cd!==_0x20828c;},'PmCiL':_0x5300d6(0x1e3),'gQvjv':function(_0x59f65f,_0x1b0e7f){return _0x59f65f+_0x1b0e7f;},'YbGxn':function(_0x602b6e,_0x51048e){return _0x602b6e+_0x51048e;},'ouDif':_0x5300d6(0x1d6),'qLNQu':'/wd/hub','MBRZT':_0x5300d6(0x1d2),'Lvigz':'chromeOptions','tTXdh':_0x5300d6(0x1d0),'XmJQE':_0x5300d6(0x19e),'vBewY':'moz:firefoxOptions','eofdD':_0x5300d6(0x1ce),'uPjrg':_0x5300d6(0x1dd),'KOEOf':_0x5300d6(0x1c2),'tBkWq':_0x5300d6(0x174),'MVPxZ':function(_0x29a6b6,_0x39b96b){return _0x29a6b6===_0x39b96b;},'XYHAz':_0x5300d6(0x1bd),'CAwkD':_0x5300d6(0x17d),'uCwxl':function(_0x284e35,_0x5aa50,_0x4f8fea){return _0x284e35(_0x5aa50,_0x4f8fea);},'VHaZR':function(_0x5174de,_0x57cf9f){return _0x5174de(_0x57cf9f);},'aiVKA':_0x5300d6(0x1a2),'BSXYc':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','VArKm':'2|5|0|4|1|3','GjOuH':_0x5300d6(0x1e4),'IOaVE':function(_0x8190aa,_0x2bdfb5,_0x736adb){return _0x8190aa(_0x2bdfb5,_0x736adb);},'QgTKa':function(_0x260986){return _0x260986();},'ptKCN':function(_0x236f6a,_0x1b9ce5){return _0x236f6a(_0x1b9ce5);},'GYxtY':_0x5300d6(0x1e1),'KULCz':function(_0x5d55ee,_0x595422){return _0x5d55ee(_0x595422);},'LevMx':function(_0x59c9e7,_0x3875a6){return _0x59c9e7(_0x3875a6);},'iKZvf':function(_0x322dd1,_0x99605f){return _0x322dd1!==_0x99605f;},'PgqTg':_0x5300d6(0x1dc),'pDKGX':_0x5300d6(0x1a9)},_0x4724af=helper[_0x5300d6(0x172)]();let _0x45706f;try{_0x45706f=helper[_0x5300d6(0x19d)](),_0x45706f[_0x5300d6(0x195)]&&(_0x45706f[_0x5300d6(0x1c5)]=_0x45706f[_0x5300d6(0x195)]);}catch(_0x475cb6){return;}if(helper[_0x5300d6(0x18e)]()){const _0x379d49={};_0x379d49[_0x5300d6(0x1c8)]=_0x46157d[_0x5300d6(0x181)],helper[_0x5300d6(0x1d9)](_0x379d49,new Map(),new Map()),logger[_0x5300d6(0x186)](_0x5385e8[_0x5300d6(0x196)]),logger[_0x5300d6(0x1cc)](_0x5385e8[_0x5300d6(0x19b)]);}class _0x48549c extends _0x4724af['HttpClient']{[_0x5300d6(0x1e0)](_0x28eaa6){const _0x46e476=_0x5300d6;if(_0x5385e8['xngjM'](_0x28eaa6[_0x46e476(0x18d)],_0x5385e8['PmCiL'])&&_0x5385e8['xngjM'](global[_0x46e476(0x1c9)],''))try{global['newHubUrl']=_0x5385e8[_0x46e476(0x189)](_0x5385e8[_0x46e476(0x170)](_0x5385e8[_0x46e476(0x1c7)],global['newHubUrl']),_0x5385e8[_0x46e476(0x1d4)]),this[_0x46e476(0x18b)]=hubAllocator[_0x46e476(0x1bc)](global[_0x46e476(0x1c9)]),logger['debug'](_0x46e476(0x180)+global[_0x46e476(0x1c9)]),global[_0x46e476(0x1c9)]='';}catch(_0xf1f3a6){logger[_0x46e476(0x185)](_0xf1f3a6);}return super[_0x46e476(0x1e0)](_0x28eaa6);}}class _0x356c22 extends _0x45706f[_0x5300d6(0x1c5)]{[_0x5300d6(0x17c)](){const _0x2abb48=_0x5300d6;return this[_0x2abb48(0x173)]=helper[_0x2abb48(0x1d8)](_0x46157d),logger['debug'](_0x2abb48(0x17f)+this[_0x2abb48(0x173)]),this;}['__setBrowserOptions'](_0x3049d1){const _0x466641=_0x5300d6;let _0xb5537d={};for(const _0x1805e9 in _0x3049d1){switch(_0x1805e9){case _0x5385e8[_0x466641(0x19a)]:case _0x5385e8[_0x466641(0x1b6)]:this['chromeOptions_']&&(_0xb5537d=this[_0x466641(0x18f)][_0x466641(0x1b1)](this[_0x466641(0x18f)][_0x466641(0x1df)])||{},this[_0x466641(0x18f)][_0x466641(0x19f)](this[_0x466641(0x18f)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8[_0x466641(0x1b8)]:case _0x5385e8[_0x466641(0x184)]:this['edgeOptions_']&&(_0xb5537d=this['edgeOptions_'][_0x466641(0x1b1)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x466641(0x1e5)][_0x466641(0x19f)](this[_0x466641(0x1e5)]['CAPABILITY_KEY'],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8[_0x466641(0x1b0)]:case _0x5385e8['eofdD']:this[_0x466641(0x16c)]&&(_0xb5537d=this['firefoxOptions_'][_0x466641(0x1b1)](this[_0x466641(0x16c)][_0x466641(0x1df)])||{},this[_0x466641(0x16c)][_0x466641(0x19f)](this[_0x466641(0x16c)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8[_0x466641(0x1a8)]:this[_0x466641(0x1db)]&&(_0xb5537d=this[_0x466641(0x1db)]['get'](this[_0x466641(0x1db)]['CAPABILITY_KEY'])||{},this[_0x466641(0x1db)][_0x466641(0x19f)](this[_0x466641(0x1db)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8['KOEOf']:case _0x5385e8[_0x466641(0x179)]:this['ieOptions_']&&(_0xb5537d=this[_0x466641(0x1b4)]['get'](this[_0x466641(0x1b4)][_0x466641(0x1df)])||{},this[_0x466641(0x1b4)][_0x466641(0x19f)](this[_0x466641(0x1b4)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;}}}['setCapabilities'](){const _0x2ee9a2=_0x5300d6;return logger['debug'](_0x5385e8[_0x2ee9a2(0x1b2)]),this[_0x2ee9a2(0x18a)](_0x46157d[_0x2ee9a2(0x1a0)]),Object['keys'](_0x46157d[_0x2ee9a2(0x1a0)])[_0x2ee9a2(0x1b5)](_0x2aea2b=>{const _0x481577=_0x2ee9a2,_0x14b251=this[_0x481577(0x190)][_0x481577(0x1b1)](_0x2aea2b);_0x5385e8[_0x481577(0x1bb)](typeof _0x14b251,_0x5385e8[_0x481577(0x171)])?this[_0x481577(0x190)][_0x481577(0x19f)](_0x2aea2b,helper['mergeDeep'](_0x14b251,_0x46157d[_0x481577(0x1a0)][_0x2aea2b])):this[_0x481577(0x190)][_0x481577(0x19f)](_0x2aea2b,_0x46157d[_0x481577(0x1a0)][_0x2aea2b]);}),this;}[_0x5300d6(0x1c1)](){const _0x47c12b=_0x5300d6,_0x131bca={'axLui':_0x5385e8[_0x47c12b(0x1af)],'bZfQP':_0x5385e8[_0x47c12b(0x1ad)],'itqQo':function(_0x2d839e,_0x399467,_0x4051a0){const _0x482602=_0x47c12b;return _0x5385e8[_0x482602(0x193)](_0x2d839e,_0x399467,_0x4051a0);}};if(helper[_0x47c12b(0x18e)]()){const _0x13be76=_0x5385e8['VArKm'][_0x47c12b(0x1d1)]('|');let _0x406c99=0x0;while(!![]){switch(_0x13be76[_0x406c99++]){case'0':this[_0x47c12b(0x1a5)]();continue;case'1':globals[_0x47c12b(0x1ac)](_0x5385e8[_0x47c12b(0x1d5)])&&(!_0x5385e8['IOaVE'](setExtension,this,_0x46157d)&&globals[_0x47c12b(0x16b)](_0x5385e8[_0x47c12b(0x1d5)],![]));continue;case'2':_0x5385e8[_0x47c12b(0x1e2)](isAccessibilityAutomationSession)&&_0x5385e8[_0x47c12b(0x1a7)](setAccessibilityCapabilities,_0x46157d);continue;case'3':logger['debug'](_0x5385e8[_0x47c12b(0x1c6)]);continue;case'4':if(helper[_0x47c12b(0x16e)](_0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)]))this[_0x47c12b(0x1bf)]=helper['getHttpAgent'](_0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)]);else _0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)]&&(this['proxy_']=_0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)],logger[_0x47c12b(0x1cc)]('Proxy\x20set\x20to\x20'+this[_0x47c12b(0x16d)]));continue;case'5':this[_0x47c12b(0x17c)]();continue;}break;}}const _0x1cde19=super[_0x47c12b(0x1c1)]();return _0x1cde19[_0x47c12b(0x198)][_0x47c12b(0x1da)](_0x260228=>{const _0x3b60b8=_0x47c12b;try{const _0x588b6d=_0x260228['caps_'][_0x3b60b8(0x1b1)](_0x131bca[_0x3b60b8(0x1c3)]);_0x588b6d?(logger['debug'](_0x3b60b8(0x188)+_0x588b6d),hubAllocator[_0x3b60b8(0x1ba)](_0x588b6d),helper[_0x3b60b8(0x1cf)](_0x588b6d)):logger[_0x3b60b8(0x1cc)](_0x131bca[_0x3b60b8(0x1b9)]);}catch(_0x172b8b){logger['debug'](_0x3b60b8(0x17a)+_0x172b8b);}}),_0x1cde19['quitCount_']=0x0,_0x1cde19[_0x47c12b(0x1da)]&&_0x1cde19['then'](_0x3a8b02=>{const _0x2bfd60=_0x47c12b,_0x54a219={'odCer':function(_0x308566,_0x2c4203,_0x8be891){const _0x25e2d4=a29_0x4408;return _0x5385e8[_0x25e2d4(0x193)](_0x308566,_0x2c4203,_0x8be891);},'OVtqw':function(_0x3785ba,_0x573ea4,_0x5c37d3){const _0x5f167b=a29_0x4408;return _0x5385e8[_0x5f167b(0x193)](_0x3785ba,_0x573ea4,_0x5c37d3);}};_0x5385e8[_0x2bfd60(0x193)](overrideQuit,_0x3a8b02,_0x1cde19),_0x5385e8[_0x2bfd60(0x1d3)](overrideTakeScreenshot,_0x3a8b02),helper[_0x2bfd60(0x1a3)](_0x3a8b02,_0x46157d),helper[_0x2bfd60(0x183)](_0x3a8b02,_0x46157d),_0x3a8b02[_0x2bfd60(0x1a4)]=async()=>{return await _0x54a219['odCer'](getAccessibilityResultsSummary,_0x3a8b02,global);},_0x3a8b02[_0x2bfd60(0x1d7)]=async()=>{const _0x50a54b=_0x2bfd60;return await _0x54a219[_0x50a54b(0x175)](getAccessibilityResults,_0x3a8b02,global);};}),_0x1cde19[_0x47c12b(0x1a4)]=async()=>{return await _0x131bca['itqQo'](getAccessibilityResultsSummary,_0x1cde19,global);},_0x1cde19[_0x47c12b(0x1d7)]=async()=>{const _0x396d6b=_0x47c12b;return await _0x131bca[_0x396d6b(0x1a6)](getAccessibilityResults,_0x1cde19,global);},_0x5385e8[_0x47c12b(0x176)](overrideTakeScreenshot,_0x1cde19),_0x5385e8['LevMx'](overrideQuit,_0x1cde19),helper[_0x47c12b(0x1a3)](_0x1cde19,_0x46157d),helper[_0x47c12b(0x183)](_0x1cde19,_0x46157d),helper[_0x47c12b(0x1aa)](global[_0x47c12b(0x197)])&&(global[_0x47c12b(0x197)]=[]),helper[_0x47c12b(0x1aa)](global['__drivers'])&&(global[_0x47c12b(0x1cd)]=[]),global[_0x47c12b(0x197)]['push'](_0x1cde19),global['__driver']=_0x1cde19,_0x5385e8[_0x47c12b(0x187)](global['__drivers'],undefined)&&global['__drivers'][_0x47c12b(0x1a1)](_0x1cde19),_0x376574&&helper['isUndefined'](_0x376574['global'][_0x47c12b(0x197)])&&(_0x376574[_0x47c12b(0x177)][_0x47c12b(0x197)]=[]),_0x376574&&_0x5385e8['iKZvf'](_0x376574['global'][_0x47c12b(0x1cd)],undefined)&&(_0x376574[_0x47c12b(0x177)]['__drivers'][_0x47c12b(0x1a1)](_0x1cde19),_0x376574[_0x47c12b(0x177)][_0x47c12b(0x197)][_0x47c12b(0x1a1)](_0x1cde19)),_0x1cde19;}}return _0x45706f[_0x5300d6(0x195)]=_0x45706f['Builder'],_0x45706f[_0x5300d6(0x1c5)]=_0x356c22,_0x4724af[_0x5300d6(0x17e)]=_0x48549c,_0x45706f;};function a29_0x55b0(){const _0x211531=['../../../helpers/accessibility-automation/helper','agent_','2655189RPUvSN','build','se:ieOptions','axLui','5wrTecy','Builder','GYxtY','ouDif','logLevel','newHubUrl','../../../hubAllocationMethods','4400076QExYfs','debug','__drivers','firefoxOptions','storeOptimalHubUrl','ms:edgeOptions','split','goog:chromeOptions','VHaZR','qLNQu','GjOuH','https://','getAccessibilityResults','getHubUrl','setLogLevel','then','safariOptions_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','safari.options','1437597YMOmYr','CAPABILITY_KEY','send','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','QgTKa','/session','isAccessibilityPlatform','edgeOptions_','setGlobal','firefoxOptions_','proxy_','isPacProxy','../../../helpers/globals','YbGxn','XYHAz','requireHttpClient','url_','ieOptions','OVtqw','KULCz','global','mergeDeep','tBkWq','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','winstonLogger','setServer','Setting\x20Browserstack\x20capabilities','HttpClient','Hub\x20url\x20set\x20to\x20','New\x20hub\x20url\x20set\x20to\x20','browserStackLogLevel','190hVDhnw','overrideExecute','XmJQE','error','info','xngjM','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','gQvjv','__setBrowserOptions','options_','proxyUrl','path','isBrowserstackInfra','chromeOptions_','capabilities_','1626472WbsRtq','8UTQtqB','uCwxl','../../../helpers/logger','originalBuilder','PgqTg','__driversArray','session_','proxySettings','MBRZT','pDKGX','589446tOcfdE','requireSeleniumWebdriver','edgeOptions','set','capability','push','optimalHubUrl','overrideGet','getAccessibilityResultsSummary','setCapabilities','itqQo','ptKCN','uPjrg','Modifying\x20webdriver\x20builder','isUndefined','1669574KWwLqB','getGlobal','BSXYc','../../../helpers/patchHelpers','aiVKA','vBewY','get','CAwkD','782747jmELNc','ieOptions_','forEach','Lvigz','../accessibility-automation/helper','tTXdh','bZfQP','updateHubUrl','MVPxZ','getRequestOptions','object'];a29_0x55b0=function(){return _0x211531;};return a29_0x55b0();}function a29_0x4408(_0x5ed4fa,_0x38103f){const _0x55b0c8=a29_0x55b0();return a29_0x4408=function(_0x4408b6,_0x2f5f8){_0x4408b6=_0x4408b6-0x16b;let _0x3149c6=_0x55b0c8[_0x4408b6];return _0x3149c6;},a29_0x4408(_0x5ed4fa,_0x38103f);}module['exports']['browserstackAgentObservability']=modify;
|
|
1
|
+
const a29_0x30d60f=a29_0x2320;(function(_0x246e8d,_0x43d666){const _0x53fd44=a29_0x2320,_0x5bbacc=_0x246e8d();while(!![]){try{const _0x4cc779=parseInt(_0x53fd44(0xe7))/0x1+parseInt(_0x53fd44(0xa8))/0x2*(parseInt(_0x53fd44(0xc4))/0x3)+-parseInt(_0x53fd44(0x8c))/0x4+parseInt(_0x53fd44(0x9b))/0x5+-parseInt(_0x53fd44(0x100))/0x6*(parseInt(_0x53fd44(0x8f))/0x7)+parseInt(_0x53fd44(0xff))/0x8+-parseInt(_0x53fd44(0x95))/0x9;if(_0x4cc779===_0x43d666)break;else _0x5bbacc['push'](_0x5bbacc['shift']());}catch(_0x4a3e0e){_0x5bbacc['push'](_0x5bbacc['shift']());}}}(a29_0x2d3e,0x562d4));const logger=require(a29_0x30d60f(0xa0))[a29_0x30d60f(0xf9)],helper=require(a29_0x30d60f(0xcd)),constants=require(a29_0x30d60f(0x101)),hubAllocator=require(a29_0x30d60f(0xad)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x30d60f(0xa1)),{setAccessibilityCapabilities,setExtension}=require(a29_0x30d60f(0xf3)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x30d60f(0xb4)),globals=require(a29_0x30d60f(0x94)),modify=(_0x283ef3,_0x3a5982=null,_0x1b56b6=![])=>{const _0x577a74=a29_0x30d60f,_0x415f8b={'MalBE':function(_0x4ba014,_0x1b9fff){return _0x4ba014!==_0x1b9fff;},'TZyfJ':_0x577a74(0x105),'lRJvZ':function(_0x4560d7,_0x3e869b){return _0x4560d7+_0x3e869b;},'aZPez':'https://','PIwhR':_0x577a74(0x107),'eltbr':'goog:chromeOptions','AMkdL':_0x577a74(0xf1),'lIXmb':_0x577a74(0xc8),'jPqFi':_0x577a74(0x90),'AFYeR':_0x577a74(0x104),'pvZMF':_0x577a74(0xe5),'aCThp':'safari.options','eEZJY':_0x577a74(0xd0),'nYDWw':_0x577a74(0xc9),'MqUJR':function(_0xb1d2cc,_0x4d0996){return _0xb1d2cc===_0x4d0996;},'hTwoa':_0x577a74(0xae),'pzpwQ':_0x577a74(0xd7),'SFRfa':function(_0xd0523c,_0x35142a,_0x39afe4){return _0xd0523c(_0x35142a,_0x39afe4);},'TOLBF':function(_0x4728e5,_0x5485da,_0x3587d8){return _0x4728e5(_0x5485da,_0x3587d8);},'nDLGm':function(_0x55c4e9,_0x658ec7){return _0x55c4e9(_0x658ec7);},'hDbnM':function(_0xb7457f,_0x18aed0,_0x4cad10){return _0xb7457f(_0x18aed0,_0x4cad10);},'bDIXn':_0x577a74(0xb5),'cTffQ':_0x577a74(0xcf),'iRAYP':function(_0x473701,_0x15e85f,_0x54b2cb){return _0x473701(_0x15e85f,_0x54b2cb);},'kDgpQ':function(_0x517c2e,_0x3eea62,_0x4d9670){return _0x517c2e(_0x3eea62,_0x4d9670);},'cVVON':_0x577a74(0xc3),'uhbyC':function(_0xb3b677){return _0xb3b677();},'VzGzw':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','hbnQv':_0x577a74(0xac),'bZYDs':function(_0x4b4e11,_0x43f95d){return _0x4b4e11(_0x43f95d);},'PJFGE':function(_0x432e51,_0x51bc10){return _0x432e51!==_0x51bc10;},'znzCP':_0x577a74(0xfc),'NFEmv':_0x577a74(0xb3)},_0x5a045b=helper[_0x577a74(0xe9)]();let _0x3215d1;try{_0x3215d1=helper['requireSeleniumWebdriver'](),_0x3215d1['originalBuilder']&&(_0x3215d1[_0x577a74(0xe1)]=_0x3215d1[_0x577a74(0xbe)]);}catch(_0x10fa59){return;}if(helper[_0x577a74(0xa6)]()){const _0x4ba8da={};_0x4ba8da[_0x577a74(0xbc)]=_0x283ef3[_0x577a74(0xef)],helper[_0x577a74(0xce)](_0x4ba8da,new Map(),new Map()),logger['info'](_0x415f8b['znzCP']),logger['debug'](_0x415f8b[_0x577a74(0xdb)]);}class _0x4b51e2 extends _0x5a045b[_0x577a74(0xfa)]{[_0x577a74(0xed)](_0x4f77f9){const _0x54da60=_0x577a74;if(_0x415f8b[_0x54da60(0xa5)](_0x4f77f9['path'],_0x415f8b[_0x54da60(0x9d)])&&_0x415f8b[_0x54da60(0xa5)](global[_0x54da60(0xee)],''))try{global[_0x54da60(0xee)]=_0x415f8b[_0x54da60(0xcb)](_0x415f8b['lRJvZ'](_0x415f8b['aZPez'],global[_0x54da60(0xee)]),_0x415f8b[_0x54da60(0xc7)]),this[_0x54da60(0xca)]=hubAllocator[_0x54da60(0x9c)](global[_0x54da60(0xee)]),logger[_0x54da60(0xde)](_0x54da60(0xba)+global[_0x54da60(0xee)]),global[_0x54da60(0xee)]='';}catch(_0x35a5ef){logger['error'](_0x35a5ef);}return super[_0x54da60(0xed)](_0x4f77f9);}}class _0x567409 extends _0x3215d1['Builder']{['setServer'](){const _0x318406=_0x577a74;return this[_0x318406(0xb1)]=helper[_0x318406(0xd2)](_0x283ef3),logger[_0x318406(0xde)](_0x318406(0x91)+this['url_']),this;}[_0x577a74(0x9a)](_0x41634f){const _0x2ea27a=_0x577a74;let _0x4c5f05={};for(const _0x5b6b00 in _0x41634f){switch(_0x5b6b00){case _0x415f8b[_0x2ea27a(0xdf)]:case _0x415f8b['AMkdL']:this['chromeOptions_']&&(_0x4c5f05=this[_0x2ea27a(0xd8)][_0x2ea27a(0xd9)](this['chromeOptions_'][_0x2ea27a(0x98)])||{},this[_0x2ea27a(0xd8)][_0x2ea27a(0x99)](this[_0x2ea27a(0xd8)][_0x2ea27a(0x98)],helper['mergeDeep'](_0x4c5f05,_0x41634f[_0x5b6b00])));break;case _0x415f8b[_0x2ea27a(0xb8)]:case _0x415f8b[_0x2ea27a(0xda)]:this['edgeOptions_']&&(_0x4c5f05=this[_0x2ea27a(0xd4)][_0x2ea27a(0xd9)](this[_0x2ea27a(0xd4)]['CAPABILITY_KEY'])||{},this[_0x2ea27a(0xd4)][_0x2ea27a(0x99)](this['edgeOptions_'][_0x2ea27a(0x98)],helper[_0x2ea27a(0xa2)](_0x4c5f05,_0x41634f[_0x5b6b00])));break;case _0x415f8b[_0x2ea27a(0xf8)]:case _0x415f8b[_0x2ea27a(0xb7)]:this[_0x2ea27a(0xa7)]&&(_0x4c5f05=this[_0x2ea27a(0xa7)][_0x2ea27a(0xd9)](this[_0x2ea27a(0xa7)][_0x2ea27a(0x98)])||{},this['firefoxOptions_'][_0x2ea27a(0x99)](this[_0x2ea27a(0xa7)][_0x2ea27a(0x98)],helper[_0x2ea27a(0xa2)](_0x4c5f05,_0x41634f[_0x5b6b00])));break;case _0x415f8b[_0x2ea27a(0xe4)]:this[_0x2ea27a(0xbb)]&&(_0x4c5f05=this[_0x2ea27a(0xbb)][_0x2ea27a(0xd9)](this[_0x2ea27a(0xbb)][_0x2ea27a(0x98)])||{},this[_0x2ea27a(0xbb)][_0x2ea27a(0x99)](this[_0x2ea27a(0xbb)][_0x2ea27a(0x98)],helper[_0x2ea27a(0xa2)](_0x4c5f05,_0x41634f[_0x5b6b00])));break;case _0x415f8b[_0x2ea27a(0xe6)]:case _0x415f8b[_0x2ea27a(0x8d)]:this[_0x2ea27a(0xfb)]&&(_0x4c5f05=this[_0x2ea27a(0xfb)][_0x2ea27a(0xd9)](this[_0x2ea27a(0xfb)][_0x2ea27a(0x98)])||{},this[_0x2ea27a(0xfb)][_0x2ea27a(0x99)](this[_0x2ea27a(0xfb)]['CAPABILITY_KEY'],helper[_0x2ea27a(0xa2)](_0x4c5f05,_0x41634f[_0x5b6b00])));break;}}}['setCapabilities'](){const _0x309a8d=_0x577a74;return logger[_0x309a8d(0xde)](_0x415f8b['pzpwQ']),this[_0x309a8d(0x9a)](_0x283ef3['capability']),Object[_0x309a8d(0xf5)](_0x283ef3[_0x309a8d(0x103)])[_0x309a8d(0xfd)](_0x14bc8c=>{const _0x40ebae=_0x309a8d,_0x7f83c7=this[_0x40ebae(0xd5)]['get'](_0x14bc8c);_0x415f8b[_0x40ebae(0xe2)](typeof _0x7f83c7,_0x415f8b[_0x40ebae(0xb6)])?this['capabilities_'][_0x40ebae(0x99)](_0x14bc8c,helper[_0x40ebae(0xa2)](_0x7f83c7,_0x283ef3[_0x40ebae(0x103)][_0x14bc8c])):this[_0x40ebae(0xd5)][_0x40ebae(0x99)](_0x14bc8c,_0x283ef3[_0x40ebae(0x103)][_0x14bc8c]);}),this;}[_0x577a74(0xeb)](){const _0x4cdd1a=_0x577a74,_0x42c648={'rsrZZ':_0x415f8b[_0x4cdd1a(0x102)],'sDsvQ':_0x415f8b[_0x4cdd1a(0xcc)],'syWsG':function(_0x444e43,_0x247de5,_0x1a9a23){const _0xd28722=_0x4cdd1a;return _0x415f8b[_0xd28722(0xc6)](_0x444e43,_0x247de5,_0x1a9a23);},'ORyHr':function(_0xe23fbe,_0x5f2d20,_0x3b9e4a){const _0x24150b=_0x4cdd1a;return _0x415f8b[_0x24150b(0xd6)](_0xe23fbe,_0x5f2d20,_0x3b9e4a);}};if(helper['isBrowserstackInfra']()){const _0x37801d=_0x415f8b[_0x4cdd1a(0xe3)][_0x4cdd1a(0xaf)]('|');let _0x3de73f=0x0;while(!![]){switch(_0x37801d[_0x3de73f++]){case'0':this[_0x4cdd1a(0xd3)]();continue;case'1':this['setServer']();continue;case'2':_0x415f8b['uhbyC'](isAccessibilityAutomationSession)&&_0x415f8b[_0x4cdd1a(0xf4)](setAccessibilityCapabilities,_0x283ef3);continue;case'3':logger[_0x4cdd1a(0xde)](_0x415f8b[_0x4cdd1a(0xaa)]);continue;case'4':globals[_0x4cdd1a(0xa3)](_0x415f8b[_0x4cdd1a(0xea)])&&(!_0x415f8b[_0x4cdd1a(0xa9)](setExtension,this,_0x283ef3)&&globals[_0x4cdd1a(0xd1)](_0x415f8b['hbnQv'],![]));continue;case'5':if(helper[_0x4cdd1a(0xec)](_0x283ef3['proxySettings'][_0x4cdd1a(0x106)]))this[_0x4cdd1a(0x93)]=helper[_0x4cdd1a(0xc2)](_0x283ef3[_0x4cdd1a(0x96)][_0x4cdd1a(0x106)]);else _0x283ef3['proxySettings'][_0x4cdd1a(0x106)]&&(this[_0x4cdd1a(0xb9)]=_0x283ef3[_0x4cdd1a(0x96)]['proxyUrl'],logger[_0x4cdd1a(0xde)](_0x4cdd1a(0xab)+this['proxy_']));continue;}break;}}const _0x16825b=super[_0x4cdd1a(0xeb)]();return _0x16825b[_0x4cdd1a(0x9f)][_0x4cdd1a(0xc1)](_0x326c45=>{const _0x56dabf=_0x4cdd1a;try{const _0x1e9cff=_0x326c45['caps_'][_0x56dabf(0xd9)](_0x42c648[_0x56dabf(0xbf)]);_0x1e9cff?(logger[_0x56dabf(0xde)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x1e9cff),hubAllocator['updateHubUrl'](_0x1e9cff),helper[_0x56dabf(0xc0)](_0x1e9cff)):logger[_0x56dabf(0xde)](_0x42c648['sDsvQ']);}catch(_0x165aa3){logger['debug'](_0x56dabf(0xf0)+_0x165aa3);}}),_0x16825b[_0x4cdd1a(0xf6)]=0x0,_0x16825b['then']&&_0x16825b[_0x4cdd1a(0xc1)](_0x47dd6b=>{const _0x1f59a7=_0x4cdd1a,_0x31c7cd={'HRXxP':function(_0x3107df,_0x12b751,_0x7bcce2){const _0x2612ac=a29_0x2320;return _0x415f8b[_0x2612ac(0xdd)](_0x3107df,_0x12b751,_0x7bcce2);}};_0x415f8b[_0x1f59a7(0xbd)](overrideQuit,_0x47dd6b,_0x16825b),_0x415f8b['nDLGm'](overrideTakeScreenshot,_0x47dd6b),helper[_0x1f59a7(0xe8)](_0x47dd6b,_0x283ef3),helper[_0x1f59a7(0xfe)](_0x47dd6b,_0x283ef3),_0x47dd6b[_0x1f59a7(0xb2)]=async()=>{return await _0x31c7cd['HRXxP'](getAccessibilityResultsSummary,_0x47dd6b,global);},_0x47dd6b[_0x1f59a7(0x92)]=async()=>{const _0x52845b=_0x1f59a7;return await _0x42c648[_0x52845b(0xf7)](getAccessibilityResults,_0x47dd6b,global);};}),_0x16825b[_0x4cdd1a(0xb2)]=async()=>{const _0x53f823=_0x4cdd1a;return await _0x42c648[_0x53f823(0xa4)](getAccessibilityResultsSummary,_0x16825b,global);},_0x16825b[_0x4cdd1a(0x92)]=async()=>{const _0x31aeda=_0x4cdd1a;return await _0x415f8b[_0x31aeda(0xa9)](getAccessibilityResults,_0x16825b,global);},_0x415f8b['bZYDs'](overrideTakeScreenshot,_0x16825b),_0x415f8b[_0x4cdd1a(0x97)](overrideQuit,_0x16825b),helper[_0x4cdd1a(0xe8)](_0x16825b,_0x283ef3),helper[_0x4cdd1a(0xfe)](_0x16825b,_0x283ef3),helper[_0x4cdd1a(0x9e)](global[_0x4cdd1a(0xf2)])&&(global[_0x4cdd1a(0xf2)]=[]),helper[_0x4cdd1a(0x9e)](global[_0x4cdd1a(0xb0)])&&(global[_0x4cdd1a(0xb0)]=[]),global[_0x4cdd1a(0xf2)][_0x4cdd1a(0xc5)](_0x16825b),global[_0x4cdd1a(0x8e)]=_0x16825b,_0x415f8b[_0x4cdd1a(0xa5)](global[_0x4cdd1a(0xb0)],undefined)&&global[_0x4cdd1a(0xb0)][_0x4cdd1a(0xc5)](_0x16825b),_0x3a5982&&helper[_0x4cdd1a(0x9e)](_0x3a5982['global'][_0x4cdd1a(0xf2)])&&(_0x3a5982['global']['__driversArray']=[]),_0x3a5982&&_0x415f8b[_0x4cdd1a(0xe0)](_0x3a5982[_0x4cdd1a(0xdc)][_0x4cdd1a(0xb0)],undefined)&&(_0x3a5982[_0x4cdd1a(0xdc)][_0x4cdd1a(0xb0)][_0x4cdd1a(0xc5)](_0x16825b),_0x3a5982[_0x4cdd1a(0xdc)][_0x4cdd1a(0xf2)][_0x4cdd1a(0xc5)](_0x16825b)),_0x16825b;}}return _0x3215d1[_0x577a74(0xbe)]=_0x3215d1['Builder'],_0x3215d1[_0x577a74(0xe1)]=_0x567409,_0x5a045b['HttpClient']=_0x4b51e2,_0x3215d1;};function a29_0x2d3e(){const _0x5db2b9=['get','jPqFi','NFEmv','global','SFRfa','debug','eltbr','PJFGE','Builder','MqUJR','cVVON','aCThp','firefoxOptions','eEZJY','475707DAKmlc','overrideGet','requireHttpClient','hbnQv','build','isPacProxy','send','newHubUrl','browserStackLogLevel','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','chromeOptions','__driversArray','../accessibility-automation/helper','nDLGm','keys','quitCount_','syWsG','AFYeR','winstonLogger','HttpClient','ieOptions_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','forEach','overrideExecute','2546384oFBrMT','6eYteiv','../../../bin/utils/constants','bDIXn','capability','moz:firefoxOptions','/session','proxyUrl','/wd/hub','339316ZNTzsn','nYDWw','__driver','1820259nuXUOK','edgeOptions','Hub\x20url\x20set\x20to\x20','getAccessibilityResults','agent_','../../../helpers/globals','6283530jGBswH','proxySettings','bZYDs','CAPABILITY_KEY','set','__setBrowserOptions','1635670MDPqPT','getRequestOptions','TZyfJ','isUndefined','session_','../../../helpers/logger','../../../helpers/patchHelpers','mergeDeep','getGlobal','ORyHr','MalBE','isBrowserstackInfra','firefoxOptions_','549754XVpZqO','hDbnM','VzGzw','Proxy\x20set\x20to\x20','isAccessibilityPlatform','../../../hubAllocationMethods','object','split','__drivers','url_','getAccessibilityResultsSummary','Modifying\x20webdriver\x20builder','../../../helpers/accessibility-automation/helper','optimalHubUrl','hTwoa','pvZMF','lIXmb','proxy_','New\x20hub\x20url\x20set\x20to\x20','safariOptions_','logLevel','TOLBF','originalBuilder','rsrZZ','storeOptimalHubUrl','then','getHttpAgent','2|1|0|5|4|3','3pWUOyA','push','iRAYP','PIwhR','ms:edgeOptions','ieOptions','options_','lRJvZ','cTffQ','../../../helpers/helper','setLogLevel','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','se:ieOptions','setGlobal','getHubUrl','setCapabilities','edgeOptions_','capabilities_','kDgpQ','Setting\x20Browserstack\x20capabilities','chromeOptions_'];a29_0x2d3e=function(){return _0x5db2b9;};return a29_0x2d3e();}function a29_0x2320(_0x34dc26,_0x1f41ca){const _0x2d3e70=a29_0x2d3e();return a29_0x2320=function(_0x232088,_0x28fffc){_0x232088=_0x232088-0x8c;let _0x13ebda=_0x2d3e70[_0x232088];return _0x13ebda;},a29_0x2320(_0x34dc26,_0x1f41ca);}module['exports']['browserstackAgentObservability']=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a30_0x4ee9(_0x23cb01,_0x7d4ad3){const _0xd8def4=a30_0xd8de();return a30_0x4ee9=function(_0x4ee951,_0x2995e5){_0x4ee951=_0x4ee951-0xfb;let _0x3c416a=_0xd8def4[_0x4ee951];return _0x3c416a;},a30_0x4ee9(_0x23cb01,_0x7d4ad3);}const a30_0x189019=a30_0x4ee9;(function(_0x263aa6,_0x1389c6){const _0x424081=a30_0x4ee9,_0x981b5b=_0x263aa6();while(!![]){try{const _0x2dc987=-parseInt(_0x424081(0x101))/0x1+parseInt(_0x424081(0xfe))/0x2*(-parseInt(_0x424081(0x102))/0x3)+parseInt(_0x424081(0x108))/0x4*(-parseInt(_0x424081(0xfd))/0x5)+-parseInt(_0x424081(0x100))/0x6*(parseInt(_0x424081(0x10a))/0x7)+parseInt(_0x424081(0x103))/0x8+-parseInt(_0x424081(0x105))/0x9+parseInt(_0x424081(0x10b))/0xa*(parseInt(_0x424081(0xfb))/0xb);if(_0x2dc987===_0x1389c6)break;else _0x981b5b['push'](_0x981b5b['shift']());}catch(_0x4b918e){_0x981b5b['push'](_0x981b5b['shift']());}}}(a30_0xd8de,0x4aa83));function a30_0xd8de(){const _0x3ad3c1=['2972iycQXs','restore','7KaJtJw','2890LNyauQ','45496gKhxKU','../../../bin/utils/constants','3265lJvUIR','2evFfiC','../../../helpers/request-spy','1124238meoDIv','77081kMRfNh','612345jfnkBP','1768872qUtewi','mochaHooks','1411830wxMqAM','../../../helpers/test-observability/utils','jtqWJ'];a30_0xd8de=function(){return _0x3ad3c1;};return a30_0xd8de();}const requestSpy=require(a30_0x189019(0xff)),constants=require(a30_0x189019(0xfc)),{addRequestSpy}=require(a30_0x189019(0x106));exports[a30_0x189019(0x104)]={'beforeAll'(){const _0x1a2bdc=a30_0x189019,_0x3e49d1={'jtqWJ':function(_0x42633e){return _0x42633e();}},_0x2cf5db='browserstack internal helper hook';_0x3e49d1[_0x1a2bdc(0x107)](addRequestSpy);},'afterAll'(){const _0x58021a=a30_0x189019,_0x3b41ac='browserstack internal helper hook';this['timeout'](0xea60),requestSpy[_0x58021a(0x109)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a31_0x5883(){const _0x3133cb=['4798ztiDyf','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','ZMYBQ','uuid','passed','split','_beforeAll','230czFzct','moKyk','failed','nnQSe','lqwWj','../../../helpers/helper','indexOf','getHookDetails','fQixg','getBrowserVersion','getPlatform','HMaAB','Wsalo','ucmZK','suites','mlFdi','toISOString','5SHmDxJ','kNhfi','toJSON','hook','ZyZVx','vyATZ','xbbwa','concat','forEach','SjXys','_afterEach','468402lDjOIy','_beforeEach','1922152baPLMn','state','markedStatus','js-','tests','pending','getCapabilities','_afterAll','YsVfa','unknown_grid','getHooksForTest','XCukQ','uUSmt','__cloud_provider___','push','KJjRl','getHookSkippedTests','slice','getSession','bs:addPlatformDetails:','map_','150hhDquv','bWXrk','getBrowserName','6437772OOsYeh','reduce','string','parent','hook:','GvMec','pid','SAANr','emit','../../../helpers/test-observability/constants','IkdjX','qmMcE','VWFBd','JGtzf','247049VfVbQF','filter','TEST_PLATFORM','browserstack','../../utils/logPatcher','157808rTvCAA','914336ABPzdK','sendPlatformDetails','keys','substring','KIXSE','mapTestHooks','ZMLmB','hookAnalyticsId','63MuDDRq','../../../helpers/testhub/utils','Oygih'];a31_0x5883=function(){return _0x3133cb;};return a31_0x5883();}const a31_0x57515b=a31_0x164f;(function(_0x2c66aa,_0x326086){const _0x144541=a31_0x164f,_0x52870f=_0x2c66aa();while(!![]){try{const _0x34ff9d=-parseInt(_0x144541(0x148))/0x1*(parseInt(_0x144541(0x14b))/0x2)+-parseInt(_0x144541(0x16e))/0x3+-parseInt(_0x144541(0x170))/0x4*(-parseInt(_0x144541(0x163))/0x5)+parseInt(_0x144541(0x185))/0x6*(parseInt(_0x144541(0x13f))/0x7)+-parseInt(_0x144541(0x140))/0x8+-parseInt(_0x144541(0x12c))/0x9+-parseInt(_0x144541(0x152))/0xa*(-parseInt(_0x144541(0x13a))/0xb);if(_0x34ff9d===_0x326086)break;else _0x52870f['push'](_0x52870f['shift']());}catch(_0x60fcc1){_0x52870f['push'](_0x52870f['shift']());}}}(a31_0x5883,0x67790));function a31_0x164f(_0x16bf6c,_0x320f15){const _0x58833f=a31_0x5883();return a31_0x164f=function(_0x164f36,_0x5e6e7){_0x164f36=_0x164f36-0x12a;let _0x28b3ee=_0x58833f[_0x164f36];return _0x28b3ee;},a31_0x164f(_0x16bf6c,_0x320f15);}const {v4:uuidv4}=require(a31_0x57515b(0x14e)),{name,version}=require('../../../../package.json'),logPatcher=require(a31_0x57515b(0x13e)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require(a31_0x57515b(0x135)),{getPlatformVersion}=require(a31_0x57515b(0x157)),{shouldProcessEventForTesthub}=require(a31_0x57515b(0x149));console={},Object[a31_0x57515b(0x142)](consoleHolder)[a31_0x57515b(0x16b)](_0x33f970=>{console[_0x33f970]=(..._0x891438)=>{BSTestOpsPatcher[_0x33f970](..._0x891438);};}),exports['getTestEnv']=()=>{const _0x4731bf=a31_0x57515b,_0x1ef0fa={'ZMLmB':'generic','ucmZK':function(_0x33ef5b){return _0x33ef5b();}};return{'ci':_0x1ef0fa[_0x4731bf(0x146)],'key':_0x1ef0fa[_0x4731bf(0x15f)](uuidv4),'version':version,'collector':_0x4731bf(0x173)+name};},exports[a31_0x57515b(0x159)]=_0x555773=>{const _0x4f1fb6=a31_0x57515b,_0x5b058e={};_0x5b058e[_0x4f1fb6(0x139)]=function(_0x1be4e1,_0x4f0d88){return _0x1be4e1!==_0x4f0d88;},_0x5b058e['Oygih']=_0x4f1fb6(0x12e),_0x5b058e[_0x4f1fb6(0x17c)]=function(_0x5df7d8,_0x1574f4){return _0x5df7d8!==_0x1574f4;},_0x5b058e['GvMec']=_0x4f1fb6(0x130),_0x5b058e[_0x4f1fb6(0x15e)]=function(_0x2a63ae,_0x3f0347){return _0x2a63ae!==_0x3f0347;},_0x5b058e[_0x4f1fb6(0x167)]='hook';const _0x34f4e6=_0x5b058e;if(!_0x555773||_0x34f4e6['JGtzf'](typeof _0x555773,_0x34f4e6[_0x4f1fb6(0x14a)]))return[null,null];if(_0x34f4e6[_0x4f1fb6(0x17c)](_0x555773[_0x4f1fb6(0x158)](_0x34f4e6[_0x4f1fb6(0x131)]),-0x1)){const _0x4391de=_0x555773[_0x4f1fb6(0x150)](_0x34f4e6[_0x4f1fb6(0x131)]);return[_0x4391de[0x0][_0x4f1fb6(0x181)](0x0,-0x1)[_0x4f1fb6(0x150)]('\x22')[0x1],_0x4391de[0x1][_0x4f1fb6(0x143)](0x1)];}else{if(_0x34f4e6[_0x4f1fb6(0x15e)](_0x555773[_0x4f1fb6(0x158)](_0x34f4e6[_0x4f1fb6(0x167)]),-0x1)){const _0x28c821=_0x555773[_0x4f1fb6(0x150)](_0x34f4e6[_0x4f1fb6(0x167)]);return[_0x28c821[0x0][_0x4f1fb6(0x181)](0x0,-0x1)[_0x4f1fb6(0x150)]('\x22')[0x1],_0x555773];}}return[null,null];},exports[a31_0x57515b(0x17a)]=_0x5bc520=>{const _0x464abf=a31_0x57515b,_0x371c33={'KIXSE':function(_0x51ab7c,_0x42626d){return _0x51ab7c(_0x42626d);},'xbbwa':'_beforeAll','HMaAB':_0x464abf(0x177),'kNhfi':_0x464abf(0x16f),'nnQSe':_0x464abf(0x16d)};if(!_0x5bc520||!_0x5bc520[_0x464abf(0x12f)])return[];const _0x24985e=[];return[_0x371c33[_0x464abf(0x169)],_0x371c33[_0x464abf(0x15d)],_0x371c33[_0x464abf(0x164)],_0x371c33[_0x464abf(0x155)]][_0x464abf(0x16b)](_0xdf154c=>{const _0x16dd75=_0x464abf,_0x3e6581=_0x5bc520[_0x16dd75(0x12f)][_0xdf154c]||[];_0x3e6581[_0x16dd75(0x16b)](_0x4e6a23=>{const _0x1f618b=_0x16dd75;_0x4e6a23[_0x1f618b(0x147)]&&!_0x371c33[_0x1f618b(0x144)](isInternalHook,_0x4e6a23['fn'])&&_0x24985e[_0x1f618b(0x17e)](_0x4e6a23[_0x1f618b(0x147)]);});}),[..._0x24985e,...exports[_0x464abf(0x17a)](_0x5bc520['parent'])];},exports[a31_0x57515b(0x145)]=_0x30f421=>{const _0x5a0948=a31_0x57515b,_0x2c2341={'YsVfa':function(_0x3307e4){return _0x3307e4();},'buApJ':function(_0x300870,_0x551784){return _0x300870===_0x551784;},'KJjRl':_0x5a0948(0x16d),'SAANr':_0x5a0948(0x151),'mlFdi':_0x5a0948(0x177),'VWFBd':'_beforeEach'};if(!_0x30f421||!_0x30f421['parent'])return;[_0x2c2341[_0x5a0948(0x133)],_0x2c2341[_0x5a0948(0x161)],_0x2c2341[_0x5a0948(0x138)],_0x2c2341[_0x5a0948(0x17f)]][_0x5a0948(0x16b)](_0x3f0f66=>{const _0x4d4acd=_0x5a0948,_0x5ceb1d={'lqwWj':function(_0x48b1dc){const _0x1c3e43=a31_0x164f;return _0x2c2341[_0x1c3e43(0x178)](_0x48b1dc);},'IkdjX':function(_0x2ab545,_0x183eb1){return _0x2c2341['buApJ'](_0x2ab545,_0x183eb1);},'FcUGn':_0x2c2341[_0x4d4acd(0x17f)]},_0x420edc=_0x30f421['parent'][_0x3f0f66]||[];_0x420edc['forEach'](_0x116d85=>{const _0x5b1fd2=_0x4d4acd;if(!_0x116d85['hookAnalyticsId'])_0x116d85['hookAnalyticsId']=_0x5ceb1d[_0x5b1fd2(0x156)](uuidv4);else _0x116d85[_0x5b1fd2(0x172)]&&_0x5ceb1d[_0x5b1fd2(0x136)](_0x3f0f66,_0x5ceb1d['FcUGn'])&&(_0x116d85[_0x5b1fd2(0x147)]=_0x5ceb1d[_0x5b1fd2(0x156)](uuidv4),delete _0x116d85[_0x5b1fd2(0x172)]);});}),exports[_0x5a0948(0x145)](_0x30f421['parent']);},exports[a31_0x57515b(0x141)]=async(_0x2f3e13,_0x47200b)=>{const _0x1f39ff=a31_0x57515b,_0x339e91={'ZMYBQ':function(_0x4c3b0a){return _0x4c3b0a();},'SjXys':function(_0x40d3ce,_0x5e0f28){return _0x40d3ce(_0x5e0f28);},'lbUHg':function(_0x3d0e62,_0x3608d5){return _0x3d0e62(_0x3608d5);},'vyATZ':function(_0x2feebd,_0x1860fd){return _0x2feebd===_0x1860fd;},'mGZuB':_0x1f39ff(0x13d),'qmMcE':_0x1f39ff(0x179),'FtlNV':_0x1f39ff(0x13c),'FCUQX':function(_0x2e96c0,_0x3734df){return _0x2e96c0(_0x3734df);}};try{if(!_0x339e91[_0x1f39ff(0x14d)](shouldProcessEventForTesthub))return;const _0x597732=await _0x2f3e13[_0x1f39ff(0x176)](),_0x2e0c7d=await _0x2f3e13[_0x1f39ff(0x182)](),_0x3d0393={},_0x423f89=Object['fromEntries'](_0x2e0c7d[_0x1f39ff(0x176)]()[_0x1f39ff(0x184)]),_0x3f3aeb={'product':_0x339e91[_0x1f39ff(0x16c)](getObservabilityLinkedProductName,_0x423f89),'capabilities':_0x423f89,'platform':_0x597732[_0x1f39ff(0x15c)](),'platform_version':_0x339e91['lbUHg'](getPlatformVersion,_0x339e91[_0x1f39ff(0x168)](global['__cloud_provider___'],_0x339e91['mGZuB'])),'browser':_0x597732[_0x1f39ff(0x12b)](),'browser_version':_0x597732[_0x1f39ff(0x15b)](),'session_id':_0x2e0c7d[_0x1f39ff(0x165)]()};global[_0x1f39ff(0x17d)]?_0x3d0393[global[_0x1f39ff(0x17d)]]=_0x3f3aeb:_0x3d0393[_0x339e91[_0x1f39ff(0x137)]]=_0x3f3aeb,process[_0x1f39ff(0x134)](_0x1f39ff(0x183)+process[_0x1f39ff(0x132)],{'timestamp':new Date()[_0x1f39ff(0x162)](),'level':null,'message':null,'kind':_0x339e91['FtlNV'],'http_response':_0x3d0393,'uuid':_0x47200b});}catch(_0x5dc0c9){_0x339e91['FCUQX'](debug,_0x1f39ff(0x14c)+_0x5dc0c9);}},exports['getHookSkippedTests']=_0x3cbc63=>{const _0x499cd7=a31_0x57515b,_0xf003ea={};_0xf003ea[_0x499cd7(0x15a)]=function(_0x323866,_0x2bf2d3){return _0x323866!==_0x2bf2d3;},_0xf003ea[_0x499cd7(0x17b)]=_0x499cd7(0x166),_0xf003ea[_0x499cd7(0x12a)]=_0x499cd7(0x14f),_0xf003ea['moKyk']=_0x499cd7(0x154);const _0x5a1555=_0xf003ea,_0x356667=_0x3cbc63[_0x499cd7(0x160)][_0x499cd7(0x12d)]((_0x54bb4a,_0x566d9d)=>{const _0x321a19=_0x499cd7,_0x8a9c78=exports[_0x321a19(0x180)](_0x566d9d);return _0x8a9c78&&(_0x54bb4a=_0x54bb4a[_0x321a19(0x16a)](_0x8a9c78)),_0x54bb4a;},[]),_0x4c1ca1=_0x3cbc63[_0x499cd7(0x174)][_0x499cd7(0x13b)](_0x2c17c5=>{const _0xaea96e=_0x499cd7,_0x45ff3a=_0x5a1555[_0xaea96e(0x15a)](_0x2c17c5['type'],_0x5a1555['XCukQ'])&&!_0x2c17c5[_0xaea96e(0x172)]&&_0x5a1555[_0xaea96e(0x15a)](_0x2c17c5['state'],_0x5a1555[_0xaea96e(0x12a)])&&_0x5a1555['fQixg'](_0x2c17c5[_0xaea96e(0x171)],_0x5a1555[_0xaea96e(0x153)])&&!_0x2c17c5[_0xaea96e(0x175)];return _0x45ff3a;});return _0x4c1ca1[_0x499cd7(0x16a)](_0x356667);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x24e1(_0x2e0bce,_0x33c57f){const _0x3589f9=a32_0x3589();return a32_0x24e1=function(_0x24e120,_0x431d09){_0x24e120=_0x24e120-0xe1;let _0x3da30a=_0x3589f9[_0x24e120];return _0x3da30a;},a32_0x24e1(_0x2e0bce,_0x33c57f);}const a32_0x3c3521=a32_0x24e1;(function(_0x24d8fe,_0x3a633f){const _0x3c00e8=a32_0x24e1,_0x29362f=_0x24d8fe();while(!![]){try{const _0x551a1e=parseInt(_0x3c00e8(0x107))/0x1+-parseInt(_0x3c00e8(0x10c))/0x2+parseInt(_0x3c00e8(0x128))/0x3+parseInt(_0x3c00e8(0x135))/0x4*(parseInt(_0x3c00e8(0x137))/0x5)+parseInt(_0x3c00e8(0x152))/0x6*(parseInt(_0x3c00e8(0xf1))/0x7)+-parseInt(_0x3c00e8(0x138))/0x8*(-parseInt(_0x3c00e8(0xe4))/0x9)+-parseInt(_0x3c00e8(0xfd))/0xa;if(_0x551a1e===_0x3a633f)break;else _0x29362f['push'](_0x29362f['shift']());}catch(_0x4851bc){_0x29362f['push'](_0x29362f['shift']());}}}(a32_0x3589,0x656c4));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x3c3521(0x105)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x3c3521(0x150)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0x3c3521(0x110)),scripts=require(a32_0x3c3521(0x120)),globals=require(a32_0x3c3521(0x130)),logger=require(a32_0x3c3521(0xed))[a32_0x3c3521(0xf2)],{shouldProcessEventForTesthub}=require(a32_0x3c3521(0x10d)),testHubConstants=require(a32_0x3c3521(0x13d));function a32_0x3589(){const _0x3f5be1=['passed','10476010ayhtrN','ZVKaU','appium:app','executeScript','UWwVn','IJngt','performScan','then','../../helpers/accessibility-automation/helper','error','771005lFFbaA','mochaHooks','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','ENV_VAR','__sessionFailed','1243002pytlbD','../../helpers/testhub/utils','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','thBuildUuid','../../helpers/performance-tester','LAuGQ','imFvn','jyoNI','getGlobal','iPLEj','TddFM','titlePath','http:','timeout','__skipSessionName','fOMuC','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','LkxEv','debug','aIOGQ','../../helpers/accessibility-automation/scripts','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','shouldScanTestForAccessibility','executeAsyncScript','testAnalyticsId','info','ntUet','CYBEo','116187oEFTOM','xXxpT','getCurrentUrl','percy','shift','qgHgs','session_','qtKpQ','../../helpers/globals','thTestRunUuid','initQuit','isArray','QMTIu','897628WEtcjp','Failed:\x20','15fiSFMt','1160YVmUyk','saveTestResults','err','thJwtToken','.\x20Error\x20:','../../helpers/testhub/constants','LrdZK','fEDSa','length','TaJaO','bHusw','quitCount_','message','failed','IKPvo','\x20-\x20','currentTest','\x20|\x20','ejecb','myUak','protocol','browserstackSessionName','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','env','./test-observability/mochaUtils','sessionNameSet__','2619390oIEQmI','MTNWJ','gcnGd','eIicq','vORVj','Performing\x20scan\x20before\x20saving\x20results','__error_messages__','BROWSERSTACK_TESTHUB_JWT','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','ZpcHM','app','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','isAccessibilityPlatform','10242LdpIDp','join','state','QhyGj','XBJxV','\x22}}','capabilities','ObservabilitySync:','bstackA11yShouldScan','../../helpers/logger','driverCleanup','__drivers','accessibilityScanStarted','7xBomzf','winstonLogger','IMoKb','stringify','https:','mTeEF','format','BROWSERSTACK_TESTHUB_UUID','Passed','XPTTt',',\x22level\x22:\x20\x22'];a32_0x3589=function(){return _0x3f5be1;};return a32_0x3589();}exports[a32_0x3c3521(0x108)]={'beforeAll'(){const _0x59777d=a32_0x3c3521,_0x106792={'xXxpT':function(_0x513df4,_0x42fcec,_0x2e38a8,_0x3e705c){return _0x513df4(_0x42fcec,_0x2e38a8,_0x3e705c);},'iPLEj':_0x59777d(0x145),'ntUet':_0x59777d(0x149),'XPTTt':function(_0x464a0c,_0x1ac6f4,_0x2cd0b4){return _0x464a0c(_0x1ac6f4,_0x2cd0b4);},'XBJxV':_0x59777d(0xfc),'MTNWJ':function(_0x3a29b4){return _0x3a29b4();}};PerformanceTester['startMonitoring']();const _0x307c9f='browserstack internal helper hook';global['__error_messages__']=[],global[_0x59777d(0x10b)]=![],global[_0x59777d(0xee)]=async()=>{const _0x5ee8fd=_0x59777d;let _0x27a740=![];try{await global[_0x5ee8fd(0xef)][0x0][_0x5ee8fd(0x12e)],_0x27a740=!![],global[_0x5ee8fd(0x10b)]?await _0x106792[_0x5ee8fd(0x129)](markSessionStatus,global[_0x5ee8fd(0xef)][0x0],_0x106792[_0x5ee8fd(0x115)],global[_0x5ee8fd(0x158)]['join'](_0x106792[_0x5ee8fd(0x126)])):await _0x106792[_0x5ee8fd(0xfa)](markSessionStatus,global['__drivers'][0x0],_0x106792[_0x5ee8fd(0xe8)]);}catch(_0x4ac0b6){}global[_0x5ee8fd(0x158)]=[],global[_0x5ee8fd(0x10b)]=![];if(_0x27a740)try{try{_0x106792[_0x5ee8fd(0x153)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x106792['XPTTt'](sendPlatformDetails,global[_0x5ee8fd(0xef)][0x0],this[_0x5ee8fd(0x148)]?this[_0x5ee8fd(0x148)][_0x5ee8fd(0x124)]:null));}catch{}await global[_0x5ee8fd(0xef)][0x0][_0x5ee8fd(0x132)]();}catch(_0x129dae){}};},'beforeEach'(_0x108e3f){const _0x5aa64b=a32_0x3c3521,_0x7226e4={'UWwVn':function(_0x5ea0c4,_0xf61cd3){return _0x5ea0c4>_0xf61cd3;},'fOMuC':_0x5aa64b(0x147),'XopCP':function(_0xcb77c7,_0x3ea204,_0x4f89e8){return _0xcb77c7(_0x3ea204,_0x4f89e8);},'vORVj':_0x5aa64b(0xec),'PjHiz':function(_0x5777bc){return _0x5777bc();},'myUak':_0x5aa64b(0xe3),'ZpcHM':function(_0xff817c,_0x599b40){return _0xff817c===_0x599b40;},'NgjSE':_0x5aa64b(0x118),'ejecb':_0x5aa64b(0xf5),'bIKZg':_0x5aa64b(0x14e),'imFvn':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0x24244a=>{const _0x2a8055=_0x5aa64b,_0x4f1875='browserstack internal helper hook';let _0x469fcd=!![];try{_0x7226e4[_0x2a8055(0x101)](global[_0x2a8055(0xef)][_0x2a8055(0x140)],0x1)&&(await global['driverCleanup'](),global[_0x2a8055(0xef)][_0x2a8055(0x12c)]()),_0x7226e4[_0x2a8055(0x101)](global[_0x2a8055(0xef)][0x0][_0x2a8055(0x143)],0x0)&&(_0x469fcd=![],await global[_0x2a8055(0xee)]());}catch{}try{Array[_0x2a8055(0x133)](global['__drivers'])&&global[_0x2a8055(0xef)][0x0]&&(global['__drivers'][0x0][_0x2a8055(0x14d)]=this[_0x2a8055(0x148)][_0x2a8055(0x117)]()[_0x2a8055(0xe5)](_0x7226e4[_0x2a8055(0x11b)])),global[_0x2a8055(0x14d)]=this[_0x2a8055(0x148)][_0x2a8055(0x117)]()[_0x2a8055(0xe5)](_0x7226e4['fOMuC']);}catch(_0x10285f){logger['debug']('Failed\x20to\x20store\x20session\x20name:\x20'+_0x10285f);}this['currentTest'][_0x2a8055(0x122)]=_0x7226e4['XopCP'](shouldScanTestForAccessibility,this[_0x2a8055(0x148)]['titlePath'](),!![]),globals['setGlobal'](_0x7226e4[_0x2a8055(0x156)],this['currentTest']['shouldScanTestForAccessibility']),this['currentTest'][_0x2a8055(0xf0)]=!![];if(_0x7226e4['PjHiz'](isAccessibilityAutomationSession)&&_0x469fcd&&Array['isArray'](global[_0x2a8055(0xef)])&&_0x7226e4[_0x2a8055(0x101)](global[_0x2a8055(0xef)]['length'],0x0)&&globals['getGlobal'](_0x7226e4[_0x2a8055(0x14b)]))try{const _0x46d4d6=await global[_0x2a8055(0xef)][0x0][_0x2a8055(0x12e)];if(_0x46d4d6){let _0x472d63=!![];const _0x2e4c4e=await global['__drivers'][0x0][_0x2a8055(0x12a)]();let _0x2039df;try{_0x2039df=new URL(_0x2e4c4e);}catch(_0x691724){_0x472d63=![];}_0x472d63=_0x7226e4[_0x2a8055(0x15b)](_0x2039df[_0x2a8055(0x14c)],_0x7226e4['NgjSE'])||_0x7226e4[_0x2a8055(0x15b)](_0x2039df['protocol'],_0x7226e4[_0x2a8055(0x14a)]),_0x472d63&&(this[_0x2a8055(0x148)][_0x2a8055(0x122)]&&logger[_0x2a8055(0x125)](_0x7226e4['bIKZg'])),this[_0x2a8055(0x148)][_0x2a8055(0xf0)]=this[_0x2a8055(0x148)][_0x2a8055(0x122)],this[_0x2a8055(0x148)][_0x2a8055(0x122)]&&logger['info'](_0x7226e4[_0x2a8055(0x112)]);}}catch(_0x2dc19c){logger[_0x2a8055(0x106)](_0x2a8055(0x109)+util[_0x2a8055(0xf7)](_0x2dc19c));}_0x7226e4['PjHiz'](_0x24244a);})['then'](_0x108e3f);},'afterEach'(_0x1680b0){const _0xbad8b7=a32_0x3c3521,_0x3439a8={'reOzr':function(_0x5cf6e9,_0x3080df){return _0x5cf6e9>_0x3080df;},'LAuGQ':function(_0x171cf8,_0xd327dd){return _0x171cf8===_0xd327dd;},'lJciS':'testcase','eIicq':function(_0x248a16,_0xf1d7c7){return _0x248a16>_0xf1d7c7;},'CYBEo':_0xbad8b7(0xff),'jyoNI':function(_0x3b1bc2,_0x39c2d1,_0x29ef29,_0x1282f9){return _0x3b1bc2(_0x39c2d1,_0x29ef29,_0x1282f9);},'TaJaO':_0xbad8b7(0x147),'IKPvo':function(_0xd40e4d,_0x344cb9){return _0xd40e4d!==_0x344cb9;},'aIOGQ':'passed','bHusw':function(_0x350080,_0x497af5,_0x389ebb){return _0x350080(_0x497af5,_0x389ebb);},'qgHgs':function(_0x3aec35,_0x5aa1ab){return _0x3aec35+_0x5aa1ab;},'PTovD':_0xbad8b7(0x136),'QhyGj':'error','IMoKb':_0xbad8b7(0xf9),'ZVKaU':_0xbad8b7(0x125),'qtKpQ':_0xbad8b7(0xe3),'QMTIu':'bstackA11yShouldScan','WXrhc':_0xbad8b7(0x121),'gcnGd':_0xbad8b7(0x157),'LrdZK':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','LkxEv':function(_0x55616d){return _0x55616d();},'IJngt':function(_0x4e0c9e,_0x424585,_0x10cb94){return _0x4e0c9e(_0x424585,_0x10cb94);},'fEDSa':_0xbad8b7(0x11e),'TddFM':function(_0x4ed30c,_0x12f10c){return _0x4ed30c>_0x12f10c;},'mTeEF':function(_0x3dbeb6){return _0x3dbeb6();}},_0x405221='browserstack internal helper hook';this[_0xbad8b7(0x119)](0xfde8);const _0x574da7=async(_0x37457f,_0x12d8e9)=>{const _0xf4b48d=_0xbad8b7;await global['__drivers'][0x0][_0xf4b48d(0x100)](_0xf4b48d(0x11c)+_0x37457f+_0xf4b48d(0xfb)+_0x12d8e9+_0xf4b48d(0xe9));};new Promise(async _0x391bb1=>{const _0x447ca3=_0xbad8b7;try{_0x3439a8['reOzr'](global[_0x447ca3(0xef)]['length'],0x1)&&(await global[_0x447ca3(0xee)](),global['__drivers'][_0x447ca3(0x12c)](),global[_0x447ca3(0x158)]=[],global['__sessionFailed']=![]);try{if(global[_0x447ca3(0x12b)]&&_0x3439a8[_0x447ca3(0x111)](global['percyCaptureMode'],_0x3439a8['lJciS'])&&global[_0x447ca3(0xef)][0x0]){const _0x322d46=_0x3439a8[_0x447ca3(0x155)](global[_0x447ca3(0xea)]['length'],0x0)?!!global[_0x447ca3(0xea)][0x0]['app']||!!global[_0x447ca3(0xea)][0x0][_0x3439a8[_0x447ca3(0x127)]]:![],_0xdb5304={};_0xdb5304[_0x447ca3(0xe1)]=_0x322d46,await _0x3439a8[_0x447ca3(0x113)](percyAutoCapture,global[_0x447ca3(0xef)][0x0],_0x3439a8['lJciS'],_0xdb5304);}}catch(_0x21a92f){}!global[_0x447ca3(0x11a)]&&(await global[_0x447ca3(0xef)][0x0][_0x447ca3(0x100)](_0x447ca3(0x10e)+JSON[_0x447ca3(0xf4)](this[_0x447ca3(0x148)][_0x447ca3(0x117)]()[_0x447ca3(0xe5)](_0x3439a8[_0x447ca3(0x141)]))+'}}'),global[_0x447ca3(0xef)][0x0][_0x447ca3(0x151)]=!![]);const _0x359d10=_0x3439a8[_0x447ca3(0x146)](this['currentTest'][_0x447ca3(0xe6)],_0x3439a8[_0x447ca3(0x11f)]);_0x359d10?(global[_0x447ca3(0x10b)]=!![],global[_0x447ca3(0x158)]['push'](this[_0x447ca3(0x148)][_0x447ca3(0x13a)]['message']),await _0x3439a8[_0x447ca3(0x142)](_0x574da7,JSON['stringify'](_0x3439a8[_0x447ca3(0x12d)](_0x3439a8['PTovD'],this[_0x447ca3(0x148)][_0x447ca3(0x13a)][_0x447ca3(0x144)])),_0x3439a8[_0x447ca3(0xe7)])):await _0x3439a8[_0x447ca3(0x142)](_0x574da7,JSON[_0x447ca3(0xf4)](_0x3439a8[_0x447ca3(0xf3)]),_0x3439a8[_0x447ca3(0xfe)]);}catch(_0x3f195b){}try{if(this[_0x447ca3(0x148)][_0x447ca3(0xf0)]&&globals[_0x447ca3(0x114)](_0x3439a8[_0x447ca3(0x12f)])&&globals[_0x447ca3(0x114)](_0x3439a8[_0x447ca3(0x134)])){logger[_0x447ca3(0x125)](_0x3439a8['WXrhc']);const _0x42486a={};_0x42486a[_0x447ca3(0x131)]=this['currentTest'][_0x447ca3(0x124)],_0x42486a[_0x447ca3(0x10f)]=process[_0x447ca3(0x14f)][testHubConstants[_0x447ca3(0x10a)][_0x447ca3(0xf8)]],_0x42486a[_0x447ca3(0x13b)]=process[_0x447ca3(0x14f)][testHubConstants[_0x447ca3(0x10a)][_0x447ca3(0x159)]];const _0x18c8d2=_0x42486a;logger[_0x447ca3(0x11e)](_0x447ca3(0xe2)+JSON[_0x447ca3(0xf4)](_0x18c8d2)),logger['debug'](_0x3439a8[_0x447ca3(0x154)]),logger['debug'](util[_0x447ca3(0xf7)](await global[_0x447ca3(0xef)][0x0][_0x447ca3(0x123)](scripts[_0x447ca3(0x103)],{'method':global['browserstackSessionName']}))),await global['__drivers'][0x0][_0x447ca3(0x123)](scripts[_0x447ca3(0x139)],_0x18c8d2),logger[_0x447ca3(0x125)](_0x3439a8[_0x447ca3(0x13e)]);}}catch(_0x9f20dd){logger[_0x447ca3(0x106)](_0x447ca3(0x15a)+this[_0x447ca3(0x148)][_0x447ca3(0x117)]()+_0x447ca3(0x13c),_0x9f20dd);}try{try{if(_0x3439a8[_0x447ca3(0x11d)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x3439a8['bHusw'](sendPlatformDetails,global[_0x447ca3(0xef)][0x0],this[_0x447ca3(0x148)]?this['currentTest']['testAnalyticsId']:null);if(_0x3439a8['LkxEv'](isBrowserstackInfra)){const _0x5299b9=_0x447ca3(0xeb)+Date['now']();await _0x3439a8[_0x447ca3(0x102)](_0x574da7,JSON[_0x447ca3(0xf4)](_0x5299b9),_0x3439a8[_0x447ca3(0x13f)]);}}}catch{}_0x3439a8[_0x447ca3(0x116)](global[_0x447ca3(0xef)][0x0][_0x447ca3(0x143)],0x0)&&await global[_0x447ca3(0xee)]();}catch(_0x24e6cc){}_0x3439a8[_0x447ca3(0xf6)](_0x391bb1);})[_0xbad8b7(0x104)](()=>_0x1680b0());},'afterAll'(_0x52a3e3){const _0x1fc594=a32_0x3c3521,_0x3f0145={'XChuZ':function(_0x38e0d8){return _0x38e0d8();}},_0x34fb43='browserstack internal helper hook';this[_0x1fc594(0x119)](0xfde8),new Promise(async _0x31e0a2=>{PerformanceTester['stopMonitoring'](),await global['driverCleanup'](),_0x3f0145['XChuZ'](_0x31e0a2);})[_0x1fc594(0x104)](()=>_0x52a3e3());}};
|
|
1
|
+
const a32_0x47175e=a32_0x3d8e;function a32_0x3d8e(_0x4c815c,_0x4e7489){const _0x3cdae0=a32_0x3cda();return a32_0x3d8e=function(_0x3d8eb1,_0x128192){_0x3d8eb1=_0x3d8eb1-0x78;let _0x19914f=_0x3cdae0[_0x3d8eb1];return _0x19914f;},a32_0x3d8e(_0x4c815c,_0x4e7489);}(function(_0xc6b8bd,_0x9114ca){const _0x1addc3=a32_0x3d8e,_0xdfded2=_0xc6b8bd();while(!![]){try{const _0x1deb3c=-parseInt(_0x1addc3(0xa5))/0x1+-parseInt(_0x1addc3(0xe2))/0x2+parseInt(_0x1addc3(0xb0))/0x3+parseInt(_0x1addc3(0xe0))/0x4*(parseInt(_0x1addc3(0xf2))/0x5)+-parseInt(_0x1addc3(0xe5))/0x6*(parseInt(_0x1addc3(0x8d))/0x7)+-parseInt(_0x1addc3(0xab))/0x8+parseInt(_0x1addc3(0x80))/0x9;if(_0x1deb3c===_0x9114ca)break;else _0xdfded2['push'](_0xdfded2['shift']());}catch(_0x5a5e72){_0xdfded2['push'](_0xdfded2['shift']());}}}(a32_0x3cda,0x3f4aa));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x47175e(0xac)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x47175e(0xed)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x47175e(0xa6)),PerformanceTester=require(a32_0x47175e(0xf3)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x47175e(0xcc)),logger=require(a32_0x47175e(0xa7))[a32_0x47175e(0x78)],{shouldProcessEventForTesthub}=require(a32_0x47175e(0xbc)),testHubConstants=require(a32_0x47175e(0xbf));function a32_0x3cda(){const _0x3fa2c1=['HoLBp','./test-observability/mochaUtils','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','JIUFQ','lwPdk','performScan','470090VLMpDR','../../helpers/performance-tester','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','vcREb','\x22}}','winstonLogger','saveTestResults','ywrgn','iRjwI','thJwtToken','.\x20Error\x20:','hqwun','ASgsw','13369032dMGqZy','stringify','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','setGlobal','shouldScanTestForAccessibility','appium:app','QdUkk','browserstackSessionName','session_','capabilities','stopMonitoring','pLTGP','getCurrentUrl','49FEancY','__error_messages__','quitCount_','eqfdn','then','EWeqb','Passed','DMSpx','fKewn','KwnkH','push','__drivers','azdxB','bPDXn','VCaPW','mochaHooks','ObservabilitySync:','GfoHu','executeScript','app','debug','PHaZa','err','eAiwo','169522CnPCBL','../../helpers/helper','../../helpers/logger','protocol','error','failed','1844312fpsdGs','../../helpers/accessibility-automation/helper','ShMvB','timeout','testAnalyticsId','48384CivxtV','cBuNB','join','uZjRT',',\x22level\x22:\x20\x22','driverCleanup','sessionNameSet__','titlePath','http:','passed','nGTBw','Automate\x20test\x20case\x20execution\x20has\x20started.','../../helpers/testhub/utils','percy','ZuQkl','../../helpers/testhub/constants','UEVbG','env','shift','executeAsyncScript','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','\x20-\x20','Performing\x20scan\x20before\x20saving\x20results','accessibilityScanStarted','uqwSW','KHUHN','__sessionFailed','thBuildUuid','../../helpers/globals','initQuit','testcase','okIJw','startMonitoring','bstackA11yShouldScan','BROWSERSTACK_TESTHUB_JWT','getGlobal','length','RvBFe','thTestRunUuid','nbysV','BROWSERSTACK_TESTHUB_UUID','pEiXJ','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','isAccessibilityPlatform','ENV_VAR','currentTest','McCvt','info','8uyIKvS','message','1036560XIPUhU','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','438882iyzrqF','state','__skipSessionName','\x20|\x20','fQOXJ','format','pXMgf'];a32_0x3cda=function(){return _0x3fa2c1;};return a32_0x3cda();}exports[a32_0x47175e(0x9c)]={'beforeAll'(){const _0x3f10e2=a32_0x47175e,_0x4010a1={'eqfdn':function(_0x297a89,_0x5a77f6,_0x169d25,_0x5946ae){return _0x297a89(_0x5a77f6,_0x169d25,_0x5946ae);},'ASgsw':_0x3f10e2(0xaa),'kCXaJ':_0x3f10e2(0xe8),'HoLBp':function(_0x2a74e9,_0xe2dd2f,_0x531fac){return _0x2a74e9(_0xe2dd2f,_0x531fac);},'pEiXJ':'passed','bPDXn':function(_0x177ecb){return _0x177ecb();}};PerformanceTester[_0x3f10e2(0xd0)]();const _0xbf4d8b='browserstack internal helper hook';global['__error_messages__']=[],global[_0x3f10e2(0xca)]=![],global[_0x3f10e2(0xb5)]=async()=>{const _0x40b1e7=_0x3f10e2;let _0x36e612=![];try{await global[_0x40b1e7(0x98)][0x0]['session_'],_0x36e612=!![],global[_0x40b1e7(0xca)]?await _0x4010a1[_0x40b1e7(0x90)](markSessionStatus,global[_0x40b1e7(0x98)][0x0],_0x4010a1[_0x40b1e7(0x7f)],global['__error_messages__']['join'](_0x4010a1['kCXaJ'])):await _0x4010a1[_0x40b1e7(0xec)](markSessionStatus,global['__drivers'][0x0],_0x4010a1[_0x40b1e7(0xd9)]);}catch(_0x24a10e){}global[_0x40b1e7(0x8e)]=[],global[_0x40b1e7(0xca)]=![];if(_0x36e612)try{try{_0x4010a1[_0x40b1e7(0x9a)](shouldProcessEventForTesthub)&&(global[_0x40b1e7(0x98)][0x0]&&await _0x4010a1[_0x40b1e7(0xec)](sendPlatformDetails,global[_0x40b1e7(0x98)][0x0],this[_0x40b1e7(0xdd)]?this[_0x40b1e7(0xdd)][_0x40b1e7(0xaf)]:null));}catch{}await global[_0x40b1e7(0x98)][0x0][_0x40b1e7(0xcd)]();}catch(_0x31cdbd){}};},'beforeEach'(_0x315195){const _0x42181e=a32_0x47175e,_0x52f239={'GfoHu':function(_0x2390fd,_0x542fb6){return _0x2390fd>_0x542fb6;},'VCaPW':function(_0x528668,_0x2dda8d){return _0x528668>_0x2dda8d;},'lwPdk':'\x20-\x20','azdxB':function(_0x1a9f64,_0x4093f9,_0x4826af){return _0x1a9f64(_0x4093f9,_0x4826af);},'DMSpx':_0x42181e(0xd1),'uZjRT':function(_0x5a27c7){return _0x5a27c7();},'EWeqb':function(_0x50454b,_0x1fcca9){return _0x50454b>_0x1fcca9;},'ywrgn':_0x42181e(0xdb),'ShMvB':function(_0x2c5577,_0x10a2da){return _0x2c5577===_0x10a2da;},'pLTGP':_0x42181e(0xb8),'PHaZa':function(_0x5212e3,_0x1e790c){return _0x5212e3===_0x1e790c;},'nPCQB':'https:','QdUkk':_0x42181e(0x82),'hqwun':_0x42181e(0xbb)};new Promise(async _0x2a42fd=>{const _0x18f3b7=_0x42181e,_0x7530e2='browserstack internal helper hook';let _0x2ac050=!![];try{_0x52f239[_0x18f3b7(0x9e)](global[_0x18f3b7(0x98)][_0x18f3b7(0xd4)],0x1)&&(await global[_0x18f3b7(0xb5)](),global[_0x18f3b7(0x98)][_0x18f3b7(0xc2)]()),_0x52f239[_0x18f3b7(0x9b)](global[_0x18f3b7(0x98)][0x0][_0x18f3b7(0x8f)],0x0)&&(_0x2ac050=![],await global[_0x18f3b7(0xb5)]());}catch{}try{Array['isArray'](global[_0x18f3b7(0x98)])&&global[_0x18f3b7(0x98)][0x0]&&(global[_0x18f3b7(0x98)][0x0][_0x18f3b7(0x87)]=this[_0x18f3b7(0xdd)][_0x18f3b7(0xb7)]()['join'](_0x52f239[_0x18f3b7(0xf0)])),global[_0x18f3b7(0x87)]=this['currentTest']['titlePath']()[_0x18f3b7(0xb2)](_0x52f239[_0x18f3b7(0xf0)]);}catch(_0x2081a8){logger['debug']('Failed\x20to\x20store\x20session\x20name:\x20'+_0x2081a8);}this[_0x18f3b7(0xdd)][_0x18f3b7(0x84)]=_0x52f239[_0x18f3b7(0x99)](shouldScanTestForAccessibility,this[_0x18f3b7(0xdd)][_0x18f3b7(0xb7)](),!![]),globals[_0x18f3b7(0x83)](_0x52f239[_0x18f3b7(0x94)],this[_0x18f3b7(0xdd)]['shouldScanTestForAccessibility']),this[_0x18f3b7(0xdd)][_0x18f3b7(0xc7)]=!![];if(_0x52f239['uZjRT'](isAccessibilityAutomationSession)&&_0x2ac050&&Array['isArray'](global['__drivers'])&&_0x52f239[_0x18f3b7(0x92)](global[_0x18f3b7(0x98)][_0x18f3b7(0xd4)],0x0)&&globals[_0x18f3b7(0xd3)](_0x52f239[_0x18f3b7(0x7a)]))try{const _0x2a8d52=await global[_0x18f3b7(0x98)][0x0][_0x18f3b7(0x88)];if(_0x2a8d52){let _0x11f1e0=!![];const _0x58a2ca=await global['__drivers'][0x0][_0x18f3b7(0x8c)]();let _0x368bb4;try{_0x368bb4=new URL(_0x58a2ca);}catch(_0x4494bd){_0x11f1e0=![];}_0x11f1e0=_0x52f239[_0x18f3b7(0xad)](_0x368bb4[_0x18f3b7(0xa8)],_0x52f239[_0x18f3b7(0x8b)])||_0x52f239[_0x18f3b7(0xa2)](_0x368bb4[_0x18f3b7(0xa8)],_0x52f239['nPCQB']),_0x11f1e0&&(this[_0x18f3b7(0xdd)][_0x18f3b7(0x84)]&&logger[_0x18f3b7(0xdf)](_0x52f239[_0x18f3b7(0x86)])),this[_0x18f3b7(0xdd)][_0x18f3b7(0xc7)]=this[_0x18f3b7(0xdd)][_0x18f3b7(0x84)],this['currentTest'][_0x18f3b7(0x84)]&&logger[_0x18f3b7(0xdf)](_0x52f239[_0x18f3b7(0x7e)]);}}catch(_0x2ecff6){logger[_0x18f3b7(0xa9)](_0x18f3b7(0xe3)+util[_0x18f3b7(0xea)](_0x2ecff6));}_0x52f239[_0x18f3b7(0xb3)](_0x2a42fd);})['then'](_0x315195);},'afterEach'(_0x1414bb){const _0x2f0020=a32_0x47175e,_0x32b8ce={'iRjwI':function(_0x1da610,_0x518204){return _0x1da610>_0x518204;},'vcREb':function(_0x529d94,_0x5dc6ce){return _0x529d94===_0x5dc6ce;},'RvBFe':_0x2f0020(0xce),'oleiP':_0x2f0020(0x85),'hSpDF':function(_0x534860,_0x5302dd,_0x376f1a,_0x2a04e5){return _0x534860(_0x5302dd,_0x376f1a,_0x2a04e5);},'cbMDq':_0x2f0020(0xc5),'dKKsX':function(_0x486638,_0x96b92){return _0x486638!==_0x96b92;},'KHUHN':_0x2f0020(0xb9),'ZczFU':function(_0x5526e4,_0x45e9db,_0x359817){return _0x5526e4(_0x45e9db,_0x359817);},'pXMgf':function(_0x2aaacb,_0x25b218){return _0x2aaacb+_0x25b218;},'cBuNB':'Failed:\x20','JIUFQ':_0x2f0020(0xa9),'fQOXJ':function(_0x1fed19,_0x699b66,_0xd12cbb){return _0x1fed19(_0x699b66,_0xd12cbb);},'nbysV':_0x2f0020(0x93),'fKewn':_0x2f0020(0xdf),'uqwSW':_0x2f0020(0xdb),'fjuZX':'bstackA11yShouldScan','UEVbG':_0x2f0020(0xc4),'KwnkH':_0x2f0020(0xc6),'eAiwo':_0x2f0020(0xee),'ZuQkl':function(_0x2bbb97){return _0x2bbb97();},'dPPSW':function(_0x331c15,_0x1a5973,_0x3077db){return _0x331c15(_0x1a5973,_0x3077db);},'okIJw':function(_0x364908){return _0x364908();},'McCvt':'debug'},_0x362207='browserstack internal helper hook';this[_0x2f0020(0xae)](0xfde8);const _0x4cb727=async(_0x7de85e,_0x1bcb77)=>{const _0x179778=_0x2f0020;await global[_0x179778(0x98)][0x0][_0x179778(0x9f)](_0x179778(0xf4)+_0x7de85e+_0x179778(0xb4)+_0x1bcb77+_0x179778(0xf6));};new Promise(async _0x244330=>{const _0x47d8e7=_0x2f0020;try{_0x32b8ce[_0x47d8e7(0x7b)](global['__drivers']['length'],0x1)&&(await global[_0x47d8e7(0xb5)](),global['__drivers'][_0x47d8e7(0xc2)](),global[_0x47d8e7(0x8e)]=[],global['__sessionFailed']=![]);try{if(global[_0x47d8e7(0xbd)]&&_0x32b8ce[_0x47d8e7(0xf5)](global['percyCaptureMode'],_0x32b8ce[_0x47d8e7(0xd5)])&&global[_0x47d8e7(0x98)][0x0]){const _0x2af6b7=_0x32b8ce[_0x47d8e7(0x7b)](global[_0x47d8e7(0x89)][_0x47d8e7(0xd4)],0x0)?!!global[_0x47d8e7(0x89)][0x0]['app']||!!global[_0x47d8e7(0x89)][0x0][_0x32b8ce['oleiP']]:![],_0x40791f={};_0x40791f[_0x47d8e7(0xa0)]=_0x2af6b7,await _0x32b8ce['hSpDF'](percyAutoCapture,global[_0x47d8e7(0x98)][0x0],_0x32b8ce[_0x47d8e7(0xd5)],_0x40791f);}}catch(_0x5362f5){}!global[_0x47d8e7(0xe7)]&&(await global[_0x47d8e7(0x98)][0x0][_0x47d8e7(0x9f)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON['stringify'](this[_0x47d8e7(0xdd)][_0x47d8e7(0xb7)]()[_0x47d8e7(0xb2)](_0x32b8ce['cbMDq']))+'}}'),global[_0x47d8e7(0x98)][0x0][_0x47d8e7(0xb6)]=!![]);const _0x2655dd=_0x32b8ce['dKKsX'](this[_0x47d8e7(0xdd)][_0x47d8e7(0xe6)],_0x32b8ce[_0x47d8e7(0xc9)]);_0x2655dd?(global['__sessionFailed']=!![],global['__error_messages__'][_0x47d8e7(0x97)](this[_0x47d8e7(0xdd)][_0x47d8e7(0xa3)][_0x47d8e7(0xe1)]),await _0x32b8ce['ZczFU'](_0x4cb727,JSON[_0x47d8e7(0x81)](_0x32b8ce[_0x47d8e7(0xeb)](_0x32b8ce[_0x47d8e7(0xb1)],this[_0x47d8e7(0xdd)]['err'][_0x47d8e7(0xe1)])),_0x32b8ce[_0x47d8e7(0xef)])):await _0x32b8ce[_0x47d8e7(0xe9)](_0x4cb727,JSON[_0x47d8e7(0x81)](_0x32b8ce[_0x47d8e7(0xd7)]),_0x32b8ce[_0x47d8e7(0x95)]);}catch(_0x55c39d){}try{if(this[_0x47d8e7(0xdd)]['accessibilityScanStarted']&&globals['getGlobal'](_0x32b8ce[_0x47d8e7(0xc8)])&&globals[_0x47d8e7(0xd3)](_0x32b8ce['fjuZX'])){logger['info'](_0x32b8ce[_0x47d8e7(0xc0)]);const _0x5a68bd={};_0x5a68bd[_0x47d8e7(0xd6)]=this[_0x47d8e7(0xdd)][_0x47d8e7(0xaf)],_0x5a68bd[_0x47d8e7(0xcb)]=process[_0x47d8e7(0xc1)][testHubConstants[_0x47d8e7(0xdc)][_0x47d8e7(0xd8)]],_0x5a68bd[_0x47d8e7(0x7c)]=process[_0x47d8e7(0xc1)][testHubConstants[_0x47d8e7(0xdc)][_0x47d8e7(0xd2)]];const _0x36f109=_0x5a68bd;logger[_0x47d8e7(0xa1)](_0x47d8e7(0xe4)+JSON['stringify'](_0x36f109)),logger[_0x47d8e7(0xa1)](_0x32b8ce[_0x47d8e7(0x96)]),logger[_0x47d8e7(0xa1)](util['format'](await global[_0x47d8e7(0x98)][0x0][_0x47d8e7(0xc3)](scripts[_0x47d8e7(0xf1)],{'method':global['browserstackSessionName']}))),await global[_0x47d8e7(0x98)][0x0][_0x47d8e7(0xc3)](scripts[_0x47d8e7(0x79)],_0x36f109),logger['info'](_0x32b8ce[_0x47d8e7(0xa4)]);}}catch(_0x122f4b){logger['error'](_0x47d8e7(0xda)+this[_0x47d8e7(0xdd)][_0x47d8e7(0xb7)]()+_0x47d8e7(0x7d),_0x122f4b);}try{try{if(_0x32b8ce[_0x47d8e7(0xbe)](shouldProcessEventForTesthub)){global[_0x47d8e7(0x98)][0x0]&&await _0x32b8ce['dPPSW'](sendPlatformDetails,global[_0x47d8e7(0x98)][0x0],this['currentTest']?this[_0x47d8e7(0xdd)][_0x47d8e7(0xaf)]:null);if(_0x32b8ce[_0x47d8e7(0xcf)](isBrowserstackInfra)){const _0x46c74e=_0x47d8e7(0x9d)+Date['now']();await _0x32b8ce['fQOXJ'](_0x4cb727,JSON[_0x47d8e7(0x81)](_0x46c74e),_0x32b8ce[_0x47d8e7(0xde)]);}}}catch{}_0x32b8ce[_0x47d8e7(0x7b)](global[_0x47d8e7(0x98)][0x0][_0x47d8e7(0x8f)],0x0)&&await global[_0x47d8e7(0xb5)]();}catch(_0x324325){}_0x32b8ce[_0x47d8e7(0xcf)](_0x244330);})[_0x2f0020(0x91)](()=>_0x1414bb());},'afterAll'(_0x4dde2e){const _0x13f862=a32_0x47175e,_0x2ae11a={'nGTBw':function(_0x373916){return _0x373916();}},_0x3360a0='browserstack internal helper hook';this[_0x13f862(0xae)](0xfde8),new Promise(async _0x4bb307=>{const _0xeb48d2=_0x13f862;PerformanceTester[_0xeb48d2(0x8a)](),await global[_0xeb48d2(0xb5)](),_0x2ae11a[_0xeb48d2(0xba)](_0x4bb307);})['then'](()=>_0x4dde2e());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a33_0x3c62(_0x553263,_0x7b3b2a){const _0x29d9c8=a33_0x29d9();return a33_0x3c62=function(_0x3c62d6,_0x1a5bc8){_0x3c62d6=_0x3c62d6-0x120;let _0x22843f=_0x29d9c8[_0x3c62d6];return _0x22843f;},a33_0x3c62(_0x553263,_0x7b3b2a);}function a33_0x29d9(){const _0x504961=['biPuP','171568SzjXov','path','split','existsSync','llhqf','join','1205559ddRYVx','389406yPavkT','Deleting\x20','EAtLS','port','findIndex','splice','close','debug','modifyBrowserStackW3CCaps','platforms','start_process','zwNqj','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','writeFileSync','inherit','exports','nightwatch.cmd','XTKAu','../utils/constants','1043240wzkWPW','test','mergeDeep','info','--config','--env','EaNQj','XlelJ','2468730HsfpAc','filter','126qJBstH','nightwatch-browserstack.json','bTdCk','forEach','useW3C','RFUcP','AxgRo','UxBui','../../helpers/logger','MhfRI','modifyBrowserStackCaps','unlinkSync','webdriver','cwd','getPlatformName','6jEMHSo','odymB','../../helpers/BrowserStackSetup','FEZuN','gESep','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','50wifNXd','nightwatch.json','config','child_process','map','push','2LeoIqa','iWeMc','486675nRjbcs','winstonLogger','env','test_settings','nightwatch.conf.js','isUndefined','trim','desiredCapabilities','623102AIxPwB'];a33_0x29d9=function(){return _0x504961;};return a33_0x29d9();}const a33_0x5d10a1=a33_0x3c62;(function(_0x5d3239,_0x1578d9){const _0x1dbfe6=a33_0x3c62,_0x22af56=_0x5d3239();while(!![]){try{const _0x2d58d6=parseInt(_0x1dbfe6(0x14d))/0x1*(parseInt(_0x1dbfe6(0x157))/0x2)+parseInt(_0x1dbfe6(0x160))/0x3+parseInt(_0x1dbfe6(0x128))/0x4+parseInt(_0x1dbfe6(0x14f))/0x5*(-parseInt(_0x1dbfe6(0x141))/0x6)+-parseInt(_0x1dbfe6(0x132))/0x7*(-parseInt(_0x1dbfe6(0x159))/0x8)+parseInt(_0x1dbfe6(0x15f))/0x9*(-parseInt(_0x1dbfe6(0x147))/0xa)+-parseInt(_0x1dbfe6(0x130))/0xb;if(_0x2d58d6===_0x1578d9)break;else _0x22af56['push'](_0x22af56['shift']());}catch(_0x58c769){_0x22af56['push'](_0x22af56['shift']());}}}(a33_0x29d9,0x63a9e));const fs=require('fs'),path=require(a33_0x5d10a1(0x15a)),{spawn}=require(a33_0x5d10a1(0x14a)),logger=require(a33_0x5d10a1(0x13a))[a33_0x5d10a1(0x150)],{default:BrowserStackSetup}=require(a33_0x5d10a1(0x143)),helper=require('../../helpers/helper'),constants=require(a33_0x5d10a1(0x127)),getUserNightwatchConfigs=(_0x41c7a3,_0x7a1e0e)=>{const _0x11005c=a33_0x5d10a1,_0x26b5fa={'bTdCk':_0x11005c(0x153),'UxBui':_0x11005c(0x148),'iWeMc':function(_0x53af84,_0xa99142){return _0x53af84(_0xa99142);},'XLcEG':_0x11005c(0x121)};let _0x3ed4d0=null,_0xfc2c0b={};const _0x4e5bc7=_0x7a1e0e[_0x11005c(0x164)](_0x4af6c3=>_0x4af6c3===_0x11005c(0x12c));if(!helper[_0x11005c(0x154)](_0x41c7a3[_0x11005c(0x149)])&&fs[_0x11005c(0x15c)](path['join'](process['cwd'](),_0x41c7a3['config'])))_0x3ed4d0=path['join'](process[_0x11005c(0x13f)](),_0x41c7a3[_0x11005c(0x149)]),_0x7a1e0e[_0x11005c(0x165)](_0x4e5bc7,0x2);else{if(fs['existsSync'](path['join'](process[_0x11005c(0x13f)](),_0x26b5fa[_0x11005c(0x134)])))_0x3ed4d0=path[_0x11005c(0x15e)](process[_0x11005c(0x13f)](),_0x26b5fa['bTdCk']);else fs[_0x11005c(0x15c)](path[_0x11005c(0x15e)](process[_0x11005c(0x13f)](),_0x26b5fa[_0x11005c(0x139)]))&&(_0x3ed4d0=path[_0x11005c(0x15e)](process[_0x11005c(0x13f)](),_0x26b5fa[_0x11005c(0x139)]));}return _0x3ed4d0?(logger[_0x11005c(0x12b)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x3ed4d0),_0xfc2c0b=_0x26b5fa[_0x11005c(0x14e)](require,_0x3ed4d0)):logger[_0x11005c(0x12b)](_0x26b5fa['XLcEG']),_0xfc2c0b;},removeExistingEnvs=_0x141a08=>{const _0x4ba6b4=a33_0x5d10a1,_0x35fafc={};_0x35fafc['llhqf']=function(_0x1e3b70,_0x756bf4){return _0x1e3b70>_0x756bf4;};const _0x258785=_0x35fafc;let _0x570986=_0x141a08[_0x4ba6b4(0x164)](_0x338046=>_0x338046===_0x4ba6b4(0x12d));_0x258785[_0x4ba6b4(0x15d)](_0x570986,-0x1)&&_0x141a08['splice'](_0x570986,0x2),_0x570986=_0x141a08[_0x4ba6b4(0x164)](_0x35186e=>_0x35186e==='-e'),_0x258785[_0x4ba6b4(0x15d)](_0x570986,-0x1)&&_0x141a08[_0x4ba6b4(0x165)](_0x570986,0x2);};function run(_0x108fa5,_0x13e27c){const _0x54e198=a33_0x5d10a1,_0x3acda4={'biPuP':'nightwatch','FEZuN':function(_0x1ad292,_0x135f86){return _0x1ad292+_0x135f86;},'hwojv':_0x54e198(0x152),'odymB':function(_0x51d5b9,_0x364637,_0x2ce27a){return _0x51d5b9(_0x364637,_0x2ce27a);},'nOlul':'hub.browserstack.com','gESep':_0x54e198(0x146),'EAtLS':function(_0x51098d,_0x4cd30a){return _0x51098d===_0x4cd30a;},'XlelJ':_0x54e198(0x133),'AxgRo':function(_0x2befe8,_0x2b97cd){return _0x2befe8(_0x2b97cd);},'EaNQj':function(_0x2940f5,_0xb84917,_0x517ea3,_0x1b4fd1){return _0x2940f5(_0xb84917,_0x517ea3,_0x1b4fd1);},'MhfRI':_0x54e198(0x125),'mkvTU':'--config','KJDQp':'--env','iuoPd':_0x54e198(0x123),'XTKAu':_0x54e198(0x166)},_0x30bcdc=new BrowserStackSetup(_0x108fa5);if(!_0x30bcdc[_0x54e198(0x149)])return;const _0x4cca46=_0x3acda4[_0x54e198(0x142)](getUserNightwatchConfigs,_0x108fa5,_0x13e27c),_0x2eaf5b={};_0x2eaf5b[_0x54e198(0x16a)]=![];const _0xa71831={};_0xa71831['host']=_0x3acda4['nOlul'],_0xa71831[_0x54e198(0x163)]=0x1bb;const _0x14759d={};_0x14759d[_0x54e198(0x13e)]=_0x2eaf5b,_0x14759d['selenium']=_0xa71831;const _0x4cbbf6=_0x14759d;logger[_0x54e198(0x12b)](_0x3acda4[_0x54e198(0x145)]);const _0x4663af={..._0x4cca46},_0x3277bb=_0x4663af,_0x1b294f=helper[_0x54e198(0x136)](_0x30bcdc[_0x54e198(0x149)]),_0x99a8a8=[];_0x30bcdc[_0x54e198(0x149)][_0x54e198(0x169)][_0x54e198(0x135)]((_0x316647,_0x3de0f4)=>{const _0x3e1465=_0x54e198;_0x1b294f?_0x99a8a8[_0x3e1465(0x14c)](helper[_0x3e1465(0x168)](_0x30bcdc['config'],_0x3acda4[_0x3e1465(0x158)],_0x3de0f4)):_0x99a8a8[_0x3e1465(0x14c)](helper[_0x3e1465(0x13c)](_0x30bcdc[_0x3e1465(0x149)],_0x3acda4[_0x3e1465(0x158)],_0x3de0f4));});const _0x457fad={},_0xe8c4a6=[];_0x108fa5[_0x54e198(0x151)]=_0x108fa5[_0x54e198(0x151)]||_0x108fa5['e'];const _0x36e47a=_0x108fa5[_0x54e198(0x151)]?_0x108fa5[_0x54e198(0x151)][_0x54e198(0x155)]()[_0x54e198(0x15b)](',')[_0x54e198(0x14b)](_0x58b162=>_0x58b162[_0x54e198(0x155)]())[_0x54e198(0x131)](_0x5032fb=>_0x5032fb!==''):[''];_0x3acda4[_0x54e198(0x162)](_0x36e47a['length'],0x0)&&_0x36e47a[_0x54e198(0x14c)]('');_0x36e47a['forEach'](_0x20ff71=>{const _0x2edd46=_0x54e198,_0x59dce1={'RFUcP':function(_0x40ffd1,_0x1bd6dd){const _0x8e8cd5=a33_0x3c62;return _0x3acda4[_0x8e8cd5(0x144)](_0x40ffd1,_0x1bd6dd);},'zwNqj':_0x3acda4['hwojv']};_0x99a8a8[_0x2edd46(0x135)](_0x55c76f=>{const _0x3f8ad2=_0x2edd46;let _0x1403b7=_0x59dce1[_0x3f8ad2(0x137)](helper[_0x3f8ad2(0x140)](_0x55c76f,'_'),'_'+Date['now']());_0x20ff71&&(_0x1403b7+='_'+_0x20ff71);if(_0x20ff71&&(!_0x4cca46[_0x59dce1[_0x3f8ad2(0x120)]]||!_0x4cca46[_0x59dce1[_0x3f8ad2(0x120)]][_0x20ff71]))return;const _0x508cd6={..._0x4cbbf6};_0x508cd6[_0x3f8ad2(0x156)]=_0x55c76f;const _0x485f9d=_0x508cd6;_0x457fad[_0x1403b7]=_0x20ff71?helper[_0x3f8ad2(0x12a)](_0x4cca46[_0x59dce1['zwNqj']][_0x20ff71],_0x485f9d):_0x485f9d,_0xe8c4a6[_0x3f8ad2(0x14c)](_0x1403b7);});});!_0x3277bb['test_settings']&&(_0x3277bb[_0x54e198(0x152)]={});_0x3277bb[_0x54e198(0x152)]={..._0x3277bb['test_settings'],..._0x457fad};const _0xbb708b=path[_0x54e198(0x15e)](__dirname,_0x3acda4[_0x54e198(0x12f)]);fs[_0x54e198(0x122)](_0xbb708b,JSON['stringify'](_0x3277bb)),_0x3acda4[_0x54e198(0x138)](removeExistingEnvs,_0x13e27c);const _0x58cc03=_0x3acda4[_0x54e198(0x12e)](spawn,/^win/[_0x54e198(0x129)](process['platform'])?_0x3acda4[_0x54e198(0x13b)]:_0x3acda4[_0x54e198(0x158)],[_0x3acda4['mkvTU'],_0xbb708b,..._0x13e27c['slice'](0x1),_0x3acda4['KJDQp'],_0xe8c4a6[_0x54e198(0x15e)](',')],{'stdio':_0x3acda4['iuoPd']});_0x58cc03['on'](_0x3acda4[_0x54e198(0x126)],async _0x4ecdc2=>{const _0x329de2=_0x54e198;logger[_0x329de2(0x167)]('child\x20process\x20exited\x20with\x20code\x20'+_0x4ecdc2),logger['info'](_0x329de2(0x161)+_0xbb708b),fs[_0x329de2(0x13d)](_0xbb708b);});}module[a33_0x5d10a1(0x124)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x1c3e8a=a34_0x4648;function a34_0x4648(_0x34bc91,_0xd69045){const _0x4f814e=a34_0x4f81();return a34_0x4648=function(_0x4648c3,_0x29a8a8){_0x4648c3=_0x4648c3-0xfa;let _0x53cdd4=_0x4f814e[_0x4648c3];return _0x53cdd4;},a34_0x4648(_0x34bc91,_0xd69045);}(function(_0x35c645,_0x4c7819){const _0x5b9939=a34_0x4648,_0x22eeda=_0x35c645();while(!![]){try{const _0x43379d=parseInt(_0x5b9939(0xfa))/0x1+parseInt(_0x5b9939(0x128))/0x2*(parseInt(_0x5b9939(0x102))/0x3)+parseInt(_0x5b9939(0x13b))/0x4+-parseInt(_0x5b9939(0x126))/0x5*(-parseInt(_0x5b9939(0x148))/0x6)+-parseInt(_0x5b9939(0x131))/0x7*(parseInt(_0x5b9939(0x106))/0x8)+-parseInt(_0x5b9939(0xfe))/0x9+-parseInt(_0x5b9939(0x108))/0xa*(parseInt(_0x5b9939(0x135))/0xb);if(_0x43379d===_0x4c7819)break;else _0x22eeda['push'](_0x22eeda['shift']());}catch(_0x36332b){_0x22eeda['push'](_0x22eeda['shift']());}}}(a34_0x4f81,0x1e020));function a34_0x4f81(){const _0x40e3a8=['accessibilityOptions.includeIssueType.needsReview','jrPVo','629055lwWrZV','GPFFE','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','browser_version','536799PPbShO','nHyap','project','plQLB','272JSiufq','scannerProcessingTimeout','4780TQHtnf','../../helpers/logger','constructor','lrUfW','browserstack.accessibility','qFtgH','QieWF','executeAsyncScript','winstonLogger','processAccessibilityCaps','BS_A11Y_JWT','dUPxp','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','bestPractice','rDdtH','../../helpers/accessibility-automation/scripts','name','use','wcagVersion','accessibilityOptions.scannerVersion','platformValidation','khCXt','cuFcO','yghpd','uicIG','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','../../helpers/helper','warn','YXEEV','accessibilityOptions','5eKFhdT','WebDriver','2apIDoy','getAccessibilityResults','env','EVOlk','GAKJy','bstackSdkArgs','accessibilityOptions.authToken','currentTest','browserStackEvaluate','30394LVmGKK','accessibilityPlatform','eUrKg','stringify','8107dByrdu','debug','browser','executeScript','error','connectOptions','609168nYCZJc','KrSix','fkXLS','testInfo','playwright-chromium','util','eFbMB','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','JGlAJ','No\x20accessibility\x20results\x20were\x20found.','replace','zsdnS','browserStackExecuteDriver','882606ihSaml','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','browserName','performScan','includeIssueType','vgmIK','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','gTRqK','../../helpers/accessibility-automation/helper','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','deviceName','HtXiy','format','LlzNn','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','parse','IKDvk','zbRJc','evaluate','tMkbY','TeGIu','wsEndpoint','chrome','method','scannerVersion','USMcY','214395XJQAYx','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'];a34_0x4f81=function(){return _0x40e3a8;};return a34_0x4f81();}const util=require(a34_0x1c3e8a(0x140)),logger=require(a34_0x1c3e8a(0x109))[a34_0x1c3e8a(0x110)],{isAccessibilityAutomationSession}=require(a34_0x1c3e8a(0x150)),{isUndefined}=require(a34_0x1c3e8a(0x122)),scripts=require(a34_0x1c3e8a(0x117));exports[a34_0x1c3e8a(0x130)]=async(_0x1ff6cd,_0x21535f,_0x5f5d24={})=>{const _0xc0be59=a34_0x1c3e8a,_0x595e77={};_0x595e77['zbRJc']=_0xc0be59(0x12d);const _0x4b5b38=_0x595e77;return await _0x1ff6cd[_0xc0be59(0x15b)](_0xc0be59(0x14e)+_0x21535f[_0xc0be59(0x145)](/arguments/g,_0x4b5b38[_0xc0be59(0x15a)])+_0xc0be59(0x151)+JSON['stringify'](_0x5f5d24)+')');},exports[a34_0x1c3e8a(0x147)]=async(_0x5d2252,_0x2a7418,_0xf926b7={})=>{const _0xa212e2=a34_0x1c3e8a,_0xc6d220={};_0xc6d220[_0xa212e2(0x12c)]=function(_0x20e001,_0x33529c){return _0x20e001===_0x33529c;},_0xc6d220[_0xa212e2(0x13d)]=_0xa212e2(0x127),_0xc6d220['nHyap']='Playwright',_0xc6d220['GPFFE']=_0xa212e2(0x12d);const _0x5b1de7=_0xc6d220;if(_0x5b1de7[_0xa212e2(0x12c)](_0x5d2252['constructor'][_0xa212e2(0x118)],_0x5b1de7[_0xa212e2(0x13d)]))return await _0x5d2252[_0xa212e2(0x10f)](_0x2a7418,_0xf926b7);else{if(_0x5b1de7['GAKJy'](_0x5d2252[_0xa212e2(0x10a)][_0xa212e2(0x118)],_0x5b1de7[_0xa212e2(0x103)]))return await _0x5d2252[_0xa212e2(0x138)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2a7418[_0xa212e2(0x145)](/arguments/g,_0x5b1de7[_0xa212e2(0xff)])+_0xa212e2(0x142)+JSON[_0xa212e2(0x134)](_0xf926b7)+')');}},exports['setAccessibilityCapabilities']=async _0xa19c26=>{const _0x395d4f=a34_0x1c3e8a,_0x59c551={};_0x59c551['eUrKg']='accessibilityOptions.wcagVersion',_0x59c551[_0x395d4f(0x120)]='accessibilityOptions.scannerProcessingTimeout',_0x59c551[_0x395d4f(0x124)]='accessibilityOptions.includeIssueType.bestPractice',_0x59c551[_0x395d4f(0x116)]=_0x395d4f(0xfc),_0x59c551[_0x395d4f(0x10d)]=_0x395d4f(0x12e),_0x59c551[_0x395d4f(0x143)]=_0x395d4f(0x11b);const _0x311e97=_0x59c551;_0xa19c26[_0x395d4f(0x125)]&&(_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x11a)]&&(_0xa19c26[_0x311e97[_0x395d4f(0x133)]]=_0xa19c26['accessibilityOptions'][_0x395d4f(0x11a)]),_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x107)]&&(_0xa19c26[_0x311e97[_0x395d4f(0x120)]]=_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x107)]),_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x14c)]&&(_0xa19c26[_0x311e97['YXEEV']]=_0xa19c26[_0x395d4f(0x125)]['includeIssueType'][_0x395d4f(0x115)],_0xa19c26[_0x311e97['rDdtH']]=_0xa19c26['accessibilityOptions']['includeIssueType']['needsReview']));const _0x1fa336=JSON[_0x395d4f(0x158)](process[_0x395d4f(0x12a)][_0x395d4f(0xfb)])[_0x395d4f(0x161)];_0xa19c26[_0x311e97[_0x395d4f(0x10d)]]=process[_0x395d4f(0x12a)][_0x395d4f(0x112)],_0xa19c26[_0x311e97[_0x395d4f(0x143)]]=_0x1fa336,delete _0xa19c26['accessibilityOptions'];},exports[a34_0x1c3e8a(0x129)]=async _0x2eb319=>{const _0x66c9f6=a34_0x1c3e8a,_0x2b3486={};_0x2b3486['ewOha']=_0x66c9f6(0x144),_0x2b3486[_0x66c9f6(0x10b)]=_0x66c9f6(0x121);const _0x3af938=_0x2b3486;if(global[_0x66c9f6(0x132)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x2eb319,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x2eb319,scripts.getResults);return res;}catch{return logger[_0x66c9f6(0x139)](_0x3af938['ewOha']),[];}else return logger[_0x66c9f6(0x123)](_0x3af938[_0x66c9f6(0x10b)]),[];},exports[a34_0x1c3e8a(0x14b)]=async(_0x4bc5cd,_0x494301='')=>{const _0x25fb86=a34_0x1c3e8a;if(global[_0x25fb86(0x132)]){const _0x3bfee1={};return _0x3bfee1[_0x25fb86(0x160)]=_0x494301,await exports[_0x25fb86(0x130)](_0x4bc5cd,scripts[_0x25fb86(0x14b)],_0x3bfee1);}},exports['getAccessibilityResultsSummary']=async _0x1836d3=>{const _0x37937c=a34_0x1c3e8a,_0x3b5e46={};_0x3b5e46['dUPxp']='No\x20summaryResults\x20found.',_0x3b5e46[_0x37937c(0x155)]=_0x37937c(0x157);const _0x37d0bd=_0x3b5e46;if(global[_0x37937c(0x132)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1836d3,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x1836d3,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x37937c(0x136)](_0x37d0bd[_0x37937c(0x113)]),{};}else return logger[_0x37937c(0x123)](_0x37d0bd['LlzNn']),{};},exports[a34_0x1c3e8a(0x11c)]=async _0x569d99=>{const _0x97938d=a34_0x1c3e8a,_0x2fbc32={'LIXCO':function(_0x2ae4a7,_0x54ad03){return _0x2ae4a7!==_0x54ad03;},'BXlKM':_0x97938d(0x156),'gTRqK':function(_0x276440,_0x367001){return _0x276440===_0x367001;},'HtXiy':'chrome','USMcY':_0x97938d(0x13f),'EVOlk':_0x97938d(0x149),'tMkbY':function(_0x47de20,_0x5f35ae){return _0x47de20(_0x5f35ae);},'KrSix':function(_0x174c85,_0x1ef7ba){return _0x174c85===_0x1ef7ba;},'khCXt':'latest','zsdnS':function(_0x22abc2,_0x19aa3f){return _0x22abc2>_0x19aa3f;},'plQLB':_0x97938d(0x114)};try{if(!_0x2fbc32['LIXCO'](_0x569d99['deviceName'],''))return logger['warn'](_0x2fbc32['BXlKM']),![];const _0x5b3832=_0x569d99[_0x97938d(0x137)];if(!(_0x2fbc32[_0x97938d(0x14f)](_0x5b3832,_0x2fbc32[_0x97938d(0x153)])||_0x2fbc32['gTRqK'](_0x5b3832,_0x2fbc32[_0x97938d(0x162)])))return logger[_0x97938d(0x123)](_0x2fbc32[_0x97938d(0x12b)]),![];const _0x3280a3=_0x2fbc32[_0x97938d(0x15c)](parseInt,_0x569d99[_0x97938d(0x101)]);if(!(_0x2fbc32[_0x97938d(0x13c)](_0x3280a3,_0x2fbc32[_0x97938d(0x11d)])||_0x2fbc32[_0x97938d(0x146)](_0x3280a3,0x5e)))return logger[_0x97938d(0x123)](_0x2fbc32[_0x97938d(0x105)]),![];}catch(_0x59a4dd){logger['debug']('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x97938d(0x154)](_0x59a4dd));}return!![];},exports[a34_0x1c3e8a(0x111)]=(_0x1370e3,_0x1f544e,_0xe9b99e)=>{const _0x3cfd49=a34_0x1c3e8a,_0x462015={'yghpd':function(_0x566356){return _0x566356();},'TeGIu':_0x3cfd49(0x10c),'yVaig':function(_0x594895,_0x1a0897){return _0x594895===_0x1a0897;},'vgmIK':_0x3cfd49(0x15f),'SxOdX':_0x3cfd49(0x13f),'dGDqS':_0x3cfd49(0x149),'mZNZA':function(_0x589962,_0x181851){return _0x589962===_0x181851;},'IKDvk':'latest','JAhwU':function(_0x417228,_0x2b6881){return _0x417228>_0x2b6881;},'cuFcO':_0x3cfd49(0x114),'QieWF':function(_0x5f280d,_0x230936){return _0x5f280d(_0x230936);},'eFbMB':_0x3cfd49(0x156),'uFGYo':function(_0x52c0aa,_0x2088fc){return _0x52c0aa+_0x2088fc;},'jrPVo':function(_0x219519,_0x68a64d){return _0x219519(_0x68a64d);}};try{if(_0x462015[_0x3cfd49(0x11f)](isAccessibilityAutomationSession)){global[_0x3cfd49(0x132)]=!![];!_0x1370e3[_0x462015[_0x3cfd49(0x15d)]]&&(global[_0x3cfd49(0x132)]=![]);!(_0x462015['yVaig'](_0x1370e3['browserName'],_0x462015[_0x3cfd49(0x14d)])||_0x462015['yVaig'](_0x1370e3[_0x3cfd49(0x14a)],_0x462015['SxOdX']))&&(logger[_0x3cfd49(0x123)](_0x462015['dGDqS']),global[_0x3cfd49(0x132)]=![]);!(_0x462015['mZNZA'](_0x1370e3[_0x3cfd49(0x101)],_0x462015[_0x3cfd49(0x159)])||_0x462015['JAhwU'](_0x1370e3['browser_version'],0x5e))&&(logger[_0x3cfd49(0x123)](_0x462015[_0x3cfd49(0x11e)]),global['accessibilityPlatform']=![]);!_0x462015[_0x3cfd49(0x10e)](isUndefined,_0x1370e3[_0x3cfd49(0x152)])&&(logger[_0x3cfd49(0x123)](_0x462015[_0x3cfd49(0x141)]),global[_0x3cfd49(0x132)]=![]);if(!global[_0x3cfd49(0x132)]){_0x1370e3[_0x462015[_0x3cfd49(0x15d)]]=![];const _0x74e8ab=_0x462015['uFGYo'](_0x1f544e,_0x462015[_0x3cfd49(0xfd)](encodeURIComponent,JSON[_0x3cfd49(0x134)](_0x1370e3)));_0xe9b99e&&(_0xe9b99e[_0x3cfd49(0x12f)][_0x3cfd49(0x13e)][_0x3cfd49(0x104)]['use'][_0x3cfd49(0x13a)]['wsEndpoint']=_0x74e8ab,_0xe9b99e['workerInfo'][_0x3cfd49(0x104)][_0x3cfd49(0x119)][_0x3cfd49(0x13a)][_0x3cfd49(0x15e)]=_0x74e8ab);}}}catch(_0x7958d8){logger['debug'](_0x3cfd49(0x100)+util[_0x3cfd49(0x154)](_0x7958d8));}};
|
|
1
|
+
const a34_0x1d0f78=a34_0x1057;(function(_0x3569f0,_0x191c67){const _0x4df83c=a34_0x1057,_0x5db2f4=_0x3569f0();while(!![]){try{const _0x35349e=-parseInt(_0x4df83c(0x1ff))/0x1+parseInt(_0x4df83c(0x223))/0x2*(-parseInt(_0x4df83c(0x225))/0x3)+-parseInt(_0x4df83c(0x1f9))/0x4*(parseInt(_0x4df83c(0x1e7))/0x5)+-parseInt(_0x4df83c(0x221))/0x6+parseInt(_0x4df83c(0x21d))/0x7*(-parseInt(_0x4df83c(0x226))/0x8)+parseInt(_0x4df83c(0x247))/0x9*(parseInt(_0x4df83c(0x233))/0xa)+parseInt(_0x4df83c(0x23d))/0xb;if(_0x35349e===_0x191c67)break;else _0x5db2f4['push'](_0x5db2f4['shift']());}catch(_0x5462a9){_0x5db2f4['push'](_0x5db2f4['shift']());}}}(a34_0x3d10,0x413dd));const util=require('util'),logger=require('../../helpers/logger')[a34_0x1d0f78(0x1fe)],{isAccessibilityAutomationSession}=require(a34_0x1d0f78(0x240)),{isUndefined}=require(a34_0x1d0f78(0x1f1)),scripts=require('../../helpers/accessibility-automation/scripts');exports[a34_0x1d0f78(0x1f7)]=async(_0x36b758,_0x5aa11b,_0x577425={})=>{const _0x2dcdd6=a34_0x1d0f78,_0xcc1203={};_0xcc1203[_0x2dcdd6(0x220)]=_0x2dcdd6(0x20d);const _0x54a8fa=_0xcc1203;return await _0x36b758[_0x2dcdd6(0x21f)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x5aa11b['replace'](/arguments/g,_0x54a8fa['iGqbc'])+_0x2dcdd6(0x229)+JSON[_0x2dcdd6(0x22e)](_0x577425)+')');},exports[a34_0x1d0f78(0x1e6)]=async(_0x80ea03,_0x5cdbd9,_0x2fdc85={})=>{const _0x1dc918=a34_0x1d0f78,_0x17bbb3={};_0x17bbb3[_0x1dc918(0x1e4)]=function(_0x2fec8a,_0x539da0){return _0x2fec8a===_0x539da0;},_0x17bbb3[_0x1dc918(0x1e3)]=_0x1dc918(0x1f8),_0x17bbb3[_0x1dc918(0x235)]=function(_0x22ab8f,_0x147629){return _0x22ab8f===_0x147629;},_0x17bbb3[_0x1dc918(0x222)]=_0x1dc918(0x214),_0x17bbb3[_0x1dc918(0x1dd)]=_0x1dc918(0x20d);const _0x4a2c1c=_0x17bbb3;if(_0x4a2c1c[_0x1dc918(0x1e4)](_0x80ea03[_0x1dc918(0x1fa)][_0x1dc918(0x1f0)],_0x4a2c1c[_0x1dc918(0x1e3)]))return await _0x80ea03[_0x1dc918(0x23e)](_0x5cdbd9,_0x2fdc85);else{if(_0x4a2c1c[_0x1dc918(0x235)](_0x80ea03[_0x1dc918(0x1fa)]['name'],_0x4a2c1c['LcYcu']))return await _0x80ea03[_0x1dc918(0x1fd)](_0x1dc918(0x1e1)+_0x5cdbd9[_0x1dc918(0x22a)](/arguments/g,_0x4a2c1c[_0x1dc918(0x1dd)])+_0x1dc918(0x1ef)+JSON['stringify'](_0x2fdc85)+')');}},exports['setAccessibilityCapabilities']=async _0x19841c=>{const _0x58ad12=a34_0x1d0f78,_0x52403c={};_0x52403c[_0x58ad12(0x242)]=_0x58ad12(0x206),_0x52403c[_0x58ad12(0x1ec)]=_0x58ad12(0x201),_0x52403c[_0x58ad12(0x1fb)]='accessibilityOptions.includeIssueType.bestPractice',_0x52403c[_0x58ad12(0x207)]=_0x58ad12(0x1f5),_0x52403c[_0x58ad12(0x211)]=_0x58ad12(0x22f),_0x52403c[_0x58ad12(0x215)]='accessibilityOptions.scannerVersion';const _0x4c1cea=_0x52403c;_0x19841c[_0x58ad12(0x1de)]&&(_0x19841c[_0x58ad12(0x1de)][_0x58ad12(0x200)]&&(_0x19841c[_0x4c1cea[_0x58ad12(0x242)]]=_0x19841c['accessibilityOptions']['wcagVersion']),_0x19841c[_0x58ad12(0x1de)][_0x58ad12(0x20b)]&&(_0x19841c[_0x4c1cea[_0x58ad12(0x1ec)]]=_0x19841c[_0x58ad12(0x1de)]['scannerProcessingTimeout']),_0x19841c['accessibilityOptions'][_0x58ad12(0x1f4)]&&(_0x19841c[_0x4c1cea[_0x58ad12(0x1fb)]]=_0x19841c[_0x58ad12(0x1de)][_0x58ad12(0x1f4)][_0x58ad12(0x237)],_0x19841c[_0x4c1cea[_0x58ad12(0x207)]]=_0x19841c['accessibilityOptions'][_0x58ad12(0x1f4)][_0x58ad12(0x1dc)]));const _0x576632=JSON[_0x58ad12(0x21a)](process[_0x58ad12(0x208)][_0x58ad12(0x1ed)])['scannerVersion'];_0x19841c[_0x4c1cea[_0x58ad12(0x211)]]=process[_0x58ad12(0x208)]['BS_A11Y_JWT'],_0x19841c[_0x4c1cea[_0x58ad12(0x215)]]=_0x576632,delete _0x19841c[_0x58ad12(0x1de)];},exports[a34_0x1d0f78(0x1ea)]=async _0x4a7fc4=>{const _0x27fa12=a34_0x1d0f78,_0x1fe02e={};_0x1fe02e[_0x27fa12(0x227)]=_0x27fa12(0x204),_0x1fe02e[_0x27fa12(0x224)]=_0x27fa12(0x219);const _0x2564ab=_0x1fe02e;if(global[_0x27fa12(0x1eb)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x4a7fc4,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x4a7fc4,scripts.getResults);return res;}catch{return logger[_0x27fa12(0x241)](_0x2564ab[_0x27fa12(0x227)]),[];}else return logger[_0x27fa12(0x20f)](_0x2564ab[_0x27fa12(0x224)]),[];},exports[a34_0x1d0f78(0x1fc)]=async(_0x10391c,_0x493f4a='')=>{const _0xb928ba=a34_0x1d0f78;if(global[_0xb928ba(0x1eb)]){const _0xd2d561={};return _0xd2d561[_0xb928ba(0x1f2)]=_0x493f4a,await exports[_0xb928ba(0x1f7)](_0x10391c,scripts[_0xb928ba(0x1fc)],_0xd2d561);}},exports[a34_0x1d0f78(0x239)]=async _0x1e5d3c=>{const _0x176ec2=a34_0x1d0f78,_0x41a097={};_0x41a097[_0x176ec2(0x212)]=_0x176ec2(0x23b),_0x41a097[_0x176ec2(0x213)]=_0x176ec2(0x21c);const _0x5de61b=_0x41a097;if(global[_0x176ec2(0x1eb)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1e5d3c,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x1e5d3c,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x176ec2(0x1df)](_0x5de61b[_0x176ec2(0x212)]),{};}else return logger[_0x176ec2(0x20f)](_0x5de61b[_0x176ec2(0x213)]),{};},exports[a34_0x1d0f78(0x244)]=async _0x1747cf=>{const _0x22ce4=a34_0x1d0f78,_0xbf3e60={'AeLxT':function(_0x4edfcc,_0x40c09f){return _0x4edfcc!==_0x40c09f;},'GCsTz':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','ftsyk':function(_0x37b913,_0x5e553c){return _0x37b913===_0x5e553c;},'QJUbS':_0x22ce4(0x234),'Dxgfx':function(_0x5a8807,_0x1e9b1c){return _0x5a8807===_0x1e9b1c;},'BgOEQ':_0x22ce4(0x23c),'wgETz':_0x22ce4(0x217),'jVxEp':function(_0x95731c,_0x3f0ae7){return _0x95731c(_0x3f0ae7);},'meuPb':_0x22ce4(0x23f),'WQbbQ':function(_0x357ded,_0x299fea){return _0x357ded>_0x299fea;},'dpjeL':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0xbf3e60[_0x22ce4(0x20e)](_0x1747cf['deviceName'],''))return logger[_0x22ce4(0x20f)](_0xbf3e60[_0x22ce4(0x1e5)]),![];const _0x421cc4=_0x1747cf['browser'];if(!(_0xbf3e60[_0x22ce4(0x209)](_0x421cc4,_0xbf3e60[_0x22ce4(0x1e0)])||_0xbf3e60['Dxgfx'](_0x421cc4,_0xbf3e60['BgOEQ'])))return logger[_0x22ce4(0x20f)](_0xbf3e60[_0x22ce4(0x230)]),![];const _0xfeff62=_0xbf3e60['jVxEp'](parseInt,_0x1747cf['browser_version']);if(!(_0xbf3e60[_0x22ce4(0x1e8)](_0xfeff62,_0xbf3e60[_0x22ce4(0x1f3)])||_0xbf3e60['WQbbQ'](_0xfeff62,0x5e)))return logger[_0x22ce4(0x20f)](_0xbf3e60[_0x22ce4(0x236)]),![];}catch(_0x1c6f27){logger[_0x22ce4(0x1df)](_0x22ce4(0x203)+util[_0x22ce4(0x23a)](_0x1c6f27));}return!![];},exports[a34_0x1d0f78(0x1ee)]=(_0x1d6741,_0xd137b1,_0x201f2b)=>{const _0x35d499=a34_0x1d0f78,_0x3b180e={'SxOAt':function(_0x52aecd){return _0x52aecd();},'VnKsu':_0x35d499(0x205),'QmfCe':function(_0x493b65,_0x3b768d){return _0x493b65===_0x3b768d;},'SrbfY':_0x35d499(0x234),'OrzcD':function(_0x25a477,_0x497715){return _0x25a477===_0x497715;},'BDpuj':'playwright-chromium','JcQVF':_0x35d499(0x217),'BZsqU':function(_0x56460b,_0x3729ad){return _0x56460b===_0x3729ad;},'tlNis':'latest','FZxJK':function(_0x2a7340,_0x443e24){return _0x2a7340>_0x443e24;},'qScap':_0x35d499(0x243),'KqDcf':function(_0x536c5b,_0x50c28f){return _0x536c5b(_0x50c28f);},'FaxQb':_0x35d499(0x216),'TbtFD':function(_0x452332,_0x1949c6){return _0x452332+_0x1949c6;},'BMoGb':function(_0x550c08,_0x1c5cec){return _0x550c08(_0x1c5cec);}};try{if(_0x3b180e['SxOAt'](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x1d6741[_0x3b180e[_0x35d499(0x245)]]&&(global[_0x35d499(0x1eb)]=![]);!(_0x3b180e[_0x35d499(0x202)](_0x1d6741[_0x35d499(0x238)],_0x3b180e[_0x35d499(0x1e2)])||_0x3b180e[_0x35d499(0x22c)](_0x1d6741[_0x35d499(0x238)],_0x3b180e[_0x35d499(0x20a)]))&&(logger[_0x35d499(0x20f)](_0x3b180e['JcQVF']),global['accessibilityPlatform']=![]);!(_0x3b180e[_0x35d499(0x1f6)](_0x1d6741[_0x35d499(0x246)],_0x3b180e[_0x35d499(0x1e9)])||_0x3b180e['FZxJK'](_0x1d6741[_0x35d499(0x246)],0x5e))&&(logger[_0x35d499(0x20f)](_0x3b180e['qScap']),global[_0x35d499(0x1eb)]=![]);!_0x3b180e[_0x35d499(0x20c)](isUndefined,_0x1d6741[_0x35d499(0x228)])&&(logger[_0x35d499(0x20f)](_0x3b180e[_0x35d499(0x210)]),global['accessibilityPlatform']=![]);if(!global['accessibilityPlatform']){_0x1d6741[_0x3b180e[_0x35d499(0x245)]]=![];const _0xa15063=_0x3b180e['TbtFD'](_0xd137b1,_0x3b180e[_0x35d499(0x22d)](encodeURIComponent,JSON['stringify'](_0x1d6741)));_0x201f2b&&(_0x201f2b[_0x35d499(0x218)][_0x35d499(0x231)]['project'][_0x35d499(0x21e)]['connectOptions'][_0x35d499(0x21b)]=_0xa15063,_0x201f2b['workerInfo'][_0x35d499(0x232)][_0x35d499(0x21e)][_0x35d499(0x22b)][_0x35d499(0x21b)]=_0xa15063);}}}catch(_0x3dafb5){logger[_0x35d499(0x1df)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x35d499(0x23a)](_0x3dafb5));}};function a34_0x1057(_0x4ff8fe,_0x1cbc8a){const _0x3d10ff=a34_0x3d10();return a34_0x1057=function(_0x105721,_0x511e1f){_0x105721=_0x105721-0x1dc;let _0x2a9986=_0x3d10ff[_0x105721];return _0x2a9986;},a34_0x1057(_0x4ff8fe,_0x1cbc8a);}function a34_0x3d10(){const _0x44b75e=['GCsTz','browserStackExecuteDriver','5kfrjtF','Dxgfx','tlNis','getAccessibilityResults','accessibilityPlatform','QpwBx','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','processAccessibilityCaps','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','name','../../helpers/helper','method','meuPb','includeIssueType','accessibilityOptions.includeIssueType.needsReview','BZsqU','browserStackEvaluate','WebDriver','124856sINpcS','constructor','LBbJG','performScan','executeScript','winstonLogger','146145jSyzGC','wcagVersion','accessibilityOptions.scannerProcessingTimeout','QmfCe','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','No\x20accessibility\x20results\x20were\x20found.','browserstack.accessibility','accessibilityOptions.wcagVersion','NdKRO','env','ftsyk','BDpuj','scannerProcessingTimeout','KqDcf','bstackSdkArgs','AeLxT','warn','FaxQb','ncCwS','pnjuM','JEMgg','Playwright','WTKSi','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','currentTest','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','parse','wsEndpoint','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','105vxdpUA','use','evaluate','iGqbc','34974smNzun','LcYcu','18ompYtD','UgOTS','61389ZFZXst','152232QQMQrh','QBHJr','deviceName','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','replace','connectOptions','OrzcD','BMoGb','stringify','accessibilityOptions.authToken','wgETz','testInfo','project','50TUDaor','chrome','JfESf','dpjeL','bestPractice','browserName','getAccessibilityResultsSummary','format','No\x20summaryResults\x20found.','playwright-chromium','9361154sMPzOh','executeAsyncScript','latest','../../helpers/accessibility-automation/helper','error','UTMRH','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','platformValidation','VnKsu','browser_version','124209iHfAXw','needsReview','fNFFG','accessibilityOptions','debug','QJUbS','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','SrbfY','xbazH','WQSYF'];a34_0x3d10=function(){return _0x44b75e;};return a34_0x3d10();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x4c303c=a35_0x46f3;(function(_0x15688c,_0x198286){const _0x5075c1=a35_0x46f3,_0x2ae3df=_0x15688c();while(!![]){try{const _0x58c3cb=parseInt(_0x5075c1(0x199))/0x1*(parseInt(_0x5075c1(0x1e0))/0x2)+parseInt(_0x5075c1(0x14c))/0x3+parseInt(_0x5075c1(0x19b))/0x4+parseInt(_0x5075c1(0x1c8))/0x5+-parseInt(_0x5075c1(0x1c2))/0x6*(parseInt(_0x5075c1(0x1de))/0x7)+-parseInt(_0x5075c1(0x19e))/0x8*(-parseInt(_0x5075c1(0x1c9))/0x9)+parseInt(_0x5075c1(0x15e))/0xa*(-parseInt(_0x5075c1(0x1b1))/0xb);if(_0x58c3cb===_0x198286)break;else _0x2ae3df['push'](_0x2ae3df['shift']());}catch(_0x498f45){_0x2ae3df['push'](_0x2ae3df['shift']());}}}(a35_0x14ac,0xc171b));const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x4c303c(0x157)),{format}=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x4c303c(0x1a1)),helper=require(a35_0x4c303c(0x1a5)),utilities=require(a35_0x4c303c(0x1c3)),constants=require('../utils/constants'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x4c303c(0x19a)),{CrashReporter}=require(a35_0x4c303c(0x187)),{getFrameworkVersion}=require(a35_0x4c303c(0x195)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a35_0x4c303c(0x160)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x4c303c(0x1af)),getUserPlaywrightConfig=async(_0x1286e6,_0x22084a)=>{const _0x15d275=a35_0x4c303c,_0x449d32={'nfxpp':function(_0x4d4885){return _0x4d4885();},'SdnxK':function(_0x31c8f3,_0x5059ac){return _0x31c8f3(_0x5059ac);},'qnyWw':function(_0x38c342,_0x1c046a){return _0x38c342(_0x1c046a);},'gzCwF':'resolvedConfigFile','lSvPF':_0x15d275(0x1d7)},_0x18c086=!helper[_0x15d275(0x16a)](_0x1286e6['config']),_0x5ab9e6=_0x18c086?path['resolve'](process[_0x15d275(0x15b)](),_0x1286e6[_0x15d275(0x158)]):process['cwd'](),{resolveConfigFile:_0x562ea2,resolveConfigLocation:_0x43d3ed}=helper[_0x15d275(0x17a)]['apply'](null,_0x449d32[_0x15d275(0x190)](getConfigLoaderPath)),_0x19131a=_0x562ea2?_0x449d32['SdnxK'](_0x562ea2,_0x5ab9e6):helper[_0x15d275(0x165)](_0x449d32[_0x15d275(0x16b)](_0x43d3ed,_0x5ab9e6),[_0x449d32[_0x15d275(0x1bc)]]),_0x4a1af6={};if(_0x18c086){const _0x4bb864=_0x22084a['findIndex'](_0x3f716f=>_0x3f716f===_0x15d275(0x18d)||_0x3f716f==='-c'||_0x3f716f[_0x15d275(0x1b2)](_0x15d275(0x1d7)));_0x22084a[_0x15d275(0x186)](_0x4bb864,_0x22084a[_0x4bb864]['startsWith'](_0x449d32['lSvPF'])?0x1:0x2);}const _0x3749fd={};return _0x3749fd[_0x15d275(0x1bd)]=_0x19131a,_0x3749fd[_0x15d275(0x158)]=_0x4a1af6,_0x3749fd;},handleO11yRerun=_0x487097=>{const _0x4478a0=a35_0x4c303c,_0x16fbb0={};_0x16fbb0['zDCog']=function(_0x49e34c,_0x3dd374){return _0x49e34c!==_0x3dd374;},_0x16fbb0['ewRMC']=_0x4478a0(0x1d2),_0x16fbb0[_0x4478a0(0x18e)]=_0x4478a0(0x1b8);const _0x2b353f=_0x16fbb0,_0x22d877=helper[_0x4478a0(0x184)](process['env'][_0x4478a0(0x169)]);if(_0x22d877){const _0x50391e=process[_0x4478a0(0x170)]['BROWSERSTACK_RERUN_TESTS'],_0x4bfd05=[];if(_0x2b353f[_0x4478a0(0x180)](_0x50391e,_0x2b353f['ewRMC'])&&!helper[_0x4478a0(0x16a)](_0x50391e)){_0x50391e[_0x4478a0(0x162)](',')[_0x4478a0(0x1c5)](_0xb85f7=>{const _0x57ab0a=_0x4478a0;_0x4bfd05[_0x57ab0a(0x18a)]('('+_0xb85f7[_0x57ab0a(0x15a)]()+')');});const _0xa1f047='^'+_0x4bfd05['join']('|')+'$';_0x487097[_0x4478a0(0x18a)](_0x2b353f[_0x4478a0(0x18e)],_0xa1f047);}}},spawnOriginalProcess=_0x129008=>{const _0x1498a4=a35_0x4c303c,_0x2aa95f={'puRnl':function(_0x4335ac,_0x2e67c5,_0x37fb08,_0x5b763c){return _0x4335ac(_0x2e67c5,_0x37fb08,_0x5b763c);},'kAWpA':_0x1498a4(0x168),'WrNeH':'playwright','BvGTC':function(_0x579bdc,_0x995be9){return _0x579bdc===_0x995be9;},'TXnwP':_0x1498a4(0x143),'wNYZt':_0x1498a4(0x17e)};_0x2aa95f['puRnl'](spawn,_0x2aa95f[_0x1498a4(0x1d0)],[_0x2aa95f[_0x1498a4(0x18f)],..._0x129008[_0x1498a4(0x1b0)](0x1)],{'shell':_0x2aa95f[_0x1498a4(0x14e)](process[_0x1498a4(0x174)],_0x2aa95f[_0x1498a4(0x1dd)]),'stdio':_0x2aa95f['wNYZt'],'cwd':process['cwd']()});},isTestCommand=(_0x4c2317,_0x39a1a6)=>{const _0x5d59d8=a35_0x4c303c,_0x2b5fe3={};_0x2b5fe3[_0x5d59d8(0x1ca)]=function(_0x4b15c6,_0x30c285){return _0x4b15c6>_0x30c285;},_0x2b5fe3[_0x5d59d8(0x1b9)]=function(_0x18ae9b,_0x315023){return _0x18ae9b===_0x315023;},_0x2b5fe3[_0x5d59d8(0x193)]='test';const _0x54fceb=_0x2b5fe3;if(_0x54fceb['cnCzK'](_0x39a1a6[_0x5d59d8(0x1a2)],0x1)&&_0x54fceb[_0x5d59d8(0x1b9)](_0x39a1a6[0x1],_0x54fceb[_0x5d59d8(0x193)]))return!![];return![];};function a35_0x14ac(){const _0xb8e04=['MODULE','NoScH','push','skipSessionName','sKrNs','--config','vlIzy','WrNeH','nfxpp','stop','playwright-browserstack-sdk.config.js','nqrLF','Edeup','../../helpers/test-observability/utils','playwright','BROWSERSTACK_AUTOMATION','finalExecution','61718oFfRXF','./reporter/pwUtils','5161564pUMPzI','EDiqy','accessibilityOptions','472jOPWvF','logLevel','qTSGk','../../helpers/BrowserStackSetup','length','argv','getProxyUrl','../../helpers/helper','ialLe','OXVsL','existsSync','testObservability','--disable-test-observability','parse','BROWSERSTACK_TEST_OBSERVABILITY','TQJEi','ZpqIB','../../helpers/testhub/utils','slice','11QOjbWy','startsWith','BROWSERSTACK_SETUP_CONFIG_PATH','ExrCa','cdntd','PLAYWRIGHT','automation','--grep','uUvaZ','writeFileSync','concat','gzCwF','path','lZZpL','join','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','exitCode','6SzfhXc','../../helpers/utilities','pRXgb','map','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','markSDKSetupComplete','6251445aPtlFn','48699ImwPKK','cnCzK','--disable-browserstack-automation','IbKIR','cliConfig','YwmOh','ROJbw','kAWpA','accessibility','null','includes','uvrzl','Deleting\x20','Playwright\x20process\x20exited\x20with\x20code\x20','--config=','launchBuild','readFileSync','stringify','pBzZF','BrowserStack\x20config\x20file\x20not\x20found.','TXnwP','4178167LuXjZE','indexOf','48ojYiJx','test','win32','assign','AyzCz','Nlbdh','dirname','initialize','OmJrb','unlinkSync','resolve','1530498LFAPsq','close','BvGTC','getPackageType','Updated\x20config\x20file\x20name\x20to\x20-\x20','BROWSERSTACK_PW_CONFIG_DIR','filterBrowserstackArgs','sPtUx','SIRHD','Error\x20in\x20deleting\x20playwright\x20results','tErog','child_process','config','filter','trim','cwd','testContextOptions','errorMessage','34620990lbyRnN','info','./accessibility-helper','jFbLN','split','Error\x20in\x20getting\x20funnel\x20data\x20results','tpUiB','nestedKeyValue','FMcMN','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','npx','BROWSERSTACK_RERUN','isUndefined','qnyWw','get','playwright-browserstack-sdk.config.cjs','browserstackSetupConfig.json','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','env','kWctI','getConfigPath','isTypescriptProject','platform','true','BROWSERSTACK_TEST_ACCESSIBILITY_YML','RVGFg','fnaCV','hFHWJ','requirePWModule','homedir','nuFin','serializeToYamlString','inherit','lCGXX','zDCog','SUUzS','skipSessionStatus','Error\x20in\x20closing\x20playwright','isTrue','debug','splice','../../helpers/test-observability/error-handler'];a35_0x14ac=function(){return _0xb8e04;};return a35_0x14ac();}async function run(_0x2733d4,_0x54f324){const _0x15bfad=a35_0x4c303c,_0x25a3e1={'OXVsL':'.browserstack','nuFin':'pw_result.json','FMcMN':function(_0x58db1f,_0x38c5ad){return _0x58db1f+_0x38c5ad;},'EDiqy':_0x15bfad(0x163),'NVbnt':'6|7|8|0|5|3|4|1|2','OmJrb':function(_0x20bdef){return _0x20bdef();},'AyzCz':function(_0x2b2173,_0x4495cb){return _0x2b2173+_0x4495cb;},'TQJEi':_0x15bfad(0x183),'jFbLN':_0x15bfad(0x1cb),'Edeup':'false','MYvhh':_0x15bfad(0x1aa),'ialLe':function(_0x15288b,_0x514ebd){return _0x15288b>=_0x514ebd;},'ExrCa':function(_0x55ac93,_0x1578da){return _0x55ac93+_0x1578da;},'sPtUx':_0x15bfad(0x155),'aFPuT':function(_0x373ed8,_0xa565bc,_0x589874){return _0x373ed8(_0xa565bc,_0x589874);},'cdntd':function(_0xc5c5dc,_0x24bab2){return _0xc5c5dc(_0x24bab2);},'IbKIR':_0x15bfad(0x1dc),'tpUiB':_0x15bfad(0x1b7),'qyavc':function(_0x225a56,_0x34affd){return _0x225a56!=_0x34affd;},'lZZpL':function(_0x21cbd0,_0x35466d){return _0x21cbd0(_0x35466d);},'qTSGk':function(_0x2c9a6b,_0x545eae){return _0x2c9a6b===_0x545eae;},'pBzZF':_0x15bfad(0x175),'uvrzl':_0x15bfad(0x16e),'lCGXX':_0x15bfad(0x16d),'hFHWJ':_0x15bfad(0x192),'pRXgb':function(_0x246100,_0x5c46c9){return _0x246100-_0x5c46c9;},'YwmOh':function(_0x59becc,_0x3d51ab){return _0x59becc+_0x3d51ab;},'ZpqIB':_0x15bfad(0x150),'ROJbw':function(_0x29e76f,_0x460342){return _0x29e76f>_0x460342;},'suODS':function(_0x596f28,_0x1e782a){return _0x596f28+_0x1e782a;},'Nlbdh':function(_0x3d0fd5,_0x5617ed,_0x25b218,_0x10b5ea){return _0x3d0fd5(_0x5617ed,_0x25b218,_0x10b5ea);},'sKrNs':_0x15bfad(0x168),'RVGFg':_0x15bfad(0x196),'SUUzS':_0x15bfad(0x1e1),'SIRHD':_0x15bfad(0x18d),'NoScH':function(_0x5135ab,_0x40822c){return _0x5135ab===_0x40822c;},'fnaCV':'win32','tErog':_0x15bfad(0x17e),'kWctI':_0x15bfad(0x14d)};!helper['isFalse'](process[_0x15bfad(0x170)][_0x15bfad(0x197)])&&(process[_0x15bfad(0x170)][_0x15bfad(0x197)]=!![]);process[_0x15bfad(0x1a3)][_0x15bfad(0x1d3)](_0x25a3e1[_0x15bfad(0x161)])&&(process[_0x15bfad(0x170)]['BROWSERSTACK_AUTOMATION']=_0x25a3e1[_0x15bfad(0x194)],_0x54f324=_0x54f324[_0x15bfad(0x159)](_0xc29cc7=>_0xc29cc7!==_0x15bfad(0x1cb)));const _0x47f9c1=_0x54f324[_0x15bfad(0x1df)](_0x25a3e1['MYvhh']);_0x25a3e1[_0x15bfad(0x1a6)](_0x47f9c1,0x0)&&(process[_0x15bfad(0x170)][_0x15bfad(0x1ac)]=_0x25a3e1[_0x15bfad(0x194)],_0x54f324=_0x54f324[_0x15bfad(0x159)](_0xf02b18=>_0xf02b18!=='--disable-test-observability'));try{const _0x399ca4=path['join'](helper[_0x15bfad(0x17b)](),_0x25a3e1[_0x15bfad(0x1a7)],_0x25a3e1[_0x15bfad(0x17c)]);fs[_0x15bfad(0x1a8)](_0x399ca4)&&fs[_0x15bfad(0x14a)](_0x399ca4);}catch(_0x3ba4cd){logger[_0x15bfad(0x185)](_0x25a3e1[_0x15bfad(0x1b4)](_0x25a3e1[_0x15bfad(0x153)],_0x3ba4cd));}if(!_0x25a3e1['aFPuT'](isTestCommand,_0x2733d4,_0x54f324)){_0x25a3e1[_0x15bfad(0x1b5)](spawnOriginalProcess,_0x54f324);return;}const _0x4320b1=new BrowserStackSetup(_0x2733d4,FRAMEWORKS[_0x15bfad(0x1b6)]);if(!_0x4320b1[_0x15bfad(0x158)]){logger['error'](_0x25a3e1[_0x15bfad(0x1cc)]);return;}await _0x4320b1[_0x15bfad(0x148)]();!helper[_0x15bfad(0x16a)](_0x4320b1['cliConfig'])&&_0x4320b1[_0x15bfad(0x1cd)]['has'](_0x25a3e1[_0x15bfad(0x164)])&&(process[_0x15bfad(0x170)][_0x15bfad(0x197)]=_0x4320b1[_0x15bfad(0x1cd)][_0x15bfad(0x16c)](_0x25a3e1[_0x15bfad(0x164)])||!![]);_0x25a3e1['qyavc'](_0x4320b1[_0x15bfad(0x158)]['testObservability'],null)&&!helper['isTrue'](process[_0x15bfad(0x170)][_0x15bfad(0x1ac)])&&(process['env'][_0x15bfad(0x1ac)]=process[_0x15bfad(0x170)][_0x15bfad(0x1ac)]||_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x1a9)]);const _0x12b2b6=!helper['isFalse'](process[_0x15bfad(0x170)][_0x15bfad(0x1ac)]);let _0x261101=![];_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x1d1)]&&(_0x261101=!![],process[_0x15bfad(0x170)][_0x15bfad(0x176)]=_0x4320b1['config'][_0x15bfad(0x1d1)]);_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x19d)]&&(process[_0x15bfad(0x170)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x15bfad(0x1da)](_0x4320b1[_0x15bfad(0x158)]['accessibilityOptions']));const _0x4a8f28=_0x54f324[_0x15bfad(0x1bb)](),_0x2c02d7=await _0x25a3e1['aFPuT'](getUserPlaywrightConfig,_0x2733d4,_0x54f324);if(helper['isUndefined'](_0x2c02d7)){_0x25a3e1[_0x15bfad(0x1be)](spawnOriginalProcess,_0x4a8f28);return;}const _0xc21368=_0x2c02d7[_0x15bfad(0x1bd)]?path['dirname'](_0x2c02d7[_0x15bfad(0x1bd)]):process[_0x15bfad(0x15b)]();process['env'][_0x15bfad(0x151)]=_0xc21368,await TestHubHandler[_0x15bfad(0x1d8)](FRAMEWORKS['PLAYWRIGHT'],_0x4320b1);_0x12b2b6&&_0x25a3e1['lZZpL'](handleO11yRerun,_0x54f324);let _0x1fca31=_0x25a3e1[_0x15bfad(0x1a0)](process[_0x15bfad(0x170)][_0x15bfad(0x176)],_0x25a3e1[_0x15bfad(0x1db)]);_0x1fca31=_0x1fca31||_0x25a3e1['cdntd'](checkAccessibilityPlatformConfig,_0x4320b1[_0x15bfad(0x158)]),process[_0x15bfad(0x170)][_0x15bfad(0x176)]=_0x1fca31;_0x1fca31&&_0x25a3e1[_0x15bfad(0x1b5)](setAccessibilityCapabilities,_0x4320b1[_0x15bfad(0x158)]);const _0x50a211=path[_0x15bfad(0x1bf)](_0x2c02d7[_0x15bfad(0x1bd)]?path[_0x15bfad(0x147)](_0x2c02d7[_0x15bfad(0x1bd)]):process[_0x15bfad(0x15b)](),_0x25a3e1[_0x15bfad(0x1d4)]);fs[_0x15bfad(0x1ba)](_0x50a211,helper[_0x15bfad(0x17d)](_0x4320b1['config'])),process[_0x15bfad(0x170)][_0x15bfad(0x1b3)]=_0x50a211,helper['clearTempPWConfig']();let _0x411825='';_0x25a3e1['qTSGk'](helper[_0x15bfad(0x14f)](),constants['PACKAGE_TYPE'][_0x15bfad(0x188)])?_0x411825=_0x25a3e1[_0x15bfad(0x17f)]:_0x411825=_0x25a3e1[_0x15bfad(0x179)];let _0x51c2be='';if(helper[_0x15bfad(0x173)](_0x2c02d7[_0x15bfad(0x1bd)])){_0x51c2be=_0x15bfad(0x1c6);const _0x4da512=_0x411825['split']('.');_0x4da512[_0x25a3e1[_0x15bfad(0x1c4)](_0x4da512[_0x15bfad(0x1a2)],0x1)]='ts',_0x411825=_0x4da512[_0x15bfad(0x1bf)]('.'),logger[_0x15bfad(0x185)](_0x25a3e1[_0x15bfad(0x1ce)](_0x25a3e1[_0x15bfad(0x1ae)],_0x411825));}else _0x51c2be=_0x15bfad(0x1c0);const _0x56a215=path['join'](_0x2c02d7[_0x15bfad(0x1bd)]?path[_0x15bfad(0x147)](_0x2c02d7[_0x15bfad(0x1bd)]):process[_0x15bfad(0x15b)](),_0x411825);let _0x2f65ad=_0x2c02d7[_0x15bfad(0x1bd)]?_0x2c02d7[_0x15bfad(0x1bd)]:'';_0x2f65ad=_0x25a3e1[_0x15bfad(0x1cf)](_0x2f65ad['length'],0x0)?path[_0x15bfad(0x14b)](_0x2f65ad):'',process['env']['USER_CONFIG_DETAILS_PATH']=_0x2f65ad;const _0x48e356=helper[_0x15bfad(0x1a4)](_0x4320b1[_0x15bfad(0x158)]);_0x48e356&&(_0x51c2be=_0x25a3e1['suODS'](_0x15bfad(0x16f)+_0x48e356+_0x15bfad(0x167),_0x51c2be));helper[_0x15bfad(0x152)]({},_0x54f324),fs[_0x15bfad(0x1ba)](_0x56a215,_0x51c2be),helper[_0x15bfad(0x1c7)]();const _0x254e0c=_0x25a3e1[_0x15bfad(0x146)](spawn,_0x25a3e1[_0x15bfad(0x18c)],[_0x25a3e1[_0x15bfad(0x177)],_0x25a3e1[_0x15bfad(0x181)],_0x25a3e1[_0x15bfad(0x154)],_0x56a215,..._0x54f324[_0x15bfad(0x1b0)](0x2)],{'shell':_0x25a3e1[_0x15bfad(0x189)](process['platform'],_0x25a3e1[_0x15bfad(0x178)]),'stdio':_0x25a3e1[_0x15bfad(0x156)],'cwd':process[_0x15bfad(0x15b)](),'env':Object[_0x15bfad(0x144)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x15bfad(0x172)](_0x2733d4),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4320b1['config'][_0x15bfad(0x15c)][_0x15bfad(0x182)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x15c)][_0x15bfad(0x18b)],'BROWSERSTACK_LOG_LEVEL':_0x4320b1['config'][_0x15bfad(0x19f)]})}),_0xbf3880=()=>{const _0x39a3bf=_0x15bfad;try{const _0x3c30ee=path[_0x39a3bf(0x1bf)](helper[_0x39a3bf(0x17b)](),_0x25a3e1[_0x39a3bf(0x1a7)],_0x25a3e1['nuFin']);if(fs[_0x39a3bf(0x1a8)](_0x3c30ee)){let _0x23dbc3=fs[_0x39a3bf(0x1d9)](_0x3c30ee);_0x23dbc3=JSON[_0x39a3bf(0x1ab)](_0x23dbc3),_0x4320b1[_0x39a3bf(0x15d)]=_0x23dbc3,fs[_0x39a3bf(0x14a)](_0x3c30ee);}}catch(_0x53c463){logger[_0x39a3bf(0x185)](_0x25a3e1[_0x39a3bf(0x166)](_0x25a3e1[_0x39a3bf(0x19c)],_0x53c463));}};_0x254e0c['on'](_0x25a3e1[_0x15bfad(0x171)],async _0x256a1b=>{const _0x1bada6=_0x15bfad;try{const _0x15e120=_0x25a3e1['NVbnt']['split']('|');let _0x13c7a7=0x0;while(!![]){switch(_0x15e120[_0x13c7a7++]){case'0':process[_0x1bada6(0x1c1)]=_0x256a1b;continue;case'1':logger[_0x1bada6(0x185)](_0x1bada6(0x1d5)+_0x50a211);continue;case'2':fs[_0x1bada6(0x14a)](_0x50a211);continue;case'3':logger[_0x1bada6(0x15f)](_0x1bada6(0x1d5)+_0x56a215);continue;case'4':fs[_0x1bada6(0x14a)](_0x56a215);continue;case'5':logger[_0x1bada6(0x185)](_0x1bada6(0x1d6)+_0x256a1b);continue;case'6':_0x25a3e1[_0x1bada6(0x149)](_0xbf3880);continue;case'7':await TestHubHandler[_0x1bada6(0x191)]();continue;case'8':await utilities[_0x1bada6(0x198)](_0x4320b1);continue;}break;}}catch(_0x54b360){logger[_0x1bada6(0x185)](_0x25a3e1[_0x1bada6(0x145)](_0x25a3e1[_0x1bada6(0x1ad)],_0x54b360));}});}function a35_0x46f3(_0x3f8d7a,_0x54f599){const _0x14ac72=a35_0x14ac();return a35_0x46f3=function(_0x46f368,_0x1a9cab){_0x46f368=_0x46f368-0x143;let _0x1c809f=_0x14ac72[_0x46f368];return _0x1c809f;},a35_0x46f3(_0x3f8d7a,_0x54f599);}module['exports']=run;
|
|
2
|
+
'use strict';function a35_0x5b6e(_0x3312ec,_0x1acba1){const _0x249ed0=a35_0x249e();return a35_0x5b6e=function(_0x5b6e1d,_0x3888ed){_0x5b6e1d=_0x5b6e1d-0x1df;let _0x25e71e=_0x249ed0[_0x5b6e1d];return _0x25e71e;},a35_0x5b6e(_0x3312ec,_0x1acba1);}const a35_0x4e6473=a35_0x5b6e;(function(_0x430219,_0x5524a3){const _0xf60a9=a35_0x5b6e,_0x3bfc92=_0x430219();while(!![]){try{const _0x374cb8=parseInt(_0xf60a9(0x24e))/0x1+parseInt(_0xf60a9(0x210))/0x2*(-parseInt(_0xf60a9(0x258))/0x3)+parseInt(_0xf60a9(0x205))/0x4*(-parseInt(_0xf60a9(0x243))/0x5)+parseInt(_0xf60a9(0x237))/0x6+parseInt(_0xf60a9(0x1e9))/0x7+-parseInt(_0xf60a9(0x256))/0x8+parseInt(_0xf60a9(0x276))/0x9*(parseInt(_0xf60a9(0x22a))/0xa);if(_0x374cb8===_0x5524a3)break;else _0x3bfc92['push'](_0x3bfc92['shift']());}catch(_0x28e76b){_0x3bfc92['push'](_0x3bfc92['shift']());}}}(a35_0x249e,0x60013));const fs=require('fs'),path=require(a35_0x4e6473(0x267)),{spawn}=require(a35_0x4e6473(0x21c)),{format}=require(a35_0x4e6473(0x262)),logger=require(a35_0x4e6473(0x223))[a35_0x4e6473(0x23a)],{default:BrowserStackSetup}=require(a35_0x4e6473(0x257)),helper=require('../../helpers/helper'),utilities=require('../../helpers/utilities'),constants=require(a35_0x4e6473(0x20d)),{FRAMEWORKS}=require(a35_0x4e6473(0x269)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x4e6473(0x236)),{CrashReporter}=require(a35_0x4e6473(0x26d)),{getFrameworkVersion}=require(a35_0x4e6473(0x1f4)),{checkAccessibilityPlatformConfig}=require(a35_0x4e6473(0x1ea)),{setAccessibilityCapabilities}=require(a35_0x4e6473(0x1e6)),TestHubHandler=require(a35_0x4e6473(0x255)),{shouldProcessEventForTesthub}=require(a35_0x4e6473(0x261)),getUserPlaywrightConfig=async(_0x2f4527,_0x54b26c)=>{const _0x59b2a0=a35_0x4e6473,_0x39fd4f={'jkdio':function(_0x5b92c7){return _0x5b92c7();},'PTiEY':function(_0x58735b,_0x24c30a){return _0x58735b(_0x24c30a);},'wQXrV':function(_0x19bbe1,_0x271ccd){return _0x19bbe1(_0x271ccd);},'PBoQC':_0x59b2a0(0x220),'wxyHd':_0x59b2a0(0x1e3)},_0x26fcb4=!helper[_0x59b2a0(0x25e)](_0x2f4527[_0x59b2a0(0x20f)]),_0x8a80a9=_0x26fcb4?path[_0x59b2a0(0x202)](process[_0x59b2a0(0x272)](),_0x2f4527[_0x59b2a0(0x20f)]):process[_0x59b2a0(0x272)](),{resolveConfigFile:_0x103645,resolveConfigLocation:_0x353b8c}=helper['requirePWModule'][_0x59b2a0(0x274)](null,_0x39fd4f['jkdio'](getConfigLoaderPath)),_0x1aa558=_0x103645?_0x39fd4f[_0x59b2a0(0x1fa)](_0x103645,_0x8a80a9):helper[_0x59b2a0(0x278)](_0x39fd4f[_0x59b2a0(0x249)](_0x353b8c,_0x8a80a9),[_0x39fd4f['PBoQC']]),_0x5cb82b={};if(_0x26fcb4){const _0x24f1eb=_0x54b26c[_0x59b2a0(0x23d)](_0x57c3fc=>_0x57c3fc===_0x59b2a0(0x209)||_0x57c3fc==='-c'||_0x57c3fc[_0x59b2a0(0x212)]('--config='));_0x54b26c[_0x59b2a0(0x1fe)](_0x24f1eb,_0x54b26c[_0x24f1eb][_0x59b2a0(0x212)](_0x39fd4f[_0x59b2a0(0x275)])?0x1:0x2);}const _0x3bbcb8={};return _0x3bbcb8[_0x59b2a0(0x267)]=_0x1aa558,_0x3bbcb8['config']=_0x5cb82b,_0x3bbcb8;},handleO11yRerun=_0xe9bce7=>{const _0x4a7042=a35_0x4e6473,_0x3f48be={};_0x3f48be[_0x4a7042(0x264)]=function(_0x1ab385,_0x291c95){return _0x1ab385!==_0x291c95;},_0x3f48be['PEwIS']='null',_0x3f48be[_0x4a7042(0x250)]=_0x4a7042(0x201);const _0x43a9df=_0x3f48be,_0xe6f572=helper[_0x4a7042(0x1e1)](process[_0x4a7042(0x1f3)][_0x4a7042(0x25c)]);if(_0xe6f572){const _0x5adf74=process[_0x4a7042(0x1f3)][_0x4a7042(0x216)],_0x9adbd4=[];if(_0x43a9df[_0x4a7042(0x264)](_0x5adf74,_0x43a9df[_0x4a7042(0x25f)])&&!helper['isUndefined'](_0x5adf74)){_0x5adf74[_0x4a7042(0x1f8)](',')[_0x4a7042(0x27f)](_0x3d9db4=>{const _0x8a3e10=_0x4a7042;_0x9adbd4[_0x8a3e10(0x21e)]('('+_0x3d9db4['trim']()+')');});const _0x5da896='^'+_0x9adbd4[_0x4a7042(0x1fd)]('|')+'$';_0xe9bce7['push'](_0x43a9df[_0x4a7042(0x250)],_0x5da896);}}},spawnOriginalProcess=_0x5b1739=>{const _0x1a9dd8=a35_0x4e6473,_0x32fede={'QXbJk':function(_0x3003a3,_0x49f4ab,_0x4c0dda,_0x1bac1e){return _0x3003a3(_0x49f4ab,_0x4c0dda,_0x1bac1e);},'UqCJQ':_0x1a9dd8(0x27d),'ZlGgI':_0x1a9dd8(0x265),'yMOIM':function(_0x3a7b15,_0x172ba2){return _0x3a7b15===_0x172ba2;},'xTWXo':_0x1a9dd8(0x200),'bUpJe':_0x1a9dd8(0x266)};_0x32fede[_0x1a9dd8(0x23f)](spawn,_0x32fede[_0x1a9dd8(0x1ec)],[_0x32fede[_0x1a9dd8(0x26a)],..._0x5b1739['slice'](0x1)],{'shell':_0x32fede[_0x1a9dd8(0x22f)](process[_0x1a9dd8(0x1e8)],_0x32fede[_0x1a9dd8(0x23c)]),'stdio':_0x32fede['bUpJe'],'cwd':process[_0x1a9dd8(0x272)]()});},isTestCommand=(_0x5ce03c,_0x1b02a7)=>{const _0x48113e=a35_0x4e6473,_0x4a7326={};_0x4a7326[_0x48113e(0x1f1)]=function(_0x1a0430,_0x59fb7b){return _0x1a0430>_0x59fb7b;},_0x4a7326['RfZnz']=function(_0x3f6eed,_0x12d632){return _0x3f6eed===_0x12d632;},_0x4a7326[_0x48113e(0x233)]='test';const _0x55d3e1=_0x4a7326;if(_0x55d3e1[_0x48113e(0x1f1)](_0x1b02a7[_0x48113e(0x252)],0x1)&&_0x55d3e1['RfZnz'](_0x1b02a7[0x1],_0x55d3e1[_0x48113e(0x233)]))return!![];return![];};async function run(_0x57045d,_0xba8e9d){const _0x3aed2b=a35_0x4e6473,_0x152e7b={'JRVwk':'.browserstack','LBvmr':_0x3aed2b(0x239),'unSTS':function(_0x1f58e2,_0x529470){return _0x1f58e2+_0x529470;},'DMmbb':'Error\x20in\x20getting\x20funnel\x20data\x20results','fwpUh':_0x3aed2b(0x21d),'GUbCA':function(_0x483d49){return _0x483d49();},'eIKfj':function(_0x5ead76,_0x5c51c1){return _0x5ead76+_0x5c51c1;},'ipIra':_0x3aed2b(0x224),'WcBvU':'--disable-browserstack-automation','xoVBf':_0x3aed2b(0x214),'bJGJD':'--disable-test-observability','TXhkT':function(_0x2991a5,_0x5633e6){return _0x2991a5>=_0x5633e6;},'zSBMB':_0x3aed2b(0x24a),'NuBZq':function(_0x5100f0,_0x25d343,_0x4efb85){return _0x5100f0(_0x25d343,_0x4efb85);},'hpPrp':function(_0x490829,_0x59cfed){return _0x490829(_0x59cfed);},'czfHF':'BrowserStack\x20config\x20file\x20not\x20found.','Bvlmx':_0x3aed2b(0x1f7),'tJnrr':function(_0x315ef7,_0x2377b4){return _0x315ef7!=_0x2377b4;},'VumKO':function(_0x48e5c0,_0x4c929e,_0x5d40bc){return _0x48e5c0(_0x4c929e,_0x5d40bc);},'qgvFI':function(_0x269369,_0x4a715a){return _0x269369(_0x4a715a);},'RRRrg':function(_0x340de1,_0x22ee5a){return _0x340de1===_0x22ee5a;},'Mumzh':_0x3aed2b(0x22c),'aThol':function(_0x49a2b2,_0x2da761){return _0x49a2b2(_0x2da761);},'LhsMh':function(_0x4295ae,_0x20aa68){return _0x4295ae(_0x20aa68);},'hKCHF':_0x3aed2b(0x221),'vHACy':function(_0x1a8a9a,_0x157dfc){return _0x1a8a9a===_0x157dfc;},'HoJrP':_0x3aed2b(0x1fb),'NpiPt':_0x3aed2b(0x26f),'ossoN':function(_0xe5737b,_0x1e6797){return _0xe5737b-_0x1e6797;},'EikZy':_0x3aed2b(0x25a),'NGCGG':function(_0x243f16,_0x3f2216){return _0x243f16>_0x3f2216;},'NJGkA':function(_0x14f66d,_0x467ba9){return _0x14f66d+_0x467ba9;},'WPGOP':function(_0x2bd2eb,_0x456e95,_0xa30178,_0x1f0f90){return _0x2bd2eb(_0x456e95,_0xa30178,_0x1f0f90);},'rjQVY':_0x3aed2b(0x27d),'ZSWEW':_0x3aed2b(0x265),'iDwKT':_0x3aed2b(0x227),'ySveQ':_0x3aed2b(0x209),'AJKay':_0x3aed2b(0x200),'lIqBI':'inherit','ZYOLy':'close'};!helper[_0x3aed2b(0x20a)](process[_0x3aed2b(0x1f3)][_0x3aed2b(0x217)])&&(process[_0x3aed2b(0x1f3)][_0x3aed2b(0x217)]=!![]);process[_0x3aed2b(0x20c)][_0x3aed2b(0x222)](_0x152e7b[_0x3aed2b(0x271)])&&(process[_0x3aed2b(0x1f3)][_0x3aed2b(0x217)]=_0x152e7b[_0x3aed2b(0x1e2)],_0xba8e9d=_0xba8e9d['filter'](_0x3118a8=>_0x3118a8!==_0x3aed2b(0x241)));const _0x101bb7=_0xba8e9d[_0x3aed2b(0x20b)](_0x152e7b[_0x3aed2b(0x244)]);_0x152e7b[_0x3aed2b(0x242)](_0x101bb7,0x0)&&(process['env'][_0x3aed2b(0x235)]=_0x152e7b['xoVBf'],_0xba8e9d=_0xba8e9d[_0x3aed2b(0x218)](_0x413595=>_0x413595!=='--disable-test-observability'));try{const _0x536cd4=path['join'](helper[_0x3aed2b(0x24f)](),_0x152e7b['JRVwk'],_0x152e7b[_0x3aed2b(0x27a)]);fs[_0x3aed2b(0x21f)](_0x536cd4)&&fs[_0x3aed2b(0x207)](_0x536cd4);}catch(_0x2223fa){logger[_0x3aed2b(0x24b)](_0x152e7b[_0x3aed2b(0x203)](_0x152e7b['zSBMB'],_0x2223fa));}if(!_0x152e7b[_0x3aed2b(0x270)](isTestCommand,_0x57045d,_0xba8e9d)){_0x152e7b[_0x3aed2b(0x22e)](spawnOriginalProcess,_0xba8e9d);return;}const _0x1fe9c5=new BrowserStackSetup(_0x57045d,FRAMEWORKS[_0x3aed2b(0x24c)]);if(!_0x1fe9c5[_0x3aed2b(0x20f)]){logger[_0x3aed2b(0x251)](_0x152e7b[_0x3aed2b(0x20e)]);return;}await _0x1fe9c5['initialize']();!helper['isUndefined'](_0x1fe9c5[_0x3aed2b(0x260)])&&_0x1fe9c5[_0x3aed2b(0x260)]['has'](_0x152e7b['Bvlmx'])&&(process[_0x3aed2b(0x1f3)][_0x3aed2b(0x217)]=_0x1fe9c5[_0x3aed2b(0x260)][_0x3aed2b(0x248)](_0x152e7b[_0x3aed2b(0x204)])||!![]);_0x152e7b[_0x3aed2b(0x230)](_0x1fe9c5[_0x3aed2b(0x20f)]['testObservability'],null)&&!helper['isTrue'](process['env'][_0x3aed2b(0x235)])&&(process[_0x3aed2b(0x1f3)][_0x3aed2b(0x235)]=process[_0x3aed2b(0x1f3)][_0x3aed2b(0x235)]||_0x1fe9c5[_0x3aed2b(0x20f)]['testObservability']);const _0x23cf01=!helper['isFalse'](process['env'][_0x3aed2b(0x235)]);let _0x3ba3db=![];_0x1fe9c5[_0x3aed2b(0x20f)][_0x3aed2b(0x1e5)]&&(_0x3ba3db=!![],process[_0x3aed2b(0x1f3)][_0x3aed2b(0x1f6)]=_0x1fe9c5[_0x3aed2b(0x20f)][_0x3aed2b(0x1e5)]);_0x1fe9c5[_0x3aed2b(0x20f)][_0x3aed2b(0x27b)]&&(process[_0x3aed2b(0x1f3)][_0x3aed2b(0x240)]=JSON[_0x3aed2b(0x22d)](_0x1fe9c5[_0x3aed2b(0x20f)][_0x3aed2b(0x27b)]));const _0x1281d9=_0xba8e9d[_0x3aed2b(0x245)](),_0x442d2f=await _0x152e7b['VumKO'](getUserPlaywrightConfig,_0x57045d,_0xba8e9d);if(helper[_0x3aed2b(0x25e)](_0x442d2f)){_0x152e7b[_0x3aed2b(0x1e0)](spawnOriginalProcess,_0x1281d9);return;}const _0x31fd32=_0x442d2f[_0x3aed2b(0x267)]?path['dirname'](_0x442d2f[_0x3aed2b(0x267)]):process['cwd']();process['env']['BROWSERSTACK_PW_CONFIG_DIR']=_0x31fd32,await TestHubHandler['launchBuild'](FRAMEWORKS[_0x3aed2b(0x24c)],_0x1fe9c5);_0x23cf01&&_0x152e7b[_0x3aed2b(0x22e)](handleO11yRerun,_0xba8e9d);let _0x4fdb33=_0x152e7b[_0x3aed2b(0x229)](process[_0x3aed2b(0x1f3)][_0x3aed2b(0x1f6)],_0x152e7b['Mumzh']);_0x4fdb33=_0x4fdb33||_0x152e7b[_0x3aed2b(0x268)](checkAccessibilityPlatformConfig,_0x1fe9c5['config']),process[_0x3aed2b(0x1f3)][_0x3aed2b(0x1f6)]=_0x4fdb33;_0x4fdb33&&_0x152e7b[_0x3aed2b(0x253)](setAccessibilityCapabilities,_0x1fe9c5[_0x3aed2b(0x20f)]);const _0x15964c=path['join'](_0x442d2f[_0x3aed2b(0x267)]?path[_0x3aed2b(0x219)](_0x442d2f[_0x3aed2b(0x267)]):process['cwd'](),_0x152e7b[_0x3aed2b(0x215)]);fs[_0x3aed2b(0x1f0)](_0x15964c,helper[_0x3aed2b(0x26c)](_0x1fe9c5[_0x3aed2b(0x20f)])),process[_0x3aed2b(0x1f3)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x15964c,helper[_0x3aed2b(0x232)]();let _0x19158b='';_0x152e7b[_0x3aed2b(0x247)](helper['getPackageType'](),constants[_0x3aed2b(0x1f5)]['MODULE'])?_0x19158b=_0x152e7b[_0x3aed2b(0x21a)]:_0x19158b=_0x152e7b[_0x3aed2b(0x22b)];let _0x5e0d20='';if(helper[_0x3aed2b(0x23b)](_0x442d2f[_0x3aed2b(0x267)])){_0x5e0d20=_0x3aed2b(0x259);const _0x4f3c9d=_0x19158b[_0x3aed2b(0x1f8)]('.');_0x4f3c9d[_0x152e7b[_0x3aed2b(0x1e7)](_0x4f3c9d[_0x3aed2b(0x252)],0x1)]='ts',_0x19158b=_0x4f3c9d[_0x3aed2b(0x1fd)]('.'),logger[_0x3aed2b(0x24b)](_0x152e7b[_0x3aed2b(0x21b)](_0x152e7b[_0x3aed2b(0x1ef)],_0x19158b));}else _0x5e0d20=_0x3aed2b(0x27c);const _0x50d0cd=path['join'](_0x442d2f[_0x3aed2b(0x267)]?path[_0x3aed2b(0x219)](_0x442d2f['path']):process[_0x3aed2b(0x272)](),_0x19158b);let _0x258216=_0x442d2f['path']?_0x442d2f[_0x3aed2b(0x267)]:'';_0x258216=_0x152e7b[_0x3aed2b(0x277)](_0x258216[_0x3aed2b(0x252)],0x0)?path[_0x3aed2b(0x202)](_0x258216):'',process[_0x3aed2b(0x1f3)]['USER_CONFIG_DETAILS_PATH']=_0x258216;const _0xad2bb0=helper[_0x3aed2b(0x1e4)](_0x1fe9c5['config']);_0xad2bb0&&(_0x5e0d20=_0x152e7b[_0x3aed2b(0x1f2)](_0x3aed2b(0x225)+_0xad2bb0+_0x3aed2b(0x279),_0x5e0d20));helper[_0x3aed2b(0x228)]({},_0xba8e9d),fs[_0x3aed2b(0x1f0)](_0x50d0cd,_0x5e0d20),helper[_0x3aed2b(0x1ff)]();const _0x4aa7e6=_0x152e7b[_0x3aed2b(0x26e)](spawn,_0x152e7b['rjQVY'],[_0x152e7b[_0x3aed2b(0x1df)],_0x152e7b[_0x3aed2b(0x263)],_0x152e7b[_0x3aed2b(0x25d)],_0x50d0cd,..._0xba8e9d[_0x3aed2b(0x213)](0x2)],{'shell':_0x152e7b['vHACy'](process[_0x3aed2b(0x1e8)],_0x152e7b['AJKay']),'stdio':_0x152e7b[_0x3aed2b(0x1eb)],'cwd':process[_0x3aed2b(0x272)](),'env':Object[_0x3aed2b(0x23e)]({},process[_0x3aed2b(0x1f3)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x3aed2b(0x26b)](_0x57045d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1fe9c5[_0x3aed2b(0x20f)][_0x3aed2b(0x27e)][_0x3aed2b(0x24d)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1fe9c5[_0x3aed2b(0x20f)]['testContextOptions'][_0x3aed2b(0x1f9)],'BROWSERSTACK_LOG_LEVEL':_0x1fe9c5['config'][_0x3aed2b(0x208)]})}),_0x1b12ae=()=>{const _0x17636b=_0x3aed2b;try{const _0x914b25=path[_0x17636b(0x1fd)](helper[_0x17636b(0x24f)](),_0x152e7b['JRVwk'],_0x152e7b[_0x17636b(0x27a)]);if(fs[_0x17636b(0x21f)](_0x914b25)){let _0x343aa2=fs[_0x17636b(0x246)](_0x914b25);_0x343aa2=JSON[_0x17636b(0x206)](_0x343aa2),_0x1fe9c5[_0x17636b(0x211)]=_0x343aa2,fs['unlinkSync'](_0x914b25);}}catch(_0x2d7389){logger[_0x17636b(0x24b)](_0x152e7b[_0x17636b(0x21b)](_0x152e7b['DMmbb'],_0x2d7389));}};_0x4aa7e6['on'](_0x152e7b[_0x3aed2b(0x231)],async _0x260f68=>{const _0x2b3844=_0x3aed2b;try{const _0x35db06=_0x152e7b[_0x2b3844(0x234)][_0x2b3844(0x1f8)]('|');let _0x393eaf=0x0;while(!![]){switch(_0x35db06[_0x393eaf++]){case'0':fs[_0x2b3844(0x207)](_0x15964c);continue;case'1':process[_0x2b3844(0x1ed)]=_0x260f68;continue;case'2':await utilities['finalExecution'](_0x1fe9c5);continue;case'3':_0x152e7b[_0x2b3844(0x238)](_0x1b12ae);continue;case'4':fs[_0x2b3844(0x207)](_0x50d0cd);continue;case'5':logger['debug'](_0x2b3844(0x1fc)+_0x15964c);continue;case'6':await TestHubHandler[_0x2b3844(0x273)]();continue;case'7':logger[_0x2b3844(0x226)](_0x2b3844(0x1fc)+_0x50d0cd);continue;case'8':logger[_0x2b3844(0x24b)](_0x2b3844(0x25b)+_0x260f68);continue;}break;}}catch(_0x22e9ee){logger[_0x2b3844(0x24b)](_0x152e7b[_0x2b3844(0x203)](_0x152e7b[_0x2b3844(0x1ee)],_0x22e9ee));}});}module[a35_0x4e6473(0x254)]=run;function a35_0x249e(){const _0x368d3e=['playwright-browserstack-sdk.config.cjs','Deleting\x20','join','splice','markSDKSetupComplete','win32','--grep','resolve','eIKfj','Bvlmx','456ivSZrA','parse','unlinkSync','logLevel','--config','isFalse','indexOf','argv','../utils/constants','czfHF','config','2NdFqxT','errorMessage','startsWith','slice','false','hKCHF','BROWSERSTACK_RERUN_TESTS','BROWSERSTACK_AUTOMATION','filter','dirname','HoJrP','unSTS','child_process','3|6|2|1|8|7|4|5|0','push','existsSync','resolvedConfigFile','browserstackSetupConfig.json','includes','../../helpers/logger','Error\x20in\x20closing\x20playwright','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','info','test','filterBrowserstackArgs','RRRrg','10IvDkVv','NpiPt','true','stringify','hpPrp','yMOIM','tJnrr','ZYOLy','clearTempPWConfig','wEttH','fwpUh','BROWSERSTACK_TEST_OBSERVABILITY','./reporter/pwUtils','350604eMewfA','GUbCA','pw_result.json','winstonLogger','isTypescriptProject','xTWXo','findIndex','assign','QXbJk','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','--disable-browserstack-automation','TXhkT','25125QtyKHE','bJGJD','concat','readFileSync','vHACy','get','wQXrV','Error\x20in\x20deleting\x20playwright\x20results','debug','PLAYWRIGHT','skipSessionStatus','714390chavDQ','homedir','LnjDY','error','length','LhsMh','exports','../../helpers/testhub/testhubHandler','4887384CTHiVK','../../helpers/BrowserStackSetup','1518717XBZMhu','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','Updated\x20config\x20file\x20name\x20to\x20-\x20','Playwright\x20process\x20exited\x20with\x20code\x20','BROWSERSTACK_RERUN','ySveQ','isUndefined','PEwIS','cliConfig','../../helpers/testhub/utils','util','iDwKT','DJuVt','playwright','inherit','path','aThol','../../helpers/test-observability/constants','ZlGgI','getConfigPath','serializeToYamlString','../../helpers/test-observability/error-handler','WPGOP','playwright-browserstack-sdk.config.js','NuBZq','WcBvU','cwd','stop','apply','wxyHd','7246683cqsFtW','NGCGG','nestedKeyValue','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','LBvmr','accessibilityOptions','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','npx','testContextOptions','map','ZSWEW','qgvFI','isTrue','xoVBf','--config=','getProxyUrl','accessibility','./accessibility-helper','ossoN','platform','3536652mVsCdN','../../helpers/accessibility-automation/helper','lIqBI','UqCJQ','exitCode','ipIra','EikZy','writeFileSync','lVWMz','NJGkA','env','../../helpers/test-observability/utils','PACKAGE_TYPE','BROWSERSTACK_TEST_ACCESSIBILITY_YML','automation','split','skipSessionName','PTiEY'];a35_0x249e=function(){return _0x368d3e;};return a35_0x249e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x27bd8f=a36_0x1499;function a36_0x1fbe(){const _0x41fdda=['46556azgAGB','child_process','../../helpers/helper','./patches','Running\x20existing\x20global\x20setup','4012400PcoNLZ','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','env','277365qUltLK','format','xpupz','apply','toString','UXUcV','Call\x20to\x20child\x20fork\x20with\x20args\x20','Path\x20','./mock-process.js','requirePWModule','resolve','2048550LeHZgv','42456ziPVhd','../../helpers/test-observability/constants','41OWUcxJ','./reporter/pwUtils','110AEAxZr','pJbEw','rarmu','fork','config','error','includes','219ToUxZC','Not\x20able\x20to\x20import\x20globalSetup','util','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','SIVUr','NvqPv','566658sgOwVX','../../helpers/logger','rZdqF','\x20is\x20not\x20found','debug','ezuRu','pzaly','exports','104wnhIpW','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','2773074hiJLhj'];a36_0x1fbe=function(){return _0x41fdda;};return a36_0x1fbe();}(function(_0x4eb8d3,_0x3081a6){const _0x367b0b=a36_0x1499,_0x15424e=_0x4eb8d3();while(!![]){try{const _0x1d9352=parseInt(_0x367b0b(0xda))/0x1*(parseInt(_0x367b0b(0xf4))/0x2)+parseInt(_0x367b0b(0xe3))/0x3*(parseInt(_0x367b0b(0xd8))/0x4)+parseInt(_0x367b0b(0xd7))/0x5+-parseInt(_0x367b0b(0xf3))/0x6+-parseInt(_0x367b0b(0xf9))/0x7+parseInt(_0x367b0b(0xf1))/0x8*(-parseInt(_0x367b0b(0xe9))/0x9)+parseInt(_0x367b0b(0xdc))/0xa*(parseInt(_0x367b0b(0xcc))/0xb);if(_0x1d9352===_0x3081a6)break;else _0x15424e['push'](_0x15424e['shift']());}catch(_0x38bac5){_0x15424e['push'](_0x15424e['shift']());}}}(a36_0x1fbe,0x894ea));const util=require(a36_0x27bd8f(0xe5)),child_process=require(a36_0x27bd8f(0xf5)),{FRAMEWORKS}=require(a36_0x27bd8f(0xd9)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a36_0x27bd8f(0xf6)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x27bd8f(0xdb)),{mockIsWorkerRedundant}=require(a36_0x27bd8f(0xf7)),logger=require(a36_0x27bd8f(0xea))['winstonLogger'];function a36_0x1499(_0x48a7b0,_0x5a0a93){const _0x1fbe37=a36_0x1fbe();return a36_0x1499=function(_0x149942,_0x1393c1){_0x149942=_0x149942-0xcb;let _0x25fd4e=_0x1fbe37[_0x149942];return _0x25fd4e;},a36_0x1499(_0x48a7b0,_0x5a0a93);}module[a36_0x27bd8f(0xf0)]=async function(_0xd0f57c){const _0x32c959=a36_0x27bd8f,_0x1e6f9b={'pzaly':function(_0x364809,_0x1d83a0){return _0x364809(_0x1d83a0);},'rarmu':function(_0x5708d7){return _0x5708d7();},'pJbEw':_0x32c959(0xd4),'cnzGW':function(_0xd20800){return _0xd20800();},'xpupz':function(_0x36990f){return _0x36990f();},'fgItF':_0x32c959(0xf8),'ezuRu':function(_0x1ec17b){return _0x1ec17b();},'nREgu':function(_0x54eb4e,_0x11a7f7){return _0x54eb4e(_0x11a7f7);},'SIVUr':function(_0xbb5b97,_0x221961){return _0xbb5b97>=_0x221961;},'NvqPv':'1.33.0','cIoMa':function(_0x55ea17,_0xcc38bd,_0x1778b9){return _0x55ea17(_0xcc38bd,_0x1778b9);},'rZdqF':function(_0x4e8710,_0x186a42){return _0x4e8710!==_0x186a42;},'AfMpB':'function','UXUcV':_0x32c959(0xe4)},_0x4392e0=child_process[_0x32c959(0xdf)];if(helper['isHandlePWErrorSet']())try{_0x1e6f9b[_0x32c959(0xce)](mockIsWorkerRedundant);}catch(_0x41b996){logger[_0x32c959(0xed)](_0x32c959(0xfa)+util[_0x32c959(0xcd)](_0x41b996));}child_process[_0x32c959(0xdf)]=function(){const _0x2f81e3=_0x32c959;return _0x1e6f9b[_0x2f81e3(0xef)](debug,_0x2f81e3(0xd2)+arguments[0x0]),arguments[0x0][_0x2f81e3(0xe2)](_0x1e6f9b[_0x2f81e3(0xde)](getForkProcessPath))?arguments[0x0]=require[_0x2f81e3(0xd6)](_0x1e6f9b[_0x2f81e3(0xdd)]):logger[_0x2f81e3(0xe1)](_0x2f81e3(0xd3)+_0x1e6f9b['cnzGW'](getForkProcessPath)+_0x2f81e3(0xec)),_0x4392e0[_0x2f81e3(0xcf)](null,arguments);};if(process['env'][_0x32c959(0xf2)]){_0x1e6f9b[_0x32c959(0xef)](debug,_0x1e6f9b['fgItF']);try{const {loadGlobalHook:_0x5b8a10}=helper[_0x32c959(0xd5)][_0x32c959(0xcf)](null,_0x1e6f9b[_0x32c959(0xee)](getLoadUtilsPath)),_0x3a0230=_0x1e6f9b['nREgu'](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x90841b=_0xd0f57c;if(_0x1e6f9b[_0x32c959(0xe7)](helper['compareVersions'](_0x3a0230,_0x1e6f9b[_0x32c959(0xe8)]),0x0)){const _0x41a877={};_0x41a877[_0x32c959(0xe0)]=_0xd0f57c,_0x90841b=_0x41a877;}const _0x63fc98=await _0x1e6f9b['cIoMa'](_0x5b8a10,_0x90841b,process[_0x32c959(0xcb)][_0x32c959(0xf2)]);if(_0x1e6f9b[_0x32c959(0xeb)](typeof _0x63fc98,_0x1e6f9b['AfMpB']))throw new Error(_0x1e6f9b[_0x32c959(0xd1)]);return _0x63fc98['apply'](null,arguments);}catch(_0x74e870){_0x1e6f9b[_0x32c959(0xef)](debug,_0x32c959(0xe6)+_0x74e870[_0x32c959(0xd0)]());}}};
|