browserstack-node-sdk 1.34.21 → 1.34.22
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/patchHelper.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_0x54f591=a29_0xf1ef;function a29_0x42df(){const _0x216dcc=['agent_','1492160Honcwp','Uuvjj','XcnuQ','moz:firefoxOptions','CuNiV','isUndefined','../../../helpers/accessibility-automation/helper','overrideGet','./helpers/patchHelper','HttpClient','safari.options','requireHttpClient','isBrowserstackInfra','../accessibility-automation/helper','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','keys','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','Hpubb','Setting\x20Browserstack\x20capabilities','optimalHubUrl','RlXUg','PVDIe','ieOptions','setGlobal','proxy_','__setBrowserOptions','pRyhe','../../../helpers/helper','then','https://','setServer','set','browserstackAgentObservability','Proxy\x20set\x20to\x20','ntrjn','lTZhI','__driversArray','getHubUrl','push','__driver','se:ieOptions','YcRbE','XpiiA','18ZQkTBZ','chromeOptions_','proxySettings','setLogLevel','KnUgf','OQETi','mMvFC','../../../helpers/logger','storeOptimalHubUrl','aCmsS','288LZzemZ','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','session_','vHReQ','logLevel','zBBoQ','YPxpS','proxyUrl','ieOptions_','newHubUrl','DtRrc','166HwaPTP','capability','AluqN','caps_','build','378987uryRFP','CAPABILITY_KEY','New\x20hub\x20url\x20set\x20to\x20','Builder','chromeOptions','VpRxs','FOREO','error','Tkxpj','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','../../../hubAllocationMethods','goog:chromeOptions','path','winstonLogger','1040120CtLUXW','info','send','isPacProxy','../../../helpers/patchHelpers','requireSeleniumWebdriver','firefoxOptions_','edgeOptions_','debug','originalBuilder','0|4|1|5|2|3','Hub\x20url\x20set\x20to\x20','3227587gRozid','setCapabilities','NYmLb','3232NjssOD','706WQyiUr','global','/wd/hub','safariOptions_','get','getGlobal','pFkkI','capabilities_','firefoxOptions','mergeDeep','../../../helpers/globals','__drivers','isAccessibilityPlatform','browserStackLogLevel','getAccessibilityResults','../../../bin/utils/constants','ms:edgeOptions','351RHmsIJ','split','geLxI','getHttpAgent','getRequestOptions','INbjC','url_','getAccessibilityResultsSummary','19288DzMmIt'];a29_0x42df=function(){return _0x216dcc;};return a29_0x42df();}(function(_0x1bbc42,_0x19002f){const _0x10bfea=a29_0xf1ef,_0x5c31ff=_0x1bbc42();while(!![]){try{const _0xccdc84=-parseInt(_0x10bfea(0x108))/0x1*(-parseInt(_0x10bfea(0xe5))/0x2)+parseInt(_0x10bfea(0xda))/0x3*(-parseInt(_0x10bfea(0x107))/0x4)+-parseInt(_0x10bfea(0xf8))/0x5+parseInt(_0x10bfea(0x14e))/0x6*(-parseInt(_0x10bfea(0xea))/0x7)+-parseInt(_0x10bfea(0x121))/0x8*(-parseInt(_0x10bfea(0x119))/0x9)+parseInt(_0x10bfea(0x123))/0xa+parseInt(_0x10bfea(0x104))/0xb;if(_0xccdc84===_0x19002f)break;else _0x5c31ff['push'](_0x5c31ff['shift']());}catch(_0x275706){_0x5c31ff['push'](_0x5c31ff['shift']());}}}(a29_0x42df,0x23f2d));function a29_0xf1ef(_0x57a248,_0x2525ab){const _0x42df39=a29_0x42df();return a29_0xf1ef=function(_0xf1ef33,_0x305eec){_0xf1ef33=_0xf1ef33-0xd4;let _0x58ca2f=_0x42df39[_0xf1ef33];return _0x58ca2f;},a29_0xf1ef(_0x57a248,_0x2525ab);}const logger=require(a29_0x54f591(0xd7))[a29_0x54f591(0xf7)],helper=require(a29_0x54f591(0x13e)),constants=require(a29_0x54f591(0x117)),hubAllocator=require(a29_0x54f591(0xf4)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x54f591(0xfc)),{setAccessibilityCapabilities,setExtension}=require(a29_0x54f591(0x130)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x54f591(0x129)),globals=require(a29_0x54f591(0x112)),{overrideExecute}=require(a29_0x54f591(0x12b)),modify=(_0x1ab4f5,_0x3fa8ac=null,_0x29cd5f=![])=>{const _0x338f5b=a29_0x54f591,_0x4eba39={'aCmsS':function(_0x14dcc5,_0x214cc5){return _0x14dcc5!==_0x214cc5;},'DLXYE':'/session','Hpubb':function(_0x28eeba,_0x360f1c){return _0x28eeba+_0x360f1c;},'XcnuQ':function(_0x1af252,_0x791a7f){return _0x1af252+_0x791a7f;},'AluqN':_0x338f5b(0x140),'YPxpS':_0x338f5b(0x10a),'ntrjn':_0x338f5b(0xf5),'Uuvjj':_0x338f5b(0xee),'CuNiV':_0x338f5b(0x118),'NYmLb':'edgeOptions','DtRrc':_0x338f5b(0x126),'FOREO':_0x338f5b(0x110),'qpCWq':_0x338f5b(0x12d),'Tkxpj':_0x338f5b(0x14b),'Qwyxh':_0x338f5b(0x139),'uyeCz':function(_0x58d6cf,_0x2c5ae3){return _0x58d6cf===_0x2c5ae3;},'pFkkI':'object','pLsZr':_0x338f5b(0x135),'FwulD':_0x338f5b(0x136),'ijxoT':_0x338f5b(0x133),'PVDIe':function(_0x1431ae,_0x409456,_0x42d933){return _0x1431ae(_0x409456,_0x42d933);},'vHReQ':function(_0x387522,_0x1b2adc,_0x1533c8){return _0x387522(_0x1b2adc,_0x1533c8);},'OQETi':function(_0x2ded84,_0x151c7d){return _0x2ded84(_0x151c7d);},'MseLw':_0x338f5b(0x102),'zBBoQ':function(_0x2dc5ea){return _0x2dc5ea();},'KnUgf':_0x338f5b(0x114),'INbjC':function(_0x4ad6a6,_0x3b0d13,_0x3fece1){return _0x4ad6a6(_0x3b0d13,_0x3fece1);},'Vfogp':_0x338f5b(0xdb),'OFNOq':function(_0x52e643,_0x2841e1,_0x30db48){return _0x52e643(_0x2841e1,_0x30db48);},'pRyhe':function(_0x20e792,_0x259911){return _0x20e792!==_0x259911;},'XpiiA':function(_0x14d6e2,_0x58e761){return _0x14d6e2!==_0x58e761;},'RlXUg':_0x338f5b(0xf3),'lTZhI':'Modifying\x20webdriver\x20builder'},_0x32b925=helper[_0x338f5b(0x12e)]();let _0x33e2e9;try{_0x33e2e9=helper[_0x338f5b(0xfd)](),_0x33e2e9['originalBuilder']&&(_0x33e2e9[_0x338f5b(0xed)]=_0x33e2e9[_0x338f5b(0x101)]);}catch(_0x1b27ca){return;}if(helper[_0x338f5b(0x12f)]()){const _0x19ce03={};_0x19ce03[_0x338f5b(0xde)]=_0x1ab4f5[_0x338f5b(0x115)],helper[_0x338f5b(0x151)](_0x19ce03,new Map(),new Map()),logger[_0x338f5b(0xf9)](_0x4eba39[_0x338f5b(0x137)]),logger[_0x338f5b(0x100)](_0x4eba39[_0x338f5b(0x146)]);}class _0x3af796 extends _0x32b925[_0x338f5b(0x12c)]{['send'](_0x24a645){const _0x1a9b84=_0x338f5b;if(_0x4eba39[_0x1a9b84(0xd9)](_0x24a645[_0x1a9b84(0xf6)],_0x4eba39['DLXYE'])&&_0x4eba39[_0x1a9b84(0xd9)](global[_0x1a9b84(0xe3)],''))try{global[_0x1a9b84(0xe3)]=_0x4eba39[_0x1a9b84(0x134)](_0x4eba39[_0x1a9b84(0x125)](_0x4eba39[_0x1a9b84(0xe7)],global[_0x1a9b84(0xe3)]),_0x4eba39[_0x1a9b84(0xe0)]),this['options_']=hubAllocator[_0x1a9b84(0x11d)](global['newHubUrl']),logger[_0x1a9b84(0x100)](_0x1a9b84(0xec)+global[_0x1a9b84(0xe3)]),global[_0x1a9b84(0xe3)]='';}catch(_0x2caea7){logger[_0x1a9b84(0xf1)](_0x2caea7);}return super[_0x1a9b84(0xfa)](_0x24a645);}}class _0x274866 extends _0x33e2e9['Builder']{[_0x338f5b(0x141)](){const _0x15c7fd=_0x338f5b;return this['url_']=helper[_0x15c7fd(0x148)](_0x1ab4f5),logger[_0x15c7fd(0x100)](_0x15c7fd(0x103)+this[_0x15c7fd(0x11f)]),this;}[_0x338f5b(0x13c)](_0x5ba40a){const _0x1cbb1f=_0x338f5b;let _0x339e20={};for(const _0x3a2fc5 in _0x5ba40a){switch(_0x3a2fc5){case _0x4eba39[_0x1cbb1f(0x145)]:case _0x4eba39[_0x1cbb1f(0x124)]:this[_0x1cbb1f(0x14f)]&&(_0x339e20=this['chromeOptions_'][_0x1cbb1f(0x10c)](this[_0x1cbb1f(0x14f)][_0x1cbb1f(0xeb)])||{},this[_0x1cbb1f(0x14f)][_0x1cbb1f(0x142)](this['chromeOptions_'][_0x1cbb1f(0xeb)],helper[_0x1cbb1f(0x111)](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;case _0x4eba39[_0x1cbb1f(0x127)]:case _0x4eba39[_0x1cbb1f(0x106)]:this[_0x1cbb1f(0xff)]&&(_0x339e20=this[_0x1cbb1f(0xff)][_0x1cbb1f(0x10c)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x1cbb1f(0xff)][_0x1cbb1f(0x142)](this['edgeOptions_'][_0x1cbb1f(0xeb)],helper[_0x1cbb1f(0x111)](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;case _0x4eba39[_0x1cbb1f(0xe4)]:case _0x4eba39[_0x1cbb1f(0xf0)]:this['firefoxOptions_']&&(_0x339e20=this['firefoxOptions_'][_0x1cbb1f(0x10c)](this[_0x1cbb1f(0xfe)]['CAPABILITY_KEY'])||{},this[_0x1cbb1f(0xfe)]['set'](this['firefoxOptions_']['CAPABILITY_KEY'],helper['mergeDeep'](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;case _0x4eba39['qpCWq']:this[_0x1cbb1f(0x10b)]&&(_0x339e20=this['safariOptions_'][_0x1cbb1f(0x10c)](this[_0x1cbb1f(0x10b)][_0x1cbb1f(0xeb)])||{},this['safariOptions_'][_0x1cbb1f(0x142)](this[_0x1cbb1f(0x10b)][_0x1cbb1f(0xeb)],helper[_0x1cbb1f(0x111)](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;case _0x4eba39[_0x1cbb1f(0xf2)]:case _0x4eba39['Qwyxh']:this[_0x1cbb1f(0xe2)]&&(_0x339e20=this[_0x1cbb1f(0xe2)][_0x1cbb1f(0x10c)](this[_0x1cbb1f(0xe2)]['CAPABILITY_KEY'])||{},this[_0x1cbb1f(0xe2)][_0x1cbb1f(0x142)](this[_0x1cbb1f(0xe2)][_0x1cbb1f(0xeb)],helper[_0x1cbb1f(0x111)](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;}}}[_0x338f5b(0x105)](){const _0x3eca9b=_0x338f5b;return logger[_0x3eca9b(0x100)](_0x4eba39['pLsZr']),this[_0x3eca9b(0x13c)](_0x1ab4f5[_0x3eca9b(0xe6)]),Object[_0x3eca9b(0x132)](_0x1ab4f5[_0x3eca9b(0xe6)])['forEach'](_0x21ec16=>{const _0x463820=_0x3eca9b,_0x5a427c=this['capabilities_']['get'](_0x21ec16);_0x4eba39['uyeCz'](typeof _0x5a427c,_0x4eba39[_0x463820(0x10e)])?this[_0x463820(0x10f)]['set'](_0x21ec16,helper[_0x463820(0x111)](_0x5a427c,_0x1ab4f5[_0x463820(0xe6)][_0x21ec16])):this['capabilities_'][_0x463820(0x142)](_0x21ec16,_0x1ab4f5[_0x463820(0xe6)][_0x21ec16]);}),this;}['build'](){const _0x52abf2=_0x338f5b,_0xd8e4fc={'VpRxs':function(_0x5c4a13,_0x19bfc0,_0x418ff3){const _0x5e3295=a29_0xf1ef;return _0x4eba39[_0x5e3295(0xdd)](_0x5c4a13,_0x19bfc0,_0x418ff3);},'OmaUo':function(_0x49cb20,_0x542fb6,_0x3303ff){const _0x58998a=a29_0xf1ef;return _0x4eba39[_0x58998a(0x138)](_0x49cb20,_0x542fb6,_0x3303ff);},'mMvFC':function(_0x213881,_0x20e2b8){const _0x317f37=a29_0xf1ef;return _0x4eba39[_0x317f37(0xd5)](_0x213881,_0x20e2b8);},'YcRbE':function(_0x58d88d,_0x192da4,_0x4bda7b){const _0x136c2c=a29_0xf1ef;return _0x4eba39[_0x136c2c(0xdd)](_0x58d88d,_0x192da4,_0x4bda7b);}};if(helper['isBrowserstackInfra']()){const _0x9777e4=_0x4eba39['MseLw'][_0x52abf2(0x11a)]('|');let _0x5bbb3c=0x0;while(!![]){switch(_0x9777e4[_0x5bbb3c++]){case'0':_0x4eba39[_0x52abf2(0xdf)](isAccessibilityAutomationSession)&&_0x4eba39['OQETi'](setAccessibilityCapabilities,_0x1ab4f5);continue;case'1':this[_0x52abf2(0x105)]();continue;case'2':globals[_0x52abf2(0x10d)](_0x4eba39['KnUgf'])&&(!_0x4eba39[_0x52abf2(0x11e)](setExtension,this,_0x1ab4f5)&&globals[_0x52abf2(0x13a)](_0x4eba39[_0x52abf2(0xd4)],![]));continue;case'3':logger[_0x52abf2(0x100)](_0x4eba39['Vfogp']);continue;case'4':this[_0x52abf2(0x141)]();continue;case'5':if(helper[_0x52abf2(0xfb)](_0x1ab4f5[_0x52abf2(0x150)][_0x52abf2(0xe1)]))this[_0x52abf2(0x122)]=helper[_0x52abf2(0x11c)](_0x1ab4f5[_0x52abf2(0x150)]['proxyUrl']);else _0x1ab4f5[_0x52abf2(0x150)][_0x52abf2(0xe1)]&&(this[_0x52abf2(0x13b)]=_0x1ab4f5[_0x52abf2(0x150)]['proxyUrl'],logger[_0x52abf2(0x100)](_0x52abf2(0x144)+this['proxy_']));continue;}break;}}const _0x347616=super[_0x52abf2(0xe9)]();return _0x347616[_0x52abf2(0xdc)][_0x52abf2(0x13f)](_0x486280=>{const _0xb31183=_0x52abf2;try{const _0xfdd1e9=_0x486280[_0xb31183(0xe8)]['get'](_0x4eba39['FwulD']);_0xfdd1e9?(logger['debug']('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0xfdd1e9),hubAllocator['updateHubUrl'](_0xfdd1e9),helper[_0xb31183(0xd8)](_0xfdd1e9)):logger[_0xb31183(0x100)](_0x4eba39['ijxoT']);}catch(_0x491493){logger[_0xb31183(0x100)](_0xb31183(0x131)+_0x491493);}}),_0x347616['quitCount_']=0x0,_0x347616[_0x52abf2(0x13f)]&&_0x347616[_0x52abf2(0x13f)](_0x54c116=>{const _0x1efff6=_0x52abf2,_0x181161={'geLxI':function(_0x30783a,_0x5c333f,_0x2e9009){const _0x27b855=a29_0xf1ef;return _0xd8e4fc[_0x27b855(0xef)](_0x30783a,_0x5c333f,_0x2e9009);},'VVLhm':function(_0x546bb6,_0x13b2b5,_0x2c2758){return _0xd8e4fc['OmaUo'](_0x546bb6,_0x13b2b5,_0x2c2758);}};_0xd8e4fc[_0x1efff6(0xef)](overrideQuit,_0x54c116,_0x347616),_0xd8e4fc[_0x1efff6(0xd6)](overrideTakeScreenshot,_0x54c116),helper[_0x1efff6(0x12a)](_0x54c116,_0x1ab4f5),_0xd8e4fc[_0x1efff6(0x14c)](overrideExecute,_0x54c116,_0x1ab4f5),_0x54c116['getAccessibilityResultsSummary']=async()=>{const _0x23b32a=_0x1efff6;return await _0x181161[_0x23b32a(0x11b)](getAccessibilityResultsSummary,_0x54c116,global);},_0x54c116[_0x1efff6(0x116)]=async()=>{return await _0x181161['VVLhm'](getAccessibilityResults,_0x54c116,global);};}),_0x347616[_0x52abf2(0x120)]=async()=>{const _0xa5d425=_0x52abf2;return await _0x4eba39[_0xa5d425(0x138)](getAccessibilityResultsSummary,_0x347616,global);},_0x347616['getAccessibilityResults']=async()=>{return await _0xd8e4fc['VpRxs'](getAccessibilityResults,_0x347616,global);},_0x4eba39['OQETi'](overrideTakeScreenshot,_0x347616),_0x4eba39[_0x52abf2(0xd5)](overrideQuit,_0x347616),helper['overrideGet'](_0x347616,_0x1ab4f5),_0x4eba39['OFNOq'](overrideExecute,_0x347616,_0x1ab4f5),helper[_0x52abf2(0x128)](global[_0x52abf2(0x147)])&&(global['__driversArray']=[]),helper[_0x52abf2(0x128)](global[_0x52abf2(0x113)])&&(global[_0x52abf2(0x113)]=[]),global[_0x52abf2(0x147)]['push'](_0x347616),global[_0x52abf2(0x14a)]=_0x347616,_0x4eba39[_0x52abf2(0x13d)](global[_0x52abf2(0x113)],undefined)&&global[_0x52abf2(0x113)][_0x52abf2(0x149)](_0x347616),_0x3fa8ac&&helper[_0x52abf2(0x128)](_0x3fa8ac[_0x52abf2(0x109)][_0x52abf2(0x147)])&&(_0x3fa8ac[_0x52abf2(0x109)][_0x52abf2(0x147)]=[]),_0x3fa8ac&&_0x4eba39[_0x52abf2(0x14d)](_0x3fa8ac['global'][_0x52abf2(0x113)],undefined)&&(_0x3fa8ac[_0x52abf2(0x109)][_0x52abf2(0x113)]['push'](_0x347616),_0x3fa8ac['global'][_0x52abf2(0x147)]['push'](_0x347616)),_0x347616;}}return _0x33e2e9['originalBuilder']=_0x33e2e9[_0x338f5b(0xed)],_0x33e2e9[_0x338f5b(0xed)]=_0x274866,_0x32b925[_0x338f5b(0x12c)]=_0x3af796,_0x33e2e9;};module['exports'][a29_0x54f591(0x143)]=modify;
|
|
1
|
+
const a29_0xc68e19=a29_0x6bd7;(function(_0x5b8fcb,_0x26dae8){const _0x2593b8=a29_0x6bd7,_0x1b37bc=_0x5b8fcb();while(!![]){try{const _0xfe4475=parseInt(_0x2593b8(0xaa))/0x1*(parseInt(_0x2593b8(0xcb))/0x2)+-parseInt(_0x2593b8(0xa2))/0x3*(parseInt(_0x2593b8(0xf7))/0x4)+-parseInt(_0x2593b8(0xdb))/0x5*(-parseInt(_0x2593b8(0xb3))/0x6)+parseInt(_0x2593b8(0xee))/0x7*(-parseInt(_0x2593b8(0x9f))/0x8)+parseInt(_0x2593b8(0x9d))/0x9+-parseInt(_0x2593b8(0x8c))/0xa*(-parseInt(_0x2593b8(0xd5))/0xb)+parseInt(_0x2593b8(0xc9))/0xc;if(_0xfe4475===_0x26dae8)break;else _0x1b37bc['push'](_0x1b37bc['shift']());}catch(_0x23639a){_0x1b37bc['push'](_0x1b37bc['shift']());}}}(a29_0x1b09,0x4a0ee));function a29_0x1b09(){const _0x50d7be=['isBrowserstackInfra','DjjmR','winstonLogger','../../../helpers/accessibility-automation/helper','capability','epafx','HttpClient','path','chromeOptions','url_','proxy_','firefoxOptions','../../../helpers/logger','se:ieOptions','dJwZR','2500101oOxqjV','ACWGf','2552zIiScj','3|2|0|4|5|1','getGlobal','157299tiLcDy','optimalHubUrl','Rwjqz','edgeOptions','moz:firefoxOptions','Modifying\x20webdriver\x20builder','browserStackLogLevel','caps_','26711YdXSCx','__setBrowserOptions','originalBuilder','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','edgeOptions_','IjvRc','XeZOH','proxySettings','getRequestOptions','78ikTrFO','agent_','ms:edgeOptions','isPacProxy','setLogLevel','capabilities_','isAccessibilityPlatform','Hmvsp','getAccessibilityResults','split','/session','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','HeBqc','send','hehPw','set','aCgaR','jxHgK','FclSz','overrideGet','JBHnH','proxyUrl','383280GDwizA','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','14qaskyw','../accessibility-automation/helper','FpbFv','quitCount_','oFhJP','options_','../../../helpers/globals','newHubUrl','object','requireSeleniumWebdriver','11NWnWns','Setting\x20Browserstack\x20capabilities','tDqGD','setGlobal','Proxy\x20set\x20to\x20','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','13885LIOYrw','/wd/hub','debug','mergeDeep','zpMpy','lPZJn','ieOptions_','./helpers/patchHelper','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','__driver','safariOptions_','getHttpAgent','safari.options','CAPABILITY_KEY','../../../bin/utils/constants','aStci','jOBUc','BaBEP','firefoxOptions_','10689ppvXgA','https://','storeOptimalHubUrl','__driversArray','ZEjaB','Hub\x20url\x20set\x20to\x20','TpFBL','BfIlo','browserstackAgentObservability','24YdNUXh','then','exports','global','build','../../../helpers/helper','getAccessibilityResultsSummary','forEach','New\x20hub\x20url\x20set\x20to\x20','chromeOptions_','iavMi','goog:chromeOptions','setCapabilities','__drivers','isUndefined','KnXtE','setServer','get','UNXZv','dWRWj','Builder','LWYev','5722460JrpAnr','error'];a29_0x1b09=function(){return _0x50d7be;};return a29_0x1b09();}function a29_0x6bd7(_0x52958f,_0x5c1f2f){const _0x1b0980=a29_0x1b09();return a29_0x6bd7=function(_0x6bd7d5,_0x24088b){_0x6bd7d5=_0x6bd7d5-0x89;let _0x10b281=_0x1b0980[_0x6bd7d5];return _0x10b281;},a29_0x6bd7(_0x52958f,_0x5c1f2f);}const logger=require(a29_0xc68e19(0x9a))[a29_0xc68e19(0x90)],helper=require(a29_0xc68e19(0xfc)),constants=require(a29_0xc68e19(0xe9)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a29_0xc68e19(0xcc)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0xc68e19(0x91)),globals=require(a29_0xc68e19(0xd1)),{overrideExecute}=require(a29_0xc68e19(0xe2)),modify=(_0x23f71f,_0x16d0f6=null,_0x1e8c85=![])=>{const _0x245d9e=a29_0xc68e19,_0x2ae487={'jOBUc':function(_0x3ca082,_0xf01b73){return _0x3ca082!==_0xf01b73;},'iavMi':_0x245d9e(0xbd),'mjEqe':function(_0x246eb4,_0x4099fe){return _0x246eb4!==_0x4099fe;},'KnXtE':function(_0x59a753,_0x47e5bd){return _0x59a753+_0x47e5bd;},'ZEjaB':_0x245d9e(0xef),'tDqGD':_0x245d9e(0xdc),'lPZJn':_0x245d9e(0x102),'UasMb':_0x245d9e(0x96),'xqMrG':_0x245d9e(0xb5),'CTiIL':_0x245d9e(0xa5),'BaBEP':_0x245d9e(0xa6),'oFhJP':_0x245d9e(0x99),'Hmvsp':_0x245d9e(0xe7),'epafx':_0x245d9e(0x9b),'UNXZv':'ieOptions','uDTlm':function(_0x2c89b9,_0x6ec365){return _0x2c89b9===_0x6ec365;},'ACWGf':_0x245d9e(0xd3),'RKyon':_0x245d9e(0xd6),'jxHgK':function(_0x5b7447,_0x30f0e0,_0x55e6d1){return _0x5b7447(_0x30f0e0,_0x55e6d1);},'OJFsc':function(_0x5ba731,_0x54b0fd,_0xbdd4d0){return _0x5ba731(_0x54b0fd,_0xbdd4d0);},'aStci':function(_0x5f40fd,_0x21cf7c){return _0x5f40fd(_0x21cf7c);},'dWRWj':function(_0x4c2672,_0x35cdde,_0x241052){return _0x4c2672(_0x35cdde,_0x241052);},'pvSak':function(_0x2855a9,_0x165591,_0x67ae62){return _0x2855a9(_0x165591,_0x67ae62);},'HeBqc':_0x245d9e(0xa3),'hehPw':_0x245d9e(0xca),'zpMpy':function(_0x1facdc,_0x3b27e3,_0x4a4a1d){return _0x1facdc(_0x3b27e3,_0x4a4a1d);},'BfIlo':_0x245d9e(0xa0),'qIXVb':_0x245d9e(0xad),'LWYev':function(_0x2a4749){return _0x2a4749();},'TpFBL':function(_0x45fb2a,_0x155577){return _0x45fb2a(_0x155577);},'dJwZR':_0x245d9e(0xb9),'ryIjg':function(_0x374fdf,_0x5828f1){return _0x374fdf(_0x5828f1);},'Rwjqz':_0x245d9e(0xe3),'FclSz':_0x245d9e(0xa7)},_0x59eb50=helper['requireHttpClient']();let _0x56fcc2;try{_0x56fcc2=helper[_0x245d9e(0xd4)](),_0x56fcc2[_0x245d9e(0xac)]&&(_0x56fcc2[_0x245d9e(0x8a)]=_0x56fcc2[_0x245d9e(0xac)]);}catch(_0x25e10e){return;}if(helper[_0x245d9e(0x8e)]()){const _0x4cff00={};_0x4cff00['logLevel']=_0x23f71f[_0x245d9e(0xa8)],helper[_0x245d9e(0xb7)](_0x4cff00,new Map(),new Map()),logger['info'](_0x2ae487[_0x245d9e(0xa4)]),logger[_0x245d9e(0xdd)](_0x2ae487[_0x245d9e(0xc5)]);}class _0x1347ae extends _0x59eb50[_0x245d9e(0x94)]{[_0x245d9e(0xc0)](_0x3c0aeb){const _0x46d7ff=_0x245d9e;if(_0x2ae487[_0x46d7ff(0xeb)](_0x3c0aeb[_0x46d7ff(0x95)],_0x2ae487[_0x46d7ff(0x101)])&&_0x2ae487['mjEqe'](global[_0x46d7ff(0xd2)],''))try{global['newHubUrl']=_0x2ae487[_0x46d7ff(0x106)](_0x2ae487[_0x46d7ff(0x106)](_0x2ae487[_0x46d7ff(0xf2)],global[_0x46d7ff(0xd2)]),_0x2ae487[_0x46d7ff(0xd7)]),this[_0x46d7ff(0xd0)]=hubAllocator[_0x46d7ff(0xb2)](global['newHubUrl']),logger[_0x46d7ff(0xdd)](_0x46d7ff(0xff)+global[_0x46d7ff(0xd2)]),global[_0x46d7ff(0xd2)]='';}catch(_0x50c974){logger[_0x46d7ff(0x8d)](_0x50c974);}return super['send'](_0x3c0aeb);}}class _0x21983b extends _0x56fcc2[_0x245d9e(0x8a)]{[_0x245d9e(0x107)](){const _0xe90d17=_0x245d9e;return this[_0xe90d17(0x97)]=helper['getHubUrl'](_0x23f71f),logger['debug'](_0xe90d17(0xf3)+this[_0xe90d17(0x97)]),this;}[_0x245d9e(0xab)](_0xe161c7){const _0x46ffa3=_0x245d9e;let _0x4b0504={};for(const _0x3f539c in _0xe161c7){switch(_0x3f539c){case _0x2ae487[_0x46ffa3(0xe0)]:case _0x2ae487['UasMb']:this[_0x46ffa3(0x100)]&&(_0x4b0504=this[_0x46ffa3(0x100)]['get'](this[_0x46ffa3(0x100)][_0x46ffa3(0xe8)])||{},this[_0x46ffa3(0x100)][_0x46ffa3(0xc2)](this[_0x46ffa3(0x100)]['CAPABILITY_KEY'],helper[_0x46ffa3(0xde)](_0x4b0504,_0xe161c7[_0x3f539c])));break;case _0x2ae487['xqMrG']:case _0x2ae487['CTiIL']:this[_0x46ffa3(0xae)]&&(_0x4b0504=this[_0x46ffa3(0xae)][_0x46ffa3(0x108)](this[_0x46ffa3(0xae)][_0x46ffa3(0xe8)])||{},this[_0x46ffa3(0xae)]['set'](this[_0x46ffa3(0xae)][_0x46ffa3(0xe8)],helper[_0x46ffa3(0xde)](_0x4b0504,_0xe161c7[_0x3f539c])));break;case _0x2ae487[_0x46ffa3(0xec)]:case _0x2ae487[_0x46ffa3(0xcf)]:this[_0x46ffa3(0xed)]&&(_0x4b0504=this[_0x46ffa3(0xed)][_0x46ffa3(0x108)](this['firefoxOptions_'][_0x46ffa3(0xe8)])||{},this[_0x46ffa3(0xed)][_0x46ffa3(0xc2)](this[_0x46ffa3(0xed)][_0x46ffa3(0xe8)],helper[_0x46ffa3(0xde)](_0x4b0504,_0xe161c7[_0x3f539c])));break;case _0x2ae487[_0x46ffa3(0xba)]:this[_0x46ffa3(0xe5)]&&(_0x4b0504=this[_0x46ffa3(0xe5)][_0x46ffa3(0x108)](this[_0x46ffa3(0xe5)]['CAPABILITY_KEY'])||{},this[_0x46ffa3(0xe5)]['set'](this[_0x46ffa3(0xe5)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x4b0504,_0xe161c7[_0x3f539c])));break;case _0x2ae487[_0x46ffa3(0x93)]:case _0x2ae487[_0x46ffa3(0x109)]:this['ieOptions_']&&(_0x4b0504=this['ieOptions_'][_0x46ffa3(0x108)](this[_0x46ffa3(0xe1)]['CAPABILITY_KEY'])||{},this[_0x46ffa3(0xe1)][_0x46ffa3(0xc2)](this[_0x46ffa3(0xe1)][_0x46ffa3(0xe8)],helper[_0x46ffa3(0xde)](_0x4b0504,_0xe161c7[_0x3f539c])));break;}}}[_0x245d9e(0x103)](){const _0x32a671=_0x245d9e,_0x41377e={'JBHnH':function(_0x310527,_0x8d83f7){return _0x2ae487['uDTlm'](_0x310527,_0x8d83f7);},'DjjmR':_0x2ae487[_0x32a671(0x9e)]};return logger[_0x32a671(0xdd)](_0x2ae487['RKyon']),this[_0x32a671(0xab)](_0x23f71f[_0x32a671(0x92)]),Object['keys'](_0x23f71f[_0x32a671(0x92)])[_0x32a671(0xfe)](_0x3d5df2=>{const _0x3e1fd6=_0x32a671,_0x5bcd43=this[_0x3e1fd6(0xb8)][_0x3e1fd6(0x108)](_0x3d5df2);_0x41377e[_0x3e1fd6(0xc7)](typeof _0x5bcd43,_0x41377e[_0x3e1fd6(0x8f)])?this[_0x3e1fd6(0xb8)]['set'](_0x3d5df2,helper[_0x3e1fd6(0xde)](_0x5bcd43,_0x23f71f['capability'][_0x3d5df2])):this[_0x3e1fd6(0xb8)][_0x3e1fd6(0xc2)](_0x3d5df2,_0x23f71f[_0x3e1fd6(0x92)][_0x3d5df2]);}),this;}['build'](){const _0xd87456=_0x245d9e,_0x1bd623={'IjvRc':_0x2ae487[_0xd87456(0xbf)],'aCgaR':_0x2ae487[_0xd87456(0xc1)],'bOpfw':function(_0x4a3aac,_0x3d7233,_0x2f00e9){const _0x18f7d2=_0xd87456;return _0x2ae487[_0x18f7d2(0xdf)](_0x4a3aac,_0x3d7233,_0x2f00e9);},'XeZOH':function(_0x423429,_0x5b5176,_0x5aeac0){return _0x2ae487['jxHgK'](_0x423429,_0x5b5176,_0x5aeac0);}};if(helper[_0xd87456(0x8e)]()){const _0x58ff6e=_0x2ae487[_0xd87456(0xf5)][_0xd87456(0xbc)]('|');let _0x42301e=0x0;while(!![]){switch(_0x58ff6e[_0x42301e++]){case'0':this[_0xd87456(0x103)]();continue;case'1':logger[_0xd87456(0xdd)](_0x2ae487['qIXVb']);continue;case'2':this[_0xd87456(0x107)]();continue;case'3':_0x2ae487[_0xd87456(0x8b)](isAccessibilityAutomationSession)&&_0x2ae487[_0xd87456(0xf4)](setAccessibilityCapabilities,_0x23f71f);continue;case'4':if(helper[_0xd87456(0xb6)](_0x23f71f[_0xd87456(0xb1)][_0xd87456(0xc8)]))this[_0xd87456(0xb4)]=helper[_0xd87456(0xe6)](_0x23f71f[_0xd87456(0xb1)][_0xd87456(0xc8)]);else _0x23f71f[_0xd87456(0xb1)][_0xd87456(0xc8)]&&(this[_0xd87456(0x98)]=_0x23f71f[_0xd87456(0xb1)]['proxyUrl'],logger[_0xd87456(0xdd)](_0xd87456(0xd9)+this[_0xd87456(0x98)]));continue;case'5':globals[_0xd87456(0xa1)](_0x2ae487[_0xd87456(0x9c)])&&(!_0x2ae487[_0xd87456(0xc4)](setExtension,this,_0x23f71f)&&globals[_0xd87456(0xd8)](_0x2ae487[_0xd87456(0x9c)],![]));continue;}break;}}const _0x2352eb=super[_0xd87456(0xfb)]();return _0x2352eb['session_'][_0xd87456(0xf8)](_0x3c4d2c=>{const _0x34dc0d=_0xd87456;try{const _0x3ad281=_0x3c4d2c[_0x34dc0d(0xa9)]['get'](_0x1bd623[_0x34dc0d(0xaf)]);_0x3ad281?(logger['debug'](_0x34dc0d(0xbe)+_0x3ad281),hubAllocator['updateHubUrl'](_0x3ad281),helper[_0x34dc0d(0xf0)](_0x3ad281)):logger[_0x34dc0d(0xdd)](_0x1bd623[_0x34dc0d(0xc3)]);}catch(_0x52d290){logger['debug'](_0x34dc0d(0xda)+_0x52d290);}}),_0x2352eb[_0xd87456(0xce)]=0x0,_0x2352eb[_0xd87456(0xf8)]&&_0x2352eb['then'](_0x2fc561=>{const _0x509efa=_0xd87456,_0x114d99={'FpbFv':function(_0xd6c16d,_0x17bff8,_0x4f352d){return _0x2ae487['jxHgK'](_0xd6c16d,_0x17bff8,_0x4f352d);}};_0x2ae487['OJFsc'](overrideQuit,_0x2fc561,_0x2352eb),_0x2ae487[_0x509efa(0xea)](overrideTakeScreenshot,_0x2fc561),helper[_0x509efa(0xc6)](_0x2fc561,_0x23f71f),_0x2ae487[_0x509efa(0x89)](overrideExecute,_0x2fc561,_0x23f71f),_0x2fc561['getAccessibilityResultsSummary']=async()=>{const _0x135e0a=_0x509efa;return await _0x114d99[_0x135e0a(0xcd)](getAccessibilityResultsSummary,_0x2fc561,global);},_0x2fc561[_0x509efa(0xbb)]=async()=>{return await _0x1bd623['bOpfw'](getAccessibilityResults,_0x2fc561,global);};}),_0x2352eb[_0xd87456(0xfd)]=async()=>{return await _0x2ae487['pvSak'](getAccessibilityResultsSummary,_0x2352eb,global);},_0x2352eb['getAccessibilityResults']=async()=>{const _0x3e10cb=_0xd87456;return await _0x1bd623[_0x3e10cb(0xb0)](getAccessibilityResults,_0x2352eb,global);},_0x2ae487['TpFBL'](overrideTakeScreenshot,_0x2352eb),_0x2ae487['ryIjg'](overrideQuit,_0x2352eb),helper[_0xd87456(0xc6)](_0x2352eb,_0x23f71f),_0x2ae487[_0xd87456(0x89)](overrideExecute,_0x2352eb,_0x23f71f),helper['isUndefined'](global[_0xd87456(0xf1)])&&(global[_0xd87456(0xf1)]=[]),helper[_0xd87456(0x105)](global[_0xd87456(0x104)])&&(global[_0xd87456(0x104)]=[]),global[_0xd87456(0xf1)]['push'](_0x2352eb),global[_0xd87456(0xe4)]=_0x2352eb,_0x2ae487[_0xd87456(0xeb)](global[_0xd87456(0x104)],undefined)&&global[_0xd87456(0x104)]['push'](_0x2352eb),_0x16d0f6&&helper[_0xd87456(0x105)](_0x16d0f6['global'][_0xd87456(0xf1)])&&(_0x16d0f6['global'][_0xd87456(0xf1)]=[]),_0x16d0f6&&_0x2ae487[_0xd87456(0xeb)](_0x16d0f6[_0xd87456(0xfa)][_0xd87456(0x104)],undefined)&&(_0x16d0f6[_0xd87456(0xfa)][_0xd87456(0x104)]['push'](_0x2352eb),_0x16d0f6[_0xd87456(0xfa)]['__driversArray']['push'](_0x2352eb)),_0x2352eb;}}return _0x56fcc2[_0x245d9e(0xac)]=_0x56fcc2[_0x245d9e(0x8a)],_0x56fcc2['Builder']=_0x21983b,_0x59eb50[_0x245d9e(0x94)]=_0x1347ae,_0x56fcc2;};module[a29_0xc68e19(0xf9)][a29_0xc68e19(0xf6)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x2ef678=a30_0x19e0;function a30_0x19e0(_0x348c60,_0x3a42bd){const _0x4e2f6b=a30_0x4e2f();return a30_0x19e0=function(_0x19e039,_0x4a8391){_0x19e039=_0x19e039-0x1e4;let _0x5ea7a4=_0x4e2f6b[_0x19e039];return _0x5ea7a4;},a30_0x19e0(_0x348c60,_0x3a42bd);}(function(_0x199120,_0x4b0644){const _0x59efe5=a30_0x19e0,_0x17640f=_0x199120();while(!![]){try{const _0x55b887=parseInt(_0x59efe5(0x1f2))/0x1*(-parseInt(_0x59efe5(0x1f3))/0x2)+parseInt(_0x59efe5(0x1ed))/0x3*(-parseInt(_0x59efe5(0x1f1))/0x4)+-parseInt(_0x59efe5(0x1ee))/0x5*(-parseInt(_0x59efe5(0x1e7))/0x6)+-parseInt(_0x59efe5(0x1f4))/0x7+-parseInt(_0x59efe5(0x1e4))/0x8*(parseInt(_0x59efe5(0x1ef))/0x9)+parseInt(_0x59efe5(0x1eb))/0xa+parseInt(_0x59efe5(0x1e5))/0xb;if(_0x55b887===_0x4b0644)break;else _0x17640f['push'](_0x17640f['shift']());}catch(_0x4c0290){_0x17640f['push'](_0x17640f['shift']());}}}(a30_0x4e2f,0x6bf20));function a30_0x4e2f(){const _0x44c2b1=['143168rfgAzx','6WOccWQ','2113363whEIfX','518792oKWuIg','8127944oGYXGV','timeout','131538QDnMug','mochaHooks','Prefk','../../../bin/utils/constants','6837810GpwhGO','../../../helpers/request-spy','364263TmZdLn','115jhlHxc','54jiMFIj','../../../helpers/test-observability/utils','12zCUBFl'];a30_0x4e2f=function(){return _0x44c2b1;};return a30_0x4e2f();}const requestSpy=require(a30_0x2ef678(0x1ec)),constants=require(a30_0x2ef678(0x1ea)),{addRequestSpy}=require(a30_0x2ef678(0x1f0));exports[a30_0x2ef678(0x1e8)]={'beforeAll'(){const _0x10b114=a30_0x2ef678,_0x1aed87={'Prefk':function(_0x1082ac){return _0x1082ac();}},_0x3f7efe='browserstack internal helper hook';_0x1aed87[_0x10b114(0x1e9)](addRequestSpy);},'afterAll'(){const _0x3daeee=a30_0x2ef678,_0x2831b6='browserstack internal helper hook';this[_0x3daeee(0x1e6)](0xea60),requestSpy['restore']();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a31_0x3970(){const _0x8c222e=['2398eDhDeH','hookAnalyticsId','Iolph','parent','EqYwW','../../../helpers/test-observability/utils','sendPlatformDetails','tests','4269568hmmIBH','getBrowserName','1178772pqVqmf','YJGRO','unknown_grid','concat','__cloud_provider___','getTestEnv','QOCFb','toISOString','UPugk','OLJgO','zapeu','hook:','getCapabilities','forEach','slice','generic','rdvfh','push','EThUI','360798eyelJQ','state','getHooksForTest','../../../helpers/helper','passed','reduce','BcnVn','14ZLofOr','iJfSj','10wDBWJl','30uhKtOS','ykfrg','js-','hook','pid','aGBbz','indexOf','DXuVN','15458508UCyqEW','failed','mapTestHooks','keys','8NAwRrl','SxQRE','21830XyrxNL','ttgZz','_beforeEach','KeEAi','ohCaJ','../../utils/logPatcher','bs:addPlatformDetails:','_beforeAll','filter','type','../../../helpers/testhub/utils','QlEpD','EhLlI','xxcVs','markedStatus','pending','_afterAll','map_','SbNwE','browserstack','KonMP','suites','getHookDetails','split','uuid','ZGyaj','../../../helpers/test-observability/constants','getPlatform','toJSON','gAZZo','getHookSkippedTests','getBrowserVersion','_afterEach','2672118zVCwrs','yBwDA','uipZN','NBLnb','43683qyqosh'];a31_0x3970=function(){return _0x8c222e;};return a31_0x3970();}const a31_0x2c6032=a31_0xa26f;(function(_0x553207,_0x4691ec){const _0x468c49=a31_0xa26f,_0x5398e1=_0x553207();while(!![]){try{const _0x144c95=parseInt(_0x468c49(0x198))/0x1*(-parseInt(_0x468c49(0x1c0))/0x2)+-parseInt(_0x468c49(0x1a3))/0x3*(-parseInt(_0x468c49(0x1cc))/0x4)+parseInt(_0x468c49(0x1bf))/0x5*(parseInt(_0x468c49(0x1b6))/0x6)+-parseInt(_0x468c49(0x1bd))/0x7*(parseInt(_0x468c49(0x1a1))/0x8)+-parseInt(_0x468c49(0x194))/0x9+-parseInt(_0x468c49(0x1ce))/0xa*(-parseInt(_0x468c49(0x199))/0xb)+parseInt(_0x468c49(0x1c8))/0xc;if(_0x144c95===_0x4691ec)break;else _0x5398e1['push'](_0x5398e1['shift']());}catch(_0x48f803){_0x5398e1['push'](_0x5398e1['shift']());}}}(a31_0x3970,0x9edb6));const {v4:uuidv4}=require(a31_0x2c6032(0x18b)),{name,version}=require('../../../../package.json'),logPatcher=require(a31_0x2c6032(0x1d3)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x2c6032(0x19e)),{consoleHolder}=require(a31_0x2c6032(0x18d)),{getPlatformVersion}=require(a31_0x2c6032(0x1b9)),{shouldProcessEventForTesthub}=require(a31_0x2c6032(0x17d));function a31_0xa26f(_0x554f81,_0x156a4a){const _0x39702a=a31_0x3970();return a31_0xa26f=function(_0xa26f2d,_0x587074){_0xa26f2d=_0xa26f2d-0x17c;let _0x485fe5=_0x39702a[_0xa26f2d];return _0x485fe5;},a31_0xa26f(_0x554f81,_0x156a4a);}console={},Object[a31_0x2c6032(0x1cb)](consoleHolder)[a31_0x2c6032(0x1b0)](_0x15dd2e=>{console[_0x15dd2e]=(..._0x121c40)=>{BSTestOpsPatcher[_0x15dd2e](..._0x121c40);};}),exports[a31_0x2c6032(0x1a8)]=()=>{const _0x1f1fdf=a31_0x2c6032,_0x33ed79={'EuTZl':_0x1f1fdf(0x1b2),'DXuVN':function(_0x1bec61){return _0x1bec61();}};return{'ci':_0x33ed79['EuTZl'],'key':_0x33ed79[_0x1f1fdf(0x1c7)](uuidv4),'version':version,'collector':_0x1f1fdf(0x1c2)+name};},exports[a31_0x2c6032(0x189)]=_0x115c9e=>{const _0x43d9a8=a31_0x2c6032,_0x1dd81c={};_0x1dd81c[_0x43d9a8(0x17f)]=function(_0x4847d5,_0x2b428c){return _0x4847d5!==_0x2b428c;},_0x1dd81c['Iolph']='string',_0x1dd81c[_0x43d9a8(0x190)]=_0x43d9a8(0x1ae),_0x1dd81c[_0x43d9a8(0x1bc)]=function(_0x407ec5,_0x182470){return _0x407ec5!==_0x182470;},_0x1dd81c[_0x43d9a8(0x1a9)]=_0x43d9a8(0x1c3);const _0x57e4aa=_0x1dd81c;if(!_0x115c9e||_0x57e4aa[_0x43d9a8(0x17f)](typeof _0x115c9e,_0x57e4aa[_0x43d9a8(0x19b)]))return[null,null];if(_0x57e4aa['EhLlI'](_0x115c9e['indexOf'](_0x57e4aa['gAZZo']),-0x1)){const _0x2959be=_0x115c9e['split'](_0x57e4aa['gAZZo']);return[_0x2959be[0x0][_0x43d9a8(0x1b1)](0x0,-0x1)[_0x43d9a8(0x18a)]('\x22')[0x1],_0x2959be[0x1]['substring'](0x1)];}else{if(_0x57e4aa[_0x43d9a8(0x1bc)](_0x115c9e[_0x43d9a8(0x1c6)](_0x57e4aa[_0x43d9a8(0x1a9)]),-0x1)){const _0x1679d1=_0x115c9e[_0x43d9a8(0x18a)](_0x57e4aa['QOCFb']);return[_0x1679d1[0x0]['slice'](0x0,-0x1)[_0x43d9a8(0x18a)]('\x22')[0x1],_0x115c9e];}}return[null,null];},exports[a31_0x2c6032(0x1b8)]=_0x42e84d=>{const _0x956d23=a31_0x2c6032,_0x27e8d9={'rdvfh':function(_0x50f8d1,_0x17c389){return _0x50f8d1(_0x17c389);},'YJGRO':_0x956d23(0x1d5),'uZICX':_0x956d23(0x183),'zapeu':_0x956d23(0x1d0),'iJfSj':_0x956d23(0x193)};if(!_0x42e84d||!_0x42e84d[_0x956d23(0x19c)])return[];const _0x17e8d0=[];return[_0x27e8d9[_0x956d23(0x1a4)],_0x27e8d9['uZICX'],_0x27e8d9[_0x956d23(0x1ad)],_0x27e8d9[_0x956d23(0x1be)]][_0x956d23(0x1b0)](_0x3d0864=>{const _0x432ae8=_0x956d23,_0x1ffe6b=_0x42e84d[_0x432ae8(0x19c)][_0x3d0864]||[];_0x1ffe6b[_0x432ae8(0x1b0)](_0x23bd4d=>{const _0x38236c=_0x432ae8;_0x23bd4d[_0x38236c(0x19a)]&&!_0x27e8d9[_0x38236c(0x1b3)](isInternalHook,_0x23bd4d['fn'])&&_0x17e8d0[_0x38236c(0x1b4)](_0x23bd4d[_0x38236c(0x19a)]);});}),[..._0x17e8d0,...exports[_0x956d23(0x1b8)](_0x42e84d['parent'])];},exports[a31_0x2c6032(0x1ca)]=_0xf4e0b2=>{const _0x3a3568=a31_0x2c6032,_0x55e79a={'ykfrg':function(_0x5c93be){return _0x5c93be();},'xxcVs':function(_0x2e0662,_0x43d1cb){return _0x2e0662===_0x43d1cb;},'ZGyaj':_0x3a3568(0x193),'SbNwE':function(_0x14738b){return _0x14738b();},'bGnWz':'_beforeAll','QlEpD':_0x3a3568(0x183),'mnXkB':_0x3a3568(0x1d0)};if(!_0xf4e0b2||!_0xf4e0b2['parent'])return;[_0x55e79a['bGnWz'],_0x55e79a[_0x3a3568(0x17e)],_0x55e79a['mnXkB'],_0x55e79a[_0x3a3568(0x18c)]]['forEach'](_0x6dd77d=>{const _0x15c948=_0x3a3568,_0x1e0374=_0xf4e0b2[_0x15c948(0x19c)][_0x6dd77d]||[];_0x1e0374['forEach'](_0x2b7b5a=>{const _0x57e313=_0x15c948;if(!_0x2b7b5a['hookAnalyticsId'])_0x2b7b5a[_0x57e313(0x19a)]=_0x55e79a[_0x57e313(0x1c1)](uuidv4);else _0x2b7b5a['markedStatus']&&_0x55e79a[_0x57e313(0x180)](_0x6dd77d,_0x55e79a[_0x57e313(0x18c)])&&(_0x2b7b5a[_0x57e313(0x19a)]=_0x55e79a[_0x57e313(0x185)](uuidv4),delete _0x2b7b5a['markedStatus']);});}),exports[_0x3a3568(0x1ca)](_0xf4e0b2['parent']);},exports[a31_0x2c6032(0x19f)]=async(_0x11f7f5,_0x1eb712)=>{const _0x5e69b0=a31_0x2c6032,_0x42c75c={'KeEAi':function(_0x5de462){return _0x5de462();},'ttgZz':function(_0x476504,_0x5f08d1){return _0x476504(_0x5f08d1);},'NBLnb':function(_0xe1ab66,_0x3cf381){return _0xe1ab66===_0x3cf381;},'uipZN':_0x5e69b0(0x186),'ohCaJ':_0x5e69b0(0x1a5),'EqYwW':'TEST_PLATFORM','aGBbz':function(_0x3acf45,_0x2d519c){return _0x3acf45(_0x2d519c);}};try{if(!_0x42c75c[_0x5e69b0(0x1d1)](shouldProcessEventForTesthub))return;const _0x41f84c=await _0x11f7f5[_0x5e69b0(0x1af)](),_0x146369=await _0x11f7f5['getSession'](),_0x2aeb24={},_0x4db229=Object['fromEntries'](_0x146369['getCapabilities']()[_0x5e69b0(0x184)]),_0x36cfad={'product':_0x42c75c['ttgZz'](getObservabilityLinkedProductName,_0x4db229),'capabilities':_0x4db229,'platform':_0x41f84c[_0x5e69b0(0x18e)](),'platform_version':_0x42c75c[_0x5e69b0(0x1cf)](getPlatformVersion,_0x42c75c[_0x5e69b0(0x197)](global['__cloud_provider___'],_0x42c75c[_0x5e69b0(0x196)])),'browser':_0x41f84c[_0x5e69b0(0x1a2)](),'browser_version':_0x41f84c[_0x5e69b0(0x192)](),'session_id':_0x146369[_0x5e69b0(0x18f)]()};global['__cloud_provider___']?_0x2aeb24[global[_0x5e69b0(0x1a7)]]=_0x36cfad:_0x2aeb24[_0x42c75c[_0x5e69b0(0x1d2)]]=_0x36cfad,process['emit'](_0x5e69b0(0x1d4)+process[_0x5e69b0(0x1c4)],{'timestamp':new Date()[_0x5e69b0(0x1aa)](),'level':null,'message':null,'kind':_0x42c75c[_0x5e69b0(0x19d)],'http_response':_0x2aeb24,'uuid':_0x1eb712});}catch(_0x19a1fb){_0x42c75c[_0x5e69b0(0x1c5)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x19a1fb);}},exports['getHookSkippedTests']=_0x363718=>{const _0x3ecdf8=a31_0x2c6032,_0x1285f9={};_0x1285f9[_0x3ecdf8(0x1ac)]=function(_0x23aa3a,_0x214f37){return _0x23aa3a!==_0x214f37;},_0x1285f9[_0x3ecdf8(0x187)]=_0x3ecdf8(0x1c3),_0x1285f9[_0x3ecdf8(0x1ab)]=function(_0x68c8ac,_0x2c2d06){return _0x68c8ac!==_0x2c2d06;},_0x1285f9['EThUI']=_0x3ecdf8(0x1ba),_0x1285f9[_0x3ecdf8(0x1cd)]=function(_0x212a04,_0x3e5b5c){return _0x212a04!==_0x3e5b5c;},_0x1285f9[_0x3ecdf8(0x195)]=_0x3ecdf8(0x1c9);const _0x18366a=_0x1285f9,_0x266585=_0x363718[_0x3ecdf8(0x188)][_0x3ecdf8(0x1bb)]((_0x40ec92,_0x444cc6)=>{const _0x3e27b2=_0x3ecdf8,_0x36b5a5=exports[_0x3e27b2(0x191)](_0x444cc6);return _0x36b5a5&&(_0x40ec92=_0x40ec92[_0x3e27b2(0x1a6)](_0x36b5a5)),_0x40ec92;},[]),_0x33745e=_0x363718[_0x3ecdf8(0x1a0)][_0x3ecdf8(0x1d6)](_0x5baaee=>{const _0x1028fd=_0x3ecdf8,_0x1ba7a6=_0x18366a[_0x1028fd(0x1ac)](_0x5baaee[_0x1028fd(0x17c)],_0x18366a[_0x1028fd(0x187)])&&!_0x5baaee[_0x1028fd(0x181)]&&_0x18366a[_0x1028fd(0x1ab)](_0x5baaee[_0x1028fd(0x1b7)],_0x18366a[_0x1028fd(0x1b5)])&&_0x18366a[_0x1028fd(0x1cd)](_0x5baaee[_0x1028fd(0x1b7)],_0x18366a['yBwDA'])&&!_0x5baaee[_0x1028fd(0x182)];return _0x1ba7a6;});return _0x33745e[_0x3ecdf8(0x1a6)](_0x266585);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x812b4c=a32_0x232c;(function(_0x365498,_0x1aba70){const _0x5dd46d=a32_0x232c,_0x119c56=_0x365498();while(!![]){try{const _0x5c4c0a=parseInt(_0x5dd46d(0x10a))/0x1+-parseInt(_0x5dd46d(0x105))/0x2*(parseInt(_0x5dd46d(0x154))/0x3)+-parseInt(_0x5dd46d(0x108))/0x4*(parseInt(_0x5dd46d(0x127))/0x5)+parseInt(_0x5dd46d(0x113))/0x6*(parseInt(_0x5dd46d(0xf4))/0x7)+parseInt(_0x5dd46d(0x10b))/0x8*(parseInt(_0x5dd46d(0xe6))/0x9)+-parseInt(_0x5dd46d(0x102))/0xa*(parseInt(_0x5dd46d(0x11e))/0xb)+parseInt(_0x5dd46d(0xe7))/0xc;if(_0x5c4c0a===_0x1aba70)break;else _0x119c56['push'](_0x119c56['shift']());}catch(_0x5ad76f){_0x119c56['push'](_0x119c56['shift']());}}}(a32_0x2acb,0x9e681));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x812b4c(0x13d)),{percyAutoCapture}=require(a32_0x812b4c(0x153)),{sendPlatformDetails}=require(a32_0x812b4c(0x158)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0x812b4c(0x115)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x812b4c(0x159)),logger=require(a32_0x812b4c(0x100))[a32_0x812b4c(0xf3)],{shouldProcessEventForTesthub}=require(a32_0x812b4c(0x14b)),testHubConstants=require('../../helpers/testhub/constants');exports[a32_0x812b4c(0x117)]={'beforeAll'(){const _0x120464=a32_0x812b4c,_0x426654={'OBNRZ':function(_0x4c6efd,_0xf7387f,_0x16f72b,_0xbab915){return _0x4c6efd(_0xf7387f,_0x16f72b,_0xbab915);},'MsJfv':'failed','otLAL':_0x120464(0x148),'GKbjj':function(_0x3c2b91,_0x7e692a,_0x1e13d8){return _0x3c2b91(_0x7e692a,_0x1e13d8);},'PVIle':_0x120464(0x14a),'KcLlK':function(_0x3d96de){return _0x3d96de();}};PerformanceTester[_0x120464(0x13f)]();const _0x39b902='browserstack internal helper hook';global[_0x120464(0x146)]=[],global[_0x120464(0x147)]=![],global[_0x120464(0xf5)]=async()=>{const _0x1afdfb=_0x120464;let _0x517df6=![];try{await global[_0x1afdfb(0xeb)][0x0]['session_'],_0x517df6=!![],global['__sessionFailed']?await _0x426654[_0x1afdfb(0x145)](markSessionStatus,global[_0x1afdfb(0xeb)][0x0],_0x426654[_0x1afdfb(0xf2)],global['__error_messages__'][_0x1afdfb(0xfa)](_0x426654['otLAL'])):await _0x426654['GKbjj'](markSessionStatus,global['__drivers'][0x0],_0x426654['PVIle']);}catch(_0x3da530){}global[_0x1afdfb(0x146)]=[],global[_0x1afdfb(0x147)]=![];if(_0x517df6)try{try{_0x426654[_0x1afdfb(0x119)](shouldProcessEventForTesthub)&&(global[_0x1afdfb(0xeb)][0x0]&&await _0x426654[_0x1afdfb(0x10d)](sendPlatformDetails,global[_0x1afdfb(0xeb)][0x0],this[_0x1afdfb(0x14d)]?this[_0x1afdfb(0x14d)]['testAnalyticsId']:null));}catch{}await global[_0x1afdfb(0xeb)][0x0][_0x1afdfb(0x13e)]();}catch(_0x48d396){}};},'beforeEach'(_0x581a72){const _0x125843=a32_0x812b4c,_0x47c3ec={'sTCgC':function(_0x1e759f,_0x4b5864){return _0x1e759f>_0x4b5864;},'tHIXs':function(_0x1d58c,_0x5dad09){return _0x1d58c>_0x5dad09;},'FrKyI':_0x125843(0xea),'DdPzV':function(_0x357286,_0x21585d,_0x2ed322){return _0x357286(_0x21585d,_0x2ed322);},'yYpSG':_0x125843(0x11a),'aArkf':function(_0x130eea){return _0x130eea();},'ygklg':_0x125843(0x13b),'nPZxP':function(_0x432b37,_0x457154){return _0x432b37===_0x457154;},'LBFUZ':_0x125843(0x101),'iQUQH':function(_0xac98fe,_0x399fd1){return _0xac98fe===_0x399fd1;},'OkGPl':_0x125843(0x104),'cVgVW':_0x125843(0x11d),'EIXnU':_0x125843(0x12d)};new Promise(async _0x4c2d79=>{const _0x2e48bd=_0x125843,_0x525492='browserstack internal helper hook';let _0x1e76f0=!![];try{_0x47c3ec[_0x2e48bd(0x11b)](global[_0x2e48bd(0xeb)]['length'],0x1)&&(await global[_0x2e48bd(0xf5)](),global['__drivers'][_0x2e48bd(0x11c)]()),_0x47c3ec['tHIXs'](global[_0x2e48bd(0xeb)][0x0][_0x2e48bd(0xe3)],0x0)&&(_0x1e76f0=![],await global[_0x2e48bd(0xf5)]());}catch{}try{Array[_0x2e48bd(0x136)](global[_0x2e48bd(0xeb)])&&global[_0x2e48bd(0xeb)][0x0]&&(global[_0x2e48bd(0xeb)][0x0][_0x2e48bd(0x140)]=this[_0x2e48bd(0x14d)][_0x2e48bd(0x143)]()['join'](_0x47c3ec[_0x2e48bd(0x107)])),global[_0x2e48bd(0x140)]=this[_0x2e48bd(0x14d)][_0x2e48bd(0x143)]()['join'](_0x47c3ec[_0x2e48bd(0x107)]);}catch(_0x12b63b){logger['debug'](_0x2e48bd(0xed)+_0x12b63b);}this['currentTest']['shouldScanTestForAccessibility']=_0x47c3ec[_0x2e48bd(0x155)](shouldScanTestForAccessibility,this[_0x2e48bd(0x14d)]['titlePath'](),!![]),globals[_0x2e48bd(0x13a)](_0x47c3ec[_0x2e48bd(0xf0)],this[_0x2e48bd(0x14d)]['shouldScanTestForAccessibility']),this['currentTest'][_0x2e48bd(0x141)]=!![];if(_0x47c3ec['aArkf'](isAccessibilityAutomationSession)&&_0x1e76f0&&Array['isArray'](global[_0x2e48bd(0xeb)])&&_0x47c3ec[_0x2e48bd(0x11b)](global[_0x2e48bd(0xeb)]['length'],0x0)&&globals[_0x2e48bd(0xf1)](_0x47c3ec[_0x2e48bd(0xfe)]))try{const _0x41950f=await global[_0x2e48bd(0xeb)][0x0][_0x2e48bd(0x123)];if(_0x41950f){let _0x2e059b=!![];const _0x4bf4dd=await global[_0x2e48bd(0xeb)][0x0][_0x2e48bd(0x111)]();let _0x82b14;try{_0x82b14=new URL(_0x4bf4dd);}catch(_0x5bb35f){_0x2e059b=![];}_0x2e059b=_0x47c3ec['nPZxP'](_0x82b14[_0x2e48bd(0x121)],_0x47c3ec[_0x2e48bd(0x126)])||_0x47c3ec[_0x2e48bd(0x152)](_0x82b14[_0x2e48bd(0x121)],_0x47c3ec[_0x2e48bd(0xfc)]),_0x2e059b&&(this[_0x2e48bd(0x14d)][_0x2e48bd(0xfb)]&&logger[_0x2e48bd(0xff)](_0x47c3ec['cVgVW'])),this[_0x2e48bd(0x14d)][_0x2e48bd(0x141)]=this[_0x2e48bd(0x14d)]['shouldScanTestForAccessibility'],this[_0x2e48bd(0x14d)]['shouldScanTestForAccessibility']&&logger[_0x2e48bd(0xff)](_0x47c3ec['EIXnU']);}}catch(_0x13e5d5){logger[_0x2e48bd(0x142)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util['format'](_0x13e5d5));}_0x47c3ec['aArkf'](_0x4c2d79);})[_0x125843(0xe8)](_0x581a72);},'afterEach'(_0x1d7efe){const _0x195ff7=a32_0x812b4c,_0x5a2414={'zrQQJ':function(_0x48fc2e,_0x3da8bb){return _0x48fc2e>_0x3da8bb;},'Uyith':function(_0x16b21a,_0x3656c1){return _0x16b21a===_0x3656c1;},'Rqgse':_0x195ff7(0x132),'LaUdQ':'appium:app','JOYoA':function(_0x5a7efd,_0x64c569,_0x562ab9,_0x3d4ee4){return _0x5a7efd(_0x64c569,_0x562ab9,_0x3d4ee4);},'hhyaT':_0x195ff7(0xea),'DrMWR':function(_0x328c45,_0x529c43){return _0x328c45!==_0x529c43;},'JErEB':_0x195ff7(0x14a),'mdbNa':function(_0x2f6bb5,_0x33d1ac,_0x5a5a99){return _0x2f6bb5(_0x33d1ac,_0x5a5a99);},'UfMre':function(_0x155f54,_0x482495){return _0x155f54+_0x482495;},'NsCrJ':_0x195ff7(0xe4),'CEMDD':_0x195ff7(0x142),'kYDXv':function(_0x347888,_0x3f27cc,_0x3cb4d1){return _0x347888(_0x3f27cc,_0x3cb4d1);},'uwzVR':'Passed','leQcE':'info','dxnYd':_0x195ff7(0x13b),'YsGYb':_0x195ff7(0x11a),'uuwKh':_0x195ff7(0xf8),'rDPQl':_0x195ff7(0x128),'jywxf':_0x195ff7(0x116),'GYjjc':function(_0x48cf74){return _0x48cf74();},'hfTWx':function(_0x28cca6){return _0x28cca6();},'SzVQQ':_0x195ff7(0x150),'fkrJm':function(_0x4896df){return _0x4896df();}},_0x25052c='browserstack internal helper hook';this['timeout'](0xfde8);const _0x54728e=async(_0x398586,_0x403be1)=>{const _0x1f1876=_0x195ff7;await global[_0x1f1876(0xeb)][0x0][_0x1f1876(0xe5)](_0x1f1876(0x12e)+_0x398586+_0x1f1876(0x114)+_0x403be1+_0x1f1876(0x135));};new Promise(async _0x53bc6b=>{const _0x510069=_0x195ff7;try{_0x5a2414[_0x510069(0x133)](global[_0x510069(0xeb)][_0x510069(0x151)],0x1)&&(await global[_0x510069(0xf5)](),global[_0x510069(0xeb)][_0x510069(0x11c)](),global['__error_messages__']=[],global[_0x510069(0x147)]=![]);try{if(global[_0x510069(0x118)]&&_0x5a2414[_0x510069(0x149)](global[_0x510069(0x12b)],_0x5a2414['Rqgse'])&&global[_0x510069(0xeb)][0x0]){const _0x4b2bf5=_0x5a2414[_0x510069(0x133)](global[_0x510069(0x156)][_0x510069(0x151)],0x0)?!!global[_0x510069(0x156)][0x0][_0x510069(0x11f)]||!!global[_0x510069(0x156)][0x0][_0x5a2414['LaUdQ']]:![],_0x5366f8={};_0x5366f8[_0x510069(0x11f)]=_0x4b2bf5,await _0x5a2414['JOYoA'](percyAutoCapture,global[_0x510069(0xeb)][0x0],_0x5a2414[_0x510069(0x109)],_0x5366f8);}}catch(_0x11a438){}!global[_0x510069(0x10c)]&&(await global[_0x510069(0xeb)][0x0][_0x510069(0xe5)](_0x510069(0xfd)+JSON[_0x510069(0x10e)](this[_0x510069(0x14d)][_0x510069(0x143)]()[_0x510069(0xfa)](_0x5a2414['hhyaT']))+'}}'),global[_0x510069(0xeb)][0x0]['sessionNameSet__']=!![]);const _0x3d875f=_0x5a2414[_0x510069(0x12c)](this[_0x510069(0x14d)][_0x510069(0x110)],_0x5a2414[_0x510069(0x134)]);_0x3d875f?(global['__sessionFailed']=!![],global[_0x510069(0x146)][_0x510069(0x14c)](this[_0x510069(0x14d)][_0x510069(0xe9)][_0x510069(0xf9)]),await _0x5a2414[_0x510069(0xf6)](_0x54728e,JSON[_0x510069(0x10e)](_0x5a2414['UfMre'](_0x5a2414[_0x510069(0x138)],this[_0x510069(0x14d)][_0x510069(0xe9)][_0x510069(0xf9)])),_0x5a2414['CEMDD'])):await _0x5a2414[_0x510069(0x157)](_0x54728e,JSON[_0x510069(0x10e)](_0x5a2414[_0x510069(0x129)]),_0x5a2414[_0x510069(0x13c)]);}catch(_0x4952b7){}try{if(this[_0x510069(0x14d)]['accessibilityScanStarted']&&globals[_0x510069(0xf1)](_0x5a2414['dxnYd'])&&globals['getGlobal'](_0x5a2414['YsGYb'])){logger['info'](_0x5a2414['uuwKh']);const _0x4c0599={};_0x4c0599[_0x510069(0x120)]=this[_0x510069(0x14d)]['testAnalyticsId'],_0x4c0599[_0x510069(0x112)]=process[_0x510069(0x130)][testHubConstants[_0x510069(0x125)][_0x510069(0x103)]],_0x4c0599[_0x510069(0x10f)]=process[_0x510069(0x130)][testHubConstants[_0x510069(0x125)][_0x510069(0x131)]];const _0x54eb46=_0x4c0599;logger['debug'](_0x510069(0x122)+JSON[_0x510069(0x10e)](_0x54eb46)),logger[_0x510069(0x150)](_0x5a2414[_0x510069(0x106)]),logger[_0x510069(0x150)](util[_0x510069(0x14e)](await global[_0x510069(0xeb)][0x0][_0x510069(0x12a)](scripts[_0x510069(0xf7)],{'method':global['browserstackSessionName']}))),await global['__drivers'][0x0][_0x510069(0x12a)](scripts[_0x510069(0x137)],_0x54eb46),logger[_0x510069(0xff)](_0x5a2414[_0x510069(0xee)]);}}catch(_0x300621){logger['error']('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x510069(0x14d)][_0x510069(0x143)]()+_0x510069(0x12f),_0x300621);}try{try{if(_0x5a2414['GYjjc'](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x5a2414['mdbNa'](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this[_0x510069(0x14d)][_0x510069(0xef)]:null);if(_0x5a2414['hfTWx'](isBrowserstackInfra)){const _0x481aae=_0x510069(0x124)+Date[_0x510069(0x14f)]();await _0x5a2414[_0x510069(0xf6)](_0x54728e,JSON[_0x510069(0x10e)](_0x481aae),_0x5a2414['SzVQQ']);}}}catch{}_0x5a2414[_0x510069(0x133)](global[_0x510069(0xeb)][0x0][_0x510069(0xe3)],0x0)&&await global[_0x510069(0xf5)]();}catch(_0x2ae0aa){}_0x5a2414['fkrJm'](_0x53bc6b);})[_0x195ff7(0xe8)](()=>_0x1d7efe());},'afterAll'(_0x1a05be){const _0x18a4fa=a32_0x812b4c,_0x335c98={'bSBma':function(_0x2f8b73){return _0x2f8b73();}},_0x26d86a='browserstack internal helper hook';this[_0x18a4fa(0x139)](0xfde8),new Promise(async _0xf28c73=>{const _0x57d75b=_0x18a4fa;PerformanceTester[_0x57d75b(0x144)](),await global[_0x57d75b(0xf5)](),_0x335c98[_0x57d75b(0xec)](_0xf28c73);})[_0x18a4fa(0xe8)](()=>_0x1a05be());}};function a32_0x232c(_0xffacbc,_0x16535f){const _0x2acb50=a32_0x2acb();return a32_0x232c=function(_0x232c76,_0x40d29a){_0x232c76=_0x232c76-0xe3;let _0x10fd00=_0x2acb50[_0x232c76];return _0x10fd00;},a32_0x232c(_0xffacbc,_0x16535f);}function a32_0x2acb(){const _0x3fc430=['DdPzV','capabilities','kYDXv','./test-observability/mochaUtils','../../helpers/globals','quitCount_','Failed:\x20','executeScript','9dSEUSS','5781168ExtjCq','then','err','\x20-\x20','__drivers','bSBma','Failed\x20to\x20store\x20session\x20name:\x20','jywxf','testAnalyticsId','yYpSG','getGlobal','MsJfv','winstonLogger','611842RthRyA','driverCleanup','mdbNa','performScan','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','message','join','shouldScanTestForAccessibility','OkGPl','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','ygklg','info','../../helpers/logger','http:','1786990alpwoh','BROWSERSTACK_TESTHUB_UUID','https:','8xJDRvE','rDPQl','FrKyI','6572mzmtGi','Rqgse','925620RMLPdA','688088EMsZZd','__skipSessionName','GKbjj','stringify','thJwtToken','state','getCurrentUrl','thBuildUuid','48xKQFZQ',',\x22level\x22:\x20\x22','../../helpers/performance-tester','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','mochaHooks','percy','KcLlK','bstackA11yShouldScan','sTCgC','shift','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','11QbLwIZ','app','thTestRunUuid','protocol','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','session_','ObservabilitySync:','ENV_VAR','LBFUZ','1285VkVtGy','Performing\x20scan\x20before\x20saving\x20results','uwzVR','executeAsyncScript','percyCaptureMode','DrMWR','Automate\x20test\x20case\x20execution\x20has\x20started.','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','.\x20Error\x20:','env','BROWSERSTACK_TESTHUB_JWT','testcase','zrQQJ','JErEB','\x22}}','isArray','saveTestResults','NsCrJ','timeout','setGlobal','isAccessibilityPlatform','leQcE','../../helpers/accessibility-automation/helper','initQuit','startMonitoring','browserstackSessionName','accessibilityScanStarted','error','titlePath','stopMonitoring','OBNRZ','__error_messages__','__sessionFailed','\x20|\x20','Uyith','passed','../../helpers/testhub/utils','push','currentTest','format','now','debug','length','iQUQH','../../helpers/percy/utils','707145wyASxn'];a32_0x2acb=function(){return _0x3fc430;};return a32_0x2acb();}
|
|
1
|
+
function a32_0x23a0(_0x5c547e,_0x4be824){const _0x13a93c=a32_0x13a9();return a32_0x23a0=function(_0x23a0eb,_0xcb227){_0x23a0eb=_0x23a0eb-0x197;let _0x450343=_0x13a93c[_0x23a0eb];return _0x450343;},a32_0x23a0(_0x5c547e,_0x4be824);}const a32_0x229932=a32_0x23a0;function a32_0x13a9(){const _0x657e7b=['VQTGW','__error_messages__','session_','app','stringify','vhqrj','SRGwE','Passed','vakdM','fPQyl','../../helpers/accessibility-automation/scripts','Automate\x20test\x20case\x20execution\x20has\x20started.','appium:app','15VRmJYA','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','thTestRunUuid','util','4vQcMhj','http:','browserstackSessionName','../../helpers/globals','81152PKzkhN','../../helpers/testhub/utils','getCurrentUrl','timeout','BROWSERSTACK_TESTHUB_UUID','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','ENV_VAR','PuEVy','okrVi','70088uwOFVv','TquQY','isAccessibilityPlatform','aubMP','../../helpers/performance-tester','../../helpers/logger','jtbXd','join','GTpXA','GzzHA','6939273QSuyRb','iIPHK','percy','executeAsyncScript','GLkGm','ObservabilitySync:','bstackA11yShouldScan','accessibilityScanStarted','shouldScanTestForAccessibility','format','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','failed','20hLNTmz','NjOee','err','shift','now','YKCau','../../helpers/helper','SGHgB','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','SywWu','driverCleanup','then','isArray','executeScript','titlePath','Failed:\x20','HAOij','SBDRQ','thBuildUuid','state','mJHNg','quitCount_','length','info','debug','boCNH','getGlobal','Performing\x20scan\x20before\x20saving\x20results','4159704xgJFjF','505086CmdJtl','percyCaptureMode','HGlXu','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','.\x20Error\x20:','guGle','Failed\x20to\x20store\x20session\x20name:\x20','winstonLogger','testcase','maPhz','35jdFkKE','WEGmt','EvYmB','sessionNameSet__','KdyiS','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','initQuit','testAnalyticsId','hvENa','performScan','../../helpers/accessibility-automation/helper','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','qVypX','setGlobal','passed','protocol','yFZba','saveTestResults','TVwOO','924456sgjAQM','error','capabilities','env','__drivers','CuWlp','3381804qkYajq','VERfe','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','\x22}}','stopMonitoring','__sessionFailed','currentTest','message','iERFp','usCgf'];a32_0x13a9=function(){return _0x657e7b;};return a32_0x13a9();}(function(_0x250291,_0x2e97b2){const _0x23afc5=a32_0x23a0,_0x371b56=_0x250291();while(!![]){try{const _0x306b0a=parseInt(_0x23afc5(0x1f6))/0x1*(-parseInt(_0x23afc5(0x1fa))/0x2)+-parseInt(_0x23afc5(0x1d5))/0x3+-parseInt(_0x23afc5(0x203))/0x4*(parseInt(_0x23afc5(0x1f2))/0x5)+-parseInt(_0x23afc5(0x1b8))/0x6*(-parseInt(_0x23afc5(0x1c2))/0x7)+-parseInt(_0x23afc5(0x1b7))/0x8+-parseInt(_0x23afc5(0x1db))/0x9+-parseInt(_0x23afc5(0x19b))/0xa*(-parseInt(_0x23afc5(0x20d))/0xb);if(_0x306b0a===_0x2e97b2)break;else _0x371b56['push'](_0x371b56['shift']());}catch(_0x4af40e){_0x371b56['push'](_0x371b56['shift']());}}}(a32_0x13a9,0x406aa));const util=require(a32_0x229932(0x1f5)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x229932(0x1cc)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a32_0x229932(0x1a1)),PerformanceTester=require(a32_0x229932(0x207)),scripts=require(a32_0x229932(0x1ef)),globals=require(a32_0x229932(0x1f9)),logger=require(a32_0x229932(0x208))[a32_0x229932(0x1bf)],{shouldProcessEventForTesthub}=require(a32_0x229932(0x1fb)),testHubConstants=require('../../helpers/testhub/constants');exports['mochaHooks']={'beforeAll'(){const _0x52171f=a32_0x229932,_0x2b1c19={'veiTQ':function(_0x522a80,_0x2e066b,_0x2c3974,_0x402c97){return _0x522a80(_0x2e066b,_0x2c3974,_0x402c97);},'EvYmB':_0x52171f(0x19a),'maPhz':'\x20|\x20','YKCau':function(_0x4bbb45,_0xd51202,_0x240819){return _0x4bbb45(_0xd51202,_0x240819);},'VQTGW':'passed','HAOij':function(_0x12e7d1){return _0x12e7d1();},'guGle':function(_0x34ce49,_0x95db2c,_0x2c058e){return _0x34ce49(_0x95db2c,_0x2c058e);}};PerformanceTester['startMonitoring']();const _0x3f20ec='browserstack internal helper hook';global[_0x52171f(0x1e6)]=[],global['__sessionFailed']=![],global[_0x52171f(0x1a5)]=async()=>{const _0x47dcea=_0x52171f;let _0x5978a7=![];try{await global[_0x47dcea(0x1d9)][0x0][_0x47dcea(0x1e7)],_0x5978a7=!![],global[_0x47dcea(0x1e0)]?await _0x2b1c19['veiTQ'](markSessionStatus,global[_0x47dcea(0x1d9)][0x0],_0x2b1c19[_0x47dcea(0x1c4)],global[_0x47dcea(0x1e6)][_0x47dcea(0x20a)](_0x2b1c19[_0x47dcea(0x1c1)])):await _0x2b1c19[_0x47dcea(0x1a0)](markSessionStatus,global[_0x47dcea(0x1d9)][0x0],_0x2b1c19[_0x47dcea(0x1e5)]);}catch(_0x44691c){}global[_0x47dcea(0x1e6)]=[],global[_0x47dcea(0x1e0)]=![];if(_0x5978a7)try{try{_0x2b1c19[_0x47dcea(0x1ab)](shouldProcessEventForTesthub)&&(global[_0x47dcea(0x1d9)][0x0]&&await _0x2b1c19[_0x47dcea(0x1bd)](sendPlatformDetails,global['__drivers'][0x0],this[_0x47dcea(0x1e1)]?this[_0x47dcea(0x1e1)][_0x47dcea(0x1c9)]:null));}catch{}await global[_0x47dcea(0x1d9)][0x0][_0x47dcea(0x1c8)]();}catch(_0x1694ef){}};},'beforeEach'(_0x52f48f){const _0x3e0ccc=a32_0x229932,_0x39b962={'fPQyl':function(_0x564c2e,_0x162057){return _0x564c2e>_0x162057;},'CuWlp':'\x20-\x20','TQiRs':function(_0x1b8086,_0x3a92f8,_0x37ba89){return _0x1b8086(_0x3a92f8,_0x37ba89);},'SBDRQ':_0x3e0ccc(0x213),'iewVp':function(_0x137776){return _0x137776();},'SywWu':function(_0x41ba79,_0x4e4904){return _0x41ba79>_0x4e4904;},'JIMAd':_0x3e0ccc(0x205),'qVypX':function(_0x4bf0d8,_0xec69fd){return _0x4bf0d8===_0xec69fd;},'vakdM':_0x3e0ccc(0x1f7),'iWabL':function(_0x5a0b54,_0x458d47){return _0x5a0b54===_0x458d47;},'PuEVy':'https:','EwIEE':_0x3e0ccc(0x1c7),'GLkGm':_0x3e0ccc(0x1f0),'iIPHK':function(_0x10253c){return _0x10253c();}};new Promise(async _0x32ead1=>{const _0x22ce71=_0x3e0ccc,_0x37ace1='browserstack internal helper hook';let _0x441559=!![];try{_0x39b962[_0x22ce71(0x1ee)](global[_0x22ce71(0x1d9)][_0x22ce71(0x1b1)],0x1)&&(await global[_0x22ce71(0x1a5)](),global[_0x22ce71(0x1d9)][_0x22ce71(0x19e)]()),_0x39b962[_0x22ce71(0x1ee)](global[_0x22ce71(0x1d9)][0x0][_0x22ce71(0x1b0)],0x0)&&(_0x441559=![],await global['driverCleanup']());}catch{}try{Array[_0x22ce71(0x1a7)](global[_0x22ce71(0x1d9)])&&global[_0x22ce71(0x1d9)][0x0]&&(global[_0x22ce71(0x1d9)][0x0][_0x22ce71(0x1f8)]=this[_0x22ce71(0x1e1)][_0x22ce71(0x1a9)]()[_0x22ce71(0x20a)](_0x39b962[_0x22ce71(0x1da)])),global[_0x22ce71(0x1f8)]=this[_0x22ce71(0x1e1)][_0x22ce71(0x1a9)]()[_0x22ce71(0x20a)](_0x39b962[_0x22ce71(0x1da)]);}catch(_0x805ff1){logger[_0x22ce71(0x1b3)](_0x22ce71(0x1be)+_0x805ff1);}this[_0x22ce71(0x1e1)][_0x22ce71(0x197)]=_0x39b962['TQiRs'](shouldScanTestForAccessibility,this['currentTest'][_0x22ce71(0x1a9)](),!![]),globals[_0x22ce71(0x1cf)](_0x39b962[_0x22ce71(0x1ac)],this['currentTest'][_0x22ce71(0x197)]),this[_0x22ce71(0x1e1)][_0x22ce71(0x214)]=!![];if(_0x39b962['iewVp'](isAccessibilityAutomationSession)&&_0x441559&&Array[_0x22ce71(0x1a7)](global[_0x22ce71(0x1d9)])&&_0x39b962[_0x22ce71(0x1a4)](global[_0x22ce71(0x1d9)][_0x22ce71(0x1b1)],0x0)&&globals[_0x22ce71(0x1b5)](_0x39b962['JIMAd']))try{const _0x1a114a=await global[_0x22ce71(0x1d9)][0x0]['session_'];if(_0x1a114a){let _0x557d68=!![];const _0x242b54=await global[_0x22ce71(0x1d9)][0x0][_0x22ce71(0x1fc)]();let _0x3de1d0;try{_0x3de1d0=new URL(_0x242b54);}catch(_0x15c340){_0x557d68=![];}_0x557d68=_0x39b962[_0x22ce71(0x1ce)](_0x3de1d0[_0x22ce71(0x1d1)],_0x39b962[_0x22ce71(0x1ed)])||_0x39b962['iWabL'](_0x3de1d0['protocol'],_0x39b962[_0x22ce71(0x201)]),_0x557d68&&(this['currentTest']['shouldScanTestForAccessibility']&&logger[_0x22ce71(0x1b2)](_0x39b962['EwIEE'])),this[_0x22ce71(0x1e1)][_0x22ce71(0x214)]=this[_0x22ce71(0x1e1)]['shouldScanTestForAccessibility'],this[_0x22ce71(0x1e1)][_0x22ce71(0x197)]&&logger[_0x22ce71(0x1b2)](_0x39b962[_0x22ce71(0x211)]);}}catch(_0x41e0c1){logger[_0x22ce71(0x1d6)](_0x22ce71(0x1f3)+util[_0x22ce71(0x198)](_0x41e0c1));}_0x39b962[_0x22ce71(0x20e)](_0x32ead1);})[_0x3e0ccc(0x1a6)](_0x52f48f);},'afterEach'(_0x316733){const _0x3ac207=a32_0x229932,_0x1820f0={'WEGmt':function(_0x43220b,_0x43d379){return _0x43220b>_0x43d379;},'SadEa':function(_0x18a824,_0x1ff6e4){return _0x18a824===_0x1ff6e4;},'SRGwE':_0x3ac207(0x1c0),'pfFUn':_0x3ac207(0x1f1),'hvENa':function(_0x180159,_0x59324f,_0x215843,_0xbaf7aa){return _0x180159(_0x59324f,_0x215843,_0xbaf7aa);},'jtbXd':'\x20-\x20','TXPwM':function(_0x3e5347,_0x5910f4){return _0x3e5347!==_0x5910f4;},'KdyiS':_0x3ac207(0x1d0),'SGHgB':function(_0x2ce43d,_0x516dbb,_0x1a0e5d){return _0x2ce43d(_0x516dbb,_0x1a0e5d);},'yFZba':function(_0x4e4f12,_0x587747){return _0x4e4f12+_0x587747;},'usCgf':_0x3ac207(0x1aa),'mJHNg':'error','TquQY':function(_0x14b044,_0x5cf301,_0x471767){return _0x14b044(_0x5cf301,_0x471767);},'TVwOO':_0x3ac207(0x1ec),'aubMP':'info','iERFp':_0x3ac207(0x205),'EYeyF':_0x3ac207(0x213),'HGlXu':_0x3ac207(0x1dd),'VERfe':_0x3ac207(0x1b6),'GTpXA':_0x3ac207(0x1cd),'sDQTm':function(_0x21a4a2){return _0x21a4a2();},'NjOee':function(_0x3179a3,_0x5f2217,_0x3b4bfb){return _0x3179a3(_0x5f2217,_0x3b4bfb);},'okrVi':function(_0x1f9efa){return _0x1f9efa();},'GzzHA':_0x3ac207(0x1b3),'MKvfn':function(_0x38e143,_0x981a76){return _0x38e143>_0x981a76;},'vhqrj':function(_0x29ca4d){return _0x29ca4d();}},_0x21374e='browserstack internal helper hook';this[_0x3ac207(0x1fd)](0xfde8);const _0x205f69=async(_0x54190a,_0x2b3aac)=>{const _0x437bcb=_0x3ac207;await global[_0x437bcb(0x1d9)][0x0][_0x437bcb(0x1a8)](_0x437bcb(0x1ff)+_0x54190a+',\x22level\x22:\x20\x22'+_0x2b3aac+_0x437bcb(0x1de));};new Promise(async _0xb7217a=>{const _0x407f8b=_0x3ac207;try{_0x1820f0[_0x407f8b(0x1c3)](global[_0x407f8b(0x1d9)][_0x407f8b(0x1b1)],0x1)&&(await global[_0x407f8b(0x1a5)](),global[_0x407f8b(0x1d9)]['shift'](),global['__error_messages__']=[],global[_0x407f8b(0x1e0)]=![]);try{if(global[_0x407f8b(0x20f)]&&_0x1820f0['SadEa'](global[_0x407f8b(0x1b9)],_0x1820f0[_0x407f8b(0x1eb)])&&global[_0x407f8b(0x1d9)][0x0]){const _0x4bece4=_0x1820f0[_0x407f8b(0x1c3)](global['capabilities'][_0x407f8b(0x1b1)],0x0)?!!global[_0x407f8b(0x1d7)][0x0][_0x407f8b(0x1e8)]||!!global[_0x407f8b(0x1d7)][0x0][_0x1820f0['pfFUn']]:![],_0x424088={};_0x424088[_0x407f8b(0x1e8)]=_0x4bece4,await _0x1820f0[_0x407f8b(0x1ca)](percyAutoCapture,global[_0x407f8b(0x1d9)][0x0],_0x1820f0['SRGwE'],_0x424088);}}catch(_0x2d4405){}!global['__skipSessionName']&&(await global['__drivers'][0x0][_0x407f8b(0x1a8)](_0x407f8b(0x199)+JSON[_0x407f8b(0x1e9)](this[_0x407f8b(0x1e1)][_0x407f8b(0x1a9)]()[_0x407f8b(0x20a)](_0x1820f0[_0x407f8b(0x209)]))+'}}'),global[_0x407f8b(0x1d9)][0x0][_0x407f8b(0x1c5)]=!![]);const _0x528516=_0x1820f0['TXPwM'](this[_0x407f8b(0x1e1)][_0x407f8b(0x1ae)],_0x1820f0[_0x407f8b(0x1c6)]);_0x528516?(global[_0x407f8b(0x1e0)]=!![],global['__error_messages__']['push'](this[_0x407f8b(0x1e1)][_0x407f8b(0x19d)][_0x407f8b(0x1e2)]),await _0x1820f0[_0x407f8b(0x1a2)](_0x205f69,JSON[_0x407f8b(0x1e9)](_0x1820f0[_0x407f8b(0x1d2)](_0x1820f0[_0x407f8b(0x1e4)],this[_0x407f8b(0x1e1)][_0x407f8b(0x19d)]['message'])),_0x1820f0[_0x407f8b(0x1af)])):await _0x1820f0[_0x407f8b(0x204)](_0x205f69,JSON[_0x407f8b(0x1e9)](_0x1820f0[_0x407f8b(0x1d4)]),_0x1820f0[_0x407f8b(0x206)]);}catch(_0x158ac9){}try{if(this[_0x407f8b(0x1e1)]['accessibilityScanStarted']&&globals[_0x407f8b(0x1b5)](_0x1820f0[_0x407f8b(0x1e3)])&&globals[_0x407f8b(0x1b5)](_0x1820f0['EYeyF'])){logger[_0x407f8b(0x1b2)](_0x1820f0[_0x407f8b(0x1ba)]);const _0x447898={};_0x447898[_0x407f8b(0x1f4)]=this[_0x407f8b(0x1e1)]['testAnalyticsId'],_0x447898[_0x407f8b(0x1ad)]=process['env'][testHubConstants[_0x407f8b(0x200)][_0x407f8b(0x1fe)]],_0x447898['thJwtToken']=process[_0x407f8b(0x1d8)][testHubConstants[_0x407f8b(0x200)]['BROWSERSTACK_TESTHUB_JWT']];const _0x35b757=_0x447898;logger[_0x407f8b(0x1b3)](_0x407f8b(0x1a3)+JSON[_0x407f8b(0x1e9)](_0x35b757)),logger[_0x407f8b(0x1b3)](_0x1820f0[_0x407f8b(0x1dc)]),logger[_0x407f8b(0x1b3)](util[_0x407f8b(0x198)](await global[_0x407f8b(0x1d9)][0x0][_0x407f8b(0x210)](scripts[_0x407f8b(0x1cb)],{'method':global[_0x407f8b(0x1f8)]}))),await global[_0x407f8b(0x1d9)][0x0][_0x407f8b(0x210)](scripts[_0x407f8b(0x1d3)],_0x35b757),logger['info'](_0x1820f0[_0x407f8b(0x20b)]);}}catch(_0x297492){logger[_0x407f8b(0x1d6)](_0x407f8b(0x1bb)+this[_0x407f8b(0x1e1)][_0x407f8b(0x1a9)]()+_0x407f8b(0x1bc),_0x297492);}try{try{if(_0x1820f0['sDQTm'](shouldProcessEventForTesthub)){global[_0x407f8b(0x1d9)][0x0]&&await _0x1820f0['NjOee'](sendPlatformDetails,global['__drivers'][0x0],this[_0x407f8b(0x1e1)]?this['currentTest'][_0x407f8b(0x1c9)]:null);if(_0x1820f0[_0x407f8b(0x202)](isBrowserstackInfra)){const _0x916d4=_0x407f8b(0x212)+Date[_0x407f8b(0x19f)]();await _0x1820f0[_0x407f8b(0x19c)](_0x205f69,JSON[_0x407f8b(0x1e9)](_0x916d4),_0x1820f0[_0x407f8b(0x20c)]);}}}catch{}_0x1820f0['MKvfn'](global['__drivers'][0x0][_0x407f8b(0x1b0)],0x0)&&await global[_0x407f8b(0x1a5)]();}catch(_0x43d80c){}_0x1820f0[_0x407f8b(0x1ea)](_0xb7217a);})[_0x3ac207(0x1a6)](()=>_0x316733());},'afterAll'(_0x1b3449){const _0x12fbc2=a32_0x229932,_0x4dc18e={'boCNH':function(_0x472e2f){return _0x472e2f();}},_0x2b736b='browserstack internal helper hook';this[_0x12fbc2(0x1fd)](0xfde8),new Promise(async _0x3405c4=>{const _0x14954b=_0x12fbc2;PerformanceTester[_0x14954b(0x1df)](),await global['driverCleanup'](),_0x4dc18e[_0x14954b(0x1b4)](_0x3405c4);})['then'](()=>_0x1b3449());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a33_0x370121=a33_0x25a9;(function(_0x1b42c4,_0x1c10e5){const _0x51e5ea=a33_0x25a9,_0x1f4253=_0x1b42c4();while(!![]){try{const _0x26ae69=-parseInt(_0x51e5ea(0x20e))/0x1+-parseInt(_0x51e5ea(0x1e1))/0x2+parseInt(_0x51e5ea(0x214))/0x3*(-parseInt(_0x51e5ea(0x201))/0x4)+-parseInt(_0x51e5ea(0x1df))/0x5+parseInt(_0x51e5ea(0x20a))/0x6*(parseInt(_0x51e5ea(0x213))/0x7)+-parseInt(_0x51e5ea(0x218))/0x8+parseInt(_0x51e5ea(0x20b))/0x9;if(_0x26ae69===_0x1c10e5)break;else _0x1f4253['push'](_0x1f4253['shift']());}catch(_0x441ff7){_0x1f4253['push'](_0x1f4253['shift']());}}}(a33_0x1412,0x30a5f));function a33_0x25a9(_0x466cf1,_0x10efe3){const _0x14128e=a33_0x1412();return a33_0x25a9=function(_0x25a947,_0x4bc196){_0x25a947=_0x25a947-0x1dd;let _0x5b9138=_0x14128e[_0x25a947];return _0x5b9138;},a33_0x25a9(_0x466cf1,_0x10efe3);}function a33_0x1412(){const _0x170869=['JTXMG','slice','895060HrQdzw','config','516774CECsqi','VhoRB','existsSync','MjUKP','platform','../utils/constants','forEach','useW3C','platforms','child\x20process\x20exited\x20with\x20code\x20','../../helpers/logger','hRChe','NWFPP','Deleting\x20','cwd','modifyBrowserStackW3CCaps','xXJji','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','lghcp','--env','join','debug','exports','push','osLNr','start_process','qKgVq','nightwatch-browserstack.json','nightwatch.json','../../helpers/BrowserStackSetup','selenium','desiredCapabilities','17164cuureM','trim','mWuHS','Getting\x20your\x20nightwatch\x20configs\x20from\x20','hub.browserstack.com','isUndefined','dNUFL','getPlatformName','test_settings','30qgmFpK','9240651qvGIEX','mergeDeep','host','277976nuygaU','inherit','info','--config','split','260127qEDFMS','42bUqNHy','env','tGpRo','Xdjub','1902656KbxVUi','CrEfD','child_process','length','UNEAV','ZGPOx','winstonLogger','modifyBrowserStackCaps','mLTKM','findIndex'];a33_0x1412=function(){return _0x170869;};return a33_0x1412();}const fs=require('fs'),path=require('path'),{spawn}=require(a33_0x370121(0x21a)),logger=require(a33_0x370121(0x1eb))[a33_0x370121(0x21e)],{default:BrowserStackSetup}=require(a33_0x370121(0x1fe)),helper=require('../../helpers/helper'),constants=require(a33_0x370121(0x1e6)),getUserNightwatchConfigs=(_0x303cf7,_0x43e2b7)=>{const _0x50ebb6=a33_0x370121,_0x3815df={'esyTP':'nightwatch.conf.js','tGpRo':_0x50ebb6(0x1fd),'DZTbm':function(_0x4ff5e1,_0x327667){return _0x4ff5e1(_0x327667);},'mWuHS':_0x50ebb6(0x1f2)};let _0x26e421=null,_0x533506={};const _0x4c5c36=_0x43e2b7[_0x50ebb6(0x221)](_0x517dda=>_0x517dda===_0x50ebb6(0x211));if(!helper[_0x50ebb6(0x206)](_0x303cf7['config'])&&fs['existsSync'](path[_0x50ebb6(0x1f5)](process[_0x50ebb6(0x1ef)](),_0x303cf7[_0x50ebb6(0x1e0)])))_0x26e421=path['join'](process[_0x50ebb6(0x1ef)](),_0x303cf7['config']),_0x43e2b7['splice'](_0x4c5c36,0x2);else{if(fs[_0x50ebb6(0x1e3)](path['join'](process[_0x50ebb6(0x1ef)](),_0x3815df['esyTP'])))_0x26e421=path['join'](process[_0x50ebb6(0x1ef)](),_0x3815df['esyTP']);else fs[_0x50ebb6(0x1e3)](path[_0x50ebb6(0x1f5)](process[_0x50ebb6(0x1ef)](),_0x3815df[_0x50ebb6(0x216)]))&&(_0x26e421=path['join'](process[_0x50ebb6(0x1ef)](),_0x3815df[_0x50ebb6(0x216)]));}return _0x26e421?(logger[_0x50ebb6(0x210)](_0x50ebb6(0x204)+_0x26e421),_0x533506=_0x3815df['DZTbm'](require,_0x26e421)):logger[_0x50ebb6(0x210)](_0x3815df[_0x50ebb6(0x203)]),_0x533506;},removeExistingEnvs=_0x4bb40a=>{const _0x27fde7=a33_0x370121,_0x456b8d={};_0x456b8d[_0x27fde7(0x1fb)]=function(_0x560cde,_0x277a06){return _0x560cde>_0x277a06;},_0x456b8d[_0x27fde7(0x1e4)]=function(_0x3105a8,_0x3ede18){return _0x3105a8>_0x3ede18;};const _0x306317=_0x456b8d;let _0x8c5a21=_0x4bb40a[_0x27fde7(0x221)](_0x4165cd=>_0x4165cd===_0x27fde7(0x1f4));_0x306317['qKgVq'](_0x8c5a21,-0x1)&&_0x4bb40a['splice'](_0x8c5a21,0x2),_0x8c5a21=_0x4bb40a[_0x27fde7(0x221)](_0x332352=>_0x332352==='-e'),_0x306317['MjUKP'](_0x8c5a21,-0x1)&&_0x4bb40a['splice'](_0x8c5a21,0x2);};function run(_0x5cdc86,_0x2c76da){const _0x42585b=a33_0x370121,_0xfb9e04={'dNUFL':'nightwatch','CrEfD':function(_0x4c183c,_0x50f264){return _0x4c183c+_0x50f264;},'xXJji':_0x42585b(0x209),'mLTKM':function(_0xfe5ece,_0x415336,_0x21aa05){return _0xfe5ece(_0x415336,_0x21aa05);},'POjyD':_0x42585b(0x205),'VhoRB':'Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','UNEAV':function(_0x154870,_0xbcefbd){return _0x154870===_0xbcefbd;},'qTcOc':_0x42585b(0x1fc),'SqKDQ':function(_0x5080ed,_0x57a55d){return _0x5080ed(_0x57a55d);},'osLNr':function(_0x49f45a,_0x5d1859,_0xa0c927,_0x5b4589){return _0x49f45a(_0x5d1859,_0xa0c927,_0x5b4589);},'NWFPP':'nightwatch.cmd','lghcp':'--config','Xdjub':_0x42585b(0x1f4),'JTXMG':_0x42585b(0x20f),'iShPu':'close'},_0xaf13e5=new BrowserStackSetup(_0x5cdc86);if(!_0xaf13e5[_0x42585b(0x1e0)])return;const _0x124cb9=_0xfb9e04[_0x42585b(0x220)](getUserNightwatchConfigs,_0x5cdc86,_0x2c76da),_0xdfb61d={};_0xdfb61d[_0x42585b(0x1fa)]=![];const _0x26407e={};_0x26407e[_0x42585b(0x20d)]=_0xfb9e04['POjyD'],_0x26407e['port']=0x1bb;const _0x4e89b2={};_0x4e89b2['webdriver']=_0xdfb61d,_0x4e89b2[_0x42585b(0x1ff)]=_0x26407e;const _0x4a5831=_0x4e89b2;logger['info'](_0xfb9e04[_0x42585b(0x1e2)]);const _0x206e2a={..._0x124cb9},_0xb80deb=_0x206e2a,_0x161f0e=helper[_0x42585b(0x1e8)](_0xaf13e5[_0x42585b(0x1e0)]),_0x3a4dff=[];_0xaf13e5['config'][_0x42585b(0x1e9)]['forEach']((_0xa3864f,_0x3e0542)=>{const _0x485038=_0x42585b;_0x161f0e?_0x3a4dff[_0x485038(0x1f8)](helper[_0x485038(0x1f0)](_0xaf13e5[_0x485038(0x1e0)],_0xfb9e04[_0x485038(0x207)],_0x3e0542)):_0x3a4dff[_0x485038(0x1f8)](helper[_0x485038(0x21f)](_0xaf13e5[_0x485038(0x1e0)],_0xfb9e04['dNUFL'],_0x3e0542));});const _0x13323e={},_0x468ac5=[];_0x5cdc86[_0x42585b(0x215)]=_0x5cdc86[_0x42585b(0x215)]||_0x5cdc86['e'];const _0x1e42a8=_0x5cdc86[_0x42585b(0x215)]?_0x5cdc86[_0x42585b(0x215)][_0x42585b(0x202)]()[_0x42585b(0x212)](',')['map'](_0xcbb8e=>_0xcbb8e[_0x42585b(0x202)]())['filter'](_0x101db2=>_0x101db2!==''):[''];_0xfb9e04[_0x42585b(0x21c)](_0x1e42a8[_0x42585b(0x21b)],0x0)&&_0x1e42a8[_0x42585b(0x1f8)]('');_0x1e42a8[_0x42585b(0x1e7)](_0x58dedb=>{const _0x466e01=_0x42585b,_0x49f2cc={'hRChe':function(_0x58b84d,_0xc9b18c){const _0x56383e=a33_0x25a9;return _0xfb9e04[_0x56383e(0x219)](_0x58b84d,_0xc9b18c);},'ZGPOx':_0xfb9e04[_0x466e01(0x1f1)]};_0x3a4dff['forEach'](_0x378325=>{const _0x456ee0=_0x466e01;let _0x2c1c98=_0x49f2cc[_0x456ee0(0x1ec)](helper[_0x456ee0(0x208)](_0x378325,'_'),'_'+Date['now']());_0x58dedb&&(_0x2c1c98+='_'+_0x58dedb);if(_0x58dedb&&(!_0x124cb9[_0x49f2cc[_0x456ee0(0x21d)]]||!_0x124cb9[_0x49f2cc[_0x456ee0(0x21d)]][_0x58dedb]))return;const _0x15dc6d={..._0x4a5831};_0x15dc6d[_0x456ee0(0x200)]=_0x378325;const _0x2ab4e0=_0x15dc6d;_0x13323e[_0x2c1c98]=_0x58dedb?helper[_0x456ee0(0x20c)](_0x124cb9[_0x49f2cc['ZGPOx']][_0x58dedb],_0x2ab4e0):_0x2ab4e0,_0x468ac5[_0x456ee0(0x1f8)](_0x2c1c98);});});!_0xb80deb[_0x42585b(0x209)]&&(_0xb80deb['test_settings']={});_0xb80deb[_0x42585b(0x209)]={..._0xb80deb[_0x42585b(0x209)],..._0x13323e};const _0x1fb008=path[_0x42585b(0x1f5)](__dirname,_0xfb9e04['qTcOc']);fs['writeFileSync'](_0x1fb008,JSON['stringify'](_0xb80deb)),_0xfb9e04['SqKDQ'](removeExistingEnvs,_0x2c76da);const _0x129e12=_0xfb9e04[_0x42585b(0x1f9)](spawn,/^win/['test'](process[_0x42585b(0x1e5)])?_0xfb9e04[_0x42585b(0x1ed)]:_0xfb9e04[_0x42585b(0x207)],[_0xfb9e04[_0x42585b(0x1f3)],_0x1fb008,..._0x2c76da[_0x42585b(0x1de)](0x1),_0xfb9e04[_0x42585b(0x217)],_0x468ac5[_0x42585b(0x1f5)](',')],{'stdio':_0xfb9e04[_0x42585b(0x1dd)]});_0x129e12['on'](_0xfb9e04['iShPu'],async _0x1b6004=>{const _0x5440e5=_0x42585b;logger[_0x5440e5(0x1f6)](_0x5440e5(0x1ea)+_0x1b6004),logger[_0x5440e5(0x210)](_0x5440e5(0x1ee)+_0x1fb008),fs['unlinkSync'](_0x1fb008);});}module[a33_0x370121(0x1f7)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a34_0x3d8a(_0x9d3c49,_0x29ea80){const _0x358dab=a34_0x358d();return a34_0x3d8a=function(_0x3d8a1c,_0x580f4e){_0x3d8a1c=_0x3d8a1c-0x100;let _0x50ba99=_0x358dab[_0x3d8a1c];return _0x50ba99;},a34_0x3d8a(_0x9d3c49,_0x29ea80);}const a34_0x3bc1cb=a34_0x3d8a;(function(_0x510606,_0x25da71){const _0xe0f232=a34_0x3d8a,_0x3104c0=_0x510606();while(!![]){try{const _0x2835d6=parseInt(_0xe0f232(0x12f))/0x1+parseInt(_0xe0f232(0x15c))/0x2+-parseInt(_0xe0f232(0x10f))/0x3*(-parseInt(_0xe0f232(0x10a))/0x4)+-parseInt(_0xe0f232(0x133))/0x5+parseInt(_0xe0f232(0x161))/0x6*(parseInt(_0xe0f232(0x121))/0x7)+parseInt(_0xe0f232(0x12e))/0x8*(parseInt(_0xe0f232(0x160))/0x9)+-parseInt(_0xe0f232(0x149))/0xa;if(_0x2835d6===_0x25da71)break;else _0x3104c0['push'](_0x3104c0['shift']());}catch(_0x1786df){_0x3104c0['push'](_0x3104c0['shift']());}}}(a34_0x358d,0x1af01));const util=require(a34_0x3bc1cb(0x15d)),logger=require('../../helpers/logger')[a34_0x3bc1cb(0x102)],{isAccessibilityAutomationSession}=require(a34_0x3bc1cb(0x159)),{isUndefined}=require(a34_0x3bc1cb(0x12a)),scripts=require(a34_0x3bc1cb(0x14b));function a34_0x358d(){const _0x36c76e=['No\x20accessibility\x20results\x20were\x20found.','VhgDn','(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','env','../../helpers/helper','stringify','project','format','731688BbKAAV','165318KnyCvz','YJOJI','fetyO','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','1102010JRBmPF','latest','mnBCQ','setAccessibilityCapabilities','accessibilityOptions.scannerProcessingTimeout','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','bestPractice','bTrza','evaluate','browserStackEvaluate','method','getAccessibilityResults','scannerProcessingTimeout','chrome','constructor','currentTest','Playwright','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','No\x20summaryResults\x20found.','clSCC','error','guIqE','3649540rYgGOf','ezizj','../../helpers/accessibility-automation/scripts','includeIssueType','bstackSdkArgs','FYwiw','accessibilityOptions','browserStackExecuteDriver','OQuKO','browser_version','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','testInfo','bEaRk','tTHpQ','performScan','kYyKg','../../helpers/accessibility-automation/helper','rXpuW','accessibilityPlatform','64020KPboBB','util','bNnbV','browserName','18Hmgaex','894gaDDcx','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Rnlgy','debug','playwright-chromium','workerInfo','warn','winstonLogger','needsReview','use','deviceName','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','accessibilityOptions.wcagVersion','EINjT','gOnXd','920AQxaAO','kcYvx','aIhUo','processAccessibilityCaps','name','1827fukFYM','fUMRJ','browser','browserstack.accessibility','WebDriver','RAKVH','nTUBH','connectOptions','executeScript','executeAsyncScript','TNOnr','Vhpcd','fwbqZ','CBbYI','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','wcagVersion','hoZPL','BS_A11Y_JWT','8239FIfuZR','(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','oNwHh','HzjQR','UXGUG'];a34_0x358d=function(){return _0x36c76e;};return a34_0x358d();}exports[a34_0x3bc1cb(0x13c)]=async(_0x4b5ecb,_0x47b2fb,_0x25cd19={})=>{const _0x349e1c=a34_0x3bc1cb,_0x54f8ae={};_0x54f8ae[_0x349e1c(0x130)]='bstackSdkArgs';const _0x2b668a=_0x54f8ae;return await _0x4b5ecb[_0x349e1c(0x13b)](_0x349e1c(0x122)+_0x47b2fb['replace'](/arguments/g,_0x2b668a['YJOJI'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x349e1c(0x12b)](_0x25cd19)+')');},exports[a34_0x3bc1cb(0x150)]=async(_0x230dd3,_0x56815a,_0x1d4df3={})=>{const _0x2b501d=a34_0x3bc1cb,_0x2d9e18={};_0x2d9e18[_0x2b501d(0x155)]=function(_0x4460ad,_0x5bc268){return _0x4460ad===_0x5bc268;},_0x2d9e18[_0x2b501d(0x131)]=_0x2b501d(0x113),_0x2d9e18['cKDoL']=function(_0x1e558e,_0x3f967e){return _0x1e558e===_0x3f967e;},_0x2d9e18['VhgDn']=_0x2b501d(0x143),_0x2d9e18[_0x2b501d(0x11c)]=_0x2b501d(0x14d);const _0xd734d4=_0x2d9e18;if(_0xd734d4[_0x2b501d(0x155)](_0x230dd3[_0x2b501d(0x141)][_0x2b501d(0x10e)],_0xd734d4[_0x2b501d(0x131)]))return await _0x230dd3[_0x2b501d(0x118)](_0x56815a,_0x1d4df3);else{if(_0xd734d4['cKDoL'](_0x230dd3[_0x2b501d(0x141)]['name'],_0xd734d4[_0x2b501d(0x127)]))return await _0x230dd3[_0x2b501d(0x117)](_0x2b501d(0x128)+_0x56815a['replace'](/arguments/g,_0xd734d4[_0x2b501d(0x11c)])+_0x2b501d(0x106)+JSON['stringify'](_0x1d4df3)+')');}},exports[a34_0x3bc1cb(0x136)]=async _0x4e2bc3=>{const _0x158e6e=a34_0x3bc1cb,_0x5b24f3={};_0x5b24f3[_0x158e6e(0x163)]=_0x158e6e(0x107),_0x5b24f3[_0x158e6e(0x156)]=_0x158e6e(0x137),_0x5b24f3[_0x158e6e(0x125)]='accessibilityOptions.includeIssueType.bestPractice',_0x5b24f3[_0x158e6e(0x14a)]='accessibilityOptions.includeIssueType.needsReview',_0x5b24f3['TNOnr']='accessibilityOptions.authToken',_0x5b24f3['APyeS']='accessibilityOptions.scannerVersion';const _0x58b05f=_0x5b24f3;_0x4e2bc3['accessibilityOptions']&&(_0x4e2bc3[_0x158e6e(0x14f)][_0x158e6e(0x11e)]&&(_0x4e2bc3[_0x58b05f[_0x158e6e(0x163)]]=_0x4e2bc3[_0x158e6e(0x14f)][_0x158e6e(0x11e)]),_0x4e2bc3['accessibilityOptions'][_0x158e6e(0x13f)]&&(_0x4e2bc3[_0x58b05f[_0x158e6e(0x156)]]=_0x4e2bc3[_0x158e6e(0x14f)][_0x158e6e(0x13f)]),_0x4e2bc3[_0x158e6e(0x14f)][_0x158e6e(0x14c)]&&(_0x4e2bc3[_0x58b05f[_0x158e6e(0x125)]]=_0x4e2bc3['accessibilityOptions'][_0x158e6e(0x14c)][_0x158e6e(0x139)],_0x4e2bc3[_0x58b05f[_0x158e6e(0x14a)]]=_0x4e2bc3[_0x158e6e(0x14f)]['includeIssueType'][_0x158e6e(0x103)]));const _0x218e8a=JSON['parse'](process[_0x158e6e(0x129)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])['scannerVersion'];_0x4e2bc3[_0x58b05f[_0x158e6e(0x119)]]=process[_0x158e6e(0x129)][_0x158e6e(0x120)],_0x4e2bc3[_0x58b05f['APyeS']]=_0x218e8a,delete _0x4e2bc3[_0x158e6e(0x14f)];},exports[a34_0x3bc1cb(0x13e)]=async _0x194ca8=>{const _0x4d1fa2=a34_0x3bc1cb,_0xd73de7={};_0xd73de7[_0x4d1fa2(0x148)]=_0x4d1fa2(0x126),_0xd73de7[_0x4d1fa2(0x11a)]=_0x4d1fa2(0x11d);const _0x53807b=_0xd73de7;if(global[_0x4d1fa2(0x15b)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x194ca8,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x194ca8,scripts.getResults);return res;}catch{return logger[_0x4d1fa2(0x147)](_0x53807b[_0x4d1fa2(0x148)]),[];}else return logger[_0x4d1fa2(0x101)](_0x53807b[_0x4d1fa2(0x11a)]),[];},exports[a34_0x3bc1cb(0x157)]=async(_0x5a9a99,_0x1a53a6='')=>{const _0x2e9363=a34_0x3bc1cb;if(global['accessibilityPlatform']){const _0x37d5c7={};return _0x37d5c7[_0x2e9363(0x13d)]=_0x1a53a6,await exports['browserStackEvaluate'](_0x5a9a99,scripts[_0x2e9363(0x157)],_0x37d5c7);}},exports['getAccessibilityResultsSummary']=async _0x3f2cf0=>{const _0x3a4d8d=a34_0x3bc1cb,_0x131007={};_0x131007[_0x3a4d8d(0x13a)]=_0x3a4d8d(0x145),_0x131007['fhXMx']='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x594284=_0x131007;if(global[_0x3a4d8d(0x15b)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3f2cf0,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x3f2cf0,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x3a4d8d(0x164)](_0x594284['bTrza']),{};}else return logger[_0x3a4d8d(0x101)](_0x594284['fhXMx']),{};},exports['platformValidation']=async _0x65d6b3=>{const _0x164546=a34_0x3bc1cb,_0x59cf3a={'EINjT':function(_0x293cea,_0x34ec02){return _0x293cea!==_0x34ec02;},'nWodc':_0x164546(0x138),'TwATz':function(_0x15e676,_0x254406){return _0x15e676===_0x254406;},'hoZPL':_0x164546(0x140),'clSCC':function(_0x137dd0,_0x5683c5){return _0x137dd0===_0x5683c5;},'oNwHh':_0x164546(0x165),'kYyKg':_0x164546(0x132),'gOnXd':function(_0x3b992b,_0x37261b){return _0x3b992b(_0x37261b);},'OQuKO':function(_0x568256,_0xb684a1){return _0x568256===_0xb684a1;},'mnBCQ':_0x164546(0x134),'xntKn':function(_0x5cd4b9,_0x491356){return _0x5cd4b9>_0x491356;},'kcYvx':_0x164546(0x162)};try{if(!_0x59cf3a[_0x164546(0x108)](_0x65d6b3[_0x164546(0x105)],''))return logger[_0x164546(0x101)](_0x59cf3a['nWodc']),![];const _0x47d909=_0x65d6b3[_0x164546(0x111)];if(!(_0x59cf3a['TwATz'](_0x47d909,_0x59cf3a[_0x164546(0x11f)])||_0x59cf3a[_0x164546(0x146)](_0x47d909,_0x59cf3a[_0x164546(0x123)])))return logger[_0x164546(0x101)](_0x59cf3a[_0x164546(0x158)]),![];const _0x2b748b=_0x59cf3a[_0x164546(0x109)](parseInt,_0x65d6b3[_0x164546(0x152)]);if(!(_0x59cf3a[_0x164546(0x151)](_0x2b748b,_0x59cf3a[_0x164546(0x135)])||_0x59cf3a['xntKn'](_0x2b748b,0x5e)))return logger[_0x164546(0x101)](_0x59cf3a[_0x164546(0x10b)]),![];}catch(_0x24c960){logger[_0x164546(0x164)](_0x164546(0x144)+util[_0x164546(0x12d)](_0x24c960));}return!![];},exports[a34_0x3bc1cb(0x10d)]=(_0x45ae60,_0x343270,_0x19a0c8)=>{const _0xba2bf3=a34_0x3bc1cb,_0x1fc666={'aIhUo':function(_0xcbb0c7){return _0xcbb0c7();},'fwbqZ':_0xba2bf3(0x112),'HzjQR':function(_0x578c53,_0x4b2053){return _0x578c53===_0x4b2053;},'KsZFr':'chrome','fUMRJ':_0xba2bf3(0x165),'aTZqP':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','bNnbV':'latest','FYwiw':function(_0x2d3dcc,_0x250b72){return _0x2d3dcc>_0x250b72;},'nTUBH':_0xba2bf3(0x162),'RAKVH':function(_0x3c9912,_0x29e020){return _0x3c9912(_0x29e020);},'srtJa':_0xba2bf3(0x138),'rXpuW':function(_0x5d6df5,_0x209b67){return _0x5d6df5+_0x209b67;},'GzMwr':function(_0x4c692e,_0x5063f9){return _0x4c692e(_0x5063f9);}};try{if(_0x1fc666[_0xba2bf3(0x10c)](isAccessibilityAutomationSession)){global[_0xba2bf3(0x15b)]=!![];!_0x45ae60[_0x1fc666[_0xba2bf3(0x11b)]]&&(global[_0xba2bf3(0x15b)]=![]);!(_0x1fc666[_0xba2bf3(0x124)](_0x45ae60[_0xba2bf3(0x15f)],_0x1fc666['KsZFr'])||_0x1fc666[_0xba2bf3(0x124)](_0x45ae60[_0xba2bf3(0x15f)],_0x1fc666[_0xba2bf3(0x110)]))&&(logger[_0xba2bf3(0x101)](_0x1fc666['aTZqP']),global[_0xba2bf3(0x15b)]=![]);!(_0x1fc666['HzjQR'](_0x45ae60[_0xba2bf3(0x152)],_0x1fc666[_0xba2bf3(0x15e)])||_0x1fc666[_0xba2bf3(0x14e)](_0x45ae60[_0xba2bf3(0x152)],0x5e))&&(logger['warn'](_0x1fc666[_0xba2bf3(0x115)]),global['accessibilityPlatform']=![]);!_0x1fc666[_0xba2bf3(0x114)](isUndefined,_0x45ae60['deviceName'])&&(logger[_0xba2bf3(0x101)](_0x1fc666['srtJa']),global['accessibilityPlatform']=![]);if(!global[_0xba2bf3(0x15b)]){_0x45ae60[_0x1fc666[_0xba2bf3(0x11b)]]=![];const _0x1e1ba0=_0x1fc666[_0xba2bf3(0x15a)](_0x343270,_0x1fc666['GzMwr'](encodeURIComponent,JSON['stringify'](_0x45ae60)));_0x19a0c8&&(_0x19a0c8[_0xba2bf3(0x142)][_0xba2bf3(0x154)][_0xba2bf3(0x12c)][_0xba2bf3(0x104)][_0xba2bf3(0x116)]['wsEndpoint']=_0x1e1ba0,_0x19a0c8[_0xba2bf3(0x100)][_0xba2bf3(0x12c)]['use']['connectOptions']['wsEndpoint']=_0x1e1ba0);}}}catch(_0x30bd9c){logger[_0xba2bf3(0x164)](_0xba2bf3(0x153)+util[_0xba2bf3(0x12d)](_0x30bd9c));}};
|
|
1
|
+
const a34_0x21ee7e=a34_0x25c5;function a34_0x2ea9(){const _0x13ff3b=['MvyhP','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','browserstack.accessibility','ZJklr','browserName','No\x20summaryResults\x20found.','browserStackEvaluate','BZebJ','UYGQm','name','1234HJijhW','warn','ZASjX','QCsNd','accessibilityPlatform','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','kPDJM','QxOri','kzJZE','getAccessibilityResults','WebDriver','(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','use','10IymBOd','../../helpers/logger','BS_A11Y_JWT','connectOptions','accessibilityOptions.wcagVersion','vHvqQ','accessibilityOptions.includeIssueType.needsReview','ZFCHo','testInfo','bstackSdkArgs','setAccessibilityCapabilities','accessibilityOptions.scannerVersion','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','10928cnJkez','24YBmhym','currentTest','(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','LuniT','workerInfo','ahHwR','replace','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','955odBkOS','util','browser','Playwright','CMius','JxCsE','accessibilityOptions','../../helpers/accessibility-automation/scripts','DFPso','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','stringify','QXZOy','Oqoci','XIAov','SFljC','latest','deviceName','LmArA','method','project','3742413eNqwFd','winstonLogger','playwright-chromium','wcagVersion','yDpbn','processAccessibilityCaps','executeAsyncScript','879104vNZOsC','XCDbA','1901EpjJhy','includeIssueType','SIsYC','browser_version','BLAFK','qhgFY','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','browserStackExecuteDriver','parse','21tvqLoh','error','nQueQ','ZWEce','getAccessibilityResultsSummary','MFhkO','ybXTI','No\x20accessibility\x20results\x20were\x20found.','scannerProcessingTimeout','evaluate','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','wsEndpoint','1299426vzJUhc','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','performScan','xiFsN','platformValidation','ZyBwE','3193794lpkwEF','needsReview','WnDaU','../../helpers/helper','35222MNjvsi','constructor','debug','pdHUF','scannerVersion'];a34_0x2ea9=function(){return _0x13ff3b;};return a34_0x2ea9();}function a34_0x25c5(_0x1552df,_0x2aefe2){const _0x2ea9c5=a34_0x2ea9();return a34_0x25c5=function(_0x25c55b,_0x1106cd){_0x25c55b=_0x25c55b-0x17d;let _0x74d382=_0x2ea9c5[_0x25c55b];return _0x74d382;},a34_0x25c5(_0x1552df,_0x2aefe2);}(function(_0x4b2e66,_0x32b7dc){const _0x111119=a34_0x25c5,_0x59bf9a=_0x4b2e66();while(!![]){try{const _0x5c052d=-parseInt(_0x111119(0x1dc))/0x1*(-parseInt(_0x111119(0x19c))/0x2)+-parseInt(_0x111119(0x1d3))/0x3+-parseInt(_0x111119(0x1b6))/0x4*(-parseInt(_0x111119(0x1bf))/0x5)+parseInt(_0x111119(0x183))/0x6*(parseInt(_0x111119(0x1e5))/0x7)+-parseInt(_0x111119(0x1da))/0x8+parseInt(_0x111119(0x189))/0x9*(-parseInt(_0x111119(0x1a9))/0xa)+parseInt(_0x111119(0x18d))/0xb*(-parseInt(_0x111119(0x1b7))/0xc);if(_0x5c052d===_0x32b7dc)break;else _0x59bf9a['push'](_0x59bf9a['shift']());}catch(_0x35295e){_0x59bf9a['push'](_0x59bf9a['shift']());}}}(a34_0x2ea9,0x98c95));const util=require(a34_0x21ee7e(0x1c0)),logger=require(a34_0x21ee7e(0x1aa))[a34_0x21ee7e(0x1d4)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a34_0x21ee7e(0x18c)),scripts=require(a34_0x21ee7e(0x1c6));exports[a34_0x21ee7e(0x198)]=async(_0x368f60,_0x28a87d,_0x5c50fd={})=>{const _0x2005bd=a34_0x21ee7e,_0x3c4532={};_0x3c4532['ahHwR']=_0x2005bd(0x1b2);const _0x3e0a65=_0x3c4532;return await _0x368f60[_0x2005bd(0x180)](_0x2005bd(0x1b9)+_0x28a87d[_0x2005bd(0x1bd)](/arguments/g,_0x3e0a65[_0x2005bd(0x1bc)])+_0x2005bd(0x1b5)+JSON[_0x2005bd(0x1c9)](_0x5c50fd)+')');},exports[a34_0x21ee7e(0x1e3)]=async(_0xd4afb0,_0x367372,_0x465cb0={})=>{const _0x340269=a34_0x21ee7e,_0x3e2cd8={};_0x3e2cd8[_0x340269(0x17d)]=function(_0x54343a,_0x1dabaf){return _0x54343a===_0x1dabaf;},_0x3e2cd8[_0x340269(0x186)]=_0x340269(0x1a6),_0x3e2cd8[_0x340269(0x1cc)]=_0x340269(0x1c2),_0x3e2cd8['QXZOy']=_0x340269(0x1b2);const _0x4bf7c2=_0x3e2cd8;if(_0x4bf7c2[_0x340269(0x17d)](_0xd4afb0[_0x340269(0x18e)]['name'],_0x4bf7c2[_0x340269(0x186)]))return await _0xd4afb0[_0x340269(0x1d9)](_0x367372,_0x465cb0);else{if(_0x4bf7c2['ybXTI'](_0xd4afb0['constructor'][_0x340269(0x19b)],_0x4bf7c2[_0x340269(0x1cc)]))return await _0xd4afb0['executeScript'](_0x340269(0x1a7)+_0x367372[_0x340269(0x1bd)](/arguments/g,_0x4bf7c2[_0x340269(0x1ca)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x340269(0x1c9)](_0x465cb0)+')');}},exports[a34_0x21ee7e(0x1b3)]=async _0x847544=>{const _0x3b36c1=a34_0x21ee7e,_0x5a4dbe={};_0x5a4dbe[_0x3b36c1(0x1b0)]=_0x3b36c1(0x1ad),_0x5a4dbe[_0x3b36c1(0x1e7)]='accessibilityOptions.scannerProcessingTimeout',_0x5a4dbe[_0x3b36c1(0x1db)]='accessibilityOptions.includeIssueType.bestPractice',_0x5a4dbe[_0x3b36c1(0x1e8)]=_0x3b36c1(0x1af),_0x5a4dbe[_0x3b36c1(0x19e)]='accessibilityOptions.authToken',_0x5a4dbe[_0x3b36c1(0x1ea)]=_0x3b36c1(0x1b4);const _0x546cd8=_0x5a4dbe;_0x847544[_0x3b36c1(0x1c5)]&&(_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1d6)]&&(_0x847544[_0x546cd8[_0x3b36c1(0x1b0)]]=_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1d6)]),_0x847544['accessibilityOptions']['scannerProcessingTimeout']&&(_0x847544[_0x546cd8[_0x3b36c1(0x1e7)]]=_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x17f)]),_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1dd)]&&(_0x847544[_0x546cd8['XCDbA']]=_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1dd)]['bestPractice'],_0x847544[_0x546cd8[_0x3b36c1(0x1e8)]]=_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1dd)][_0x3b36c1(0x18a)]));const _0x1a8cb4=JSON[_0x3b36c1(0x1e4)](process['env'][_0x3b36c1(0x193)])[_0x3b36c1(0x191)];_0x847544[_0x546cd8[_0x3b36c1(0x19e)]]=process['env'][_0x3b36c1(0x1ab)],_0x847544[_0x546cd8[_0x3b36c1(0x1ea)]]=_0x1a8cb4,delete _0x847544[_0x3b36c1(0x1c5)];},exports[a34_0x21ee7e(0x1a5)]=async _0x2ff7c0=>{const _0x43385c=a34_0x21ee7e,_0x14ab5f={};_0x14ab5f[_0x43385c(0x1a4)]=_0x43385c(0x17e),_0x14ab5f[_0x43385c(0x1ba)]=_0x43385c(0x1e2);const _0x9f0ade=_0x14ab5f;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x2ff7c0,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x2ff7c0,scripts.getResults);return res;}catch{return logger[_0x43385c(0x1e6)](_0x9f0ade[_0x43385c(0x1a4)]),[];}else return logger[_0x43385c(0x19d)](_0x9f0ade[_0x43385c(0x1ba)]),[];},exports[a34_0x21ee7e(0x185)]=async(_0x2fd0ae,_0x2c64ab='')=>{const _0x16ec54=a34_0x21ee7e;if(global[_0x16ec54(0x1a0)]){const _0x4fe1c5={};return _0x4fe1c5[_0x16ec54(0x1d1)]=_0x2c64ab,await exports[_0x16ec54(0x198)](_0x2fd0ae,scripts[_0x16ec54(0x185)],_0x4fe1c5);}},exports[a34_0x21ee7e(0x1e9)]=async _0x3f7783=>{const _0x5141ea=a34_0x21ee7e,_0x19beda={};_0x19beda[_0x5141ea(0x1c4)]=_0x5141ea(0x197),_0x19beda['MvyhP']=_0x5141ea(0x1c8);const _0x1e0831=_0x19beda;if(global[_0x5141ea(0x1a0)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3f7783,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x3f7783,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x5141ea(0x18f)](_0x1e0831[_0x5141ea(0x1c4)]),{};}else return logger[_0x5141ea(0x19d)](_0x1e0831[_0x5141ea(0x192)]),{};},exports[a34_0x21ee7e(0x187)]=async _0x553576=>{const _0x3be746=a34_0x21ee7e,_0x246df4={'qhgFY':function(_0x27589d,_0x479073){return _0x27589d!==_0x479073;},'Vrjtu':_0x3be746(0x1be),'UYGQm':function(_0x9dde4d,_0x212f23){return _0x9dde4d===_0x212f23;},'ZyBwE':'chrome','BuZuv':function(_0x13a9f7,_0x545435){return _0x13a9f7===_0x545435;},'yDpbn':_0x3be746(0x1d5),'GKLRk':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','CMius':function(_0x4e2b9c,_0x1100ca){return _0x4e2b9c(_0x1100ca);},'bjWzR':_0x3be746(0x1ce),'vHvqQ':function(_0x5f2059,_0x4befe4){return _0x5f2059>_0x4befe4;},'QCsNd':_0x3be746(0x1a1)};try{if(!_0x246df4[_0x3be746(0x1e1)](_0x553576['deviceName'],''))return logger['warn'](_0x246df4['Vrjtu']),![];const _0x1736ea=_0x553576[_0x3be746(0x1c1)];if(!(_0x246df4[_0x3be746(0x19a)](_0x1736ea,_0x246df4[_0x3be746(0x188)])||_0x246df4['BuZuv'](_0x1736ea,_0x246df4[_0x3be746(0x1d7)])))return logger[_0x3be746(0x19d)](_0x246df4['GKLRk']),![];const _0x7a6263=_0x246df4[_0x3be746(0x1c3)](parseInt,_0x553576[_0x3be746(0x1df)]);if(!(_0x246df4['UYGQm'](_0x7a6263,_0x246df4['bjWzR'])||_0x246df4[_0x3be746(0x1ae)](_0x7a6263,0x5e)))return logger[_0x3be746(0x19d)](_0x246df4[_0x3be746(0x19f)]),![];}catch(_0x5d7a40){logger[_0x3be746(0x18f)](_0x3be746(0x181)+util['format'](_0x5d7a40));}return!![];},exports[a34_0x21ee7e(0x1d8)]=(_0x3f7b90,_0x125c27,_0x128351)=>{const _0x5e6010=a34_0x21ee7e,_0x1d0122={'SFljC':function(_0x2321f5){return _0x2321f5();},'QxOri':_0x5e6010(0x194),'Oqoci':function(_0xcdd3c8,_0x3873e3){return _0xcdd3c8===_0x3873e3;},'LmArA':'chrome','DFPso':_0x5e6010(0x1d5),'SIsYC':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','BZebJ':function(_0xe8f1bd,_0x531dd5){return _0xe8f1bd===_0x531dd5;},'fnXqQ':_0x5e6010(0x1ce),'WnDaU':function(_0x3fc658,_0x240537){return _0x3fc658>_0x240537;},'pdHUF':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','BLAFK':function(_0x3ccfc6,_0x2d9745){return _0x3ccfc6(_0x2d9745);},'kPDJM':_0x5e6010(0x1be),'ZJklr':function(_0x2dd68b,_0x26f57a){return _0x2dd68b+_0x26f57a;},'HvgVu':function(_0x5a054f,_0x1f5c26){return _0x5a054f(_0x1f5c26);}};try{if(_0x1d0122[_0x5e6010(0x1cd)](isAccessibilityAutomationSession)){global[_0x5e6010(0x1a0)]=!![];!_0x3f7b90[_0x1d0122['QxOri']]&&(global['accessibilityPlatform']=![]);!(_0x1d0122['Oqoci'](_0x3f7b90[_0x5e6010(0x196)],_0x1d0122[_0x5e6010(0x1d0)])||_0x1d0122[_0x5e6010(0x1cb)](_0x3f7b90[_0x5e6010(0x196)],_0x1d0122[_0x5e6010(0x1c7)]))&&(logger[_0x5e6010(0x19d)](_0x1d0122[_0x5e6010(0x1de)]),global['accessibilityPlatform']=![]);!(_0x1d0122[_0x5e6010(0x199)](_0x3f7b90[_0x5e6010(0x1df)],_0x1d0122['fnXqQ'])||_0x1d0122[_0x5e6010(0x18b)](_0x3f7b90[_0x5e6010(0x1df)],0x5e))&&(logger['warn'](_0x1d0122[_0x5e6010(0x190)]),global[_0x5e6010(0x1a0)]=![]);!_0x1d0122[_0x5e6010(0x1e0)](isUndefined,_0x3f7b90[_0x5e6010(0x1cf)])&&(logger[_0x5e6010(0x19d)](_0x1d0122[_0x5e6010(0x1a2)]),global[_0x5e6010(0x1a0)]=![]);if(!global[_0x5e6010(0x1a0)]){_0x3f7b90[_0x1d0122[_0x5e6010(0x1a3)]]=![];const _0x40483f=_0x1d0122[_0x5e6010(0x195)](_0x125c27,_0x1d0122['HvgVu'](encodeURIComponent,JSON['stringify'](_0x3f7b90)));_0x128351&&(_0x128351[_0x5e6010(0x1b8)][_0x5e6010(0x1b1)][_0x5e6010(0x1d2)][_0x5e6010(0x1a8)][_0x5e6010(0x1ac)][_0x5e6010(0x182)]=_0x40483f,_0x128351[_0x5e6010(0x1bb)][_0x5e6010(0x1d2)][_0x5e6010(0x1a8)][_0x5e6010(0x1ac)][_0x5e6010(0x182)]=_0x40483f);}}}catch(_0x98e162){logger[_0x5e6010(0x18f)](_0x5e6010(0x184)+util['format'](_0x98e162));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x112c4f=a35_0x3fc4;(function(_0x22ce29,_0x58ebe2){const _0x2acd7d=a35_0x3fc4,_0x5b4aea=_0x22ce29();while(!![]){try{const _0x4015d8=-parseInt(_0x2acd7d(0xee))/0x1*(-parseInt(_0x2acd7d(0xc0))/0x2)+-parseInt(_0x2acd7d(0xfe))/0x3*(parseInt(_0x2acd7d(0xa5))/0x4)+parseInt(_0x2acd7d(0xe1))/0x5+-parseInt(_0x2acd7d(0xdd))/0x6+parseInt(_0x2acd7d(0xd9))/0x7+-parseInt(_0x2acd7d(0x85))/0x8*(-parseInt(_0x2acd7d(0xd6))/0x9)+parseInt(_0x2acd7d(0x97))/0xa*(parseInt(_0x2acd7d(0xc8))/0xb);if(_0x4015d8===_0x58ebe2)break;else _0x5b4aea['push'](_0x5b4aea['shift']());}catch(_0x17b2fe){_0x5b4aea['push'](_0x5b4aea['shift']());}}}(a35_0x241a,0x5a66f));function a35_0x3fc4(_0x169c69,_0x5beda7){const _0x241a89=a35_0x241a();return a35_0x3fc4=function(_0x3fc46b,_0x5c1da1){_0x3fc46b=_0x3fc46b-0x6e;let _0x2dd86e=_0x241a89[_0x3fc46b];return _0x2dd86e;},a35_0x3fc4(_0x169c69,_0x5beda7);}const fs=require('fs'),path=require(a35_0x112c4f(0x78)),{spawn}=require(a35_0x112c4f(0xb7)),{format}=require(a35_0x112c4f(0x96)),logger=require(a35_0x112c4f(0xbb))['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x112c4f(0x8f)),helper=require('../../helpers/helper'),utilities=require(a35_0x112c4f(0xf0)),constants=require('../utils/constants'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require(a35_0x112c4f(0xa4)),{getFrameworkVersion}=require(a35_0x112c4f(0x10a)),{checkAccessibilityPlatformConfig}=require(a35_0x112c4f(0x8b)),{setAccessibilityCapabilities}=require(a35_0x112c4f(0x7e)),TestHubHandler=require(a35_0x112c4f(0x10c)),{shouldProcessEventForTesthub}=require(a35_0x112c4f(0x77)),getUserPlaywrightConfig=async(_0xdc3540,_0x4a4a68)=>{const _0x1d3bbd=a35_0x112c4f,_0x332cbc={'mRFjN':function(_0x2871f8){return _0x2871f8();},'tPvIf':function(_0x4f290f,_0x2de312){return _0x4f290f(_0x2de312);},'HOQAp':_0x1d3bbd(0xcc),'Jlfoi':_0x1d3bbd(0xaa)},_0x4418f7=!helper[_0x1d3bbd(0x100)](_0xdc3540[_0x1d3bbd(0x99)]),_0x5d4083=_0x4418f7?path['resolve'](process[_0x1d3bbd(0xb8)](),_0xdc3540['config']):process['cwd'](),{resolveConfigFile:_0x283e89,resolveConfigLocation:_0x3c3c00}=helper[_0x1d3bbd(0xe9)][_0x1d3bbd(0xf2)](null,_0x332cbc[_0x1d3bbd(0xa6)](getConfigLoaderPath)),_0x2a2be1=_0x283e89?_0x332cbc['tPvIf'](_0x283e89,_0x5d4083):helper['nestedKeyValue'](_0x332cbc[_0x1d3bbd(0x73)](_0x3c3c00,_0x5d4083),[_0x332cbc['HOQAp']]),_0x27caf6={};if(_0x4418f7){const _0x444eb7=_0x4a4a68[_0x1d3bbd(0xac)](_0xa06244=>_0xa06244===_0x1d3bbd(0x86)||_0xa06244==='-c'||_0xa06244[_0x1d3bbd(0x103)](_0x1d3bbd(0xaa)));_0x4a4a68[_0x1d3bbd(0xf1)](_0x444eb7,_0x4a4a68[_0x444eb7][_0x1d3bbd(0x103)](_0x332cbc['Jlfoi'])?0x1:0x2);}const _0x359319={};return _0x359319['path']=_0x2a2be1,_0x359319[_0x1d3bbd(0x99)]=_0x27caf6,_0x359319;},handleO11yRerun=_0x4ed141=>{const _0x2136c3=a35_0x112c4f,_0x5c6cb4={};_0x5c6cb4['CFXBW']=function(_0x222305,_0x42069e){return _0x222305!==_0x42069e;},_0x5c6cb4['yNQxE']=_0x2136c3(0x10b),_0x5c6cb4[_0x2136c3(0xfa)]=_0x2136c3(0x71);const _0x360364=_0x5c6cb4,_0x10f186=helper[_0x2136c3(0x6f)](process[_0x2136c3(0x80)][_0x2136c3(0xc1)]);if(_0x10f186){const _0x37e4d8=process[_0x2136c3(0x80)][_0x2136c3(0xda)],_0x4d4076=[];if(_0x360364[_0x2136c3(0xa8)](_0x37e4d8,_0x360364[_0x2136c3(0x94)])&&!helper[_0x2136c3(0x100)](_0x37e4d8)){_0x37e4d8[_0x2136c3(0xff)](',')[_0x2136c3(0xe0)](_0x28f7ca=>{const _0x474784=_0x2136c3;_0x4d4076[_0x474784(0xe6)]('('+_0x28f7ca[_0x474784(0x92)]()+')');});const _0x5d30d3='^'+_0x4d4076['join']('|')+'$';_0x4ed141['push'](_0x360364[_0x2136c3(0xfa)],_0x5d30d3);}}},spawnOriginalProcess=_0x51abac=>{const _0x48507d=a35_0x112c4f,_0x481ec8={'UBudH':function(_0x199850,_0x25c24a,_0x2e3dd9,_0x483611){return _0x199850(_0x25c24a,_0x2e3dd9,_0x483611);},'aElmh':_0x48507d(0xdb),'hESJJ':_0x48507d(0xca),'YijFf':function(_0x282662,_0x98af43){return _0x282662===_0x98af43;},'NPLjD':'win32','rnaEr':_0x48507d(0x9d)};_0x481ec8[_0x48507d(0xa3)](spawn,_0x481ec8[_0x48507d(0x101)],[_0x481ec8[_0x48507d(0xa9)],..._0x51abac[_0x48507d(0xae)](0x1)],{'shell':_0x481ec8['YijFf'](process[_0x48507d(0xb1)],_0x481ec8[_0x48507d(0xe3)]),'stdio':_0x481ec8[_0x48507d(0xef)],'cwd':process[_0x48507d(0xb8)]()});},isTestCommand=(_0x499367,_0x5a071b)=>{const _0x38909d=a35_0x112c4f,_0x500fdc={};_0x500fdc[_0x38909d(0x109)]=function(_0xb2fec3,_0xc7a5fe){return _0xb2fec3>_0xc7a5fe;},_0x500fdc[_0x38909d(0x95)]=function(_0x39a423,_0x101498){return _0x39a423===_0x101498;},_0x500fdc[_0x38909d(0xf3)]=_0x38909d(0x7a);const _0x3b24d0=_0x500fdc;if(_0x3b24d0[_0x38909d(0x109)](_0x5a071b['length'],0x1)&&_0x3b24d0[_0x38909d(0x95)](_0x5a071b[0x1],_0x3b24d0[_0x38909d(0xf3)]))return!![];return![];};async function run(_0x5bfe9c,_0xb4ff44){const _0x5dd3f1=a35_0x112c4f,_0x26b128={'LAULT':_0x5dd3f1(0xa2),'yBRvl':_0x5dd3f1(0xbf),'lIenC':function(_0x3e29b6,_0x3c4d9e){return _0x3e29b6+_0x3c4d9e;},'zwTmP':_0x5dd3f1(0xf6),'MKzyh':_0x5dd3f1(0xcb),'MDQZn':function(_0x36eefe){return _0x36eefe();},'vYqDK':_0x5dd3f1(0xbe),'QCIkm':_0x5dd3f1(0xc9),'XKSeo':_0x5dd3f1(0xeb),'TNNJG':_0x5dd3f1(0x9e),'eADDd':function(_0x41f524,_0x4db8ec){return _0x41f524>=_0x4db8ec;},'XGQJb':_0x5dd3f1(0xbd),'KOMFp':function(_0x16a0b4,_0xbb1f38,_0x3a1eb5){return _0x16a0b4(_0xbb1f38,_0x3a1eb5);},'kRrFX':function(_0x395508,_0x2733f5){return _0x395508(_0x2733f5);},'weGPB':_0x5dd3f1(0xb4),'ANiQq':_0x5dd3f1(0x10d),'LHWQG':function(_0x3c5b70,_0x24d9e3){return _0x3c5b70!=_0x24d9e3;},'IYPwR':function(_0xe02aec,_0x199a51){return _0xe02aec(_0x199a51);},'gbhjQ':function(_0x4b605c,_0x1c08ae){return _0x4b605c===_0x1c08ae;},'AdthX':_0x5dd3f1(0xad),'ibFPd':function(_0x534f01,_0x1b5cd3){return _0x534f01(_0x1b5cd3);},'yjgzg':_0x5dd3f1(0xab),'dEeXk':function(_0x278b06,_0x500ed4){return _0x278b06===_0x500ed4;},'QWyjS':_0x5dd3f1(0xc6),'eDekl':_0x5dd3f1(0xf7),'qiLts':function(_0x3746e0,_0x89a822){return _0x3746e0-_0x89a822;},'dRUJZ':'Updated\x20config\x20file\x20name\x20to\x20-\x20','KEaNw':function(_0xb611dd,_0x3e445f){return _0xb611dd>_0x3e445f;},'izLNl':function(_0x34ab7f,_0x327550,_0x368d70,_0x282de7){return _0x34ab7f(_0x327550,_0x368d70,_0x282de7);},'fYzhT':_0x5dd3f1(0xdb),'omkaF':_0x5dd3f1(0xca),'PYcGC':_0x5dd3f1(0x7a),'QsCim':_0x5dd3f1(0x86),'SroVm':'win32','NtJet':_0x5dd3f1(0x9d),'oEDJL':'close'};!helper['isFalse'](process[_0x5dd3f1(0x80)][_0x5dd3f1(0x74)])&&(process[_0x5dd3f1(0x80)][_0x5dd3f1(0x74)]=!![]);process[_0x5dd3f1(0xe8)]['includes'](_0x26b128[_0x5dd3f1(0xb2)])&&(process[_0x5dd3f1(0x80)]['BROWSERSTACK_AUTOMATION']=_0x26b128['XKSeo'],_0xb4ff44=_0xb4ff44[_0x5dd3f1(0xf9)](_0x5997c9=>_0x5997c9!==_0x5dd3f1(0xc9)));const _0x2394b9=_0xb4ff44[_0x5dd3f1(0xaf)](_0x26b128['TNNJG']);_0x26b128[_0x5dd3f1(0x8c)](_0x2394b9,0x0)&&(process['env'][_0x5dd3f1(0x9c)]=_0x26b128[_0x5dd3f1(0xb0)],_0xb4ff44=_0xb4ff44['filter'](_0x127d82=>_0x127d82!==_0x5dd3f1(0x9e)));try{const _0x3cce3a=path[_0x5dd3f1(0xd3)](helper['homedir'](),_0x26b128['LAULT'],_0x26b128[_0x5dd3f1(0x98)]);fs['existsSync'](_0x3cce3a)&&fs[_0x5dd3f1(0xc5)](_0x3cce3a);}catch(_0x2735c3){logger['debug'](_0x26b128[_0x5dd3f1(0xec)](_0x26b128['XGQJb'],_0x2735c3));}if(!_0x26b128[_0x5dd3f1(0xb9)](isTestCommand,_0x5bfe9c,_0xb4ff44)){_0x26b128['kRrFX'](spawnOriginalProcess,_0xb4ff44);return;}const _0x55274c=new BrowserStackSetup(_0x5bfe9c,FRAMEWORKS[_0x5dd3f1(0x9f)]);if(!_0x55274c['config']){logger['error'](_0x26b128[_0x5dd3f1(0x83)]);return;}await _0x55274c[_0x5dd3f1(0xd2)]();!helper['isUndefined'](_0x55274c[_0x5dd3f1(0xd4)])&&_0x55274c[_0x5dd3f1(0xd4)][_0x5dd3f1(0xa1)](_0x26b128['ANiQq'])&&(process[_0x5dd3f1(0x80)][_0x5dd3f1(0x74)]=_0x55274c['cliConfig'][_0x5dd3f1(0x107)](_0x26b128[_0x5dd3f1(0xc4)])||!![]);_0x26b128[_0x5dd3f1(0x108)](_0x55274c['config'][_0x5dd3f1(0xe7)],null)&&!helper[_0x5dd3f1(0x6f)](process['env'][_0x5dd3f1(0x9c)])&&(process[_0x5dd3f1(0x80)][_0x5dd3f1(0x9c)]=process[_0x5dd3f1(0x80)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x55274c['config'][_0x5dd3f1(0xe7)]);const _0xd30f05=!helper['isFalse'](process[_0x5dd3f1(0x80)][_0x5dd3f1(0x9c)]);let _0x3f29e0=![];_0x55274c['config'][_0x5dd3f1(0x8e)]&&(_0x3f29e0=!![],process[_0x5dd3f1(0x80)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x55274c['config'][_0x5dd3f1(0x8e)]);_0x55274c[_0x5dd3f1(0x99)][_0x5dd3f1(0x89)]&&(process[_0x5dd3f1(0x80)][_0x5dd3f1(0x6e)]=JSON[_0x5dd3f1(0x76)](_0x55274c['config'][_0x5dd3f1(0x89)]));const _0x507609=_0xb4ff44['concat'](),_0x49f611=await _0x26b128[_0x5dd3f1(0xb9)](getUserPlaywrightConfig,_0x5bfe9c,_0xb4ff44);if(helper[_0x5dd3f1(0x100)](_0x49f611)){_0x26b128[_0x5dd3f1(0xd1)](spawnOriginalProcess,_0x507609);return;}const _0x3689c4=_0x49f611[_0x5dd3f1(0x78)]?path[_0x5dd3f1(0x104)](_0x49f611[_0x5dd3f1(0x78)]):process[_0x5dd3f1(0xb8)]();process[_0x5dd3f1(0x80)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x3689c4,await TestHubHandler[_0x5dd3f1(0xed)](FRAMEWORKS['PLAYWRIGHT'],_0x55274c);_0xd30f05&&_0x26b128[_0x5dd3f1(0xd1)](handleO11yRerun,_0xb4ff44);let _0x475284=_0x26b128[_0x5dd3f1(0x72)](process[_0x5dd3f1(0x80)][_0x5dd3f1(0xc7)],_0x26b128[_0x5dd3f1(0xea)]);_0x475284=_0x475284||_0x26b128['ibFPd'](checkAccessibilityPlatformConfig,_0x55274c[_0x5dd3f1(0x99)]),process[_0x5dd3f1(0x80)][_0x5dd3f1(0xc7)]=_0x475284;_0x475284&&_0x26b128[_0x5dd3f1(0xf5)](setAccessibilityCapabilities,_0x55274c['config']);const _0x22fe05=path[_0x5dd3f1(0xd3)](_0x49f611[_0x5dd3f1(0x78)]?path[_0x5dd3f1(0x104)](_0x49f611['path']):process[_0x5dd3f1(0xb8)](),_0x26b128[_0x5dd3f1(0xdf)]);fs['writeFileSync'](_0x22fe05,helper[_0x5dd3f1(0x9b)](_0x55274c[_0x5dd3f1(0x99)])),process[_0x5dd3f1(0x80)][_0x5dd3f1(0x70)]=_0x22fe05,helper[_0x5dd3f1(0xfd)]();let _0x41ca5e='';_0x26b128[_0x5dd3f1(0x105)](helper['getPackageType'](),constants[_0x5dd3f1(0x75)][_0x5dd3f1(0xbc)])?_0x41ca5e=_0x26b128['QWyjS']:_0x41ca5e=_0x26b128[_0x5dd3f1(0x8d)];let _0x5d5a4f='';if(helper[_0x5dd3f1(0xd7)](_0x49f611[_0x5dd3f1(0x78)])){_0x5d5a4f=_0x5dd3f1(0xfb);const _0x205d88=_0x41ca5e[_0x5dd3f1(0xff)]('.');_0x205d88[_0x26b128[_0x5dd3f1(0xce)](_0x205d88['length'],0x1)]='ts',_0x41ca5e=_0x205d88['join']('.'),logger[_0x5dd3f1(0x106)](_0x26b128[_0x5dd3f1(0xec)](_0x26b128[_0x5dd3f1(0xfc)],_0x41ca5e));}else _0x5d5a4f=_0x5dd3f1(0x82);const _0x2d956b=path[_0x5dd3f1(0xd3)](_0x49f611['path']?path[_0x5dd3f1(0x104)](_0x49f611[_0x5dd3f1(0x78)]):process[_0x5dd3f1(0xb8)](),_0x41ca5e);let _0x588c4b=_0x49f611[_0x5dd3f1(0x78)]?_0x49f611[_0x5dd3f1(0x78)]:'';_0x588c4b=_0x26b128[_0x5dd3f1(0x90)](_0x588c4b[_0x5dd3f1(0x93)],0x0)?path['resolve'](_0x588c4b):'',process[_0x5dd3f1(0x80)][_0x5dd3f1(0x84)]=_0x588c4b;const _0x3a7530=helper[_0x5dd3f1(0xf8)](_0x55274c[_0x5dd3f1(0x99)]);_0x3a7530&&(_0x5d5a4f=_0x26b128[_0x5dd3f1(0xec)](_0x5dd3f1(0xba)+_0x3a7530+_0x5dd3f1(0xe5),_0x5d5a4f));helper[_0x5dd3f1(0x7f)]({},_0xb4ff44),fs[_0x5dd3f1(0x81)](_0x2d956b,_0x5d5a4f),helper[_0x5dd3f1(0xc2)]();const _0xccd853=_0x26b128[_0x5dd3f1(0x7c)](spawn,_0x26b128[_0x5dd3f1(0x9a)],[_0x26b128[_0x5dd3f1(0x87)],_0x26b128['PYcGC'],_0x26b128[_0x5dd3f1(0xb5)],_0x2d956b,..._0xb4ff44[_0x5dd3f1(0xae)](0x2)],{'shell':_0x26b128[_0x5dd3f1(0x72)](process[_0x5dd3f1(0xb1)],_0x26b128[_0x5dd3f1(0x102)]),'stdio':_0x26b128[_0x5dd3f1(0xc3)],'cwd':process[_0x5dd3f1(0xb8)](),'env':Object[_0x5dd3f1(0x79)]({},process[_0x5dd3f1(0x80)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x5dd3f1(0xb3)](_0x5bfe9c),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x55274c['config'][_0x5dd3f1(0x8a)][_0x5dd3f1(0xa0)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x55274c[_0x5dd3f1(0x99)][_0x5dd3f1(0x8a)][_0x5dd3f1(0xa7)],'BROWSERSTACK_LOG_LEVEL':_0x55274c['config']['logLevel']})}),_0x2c352e=()=>{const _0x4a33b9=_0x5dd3f1;try{const _0x482554=path['join'](helper[_0x4a33b9(0x91)](),_0x26b128[_0x4a33b9(0xe2)],_0x26b128['yBRvl']);if(fs[_0x4a33b9(0xf4)](_0x482554)){let _0x4d53f3=fs[_0x4a33b9(0xd8)](_0x482554);_0x4d53f3=JSON[_0x4a33b9(0x7d)](_0x4d53f3),_0x55274c[_0x4a33b9(0x88)]=_0x4d53f3,fs[_0x4a33b9(0xc5)](_0x482554);}}catch(_0x1d0a17){logger[_0x4a33b9(0x106)](_0x26b128[_0x4a33b9(0xec)](_0x26b128[_0x4a33b9(0xcf)],_0x1d0a17));}};_0xccd853['on'](_0x26b128[_0x5dd3f1(0xb6)],async _0x64831e=>{const _0x390249=_0x5dd3f1;try{const _0x4de35e=_0x26b128[_0x390249(0xcd)]['split']('|');let _0x2593d5=0x0;while(!![]){switch(_0x4de35e[_0x2593d5++]){case'0':fs['unlinkSync'](_0x22fe05);continue;case'1':await utilities[_0x390249(0x7b)](_0x55274c);continue;case'2':logger[_0x390249(0xde)](_0x390249(0xd0)+_0x2d956b);continue;case'3':await TestHubHandler[_0x390249(0xe4)]();continue;case'4':logger[_0x390249(0x106)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x64831e);continue;case'5':process[_0x390249(0xdc)]=_0x64831e;continue;case'6':fs[_0x390249(0xc5)](_0x2d956b);continue;case'7':logger[_0x390249(0x106)](_0x390249(0xd0)+_0x22fe05);continue;case'8':_0x26b128[_0x390249(0xd5)](_0x2c352e);continue;}break;}}catch(_0x5f4c3d){logger[_0x390249(0x106)](_0x26b128[_0x390249(0xec)](_0x26b128['vYqDK'],_0x5f4c3d));}});}function a35_0x241a(){const _0x28b915=['dirname','dEeXk','debug','get','LHWQG','mIMJC','../../helpers/test-observability/utils','null','../../helpers/testhub/testhubHandler','automation','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','isTrue','BROWSERSTACK_SETUP_CONFIG_PATH','--grep','gbhjQ','tPvIf','BROWSERSTACK_AUTOMATION','PACKAGE_TYPE','stringify','../../helpers/testhub/utils','path','assign','test','finalExecution','izLNl','parse','./accessibility-helper','filterBrowserstackArgs','env','writeFileSync','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','weGPB','USER_CONFIG_DETAILS_PATH','37096uwtzpl','--config','omkaF','errorMessage','accessibilityOptions','testContextOptions','../../helpers/accessibility-automation/helper','eADDd','eDekl','accessibility','../../helpers/BrowserStackSetup','KEaNw','homedir','trim','length','yNQxE','OHnBx','util','60shYZuN','yBRvl','config','fYzhT','serializeToYamlString','BROWSERSTACK_TEST_OBSERVABILITY','inherit','--disable-test-observability','PLAYWRIGHT','skipSessionStatus','has','.browserstack','UBudH','../../helpers/test-observability/error-handler','4htuNNf','mRFjN','skipSessionName','CFXBW','hESJJ','--config=','browserstackSetupConfig.json','findIndex','true','slice','indexOf','XKSeo','platform','QCIkm','getConfigPath','BrowserStack\x20config\x20file\x20not\x20found.','QsCim','oEDJL','child_process','cwd','KOMFp','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','../../helpers/logger','MODULE','Error\x20in\x20deleting\x20playwright\x20results','Error\x20in\x20closing\x20playwright','pw_result.json','177668BnEpqy','BROWSERSTACK_RERUN','markSDKSetupComplete','NtJet','ANiQq','unlinkSync','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_TEST_ACCESSIBILITY_YML','1549427pAiljI','--disable-browserstack-automation','playwright','8|3|1|5|4|2|6|7|0','resolvedConfigFile','MKzyh','qiLts','zwTmP','Deleting\x20','IYPwR','initialize','join','cliConfig','MDQZn','459oqFwsw','isTypescriptProject','readFileSync','257229QxBfRi','BROWSERSTACK_RERUN_TESTS','npx','exitCode','2383956qNcMZU','info','yjgzg','map','598450gHTris','LAULT','NPLjD','stop','\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();','push','testObservability','argv','requirePWModule','AdthX','false','lIenC','launchBuild','1lxiORk','rnaEr','../../helpers/utilities','splice','apply','cDMYM','existsSync','ibFPd','Error\x20in\x20getting\x20funnel\x20data\x20results','playwright-browserstack-sdk.config.js','getProxyUrl','filter','GcBSC','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','dRUJZ','clearTempPWConfig','1677861ANiKQs','split','isUndefined','aElmh','SroVm','startsWith'];a35_0x241a=function(){return _0x28b915;};return a35_0x241a();}module['exports']=run;
|
|
2
|
+
'use strict';function a35_0x46b7(_0x36729e,_0x30efdf){const _0x319909=a35_0x3199();return a35_0x46b7=function(_0x46b737,_0x5a9c3f){_0x46b737=_0x46b737-0x1b5;let _0x140732=_0x319909[_0x46b737];return _0x140732;},a35_0x46b7(_0x36729e,_0x30efdf);}const a35_0x15e037=a35_0x46b7;(function(_0x2ac93a,_0x411d11){const _0x27ea88=a35_0x46b7,_0x229d73=_0x2ac93a();while(!![]){try{const _0x523da4=-parseInt(_0x27ea88(0x20d))/0x1+-parseInt(_0x27ea88(0x256))/0x2*(-parseInt(_0x27ea88(0x1be))/0x3)+parseInt(_0x27ea88(0x223))/0x4*(-parseInt(_0x27ea88(0x21d))/0x5)+parseInt(_0x27ea88(0x233))/0x6*(-parseInt(_0x27ea88(0x20a))/0x7)+-parseInt(_0x27ea88(0x1db))/0x8*(-parseInt(_0x27ea88(0x20e))/0x9)+parseInt(_0x27ea88(0x240))/0xa*(parseInt(_0x27ea88(0x23b))/0xb)+-parseInt(_0x27ea88(0x1f6))/0xc*(-parseInt(_0x27ea88(0x231))/0xd);if(_0x523da4===_0x411d11)break;else _0x229d73['push'](_0x229d73['shift']());}catch(_0x3fd1a5){_0x229d73['push'](_0x229d73['shift']());}}}(a35_0x3199,0xabc25));function a35_0x3199(){const _0x7f094e=['pRNVW','map','getConfigPath','hlakA','LWjsa','initialize','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','../../helpers/accessibility-automation/helper','jepHS','info','finalExecution','../../helpers/BrowserStackSetup','10375284jcyXpI','hWiuu','automation','ExdUT','stringify','RMXQu','../../helpers/test-observability/error-handler','config','hjOID','splice','pXAeV','false','isTypescriptProject','skipSessionStatus','../../helpers/test-observability/constants','child_process','Error\x20in\x20getting\x20funnel\x20data\x20results','QifrN','BROWSERSTACK_TEST_OBSERVABILITY','playwright-browserstack-sdk.config.js','560sPAwBY','ukYnN','nestedKeyValue','815566zsnqyE','117XRzKco','get','test','rJVQu','MODULE','nSKag','oxGyb','DfXyO','cwd','getPackageType','apply','fkUqQ','trim','isUndefined','logLevel','5jfyyhk','unlinkSync','JnSnH','rclPm','nqUvc','Error\x20in\x20deleting\x20playwright\x20results','332212UZEjqX','testObservability','\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();','IBFmZ','resolvedConfigFile','exitCode','findIndex','push','pw_result.json','split','OANvE','ZkntT','BROWSERSTACK_SETUP_CONFIG_PATH','null','13BqZjos','existsSync','36258lTQztD','path','includes','serializeToYamlString','join','../../helpers/utilities','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','playwright-browserstack-sdk.config.cjs','209cUGNxj','clearTempPWConfig','accessibility','./reporter/pwUtils','.browserstack','228430zXuuoV','parse','Deleting\x20','isFalse','ZZWWf','BROWSERSTACK_TEST_ACCESSIBILITY_YML','BROWSERSTACK_PW_CONFIG_DIR','WFwvK','iIwCN','../utils/constants','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','sTPTG','error','--disable-browserstack-automation','--disable-test-observability','startsWith','zbiLh','util','zygrd','assign','plmgO','npx','34fqSnuf','exports','playwright','slice','isTrue','3|5|7|2|6|8|1|0|4','PLAYWRIGHT','dirname','VRnER','FajoT','concat','env','resolve','length','119451NeebFp','xnEAj','../../helpers/testhub/testhubHandler','win32','winstonLogger','--grep','close','markSDKSetupComplete','BROWSERSTACK_AUTOMATION','filter','ETyTf','cliConfig','ollIy','hMQjL','LXZNC','accessibilityOptions','fSBnF','../../helpers/testhub/utils','requirePWModule','Error\x20in\x20closing\x20playwright','../../helpers/test-observability/utils','RxBZC','bpWKq','--config=','TVTtU','debug','stop','testContextOptions','true','67736QJxxVD','KUpUy','errorMessage','Updated\x20config\x20file\x20name\x20to\x20-\x20','QBNfS','platform','asxeT','LFGQT','--config','filterBrowserstackArgs','BROWSERSTACK_RERUN','browserstackSetupConfig.json','Playwright\x20process\x20exited\x20with\x20code\x20','PACKAGE_TYPE','Ccukc'];a35_0x3199=function(){return _0x7f094e;};return a35_0x3199();}const fs=require('fs'),path=require(a35_0x15e037(0x234)),{spawn}=require(a35_0x15e037(0x205)),{format}=require(a35_0x15e037(0x251)),logger=require('../../helpers/logger')[a35_0x15e037(0x1c2)],{default:BrowserStackSetup}=require(a35_0x15e037(0x1f5)),helper=require('../../helpers/helper'),utilities=require(a35_0x15e037(0x238)),constants=require(a35_0x15e037(0x249)),{FRAMEWORKS}=require(a35_0x15e037(0x204)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x15e037(0x23e)),{CrashReporter}=require(a35_0x15e037(0x1fc)),{getFrameworkVersion}=require(a35_0x15e037(0x1d2)),{checkAccessibilityPlatformConfig}=require(a35_0x15e037(0x1f1)),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require(a35_0x15e037(0x1c0)),{shouldProcessEventForTesthub}=require(a35_0x15e037(0x1cf)),getUserPlaywrightConfig=async(_0x273d93,_0xa9df53)=>{const _0x2ebdc3=a35_0x15e037,_0x14c075={'LXZNC':function(_0x581bc5){return _0x581bc5();},'zbiLh':function(_0x524b5b,_0x500b89){return _0x524b5b(_0x500b89);},'ollIy':function(_0x74caf6,_0x5e079d){return _0x74caf6(_0x5e079d);},'nqUvc':_0x2ebdc3(0x227),'rVvcO':_0x2ebdc3(0x1d5)},_0x41121e=!helper[_0x2ebdc3(0x21b)](_0x273d93[_0x2ebdc3(0x1fd)]),_0xbe16c4=_0x41121e?path[_0x2ebdc3(0x1bc)](process[_0x2ebdc3(0x216)](),_0x273d93[_0x2ebdc3(0x1fd)]):process['cwd'](),{resolveConfigFile:_0x37a36d,resolveConfigLocation:_0x21248e}=helper[_0x2ebdc3(0x1d0)][_0x2ebdc3(0x218)](null,_0x14c075[_0x2ebdc3(0x1cc)](getConfigLoaderPath)),_0x56ca01=_0x37a36d?_0x14c075[_0x2ebdc3(0x250)](_0x37a36d,_0xbe16c4):helper[_0x2ebdc3(0x20c)](_0x14c075[_0x2ebdc3(0x1ca)](_0x21248e,_0xbe16c4),[_0x14c075[_0x2ebdc3(0x221)]]),_0xe85c20={};if(_0x41121e){const _0xf1cc1c=_0xa9df53[_0x2ebdc3(0x229)](_0x9690b3=>_0x9690b3==='--config'||_0x9690b3==='-c'||_0x9690b3['startsWith'](_0x2ebdc3(0x1d5)));_0xa9df53[_0x2ebdc3(0x1ff)](_0xf1cc1c,_0xa9df53[_0xf1cc1c][_0x2ebdc3(0x24f)](_0x14c075['rVvcO'])?0x1:0x2);}const _0x44357c={};return _0x44357c[_0x2ebdc3(0x234)]=_0x56ca01,_0x44357c[_0x2ebdc3(0x1fd)]=_0xe85c20,_0x44357c;},handleO11yRerun=_0x1aae45=>{const _0x24601a=a35_0x15e037,_0x2d2755={};_0x2d2755[_0x24601a(0x1bf)]=function(_0x4fdb65,_0x5aa40b){return _0x4fdb65!==_0x5aa40b;},_0x2d2755['oxGyb']=_0x24601a(0x230),_0x2d2755[_0x24601a(0x244)]=_0x24601a(0x1c3);const _0x2467ad=_0x2d2755,_0x4550de=helper['isTrue'](process[_0x24601a(0x1bb)][_0x24601a(0x1e5)]);if(_0x4550de){const _0x147efa=process[_0x24601a(0x1bb)]['BROWSERSTACK_RERUN_TESTS'],_0x4dbb06=[];if(_0x2467ad[_0x24601a(0x1bf)](_0x147efa,_0x2467ad[_0x24601a(0x214)])&&!helper[_0x24601a(0x21b)](_0x147efa)){_0x147efa[_0x24601a(0x22c)](',')[_0x24601a(0x1eb)](_0x2940cc=>{const _0x527e98=_0x24601a;_0x4dbb06[_0x527e98(0x22a)]('('+_0x2940cc[_0x527e98(0x21a)]()+')');});const _0x2e2af2='^'+_0x4dbb06['join']('|')+'$';_0x1aae45['push'](_0x2467ad[_0x24601a(0x244)],_0x2e2af2);}}},spawnOriginalProcess=_0x2a0fba=>{const _0x553cf1=a35_0x15e037,_0x2d852b={'LFGQT':function(_0x218d46,_0x157468,_0x4b00c9,_0x579a10){return _0x218d46(_0x157468,_0x4b00c9,_0x579a10);},'pXAeV':'npx','xuvWO':_0x553cf1(0x258),'ExdUT':function(_0x44cfba,_0x34526e){return _0x44cfba===_0x34526e;},'kLxUm':_0x553cf1(0x1c1),'FajoT':'inherit'};_0x2d852b[_0x553cf1(0x1e2)](spawn,_0x2d852b[_0x553cf1(0x200)],[_0x2d852b['xuvWO'],..._0x2a0fba[_0x553cf1(0x259)](0x1)],{'shell':_0x2d852b[_0x553cf1(0x1f9)](process[_0x553cf1(0x1e0)],_0x2d852b['kLxUm']),'stdio':_0x2d852b[_0x553cf1(0x1b9)],'cwd':process['cwd']()});},isTestCommand=(_0x36438d,_0x5cffea)=>{const _0x57b89c=a35_0x15e037,_0x2783a0={};_0x2783a0['hMQjL']=function(_0x22e518,_0x1bc6bc){return _0x22e518>_0x1bc6bc;},_0x2783a0['RMXQu']=function(_0x15a5c2,_0x493a95){return _0x15a5c2===_0x493a95;},_0x2783a0[_0x57b89c(0x1d6)]=_0x57b89c(0x210);const _0x27b5f9=_0x2783a0;if(_0x27b5f9[_0x57b89c(0x1cb)](_0x5cffea[_0x57b89c(0x1bd)],0x1)&&_0x27b5f9[_0x57b89c(0x1fb)](_0x5cffea[0x1],_0x27b5f9[_0x57b89c(0x1d6)]))return!![];return![];};async function run(_0x2647c8,_0x3dd561){const _0x2bd957=a35_0x15e037,_0x10a61d={'fkUqQ':_0x2bd957(0x23f),'asxeT':_0x2bd957(0x22b),'bpWKq':function(_0xbd4f34,_0x15229a){return _0xbd4f34+_0x15229a;},'CogYL':_0x2bd957(0x206),'WFwvK':_0x2bd957(0x1b5),'fSBnF':function(_0x3c7eae){return _0x3c7eae();},'hjOID':function(_0x2d4cd2,_0x1f2f43){return _0x2d4cd2+_0x1f2f43;},'rclPm':_0x2bd957(0x1d1),'hWiuu':'--disable-browserstack-automation','zygrd':_0x2bd957(0x201),'hlakA':'--disable-test-observability','QifrN':function(_0x2de130,_0x30b21b){return _0x2de130>=_0x30b21b;},'Rdlal':function(_0x618bdd,_0x146905){return _0x618bdd+_0x146905;},'ukYnN':_0x2bd957(0x222),'KUpUy':function(_0x20d162,_0xad27da,_0x5b4c8d){return _0x20d162(_0xad27da,_0x5b4c8d);},'IBFmZ':function(_0x30339c,_0x50489b){return _0x30339c(_0x50489b);},'JnSnH':'BrowserStack\x20config\x20file\x20not\x20found.','rJVQu':_0x2bd957(0x1f8),'XFsvU':function(_0x2adb56,_0x550e8f){return _0x2adb56!=_0x550e8f;},'nSKag':function(_0x141516,_0x542919){return _0x141516===_0x542919;},'LWjsa':_0x2bd957(0x1da),'Ccukc':function(_0x3a79b8,_0x4d7197){return _0x3a79b8(_0x4d7197);},'VRnER':_0x2bd957(0x1e6),'jepHS':_0x2bd957(0x23a),'plmgO':_0x2bd957(0x209),'RxBZC':function(_0x1a2419,_0x4d8053){return _0x1a2419-_0x4d8053;},'sTPTG':function(_0x448bae,_0x222fd4){return _0x448bae+_0x222fd4;},'QBNfS':_0x2bd957(0x1de),'iIwCN':function(_0x16b074,_0x5ae48a){return _0x16b074>_0x5ae48a;},'pRNVW':function(_0x50b192,_0x2cc000,_0x49afa0,_0x493a63){return _0x50b192(_0x2cc000,_0x49afa0,_0x493a63);},'ETyTf':_0x2bd957(0x255),'ElBZq':'playwright','ZkntT':_0x2bd957(0x210),'BWXID':_0x2bd957(0x1e3),'DfXyO':function(_0x35fbc0,_0x574ced){return _0x35fbc0===_0x574ced;},'yDnVU':_0x2bd957(0x1c1),'OANvE':'inherit','pQyme':_0x2bd957(0x1c4)};!helper[_0x2bd957(0x243)](process[_0x2bd957(0x1bb)][_0x2bd957(0x1c6)])&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x1c6)]=!![]);process['argv'][_0x2bd957(0x235)](_0x10a61d[_0x2bd957(0x1f7)])&&(process['env'][_0x2bd957(0x1c6)]=_0x10a61d[_0x2bd957(0x252)],_0x3dd561=_0x3dd561[_0x2bd957(0x1c7)](_0x94a54a=>_0x94a54a!==_0x2bd957(0x24d)));const _0x382201=_0x3dd561['indexOf'](_0x10a61d[_0x2bd957(0x1ed)]);_0x10a61d[_0x2bd957(0x207)](_0x382201,0x0)&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x208)]=_0x10a61d[_0x2bd957(0x252)],_0x3dd561=_0x3dd561[_0x2bd957(0x1c7)](_0x1f3fea=>_0x1f3fea!==_0x2bd957(0x24e)));try{const _0x175fa3=path[_0x2bd957(0x237)](helper['homedir'](),_0x10a61d[_0x2bd957(0x219)],_0x10a61d[_0x2bd957(0x1e1)]);fs[_0x2bd957(0x232)](_0x175fa3)&&fs[_0x2bd957(0x21e)](_0x175fa3);}catch(_0x5255f8){logger[_0x2bd957(0x1d7)](_0x10a61d['Rdlal'](_0x10a61d[_0x2bd957(0x20b)],_0x5255f8));}if(!_0x10a61d[_0x2bd957(0x1dc)](isTestCommand,_0x2647c8,_0x3dd561)){_0x10a61d[_0x2bd957(0x226)](spawnOriginalProcess,_0x3dd561);return;}const _0x420e2a=new BrowserStackSetup(_0x2647c8,FRAMEWORKS[_0x2bd957(0x1b6)]);if(!_0x420e2a[_0x2bd957(0x1fd)]){logger[_0x2bd957(0x24c)](_0x10a61d[_0x2bd957(0x21f)]);return;}await _0x420e2a[_0x2bd957(0x1ef)]();!helper[_0x2bd957(0x21b)](_0x420e2a[_0x2bd957(0x1c9)])&&_0x420e2a[_0x2bd957(0x1c9)]['has'](_0x10a61d[_0x2bd957(0x211)])&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x1c6)]=_0x420e2a[_0x2bd957(0x1c9)][_0x2bd957(0x20f)](_0x10a61d['rJVQu'])||!![]);_0x10a61d['XFsvU'](_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x224)],null)&&!helper[_0x2bd957(0x25a)](process[_0x2bd957(0x1bb)][_0x2bd957(0x208)])&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x208)]=process[_0x2bd957(0x1bb)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x420e2a['config'][_0x2bd957(0x224)]);const _0x1f2e82=!helper[_0x2bd957(0x243)](process[_0x2bd957(0x1bb)]['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x40152a=![];_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x23d)]&&(_0x40152a=!![],process[_0x2bd957(0x1bb)][_0x2bd957(0x245)]=_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x23d)]);_0x420e2a[_0x2bd957(0x1fd)]['accessibilityOptions']&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x1f0)]=JSON[_0x2bd957(0x1fa)](_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x1cd)]));const _0x11637d=_0x3dd561[_0x2bd957(0x1ba)](),_0xe8d669=await _0x10a61d[_0x2bd957(0x1dc)](getUserPlaywrightConfig,_0x2647c8,_0x3dd561);if(helper['isUndefined'](_0xe8d669)){_0x10a61d[_0x2bd957(0x226)](spawnOriginalProcess,_0x11637d);return;}const _0xfd4402=_0xe8d669[_0x2bd957(0x234)]?path[_0x2bd957(0x1b7)](_0xe8d669[_0x2bd957(0x234)]):process[_0x2bd957(0x216)]();process[_0x2bd957(0x1bb)][_0x2bd957(0x246)]=_0xfd4402,await TestHubHandler['launchBuild'](FRAMEWORKS[_0x2bd957(0x1b6)],_0x420e2a);_0x1f2e82&&_0x10a61d[_0x2bd957(0x226)](handleO11yRerun,_0x3dd561);let _0x18b7de=_0x10a61d['nSKag'](process['env'][_0x2bd957(0x245)],_0x10a61d[_0x2bd957(0x1ee)]);_0x18b7de=_0x18b7de||_0x10a61d['Ccukc'](checkAccessibilityPlatformConfig,_0x420e2a[_0x2bd957(0x1fd)]),process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x18b7de;_0x18b7de&&_0x10a61d[_0x2bd957(0x1e9)](setAccessibilityCapabilities,_0x420e2a[_0x2bd957(0x1fd)]);const _0xf1f533=path[_0x2bd957(0x237)](_0xe8d669[_0x2bd957(0x234)]?path[_0x2bd957(0x1b7)](_0xe8d669[_0x2bd957(0x234)]):process['cwd'](),_0x10a61d[_0x2bd957(0x1b8)]);fs['writeFileSync'](_0xf1f533,helper[_0x2bd957(0x236)](_0x420e2a['config'])),process['env'][_0x2bd957(0x22f)]=_0xf1f533,helper[_0x2bd957(0x23c)]();let _0x54a335='';_0x10a61d[_0x2bd957(0x213)](helper[_0x2bd957(0x217)](),constants[_0x2bd957(0x1e8)][_0x2bd957(0x212)])?_0x54a335=_0x10a61d[_0x2bd957(0x1f2)]:_0x54a335=_0x10a61d[_0x2bd957(0x254)];let _0x2893b3='';if(helper[_0x2bd957(0x202)](_0xe8d669[_0x2bd957(0x234)])){_0x2893b3=_0x2bd957(0x24a);const _0x48c531=_0x54a335[_0x2bd957(0x22c)]('.');_0x48c531[_0x10a61d[_0x2bd957(0x1d3)](_0x48c531[_0x2bd957(0x1bd)],0x1)]='ts',_0x54a335=_0x48c531[_0x2bd957(0x237)]('.'),logger[_0x2bd957(0x1d7)](_0x10a61d[_0x2bd957(0x24b)](_0x10a61d[_0x2bd957(0x1df)],_0x54a335));}else _0x2893b3='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x21d51c=path[_0x2bd957(0x237)](_0xe8d669['path']?path[_0x2bd957(0x1b7)](_0xe8d669['path']):process[_0x2bd957(0x216)](),_0x54a335);let _0xf647e0=_0xe8d669[_0x2bd957(0x234)]?_0xe8d669['path']:'';_0xf647e0=_0x10a61d[_0x2bd957(0x248)](_0xf647e0[_0x2bd957(0x1bd)],0x0)?path[_0x2bd957(0x1bc)](_0xf647e0):'',process[_0x2bd957(0x1bb)]['USER_CONFIG_DETAILS_PATH']=_0xf647e0;const _0xfa8570=helper['getProxyUrl'](_0x420e2a['config']);_0xfa8570&&(_0x2893b3=_0x10a61d[_0x2bd957(0x1fe)](_0x2bd957(0x239)+_0xfa8570+_0x2bd957(0x225),_0x2893b3));helper[_0x2bd957(0x1e4)]({},_0x3dd561),fs['writeFileSync'](_0x21d51c,_0x2893b3),helper[_0x2bd957(0x1c5)]();const _0x1474f6=_0x10a61d[_0x2bd957(0x1ea)](spawn,_0x10a61d[_0x2bd957(0x1c8)],[_0x10a61d['ElBZq'],_0x10a61d[_0x2bd957(0x22e)],_0x10a61d['BWXID'],_0x21d51c,..._0x3dd561[_0x2bd957(0x259)](0x2)],{'shell':_0x10a61d[_0x2bd957(0x215)](process[_0x2bd957(0x1e0)],_0x10a61d['yDnVU']),'stdio':_0x10a61d[_0x2bd957(0x22d)],'cwd':process[_0x2bd957(0x216)](),'env':Object[_0x2bd957(0x253)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2bd957(0x1ec)](_0x2647c8),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x1d9)][_0x2bd957(0x203)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x1d9)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x21c)]})}),_0x5206b4=()=>{const _0x1fe073=_0x2bd957;try{const _0x24cc5f=path['join'](helper['homedir'](),_0x10a61d[_0x1fe073(0x219)],_0x10a61d['asxeT']);if(fs[_0x1fe073(0x232)](_0x24cc5f)){let _0x49fe11=fs['readFileSync'](_0x24cc5f);_0x49fe11=JSON[_0x1fe073(0x241)](_0x49fe11),_0x420e2a[_0x1fe073(0x1dd)]=_0x49fe11,fs[_0x1fe073(0x21e)](_0x24cc5f);}}catch(_0x4b5577){logger[_0x1fe073(0x1d7)](_0x10a61d[_0x1fe073(0x1d4)](_0x10a61d['CogYL'],_0x4b5577));}};_0x1474f6['on'](_0x10a61d['pQyme'],async _0x269645=>{const _0x171a35=_0x2bd957;try{const _0x14e68d=_0x10a61d[_0x171a35(0x247)][_0x171a35(0x22c)]('|');let _0x64dbe2=0x0;while(!![]){switch(_0x14e68d[_0x64dbe2++]){case'0':logger[_0x171a35(0x1d7)](_0x171a35(0x242)+_0xf1f533);continue;case'1':fs[_0x171a35(0x21e)](_0x21d51c);continue;case'2':process[_0x171a35(0x228)]=_0x269645;continue;case'3':_0x10a61d[_0x171a35(0x1ce)](_0x5206b4);continue;case'4':fs['unlinkSync'](_0xf1f533);continue;case'5':await TestHubHandler[_0x171a35(0x1d8)]();continue;case'6':logger[_0x171a35(0x1d7)](_0x171a35(0x1e7)+_0x269645);continue;case'7':await utilities[_0x171a35(0x1f4)](_0x420e2a);continue;case'8':logger[_0x171a35(0x1f3)](_0x171a35(0x242)+_0x21d51c);continue;}break;}}catch(_0x189c20){logger[_0x171a35(0x1d7)](_0x10a61d[_0x171a35(0x1fe)](_0x10a61d[_0x171a35(0x220)],_0x189c20));}});}module[a35_0x15e037(0x257)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x1351b3=a36_0x3a0e;function a36_0x3ef9(){const _0xb67f41=['resolve','winstonLogger','toString','312mNwTQl','Call\x20to\x20child\x20fork\x20with\x20args\x20','xORNk','gvQfk','debug','XqMOt','includes','util','function','13775652chQxYp','efTOI','18nCmoNV','requirePWModule','3867570EUsWFO','../../helpers/logger','57438kYNFNL','rdRWm','env','Not\x20able\x20to\x20import\x20globalSetup','../../helpers/test-observability/utils','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','Path\x20','PLAYWRIGHT','xuCRU','fKDNv','../../helpers/test-observability/constants','2IdGaqu','789DOtdid','compareVersions','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','child_process','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','10436iOySnV','config','format','TkHEI','1615XeceQj','5380956haGgPb','./reporter/pwUtils','error','exports','1.33.0','pRKxx','437583CtUbLX','\x20is\x20not\x20found','fork','ZXCIG','apply','isHandlePWErrorSet'];a36_0x3ef9=function(){return _0xb67f41;};return a36_0x3ef9();}(function(_0x4d2ed7,_0x521f4e){const _0xd58de6=a36_0x3a0e,_0x3ccbcc=_0x4d2ed7();while(!![]){try{const _0x3a0e70=-parseInt(_0xd58de6(0x108))/0x1*(parseInt(_0xd58de6(0xf7))/0x2)+parseInt(_0xd58de6(0xf8))/0x3*(parseInt(_0xd58de6(0xfd))/0x4)+-parseInt(_0xd58de6(0x101))/0x5*(parseInt(_0xd58de6(0x11c))/0x6)+parseInt(_0xd58de6(0x102))/0x7+parseInt(_0xd58de6(0x111))/0x8*(parseInt(_0xd58de6(0xec))/0x9)+parseInt(_0xd58de6(0x11e))/0xa+-parseInt(_0xd58de6(0x11a))/0xb;if(_0x3a0e70===_0x521f4e)break;else _0x3ccbcc['push'](_0x3ccbcc['shift']());}catch(_0x2aa657){_0x3ccbcc['push'](_0x3ccbcc['shift']());}}}(a36_0x3ef9,0x6191e));const util=require(a36_0x1351b3(0x118)),child_process=require(a36_0x1351b3(0xfb)),{FRAMEWORKS}=require(a36_0x1351b3(0xf6)),{getFrameworkVersion,debug}=require(a36_0x1351b3(0xf0)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x1351b3(0x103)),{mockIsWorkerRedundant}=require('./patches'),logger=require(a36_0x1351b3(0xeb))[a36_0x1351b3(0x10f)];function a36_0x3a0e(_0x96c6c,_0xcf1d72){const _0x3ef96f=a36_0x3ef9();return a36_0x3a0e=function(_0x3a0e74,_0x3ec527){_0x3a0e74=_0x3a0e74-0xeb;let _0x48c5ac=_0x3ef96f[_0x3a0e74];return _0x48c5ac;},a36_0x3a0e(_0x96c6c,_0xcf1d72);}module[a36_0x1351b3(0x105)]=async function(_0xd73ea){const _0xee3f5=a36_0x1351b3,_0x5783ab={'xORNk':function(_0x3f30ff,_0x4d5808){return _0x3f30ff(_0x4d5808);},'gvQfk':function(_0x36ff43){return _0x36ff43();},'TkHEI':'./mock-process.js','efTOI':function(_0x3597f9){return _0x3597f9();},'ZXCIG':'Running\x20existing\x20global\x20setup','zSOsh':function(_0x533699){return _0x533699();},'pRKxx':function(_0x300248,_0xc17998){return _0x300248(_0xc17998);},'fKDNv':function(_0x2ab872,_0x493fd5){return _0x2ab872>=_0x493fd5;},'eupot':_0xee3f5(0x106),'XqMOt':function(_0x4321e9,_0x1c40b1,_0x5a9fcb){return _0x4321e9(_0x1c40b1,_0x5a9fcb);},'cBWqj':function(_0x53f663,_0x4b67e8){return _0x53f663!==_0x4b67e8;},'xuCRU':_0xee3f5(0x119),'rdRWm':_0xee3f5(0xef)},_0x17253b=child_process[_0xee3f5(0x10a)];if(helper[_0xee3f5(0x10d)]())try{_0x5783ab[_0xee3f5(0x114)](mockIsWorkerRedundant);}catch(_0x1deddd){logger[_0xee3f5(0x115)](_0xee3f5(0xfc)+util[_0xee3f5(0xff)](_0x1deddd));}child_process[_0xee3f5(0x10a)]=function(){const _0x33a2e3=_0xee3f5;return _0x5783ab[_0x33a2e3(0x113)](debug,_0x33a2e3(0x112)+arguments[0x0]),arguments[0x0][_0x33a2e3(0x117)](_0x5783ab['gvQfk'](getForkProcessPath))?arguments[0x0]=require[_0x33a2e3(0x10e)](_0x5783ab[_0x33a2e3(0x100)]):logger[_0x33a2e3(0x104)](_0x33a2e3(0xf2)+_0x5783ab[_0x33a2e3(0x11b)](getForkProcessPath)+_0x33a2e3(0x109)),_0x17253b['apply'](null,arguments);};if(process[_0xee3f5(0xee)][_0xee3f5(0xfa)]){_0x5783ab[_0xee3f5(0x113)](debug,_0x5783ab[_0xee3f5(0x10b)]);try{const {loadGlobalHook:_0x4fa092}=helper[_0xee3f5(0x11d)][_0xee3f5(0x10c)](null,_0x5783ab['zSOsh'](getLoadUtilsPath)),_0x329cc0=_0x5783ab[_0xee3f5(0x107)](getFrameworkVersion,FRAMEWORKS[_0xee3f5(0xf3)]);let _0x4e5147=_0xd73ea;if(_0x5783ab[_0xee3f5(0xf5)](helper[_0xee3f5(0xf9)](_0x329cc0,_0x5783ab['eupot']),0x0)){const _0x89f9={};_0x89f9[_0xee3f5(0xfe)]=_0xd73ea,_0x4e5147=_0x89f9;}const _0x4639ec=await _0x5783ab[_0xee3f5(0x116)](_0x4fa092,_0x4e5147,process[_0xee3f5(0xee)][_0xee3f5(0xfa)]);if(_0x5783ab['cBWqj'](typeof _0x4639ec,_0x5783ab[_0xee3f5(0xf4)]))throw new Error(_0x5783ab[_0xee3f5(0xed)]);return _0x4639ec[_0xee3f5(0x10c)](null,arguments);}catch(_0x4f5c30){_0x5783ab[_0xee3f5(0x107)](debug,_0xee3f5(0xf1)+_0x4f5c30[_0xee3f5(0x110)]());}}};
|