browserstack-node-sdk 1.34.30 → 1.34.31
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 +60 -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 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x5dfa0c=a29_0x323f;(function(_0x4ef917,_0xdd47cc){const _0x23b63e=a29_0x323f,_0x5d584d=_0x4ef917();while(!![]){try{const _0x4bbfb9=-parseInt(_0x23b63e(0x1dc))/0x1+-parseInt(_0x23b63e(0x1d9))/0x2*(parseInt(_0x23b63e(0x1a7))/0x3)+parseInt(_0x23b63e(0x1b3))/0x4+-parseInt(_0x23b63e(0x17c))/0x5+parseInt(_0x23b63e(0x177))/0x6+-parseInt(_0x23b63e(0x176))/0x7+parseInt(_0x23b63e(0x18b))/0x8;if(_0x4bbfb9===_0xdd47cc)break;else _0x5d584d['push'](_0x5d584d['shift']());}catch(_0x1ef703){_0x5d584d['push'](_0x5d584d['shift']());}}}(a29_0x40ec,0xcfcac));function a29_0x323f(_0x539732,_0x5d6b9d){const _0x40eca9=a29_0x40ec();return a29_0x323f=function(_0x323fce,_0xdc2e30){_0x323fce=_0x323fce-0x174;let _0x6d328e=_0x40eca9[_0x323fce];return _0x6d328e;},a29_0x323f(_0x539732,_0x5d6b9d);}const logger=require(a29_0x5dfa0c(0x1a4))[a29_0x5dfa0c(0x1c8)],helper=require(a29_0x5dfa0c(0x188)),constants=require(a29_0x5dfa0c(0x1cf)),hubAllocator=require(a29_0x5dfa0c(0x189)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x5dfa0c(0x1e3)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x5dfa0c(0x19e)),globals=require('../../../helpers/globals'),{overrideExecute}=require(a29_0x5dfa0c(0x1a0)),modify=(_0x150948,_0x545a7e=null,_0x5bcf51=![])=>{const _0x296e9b=a29_0x5dfa0c,_0x258b1f={'mETIt':function(_0x3f35ce,_0x3d50ec){return _0x3f35ce!==_0x3d50ec;},'EBacR':_0x296e9b(0x18c),'Lkilr':function(_0x20ece0,_0x25e755){return _0x20ece0+_0x25e755;},'JyMRc':function(_0x4d1ce2,_0x1b25ea){return _0x4d1ce2+_0x1b25ea;},'FCOMf':_0x296e9b(0x1c6),'qvFBs':'/wd/hub','Bwcaz':_0x296e9b(0x17d),'iNyND':'chromeOptions','doMqE':_0x296e9b(0x1b9),'KfZWD':'edgeOptions','pEzFq':'moz:firefoxOptions','BxoHZ':_0x296e9b(0x1a9),'OTucM':_0x296e9b(0x184),'ZsDoQ':_0x296e9b(0x194),'yzsxV':_0x296e9b(0x1d0),'jVOfe':function(_0x391f80,_0x403589){return _0x391f80===_0x403589;},'cxsdv':_0x296e9b(0x1d8),'ZWZJi':_0x296e9b(0x1da),'fuQjv':function(_0x30a78b,_0x207643,_0x3088c9){return _0x30a78b(_0x207643,_0x3088c9);},'XYper':function(_0x14426d,_0x391f61){return _0x14426d(_0x391f61);},'ldJVd':function(_0xfa5957,_0x5dd7a2,_0x5ce012){return _0xfa5957(_0x5dd7a2,_0x5ce012);},'bCGJy':'optimalHubUrl','BNOTW':_0x296e9b(0x183),'yNgiX':function(_0x319db1,_0x147a68,_0x3d7cd3){return _0x319db1(_0x147a68,_0x3d7cd3);},'TieIs':_0x296e9b(0x19d),'YnQmy':_0x296e9b(0x18a),'FSXQD':'isAccessibilityPlatform','dBJJg':function(_0x427184){return _0x427184();},'bagzE':function(_0xbe4695,_0x36aa25){return _0xbe4695(_0x36aa25);},'DFfZW':function(_0x53d07b,_0x47f91f){return _0x53d07b(_0x47f91f);},'cQchN':function(_0x113af0,_0x173512,_0x1d978b){return _0x113af0(_0x173512,_0x1d978b);},'aAUqB':function(_0x3fc3d7,_0x1ed08b){return _0x3fc3d7!==_0x1ed08b;},'KiZGJ':function(_0xf0be38,_0x19d88a){return _0xf0be38!==_0x19d88a;},'JQGxa':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','JxTpf':_0x296e9b(0x1df)},_0x52b726=helper[_0x296e9b(0x19f)]();let _0xfb2818;try{_0xfb2818=helper[_0x296e9b(0x1c0)](),_0xfb2818[_0x296e9b(0x1b8)]&&(_0xfb2818[_0x296e9b(0x1e4)]=_0xfb2818[_0x296e9b(0x1b8)]);}catch(_0x2aeac3){return;}if(helper[_0x296e9b(0x1b4)]()){const _0x4bbaac={};_0x4bbaac[_0x296e9b(0x1d4)]=_0x150948[_0x296e9b(0x195)],helper[_0x296e9b(0x1d2)](_0x4bbaac,new Map(),new Map()),logger[_0x296e9b(0x1c9)](_0x258b1f['JQGxa']),logger[_0x296e9b(0x175)](_0x258b1f[_0x296e9b(0x178)]);}class _0xe88f7c extends _0x52b726[_0x296e9b(0x1d6)]{[_0x296e9b(0x192)](_0x5b617d){const _0x4a8c20=_0x296e9b;if(_0x258b1f['mETIt'](_0x5b617d[_0x4a8c20(0x1de)],_0x258b1f[_0x4a8c20(0x1bf)])&&_0x258b1f[_0x4a8c20(0x17b)](global[_0x4a8c20(0x1c7)],''))try{global[_0x4a8c20(0x1c7)]=_0x258b1f['Lkilr'](_0x258b1f[_0x4a8c20(0x1bb)](_0x258b1f[_0x4a8c20(0x1c4)],global['newHubUrl']),_0x258b1f[_0x4a8c20(0x1e5)]),this['options_']=hubAllocator['getRequestOptions'](global[_0x4a8c20(0x1c7)]),logger['debug']('New\x20hub\x20url\x20set\x20to\x20'+global[_0x4a8c20(0x1c7)]),global['newHubUrl']='';}catch(_0x190763){logger[_0x4a8c20(0x191)](_0x190763);}return super[_0x4a8c20(0x192)](_0x5b617d);}}class _0x15fc10 extends _0xfb2818[_0x296e9b(0x1e4)]{['setServer'](){const _0x14f1f8=_0x296e9b;return this['url_']=helper[_0x14f1f8(0x196)](_0x150948),logger['debug']('Hub\x20url\x20set\x20to\x20'+this[_0x14f1f8(0x1bd)]),this;}[_0x296e9b(0x1ea)](_0x1c96ff){const _0xe5762b=_0x296e9b;let _0x492a9e={};for(const _0x2df6f9 in _0x1c96ff){switch(_0x2df6f9){case _0x258b1f['Bwcaz']:case _0x258b1f[_0xe5762b(0x17e)]:this[_0xe5762b(0x1a2)]&&(_0x492a9e=this[_0xe5762b(0x1a2)][_0xe5762b(0x1db)](this[_0xe5762b(0x1a2)][_0xe5762b(0x18d)])||{},this[_0xe5762b(0x1a2)][_0xe5762b(0x1b0)](this[_0xe5762b(0x1a2)][_0xe5762b(0x18d)],helper[_0xe5762b(0x1d7)](_0x492a9e,_0x1c96ff[_0x2df6f9])));break;case _0x258b1f['doMqE']:case _0x258b1f[_0xe5762b(0x19b)]:this['edgeOptions_']&&(_0x492a9e=this[_0xe5762b(0x1e6)][_0xe5762b(0x1db)](this[_0xe5762b(0x1e6)]['CAPABILITY_KEY'])||{},this['edgeOptions_'][_0xe5762b(0x1b0)](this[_0xe5762b(0x1e6)][_0xe5762b(0x18d)],helper['mergeDeep'](_0x492a9e,_0x1c96ff[_0x2df6f9])));break;case _0x258b1f[_0xe5762b(0x1d1)]:case _0x258b1f[_0xe5762b(0x1ce)]:this['firefoxOptions_']&&(_0x492a9e=this[_0xe5762b(0x1c1)][_0xe5762b(0x1db)](this['firefoxOptions_'][_0xe5762b(0x18d)])||{},this[_0xe5762b(0x1c1)]['set'](this['firefoxOptions_'][_0xe5762b(0x18d)],helper['mergeDeep'](_0x492a9e,_0x1c96ff[_0x2df6f9])));break;case _0x258b1f[_0xe5762b(0x1dd)]:this['safariOptions_']&&(_0x492a9e=this[_0xe5762b(0x17a)][_0xe5762b(0x1db)](this[_0xe5762b(0x17a)][_0xe5762b(0x18d)])||{},this['safariOptions_'][_0xe5762b(0x1b0)](this[_0xe5762b(0x17a)][_0xe5762b(0x18d)],helper['mergeDeep'](_0x492a9e,_0x1c96ff[_0x2df6f9])));break;case _0x258b1f[_0xe5762b(0x186)]:case _0x258b1f[_0xe5762b(0x1cb)]:this['ieOptions_']&&(_0x492a9e=this[_0xe5762b(0x185)]['get'](this['ieOptions_'][_0xe5762b(0x18d)])||{},this[_0xe5762b(0x185)][_0xe5762b(0x1b0)](this[_0xe5762b(0x185)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x492a9e,_0x1c96ff[_0x2df6f9])));break;}}}[_0x296e9b(0x1e2)](){const _0x57c4a9=_0x296e9b,_0x38dcb2={'YmeEk':function(_0x365827,_0x44fcf6){const _0x2117fd=a29_0x323f;return _0x258b1f[_0x2117fd(0x1a5)](_0x365827,_0x44fcf6);},'bWsou':_0x258b1f[_0x57c4a9(0x19c)]};return logger[_0x57c4a9(0x175)](_0x258b1f[_0x57c4a9(0x1a6)]),this[_0x57c4a9(0x1ea)](_0x150948[_0x57c4a9(0x1ae)]),Object['keys'](_0x150948['capability'])[_0x57c4a9(0x199)](_0x28dd65=>{const _0x208f5f=_0x57c4a9,_0x6706e3=this[_0x208f5f(0x1a3)][_0x208f5f(0x1db)](_0x28dd65);_0x38dcb2[_0x208f5f(0x1e9)](typeof _0x6706e3,_0x38dcb2[_0x208f5f(0x1e8)])?this['capabilities_'][_0x208f5f(0x1b0)](_0x28dd65,helper['mergeDeep'](_0x6706e3,_0x150948[_0x208f5f(0x1ae)][_0x28dd65])):this['capabilities_'][_0x208f5f(0x1b0)](_0x28dd65,_0x150948[_0x208f5f(0x1ae)][_0x28dd65]);}),this;}['build'](){const _0x131773=_0x296e9b,_0x52800b={'TQMRI':_0x258b1f[_0x131773(0x1cd)],'NYmyG':_0x258b1f[_0x131773(0x180)],'fwxSe':function(_0x58037b,_0x28a06c,_0x25397a){const _0x5e106c=_0x131773;return _0x258b1f[_0x5e106c(0x179)](_0x58037b,_0x28a06c,_0x25397a);}};if(helper[_0x131773(0x1b4)]()){const _0x196872=_0x258b1f[_0x131773(0x1a1)]['split']('|');let _0x8139e1=0x0;while(!![]){switch(_0x196872[_0x8139e1++]){case'0':this['setCapabilities']();continue;case'1':logger[_0x131773(0x175)](_0x258b1f[_0x131773(0x1c5)]);continue;case'2':if(helper['isPacProxy'](_0x150948['proxySettings'][_0x131773(0x1e7)]))this[_0x131773(0x198)]=helper[_0x131773(0x1ba)](_0x150948['proxySettings'][_0x131773(0x1e7)]);else _0x150948['proxySettings'][_0x131773(0x1e7)]&&(this[_0x131773(0x1aa)]=_0x150948['proxySettings'][_0x131773(0x1e7)],logger[_0x131773(0x175)](_0x131773(0x18f)+this[_0x131773(0x1aa)]));continue;case'3':globals[_0x131773(0x187)](_0x258b1f[_0x131773(0x1be)])&&(!_0x258b1f[_0x131773(0x179)](setExtension,this,_0x150948)&&globals[_0x131773(0x1b1)](_0x258b1f[_0x131773(0x1be)],![]));continue;case'4':this['setServer']();continue;case'5':_0x258b1f[_0x131773(0x193)](isAccessibilityAutomationSession)&&_0x258b1f['XYper'](setAccessibilityCapabilities,_0x150948);continue;}break;}}const _0x1cda15=super[_0x131773(0x19a)]();return _0x1cda15[_0x131773(0x1c2)]['then'](_0x2a7847=>{const _0x238a9f=_0x131773;try{const _0x211e20=_0x2a7847['caps_'][_0x238a9f(0x1db)](_0x52800b[_0x238a9f(0x174)]);_0x211e20?(logger[_0x238a9f(0x175)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x211e20),hubAllocator['updateHubUrl'](_0x211e20),helper[_0x238a9f(0x1e0)](_0x211e20)):logger[_0x238a9f(0x175)](_0x52800b['NYmyG']);}catch(_0x5cfbdc){logger[_0x238a9f(0x175)](_0x238a9f(0x18e)+_0x5cfbdc);}}),_0x1cda15[_0x131773(0x181)]=0x0,_0x1cda15['then']&&_0x1cda15[_0x131773(0x17f)](_0x5c31a6=>{const _0x34c02d=_0x131773,_0x45bcd8={'lEAna':function(_0x184af3,_0x3f43b1,_0xb6de12){const _0xb3f42=a29_0x323f;return _0x258b1f[_0xb3f42(0x1b6)](_0x184af3,_0x3f43b1,_0xb6de12);}};_0x258b1f[_0x34c02d(0x1b6)](overrideQuit,_0x5c31a6,_0x1cda15),_0x258b1f[_0x34c02d(0x1d5)](overrideTakeScreenshot,_0x5c31a6),helper[_0x34c02d(0x1cc)](_0x5c31a6,_0x150948),_0x258b1f[_0x34c02d(0x1b6)](overrideExecute,_0x5c31a6,_0x150948),_0x5c31a6[_0x34c02d(0x1ca)]=async()=>{return await _0x52800b['fwxSe'](getAccessibilityResultsSummary,_0x5c31a6,global);},_0x5c31a6[_0x34c02d(0x1ab)]=async()=>{const _0x1a340e=_0x34c02d;return await _0x45bcd8[_0x1a340e(0x1c3)](getAccessibilityResults,_0x5c31a6,global);};}),_0x1cda15['getAccessibilityResultsSummary']=async()=>{return await _0x52800b['fwxSe'](getAccessibilityResultsSummary,_0x1cda15,global);},_0x1cda15['getAccessibilityResults']=async()=>{const _0x4b54ef=_0x131773;return await _0x258b1f[_0x4b54ef(0x1d3)](getAccessibilityResults,_0x1cda15,global);},_0x258b1f[_0x131773(0x1ad)](overrideTakeScreenshot,_0x1cda15),_0x258b1f[_0x131773(0x1b5)](overrideQuit,_0x1cda15),helper[_0x131773(0x1cc)](_0x1cda15,_0x150948),_0x258b1f[_0x131773(0x1a8)](overrideExecute,_0x1cda15,_0x150948),helper['isUndefined'](global[_0x131773(0x1bc)])&&(global[_0x131773(0x1bc)]=[]),helper[_0x131773(0x1b2)](global[_0x131773(0x182)])&&(global[_0x131773(0x182)]=[]),global[_0x131773(0x1bc)][_0x131773(0x1b7)](_0x1cda15),global[_0x131773(0x1e1)]=_0x1cda15,_0x258b1f['aAUqB'](global[_0x131773(0x182)],undefined)&&global[_0x131773(0x182)]['push'](_0x1cda15),_0x545a7e&&helper[_0x131773(0x1b2)](_0x545a7e[_0x131773(0x190)][_0x131773(0x1bc)])&&(_0x545a7e[_0x131773(0x190)][_0x131773(0x1bc)]=[]),_0x545a7e&&_0x258b1f[_0x131773(0x1ac)](_0x545a7e[_0x131773(0x190)][_0x131773(0x182)],undefined)&&(_0x545a7e['global'][_0x131773(0x182)][_0x131773(0x1b7)](_0x1cda15),_0x545a7e[_0x131773(0x190)][_0x131773(0x1bc)][_0x131773(0x1b7)](_0x1cda15)),_0x1cda15;}}return _0xfb2818[_0x296e9b(0x1b8)]=_0xfb2818[_0x296e9b(0x1e4)],_0xfb2818[_0x296e9b(0x1e4)]=_0x15fc10,_0x52b726[_0x296e9b(0x1d6)]=_0xe88f7c,_0xfb2818;};function a29_0x40ec(){const _0x2946f6=['BNOTW','quitCount_','__drivers','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','safari.options','ieOptions_','ZsDoQ','getGlobal','../../../helpers/helper','../../../hubAllocationMethods','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','14974304CEasSK','/session','CAPABILITY_KEY','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','Proxy\x20set\x20to\x20','global','error','send','dBJJg','se:ieOptions','browserStackLogLevel','getHubUrl','exports','agent_','forEach','build','KfZWD','cxsdv','5|4|0|2|3|1','../../../helpers/accessibility-automation/helper','requireHttpClient','./helpers/patchHelper','TieIs','chromeOptions_','capabilities_','../../../helpers/logger','jVOfe','ZWZJi','11343UVWRxo','cQchN','firefoxOptions','proxy_','getAccessibilityResults','KiZGJ','bagzE','capability','browserstackAgentObservability','set','setGlobal','isUndefined','2677280aLOBwD','isBrowserstackInfra','DFfZW','fuQjv','push','originalBuilder','ms:edgeOptions','getHttpAgent','JyMRc','__driversArray','url_','FSXQD','EBacR','requireSeleniumWebdriver','firefoxOptions_','session_','lEAna','FCOMf','YnQmy','https://','newHubUrl','winstonLogger','info','getAccessibilityResultsSummary','yzsxV','overrideGet','bCGJy','BxoHZ','../../../bin/utils/constants','ieOptions','pEzFq','setLogLevel','ldJVd','logLevel','XYper','HttpClient','mergeDeep','object','308voKeBt','Setting\x20Browserstack\x20capabilities','get','176393EyPFLl','OTucM','path','Modifying\x20webdriver\x20builder','storeOptimalHubUrl','__driver','setCapabilities','../../../helpers/patchHelpers','Builder','qvFBs','edgeOptions_','proxyUrl','bWsou','YmeEk','__setBrowserOptions','TQMRI','debug','7781165OfISSn','5226870kyMUIg','JxTpf','yNgiX','safariOptions_','mETIt','3454375bvctqp','goog:chromeOptions','iNyND','then'];a29_0x40ec=function(){return _0x2946f6;};return a29_0x40ec();}module[a29_0x5dfa0c(0x197)][a29_0x5dfa0c(0x1af)]=modify;
|
|
1
|
+
const a29_0x2dca33=a29_0x2561;function a29_0x2561(_0x33095c,_0x2fbe3d){const _0x55bd4e=a29_0x55bd();return a29_0x2561=function(_0x256187,_0x3229c2){_0x256187=_0x256187-0x1a6;let _0x41b17d=_0x55bd4e[_0x256187];return _0x41b17d;},a29_0x2561(_0x33095c,_0x2fbe3d);}(function(_0x5eb8c9,_0x4c6a74){const _0x15113f=a29_0x2561,_0x284a37=_0x5eb8c9();while(!![]){try{const _0x37d52e=-parseInt(_0x15113f(0x1ff))/0x1+-parseInt(_0x15113f(0x222))/0x2*(parseInt(_0x15113f(0x220))/0x3)+parseInt(_0x15113f(0x1e4))/0x4*(-parseInt(_0x15113f(0x1d0))/0x5)+parseInt(_0x15113f(0x1dc))/0x6*(-parseInt(_0x15113f(0x212))/0x7)+parseInt(_0x15113f(0x1bb))/0x8+-parseInt(_0x15113f(0x21c))/0x9+-parseInt(_0x15113f(0x1c7))/0xa*(-parseInt(_0x15113f(0x204))/0xb);if(_0x37d52e===_0x4c6a74)break;else _0x284a37['push'](_0x284a37['shift']());}catch(_0x18fbc0){_0x284a37['push'](_0x284a37['shift']());}}}(a29_0x55bd,0xc4923));const logger=require(a29_0x2dca33(0x1e2))[a29_0x2dca33(0x1e0)],helper=require('../../../helpers/helper'),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x2dca33(0x1b7)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x2dca33(0x1a9)),{setAccessibilityCapabilities,setExtension}=require(a29_0x2dca33(0x20f)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a29_0x2dca33(0x1f9)),{overrideExecute}=require('./helpers/patchHelper'),modify=(_0x417ca2,_0xdd0886=null,_0x55cdf8=![])=>{const _0x4721bb=a29_0x2dca33,_0x53bbbd={'Ztaip':function(_0x58ea00,_0x230c87){return _0x58ea00!==_0x230c87;},'XnZzi':_0x4721bb(0x1be),'ZeHYA':function(_0x1b8978,_0x295e1f){return _0x1b8978+_0x295e1f;},'rffZY':function(_0x44bd8b,_0x135057){return _0x44bd8b+_0x135057;},'SGMFf':_0x4721bb(0x1e3),'aqvqg':_0x4721bb(0x1f5),'EWkfX':'goog:chromeOptions','UlFqO':_0x4721bb(0x1fd),'RCRmK':_0x4721bb(0x1dd),'BIpPL':_0x4721bb(0x1c0),'URHdh':'moz:firefoxOptions','oJwmV':_0x4721bb(0x224),'RgmtA':_0x4721bb(0x1ec),'ljTdg':_0x4721bb(0x1da),'DAMuy':_0x4721bb(0x1ab),'lqqyo':function(_0x461b96,_0x367054){return _0x461b96===_0x367054;},'QsRXE':'object','jLyqk':_0x4721bb(0x1c5),'NYTbQ':function(_0x23ae99,_0x45ea5f,_0x904ba4){return _0x23ae99(_0x45ea5f,_0x904ba4);},'RRSFg':function(_0x503a9a,_0x26a83a,_0x4585c1){return _0x503a9a(_0x26a83a,_0x4585c1);},'hTIXd':function(_0x797a5a,_0x5e8747){return _0x797a5a(_0x5e8747);},'akxyY':function(_0x3b972a,_0x52e8f2,_0x31a6da){return _0x3b972a(_0x52e8f2,_0x31a6da);},'aWHGO':_0x4721bb(0x1e5),'lEkYf':_0x4721bb(0x1c1),'KaTXp':function(_0x2951cd,_0x180f25,_0x58ce27){return _0x2951cd(_0x180f25,_0x58ce27);},'eggae':function(_0xbae2fd,_0x3f5c2e,_0x4533b0){return _0xbae2fd(_0x3f5c2e,_0x4533b0);},'FlXnI':_0x4721bb(0x1db),'tssvC':function(_0x3f2280){return _0x3f2280();},'KCUfd':function(_0x3f2d13,_0x494b8f){return _0x3f2d13(_0x494b8f);},'rCopT':'isAccessibilityPlatform','WnApc':function(_0x2d18c3,_0x3e1617,_0x4fb032){return _0x2d18c3(_0x3e1617,_0x4fb032);},'IiLMY':_0x4721bb(0x1b5),'UOmpS':function(_0x42b798,_0x50bff4){return _0x42b798(_0x50bff4);},'RdJMZ':_0x4721bb(0x206),'yvIQV':_0x4721bb(0x1b9)},_0x4dcfde=helper[_0x4721bb(0x1bc)]();let _0x3162c8;try{_0x3162c8=helper[_0x4721bb(0x21d)](),_0x3162c8[_0x4721bb(0x1f1)]&&(_0x3162c8['Builder']=_0x3162c8['originalBuilder']);}catch(_0x2a7cfc){return;}if(helper[_0x4721bb(0x1d6)]()){const _0x35d3e1={};_0x35d3e1[_0x4721bb(0x1c8)]=_0x417ca2['browserStackLogLevel'],helper[_0x4721bb(0x1f0)](_0x35d3e1,new Map(),new Map()),logger['info'](_0x53bbbd[_0x4721bb(0x1d5)]),logger[_0x4721bb(0x1fe)](_0x53bbbd['yvIQV']);}class _0x1ece84 extends _0x4dcfde[_0x4721bb(0x1e6)]{['send'](_0x16307c){const _0x42faa8=_0x4721bb;if(_0x53bbbd[_0x42faa8(0x20c)](_0x16307c['path'],_0x53bbbd[_0x42faa8(0x1e7)])&&_0x53bbbd[_0x42faa8(0x20c)](global[_0x42faa8(0x1cf)],''))try{global[_0x42faa8(0x1cf)]=_0x53bbbd[_0x42faa8(0x218)](_0x53bbbd[_0x42faa8(0x1c9)](_0x53bbbd[_0x42faa8(0x1bd)],global[_0x42faa8(0x1cf)]),_0x53bbbd['aqvqg']),this[_0x42faa8(0x1f7)]=hubAllocator[_0x42faa8(0x200)](global[_0x42faa8(0x1cf)]),logger[_0x42faa8(0x1fe)](_0x42faa8(0x1b2)+global['newHubUrl']),global[_0x42faa8(0x1cf)]='';}catch(_0x4da687){logger[_0x42faa8(0x1b8)](_0x4da687);}return super[_0x42faa8(0x207)](_0x16307c);}}class _0x1e53ff extends _0x3162c8[_0x4721bb(0x1b4)]{['setServer'](){const _0x5e2446=_0x4721bb;return this[_0x5e2446(0x1fc)]=helper[_0x5e2446(0x1d7)](_0x417ca2),logger['debug'](_0x5e2446(0x1de)+this['url_']),this;}[_0x4721bb(0x1d1)](_0x3c9576){const _0x326ce5=_0x4721bb;let _0x41c084={};for(const _0x1a33ca in _0x3c9576){switch(_0x1a33ca){case _0x53bbbd['EWkfX']:case _0x53bbbd['UlFqO']:this[_0x326ce5(0x1c2)]&&(_0x41c084=this['chromeOptions_'][_0x326ce5(0x1f2)](this['chromeOptions_'][_0x326ce5(0x1e8)])||{},this[_0x326ce5(0x1c2)]['set'](this[_0x326ce5(0x1c2)][_0x326ce5(0x1e8)],helper[_0x326ce5(0x1d2)](_0x41c084,_0x3c9576[_0x1a33ca])));break;case _0x53bbbd['RCRmK']:case _0x53bbbd[_0x326ce5(0x215)]:this[_0x326ce5(0x1df)]&&(_0x41c084=this['edgeOptions_'][_0x326ce5(0x1f2)](this[_0x326ce5(0x1df)]['CAPABILITY_KEY'])||{},this[_0x326ce5(0x1df)][_0x326ce5(0x223)](this[_0x326ce5(0x1df)][_0x326ce5(0x1e8)],helper[_0x326ce5(0x1d2)](_0x41c084,_0x3c9576[_0x1a33ca])));break;case _0x53bbbd[_0x326ce5(0x21e)]:case _0x53bbbd[_0x326ce5(0x1bf)]:this[_0x326ce5(0x1e1)]&&(_0x41c084=this[_0x326ce5(0x1e1)][_0x326ce5(0x1f2)](this[_0x326ce5(0x1e1)][_0x326ce5(0x1e8)])||{},this[_0x326ce5(0x1e1)][_0x326ce5(0x223)](this[_0x326ce5(0x1e1)][_0x326ce5(0x1e8)],helper['mergeDeep'](_0x41c084,_0x3c9576[_0x1a33ca])));break;case _0x53bbbd[_0x326ce5(0x1b0)]:this['safariOptions_']&&(_0x41c084=this[_0x326ce5(0x1ac)][_0x326ce5(0x1f2)](this['safariOptions_'][_0x326ce5(0x1e8)])||{},this[_0x326ce5(0x1ac)]['set'](this['safariOptions_']['CAPABILITY_KEY'],helper[_0x326ce5(0x1d2)](_0x41c084,_0x3c9576[_0x1a33ca])));break;case _0x53bbbd[_0x326ce5(0x21b)]:case _0x53bbbd[_0x326ce5(0x1c3)]:this[_0x326ce5(0x219)]&&(_0x41c084=this[_0x326ce5(0x219)]['get'](this[_0x326ce5(0x219)][_0x326ce5(0x1e8)])||{},this[_0x326ce5(0x219)][_0x326ce5(0x223)](this[_0x326ce5(0x219)][_0x326ce5(0x1e8)],helper[_0x326ce5(0x1d2)](_0x41c084,_0x3c9576[_0x1a33ca])));break;}}}[_0x4721bb(0x211)](){const _0x21490b=_0x4721bb,_0x556af8={'rUOzA':function(_0xadca8f,_0x3692a8){return _0x53bbbd['lqqyo'](_0xadca8f,_0x3692a8);},'SpsFF':_0x53bbbd['QsRXE']};return logger[_0x21490b(0x1fe)](_0x53bbbd[_0x21490b(0x20d)]),this[_0x21490b(0x1d1)](_0x417ca2[_0x21490b(0x1b6)]),Object['keys'](_0x417ca2['capability'])[_0x21490b(0x1fa)](_0x5eb7a6=>{const _0x3d14d4=_0x21490b,_0xe0a0dc=this[_0x3d14d4(0x214)][_0x3d14d4(0x1f2)](_0x5eb7a6);_0x556af8[_0x3d14d4(0x1e9)](typeof _0xe0a0dc,_0x556af8[_0x3d14d4(0x1ca)])?this[_0x3d14d4(0x214)][_0x3d14d4(0x223)](_0x5eb7a6,helper[_0x3d14d4(0x1d2)](_0xe0a0dc,_0x417ca2[_0x3d14d4(0x1b6)][_0x5eb7a6])):this[_0x3d14d4(0x214)][_0x3d14d4(0x223)](_0x5eb7a6,_0x417ca2['capability'][_0x5eb7a6]);}),this;}[_0x4721bb(0x1ee)](){const _0x134f51=_0x4721bb,_0x2edd56={'BjCzQ':_0x53bbbd[_0x134f51(0x208)],'OXMlp':_0x53bbbd[_0x134f51(0x1ad)],'ZLlCs':function(_0x2ad743,_0x5ef9ff,_0x42c1a4){return _0x53bbbd['KaTXp'](_0x2ad743,_0x5ef9ff,_0x42c1a4);},'ZsQWX':function(_0x2f514d,_0x4af62c,_0x9b9607){const _0x259ac7=_0x134f51;return _0x53bbbd[_0x259ac7(0x217)](_0x2f514d,_0x4af62c,_0x9b9607);}};if(helper[_0x134f51(0x1d6)]()){const _0xf1e564=_0x53bbbd[_0x134f51(0x203)][_0x134f51(0x1cc)]('|');let _0x291a88=0x0;while(!![]){switch(_0xf1e564[_0x291a88++]){case'0':_0x53bbbd[_0x134f51(0x21a)](isAccessibilityAutomationSession)&&_0x53bbbd[_0x134f51(0x1a8)](setAccessibilityCapabilities,_0x417ca2);continue;case'1':globals[_0x134f51(0x1a7)](_0x53bbbd[_0x134f51(0x201)])&&(!_0x53bbbd[_0x134f51(0x1aa)](setExtension,this,_0x417ca2)&&globals[_0x134f51(0x21f)](_0x53bbbd[_0x134f51(0x201)],![]));continue;case'2':this[_0x134f51(0x211)]();continue;case'3':if(helper[_0x134f51(0x202)](_0x417ca2[_0x134f51(0x1ea)]['proxyUrl']))this[_0x134f51(0x1f3)]=helper[_0x134f51(0x1f8)](_0x417ca2[_0x134f51(0x1ea)]['proxyUrl']);else _0x417ca2[_0x134f51(0x1ea)][_0x134f51(0x1b1)]&&(this[_0x134f51(0x1ce)]=_0x417ca2[_0x134f51(0x1ea)][_0x134f51(0x1b1)],logger[_0x134f51(0x1fe)](_0x134f51(0x1ed)+this[_0x134f51(0x1ce)]));continue;case'4':logger[_0x134f51(0x1fe)](_0x53bbbd[_0x134f51(0x20a)]);continue;case'5':this[_0x134f51(0x1d3)]();continue;}break;}}const _0x3b66b6=super[_0x134f51(0x1ee)]();return _0x3b66b6['session_']['then'](_0x47c5a6=>{const _0x1ad0ca=_0x134f51;try{const _0x22c206=_0x47c5a6[_0x1ad0ca(0x1d9)][_0x1ad0ca(0x1f2)](_0x2edd56[_0x1ad0ca(0x1d8)]);_0x22c206?(logger['debug'](_0x1ad0ca(0x1eb)+_0x22c206),hubAllocator['updateHubUrl'](_0x22c206),helper[_0x1ad0ca(0x221)](_0x22c206)):logger[_0x1ad0ca(0x1fe)](_0x2edd56[_0x1ad0ca(0x1cd)]);}catch(_0x16db31){logger['debug']('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x16db31);}}),_0x3b66b6['quitCount_']=0x0,_0x3b66b6[_0x134f51(0x1c4)]&&_0x3b66b6[_0x134f51(0x1c4)](_0x56d672=>{const _0x21dbba=_0x134f51,_0x41d23b={'pWUMg':function(_0xb2d222,_0x43f9e9,_0x59648f){const _0x2daafe=a29_0x2561;return _0x53bbbd[_0x2daafe(0x20e)](_0xb2d222,_0x43f9e9,_0x59648f);}};_0x53bbbd[_0x21dbba(0x1ef)](overrideQuit,_0x56d672,_0x3b66b6),_0x53bbbd[_0x21dbba(0x1ba)](overrideTakeScreenshot,_0x56d672),helper['overrideGet'](_0x56d672,_0x417ca2),_0x53bbbd['RRSFg'](overrideExecute,_0x56d672,_0x417ca2),_0x56d672['getAccessibilityResultsSummary']=async()=>{const _0x5eb6ef=_0x21dbba;return await _0x41d23b[_0x5eb6ef(0x1d4)](getAccessibilityResultsSummary,_0x56d672,global);},_0x56d672[_0x21dbba(0x1c6)]=async()=>{const _0x172c6d=_0x21dbba;return await _0x2edd56[_0x172c6d(0x213)](getAccessibilityResults,_0x56d672,global);};}),_0x3b66b6[_0x134f51(0x1b3)]=async()=>{const _0x66be5c=_0x134f51;return await _0x2edd56[_0x66be5c(0x209)](getAccessibilityResultsSummary,_0x3b66b6,global);},_0x3b66b6[_0x134f51(0x1c6)]=async()=>{const _0x23c9db=_0x134f51;return await _0x53bbbd[_0x23c9db(0x1fb)](getAccessibilityResults,_0x3b66b6,global);},_0x53bbbd[_0x134f51(0x205)](overrideTakeScreenshot,_0x3b66b6),_0x53bbbd['UOmpS'](overrideQuit,_0x3b66b6),helper[_0x134f51(0x1cb)](_0x3b66b6,_0x417ca2),_0x53bbbd[_0x134f51(0x20e)](overrideExecute,_0x3b66b6,_0x417ca2),helper['isUndefined'](global['__driversArray'])&&(global[_0x134f51(0x1af)]=[]),helper[_0x134f51(0x1ae)](global['__drivers'])&&(global[_0x134f51(0x20b)]=[]),global[_0x134f51(0x1af)]['push'](_0x3b66b6),global[_0x134f51(0x210)]=_0x3b66b6,_0x53bbbd[_0x134f51(0x20c)](global[_0x134f51(0x20b)],undefined)&&global['__drivers'][_0x134f51(0x1a6)](_0x3b66b6),_0xdd0886&&helper[_0x134f51(0x1ae)](_0xdd0886[_0x134f51(0x1f6)][_0x134f51(0x1af)])&&(_0xdd0886[_0x134f51(0x1f6)][_0x134f51(0x1af)]=[]),_0xdd0886&&_0x53bbbd[_0x134f51(0x20c)](_0xdd0886['global'][_0x134f51(0x20b)],undefined)&&(_0xdd0886[_0x134f51(0x1f6)][_0x134f51(0x20b)][_0x134f51(0x1a6)](_0x3b66b6),_0xdd0886['global'][_0x134f51(0x1af)][_0x134f51(0x1a6)](_0x3b66b6)),_0x3b66b6;}}return _0x3162c8[_0x4721bb(0x1f1)]=_0x3162c8[_0x4721bb(0x1b4)],_0x3162c8[_0x4721bb(0x1b4)]=_0x1e53ff,_0x4dcfde[_0x4721bb(0x1e6)]=_0x1ece84,_0x3162c8;};function a29_0x55bd(){const _0x255d8a=['proxySettings','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','safari.options','Proxy\x20set\x20to\x20','build','RRSFg','setLogLevel','originalBuilder','get','agent_','exports','/wd/hub','global','options_','getHttpAgent','../../../helpers/globals','forEach','akxyY','url_','chromeOptions','debug','200550ndZbPf','getRequestOptions','rCopT','isPacProxy','FlXnI','1368961QINVnG','UOmpS','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','send','aWHGO','ZsQWX','IiLMY','__drivers','Ztaip','jLyqk','NYTbQ','../accessibility-automation/helper','__driver','setCapabilities','7735XyOvNu','ZLlCs','capabilities_','BIpPL','browserstackAgentObservability','eggae','ZeHYA','ieOptions_','tssvC','ljTdg','6344541yvTKKg','requireSeleniumWebdriver','URHdh','setGlobal','3yUVtRo','storeOptimalHubUrl','2959402QMhDRG','set','firefoxOptions','push','getGlobal','KCUfd','../../../helpers/patchHelpers','WnApc','ieOptions','safariOptions_','lEkYf','isUndefined','__driversArray','RgmtA','proxyUrl','New\x20hub\x20url\x20set\x20to\x20','getAccessibilityResultsSummary','Builder','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','capability','../../../hubAllocationMethods','error','Modifying\x20webdriver\x20builder','hTIXd','2293616qwOqCT','requireHttpClient','SGMFf','/session','oJwmV','edgeOptions','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','chromeOptions_','DAMuy','then','Setting\x20Browserstack\x20capabilities','getAccessibilityResults','370bIWcrS','logLevel','rffZY','SpsFF','overrideGet','split','OXMlp','proxy_','newHubUrl','149085zSBboa','__setBrowserOptions','mergeDeep','setServer','pWUMg','RdJMZ','isBrowserstackInfra','getHubUrl','BjCzQ','caps_','se:ieOptions','0|5|2|3|1|4','3246lWaydx','ms:edgeOptions','Hub\x20url\x20set\x20to\x20','edgeOptions_','winstonLogger','firefoxOptions_','../../../helpers/logger','https://','148rwkwWP','optimalHubUrl','HttpClient','XnZzi','CAPABILITY_KEY','rUOzA'];a29_0x55bd=function(){return _0x255d8a;};return a29_0x55bd();}module[a29_0x2dca33(0x1f4)][a29_0x2dca33(0x216)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a30_0x22698d=a30_0x31f6;(function(_0x27b01e,_0x128eff){const _0x4f0cfb=a30_0x31f6,_0x38fa0b=_0x27b01e();while(!![]){try{const _0x3eafc2=parseInt(_0x4f0cfb(0xb2))/0x1*(parseInt(_0x4f0cfb(0xbb))/0x2)+parseInt(_0x4f0cfb(0xbc))/0x3*(-parseInt(_0x4f0cfb(0xbe))/0x4)+-parseInt(_0x4f0cfb(0xbf))/0x5+-parseInt(_0x4f0cfb(0xbd))/0x6+parseInt(_0x4f0cfb(0xb3))/0x7*(-parseInt(_0x4f0cfb(0xb9))/0x8)+-parseInt(_0x4f0cfb(0xb1))/0x9*(parseInt(_0x4f0cfb(0xba))/0xa)+parseInt(_0x4f0cfb(0xb5))/0xb;if(_0x3eafc2===_0x128eff)break;else _0x38fa0b['push'](_0x38fa0b['shift']());}catch(_0x38a05f){_0x38fa0b['push'](_0x38fa0b['shift']());}}}(a30_0x2724,0x2256d));const requestSpy=require(a30_0x22698d(0xaf)),constants=require(a30_0x22698d(0xb4)),{addRequestSpy}=require('../../../helpers/test-observability/utils');exports[a30_0x22698d(0xb6)]={'beforeAll'(){const _0x1ee7f9=a30_0x22698d,_0x4870f7={'rDRvI':function(_0x547186){return _0x547186();}},_0x5a82ff='browserstack internal helper hook';_0x4870f7[_0x1ee7f9(0xb8)](addRequestSpy);},'afterAll'(){const _0x45f942=a30_0x22698d,_0xf79566='browserstack internal helper hook';this[_0x45f942(0xb7)](0xea60),requestSpy[_0x45f942(0xb0)]();}};function a30_0x31f6(_0x861913,_0x2db47c){const _0x27245b=a30_0x2724();return a30_0x31f6=function(_0x31f6db,_0x2e4ebd){_0x31f6db=_0x31f6db-0xaf;let _0x5bb59c=_0x27245b[_0x31f6db];return _0x5bb59c;},a30_0x31f6(_0x861913,_0x2db47c);}function a30_0x2724(){const _0x548001=['1002825EgwVKN','../../../helpers/request-spy','restore','45bjyXKP','1MWBHbe','594629UKpSZB','../../../bin/utils/constants','9110937mbycok','mochaHooks','timeout','rDRvI','24JgnVeg','126010jLuZSa','304474VgBGhv','44421mwJeJL','596010ODQuVo','60yiJiBI'];a30_0x2724=function(){return _0x548001;};return a30_0x2724();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a31_0x277f(_0x52fece,_0x1d6238){const _0x433382=a31_0x4333();return a31_0x277f=function(_0x277f45,_0x414468){_0x277f45=_0x277f45-0x181;let _0x42ae82=_0x433382[_0x277f45];return _0x42ae82;},a31_0x277f(_0x52fece,_0x1d6238);}const a31_0x2e7bcf=a31_0x277f;function a31_0x4333(){const _0x3fb42d=['indexOf','__cloud_provider___','getTestEnv','wcCNY','type','toJSON','hook','xCWeg','slice','pXIdG','../../../helpers/test-observability/utils','getHooksForTest','MziCN','gVWiy','../../../../package.json','getCapabilities','11592968hFDJJG','../../utils/logPatcher','_beforeAll','AwaRu','toISOString','lodash','markedStatus','split','Vswnj','3789392UZQnAg','CFUif','generic','HWVLs','mapTestHooks','Beepp','eEner','../../../helpers/test-observability/constants','cphoV','IhxGq','reduce','pid','QuzeN','29262pVfYZE','rLynw','concat','../../../helpers/helper','eAQMl','41794720OAOCRr','HeQcG','map_','1125GrloRE','passed','fMGNo','YYVDo','getHookSkippedTests','_beforeEach','vNsxn','unknown_grid','1310xXvGtN','hAFfl','../../../helpers/testhub/utils','getSession','state','forEach','TpmST','emit','66910EmyGwH','substring','7gTzbbT','hHcXZ','browserstack','tests','YfUYF','WJZiK','hookAnalyticsId','_afterAll','_afterEach','PuBsW','mqrpl','getPlatform','1358367bopvzH','failed','filter','bs:addPlatformDetails:','40KxrwlI','parent','js-','35163VXrAUU','zFtQD','oAgIe','BlBtX','HzIWM'];a31_0x4333=function(){return _0x3fb42d;};return a31_0x4333();}(function(_0x5c1563,_0x30bbfb){const _0x9669c8=a31_0x277f,_0x20cf63=_0x5c1563();while(!![]){try{const _0x250131=parseInt(_0x9669c8(0x1ab))/0x1*(-parseInt(_0x9669c8(0x1bd))/0x2)+-parseInt(_0x9669c8(0x1b9))/0x3+parseInt(_0x9669c8(0x186))/0x4+parseInt(_0x9669c8(0x19b))/0x5*(-parseInt(_0x9669c8(0x193))/0x6)+parseInt(_0x9669c8(0x1ad))/0x7*(-parseInt(_0x9669c8(0x1d5))/0x8)+-parseInt(_0x9669c8(0x1c0))/0x9*(-parseInt(_0x9669c8(0x1a3))/0xa)+parseInt(_0x9669c8(0x198))/0xb;if(_0x250131===_0x30bbfb)break;else _0x20cf63['push'](_0x20cf63['shift']());}catch(_0x42b4fa){_0x20cf63['push'](_0x20cf63['shift']());}}}(a31_0x4333,0xe0ea2));const {v4:uuidv4}=require('uuid'),{name,version}=require(a31_0x2e7bcf(0x1d3)),logPatcher=require(a31_0x2e7bcf(0x1d6)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x2e7bcf(0x1cf)),{consoleHolder}=require(a31_0x2e7bcf(0x18d)),{getPlatformVersion}=require(a31_0x2e7bcf(0x196)),{shouldProcessEventForTesthub}=require(a31_0x2e7bcf(0x1a5)),{isFunction}=require(a31_0x2e7bcf(0x182)),{patchConsoleLogger}=require(a31_0x2e7bcf(0x1cf));patchConsoleLogger(),exports[a31_0x2e7bcf(0x1c7)]=()=>{const _0x4cd329=a31_0x2e7bcf,_0x217ab9={'fMGNo':_0x4cd329(0x188),'xCWeg':function(_0x5bb7ea){return _0x5bb7ea();}};return{'ci':_0x217ab9[_0x4cd329(0x19d)],'key':_0x217ab9[_0x4cd329(0x1cc)](uuidv4),'version':version,'collector':_0x4cd329(0x1bf)+name};},exports['getHookDetails']=_0x32a479=>{const _0x3c4350=a31_0x2e7bcf,_0x372585={};_0x372585[_0x3c4350(0x192)]=function(_0x19e372,_0x54e0b1){return _0x19e372!==_0x54e0b1;},_0x372585[_0x3c4350(0x1d2)]='string',_0x372585['vNsxn']='hook:',_0x372585['hAFfl']=function(_0x4d28ab,_0x5594a4){return _0x4d28ab!==_0x5594a4;},_0x372585['YfUYF']=_0x3c4350(0x1cb);const _0x88f0e9=_0x372585;if(!_0x32a479||_0x88f0e9[_0x3c4350(0x192)](typeof _0x32a479,_0x88f0e9[_0x3c4350(0x1d2)]))return[null,null];if(_0x88f0e9[_0x3c4350(0x192)](_0x32a479['indexOf'](_0x88f0e9[_0x3c4350(0x1a1)]),-0x1)){const _0xbc3526=_0x32a479['split'](_0x88f0e9[_0x3c4350(0x1a1)]);return[_0xbc3526[0x0]['slice'](0x0,-0x1)[_0x3c4350(0x184)]('\x22')[0x1],_0xbc3526[0x1][_0x3c4350(0x1ac)](0x1)];}else{if(_0x88f0e9[_0x3c4350(0x1a4)](_0x32a479[_0x3c4350(0x1c5)](_0x88f0e9[_0x3c4350(0x1b1)]),-0x1)){const _0xbd5afd=_0x32a479['split'](_0x88f0e9[_0x3c4350(0x1b1)]);return[_0xbd5afd[0x0][_0x3c4350(0x1cd)](0x0,-0x1)[_0x3c4350(0x184)]('\x22')[0x1],_0x32a479];}}return[null,null];},exports['getHooksForTest']=_0x5aaab5=>{const _0x56f3a5=a31_0x2e7bcf,_0x1f4951={'BlBtX':function(_0x43dfb5,_0x1912a9){return _0x43dfb5(_0x1912a9);},'wcCNY':_0x56f3a5(0x1d7),'Vswnj':_0x56f3a5(0x1b4),'TpmST':_0x56f3a5(0x1a0),'oAgIe':_0x56f3a5(0x1b5)};if(!_0x5aaab5||!_0x5aaab5[_0x56f3a5(0x1be)])return[];const _0xbb7112=[];return[_0x1f4951[_0x56f3a5(0x1c8)],_0x1f4951[_0x56f3a5(0x185)],_0x1f4951[_0x56f3a5(0x1a9)],_0x1f4951[_0x56f3a5(0x1c2)]][_0x56f3a5(0x1a8)](_0x338033=>{const _0x29d069=_0x56f3a5,_0x28f6f1=_0x5aaab5[_0x29d069(0x1be)][_0x338033]||[];_0x28f6f1[_0x29d069(0x1a8)](_0x1e8c56=>{const _0xf83248=_0x29d069;_0x1e8c56[_0xf83248(0x1b3)]&&!_0x1f4951[_0xf83248(0x1c3)](isInternalHook,_0x1e8c56['fn'])&&_0xbb7112['push'](_0x1e8c56[_0xf83248(0x1b3)]);});}),[..._0xbb7112,...exports[_0x56f3a5(0x1d0)](_0x5aaab5[_0x56f3a5(0x1be)])];},exports[a31_0x2e7bcf(0x18a)]=_0x503ae5=>{const _0x5bc7e0=a31_0x2e7bcf,_0x45abd2={'eAQMl':function(_0x54be38){return _0x54be38();},'HeQcG':function(_0x539778,_0x2e0b1e){return _0x539778===_0x2e0b1e;},'CFUif':'_afterEach','dcOTC':'_beforeAll','MziCN':'_afterAll','WJZiK':_0x5bc7e0(0x1a0)};if(!_0x503ae5||!_0x503ae5[_0x5bc7e0(0x1be)])return;[_0x45abd2['dcOTC'],_0x45abd2[_0x5bc7e0(0x1d1)],_0x45abd2[_0x5bc7e0(0x1b2)],_0x45abd2[_0x5bc7e0(0x187)]][_0x5bc7e0(0x1a8)](_0x3d5f2a=>{const _0x13cf3d=_0x5bc7e0,_0x17acc6={'AwaRu':function(_0x4ee6e7){const _0x1c9445=a31_0x277f;return _0x45abd2[_0x1c9445(0x197)](_0x4ee6e7);},'eEner':function(_0x59e620,_0x5c9717){const _0x120726=a31_0x277f;return _0x45abd2[_0x120726(0x199)](_0x59e620,_0x5c9717);},'cphoV':_0x45abd2[_0x13cf3d(0x187)]},_0x7f56fb=_0x503ae5[_0x13cf3d(0x1be)][_0x3d5f2a]||[];_0x7f56fb[_0x13cf3d(0x1a8)](_0x39d9d1=>{const _0x5be5f3=_0x13cf3d;if(!_0x39d9d1[_0x5be5f3(0x1b3)])_0x39d9d1[_0x5be5f3(0x1b3)]=_0x17acc6[_0x5be5f3(0x1d8)](uuidv4);else _0x39d9d1[_0x5be5f3(0x183)]&&_0x17acc6[_0x5be5f3(0x18c)](_0x3d5f2a,_0x17acc6[_0x5be5f3(0x18e)])&&(_0x39d9d1[_0x5be5f3(0x1b3)]=_0x17acc6[_0x5be5f3(0x1d8)](uuidv4),delete _0x39d9d1[_0x5be5f3(0x183)]);});}),exports[_0x5bc7e0(0x18a)](_0x503ae5[_0x5bc7e0(0x1be)]);},exports['sendPlatformDetails']=async(_0x353c8d,_0x2a6238)=>{const _0x3d9a9e=a31_0x2e7bcf,_0x439752={'pXIdG':function(_0x57c817){return _0x57c817();},'IhxGq':function(_0x5ba52a,_0xbfdbeb){return _0x5ba52a(_0xbfdbeb);},'mqrpl':function(_0x59b3ef,_0x4ea4d2){return _0x59b3ef(_0x4ea4d2);},'qUPrZ':function(_0x362795,_0x447fdc){return _0x362795===_0x447fdc;},'HzIWM':_0x3d9a9e(0x1af),'Beepp':_0x3d9a9e(0x1a2),'YYVDo':'TEST_PLATFORM'};try{if(!_0x439752[_0x3d9a9e(0x1ce)](shouldProcessEventForTesthub))return;const _0x5c12b0=await _0x353c8d[_0x3d9a9e(0x1d4)](),_0x44fbc0=await _0x353c8d[_0x3d9a9e(0x1a6)](),_0x1e912e={},_0x277643=Object['fromEntries'](_0x44fbc0[_0x3d9a9e(0x1d4)]()[_0x3d9a9e(0x19a)]),_0x3713f1={'product':_0x439752[_0x3d9a9e(0x18f)](getObservabilityLinkedProductName,_0x277643),'capabilities':_0x277643,'platform':_0x5c12b0[_0x3d9a9e(0x1b8)](),'platform_version':_0x439752[_0x3d9a9e(0x1b7)](getPlatformVersion,_0x439752['qUPrZ'](global[_0x3d9a9e(0x1c6)],_0x439752[_0x3d9a9e(0x1c4)])),'browser':_0x5c12b0['getBrowserName'](),'browser_version':_0x5c12b0['getBrowserVersion'](),'session_id':_0x44fbc0[_0x3d9a9e(0x1ca)]()};global[_0x3d9a9e(0x1c6)]?_0x1e912e[global[_0x3d9a9e(0x1c6)]]=_0x3713f1:_0x1e912e[_0x439752[_0x3d9a9e(0x18b)]]=_0x3713f1,process[_0x3d9a9e(0x1aa)](_0x3d9a9e(0x1bc)+process[_0x3d9a9e(0x191)],{'timestamp':new Date()[_0x3d9a9e(0x181)](),'level':null,'message':null,'kind':_0x439752[_0x3d9a9e(0x19e)],'http_response':_0x1e912e,'uuid':_0x2a6238});}catch(_0x5a52cc){_0x439752[_0x3d9a9e(0x1b7)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x5a52cc);}},exports[a31_0x2e7bcf(0x19f)]=_0x1ee572=>{const _0x2e78cf=a31_0x2e7bcf,_0x34b679={};_0x34b679[_0x2e78cf(0x1ae)]=function(_0x30e83c,_0x18f568){return _0x30e83c!==_0x18f568;},_0x34b679[_0x2e78cf(0x1b6)]=_0x2e78cf(0x1cb),_0x34b679['HWVLs']=function(_0x29a809,_0x2e8ff2){return _0x29a809!==_0x2e8ff2;},_0x34b679[_0x2e78cf(0x1c1)]=_0x2e78cf(0x19c),_0x34b679[_0x2e78cf(0x194)]=_0x2e78cf(0x1ba);const _0x185121=_0x34b679,_0x4a7c34=_0x1ee572['suites'][_0x2e78cf(0x190)]((_0x29e6c8,_0x46dd0f)=>{const _0x3f1749=_0x2e78cf,_0x37fa2c=exports[_0x3f1749(0x19f)](_0x46dd0f);return _0x37fa2c&&(_0x29e6c8=_0x29e6c8[_0x3f1749(0x195)](_0x37fa2c)),_0x29e6c8;},[]),_0x3b7a39=_0x1ee572[_0x2e78cf(0x1b0)][_0x2e78cf(0x1bb)](_0x1f068c=>{const _0x1cf764=_0x2e78cf,_0x226942=_0x185121[_0x1cf764(0x1ae)](_0x1f068c[_0x1cf764(0x1c9)],_0x185121['PuBsW'])&&!_0x1f068c[_0x1cf764(0x183)]&&_0x185121[_0x1cf764(0x189)](_0x1f068c['state'],_0x185121[_0x1cf764(0x1c1)])&&_0x185121['HWVLs'](_0x1f068c[_0x1cf764(0x1a7)],_0x185121[_0x1cf764(0x194)])&&!_0x1f068c['pending'];return _0x226942;});return _0x3b7a39[_0x2e78cf(0x195)](_0x4a7c34);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x3ed8(){const _0xeee44d=['session_','59577PlbQEe','CVaHE','mWNtl','../../helpers/globals','PcgeZ','UObah','Failed:\x20','Failed\x20to\x20store\x20session\x20name:\x20','now','accessibilityScanStarted','shift','./test-observability/mochaUtils','__skipSessionName','driverCleanup','aDAzl','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','capabilities','cfCyc','DUMvy','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','EInty','performScan','SMPuK','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','izHYr','XkBex','ENV_VAR','TYSqo','../../helpers/percy/utils','titlePath','app','isArray','BROWSERSTACK_TESTHUB_JWT','smZNS','thJwtToken','\x20-\x20','pVFwW','4121112YEHPEs','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','KmqSU','failed','push','bstackA11yShouldScan','AysFo','thBuildUuid','OkWCJ','__sessionFailed','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','ObservabilitySync:','BROWSERSTACK_TESTHUB_UUID','144FHQRJM','TnBxZ','err','DAGbf','qGRYF','20837682UXZLKV','MExDM','http:','GWfNv','env','../../helpers/testhub/utils','timeout','setGlobal','join','shouldScanTestForAccessibility','testcase','stringify','testAnalyticsId','protocol','winstonLogger','info','executeScript','umpFk','startMonitoring','appium:app','browserstackSessionName','../../helpers/helper','format','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','yjZVU','quitCount_','IAXAj','currentTest','message','getCurrentUrl','../../helpers/accessibility-automation/helper','saveTestResults','FHVFH','Japni','Dyiee','irYTi','DTQOP','error','Performing\x20scan\x20before\x20saving\x20results','1457080CDqxhF','\x22}}','ZzLAx','3qCKbtg','percyCaptureMode','stopMonitoring','__drivers','ncAsF','.\x20Error\x20:','__error_messages__','https:','then','VZuWJ','debug','VDFwQ','PKHaj','passed','executeAsyncScript','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','initQuit','212392oZmriI','KpkzF','sessionNameSet__','length','346956FAkDxN','788505ikUeEf'];a32_0x3ed8=function(){return _0xeee44d;};return a32_0x3ed8();}const a32_0xc163ba=a32_0x24cc;(function(_0x15a74d,_0x48fb24){const _0x33278c=a32_0x24cc,_0x5bb35a=_0x15a74d();while(!![]){try{const _0x3911a9=-parseInt(_0x33278c(0xf1))/0x1+-parseInt(_0x33278c(0xec))/0x2+-parseInt(_0x33278c(0xdb))/0x3*(parseInt(_0x33278c(0x119))/0x4)+parseInt(_0x33278c(0xd8))/0x5+parseInt(_0x33278c(0xf0))/0x6+parseInt(_0x33278c(0xf3))/0x7*(-parseInt(_0x33278c(0x127))/0x8)+parseInt(_0x33278c(0x12c))/0x9;if(_0x3911a9===_0x48fb24)break;else _0x5bb35a['push'](_0x5bb35a['shift']());}catch(_0xa1e3c4){_0x5bb35a['push'](_0x5bb35a['shift']());}}}(a32_0x3ed8,0x8f27b));function a32_0x24cc(_0x1a1622,_0x4ff058){const _0x3ed877=a32_0x3ed8();return a32_0x24cc=function(_0x24cc12,_0x1e1afd){_0x24cc12=_0x24cc12-0xce;let _0x208f06=_0x3ed877[_0x24cc12];return _0x208f06;},a32_0x24cc(_0x1a1622,_0x4ff058);}const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0xc163ba(0xcf)),{percyAutoCapture}=require(a32_0xc163ba(0x110)),{sendPlatformDetails}=require(a32_0xc163ba(0xfe)),{isBrowserstackInfra,markSessionStatus}=require(a32_0xc163ba(0x141)),PerformanceTester=require('../../helpers/performance-tester'),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0xc163ba(0xf6)),logger=require('../../helpers/logger')[a32_0xc163ba(0x13a)],{shouldProcessEventForTesthub}=require(a32_0xc163ba(0x131)),testHubConstants=require('../../helpers/testhub/constants');exports['mochaHooks']={'beforeAll'(){const _0x1da280=a32_0xc163ba,_0x46780e={'mWNtl':function(_0x34cb3d,_0x45f1c1,_0x5718ca,_0x1e436c){return _0x34cb3d(_0x45f1c1,_0x5718ca,_0x1e436c);},'ncAsF':_0x1da280(0x11c),'Dyiee':'\x20|\x20','PngXe':function(_0x4f46f9,_0x2002f5,_0x51cdd0){return _0x4f46f9(_0x2002f5,_0x51cdd0);},'VDFwQ':_0x1da280(0xe8),'PcgeZ':function(_0x35b7cb){return _0x35b7cb();},'SMPuK':function(_0x32b7a7,_0x13be70,_0x2e52e7){return _0x32b7a7(_0x13be70,_0x2e52e7);}};PerformanceTester[_0x1da280(0x13e)]();const _0x4d743b='browserstack internal helper hook';global['__error_messages__']=[],global[_0x1da280(0x122)]=![],global[_0x1da280(0x100)]=async()=>{const _0x31a4eb=_0x1da280;let _0x362cc4=![];try{await global[_0x31a4eb(0xde)][0x0]['session_'],_0x362cc4=!![],global[_0x31a4eb(0x122)]?await _0x46780e[_0x31a4eb(0xf5)](markSessionStatus,global['__drivers'][0x0],_0x46780e[_0x31a4eb(0xdf)],global['__error_messages__'][_0x31a4eb(0x134)](_0x46780e[_0x31a4eb(0xd3)])):await _0x46780e['PngXe'](markSessionStatus,global['__drivers'][0x0],_0x46780e[_0x31a4eb(0xe6)]);}catch(_0x3296a6){logger['debug'](_0x31a4eb(0x144)+_0x3296a6);}global['__error_messages__']=[],global[_0x31a4eb(0x122)]=![];if(_0x362cc4)try{try{_0x46780e[_0x31a4eb(0xf7)](shouldProcessEventForTesthub)&&(global[_0x31a4eb(0xde)][0x0]&&await _0x46780e[_0x31a4eb(0x10a)](sendPlatformDetails,global[_0x31a4eb(0xde)][0x0],this['currentTest']?this['currentTest'][_0x31a4eb(0x138)]:null));}catch(_0x89619a){logger[_0x31a4eb(0xe5)](_0x31a4eb(0x143)+_0x89619a);}await global['__drivers'][0x0][_0x31a4eb(0xeb)]();}catch(_0x37fde4){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x37fde4);}};},'beforeEach'(_0x47d2b2){const _0x314b5f=a32_0xc163ba,_0x1305ed={'XBAQB':function(_0x32e5ac,_0x62617d){return _0x32e5ac>_0x62617d;},'CVaHE':function(_0x4d1d09,_0x2775de){return _0x4d1d09>_0x2775de;},'TnBxZ':'\x20-\x20','XkBex':function(_0x4ed5e3,_0x3d8893,_0x46f028){return _0x4ed5e3(_0x3d8893,_0x46f028);},'WXAAs':_0x314b5f(0x11e),'EInty':function(_0x43e73d){return _0x43e73d();},'IAXAj':function(_0xb1ced9,_0xea759e){return _0xb1ced9>_0xea759e;},'PKHaj':'isAccessibilityPlatform','umpFk':function(_0x509f7e,_0x550f77){return _0x509f7e===_0x550f77;},'LiFoH':_0x314b5f(0x12e),'AysFo':function(_0x2e57e1,_0x24c31e){return _0x2e57e1===_0x24c31e;},'qGRYF':_0x314b5f(0xe2),'GWfNv':_0x314b5f(0x123),'TYSqo':'Automate\x20test\x20case\x20execution\x20has\x20started.','izHYr':function(_0x27327c){return _0x27327c();}};new Promise(async _0x4ee622=>{const _0x30cbba=_0x314b5f,_0x344f98='browserstack internal helper hook';let _0x92ec47=!![];try{_0x1305ed['XBAQB'](global[_0x30cbba(0xde)]['length'],0x1)&&(await global[_0x30cbba(0x100)](),global[_0x30cbba(0xde)][_0x30cbba(0xfd)]()),_0x1305ed[_0x30cbba(0xf4)](global[_0x30cbba(0xde)][0x0]['quitCount_'],0x0)&&(_0x92ec47=![],await global[_0x30cbba(0x100)]());}catch(_0x1eaf68){logger['debug'](_0x30cbba(0x124)+_0x1eaf68);}try{Array[_0x30cbba(0x113)](global[_0x30cbba(0xde)])&&global[_0x30cbba(0xde)][0x0]&&(global[_0x30cbba(0xde)][0x0]['browserstackSessionName']=this[_0x30cbba(0x148)]['titlePath']()[_0x30cbba(0x134)](_0x1305ed[_0x30cbba(0x128)])),global[_0x30cbba(0x140)]=this[_0x30cbba(0x148)]['titlePath']()[_0x30cbba(0x134)](_0x1305ed[_0x30cbba(0x128)]);}catch(_0x2024e9){logger['debug'](_0x30cbba(0xfa)+_0x2024e9);}this[_0x30cbba(0x148)][_0x30cbba(0x135)]=_0x1305ed[_0x30cbba(0x10d)](shouldScanTestForAccessibility,this[_0x30cbba(0x148)][_0x30cbba(0x111)](),!![]),globals[_0x30cbba(0x133)](_0x1305ed['WXAAs'],this[_0x30cbba(0x148)][_0x30cbba(0x135)]),this[_0x30cbba(0x148)][_0x30cbba(0xfc)]=!![];if(_0x1305ed[_0x30cbba(0x108)](isAccessibilityAutomationSession)&&_0x92ec47&&Array['isArray'](global[_0x30cbba(0xde)])&&_0x1305ed[_0x30cbba(0x147)](global[_0x30cbba(0xde)][_0x30cbba(0xef)],0x0)&&globals['getGlobal'](_0x1305ed[_0x30cbba(0xe7)]))try{const _0xa53554=await global['__drivers'][0x0][_0x30cbba(0xf2)];if(_0xa53554){let _0x1266e4=!![];const _0x45948c=await global[_0x30cbba(0xde)][0x0][_0x30cbba(0xce)]();let _0xc49f89;try{_0xc49f89=new URL(_0x45948c);}catch(_0x501742){_0x1266e4=![];}_0x1266e4=_0x1305ed[_0x30cbba(0x13d)](_0xc49f89[_0x30cbba(0x139)],_0x1305ed['LiFoH'])||_0x1305ed[_0x30cbba(0x11f)](_0xc49f89[_0x30cbba(0x139)],_0x1305ed[_0x30cbba(0x12b)]),_0x1266e4&&(this[_0x30cbba(0x148)][_0x30cbba(0x135)]&&logger[_0x30cbba(0x13b)](_0x1305ed[_0x30cbba(0x12f)])),this[_0x30cbba(0x148)][_0x30cbba(0xfc)]=this['currentTest'][_0x30cbba(0x135)],this[_0x30cbba(0x148)][_0x30cbba(0x135)]&&logger[_0x30cbba(0x13b)](_0x1305ed[_0x30cbba(0x10f)]);}}catch(_0x1892a9){logger[_0x30cbba(0xd6)](_0x30cbba(0xea)+util[_0x30cbba(0x142)](_0x1892a9));}_0x1305ed[_0x30cbba(0x10c)](_0x4ee622);})[_0x314b5f(0xe3)](_0x47d2b2);},'afterEach'(_0x19adb5){const _0x10a663=a32_0xc163ba,_0x572faf={'OsuEV':function(_0x38a601,_0x1931b4){return _0x38a601>_0x1931b4;},'pVFwW':function(_0x5e5acb,_0x3190af){return _0x5e5acb===_0x3190af;},'aDAzl':_0x10a663(0x136),'KpkzF':function(_0x375f28,_0x29b1c3){return _0x375f28>_0x29b1c3;},'DTQOP':_0x10a663(0x13f),'VZuWJ':function(_0x43e403,_0xec31fb,_0x342156,_0x1b3d7b){return _0x43e403(_0xec31fb,_0x342156,_0x1b3d7b);},'gVVxU':_0x10a663(0x117),'bYCmT':function(_0xce565c,_0x4354b1){return _0xce565c!==_0x4354b1;},'Japni':'passed','UObah':function(_0x5f4a22,_0x38526c,_0x306250){return _0x5f4a22(_0x38526c,_0x306250);},'FHVFH':function(_0x3c3504,_0x27fa6e){return _0x3c3504+_0x27fa6e;},'yctzk':_0x10a663(0xf9),'DAGbf':_0x10a663(0xd6),'irYTi':function(_0x1ed9c1,_0x3d8c58,_0xf09978){return _0x1ed9c1(_0x3d8c58,_0xf09978);},'cfCyc':'Passed','KmqSU':_0x10a663(0x13b),'OkWCJ':'isAccessibilityPlatform','DUMvy':_0x10a663(0x11e),'niYWC':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','yjZVU':_0x10a663(0xd7),'lBfJi':_0x10a663(0x103),'MExDM':function(_0x56a807){return _0x56a807();},'ZzLAx':function(_0xee1e78,_0x239880,_0x2e5906){return _0xee1e78(_0x239880,_0x2e5906);},'cirhE':_0x10a663(0xe5)},_0x13b94d='browserstack internal helper hook';this['timeout'](0xfde8);const _0x3ceba5=async(_0x19becb,_0x468ccc)=>{const _0x323477=_0x10a663;await global[_0x323477(0xde)][0x0][_0x323477(0x13c)](_0x323477(0x11a)+_0x19becb+',\x22level\x22:\x20\x22'+_0x468ccc+_0x323477(0xd9));};new Promise(async _0xa762c1=>{const _0x278c3d=_0x10a663;try{_0x572faf['OsuEV'](global['__drivers'][_0x278c3d(0xef)],0x1)&&(await global['driverCleanup'](),global[_0x278c3d(0xde)][_0x278c3d(0xfd)](),global[_0x278c3d(0xe1)]=[],global[_0x278c3d(0x122)]=![]);try{if(global['percy']&&_0x572faf[_0x278c3d(0x118)](global[_0x278c3d(0xdc)],_0x572faf[_0x278c3d(0x101)])&&global[_0x278c3d(0xde)][0x0]){const _0x282118=_0x572faf[_0x278c3d(0xed)](global[_0x278c3d(0x104)]['length'],0x0)?!!global[_0x278c3d(0x104)][0x0][_0x278c3d(0x112)]||!!global[_0x278c3d(0x104)][0x0][_0x572faf[_0x278c3d(0xd5)]]:![],_0x5956fc={};_0x5956fc[_0x278c3d(0x112)]=_0x282118,await _0x572faf[_0x278c3d(0xe4)](percyAutoCapture,global[_0x278c3d(0xde)][0x0],_0x572faf[_0x278c3d(0x101)],_0x5956fc);}}catch(_0x53e1b5){logger[_0x278c3d(0xe5)](_0x278c3d(0x102)+_0x53e1b5);}!global[_0x278c3d(0xff)]&&(await global[_0x278c3d(0xde)][0x0][_0x278c3d(0x13c)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON['stringify'](this[_0x278c3d(0x148)][_0x278c3d(0x111)]()[_0x278c3d(0x134)](_0x572faf['gVVxU']))+'}}'),global['__drivers'][0x0][_0x278c3d(0xee)]=!![]);const _0x458ef7=_0x572faf['bYCmT'](this[_0x278c3d(0x148)]['state'],_0x572faf[_0x278c3d(0xd2)]);_0x458ef7?(global[_0x278c3d(0x122)]=!![],global[_0x278c3d(0xe1)][_0x278c3d(0x11d)](this[_0x278c3d(0x148)][_0x278c3d(0x129)][_0x278c3d(0x149)]),await _0x572faf['UObah'](_0x3ceba5,JSON[_0x278c3d(0x137)](_0x572faf[_0x278c3d(0xd1)](_0x572faf['yctzk'],this['currentTest'][_0x278c3d(0x129)][_0x278c3d(0x149)])),_0x572faf[_0x278c3d(0x12a)])):await _0x572faf[_0x278c3d(0xd4)](_0x3ceba5,JSON[_0x278c3d(0x137)](_0x572faf[_0x278c3d(0x105)]),_0x572faf[_0x278c3d(0x11b)]);}catch(_0x73523c){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x73523c);}try{if(this[_0x278c3d(0x148)][_0x278c3d(0xfc)]&&globals['getGlobal'](_0x572faf[_0x278c3d(0x121)])&&globals['getGlobal'](_0x572faf[_0x278c3d(0x106)])){logger[_0x278c3d(0x13b)](_0x572faf['niYWC']);const _0x1ba7aa={};_0x1ba7aa['thTestRunUuid']=this[_0x278c3d(0x148)][_0x278c3d(0x138)],_0x1ba7aa[_0x278c3d(0x120)]=process[_0x278c3d(0x130)][testHubConstants[_0x278c3d(0x10e)][_0x278c3d(0x126)]],_0x1ba7aa[_0x278c3d(0x116)]=process[_0x278c3d(0x130)][testHubConstants[_0x278c3d(0x10e)][_0x278c3d(0x114)]];const _0x39f241=_0x1ba7aa;logger[_0x278c3d(0xe5)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x278c3d(0x137)](_0x39f241)),logger[_0x278c3d(0xe5)](_0x572faf[_0x278c3d(0x145)]),logger[_0x278c3d(0xe5)](util[_0x278c3d(0x142)](await global[_0x278c3d(0xde)][0x0]['executeAsyncScript'](scripts[_0x278c3d(0x109)],{'method':global[_0x278c3d(0x140)]}))),await global[_0x278c3d(0xde)][0x0][_0x278c3d(0xe9)](scripts[_0x278c3d(0xd0)],_0x39f241),logger[_0x278c3d(0x13b)](_0x572faf['lBfJi']);}}catch(_0x42b817){logger['error'](_0x278c3d(0x10b)+this[_0x278c3d(0x148)][_0x278c3d(0x111)]()+_0x278c3d(0xe0),_0x42b817);}try{try{if(_0x572faf[_0x278c3d(0x12d)](shouldProcessEventForTesthub)){global[_0x278c3d(0xde)][0x0]&&await _0x572faf[_0x278c3d(0xda)](sendPlatformDetails,global[_0x278c3d(0xde)][0x0],this['currentTest']?this[_0x278c3d(0x148)][_0x278c3d(0x138)]:null);if(_0x572faf[_0x278c3d(0x12d)](isBrowserstackInfra)){const _0x1e575c=_0x278c3d(0x125)+Date[_0x278c3d(0xfb)]();await _0x572faf[_0x278c3d(0xf8)](_0x3ceba5,JSON[_0x278c3d(0x137)](_0x1e575c),_0x572faf['cirhE']);}}}catch(_0x305a8f){logger[_0x278c3d(0xe5)](_0x278c3d(0x107)+_0x305a8f);}_0x572faf[_0x278c3d(0xed)](global[_0x278c3d(0xde)][0x0][_0x278c3d(0x146)],0x0)&&await global[_0x278c3d(0x100)]();}catch(_0xd68944){logger[_0x278c3d(0xe5)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0xd68944);}_0x572faf[_0x278c3d(0x12d)](_0xa762c1);})['then'](()=>_0x19adb5());},'afterAll'(_0x318185){const _0x6dcc26=a32_0xc163ba,_0x532b3c={'smZNS':function(_0x11a51c){return _0x11a51c();}},_0x5d850f='browserstack internal helper hook';this[_0x6dcc26(0x132)](0xfde8),new Promise(async _0xd3ad3f=>{const _0x49f156=_0x6dcc26;PerformanceTester[_0x49f156(0xdd)](),await global[_0x49f156(0x100)](),_0x532b3c[_0x49f156(0x115)](_0xd3ad3f);})['then'](()=>_0x318185());}};
|
|
1
|
+
const a32_0x4248fc=a32_0x7d3c;(function(_0x21a7aa,_0x50800b){const _0x1e4ac7=a32_0x7d3c,_0x2aab17=_0x21a7aa();while(!![]){try{const _0x1a18a1=parseInt(_0x1e4ac7(0xd4))/0x1+parseInt(_0x1e4ac7(0xfe))/0x2*(-parseInt(_0x1e4ac7(0x148))/0x3)+parseInt(_0x1e4ac7(0x139))/0x4*(parseInt(_0x1e4ac7(0x132))/0x5)+parseInt(_0x1e4ac7(0xe9))/0x6+-parseInt(_0x1e4ac7(0x142))/0x7*(parseInt(_0x1e4ac7(0x103))/0x8)+-parseInt(_0x1e4ac7(0x125))/0x9*(-parseInt(_0x1e4ac7(0x135))/0xa)+parseInt(_0x1e4ac7(0x12f))/0xb*(parseInt(_0x1e4ac7(0x10a))/0xc);if(_0x1a18a1===_0x50800b)break;else _0x2aab17['push'](_0x2aab17['shift']());}catch(_0x223a40){_0x2aab17['push'](_0x2aab17['shift']());}}}(a32_0x23d5,0x2886b));const util=require(a32_0x4248fc(0x12d)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x4248fc(0xd9)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x4248fc(0x13b)),PerformanceTester=require('../../helpers/performance-tester'),scripts=require(a32_0x4248fc(0x12c)),globals=require(a32_0x4248fc(0xe8)),logger=require(a32_0x4248fc(0x14a))[a32_0x4248fc(0x117)],{shouldProcessEventForTesthub}=require(a32_0x4248fc(0x114)),testHubConstants=require(a32_0x4248fc(0x120));function a32_0x7d3c(_0x36fac1,_0x5a3e9c){const _0x23d581=a32_0x23d5();return a32_0x7d3c=function(_0x7d3cc0,_0x3ade9c){_0x7d3cc0=_0x7d3cc0-0xce;let _0x59ca59=_0x23d581[_0x7d3cc0];return _0x59ca59;},a32_0x7d3c(_0x36fac1,_0x5a3e9c);}function a32_0x23d5(){const _0x1f9c3e=['ZMErn','zjvOp','owPoc','16xYlKGT','EPPOL','../../helpers/helper','executeScript','state','accessibilityScanStarted','HDhMx','eBXaL','Passed','7PLJJwp','stringify','Failed:\x20','hmPiU','YnrRN','message','7431qSVDII','failed','../../helpers/logger','performScan','then','https:','browserstackSessionName','thTestRunUuid','REQpQ','__sessionFailed','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','testcase','http:','21661bCRXUy','session_','getGlobal','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','cHzpw','./test-observability/mochaUtils','gAyNc','error','ypreL','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','hmMtA','testAnalyticsId','LwVbQ','saveTestResults','YhkYy','Kjjay','ilBmE','thJwtToken','timeout','XugLR','../../helpers/globals','1069656pPKUxn','push','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','BqGfv','shouldScanTestForAccessibility','debug','ObservabilitySync:','.\x20Error\x20:','BVnql','info','sessionNameSet__','JmqoB','stopMonitoring','__error_messages__','\x20|\x20','setGlobal','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','percy','__drivers','capabilities','\x22}}','22BUYEYI','length','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','kFaDo','app','1611728roUGqz','ENV_VAR','LBTjp','mochaHooks','driverCleanup','bcwea','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','157332DZIPXe','now','WXslx','RvTwx','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20',',\x22level\x22:\x20\x22','appium:app','quitCount_','initQuit','env','../../helpers/testhub/utils','executeAsyncScript','arbMr','winstonLogger','isAccessibilityPlatform','BROWSERSTACK_TESTHUB_JWT','gRvbL','join','shift','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','__skipSessionName','cAyzu','../../helpers/testhub/constants','qRMzB','kfedP','bstackA11yShouldScan','protocol','4779Ltmbmk','currentTest','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','err','Automate\x20test\x20case\x20execution\x20has\x20started.','BROWSERSTACK_TESTHUB_UUID','OIASo','../../helpers/accessibility-automation/scripts','util','GBRdv','66bWyuMR','\x20-\x20','titlePath','34285bgozpU','thBuildUuid','format','1670XCyrEu'];a32_0x23d5=function(){return _0x1f9c3e;};return a32_0x23d5();}exports[a32_0x4248fc(0x106)]={'beforeAll'(){const _0x28989c=a32_0x4248fc,_0xf8b2e4={'qRMzB':function(_0x36ae83,_0x1d0093,_0x34bc73,_0x49f219){return _0x36ae83(_0x1d0093,_0x34bc73,_0x49f219);},'kfedP':_0x28989c(0x149),'zBLWT':_0x28989c(0xf7),'GBRdv':function(_0x2cb79a,_0x3f55bc,_0x14ab02){return _0x2cb79a(_0x3f55bc,_0x14ab02);},'gAyNc':'passed','ypreL':function(_0x42909c){return _0x42909c();},'Kjjay':function(_0x3bd17f,_0x1ea5b4,_0x4a2be8){return _0x3bd17f(_0x1ea5b4,_0x4a2be8);}};PerformanceTester['startMonitoring']();const _0xed0ef3='browserstack internal helper hook';global[_0x28989c(0xf6)]=[],global[_0x28989c(0xd0)]=![],global['driverCleanup']=async()=>{const _0x54e67c=_0x28989c;let _0x52767c=![];try{await global[_0x54e67c(0xfb)][0x0][_0x54e67c(0xd5)],_0x52767c=!![],global['__sessionFailed']?await _0xf8b2e4[_0x54e67c(0x121)](markSessionStatus,global[_0x54e67c(0xfb)][0x0],_0xf8b2e4[_0x54e67c(0x122)],global[_0x54e67c(0xf6)][_0x54e67c(0x11b)](_0xf8b2e4['zBLWT'])):await _0xf8b2e4[_0x54e67c(0x12e)](markSessionStatus,global[_0x54e67c(0xfb)][0x0],_0xf8b2e4[_0x54e67c(0xda)]);}catch(_0x93a8cb){logger[_0x54e67c(0xee)](_0x54e67c(0xdd)+_0x93a8cb);}global[_0x54e67c(0xf6)]=[],global[_0x54e67c(0xd0)]=![];if(_0x52767c)try{try{_0xf8b2e4[_0x54e67c(0xdc)](shouldProcessEventForTesthub)&&(global[_0x54e67c(0xfb)][0x0]&&await _0xf8b2e4[_0x54e67c(0xe3)](sendPlatformDetails,global[_0x54e67c(0xfb)][0x0],this[_0x54e67c(0x126)]?this[_0x54e67c(0x126)]['testAnalyticsId']:null));}catch(_0x2f0deb){logger[_0x54e67c(0xee)](_0x54e67c(0x127)+_0x2f0deb);}await global['__drivers'][0x0][_0x54e67c(0x112)]();}catch(_0x51dd83){logger[_0x54e67c(0xee)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x51dd83);}};},'beforeEach'(_0x5b22b4){const _0x86c0fe=a32_0x4248fc,_0x20d138={'BVnql':function(_0xa4b6e3,_0xd11c6f){return _0xa4b6e3>_0xd11c6f;},'REQpQ':_0x86c0fe(0x130),'EPPOL':function(_0x3dcf2a,_0x6d634f,_0x4f2b73){return _0x3dcf2a(_0x6d634f,_0x4f2b73);},'hmPiU':_0x86c0fe(0x123),'JmqoB':function(_0x17a642){return _0x17a642();},'owPoc':function(_0x1c1346,_0x5e5fe0){return _0x1c1346>_0x5e5fe0;},'gRvbL':_0x86c0fe(0x118),'XugLR':function(_0x4b8f13,_0x53841c){return _0x4b8f13===_0x53841c;},'srNpz':_0x86c0fe(0xd3),'arbMr':function(_0x350d89,_0xd28604){return _0x350d89===_0xd28604;},'cAyzu':_0x86c0fe(0x14d),'sTfTu':_0x86c0fe(0xeb),'zjvOp':_0x86c0fe(0x129),'WCaoy':function(_0x3028ae){return _0x3028ae();}};new Promise(async _0xd83299=>{const _0x4d0e9a=_0x86c0fe,_0x1e9713='browserstack internal helper hook';let _0x4e76b9=!![];try{_0x20d138[_0x4d0e9a(0xf1)](global['__drivers'][_0x4d0e9a(0xff)],0x1)&&(await global['driverCleanup'](),global[_0x4d0e9a(0xfb)][_0x4d0e9a(0x11c)]()),_0x20d138[_0x4d0e9a(0xf1)](global[_0x4d0e9a(0xfb)][0x0][_0x4d0e9a(0x111)],0x0)&&(_0x4e76b9=![],await global['driverCleanup']());}catch(_0xeaaa3e){logger[_0x4d0e9a(0xee)](_0x4d0e9a(0x109)+_0xeaaa3e);}try{Array['isArray'](global[_0x4d0e9a(0xfb)])&&global[_0x4d0e9a(0xfb)][0x0]&&(global[_0x4d0e9a(0xfb)][0x0][_0x4d0e9a(0x14e)]=this[_0x4d0e9a(0x126)][_0x4d0e9a(0x131)]()[_0x4d0e9a(0x11b)](_0x20d138[_0x4d0e9a(0xcf)])),global[_0x4d0e9a(0x14e)]=this[_0x4d0e9a(0x126)][_0x4d0e9a(0x131)]()[_0x4d0e9a(0x11b)](_0x20d138[_0x4d0e9a(0xcf)]);}catch(_0xe8ac12){logger[_0x4d0e9a(0xee)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0xe8ac12);}this[_0x4d0e9a(0x126)][_0x4d0e9a(0xed)]=_0x20d138[_0x4d0e9a(0x13a)](shouldScanTestForAccessibility,this[_0x4d0e9a(0x126)]['titlePath'](),!![]),globals[_0x4d0e9a(0xf8)](_0x20d138[_0x4d0e9a(0x145)],this['currentTest']['shouldScanTestForAccessibility']),this['currentTest'][_0x4d0e9a(0x13e)]=!![];if(_0x20d138[_0x4d0e9a(0xf4)](isAccessibilityAutomationSession)&&_0x4e76b9&&Array['isArray'](global['__drivers'])&&_0x20d138[_0x4d0e9a(0x138)](global[_0x4d0e9a(0xfb)][_0x4d0e9a(0xff)],0x0)&&globals[_0x4d0e9a(0xd6)](_0x20d138[_0x4d0e9a(0x11a)]))try{const _0x462150=await global[_0x4d0e9a(0xfb)][0x0][_0x4d0e9a(0xd5)];if(_0x462150){let _0x2b29f1=!![];const _0x37a6b4=await global[_0x4d0e9a(0xfb)][0x0]['getCurrentUrl']();let _0x5cfffe;try{_0x5cfffe=new URL(_0x37a6b4);}catch(_0x59d5be){_0x2b29f1=![];}_0x2b29f1=_0x20d138[_0x4d0e9a(0xe7)](_0x5cfffe[_0x4d0e9a(0x124)],_0x20d138['srNpz'])||_0x20d138[_0x4d0e9a(0x116)](_0x5cfffe['protocol'],_0x20d138[_0x4d0e9a(0x11f)]),_0x2b29f1&&(this[_0x4d0e9a(0x126)]['shouldScanTestForAccessibility']&&logger[_0x4d0e9a(0xf2)](_0x20d138['sTfTu'])),this[_0x4d0e9a(0x126)][_0x4d0e9a(0x13e)]=this[_0x4d0e9a(0x126)][_0x4d0e9a(0xed)],this['currentTest'][_0x4d0e9a(0xed)]&&logger[_0x4d0e9a(0xf2)](_0x20d138[_0x4d0e9a(0x137)]);}}catch(_0x403ce7){logger[_0x4d0e9a(0xdb)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x4d0e9a(0x134)](_0x403ce7));}_0x20d138['WCaoy'](_0xd83299);})[_0x86c0fe(0x14c)](_0x5b22b4);},'afterEach'(_0x5ba0ff){const _0x177baa=a32_0x4248fc,_0x983c31={'RvTwx':function(_0x5a581e,_0x45b6b4){return _0x5a581e>_0x45b6b4;},'WXslx':function(_0x239f1b,_0x4b261){return _0x239f1b===_0x4b261;},'ZMErn':_0x177baa(0xd2),'xVZit':_0x177baa(0x110),'bcwea':function(_0x5ec363,_0x5eadbf,_0x2843f3,_0x38626c){return _0x5ec363(_0x5eadbf,_0x2843f3,_0x38626c);},'eBXaL':'\x20-\x20','WLzQi':function(_0x2643aa,_0x13be37){return _0x2643aa!==_0x13be37;},'qzqlj':'passed','HDhMx':function(_0x306bc3,_0x1a00a2,_0x5dcf73){return _0x306bc3(_0x1a00a2,_0x5dcf73);},'LBTjp':function(_0x4f6d80,_0x4071a3){return _0x4f6d80+_0x4071a3;},'OIASo':_0x177baa(0x144),'YhkYy':_0x177baa(0xdb),'BqGfv':function(_0x32cc5e,_0x95a032,_0x29f3b1){return _0x32cc5e(_0x95a032,_0x29f3b1);},'ilBmE':_0x177baa(0x141),'aoUUW':_0x177baa(0xf2),'YAmHX':_0x177baa(0x118),'aqDdU':_0x177baa(0x123),'YnrRN':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','hmMtA':'Performing\x20scan\x20before\x20saving\x20results','IMtPv':_0x177baa(0xd7),'kFaDo':function(_0x3f330e){return _0x3f330e();},'UYRqU':function(_0x1bb1a5){return _0x1bb1a5();},'cHzpw':_0x177baa(0xee),'LWCMP':function(_0x3a1fd9,_0x4f9ba1){return _0x3a1fd9>_0x4f9ba1;},'WoQBe':function(_0x2a9d23){return _0x2a9d23();}},_0xf0a38c='browserstack internal helper hook';this[_0x177baa(0xe6)](0xfde8);const _0x5c792e=async(_0x4d7f74,_0x3f6ad0)=>{const _0x1c69f6=_0x177baa;await global[_0x1c69f6(0xfb)][0x0][_0x1c69f6(0x13c)](_0x1c69f6(0xf9)+_0x4d7f74+_0x1c69f6(0x10f)+_0x3f6ad0+_0x1c69f6(0xfd));};new Promise(async _0x2cab40=>{const _0x34367e=_0x177baa;try{_0x983c31[_0x34367e(0x10d)](global[_0x34367e(0xfb)]['length'],0x1)&&(await global['driverCleanup'](),global[_0x34367e(0xfb)][_0x34367e(0x11c)](),global['__error_messages__']=[],global[_0x34367e(0xd0)]=![]);try{if(global[_0x34367e(0xfa)]&&_0x983c31[_0x34367e(0x10c)](global['percyCaptureMode'],_0x983c31[_0x34367e(0x136)])&&global['__drivers'][0x0]){const _0x11fe36=_0x983c31[_0x34367e(0x10d)](global[_0x34367e(0xfc)]['length'],0x0)?!!global['capabilities'][0x0][_0x34367e(0x102)]||!!global['capabilities'][0x0][_0x983c31['xVZit']]:![],_0x569b31={};_0x569b31['app']=_0x11fe36,await _0x983c31[_0x34367e(0x108)](percyAutoCapture,global[_0x34367e(0xfb)][0x0],_0x983c31['ZMErn'],_0x569b31);}}catch(_0x2bb488){logger[_0x34367e(0xee)](_0x34367e(0x100)+_0x2bb488);}!global[_0x34367e(0x11e)]&&(await global['__drivers'][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x34367e(0x143)](this[_0x34367e(0x126)][_0x34367e(0x131)]()[_0x34367e(0x11b)](_0x983c31[_0x34367e(0x140)]))+'}}'),global[_0x34367e(0xfb)][0x0][_0x34367e(0xf3)]=!![]);const _0x20d139=_0x983c31['WLzQi'](this[_0x34367e(0x126)][_0x34367e(0x13d)],_0x983c31['qzqlj']);_0x20d139?(global[_0x34367e(0xd0)]=!![],global[_0x34367e(0xf6)][_0x34367e(0xea)](this[_0x34367e(0x126)][_0x34367e(0x128)][_0x34367e(0x147)]),await _0x983c31[_0x34367e(0x13f)](_0x5c792e,JSON[_0x34367e(0x143)](_0x983c31[_0x34367e(0x105)](_0x983c31[_0x34367e(0x12b)],this[_0x34367e(0x126)]['err']['message'])),_0x983c31[_0x34367e(0xe2)])):await _0x983c31[_0x34367e(0xec)](_0x5c792e,JSON[_0x34367e(0x143)](_0x983c31[_0x34367e(0xe4)]),_0x983c31['aoUUW']);}catch(_0x4301e3){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x4301e3);}try{if(this[_0x34367e(0x126)]['accessibilityScanStarted']&&globals['getGlobal'](_0x983c31['YAmHX'])&&globals[_0x34367e(0xd6)](_0x983c31['aqDdU'])){logger['info'](_0x983c31[_0x34367e(0x146)]);const _0x566ed7={};_0x566ed7[_0x34367e(0xce)]=this[_0x34367e(0x126)][_0x34367e(0xdf)],_0x566ed7[_0x34367e(0x133)]=process['env'][testHubConstants[_0x34367e(0x104)][_0x34367e(0x12a)]],_0x566ed7[_0x34367e(0xe5)]=process[_0x34367e(0x113)][testHubConstants['ENV_VAR'][_0x34367e(0x119)]];const _0x3b2505=_0x566ed7;logger[_0x34367e(0xee)](_0x34367e(0xd1)+JSON[_0x34367e(0x143)](_0x3b2505)),logger[_0x34367e(0xee)](_0x983c31[_0x34367e(0xde)]),logger[_0x34367e(0xee)](util[_0x34367e(0x134)](await global[_0x34367e(0xfb)][0x0][_0x34367e(0x115)](scripts[_0x34367e(0x14b)],{'method':global[_0x34367e(0x14e)]}))),await global['__drivers'][0x0][_0x34367e(0x115)](scripts[_0x34367e(0xe1)],_0x3b2505),logger[_0x34367e(0xf2)](_0x983c31['IMtPv']);}}catch(_0xcde6a2){logger['error'](_0x34367e(0x10e)+this[_0x34367e(0x126)][_0x34367e(0x131)]()+_0x34367e(0xf0),_0xcde6a2);}try{try{if(_0x983c31[_0x34367e(0x101)](shouldProcessEventForTesthub)){global[_0x34367e(0xfb)][0x0]&&await _0x983c31[_0x34367e(0xec)](sendPlatformDetails,global[_0x34367e(0xfb)][0x0],this[_0x34367e(0x126)]?this[_0x34367e(0x126)]['testAnalyticsId']:null);if(_0x983c31['UYRqU'](isBrowserstackInfra)){const _0x174665=_0x34367e(0xef)+Date[_0x34367e(0x10b)]();await _0x983c31['BqGfv'](_0x5c792e,JSON[_0x34367e(0x143)](_0x174665),_0x983c31[_0x34367e(0xd8)]);}}}catch(_0x40ff43){logger['debug'](_0x34367e(0x11d)+_0x40ff43);}_0x983c31['LWCMP'](global['__drivers'][0x0]['quitCount_'],0x0)&&await global[_0x34367e(0x107)]();}catch(_0x8686eb){logger[_0x34367e(0xee)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x8686eb);}_0x983c31['WoQBe'](_0x2cab40);})[_0x177baa(0x14c)](()=>_0x5ba0ff());},'afterAll'(_0x140635){const _0x2412a0=a32_0x4248fc,_0x3247c4={'LwVbQ':function(_0x463b8d){return _0x463b8d();}},_0x29f3a1='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x2a5e01=>{const _0x196336=a32_0x7d3c;PerformanceTester[_0x196336(0xf5)](),await global[_0x196336(0x107)](),_0x3247c4[_0x196336(0xe0)](_0x2a5e01);})[_0x2412a0(0x14c)](()=>_0x140635());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';function a33_0x532c(_0x461573,_0x33b299){const _0x2edbcb=a33_0x2edb();return a33_0x532c=function(_0x532c80,_0x1bad2e){_0x532c80=_0x532c80-0x99;let _0x40fb70=_0x2edbcb[_0x532c80];return _0x40fb70;},a33_0x532c(_0x461573,_0x33b299);}const a33_0x52848d=a33_0x532c;function a33_0x2edb(){const _0x2baf11=['platform','now','unlinkSync','exports','VXhHl','length','10PFibnL','../../helpers/BrowserStackSetup','findIndex','winstonLogger','mergeDeep','existsSync','rSWrp','961500ocYmPq','selenium','desiredCapabilities','HaZal','TArjs','split','Deleting\x20','fKZci','host','asEFf','2840886HXvkDT','cwd','9615YJrslp','nightwatch-browserstack.json','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','hGgCt','../../helpers/logger','info','ceNZe','stringify','config','TKBZI','env','start_process','writeFileSync','../utils/constants','nightwatch.cmd','push','forEach','webdriver','nkUMy','close','10239218tPXSgn','XiqPb','getPlatformName','splice','test_settings','91357PdHkGV','slice','nightwatch.conf.js','LtYij','port','102REeQYr','modifyBrowserStackCaps','1108503SkcEDP','24yTpMzA','bAmZD','--config','--env','1588rDuLcd','platforms','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','useW3C','fhPLQ','inherit','join','trim','path','jImuO','child_process','auGNa','hub.browserstack.com','filter','Cswss','uPucW','17395HwoGrj','Bcbtv'];a33_0x2edb=function(){return _0x2baf11;};return a33_0x2edb();}(function(_0x3cadc2,_0x3588f4){const _0x11c269=a33_0x532c,_0x4e7d15=_0x3cadc2();while(!![]){try{const _0x2b88f0=-parseInt(_0x11c269(0x99))/0x1*(parseInt(_0x11c269(0xd2))/0x2)+parseInt(_0x11c269(0xa8))/0x3+parseInt(_0x11c269(0xd9))/0x4*(-parseInt(_0x11c269(0xb4))/0x5)+parseInt(_0x11c269(0xb2))/0x6+parseInt(_0x11c269(0xcd))/0x7+-parseInt(_0x11c269(0xd5))/0x8*(-parseInt(_0x11c269(0xd4))/0x9)+parseInt(_0x11c269(0xa1))/0xa*(parseInt(_0x11c269(0xc8))/0xb);if(_0x2b88f0===_0x3588f4)break;else _0x4e7d15['push'](_0x4e7d15['shift']());}catch(_0x3b2cf9){_0x4e7d15['push'](_0x4e7d15['shift']());}}}(a33_0x2edb,0x6f85b));const fs=require('fs'),path=require(a33_0x52848d(0xe1)),{spawn}=require(a33_0x52848d(0xe3)),logger=require(a33_0x52848d(0xb8))[a33_0x52848d(0xa4)],{default:BrowserStackSetup}=require(a33_0x52848d(0xa2)),helper=require('../../helpers/helper'),constants=require(a33_0x52848d(0xc1)),getUserNightwatchConfigs=(_0x5c1d56,_0x80253e)=>{const _0x9773a8=a33_0x52848d,_0x5b29f2={'rSWrp':_0x9773a8(0xcf),'auGNa':'nightwatch.json','ceNZe':function(_0x459c47,_0x55c355){return _0x459c47(_0x55c355);},'bAmZD':_0x9773a8(0xb6)};let _0x4d4190=null,_0x28c53c={};const _0x34a2b3=_0x80253e[_0x9773a8(0xa3)](_0x35d56d=>_0x35d56d===_0x9773a8(0xd7));if(!helper['isUndefined'](_0x5c1d56[_0x9773a8(0xbc)])&&fs['existsSync'](path[_0x9773a8(0xdf)](process[_0x9773a8(0xb3)](),_0x5c1d56[_0x9773a8(0xbc)])))_0x4d4190=path[_0x9773a8(0xdf)](process[_0x9773a8(0xb3)](),_0x5c1d56[_0x9773a8(0xbc)]),_0x80253e[_0x9773a8(0xcb)](_0x34a2b3,0x2);else{if(fs[_0x9773a8(0xa6)](path[_0x9773a8(0xdf)](process[_0x9773a8(0xb3)](),_0x5b29f2['rSWrp'])))_0x4d4190=path[_0x9773a8(0xdf)](process[_0x9773a8(0xb3)](),_0x5b29f2[_0x9773a8(0xa7)]);else fs[_0x9773a8(0xa6)](path[_0x9773a8(0xdf)](process[_0x9773a8(0xb3)](),_0x5b29f2[_0x9773a8(0xe4)]))&&(_0x4d4190=path['join'](process['cwd'](),_0x5b29f2['auGNa']));}return _0x4d4190?(logger[_0x9773a8(0xb9)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x4d4190),_0x28c53c=_0x5b29f2[_0x9773a8(0xba)](require,_0x4d4190)):logger[_0x9773a8(0xb9)](_0x5b29f2[_0x9773a8(0xd6)]),_0x28c53c;},removeExistingEnvs=_0x52f7a9=>{const _0x34cb0e=a33_0x52848d,_0x2e5136={};_0x2e5136[_0x34cb0e(0xd0)]=function(_0x14afad,_0x54957b){return _0x14afad>_0x54957b;},_0x2e5136[_0x34cb0e(0xb7)]=function(_0x35473a,_0x21d235){return _0x35473a>_0x21d235;};const _0x4fd4cf=_0x2e5136;let _0x1465a3=_0x52f7a9[_0x34cb0e(0xa3)](_0x25bddf=>_0x25bddf===_0x34cb0e(0xd8));_0x4fd4cf['LtYij'](_0x1465a3,-0x1)&&_0x52f7a9[_0x34cb0e(0xcb)](_0x1465a3,0x2),_0x1465a3=_0x52f7a9[_0x34cb0e(0xa3)](_0x3547a1=>_0x3547a1==='-e'),_0x4fd4cf['hGgCt'](_0x1465a3,-0x1)&&_0x52f7a9[_0x34cb0e(0xcb)](_0x1465a3,0x2);};function run(_0x4e2d03,_0x5e4ccd){const _0x284a29=a33_0x52848d,_0x1b24d4={'asEFf':'nightwatch','TArjs':function(_0x537706,_0x225415){return _0x537706+_0x225415;},'dJxKq':_0x284a29(0xcc),'fKZci':function(_0x36a339,_0x1668d8,_0x56ce57){return _0x36a339(_0x1668d8,_0x56ce57);},'mGwik':_0x284a29(0xe5),'BySoc':_0x284a29(0xdb),'jImuO':function(_0x13afac,_0x303008){return _0x13afac===_0x303008;},'uPucW':_0x284a29(0xb5),'Cswss':function(_0x263343,_0x41364c){return _0x263343(_0x41364c);},'VXhHl':function(_0x156987,_0x3ff9ad,_0x36897b,_0x4b798a){return _0x156987(_0x3ff9ad,_0x36897b,_0x4b798a);},'fhPLQ':_0x284a29(0xc2),'nkUMy':_0x284a29(0xd7),'XiqPb':_0x284a29(0xd8),'TnMYq':_0x284a29(0xde),'Bcbtv':_0x284a29(0xc7)},_0x51225f=new BrowserStackSetup(_0x4e2d03);if(!_0x51225f[_0x284a29(0xbc)])return;const _0xc3069d=_0x1b24d4[_0x284a29(0xaf)](getUserNightwatchConfigs,_0x4e2d03,_0x5e4ccd),_0x5594ac={};_0x5594ac[_0x284a29(0xbf)]=![];const _0x16fc18={};_0x16fc18[_0x284a29(0xb0)]=_0x1b24d4['mGwik'],_0x16fc18[_0x284a29(0xd1)]=0x1bb;const _0x32f1cb={};_0x32f1cb[_0x284a29(0xc5)]=_0x5594ac,_0x32f1cb[_0x284a29(0xa9)]=_0x16fc18;const _0x2d186b=_0x32f1cb;logger[_0x284a29(0xb9)](_0x1b24d4['BySoc']);const _0x115eaf={..._0xc3069d},_0x4a8481=_0x115eaf,_0x1f0911=helper[_0x284a29(0xdc)](_0x51225f['config']),_0x53c56c=[];_0x51225f[_0x284a29(0xbc)][_0x284a29(0xda)][_0x284a29(0xc4)]((_0x598907,_0x16eb9d)=>{const _0x413e0d=_0x284a29;_0x1f0911?_0x53c56c[_0x413e0d(0xc3)](helper['modifyBrowserStackW3CCaps'](_0x51225f['config'],_0x1b24d4[_0x413e0d(0xb1)],_0x16eb9d)):_0x53c56c[_0x413e0d(0xc3)](helper[_0x413e0d(0xd3)](_0x51225f['config'],_0x1b24d4[_0x413e0d(0xb1)],_0x16eb9d));});const _0x5609ef={},_0x3a1ea2=[];_0x4e2d03[_0x284a29(0xbe)]=_0x4e2d03['env']||_0x4e2d03['e'];const _0x477e98=_0x4e2d03[_0x284a29(0xbe)]?_0x4e2d03[_0x284a29(0xbe)][_0x284a29(0xe0)]()[_0x284a29(0xad)](',')['map'](_0x43404f=>_0x43404f[_0x284a29(0xe0)]())[_0x284a29(0xe6)](_0x2a3b2e=>_0x2a3b2e!==''):[''];_0x1b24d4[_0x284a29(0xe2)](_0x477e98[_0x284a29(0xa0)],0x0)&&_0x477e98['push']('');_0x477e98['forEach'](_0x232482=>{const _0x8d1731={'HaZal':function(_0x5eddd5,_0x25c536){const _0x3726b2=a33_0x532c;return _0x1b24d4[_0x3726b2(0xac)](_0x5eddd5,_0x25c536);},'TKBZI':_0x1b24d4['dJxKq']};_0x53c56c['forEach'](_0x163e1d=>{const _0x498aeb=a33_0x532c;let _0x254708=_0x8d1731[_0x498aeb(0xab)](helper[_0x498aeb(0xca)](_0x163e1d,'_'),'_'+Date[_0x498aeb(0x9c)]());_0x232482&&(_0x254708+='_'+_0x232482);if(_0x232482&&(!_0xc3069d[_0x8d1731[_0x498aeb(0xbd)]]||!_0xc3069d[_0x8d1731[_0x498aeb(0xbd)]][_0x232482]))return;const _0x42c1e3={..._0x2d186b};_0x42c1e3[_0x498aeb(0xaa)]=_0x163e1d;const _0x21b749=_0x42c1e3;_0x5609ef[_0x254708]=_0x232482?helper[_0x498aeb(0xa5)](_0xc3069d[_0x8d1731['TKBZI']][_0x232482],_0x21b749):_0x21b749,_0x3a1ea2[_0x498aeb(0xc3)](_0x254708);});});!_0x4a8481[_0x284a29(0xcc)]&&(_0x4a8481['test_settings']={});_0x4a8481['test_settings']={..._0x4a8481[_0x284a29(0xcc)],..._0x5609ef};const _0xe8dc4=path[_0x284a29(0xdf)](__dirname,_0x1b24d4[_0x284a29(0xe8)]);fs[_0x284a29(0xc0)](_0xe8dc4,JSON[_0x284a29(0xbb)](_0x4a8481)),_0x1b24d4[_0x284a29(0xe7)](removeExistingEnvs,_0x5e4ccd);const _0x3bbe9c=_0x1b24d4[_0x284a29(0x9f)](spawn,/^win/['test'](process[_0x284a29(0x9b)])?_0x1b24d4[_0x284a29(0xdd)]:_0x1b24d4['asEFf'],[_0x1b24d4[_0x284a29(0xc6)],_0xe8dc4,..._0x5e4ccd[_0x284a29(0xce)](0x1),_0x1b24d4[_0x284a29(0xc9)],_0x3a1ea2[_0x284a29(0xdf)](',')],{'stdio':_0x1b24d4['TnMYq']});_0x3bbe9c['on'](_0x1b24d4[_0x284a29(0x9a)],async _0xee13c3=>{const _0x2a038f=_0x284a29;logger['debug']('child\x20process\x20exited\x20with\x20code\x20'+_0xee13c3),logger[_0x2a038f(0xb9)](_0x2a038f(0xae)+_0xe8dc4),fs[_0x2a038f(0x9d)](_0xe8dc4);});}module[a33_0x52848d(0x9e)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a34_0x5bc5(_0x17cdcd,_0x2513fa){const _0x2548cb=a34_0x2548();return a34_0x5bc5=function(_0x5bc5d7,_0x2b6336){_0x5bc5d7=_0x5bc5d7-0x101;let _0x16e3f6=_0x2548cb[_0x5bc5d7];return _0x16e3f6;},a34_0x5bc5(_0x17cdcd,_0x2513fa);}const a34_0x4b4175=a34_0x5bc5;(function(_0x432c1b,_0x271a1e){const _0x32fe18=a34_0x5bc5,_0x3c3648=_0x432c1b();while(!![]){try{const _0x4183dd=parseInt(_0x32fe18(0x12d))/0x1+-parseInt(_0x32fe18(0x14a))/0x2*(parseInt(_0x32fe18(0x11e))/0x3)+-parseInt(_0x32fe18(0x11d))/0x4*(-parseInt(_0x32fe18(0x124))/0x5)+parseInt(_0x32fe18(0x113))/0x6*(parseInt(_0x32fe18(0x123))/0x7)+parseInt(_0x32fe18(0x14d))/0x8*(-parseInt(_0x32fe18(0x13d))/0x9)+parseInt(_0x32fe18(0x116))/0xa*(parseInt(_0x32fe18(0x107))/0xb)+parseInt(_0x32fe18(0x13f))/0xc*(parseInt(_0x32fe18(0x134))/0xd);if(_0x4183dd===_0x271a1e)break;else _0x3c3648['push'](_0x3c3648['shift']());}catch(_0x2d70ce){_0x3c3648['push'](_0x3c3648['shift']());}}}(a34_0x2548,0x49e41));function a34_0x2548(){const _0x20fb81=['debug','parse','pcHOq','Ynfje','../../helpers/accessibility-automation/scripts','util','accessibilityOptions','name','xUVTP','UpeIs','FlOWM','AxYGe','KPIDM','playwright-chromium','../../helpers/accessibility-automation/helper','QgqpM','PbvZN','warn','hlWMk','NNzJK','env','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','ZMZoP','latest','wcagVersion','jhlnf','constructor','executeScript','vryDB','347798IWyDfc','FiIIs','NxLMf','accessibilityOptions.includeIssueType.needsReview','error','BjKwz','stringify','PoJhO','accessibilityOptions.includeIssueType.bestPractice','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','../../helpers/helper','browser','4410czFXxt','jtcQq','pFmbR','160jjwMVA','(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','includeIssueType','accessibilityOptions.scannerProcessingTimeout','wsEndpoint','getAccessibilityResults','szPdO','4tqyJAD','1765839JUBOFu','JvMib','method','needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','735huPXIu','184155pzLMur','executeAsyncScript','getAccessibilityResultsSummary','Playwright','currentTest','JvzNh','../../helpers/logger','RFssI','winstonLogger','166529zapAIl','ZYmBi','AgcLy','connectOptions','vsRIu','bstackSdkArgs','chrome','611jEFGcv','mfFEt','accessibilityPlatform','LnjrQ','testInfo','replace','htCTK','browserName','jrtpQ','4172139FzPqbn','NJJKT','145128uMOXLX','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','format','processAccessibilityCaps','fybOs','scannerProcessingTimeout','WebDriver','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','performScan','HrlhY','use','2nDLzun','browserStackExecuteDriver','oAzGy','8lFZBRF','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','bestPractice','setAccessibilityCapabilities'];a34_0x2548=function(){return _0x20fb81;};return a34_0x2548();}const util=require(a34_0x4b4175(0x156)),logger=require(a34_0x4b4175(0x12a))[a34_0x4b4175(0x12c)],{isAccessibilityAutomationSession}=require(a34_0x4b4175(0x15f)),{isUndefined}=require(a34_0x4b4175(0x111)),scripts=require(a34_0x4b4175(0x155));exports['browserStackEvaluate']=async(_0xf31de9,_0x38527e,_0x211a22={})=>{const _0x4bccf7=a34_0x4b4175,_0x397630={};_0x397630['oAzGy']=_0x4bccf7(0x132);const _0x3fc690=_0x397630;return await _0xf31de9['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'+_0x38527e[_0x4bccf7(0x139)](/arguments/g,_0x3fc690[_0x4bccf7(0x14c)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0x211a22)+')');},exports[a34_0x4b4175(0x14b)]=async(_0x8aa9c,_0x1b0360,_0x5e4953={})=>{const _0x1a43cb=a34_0x4b4175,_0x309b5f={};_0x309b5f[_0x1a43cb(0x163)]=function(_0x2f5f32,_0x55c101){return _0x2f5f32===_0x55c101;},_0x309b5f['PbvZN']=_0x1a43cb(0x145),_0x309b5f['pFmbR']=function(_0x59969a,_0x5774b0){return _0x59969a===_0x5774b0;},_0x309b5f[_0x1a43cb(0x103)]=_0x1a43cb(0x127),_0x309b5f[_0x1a43cb(0x114)]=_0x1a43cb(0x132);const _0x5bac5c=_0x309b5f;if(_0x5bac5c[_0x1a43cb(0x163)](_0x8aa9c['constructor'][_0x1a43cb(0x158)],_0x5bac5c[_0x1a43cb(0x161)]))return await _0x8aa9c[_0x1a43cb(0x125)](_0x1b0360,_0x5e4953);else{if(_0x5bac5c[_0x1a43cb(0x115)](_0x8aa9c[_0x1a43cb(0x104)][_0x1a43cb(0x158)],_0x5bac5c[_0x1a43cb(0x103)]))return await _0x8aa9c[_0x1a43cb(0x105)](_0x1a43cb(0x117)+_0x1b0360[_0x1a43cb(0x139)](/arguments/g,_0x5bac5c[_0x1a43cb(0x114)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x1a43cb(0x10d)](_0x5e4953)+')');}},exports[a34_0x4b4175(0x150)]=async _0x311f9a=>{const _0x5bbc59=a34_0x4b4175,_0x55d51c={};_0x55d51c[_0x5bbc59(0x131)]='accessibilityOptions.wcagVersion',_0x55d51c['KPIDM']=_0x5bbc59(0x119),_0x55d51c[_0x5bbc59(0x12b)]=_0x5bbc59(0x10f),_0x55d51c[_0x5bbc59(0x15c)]=_0x5bbc59(0x10a),_0x55d51c['NJJKT']='accessibilityOptions.authToken',_0x55d51c[_0x5bbc59(0x106)]='accessibilityOptions.scannerVersion';const _0x52b853=_0x55d51c;_0x311f9a[_0x5bbc59(0x157)]&&(_0x311f9a[_0x5bbc59(0x157)][_0x5bbc59(0x102)]&&(_0x311f9a[_0x52b853[_0x5bbc59(0x131)]]=_0x311f9a[_0x5bbc59(0x157)][_0x5bbc59(0x102)]),_0x311f9a[_0x5bbc59(0x157)][_0x5bbc59(0x144)]&&(_0x311f9a[_0x52b853[_0x5bbc59(0x15d)]]=_0x311f9a[_0x5bbc59(0x157)][_0x5bbc59(0x144)]),_0x311f9a[_0x5bbc59(0x157)]['includeIssueType']&&(_0x311f9a[_0x52b853[_0x5bbc59(0x12b)]]=_0x311f9a['accessibilityOptions'][_0x5bbc59(0x118)][_0x5bbc59(0x14f)],_0x311f9a[_0x52b853[_0x5bbc59(0x15c)]]=_0x311f9a[_0x5bbc59(0x157)]['includeIssueType'][_0x5bbc59(0x121)]));const _0x5baa27=JSON[_0x5bbc59(0x152)](process[_0x5bbc59(0x165)][_0x5bbc59(0x146)])['scannerVersion'];_0x311f9a[_0x52b853[_0x5bbc59(0x13e)]]=process[_0x5bbc59(0x165)]['BS_A11Y_JWT'],_0x311f9a[_0x52b853[_0x5bbc59(0x106)]]=_0x5baa27,delete _0x311f9a[_0x5bbc59(0x157)];},exports[a34_0x4b4175(0x11b)]=async _0x176298=>{const _0x38e4a8=a34_0x4b4175,_0x388a78={};_0x388a78[_0x38e4a8(0x109)]='No\x20accessibility\x20results\x20were\x20found.',_0x388a78[_0x38e4a8(0x129)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x4fc181=_0x388a78;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x176298,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x176298,scripts.getResults);return res;}catch{return logger[_0x38e4a8(0x10b)](_0x4fc181['NxLMf']),[];}else return logger[_0x38e4a8(0x162)](_0x4fc181[_0x38e4a8(0x129)]),[];},exports['performScan']=async(_0x4a2737,_0x385904='')=>{const _0x4d87a9=a34_0x4b4175;if(global[_0x4d87a9(0x136)]){const _0x2b0a0e={};return _0x2b0a0e[_0x4d87a9(0x120)]=_0x385904,await exports['browserStackEvaluate'](_0x4a2737,scripts[_0x4d87a9(0x147)],_0x2b0a0e);}},exports[a34_0x4b4175(0x126)]=async _0x1be1c9=>{const _0x322b3a=a34_0x4b4175,_0x4633c7={};_0x4633c7['rURbN']='No\x20summaryResults\x20found.',_0x4633c7[_0x322b3a(0x154)]=_0x322b3a(0x110);const _0x54abd7=_0x4633c7;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1be1c9,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x1be1c9,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x322b3a(0x151)](_0x54abd7['rURbN']),{};}else return logger[_0x322b3a(0x162)](_0x54abd7[_0x322b3a(0x154)]),{};},exports['platformValidation']=async _0x4b8620=>{const _0x5200d8=a34_0x4b4175,_0x526ebd={'MeFsW':function(_0x2b5d94,_0x5e7079){return _0x2b5d94!==_0x5e7079;},'FqXdE':_0x5200d8(0x140),'AgcLy':function(_0x3a7557,_0x4a9db7){return _0x3a7557===_0x4a9db7;},'PoJhO':_0x5200d8(0x133),'LnjrQ':_0x5200d8(0x15e),'FlOWM':_0x5200d8(0x166),'HrlhY':function(_0x16372a,_0x329f38){return _0x16372a(_0x329f38);},'UpeIs':function(_0xd35804,_0x42d937){return _0xd35804===_0x42d937;},'JvMib':_0x5200d8(0x101),'QgqpM':function(_0x2170ad,_0x5018c9){return _0x2170ad>_0x5018c9;},'pcHOq':_0x5200d8(0x122)};try{if(!_0x526ebd['MeFsW'](_0x4b8620['deviceName'],''))return logger[_0x5200d8(0x162)](_0x526ebd['FqXdE']),![];const _0x41c020=_0x4b8620[_0x5200d8(0x112)];if(!(_0x526ebd[_0x5200d8(0x12f)](_0x41c020,_0x526ebd[_0x5200d8(0x10e)])||_0x526ebd[_0x5200d8(0x12f)](_0x41c020,_0x526ebd[_0x5200d8(0x137)])))return logger[_0x5200d8(0x162)](_0x526ebd[_0x5200d8(0x15b)]),![];const _0x38c22c=_0x526ebd[_0x5200d8(0x148)](parseInt,_0x4b8620['browser_version']);if(!(_0x526ebd[_0x5200d8(0x15a)](_0x38c22c,_0x526ebd[_0x5200d8(0x11f)])||_0x526ebd[_0x5200d8(0x160)](_0x38c22c,0x5e)))return logger[_0x5200d8(0x162)](_0x526ebd[_0x5200d8(0x153)]),![];}catch(_0x19df16){logger[_0x5200d8(0x151)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x5200d8(0x141)](_0x19df16));}return!![];},exports[a34_0x4b4175(0x142)]=(_0x4f98fc,_0x5a3b89,_0x419342)=>{const _0x510f82=a34_0x4b4175,_0x48f9a1={'ZMZoP':function(_0x4103ca){return _0x4103ca();},'FiIIs':'browserstack.accessibility','fybOs':function(_0x8e3630,_0x31c9a1){return _0x8e3630===_0x31c9a1;},'QIAhI':_0x510f82(0x133),'NNzJK':'playwright-chromium','xUVTP':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','szPdO':function(_0x2aef12,_0x591bfb){return _0x2aef12===_0x591bfb;},'GJmwW':_0x510f82(0x101),'mfFEt':function(_0x211ded,_0x46e460){return _0x211ded>_0x46e460;},'htCTK':_0x510f82(0x122),'jrtpQ':function(_0x43d5c2,_0x272c71){return _0x43d5c2(_0x272c71);},'BjKwz':_0x510f82(0x140),'ZYmBi':function(_0x1d060f,_0x8f7f7){return _0x1d060f+_0x8f7f7;}};try{if(_0x48f9a1[_0x510f82(0x167)](isAccessibilityAutomationSession)){global[_0x510f82(0x136)]=!![];!_0x4f98fc[_0x48f9a1['FiIIs']]&&(global[_0x510f82(0x136)]=![]);!(_0x48f9a1[_0x510f82(0x143)](_0x4f98fc['browserName'],_0x48f9a1['QIAhI'])||_0x48f9a1[_0x510f82(0x143)](_0x4f98fc[_0x510f82(0x13b)],_0x48f9a1[_0x510f82(0x164)]))&&(logger[_0x510f82(0x162)](_0x48f9a1[_0x510f82(0x159)]),global[_0x510f82(0x136)]=![]);!(_0x48f9a1[_0x510f82(0x11c)](_0x4f98fc['browser_version'],_0x48f9a1['GJmwW'])||_0x48f9a1[_0x510f82(0x135)](_0x4f98fc['browser_version'],0x5e))&&(logger[_0x510f82(0x162)](_0x48f9a1[_0x510f82(0x13a)]),global['accessibilityPlatform']=![]);!_0x48f9a1[_0x510f82(0x13c)](isUndefined,_0x4f98fc['deviceName'])&&(logger['warn'](_0x48f9a1[_0x510f82(0x10c)]),global[_0x510f82(0x136)]=![]);if(!global[_0x510f82(0x136)]){_0x4f98fc[_0x48f9a1[_0x510f82(0x108)]]=![];const _0x39c8c5=_0x48f9a1[_0x510f82(0x12e)](_0x5a3b89,_0x48f9a1[_0x510f82(0x13c)](encodeURIComponent,JSON[_0x510f82(0x10d)](_0x4f98fc)));_0x419342&&(_0x419342[_0x510f82(0x128)][_0x510f82(0x138)]['project']['use'][_0x510f82(0x130)]['wsEndpoint']=_0x39c8c5,_0x419342['workerInfo']['project'][_0x510f82(0x149)][_0x510f82(0x130)][_0x510f82(0x11a)]=_0x39c8c5);}}}catch(_0x5774cd){logger[_0x510f82(0x151)](_0x510f82(0x14e)+util[_0x510f82(0x141)](_0x5774cd));}};
|
|
1
|
+
const a34_0x52a4e3=a34_0x44b6;function a34_0x26fd(){const _0x159603=['zpIDJ','use','(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','deviceName','../../helpers/accessibility-automation/helper','browserstack.accessibility','LWqFP','JBDbl','JqEAg','accessibilityOptions','warn','iyLqR','accessibilityOptions.includeIssueType.needsReview','ZuvxW','392180DxRLwR','connectOptions','browser','FViIu','accessibilityPlatform','playwright-chromium','project','vSVrd','../../helpers/logger','scannerVersion','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','../../helpers/accessibility-automation/scripts','228972YIARRW','zANAY','3861558AGNZoe','TFmaS','accessibilityOptions.includeIssueType.bestPractice','browserStackExecuteDriver','wDCZn','constructor','wcagVersion','rCdVG','getAccessibilityResults','3392fXCOEc','2897250AfFQLp','getAccessibilityResultsSummary','needsReview','OQUjl','yCQxc','currentTest','lvAPX','8435ZkXoXM','sjRGS','executeAsyncScript','WebDriver','debug','replace','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','HQKTP','ScVQM','accessibilityOptions.scannerProcessingTimeout','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','TnOkh','ZOplp','includeIssueType','winstonLogger','env','performScan','HIoot','1338CMXICV','parse','bstackSdkArgs','bestPractice','ENsIM','UfZqk','latest','scannerProcessingTimeout','browserStackEvaluate','accessibilityOptions.authToken','accessibilityOptions.scannerVersion','platformValidation','executeScript','XdUsN','util','ENhaA','browserName','SwEdX','chrome','CNNBg','No\x20accessibility\x20results\x20were\x20found.','BS_A11Y_JWT','accessibilityOptions.wcagVersion','browser_version','elYcz','2145265rbptnR','evaluate','stringify','NPYbo','VloBC','format','wsEndpoint','processAccessibilityCaps','398WNVglV','UCUKT','name'];a34_0x26fd=function(){return _0x159603;};return a34_0x26fd();}(function(_0x4fc716,_0x5b0b82){const _0x3c426a=a34_0x44b6,_0x120861=_0x4fc716();while(!![]){try{const _0x185fe0=parseInt(_0x3c426a(0x17e))/0x1+-parseInt(_0x3c426a(0x16d))/0x2*(parseInt(_0x3c426a(0x14c))/0x3)+-parseInt(_0x3c426a(0x18a))/0x4+parseInt(_0x3c426a(0x165))/0x5+-parseInt(_0x3c426a(0x196))/0x6+parseInt(_0x3c426a(0x19d))/0x7*(parseInt(_0x3c426a(0x195))/0x8)+-parseInt(_0x3c426a(0x18c))/0x9;if(_0x185fe0===_0x5b0b82)break;else _0x120861['push'](_0x120861['shift']());}catch(_0x3be303){_0x120861['push'](_0x120861['shift']());}}}(a34_0x26fd,0x42f2b));function a34_0x44b6(_0x3e13d2,_0x3dcb4e){const _0x26fd5c=a34_0x26fd();return a34_0x44b6=function(_0x44b67e,_0x25d17b){_0x44b67e=_0x44b67e-0x145;let _0x54ca38=_0x26fd5c[_0x44b67e];return _0x54ca38;},a34_0x44b6(_0x3e13d2,_0x3dcb4e);}const util=require(a34_0x52a4e3(0x15a)),logger=require(a34_0x52a4e3(0x186))[a34_0x52a4e3(0x148)],{isAccessibilityAutomationSession}=require(a34_0x52a4e3(0x174)),{isUndefined}=require('../../helpers/helper'),scripts=require(a34_0x52a4e3(0x189));exports[a34_0x52a4e3(0x154)]=async(_0x207437,_0x513633,_0xd8086e={})=>{const _0x136a51=a34_0x52a4e3,_0x34cb5a={};_0x34cb5a[_0x136a51(0x18b)]=_0x136a51(0x14e);const _0x29b454=_0x34cb5a;return await _0x207437[_0x136a51(0x166)]('(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'+_0x513633[_0x136a51(0x1a2)](/arguments/g,_0x29b454[_0x136a51(0x18b)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x136a51(0x167)](_0xd8086e)+')');},exports[a34_0x52a4e3(0x18f)]=async(_0x50258f,_0xb37c8,_0x551831={})=>{const _0x3f6589=a34_0x52a4e3,_0x453ff3={};_0x453ff3[_0x3f6589(0x19e)]=function(_0x5d43ce,_0x498edf){return _0x5d43ce===_0x498edf;},_0x453ff3['HIoot']=_0x3f6589(0x1a0),_0x453ff3[_0x3f6589(0x164)]=function(_0x40b032,_0x472798){return _0x40b032===_0x472798;},_0x453ff3[_0x3f6589(0x15b)]='Playwright',_0x453ff3['ENsIM']=_0x3f6589(0x14e);const _0x1a9a9=_0x453ff3;if(_0x1a9a9[_0x3f6589(0x19e)](_0x50258f['constructor'][_0x3f6589(0x16f)],_0x1a9a9[_0x3f6589(0x14b)]))return await _0x50258f[_0x3f6589(0x19f)](_0xb37c8,_0x551831);else{if(_0x1a9a9[_0x3f6589(0x164)](_0x50258f[_0x3f6589(0x191)][_0x3f6589(0x16f)],_0x1a9a9['ENhaA']))return await _0x50258f[_0x3f6589(0x158)](_0x3f6589(0x172)+_0xb37c8[_0x3f6589(0x1a2)](/arguments/g,_0x1a9a9[_0x3f6589(0x150)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x3f6589(0x167)](_0x551831)+')');}},exports['setAccessibilityCapabilities']=async _0x30e482=>{const _0x5ed873=a34_0x52a4e3,_0x91ed04={};_0x91ed04[_0x5ed873(0x1a4)]=_0x5ed873(0x162),_0x91ed04[_0x5ed873(0x15f)]=_0x5ed873(0x1a6),_0x91ed04['UBOtX']=_0x5ed873(0x18e),_0x91ed04[_0x5ed873(0x146)]=_0x5ed873(0x17c),_0x91ed04[_0x5ed873(0x181)]=_0x5ed873(0x155),_0x91ed04['TIyVX']=_0x5ed873(0x156);const _0x26a8ac=_0x91ed04;_0x30e482['accessibilityOptions']&&(_0x30e482[_0x5ed873(0x179)][_0x5ed873(0x192)]&&(_0x30e482[_0x26a8ac[_0x5ed873(0x1a4)]]=_0x30e482['accessibilityOptions'][_0x5ed873(0x192)]),_0x30e482[_0x5ed873(0x179)][_0x5ed873(0x153)]&&(_0x30e482[_0x26a8ac['CNNBg']]=_0x30e482[_0x5ed873(0x179)][_0x5ed873(0x153)]),_0x30e482[_0x5ed873(0x179)]['includeIssueType']&&(_0x30e482[_0x26a8ac['UBOtX']]=_0x30e482['accessibilityOptions'][_0x5ed873(0x147)][_0x5ed873(0x14f)],_0x30e482[_0x26a8ac[_0x5ed873(0x146)]]=_0x30e482[_0x5ed873(0x179)]['includeIssueType'][_0x5ed873(0x198)]));const _0x5437fc=JSON[_0x5ed873(0x14d)](process[_0x5ed873(0x149)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x5ed873(0x187)];_0x30e482[_0x26a8ac[_0x5ed873(0x181)]]=process[_0x5ed873(0x149)][_0x5ed873(0x161)],_0x30e482[_0x26a8ac['TIyVX']]=_0x5437fc,delete _0x30e482[_0x5ed873(0x179)];},exports[a34_0x52a4e3(0x194)]=async _0x59ff74=>{const _0x1c6cfa=a34_0x52a4e3,_0x451497={};_0x451497['wDCZn']=_0x1c6cfa(0x160),_0x451497[_0x1c6cfa(0x19a)]=_0x1c6cfa(0x1a7);const _0x12f1d5=_0x451497;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x59ff74,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x59ff74,scripts.getResults);return res;}catch{return logger['error'](_0x12f1d5[_0x1c6cfa(0x190)]),[];}else return logger['warn'](_0x12f1d5['yCQxc']),[];},exports[a34_0x52a4e3(0x14a)]=async(_0x47a757,_0x3d0e78='')=>{const _0x42c00e=a34_0x52a4e3;if(global[_0x42c00e(0x182)]){const _0x38b891={};return _0x38b891['method']=_0x3d0e78,await exports[_0x42c00e(0x154)](_0x47a757,scripts[_0x42c00e(0x14a)],_0x38b891);}},exports[a34_0x52a4e3(0x197)]=async _0x4e9fac=>{const _0x119c35=a34_0x52a4e3,_0x41fd14={};_0x41fd14[_0x119c35(0x16e)]='No\x20summaryResults\x20found.',_0x41fd14[_0x119c35(0x1a5)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x5a8f48=_0x41fd14;if(global[_0x119c35(0x182)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4e9fac,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x4e9fac,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x119c35(0x1a1)](_0x5a8f48[_0x119c35(0x16e)]),{};}else return logger[_0x119c35(0x17a)](_0x5a8f48[_0x119c35(0x1a5)]),{};},exports[a34_0x52a4e3(0x157)]=async _0x4dfbec=>{const _0x18fc55=a34_0x52a4e3,_0x55c346={'vSVrd':function(_0x538eba,_0x30d0f4){return _0x538eba!==_0x30d0f4;},'pBXoR':_0x18fc55(0x1a3),'UfZqk':function(_0x3d179d,_0x4b47e3){return _0x3d179d===_0x4b47e3;},'LWqFP':_0x18fc55(0x15e),'PExdN':'playwright-chromium','VloBC':_0x18fc55(0x188),'OQUjl':function(_0x2a407a,_0x29d315){return _0x2a407a(_0x29d315);},'SwEdX':function(_0x90ff04,_0x5aeb20){return _0x90ff04===_0x5aeb20;},'ZuvxW':_0x18fc55(0x152),'TFmaS':function(_0x5e1fd5,_0x551808){return _0x5e1fd5>_0x551808;},'GUPsu':_0x18fc55(0x1a8)};try{if(!_0x55c346[_0x18fc55(0x185)](_0x4dfbec['deviceName'],''))return logger['warn'](_0x55c346['pBXoR']),![];const _0x43a8fa=_0x4dfbec[_0x18fc55(0x180)];if(!(_0x55c346[_0x18fc55(0x151)](_0x43a8fa,_0x55c346[_0x18fc55(0x176)])||_0x55c346[_0x18fc55(0x151)](_0x43a8fa,_0x55c346['PExdN'])))return logger['warn'](_0x55c346[_0x18fc55(0x169)]),![];const _0x2bdd30=_0x55c346[_0x18fc55(0x199)](parseInt,_0x4dfbec[_0x18fc55(0x163)]);if(!(_0x55c346[_0x18fc55(0x15d)](_0x2bdd30,_0x55c346[_0x18fc55(0x17d)])||_0x55c346[_0x18fc55(0x18d)](_0x2bdd30,0x5e)))return logger[_0x18fc55(0x17a)](_0x55c346['GUPsu']),![];}catch(_0x3b9490){logger[_0x18fc55(0x1a1)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x18fc55(0x16a)](_0x3b9490));}return!![];},exports[a34_0x52a4e3(0x16c)]=(_0xe06e7e,_0x3c32e1,_0x2b3677)=>{const _0x22f0f4=a34_0x52a4e3,_0x1f6813={'jkYcj':function(_0x3a70b6){return _0x3a70b6();},'zpIDJ':_0x22f0f4(0x175),'JBDbl':function(_0x48490a,_0x167889){return _0x48490a===_0x167889;},'iyLqR':_0x22f0f4(0x15e),'QWCfw':_0x22f0f4(0x183),'lvAPX':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','TnOkh':function(_0x46dbab,_0x1a68e9){return _0x46dbab===_0x1a68e9;},'rCdVG':_0x22f0f4(0x152),'GAaOD':function(_0x277587,_0x477597){return _0x277587>_0x477597;},'eoeSB':_0x22f0f4(0x1a8),'NPYbo':function(_0x13334a,_0x3371d2){return _0x13334a(_0x3371d2);},'XdUsN':_0x22f0f4(0x1a3),'JqEAg':function(_0x361103,_0x5092bc){return _0x361103+_0x5092bc;}};try{if(_0x1f6813['jkYcj'](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0xe06e7e[_0x1f6813['zpIDJ']]&&(global['accessibilityPlatform']=![]);!(_0x1f6813[_0x22f0f4(0x177)](_0xe06e7e[_0x22f0f4(0x15c)],_0x1f6813[_0x22f0f4(0x17b)])||_0x1f6813[_0x22f0f4(0x177)](_0xe06e7e[_0x22f0f4(0x15c)],_0x1f6813['QWCfw']))&&(logger[_0x22f0f4(0x17a)](_0x1f6813[_0x22f0f4(0x19c)]),global[_0x22f0f4(0x182)]=![]);!(_0x1f6813[_0x22f0f4(0x145)](_0xe06e7e['browser_version'],_0x1f6813[_0x22f0f4(0x193)])||_0x1f6813['GAaOD'](_0xe06e7e['browser_version'],0x5e))&&(logger[_0x22f0f4(0x17a)](_0x1f6813['eoeSB']),global[_0x22f0f4(0x182)]=![]);!_0x1f6813[_0x22f0f4(0x168)](isUndefined,_0xe06e7e[_0x22f0f4(0x173)])&&(logger['warn'](_0x1f6813[_0x22f0f4(0x159)]),global[_0x22f0f4(0x182)]=![]);if(!global['accessibilityPlatform']){_0xe06e7e[_0x1f6813[_0x22f0f4(0x170)]]=![];const _0x4a4a20=_0x1f6813[_0x22f0f4(0x178)](_0x3c32e1,_0x1f6813[_0x22f0f4(0x168)](encodeURIComponent,JSON[_0x22f0f4(0x167)](_0xe06e7e)));_0x2b3677&&(_0x2b3677[_0x22f0f4(0x19b)]['testInfo'][_0x22f0f4(0x184)]['use'][_0x22f0f4(0x17f)][_0x22f0f4(0x16b)]=_0x4a4a20,_0x2b3677['workerInfo']['project'][_0x22f0f4(0x171)][_0x22f0f4(0x17f)][_0x22f0f4(0x16b)]=_0x4a4a20);}}}catch(_0x5ba483){logger[_0x22f0f4(0x1a1)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util['format'](_0x5ba483));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x5efd26=a35_0x5dae;function a35_0x5dae(_0x3036b7,_0x2bd7b6){const _0x1d6796=a35_0x1d67();return a35_0x5dae=function(_0x5dae41,_0x587e3c){_0x5dae41=_0x5dae41-0x76;let _0x13ccc2=_0x1d6796[_0x5dae41];return _0x13ccc2;},a35_0x5dae(_0x3036b7,_0x2bd7b6);}(function(_0x453073,_0x5a2f58){const _0x1df9ff=a35_0x5dae,_0x14209a=_0x453073();while(!![]){try{const _0x437076=-parseInt(_0x1df9ff(0xd4))/0x1*(-parseInt(_0x1df9ff(0xa1))/0x2)+parseInt(_0x1df9ff(0xd7))/0x3+-parseInt(_0x1df9ff(0xad))/0x4*(parseInt(_0x1df9ff(0xce))/0x5)+parseInt(_0x1df9ff(0xe4))/0x6+parseInt(_0x1df9ff(0xbb))/0x7+parseInt(_0x1df9ff(0xd1))/0x8+-parseInt(_0x1df9ff(0xff))/0x9;if(_0x437076===_0x5a2f58)break;else _0x14209a['push'](_0x14209a['shift']());}catch(_0x5ab883){_0x14209a['push'](_0x14209a['shift']());}}}(a35_0x1d67,0x757df));function a35_0x1d67(){const _0x4b9a42=['debug','--config=','ckbSW','Error\x20in\x20closing\x20playwright','nDTJO','testContextOptions','tyzJC','17061030LwVwHv','readFileSync','skipSessionName','isTypescriptProject','--config','getConfigPath','AiAuw','platform','getProxyUrl','FRzcu','pw_result.json','isTrue','errorMessage','../../helpers/logger','writeFileSync','npx','PzgqY','Deleting\x20','../../helpers/utilities','path','push','BROWSERSTACK_TEST_OBSERVABILITY','nestedKeyValue','Playwright\x20process\x20exited\x20with\x20code\x20','jAswg','inherit','testObservability','close','splice','true','finalExecution','PnXWr','filterBrowserstackArgs','config','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','rZIjk','vInia','OcTla','resolvedConfigFile','dtqNC','indexOf','../../helpers/testhub/utils','exports','includes','eNqAD','USER_CONFIG_DETAILS_PATH','Error\x20in\x20deleting\x20playwright\x20results','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','mfxHX','playwright-browserstack-sdk.config.js','parse','launchBuild','stop','DVsCJ','split','oiDeh','62986oTaebO','gDsSV','NvmOu','../../helpers/test-observability/utils','BrowserStack\x20config\x20file\x20not\x20found.','length','lXMzZ','info','oWqPR','KtlMN','test','osMGV','108LSFwIg','BROWSERSTACK_RERUN','concat','sNveJ','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','existsSync','resolve','./accessibility-helper','--disable-test-observability','PLAYWRIGHT','--disable-browserstack-automation','accessibilityOptions','skipSessionStatus','uzRFf','1536696cNHPRS','VwyCb','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_TEST_ACCESSIBILITY_YML','has','../utils/constants','unlinkSync','dirname','EshFq','CEUeR','win32','BROWSERSTACK_AUTOMATION','sElaT','CyHbp','accessibility','exitCode','JNtyP','browserstackSetupConfig.json','env','1265XhePhJ','cliConfig','HvXGa','5623616csCkCK','error','playwright','3ZMEfgz','map','hquMj','1470816QMKulh','isFalse','ufZNJ','../../helpers/test-observability/error-handler','trim','slice','AlvoY','markSDKSetupComplete','unObj','homedir','sMiRm','isUndefined','../../helpers/accessibility-automation/helper','5259102pLWRwg','join','argv','Error\x20in\x20getting\x20funnel\x20data\x20results','LEjst','MODULE','cwd','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','BROWSERSTACK_PW_CONFIG_DIR','frEfn','requirePWModule','filter','util','stringify','YqUaw','owumD','getPackageType','8|3|0|6|7|1|2|4|5','false','mqHbZ'];a35_0x1d67=function(){return _0x4b9a42;};return a35_0x1d67();}const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),{format}=require(a35_0x5efd26(0xf0)),logger=require(a35_0x5efd26(0x76))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),utilities=require(a35_0x5efd26(0x7b)),constants=require(a35_0x5efd26(0xc0)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require(a35_0x5efd26(0xda)),{getFrameworkVersion}=require(a35_0x5efd26(0xa4)),{checkAccessibilityPlatformConfig}=require(a35_0x5efd26(0xe3)),{setAccessibilityCapabilities}=require(a35_0x5efd26(0xb4)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x5efd26(0x92)),getUserPlaywrightConfig=async(_0x16d4af,_0x447c3a)=>{const _0x124805=a35_0x5efd26,_0x5f07ac={'CyHbp':function(_0x4b89d6){return _0x4b89d6();},'owumD':function(_0xb140d0,_0x2a9de9){return _0xb140d0(_0x2a9de9);},'VwyCb':_0x124805(0x8f),'PnXWr':_0x124805(0xf9)},_0x5b6525=!helper[_0x124805(0xe2)](_0x16d4af[_0x124805(0x8a)]),_0x182ce1=_0x5b6525?path[_0x124805(0xb3)](process[_0x124805(0xea)](),_0x16d4af[_0x124805(0x8a)]):process[_0x124805(0xea)](),{resolveConfigFile:_0x56717d,resolveConfigLocation:_0x3e0625}=helper[_0x124805(0xee)]['apply'](null,_0x5f07ac[_0x124805(0xc8)](getConfigLoaderPath)),_0x3de3d4=_0x56717d?_0x5f07ac[_0x124805(0xf3)](_0x56717d,_0x182ce1):helper[_0x124805(0x7f)](_0x5f07ac[_0x124805(0xf3)](_0x3e0625,_0x182ce1),[_0x5f07ac[_0x124805(0xbc)]]),_0x7de7d9={};if(_0x5b6525){const _0x29681e=_0x447c3a['findIndex'](_0xfe5688=>_0xfe5688===_0x124805(0x103)||_0xfe5688==='-c'||_0xfe5688['startsWith'](_0x124805(0xf9)));_0x447c3a[_0x124805(0x85)](_0x29681e,_0x447c3a[_0x29681e]['startsWith'](_0x5f07ac[_0x124805(0x88)])?0x1:0x2);}const _0x21b72f={};return _0x21b72f[_0x124805(0x7c)]=_0x3de3d4,_0x21b72f[_0x124805(0x8a)]=_0x7de7d9,_0x21b72f;},handleO11yRerun=_0x10293d=>{const _0x53e13a=a35_0x5efd26,_0x555465={};_0x555465['nDTJO']=function(_0xbafe24,_0x206e7c){return _0xbafe24!==_0x206e7c;},_0x555465['hquMj']='null',_0x555465[_0x53e13a(0xa2)]='--grep';const _0x17326d=_0x555465,_0x2c9c16=helper[_0x53e13a(0x10a)](process[_0x53e13a(0xcd)][_0x53e13a(0xae)]);if(_0x2c9c16){const _0x1b9c7f=process[_0x53e13a(0xcd)]['BROWSERSTACK_RERUN_TESTS'],_0xff837c=[];if(_0x17326d[_0x53e13a(0xfc)](_0x1b9c7f,_0x17326d[_0x53e13a(0xd6)])&&!helper['isUndefined'](_0x1b9c7f)){_0x1b9c7f[_0x53e13a(0x9f)](',')[_0x53e13a(0xd5)](_0x2f56e6=>{const _0x19521f=_0x53e13a;_0xff837c[_0x19521f(0x7d)]('('+_0x2f56e6[_0x19521f(0xdb)]()+')');});const _0x5b646f='^'+_0xff837c[_0x53e13a(0xe5)]('|')+'$';_0x10293d[_0x53e13a(0x7d)](_0x17326d['gDsSV'],_0x5b646f);}}},spawnOriginalProcess=_0xebcb7c=>{const _0x44617f=a35_0x5efd26,_0x90f5ce={'mfxHX':function(_0x56ac20,_0x2f5efc,_0x370c96,_0x23f45a){return _0x56ac20(_0x2f5efc,_0x370c96,_0x23f45a);},'ABznT':_0x44617f(0x78),'HvXGa':_0x44617f(0xd3),'oiDeh':function(_0x52ab18,_0x5cc05d){return _0x52ab18===_0x5cc05d;},'gYiGX':_0x44617f(0xc5),'ufZNJ':_0x44617f(0x82)};_0x90f5ce[_0x44617f(0x99)](spawn,_0x90f5ce['ABznT'],[_0x90f5ce[_0x44617f(0xd0)],..._0xebcb7c[_0x44617f(0xdc)](0x1)],{'shell':_0x90f5ce[_0x44617f(0xa0)](process[_0x44617f(0x106)],_0x90f5ce['gYiGX']),'stdio':_0x90f5ce[_0x44617f(0xd9)],'cwd':process[_0x44617f(0xea)]()});},isTestCommand=(_0x564d5f,_0x38b749)=>{const _0x3ee02a=a35_0x5efd26,_0x402b26={};_0x402b26['EshFq']=function(_0x5f0ca6,_0x200095){return _0x5f0ca6>_0x200095;},_0x402b26[_0x3ee02a(0xcb)]=function(_0x1aea09,_0x45d094){return _0x1aea09===_0x45d094;},_0x402b26['rZIjk']=_0x3ee02a(0xab);const _0x38291b=_0x402b26;if(_0x38291b[_0x3ee02a(0xc3)](_0x38b749[_0x3ee02a(0xa6)],0x1)&&_0x38291b[_0x3ee02a(0xcb)](_0x38b749[0x1],_0x38291b[_0x3ee02a(0x8c)]))return!![];return![];};async function run(_0x1dcf2d,_0xd4195c){const _0x529f0a=a35_0x5efd26,_0x25ce14={'mqHbZ':'.browserstack','unObj':_0x529f0a(0x109),'sElaT':function(_0x2ca8a2,_0x448c09){return _0x2ca8a2+_0x448c09;},'jAswg':_0x529f0a(0xe7),'lXMzZ':_0x529f0a(0xf5),'ZENHm':function(_0x591499){return _0x591499();},'dtqNC':_0x529f0a(0xfb),'AiAuw':_0x529f0a(0xb7),'osMGV':_0x529f0a(0xf6),'ckbSW':'--disable-test-observability','wHmxS':function(_0x1c6b2d,_0x4c47cf){return _0x1c6b2d>=_0x4c47cf;},'aTqQU':_0x529f0a(0x97),'zfbIY':function(_0xa5d91f,_0x30c47f,_0x121e67){return _0xa5d91f(_0x30c47f,_0x121e67);},'frEfn':function(_0x334a74,_0x5519ce){return _0x334a74(_0x5519ce);},'PzgqY':_0x529f0a(0xa5),'sNveJ':'automation','tyzJC':function(_0x4bdc63,_0x43747f){return _0x4bdc63!=_0x43747f;},'AlvoY':function(_0x3b4683,_0x1f79b6,_0x4452f6){return _0x3b4683(_0x1f79b6,_0x4452f6);},'KtlMN':function(_0x321ce9,_0x3d3ea0){return _0x321ce9(_0x3d3ea0);},'uzRFf':function(_0x1fef82,_0x2362db){return _0x1fef82===_0x2362db;},'IadxE':_0x529f0a(0x86),'vInia':function(_0x4f218b,_0x1178d6){return _0x4f218b(_0x1178d6);},'DVsCJ':_0x529f0a(0xcc),'dwOvv':function(_0x2fa5fe,_0x22bae1){return _0x2fa5fe===_0x22bae1;},'LEjst':_0x529f0a(0xbd),'zRhWT':_0x529f0a(0x9a),'oWqPR':function(_0x4cd887,_0x508619){return _0x4cd887-_0x508619;},'FRzcu':'Updated\x20config\x20file\x20name\x20to\x20-\x20','sMiRm':function(_0x217f71,_0x1ffc4c){return _0x217f71>_0x1ffc4c;},'OcTla':function(_0x3adb06,_0x40bc65,_0xc55877,_0x4b17ed){return _0x3adb06(_0x40bc65,_0xc55877,_0x4b17ed);},'CEUeR':'npx','ASKBm':_0x529f0a(0xd3),'NvmOu':_0x529f0a(0xab),'dkeDa':_0x529f0a(0x103),'efMej':_0x529f0a(0xc5),'YqUaw':_0x529f0a(0x82),'eNqAD':_0x529f0a(0x84)};!helper[_0x529f0a(0xd8)](process['env'][_0x529f0a(0xc6)])&&(process[_0x529f0a(0xcd)][_0x529f0a(0xc6)]=!![]);process[_0x529f0a(0xe6)][_0x529f0a(0x94)](_0x25ce14[_0x529f0a(0x105)])&&(process[_0x529f0a(0xcd)][_0x529f0a(0xc6)]=_0x25ce14[_0x529f0a(0xac)],_0xd4195c=_0xd4195c[_0x529f0a(0xef)](_0x1a5828=>_0x1a5828!==_0x529f0a(0xb7)));const _0x347771=_0xd4195c[_0x529f0a(0x91)](_0x25ce14[_0x529f0a(0xfa)]);_0x25ce14['wHmxS'](_0x347771,0x0)&&(process[_0x529f0a(0xcd)][_0x529f0a(0x7e)]=_0x25ce14[_0x529f0a(0xac)],_0xd4195c=_0xd4195c['filter'](_0x2c08b7=>_0x2c08b7!==_0x529f0a(0xb5)));try{const _0x40982c=path[_0x529f0a(0xe5)](helper[_0x529f0a(0xe0)](),_0x25ce14['mqHbZ'],_0x25ce14[_0x529f0a(0xdf)]);fs[_0x529f0a(0xb2)](_0x40982c)&&fs[_0x529f0a(0xc1)](_0x40982c);}catch(_0x751e36){logger[_0x529f0a(0xf8)](_0x25ce14['sElaT'](_0x25ce14['aTqQU'],_0x751e36));}if(!_0x25ce14['zfbIY'](isTestCommand,_0x1dcf2d,_0xd4195c)){_0x25ce14[_0x529f0a(0xed)](spawnOriginalProcess,_0xd4195c);return;}const _0x1eb2dc=new BrowserStackSetup(_0x1dcf2d,FRAMEWORKS['PLAYWRIGHT']);if(!_0x1eb2dc['config']){logger[_0x529f0a(0xd2)](_0x25ce14[_0x529f0a(0x79)]);return;}await _0x1eb2dc['initialize']();!helper[_0x529f0a(0xe2)](_0x1eb2dc['cliConfig'])&&_0x1eb2dc[_0x529f0a(0xcf)][_0x529f0a(0xbf)](_0x25ce14[_0x529f0a(0xb0)])&&(process[_0x529f0a(0xcd)][_0x529f0a(0xc6)]=_0x1eb2dc[_0x529f0a(0xcf)]['get'](_0x25ce14[_0x529f0a(0xb0)])||!![]);_0x25ce14[_0x529f0a(0xfe)](_0x1eb2dc[_0x529f0a(0x8a)][_0x529f0a(0x83)],null)&&!helper['isTrue'](process[_0x529f0a(0xcd)][_0x529f0a(0x7e)])&&(process[_0x529f0a(0xcd)][_0x529f0a(0x7e)]=process[_0x529f0a(0xcd)][_0x529f0a(0x7e)]||_0x1eb2dc[_0x529f0a(0x8a)][_0x529f0a(0x83)]);const _0x15c98a=!helper['isFalse'](process[_0x529f0a(0xcd)][_0x529f0a(0x7e)]);let _0x5f605f=![];_0x1eb2dc[_0x529f0a(0x8a)][_0x529f0a(0xc9)]&&(_0x5f605f=!![],process[_0x529f0a(0xcd)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x1eb2dc[_0x529f0a(0x8a)][_0x529f0a(0xc9)]);_0x1eb2dc[_0x529f0a(0x8a)][_0x529f0a(0xb8)]&&(process[_0x529f0a(0xcd)][_0x529f0a(0x98)]=JSON[_0x529f0a(0xf1)](_0x1eb2dc[_0x529f0a(0x8a)]['accessibilityOptions']));const _0x230743=_0xd4195c[_0x529f0a(0xaf)](),_0x1679e5=await _0x25ce14[_0x529f0a(0xdd)](getUserPlaywrightConfig,_0x1dcf2d,_0xd4195c);if(helper[_0x529f0a(0xe2)](_0x1679e5)){_0x25ce14['frEfn'](spawnOriginalProcess,_0x230743);return;}const _0x2a2e74=_0x1679e5[_0x529f0a(0x7c)]?path[_0x529f0a(0xc2)](_0x1679e5[_0x529f0a(0x7c)]):process[_0x529f0a(0xea)]();process['env'][_0x529f0a(0xec)]=_0x2a2e74,await TestHubHandler[_0x529f0a(0x9c)](FRAMEWORKS[_0x529f0a(0xb6)],_0x1eb2dc);_0x15c98a&&_0x25ce14[_0x529f0a(0xaa)](handleO11yRerun,_0xd4195c);let _0x4ff354=_0x25ce14[_0x529f0a(0xba)](process[_0x529f0a(0xcd)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x25ce14['IadxE']);_0x4ff354=_0x4ff354||_0x25ce14[_0x529f0a(0xed)](checkAccessibilityPlatformConfig,_0x1eb2dc[_0x529f0a(0x8a)]),process['env'][_0x529f0a(0xbe)]=_0x4ff354;_0x4ff354&&_0x25ce14[_0x529f0a(0x8d)](setAccessibilityCapabilities,_0x1eb2dc['config']);const _0x2e55ba=path[_0x529f0a(0xe5)](_0x1679e5[_0x529f0a(0x7c)]?path[_0x529f0a(0xc2)](_0x1679e5[_0x529f0a(0x7c)]):process['cwd'](),_0x25ce14[_0x529f0a(0x9e)]);fs[_0x529f0a(0x77)](_0x2e55ba,helper['serializeToYamlString'](_0x1eb2dc[_0x529f0a(0x8a)])),process[_0x529f0a(0xcd)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x2e55ba,helper['clearTempPWConfig']();let _0x4edf8f='';_0x25ce14['dwOvv'](helper[_0x529f0a(0xf4)](),constants['PACKAGE_TYPE'][_0x529f0a(0xe9)])?_0x4edf8f=_0x25ce14[_0x529f0a(0xe8)]:_0x4edf8f=_0x25ce14['zRhWT'];let _0x111793='';if(helper[_0x529f0a(0x102)](_0x1679e5[_0x529f0a(0x7c)])){_0x111793=_0x529f0a(0xeb);const _0x2a5a76=_0x4edf8f[_0x529f0a(0x9f)]('.');_0x2a5a76[_0x25ce14[_0x529f0a(0xa9)](_0x2a5a76['length'],0x1)]='ts',_0x4edf8f=_0x2a5a76['join']('.'),logger['debug'](_0x25ce14[_0x529f0a(0xc7)](_0x25ce14[_0x529f0a(0x108)],_0x4edf8f));}else _0x111793=_0x529f0a(0x8b);const _0x23dccf=path['join'](_0x1679e5[_0x529f0a(0x7c)]?path[_0x529f0a(0xc2)](_0x1679e5[_0x529f0a(0x7c)]):process[_0x529f0a(0xea)](),_0x4edf8f);let _0x4d7643=_0x1679e5['path']?_0x1679e5[_0x529f0a(0x7c)]:'';_0x4d7643=_0x25ce14[_0x529f0a(0xe1)](_0x4d7643[_0x529f0a(0xa6)],0x0)?path[_0x529f0a(0xb3)](_0x4d7643):'',process[_0x529f0a(0xcd)][_0x529f0a(0x96)]=_0x4d7643;const _0x318a70=helper[_0x529f0a(0x107)](_0x1eb2dc[_0x529f0a(0x8a)]);_0x318a70&&(_0x111793=_0x25ce14['sElaT'](_0x529f0a(0xb1)+_0x318a70+'\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();',_0x111793));helper[_0x529f0a(0x89)]({},_0xd4195c),fs['writeFileSync'](_0x23dccf,_0x111793),helper[_0x529f0a(0xde)]();const _0xbb0bed=_0x25ce14[_0x529f0a(0x8e)](spawn,_0x25ce14[_0x529f0a(0xc4)],[_0x25ce14['ASKBm'],_0x25ce14[_0x529f0a(0xa3)],_0x25ce14['dkeDa'],_0x23dccf,..._0xd4195c[_0x529f0a(0xdc)](0x2)],{'shell':_0x25ce14[_0x529f0a(0xba)](process[_0x529f0a(0x106)],_0x25ce14['efMej']),'stdio':_0x25ce14[_0x529f0a(0xf2)],'cwd':process[_0x529f0a(0xea)](),'env':Object['assign']({},process[_0x529f0a(0xcd)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x529f0a(0x104)](_0x1dcf2d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1eb2dc['config'][_0x529f0a(0xfd)][_0x529f0a(0xb9)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1eb2dc[_0x529f0a(0x8a)][_0x529f0a(0xfd)][_0x529f0a(0x101)],'BROWSERSTACK_LOG_LEVEL':_0x1eb2dc['config']['logLevel']})}),_0x456135=()=>{const _0x32999b=_0x529f0a;try{const _0x51d2c9=path[_0x32999b(0xe5)](helper[_0x32999b(0xe0)](),_0x25ce14[_0x32999b(0xf7)],_0x25ce14[_0x32999b(0xdf)]);if(fs['existsSync'](_0x51d2c9)){let _0x57acda=fs[_0x32999b(0x100)](_0x51d2c9);_0x57acda=JSON[_0x32999b(0x9b)](_0x57acda),_0x1eb2dc[_0x32999b(0x10b)]=_0x57acda,fs[_0x32999b(0xc1)](_0x51d2c9);}}catch(_0x18d730){logger[_0x32999b(0xf8)](_0x25ce14[_0x32999b(0xc7)](_0x25ce14[_0x32999b(0x81)],_0x18d730));}};_0xbb0bed['on'](_0x25ce14[_0x529f0a(0x95)],async _0x25d221=>{const _0x35dbb2=_0x529f0a;try{const _0x2bcd82=_0x25ce14[_0x35dbb2(0xa7)][_0x35dbb2(0x9f)]('|');let _0x4f10aa=0x0;while(!![]){switch(_0x2bcd82[_0x4f10aa++]){case'0':await utilities[_0x35dbb2(0x87)](_0x1eb2dc);continue;case'1':logger[_0x35dbb2(0xa8)](_0x35dbb2(0x7a)+_0x23dccf);continue;case'2':fs[_0x35dbb2(0xc1)](_0x23dccf);continue;case'3':await TestHubHandler[_0x35dbb2(0x9d)]();continue;case'4':logger[_0x35dbb2(0xf8)](_0x35dbb2(0x7a)+_0x2e55ba);continue;case'5':fs['unlinkSync'](_0x2e55ba);continue;case'6':process[_0x35dbb2(0xca)]=_0x25d221;continue;case'7':logger[_0x35dbb2(0xf8)](_0x35dbb2(0x80)+_0x25d221);continue;case'8':_0x25ce14['ZENHm'](_0x456135);continue;}break;}}catch(_0x1a5959){logger['debug'](_0x25ce14[_0x35dbb2(0xc7)](_0x25ce14[_0x35dbb2(0x90)],_0x1a5959));}});}module[a35_0x5efd26(0x93)]=run;
|
|
2
|
+
'use strict';function a35_0xcb56(_0x5e0b73,_0x1be1ce){const _0x287d56=a35_0x287d();return a35_0xcb56=function(_0xcb56b,_0x4085cf){_0xcb56b=_0xcb56b-0xb0;let _0x1bbbe8=_0x287d56[_0xcb56b];return _0x1bbbe8;},a35_0xcb56(_0x5e0b73,_0x1be1ce);}const a35_0x3b8b98=a35_0xcb56;(function(_0x2426bf,_0x1f7b3f){const _0x26b4bf=a35_0xcb56,_0x555fea=_0x2426bf();while(!![]){try{const _0x2ed097=-parseInt(_0x26b4bf(0xf3))/0x1+parseInt(_0x26b4bf(0x106))/0x2+-parseInt(_0x26b4bf(0x10b))/0x3*(-parseInt(_0x26b4bf(0xc4))/0x4)+parseInt(_0x26b4bf(0xc2))/0x5+parseInt(_0x26b4bf(0x122))/0x6+parseInt(_0x26b4bf(0x14e))/0x7*(-parseInt(_0x26b4bf(0xb6))/0x8)+-parseInt(_0x26b4bf(0xbb))/0x9;if(_0x2ed097===_0x1f7b3f)break;else _0x555fea['push'](_0x555fea['shift']());}catch(_0x339c33){_0x555fea['push'](_0x555fea['shift']());}}}(a35_0x287d,0x7b9b5));function a35_0x287d(){const _0xa3dea3=['serializeToYamlString','BROWSERSTACK_TEST_OBSERVABILITY','pRPDT','accessibilityOptions','Playwright\x20process\x20exited\x20with\x20code\x20','filter','mrutg','biSGj','startsWith','NJnez','328765vvRIvj','Error\x20in\x20deleting\x20playwright\x20results','isFalse','liapx','YLTho','split','YMKyv','winstonLogger','.browserstack','CutwY','MSmKf','getPackageType','SEZcN','iAHOa','gSTrl','BROWSERSTACK_SETUP_CONFIG_PATH','get','child_process','util','2024716JwmexZ','logLevel','../../helpers/testhub/utils','unlinkSync','dirname','32262IWXrkt','WPAxb','Umxie','DLWrR','../../helpers/test-observability/utils','oTkiL','env','jBwxw','errorMessage','cwd','Puzmd','BROWSERSTACK_RERUN','--disable-test-observability','Ipdbk','../../helpers/accessibility-automation/helper','homedir','stringify','inherit','IiUjn','../utils/constants','config','filterBrowserstackArgs','USER_CONFIG_DETAILS_PATH','5968668wDWCLV','nOjYU','wvnzZ','platform','push','oklVW','Error\x20in\x20closing\x20playwright','splice','BROWSERSTACK_AUTOMATION','concat','path','initialize','../../helpers/BrowserStackSetup','Kxges','PLAYWRIGHT','../../helpers/test-observability/error-handler','exitCode','pw_result.json','getProxyUrl','WJtAW','debug','win32','slice','true','close','BrowserStack\x20config\x20file\x20not\x20found.','writeFileSync','isUndefined','nestedKeyValue','Error\x20in\x20getting\x20funnel\x20data\x20results','./reporter/pwUtils','automation','argv','--disable-browserstack-automation','skipSessionName','findIndex','testObservability','cIghQ','isTypescriptProject','JBZXQ','MPElc','\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();','../../helpers/test-observability/constants','testContextOptions','6347404AGAQxo','DXPTB','npx','false','playwright-browserstack-sdk.config.cjs','markSDKSetupComplete','oLReY','stop','./accessibility-helper','join','PACKAGE_TYPE','8OGIImk','../../helpers/testhub/testhubHandler','length','--config','Updated\x20config\x20file\x20name\x20to\x20-\x20','15065271cRzFTZ','WYFCx','resolve','KPkqc','AfGOt','assign','oguMo','2795235hlnrag','izYtu','316GUJHva','playwright','unNbo','null','NYyhZ','map','BROWSERSTACK_RERUN_TESTS','UTcAx','GwJAc','TzZSp','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','existsSync','--config=','--grep','../../helpers/helper','parse','HvRBn','Deleting\x20','UDQRK','cliConfig','error','resolvedConfigFile','TXZoy','DnCDV','../../helpers/utilities','WTRQV','getConfigPath','CEGOH','requirePWModule','info','trim','clearTempPWConfig','BROWSERSTACK_PW_CONFIG_DIR','browserstackSetupConfig.json','IifGW','5|6|1|7|0|4|2|8|3'];a35_0x287d=function(){return _0xa3dea3;};return a35_0x287d();}const fs=require('fs'),path=require(a35_0x3b8b98(0x12c)),{spawn}=require(a35_0x3b8b98(0x104)),{format}=require(a35_0x3b8b98(0x105)),logger=require('../../helpers/logger')[a35_0x3b8b98(0xfa)],{default:BrowserStackSetup}=require(a35_0x3b8b98(0x12e)),helper=require(a35_0x3b8b98(0xd3)),utilities=require(a35_0x3b8b98(0xdd)),constants=require(a35_0x3b8b98(0x11e)),{FRAMEWORKS}=require(a35_0x3b8b98(0x14c)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x3b8b98(0x140)),{CrashReporter}=require(a35_0x3b8b98(0x131)),{getFrameworkVersion}=require(a35_0x3b8b98(0x10f)),{checkAccessibilityPlatformConfig}=require(a35_0x3b8b98(0x119)),{setAccessibilityCapabilities}=require(a35_0x3b8b98(0xb3)),TestHubHandler=require(a35_0x3b8b98(0xb7)),{shouldProcessEventForTesthub}=require(a35_0x3b8b98(0x108)),getUserPlaywrightConfig=async(_0x3c22e0,_0x11d4d)=>{const _0x1de3ef=a35_0x3b8b98,_0x259f2e={'cIghQ':function(_0x867f23){return _0x867f23();},'Ipdbk':function(_0x3c05ac,_0x263b6a){return _0x3c05ac(_0x263b6a);},'WYFCx':_0x1de3ef(0xda),'KPkqc':_0x1de3ef(0xd1)},_0x13c6a5=!helper[_0x1de3ef(0x13d)](_0x3c22e0[_0x1de3ef(0x11f)]),_0xf2da1e=_0x13c6a5?path[_0x1de3ef(0xbd)](process[_0x1de3ef(0x114)](),_0x3c22e0[_0x1de3ef(0x11f)]):process[_0x1de3ef(0x114)](),{resolveConfigFile:_0x4d2c7e,resolveConfigLocation:_0x2a7868}=helper[_0x1de3ef(0xe1)]['apply'](null,_0x259f2e[_0x1de3ef(0x147)](getConfigLoaderPath)),_0x4d532b=_0x4d2c7e?_0x259f2e[_0x1de3ef(0x118)](_0x4d2c7e,_0xf2da1e):helper[_0x1de3ef(0x13e)](_0x259f2e[_0x1de3ef(0x118)](_0x2a7868,_0xf2da1e),[_0x259f2e[_0x1de3ef(0xbc)]]),_0x2500c4={};if(_0x13c6a5){const _0x39b5f4=_0x11d4d[_0x1de3ef(0x145)](_0x2a9909=>_0x2a9909==='--config'||_0x2a9909==='-c'||_0x2a9909[_0x1de3ef(0xf1)]('--config='));_0x11d4d[_0x1de3ef(0x129)](_0x39b5f4,_0x11d4d[_0x39b5f4][_0x1de3ef(0xf1)](_0x259f2e[_0x1de3ef(0xbe)])?0x1:0x2);}const _0x56b203={};return _0x56b203['path']=_0x4d532b,_0x56b203[_0x1de3ef(0x11f)]=_0x2500c4,_0x56b203;},handleO11yRerun=_0x21fe14=>{const _0x191596=a35_0x3b8b98,_0x636422={};_0x636422[_0x191596(0x135)]=function(_0x13a600,_0x4db914){return _0x13a600!==_0x4db914;},_0x636422['CutwY']=_0x191596(0xc7),_0x636422[_0x191596(0xf6)]=_0x191596(0xd2);const _0x46d134=_0x636422,_0x1750de=helper['isTrue'](process[_0x191596(0x111)][_0x191596(0x116)]);if(_0x1750de){const _0x22449d=process[_0x191596(0x111)][_0x191596(0xca)],_0x3c20cf=[];if(_0x46d134[_0x191596(0x135)](_0x22449d,_0x46d134[_0x191596(0xfc)])&&!helper[_0x191596(0x13d)](_0x22449d)){_0x22449d[_0x191596(0xf8)](',')[_0x191596(0xc9)](_0x257bcc=>{const _0x155f91=_0x191596;_0x3c20cf['push']('('+_0x257bcc[_0x155f91(0xe3)]()+')');});const _0x34a197='^'+_0x3c20cf['join']('|')+'$';_0x21fe14[_0x191596(0x126)](_0x46d134['liapx'],_0x34a197);}}},spawnOriginalProcess=_0x583dfe=>{const _0x1580ed=a35_0x3b8b98,_0x5ee4e1={'CYkPN':function(_0x1b1570,_0x44de0f,_0x4acd46,_0x3715b3){return _0x1b1570(_0x44de0f,_0x4acd46,_0x3715b3);},'WPAxb':_0x1580ed(0x150),'wvnzZ':_0x1580ed(0xc5),'biSGj':function(_0x5c8137,_0x57825b){return _0x5c8137===_0x57825b;},'pRPDT':'win32','DLWrR':_0x1580ed(0x11c)};_0x5ee4e1['CYkPN'](spawn,_0x5ee4e1[_0x1580ed(0x10c)],[_0x5ee4e1[_0x1580ed(0x124)],..._0x583dfe['slice'](0x1)],{'shell':_0x5ee4e1[_0x1580ed(0xf0)](process['platform'],_0x5ee4e1[_0x1580ed(0xeb)]),'stdio':_0x5ee4e1[_0x1580ed(0x10e)],'cwd':process[_0x1580ed(0x114)]()});},isTestCommand=(_0x4fade6,_0x230809)=>{const _0x5e7210=a35_0x3b8b98,_0x113d6d={};_0x113d6d[_0x5e7210(0x112)]=function(_0x26d312,_0x2ef965){return _0x26d312>_0x2ef965;},_0x113d6d['oLReY']=function(_0xe27b59,_0x3b5f17){return _0xe27b59===_0x3b5f17;},_0x113d6d['gSTrl']='test';const _0x1bec06=_0x113d6d;if(_0x1bec06[_0x5e7210(0x112)](_0x230809[_0x5e7210(0xb8)],0x1)&&_0x1bec06[_0x5e7210(0xb1)](_0x230809[0x1],_0x1bec06[_0x5e7210(0x101)]))return!![];return![];};async function run(_0x3ed214,_0x1bddca){const _0x3e8b42=a35_0x3b8b98,_0xf36c95={'oTkiL':_0x3e8b42(0xfb),'DnCDV':_0x3e8b42(0x133),'iAHOa':function(_0x56696,_0x4404ed){return _0x56696+_0x4404ed;},'oklVW':_0x3e8b42(0x13f),'CEGOH':_0x3e8b42(0xe8),'GwJAc':function(_0x303092){return _0x303092();},'unNbo':function(_0x5197ee,_0x1a0fb2){return _0x5197ee+_0x1a0fb2;},'DXPTB':_0x3e8b42(0x128),'PQhbX':'--disable-browserstack-automation','UTcAx':_0x3e8b42(0x151),'Puzmd':_0x3e8b42(0x117),'JBZXQ':function(_0x3bf4fa,_0x56a8c8){return _0x3bf4fa>=_0x56a8c8;},'MSmKf':function(_0x11460a,_0x2d114e){return _0x11460a+_0x2d114e;},'WTRQV':_0x3e8b42(0xf4),'Umxie':function(_0x57427b,_0x5d5969,_0x4e18a5){return _0x57427b(_0x5d5969,_0x4e18a5);},'YMKyv':function(_0x2b0ba6,_0x44a26a){return _0x2b0ba6(_0x44a26a);},'NJnez':_0x3e8b42(0x13b),'MPElc':_0x3e8b42(0x141),'mmJxD':function(_0x244f14,_0x442037){return _0x244f14!=_0x442037;},'IifGW':function(_0x2ad781,_0x16751b){return _0x2ad781(_0x16751b);},'HvRBn':function(_0x583b69,_0xe994df){return _0x583b69===_0xe994df;},'Kxges':_0x3e8b42(0x139),'NYyhZ':_0x3e8b42(0xe6),'IiUjn':_0x3e8b42(0x152),'IdphS':'playwright-browserstack-sdk.config.js','rktcc':function(_0x2a8c4b,_0x42fd2f){return _0x2a8c4b-_0x42fd2f;},'AfGOt':function(_0x314e51,_0x53a0a7){return _0x314e51+_0x53a0a7;},'TXZoy':_0x3e8b42(0xba),'mrutg':function(_0x4997d8,_0x333455){return _0x4997d8>_0x333455;},'nOjYU':function(_0x306c11,_0x2e3f43,_0x55f3a3,_0x34d816){return _0x306c11(_0x2e3f43,_0x55f3a3,_0x34d816);},'SghaL':_0x3e8b42(0x150),'UDQRK':_0x3e8b42(0xc5),'oguMo':'test','izYtu':_0x3e8b42(0xb9),'YLTho':function(_0x502173,_0x41ba7b){return _0x502173===_0x41ba7b;},'TzZSp':_0x3e8b42(0x137),'oZLxg':'inherit','SEZcN':_0x3e8b42(0x13a)};!helper[_0x3e8b42(0xf5)](process[_0x3e8b42(0x111)][_0x3e8b42(0x12a)])&&(process[_0x3e8b42(0x111)][_0x3e8b42(0x12a)]=!![]);process[_0x3e8b42(0x142)]['includes'](_0xf36c95['PQhbX'])&&(process['env'][_0x3e8b42(0x12a)]=_0xf36c95[_0x3e8b42(0xcb)],_0x1bddca=_0x1bddca[_0x3e8b42(0xee)](_0x7c6e51=>_0x7c6e51!==_0x3e8b42(0x143)));const _0x4baebf=_0x1bddca['indexOf'](_0xf36c95[_0x3e8b42(0x115)]);_0xf36c95[_0x3e8b42(0x149)](_0x4baebf,0x0)&&(process[_0x3e8b42(0x111)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0xf36c95[_0x3e8b42(0xcb)],_0x1bddca=_0x1bddca['filter'](_0x56baa4=>_0x56baa4!==_0x3e8b42(0x117)));try{const _0x1fd91a=path['join'](helper[_0x3e8b42(0x11a)](),_0xf36c95[_0x3e8b42(0x110)],_0xf36c95[_0x3e8b42(0xdc)]);fs[_0x3e8b42(0xd0)](_0x1fd91a)&&fs['unlinkSync'](_0x1fd91a);}catch(_0x54ab9a){logger[_0x3e8b42(0x136)](_0xf36c95[_0x3e8b42(0xfd)](_0xf36c95[_0x3e8b42(0xde)],_0x54ab9a));}if(!_0xf36c95['Umxie'](isTestCommand,_0x3ed214,_0x1bddca)){_0xf36c95['YMKyv'](spawnOriginalProcess,_0x1bddca);return;}const _0x37b9b4=new BrowserStackSetup(_0x3ed214,FRAMEWORKS['PLAYWRIGHT']);if(!_0x37b9b4[_0x3e8b42(0x11f)]){logger[_0x3e8b42(0xd9)](_0xf36c95[_0x3e8b42(0xf2)]);return;}await _0x37b9b4[_0x3e8b42(0x12d)]();!helper[_0x3e8b42(0x13d)](_0x37b9b4[_0x3e8b42(0xd8)])&&_0x37b9b4[_0x3e8b42(0xd8)]['has'](_0xf36c95['MPElc'])&&(process[_0x3e8b42(0x111)][_0x3e8b42(0x12a)]=_0x37b9b4[_0x3e8b42(0xd8)][_0x3e8b42(0x103)](_0xf36c95[_0x3e8b42(0x14a)])||!![]);_0xf36c95['mmJxD'](_0x37b9b4['config'][_0x3e8b42(0x146)],null)&&!helper['isTrue'](process[_0x3e8b42(0x111)][_0x3e8b42(0xea)])&&(process[_0x3e8b42(0x111)][_0x3e8b42(0xea)]=process[_0x3e8b42(0x111)][_0x3e8b42(0xea)]||_0x37b9b4['config'][_0x3e8b42(0x146)]);const _0x561108=!helper[_0x3e8b42(0xf5)](process[_0x3e8b42(0x111)][_0x3e8b42(0xea)]);let _0x2e6ffb=![];_0x37b9b4[_0x3e8b42(0x11f)]['accessibility']&&(_0x2e6ffb=!![],process[_0x3e8b42(0x111)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x37b9b4['config']['accessibility']);_0x37b9b4[_0x3e8b42(0x11f)][_0x3e8b42(0xec)]&&(process[_0x3e8b42(0x111)][_0x3e8b42(0xcf)]=JSON[_0x3e8b42(0x11b)](_0x37b9b4[_0x3e8b42(0x11f)][_0x3e8b42(0xec)]));const _0x2ec73a=_0x1bddca[_0x3e8b42(0x12b)](),_0x5ecda3=await _0xf36c95[_0x3e8b42(0x10d)](getUserPlaywrightConfig,_0x3ed214,_0x1bddca);if(helper['isUndefined'](_0x5ecda3)){_0xf36c95[_0x3e8b42(0xe7)](spawnOriginalProcess,_0x2ec73a);return;}const _0x138918=_0x5ecda3[_0x3e8b42(0x12c)]?path[_0x3e8b42(0x10a)](_0x5ecda3[_0x3e8b42(0x12c)]):process[_0x3e8b42(0x114)]();process[_0x3e8b42(0x111)][_0x3e8b42(0xe5)]=_0x138918,await TestHubHandler['launchBuild'](FRAMEWORKS[_0x3e8b42(0x130)],_0x37b9b4);_0x561108&&_0xf36c95[_0x3e8b42(0xf9)](handleO11yRerun,_0x1bddca);let _0x3514b5=_0xf36c95['HvRBn'](process[_0x3e8b42(0x111)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0xf36c95[_0x3e8b42(0x12f)]);_0x3514b5=_0x3514b5||_0xf36c95['YMKyv'](checkAccessibilityPlatformConfig,_0x37b9b4[_0x3e8b42(0x11f)]),process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x3514b5;_0x3514b5&&_0xf36c95[_0x3e8b42(0xe7)](setAccessibilityCapabilities,_0x37b9b4['config']);const _0x27e57b=path['join'](_0x5ecda3['path']?path[_0x3e8b42(0x10a)](_0x5ecda3[_0x3e8b42(0x12c)]):process['cwd'](),_0xf36c95[_0x3e8b42(0xc8)]);fs[_0x3e8b42(0x13c)](_0x27e57b,helper[_0x3e8b42(0xe9)](_0x37b9b4[_0x3e8b42(0x11f)])),process[_0x3e8b42(0x111)][_0x3e8b42(0x102)]=_0x27e57b,helper[_0x3e8b42(0xe4)]();let _0xf8985='';_0xf36c95[_0x3e8b42(0xd5)](helper[_0x3e8b42(0xfe)](),constants[_0x3e8b42(0xb5)]['MODULE'])?_0xf8985=_0xf36c95[_0x3e8b42(0x11d)]:_0xf8985=_0xf36c95['IdphS'];let _0x55c2b6='';if(helper[_0x3e8b42(0x148)](_0x5ecda3[_0x3e8b42(0x12c)])){_0x55c2b6=_0x3e8b42(0xce);const _0x20cbc9=_0xf8985[_0x3e8b42(0xf8)]('.');_0x20cbc9[_0xf36c95['rktcc'](_0x20cbc9[_0x3e8b42(0xb8)],0x1)]='ts',_0xf8985=_0x20cbc9[_0x3e8b42(0xb4)]('.'),logger[_0x3e8b42(0x136)](_0xf36c95[_0x3e8b42(0xbf)](_0xf36c95[_0x3e8b42(0xdb)],_0xf8985));}else _0x55c2b6='\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 _0x3d3311=path[_0x3e8b42(0xb4)](_0x5ecda3[_0x3e8b42(0x12c)]?path[_0x3e8b42(0x10a)](_0x5ecda3[_0x3e8b42(0x12c)]):process['cwd'](),_0xf8985);let _0x4f230a=_0x5ecda3[_0x3e8b42(0x12c)]?_0x5ecda3[_0x3e8b42(0x12c)]:'';_0x4f230a=_0xf36c95[_0x3e8b42(0xef)](_0x4f230a[_0x3e8b42(0xb8)],0x0)?path[_0x3e8b42(0xbd)](_0x4f230a):'',process[_0x3e8b42(0x111)][_0x3e8b42(0x121)]=_0x4f230a;const _0x563cc1=helper[_0x3e8b42(0x134)](_0x37b9b4['config']);_0x563cc1&&(_0x55c2b6=_0xf36c95[_0x3e8b42(0xc6)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x563cc1+_0x3e8b42(0x14b),_0x55c2b6));helper[_0x3e8b42(0x120)]({},_0x1bddca),fs[_0x3e8b42(0x13c)](_0x3d3311,_0x55c2b6),helper[_0x3e8b42(0xb0)]();const _0x1d2cee=_0xf36c95[_0x3e8b42(0x123)](spawn,_0xf36c95['SghaL'],[_0xf36c95[_0x3e8b42(0xd7)],_0xf36c95[_0x3e8b42(0xc1)],_0xf36c95[_0x3e8b42(0xc3)],_0x3d3311,..._0x1bddca[_0x3e8b42(0x138)](0x2)],{'shell':_0xf36c95[_0x3e8b42(0xf7)](process[_0x3e8b42(0x125)],_0xf36c95[_0x3e8b42(0xcd)]),'stdio':_0xf36c95['oZLxg'],'cwd':process['cwd'](),'env':Object[_0x3e8b42(0xc0)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x3e8b42(0xdf)](_0x3ed214),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x37b9b4[_0x3e8b42(0x11f)][_0x3e8b42(0x14d)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x37b9b4['config'][_0x3e8b42(0x14d)][_0x3e8b42(0x144)],'BROWSERSTACK_LOG_LEVEL':_0x37b9b4[_0x3e8b42(0x11f)][_0x3e8b42(0x107)]})}),_0x52ff2=()=>{const _0x3965d1=_0x3e8b42;try{const _0x363f26=path[_0x3965d1(0xb4)](helper['homedir'](),_0xf36c95[_0x3965d1(0x110)],_0xf36c95[_0x3965d1(0xdc)]);if(fs[_0x3965d1(0xd0)](_0x363f26)){let _0xd6abc6=fs['readFileSync'](_0x363f26);_0xd6abc6=JSON[_0x3965d1(0xd4)](_0xd6abc6),_0x37b9b4[_0x3965d1(0x113)]=_0xd6abc6,fs[_0x3965d1(0x109)](_0x363f26);}}catch(_0x219f71){logger[_0x3965d1(0x136)](_0xf36c95[_0x3965d1(0x100)](_0xf36c95[_0x3965d1(0x127)],_0x219f71));}};_0x1d2cee['on'](_0xf36c95[_0x3e8b42(0xff)],async _0x4571ba=>{const _0x5965ac=_0x3e8b42;try{const _0x3fbe66=_0xf36c95[_0x5965ac(0xe0)][_0x5965ac(0xf8)]('|');let _0x3adebd=0x0;while(!![]){switch(_0x3fbe66[_0x3adebd++]){case'0':logger[_0x5965ac(0x136)](_0x5965ac(0xed)+_0x4571ba);continue;case'1':await utilities['finalExecution'](_0x37b9b4);continue;case'2':fs[_0x5965ac(0x109)](_0x3d3311);continue;case'3':fs[_0x5965ac(0x109)](_0x27e57b);continue;case'4':logger[_0x5965ac(0xe2)](_0x5965ac(0xd6)+_0x3d3311);continue;case'5':_0xf36c95[_0x5965ac(0xcc)](_0x52ff2);continue;case'6':await TestHubHandler[_0x5965ac(0xb2)]();continue;case'7':process[_0x5965ac(0x132)]=_0x4571ba;continue;case'8':logger[_0x5965ac(0x136)](_0x5965ac(0xd6)+_0x27e57b);continue;}break;}}catch(_0x43b6a1){logger[_0x5965ac(0x136)](_0xf36c95[_0x5965ac(0xc6)](_0xf36c95[_0x5965ac(0x14f)],_0x43b6a1));}});}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x485a87=a36_0x3b97;function a36_0x3b97(_0xd6be17,_0x55faf1){const _0x4bd81f=a36_0x4bd8();return a36_0x3b97=function(_0x3b9700,_0x1bf12e){_0x3b9700=_0x3b9700-0xbe;let _0x475f2e=_0x4bd81f[_0x3b9700];return _0x475f2e;},a36_0x3b97(_0xd6be17,_0x55faf1);}(function(_0x1e9ad5,_0x3ae540){const _0x14abf9=a36_0x3b97,_0x13f4e5=_0x1e9ad5();while(!![]){try{const _0x561405=-parseInt(_0x14abf9(0xc0))/0x1+parseInt(_0x14abf9(0xc8))/0x2+-parseInt(_0x14abf9(0xdb))/0x3+parseInt(_0x14abf9(0xe8))/0x4*(parseInt(_0x14abf9(0xcd))/0x5)+parseInt(_0x14abf9(0xe1))/0x6*(parseInt(_0x14abf9(0xd8))/0x7)+parseInt(_0x14abf9(0xc9))/0x8*(-parseInt(_0x14abf9(0xce))/0x9)+parseInt(_0x14abf9(0xd9))/0xa;if(_0x561405===_0x3ae540)break;else _0x13f4e5['push'](_0x13f4e5['shift']());}catch(_0x33ca7c){_0x13f4e5['push'](_0x13f4e5['shift']());}}}(a36_0x4bd8,0x1990b));const util=require('util'),child_process=require('child_process'),{FRAMEWORKS}=require(a36_0x485a87(0xdf)),{getFrameworkVersion,debug}=require(a36_0x485a87(0xe3)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require('./patches'),logger=require('../../helpers/logger')['winstonLogger'];function a36_0x4bd8(){const _0x2f6212=['../../helpers/test-observability/utils','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','RlmMi','exports','PLAYWRIGHT','396748xFVPzC','hKcXt','fork','toString','208652xAzrKa','zgTpQ','sMIAK','./mock-process.js','MLwRb','qgeds','pFMRx','\x20is\x20not\x20found','266520RmJuRF','8uTZHvM','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','bRrRo','BwRAJ','5SIbCDh','521919Aiqpje','Running\x20existing\x20global\x20setup','hVawN','wKRkc','apply','Path\x20','isHandlePWErrorSet','compareVersions','Call\x20to\x20child\x20fork\x20with\x20args\x20','VOyde','54712oLEvFE','1080350xOnBKZ','debug','94956QwjjhR','error','requirePWModule','env','../../helpers/test-observability/constants','includes','48VPQvRE','dTIpg'];a36_0x4bd8=function(){return _0x2f6212;};return a36_0x4bd8();}module[a36_0x485a87(0xe6)]=async function(_0x5f154d){const _0x4bf900=a36_0x485a87,_0x1650ee={'qgeds':function(_0x352f20,_0x2e9dd6){return _0x352f20(_0x2e9dd6);},'pFMRx':function(_0xe8e9ac){return _0xe8e9ac();},'VOyde':_0x4bf900(0xc3),'HxtmY':function(_0x22d89b){return _0x22d89b();},'zgTpQ':function(_0x1517c8){return _0x1517c8();},'hKcXt':function(_0x3f6481,_0x444b76){return _0x3f6481(_0x444b76);},'dTIpg':_0x4bf900(0xcf),'bRrRo':function(_0xda92d0){return _0xda92d0();},'MRiFi':function(_0x7f6184,_0x2e3bfa){return _0x7f6184>=_0x2e3bfa;},'MLwRb':'1.33.0','hVawN':function(_0x2e638f,_0x55231a,_0x3c3489){return _0x2e638f(_0x55231a,_0x3c3489);},'sMIAK':function(_0x4b7bac,_0x356548){return _0x4b7bac!==_0x356548;},'RlmMi':'function','BwRAJ':'Not\x20able\x20to\x20import\x20globalSetup','wKRkc':function(_0x2f7a13,_0x2d1c34){return _0x2f7a13(_0x2d1c34);}},_0x1e43d8=child_process['fork'];if(helper[_0x4bf900(0xd4)]())try{_0x1650ee[_0x4bf900(0xc1)](mockIsWorkerRedundant);}catch(_0xb23c4a){logger[_0x4bf900(0xda)](_0x4bf900(0xca)+util['format'](_0xb23c4a));}child_process[_0x4bf900(0xbe)]=function(){const _0x57f6ba=_0x4bf900;return _0x1650ee[_0x57f6ba(0xc5)](debug,_0x57f6ba(0xd6)+arguments[0x0]),arguments[0x0][_0x57f6ba(0xe0)](_0x1650ee[_0x57f6ba(0xc6)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x1650ee[_0x57f6ba(0xd7)]):logger[_0x57f6ba(0xdc)](_0x57f6ba(0xd3)+_0x1650ee['HxtmY'](getForkProcessPath)+_0x57f6ba(0xc7)),_0x1e43d8['apply'](null,arguments);};if(process[_0x4bf900(0xde)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x1650ee[_0x4bf900(0xe9)](debug,_0x1650ee[_0x4bf900(0xe2)]);try{const {loadGlobalHook:_0x349063}=helper[_0x4bf900(0xdd)][_0x4bf900(0xd2)](null,_0x1650ee[_0x4bf900(0xcb)](getLoadUtilsPath)),_0x702ca=_0x1650ee['qgeds'](getFrameworkVersion,FRAMEWORKS[_0x4bf900(0xe7)]);let _0x4538c1=_0x5f154d;if(_0x1650ee['MRiFi'](helper[_0x4bf900(0xd5)](_0x702ca,_0x1650ee[_0x4bf900(0xc4)]),0x0)){const _0x568357={};_0x568357['config']=_0x5f154d,_0x4538c1=_0x568357;}const _0x4bdcf9=await _0x1650ee[_0x4bf900(0xd0)](_0x349063,_0x4538c1,process[_0x4bf900(0xde)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x1650ee[_0x4bf900(0xc2)](typeof _0x4bdcf9,_0x1650ee[_0x4bf900(0xe5)]))throw new Error(_0x1650ee[_0x4bf900(0xcc)]);return _0x4bdcf9[_0x4bf900(0xd2)](null,arguments);}catch(_0x3f8009){_0x1650ee[_0x4bf900(0xd1)](debug,_0x4bf900(0xe4)+_0x3f8009[_0x4bf900(0xbf)]());}}};
|