browserstack-node-sdk 1.34.21 → 1.34.23
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/central-scanner/constants.js +1 -0
- package/src/helpers/central-scanner/helpers.js +1 -0
- 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_0x1a9bc7=a29_0x2ab6;(function(_0x40de6f,_0x221abe){const _0x309c60=a29_0x2ab6,_0x150e49=_0x40de6f();while(!![]){try{const _0x4cf3a6=-parseInt(_0x309c60(0x70))/0x1+-parseInt(_0x309c60(0x79))/0x2+-parseInt(_0x309c60(0xdb))/0x3+-parseInt(_0x309c60(0x67))/0x4*(-parseInt(_0x309c60(0x9b))/0x5)+parseInt(_0x309c60(0xd2))/0x6+parseInt(_0x309c60(0x94))/0x7*(-parseInt(_0x309c60(0xd3))/0x8)+-parseInt(_0x309c60(0xdc))/0x9*(-parseInt(_0x309c60(0x92))/0xa);if(_0x4cf3a6===_0x221abe)break;else _0x150e49['push'](_0x150e49['shift']());}catch(_0x251d69){_0x150e49['push'](_0x150e49['shift']());}}}(a29_0x1cbe,0x3b1ca));function a29_0x2ab6(_0xf8d6a4,_0x31b11a){const _0x1cbe8d=a29_0x1cbe();return a29_0x2ab6=function(_0x2ab610,_0x4a9886){_0x2ab610=_0x2ab610-0x65;let _0x2ef9b8=_0x1cbe8d[_0x2ab610];return _0x2ef9b8;},a29_0x2ab6(_0xf8d6a4,_0x31b11a);}function a29_0x1cbe(){const _0x581348=['setGlobal','ooxej','__drivers','241071fwwKOi','3715317IOjFyR','error','UBHsK','../../../helpers/accessibility-automation/helper','split','4780JsorXS','get','goog:chromeOptions','object','edgeOptions','session_','exports','send','DNmvA','261024oDHSyA','getAccessibilityResultsSummary','2|5|0|1|4|3','logLevel','New\x20hub\x20url\x20set\x20to\x20','iGqRz','options_','isUndefined','overrideGet','869462LMqRzV','rppTN','FkXrO','getGlobal','getHttpAgent','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','edgeOptions_','PfXmC','capability','build','uGLkL','updateHubUrl','ARJmR','push','yPAGm','isPacProxy','chromeOptions_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','browserStackLogLevel','Hub\x20url\x20set\x20to\x20','JwlHT','optimalHubUrl','ngRNX','debug','CAPABILITY_KEY','20Lgoovy','Setting\x20Browserstack\x20capabilities','8834LblVgH','ieOptions_','set','GrgNd','uTqcA','Riiys','RCTMK','290JvBrQa','./helpers/patchHelper','requireSeleniumWebdriver','TcMCK','HttpClient','chromeOptions','storeOptimalHubUrl','../../../helpers/patchHelpers','fpmLR','mergeDeep','isBrowserstackInfra','__driversArray','vFTXw','caps_','Proxy\x20set\x20to\x20','fuVrv','global','setServer','wDyrB','__setBrowserOptions','se:ieOptions','forEach','proxySettings','proxy_','../../../helpers/globals','getAccessibilityResults','then','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','https://','/session','rNdlo','setLogLevel','JhxML','originalBuilder','requireHttpClient','amGrO','url_','MvmGz','ZTGwn','LHoEV','setCapabilities','isAccessibilityPlatform','safariOptions_','getRequestOptions','../../../hubAllocationMethods','rMmGw','browserstackAgentObservability','Builder','firefoxOptions_','YHoKY','HpbmP','../../../bin/utils/constants','../../../helpers/logger','capabilities_','newHubUrl','785220pWFCmj','48ACMGsd','ZwYcA','proxyUrl','../../../helpers/helper','getHubUrl'];a29_0x1cbe=function(){return _0x581348;};return a29_0x1cbe();}const logger=require(a29_0x1a9bc7(0xcf))['winstonLogger'],helper=require(a29_0x1a9bc7(0xd6)),constants=require(a29_0x1a9bc7(0xce)),hubAllocator=require(a29_0x1a9bc7(0xc7)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x1a9bc7(0xa2)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x1a9bc7(0x65)),globals=require(a29_0x1a9bc7(0xb3)),{overrideExecute}=require(a29_0x1a9bc7(0x9c)),modify=(_0x26fd52,_0x4d87ad=null,_0x45dc85=![])=>{const _0xfc20de=a29_0x1a9bc7,_0x34e162={'ARJmR':function(_0xc94ba5,_0x4c47ef){return _0xc94ba5!==_0x4c47ef;},'rppTN':_0xfc20de(0xb8),'Riiys':function(_0x3fd166,_0x1f1074){return _0x3fd166+_0x1f1074;},'RCTMK':function(_0xeba37,_0x371595){return _0xeba37+_0x371595;},'vFTXw':_0xfc20de(0xb7),'uKEra':'/wd/hub','LHoEV':_0xfc20de(0x69),'gZJQI':_0xfc20de(0xa0),'amGrO':'ms:edgeOptions','iGqRz':_0xfc20de(0x6b),'JhxML':'moz:firefoxOptions','ZwYcA':'firefoxOptions','uGLkL':'safari.options','ywTaK':_0xfc20de(0xaf),'gsFdy':'ieOptions','Fvvgw':function(_0x355001,_0x23281a){return _0x355001===_0x23281a;},'rMmGw':_0xfc20de(0x6a),'fuVrv':_0xfc20de(0x93),'ngRNX':function(_0x437010,_0x406ee9,_0x4a9c86){return _0x437010(_0x406ee9,_0x4a9c86);},'DNmvA':function(_0x49313a,_0xf9bb04){return _0x49313a(_0xf9bb04);},'UBHsK':_0xfc20de(0x8e),'rNdlo':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','wDyrB':function(_0x18de80,_0x4364e8,_0x2879be){return _0x18de80(_0x4364e8,_0x2879be);},'ZTGwn':_0xfc20de(0x72),'PfXmC':function(_0x2edb93){return _0x2edb93();},'JwlHT':_0xfc20de(0xb6),'ooxej':_0xfc20de(0xc4),'tsiMK':function(_0x3f14cd,_0x44df2b){return _0x3f14cd(_0x44df2b);},'TcMCK':function(_0x8acd6e,_0x1cb375){return _0x8acd6e(_0x1cb375);},'MvmGz':function(_0x104f83,_0x152f3a,_0xbd7092){return _0x104f83(_0x152f3a,_0xbd7092);},'fpmLR':function(_0x18b3f0,_0x586f8f){return _0x18b3f0!==_0x586f8f;},'HpbmP':function(_0x69ea12,_0x17c9fa){return _0x69ea12!==_0x17c9fa;},'AMsbA':_0xfc20de(0x8a),'YwXYs':'Modifying\x20webdriver\x20builder'},_0x2d7bef=helper[_0xfc20de(0xbd)]();let _0x5f4ea2;try{_0x5f4ea2=helper[_0xfc20de(0x9d)](),_0x5f4ea2[_0xfc20de(0xbc)]&&(_0x5f4ea2[_0xfc20de(0xca)]=_0x5f4ea2[_0xfc20de(0xbc)]);}catch(_0x2360ec){return;}if(helper['isBrowserstackInfra']()){const _0x45c4c9={};_0x45c4c9[_0xfc20de(0x73)]=_0x26fd52[_0xfc20de(0x8b)],helper[_0xfc20de(0xba)](_0x45c4c9,new Map(),new Map()),logger['info'](_0x34e162['AMsbA']),logger[_0xfc20de(0x90)](_0x34e162['YwXYs']);}class _0x2973d4 extends _0x2d7bef[_0xfc20de(0x9f)]{['send'](_0x464406){const _0x2594b6=_0xfc20de;if(_0x34e162['ARJmR'](_0x464406['path'],_0x34e162[_0x2594b6(0x7a)])&&_0x34e162[_0x2594b6(0x85)](global[_0x2594b6(0xd1)],''))try{global[_0x2594b6(0xd1)]=_0x34e162[_0x2594b6(0x99)](_0x34e162[_0x2594b6(0x9a)](_0x34e162[_0x2594b6(0xa7)],global[_0x2594b6(0xd1)]),_0x34e162['uKEra']),this[_0x2594b6(0x76)]=hubAllocator[_0x2594b6(0xc6)](global[_0x2594b6(0xd1)]),logger[_0x2594b6(0x90)](_0x2594b6(0x74)+global[_0x2594b6(0xd1)]),global[_0x2594b6(0xd1)]='';}catch(_0x29af22){logger[_0x2594b6(0xdd)](_0x29af22);}return super[_0x2594b6(0x6e)](_0x464406);}}class _0x27577c extends _0x5f4ea2[_0xfc20de(0xca)]{[_0xfc20de(0xac)](){const _0xc3234f=_0xfc20de;return this['url_']=helper[_0xc3234f(0xd7)](_0x26fd52),logger[_0xc3234f(0x90)](_0xc3234f(0x8c)+this[_0xc3234f(0xbf)]),this;}[_0xfc20de(0xae)](_0x2bf251){const _0x4c00b3=_0xfc20de;let _0x1a3428={};for(const _0x425919 in _0x2bf251){switch(_0x425919){case _0x34e162[_0x4c00b3(0xc2)]:case _0x34e162['gZJQI']:this['chromeOptions_']&&(_0x1a3428=this[_0x4c00b3(0x89)][_0x4c00b3(0x68)](this['chromeOptions_'][_0x4c00b3(0x91)])||{},this[_0x4c00b3(0x89)][_0x4c00b3(0x96)](this['chromeOptions_'][_0x4c00b3(0x91)],helper[_0x4c00b3(0xa4)](_0x1a3428,_0x2bf251[_0x425919])));break;case _0x34e162[_0x4c00b3(0xbe)]:case _0x34e162[_0x4c00b3(0x75)]:this[_0x4c00b3(0x7f)]&&(_0x1a3428=this[_0x4c00b3(0x7f)]['get'](this['edgeOptions_'][_0x4c00b3(0x91)])||{},this[_0x4c00b3(0x7f)][_0x4c00b3(0x96)](this[_0x4c00b3(0x7f)][_0x4c00b3(0x91)],helper[_0x4c00b3(0xa4)](_0x1a3428,_0x2bf251[_0x425919])));break;case _0x34e162[_0x4c00b3(0xbb)]:case _0x34e162[_0x4c00b3(0xd4)]:this['firefoxOptions_']&&(_0x1a3428=this[_0x4c00b3(0xcb)][_0x4c00b3(0x68)](this['firefoxOptions_'][_0x4c00b3(0x91)])||{},this[_0x4c00b3(0xcb)][_0x4c00b3(0x96)](this[_0x4c00b3(0xcb)]['CAPABILITY_KEY'],helper[_0x4c00b3(0xa4)](_0x1a3428,_0x2bf251[_0x425919])));break;case _0x34e162[_0x4c00b3(0x83)]:this[_0x4c00b3(0xc5)]&&(_0x1a3428=this['safariOptions_'][_0x4c00b3(0x68)](this['safariOptions_'][_0x4c00b3(0x91)])||{},this[_0x4c00b3(0xc5)][_0x4c00b3(0x96)](this[_0x4c00b3(0xc5)]['CAPABILITY_KEY'],helper[_0x4c00b3(0xa4)](_0x1a3428,_0x2bf251[_0x425919])));break;case _0x34e162['ywTaK']:case _0x34e162['gsFdy']:this[_0x4c00b3(0x95)]&&(_0x1a3428=this['ieOptions_'][_0x4c00b3(0x68)](this[_0x4c00b3(0x95)][_0x4c00b3(0x91)])||{},this[_0x4c00b3(0x95)][_0x4c00b3(0x96)](this['ieOptions_'][_0x4c00b3(0x91)],helper['mergeDeep'](_0x1a3428,_0x2bf251[_0x425919])));break;}}}['setCapabilities'](){const _0x352f96=_0xfc20de;return logger['debug'](_0x34e162[_0x352f96(0xaa)]),this[_0x352f96(0xae)](_0x26fd52[_0x352f96(0x81)]),Object['keys'](_0x26fd52[_0x352f96(0x81)])[_0x352f96(0xb0)](_0x163680=>{const _0x3e935b=_0x352f96,_0x86f455=this[_0x3e935b(0xd0)]['get'](_0x163680);_0x34e162['Fvvgw'](typeof _0x86f455,_0x34e162[_0x3e935b(0xc8)])?this[_0x3e935b(0xd0)]['set'](_0x163680,helper['mergeDeep'](_0x86f455,_0x26fd52['capability'][_0x163680])):this[_0x3e935b(0xd0)][_0x3e935b(0x96)](_0x163680,_0x26fd52[_0x3e935b(0x81)][_0x163680]);}),this;}[_0xfc20de(0x82)](){const _0xe3e225=_0xfc20de,_0x14e5bf={'GrgNd':_0x34e162[_0xe3e225(0xde)],'yPAGm':_0x34e162[_0xe3e225(0xb9)],'FkXrO':function(_0x110a37,_0x57a2b4,_0x29c9b7){const _0x3aebdd=_0xe3e225;return _0x34e162[_0x3aebdd(0xad)](_0x110a37,_0x57a2b4,_0x29c9b7);},'uTqcA':function(_0x4f6b53,_0x2276fc,_0x3813e4){return _0x34e162['wDyrB'](_0x4f6b53,_0x2276fc,_0x3813e4);}};if(helper[_0xe3e225(0xa5)]()){const _0x1effce=_0x34e162[_0xe3e225(0xc1)][_0xe3e225(0x66)]('|');let _0x489c91=0x0;while(!![]){switch(_0x1effce[_0x489c91++]){case'0':this[_0xe3e225(0xc3)]();continue;case'1':if(helper[_0xe3e225(0x88)](_0x26fd52[_0xe3e225(0xb1)]['proxyUrl']))this['agent_']=helper[_0xe3e225(0x7d)](_0x26fd52[_0xe3e225(0xb1)][_0xe3e225(0xd5)]);else _0x26fd52[_0xe3e225(0xb1)][_0xe3e225(0xd5)]&&(this[_0xe3e225(0xb2)]=_0x26fd52[_0xe3e225(0xb1)][_0xe3e225(0xd5)],logger[_0xe3e225(0x90)](_0xe3e225(0xa9)+this['proxy_']));continue;case'2':_0x34e162[_0xe3e225(0x80)](isAccessibilityAutomationSession)&&_0x34e162['DNmvA'](setAccessibilityCapabilities,_0x26fd52);continue;case'3':logger['debug'](_0x34e162[_0xe3e225(0x8d)]);continue;case'4':globals[_0xe3e225(0x7c)](_0x34e162[_0xe3e225(0xd9)])&&(!_0x34e162[_0xe3e225(0xad)](setExtension,this,_0x26fd52)&&globals[_0xe3e225(0xd8)](_0x34e162[_0xe3e225(0xd9)],![]));continue;case'5':this['setServer']();continue;}break;}}const _0x492c62=super[_0xe3e225(0x82)]();return _0x492c62[_0xe3e225(0x6c)][_0xe3e225(0xb5)](_0x299707=>{const _0x2bdfbe=_0xe3e225;try{const _0xfe3cca=_0x299707[_0x2bdfbe(0xa8)]['get'](_0x14e5bf[_0x2bdfbe(0x97)]);_0xfe3cca?(logger[_0x2bdfbe(0x90)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0xfe3cca),hubAllocator[_0x2bdfbe(0x84)](_0xfe3cca),helper[_0x2bdfbe(0xa1)](_0xfe3cca)):logger[_0x2bdfbe(0x90)](_0x14e5bf[_0x2bdfbe(0x87)]);}catch(_0x5db48){logger[_0x2bdfbe(0x90)](_0x2bdfbe(0x7e)+_0x5db48);}}),_0x492c62['quitCount_']=0x0,_0x492c62[_0xe3e225(0xb5)]&&_0x492c62[_0xe3e225(0xb5)](_0x16f505=>{const _0x64cf26=_0xe3e225,_0x5251f7={'YHoKY':function(_0x131fa5,_0x254792,_0x31e707){const _0x264a3c=a29_0x2ab6;return _0x34e162[_0x264a3c(0x8f)](_0x131fa5,_0x254792,_0x31e707);}};_0x34e162['ngRNX'](overrideQuit,_0x16f505,_0x492c62),_0x34e162[_0x64cf26(0x6f)](overrideTakeScreenshot,_0x16f505),helper[_0x64cf26(0x78)](_0x16f505,_0x26fd52),_0x34e162['ngRNX'](overrideExecute,_0x16f505,_0x26fd52),_0x16f505[_0x64cf26(0x71)]=async()=>{const _0x5e7273=_0x64cf26;return await _0x14e5bf[_0x5e7273(0x7b)](getAccessibilityResultsSummary,_0x16f505,global);},_0x16f505[_0x64cf26(0xb4)]=async()=>{const _0x2e2a80=_0x64cf26;return await _0x5251f7[_0x2e2a80(0xcc)](getAccessibilityResults,_0x16f505,global);};}),_0x492c62['getAccessibilityResultsSummary']=async()=>{const _0x192c48=_0xe3e225;return await _0x14e5bf[_0x192c48(0x7b)](getAccessibilityResultsSummary,_0x492c62,global);},_0x492c62[_0xe3e225(0xb4)]=async()=>{const _0x41648e=_0xe3e225;return await _0x14e5bf[_0x41648e(0x98)](getAccessibilityResults,_0x492c62,global);},_0x34e162['tsiMK'](overrideTakeScreenshot,_0x492c62),_0x34e162[_0xe3e225(0x9e)](overrideQuit,_0x492c62),helper[_0xe3e225(0x78)](_0x492c62,_0x26fd52),_0x34e162[_0xe3e225(0xc0)](overrideExecute,_0x492c62,_0x26fd52),helper[_0xe3e225(0x77)](global[_0xe3e225(0xa6)])&&(global['__driversArray']=[]),helper[_0xe3e225(0x77)](global['__drivers'])&&(global[_0xe3e225(0xda)]=[]),global[_0xe3e225(0xa6)][_0xe3e225(0x86)](_0x492c62),global['__driver']=_0x492c62,_0x34e162[_0xe3e225(0xa3)](global['__drivers'],undefined)&&global[_0xe3e225(0xda)][_0xe3e225(0x86)](_0x492c62),_0x4d87ad&&helper[_0xe3e225(0x77)](_0x4d87ad['global'][_0xe3e225(0xa6)])&&(_0x4d87ad['global'][_0xe3e225(0xa6)]=[]),_0x4d87ad&&_0x34e162[_0xe3e225(0xcd)](_0x4d87ad[_0xe3e225(0xab)]['__drivers'],undefined)&&(_0x4d87ad[_0xe3e225(0xab)]['__drivers'][_0xe3e225(0x86)](_0x492c62),_0x4d87ad[_0xe3e225(0xab)][_0xe3e225(0xa6)][_0xe3e225(0x86)](_0x492c62)),_0x492c62;}}return _0x5f4ea2[_0xfc20de(0xbc)]=_0x5f4ea2[_0xfc20de(0xca)],_0x5f4ea2[_0xfc20de(0xca)]=_0x27577c,_0x2d7bef['HttpClient']=_0x2973d4,_0x5f4ea2;};module[a29_0x1a9bc7(0x6d)][a29_0x1a9bc7(0xc9)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x56f89b=a30_0x43b3;(function(_0x128854,_0x480d03){const _0x308855=a30_0x43b3,_0x140eac=_0x128854();while(!![]){try{const _0x201179=-parseInt(_0x308855(0x14c))/0x1*(parseInt(_0x308855(0x152))/0x2)+parseInt(_0x308855(0x150))/0x3+parseInt(_0x308855(0x153))/0x4+-parseInt(_0x308855(0x149))/0x5+-parseInt(_0x308855(0x14f))/0x6+parseInt(_0x308855(0x148))/0x7+parseInt(_0x308855(0x154))/0x8;if(_0x201179===_0x480d03)break;else _0x140eac['push'](_0x140eac['shift']());}catch(_0x1ec303){_0x140eac['push'](_0x140eac['shift']());}}}(a30_0x407a,0x5bd6d));function a30_0x43b3(_0x26d21d,_0x39f4cd){const _0x407a69=a30_0x407a();return a30_0x43b3=function(_0x43b3ff,_0x2fa9ec){_0x43b3ff=_0x43b3ff-0x148;let _0x325cca=_0x407a69[_0x43b3ff];return _0x325cca;},a30_0x43b3(_0x26d21d,_0x39f4cd);}const requestSpy=require(a30_0x56f89b(0x14d)),constants=require(a30_0x56f89b(0x155)),{addRequestSpy}=require('../../../helpers/test-observability/utils');exports[a30_0x56f89b(0x14b)]={'beforeAll'(){const _0x4029b7=a30_0x56f89b,_0x8946f8={'egaxp':function(_0x143731){return _0x143731();}},_0x2644c6='browserstack internal helper hook';_0x8946f8[_0x4029b7(0x151)](addRequestSpy);},'afterAll'(){const _0x3bdac1=a30_0x56f89b,_0x4e5a46='browserstack internal helper hook';this[_0x3bdac1(0x14a)](0xea60),requestSpy[_0x3bdac1(0x14e)]();}};function a30_0x407a(){const _0x5569a0=['../../../bin/utils/constants','4289194ekvxYb','3571585oXNFeV','timeout','mochaHooks','1AZcCLD','../../../helpers/request-spy','restore','4095954jXXOEi','1612668BJyADA','egaxp','959128crafbP','2167244zWMabc','4484832WtEMZZ'];a30_0x407a=function(){return _0x5569a0;};return a30_0x407a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a31_0xf598(){const _0xdf308f=['TEST_PLATFORM','hYzRj','_afterEach','nMjGf','state','VQaCp','split','rGoIM','ZgYvB','emit','DSjnu','../../../helpers/test-observability/constants','hookAnalyticsId','__cloud_provider___','slice','JVxKF','IIWoz','mapTestHooks','forEach','QogoX','getHooksForTest','DkRFp','PQIPF','markedStatus','pid','1086393DGwMCM','getHookDetails','2005KhbyuO','passed','keys','uMKZS','15186420iYJkvp','parent','fromEntries','RCEhT','nnOyk','9xpSOrb','../../../helpers/testhub/utils','OuRph','GmgBy','GDTwF','getBrowserName','FuymI','getHookSkippedTests','1770RstIwk','PyPjS','hook','RgnqC','ZENxL','2823944NUSbay','ezypK','yBuiT','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','bs:addPlatformDetails:','ZhPtm','pending','suites','getBrowserVersion','1592126vpoFfp','reduce','_beforeEach','3424448GhHUpE','concat','browserstack','sendPlatformDetails','indexOf','HxhSu','../../../helpers/helper','436590ppVOko','getPlatform','tests','_afterAll','uuid','_beforeAll','1BwznXP','unknown_grid','OvKTK','dNpnf','../../utils/logPatcher','type'];a31_0xf598=function(){return _0xdf308f;};return a31_0xf598();}const a31_0x23de33=a31_0x13e7;(function(_0x5df771,_0x1fb549){const _0x4651ca=a31_0x13e7,_0x1950d6=_0x5df771();while(!![]){try{const _0x51323f=-parseInt(_0x4651ca(0x192))/0x1*(-parseInt(_0x4651ca(0x182))/0x2)+parseInt(_0x4651ca(0x1b1))/0x3+parseInt(_0x4651ca(0x179))/0x4+-parseInt(_0x4651ca(0x1b3))/0x5*(parseInt(_0x4651ca(0x1c4))/0x6)+parseInt(_0x4651ca(0x18c))/0x7+-parseInt(_0x4651ca(0x185))/0x8*(-parseInt(_0x4651ca(0x1bc))/0x9)+-parseInt(_0x4651ca(0x1b7))/0xa;if(_0x51323f===_0x1fb549)break;else _0x1950d6['push'](_0x1950d6['shift']());}catch(_0x3ed1b8){_0x1950d6['push'](_0x1950d6['shift']());}}}(a31_0xf598,0xaf365));const {v4:uuidv4}=require(a31_0x23de33(0x190)),{name,version}=require('../../../../package.json'),logPatcher=require(a31_0x23de33(0x196)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require(a31_0x23de33(0x1a3)),{getPlatformVersion}=require(a31_0x23de33(0x18b)),{shouldProcessEventForTesthub}=require(a31_0x23de33(0x1bd));function a31_0x13e7(_0x57e575,_0x5afca9){const _0xf598d1=a31_0xf598();return a31_0x13e7=function(_0x13e766,_0x51fbd4){_0x13e766=_0x13e766-0x178;let _0x1c2df7=_0xf598d1[_0x13e766];return _0x1c2df7;},a31_0x13e7(_0x57e575,_0x5afca9);}console={},Object[a31_0x23de33(0x1b5)](consoleHolder)[a31_0x23de33(0x1aa)](_0x4c4550=>{console[_0x4c4550]=(..._0x5a002f)=>{BSTestOpsPatcher[_0x4c4550](..._0x5a002f);};}),exports['getTestEnv']=()=>{const _0x2d9ea3=a31_0x23de33,_0x2f210f={'VQaCp':'generic','DkRFp':function(_0x1224c9){return _0x1224c9();}};return{'ci':_0x2f210f[_0x2d9ea3(0x19d)],'key':_0x2f210f[_0x2d9ea3(0x1ad)](uuidv4),'version':version,'collector':'js-'+name};},exports[a31_0x23de33(0x1b2)]=_0x2a6fc4=>{const _0x57db98=a31_0x23de33,_0x1eafde={};_0x1eafde[_0x57db98(0x1bb)]=function(_0x5c1062,_0x8afd8b){return _0x5c1062!==_0x8afd8b;},_0x1eafde[_0x57db98(0x1be)]='string',_0x1eafde[_0x57db98(0x17a)]='hook:',_0x1eafde[_0x57db98(0x1c5)]=function(_0x395208,_0x2e20cf){return _0x395208!==_0x2e20cf;},_0x1eafde[_0x57db98(0x1ae)]=_0x57db98(0x1c6);const _0x3eeac0=_0x1eafde;if(!_0x2a6fc4||_0x3eeac0['nnOyk'](typeof _0x2a6fc4,_0x3eeac0[_0x57db98(0x1be)]))return[null,null];if(_0x3eeac0[_0x57db98(0x1bb)](_0x2a6fc4[_0x57db98(0x189)](_0x3eeac0[_0x57db98(0x17a)]),-0x1)){const _0x2827aa=_0x2a6fc4[_0x57db98(0x19e)](_0x3eeac0[_0x57db98(0x17a)]);return[_0x2827aa[0x0][_0x57db98(0x1a6)](0x0,-0x1)[_0x57db98(0x19e)]('\x22')[0x1],_0x2827aa[0x1]['substring'](0x1)];}else{if(_0x3eeac0['PyPjS'](_0x2a6fc4[_0x57db98(0x189)](_0x3eeac0['PQIPF']),-0x1)){const _0x59ae58=_0x2a6fc4[_0x57db98(0x19e)](_0x3eeac0[_0x57db98(0x1ae)]);return[_0x59ae58[0x0][_0x57db98(0x1a6)](0x0,-0x1)[_0x57db98(0x19e)]('\x22')[0x1],_0x2a6fc4];}}return[null,null];},exports[a31_0x23de33(0x1ac)]=_0xf00039=>{const _0x2dff3d=a31_0x23de33,_0x1127e8={'IIWoz':function(_0x51542a,_0x440195){return _0x51542a(_0x440195);},'yYeal':_0x2dff3d(0x191),'RgnqC':_0x2dff3d(0x18f),'anKBQ':_0x2dff3d(0x184),'OvKTK':_0x2dff3d(0x19a)};if(!_0xf00039||!_0xf00039[_0x2dff3d(0x1b8)])return[];const _0x3d63bd=[];return[_0x1127e8['yYeal'],_0x1127e8[_0x2dff3d(0x1c7)],_0x1127e8['anKBQ'],_0x1127e8[_0x2dff3d(0x194)]][_0x2dff3d(0x1aa)](_0x2025ab=>{const _0x2a4fb6=_0x2dff3d,_0x4fd2bb={'FuymI':function(_0x575044,_0x540912){const _0x2b2207=a31_0x13e7;return _0x1127e8[_0x2b2207(0x1a8)](_0x575044,_0x540912);}},_0x5c3af8=_0xf00039[_0x2a4fb6(0x1b8)][_0x2025ab]||[];_0x5c3af8[_0x2a4fb6(0x1aa)](_0x3f9d52=>{const _0x44682b=_0x2a4fb6;_0x3f9d52[_0x44682b(0x1a4)]&&!_0x4fd2bb[_0x44682b(0x1c2)](isInternalHook,_0x3f9d52['fn'])&&_0x3d63bd['push'](_0x3f9d52['hookAnalyticsId']);});}),[..._0x3d63bd,...exports[_0x2dff3d(0x1ac)](_0xf00039[_0x2dff3d(0x1b8)])];},exports[a31_0x23de33(0x1a9)]=_0x5175e0=>{const _0x32082f=a31_0x23de33,_0x568903={'HxhSu':function(_0x51c812){return _0x51c812();},'QogoX':function(_0x3670a6,_0x4e5a2c){return _0x3670a6===_0x4e5a2c;},'DSjnu':_0x32082f(0x19a),'rGoIM':'_beforeAll','bvqBE':'_afterAll','hYzRj':_0x32082f(0x184)};if(!_0x5175e0||!_0x5175e0[_0x32082f(0x1b8)])return;[_0x568903[_0x32082f(0x19f)],_0x568903['bvqBE'],_0x568903[_0x32082f(0x199)],_0x568903[_0x32082f(0x1a2)]]['forEach'](_0xdaa03d=>{const _0x285a27=_0x32082f,_0x8abcb1=_0x5175e0['parent'][_0xdaa03d]||[];_0x8abcb1[_0x285a27(0x1aa)](_0x299dde=>{const _0x569e53=_0x285a27;if(!_0x299dde[_0x569e53(0x1a4)])_0x299dde[_0x569e53(0x1a4)]=_0x568903[_0x569e53(0x18a)](uuidv4);else _0x299dde[_0x569e53(0x1af)]&&_0x568903[_0x569e53(0x1ab)](_0xdaa03d,_0x568903[_0x569e53(0x1a2)])&&(_0x299dde['hookAnalyticsId']=_0x568903[_0x569e53(0x18a)](uuidv4),delete _0x299dde[_0x569e53(0x1af)]);});}),exports[_0x32082f(0x1a9)](_0x5175e0['parent']);},exports[a31_0x23de33(0x188)]=async(_0x1e931d,_0x184305)=>{const _0x33f0d4=a31_0x23de33,_0x4e2b4a={'ufWfp':function(_0x37d214){return _0x37d214();},'ucYkm':function(_0x91182,_0xd12b8e){return _0x91182(_0xd12b8e);},'GmgBy':function(_0x289c4e,_0x557629){return _0x289c4e(_0x557629);},'ZgYvB':function(_0x417c58,_0x1a655e){return _0x417c58===_0x1a655e;},'RCEhT':_0x33f0d4(0x187),'GDTwF':_0x33f0d4(0x193),'ZENxL':_0x33f0d4(0x198)};try{if(!_0x4e2b4a['ufWfp'](shouldProcessEventForTesthub))return;const _0x4cad6f=await _0x1e931d['getCapabilities'](),_0x2f87bd=await _0x1e931d['getSession'](),_0x49999e={},_0x250c05=Object[_0x33f0d4(0x1b9)](_0x2f87bd['getCapabilities']()['map_']),_0x593702={'product':_0x4e2b4a['ucYkm'](getObservabilityLinkedProductName,_0x250c05),'capabilities':_0x250c05,'platform':_0x4cad6f[_0x33f0d4(0x18d)](),'platform_version':_0x4e2b4a[_0x33f0d4(0x1bf)](getPlatformVersion,_0x4e2b4a[_0x33f0d4(0x1a0)](global[_0x33f0d4(0x1a5)],_0x4e2b4a[_0x33f0d4(0x1ba)])),'browser':_0x4cad6f[_0x33f0d4(0x1c1)](),'browser_version':_0x4cad6f[_0x33f0d4(0x181)](),'session_id':_0x2f87bd['toJSON']()};global[_0x33f0d4(0x1a5)]?_0x49999e[global[_0x33f0d4(0x1a5)]]=_0x593702:_0x49999e[_0x4e2b4a[_0x33f0d4(0x1c0)]]=_0x593702,process[_0x33f0d4(0x1a1)](_0x33f0d4(0x17d)+process[_0x33f0d4(0x1b0)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x4e2b4a[_0x33f0d4(0x178)],'http_response':_0x49999e,'uuid':_0x184305});}catch(_0x142e8b){_0x4e2b4a[_0x33f0d4(0x1bf)](debug,_0x33f0d4(0x17c)+_0x142e8b);}},exports[a31_0x23de33(0x1c3)]=_0x446a38=>{const _0x50b776=a31_0x23de33,_0x3ccc00={};_0x3ccc00[_0x50b776(0x1b6)]=function(_0x17bdb4,_0x2fe23e){return _0x17bdb4!==_0x2fe23e;},_0x3ccc00[_0x50b776(0x1a7)]='hook',_0x3ccc00['dNpnf']=function(_0x18241c,_0x5e3142){return _0x18241c!==_0x5e3142;},_0x3ccc00[_0x50b776(0x19b)]=_0x50b776(0x1b4),_0x3ccc00[_0x50b776(0x17b)]=function(_0x5f1a54,_0x1fa9c4){return _0x5f1a54!==_0x1fa9c4;},_0x3ccc00[_0x50b776(0x17e)]='failed';const _0x578104=_0x3ccc00,_0x29aa0c=_0x446a38[_0x50b776(0x180)][_0x50b776(0x183)]((_0x27102b,_0x24b7a9)=>{const _0x53fd7c=_0x50b776,_0x15ace9=exports[_0x53fd7c(0x1c3)](_0x24b7a9);return _0x15ace9&&(_0x27102b=_0x27102b['concat'](_0x15ace9)),_0x27102b;},[]),_0x2ff8ef=_0x446a38[_0x50b776(0x18e)]['filter'](_0x32dfac=>{const _0x5517a6=_0x50b776,_0x55ea1d=_0x578104[_0x5517a6(0x1b6)](_0x32dfac[_0x5517a6(0x197)],_0x578104['JVxKF'])&&!_0x32dfac[_0x5517a6(0x1af)]&&_0x578104[_0x5517a6(0x195)](_0x32dfac[_0x5517a6(0x19c)],_0x578104[_0x5517a6(0x19b)])&&_0x578104[_0x5517a6(0x17b)](_0x32dfac['state'],_0x578104[_0x5517a6(0x17e)])&&!_0x32dfac[_0x5517a6(0x17f)];return _0x55ea1d;});return _0x2ff8ef[_0x50b776(0x186)](_0x29aa0c);};
|
|
@@ -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
|
+
const a32_0x72062f=a32_0x1e59;(function(_0x3965c1,_0x555c02){const _0xd037ae=a32_0x1e59,_0x535ff6=_0x3965c1();while(!![]){try{const _0x4728b2=parseInt(_0xd037ae(0x106))/0x1+parseInt(_0xd037ae(0xcb))/0x2+-parseInt(_0xd037ae(0xc6))/0x3+parseInt(_0xd037ae(0xea))/0x4+-parseInt(_0xd037ae(0xf8))/0x5+-parseInt(_0xd037ae(0xb6))/0x6+-parseInt(_0xd037ae(0xf7))/0x7*(-parseInt(_0xd037ae(0xd2))/0x8);if(_0x4728b2===_0x555c02)break;else _0x535ff6['push'](_0x535ff6['shift']());}catch(_0x4214f){_0x535ff6['push'](_0x535ff6['shift']());}}}(a32_0x14bf,0x62294));function a32_0x1e59(_0x22aec8,_0xa94d0e){const _0x14bf97=a32_0x14bf();return a32_0x1e59=function(_0x1e59b8,_0x2787d9){_0x1e59b8=_0x1e59b8-0xa5;let _0x3dc7d7=_0x14bf97[_0x1e59b8];return _0x3dc7d7;},a32_0x1e59(_0x22aec8,_0xa94d0e);}function a32_0x14bf(){const _0x5f5a32=['../../helpers/testhub/utils','shift','thTestRunUuid','length','startMonitoring','../../helpers/accessibility-automation/helper','isArray','JXQqO','__skipSessionName','Passed','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','YXtFJ','https:','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','saveTestResults','getCurrentUrl','mochaHooks','1920120KyVoIK','executeScript','setGlobal','percyCaptureMode','../../helpers/logger','stringify','Performing\x20scan\x20before\x20saving\x20results','timeout','VFJri','fqlvJ','\x20-\x20','pIlHM','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','env','olWaz','accessibilityScanStarted','752799vkfzBs','join','MQjAi','SCnOQ','testAnalyticsId','735964UcliTr','__sessionFailed','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','sessionNameSet__','UuKKW','TERpA',',\x22level\x22:\x20\x22','1640iDoMoe','thBuildUuid','titlePath','Automate\x20test\x20case\x20execution\x20has\x20started.','../../helpers/globals','BROWSERSTACK_TESTHUB_UUID','../../helpers/helper','KaDfS','ObservabilitySync:','QlAxr','bstackA11yShouldScan','currentTest','passed','debug','Failed:\x20','driverCleanup','EiqPi','ENV_VAR','err','then','protocol','failed','XrdEr','thJwtToken','2455436XNnxbw','stopMonitoring','now','testcase','../../helpers/accessibility-automation/scripts','zFaSo','util','app','\x22}}','isAccessibilityPlatform','winstonLogger','QNdKh','executeAsyncScript','16093hsjlwL','3177720yAYotb','hWmuI','message','CHaOH','hXMqM','capabilities','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','error','session_','http:','YSUPs','EcDSH','shouldScanTestForAccessibility','../../helpers/performance-tester','155429MZfNvA','quitCount_','../../helpers/percy/utils','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','CFOFB','ZIJwJ','browserstackSessionName','__drivers','info','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','.\x20Error\x20:','\x20|\x20','percy','format','state','getGlobal','bxrUv','__error_messages__'];a32_0x14bf=function(){return _0x5f5a32;};return a32_0x14bf();}const util=require(a32_0x72062f(0xf0)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x72062f(0xaa)),{percyAutoCapture}=require(a32_0x72062f(0x108)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a32_0x72062f(0xd8)),PerformanceTester=require(a32_0x72062f(0x105)),scripts=require(a32_0x72062f(0xee)),globals=require(a32_0x72062f(0xd6)),logger=require(a32_0x72062f(0xba))[a32_0x72062f(0xf4)],{shouldProcessEventForTesthub}=require(a32_0x72062f(0xa5)),testHubConstants=require('../../helpers/testhub/constants');exports[a32_0x72062f(0xb5)]={'beforeAll'(){const _0x454744=a32_0x72062f,_0x51d9e1={'JXQqO':function(_0x69f964,_0x2116f3,_0x3d0541,_0x4daa3e){return _0x69f964(_0x2116f3,_0x3d0541,_0x4daa3e);},'UuKKW':_0x454744(0xe7),'VFJri':_0x454744(0x111),'ZIJwJ':function(_0x26dfc3,_0x12585e,_0x2c4b7b){return _0x26dfc3(_0x12585e,_0x2c4b7b);},'CHaOH':_0x454744(0xde),'CFOFB':function(_0x4a81fb){return _0x4a81fb();},'WGZfz':function(_0x5adcab,_0x485564,_0x19c9fe){return _0x5adcab(_0x485564,_0x19c9fe);}};PerformanceTester[_0x454744(0xa9)]();const _0x1bbb49='browserstack internal helper hook';global['__error_messages__']=[],global[_0x454744(0xcc)]=![],global[_0x454744(0xe1)]=async()=>{const _0x52dfdc=_0x454744;let _0x5bfd2b=![];try{await global[_0x52dfdc(0x10d)][0x0][_0x52dfdc(0x100)],_0x5bfd2b=!![],global['__sessionFailed']?await _0x51d9e1[_0x52dfdc(0xac)](markSessionStatus,global[_0x52dfdc(0x10d)][0x0],_0x51d9e1[_0x52dfdc(0xcf)],global[_0x52dfdc(0x117)][_0x52dfdc(0xc7)](_0x51d9e1[_0x52dfdc(0xbe)])):await _0x51d9e1[_0x52dfdc(0x10b)](markSessionStatus,global[_0x52dfdc(0x10d)][0x0],_0x51d9e1[_0x52dfdc(0xfb)]);}catch(_0x3b14e1){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0x5bfd2b)try{try{_0x51d9e1[_0x52dfdc(0x10a)](shouldProcessEventForTesthub)&&(global[_0x52dfdc(0x10d)][0x0]&&await _0x51d9e1['WGZfz'](sendPlatformDetails,global[_0x52dfdc(0x10d)][0x0],this[_0x52dfdc(0xdd)]?this[_0x52dfdc(0xdd)][_0x52dfdc(0xca)]:null));}catch{}await global[_0x52dfdc(0x10d)][0x0]['initQuit']();}catch(_0x5385fb){}};},'beforeEach'(_0x2ce961){const _0x513432=a32_0x72062f,_0x3772c7={'olWaz':function(_0x35bff6,_0xb08b1d){return _0x35bff6>_0xb08b1d;},'hXMqM':_0x513432(0xc0),'pDNsq':function(_0xf128ba,_0x370ce8,_0x43b004){return _0xf128ba(_0x370ce8,_0x43b004);},'QPftx':_0x513432(0xdc),'YSUPs':function(_0x2c988f){return _0x2c988f();},'TERpA':_0x513432(0xf3),'QNdKh':function(_0x2a9f06,_0x250f69){return _0x2a9f06===_0x250f69;},'kbMGc':_0x513432(0x101),'GgMap':_0x513432(0xb1),'fqlvJ':_0x513432(0xaf),'XrdEr':_0x513432(0xd5),'DETeP':function(_0x5181be){return _0x5181be();}};new Promise(async _0x2a766c=>{const _0x96baef=_0x513432,_0x368ea1='browserstack internal helper hook';let _0xc88da7=!![];try{_0x3772c7['olWaz'](global['__drivers']['length'],0x1)&&(await global[_0x96baef(0xe1)](),global['__drivers'][_0x96baef(0xa6)]()),_0x3772c7[_0x96baef(0xc4)](global['__drivers'][0x0][_0x96baef(0x107)],0x0)&&(_0xc88da7=![],await global[_0x96baef(0xe1)]());}catch{}try{Array[_0x96baef(0xab)](global[_0x96baef(0x10d)])&&global['__drivers'][0x0]&&(global['__drivers'][0x0][_0x96baef(0x10c)]=this[_0x96baef(0xdd)][_0x96baef(0xd4)]()[_0x96baef(0xc7)](_0x3772c7[_0x96baef(0xfc)])),global[_0x96baef(0x10c)]=this[_0x96baef(0xdd)]['titlePath']()[_0x96baef(0xc7)](_0x3772c7[_0x96baef(0xfc)]);}catch(_0x1bc939){logger[_0x96baef(0xdf)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x1bc939);}this['currentTest'][_0x96baef(0x104)]=_0x3772c7['pDNsq'](shouldScanTestForAccessibility,this['currentTest']['titlePath'](),!![]),globals[_0x96baef(0xb8)](_0x3772c7['QPftx'],this[_0x96baef(0xdd)]['shouldScanTestForAccessibility']),this[_0x96baef(0xdd)]['accessibilityScanStarted']=!![];if(_0x3772c7[_0x96baef(0x102)](isAccessibilityAutomationSession)&&_0xc88da7&&Array[_0x96baef(0xab)](global[_0x96baef(0x10d)])&&_0x3772c7['olWaz'](global[_0x96baef(0x10d)]['length'],0x0)&&globals[_0x96baef(0x115)](_0x3772c7[_0x96baef(0xd0)]))try{const _0x42af4d=await global['__drivers'][0x0]['session_'];if(_0x42af4d){let _0x605e0b=!![];const _0x5f2606=await global[_0x96baef(0x10d)][0x0][_0x96baef(0xb4)]();let _0xa0fb3e;try{_0xa0fb3e=new URL(_0x5f2606);}catch(_0x1f731e){_0x605e0b=![];}_0x605e0b=_0x3772c7[_0x96baef(0xf5)](_0xa0fb3e[_0x96baef(0xe6)],_0x3772c7['kbMGc'])||_0x3772c7[_0x96baef(0xf5)](_0xa0fb3e[_0x96baef(0xe6)],_0x3772c7['GgMap']),_0x605e0b&&(this[_0x96baef(0xdd)][_0x96baef(0x104)]&&logger[_0x96baef(0x10e)](_0x3772c7[_0x96baef(0xbf)])),this[_0x96baef(0xdd)][_0x96baef(0xc5)]=this[_0x96baef(0xdd)]['shouldScanTestForAccessibility'],this[_0x96baef(0xdd)]['shouldScanTestForAccessibility']&&logger[_0x96baef(0x10e)](_0x3772c7[_0x96baef(0xe8)]);}}catch(_0x5964aa){logger[_0x96baef(0xff)](_0x96baef(0xb2)+util[_0x96baef(0x113)](_0x5964aa));}_0x3772c7['DETeP'](_0x2a766c);})[_0x513432(0xe5)](_0x2ce961);},'afterEach'(_0x739742){const _0x25c8b0=a32_0x72062f,_0x4d2669={'pIlHM':function(_0x3b1441,_0x492dd7){return _0x3b1441>_0x492dd7;},'smowp':function(_0x5a726f,_0x2653c7){return _0x5a726f===_0x2653c7;},'hWmuI':_0x25c8b0(0xed),'WgaXi':function(_0x81ee08,_0x37fc75){return _0x81ee08>_0x37fc75;},'YXtFJ':'appium:app','zFaSo':function(_0x268a53,_0x48f59a,_0x47adf7,_0x446d4f){return _0x268a53(_0x48f59a,_0x47adf7,_0x446d4f);},'LoCPP':_0x25c8b0(0xc0),'PiuZK':function(_0x365238,_0x56f65d){return _0x365238!==_0x56f65d;},'GPlca':_0x25c8b0(0xde),'EcDSH':function(_0x482d39,_0xc214c1,_0x2fff28){return _0x482d39(_0xc214c1,_0x2fff28);},'WlgUV':function(_0x4aba37,_0x5d4624){return _0x4aba37+_0x5d4624;},'KaDfS':_0x25c8b0(0xe0),'kLpOs':'error','yrFFO':_0x25c8b0(0xae),'mtyxB':_0x25c8b0(0x10e),'MQjAi':_0x25c8b0(0xf3),'TLKCy':_0x25c8b0(0xdc),'QlAxr':_0x25c8b0(0x109),'aXgnL':_0x25c8b0(0xbc),'TAMhp':_0x25c8b0(0xfe),'bxrUv':function(_0x52feef){return _0x52feef();},'SCnOQ':'debug','CrwVv':function(_0x519e0a,_0x5a7c5c){return _0x519e0a>_0x5a7c5c;}},_0x14b6ee='browserstack internal helper hook';this[_0x25c8b0(0xbd)](0xfde8);const _0x5288ba=async(_0x1f64a5,_0x1fa81a)=>{const _0xd5650e=_0x25c8b0;await global[_0xd5650e(0x10d)][0x0][_0xd5650e(0xb7)](_0xd5650e(0xcd)+_0x1f64a5+_0xd5650e(0xd1)+_0x1fa81a+_0xd5650e(0xf2));};new Promise(async _0x541864=>{const _0x228618=_0x25c8b0;try{_0x4d2669[_0x228618(0xc1)](global[_0x228618(0x10d)][_0x228618(0xa8)],0x1)&&(await global[_0x228618(0xe1)](),global[_0x228618(0x10d)]['shift'](),global[_0x228618(0x117)]=[],global[_0x228618(0xcc)]=![]);try{if(global[_0x228618(0x112)]&&_0x4d2669['smowp'](global[_0x228618(0xb9)],_0x4d2669[_0x228618(0xf9)])&&global[_0x228618(0x10d)][0x0]){const _0x5d088e=_0x4d2669['WgaXi'](global[_0x228618(0xfd)][_0x228618(0xa8)],0x0)?!!global[_0x228618(0xfd)][0x0][_0x228618(0xf1)]||!!global[_0x228618(0xfd)][0x0][_0x4d2669[_0x228618(0xb0)]]:![],_0x1322f5={};_0x1322f5[_0x228618(0xf1)]=_0x5d088e,await _0x4d2669[_0x228618(0xef)](percyAutoCapture,global[_0x228618(0x10d)][0x0],_0x4d2669['hWmuI'],_0x1322f5);}}catch(_0x219083){}!global[_0x228618(0xad)]&&(await global[_0x228618(0x10d)][0x0]['executeScript'](_0x228618(0xc2)+JSON[_0x228618(0xbb)](this[_0x228618(0xdd)]['titlePath']()[_0x228618(0xc7)](_0x4d2669['LoCPP']))+'}}'),global[_0x228618(0x10d)][0x0][_0x228618(0xce)]=!![]);const _0x4b2da6=_0x4d2669['PiuZK'](this[_0x228618(0xdd)][_0x228618(0x114)],_0x4d2669['GPlca']);_0x4b2da6?(global[_0x228618(0xcc)]=!![],global[_0x228618(0x117)]['push'](this['currentTest'][_0x228618(0xe4)][_0x228618(0xfa)]),await _0x4d2669[_0x228618(0x103)](_0x5288ba,JSON[_0x228618(0xbb)](_0x4d2669['WlgUV'](_0x4d2669[_0x228618(0xd9)],this[_0x228618(0xdd)]['err'][_0x228618(0xfa)])),_0x4d2669['kLpOs'])):await _0x4d2669[_0x228618(0x103)](_0x5288ba,JSON[_0x228618(0xbb)](_0x4d2669['yrFFO']),_0x4d2669['mtyxB']);}catch(_0x2d211a){}try{if(this['currentTest'][_0x228618(0xc5)]&&globals['getGlobal'](_0x4d2669[_0x228618(0xc8)])&&globals['getGlobal'](_0x4d2669['TLKCy'])){logger[_0x228618(0x10e)](_0x4d2669[_0x228618(0xdb)]);const _0x3e43f5={};_0x3e43f5[_0x228618(0xa7)]=this[_0x228618(0xdd)][_0x228618(0xca)],_0x3e43f5[_0x228618(0xd3)]=process[_0x228618(0xc3)][testHubConstants['ENV_VAR'][_0x228618(0xd7)]],_0x3e43f5[_0x228618(0xe9)]=process[_0x228618(0xc3)][testHubConstants[_0x228618(0xe3)]['BROWSERSTACK_TESTHUB_JWT']];const _0x213555=_0x3e43f5;logger[_0x228618(0xdf)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x228618(0xbb)](_0x213555)),logger[_0x228618(0xdf)](_0x4d2669['aXgnL']),logger[_0x228618(0xdf)](util[_0x228618(0x113)](await global[_0x228618(0x10d)][0x0][_0x228618(0xf6)](scripts['performScan'],{'method':global[_0x228618(0x10c)]}))),await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x228618(0xb3)],_0x213555),logger[_0x228618(0x10e)](_0x4d2669['TAMhp']);}}catch(_0x446900){logger[_0x228618(0xff)](_0x228618(0x10f)+this[_0x228618(0xdd)]['titlePath']()+_0x228618(0x110),_0x446900);}try{try{if(_0x4d2669[_0x228618(0x116)](shouldProcessEventForTesthub)){global[_0x228618(0x10d)][0x0]&&await _0x4d2669[_0x228618(0x103)](sendPlatformDetails,global[_0x228618(0x10d)][0x0],this['currentTest']?this['currentTest'][_0x228618(0xca)]:null);if(_0x4d2669[_0x228618(0x116)](isBrowserstackInfra)){const _0x3d7260=_0x228618(0xda)+Date[_0x228618(0xec)]();await _0x4d2669['EcDSH'](_0x5288ba,JSON[_0x228618(0xbb)](_0x3d7260),_0x4d2669[_0x228618(0xc9)]);}}}catch{}_0x4d2669['CrwVv'](global['__drivers'][0x0][_0x228618(0x107)],0x0)&&await global['driverCleanup']();}catch(_0x197134){}_0x4d2669['bxrUv'](_0x541864);})[_0x25c8b0(0xe5)](()=>_0x739742());},'afterAll'(_0x9d57f9){const _0x459ac4=a32_0x72062f,_0x20883f={'EiqPi':function(_0x5651ad){return _0x5651ad();}},_0x199593='browserstack internal helper hook';this[_0x459ac4(0xbd)](0xfde8),new Promise(async _0x5db866=>{const _0x585b6f=_0x459ac4;PerformanceTester[_0x585b6f(0xeb)](),await global[_0x585b6f(0xe1)](),_0x20883f[_0x585b6f(0xe2)](_0x5db866);})['then'](()=>_0x9d57f9());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a33_0x5d7adb=a33_0x545e;(function(_0x4bee1f,_0x6108f7){const _0x46075d=a33_0x545e,_0x101012=_0x4bee1f();while(!![]){try{const _0x2a5676=parseInt(_0x46075d(0x1f5))/0x1*(parseInt(_0x46075d(0x219))/0x2)+-parseInt(_0x46075d(0x1fc))/0x3+parseInt(_0x46075d(0x212))/0x4*(-parseInt(_0x46075d(0x22b))/0x5)+parseInt(_0x46075d(0x20a))/0x6+-parseInt(_0x46075d(0x1ef))/0x7+-parseInt(_0x46075d(0x222))/0x8+-parseInt(_0x46075d(0x1fa))/0x9*(-parseInt(_0x46075d(0x21d))/0xa);if(_0x2a5676===_0x6108f7)break;else _0x101012['push'](_0x101012['shift']());}catch(_0x14372f){_0x101012['push'](_0x101012['shift']());}}}(a33_0x5723,0x3e6cd));function a33_0x545e(_0x1fecd8,_0x2e4c6){const _0x57237d=a33_0x5723();return a33_0x545e=function(_0x545e35,_0x583a38){_0x545e35=_0x545e35-0x1e3;let _0x5203a2=_0x57237d[_0x545e35];return _0x5203a2;},a33_0x545e(_0x1fecd8,_0x2e4c6);}const fs=require('fs'),path=require(a33_0x5d7adb(0x213)),{spawn}=require(a33_0x5d7adb(0x1f9)),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x5d7adb(0x1e5)),helper=require(a33_0x5d7adb(0x21e)),constants=require(a33_0x5d7adb(0x1eb)),getUserNightwatchConfigs=(_0x5cbb85,_0x1df698)=>{const _0x2302ef=a33_0x5d7adb,_0x291926={'QWjbR':_0x2302ef(0x206),'hFcQm':_0x2302ef(0x1e6),'gBJAL':function(_0x5be9ec,_0x4d55f3){return _0x5be9ec(_0x4d55f3);},'ziEWx':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x38bfcb=null,_0x5614d0={};const _0x7fff6d=_0x1df698['findIndex'](_0x41f857=>_0x41f857===_0x2302ef(0x21b));if(!helper[_0x2302ef(0x218)](_0x5cbb85[_0x2302ef(0x1e9)])&&fs[_0x2302ef(0x1f3)](path[_0x2302ef(0x21c)](process['cwd'](),_0x5cbb85[_0x2302ef(0x1e9)])))_0x38bfcb=path[_0x2302ef(0x21c)](process[_0x2302ef(0x210)](),_0x5cbb85[_0x2302ef(0x1e9)]),_0x1df698['splice'](_0x7fff6d,0x2);else{if(fs['existsSync'](path['join'](process[_0x2302ef(0x210)](),_0x291926[_0x2302ef(0x1f7)])))_0x38bfcb=path[_0x2302ef(0x21c)](process[_0x2302ef(0x210)](),_0x291926[_0x2302ef(0x1f7)]);else fs['existsSync'](path[_0x2302ef(0x21c)](process[_0x2302ef(0x210)](),_0x291926[_0x2302ef(0x203)]))&&(_0x38bfcb=path[_0x2302ef(0x21c)](process[_0x2302ef(0x210)](),_0x291926[_0x2302ef(0x203)]));}return _0x38bfcb?(logger[_0x2302ef(0x1f4)](_0x2302ef(0x223)+_0x38bfcb),_0x5614d0=_0x291926[_0x2302ef(0x202)](require,_0x38bfcb)):logger[_0x2302ef(0x1f4)](_0x291926[_0x2302ef(0x20e)]),_0x5614d0;},removeExistingEnvs=_0x5e8f77=>{const _0x577d85=a33_0x5d7adb,_0xd770f0={};_0xd770f0['SYdny']=function(_0x4ed0aa,_0x210cc9){return _0x4ed0aa>_0x210cc9;};const _0x4837be=_0xd770f0;let _0x183f7c=_0x5e8f77[_0x577d85(0x1ec)](_0x44caee=>_0x44caee===_0x577d85(0x227));_0x4837be[_0x577d85(0x21a)](_0x183f7c,-0x1)&&_0x5e8f77[_0x577d85(0x1ed)](_0x183f7c,0x2),_0x183f7c=_0x5e8f77[_0x577d85(0x1ec)](_0x18f32b=>_0x18f32b==='-e'),_0x4837be[_0x577d85(0x21a)](_0x183f7c,-0x1)&&_0x5e8f77[_0x577d85(0x1ed)](_0x183f7c,0x2);};function a33_0x5723(){const _0x21279b=['VfKit','nightwatch','webdriver','gBJAL','hFcQm','trim','YdQcD','nightwatch.conf.js','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','map','feOrg','586368UXOwQJ','test','filter','inherit','ziEWx','forEach','cwd','selenium','317140OzqEIK','path','lizoh','host','nightwatch.cmd','start_process','isUndefined','65206VzNUNk','SYdny','--config','join','6721810SnfYVa','../../helpers/helper','zBees','useW3C','stringify','2318192gtavqB','Getting\x20your\x20nightwatch\x20configs\x20from\x20','unlinkSync','now','split','--env','hub.browserstack.com','platforms','push','25rOnxhs','writeFileSync','uqiSe','../../helpers/BrowserStackSetup','nightwatch.json','platform','NSfOb','config','close','../utils/constants','findIndex','splice','exports','664314JCvfsl','port','nightwatch-browserstack.json','test_settings','existsSync','info','3LfAzvJ','vfhuw','QWjbR','XFpQI','child_process','18hAjqwv','env','1509315hmZLpQ','length','desiredCapabilities'];a33_0x5723=function(){return _0x21279b;};return a33_0x5723();}function run(_0x279d17,_0x2ca9ed){const _0x545ee7=a33_0x5d7adb,_0x51be9e={'zBees':_0x545ee7(0x200),'uqiSe':function(_0x197b1f,_0xaad6c2){return _0x197b1f+_0xaad6c2;},'XFpQI':_0x545ee7(0x1f2),'RDpuo':function(_0xc54fbd,_0x208de1,_0x424cd4){return _0xc54fbd(_0x208de1,_0x424cd4);},'VfKit':_0x545ee7(0x228),'WGmKW':_0x545ee7(0x207),'NSfOb':function(_0x4bd333,_0xfbc359){return _0x4bd333===_0xfbc359;},'cFBbk':_0x545ee7(0x1f1),'feOrg':function(_0x5dbad9,_0x56e234){return _0x5dbad9(_0x56e234);},'YdQcD':function(_0x286e26,_0x2ffa81,_0x107737,_0x231868){return _0x286e26(_0x2ffa81,_0x107737,_0x231868);},'lizoh':_0x545ee7(0x216),'QxnhQ':'--config','vfhuw':_0x545ee7(0x227),'OkCrT':_0x545ee7(0x20d),'aWqaz':_0x545ee7(0x1ea)},_0x546534=new BrowserStackSetup(_0x279d17);if(!_0x546534[_0x545ee7(0x1e9)])return;const _0x5189e7=_0x51be9e['RDpuo'](getUserNightwatchConfigs,_0x279d17,_0x2ca9ed),_0x5e450c={};_0x5e450c[_0x545ee7(0x217)]=![];const _0x35ad03={};_0x35ad03[_0x545ee7(0x215)]=_0x51be9e[_0x545ee7(0x1ff)],_0x35ad03[_0x545ee7(0x1f0)]=0x1bb;const _0x562b31={};_0x562b31[_0x545ee7(0x201)]=_0x5e450c,_0x562b31[_0x545ee7(0x211)]=_0x35ad03;const _0x182cc5=_0x562b31;logger['info'](_0x51be9e['WGmKW']);const _0x42aea7={..._0x5189e7},_0x191c23=_0x42aea7,_0x4b4c0e=helper[_0x545ee7(0x220)](_0x546534['config']),_0x2cba50=[];_0x546534['config'][_0x545ee7(0x229)][_0x545ee7(0x20f)]((_0x2253ed,_0x28c9d2)=>{const _0x5a26a7=_0x545ee7;_0x4b4c0e?_0x2cba50[_0x5a26a7(0x22a)](helper['modifyBrowserStackW3CCaps'](_0x546534[_0x5a26a7(0x1e9)],_0x51be9e[_0x5a26a7(0x21f)],_0x28c9d2)):_0x2cba50[_0x5a26a7(0x22a)](helper['modifyBrowserStackCaps'](_0x546534[_0x5a26a7(0x1e9)],_0x51be9e['zBees'],_0x28c9d2));});const _0x54eb54={},_0x3194eb=[];_0x279d17['env']=_0x279d17['env']||_0x279d17['e'];const _0x50b18a=_0x279d17[_0x545ee7(0x1fb)]?_0x279d17['env'][_0x545ee7(0x204)]()[_0x545ee7(0x226)](',')[_0x545ee7(0x208)](_0x3c7ce3=>_0x3c7ce3['trim']())[_0x545ee7(0x20c)](_0x57b1e6=>_0x57b1e6!==''):[''];_0x51be9e[_0x545ee7(0x1e8)](_0x50b18a[_0x545ee7(0x1fd)],0x0)&&_0x50b18a[_0x545ee7(0x22a)]('');_0x50b18a[_0x545ee7(0x20f)](_0x25d685=>{const _0x29ba75=_0x545ee7;_0x2cba50[_0x29ba75(0x20f)](_0x287216=>{const _0x363c7c=_0x29ba75;let _0x1a8025=_0x51be9e[_0x363c7c(0x1e4)](helper['getPlatformName'](_0x287216,'_'),'_'+Date[_0x363c7c(0x225)]());_0x25d685&&(_0x1a8025+='_'+_0x25d685);if(_0x25d685&&(!_0x5189e7[_0x51be9e[_0x363c7c(0x1f8)]]||!_0x5189e7[_0x51be9e['XFpQI']][_0x25d685]))return;const _0x37177c={..._0x182cc5};_0x37177c[_0x363c7c(0x1fe)]=_0x287216;const _0x472a7a=_0x37177c;_0x54eb54[_0x1a8025]=_0x25d685?helper['mergeDeep'](_0x5189e7[_0x51be9e[_0x363c7c(0x1f8)]][_0x25d685],_0x472a7a):_0x472a7a,_0x3194eb[_0x363c7c(0x22a)](_0x1a8025);});});!_0x191c23[_0x545ee7(0x1f2)]&&(_0x191c23[_0x545ee7(0x1f2)]={});_0x191c23['test_settings']={..._0x191c23[_0x545ee7(0x1f2)],..._0x54eb54};const _0x429cbc=path[_0x545ee7(0x21c)](__dirname,_0x51be9e['cFBbk']);fs[_0x545ee7(0x1e3)](_0x429cbc,JSON[_0x545ee7(0x221)](_0x191c23)),_0x51be9e[_0x545ee7(0x209)](removeExistingEnvs,_0x2ca9ed);const _0x52602a=_0x51be9e[_0x545ee7(0x205)](spawn,/^win/[_0x545ee7(0x20b)](process[_0x545ee7(0x1e7)])?_0x51be9e[_0x545ee7(0x214)]:_0x51be9e[_0x545ee7(0x21f)],[_0x51be9e['QxnhQ'],_0x429cbc,..._0x2ca9ed['slice'](0x1),_0x51be9e[_0x545ee7(0x1f6)],_0x3194eb['join'](',')],{'stdio':_0x51be9e['OkCrT']});_0x52602a['on'](_0x51be9e['aWqaz'],async _0x30c830=>{const _0x42408d=_0x545ee7;logger['debug']('child\x20process\x20exited\x20with\x20code\x20'+_0x30c830),logger[_0x42408d(0x1f4)]('Deleting\x20'+_0x429cbc),fs[_0x42408d(0x224)](_0x429cbc);});}module[a33_0x5d7adb(0x1ee)]=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
|
+
function a34_0x448a(){const _0x55d158=['../../helpers/logger','platformValidation','goQpa','bstackSdkArgs','workerInfo','vEKSk','testInfo','MUjmf','getAccessibilityResultsSummary','602236meoxyC','KDtUf','5624122qhPCmg','accessibilityPlatform','2424kGARTN','Playwright','BS_A11Y_JWT','nWMXZ','project','EqWiP','debug','gXfGn','381392AJJtwS','EHQLq','executeScript','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','accessibilityOptions.includeIssueType.needsReview','dlbLN','browser','269400yxCQdx','jdYiR','nCEZD','No\x20accessibility\x20results\x20were\x20found.','ubgtk','setAccessibilityCapabilities','biXVM','constructor','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','tJSOe','stringify','QEhIi','CboTg','processAccessibilityCaps','zAaSR','146706GsxMmx','vJfuq','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','onJQd','uDIQc','error','deviceName','nFfLj','format','24BzaULV','currentTest','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','warn','scannerVersion','aolZZ','accessibilityOptions','1377320MMVjWA','45sZQqkN','THhWr','jVliz','browserStackEvaluate','env','browserName','name','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','TzcyS','VQaTv','connectOptions','playwright-chromium','../../helpers/accessibility-automation/helper','latest','OvWbx','JfvFl','srANJ','browserStackExecuteDriver','8307hhrZHp','(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','BQBxH','scannerProcessingTimeout','ZLycW','../../helpers/accessibility-automation/scripts','accessibilityOptions.wcagVersion','replace','wcagVersion','chrome','util','use','needsReview','performScan','browser_version','includeIssueType','rCvSy','wsEndpoint','pdcvh','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','../../helpers/helper','WebDriver','accessibilityOptions.scannerVersion','method'];a34_0x448a=function(){return _0x55d158;};return a34_0x448a();}function a34_0x5013(_0x1fb4ce,_0x4d4c97){const _0x448a42=a34_0x448a();return a34_0x5013=function(_0x501365,_0x3027cf){_0x501365=_0x501365-0x119;let _0x3ec7a4=_0x448a42[_0x501365];return _0x3ec7a4;},a34_0x5013(_0x1fb4ce,_0x4d4c97);}const a34_0x5dedd1=a34_0x5013;(function(_0x492d72,_0x1dfa2c){const _0x8a447f=a34_0x5013,_0x3b0f79=_0x492d72();while(!![]){try{const _0x59bbb4=parseInt(_0x8a447f(0x144))/0x1+-parseInt(_0x8a447f(0x11e))/0x2+-parseInt(_0x8a447f(0x13d))/0x3*(parseInt(_0x8a447f(0x179))/0x4)+-parseInt(_0x8a447f(0x145))/0x5*(parseInt(_0x8a447f(0x134))/0x6)+parseInt(_0x8a447f(0x17b))/0x7+parseInt(_0x8a447f(0x17d))/0x8*(parseInt(_0x8a447f(0x157))/0x9)+-parseInt(_0x8a447f(0x125))/0xa;if(_0x59bbb4===_0x1dfa2c)break;else _0x3b0f79['push'](_0x3b0f79['shift']());}catch(_0x3548df){_0x3b0f79['push'](_0x3b0f79['shift']());}}}(a34_0x448a,0xc7c5c));const util=require(a34_0x5dedd1(0x161)),logger=require(a34_0x5dedd1(0x170))['winstonLogger'],{isAccessibilityAutomationSession}=require(a34_0x5dedd1(0x151)),{isUndefined}=require(a34_0x5dedd1(0x16c)),scripts=require(a34_0x5dedd1(0x15c));exports[a34_0x5dedd1(0x148)]=async(_0x1cca7d,_0x170331,_0x48f340={})=>{const _0x72a52e=a34_0x5dedd1,_0x61e4d7={};_0x61e4d7['pdcvh']=_0x72a52e(0x173);const _0x5b54c0=_0x61e4d7;return await _0x1cca7d['evaluate']('(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'+_0x170331[_0x72a52e(0x15e)](/arguments/g,_0x5b54c0[_0x72a52e(0x169)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x72a52e(0x12f)](_0x48f340)+')');},exports[a34_0x5dedd1(0x156)]=async(_0x14acd8,_0x2ba394,_0x2ad891={})=>{const _0x47f12c=a34_0x5dedd1,_0x469dbb={};_0x469dbb['SYlXF']=function(_0x2b875e,_0x532b19){return _0x2b875e===_0x532b19;},_0x469dbb[_0x47f12c(0x129)]=_0x47f12c(0x16d),_0x469dbb[_0x47f12c(0x135)]=function(_0x1d6aab,_0x3ef8c5){return _0x1d6aab===_0x3ef8c5;},_0x469dbb['nCEZD']=_0x47f12c(0x17e),_0x469dbb[_0x47f12c(0x17a)]=_0x47f12c(0x173);const _0x5ea37c=_0x469dbb;if(_0x5ea37c['SYlXF'](_0x14acd8[_0x47f12c(0x12c)][_0x47f12c(0x14b)],_0x5ea37c[_0x47f12c(0x129)]))return await _0x14acd8['executeAsyncScript'](_0x2ba394,_0x2ad891);else{if(_0x5ea37c[_0x47f12c(0x135)](_0x14acd8[_0x47f12c(0x12c)][_0x47f12c(0x14b)],_0x5ea37c[_0x47f12c(0x127)]))return await _0x14acd8[_0x47f12c(0x120)](_0x47f12c(0x158)+_0x2ba394[_0x47f12c(0x15e)](/arguments/g,_0x5ea37c[_0x47f12c(0x17a)])+_0x47f12c(0x14c)+JSON[_0x47f12c(0x12f)](_0x2ad891)+')');}},exports[a34_0x5dedd1(0x12a)]=async _0x3870a4=>{const _0x51df4b=a34_0x5dedd1,_0x2cf798={};_0x2cf798[_0x51df4b(0x130)]=_0x51df4b(0x15d),_0x2cf798[_0x51df4b(0x126)]='accessibilityOptions.scannerProcessingTimeout',_0x2cf798[_0x51df4b(0x177)]='accessibilityOptions.includeIssueType.bestPractice',_0x2cf798['ClQOE']=_0x51df4b(0x122),_0x2cf798[_0x51df4b(0x175)]='accessibilityOptions.authToken',_0x2cf798[_0x51df4b(0x11f)]=_0x51df4b(0x16e);const _0x38084f=_0x2cf798;_0x3870a4[_0x51df4b(0x143)]&&(_0x3870a4['accessibilityOptions'][_0x51df4b(0x15f)]&&(_0x3870a4[_0x38084f[_0x51df4b(0x130)]]=_0x3870a4[_0x51df4b(0x143)][_0x51df4b(0x15f)]),_0x3870a4[_0x51df4b(0x143)][_0x51df4b(0x15a)]&&(_0x3870a4[_0x38084f[_0x51df4b(0x126)]]=_0x3870a4[_0x51df4b(0x143)][_0x51df4b(0x15a)]),_0x3870a4['accessibilityOptions'][_0x51df4b(0x166)]&&(_0x3870a4[_0x38084f[_0x51df4b(0x177)]]=_0x3870a4['accessibilityOptions'][_0x51df4b(0x166)]['bestPractice'],_0x3870a4[_0x38084f['ClQOE']]=_0x3870a4[_0x51df4b(0x143)]['includeIssueType'][_0x51df4b(0x163)]));const _0x4c3d20=JSON['parse'](process[_0x51df4b(0x149)][_0x51df4b(0x13f)])[_0x51df4b(0x141)];_0x3870a4[_0x38084f['vEKSk']]=process['env'][_0x51df4b(0x17f)],_0x3870a4[_0x38084f['EHQLq']]=_0x4c3d20,delete _0x3870a4[_0x51df4b(0x143)];},exports['getAccessibilityResults']=async _0x58081e=>{const _0x139143=a34_0x5dedd1,_0xe89a84={};_0xe89a84['dlbLN']=_0x139143(0x128),_0xe89a84[_0x139143(0x119)]=_0x139143(0x16a);const _0x42e8e5=_0xe89a84;if(global[_0x139143(0x17c)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x58081e,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x58081e,scripts.getResults);return res;}catch{return logger[_0x139143(0x139)](_0x42e8e5[_0x139143(0x123)]),[];}else return logger['warn'](_0x42e8e5[_0x139143(0x119)]),[];},exports[a34_0x5dedd1(0x164)]=async(_0xf408d6,_0x526248='')=>{const _0xa5fde0=a34_0x5dedd1;if(global[_0xa5fde0(0x17c)]){const _0x5400af={};return _0x5400af[_0xa5fde0(0x16f)]=_0x526248,await exports['browserStackEvaluate'](_0xf408d6,scripts[_0xa5fde0(0x164)],_0x5400af);}},exports[a34_0x5dedd1(0x178)]=async _0x4fb10d=>{const _0x308ca2=a34_0x5dedd1,_0x2b8bc8={};_0x2b8bc8[_0x308ca2(0x12b)]='No\x20summaryResults\x20found.',_0x2b8bc8[_0x308ca2(0x131)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x4d013d=_0x2b8bc8;if(global[_0x308ca2(0x17c)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4fb10d,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x4fb10d,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x308ca2(0x11c)](_0x4d013d[_0x308ca2(0x12b)]),{};}else return logger[_0x308ca2(0x140)](_0x4d013d[_0x308ca2(0x131)]),{};},exports[a34_0x5dedd1(0x171)]=async _0x5244a4=>{const _0x59fb11=a34_0x5dedd1,_0x1008fa={'NXAzU':function(_0x30727d,_0x153793){return _0x30727d!==_0x153793;},'BQBxH':_0x59fb11(0x136),'oIKiN':function(_0x593594,_0x8e29f5){return _0x593594===_0x8e29f5;},'jeWmM':_0x59fb11(0x160),'ZLycW':function(_0x559cb0,_0x2dc448){return _0x559cb0===_0x2dc448;},'BYNcA':_0x59fb11(0x150),'TzcyS':_0x59fb11(0x121),'gXfGn':function(_0x25113a,_0x2b6ae2){return _0x25113a(_0x2b6ae2);},'goQpa':function(_0x33e308,_0x4b8cf5){return _0x33e308===_0x4b8cf5;},'jVliz':'latest','lOfgB':function(_0x31a0b2,_0x2ddbba){return _0x31a0b2>_0x2ddbba;},'JfvFl':_0x59fb11(0x12d)};try{if(!_0x1008fa['NXAzU'](_0x5244a4['deviceName'],''))return logger[_0x59fb11(0x140)](_0x1008fa[_0x59fb11(0x159)]),![];const _0x4991a4=_0x5244a4[_0x59fb11(0x124)];if(!(_0x1008fa['oIKiN'](_0x4991a4,_0x1008fa['jeWmM'])||_0x1008fa[_0x59fb11(0x15b)](_0x4991a4,_0x1008fa['BYNcA'])))return logger[_0x59fb11(0x140)](_0x1008fa[_0x59fb11(0x14d)]),![];const _0xdb8cfd=_0x1008fa[_0x59fb11(0x11d)](parseInt,_0x5244a4[_0x59fb11(0x165)]);if(!(_0x1008fa[_0x59fb11(0x172)](_0xdb8cfd,_0x1008fa[_0x59fb11(0x147)])||_0x1008fa['lOfgB'](_0xdb8cfd,0x5e)))return logger['warn'](_0x1008fa[_0x59fb11(0x154)]),![];}catch(_0x37dc8c){logger[_0x59fb11(0x11c)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x59fb11(0x13c)](_0x37dc8c));}return!![];},exports[a34_0x5dedd1(0x132)]=(_0x25e650,_0x2c2788,_0x37d66d)=>{const _0x426e6b=a34_0x5dedd1,_0x5b431d={'onJQd':function(_0x5c5090){return _0x5c5090();},'rCvSy':'browserstack.accessibility','OvWbx':function(_0x3b5e67,_0x4db5b5){return _0x3b5e67===_0x4db5b5;},'tJSOe':_0x426e6b(0x160),'THhWr':_0x426e6b(0x150),'uDIQc':_0x426e6b(0x121),'SyPsY':function(_0x19044e,_0x4bb062){return _0x19044e===_0x4bb062;},'UgRBY':_0x426e6b(0x152),'srANJ':function(_0x1dd9e7,_0x5c4da0){return _0x1dd9e7>_0x5c4da0;},'nFfLj':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','aolZZ':function(_0x4446c9,_0x554d2f){return _0x4446c9(_0x554d2f);},'EqWiP':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','VQaTv':function(_0xef5400,_0x5654ac){return _0xef5400+_0x5654ac;},'zAaSR':function(_0x33506c,_0x3da939){return _0x33506c(_0x3da939);}};try{if(_0x5b431d[_0x426e6b(0x137)](isAccessibilityAutomationSession)){global[_0x426e6b(0x17c)]=!![];!_0x25e650[_0x5b431d[_0x426e6b(0x167)]]&&(global[_0x426e6b(0x17c)]=![]);!(_0x5b431d[_0x426e6b(0x153)](_0x25e650['browserName'],_0x5b431d[_0x426e6b(0x12e)])||_0x5b431d[_0x426e6b(0x153)](_0x25e650[_0x426e6b(0x14a)],_0x5b431d[_0x426e6b(0x146)]))&&(logger['warn'](_0x5b431d[_0x426e6b(0x138)]),global[_0x426e6b(0x17c)]=![]);!(_0x5b431d['SyPsY'](_0x25e650[_0x426e6b(0x165)],_0x5b431d['UgRBY'])||_0x5b431d[_0x426e6b(0x155)](_0x25e650['browser_version'],0x5e))&&(logger['warn'](_0x5b431d[_0x426e6b(0x13b)]),global['accessibilityPlatform']=![]);!_0x5b431d[_0x426e6b(0x142)](isUndefined,_0x25e650[_0x426e6b(0x13a)])&&(logger[_0x426e6b(0x140)](_0x5b431d[_0x426e6b(0x11b)]),global[_0x426e6b(0x17c)]=![]);if(!global[_0x426e6b(0x17c)]){_0x25e650[_0x5b431d[_0x426e6b(0x167)]]=![];const _0x538d64=_0x5b431d[_0x426e6b(0x14e)](_0x2c2788,_0x5b431d[_0x426e6b(0x133)](encodeURIComponent,JSON['stringify'](_0x25e650)));_0x37d66d&&(_0x37d66d[_0x426e6b(0x13e)][_0x426e6b(0x176)][_0x426e6b(0x11a)][_0x426e6b(0x162)][_0x426e6b(0x14f)]['wsEndpoint']=_0x538d64,_0x37d66d[_0x426e6b(0x174)][_0x426e6b(0x11a)][_0x426e6b(0x162)][_0x426e6b(0x14f)][_0x426e6b(0x168)]=_0x538d64);}}}catch(_0x51e88c){logger[_0x426e6b(0x11c)](_0x426e6b(0x16b)+util['format'](_0x51e88c));}};
|
|
@@ -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';const a35_0x13b51e=a35_0x40c0;(function(_0x1c1e56,_0x51813e){const _0x5099bf=a35_0x40c0,_0xf097c1=_0x1c1e56();while(!![]){try{const _0x3740d6=-parseInt(_0x5099bf(0x1c7))/0x1+-parseInt(_0x5099bf(0x1ca))/0x2*(parseInt(_0x5099bf(0x1e3))/0x3)+-parseInt(_0x5099bf(0x212))/0x4*(-parseInt(_0x5099bf(0x1f6))/0x5)+parseInt(_0x5099bf(0x1f8))/0x6+parseInt(_0x5099bf(0x204))/0x7+-parseInt(_0x5099bf(0x211))/0x8*(-parseInt(_0x5099bf(0x210))/0x9)+-parseInt(_0x5099bf(0x1d1))/0xa;if(_0x3740d6===_0x51813e)break;else _0xf097c1['push'](_0xf097c1['shift']());}catch(_0x16d906){_0xf097c1['push'](_0xf097c1['shift']());}}}(a35_0x2d58,0x2fd30));const fs=require('fs'),path=require(a35_0x13b51e(0x1fc)),{spawn}=require(a35_0x13b51e(0x1ee)),{format}=require(a35_0x13b51e(0x18a)),logger=require(a35_0x13b51e(0x201))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0x13b51e(0x1ec)),utilities=require(a35_0x13b51e(0x193)),constants=require(a35_0x13b51e(0x200)),{FRAMEWORKS}=require(a35_0x13b51e(0x1c3)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x13b51e(0x1fd)),{CrashReporter}=require(a35_0x13b51e(0x20a)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{checkAccessibilityPlatformConfig}=require(a35_0x13b51e(0x19d)),{setAccessibilityCapabilities}=require(a35_0x13b51e(0x1f4)),TestHubHandler=require(a35_0x13b51e(0x1e5)),{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),getUserPlaywrightConfig=async(_0x1bd7cd,_0x31fe27)=>{const _0x2bc945=a35_0x13b51e,_0x4f36d1={'mqIMr':function(_0x585747){return _0x585747();},'PdjXM':function(_0x9cc41d,_0xc424e4){return _0x9cc41d(_0xc424e4);},'eiLRW':_0x2bc945(0x1a2),'xfLAy':_0x2bc945(0x1c4)},_0x2ab988=!helper['isUndefined'](_0x1bd7cd['config']),_0x278bde=_0x2ab988?path['resolve'](process[_0x2bc945(0x1d0)](),_0x1bd7cd[_0x2bc945(0x197)]):process[_0x2bc945(0x1d0)](),{resolveConfigFile:_0xbc44e9,resolveConfigLocation:_0x304aea}=helper['requirePWModule'][_0x2bc945(0x202)](null,_0x4f36d1[_0x2bc945(0x1b8)](getConfigLoaderPath)),_0x76ef8e=_0xbc44e9?_0x4f36d1[_0x2bc945(0x1a7)](_0xbc44e9,_0x278bde):helper[_0x2bc945(0x1ad)](_0x4f36d1[_0x2bc945(0x1a7)](_0x304aea,_0x278bde),[_0x4f36d1['eiLRW']]),_0x16fc91={};if(_0x2ab988){const _0x2e3e94=_0x31fe27[_0x2bc945(0x1d6)](_0x10c940=>_0x10c940===_0x2bc945(0x1c2)||_0x10c940==='-c'||_0x10c940[_0x2bc945(0x1b2)](_0x2bc945(0x1c4)));_0x31fe27[_0x2bc945(0x1e4)](_0x2e3e94,_0x31fe27[_0x2e3e94]['startsWith'](_0x4f36d1[_0x2bc945(0x1a5)])?0x1:0x2);}const _0x393809={};return _0x393809['path']=_0x76ef8e,_0x393809[_0x2bc945(0x197)]=_0x16fc91,_0x393809;},handleO11yRerun=_0x31eea4=>{const _0x397814=a35_0x13b51e,_0xa75367={};_0xa75367[_0x397814(0x1b1)]=function(_0x3fa846,_0x1fa770){return _0x3fa846!==_0x1fa770;},_0xa75367[_0x397814(0x1b5)]=_0x397814(0x1c5),_0xa75367[_0x397814(0x1f2)]=_0x397814(0x217);const _0x4a574f=_0xa75367,_0x1e7545=helper[_0x397814(0x1a3)](process[_0x397814(0x18f)]['BROWSERSTACK_RERUN']);if(_0x1e7545){const _0x21054f=process[_0x397814(0x18f)]['BROWSERSTACK_RERUN_TESTS'],_0x381718=[];if(_0x4a574f[_0x397814(0x1b1)](_0x21054f,_0x4a574f[_0x397814(0x1b5)])&&!helper[_0x397814(0x1bc)](_0x21054f)){_0x21054f['split'](',')['map'](_0x14fe3e=>{const _0x1adf18=_0x397814;_0x381718[_0x1adf18(0x1b7)]('('+_0x14fe3e[_0x1adf18(0x1e7)]()+')');});const _0x1affee='^'+_0x381718['join']('|')+'$';_0x31eea4[_0x397814(0x1b7)](_0x4a574f['LySUX'],_0x1affee);}}},spawnOriginalProcess=_0x23a402=>{const _0x3265f1=a35_0x13b51e,_0x3c573b={'tcaZf':function(_0x5e2db9,_0x3351bb,_0x4cbbe8,_0x268145){return _0x5e2db9(_0x3351bb,_0x4cbbe8,_0x268145);},'ZtjyD':_0x3265f1(0x18e),'ZaOYk':_0x3265f1(0x1bd),'GeJVB':function(_0xef4875,_0x5b6d3d){return _0xef4875===_0x5b6d3d;},'SXgbW':'win32','lAHNo':'inherit'};_0x3c573b[_0x3265f1(0x20c)](spawn,_0x3c573b['ZtjyD'],[_0x3c573b[_0x3265f1(0x1a1)],..._0x23a402[_0x3265f1(0x1a0)](0x1)],{'shell':_0x3c573b[_0x3265f1(0x1d3)](process['platform'],_0x3c573b[_0x3265f1(0x19e)]),'stdio':_0x3c573b[_0x3265f1(0x194)],'cwd':process[_0x3265f1(0x1d0)]()});},isTestCommand=(_0x3cba25,_0x455167)=>{const _0x124e3f=a35_0x13b51e,_0x512a48={};_0x512a48[_0x124e3f(0x185)]=function(_0x2bf0c0,_0x5eb017){return _0x2bf0c0>_0x5eb017;},_0x512a48[_0x124e3f(0x218)]=function(_0x206cb9,_0x21079f){return _0x206cb9===_0x21079f;},_0x512a48['eZGGR']=_0x124e3f(0x1cf);const _0x4573e8=_0x512a48;if(_0x4573e8[_0x124e3f(0x185)](_0x455167[_0x124e3f(0x1de)],0x1)&&_0x4573e8[_0x124e3f(0x218)](_0x455167[0x1],_0x4573e8['eZGGR']))return!![];return![];};async function run(_0x13ae2a,_0x8fadf){const _0x1c4cd4=a35_0x13b51e,_0x20058f={'GrBii':_0x1c4cd4(0x206),'clNiF':_0x1c4cd4(0x1cd),'NisHW':function(_0x215960,_0x2ca65e){return _0x215960+_0x2ca65e;},'vCSow':_0x1c4cd4(0x188),'grObA':_0x1c4cd4(0x215),'YFopr':function(_0x421bea){return _0x421bea();},'TaPKo':function(_0x34749f,_0x5de045){return _0x34749f+_0x5de045;},'gJzWD':_0x1c4cd4(0x183),'hoshq':_0x1c4cd4(0x1ef),'lkkHl':_0x1c4cd4(0x1f7),'HQMpl':_0x1c4cd4(0x187),'RVpPm':function(_0x1471c2,_0x2d147f){return _0x1471c2>=_0x2d147f;},'kcsgx':_0x1c4cd4(0x1e8),'NRUTY':function(_0x461507,_0x489a0a,_0xbe9f60){return _0x461507(_0x489a0a,_0xbe9f60);},'pLfff':function(_0x1d27df,_0x27eb4b){return _0x1d27df(_0x27eb4b);},'KkMKi':'BrowserStack\x20config\x20file\x20not\x20found.','DwFHO':_0x1c4cd4(0x21b),'bmqEn':function(_0x283702,_0x4d574b){return _0x283702!=_0x4d574b;},'VhcZv':function(_0x549c87,_0x893d4e){return _0x549c87(_0x893d4e);},'HNbWe':function(_0x51b051,_0x388aad){return _0x51b051(_0x388aad);},'nMavV':function(_0x135b65,_0x58bdbb){return _0x135b65===_0x58bdbb;},'lwmZM':_0x1c4cd4(0x1f9),'mveMZ':function(_0x127499,_0x4c513b){return _0x127499(_0x4c513b);},'FxTjh':'browserstackSetupConfig.json','DtLYg':function(_0x190f99,_0x2b8409){return _0x190f99===_0x2b8409;},'beiYT':_0x1c4cd4(0x17f),'vETUq':_0x1c4cd4(0x190),'jUbTn':function(_0x1be16d,_0x224569){return _0x1be16d-_0x224569;},'gleLP':function(_0x15c5f8,_0x26eabd){return _0x15c5f8+_0x26eabd;},'TYpzC':_0x1c4cd4(0x1f5),'sNuJy':function(_0x1dc9f1,_0x392e16){return _0x1dc9f1>_0x392e16;},'ocXTK':function(_0x5e07a4,_0x5b36e0){return _0x5e07a4+_0x5b36e0;},'Acyzv':function(_0x455c98,_0x110b4c,_0x4b8a15,_0x29b7ed){return _0x455c98(_0x110b4c,_0x4b8a15,_0x29b7ed);},'CQPbg':_0x1c4cd4(0x18e),'KTMkE':'playwright','oEyqf':_0x1c4cd4(0x1cf),'OPXnK':'--config','KClKa':'win32','WARkM':_0x1c4cd4(0x1e2),'meQfL':_0x1c4cd4(0x18b)};!helper['isFalse'](process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x1c0)])&&(process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x1c0)]=!![]);process[_0x1c4cd4(0x182)][_0x1c4cd4(0x18c)](_0x20058f['hoshq'])&&(process[_0x1c4cd4(0x18f)]['BROWSERSTACK_AUTOMATION']=_0x20058f[_0x1c4cd4(0x1dd)],_0x8fadf=_0x8fadf['filter'](_0xa71e4c=>_0xa71e4c!==_0x1c4cd4(0x1ef)));const _0x315b46=_0x8fadf[_0x1c4cd4(0x1fa)](_0x20058f[_0x1c4cd4(0x1e1)]);_0x20058f['RVpPm'](_0x315b46,0x0)&&(process['env'][_0x1c4cd4(0x203)]=_0x20058f[_0x1c4cd4(0x1dd)],_0x8fadf=_0x8fadf[_0x1c4cd4(0x1da)](_0x249c0a=>_0x249c0a!==_0x1c4cd4(0x187)));try{const _0x58e0e0=path[_0x1c4cd4(0x205)](helper[_0x1c4cd4(0x1ae)](),_0x20058f['GrBii'],_0x20058f[_0x1c4cd4(0x1d7)]);fs[_0x1c4cd4(0x1ab)](_0x58e0e0)&&fs[_0x1c4cd4(0x1a9)](_0x58e0e0);}catch(_0xac6125){logger[_0x1c4cd4(0x1b9)](_0x20058f[_0x1c4cd4(0x214)](_0x20058f[_0x1c4cd4(0x1ac)],_0xac6125));}if(!_0x20058f[_0x1c4cd4(0x1e9)](isTestCommand,_0x13ae2a,_0x8fadf)){_0x20058f[_0x1c4cd4(0x1a8)](spawnOriginalProcess,_0x8fadf);return;}const _0x44579c=new BrowserStackSetup(_0x13ae2a,FRAMEWORKS[_0x1c4cd4(0x1ed)]);if(!_0x44579c[_0x1c4cd4(0x197)]){logger[_0x1c4cd4(0x186)](_0x20058f[_0x1c4cd4(0x1a4)]);return;}await _0x44579c['initialize']();!helper[_0x1c4cd4(0x1bc)](_0x44579c['cliConfig'])&&_0x44579c[_0x1c4cd4(0x1a6)][_0x1c4cd4(0x21a)](_0x20058f[_0x1c4cd4(0x1df)])&&(process['env'][_0x1c4cd4(0x1c0)]=_0x44579c[_0x1c4cd4(0x1a6)][_0x1c4cd4(0x207)](_0x20058f[_0x1c4cd4(0x1df)])||!![]);_0x20058f[_0x1c4cd4(0x1d8)](_0x44579c[_0x1c4cd4(0x197)][_0x1c4cd4(0x1fe)],null)&&!helper['isTrue'](process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x203)])&&(process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x203)]=process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x203)]||_0x44579c[_0x1c4cd4(0x197)][_0x1c4cd4(0x1fe)]);const _0x4c4909=!helper[_0x1c4cd4(0x1d4)](process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x203)]);let _0x3006b3=![];_0x44579c[_0x1c4cd4(0x197)][_0x1c4cd4(0x1af)]&&(_0x3006b3=!![],process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x181)]=_0x44579c[_0x1c4cd4(0x197)]['accessibility']);_0x44579c[_0x1c4cd4(0x197)]['accessibilityOptions']&&(process[_0x1c4cd4(0x18f)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x1c4cd4(0x1e6)](_0x44579c[_0x1c4cd4(0x197)][_0x1c4cd4(0x21c)]));const _0x27c138=_0x8fadf['concat'](),_0x1d3c61=await _0x20058f[_0x1c4cd4(0x1e9)](getUserPlaywrightConfig,_0x13ae2a,_0x8fadf);if(helper[_0x1c4cd4(0x1bc)](_0x1d3c61)){_0x20058f[_0x1c4cd4(0x20e)](spawnOriginalProcess,_0x27c138);return;}const _0x277e89=_0x1d3c61[_0x1c4cd4(0x1fc)]?path[_0x1c4cd4(0x195)](_0x1d3c61[_0x1c4cd4(0x1fc)]):process[_0x1c4cd4(0x1d0)]();process[_0x1c4cd4(0x18f)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x277e89,await TestHubHandler[_0x1c4cd4(0x19b)](FRAMEWORKS['PLAYWRIGHT'],_0x44579c);_0x4c4909&&_0x20058f['HNbWe'](handleO11yRerun,_0x8fadf);let _0xe177f0=_0x20058f['nMavV'](process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x181)],_0x20058f[_0x1c4cd4(0x209)]);_0xe177f0=_0xe177f0||_0x20058f[_0x1c4cd4(0x1e0)](checkAccessibilityPlatformConfig,_0x44579c[_0x1c4cd4(0x197)]),process[_0x1c4cd4(0x18f)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0xe177f0;_0xe177f0&&_0x20058f[_0x1c4cd4(0x192)](setAccessibilityCapabilities,_0x44579c[_0x1c4cd4(0x197)]);const _0x350571=path[_0x1c4cd4(0x205)](_0x1d3c61['path']?path['dirname'](_0x1d3c61['path']):process[_0x1c4cd4(0x1d0)](),_0x20058f['FxTjh']);fs[_0x1c4cd4(0x196)](_0x350571,helper[_0x1c4cd4(0x1ce)](_0x44579c[_0x1c4cd4(0x197)])),process['env'][_0x1c4cd4(0x191)]=_0x350571,helper['clearTempPWConfig']();let _0x2fd82a='';_0x20058f[_0x1c4cd4(0x1aa)](helper[_0x1c4cd4(0x1ff)](),constants[_0x1c4cd4(0x20b)]['MODULE'])?_0x2fd82a=_0x20058f[_0x1c4cd4(0x1ba)]:_0x2fd82a=_0x20058f[_0x1c4cd4(0x21d)];let _0x478e40='';if(helper[_0x1c4cd4(0x19a)](_0x1d3c61[_0x1c4cd4(0x1fc)])){_0x478e40=_0x1c4cd4(0x1b4);const _0xf93eb4=_0x2fd82a[_0x1c4cd4(0x1ea)]('.');_0xf93eb4[_0x20058f['jUbTn'](_0xf93eb4[_0x1c4cd4(0x1de)],0x1)]='ts',_0x2fd82a=_0xf93eb4[_0x1c4cd4(0x205)]('.'),logger[_0x1c4cd4(0x1b9)](_0x20058f[_0x1c4cd4(0x213)](_0x20058f[_0x1c4cd4(0x1bf)],_0x2fd82a));}else _0x478e40=_0x1c4cd4(0x1c1);const _0x409fc1=path[_0x1c4cd4(0x205)](_0x1d3c61['path']?path['dirname'](_0x1d3c61['path']):process['cwd'](),_0x2fd82a);let _0x275193=_0x1d3c61[_0x1c4cd4(0x1fc)]?_0x1d3c61[_0x1c4cd4(0x1fc)]:'';_0x275193=_0x20058f[_0x1c4cd4(0x1cb)](_0x275193['length'],0x0)?path['resolve'](_0x275193):'',process['env'][_0x1c4cd4(0x1d9)]=_0x275193;const _0x446d1e=helper[_0x1c4cd4(0x18d)](_0x44579c[_0x1c4cd4(0x197)]);_0x446d1e&&(_0x478e40=_0x20058f[_0x1c4cd4(0x189)](_0x1c4cd4(0x180)+_0x446d1e+_0x1c4cd4(0x19f),_0x478e40));helper[_0x1c4cd4(0x1c6)]({},_0x8fadf),fs[_0x1c4cd4(0x196)](_0x409fc1,_0x478e40),helper[_0x1c4cd4(0x1d5)]();const _0x527af2=_0x20058f[_0x1c4cd4(0x1b3)](spawn,_0x20058f['CQPbg'],[_0x20058f[_0x1c4cd4(0x1cc)],_0x20058f[_0x1c4cd4(0x1d2)],_0x20058f[_0x1c4cd4(0x198)],_0x409fc1,..._0x8fadf['slice'](0x2)],{'shell':_0x20058f[_0x1c4cd4(0x1eb)](process['platform'],_0x20058f[_0x1c4cd4(0x20f)]),'stdio':_0x20058f['WARkM'],'cwd':process[_0x1c4cd4(0x1d0)](),'env':Object[_0x1c4cd4(0x199)]({},process[_0x1c4cd4(0x18f)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x13ae2a),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x44579c[_0x1c4cd4(0x197)][_0x1c4cd4(0x19c)][_0x1c4cd4(0x184)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x44579c['config'][_0x1c4cd4(0x19c)][_0x1c4cd4(0x1c8)],'BROWSERSTACK_LOG_LEVEL':_0x44579c[_0x1c4cd4(0x197)][_0x1c4cd4(0x1be)]})}),_0x325c3=()=>{const _0x462a0d=_0x1c4cd4;try{const _0x71376a=path[_0x462a0d(0x205)](helper[_0x462a0d(0x1ae)](),_0x20058f[_0x462a0d(0x1c9)],_0x20058f[_0x462a0d(0x1d7)]);if(fs[_0x462a0d(0x1ab)](_0x71376a)){let _0x22b9b9=fs[_0x462a0d(0x1b6)](_0x71376a);_0x22b9b9=JSON[_0x462a0d(0x219)](_0x22b9b9),_0x44579c['errorMessage']=_0x22b9b9,fs['unlinkSync'](_0x71376a);}}catch(_0x5a321a){logger[_0x462a0d(0x1b9)](_0x20058f[_0x462a0d(0x214)](_0x20058f[_0x462a0d(0x1f0)],_0x5a321a));}};_0x527af2['on'](_0x20058f[_0x1c4cd4(0x20d)],async _0x7de0db=>{const _0xa972bf=_0x1c4cd4;try{const _0x250b87=_0x20058f['grObA'][_0xa972bf(0x1ea)]('|');let _0x4b01b0=0x0;while(!![]){switch(_0x250b87[_0x4b01b0++]){case'0':logger[_0xa972bf(0x1b9)](_0xa972bf(0x208)+_0x7de0db);continue;case'1':await TestHubHandler[_0xa972bf(0x1b0)]();continue;case'2':logger[_0xa972bf(0x1b9)]('Deleting\x20'+_0x350571);continue;case'3':await utilities[_0xa972bf(0x1bb)](_0x44579c);continue;case'4':_0x20058f[_0xa972bf(0x1fb)](_0x325c3);continue;case'5':logger[_0xa972bf(0x216)](_0xa972bf(0x1dc)+_0x409fc1);continue;case'6':process['exitCode']=_0x7de0db;continue;case'7':fs['unlinkSync'](_0x409fc1);continue;case'8':fs['unlinkSync'](_0x350571);continue;}break;}}catch(_0x30e3e4){logger[_0xa972bf(0x1b9)](_0x20058f[_0xa972bf(0x1db)](_0x20058f[_0xa972bf(0x1f1)],_0x30e3e4));}});}function a35_0x2d58(){const _0x3694ab=['VhcZv','KClKa','1129599FJlUTq','8EhHGoz','4IkAwSk','gleLP','NisHW','4|1|3|6|0|5|7|2|8','info','--grep','Eipka','parse','has','automation','accessibilityOptions','vETUq','playwright-browserstack-sdk.config.cjs','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','BROWSERSTACK_TEST_ACCESSIBILITY_YML','argv','Error\x20in\x20closing\x20playwright','skipSessionStatus','fFBLR','error','--disable-test-observability','Error\x20in\x20getting\x20funnel\x20data\x20results','ocXTK','util','close','includes','getProxyUrl','npx','env','playwright-browserstack-sdk.config.js','BROWSERSTACK_SETUP_CONFIG_PATH','mveMZ','../../helpers/utilities','lAHNo','dirname','writeFileSync','config','OPXnK','assign','isTypescriptProject','launchBuild','testContextOptions','../../helpers/accessibility-automation/helper','SXgbW','\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();','slice','ZaOYk','resolvedConfigFile','isTrue','KkMKi','xfLAy','cliConfig','PdjXM','pLfff','unlinkSync','DtLYg','existsSync','kcsgx','nestedKeyValue','homedir','accessibility','stop','PUPcY','startsWith','Acyzv','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','dsOsP','readFileSync','push','mqIMr','debug','beiYT','finalExecution','isUndefined','playwright','logLevel','TYpzC','BROWSERSTACK_AUTOMATION','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','--config','../../helpers/test-observability/constants','--config=','null','filterBrowserstackArgs','155591phDyRX','skipSessionName','GrBii','73198gYSZCm','sNuJy','KTMkE','pw_result.json','serializeToYamlString','test','cwd','3094820jwnRba','oEyqf','GeJVB','isFalse','markSDKSetupComplete','findIndex','clNiF','bmqEn','USER_CONFIG_DETAILS_PATH','filter','TaPKo','Deleting\x20','lkkHl','length','DwFHO','HNbWe','HQMpl','inherit','3CyTsep','splice','../../helpers/testhub/testhubHandler','stringify','trim','Error\x20in\x20deleting\x20playwright\x20results','NRUTY','split','nMavV','../../helpers/helper','PLAYWRIGHT','child_process','--disable-browserstack-automation','vCSow','gJzWD','LySUX','exports','./accessibility-helper','Updated\x20config\x20file\x20name\x20to\x20-\x20','1697040QUGogG','false','934932wDFMQG','true','indexOf','YFopr','path','./reporter/pwUtils','testObservability','getPackageType','../utils/constants','../../helpers/logger','apply','BROWSERSTACK_TEST_OBSERVABILITY','537733tLXvul','join','.browserstack','get','Playwright\x20process\x20exited\x20with\x20code\x20','lwmZM','../../helpers/test-observability/error-handler','PACKAGE_TYPE','tcaZf','meQfL'];a35_0x2d58=function(){return _0x3694ab;};return a35_0x2d58();}function a35_0x40c0(_0x59f07e,_0x335220){const _0x2d58e3=a35_0x2d58();return a35_0x40c0=function(_0x40c0ed,_0x2dc226){_0x40c0ed=_0x40c0ed-0x17f;let _0x480e98=_0x2d58e3[_0x40c0ed];return _0x480e98;},a35_0x40c0(_0x59f07e,_0x335220);}module[a35_0x13b51e(0x1f3)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x325f5d=a36_0x5593;(function(_0x5239ca,_0x56279e){const _0x542e4e=a36_0x5593,_0x4ae756=_0x5239ca();while(!![]){try{const _0x2fd837=parseInt(_0x542e4e(0x1d9))/0x1*(parseInt(_0x542e4e(0x1df))/0x2)+-parseInt(_0x542e4e(0x1d7))/0x3+-parseInt(_0x542e4e(0x1c7))/0x4+-parseInt(_0x542e4e(0x1c2))/0x5+parseInt(_0x542e4e(0x1be))/0x6+parseInt(_0x542e4e(0x1bd))/0x7*(-parseInt(_0x542e4e(0x1de))/0x8)+parseInt(_0x542e4e(0x1d1))/0x9*(parseInt(_0x542e4e(0x1c0))/0xa);if(_0x2fd837===_0x56279e)break;else _0x4ae756['push'](_0x4ae756['shift']());}catch(_0x174eae){_0x4ae756['push'](_0x4ae756['shift']());}}}(a36_0x4091,0xe93e5));function a36_0x5593(_0xd80890,_0x9269d){const _0x40916f=a36_0x4091();return a36_0x5593=function(_0x5593b7,_0x2ef629){_0x5593b7=_0x5593b7-0x1b7;let _0x2db772=_0x40916f[_0x5593b7];return _0x2db772;},a36_0x5593(_0xd80890,_0x9269d);}const util=require(a36_0x325f5d(0x1c3)),child_process=require('child_process'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a36_0x325f5d(0x1ca)),helper=require(a36_0x325f5d(0x1b8)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x325f5d(0x1cb)),{mockIsWorkerRedundant}=require('./patches'),logger=require('../../helpers/logger')[a36_0x325f5d(0x1cd)];function a36_0x4091(){const _0x47726c=['3991cQmteC','Tbnew','Path\x20','debug','cxWVR','2323576rtzMAS','814UmClMN','ANQmi','./mock-process.js','exports','error','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','../../helpers/helper','fAwiu','Running\x20existing\x20global\x20setup','1.33.0','WxjtG','14oudSNw','9364908FzcTPP','config','10TCHBRS','env','7247235LbiMzR','util','yjIjs','EoRaG','format','1856332JofbWQ','isHandlePWErrorSet','includes','../../helpers/test-observability/utils','./reporter/pwUtils','resolve','winstonLogger','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','Not\x20able\x20to\x20import\x20globalSetup','apply','19173177mNGzrO','xeNej','Call\x20to\x20child\x20fork\x20with\x20args\x20','fork','\x20is\x20not\x20found','cYJsc','5597157mRjAll','PLAYWRIGHT'];a36_0x4091=function(){return _0x47726c;};return a36_0x4091();}module[a36_0x325f5d(0x1e2)]=async function(_0x848155){const _0x1b8ea5=a36_0x325f5d,_0x495a6b={'bGPbH':function(_0x2e856b,_0x3cb0d8){return _0x2e856b(_0x3cb0d8);},'WxjtG':function(_0x5d4ba1){return _0x5d4ba1();},'heHfK':_0x1b8ea5(0x1e1),'cxWVR':function(_0x4306d5){return _0x4306d5();},'yjIjs':function(_0x283649,_0x20da11){return _0x283649(_0x20da11);},'xeNej':_0x1b8ea5(0x1ba),'Tbnew':function(_0x4d8744,_0x1ce193){return _0x4d8744(_0x1ce193);},'ngaYK':function(_0x373da5,_0x43ee7e){return _0x373da5>=_0x43ee7e;},'fAwiu':_0x1b8ea5(0x1bb),'HQovg':function(_0x4f0fed,_0x2739ee,_0x4bee53){return _0x4f0fed(_0x2739ee,_0x4bee53);},'EoRaG':function(_0x1a3315,_0x1cfabd){return _0x1a3315!==_0x1cfabd;},'OyxXa':'function','cYJsc':_0x1b8ea5(0x1cf),'ANQmi':function(_0x50b935,_0x1deba9){return _0x50b935(_0x1deba9);}},_0x46c894=child_process['fork'];if(helper[_0x1b8ea5(0x1c8)]())try{_0x495a6b[_0x1b8ea5(0x1dd)](mockIsWorkerRedundant);}catch(_0x397f08){logger[_0x1b8ea5(0x1dc)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0x1b8ea5(0x1c6)](_0x397f08));}child_process[_0x1b8ea5(0x1d4)]=function(){const _0x505549=_0x1b8ea5;return _0x495a6b['bGPbH'](debug,_0x505549(0x1d3)+arguments[0x0]),arguments[0x0][_0x505549(0x1c9)](_0x495a6b[_0x505549(0x1bc)](getForkProcessPath))?arguments[0x0]=require[_0x505549(0x1cc)](_0x495a6b['heHfK']):logger[_0x505549(0x1e3)](_0x505549(0x1db)+_0x495a6b[_0x505549(0x1bc)](getForkProcessPath)+_0x505549(0x1d5)),_0x46c894[_0x505549(0x1d0)](null,arguments);};if(process[_0x1b8ea5(0x1c1)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x495a6b[_0x1b8ea5(0x1c4)](debug,_0x495a6b[_0x1b8ea5(0x1d2)]);try{const {loadGlobalHook:_0x3de00c}=helper['requirePWModule'][_0x1b8ea5(0x1d0)](null,_0x495a6b[_0x1b8ea5(0x1bc)](getLoadUtilsPath)),_0xda7739=_0x495a6b[_0x1b8ea5(0x1da)](getFrameworkVersion,FRAMEWORKS[_0x1b8ea5(0x1d8)]);let _0x568bcb=_0x848155;if(_0x495a6b['ngaYK'](helper['compareVersions'](_0xda7739,_0x495a6b[_0x1b8ea5(0x1b9)]),0x0)){const _0x8667d9={};_0x8667d9[_0x1b8ea5(0x1bf)]=_0x848155,_0x568bcb=_0x8667d9;}const _0x33aba4=await _0x495a6b['HQovg'](_0x3de00c,_0x568bcb,process[_0x1b8ea5(0x1c1)][_0x1b8ea5(0x1ce)]);if(_0x495a6b[_0x1b8ea5(0x1c5)](typeof _0x33aba4,_0x495a6b['OyxXa']))throw new Error(_0x495a6b[_0x1b8ea5(0x1d6)]);return _0x33aba4['apply'](null,arguments);}catch(_0xa4c4f1){_0x495a6b[_0x1b8ea5(0x1e0)](debug,_0x1b8ea5(0x1b7)+_0xa4c4f1['toString']());}}};
|