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