browserstack-node-sdk 1.34.22 → 1.34.24
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_0xc68e19=a29_0x6bd7;(function(_0x5b8fcb,_0x26dae8){const _0x2593b8=a29_0x6bd7,_0x1b37bc=_0x5b8fcb();while(!![]){try{const _0xfe4475=parseInt(_0x2593b8(0xaa))/0x1*(parseInt(_0x2593b8(0xcb))/0x2)+-parseInt(_0x2593b8(0xa2))/0x3*(parseInt(_0x2593b8(0xf7))/0x4)+-parseInt(_0x2593b8(0xdb))/0x5*(-parseInt(_0x2593b8(0xb3))/0x6)+parseInt(_0x2593b8(0xee))/0x7*(-parseInt(_0x2593b8(0x9f))/0x8)+parseInt(_0x2593b8(0x9d))/0x9+-parseInt(_0x2593b8(0x8c))/0xa*(-parseInt(_0x2593b8(0xd5))/0xb)+parseInt(_0x2593b8(0xc9))/0xc;if(_0xfe4475===_0x26dae8)break;else _0x1b37bc['push'](_0x1b37bc['shift']());}catch(_0x23639a){_0x1b37bc['push'](_0x1b37bc['shift']());}}}(a29_0x1b09,0x4a0ee));function a29_0x1b09(){const _0x50d7be=['isBrowserstackInfra','DjjmR','winstonLogger','../../../helpers/accessibility-automation/helper','capability','epafx','HttpClient','path','chromeOptions','url_','proxy_','firefoxOptions','../../../helpers/logger','se:ieOptions','dJwZR','2500101oOxqjV','ACWGf','2552zIiScj','3|2|0|4|5|1','getGlobal','157299tiLcDy','optimalHubUrl','Rwjqz','edgeOptions','moz:firefoxOptions','Modifying\x20webdriver\x20builder','browserStackLogLevel','caps_','26711YdXSCx','__setBrowserOptions','originalBuilder','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','edgeOptions_','IjvRc','XeZOH','proxySettings','getRequestOptions','78ikTrFO','agent_','ms:edgeOptions','isPacProxy','setLogLevel','capabilities_','isAccessibilityPlatform','Hmvsp','getAccessibilityResults','split','/session','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','HeBqc','send','hehPw','set','aCgaR','jxHgK','FclSz','overrideGet','JBHnH','proxyUrl','383280GDwizA','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','14qaskyw','../accessibility-automation/helper','FpbFv','quitCount_','oFhJP','options_','../../../helpers/globals','newHubUrl','object','requireSeleniumWebdriver','11NWnWns','Setting\x20Browserstack\x20capabilities','tDqGD','setGlobal','Proxy\x20set\x20to\x20','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','13885LIOYrw','/wd/hub','debug','mergeDeep','zpMpy','lPZJn','ieOptions_','./helpers/patchHelper','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','__driver','safariOptions_','getHttpAgent','safari.options','CAPABILITY_KEY','../../../bin/utils/constants','aStci','jOBUc','BaBEP','firefoxOptions_','10689ppvXgA','https://','storeOptimalHubUrl','__driversArray','ZEjaB','Hub\x20url\x20set\x20to\x20','TpFBL','BfIlo','browserstackAgentObservability','24YdNUXh','then','exports','global','build','../../../helpers/helper','getAccessibilityResultsSummary','forEach','New\x20hub\x20url\x20set\x20to\x20','chromeOptions_','iavMi','goog:chromeOptions','setCapabilities','__drivers','isUndefined','KnXtE','setServer','get','UNXZv','dWRWj','Builder','LWYev','5722460JrpAnr','error'];a29_0x1b09=function(){return _0x50d7be;};return a29_0x1b09();}function a29_0x6bd7(_0x52958f,_0x5c1f2f){const _0x1b0980=a29_0x1b09();return a29_0x6bd7=function(_0x6bd7d5,_0x24088b){_0x6bd7d5=_0x6bd7d5-0x89;let _0x10b281=_0x1b0980[_0x6bd7d5];return _0x10b281;},a29_0x6bd7(_0x52958f,_0x5c1f2f);}const logger=require(a29_0xc68e19(0x9a))[a29_0xc68e19(0x90)],helper=require(a29_0xc68e19(0xfc)),constants=require(a29_0xc68e19(0xe9)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a29_0xc68e19(0xcc)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0xc68e19(0x91)),globals=require(a29_0xc68e19(0xd1)),{overrideExecute}=require(a29_0xc68e19(0xe2)),modify=(_0x23f71f,_0x16d0f6=null,_0x1e8c85=![])=>{const _0x245d9e=a29_0xc68e19,_0x2ae487={'jOBUc':function(_0x3ca082,_0xf01b73){return _0x3ca082!==_0xf01b73;},'iavMi':_0x245d9e(0xbd),'mjEqe':function(_0x246eb4,_0x4099fe){return _0x246eb4!==_0x4099fe;},'KnXtE':function(_0x59a753,_0x47e5bd){return _0x59a753+_0x47e5bd;},'ZEjaB':_0x245d9e(0xef),'tDqGD':_0x245d9e(0xdc),'lPZJn':_0x245d9e(0x102),'UasMb':_0x245d9e(0x96),'xqMrG':_0x245d9e(0xb5),'CTiIL':_0x245d9e(0xa5),'BaBEP':_0x245d9e(0xa6),'oFhJP':_0x245d9e(0x99),'Hmvsp':_0x245d9e(0xe7),'epafx':_0x245d9e(0x9b),'UNXZv':'ieOptions','uDTlm':function(_0x2c89b9,_0x6ec365){return _0x2c89b9===_0x6ec365;},'ACWGf':_0x245d9e(0xd3),'RKyon':_0x245d9e(0xd6),'jxHgK':function(_0x5b7447,_0x30f0e0,_0x55e6d1){return _0x5b7447(_0x30f0e0,_0x55e6d1);},'OJFsc':function(_0x5ba731,_0x54b0fd,_0xbdd4d0){return _0x5ba731(_0x54b0fd,_0xbdd4d0);},'aStci':function(_0x5f40fd,_0x21cf7c){return _0x5f40fd(_0x21cf7c);},'dWRWj':function(_0x4c2672,_0x35cdde,_0x241052){return _0x4c2672(_0x35cdde,_0x241052);},'pvSak':function(_0x2855a9,_0x165591,_0x67ae62){return _0x2855a9(_0x165591,_0x67ae62);},'HeBqc':_0x245d9e(0xa3),'hehPw':_0x245d9e(0xca),'zpMpy':function(_0x1facdc,_0x3b27e3,_0x4a4a1d){return _0x1facdc(_0x3b27e3,_0x4a4a1d);},'BfIlo':_0x245d9e(0xa0),'qIXVb':_0x245d9e(0xad),'LWYev':function(_0x2a4749){return _0x2a4749();},'TpFBL':function(_0x45fb2a,_0x155577){return _0x45fb2a(_0x155577);},'dJwZR':_0x245d9e(0xb9),'ryIjg':function(_0x374fdf,_0x5828f1){return _0x374fdf(_0x5828f1);},'Rwjqz':_0x245d9e(0xe3),'FclSz':_0x245d9e(0xa7)},_0x59eb50=helper['requireHttpClient']();let _0x56fcc2;try{_0x56fcc2=helper[_0x245d9e(0xd4)](),_0x56fcc2[_0x245d9e(0xac)]&&(_0x56fcc2[_0x245d9e(0x8a)]=_0x56fcc2[_0x245d9e(0xac)]);}catch(_0x25e10e){return;}if(helper[_0x245d9e(0x8e)]()){const _0x4cff00={};_0x4cff00['logLevel']=_0x23f71f[_0x245d9e(0xa8)],helper[_0x245d9e(0xb7)](_0x4cff00,new Map(),new Map()),logger['info'](_0x2ae487[_0x245d9e(0xa4)]),logger[_0x245d9e(0xdd)](_0x2ae487[_0x245d9e(0xc5)]);}class _0x1347ae extends _0x59eb50[_0x245d9e(0x94)]{[_0x245d9e(0xc0)](_0x3c0aeb){const _0x46d7ff=_0x245d9e;if(_0x2ae487[_0x46d7ff(0xeb)](_0x3c0aeb[_0x46d7ff(0x95)],_0x2ae487[_0x46d7ff(0x101)])&&_0x2ae487['mjEqe'](global[_0x46d7ff(0xd2)],''))try{global['newHubUrl']=_0x2ae487[_0x46d7ff(0x106)](_0x2ae487[_0x46d7ff(0x106)](_0x2ae487[_0x46d7ff(0xf2)],global[_0x46d7ff(0xd2)]),_0x2ae487[_0x46d7ff(0xd7)]),this[_0x46d7ff(0xd0)]=hubAllocator[_0x46d7ff(0xb2)](global['newHubUrl']),logger[_0x46d7ff(0xdd)](_0x46d7ff(0xff)+global[_0x46d7ff(0xd2)]),global[_0x46d7ff(0xd2)]='';}catch(_0x50c974){logger[_0x46d7ff(0x8d)](_0x50c974);}return super['send'](_0x3c0aeb);}}class _0x21983b extends _0x56fcc2[_0x245d9e(0x8a)]{[_0x245d9e(0x107)](){const _0xe90d17=_0x245d9e;return this[_0xe90d17(0x97)]=helper['getHubUrl'](_0x23f71f),logger['debug'](_0xe90d17(0xf3)+this[_0xe90d17(0x97)]),this;}[_0x245d9e(0xab)](_0xe161c7){const _0x46ffa3=_0x245d9e;let _0x4b0504={};for(const _0x3f539c in _0xe161c7){switch(_0x3f539c){case _0x2ae487[_0x46ffa3(0xe0)]:case _0x2ae487['UasMb']:this[_0x46ffa3(0x100)]&&(_0x4b0504=this[_0x46ffa3(0x100)]['get'](this[_0x46ffa3(0x100)][_0x46ffa3(0xe8)])||{},this[_0x46ffa3(0x100)][_0x46ffa3(0xc2)](this[_0x46ffa3(0x100)]['CAPABILITY_KEY'],helper[_0x46ffa3(0xde)](_0x4b0504,_0xe161c7[_0x3f539c])));break;case _0x2ae487['xqMrG']:case _0x2ae487['CTiIL']:this[_0x46ffa3(0xae)]&&(_0x4b0504=this[_0x46ffa3(0xae)][_0x46ffa3(0x108)](this[_0x46ffa3(0xae)][_0x46ffa3(0xe8)])||{},this[_0x46ffa3(0xae)]['set'](this[_0x46ffa3(0xae)][_0x46ffa3(0xe8)],helper[_0x46ffa3(0xde)](_0x4b0504,_0xe161c7[_0x3f539c])));break;case _0x2ae487[_0x46ffa3(0xec)]:case _0x2ae487[_0x46ffa3(0xcf)]:this[_0x46ffa3(0xed)]&&(_0x4b0504=this[_0x46ffa3(0xed)][_0x46ffa3(0x108)](this['firefoxOptions_'][_0x46ffa3(0xe8)])||{},this[_0x46ffa3(0xed)][_0x46ffa3(0xc2)](this[_0x46ffa3(0xed)][_0x46ffa3(0xe8)],helper[_0x46ffa3(0xde)](_0x4b0504,_0xe161c7[_0x3f539c])));break;case _0x2ae487[_0x46ffa3(0xba)]:this[_0x46ffa3(0xe5)]&&(_0x4b0504=this[_0x46ffa3(0xe5)][_0x46ffa3(0x108)](this[_0x46ffa3(0xe5)]['CAPABILITY_KEY'])||{},this[_0x46ffa3(0xe5)]['set'](this[_0x46ffa3(0xe5)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x4b0504,_0xe161c7[_0x3f539c])));break;case _0x2ae487[_0x46ffa3(0x93)]:case _0x2ae487[_0x46ffa3(0x109)]:this['ieOptions_']&&(_0x4b0504=this['ieOptions_'][_0x46ffa3(0x108)](this[_0x46ffa3(0xe1)]['CAPABILITY_KEY'])||{},this[_0x46ffa3(0xe1)][_0x46ffa3(0xc2)](this[_0x46ffa3(0xe1)][_0x46ffa3(0xe8)],helper[_0x46ffa3(0xde)](_0x4b0504,_0xe161c7[_0x3f539c])));break;}}}[_0x245d9e(0x103)](){const _0x32a671=_0x245d9e,_0x41377e={'JBHnH':function(_0x310527,_0x8d83f7){return _0x2ae487['uDTlm'](_0x310527,_0x8d83f7);},'DjjmR':_0x2ae487[_0x32a671(0x9e)]};return logger[_0x32a671(0xdd)](_0x2ae487['RKyon']),this[_0x32a671(0xab)](_0x23f71f[_0x32a671(0x92)]),Object['keys'](_0x23f71f[_0x32a671(0x92)])[_0x32a671(0xfe)](_0x3d5df2=>{const _0x3e1fd6=_0x32a671,_0x5bcd43=this[_0x3e1fd6(0xb8)][_0x3e1fd6(0x108)](_0x3d5df2);_0x41377e[_0x3e1fd6(0xc7)](typeof _0x5bcd43,_0x41377e[_0x3e1fd6(0x8f)])?this[_0x3e1fd6(0xb8)]['set'](_0x3d5df2,helper[_0x3e1fd6(0xde)](_0x5bcd43,_0x23f71f['capability'][_0x3d5df2])):this[_0x3e1fd6(0xb8)][_0x3e1fd6(0xc2)](_0x3d5df2,_0x23f71f[_0x3e1fd6(0x92)][_0x3d5df2]);}),this;}['build'](){const _0xd87456=_0x245d9e,_0x1bd623={'IjvRc':_0x2ae487[_0xd87456(0xbf)],'aCgaR':_0x2ae487[_0xd87456(0xc1)],'bOpfw':function(_0x4a3aac,_0x3d7233,_0x2f00e9){const _0x18f7d2=_0xd87456;return _0x2ae487[_0x18f7d2(0xdf)](_0x4a3aac,_0x3d7233,_0x2f00e9);},'XeZOH':function(_0x423429,_0x5b5176,_0x5aeac0){return _0x2ae487['jxHgK'](_0x423429,_0x5b5176,_0x5aeac0);}};if(helper[_0xd87456(0x8e)]()){const _0x58ff6e=_0x2ae487[_0xd87456(0xf5)][_0xd87456(0xbc)]('|');let _0x42301e=0x0;while(!![]){switch(_0x58ff6e[_0x42301e++]){case'0':this[_0xd87456(0x103)]();continue;case'1':logger[_0xd87456(0xdd)](_0x2ae487['qIXVb']);continue;case'2':this[_0xd87456(0x107)]();continue;case'3':_0x2ae487[_0xd87456(0x8b)](isAccessibilityAutomationSession)&&_0x2ae487[_0xd87456(0xf4)](setAccessibilityCapabilities,_0x23f71f);continue;case'4':if(helper[_0xd87456(0xb6)](_0x23f71f[_0xd87456(0xb1)][_0xd87456(0xc8)]))this[_0xd87456(0xb4)]=helper[_0xd87456(0xe6)](_0x23f71f[_0xd87456(0xb1)][_0xd87456(0xc8)]);else _0x23f71f[_0xd87456(0xb1)][_0xd87456(0xc8)]&&(this[_0xd87456(0x98)]=_0x23f71f[_0xd87456(0xb1)]['proxyUrl'],logger[_0xd87456(0xdd)](_0xd87456(0xd9)+this[_0xd87456(0x98)]));continue;case'5':globals[_0xd87456(0xa1)](_0x2ae487[_0xd87456(0x9c)])&&(!_0x2ae487[_0xd87456(0xc4)](setExtension,this,_0x23f71f)&&globals[_0xd87456(0xd8)](_0x2ae487[_0xd87456(0x9c)],![]));continue;}break;}}const _0x2352eb=super[_0xd87456(0xfb)]();return _0x2352eb['session_'][_0xd87456(0xf8)](_0x3c4d2c=>{const _0x34dc0d=_0xd87456;try{const _0x3ad281=_0x3c4d2c[_0x34dc0d(0xa9)]['get'](_0x1bd623[_0x34dc0d(0xaf)]);_0x3ad281?(logger['debug'](_0x34dc0d(0xbe)+_0x3ad281),hubAllocator['updateHubUrl'](_0x3ad281),helper[_0x34dc0d(0xf0)](_0x3ad281)):logger[_0x34dc0d(0xdd)](_0x1bd623[_0x34dc0d(0xc3)]);}catch(_0x52d290){logger['debug'](_0x34dc0d(0xda)+_0x52d290);}}),_0x2352eb[_0xd87456(0xce)]=0x0,_0x2352eb[_0xd87456(0xf8)]&&_0x2352eb['then'](_0x2fc561=>{const _0x509efa=_0xd87456,_0x114d99={'FpbFv':function(_0xd6c16d,_0x17bff8,_0x4f352d){return _0x2ae487['jxHgK'](_0xd6c16d,_0x17bff8,_0x4f352d);}};_0x2ae487['OJFsc'](overrideQuit,_0x2fc561,_0x2352eb),_0x2ae487[_0x509efa(0xea)](overrideTakeScreenshot,_0x2fc561),helper[_0x509efa(0xc6)](_0x2fc561,_0x23f71f),_0x2ae487[_0x509efa(0x89)](overrideExecute,_0x2fc561,_0x23f71f),_0x2fc561['getAccessibilityResultsSummary']=async()=>{const _0x135e0a=_0x509efa;return await _0x114d99[_0x135e0a(0xcd)](getAccessibilityResultsSummary,_0x2fc561,global);},_0x2fc561[_0x509efa(0xbb)]=async()=>{return await _0x1bd623['bOpfw'](getAccessibilityResults,_0x2fc561,global);};}),_0x2352eb[_0xd87456(0xfd)]=async()=>{return await _0x2ae487['pvSak'](getAccessibilityResultsSummary,_0x2352eb,global);},_0x2352eb['getAccessibilityResults']=async()=>{const _0x3e10cb=_0xd87456;return await _0x1bd623[_0x3e10cb(0xb0)](getAccessibilityResults,_0x2352eb,global);},_0x2ae487['TpFBL'](overrideTakeScreenshot,_0x2352eb),_0x2ae487['ryIjg'](overrideQuit,_0x2352eb),helper[_0xd87456(0xc6)](_0x2352eb,_0x23f71f),_0x2ae487[_0xd87456(0x89)](overrideExecute,_0x2352eb,_0x23f71f),helper['isUndefined'](global[_0xd87456(0xf1)])&&(global[_0xd87456(0xf1)]=[]),helper[_0xd87456(0x105)](global[_0xd87456(0x104)])&&(global[_0xd87456(0x104)]=[]),global[_0xd87456(0xf1)]['push'](_0x2352eb),global[_0xd87456(0xe4)]=_0x2352eb,_0x2ae487[_0xd87456(0xeb)](global[_0xd87456(0x104)],undefined)&&global[_0xd87456(0x104)]['push'](_0x2352eb),_0x16d0f6&&helper[_0xd87456(0x105)](_0x16d0f6['global'][_0xd87456(0xf1)])&&(_0x16d0f6['global'][_0xd87456(0xf1)]=[]),_0x16d0f6&&_0x2ae487[_0xd87456(0xeb)](_0x16d0f6[_0xd87456(0xfa)][_0xd87456(0x104)],undefined)&&(_0x16d0f6[_0xd87456(0xfa)][_0xd87456(0x104)]['push'](_0x2352eb),_0x16d0f6[_0xd87456(0xfa)]['__driversArray']['push'](_0x2352eb)),_0x2352eb;}}return _0x56fcc2[_0x245d9e(0xac)]=_0x56fcc2[_0x245d9e(0x8a)],_0x56fcc2['Builder']=_0x21983b,_0x59eb50[_0x245d9e(0x94)]=_0x1347ae,_0x56fcc2;};module[a29_0xc68e19(0xf9)][a29_0xc68e19(0xf6)]=modify;
|
|
1
|
+
function a29_0x32d9(_0x3b5361,_0x54a3b5){const _0xae27f9=a29_0xae27();return a29_0x32d9=function(_0x32d9af,_0x2d93a5){_0x32d9af=_0x32d9af-0x102;let _0x22171c=_0xae27f9[_0x32d9af];return _0x22171c;},a29_0x32d9(_0x3b5361,_0x54a3b5);}const a29_0x2a1f73=a29_0x32d9;(function(_0x18bcdb,_0x1ec78e){const _0x54e208=a29_0x32d9,_0xb79c76=_0x18bcdb();while(!![]){try{const _0x348fcb=parseInt(_0x54e208(0x150))/0x1+parseInt(_0x54e208(0x148))/0x2+parseInt(_0x54e208(0x166))/0x3+parseInt(_0x54e208(0x15b))/0x4+-parseInt(_0x54e208(0x154))/0x5+parseInt(_0x54e208(0x135))/0x6*(parseInt(_0x54e208(0x127))/0x7)+parseInt(_0x54e208(0x147))/0x8*(-parseInt(_0x54e208(0x10f))/0x9);if(_0x348fcb===_0x1ec78e)break;else _0xb79c76['push'](_0xb79c76['shift']());}catch(_0x430a25){_0xb79c76['push'](_0xb79c76['shift']());}}}(a29_0xae27,0x462d2));const logger=require(a29_0x2a1f73(0x117))['winstonLogger'],helper=require(a29_0x2a1f73(0x113)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x2a1f73(0x16e)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x2a1f73(0x109)),{setAccessibilityCapabilities,setExtension}=require(a29_0x2a1f73(0x119)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x2a1f73(0x145)),globals=require(a29_0x2a1f73(0x14c)),{overrideExecute}=require(a29_0x2a1f73(0x129)),modify=(_0x2c96ac,_0x14f56a=null,_0x380819=![])=>{const _0x563375=a29_0x2a1f73,_0x325aa5={'eBoyl':function(_0x2485aa,_0x289b92){return _0x2485aa!==_0x289b92;},'MrYMw':'/session','vdXtJ':function(_0x356637,_0x56a140){return _0x356637!==_0x56a140;},'UFsmh':function(_0x583fc7,_0x48f59c){return _0x583fc7+_0x48f59c;},'eUoHl':_0x563375(0x15c),'XJPRx':_0x563375(0x11d),'hymco':'goog:chromeOptions','PYmUq':_0x563375(0x168),'sZTqx':_0x563375(0x158),'QleGr':_0x563375(0x162),'wLgQp':_0x563375(0x170),'quZWR':_0x563375(0x11b),'qWmny':_0x563375(0x167),'GZnzd':_0x563375(0x17c),'NFwME':_0x563375(0x13e),'xLuxN':function(_0x2bd77c,_0x5d3185){return _0x2bd77c===_0x5d3185;},'NNElB':'object','vucjl':_0x563375(0x176),'WgPHV':_0x563375(0x13b),'CFEiS':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','mnStF':function(_0x4d6584,_0x5d269d,_0x4599ce){return _0x4d6584(_0x5d269d,_0x4599ce);},'RMGWQ':function(_0x476e26,_0xe1df26,_0x78a2a5){return _0x476e26(_0xe1df26,_0x78a2a5);},'XMmGd':function(_0xe2c758,_0x349b59){return _0xe2c758(_0x349b59);},'aEYRp':function(_0x5e778d,_0x4d0b62,_0xf6ceb5){return _0x5e778d(_0x4d0b62,_0xf6ceb5);},'eqRfC':function(_0x418e44,_0x3e84ab,_0x4b43ff){return _0x418e44(_0x3e84ab,_0x4b43ff);},'ToaRk':_0x563375(0x152),'erVdB':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','hCWEg':function(_0x59fd71){return _0x59fd71();},'TqNTL':_0x563375(0x125),'elFcW':function(_0x2b03f9,_0x19de28){return _0x2b03f9!==_0x19de28;},'HYqpK':function(_0x308e3f,_0x3f0876){return _0x308e3f!==_0x3f0876;},'JDMFo':_0x563375(0x178),'CrQnz':_0x563375(0x122)},_0x2e0e13=helper[_0x563375(0x140)]();let _0x1c1cf6;try{_0x1c1cf6=helper[_0x563375(0x165)](),_0x1c1cf6[_0x563375(0x12d)]&&(_0x1c1cf6[_0x563375(0x11f)]=_0x1c1cf6[_0x563375(0x12d)]);}catch(_0x16224d){return;}if(helper[_0x563375(0x137)]()){const _0x3d0ab0={};_0x3d0ab0[_0x563375(0x10d)]=_0x2c96ac[_0x563375(0x175)],helper[_0x563375(0x153)](_0x3d0ab0,new Map(),new Map()),logger[_0x563375(0x15f)](_0x325aa5[_0x563375(0x120)]),logger[_0x563375(0x14a)](_0x325aa5['CrQnz']);}class _0x4a7fa4 extends _0x2e0e13[_0x563375(0x107)]{[_0x563375(0x123)](_0x3cc005){const _0x53ed67=_0x563375;if(_0x325aa5[_0x53ed67(0x156)](_0x3cc005[_0x53ed67(0x106)],_0x325aa5[_0x53ed67(0x14e)])&&_0x325aa5[_0x53ed67(0x114)](global[_0x53ed67(0x141)],''))try{global[_0x53ed67(0x141)]=_0x325aa5[_0x53ed67(0x169)](_0x325aa5[_0x53ed67(0x169)](_0x325aa5[_0x53ed67(0x142)],global[_0x53ed67(0x141)]),_0x325aa5[_0x53ed67(0x103)]),this[_0x53ed67(0x146)]=hubAllocator[_0x53ed67(0x16a)](global[_0x53ed67(0x141)]),logger[_0x53ed67(0x14a)]('New\x20hub\x20url\x20set\x20to\x20'+global[_0x53ed67(0x141)]),global[_0x53ed67(0x141)]='';}catch(_0x11f0ed){logger[_0x53ed67(0x14f)](_0x11f0ed);}return super[_0x53ed67(0x123)](_0x3cc005);}}class _0x1d9f68 extends _0x1c1cf6[_0x563375(0x11f)]{['setServer'](){const _0x51056d=_0x563375;return this[_0x51056d(0x160)]=helper[_0x51056d(0x16d)](_0x2c96ac),logger[_0x51056d(0x14a)](_0x51056d(0x12f)+this['url_']),this;}[_0x563375(0x138)](_0x14c047){const _0x10fdcf=_0x563375;let _0x5a27f0={};for(const _0xef003 in _0x14c047){switch(_0xef003){case _0x325aa5[_0x10fdcf(0x10b)]:case _0x325aa5[_0x10fdcf(0x12e)]:this['chromeOptions_']&&(_0x5a27f0=this[_0x10fdcf(0x126)]['get'](this['chromeOptions_'][_0x10fdcf(0x10a)])||{},this[_0x10fdcf(0x126)]['set'](this['chromeOptions_'][_0x10fdcf(0x10a)],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;case _0x325aa5[_0x10fdcf(0x10e)]:case _0x325aa5[_0x10fdcf(0x10c)]:this['edgeOptions_']&&(_0x5a27f0=this[_0x10fdcf(0x11c)]['get'](this[_0x10fdcf(0x11c)][_0x10fdcf(0x10a)])||{},this[_0x10fdcf(0x11c)][_0x10fdcf(0x118)](this[_0x10fdcf(0x11c)][_0x10fdcf(0x10a)],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;case _0x325aa5['wLgQp']:case _0x325aa5['quZWR']:this[_0x10fdcf(0x16c)]&&(_0x5a27f0=this[_0x10fdcf(0x16c)][_0x10fdcf(0x134)](this['firefoxOptions_'][_0x10fdcf(0x10a)])||{},this[_0x10fdcf(0x16c)][_0x10fdcf(0x118)](this[_0x10fdcf(0x16c)]['CAPABILITY_KEY'],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;case _0x325aa5['qWmny']:this[_0x10fdcf(0x112)]&&(_0x5a27f0=this[_0x10fdcf(0x112)][_0x10fdcf(0x134)](this['safariOptions_'][_0x10fdcf(0x10a)])||{},this['safariOptions_']['set'](this['safariOptions_'][_0x10fdcf(0x10a)],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;case _0x325aa5['GZnzd']:case _0x325aa5[_0x10fdcf(0x163)]:this[_0x10fdcf(0x124)]&&(_0x5a27f0=this['ieOptions_'][_0x10fdcf(0x134)](this[_0x10fdcf(0x124)][_0x10fdcf(0x10a)])||{},this['ieOptions_']['set'](this['ieOptions_'][_0x10fdcf(0x10a)],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;}}}['setCapabilities'](){const _0x28fb08=_0x563375,_0x258f1e={'UhSaG':function(_0x11a161,_0x2b46f9){const _0x50d2d8=a29_0x32d9;return _0x325aa5[_0x50d2d8(0x128)](_0x11a161,_0x2b46f9);},'QyCvU':_0x325aa5[_0x28fb08(0x110)]};return logger[_0x28fb08(0x14a)](_0x325aa5[_0x28fb08(0x171)]),this['__setBrowserOptions'](_0x2c96ac[_0x28fb08(0x12a)]),Object[_0x28fb08(0x11a)](_0x2c96ac['capability'])[_0x28fb08(0x121)](_0x5441a0=>{const _0x2145e6=_0x28fb08,_0x53e430=this[_0x2145e6(0x13a)]['get'](_0x5441a0);_0x258f1e[_0x2145e6(0x15a)](typeof _0x53e430,_0x258f1e[_0x2145e6(0x104)])?this[_0x2145e6(0x13a)]['set'](_0x5441a0,helper['mergeDeep'](_0x53e430,_0x2c96ac[_0x2145e6(0x12a)][_0x5441a0])):this[_0x2145e6(0x13a)][_0x2145e6(0x118)](_0x5441a0,_0x2c96ac[_0x2145e6(0x12a)][_0x5441a0]);}),this;}['build'](){const _0x5ca46c=_0x563375,_0x2ff4b0={'GymPC':function(_0x51de4c,_0x3cb0ee,_0x34c270){const _0x2e01cf=a29_0x32d9;return _0x325aa5[_0x2e01cf(0x139)](_0x51de4c,_0x3cb0ee,_0x34c270);},'iOGoi':function(_0x331922,_0x2b852e,_0x5b0cef){const _0xadcce1=a29_0x32d9;return _0x325aa5[_0xadcce1(0x133)](_0x331922,_0x2b852e,_0x5b0cef);}};if(helper[_0x5ca46c(0x137)]()){const _0x3ef281=_0x325aa5[_0x5ca46c(0x12b)]['split']('|');let _0x4feb8d=0x0;while(!![]){switch(_0x3ef281[_0x4feb8d++]){case'0':logger[_0x5ca46c(0x14a)](_0x325aa5[_0x5ca46c(0x105)]);continue;case'1':if(helper['isPacProxy'](_0x2c96ac['proxySettings'][_0x5ca46c(0x111)]))this[_0x5ca46c(0x13c)]=helper[_0x5ca46c(0x144)](_0x2c96ac[_0x5ca46c(0x173)]['proxyUrl']);else _0x2c96ac[_0x5ca46c(0x173)][_0x5ca46c(0x111)]&&(this[_0x5ca46c(0x174)]=_0x2c96ac[_0x5ca46c(0x173)][_0x5ca46c(0x111)],logger[_0x5ca46c(0x14a)](_0x5ca46c(0x13d)+this[_0x5ca46c(0x174)]));continue;case'2':this[_0x5ca46c(0x12c)]();continue;case'3':_0x325aa5[_0x5ca46c(0x159)](isAccessibilityAutomationSession)&&_0x325aa5[_0x5ca46c(0x143)](setAccessibilityCapabilities,_0x2c96ac);continue;case'4':globals['getGlobal'](_0x325aa5['TqNTL'])&&(!_0x325aa5[_0x5ca46c(0x139)](setExtension,this,_0x2c96ac)&&globals[_0x5ca46c(0x131)](_0x325aa5[_0x5ca46c(0x15d)],![]));continue;case'5':this[_0x5ca46c(0x155)]();continue;}break;}}const _0x3b382a=super['build']();return _0x3b382a[_0x5ca46c(0x161)]['then'](_0x175f5a=>{const _0x412669=_0x5ca46c;try{const _0x4deea8=_0x175f5a['caps_'][_0x412669(0x134)](_0x325aa5[_0x412669(0x149)]);_0x4deea8?(logger[_0x412669(0x14a)](_0x412669(0x14b)+_0x4deea8),hubAllocator[_0x412669(0x16b)](_0x4deea8),helper['storeOptimalHubUrl'](_0x4deea8)):logger[_0x412669(0x14a)](_0x325aa5[_0x412669(0x164)]);}catch(_0x3e4e73){logger['debug'](_0x412669(0x132)+_0x3e4e73);}}),_0x3b382a['quitCount_']=0x0,_0x3b382a['then']&&_0x3b382a[_0x5ca46c(0x16f)](_0x328bd5=>{const _0x4db40b=_0x5ca46c,_0x262d1f={'NZrVL':function(_0x2dc607,_0x4fb8d1,_0x34fd75){return _0x325aa5['mnStF'](_0x2dc607,_0x4fb8d1,_0x34fd75);}};_0x325aa5[_0x4db40b(0x115)](overrideQuit,_0x328bd5,_0x3b382a),_0x325aa5[_0x4db40b(0x143)](overrideTakeScreenshot,_0x328bd5),helper[_0x4db40b(0x177)](_0x328bd5,_0x2c96ac),_0x325aa5[_0x4db40b(0x139)](overrideExecute,_0x328bd5,_0x2c96ac),_0x328bd5['getAccessibilityResultsSummary']=async()=>{const _0x464dd2=_0x4db40b;return await _0x262d1f[_0x464dd2(0x17a)](getAccessibilityResultsSummary,_0x328bd5,global);},_0x328bd5[_0x4db40b(0x172)]=async()=>{return await _0x2ff4b0['GymPC'](getAccessibilityResults,_0x328bd5,global);};}),_0x3b382a[_0x5ca46c(0x151)]=async()=>{return await _0x2ff4b0['GymPC'](getAccessibilityResultsSummary,_0x3b382a,global);},_0x3b382a[_0x5ca46c(0x172)]=async()=>{const _0x32d93f=_0x5ca46c;return await _0x2ff4b0[_0x32d93f(0x116)](getAccessibilityResults,_0x3b382a,global);},_0x325aa5[_0x5ca46c(0x143)](overrideTakeScreenshot,_0x3b382a),_0x325aa5[_0x5ca46c(0x143)](overrideQuit,_0x3b382a),helper[_0x5ca46c(0x177)](_0x3b382a,_0x2c96ac),_0x325aa5['aEYRp'](overrideExecute,_0x3b382a,_0x2c96ac),helper[_0x5ca46c(0x15e)](global['__driversArray'])&&(global[_0x5ca46c(0x17b)]=[]),helper[_0x5ca46c(0x15e)](global['__drivers'])&&(global['__drivers']=[]),global['__driversArray']['push'](_0x3b382a),global[_0x5ca46c(0x179)]=_0x3b382a,_0x325aa5[_0x5ca46c(0x11e)](global['__drivers'],undefined)&&global[_0x5ca46c(0x14d)]['push'](_0x3b382a),_0x14f56a&&helper[_0x5ca46c(0x15e)](_0x14f56a[_0x5ca46c(0x157)][_0x5ca46c(0x17b)])&&(_0x14f56a['global']['__driversArray']=[]),_0x14f56a&&_0x325aa5[_0x5ca46c(0x13f)](_0x14f56a[_0x5ca46c(0x157)]['__drivers'],undefined)&&(_0x14f56a[_0x5ca46c(0x157)][_0x5ca46c(0x14d)][_0x5ca46c(0x136)](_0x3b382a),_0x14f56a['global'][_0x5ca46c(0x17b)][_0x5ca46c(0x136)](_0x3b382a)),_0x3b382a;}}return _0x1c1cf6['originalBuilder']=_0x1c1cf6[_0x563375(0x11f)],_0x1c1cf6[_0x563375(0x11f)]=_0x1d9f68,_0x2e0e13[_0x563375(0x107)]=_0x4a7fa4,_0x1c1cf6;};module[a29_0x2a1f73(0x130)][a29_0x2a1f73(0x102)]=modify;function a29_0xae27(){const _0x31c475=['QyCvU','erVdB','path','HttpClient','mergeDeep','../../../helpers/patchHelpers','CAPABILITY_KEY','hymco','QleGr','logLevel','sZTqx','153pXnaVT','NNElB','proxyUrl','safariOptions_','../../../helpers/helper','vdXtJ','RMGWQ','iOGoi','../../../helpers/logger','set','../accessibility-automation/helper','keys','firefoxOptions','edgeOptions_','/wd/hub','elFcW','Builder','JDMFo','forEach','Modifying\x20webdriver\x20builder','send','ieOptions_','isAccessibilityPlatform','chromeOptions_','77OOrPEO','xLuxN','./helpers/patchHelper','capability','ToaRk','setServer','originalBuilder','PYmUq','Hub\x20url\x20set\x20to\x20','exports','setGlobal','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','eqRfC','get','163236PAbGIQ','push','isBrowserstackInfra','__setBrowserOptions','aEYRp','capabilities_','optimalHubUrl','agent_','Proxy\x20set\x20to\x20','ieOptions','HYqpK','requireHttpClient','newHubUrl','eUoHl','XMmGd','getHttpAgent','../../../helpers/accessibility-automation/helper','options_','605088MQalLl','1052604CACrwa','WgPHV','debug','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','../../../helpers/globals','__drivers','MrYMw','error','463344WqYpFQ','getAccessibilityResultsSummary','3|2|5|1|4|0','setLogLevel','984550wHjgap','setCapabilities','eBoyl','global','ms:edgeOptions','hCWEg','UhSaG','544912IzGLiH','https://','TqNTL','isUndefined','info','url_','session_','edgeOptions','NFwME','CFEiS','requireSeleniumWebdriver','1035072GlSAKO','safari.options','chromeOptions','UFsmh','getRequestOptions','updateHubUrl','firefoxOptions_','getHubUrl','../../../hubAllocationMethods','then','moz:firefoxOptions','vucjl','getAccessibilityResults','proxySettings','proxy_','browserStackLogLevel','Setting\x20Browserstack\x20capabilities','overrideGet','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','__driver','NZrVL','__driversArray','se:ieOptions','browserstackAgentObservability','XJPRx'];a29_0xae27=function(){return _0x31c475;};return a29_0xae27();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x2362b=a30_0x4b55;function a30_0x4b55(_0x3bc7ba,_0x3ea056){const _0x4f3b2d=a30_0x4f3b();return a30_0x4b55=function(_0x4b554f,_0x475b24){_0x4b554f=_0x4b554f-0xc5;let _0x2d2a0e=_0x4f3b2d[_0x4b554f];return _0x2d2a0e;},a30_0x4b55(_0x3bc7ba,_0x3ea056);}function a30_0x4f3b(){const _0x457ae7=['684444jHhaHN','632510eetxgy','180MhgmjB','restore','vikxc','3651396fOhqhk','5753655mONyDM','20hPdYXh','440DjAqAc','../../../helpers/request-spy','../../../bin/utils/constants','154zccxcf','30079njDJpP','712185DXIAYp','mochaHooks','2543ZDLSXJ'];a30_0x4f3b=function(){return _0x457ae7;};return a30_0x4f3b();}(function(_0x5368eb,_0x19eb06){const _0x3320e8=a30_0x4b55,_0x5edb7c=_0x5368eb();while(!![]){try{const _0x534230=parseInt(_0x3320e8(0xd0))/0x1*(parseInt(_0x3320e8(0xd3))/0x2)+-parseInt(_0x3320e8(0xce))/0x3+parseInt(_0x3320e8(0xc6))/0x4+parseInt(_0x3320e8(0xc8))/0x5*(-parseInt(_0x3320e8(0xd1))/0x6)+parseInt(_0x3320e8(0xcd))/0x7*(-parseInt(_0x3320e8(0xc9))/0x8)+-parseInt(_0x3320e8(0xc7))/0x9+-parseInt(_0x3320e8(0xd2))/0xa*(-parseInt(_0x3320e8(0xcc))/0xb);if(_0x534230===_0x19eb06)break;else _0x5edb7c['push'](_0x5edb7c['shift']());}catch(_0x38df47){_0x5edb7c['push'](_0x5edb7c['shift']());}}}(a30_0x4f3b,0x6fcb8));const requestSpy=require(a30_0x2362b(0xca)),constants=require(a30_0x2362b(0xcb)),{addRequestSpy}=require('../../../helpers/test-observability/utils');exports[a30_0x2362b(0xcf)]={'beforeAll'(){const _0x393cd5=a30_0x2362b,_0x461911={'vikxc':function(_0x49a116){return _0x49a116();}},_0x2f896d='browserstack internal helper hook';_0x461911[_0x393cd5(0xc5)](addRequestSpy);},'afterAll'(){const _0x161af2=a30_0x2362b,_0x203d90='browserstack internal helper hook';this['timeout'](0xea60),requestSpy[_0x161af2(0xd4)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a31_0x13e9(_0x27e54f,_0x11a453){const _0x2ebe78=a31_0x2ebe();return a31_0x13e9=function(_0x13e9a1,_0x2fb6e3){_0x13e9a1=_0x13e9a1-0xc5;let _0x481b7a=_0x2ebe78[_0x13e9a1];return _0x481b7a;},a31_0x13e9(_0x27e54f,_0x11a453);}function a31_0x2ebe(){const _0x269911=['91yQDfvs','string','failed','CbPbI','pid','bEEwJ','uuid','yKhoK','UDQmO','LoRXp','js-','../../../helpers/test-observability/utils','pending','slice','JpKhr','322744qFysmk','4032430fPDEeG','getHookSkippedTests','markedStatus','fromEntries','nYSkc','TAcnd','QxqWb','625634Zvkwvd','generic','ZIOPB','getBrowserName','KkEDq','751107AxxVOF','vTLrO','hvODL','SwTbO','__cloud_provider___','mMpgr','CqnCg','hook:','sendPlatformDetails','split','TEST_PLATFORM','_beforeEach','243665WixriO','sWaVm','parent','forEach','gFkMH','concat','5LUOtKo','getBrowserVersion','getSession','getCapabilities','Bhlaj','../../../../package.json','reduce','EFBwu','eHfLD','getHookDetails','suites','filter','cLuub','indexOf','state','171486njPtgF','hook','ELcEt','../../../helpers/helper','22fALaZf','CwkBJ','XHtnu','../../utils/logPatcher','hookAnalyticsId','79736BPapph','UwfnU','../../../helpers/testhub/utils','getHooksForTest','passed','GKkhp','Ohzxm','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','_beforeAll','tests','YvTlJ','type','getTestEnv','cVPGK','bs:addPlatformDetails:','bUToJ','mapTestHooks','toJSON','unknown_grid','push','36ZMWCGD','substring','_afterAll','Enorh','emit'];a31_0x2ebe=function(){return _0x269911;};return a31_0x2ebe();}const a31_0x190ebf=a31_0x13e9;(function(_0x486300,_0x4e2ef3){const _0x4fa23c=a31_0x13e9,_0x2618dc=_0x486300();while(!![]){try{const _0x284cc7=-parseInt(_0x4fa23c(0x10a))/0x1+parseInt(_0x4fa23c(0xf9))/0x2+-parseInt(_0x4fa23c(0xfe))/0x3+-parseInt(_0x4fa23c(0xf1))/0x4*(parseInt(_0x4fa23c(0x110))/0x5)+parseInt(_0x4fa23c(0x11f))/0x6*(-parseInt(_0x4fa23c(0xe2))/0x7)+parseInt(_0x4fa23c(0xc9))/0x8*(parseInt(_0x4fa23c(0xdd))/0x9)+-parseInt(_0x4fa23c(0xf2))/0xa*(-parseInt(_0x4fa23c(0x123))/0xb);if(_0x284cc7===_0x4e2ef3)break;else _0x2618dc['push'](_0x2618dc['shift']());}catch(_0x14c135){_0x2618dc['push'](_0x2618dc['shift']());}}}(a31_0x2ebe,0x33fa2));const {v4:uuidv4}=require(a31_0x190ebf(0xe8)),{name,version}=require(a31_0x190ebf(0x115)),logPatcher=require(a31_0x190ebf(0xc7)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x190ebf(0xed)),{consoleHolder}=require('../../../helpers/test-observability/constants'),{getPlatformVersion}=require(a31_0x190ebf(0x122)),{shouldProcessEventForTesthub}=require(a31_0x190ebf(0xcb));console={},Object['keys'](consoleHolder)[a31_0x190ebf(0x10d)](_0x20a13b=>{console[_0x20a13b]=(..._0x268b48)=>{BSTestOpsPatcher[_0x20a13b](..._0x268b48);};}),exports[a31_0x190ebf(0xd5)]=()=>{const _0x31991a=a31_0x190ebf,_0x197f88={'jiyjm':_0x31991a(0xfa),'bUToJ':function(_0x15ba8d){return _0x15ba8d();}};return{'ci':_0x197f88['jiyjm'],'key':_0x197f88[_0x31991a(0xd8)](uuidv4),'version':version,'collector':_0x31991a(0xec)+name};},exports[a31_0x190ebf(0x119)]=_0x479256=>{const _0x5de29f=a31_0x190ebf,_0x5d5b28={};_0x5d5b28[_0x5de29f(0xfb)]=function(_0x55b2d5,_0x56f25f){return _0x55b2d5!==_0x56f25f;},_0x5d5b28[_0x5de29f(0xd6)]=_0x5de29f(0xe3),_0x5d5b28[_0x5de29f(0xea)]=function(_0x51945d,_0x4176ec){return _0x51945d!==_0x4176ec;},_0x5d5b28[_0x5de29f(0xce)]=_0x5de29f(0x105),_0x5d5b28[_0x5de29f(0xf8)]=function(_0x1afb0f,_0x1c349a){return _0x1afb0f!==_0x1c349a;},_0x5d5b28[_0x5de29f(0x11c)]='hook';const _0x2ac7d6=_0x5d5b28;if(!_0x479256||_0x2ac7d6['ZIOPB'](typeof _0x479256,_0x2ac7d6['cVPGK']))return[null,null];if(_0x2ac7d6[_0x5de29f(0xea)](_0x479256[_0x5de29f(0x11d)](_0x2ac7d6['GKkhp']),-0x1)){const _0x408f3f=_0x479256[_0x5de29f(0x107)](_0x2ac7d6[_0x5de29f(0xce)]);return[_0x408f3f[0x0][_0x5de29f(0xef)](0x0,-0x1)[_0x5de29f(0x107)]('\x22')[0x1],_0x408f3f[0x1][_0x5de29f(0xde)](0x1)];}else{if(_0x2ac7d6[_0x5de29f(0xf8)](_0x479256['indexOf'](_0x2ac7d6[_0x5de29f(0x11c)]),-0x1)){const _0x3bc81f=_0x479256[_0x5de29f(0x107)](_0x2ac7d6[_0x5de29f(0x11c)]);return[_0x3bc81f[0x0]['slice'](0x0,-0x1)[_0x5de29f(0x107)]('\x22')[0x1],_0x479256];}}return[null,null];},exports[a31_0x190ebf(0xcc)]=_0x159019=>{const _0x5bccf5=a31_0x190ebf,_0xad0e5d={'hvODL':function(_0x445f47,_0x58b200){return _0x445f47(_0x58b200);},'sWaVm':_0x5bccf5(0xd1),'YvTlJ':'_afterAll','mMpgr':_0x5bccf5(0x109),'Ohzxm':'_afterEach'};if(!_0x159019||!_0x159019[_0x5bccf5(0x10c)])return[];const _0xb72dff=[];return[_0xad0e5d[_0x5bccf5(0x10b)],_0xad0e5d[_0x5bccf5(0xd3)],_0xad0e5d[_0x5bccf5(0x103)],_0xad0e5d[_0x5bccf5(0xcf)]][_0x5bccf5(0x10d)](_0x3b97cd=>{const _0x58b245=_0x5bccf5,_0x4c3b99=_0x159019['parent'][_0x3b97cd]||[];_0x4c3b99[_0x58b245(0x10d)](_0x12e4e2=>{const _0x314b53=_0x58b245;_0x12e4e2[_0x314b53(0xc8)]&&!_0xad0e5d[_0x314b53(0x100)](isInternalHook,_0x12e4e2['fn'])&&_0xb72dff[_0x314b53(0xdc)](_0x12e4e2['hookAnalyticsId']);});}),[..._0xb72dff,...exports[_0x5bccf5(0xcc)](_0x159019[_0x5bccf5(0x10c)])];},exports[a31_0x190ebf(0xd9)]=_0x21b688=>{const _0x3f42ea=a31_0x190ebf,_0x1bfdcf={'bEEwJ':function(_0x50a341){return _0x50a341();},'XHtnu':function(_0x2d8637,_0x584e97){return _0x2d8637===_0x584e97;},'JpKhr':'_afterEach','ELcEt':_0x3f42ea(0xd1),'TAcnd':_0x3f42ea(0xdf),'SwTbO':_0x3f42ea(0x109)};if(!_0x21b688||!_0x21b688[_0x3f42ea(0x10c)])return;[_0x1bfdcf[_0x3f42ea(0x121)],_0x1bfdcf[_0x3f42ea(0xf7)],_0x1bfdcf[_0x3f42ea(0x101)],_0x1bfdcf[_0x3f42ea(0xf0)]]['forEach'](_0x1c35c0=>{const _0x1c9e19=_0x3f42ea,_0x3cf346={'EFBwu':function(_0x584c71){const _0xa74410=a31_0x13e9;return _0x1bfdcf[_0xa74410(0xe7)](_0x584c71);},'vTLrO':function(_0x5c4655,_0x4caf3a){const _0x484ba7=a31_0x13e9;return _0x1bfdcf[_0x484ba7(0xc6)](_0x5c4655,_0x4caf3a);},'qGDIY':_0x1bfdcf[_0x1c9e19(0xf0)],'KkEDq':function(_0x5be163){const _0x58dfa0=_0x1c9e19;return _0x1bfdcf[_0x58dfa0(0xe7)](_0x5be163);}},_0x105b97=_0x21b688[_0x1c9e19(0x10c)][_0x1c35c0]||[];_0x105b97['forEach'](_0x316a6e=>{const _0x22fbb7=_0x1c9e19;if(!_0x316a6e[_0x22fbb7(0xc8)])_0x316a6e['hookAnalyticsId']=_0x3cf346[_0x22fbb7(0x117)](uuidv4);else _0x316a6e[_0x22fbb7(0xf4)]&&_0x3cf346[_0x22fbb7(0xff)](_0x1c35c0,_0x3cf346['qGDIY'])&&(_0x316a6e[_0x22fbb7(0xc8)]=_0x3cf346[_0x22fbb7(0xfd)](uuidv4),delete _0x316a6e[_0x22fbb7(0xf4)]);});}),exports[_0x3f42ea(0xd9)](_0x21b688[_0x3f42ea(0x10c)]);},exports[a31_0x190ebf(0x106)]=async(_0x3e774a,_0x11de18)=>{const _0x57e8d1=a31_0x190ebf,_0x521bed={'CbPbI':function(_0x379641){return _0x379641();},'LoRXp':function(_0x4f0c8f,_0x44e41a){return _0x4f0c8f(_0x44e41a);},'yKhoK':function(_0x352d9c,_0x545de0){return _0x352d9c===_0x545de0;},'CqnCg':'browserstack','eHfLD':_0x57e8d1(0xdb),'nYSkc':_0x57e8d1(0x108)};try{if(!_0x521bed[_0x57e8d1(0xe5)](shouldProcessEventForTesthub))return;const _0x3fc44f=await _0x3e774a['getCapabilities'](),_0x1d76f1=await _0x3e774a[_0x57e8d1(0x112)](),_0x312495={},_0x3ac1fa=Object[_0x57e8d1(0xf5)](_0x1d76f1[_0x57e8d1(0x113)]()['map_']),_0x43354d={'product':_0x521bed[_0x57e8d1(0xeb)](getObservabilityLinkedProductName,_0x3ac1fa),'capabilities':_0x3ac1fa,'platform':_0x3fc44f['getPlatform'](),'platform_version':_0x521bed[_0x57e8d1(0xeb)](getPlatformVersion,_0x521bed[_0x57e8d1(0xe9)](global[_0x57e8d1(0x102)],_0x521bed[_0x57e8d1(0x104)])),'browser':_0x3fc44f[_0x57e8d1(0xfc)](),'browser_version':_0x3fc44f[_0x57e8d1(0x111)](),'session_id':_0x1d76f1[_0x57e8d1(0xda)]()};global[_0x57e8d1(0x102)]?_0x312495[global['__cloud_provider___']]=_0x43354d:_0x312495[_0x521bed[_0x57e8d1(0x118)]]=_0x43354d,process[_0x57e8d1(0xe1)](_0x57e8d1(0xd7)+process[_0x57e8d1(0xe6)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x521bed[_0x57e8d1(0xf6)],'http_response':_0x312495,'uuid':_0x11de18});}catch(_0xf6791a){_0x521bed[_0x57e8d1(0xeb)](debug,_0x57e8d1(0xd0)+_0xf6791a);}},exports[a31_0x190ebf(0xf3)]=_0x51675f=>{const _0x5d99a4=a31_0x190ebf,_0x54c06a={};_0x54c06a[_0x5d99a4(0x114)]=function(_0x359871,_0x412ff6){return _0x359871!==_0x412ff6;},_0x54c06a[_0x5d99a4(0xc5)]=_0x5d99a4(0x120),_0x54c06a['UwfnU']=function(_0x3f215e,_0x2713dd){return _0x3f215e!==_0x2713dd;},_0x54c06a[_0x5d99a4(0x10e)]=_0x5d99a4(0xcd),_0x54c06a[_0x5d99a4(0xe0)]=_0x5d99a4(0xe4);const _0x5116a1=_0x54c06a,_0xd0c86a=_0x51675f[_0x5d99a4(0x11a)][_0x5d99a4(0x116)]((_0x281066,_0x526175)=>{const _0x585512=_0x5d99a4,_0x4efe82=exports[_0x585512(0xf3)](_0x526175);return _0x4efe82&&(_0x281066=_0x281066[_0x585512(0x10f)](_0x4efe82)),_0x281066;},[]),_0x207f95=_0x51675f[_0x5d99a4(0xd2)][_0x5d99a4(0x11b)](_0x3661ee=>{const _0x54136a=_0x5d99a4,_0x5849f1=_0x5116a1[_0x54136a(0x114)](_0x3661ee[_0x54136a(0xd4)],_0x5116a1[_0x54136a(0xc5)])&&!_0x3661ee[_0x54136a(0xf4)]&&_0x5116a1[_0x54136a(0xca)](_0x3661ee[_0x54136a(0x11e)],_0x5116a1[_0x54136a(0x10e)])&&_0x5116a1[_0x54136a(0xca)](_0x3661ee[_0x54136a(0x11e)],_0x5116a1[_0x54136a(0xe0)])&&!_0x3661ee[_0x54136a(0xee)];return _0x5849f1;});return _0x207f95[_0x5d99a4(0x10f)](_0xd0c86a);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x23a0(_0x5c547e,_0x4be824){const _0x13a93c=a32_0x13a9();return a32_0x23a0=function(_0x23a0eb,_0xcb227){_0x23a0eb=_0x23a0eb-0x197;let _0x450343=_0x13a93c[_0x23a0eb];return _0x450343;},a32_0x23a0(_0x5c547e,_0x4be824);}const a32_0x229932=a32_0x23a0;function a32_0x13a9(){const _0x657e7b=['VQTGW','__error_messages__','session_','app','stringify','vhqrj','SRGwE','Passed','vakdM','fPQyl','../../helpers/accessibility-automation/scripts','Automate\x20test\x20case\x20execution\x20has\x20started.','appium:app','15VRmJYA','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','thTestRunUuid','util','4vQcMhj','http:','browserstackSessionName','../../helpers/globals','81152PKzkhN','../../helpers/testhub/utils','getCurrentUrl','timeout','BROWSERSTACK_TESTHUB_UUID','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','ENV_VAR','PuEVy','okrVi','70088uwOFVv','TquQY','isAccessibilityPlatform','aubMP','../../helpers/performance-tester','../../helpers/logger','jtbXd','join','GTpXA','GzzHA','6939273QSuyRb','iIPHK','percy','executeAsyncScript','GLkGm','ObservabilitySync:','bstackA11yShouldScan','accessibilityScanStarted','shouldScanTestForAccessibility','format','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','failed','20hLNTmz','NjOee','err','shift','now','YKCau','../../helpers/helper','SGHgB','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','SywWu','driverCleanup','then','isArray','executeScript','titlePath','Failed:\x20','HAOij','SBDRQ','thBuildUuid','state','mJHNg','quitCount_','length','info','debug','boCNH','getGlobal','Performing\x20scan\x20before\x20saving\x20results','4159704xgJFjF','505086CmdJtl','percyCaptureMode','HGlXu','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','.\x20Error\x20:','guGle','Failed\x20to\x20store\x20session\x20name:\x20','winstonLogger','testcase','maPhz','35jdFkKE','WEGmt','EvYmB','sessionNameSet__','KdyiS','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','initQuit','testAnalyticsId','hvENa','performScan','../../helpers/accessibility-automation/helper','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','qVypX','setGlobal','passed','protocol','yFZba','saveTestResults','TVwOO','924456sgjAQM','error','capabilities','env','__drivers','CuWlp','3381804qkYajq','VERfe','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','\x22}}','stopMonitoring','__sessionFailed','currentTest','message','iERFp','usCgf'];a32_0x13a9=function(){return _0x657e7b;};return a32_0x13a9();}(function(_0x250291,_0x2e97b2){const _0x23afc5=a32_0x23a0,_0x371b56=_0x250291();while(!![]){try{const _0x306b0a=parseInt(_0x23afc5(0x1f6))/0x1*(-parseInt(_0x23afc5(0x1fa))/0x2)+-parseInt(_0x23afc5(0x1d5))/0x3+-parseInt(_0x23afc5(0x203))/0x4*(parseInt(_0x23afc5(0x1f2))/0x5)+-parseInt(_0x23afc5(0x1b8))/0x6*(-parseInt(_0x23afc5(0x1c2))/0x7)+-parseInt(_0x23afc5(0x1b7))/0x8+-parseInt(_0x23afc5(0x1db))/0x9+-parseInt(_0x23afc5(0x19b))/0xa*(-parseInt(_0x23afc5(0x20d))/0xb);if(_0x306b0a===_0x2e97b2)break;else _0x371b56['push'](_0x371b56['shift']());}catch(_0x4af40e){_0x371b56['push'](_0x371b56['shift']());}}}(a32_0x13a9,0x406aa));const util=require(a32_0x229932(0x1f5)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x229932(0x1cc)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a32_0x229932(0x1a1)),PerformanceTester=require(a32_0x229932(0x207)),scripts=require(a32_0x229932(0x1ef)),globals=require(a32_0x229932(0x1f9)),logger=require(a32_0x229932(0x208))[a32_0x229932(0x1bf)],{shouldProcessEventForTesthub}=require(a32_0x229932(0x1fb)),testHubConstants=require('../../helpers/testhub/constants');exports['mochaHooks']={'beforeAll'(){const _0x52171f=a32_0x229932,_0x2b1c19={'veiTQ':function(_0x522a80,_0x2e066b,_0x2c3974,_0x402c97){return _0x522a80(_0x2e066b,_0x2c3974,_0x402c97);},'EvYmB':_0x52171f(0x19a),'maPhz':'\x20|\x20','YKCau':function(_0x4bbb45,_0xd51202,_0x240819){return _0x4bbb45(_0xd51202,_0x240819);},'VQTGW':'passed','HAOij':function(_0x12e7d1){return _0x12e7d1();},'guGle':function(_0x34ce49,_0x95db2c,_0x2c058e){return _0x34ce49(_0x95db2c,_0x2c058e);}};PerformanceTester['startMonitoring']();const _0x3f20ec='browserstack internal helper hook';global[_0x52171f(0x1e6)]=[],global['__sessionFailed']=![],global[_0x52171f(0x1a5)]=async()=>{const _0x47dcea=_0x52171f;let _0x5978a7=![];try{await global[_0x47dcea(0x1d9)][0x0][_0x47dcea(0x1e7)],_0x5978a7=!![],global[_0x47dcea(0x1e0)]?await _0x2b1c19['veiTQ'](markSessionStatus,global[_0x47dcea(0x1d9)][0x0],_0x2b1c19[_0x47dcea(0x1c4)],global[_0x47dcea(0x1e6)][_0x47dcea(0x20a)](_0x2b1c19[_0x47dcea(0x1c1)])):await _0x2b1c19[_0x47dcea(0x1a0)](markSessionStatus,global[_0x47dcea(0x1d9)][0x0],_0x2b1c19[_0x47dcea(0x1e5)]);}catch(_0x44691c){}global[_0x47dcea(0x1e6)]=[],global[_0x47dcea(0x1e0)]=![];if(_0x5978a7)try{try{_0x2b1c19[_0x47dcea(0x1ab)](shouldProcessEventForTesthub)&&(global[_0x47dcea(0x1d9)][0x0]&&await _0x2b1c19[_0x47dcea(0x1bd)](sendPlatformDetails,global['__drivers'][0x0],this[_0x47dcea(0x1e1)]?this[_0x47dcea(0x1e1)][_0x47dcea(0x1c9)]:null));}catch{}await global[_0x47dcea(0x1d9)][0x0][_0x47dcea(0x1c8)]();}catch(_0x1694ef){}};},'beforeEach'(_0x52f48f){const _0x3e0ccc=a32_0x229932,_0x39b962={'fPQyl':function(_0x564c2e,_0x162057){return _0x564c2e>_0x162057;},'CuWlp':'\x20-\x20','TQiRs':function(_0x1b8086,_0x3a92f8,_0x37ba89){return _0x1b8086(_0x3a92f8,_0x37ba89);},'SBDRQ':_0x3e0ccc(0x213),'iewVp':function(_0x137776){return _0x137776();},'SywWu':function(_0x41ba79,_0x4e4904){return _0x41ba79>_0x4e4904;},'JIMAd':_0x3e0ccc(0x205),'qVypX':function(_0x4bf0d8,_0xec69fd){return _0x4bf0d8===_0xec69fd;},'vakdM':_0x3e0ccc(0x1f7),'iWabL':function(_0x5a0b54,_0x458d47){return _0x5a0b54===_0x458d47;},'PuEVy':'https:','EwIEE':_0x3e0ccc(0x1c7),'GLkGm':_0x3e0ccc(0x1f0),'iIPHK':function(_0x10253c){return _0x10253c();}};new Promise(async _0x32ead1=>{const _0x22ce71=_0x3e0ccc,_0x37ace1='browserstack internal helper hook';let _0x441559=!![];try{_0x39b962[_0x22ce71(0x1ee)](global[_0x22ce71(0x1d9)][_0x22ce71(0x1b1)],0x1)&&(await global[_0x22ce71(0x1a5)](),global[_0x22ce71(0x1d9)][_0x22ce71(0x19e)]()),_0x39b962[_0x22ce71(0x1ee)](global[_0x22ce71(0x1d9)][0x0][_0x22ce71(0x1b0)],0x0)&&(_0x441559=![],await global['driverCleanup']());}catch{}try{Array[_0x22ce71(0x1a7)](global[_0x22ce71(0x1d9)])&&global[_0x22ce71(0x1d9)][0x0]&&(global[_0x22ce71(0x1d9)][0x0][_0x22ce71(0x1f8)]=this[_0x22ce71(0x1e1)][_0x22ce71(0x1a9)]()[_0x22ce71(0x20a)](_0x39b962[_0x22ce71(0x1da)])),global[_0x22ce71(0x1f8)]=this[_0x22ce71(0x1e1)][_0x22ce71(0x1a9)]()[_0x22ce71(0x20a)](_0x39b962[_0x22ce71(0x1da)]);}catch(_0x805ff1){logger[_0x22ce71(0x1b3)](_0x22ce71(0x1be)+_0x805ff1);}this[_0x22ce71(0x1e1)][_0x22ce71(0x197)]=_0x39b962['TQiRs'](shouldScanTestForAccessibility,this['currentTest'][_0x22ce71(0x1a9)](),!![]),globals[_0x22ce71(0x1cf)](_0x39b962[_0x22ce71(0x1ac)],this['currentTest'][_0x22ce71(0x197)]),this[_0x22ce71(0x1e1)][_0x22ce71(0x214)]=!![];if(_0x39b962['iewVp'](isAccessibilityAutomationSession)&&_0x441559&&Array[_0x22ce71(0x1a7)](global[_0x22ce71(0x1d9)])&&_0x39b962[_0x22ce71(0x1a4)](global[_0x22ce71(0x1d9)][_0x22ce71(0x1b1)],0x0)&&globals[_0x22ce71(0x1b5)](_0x39b962['JIMAd']))try{const _0x1a114a=await global[_0x22ce71(0x1d9)][0x0]['session_'];if(_0x1a114a){let _0x557d68=!![];const _0x242b54=await global[_0x22ce71(0x1d9)][0x0][_0x22ce71(0x1fc)]();let _0x3de1d0;try{_0x3de1d0=new URL(_0x242b54);}catch(_0x15c340){_0x557d68=![];}_0x557d68=_0x39b962[_0x22ce71(0x1ce)](_0x3de1d0[_0x22ce71(0x1d1)],_0x39b962[_0x22ce71(0x1ed)])||_0x39b962['iWabL'](_0x3de1d0['protocol'],_0x39b962[_0x22ce71(0x201)]),_0x557d68&&(this['currentTest']['shouldScanTestForAccessibility']&&logger[_0x22ce71(0x1b2)](_0x39b962['EwIEE'])),this[_0x22ce71(0x1e1)][_0x22ce71(0x214)]=this[_0x22ce71(0x1e1)]['shouldScanTestForAccessibility'],this[_0x22ce71(0x1e1)][_0x22ce71(0x197)]&&logger[_0x22ce71(0x1b2)](_0x39b962[_0x22ce71(0x211)]);}}catch(_0x41e0c1){logger[_0x22ce71(0x1d6)](_0x22ce71(0x1f3)+util[_0x22ce71(0x198)](_0x41e0c1));}_0x39b962[_0x22ce71(0x20e)](_0x32ead1);})[_0x3e0ccc(0x1a6)](_0x52f48f);},'afterEach'(_0x316733){const _0x3ac207=a32_0x229932,_0x1820f0={'WEGmt':function(_0x43220b,_0x43d379){return _0x43220b>_0x43d379;},'SadEa':function(_0x18a824,_0x1ff6e4){return _0x18a824===_0x1ff6e4;},'SRGwE':_0x3ac207(0x1c0),'pfFUn':_0x3ac207(0x1f1),'hvENa':function(_0x180159,_0x59324f,_0x215843,_0xbaf7aa){return _0x180159(_0x59324f,_0x215843,_0xbaf7aa);},'jtbXd':'\x20-\x20','TXPwM':function(_0x3e5347,_0x5910f4){return _0x3e5347!==_0x5910f4;},'KdyiS':_0x3ac207(0x1d0),'SGHgB':function(_0x2ce43d,_0x516dbb,_0x1a0e5d){return _0x2ce43d(_0x516dbb,_0x1a0e5d);},'yFZba':function(_0x4e4f12,_0x587747){return _0x4e4f12+_0x587747;},'usCgf':_0x3ac207(0x1aa),'mJHNg':'error','TquQY':function(_0x14b044,_0x5cf301,_0x471767){return _0x14b044(_0x5cf301,_0x471767);},'TVwOO':_0x3ac207(0x1ec),'aubMP':'info','iERFp':_0x3ac207(0x205),'EYeyF':_0x3ac207(0x213),'HGlXu':_0x3ac207(0x1dd),'VERfe':_0x3ac207(0x1b6),'GTpXA':_0x3ac207(0x1cd),'sDQTm':function(_0x21a4a2){return _0x21a4a2();},'NjOee':function(_0x3179a3,_0x5f2217,_0x3b4bfb){return _0x3179a3(_0x5f2217,_0x3b4bfb);},'okrVi':function(_0x1f9efa){return _0x1f9efa();},'GzzHA':_0x3ac207(0x1b3),'MKvfn':function(_0x38e143,_0x981a76){return _0x38e143>_0x981a76;},'vhqrj':function(_0x29ca4d){return _0x29ca4d();}},_0x21374e='browserstack internal helper hook';this[_0x3ac207(0x1fd)](0xfde8);const _0x205f69=async(_0x54190a,_0x2b3aac)=>{const _0x437bcb=_0x3ac207;await global[_0x437bcb(0x1d9)][0x0][_0x437bcb(0x1a8)](_0x437bcb(0x1ff)+_0x54190a+',\x22level\x22:\x20\x22'+_0x2b3aac+_0x437bcb(0x1de));};new Promise(async _0xb7217a=>{const _0x407f8b=_0x3ac207;try{_0x1820f0[_0x407f8b(0x1c3)](global[_0x407f8b(0x1d9)][_0x407f8b(0x1b1)],0x1)&&(await global[_0x407f8b(0x1a5)](),global[_0x407f8b(0x1d9)]['shift'](),global['__error_messages__']=[],global[_0x407f8b(0x1e0)]=![]);try{if(global[_0x407f8b(0x20f)]&&_0x1820f0['SadEa'](global[_0x407f8b(0x1b9)],_0x1820f0[_0x407f8b(0x1eb)])&&global[_0x407f8b(0x1d9)][0x0]){const _0x4bece4=_0x1820f0[_0x407f8b(0x1c3)](global['capabilities'][_0x407f8b(0x1b1)],0x0)?!!global[_0x407f8b(0x1d7)][0x0][_0x407f8b(0x1e8)]||!!global[_0x407f8b(0x1d7)][0x0][_0x1820f0['pfFUn']]:![],_0x424088={};_0x424088[_0x407f8b(0x1e8)]=_0x4bece4,await _0x1820f0[_0x407f8b(0x1ca)](percyAutoCapture,global[_0x407f8b(0x1d9)][0x0],_0x1820f0['SRGwE'],_0x424088);}}catch(_0x2d4405){}!global['__skipSessionName']&&(await global['__drivers'][0x0][_0x407f8b(0x1a8)](_0x407f8b(0x199)+JSON[_0x407f8b(0x1e9)](this[_0x407f8b(0x1e1)][_0x407f8b(0x1a9)]()[_0x407f8b(0x20a)](_0x1820f0[_0x407f8b(0x209)]))+'}}'),global[_0x407f8b(0x1d9)][0x0][_0x407f8b(0x1c5)]=!![]);const _0x528516=_0x1820f0['TXPwM'](this[_0x407f8b(0x1e1)][_0x407f8b(0x1ae)],_0x1820f0[_0x407f8b(0x1c6)]);_0x528516?(global[_0x407f8b(0x1e0)]=!![],global['__error_messages__']['push'](this[_0x407f8b(0x1e1)][_0x407f8b(0x19d)][_0x407f8b(0x1e2)]),await _0x1820f0[_0x407f8b(0x1a2)](_0x205f69,JSON[_0x407f8b(0x1e9)](_0x1820f0[_0x407f8b(0x1d2)](_0x1820f0[_0x407f8b(0x1e4)],this[_0x407f8b(0x1e1)][_0x407f8b(0x19d)]['message'])),_0x1820f0[_0x407f8b(0x1af)])):await _0x1820f0[_0x407f8b(0x204)](_0x205f69,JSON[_0x407f8b(0x1e9)](_0x1820f0[_0x407f8b(0x1d4)]),_0x1820f0[_0x407f8b(0x206)]);}catch(_0x158ac9){}try{if(this[_0x407f8b(0x1e1)]['accessibilityScanStarted']&&globals[_0x407f8b(0x1b5)](_0x1820f0[_0x407f8b(0x1e3)])&&globals[_0x407f8b(0x1b5)](_0x1820f0['EYeyF'])){logger[_0x407f8b(0x1b2)](_0x1820f0[_0x407f8b(0x1ba)]);const _0x447898={};_0x447898[_0x407f8b(0x1f4)]=this[_0x407f8b(0x1e1)]['testAnalyticsId'],_0x447898[_0x407f8b(0x1ad)]=process['env'][testHubConstants[_0x407f8b(0x200)][_0x407f8b(0x1fe)]],_0x447898['thJwtToken']=process[_0x407f8b(0x1d8)][testHubConstants[_0x407f8b(0x200)]['BROWSERSTACK_TESTHUB_JWT']];const _0x35b757=_0x447898;logger[_0x407f8b(0x1b3)](_0x407f8b(0x1a3)+JSON[_0x407f8b(0x1e9)](_0x35b757)),logger[_0x407f8b(0x1b3)](_0x1820f0[_0x407f8b(0x1dc)]),logger[_0x407f8b(0x1b3)](util[_0x407f8b(0x198)](await global[_0x407f8b(0x1d9)][0x0][_0x407f8b(0x210)](scripts[_0x407f8b(0x1cb)],{'method':global[_0x407f8b(0x1f8)]}))),await global[_0x407f8b(0x1d9)][0x0][_0x407f8b(0x210)](scripts[_0x407f8b(0x1d3)],_0x35b757),logger['info'](_0x1820f0[_0x407f8b(0x20b)]);}}catch(_0x297492){logger[_0x407f8b(0x1d6)](_0x407f8b(0x1bb)+this[_0x407f8b(0x1e1)][_0x407f8b(0x1a9)]()+_0x407f8b(0x1bc),_0x297492);}try{try{if(_0x1820f0['sDQTm'](shouldProcessEventForTesthub)){global[_0x407f8b(0x1d9)][0x0]&&await _0x1820f0['NjOee'](sendPlatformDetails,global['__drivers'][0x0],this[_0x407f8b(0x1e1)]?this['currentTest'][_0x407f8b(0x1c9)]:null);if(_0x1820f0[_0x407f8b(0x202)](isBrowserstackInfra)){const _0x916d4=_0x407f8b(0x212)+Date[_0x407f8b(0x19f)]();await _0x1820f0[_0x407f8b(0x19c)](_0x205f69,JSON[_0x407f8b(0x1e9)](_0x916d4),_0x1820f0[_0x407f8b(0x20c)]);}}}catch{}_0x1820f0['MKvfn'](global['__drivers'][0x0][_0x407f8b(0x1b0)],0x0)&&await global[_0x407f8b(0x1a5)]();}catch(_0x43d80c){}_0x1820f0[_0x407f8b(0x1ea)](_0xb7217a);})[_0x3ac207(0x1a6)](()=>_0x316733());},'afterAll'(_0x1b3449){const _0x12fbc2=a32_0x229932,_0x4dc18e={'boCNH':function(_0x472e2f){return _0x472e2f();}},_0x2b736b='browserstack internal helper hook';this[_0x12fbc2(0x1fd)](0xfde8),new Promise(async _0x3405c4=>{const _0x14954b=_0x12fbc2;PerformanceTester[_0x14954b(0x1df)](),await global['driverCleanup'](),_0x4dc18e[_0x14954b(0x1b4)](_0x3405c4);})['then'](()=>_0x1b3449());}};
|
|
1
|
+
const a32_0x36d5f8=a32_0x36d3;(function(_0x19abd8,_0x4ffaba){const _0x4fcff9=a32_0x36d3,_0x10f4cb=_0x19abd8();while(!![]){try{const _0x26b583=-parseInt(_0x4fcff9(0x11a))/0x1*(-parseInt(_0x4fcff9(0x181))/0x2)+parseInt(_0x4fcff9(0x15a))/0x3*(-parseInt(_0x4fcff9(0x139))/0x4)+-parseInt(_0x4fcff9(0x16d))/0x5+-parseInt(_0x4fcff9(0x119))/0x6+parseInt(_0x4fcff9(0x150))/0x7+-parseInt(_0x4fcff9(0x184))/0x8+parseInt(_0x4fcff9(0x13f))/0x9;if(_0x26b583===_0x4ffaba)break;else _0x10f4cb['push'](_0x10f4cb['shift']());}catch(_0x34bb13){_0x10f4cb['push'](_0x10f4cb['shift']());}}}(a32_0x2032,0x9588d));function a32_0x36d3(_0x175625,_0x821c7){const _0x2032fe=a32_0x2032();return a32_0x36d3=function(_0x36d358,_0x47f030){_0x36d358=_0x36d358-0x10f;let _0x312226=_0x2032fe[_0x36d358];return _0x312226;},a32_0x36d3(_0x175625,_0x821c7);}function a32_0x2032(){const _0x319e2d=['15004782LiYEiQ','AZmmR','stopMonitoring','qfJro','Failed:\x20','passed','lJrjT','\x20|\x20','performScan','POBbm','winstonLogger','wKrwK','../../helpers/accessibility-automation/helper','browserstackSessionName','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','sqkQR','timeout','5291839FnYCev','LJcSV','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','testAnalyticsId','__drivers','BROWSERSTACK_TESTHUB_UUID','ENV_VAR','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','mGSwM','ZkQTD','319065gCJYLG','vinDO','TNOxT','info','then','capabilities','../../helpers/performance-tester','../../helpers/testhub/utils','debug','isArray','env','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','LUulY','eHHuz','currentTest','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','executeAsyncScript','sessionNameSet__','KGVAY','4521975Dugewk','saveTestResults','format','protocol','state','stringify','Automate\x20test\x20case\x20execution\x20has\x20started.','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','appium:app','getCurrentUrl','pTVqE','shift','PSSDV','zbZnN','push','tGcaO','thJwtToken','percy','geNME','http:','2blHCsS','mushv','session_','6863720nNTNBT','ACKEw','accessibilityScanStarted','__error_messages__','gKBAH','../../helpers/accessibility-automation/scripts','ITvDC','shouldScanTestForAccessibility','kBUSf','../../helpers/testhub/constants','titlePath','app','yaCHm','isAccessibilityPlatform','__sessionFailed','hxQze','err','executeScript','199620bYeoMr','91303mIzkpW','error','now','getGlobal','Ajogq','kheCf','.\x20Error\x20:','startMonitoring','length','Ixlnd','bstackA11yShouldScan','Exxbp','../../helpers/logger','Failed\x20to\x20store\x20session\x20name:\x20','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','../../helpers/percy/utils','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','\x20-\x20','../../helpers/helper','https:','failed','quitCount_','testcase','FSnha','Passed','setGlobal','util','BROWSERSTACK_TESTHUB_JWT','sHEIS','ObservabilitySync:','driverCleanup','4XgJkyb','soXzs','thTestRunUuid','DxiCP','join','NaJEa'];a32_0x2032=function(){return _0x319e2d;};return a32_0x2032();}const util=require(a32_0x36d5f8(0x134)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x36d5f8(0x14b)),{percyAutoCapture}=require(a32_0x36d5f8(0x129)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a32_0x36d5f8(0x12c)),PerformanceTester=require(a32_0x36d5f8(0x160)),scripts=require(a32_0x36d5f8(0x189)),globals=require('../../helpers/globals'),logger=require(a32_0x36d5f8(0x126))[a32_0x36d5f8(0x149)],{shouldProcessEventForTesthub}=require(a32_0x36d5f8(0x161)),testHubConstants=require(a32_0x36d5f8(0x110));exports['mochaHooks']={'beforeAll'(){const _0x152836=a32_0x36d5f8,_0x1b0a3a={'kheCf':function(_0x2b9594,_0x5a894d,_0x365d78,_0x1b766d){return _0x2b9594(_0x5a894d,_0x365d78,_0x1b766d);},'vinDO':_0x152836(0x12e),'NaJEa':_0x152836(0x146),'pTVqE':function(_0x26ae1f,_0x348640,_0x50f802){return _0x26ae1f(_0x348640,_0x50f802);},'gKBAH':_0x152836(0x144),'zbZnN':function(_0x36a51a){return _0x36a51a();}};PerformanceTester[_0x152836(0x121)]();const _0x30d3e9='browserstack internal helper hook';global[_0x152836(0x187)]=[],global[_0x152836(0x115)]=![],global['driverCleanup']=async()=>{const _0x403bd1=_0x152836;let _0x99d59e=![];try{await global['__drivers'][0x0]['session_'],_0x99d59e=!![],global[_0x403bd1(0x115)]?await _0x1b0a3a[_0x403bd1(0x11f)](markSessionStatus,global['__drivers'][0x0],_0x1b0a3a[_0x403bd1(0x15b)],global['__error_messages__'][_0x403bd1(0x13d)](_0x1b0a3a[_0x403bd1(0x13e)])):await _0x1b0a3a[_0x403bd1(0x177)](markSessionStatus,global[_0x403bd1(0x154)][0x0],_0x1b0a3a[_0x403bd1(0x188)]);}catch(_0xcc8fed){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0x99d59e)try{try{_0x1b0a3a[_0x403bd1(0x17a)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x1b0a3a[_0x403bd1(0x177)](sendPlatformDetails,global['__drivers'][0x0],this[_0x403bd1(0x168)]?this[_0x403bd1(0x168)][_0x403bd1(0x153)]:null));}catch{}await global[_0x403bd1(0x154)][0x0]['initQuit']();}catch(_0x546449){}};},'beforeEach'(_0x3b9972){const _0x4611ce=a32_0x36d5f8,_0x99759b={'mGSwM':function(_0x23f29b,_0x3e37f8){return _0x23f29b>_0x3e37f8;},'Ixlnd':_0x4611ce(0x12b),'ZkQTD':function(_0x4d8419,_0xd45d43,_0x263190){return _0x4d8419(_0xd45d43,_0x263190);},'yEEDD':'bstackA11yShouldScan','LUulY':function(_0x132ae1){return _0x132ae1();},'sHEIS':function(_0x3f64ef,_0x403d04){return _0x3f64ef>_0x403d04;},'ckzIp':_0x4611ce(0x114),'wKrwK':function(_0xb257d8,_0x130c92){return _0xb257d8===_0x130c92;},'ACKEw':_0x4611ce(0x180),'ANxUI':function(_0x3fb6b3,_0x4fbc37){return _0x3fb6b3===_0x4fbc37;},'lJrjT':_0x4611ce(0x12d),'GaJRf':_0x4611ce(0x165),'qfJro':_0x4611ce(0x173)};new Promise(async _0x3edbc1=>{const _0x339a69=_0x4611ce,_0x5c6d33='browserstack internal helper hook';let _0xc7b38f=!![];try{_0x99759b[_0x339a69(0x158)](global[_0x339a69(0x154)]['length'],0x1)&&(await global[_0x339a69(0x138)](),global[_0x339a69(0x154)][_0x339a69(0x178)]()),_0x99759b[_0x339a69(0x158)](global['__drivers'][0x0][_0x339a69(0x12f)],0x0)&&(_0xc7b38f=![],await global[_0x339a69(0x138)]());}catch{}try{Array['isArray'](global[_0x339a69(0x154)])&&global[_0x339a69(0x154)][0x0]&&(global[_0x339a69(0x154)][0x0][_0x339a69(0x14c)]=this[_0x339a69(0x168)][_0x339a69(0x111)]()[_0x339a69(0x13d)](_0x99759b[_0x339a69(0x123)])),global[_0x339a69(0x14c)]=this[_0x339a69(0x168)]['titlePath']()['join'](_0x99759b[_0x339a69(0x123)]);}catch(_0x5ef844){logger['debug'](_0x339a69(0x127)+_0x5ef844);}this[_0x339a69(0x168)][_0x339a69(0x18b)]=_0x99759b[_0x339a69(0x159)](shouldScanTestForAccessibility,this['currentTest'][_0x339a69(0x111)](),!![]),globals[_0x339a69(0x133)](_0x99759b['yEEDD'],this[_0x339a69(0x168)]['shouldScanTestForAccessibility']),this[_0x339a69(0x168)][_0x339a69(0x186)]=!![];if(_0x99759b[_0x339a69(0x166)](isAccessibilityAutomationSession)&&_0xc7b38f&&Array[_0x339a69(0x163)](global['__drivers'])&&_0x99759b[_0x339a69(0x136)](global['__drivers']['length'],0x0)&&globals[_0x339a69(0x11d)](_0x99759b['ckzIp']))try{const _0xbf3358=await global[_0x339a69(0x154)][0x0][_0x339a69(0x183)];if(_0xbf3358){let _0x11571b=!![];const _0x438bde=await global[_0x339a69(0x154)][0x0][_0x339a69(0x176)]();let _0x166edc;try{_0x166edc=new URL(_0x438bde);}catch(_0x28731b){_0x11571b=![];}_0x11571b=_0x99759b[_0x339a69(0x14a)](_0x166edc[_0x339a69(0x170)],_0x99759b[_0x339a69(0x185)])||_0x99759b['ANxUI'](_0x166edc[_0x339a69(0x170)],_0x99759b[_0x339a69(0x145)]),_0x11571b&&(this['currentTest'][_0x339a69(0x18b)]&&logger[_0x339a69(0x15d)](_0x99759b['GaJRf'])),this[_0x339a69(0x168)][_0x339a69(0x186)]=this[_0x339a69(0x168)][_0x339a69(0x18b)],this[_0x339a69(0x168)][_0x339a69(0x18b)]&&logger[_0x339a69(0x15d)](_0x99759b[_0x339a69(0x142)]);}}catch(_0x203b26){logger[_0x339a69(0x11b)](_0x339a69(0x14d)+util[_0x339a69(0x16f)](_0x203b26));}_0x99759b[_0x339a69(0x166)](_0x3edbc1);})[_0x4611ce(0x15e)](_0x3b9972);},'afterEach'(_0xa1de02){const _0x4ce2bc=a32_0x36d5f8,_0x22d38b={'kBUSf':function(_0x1a068e,_0xe0f87d){return _0x1a068e>_0xe0f87d;},'Exxbp':function(_0xda9d2e,_0x2ef0d8){return _0xda9d2e===_0x2ef0d8;},'Ajogq':_0x4ce2bc(0x130),'sqkQR':_0x4ce2bc(0x175),'yaCHm':function(_0x524c9b,_0x5945d7,_0x2fba46,_0x3563c1){return _0x524c9b(_0x5945d7,_0x2fba46,_0x3563c1);},'TZQpr':_0x4ce2bc(0x12b),'geNME':function(_0x2cbd54,_0x51286b){return _0x2cbd54!==_0x51286b;},'hxQze':_0x4ce2bc(0x144),'wmdVn':function(_0x27da60,_0x5db1fb,_0x3111f0){return _0x27da60(_0x5db1fb,_0x3111f0);},'DxiCP':function(_0x3d80e2,_0x43ef01){return _0x3d80e2+_0x43ef01;},'KGVAY':_0x4ce2bc(0x143),'eHHuz':_0x4ce2bc(0x11b),'NVwvJ':_0x4ce2bc(0x132),'ITvDC':_0x4ce2bc(0x15d),'tGcaO':'isAccessibilityPlatform','soXzs':_0x4ce2bc(0x124),'POBbm':_0x4ce2bc(0x157),'TNOxT':'Performing\x20scan\x20before\x20saving\x20results','mushv':_0x4ce2bc(0x12a),'AZmmR':function(_0x4d56db){return _0x4d56db();},'PSSDV':function(_0x106508,_0x213a09,_0x117dfe){return _0x106508(_0x213a09,_0x117dfe);},'YFqIk':function(_0x74bfbc,_0xd8c84,_0x454c6c){return _0x74bfbc(_0xd8c84,_0x454c6c);},'LJcSV':'debug','tXYqV':function(_0x3177e4){return _0x3177e4();}},_0x2a19fb='browserstack internal helper hook';this[_0x4ce2bc(0x14f)](0xfde8);const _0x56b6a6=async(_0xb78e62,_0x572009)=>{const _0x5f119e=_0x4ce2bc;await global[_0x5f119e(0x154)][0x0][_0x5f119e(0x118)](_0x5f119e(0x152)+_0xb78e62+',\x22level\x22:\x20\x22'+_0x572009+'\x22}}');};new Promise(async _0x5e68b8=>{const _0x5a4f8d=_0x4ce2bc;try{_0x22d38b[_0x5a4f8d(0x10f)](global[_0x5a4f8d(0x154)][_0x5a4f8d(0x122)],0x1)&&(await global[_0x5a4f8d(0x138)](),global[_0x5a4f8d(0x154)][_0x5a4f8d(0x178)](),global['__error_messages__']=[],global['__sessionFailed']=![]);try{if(global[_0x5a4f8d(0x17e)]&&_0x22d38b[_0x5a4f8d(0x125)](global['percyCaptureMode'],_0x22d38b['Ajogq'])&&global['__drivers'][0x0]){const _0x5646fb=_0x22d38b['kBUSf'](global[_0x5a4f8d(0x15f)][_0x5a4f8d(0x122)],0x0)?!!global[_0x5a4f8d(0x15f)][0x0][_0x5a4f8d(0x112)]||!!global[_0x5a4f8d(0x15f)][0x0][_0x22d38b[_0x5a4f8d(0x14e)]]:![],_0x50d5cc={};_0x50d5cc[_0x5a4f8d(0x112)]=_0x5646fb,await _0x22d38b[_0x5a4f8d(0x113)](percyAutoCapture,global['__drivers'][0x0],_0x22d38b[_0x5a4f8d(0x11e)],_0x50d5cc);}}catch(_0x30472c){}!global['__skipSessionName']&&(await global[_0x5a4f8d(0x154)][0x0][_0x5a4f8d(0x118)](_0x5a4f8d(0x169)+JSON[_0x5a4f8d(0x172)](this[_0x5a4f8d(0x168)]['titlePath']()[_0x5a4f8d(0x13d)](_0x22d38b['TZQpr']))+'}}'),global[_0x5a4f8d(0x154)][0x0][_0x5a4f8d(0x16b)]=!![]);const _0x213e51=_0x22d38b[_0x5a4f8d(0x17f)](this[_0x5a4f8d(0x168)][_0x5a4f8d(0x171)],_0x22d38b[_0x5a4f8d(0x116)]);_0x213e51?(global[_0x5a4f8d(0x115)]=!![],global[_0x5a4f8d(0x187)][_0x5a4f8d(0x17b)](this['currentTest'][_0x5a4f8d(0x117)]['message']),await _0x22d38b['wmdVn'](_0x56b6a6,JSON[_0x5a4f8d(0x172)](_0x22d38b[_0x5a4f8d(0x13c)](_0x22d38b[_0x5a4f8d(0x16c)],this[_0x5a4f8d(0x168)]['err']['message'])),_0x22d38b[_0x5a4f8d(0x167)])):await _0x22d38b['wmdVn'](_0x56b6a6,JSON[_0x5a4f8d(0x172)](_0x22d38b['NVwvJ']),_0x22d38b[_0x5a4f8d(0x18a)]);}catch(_0x263393){}try{if(this[_0x5a4f8d(0x168)][_0x5a4f8d(0x186)]&&globals[_0x5a4f8d(0x11d)](_0x22d38b[_0x5a4f8d(0x17c)])&&globals[_0x5a4f8d(0x11d)](_0x22d38b[_0x5a4f8d(0x13a)])){logger['info'](_0x22d38b[_0x5a4f8d(0x148)]);const _0x56ace3={};_0x56ace3[_0x5a4f8d(0x13b)]=this[_0x5a4f8d(0x168)][_0x5a4f8d(0x153)],_0x56ace3['thBuildUuid']=process[_0x5a4f8d(0x164)][testHubConstants[_0x5a4f8d(0x156)][_0x5a4f8d(0x155)]],_0x56ace3[_0x5a4f8d(0x17d)]=process['env'][testHubConstants['ENV_VAR'][_0x5a4f8d(0x135)]];const _0x3035a1=_0x56ace3;logger[_0x5a4f8d(0x162)](_0x5a4f8d(0x128)+JSON[_0x5a4f8d(0x172)](_0x3035a1)),logger[_0x5a4f8d(0x162)](_0x22d38b[_0x5a4f8d(0x15c)]),logger[_0x5a4f8d(0x162)](util['format'](await global['__drivers'][0x0][_0x5a4f8d(0x16a)](scripts[_0x5a4f8d(0x147)],{'method':global[_0x5a4f8d(0x14c)]}))),await global[_0x5a4f8d(0x154)][0x0]['executeAsyncScript'](scripts[_0x5a4f8d(0x16e)],_0x3035a1),logger[_0x5a4f8d(0x15d)](_0x22d38b[_0x5a4f8d(0x182)]);}}catch(_0x186b7f){logger[_0x5a4f8d(0x11b)](_0x5a4f8d(0x174)+this['currentTest'][_0x5a4f8d(0x111)]()+_0x5a4f8d(0x120),_0x186b7f);}try{try{if(_0x22d38b[_0x5a4f8d(0x140)](shouldProcessEventForTesthub)){global[_0x5a4f8d(0x154)][0x0]&&await _0x22d38b[_0x5a4f8d(0x179)](sendPlatformDetails,global[_0x5a4f8d(0x154)][0x0],this[_0x5a4f8d(0x168)]?this[_0x5a4f8d(0x168)][_0x5a4f8d(0x153)]:null);if(_0x22d38b[_0x5a4f8d(0x140)](isBrowserstackInfra)){const _0x5591f5=_0x5a4f8d(0x137)+Date[_0x5a4f8d(0x11c)]();await _0x22d38b['YFqIk'](_0x56b6a6,JSON[_0x5a4f8d(0x172)](_0x5591f5),_0x22d38b[_0x5a4f8d(0x151)]);}}}catch{}_0x22d38b['kBUSf'](global[_0x5a4f8d(0x154)][0x0][_0x5a4f8d(0x12f)],0x0)&&await global[_0x5a4f8d(0x138)]();}catch(_0x176053){}_0x22d38b['tXYqV'](_0x5e68b8);})[_0x4ce2bc(0x15e)](()=>_0xa1de02());},'afterAll'(_0x4a8811){const _0x12f3e5=a32_0x36d5f8,_0x3dd98b={'FSnha':function(_0x4373b3){return _0x4373b3();}},_0x323533='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x17afe3=>{const _0x3e3745=a32_0x36d3;PerformanceTester[_0x3e3745(0x141)](),await global[_0x3e3745(0x138)](),_0x3dd98b[_0x3e3745(0x131)](_0x17afe3);})[_0x12f3e5(0x15e)](()=>_0x4a8811());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x17d2eb=a33_0x53c9;function a33_0x53c9(_0x1b93f3,_0x447a62){const _0x4e4b1b=a33_0x4e4b();return a33_0x53c9=function(_0x53c929,_0x20fe2c){_0x53c929=_0x53c929-0xc0;let _0x4ca7ea=_0x4e4b1b[_0x53c929];return _0x4ca7ea;},a33_0x53c9(_0x1b93f3,_0x447a62);}(function(_0x3249dc,_0x7cb83a){const _0x126467=a33_0x53c9,_0x226195=_0x3249dc();while(!![]){try{const _0x4fd15e=parseInt(_0x126467(0xec))/0x1*(parseInt(_0x126467(0xf9))/0x2)+-parseInt(_0x126467(0xf5))/0x3*(-parseInt(_0x126467(0xd6))/0x4)+-parseInt(_0x126467(0xda))/0x5*(parseInt(_0x126467(0x10c))/0x6)+-parseInt(_0x126467(0x103))/0x7*(-parseInt(_0x126467(0xe2))/0x8)+parseInt(_0x126467(0xd1))/0x9*(-parseInt(_0x126467(0xca))/0xa)+-parseInt(_0x126467(0x100))/0xb+parseInt(_0x126467(0xc4))/0xc;if(_0x4fd15e===_0x7cb83a)break;else _0x226195['push'](_0x226195['shift']());}catch(_0x26993f){_0x226195['push'](_0x226195['shift']());}}}(a33_0x4e4b,0xa7903));function a33_0x4e4b(){const _0x410fa6=['slice','winstonLogger','port','child_process','148hZQGIO','nightwatch.conf.js','nightwatch.cmd','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','112600EVoOgc','VrKMH','exports','czrsQ','length','ECCcm','start_process','../../helpers/BrowserStackSetup','32LZPTpH','RyDUj','findIndex','platforms','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','filter','config','HbHLE','child\x20process\x20exited\x20with\x20code\x20','qfuqq','76542IUfSVk','splice','modifyBrowserStackCaps','ZxMEe','existsSync','nightwatch','../../helpers/helper','vKcHo','hqFRX','87531EaMbff','isUndefined','oXzmO','host','6XtyaxC','desiredCapabilities','map','AiTQz','info','push','gSIHD','12069288KbpUXb','mfTKm','platform','1901669cwmRUZ','stringify','inherit','getPlatformName','selenium','hub.browserstack.com','nightwatch.json','nightwatch-browserstack.json','join','36IhUURk','env','test_settings','Getting\x20your\x20nightwatch\x20configs\x20from\x20','cwd','modifyBrowserStackW3CCaps','unlinkSync','now','wltUH','4917408OrEzFh','uqQoZ','path','FVqna','writeFileSync','trim','221740HXFJPk','vuHbC','debug','--env','forEach','useW3C','close','360rBsXUK'];a33_0x4e4b=function(){return _0x410fa6;};return a33_0x4e4b();}const fs=require('fs'),path=require(a33_0x17d2eb(0xc6)),{spawn}=require(a33_0x17d2eb(0xd5)),logger=require('../../helpers/logger')[a33_0x17d2eb(0xd3)],{default:BrowserStackSetup}=require(a33_0x17d2eb(0xe1)),helper=require(a33_0x17d2eb(0xf2)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x2c2bc7,_0x1bea3a)=>{const _0x10d814=a33_0x17d2eb,_0x537564={'ECCcm':_0x10d814(0xd7),'HbHLE':_0x10d814(0x109),'vKcHo':function(_0x38d993,_0x484424){return _0x38d993(_0x484424);},'FzOLm':_0x10d814(0xd9)};let _0x58c927=null,_0x41550a={};const _0x35bb69=_0x1bea3a[_0x10d814(0xe4)](_0xfb7f1a=>_0xfb7f1a==='--config');if(!helper[_0x10d814(0xf6)](_0x2c2bc7[_0x10d814(0xe8)])&&fs['existsSync'](path['join'](process[_0x10d814(0x110)](),_0x2c2bc7['config'])))_0x58c927=path[_0x10d814(0x10b)](process['cwd'](),_0x2c2bc7['config']),_0x1bea3a[_0x10d814(0xed)](_0x35bb69,0x2);else{if(fs[_0x10d814(0xf0)](path[_0x10d814(0x10b)](process[_0x10d814(0x110)](),_0x537564[_0x10d814(0xdf)])))_0x58c927=path['join'](process[_0x10d814(0x110)](),_0x537564[_0x10d814(0xdf)]);else fs[_0x10d814(0xf0)](path[_0x10d814(0x10b)](process['cwd'](),_0x537564[_0x10d814(0xe9)]))&&(_0x58c927=path[_0x10d814(0x10b)](process[_0x10d814(0x110)](),_0x537564['HbHLE']));}return _0x58c927?(logger[_0x10d814(0xfd)](_0x10d814(0x10f)+_0x58c927),_0x41550a=_0x537564[_0x10d814(0xf3)](require,_0x58c927)):logger[_0x10d814(0xfd)](_0x537564['FzOLm']),_0x41550a;},removeExistingEnvs=_0x7e27cd=>{const _0x2b705d=a33_0x17d2eb,_0x50fdaf={};_0x50fdaf[_0x2b705d(0xff)]=function(_0xf5583c,_0x426545){return _0xf5583c>_0x426545;};const _0x1906ac=_0x50fdaf;let _0xd376e4=_0x7e27cd[_0x2b705d(0xe4)](_0x427289=>_0x427289===_0x2b705d(0xcd));_0x1906ac[_0x2b705d(0xff)](_0xd376e4,-0x1)&&_0x7e27cd['splice'](_0xd376e4,0x2),_0xd376e4=_0x7e27cd['findIndex'](_0x303e64=>_0x303e64==='-e'),_0x1906ac[_0x2b705d(0xff)](_0xd376e4,-0x1)&&_0x7e27cd[_0x2b705d(0xed)](_0xd376e4,0x2);};function run(_0x378693,_0x44083c){const _0x140fe2=a33_0x17d2eb,_0x1a65f9={'VrKMH':_0x140fe2(0xf1),'hqFRX':function(_0x352989,_0x3e7d02){return _0x352989+_0x3e7d02;},'mfTKm':_0x140fe2(0x10e),'vuHbC':function(_0x2825cb,_0x4e9818,_0x2a7a42){return _0x2825cb(_0x4e9818,_0x2a7a42);},'czrsQ':_0x140fe2(0x108),'uqQoZ':_0x140fe2(0xe6),'FKTGa':function(_0x210fc5,_0x459663){return _0x210fc5===_0x459663;},'ektXR':_0x140fe2(0x10a),'ZgwHU':function(_0x32f19b,_0x75e7d5){return _0x32f19b(_0x75e7d5);},'qfuqq':function(_0x5d1e94,_0x5c4c67,_0x3700e4,_0x3e6148){return _0x5d1e94(_0x5c4c67,_0x3700e4,_0x3e6148);},'ZxMEe':_0x140fe2(0xd8),'JbSJt':'--config','FVqna':_0x140fe2(0xcd),'AiTQz':_0x140fe2(0x105),'RyDUj':_0x140fe2(0xd0)},_0x57f783=new BrowserStackSetup(_0x378693);if(!_0x57f783[_0x140fe2(0xe8)])return;const _0x21ff70=_0x1a65f9[_0x140fe2(0xcb)](getUserNightwatchConfigs,_0x378693,_0x44083c),_0xc4d68b={};_0xc4d68b[_0x140fe2(0xe0)]=![];const _0x349661={};_0x349661[_0x140fe2(0xf8)]=_0x1a65f9[_0x140fe2(0xdd)],_0x349661[_0x140fe2(0xd4)]=0x1bb;const _0x4191fe={};_0x4191fe['webdriver']=_0xc4d68b,_0x4191fe[_0x140fe2(0x107)]=_0x349661;const _0x57e348=_0x4191fe;logger['info'](_0x1a65f9[_0x140fe2(0xc5)]);const _0x320eab={..._0x21ff70},_0x3b792c=_0x320eab,_0x204a35=helper[_0x140fe2(0xcf)](_0x57f783['config']),_0x2c91a4=[];_0x57f783['config'][_0x140fe2(0xe5)][_0x140fe2(0xce)]((_0x47ed2c,_0x3a3af2)=>{const _0x17f9fe=_0x140fe2;_0x204a35?_0x2c91a4[_0x17f9fe(0xfe)](helper[_0x17f9fe(0xc0)](_0x57f783[_0x17f9fe(0xe8)],_0x1a65f9[_0x17f9fe(0xdb)],_0x3a3af2)):_0x2c91a4[_0x17f9fe(0xfe)](helper[_0x17f9fe(0xee)](_0x57f783[_0x17f9fe(0xe8)],_0x1a65f9[_0x17f9fe(0xdb)],_0x3a3af2));});const _0x18c8f3={},_0x43383b=[];_0x378693['env']=_0x378693[_0x140fe2(0x10d)]||_0x378693['e'];const _0x4f4693=_0x378693[_0x140fe2(0x10d)]?_0x378693[_0x140fe2(0x10d)][_0x140fe2(0xc9)]()['split'](',')[_0x140fe2(0xfb)](_0xb6c333=>_0xb6c333[_0x140fe2(0xc9)]())[_0x140fe2(0xe7)](_0x1320ff=>_0x1320ff!==''):[''];_0x1a65f9['FKTGa'](_0x4f4693[_0x140fe2(0xde)],0x0)&&_0x4f4693['push']('');_0x4f4693[_0x140fe2(0xce)](_0x5a5873=>{const _0x5ad8ba=_0x140fe2,_0x4b0a44={'wltUH':function(_0x50e64c,_0x141257){const _0x30100e=a33_0x53c9;return _0x1a65f9[_0x30100e(0xf4)](_0x50e64c,_0x141257);},'oXzmO':_0x1a65f9[_0x5ad8ba(0x101)]};_0x2c91a4['forEach'](_0x1f8c09=>{const _0x20965f=_0x5ad8ba;let _0x3024b7=_0x4b0a44[_0x20965f(0xc3)](helper[_0x20965f(0x106)](_0x1f8c09,'_'),'_'+Date[_0x20965f(0xc2)]());_0x5a5873&&(_0x3024b7+='_'+_0x5a5873);if(_0x5a5873&&(!_0x21ff70[_0x4b0a44[_0x20965f(0xf7)]]||!_0x21ff70[_0x4b0a44[_0x20965f(0xf7)]][_0x5a5873]))return;const _0x9692={..._0x57e348};_0x9692[_0x20965f(0xfa)]=_0x1f8c09;const _0x5aadd9=_0x9692;_0x18c8f3[_0x3024b7]=_0x5a5873?helper['mergeDeep'](_0x21ff70[_0x4b0a44[_0x20965f(0xf7)]][_0x5a5873],_0x5aadd9):_0x5aadd9,_0x43383b['push'](_0x3024b7);});});!_0x3b792c[_0x140fe2(0x10e)]&&(_0x3b792c[_0x140fe2(0x10e)]={});_0x3b792c[_0x140fe2(0x10e)]={..._0x3b792c[_0x140fe2(0x10e)],..._0x18c8f3};const _0x25dbdb=path['join'](__dirname,_0x1a65f9['ektXR']);fs[_0x140fe2(0xc8)](_0x25dbdb,JSON[_0x140fe2(0x104)](_0x3b792c)),_0x1a65f9['ZgwHU'](removeExistingEnvs,_0x44083c);const _0x4595c1=_0x1a65f9[_0x140fe2(0xeb)](spawn,/^win/['test'](process[_0x140fe2(0x102)])?_0x1a65f9[_0x140fe2(0xef)]:_0x1a65f9[_0x140fe2(0xdb)],[_0x1a65f9['JbSJt'],_0x25dbdb,..._0x44083c[_0x140fe2(0xd2)](0x1),_0x1a65f9[_0x140fe2(0xc7)],_0x43383b[_0x140fe2(0x10b)](',')],{'stdio':_0x1a65f9[_0x140fe2(0xfc)]});_0x4595c1['on'](_0x1a65f9[_0x140fe2(0xe3)],async _0x485510=>{const _0x9be935=_0x140fe2;logger[_0x9be935(0xcc)](_0x9be935(0xea)+_0x485510),logger[_0x9be935(0xfd)]('Deleting\x20'+_0x25dbdb),fs[_0x9be935(0xc1)](_0x25dbdb);});}module[a33_0x17d2eb(0xdc)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x21ee7e=a34_0x25c5;function a34_0x2ea9(){const _0x13ff3b=['MvyhP','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','browserstack.accessibility','ZJklr','browserName','No\x20summaryResults\x20found.','browserStackEvaluate','BZebJ','UYGQm','name','1234HJijhW','warn','ZASjX','QCsNd','accessibilityPlatform','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','kPDJM','QxOri','kzJZE','getAccessibilityResults','WebDriver','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','use','10IymBOd','../../helpers/logger','BS_A11Y_JWT','connectOptions','accessibilityOptions.wcagVersion','vHvqQ','accessibilityOptions.includeIssueType.needsReview','ZFCHo','testInfo','bstackSdkArgs','setAccessibilityCapabilities','accessibilityOptions.scannerVersion','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','10928cnJkez','24YBmhym','currentTest','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','LuniT','workerInfo','ahHwR','replace','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','955odBkOS','util','browser','Playwright','CMius','JxCsE','accessibilityOptions','../../helpers/accessibility-automation/scripts','DFPso','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','stringify','QXZOy','Oqoci','XIAov','SFljC','latest','deviceName','LmArA','method','project','3742413eNqwFd','winstonLogger','playwright-chromium','wcagVersion','yDpbn','processAccessibilityCaps','executeAsyncScript','879104vNZOsC','XCDbA','1901EpjJhy','includeIssueType','SIsYC','browser_version','BLAFK','qhgFY','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','browserStackExecuteDriver','parse','21tvqLoh','error','nQueQ','ZWEce','getAccessibilityResultsSummary','MFhkO','ybXTI','No\x20accessibility\x20results\x20were\x20found.','scannerProcessingTimeout','evaluate','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','wsEndpoint','1299426vzJUhc','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','performScan','xiFsN','platformValidation','ZyBwE','3193794lpkwEF','needsReview','WnDaU','../../helpers/helper','35222MNjvsi','constructor','debug','pdHUF','scannerVersion'];a34_0x2ea9=function(){return _0x13ff3b;};return a34_0x2ea9();}function a34_0x25c5(_0x1552df,_0x2aefe2){const _0x2ea9c5=a34_0x2ea9();return a34_0x25c5=function(_0x25c55b,_0x1106cd){_0x25c55b=_0x25c55b-0x17d;let _0x74d382=_0x2ea9c5[_0x25c55b];return _0x74d382;},a34_0x25c5(_0x1552df,_0x2aefe2);}(function(_0x4b2e66,_0x32b7dc){const _0x111119=a34_0x25c5,_0x59bf9a=_0x4b2e66();while(!![]){try{const _0x5c052d=-parseInt(_0x111119(0x1dc))/0x1*(-parseInt(_0x111119(0x19c))/0x2)+-parseInt(_0x111119(0x1d3))/0x3+-parseInt(_0x111119(0x1b6))/0x4*(-parseInt(_0x111119(0x1bf))/0x5)+parseInt(_0x111119(0x183))/0x6*(parseInt(_0x111119(0x1e5))/0x7)+-parseInt(_0x111119(0x1da))/0x8+parseInt(_0x111119(0x189))/0x9*(-parseInt(_0x111119(0x1a9))/0xa)+parseInt(_0x111119(0x18d))/0xb*(-parseInt(_0x111119(0x1b7))/0xc);if(_0x5c052d===_0x32b7dc)break;else _0x59bf9a['push'](_0x59bf9a['shift']());}catch(_0x35295e){_0x59bf9a['push'](_0x59bf9a['shift']());}}}(a34_0x2ea9,0x98c95));const util=require(a34_0x21ee7e(0x1c0)),logger=require(a34_0x21ee7e(0x1aa))[a34_0x21ee7e(0x1d4)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a34_0x21ee7e(0x18c)),scripts=require(a34_0x21ee7e(0x1c6));exports[a34_0x21ee7e(0x198)]=async(_0x368f60,_0x28a87d,_0x5c50fd={})=>{const _0x2005bd=a34_0x21ee7e,_0x3c4532={};_0x3c4532['ahHwR']=_0x2005bd(0x1b2);const _0x3e0a65=_0x3c4532;return await _0x368f60[_0x2005bd(0x180)](_0x2005bd(0x1b9)+_0x28a87d[_0x2005bd(0x1bd)](/arguments/g,_0x3e0a65[_0x2005bd(0x1bc)])+_0x2005bd(0x1b5)+JSON[_0x2005bd(0x1c9)](_0x5c50fd)+')');},exports[a34_0x21ee7e(0x1e3)]=async(_0xd4afb0,_0x367372,_0x465cb0={})=>{const _0x340269=a34_0x21ee7e,_0x3e2cd8={};_0x3e2cd8[_0x340269(0x17d)]=function(_0x54343a,_0x1dabaf){return _0x54343a===_0x1dabaf;},_0x3e2cd8[_0x340269(0x186)]=_0x340269(0x1a6),_0x3e2cd8[_0x340269(0x1cc)]=_0x340269(0x1c2),_0x3e2cd8['QXZOy']=_0x340269(0x1b2);const _0x4bf7c2=_0x3e2cd8;if(_0x4bf7c2[_0x340269(0x17d)](_0xd4afb0[_0x340269(0x18e)]['name'],_0x4bf7c2[_0x340269(0x186)]))return await _0xd4afb0[_0x340269(0x1d9)](_0x367372,_0x465cb0);else{if(_0x4bf7c2['ybXTI'](_0xd4afb0['constructor'][_0x340269(0x19b)],_0x4bf7c2[_0x340269(0x1cc)]))return await _0xd4afb0['executeScript'](_0x340269(0x1a7)+_0x367372[_0x340269(0x1bd)](/arguments/g,_0x4bf7c2[_0x340269(0x1ca)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x340269(0x1c9)](_0x465cb0)+')');}},exports[a34_0x21ee7e(0x1b3)]=async _0x847544=>{const _0x3b36c1=a34_0x21ee7e,_0x5a4dbe={};_0x5a4dbe[_0x3b36c1(0x1b0)]=_0x3b36c1(0x1ad),_0x5a4dbe[_0x3b36c1(0x1e7)]='accessibilityOptions.scannerProcessingTimeout',_0x5a4dbe[_0x3b36c1(0x1db)]='accessibilityOptions.includeIssueType.bestPractice',_0x5a4dbe[_0x3b36c1(0x1e8)]=_0x3b36c1(0x1af),_0x5a4dbe[_0x3b36c1(0x19e)]='accessibilityOptions.authToken',_0x5a4dbe[_0x3b36c1(0x1ea)]=_0x3b36c1(0x1b4);const _0x546cd8=_0x5a4dbe;_0x847544[_0x3b36c1(0x1c5)]&&(_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1d6)]&&(_0x847544[_0x546cd8[_0x3b36c1(0x1b0)]]=_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1d6)]),_0x847544['accessibilityOptions']['scannerProcessingTimeout']&&(_0x847544[_0x546cd8[_0x3b36c1(0x1e7)]]=_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x17f)]),_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1dd)]&&(_0x847544[_0x546cd8['XCDbA']]=_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1dd)]['bestPractice'],_0x847544[_0x546cd8[_0x3b36c1(0x1e8)]]=_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1dd)][_0x3b36c1(0x18a)]));const _0x1a8cb4=JSON[_0x3b36c1(0x1e4)](process['env'][_0x3b36c1(0x193)])[_0x3b36c1(0x191)];_0x847544[_0x546cd8[_0x3b36c1(0x19e)]]=process['env'][_0x3b36c1(0x1ab)],_0x847544[_0x546cd8[_0x3b36c1(0x1ea)]]=_0x1a8cb4,delete _0x847544[_0x3b36c1(0x1c5)];},exports[a34_0x21ee7e(0x1a5)]=async _0x2ff7c0=>{const _0x43385c=a34_0x21ee7e,_0x14ab5f={};_0x14ab5f[_0x43385c(0x1a4)]=_0x43385c(0x17e),_0x14ab5f[_0x43385c(0x1ba)]=_0x43385c(0x1e2);const _0x9f0ade=_0x14ab5f;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x2ff7c0,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x2ff7c0,scripts.getResults);return res;}catch{return logger[_0x43385c(0x1e6)](_0x9f0ade[_0x43385c(0x1a4)]),[];}else return logger[_0x43385c(0x19d)](_0x9f0ade[_0x43385c(0x1ba)]),[];},exports[a34_0x21ee7e(0x185)]=async(_0x2fd0ae,_0x2c64ab='')=>{const _0x16ec54=a34_0x21ee7e;if(global[_0x16ec54(0x1a0)]){const _0x4fe1c5={};return _0x4fe1c5[_0x16ec54(0x1d1)]=_0x2c64ab,await exports[_0x16ec54(0x198)](_0x2fd0ae,scripts[_0x16ec54(0x185)],_0x4fe1c5);}},exports[a34_0x21ee7e(0x1e9)]=async _0x3f7783=>{const _0x5141ea=a34_0x21ee7e,_0x19beda={};_0x19beda[_0x5141ea(0x1c4)]=_0x5141ea(0x197),_0x19beda['MvyhP']=_0x5141ea(0x1c8);const _0x1e0831=_0x19beda;if(global[_0x5141ea(0x1a0)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3f7783,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x3f7783,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x5141ea(0x18f)](_0x1e0831[_0x5141ea(0x1c4)]),{};}else return logger[_0x5141ea(0x19d)](_0x1e0831[_0x5141ea(0x192)]),{};},exports[a34_0x21ee7e(0x187)]=async _0x553576=>{const _0x3be746=a34_0x21ee7e,_0x246df4={'qhgFY':function(_0x27589d,_0x479073){return _0x27589d!==_0x479073;},'Vrjtu':_0x3be746(0x1be),'UYGQm':function(_0x9dde4d,_0x212f23){return _0x9dde4d===_0x212f23;},'ZyBwE':'chrome','BuZuv':function(_0x13a9f7,_0x545435){return _0x13a9f7===_0x545435;},'yDpbn':_0x3be746(0x1d5),'GKLRk':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','CMius':function(_0x4e2b9c,_0x1100ca){return _0x4e2b9c(_0x1100ca);},'bjWzR':_0x3be746(0x1ce),'vHvqQ':function(_0x5f2059,_0x4befe4){return _0x5f2059>_0x4befe4;},'QCsNd':_0x3be746(0x1a1)};try{if(!_0x246df4[_0x3be746(0x1e1)](_0x553576['deviceName'],''))return logger['warn'](_0x246df4['Vrjtu']),![];const _0x1736ea=_0x553576[_0x3be746(0x1c1)];if(!(_0x246df4[_0x3be746(0x19a)](_0x1736ea,_0x246df4[_0x3be746(0x188)])||_0x246df4['BuZuv'](_0x1736ea,_0x246df4[_0x3be746(0x1d7)])))return logger[_0x3be746(0x19d)](_0x246df4['GKLRk']),![];const _0x7a6263=_0x246df4[_0x3be746(0x1c3)](parseInt,_0x553576[_0x3be746(0x1df)]);if(!(_0x246df4['UYGQm'](_0x7a6263,_0x246df4['bjWzR'])||_0x246df4[_0x3be746(0x1ae)](_0x7a6263,0x5e)))return logger[_0x3be746(0x19d)](_0x246df4[_0x3be746(0x19f)]),![];}catch(_0x5d7a40){logger[_0x3be746(0x18f)](_0x3be746(0x181)+util['format'](_0x5d7a40));}return!![];},exports[a34_0x21ee7e(0x1d8)]=(_0x3f7b90,_0x125c27,_0x128351)=>{const _0x5e6010=a34_0x21ee7e,_0x1d0122={'SFljC':function(_0x2321f5){return _0x2321f5();},'QxOri':_0x5e6010(0x194),'Oqoci':function(_0xcdd3c8,_0x3873e3){return _0xcdd3c8===_0x3873e3;},'LmArA':'chrome','DFPso':_0x5e6010(0x1d5),'SIsYC':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','BZebJ':function(_0xe8f1bd,_0x531dd5){return _0xe8f1bd===_0x531dd5;},'fnXqQ':_0x5e6010(0x1ce),'WnDaU':function(_0x3fc658,_0x240537){return _0x3fc658>_0x240537;},'pdHUF':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','BLAFK':function(_0x3ccfc6,_0x2d9745){return _0x3ccfc6(_0x2d9745);},'kPDJM':_0x5e6010(0x1be),'ZJklr':function(_0x2dd68b,_0x26f57a){return _0x2dd68b+_0x26f57a;},'HvgVu':function(_0x5a054f,_0x1f5c26){return _0x5a054f(_0x1f5c26);}};try{if(_0x1d0122[_0x5e6010(0x1cd)](isAccessibilityAutomationSession)){global[_0x5e6010(0x1a0)]=!![];!_0x3f7b90[_0x1d0122['QxOri']]&&(global['accessibilityPlatform']=![]);!(_0x1d0122['Oqoci'](_0x3f7b90[_0x5e6010(0x196)],_0x1d0122[_0x5e6010(0x1d0)])||_0x1d0122[_0x5e6010(0x1cb)](_0x3f7b90[_0x5e6010(0x196)],_0x1d0122[_0x5e6010(0x1c7)]))&&(logger[_0x5e6010(0x19d)](_0x1d0122[_0x5e6010(0x1de)]),global['accessibilityPlatform']=![]);!(_0x1d0122[_0x5e6010(0x199)](_0x3f7b90[_0x5e6010(0x1df)],_0x1d0122['fnXqQ'])||_0x1d0122[_0x5e6010(0x18b)](_0x3f7b90[_0x5e6010(0x1df)],0x5e))&&(logger['warn'](_0x1d0122[_0x5e6010(0x190)]),global[_0x5e6010(0x1a0)]=![]);!_0x1d0122[_0x5e6010(0x1e0)](isUndefined,_0x3f7b90[_0x5e6010(0x1cf)])&&(logger[_0x5e6010(0x19d)](_0x1d0122[_0x5e6010(0x1a2)]),global[_0x5e6010(0x1a0)]=![]);if(!global[_0x5e6010(0x1a0)]){_0x3f7b90[_0x1d0122[_0x5e6010(0x1a3)]]=![];const _0x40483f=_0x1d0122[_0x5e6010(0x195)](_0x125c27,_0x1d0122['HvgVu'](encodeURIComponent,JSON['stringify'](_0x3f7b90)));_0x128351&&(_0x128351[_0x5e6010(0x1b8)][_0x5e6010(0x1b1)][_0x5e6010(0x1d2)][_0x5e6010(0x1a8)][_0x5e6010(0x1ac)][_0x5e6010(0x182)]=_0x40483f,_0x128351[_0x5e6010(0x1bb)][_0x5e6010(0x1d2)][_0x5e6010(0x1a8)][_0x5e6010(0x1ac)][_0x5e6010(0x182)]=_0x40483f);}}}catch(_0x98e162){logger[_0x5e6010(0x18f)](_0x5e6010(0x184)+util['format'](_0x98e162));}};
|
|
1
|
+
const a34_0x3e1dd7=a34_0x214d;(function(_0x4eda1e,_0x1ea242){const _0x3250ec=a34_0x214d,_0x5b7d53=_0x4eda1e();while(!![]){try{const _0x34d3b7=parseInt(_0x3250ec(0x16d))/0x1*(parseInt(_0x3250ec(0x133))/0x2)+parseInt(_0x3250ec(0x166))/0x3*(parseInt(_0x3250ec(0x158))/0x4)+-parseInt(_0x3250ec(0x176))/0x5+-parseInt(_0x3250ec(0x13d))/0x6+-parseInt(_0x3250ec(0x159))/0x7*(-parseInt(_0x3250ec(0x16a))/0x8)+parseInt(_0x3250ec(0x122))/0x9+-parseInt(_0x3250ec(0x11d))/0xa*(-parseInt(_0x3250ec(0x13c))/0xb);if(_0x34d3b7===_0x1ea242)break;else _0x5b7d53['push'](_0x5b7d53['shift']());}catch(_0x5952cf){_0x5b7d53['push'](_0x5b7d53['shift']());}}}(a34_0x3223,0x79cc5));function a34_0x3223(){const _0x463282=['794923oSberz','TfBqD','jZqTe','DixoG','bestPractice','WTbxX','currentTest','No\x20accessibility\x20results\x20were\x20found.','browserName','695040SgorQg','DtNUq','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','warn','accessibilityPlatform','testInfo','method','RLULJ','use','../../helpers/accessibility-automation/helper','Fcuhb','accessibilityOptions.includeIssueType.needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','waSWH','../../helpers/helper','playwright-chromium','svAur','stringify','project','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','executeAsyncScript','306310mlNHMY','deviceName','obSAN','blgpD','browserStackExecuteDriver','2446047uYNRgU','gsUlL','replace','kWOXl','scannerProcessingTimeout','util','browserstack.accessibility','BpAZW','nBXzh','RiyLh','mtnda','accessibilityOptions','QuClD','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','performScan','evaluate','getAccessibilityResults','2SNyYws','executeScript','KZKPL','lidGJ','kkNxc','format','error','connectOptions','wsEndpoint','11pLzZZs','5826996WeBPJM','accessibilityOptions.scannerVersion','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','rPqCr','ZLCLv','alNhu','(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','(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','accessibilityOptions.includeIssueType.bestPractice','mvleD','constructor','processAccessibilityCaps','setAccessibilityCapabilities','includeIssueType','../../helpers/logger','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','Playwright','getAccessibilityResultsSummary','browser_version','browserStackEvaluate','bstackSdkArgs','debug','sNfzX','PkrEO','IubGl','latest','winstonLogger','4076dThtzJ','4907NCMIff','deqrr','env','workerInfo','chrome','needsReview','dEcbA','OaTJz','Nymot','WebDriver','nvQiQ','platformValidation','fQDgt','939uzYawX','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','browser','sGSdZ','2200qQiRKq','wcagVersion','../../helpers/accessibility-automation/scripts'];a34_0x3223=function(){return _0x463282;};return a34_0x3223();}function a34_0x214d(_0x4f602b,_0x2715c7){const _0x3223eb=a34_0x3223();return a34_0x214d=function(_0x214dd3,_0x43d206){_0x214dd3=_0x214dd3-0x112;let _0x27c626=_0x3223eb[_0x214dd3];return _0x27c626;},a34_0x214d(_0x4f602b,_0x2715c7);}const util=require(a34_0x3e1dd7(0x127)),logger=require(a34_0x3e1dd7(0x14b))[a34_0x3e1dd7(0x157)],{isAccessibilityAutomationSession}=require(a34_0x3e1dd7(0x17f)),{isUndefined}=require(a34_0x3e1dd7(0x116)),scripts=require(a34_0x3e1dd7(0x16c));exports['browserStackEvaluate']=async(_0x232fb4,_0x51ca2a,_0x29c50c={})=>{const _0x3ccfb6=a34_0x3e1dd7,_0xf9bad6={};_0xf9bad6[_0x3ccfb6(0x125)]=_0x3ccfb6(0x151);const _0x25b61c=_0xf9bad6;return await _0x232fb4[_0x3ccfb6(0x131)](_0x3ccfb6(0x144)+_0x51ca2a['replace'](/arguments/g,_0x25b61c[_0x3ccfb6(0x125)])+_0x3ccfb6(0x14c)+JSON['stringify'](_0x29c50c)+')');},exports[a34_0x3e1dd7(0x121)]=async(_0xadf2cb,_0x793214,_0x51cb16={})=>{const _0x17d9f0=a34_0x3e1dd7,_0x138aea={};_0x138aea[_0x17d9f0(0x141)]=function(_0x5872e5,_0x2632ca){return _0x5872e5===_0x2632ca;},_0x138aea[_0x17d9f0(0x12c)]=_0x17d9f0(0x162),_0x138aea['DixoG']=_0x17d9f0(0x14d),_0x138aea[_0x17d9f0(0x12b)]=_0x17d9f0(0x151);const _0x11a9ce=_0x138aea;if(_0x11a9ce[_0x17d9f0(0x141)](_0xadf2cb[_0x17d9f0(0x147)]['name'],_0x11a9ce['mtnda']))return await _0xadf2cb[_0x17d9f0(0x11c)](_0x793214,_0x51cb16);else{if(_0x11a9ce[_0x17d9f0(0x141)](_0xadf2cb[_0x17d9f0(0x147)]['name'],_0x11a9ce[_0x17d9f0(0x170)]))return await _0xadf2cb[_0x17d9f0(0x134)](_0x17d9f0(0x143)+_0x793214[_0x17d9f0(0x124)](/arguments/g,_0x11a9ce[_0x17d9f0(0x12b)])+_0x17d9f0(0x11b)+JSON[_0x17d9f0(0x119)](_0x51cb16)+')');}},exports[a34_0x3e1dd7(0x149)]=async _0x429bc8=>{const _0x2c5963=a34_0x3e1dd7,_0x2362e0={};_0x2362e0[_0x2c5963(0x15f)]='accessibilityOptions.wcagVersion',_0x2362e0[_0x2c5963(0x172)]='accessibilityOptions.scannerProcessingTimeout',_0x2362e0[_0x2c5963(0x161)]=_0x2c5963(0x145),_0x2362e0[_0x2c5963(0x142)]=_0x2c5963(0x113),_0x2362e0[_0x2c5963(0x15a)]='accessibilityOptions.authToken',_0x2362e0[_0x2c5963(0x115)]=_0x2c5963(0x13e);const _0x2b9898=_0x2362e0;_0x429bc8[_0x2c5963(0x12d)]&&(_0x429bc8[_0x2c5963(0x12d)][_0x2c5963(0x16b)]&&(_0x429bc8[_0x2b9898[_0x2c5963(0x15f)]]=_0x429bc8['accessibilityOptions'][_0x2c5963(0x16b)]),_0x429bc8['accessibilityOptions'][_0x2c5963(0x126)]&&(_0x429bc8[_0x2b9898[_0x2c5963(0x172)]]=_0x429bc8[_0x2c5963(0x12d)][_0x2c5963(0x126)]),_0x429bc8[_0x2c5963(0x12d)]['includeIssueType']&&(_0x429bc8[_0x2b9898[_0x2c5963(0x161)]]=_0x429bc8[_0x2c5963(0x12d)]['includeIssueType'][_0x2c5963(0x171)],_0x429bc8[_0x2b9898[_0x2c5963(0x142)]]=_0x429bc8[_0x2c5963(0x12d)][_0x2c5963(0x14a)][_0x2c5963(0x15e)]));const _0x495235=JSON['parse'](process[_0x2c5963(0x15b)][_0x2c5963(0x167)])['scannerVersion'];_0x429bc8[_0x2b9898[_0x2c5963(0x15a)]]=process[_0x2c5963(0x15b)]['BS_A11Y_JWT'],_0x429bc8[_0x2b9898[_0x2c5963(0x115)]]=_0x495235,delete _0x429bc8[_0x2c5963(0x12d)];},exports[a34_0x3e1dd7(0x132)]=async _0x12c11c=>{const _0x2c52ba=a34_0x3e1dd7,_0x3368a6={};_0x3368a6['IubGl']=_0x2c52ba(0x174),_0x3368a6[_0x2c52ba(0x16e)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x2b231f=_0x3368a6;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x12c11c,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x12c11c,scripts.getResults);return res;}catch{return logger[_0x2c52ba(0x139)](_0x2b231f[_0x2c52ba(0x155)]),[];}else return logger['warn'](_0x2b231f[_0x2c52ba(0x16e)]),[];},exports['performScan']=async(_0x4a3325,_0x4f9e1e='')=>{const _0x3e408f=a34_0x3e1dd7;if(global[_0x3e408f(0x17a)]){const _0x14ae3c={};return _0x14ae3c[_0x3e408f(0x17c)]=_0x4f9e1e,await exports[_0x3e408f(0x150)](_0x4a3325,scripts[_0x3e408f(0x130)],_0x14ae3c);}},exports[a34_0x3e1dd7(0x14e)]=async _0x34a23d=>{const _0x3f5fbe=a34_0x3e1dd7,_0x1778b6={};_0x1778b6[_0x3f5fbe(0x12a)]='No\x20summaryResults\x20found.',_0x1778b6[_0x3f5fbe(0x169)]=_0x3f5fbe(0x13f);const _0x46d742=_0x1778b6;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x34a23d,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x34a23d,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x3f5fbe(0x152)](_0x46d742['nBXzh']),{};}else return logger['warn'](_0x46d742['sGSdZ']),{};},exports[a34_0x3e1dd7(0x164)]=async _0xd6bfc6=>{const _0x37cdfb=a34_0x3e1dd7,_0x5d3d77={'JffNS':function(_0x44693b,_0x356528){return _0x44693b!==_0x356528;},'nvQiQ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','svAur':function(_0x37bcde,_0x1aeb31){return _0x37bcde===_0x1aeb31;},'QuClD':'chrome','OaTJz':function(_0x4f98b3,_0x2fef76){return _0x4f98b3===_0x2fef76;},'DtNUq':_0x37cdfb(0x117),'vqeoL':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','blMNC':function(_0x5d8c5a,_0x10645f){return _0x5d8c5a(_0x10645f);},'mvleD':function(_0x98460d,_0x28482d){return _0x98460d===_0x28482d;},'ghpyi':_0x37cdfb(0x156),'kkNxc':function(_0x19a6bb,_0xee110e){return _0x19a6bb>_0xee110e;},'PkrEO':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x5d3d77['JffNS'](_0xd6bfc6[_0x37cdfb(0x11e)],''))return logger[_0x37cdfb(0x179)](_0x5d3d77[_0x37cdfb(0x163)]),![];const _0x434a85=_0xd6bfc6[_0x37cdfb(0x168)];if(!(_0x5d3d77[_0x37cdfb(0x118)](_0x434a85,_0x5d3d77[_0x37cdfb(0x12e)])||_0x5d3d77[_0x37cdfb(0x160)](_0x434a85,_0x5d3d77[_0x37cdfb(0x177)])))return logger['warn'](_0x5d3d77['vqeoL']),![];const _0xa6b7f2=_0x5d3d77['blMNC'](parseInt,_0xd6bfc6['browser_version']);if(!(_0x5d3d77[_0x37cdfb(0x146)](_0xa6b7f2,_0x5d3d77['ghpyi'])||_0x5d3d77[_0x37cdfb(0x137)](_0xa6b7f2,0x5e)))return logger['warn'](_0x5d3d77[_0x37cdfb(0x154)]),![];}catch(_0x42897a){logger[_0x37cdfb(0x152)](_0x37cdfb(0x178)+util[_0x37cdfb(0x138)](_0x42897a));}return!![];},exports[a34_0x3e1dd7(0x148)]=(_0x3c8674,_0x1db025,_0x5daffc)=>{const _0x3efcd5=a34_0x3e1dd7,_0x3b18a0={'fQDgt':function(_0xf6d7a9){return _0xf6d7a9();},'jZqTe':_0x3efcd5(0x128),'blgpD':function(_0x144514,_0x14d22a){return _0x144514===_0x14d22a;},'sNfzX':_0x3efcd5(0x15d),'gsUlL':'playwright-chromium','RLULJ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','lidGJ':function(_0x4d7437,_0x3e8bb9){return _0x4d7437===_0x3e8bb9;},'CPURv':'latest','BpAZW':function(_0x52fee5,_0x225a19){return _0x52fee5>_0x225a19;},'KZKPL':_0x3efcd5(0x114),'CGmBW':function(_0x57f132,_0x216d63){return _0x57f132(_0x216d63);},'rPqCr':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','obSAN':function(_0x12dbb6,_0x14d6fe){return _0x12dbb6+_0x14d6fe;},'Fcuhb':function(_0xcbfc1f,_0x42cf4a){return _0xcbfc1f(_0x42cf4a);}};try{if(_0x3b18a0[_0x3efcd5(0x165)](isAccessibilityAutomationSession)){global[_0x3efcd5(0x17a)]=!![];!_0x3c8674[_0x3b18a0[_0x3efcd5(0x16f)]]&&(global[_0x3efcd5(0x17a)]=![]);!(_0x3b18a0['blgpD'](_0x3c8674[_0x3efcd5(0x175)],_0x3b18a0[_0x3efcd5(0x153)])||_0x3b18a0[_0x3efcd5(0x120)](_0x3c8674[_0x3efcd5(0x175)],_0x3b18a0[_0x3efcd5(0x123)]))&&(logger[_0x3efcd5(0x179)](_0x3b18a0[_0x3efcd5(0x17d)]),global[_0x3efcd5(0x17a)]=![]);!(_0x3b18a0[_0x3efcd5(0x136)](_0x3c8674[_0x3efcd5(0x14f)],_0x3b18a0['CPURv'])||_0x3b18a0[_0x3efcd5(0x129)](_0x3c8674[_0x3efcd5(0x14f)],0x5e))&&(logger[_0x3efcd5(0x179)](_0x3b18a0[_0x3efcd5(0x135)]),global['accessibilityPlatform']=![]);!_0x3b18a0['CGmBW'](isUndefined,_0x3c8674[_0x3efcd5(0x11e)])&&(logger[_0x3efcd5(0x179)](_0x3b18a0[_0x3efcd5(0x140)]),global['accessibilityPlatform']=![]);if(!global[_0x3efcd5(0x17a)]){_0x3c8674[_0x3b18a0[_0x3efcd5(0x16f)]]=![];const _0x597c20=_0x3b18a0[_0x3efcd5(0x11f)](_0x1db025,_0x3b18a0[_0x3efcd5(0x112)](encodeURIComponent,JSON['stringify'](_0x3c8674)));_0x5daffc&&(_0x5daffc[_0x3efcd5(0x173)][_0x3efcd5(0x17b)][_0x3efcd5(0x11a)][_0x3efcd5(0x17e)][_0x3efcd5(0x13a)][_0x3efcd5(0x13b)]=_0x597c20,_0x5daffc[_0x3efcd5(0x15c)]['project'][_0x3efcd5(0x17e)][_0x3efcd5(0x13a)][_0x3efcd5(0x13b)]=_0x597c20);}}}catch(_0x33bc2c){logger[_0x3efcd5(0x152)](_0x3efcd5(0x12f)+util[_0x3efcd5(0x138)](_0x33bc2c));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a35_0x46b7(_0x36729e,_0x30efdf){const _0x319909=a35_0x3199();return a35_0x46b7=function(_0x46b737,_0x5a9c3f){_0x46b737=_0x46b737-0x1b5;let _0x140732=_0x319909[_0x46b737];return _0x140732;},a35_0x46b7(_0x36729e,_0x30efdf);}const a35_0x15e037=a35_0x46b7;(function(_0x2ac93a,_0x411d11){const _0x27ea88=a35_0x46b7,_0x229d73=_0x2ac93a();while(!![]){try{const _0x523da4=-parseInt(_0x27ea88(0x20d))/0x1+-parseInt(_0x27ea88(0x256))/0x2*(-parseInt(_0x27ea88(0x1be))/0x3)+parseInt(_0x27ea88(0x223))/0x4*(-parseInt(_0x27ea88(0x21d))/0x5)+parseInt(_0x27ea88(0x233))/0x6*(-parseInt(_0x27ea88(0x20a))/0x7)+-parseInt(_0x27ea88(0x1db))/0x8*(-parseInt(_0x27ea88(0x20e))/0x9)+parseInt(_0x27ea88(0x240))/0xa*(parseInt(_0x27ea88(0x23b))/0xb)+-parseInt(_0x27ea88(0x1f6))/0xc*(-parseInt(_0x27ea88(0x231))/0xd);if(_0x523da4===_0x411d11)break;else _0x229d73['push'](_0x229d73['shift']());}catch(_0x3fd1a5){_0x229d73['push'](_0x229d73['shift']());}}}(a35_0x3199,0xabc25));function a35_0x3199(){const _0x7f094e=['pRNVW','map','getConfigPath','hlakA','LWjsa','initialize','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','../../helpers/accessibility-automation/helper','jepHS','info','finalExecution','../../helpers/BrowserStackSetup','10375284jcyXpI','hWiuu','automation','ExdUT','stringify','RMXQu','../../helpers/test-observability/error-handler','config','hjOID','splice','pXAeV','false','isTypescriptProject','skipSessionStatus','../../helpers/test-observability/constants','child_process','Error\x20in\x20getting\x20funnel\x20data\x20results','QifrN','BROWSERSTACK_TEST_OBSERVABILITY','playwright-browserstack-sdk.config.js','560sPAwBY','ukYnN','nestedKeyValue','815566zsnqyE','117XRzKco','get','test','rJVQu','MODULE','nSKag','oxGyb','DfXyO','cwd','getPackageType','apply','fkUqQ','trim','isUndefined','logLevel','5jfyyhk','unlinkSync','JnSnH','rclPm','nqUvc','Error\x20in\x20deleting\x20playwright\x20results','332212UZEjqX','testObservability','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','IBFmZ','resolvedConfigFile','exitCode','findIndex','push','pw_result.json','split','OANvE','ZkntT','BROWSERSTACK_SETUP_CONFIG_PATH','null','13BqZjos','existsSync','36258lTQztD','path','includes','serializeToYamlString','join','../../helpers/utilities','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','playwright-browserstack-sdk.config.cjs','209cUGNxj','clearTempPWConfig','accessibility','./reporter/pwUtils','.browserstack','228430zXuuoV','parse','Deleting\x20','isFalse','ZZWWf','BROWSERSTACK_TEST_ACCESSIBILITY_YML','BROWSERSTACK_PW_CONFIG_DIR','WFwvK','iIwCN','../utils/constants','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','sTPTG','error','--disable-browserstack-automation','--disable-test-observability','startsWith','zbiLh','util','zygrd','assign','plmgO','npx','34fqSnuf','exports','playwright','slice','isTrue','3|5|7|2|6|8|1|0|4','PLAYWRIGHT','dirname','VRnER','FajoT','concat','env','resolve','length','119451NeebFp','xnEAj','../../helpers/testhub/testhubHandler','win32','winstonLogger','--grep','close','markSDKSetupComplete','BROWSERSTACK_AUTOMATION','filter','ETyTf','cliConfig','ollIy','hMQjL','LXZNC','accessibilityOptions','fSBnF','../../helpers/testhub/utils','requirePWModule','Error\x20in\x20closing\x20playwright','../../helpers/test-observability/utils','RxBZC','bpWKq','--config=','TVTtU','debug','stop','testContextOptions','true','67736QJxxVD','KUpUy','errorMessage','Updated\x20config\x20file\x20name\x20to\x20-\x20','QBNfS','platform','asxeT','LFGQT','--config','filterBrowserstackArgs','BROWSERSTACK_RERUN','browserstackSetupConfig.json','Playwright\x20process\x20exited\x20with\x20code\x20','PACKAGE_TYPE','Ccukc'];a35_0x3199=function(){return _0x7f094e;};return a35_0x3199();}const fs=require('fs'),path=require(a35_0x15e037(0x234)),{spawn}=require(a35_0x15e037(0x205)),{format}=require(a35_0x15e037(0x251)),logger=require('../../helpers/logger')[a35_0x15e037(0x1c2)],{default:BrowserStackSetup}=require(a35_0x15e037(0x1f5)),helper=require('../../helpers/helper'),utilities=require(a35_0x15e037(0x238)),constants=require(a35_0x15e037(0x249)),{FRAMEWORKS}=require(a35_0x15e037(0x204)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x15e037(0x23e)),{CrashReporter}=require(a35_0x15e037(0x1fc)),{getFrameworkVersion}=require(a35_0x15e037(0x1d2)),{checkAccessibilityPlatformConfig}=require(a35_0x15e037(0x1f1)),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require(a35_0x15e037(0x1c0)),{shouldProcessEventForTesthub}=require(a35_0x15e037(0x1cf)),getUserPlaywrightConfig=async(_0x273d93,_0xa9df53)=>{const _0x2ebdc3=a35_0x15e037,_0x14c075={'LXZNC':function(_0x581bc5){return _0x581bc5();},'zbiLh':function(_0x524b5b,_0x500b89){return _0x524b5b(_0x500b89);},'ollIy':function(_0x74caf6,_0x5e079d){return _0x74caf6(_0x5e079d);},'nqUvc':_0x2ebdc3(0x227),'rVvcO':_0x2ebdc3(0x1d5)},_0x41121e=!helper[_0x2ebdc3(0x21b)](_0x273d93[_0x2ebdc3(0x1fd)]),_0xbe16c4=_0x41121e?path[_0x2ebdc3(0x1bc)](process[_0x2ebdc3(0x216)](),_0x273d93[_0x2ebdc3(0x1fd)]):process['cwd'](),{resolveConfigFile:_0x37a36d,resolveConfigLocation:_0x21248e}=helper[_0x2ebdc3(0x1d0)][_0x2ebdc3(0x218)](null,_0x14c075[_0x2ebdc3(0x1cc)](getConfigLoaderPath)),_0x56ca01=_0x37a36d?_0x14c075[_0x2ebdc3(0x250)](_0x37a36d,_0xbe16c4):helper[_0x2ebdc3(0x20c)](_0x14c075[_0x2ebdc3(0x1ca)](_0x21248e,_0xbe16c4),[_0x14c075[_0x2ebdc3(0x221)]]),_0xe85c20={};if(_0x41121e){const _0xf1cc1c=_0xa9df53[_0x2ebdc3(0x229)](_0x9690b3=>_0x9690b3==='--config'||_0x9690b3==='-c'||_0x9690b3['startsWith'](_0x2ebdc3(0x1d5)));_0xa9df53[_0x2ebdc3(0x1ff)](_0xf1cc1c,_0xa9df53[_0xf1cc1c][_0x2ebdc3(0x24f)](_0x14c075['rVvcO'])?0x1:0x2);}const _0x44357c={};return _0x44357c[_0x2ebdc3(0x234)]=_0x56ca01,_0x44357c[_0x2ebdc3(0x1fd)]=_0xe85c20,_0x44357c;},handleO11yRerun=_0x1aae45=>{const _0x24601a=a35_0x15e037,_0x2d2755={};_0x2d2755[_0x24601a(0x1bf)]=function(_0x4fdb65,_0x5aa40b){return _0x4fdb65!==_0x5aa40b;},_0x2d2755['oxGyb']=_0x24601a(0x230),_0x2d2755[_0x24601a(0x244)]=_0x24601a(0x1c3);const _0x2467ad=_0x2d2755,_0x4550de=helper['isTrue'](process[_0x24601a(0x1bb)][_0x24601a(0x1e5)]);if(_0x4550de){const _0x147efa=process[_0x24601a(0x1bb)]['BROWSERSTACK_RERUN_TESTS'],_0x4dbb06=[];if(_0x2467ad[_0x24601a(0x1bf)](_0x147efa,_0x2467ad[_0x24601a(0x214)])&&!helper[_0x24601a(0x21b)](_0x147efa)){_0x147efa[_0x24601a(0x22c)](',')[_0x24601a(0x1eb)](_0x2940cc=>{const _0x527e98=_0x24601a;_0x4dbb06[_0x527e98(0x22a)]('('+_0x2940cc[_0x527e98(0x21a)]()+')');});const _0x2e2af2='^'+_0x4dbb06['join']('|')+'$';_0x1aae45['push'](_0x2467ad[_0x24601a(0x244)],_0x2e2af2);}}},spawnOriginalProcess=_0x2a0fba=>{const _0x553cf1=a35_0x15e037,_0x2d852b={'LFGQT':function(_0x218d46,_0x157468,_0x4b00c9,_0x579a10){return _0x218d46(_0x157468,_0x4b00c9,_0x579a10);},'pXAeV':'npx','xuvWO':_0x553cf1(0x258),'ExdUT':function(_0x44cfba,_0x34526e){return _0x44cfba===_0x34526e;},'kLxUm':_0x553cf1(0x1c1),'FajoT':'inherit'};_0x2d852b[_0x553cf1(0x1e2)](spawn,_0x2d852b[_0x553cf1(0x200)],[_0x2d852b['xuvWO'],..._0x2a0fba[_0x553cf1(0x259)](0x1)],{'shell':_0x2d852b[_0x553cf1(0x1f9)](process[_0x553cf1(0x1e0)],_0x2d852b['kLxUm']),'stdio':_0x2d852b[_0x553cf1(0x1b9)],'cwd':process['cwd']()});},isTestCommand=(_0x36438d,_0x5cffea)=>{const _0x57b89c=a35_0x15e037,_0x2783a0={};_0x2783a0['hMQjL']=function(_0x22e518,_0x1bc6bc){return _0x22e518>_0x1bc6bc;},_0x2783a0['RMXQu']=function(_0x15a5c2,_0x493a95){return _0x15a5c2===_0x493a95;},_0x2783a0[_0x57b89c(0x1d6)]=_0x57b89c(0x210);const _0x27b5f9=_0x2783a0;if(_0x27b5f9[_0x57b89c(0x1cb)](_0x5cffea[_0x57b89c(0x1bd)],0x1)&&_0x27b5f9[_0x57b89c(0x1fb)](_0x5cffea[0x1],_0x27b5f9[_0x57b89c(0x1d6)]))return!![];return![];};async function run(_0x2647c8,_0x3dd561){const _0x2bd957=a35_0x15e037,_0x10a61d={'fkUqQ':_0x2bd957(0x23f),'asxeT':_0x2bd957(0x22b),'bpWKq':function(_0xbd4f34,_0x15229a){return _0xbd4f34+_0x15229a;},'CogYL':_0x2bd957(0x206),'WFwvK':_0x2bd957(0x1b5),'fSBnF':function(_0x3c7eae){return _0x3c7eae();},'hjOID':function(_0x2d4cd2,_0x1f2f43){return _0x2d4cd2+_0x1f2f43;},'rclPm':_0x2bd957(0x1d1),'hWiuu':'--disable-browserstack-automation','zygrd':_0x2bd957(0x201),'hlakA':'--disable-test-observability','QifrN':function(_0x2de130,_0x30b21b){return _0x2de130>=_0x30b21b;},'Rdlal':function(_0x618bdd,_0x146905){return _0x618bdd+_0x146905;},'ukYnN':_0x2bd957(0x222),'KUpUy':function(_0x20d162,_0xad27da,_0x5b4c8d){return _0x20d162(_0xad27da,_0x5b4c8d);},'IBFmZ':function(_0x30339c,_0x50489b){return _0x30339c(_0x50489b);},'JnSnH':'BrowserStack\x20config\x20file\x20not\x20found.','rJVQu':_0x2bd957(0x1f8),'XFsvU':function(_0x2adb56,_0x550e8f){return _0x2adb56!=_0x550e8f;},'nSKag':function(_0x141516,_0x542919){return _0x141516===_0x542919;},'LWjsa':_0x2bd957(0x1da),'Ccukc':function(_0x3a79b8,_0x4d7197){return _0x3a79b8(_0x4d7197);},'VRnER':_0x2bd957(0x1e6),'jepHS':_0x2bd957(0x23a),'plmgO':_0x2bd957(0x209),'RxBZC':function(_0x1a2419,_0x4d8053){return _0x1a2419-_0x4d8053;},'sTPTG':function(_0x448bae,_0x222fd4){return _0x448bae+_0x222fd4;},'QBNfS':_0x2bd957(0x1de),'iIwCN':function(_0x16b074,_0x5ae48a){return _0x16b074>_0x5ae48a;},'pRNVW':function(_0x50b192,_0x2cc000,_0x49afa0,_0x493a63){return _0x50b192(_0x2cc000,_0x49afa0,_0x493a63);},'ETyTf':_0x2bd957(0x255),'ElBZq':'playwright','ZkntT':_0x2bd957(0x210),'BWXID':_0x2bd957(0x1e3),'DfXyO':function(_0x35fbc0,_0x574ced){return _0x35fbc0===_0x574ced;},'yDnVU':_0x2bd957(0x1c1),'OANvE':'inherit','pQyme':_0x2bd957(0x1c4)};!helper[_0x2bd957(0x243)](process[_0x2bd957(0x1bb)][_0x2bd957(0x1c6)])&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x1c6)]=!![]);process['argv'][_0x2bd957(0x235)](_0x10a61d[_0x2bd957(0x1f7)])&&(process['env'][_0x2bd957(0x1c6)]=_0x10a61d[_0x2bd957(0x252)],_0x3dd561=_0x3dd561[_0x2bd957(0x1c7)](_0x94a54a=>_0x94a54a!==_0x2bd957(0x24d)));const _0x382201=_0x3dd561['indexOf'](_0x10a61d[_0x2bd957(0x1ed)]);_0x10a61d[_0x2bd957(0x207)](_0x382201,0x0)&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x208)]=_0x10a61d[_0x2bd957(0x252)],_0x3dd561=_0x3dd561[_0x2bd957(0x1c7)](_0x1f3fea=>_0x1f3fea!==_0x2bd957(0x24e)));try{const _0x175fa3=path[_0x2bd957(0x237)](helper['homedir'](),_0x10a61d[_0x2bd957(0x219)],_0x10a61d[_0x2bd957(0x1e1)]);fs[_0x2bd957(0x232)](_0x175fa3)&&fs[_0x2bd957(0x21e)](_0x175fa3);}catch(_0x5255f8){logger[_0x2bd957(0x1d7)](_0x10a61d['Rdlal'](_0x10a61d[_0x2bd957(0x20b)],_0x5255f8));}if(!_0x10a61d[_0x2bd957(0x1dc)](isTestCommand,_0x2647c8,_0x3dd561)){_0x10a61d[_0x2bd957(0x226)](spawnOriginalProcess,_0x3dd561);return;}const _0x420e2a=new BrowserStackSetup(_0x2647c8,FRAMEWORKS[_0x2bd957(0x1b6)]);if(!_0x420e2a[_0x2bd957(0x1fd)]){logger[_0x2bd957(0x24c)](_0x10a61d[_0x2bd957(0x21f)]);return;}await _0x420e2a[_0x2bd957(0x1ef)]();!helper[_0x2bd957(0x21b)](_0x420e2a[_0x2bd957(0x1c9)])&&_0x420e2a[_0x2bd957(0x1c9)]['has'](_0x10a61d[_0x2bd957(0x211)])&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x1c6)]=_0x420e2a[_0x2bd957(0x1c9)][_0x2bd957(0x20f)](_0x10a61d['rJVQu'])||!![]);_0x10a61d['XFsvU'](_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x224)],null)&&!helper[_0x2bd957(0x25a)](process[_0x2bd957(0x1bb)][_0x2bd957(0x208)])&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x208)]=process[_0x2bd957(0x1bb)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x420e2a['config'][_0x2bd957(0x224)]);const _0x1f2e82=!helper[_0x2bd957(0x243)](process[_0x2bd957(0x1bb)]['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x40152a=![];_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x23d)]&&(_0x40152a=!![],process[_0x2bd957(0x1bb)][_0x2bd957(0x245)]=_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x23d)]);_0x420e2a[_0x2bd957(0x1fd)]['accessibilityOptions']&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x1f0)]=JSON[_0x2bd957(0x1fa)](_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x1cd)]));const _0x11637d=_0x3dd561[_0x2bd957(0x1ba)](),_0xe8d669=await _0x10a61d[_0x2bd957(0x1dc)](getUserPlaywrightConfig,_0x2647c8,_0x3dd561);if(helper['isUndefined'](_0xe8d669)){_0x10a61d[_0x2bd957(0x226)](spawnOriginalProcess,_0x11637d);return;}const _0xfd4402=_0xe8d669[_0x2bd957(0x234)]?path[_0x2bd957(0x1b7)](_0xe8d669[_0x2bd957(0x234)]):process[_0x2bd957(0x216)]();process[_0x2bd957(0x1bb)][_0x2bd957(0x246)]=_0xfd4402,await TestHubHandler['launchBuild'](FRAMEWORKS[_0x2bd957(0x1b6)],_0x420e2a);_0x1f2e82&&_0x10a61d[_0x2bd957(0x226)](handleO11yRerun,_0x3dd561);let _0x18b7de=_0x10a61d['nSKag'](process['env'][_0x2bd957(0x245)],_0x10a61d[_0x2bd957(0x1ee)]);_0x18b7de=_0x18b7de||_0x10a61d['Ccukc'](checkAccessibilityPlatformConfig,_0x420e2a[_0x2bd957(0x1fd)]),process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x18b7de;_0x18b7de&&_0x10a61d[_0x2bd957(0x1e9)](setAccessibilityCapabilities,_0x420e2a[_0x2bd957(0x1fd)]);const _0xf1f533=path[_0x2bd957(0x237)](_0xe8d669[_0x2bd957(0x234)]?path[_0x2bd957(0x1b7)](_0xe8d669[_0x2bd957(0x234)]):process['cwd'](),_0x10a61d[_0x2bd957(0x1b8)]);fs['writeFileSync'](_0xf1f533,helper[_0x2bd957(0x236)](_0x420e2a['config'])),process['env'][_0x2bd957(0x22f)]=_0xf1f533,helper[_0x2bd957(0x23c)]();let _0x54a335='';_0x10a61d[_0x2bd957(0x213)](helper[_0x2bd957(0x217)](),constants[_0x2bd957(0x1e8)][_0x2bd957(0x212)])?_0x54a335=_0x10a61d[_0x2bd957(0x1f2)]:_0x54a335=_0x10a61d[_0x2bd957(0x254)];let _0x2893b3='';if(helper[_0x2bd957(0x202)](_0xe8d669[_0x2bd957(0x234)])){_0x2893b3=_0x2bd957(0x24a);const _0x48c531=_0x54a335[_0x2bd957(0x22c)]('.');_0x48c531[_0x10a61d[_0x2bd957(0x1d3)](_0x48c531[_0x2bd957(0x1bd)],0x1)]='ts',_0x54a335=_0x48c531[_0x2bd957(0x237)]('.'),logger[_0x2bd957(0x1d7)](_0x10a61d[_0x2bd957(0x24b)](_0x10a61d[_0x2bd957(0x1df)],_0x54a335));}else _0x2893b3='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x21d51c=path[_0x2bd957(0x237)](_0xe8d669['path']?path[_0x2bd957(0x1b7)](_0xe8d669['path']):process[_0x2bd957(0x216)](),_0x54a335);let _0xf647e0=_0xe8d669[_0x2bd957(0x234)]?_0xe8d669['path']:'';_0xf647e0=_0x10a61d[_0x2bd957(0x248)](_0xf647e0[_0x2bd957(0x1bd)],0x0)?path[_0x2bd957(0x1bc)](_0xf647e0):'',process[_0x2bd957(0x1bb)]['USER_CONFIG_DETAILS_PATH']=_0xf647e0;const _0xfa8570=helper['getProxyUrl'](_0x420e2a['config']);_0xfa8570&&(_0x2893b3=_0x10a61d[_0x2bd957(0x1fe)](_0x2bd957(0x239)+_0xfa8570+_0x2bd957(0x225),_0x2893b3));helper[_0x2bd957(0x1e4)]({},_0x3dd561),fs['writeFileSync'](_0x21d51c,_0x2893b3),helper[_0x2bd957(0x1c5)]();const _0x1474f6=_0x10a61d[_0x2bd957(0x1ea)](spawn,_0x10a61d[_0x2bd957(0x1c8)],[_0x10a61d['ElBZq'],_0x10a61d[_0x2bd957(0x22e)],_0x10a61d['BWXID'],_0x21d51c,..._0x3dd561[_0x2bd957(0x259)](0x2)],{'shell':_0x10a61d[_0x2bd957(0x215)](process[_0x2bd957(0x1e0)],_0x10a61d['yDnVU']),'stdio':_0x10a61d[_0x2bd957(0x22d)],'cwd':process[_0x2bd957(0x216)](),'env':Object[_0x2bd957(0x253)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2bd957(0x1ec)](_0x2647c8),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x1d9)][_0x2bd957(0x203)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x1d9)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x21c)]})}),_0x5206b4=()=>{const _0x1fe073=_0x2bd957;try{const _0x24cc5f=path['join'](helper['homedir'](),_0x10a61d[_0x1fe073(0x219)],_0x10a61d['asxeT']);if(fs[_0x1fe073(0x232)](_0x24cc5f)){let _0x49fe11=fs['readFileSync'](_0x24cc5f);_0x49fe11=JSON[_0x1fe073(0x241)](_0x49fe11),_0x420e2a[_0x1fe073(0x1dd)]=_0x49fe11,fs[_0x1fe073(0x21e)](_0x24cc5f);}}catch(_0x4b5577){logger[_0x1fe073(0x1d7)](_0x10a61d[_0x1fe073(0x1d4)](_0x10a61d['CogYL'],_0x4b5577));}};_0x1474f6['on'](_0x10a61d['pQyme'],async _0x269645=>{const _0x171a35=_0x2bd957;try{const _0x14e68d=_0x10a61d[_0x171a35(0x247)][_0x171a35(0x22c)]('|');let _0x64dbe2=0x0;while(!![]){switch(_0x14e68d[_0x64dbe2++]){case'0':logger[_0x171a35(0x1d7)](_0x171a35(0x242)+_0xf1f533);continue;case'1':fs[_0x171a35(0x21e)](_0x21d51c);continue;case'2':process[_0x171a35(0x228)]=_0x269645;continue;case'3':_0x10a61d[_0x171a35(0x1ce)](_0x5206b4);continue;case'4':fs['unlinkSync'](_0xf1f533);continue;case'5':await TestHubHandler[_0x171a35(0x1d8)]();continue;case'6':logger[_0x171a35(0x1d7)](_0x171a35(0x1e7)+_0x269645);continue;case'7':await utilities[_0x171a35(0x1f4)](_0x420e2a);continue;case'8':logger[_0x171a35(0x1f3)](_0x171a35(0x242)+_0x21d51c);continue;}break;}}catch(_0x189c20){logger[_0x171a35(0x1d7)](_0x10a61d[_0x171a35(0x1fe)](_0x10a61d[_0x171a35(0x220)],_0x189c20));}});}module[a35_0x15e037(0x257)]=run;
|
|
2
|
+
'use strict';const a35_0x1e0bea=a35_0xdcc9;function a35_0xdcc9(_0x2ac689,_0x2de421){const _0x44e039=a35_0x44e0();return a35_0xdcc9=function(_0xdcc90d,_0x5af65b){_0xdcc90d=_0xdcc90d-0x1af;let _0x3941f=_0x44e039[_0xdcc90d];return _0x3941f;},a35_0xdcc9(_0x2ac689,_0x2de421);}(function(_0x5d1503,_0x236be0){const _0x48b06b=a35_0xdcc9,_0x4358ef=_0x5d1503();while(!![]){try{const _0x243707=parseInt(_0x48b06b(0x23d))/0x1*(-parseInt(_0x48b06b(0x221))/0x2)+parseInt(_0x48b06b(0x212))/0x3+parseInt(_0x48b06b(0x1b6))/0x4+-parseInt(_0x48b06b(0x1f2))/0x5*(-parseInt(_0x48b06b(0x230))/0x6)+-parseInt(_0x48b06b(0x1f0))/0x7+parseInt(_0x48b06b(0x225))/0x8*(parseInt(_0x48b06b(0x20d))/0x9)+-parseInt(_0x48b06b(0x1b4))/0xa*(-parseInt(_0x48b06b(0x1bf))/0xb);if(_0x243707===_0x236be0)break;else _0x4358ef['push'](_0x4358ef['shift']());}catch(_0x48d837){_0x4358ef['push'](_0x4358ef['shift']());}}}(a35_0x44e0,0x2860a));const fs=require('fs'),path=require(a35_0x1e0bea(0x203)),{spawn}=require(a35_0x1e0bea(0x1e9)),{format}=require('util'),logger=require(a35_0x1e0bea(0x1d7))['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x1e0bea(0x1d1)),helper=require(a35_0x1e0bea(0x1fd)),utilities=require(a35_0x1e0bea(0x240)),constants=require(a35_0x1e0bea(0x209)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x1e0bea(0x1da)),{CrashReporter}=require(a35_0x1e0bea(0x1d9)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{checkAccessibilityPlatformConfig}=require(a35_0x1e0bea(0x247)),{setAccessibilityCapabilities}=require(a35_0x1e0bea(0x244)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x1e0bea(0x1c3)),getUserPlaywrightConfig=async(_0x158264,_0x18a9c7)=>{const _0x4df3bc=a35_0x1e0bea,_0x5b2b57={'ImYQw':function(_0x3f074c){return _0x3f074c();},'LISbO':function(_0x50c47f,_0x5831d0){return _0x50c47f(_0x5831d0);},'CLeZg':function(_0x252f74,_0x4f6a8e){return _0x252f74(_0x4f6a8e);},'yvcEc':_0x4df3bc(0x23c),'PvhkE':'--config='},_0x2c2f28=!helper[_0x4df3bc(0x24b)](_0x158264[_0x4df3bc(0x1ec)]),_0x449d40=_0x2c2f28?path[_0x4df3bc(0x22e)](process[_0x4df3bc(0x246)](),_0x158264[_0x4df3bc(0x1ec)]):process[_0x4df3bc(0x246)](),{resolveConfigFile:_0x24d9cf,resolveConfigLocation:_0x1a683d}=helper[_0x4df3bc(0x1c2)]['apply'](null,_0x5b2b57[_0x4df3bc(0x213)](getConfigLoaderPath)),_0x475861=_0x24d9cf?_0x5b2b57[_0x4df3bc(0x224)](_0x24d9cf,_0x449d40):helper['nestedKeyValue'](_0x5b2b57[_0x4df3bc(0x208)](_0x1a683d,_0x449d40),[_0x5b2b57[_0x4df3bc(0x1cb)]]),_0x520775={};if(_0x2c2f28){const _0x5c2eef=_0x18a9c7[_0x4df3bc(0x235)](_0x5d3914=>_0x5d3914==='--config'||_0x5d3914==='-c'||_0x5d3914[_0x4df3bc(0x1df)](_0x4df3bc(0x22c)));_0x18a9c7[_0x4df3bc(0x21b)](_0x5c2eef,_0x18a9c7[_0x5c2eef][_0x4df3bc(0x1df)](_0x5b2b57[_0x4df3bc(0x1c0)])?0x1:0x2);}const _0x417156={};return _0x417156[_0x4df3bc(0x203)]=_0x475861,_0x417156[_0x4df3bc(0x1ec)]=_0x520775,_0x417156;},handleO11yRerun=_0x5e3c91=>{const _0x4f44dd=a35_0x1e0bea,_0x1d042f={};_0x1d042f['cZeip']=function(_0x538830,_0x397c50){return _0x538830!==_0x397c50;},_0x1d042f[_0x4f44dd(0x1c8)]='null',_0x1d042f[_0x4f44dd(0x21e)]=_0x4f44dd(0x210);const _0x403298=_0x1d042f,_0x3d72c7=helper[_0x4f44dd(0x1b8)](process[_0x4f44dd(0x219)][_0x4f44dd(0x237)]);if(_0x3d72c7){const _0x5f1cad=process['env'][_0x4f44dd(0x22f)],_0x190361=[];if(_0x403298[_0x4f44dd(0x216)](_0x5f1cad,_0x403298[_0x4f44dd(0x1c8)])&&!helper[_0x4f44dd(0x24b)](_0x5f1cad)){_0x5f1cad['split'](',')[_0x4f44dd(0x206)](_0x2e7a0f=>{_0x190361['push']('('+_0x2e7a0f['trim']()+')');});const _0x6c56fa='^'+_0x190361['join']('|')+'$';_0x5e3c91[_0x4f44dd(0x1f9)](_0x403298['vwKgs'],_0x6c56fa);}}},spawnOriginalProcess=_0x4dc810=>{const _0x20d8d7=a35_0x1e0bea,_0x2919dc={'ircIK':function(_0x30e9b6,_0x3353d8,_0x3f5224,_0x7332e0){return _0x30e9b6(_0x3353d8,_0x3f5224,_0x7332e0);},'NZWhT':_0x20d8d7(0x1e1),'bYRfk':_0x20d8d7(0x1e2),'tMDof':function(_0x214fbf,_0x560458){return _0x214fbf===_0x560458;},'aWNYN':_0x20d8d7(0x1eb),'yuqMq':'inherit'};_0x2919dc['ircIK'](spawn,_0x2919dc[_0x20d8d7(0x21d)],[_0x2919dc['bYRfk'],..._0x4dc810['slice'](0x1)],{'shell':_0x2919dc[_0x20d8d7(0x1bb)](process[_0x20d8d7(0x1e5)],_0x2919dc[_0x20d8d7(0x1dd)]),'stdio':_0x2919dc[_0x20d8d7(0x222)],'cwd':process[_0x20d8d7(0x246)]()});},isTestCommand=(_0x3a27e6,_0x149099)=>{const _0x11edfa=a35_0x1e0bea,_0x46d920={};_0x46d920['LufId']=function(_0x2f21f3,_0x29fe8a){return _0x2f21f3>_0x29fe8a;},_0x46d920['beHdB']=function(_0x342ed8,_0x3cff59){return _0x342ed8===_0x3cff59;},_0x46d920['BexTt']=_0x11edfa(0x205);const _0x3a674d=_0x46d920;if(_0x3a674d[_0x11edfa(0x23b)](_0x149099[_0x11edfa(0x227)],0x1)&&_0x3a674d[_0x11edfa(0x236)](_0x149099[0x1],_0x3a674d[_0x11edfa(0x229)]))return!![];return![];};function a35_0x44e0(){const _0x4bc44a=['BexTt','get','VfDZU','--config=','inherit','resolve','BROWSERSTACK_RERUN_TESTS','438WJbsVd','pw_result.json','ShygW','exports','VsHSC','findIndex','beHdB','BROWSERSTACK_RERUN','BROWSERSTACK_AUTOMATION','gDFhz','CqtOv','LufId','resolvedConfigFile','21xbqYgA','nvbyz','accessibility','../../helpers/utilities','Error\x20in\x20closing\x20playwright','HkGvq','jSPCn','./accessibility-helper','concat','cwd','../../helpers/accessibility-automation/helper','skipSessionName','BROWSERSTACK_TEST_ACCESSIBILITY_YML','getPackageType','isUndefined','existsSync','parse','UNafz','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','stop','8290nPexWt','errorMessage','719128ILEklM','rPftF','isTrue','BJsoo','markSDKSetupComplete','tMDof','cZQms','close','eJyrg','2816oejZXP','PvhkE','Error\x20in\x20deleting\x20playwright\x20results','requirePWModule','../../helpers/testhub/utils','Playwright\x20process\x20exited\x20with\x20code\x20','XAXhD','ZPRgR','includes','Cjvly','xswLa','assign','yvcEc','cliConfig','testContextOptions','getProxyUrl','false','launchBuild','../../helpers/BrowserStackSetup','knBnt','split','initialize','uacRk','isFalse','../../helpers/logger','Error\x20in\x20getting\x20funnel\x20data\x20results','../../helpers/test-observability/error-handler','./reporter/pwUtils','join','slice','aWNYN','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','startsWith','filterBrowserstackArgs','npx','playwright','filter','accessibilityOptions','platform','uQhGx','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','dirname','child_process','error','win32','config','gyHJi','IjVSr','eXzKs','1960875YKVAFQ','MODULE','4150jVRxkN','5|8|2|6|3|1|7|4|0','BROWSERSTACK_TEST_OBSERVABILITY','true','automation','isTypescriptProject','info','push','homedir','MZumI','--config','../../helpers/helper','hoReW','testObservability','clearTempPWConfig','USER_CONFIG_DETAILS_PATH','serializeToYamlString','path','unlinkSync','test','map','RnxHq','CLeZg','../utils/constants','OZwGu','debug','BROWSERSTACK_PW_CONFIG_DIR','326997GhzfoJ','finalExecution','PACKAGE_TYPE','--grep','browserstackSetupConfig.json','75936vyBtqg','ImYQw','hNYXp','writeFileSync','cZeip','YCiDw','has','env','OsyBb','splice','eKoZh','NZWhT','vwKgs','Deleting\x20','getConfigPath','10006LfABNJ','yuqMq','InToI','LISbO','16foqRmC','--disable-browserstack-automation','length','readFileSync'];a35_0x44e0=function(){return _0x4bc44a;};return a35_0x44e0();}async function run(_0xc8b456,_0x4c6347){const _0x25e04e=a35_0x1e0bea,_0x2a7be8={'InToI':'.browserstack','eXzKs':_0x25e04e(0x231),'bYaUj':function(_0x15d0d3,_0x58d620){return _0x15d0d3+_0x58d620;},'gDFhz':_0x25e04e(0x1d8),'hoReW':_0x25e04e(0x1f3),'UNafz':function(_0x14c446){return _0x14c446();},'rPftF':_0x25e04e(0x241),'jSPCn':'--disable-browserstack-automation','CqtOv':_0x25e04e(0x1cf),'mfQJM':'--disable-test-observability','dnrEV':function(_0x2b44a5,_0x3cc895){return _0x2b44a5>=_0x3cc895;},'MZumI':function(_0x2f3167,_0x1c6f56){return _0x2f3167+_0x1c6f56;},'XAXhD':_0x25e04e(0x1c1),'hNYXp':function(_0x2283d8,_0x46b087,_0x2bb3c8){return _0x2283d8(_0x46b087,_0x2bb3c8);},'IjVSr':function(_0xd30f14,_0x43201f){return _0xd30f14(_0x43201f);},'HkGvq':'BrowserStack\x20config\x20file\x20not\x20found.','gyHJi':_0x25e04e(0x1f6),'xswLa':function(_0x49f88c,_0x26811b){return _0x49f88c!=_0x26811b;},'RnxHq':function(_0x5825f1,_0x5c235e,_0x355661){return _0x5825f1(_0x5c235e,_0x355661);},'BJsoo':function(_0x1867ea,_0x27e4f0){return _0x1867ea===_0x27e4f0;},'Hniuj':_0x25e04e(0x1f5),'eJyrg':function(_0x42f08c,_0x357414){return _0x42f08c(_0x357414);},'cZQms':function(_0x497990,_0x3aecde){return _0x497990(_0x3aecde);},'ShygW':_0x25e04e(0x211),'VsHSC':'playwright-browserstack-sdk.config.cjs','OsyBb':'playwright-browserstack-sdk.config.js','uQhGx':function(_0x404090,_0xdc60a1){return _0x404090-_0xdc60a1;},'Bufue':function(_0x4980fc,_0xd37ca6){return _0x4980fc+_0xd37ca6;},'nvbyz':'Updated\x20config\x20file\x20name\x20to\x20-\x20','OZwGu':function(_0x495493,_0x9bb696){return _0x495493>_0x9bb696;},'uacRk':function(_0xf316b0,_0x10cb30,_0x93b237,_0x25236f){return _0xf316b0(_0x10cb30,_0x93b237,_0x25236f);},'YCiDw':_0x25e04e(0x1e1),'ImGuA':'playwright','VfDZU':_0x25e04e(0x205),'ZPRgR':_0x25e04e(0x1fc),'knBnt':function(_0x2e50f6,_0x3a48e1){return _0x2e50f6===_0x3a48e1;},'eKoZh':_0x25e04e(0x1eb),'TNsLu':_0x25e04e(0x22d),'JOTtt':_0x25e04e(0x1bd)};!helper[_0x25e04e(0x1d6)](process['env']['BROWSERSTACK_AUTOMATION'])&&(process[_0x25e04e(0x219)][_0x25e04e(0x238)]=!![]);process['argv'][_0x25e04e(0x1c7)](_0x2a7be8[_0x25e04e(0x243)])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x2a7be8['CqtOv'],_0x4c6347=_0x4c6347['filter'](_0x49124f=>_0x49124f!==_0x25e04e(0x226)));const _0x1a6442=_0x4c6347['indexOf'](_0x2a7be8['mfQJM']);_0x2a7be8['dnrEV'](_0x1a6442,0x0)&&(process[_0x25e04e(0x219)][_0x25e04e(0x1f4)]=_0x2a7be8[_0x25e04e(0x23a)],_0x4c6347=_0x4c6347[_0x25e04e(0x1e3)](_0x396700=>_0x396700!=='--disable-test-observability'));try{const _0x215ed4=path['join'](helper[_0x25e04e(0x1fa)](),_0x2a7be8[_0x25e04e(0x223)],_0x2a7be8[_0x25e04e(0x1ef)]);fs['existsSync'](_0x215ed4)&&fs[_0x25e04e(0x204)](_0x215ed4);}catch(_0x32052b){logger[_0x25e04e(0x20b)](_0x2a7be8[_0x25e04e(0x1fb)](_0x2a7be8[_0x25e04e(0x1c5)],_0x32052b));}if(!_0x2a7be8[_0x25e04e(0x214)](isTestCommand,_0xc8b456,_0x4c6347)){_0x2a7be8[_0x25e04e(0x1ee)](spawnOriginalProcess,_0x4c6347);return;}const _0x4b9e6d=new BrowserStackSetup(_0xc8b456,FRAMEWORKS['PLAYWRIGHT']);if(!_0x4b9e6d[_0x25e04e(0x1ec)]){logger[_0x25e04e(0x1ea)](_0x2a7be8[_0x25e04e(0x242)]);return;}await _0x4b9e6d[_0x25e04e(0x1d4)]();!helper[_0x25e04e(0x24b)](_0x4b9e6d[_0x25e04e(0x1cc)])&&_0x4b9e6d[_0x25e04e(0x1cc)][_0x25e04e(0x218)](_0x2a7be8['gyHJi'])&&(process[_0x25e04e(0x219)][_0x25e04e(0x238)]=_0x4b9e6d[_0x25e04e(0x1cc)][_0x25e04e(0x22a)](_0x2a7be8[_0x25e04e(0x1ed)])||!![]);_0x2a7be8[_0x25e04e(0x1c9)](_0x4b9e6d['config'][_0x25e04e(0x1ff)],null)&&!helper[_0x25e04e(0x1b8)](process[_0x25e04e(0x219)][_0x25e04e(0x1f4)])&&(process[_0x25e04e(0x219)][_0x25e04e(0x1f4)]=process[_0x25e04e(0x219)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x4b9e6d['config'][_0x25e04e(0x1ff)]);const _0x2e055d=!helper[_0x25e04e(0x1d6)](process['env'][_0x25e04e(0x1f4)]);let _0x5934c2=![];_0x4b9e6d[_0x25e04e(0x1ec)][_0x25e04e(0x23f)]&&(_0x5934c2=!![],process[_0x25e04e(0x219)][_0x25e04e(0x249)]=_0x4b9e6d['config'][_0x25e04e(0x23f)]);_0x4b9e6d[_0x25e04e(0x1ec)]['accessibilityOptions']&&(process[_0x25e04e(0x219)][_0x25e04e(0x1de)]=JSON['stringify'](_0x4b9e6d[_0x25e04e(0x1ec)][_0x25e04e(0x1e4)]));const _0x290264=_0x4c6347[_0x25e04e(0x245)](),_0x5a3dd0=await _0x2a7be8[_0x25e04e(0x207)](getUserPlaywrightConfig,_0xc8b456,_0x4c6347);if(helper[_0x25e04e(0x24b)](_0x5a3dd0)){_0x2a7be8[_0x25e04e(0x1ee)](spawnOriginalProcess,_0x290264);return;}const _0x3ba480=_0x5a3dd0[_0x25e04e(0x203)]?path[_0x25e04e(0x1e8)](_0x5a3dd0[_0x25e04e(0x203)]):process[_0x25e04e(0x246)]();process[_0x25e04e(0x219)][_0x25e04e(0x20c)]=_0x3ba480,await TestHubHandler[_0x25e04e(0x1d0)](FRAMEWORKS['PLAYWRIGHT'],_0x4b9e6d);_0x2e055d&&_0x2a7be8[_0x25e04e(0x1ee)](handleO11yRerun,_0x4c6347);let _0x3aeea0=_0x2a7be8[_0x25e04e(0x1b9)](process[_0x25e04e(0x219)][_0x25e04e(0x249)],_0x2a7be8['Hniuj']);_0x3aeea0=_0x3aeea0||_0x2a7be8[_0x25e04e(0x1be)](checkAccessibilityPlatformConfig,_0x4b9e6d['config']),process['env'][_0x25e04e(0x249)]=_0x3aeea0;_0x3aeea0&&_0x2a7be8[_0x25e04e(0x1bc)](setAccessibilityCapabilities,_0x4b9e6d[_0x25e04e(0x1ec)]);const _0x14f3ff=path[_0x25e04e(0x1db)](_0x5a3dd0['path']?path['dirname'](_0x5a3dd0[_0x25e04e(0x203)]):process[_0x25e04e(0x246)](),_0x2a7be8[_0x25e04e(0x232)]);fs[_0x25e04e(0x215)](_0x14f3ff,helper[_0x25e04e(0x202)](_0x4b9e6d['config'])),process[_0x25e04e(0x219)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x14f3ff,helper[_0x25e04e(0x200)]();let _0x115f3f='';_0x2a7be8[_0x25e04e(0x1b9)](helper[_0x25e04e(0x24a)](),constants[_0x25e04e(0x20f)][_0x25e04e(0x1f1)])?_0x115f3f=_0x2a7be8[_0x25e04e(0x234)]:_0x115f3f=_0x2a7be8[_0x25e04e(0x21a)];let _0x488d7a='';if(helper[_0x25e04e(0x1f7)](_0x5a3dd0['path'])){_0x488d7a=_0x25e04e(0x1e7);const _0x3c5399=_0x115f3f[_0x25e04e(0x1d3)]('.');_0x3c5399[_0x2a7be8[_0x25e04e(0x1e6)](_0x3c5399[_0x25e04e(0x227)],0x1)]='ts',_0x115f3f=_0x3c5399[_0x25e04e(0x1db)]('.'),logger[_0x25e04e(0x20b)](_0x2a7be8['Bufue'](_0x2a7be8[_0x25e04e(0x23e)],_0x115f3f));}else _0x488d7a='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x449df3=path[_0x25e04e(0x1db)](_0x5a3dd0['path']?path[_0x25e04e(0x1e8)](_0x5a3dd0['path']):process[_0x25e04e(0x246)](),_0x115f3f);let _0x907941=_0x5a3dd0[_0x25e04e(0x203)]?_0x5a3dd0[_0x25e04e(0x203)]:'';_0x907941=_0x2a7be8[_0x25e04e(0x20a)](_0x907941[_0x25e04e(0x227)],0x0)?path[_0x25e04e(0x22e)](_0x907941):'',process['env'][_0x25e04e(0x201)]=_0x907941;const _0x1ef493=helper[_0x25e04e(0x1ce)](_0x4b9e6d['config']);_0x1ef493&&(_0x488d7a=_0x2a7be8['Bufue'](_0x25e04e(0x1b2)+_0x1ef493+'\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();',_0x488d7a));helper[_0x25e04e(0x1e0)]({},_0x4c6347),fs[_0x25e04e(0x215)](_0x449df3,_0x488d7a),helper[_0x25e04e(0x1ba)]();const _0x18e681=_0x2a7be8[_0x25e04e(0x1d5)](spawn,_0x2a7be8[_0x25e04e(0x217)],[_0x2a7be8['ImGuA'],_0x2a7be8[_0x25e04e(0x22b)],_0x2a7be8[_0x25e04e(0x1c6)],_0x449df3,..._0x4c6347[_0x25e04e(0x1dc)](0x2)],{'shell':_0x2a7be8[_0x25e04e(0x1d2)](process['platform'],_0x2a7be8[_0x25e04e(0x21c)]),'stdio':_0x2a7be8['TNsLu'],'cwd':process[_0x25e04e(0x246)](),'env':Object[_0x25e04e(0x1ca)]({},process[_0x25e04e(0x219)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x25e04e(0x220)](_0xc8b456),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4b9e6d[_0x25e04e(0x1ec)][_0x25e04e(0x1cd)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4b9e6d[_0x25e04e(0x1ec)][_0x25e04e(0x1cd)][_0x25e04e(0x248)],'BROWSERSTACK_LOG_LEVEL':_0x4b9e6d[_0x25e04e(0x1ec)]['logLevel']})}),_0x4ac69e=()=>{const _0x4581cc=_0x25e04e;try{const _0x4188d5=path['join'](helper[_0x4581cc(0x1fa)](),_0x2a7be8[_0x4581cc(0x223)],_0x2a7be8[_0x4581cc(0x1ef)]);if(fs[_0x4581cc(0x1af)](_0x4188d5)){let _0x22cf17=fs[_0x4581cc(0x228)](_0x4188d5);_0x22cf17=JSON[_0x4581cc(0x1b0)](_0x22cf17),_0x4b9e6d[_0x4581cc(0x1b5)]=_0x22cf17,fs[_0x4581cc(0x204)](_0x4188d5);}}catch(_0x3d0075){logger[_0x4581cc(0x20b)](_0x2a7be8['bYaUj'](_0x2a7be8[_0x4581cc(0x239)],_0x3d0075));}};_0x18e681['on'](_0x2a7be8['JOTtt'],async _0xd7f816=>{const _0x56f390=_0x25e04e;try{const _0x28b27b=_0x2a7be8[_0x56f390(0x1fe)][_0x56f390(0x1d3)]('|');let _0xf58ce5=0x0;while(!![]){switch(_0x28b27b[_0xf58ce5++]){case'0':fs[_0x56f390(0x204)](_0x14f3ff);continue;case'1':logger[_0x56f390(0x1f8)](_0x56f390(0x21f)+_0x449df3);continue;case'2':await utilities[_0x56f390(0x20e)](_0x4b9e6d);continue;case'3':logger[_0x56f390(0x20b)](_0x56f390(0x1c4)+_0xd7f816);continue;case'4':logger[_0x56f390(0x20b)](_0x56f390(0x21f)+_0x14f3ff);continue;case'5':_0x2a7be8[_0x56f390(0x1b1)](_0x4ac69e);continue;case'6':process['exitCode']=_0xd7f816;continue;case'7':fs['unlinkSync'](_0x449df3);continue;case'8':await TestHubHandler[_0x56f390(0x1b3)]();continue;}break;}}catch(_0x43b9a4){logger['debug'](_0x2a7be8['bYaUj'](_0x2a7be8[_0x56f390(0x1b7)],_0x43b9a4));}});}module[a35_0x1e0bea(0x233)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a36_0x1f87(_0x2e0ae9,_0x45dff0){const _0x18d619=a36_0x18d6();return a36_0x1f87=function(_0x1f87c6,_0x5ad14d){_0x1f87c6=_0x1f87c6-0x8c;let _0x82c0bd=_0x18d619[_0x1f87c6];return _0x82c0bd;},a36_0x1f87(_0x2e0ae9,_0x45dff0);}const a36_0x3eed4b=a36_0x1f87;(function(_0x4b123a,_0x4c7b1a){const _0x4dd8e4=a36_0x1f87,_0x45a9fd=_0x4b123a();while(!![]){try{const _0x2e51c4=-parseInt(_0x4dd8e4(0x91))/0x1+-parseInt(_0x4dd8e4(0x94))/0x2*(parseInt(_0x4dd8e4(0x9f))/0x3)+parseInt(_0x4dd8e4(0x97))/0x4+parseInt(_0x4dd8e4(0xaf))/0x5*(-parseInt(_0x4dd8e4(0x98))/0x6)+parseInt(_0x4dd8e4(0xa2))/0x7*(parseInt(_0x4dd8e4(0xa8))/0x8)+parseInt(_0x4dd8e4(0xa0))/0x9+-parseInt(_0x4dd8e4(0x99))/0xa*(parseInt(_0x4dd8e4(0xb6))/0xb);if(_0x2e51c4===_0x4c7b1a)break;else _0x45a9fd['push'](_0x45a9fd['shift']());}catch(_0x584087){_0x45a9fd['push'](_0x45a9fd['shift']());}}}(a36_0x18d6,0xb5ed9));const util=require('util'),child_process=require(a36_0x3eed4b(0x9b)),{FRAMEWORKS}=require(a36_0x3eed4b(0xab)),{getFrameworkVersion,debug}=require(a36_0x3eed4b(0x93)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a36_0x3eed4b(0x96)),logger=require(a36_0x3eed4b(0x8d))[a36_0x3eed4b(0xa7)];module['exports']=async function(_0x2a8e03){const _0x528cc5=a36_0x3eed4b,_0x3ef09b={'WPifG':function(_0x48abf6,_0x26f70e){return _0x48abf6(_0x26f70e);},'WZOXH':function(_0x51d7c2){return _0x51d7c2();},'ymNeQ':_0x528cc5(0xb2),'boPLG':function(_0x4da559){return _0x4da559();},'frtIg':function(_0x5fab0f,_0xbbbc94){return _0x5fab0f(_0xbbbc94);},'bUHrA':_0x528cc5(0x8e),'cuNox':function(_0x169b64,_0x57eff2){return _0x169b64(_0x57eff2);},'ephqb':function(_0x307777,_0x480775){return _0x307777>=_0x480775;},'sCIIu':_0x528cc5(0xa3),'HUley':function(_0x45f74e,_0x50f664,_0x3fd2f1){return _0x45f74e(_0x50f664,_0x3fd2f1);},'PPuNA':function(_0x49ca25,_0x12b041){return _0x49ca25!==_0x12b041;},'TddoR':_0x528cc5(0xaa),'kaMEl':'Not\x20able\x20to\x20import\x20globalSetup'},_0x404779=child_process['fork'];if(helper[_0x528cc5(0xae)]())try{_0x3ef09b['WZOXH'](mockIsWorkerRedundant);}catch(_0x158c00){logger['debug'](_0x528cc5(0x9c)+util[_0x528cc5(0x9d)](_0x158c00));}child_process['fork']=function(){const _0x2b7a5f=_0x528cc5;return _0x3ef09b[_0x2b7a5f(0xad)](debug,_0x2b7a5f(0xa4)+arguments[0x0]),arguments[0x0][_0x2b7a5f(0xa1)](_0x3ef09b[_0x2b7a5f(0x9e)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x3ef09b[_0x2b7a5f(0xb8)]):logger[_0x2b7a5f(0xa5)](_0x2b7a5f(0x8c)+_0x3ef09b['boPLG'](getForkProcessPath)+_0x2b7a5f(0x92)),_0x404779['apply'](null,arguments);};if(process['env'][_0x528cc5(0xb3)]){_0x3ef09b[_0x528cc5(0x95)](debug,_0x3ef09b[_0x528cc5(0xb0)]);try{const {loadGlobalHook:_0x2a7770}=helper[_0x528cc5(0x90)][_0x528cc5(0xb1)](null,_0x3ef09b[_0x528cc5(0x9e)](getLoadUtilsPath)),_0x325d71=_0x3ef09b[_0x528cc5(0xac)](getFrameworkVersion,FRAMEWORKS[_0x528cc5(0x9a)]);let _0x3b3239=_0x2a8e03;if(_0x3ef09b[_0x528cc5(0x8f)](helper['compareVersions'](_0x325d71,_0x3ef09b[_0x528cc5(0xb7)]),0x0)){const _0x3b1643={};_0x3b1643['config']=_0x2a8e03,_0x3b3239=_0x3b1643;}const _0x599384=await _0x3ef09b[_0x528cc5(0xa9)](_0x2a7770,_0x3b3239,process[_0x528cc5(0xa6)][_0x528cc5(0xb3)]);if(_0x3ef09b[_0x528cc5(0xb5)](typeof _0x599384,_0x3ef09b['TddoR']))throw new Error(_0x3ef09b['kaMEl']);return _0x599384[_0x528cc5(0xb1)](null,arguments);}catch(_0x30043e){_0x3ef09b[_0x528cc5(0xac)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x30043e[_0x528cc5(0xb4)]());}}};function a36_0x18d6(){const _0x28b072=['error','env','winstonLogger','1070960BGFcZs','HUley','function','../../helpers/test-observability/constants','cuNox','WPifG','isHandlePWErrorSet','162280RCucPs','bUHrA','apply','./mock-process.js','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','toString','PPuNA','11JyuFIN','sCIIu','ymNeQ','Path\x20','../../helpers/logger','Running\x20existing\x20global\x20setup','ephqb','requirePWModule','460688lHlMtB','\x20is\x20not\x20found','../../helpers/test-observability/utils','794QHHwBf','frtIg','./patches','4129312MWbZJF','24npQnOH','9357830yjbYhS','PLAYWRIGHT','child_process','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','format','WZOXH','7017KOujWs','11075733vowAcw','includes','49tmgfQP','1.33.0','Call\x20to\x20child\x20fork\x20with\x20args\x20'];a36_0x18d6=function(){return _0x28b072;};return a36_0x18d6();}
|