browserstack-node-sdk 1.34.48 → 1.34.50
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/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.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/permissions/AWS.json +85 -0
- package/ats/src/permissions/AZURE.json +33 -0
- package/ats/src/permissions/GCP.json +19 -0
- 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/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -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/metadata.js +1 -0
- 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/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.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_0x2b9c2a=a29_0x2666;(function(_0x2595df,_0x583871){const _0x3b63c0=a29_0x2666,_0x5cfb8f=_0x2595df();while(!![]){try{const _0x8a9c4a=-parseInt(_0x3b63c0(0x181))/0x1+-parseInt(_0x3b63c0(0x1c0))/0x2+-parseInt(_0x3b63c0(0x17a))/0x3+-parseInt(_0x3b63c0(0x1c2))/0x4+-parseInt(_0x3b63c0(0x1cd))/0x5*(-parseInt(_0x3b63c0(0x1b1))/0x6)+-parseInt(_0x3b63c0(0x1c7))/0x7+parseInt(_0x3b63c0(0x17e))/0x8;if(_0x8a9c4a===_0x583871)break;else _0x5cfb8f['push'](_0x5cfb8f['shift']());}catch(_0x5732f4){_0x5cfb8f['push'](_0x5cfb8f['shift']());}}}(a29_0xee90,0x399a0));const logger=require(a29_0x2b9c2a(0x1c4))[a29_0x2b9c2a(0x1bd)],helper=require('../../../helpers/helper'),constants=require(a29_0x2b9c2a(0x17d)),hubAllocator=require(a29_0x2b9c2a(0x1aa)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x2b9c2a(0x1e4)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x2b9c2a(0x1b0)),globals=require(a29_0x2b9c2a(0x1d8)),{overrideExecute}=require(a29_0x2b9c2a(0x190)),modify=(_0x159a85,_0x249f8c=null,_0x2e33a4=![])=>{const _0x1128d0=a29_0x2b9c2a,_0x508578={'xZJCD':function(_0x7144b5,_0x47b811){return _0x7144b5!==_0x47b811;},'TtDOr':_0x1128d0(0x1d9),'aCCOI':function(_0x5f4efc,_0xb3d9d){return _0x5f4efc+_0xb3d9d;},'hgrtL':_0x1128d0(0x1e5),'YSYLA':'/wd/hub','rsWtq':_0x1128d0(0x18d),'ynOeX':_0x1128d0(0x1d4),'eAagG':_0x1128d0(0x1cb),'PWsri':'edgeOptions','Ceayi':_0x1128d0(0x192),'QTLgm':'firefoxOptions','jnOcL':_0x1128d0(0x18b),'oDjOY':_0x1128d0(0x1e7),'fHmTX':_0x1128d0(0x19c),'nDsqy':function(_0xa3fb48,_0x53265f){return _0xa3fb48===_0x53265f;},'BdNZD':'object','HjdYc':'Setting\x20Browserstack\x20capabilities','OpAko':function(_0x2b8a0b,_0x336669,_0x238bd1){return _0x2b8a0b(_0x336669,_0x238bd1);},'QhHLa':_0x1128d0(0x1b6),'BbEjP':_0x1128d0(0x1b9),'qrcns':function(_0x5c9037,_0x2ef38a,_0x305dd6){return _0x5c9037(_0x2ef38a,_0x305dd6);},'eLRZu':function(_0x13a379,_0x2e16ce){return _0x13a379(_0x2e16ce);},'HcDdO':_0x1128d0(0x1da),'PiTdy':function(_0x51d452){return _0x51d452();},'njNeZ':function(_0x2fa4c8,_0x30b105){return _0x2fa4c8(_0x30b105);},'XbqOy':_0x1128d0(0x183),'zdZof':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','CbIvD':function(_0x5e2cc8,_0x3e413b){return _0x5e2cc8(_0x3e413b);},'jGzjH':function(_0x1b199b,_0xac22eb){return _0x1b199b!==_0xac22eb;},'dQglS':_0x1128d0(0x182),'ToTWD':_0x1128d0(0x189)},_0x2fd7a7=helper['requireHttpClient']();let _0xda4224;try{_0xda4224=helper[_0x1128d0(0x194)](),_0xda4224['originalBuilder']&&(_0xda4224[_0x1128d0(0x1e3)]=_0xda4224[_0x1128d0(0x1af)]);}catch(_0x26c928){return;}if(helper[_0x1128d0(0x1a8)]()){const _0x54f82c={};_0x54f82c[_0x1128d0(0x1ab)]=_0x159a85['browserStackLogLevel'],helper[_0x1128d0(0x19b)](_0x54f82c,new Map(),new Map()),logger[_0x1128d0(0x1db)](_0x508578[_0x1128d0(0x199)]),logger[_0x1128d0(0x1b7)](_0x508578['ToTWD']);}class _0x35bb7e extends _0x2fd7a7[_0x1128d0(0x1e9)]{[_0x1128d0(0x1d5)](_0x5c969e){const _0x5cc723=_0x1128d0;if(_0x508578[_0x5cc723(0x1a0)](_0x5c969e[_0x5cc723(0x1ac)],_0x508578['TtDOr'])&&_0x508578[_0x5cc723(0x1a0)](global[_0x5cc723(0x1d0)],''))try{global[_0x5cc723(0x1d0)]=_0x508578[_0x5cc723(0x1d1)](_0x508578[_0x5cc723(0x1d1)](_0x508578['hgrtL'],global[_0x5cc723(0x1d0)]),_0x508578[_0x5cc723(0x1c1)]),this[_0x5cc723(0x1e1)]=hubAllocator['getRequestOptions'](global[_0x5cc723(0x1d0)]),logger[_0x5cc723(0x1b7)](_0x5cc723(0x1c3)+global[_0x5cc723(0x1d0)]),global[_0x5cc723(0x1d0)]='';}catch(_0x16d3dd){logger[_0x5cc723(0x1a5)](_0x16d3dd);}return super[_0x5cc723(0x1d5)](_0x5c969e);}}class _0x582d20 extends _0xda4224[_0x1128d0(0x1e3)]{[_0x1128d0(0x1ce)](){const _0x4cb79b=_0x1128d0;return this[_0x4cb79b(0x186)]=helper['getHubUrl'](_0x159a85),logger[_0x4cb79b(0x1b7)](_0x4cb79b(0x1de)+this[_0x4cb79b(0x186)]),this;}[_0x1128d0(0x1cc)](_0x3698fc){const _0x2be90e=_0x1128d0;let _0x5c3c5c={};for(const _0x5c8f24 in _0x3698fc){switch(_0x5c8f24){case _0x508578[_0x2be90e(0x1df)]:case _0x508578['ynOeX']:this[_0x2be90e(0x193)]&&(_0x5c3c5c=this[_0x2be90e(0x193)][_0x2be90e(0x1bf)](this[_0x2be90e(0x193)][_0x2be90e(0x184)])||{},this[_0x2be90e(0x193)][_0x2be90e(0x178)](this[_0x2be90e(0x193)][_0x2be90e(0x184)],helper[_0x2be90e(0x17c)](_0x5c3c5c,_0x3698fc[_0x5c8f24])));break;case _0x508578['eAagG']:case _0x508578[_0x2be90e(0x19f)]:this[_0x2be90e(0x18f)]&&(_0x5c3c5c=this['edgeOptions_'][_0x2be90e(0x1bf)](this[_0x2be90e(0x18f)][_0x2be90e(0x184)])||{},this[_0x2be90e(0x18f)][_0x2be90e(0x178)](this[_0x2be90e(0x18f)][_0x2be90e(0x184)],helper[_0x2be90e(0x17c)](_0x5c3c5c,_0x3698fc[_0x5c8f24])));break;case _0x508578[_0x2be90e(0x1ae)]:case _0x508578[_0x2be90e(0x17f)]:this[_0x2be90e(0x1a3)]&&(_0x5c3c5c=this['firefoxOptions_']['get'](this[_0x2be90e(0x1a3)][_0x2be90e(0x184)])||{},this[_0x2be90e(0x1a3)][_0x2be90e(0x178)](this['firefoxOptions_'][_0x2be90e(0x184)],helper[_0x2be90e(0x17c)](_0x5c3c5c,_0x3698fc[_0x5c8f24])));break;case _0x508578[_0x2be90e(0x1d3)]:this[_0x2be90e(0x1ad)]&&(_0x5c3c5c=this[_0x2be90e(0x1ad)][_0x2be90e(0x1bf)](this[_0x2be90e(0x1ad)][_0x2be90e(0x184)])||{},this[_0x2be90e(0x1ad)]['set'](this[_0x2be90e(0x1ad)][_0x2be90e(0x184)],helper[_0x2be90e(0x17c)](_0x5c3c5c,_0x3698fc[_0x5c8f24])));break;case _0x508578[_0x2be90e(0x188)]:case _0x508578[_0x2be90e(0x1bc)]:this[_0x2be90e(0x1b8)]&&(_0x5c3c5c=this[_0x2be90e(0x1b8)]['get'](this[_0x2be90e(0x1b8)][_0x2be90e(0x184)])||{},this[_0x2be90e(0x1b8)][_0x2be90e(0x178)](this[_0x2be90e(0x1b8)][_0x2be90e(0x184)],helper['mergeDeep'](_0x5c3c5c,_0x3698fc[_0x5c8f24])));break;}}}[_0x1128d0(0x191)](){const _0x249172=_0x1128d0,_0x430283={'JLaqF':function(_0x184741,_0x3255c5){const _0x4a8ad1=a29_0x2666;return _0x508578[_0x4a8ad1(0x1b4)](_0x184741,_0x3255c5);},'vRxnS':_0x508578[_0x249172(0x1b2)]};return logger[_0x249172(0x1b7)](_0x508578[_0x249172(0x19d)]),this[_0x249172(0x1cc)](_0x159a85[_0x249172(0x196)]),Object[_0x249172(0x1d6)](_0x159a85['capability'])['forEach'](_0x59f9da=>{const _0x3b296c=_0x249172,_0x5e5491=this[_0x3b296c(0x1ca)]['get'](_0x59f9da);_0x430283[_0x3b296c(0x1a7)](typeof _0x5e5491,_0x430283['vRxnS'])?this[_0x3b296c(0x1ca)]['set'](_0x59f9da,helper[_0x3b296c(0x17c)](_0x5e5491,_0x159a85[_0x3b296c(0x196)][_0x59f9da])):this[_0x3b296c(0x1ca)][_0x3b296c(0x178)](_0x59f9da,_0x159a85[_0x3b296c(0x196)][_0x59f9da]);}),this;}[_0x1128d0(0x1dd)](){const _0x2bdef0=_0x1128d0,_0x13c525={'trCRM':_0x508578['QhHLa'],'McGua':_0x508578[_0x2bdef0(0x1e2)],'hdLtR':function(_0x43149d,_0x5061aa,_0x4f6c61){const _0x920329=_0x2bdef0;return _0x508578[_0x920329(0x1a2)](_0x43149d,_0x5061aa,_0x4f6c61);},'FjfZo':function(_0x4cd596,_0x3db2d3,_0x1f583f){const _0x2e0d9c=_0x2bdef0;return _0x508578[_0x2e0d9c(0x1a2)](_0x4cd596,_0x3db2d3,_0x1f583f);},'hUEwW':function(_0x4871ec,_0x276397){return _0x508578['eLRZu'](_0x4871ec,_0x276397);},'cUqfk':function(_0x5e9143,_0x3a9552,_0x3b6a70){const _0x20c5b1=_0x2bdef0;return _0x508578[_0x20c5b1(0x1a4)](_0x5e9143,_0x3a9552,_0x3b6a70);}};if(helper[_0x2bdef0(0x1a8)]()){const _0xf4fdf9=_0x508578[_0x2bdef0(0x1c6)][_0x2bdef0(0x18e)]('|');let _0x5dd283=0x0;while(!![]){switch(_0xf4fdf9[_0x5dd283++]){case'0':this[_0x2bdef0(0x191)]();continue;case'1':_0x508578[_0x2bdef0(0x180)](isAccessibilityAutomationSession)&&_0x508578['njNeZ'](setAccessibilityCapabilities,_0x159a85);continue;case'2':this[_0x2bdef0(0x1ce)]();continue;case'3':if(helper[_0x2bdef0(0x1a9)](_0x159a85[_0x2bdef0(0x1e0)][_0x2bdef0(0x1b3)]))this[_0x2bdef0(0x1e8)]=helper[_0x2bdef0(0x185)](_0x159a85[_0x2bdef0(0x1e0)][_0x2bdef0(0x1b3)]);else _0x159a85[_0x2bdef0(0x1e0)][_0x2bdef0(0x1b3)]&&(this['proxy_']=_0x159a85[_0x2bdef0(0x1e0)]['proxyUrl'],logger['debug']('Proxy\x20set\x20to\x20'+this[_0x2bdef0(0x1bb)]));continue;case'4':globals['getGlobal'](_0x508578['XbqOy'])&&(!_0x508578[_0x2bdef0(0x1a2)](setExtension,this,_0x159a85)&&globals[_0x2bdef0(0x17b)](_0x508578[_0x2bdef0(0x197)],![]));continue;case'5':logger[_0x2bdef0(0x1b7)](_0x508578['zdZof']);continue;}break;}}const _0x174bed=super['build']();return _0x174bed['session_'][_0x2bdef0(0x1d2)](_0x1ffca7=>{const _0x4b6d3f=_0x2bdef0;try{const _0x3e2c12=_0x1ffca7[_0x4b6d3f(0x195)][_0x4b6d3f(0x1bf)](_0x13c525['trCRM']);_0x3e2c12?(logger[_0x4b6d3f(0x1b7)](_0x4b6d3f(0x1c5)+_0x3e2c12),hubAllocator[_0x4b6d3f(0x1a1)](_0x3e2c12),helper[_0x4b6d3f(0x1ba)](_0x3e2c12)):logger['debug'](_0x13c525['McGua']);}catch(_0x130702){logger[_0x4b6d3f(0x1b7)](_0x4b6d3f(0x1be)+_0x130702);}}),_0x174bed['quitCount_']=0x0,_0x174bed['then']&&_0x174bed[_0x2bdef0(0x1d2)](_0x8e86d4=>{const _0x40ed27=_0x2bdef0,_0x1d8ba8={'cJXHy':function(_0x34f002,_0x236896,_0x35ed1b){const _0x18f008=a29_0x2666;return _0x13c525[_0x18f008(0x1dc)](_0x34f002,_0x236896,_0x35ed1b);}};_0x13c525[_0x40ed27(0x1a6)](overrideQuit,_0x8e86d4,_0x174bed),_0x13c525[_0x40ed27(0x187)](overrideTakeScreenshot,_0x8e86d4),helper[_0x40ed27(0x179)](_0x8e86d4,_0x159a85),_0x13c525['hdLtR'](overrideExecute,_0x8e86d4,_0x159a85),_0x8e86d4[_0x40ed27(0x1c8)]=async()=>{const _0x4cd8f2=_0x40ed27;return await _0x1d8ba8[_0x4cd8f2(0x19e)](getAccessibilityResultsSummary,_0x8e86d4,global);},_0x8e86d4[_0x40ed27(0x18c)]=async()=>{const _0x4d644b=_0x40ed27;return await _0x13c525[_0x4d644b(0x1dc)](getAccessibilityResults,_0x8e86d4,global);};}),_0x174bed[_0x2bdef0(0x1c8)]=async()=>{return await _0x13c525['cUqfk'](getAccessibilityResultsSummary,_0x174bed,global);},_0x174bed['getAccessibilityResults']=async()=>{const _0x985a4d=_0x2bdef0;return await _0x508578[_0x985a4d(0x1a4)](getAccessibilityResults,_0x174bed,global);},_0x508578['njNeZ'](overrideTakeScreenshot,_0x174bed),_0x508578[_0x2bdef0(0x1cf)](overrideQuit,_0x174bed),helper[_0x2bdef0(0x179)](_0x174bed,_0x159a85),_0x508578['OpAko'](overrideExecute,_0x174bed,_0x159a85),helper[_0x2bdef0(0x1c9)](global['__driversArray'])&&(global['__driversArray']=[]),helper[_0x2bdef0(0x1c9)](global[_0x2bdef0(0x18a)])&&(global[_0x2bdef0(0x18a)]=[]),global[_0x2bdef0(0x1b5)][_0x2bdef0(0x1d7)](_0x174bed),global['__driver']=_0x174bed,_0x508578[_0x2bdef0(0x1a0)](global['__drivers'],undefined)&&global[_0x2bdef0(0x18a)]['push'](_0x174bed),_0x249f8c&&helper[_0x2bdef0(0x1c9)](_0x249f8c[_0x2bdef0(0x198)][_0x2bdef0(0x1b5)])&&(_0x249f8c[_0x2bdef0(0x198)][_0x2bdef0(0x1b5)]=[]),_0x249f8c&&_0x508578[_0x2bdef0(0x19a)](_0x249f8c['global'][_0x2bdef0(0x18a)],undefined)&&(_0x249f8c[_0x2bdef0(0x198)][_0x2bdef0(0x18a)][_0x2bdef0(0x1d7)](_0x174bed),_0x249f8c['global'][_0x2bdef0(0x1b5)][_0x2bdef0(0x1d7)](_0x174bed)),_0x174bed;}}return _0xda4224[_0x1128d0(0x1af)]=_0xda4224[_0x1128d0(0x1e3)],_0xda4224[_0x1128d0(0x1e3)]=_0x582d20,_0x2fd7a7[_0x1128d0(0x1e9)]=_0x35bb7e,_0xda4224;};function a29_0x2666(_0x585901,_0x286417){const _0xee900a=a29_0xee90();return a29_0x2666=function(_0x2666b8,_0x1410e8){_0x2666b8=_0x2666b8-0x178;let _0x418fac=_0xee900a[_0x2666b8];return _0x418fac;},a29_0x2666(_0x585901,_0x286417);}function a29_0xee90(){const _0x5b75a8=['exports','se:ieOptions','agent_','HttpClient','set','overrideGet','500316QtUzKt','setGlobal','mergeDeep','../../../bin/utils/constants','7693760pvnANG','QTLgm','PiTdy','50631zXoqMZ','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','isAccessibilityPlatform','CAPABILITY_KEY','getHttpAgent','url_','hUEwW','oDjOY','Modifying\x20webdriver\x20builder','__drivers','safari.options','getAccessibilityResults','goog:chromeOptions','split','edgeOptions_','./helpers/patchHelper','setCapabilities','moz:firefoxOptions','chromeOptions_','requireSeleniumWebdriver','caps_','capability','XbqOy','global','dQglS','jGzjH','setLogLevel','ieOptions','HjdYc','cJXHy','PWsri','xZJCD','updateHubUrl','qrcns','firefoxOptions_','OpAko','error','FjfZo','JLaqF','isBrowserstackInfra','isPacProxy','../../../hubAllocationMethods','logLevel','path','safariOptions_','Ceayi','originalBuilder','../../../helpers/accessibility-automation/helper','78nGaWvs','BdNZD','proxyUrl','nDsqy','__driversArray','optimalHubUrl','debug','ieOptions_','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','storeOptimalHubUrl','proxy_','fHmTX','winstonLogger','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','get','532220rqpZtS','YSYLA','801292rWWWqB','New\x20hub\x20url\x20set\x20to\x20','../../../helpers/logger','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','HcDdO','385819GCTrlS','getAccessibilityResultsSummary','isUndefined','capabilities_','ms:edgeOptions','__setBrowserOptions','5065JECBCj','setServer','CbIvD','newHubUrl','aCCOI','then','jnOcL','chromeOptions','send','keys','push','../../../helpers/globals','/session','1|2|0|3|4|5','info','hdLtR','build','Hub\x20url\x20set\x20to\x20','rsWtq','proxySettings','options_','BbEjP','Builder','../../../helpers/patchHelpers','https://'];a29_0xee90=function(){return _0x5b75a8;};return a29_0xee90();}module[a29_0x2b9c2a(0x1e6)]['browserstackAgentObservability']=modify;
|
|
1
|
+
const a29_0xe2e397=a29_0x2816;(function(_0x5013e9,_0xb0ed16){const _0x126f69=a29_0x2816,_0x24c72a=_0x5013e9();while(!![]){try{const _0x2789e1=-parseInt(_0x126f69(0x1c0))/0x1+parseInt(_0x126f69(0x1d7))/0x2*(-parseInt(_0x126f69(0x1d3))/0x3)+parseInt(_0x126f69(0x1bd))/0x4+-parseInt(_0x126f69(0x18b))/0x5*(-parseInt(_0x126f69(0x1e6))/0x6)+parseInt(_0x126f69(0x191))/0x7+parseInt(_0x126f69(0x1a0))/0x8+-parseInt(_0x126f69(0x1e4))/0x9*(parseInt(_0x126f69(0x178))/0xa);if(_0x2789e1===_0xb0ed16)break;else _0x24c72a['push'](_0x24c72a['shift']());}catch(_0x21dd5c){_0x24c72a['push'](_0x24c72a['shift']());}}}(a29_0x5d36,0xf0be1));const logger=require('../../../helpers/logger')['winstonLogger'],helper=require('../../../helpers/helper'),constants=require(a29_0xe2e397(0x18f)),hubAllocator=require(a29_0xe2e397(0x186)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0xe2e397(0x1f7)),{setAccessibilityCapabilities,setExtension}=require(a29_0xe2e397(0x1ad)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0xe2e397(0x1ae)),globals=require(a29_0xe2e397(0x1f9)),{overrideExecute}=require(a29_0xe2e397(0x1da)),modify=(_0x4098f7,_0x153282=null,_0x1826d1=![])=>{const _0x170784=a29_0xe2e397,_0x354170={'yXukv':function(_0x7f2ad7,_0x2e1cf1){return _0x7f2ad7!==_0x2e1cf1;},'TYxvd':_0x170784(0x1ba),'kBPTc':function(_0x2183d0,_0x242bcb){return _0x2183d0+_0x242bcb;},'dYALy':_0x170784(0x1a1),'oDBia':'/wd/hub','gLfVe':_0x170784(0x1f0),'rzmUI':_0x170784(0x1ec),'nYTje':_0x170784(0x1b8),'hdsEh':_0x170784(0x187),'cAAmn':_0x170784(0x199),'gBdFa':_0x170784(0x1db),'lEeXD':_0x170784(0x19b),'cSQXJ':_0x170784(0x1dd),'lBcvI':_0x170784(0x188),'lRtEl':function(_0xad7a70,_0x16ea90){return _0xad7a70===_0x16ea90;},'bOgAN':_0x170784(0x1f5),'pYMKR':_0x170784(0x17a),'XVPRL':_0x170784(0x1cf),'REbUa':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','UKOEl':function(_0x1955d2,_0x3bf8b1,_0x4f8286){return _0x1955d2(_0x3bf8b1,_0x4f8286);},'eOjlk':function(_0x172b98,_0x532bc8,_0x224074){return _0x172b98(_0x532bc8,_0x224074);},'Rihmh':function(_0x507994,_0x416bc5,_0x196311){return _0x507994(_0x416bc5,_0x196311);},'tklpM':function(_0x3b55d8,_0x550eba){return _0x3b55d8(_0x550eba);},'cJfig':_0x170784(0x19f),'ZquKR':_0x170784(0x1d9),'mXzBL':function(_0x43330c,_0x308610,_0x3da14c){return _0x43330c(_0x308610,_0x3da14c);},'uDSXh':function(_0x5ca01b){return _0x5ca01b();},'xZTIp':function(_0x1cf6e3,_0x7328eb){return _0x1cf6e3(_0x7328eb);},'hsmVR':_0x170784(0x195),'hvNAJ':function(_0x33d610,_0x7ce02f){return _0x33d610(_0x7ce02f);},'DaoKf':function(_0x33f407,_0xfc1f32){return _0x33f407(_0xfc1f32);},'KxsKf':function(_0x4cdc4f,_0x2453ad){return _0x4cdc4f!==_0x2453ad;},'cIgTV':function(_0x551b75,_0x43e4bb){return _0x551b75!==_0x43e4bb;},'yUStB':_0x170784(0x1b5),'bdupB':_0x170784(0x1ed)},_0x1407de=helper[_0x170784(0x1f6)]();let _0x278392;try{_0x278392=helper[_0x170784(0x1dc)](),_0x278392[_0x170784(0x1c2)]&&(_0x278392[_0x170784(0x1a7)]=_0x278392[_0x170784(0x1c2)]);}catch(_0x12947e){return;}if(helper[_0x170784(0x1be)]()){const _0x51929d={};_0x51929d[_0x170784(0x189)]=_0x4098f7['browserStackLogLevel'],helper[_0x170784(0x17b)](_0x51929d,new Map(),new Map()),logger['info'](_0x354170[_0x170784(0x18e)]),logger[_0x170784(0x19c)](_0x354170[_0x170784(0x1c3)]);}class _0x4e068d extends _0x1407de[_0x170784(0x1de)]{[_0x170784(0x1e2)](_0x114972){const _0x3b9ede=_0x170784;if(_0x354170[_0x3b9ede(0x1a5)](_0x114972[_0x3b9ede(0x190)],_0x354170[_0x3b9ede(0x1e9)])&&_0x354170['yXukv'](global['newHubUrl'],''))try{global['newHubUrl']=_0x354170[_0x3b9ede(0x1c5)](_0x354170[_0x3b9ede(0x1c5)](_0x354170[_0x3b9ede(0x1f4)],global['newHubUrl']),_0x354170['oDBia']),this[_0x3b9ede(0x1e3)]=hubAllocator[_0x3b9ede(0x192)](global[_0x3b9ede(0x1d5)]),logger['debug'](_0x3b9ede(0x1a4)+global[_0x3b9ede(0x1d5)]),global['newHubUrl']='';}catch(_0x5bab58){logger[_0x3b9ede(0x1eb)](_0x5bab58);}return super[_0x3b9ede(0x1e2)](_0x114972);}}class _0x10a791 extends _0x278392[_0x170784(0x1a7)]{['setServer'](){const _0x4f5c47=_0x170784;return this[_0x4f5c47(0x1d6)]=helper['getHubUrl'](_0x4098f7),logger[_0x4f5c47(0x19c)](_0x4f5c47(0x1b0)+this[_0x4f5c47(0x1d6)]),this;}[_0x170784(0x1c4)](_0x28fc87){const _0x2dd523=_0x170784;let _0x2e0ed1={};for(const _0x2a999a in _0x28fc87){switch(_0x2a999a){case _0x354170[_0x2dd523(0x1b2)]:case _0x354170[_0x2dd523(0x1cc)]:this[_0x2dd523(0x1a9)]&&(_0x2e0ed1=this[_0x2dd523(0x1a9)][_0x2dd523(0x17c)](this[_0x2dd523(0x1a9)][_0x2dd523(0x18a)])||{},this[_0x2dd523(0x1a9)][_0x2dd523(0x1ce)](this['chromeOptions_'][_0x2dd523(0x18a)],helper[_0x2dd523(0x17f)](_0x2e0ed1,_0x28fc87[_0x2a999a])));break;case _0x354170['nYTje']:case _0x354170[_0x2dd523(0x1c7)]:this['edgeOptions_']&&(_0x2e0ed1=this[_0x2dd523(0x181)][_0x2dd523(0x17c)](this[_0x2dd523(0x181)][_0x2dd523(0x18a)])||{},this[_0x2dd523(0x181)][_0x2dd523(0x1ce)](this[_0x2dd523(0x181)]['CAPABILITY_KEY'],helper[_0x2dd523(0x17f)](_0x2e0ed1,_0x28fc87[_0x2a999a])));break;case _0x354170[_0x2dd523(0x1ab)]:case _0x354170[_0x2dd523(0x1c9)]:this['firefoxOptions_']&&(_0x2e0ed1=this['firefoxOptions_'][_0x2dd523(0x17c)](this[_0x2dd523(0x1d8)][_0x2dd523(0x18a)])||{},this[_0x2dd523(0x1d8)][_0x2dd523(0x1ce)](this[_0x2dd523(0x1d8)][_0x2dd523(0x18a)],helper['mergeDeep'](_0x2e0ed1,_0x28fc87[_0x2a999a])));break;case _0x354170[_0x2dd523(0x1bc)]:this[_0x2dd523(0x194)]&&(_0x2e0ed1=this[_0x2dd523(0x194)][_0x2dd523(0x17c)](this['safariOptions_'][_0x2dd523(0x18a)])||{},this[_0x2dd523(0x194)][_0x2dd523(0x1ce)](this[_0x2dd523(0x194)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x2e0ed1,_0x28fc87[_0x2a999a])));break;case _0x354170[_0x2dd523(0x1b1)]:case _0x354170[_0x2dd523(0x1d2)]:this['ieOptions_']&&(_0x2e0ed1=this[_0x2dd523(0x1cd)][_0x2dd523(0x17c)](this[_0x2dd523(0x1cd)][_0x2dd523(0x18a)])||{},this[_0x2dd523(0x1cd)][_0x2dd523(0x1ce)](this['ieOptions_'][_0x2dd523(0x18a)],helper['mergeDeep'](_0x2e0ed1,_0x28fc87[_0x2a999a])));break;}}}[_0x170784(0x1e8)](){const _0x38f8c4=_0x170784,_0x880edb={'eVQIS':function(_0x2adcc6,_0x43c135){const _0x141f80=a29_0x2816;return _0x354170[_0x141f80(0x196)](_0x2adcc6,_0x43c135);},'FfDBN':_0x354170[_0x38f8c4(0x182)]};return logger[_0x38f8c4(0x19c)](_0x354170[_0x38f8c4(0x1c1)]),this['__setBrowserOptions'](_0x4098f7[_0x38f8c4(0x1ef)]),Object[_0x38f8c4(0x197)](_0x4098f7[_0x38f8c4(0x1ef)])[_0x38f8c4(0x17d)](_0x125a30=>{const _0x754cf5=_0x38f8c4,_0xda2d2=this[_0x754cf5(0x180)]['get'](_0x125a30);_0x880edb['eVQIS'](typeof _0xda2d2,_0x880edb['FfDBN'])?this[_0x754cf5(0x180)][_0x754cf5(0x1ce)](_0x125a30,helper['mergeDeep'](_0xda2d2,_0x4098f7['capability'][_0x125a30])):this[_0x754cf5(0x180)][_0x754cf5(0x1ce)](_0x125a30,_0x4098f7['capability'][_0x125a30]);}),this;}[_0x170784(0x1b4)](){const _0x281b62=_0x170784,_0x68b316={'IbdwO':function(_0x34e196,_0x326ab5,_0x4f84f9){const _0x55ca50=a29_0x2816;return _0x354170[_0x55ca50(0x19d)](_0x34e196,_0x326ab5,_0x4f84f9);},'BNvdc':function(_0x9475bf,_0x47c540,_0x3a1d14){const _0x360be9=a29_0x2816;return _0x354170[_0x360be9(0x18d)](_0x9475bf,_0x47c540,_0x3a1d14);},'qgnDv':function(_0x252d36,_0x1cad6a,_0x11be92){return _0x354170['Rihmh'](_0x252d36,_0x1cad6a,_0x11be92);},'vyJts':function(_0x2e2388,_0x27ea37){const _0x42c4db=a29_0x2816;return _0x354170[_0x42c4db(0x1bb)](_0x2e2388,_0x27ea37);},'CJXqB':function(_0x4bba32,_0x3a195c,_0x531374){const _0x398bef=a29_0x2816;return _0x354170[_0x398bef(0x18d)](_0x4bba32,_0x3a195c,_0x531374);}};if(helper[_0x281b62(0x1be)]()){const _0x3fd768=_0x354170[_0x281b62(0x1ee)]['split']('|');let _0x71a7e1=0x0;while(!![]){switch(_0x3fd768[_0x71a7e1++]){case'0':globals[_0x281b62(0x1a6)](_0x354170[_0x281b62(0x1c8)])&&(!_0x354170[_0x281b62(0x1b9)](setExtension,this,_0x4098f7)&&globals['setGlobal'](_0x354170[_0x281b62(0x1c8)],![]));continue;case'1':_0x354170['uDSXh'](isAccessibilityAutomationSession)&&_0x354170['xZTIp'](setAccessibilityCapabilities,_0x4098f7);continue;case'2':if(helper[_0x281b62(0x1d4)](_0x4098f7[_0x281b62(0x1f8)][_0x281b62(0x1ea)]))this[_0x281b62(0x184)]=helper[_0x281b62(0x1e5)](_0x4098f7[_0x281b62(0x1f8)][_0x281b62(0x1ea)]);else _0x4098f7['proxySettings'][_0x281b62(0x1ea)]&&(this[_0x281b62(0x1b7)]=_0x4098f7[_0x281b62(0x1f8)][_0x281b62(0x1ea)],logger[_0x281b62(0x19c)](_0x281b62(0x1a2)+this['proxy_']));continue;case'3':logger['debug'](_0x354170[_0x281b62(0x1b3)]);continue;case'4':this['setServer']();continue;case'5':this[_0x281b62(0x1e8)]();continue;}break;}}const _0x5c5eef=super[_0x281b62(0x1b4)]();return _0x5c5eef[_0x281b62(0x198)][_0x281b62(0x18c)](_0x33b3ca=>{const _0x13debc=_0x281b62;try{const _0x493400=_0x33b3ca[_0x13debc(0x1cb)][_0x13debc(0x17c)](_0x354170[_0x13debc(0x1af)]);_0x493400?(logger[_0x13debc(0x19c)](_0x13debc(0x1f2)+_0x493400),hubAllocator[_0x13debc(0x1df)](_0x493400),helper[_0x13debc(0x1a8)](_0x493400)):logger[_0x13debc(0x19c)](_0x354170[_0x13debc(0x179)]);}catch(_0x412129){logger['debug'](_0x13debc(0x1c6)+_0x412129);}}),_0x5c5eef[_0x281b62(0x1e1)]=0x0,_0x5c5eef['then']&&_0x5c5eef[_0x281b62(0x18c)](_0x33fd22=>{const _0x3e4476=_0x281b62,_0x428b4c={'FktjQ':function(_0x10e620,_0x32636a,_0x48f7be){const _0x3ff7ba=a29_0x2816;return _0x68b316[_0x3ff7ba(0x1d1)](_0x10e620,_0x32636a,_0x48f7be);}};_0x68b316[_0x3e4476(0x19e)](overrideQuit,_0x33fd22,_0x5c5eef),_0x68b316['vyJts'](overrideTakeScreenshot,_0x33fd22),helper[_0x3e4476(0x1aa)](_0x33fd22,_0x4098f7),_0x68b316[_0x3e4476(0x1d0)](overrideExecute,_0x33fd22,_0x4098f7),_0x33fd22[_0x3e4476(0x1a3)]=async()=>{const _0x1418e5=_0x3e4476;return await _0x68b316[_0x1418e5(0x1b6)](getAccessibilityResultsSummary,_0x33fd22,global);},_0x33fd22[_0x3e4476(0x1bf)]=async()=>{return await _0x428b4c['FktjQ'](getAccessibilityResults,_0x33fd22,global);};}),_0x5c5eef[_0x281b62(0x1a3)]=async()=>{const _0x2901b5=_0x281b62;return await _0x68b316[_0x2901b5(0x1b6)](getAccessibilityResultsSummary,_0x5c5eef,global);},_0x5c5eef[_0x281b62(0x1bf)]=async()=>{const _0x272742=_0x281b62;return await _0x354170[_0x272742(0x1ac)](getAccessibilityResults,_0x5c5eef,global);},_0x354170[_0x281b62(0x183)](overrideTakeScreenshot,_0x5c5eef),_0x354170['DaoKf'](overrideQuit,_0x5c5eef),helper['overrideGet'](_0x5c5eef,_0x4098f7),_0x354170[_0x281b62(0x18d)](overrideExecute,_0x5c5eef,_0x4098f7),helper[_0x281b62(0x1f3)](global[_0x281b62(0x185)])&&(global[_0x281b62(0x185)]=[]),helper[_0x281b62(0x1f3)](global['__drivers'])&&(global[_0x281b62(0x1f1)]=[]),global[_0x281b62(0x185)][_0x281b62(0x193)](_0x5c5eef),global[_0x281b62(0x19a)]=_0x5c5eef,_0x354170['KxsKf'](global[_0x281b62(0x1f1)],undefined)&&global[_0x281b62(0x1f1)][_0x281b62(0x193)](_0x5c5eef),_0x153282&&helper[_0x281b62(0x1f3)](_0x153282[_0x281b62(0x1ca)]['__driversArray'])&&(_0x153282[_0x281b62(0x1ca)][_0x281b62(0x185)]=[]),_0x153282&&_0x354170[_0x281b62(0x17e)](_0x153282[_0x281b62(0x1ca)][_0x281b62(0x1f1)],undefined)&&(_0x153282[_0x281b62(0x1ca)][_0x281b62(0x1f1)][_0x281b62(0x193)](_0x5c5eef),_0x153282[_0x281b62(0x1ca)][_0x281b62(0x185)][_0x281b62(0x193)](_0x5c5eef)),_0x5c5eef;}}return _0x278392['originalBuilder']=_0x278392['Builder'],_0x278392[_0x170784(0x1a7)]=_0x10a791,_0x1407de[_0x170784(0x1de)]=_0x4e068d,_0x278392;};function a29_0x5d36(){const _0x1bf84d=['error','chromeOptions','Modifying\x20webdriver\x20builder','cJfig','capability','goog:chromeOptions','__drivers','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','isUndefined','dYALy','object','requireHttpClient','../../../helpers/patchHelpers','proxySettings','../../../helpers/globals','30qbrPMm','REbUa','Setting\x20Browserstack\x20capabilities','setLogLevel','get','forEach','cIgTV','mergeDeep','capabilities_','edgeOptions_','bOgAN','hvNAJ','agent_','__driversArray','../../../hubAllocationMethods','edgeOptions','ieOptions','logLevel','CAPABILITY_KEY','248815kHoFMa','then','Rihmh','yUStB','../../../bin/utils/constants','path','1391516sTQhOb','getRequestOptions','push','safariOptions_','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','lRtEl','keys','session_','moz:firefoxOptions','__driver','safari.options','debug','eOjlk','qgnDv','1|4|5|2|0|3','5101848zjQdso','https://','Proxy\x20set\x20to\x20','getAccessibilityResultsSummary','New\x20hub\x20url\x20set\x20to\x20','yXukv','getGlobal','Builder','storeOptimalHubUrl','chromeOptions_','overrideGet','cAAmn','UKOEl','../accessibility-automation/helper','../../../helpers/accessibility-automation/helper','XVPRL','Hub\x20url\x20set\x20to\x20','cSQXJ','gLfVe','hsmVR','build','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','IbdwO','proxy_','ms:edgeOptions','mXzBL','/session','tklpM','lEeXD','5772212XYrphO','isBrowserstackInfra','getAccessibilityResults','47931uhkVWA','pYMKR','originalBuilder','bdupB','__setBrowserOptions','kBPTc','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','hdsEh','ZquKR','gBdFa','global','caps_','rzmUI','ieOptions_','set','optimalHubUrl','CJXqB','BNvdc','lBcvI','35199ncabdL','isPacProxy','newHubUrl','url_','8yGcRay','firefoxOptions_','isAccessibilityPlatform','./helpers/patchHelper','firefoxOptions','requireSeleniumWebdriver','se:ieOptions','HttpClient','updateHubUrl','browserstackAgentObservability','quitCount_','send','options_','7477398UUOtxA','getHttpAgent','156gkghta','exports','setCapabilities','TYxvd','proxyUrl'];a29_0x5d36=function(){return _0x1bf84d;};return a29_0x5d36();}function a29_0x2816(_0x26e122,_0x1a3921){const _0x5d36b9=a29_0x5d36();return a29_0x2816=function(_0x281668,_0x10f6e1){_0x281668=_0x281668-0x178;let _0x3de95d=_0x5d36b9[_0x281668];return _0x3de95d;},a29_0x2816(_0x26e122,_0x1a3921);}module[a29_0xe2e397(0x1e7)][a29_0xe2e397(0x1e0)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x5d6df1=a30_0x5ec4;function a30_0x5ec4(_0x2b5d65,_0x4fb9b7){const _0x36a7f8=a30_0x36a7();return a30_0x5ec4=function(_0x5ec479,_0x18d71d){_0x5ec479=_0x5ec479-0x8c;let _0x10b41d=_0x36a7f8[_0x5ec479];return _0x10b41d;},a30_0x5ec4(_0x2b5d65,_0x4fb9b7);}(function(_0x39978a,_0x2799d7){const _0x451cc1=a30_0x5ec4,_0x121a9b=_0x39978a();while(!![]){try{const _0x32677b=parseInt(_0x451cc1(0x8e))/0x1+parseInt(_0x451cc1(0x8f))/0x2+-parseInt(_0x451cc1(0x91))/0x3*(-parseInt(_0x451cc1(0x8c))/0x4)+-parseInt(_0x451cc1(0x9c))/0x5*(parseInt(_0x451cc1(0x9b))/0x6)+-parseInt(_0x451cc1(0x8d))/0x7*(-parseInt(_0x451cc1(0x90))/0x8)+-parseInt(_0x451cc1(0x96))/0x9+parseInt(_0x451cc1(0x98))/0xa*(-parseInt(_0x451cc1(0x97))/0xb);if(_0x32677b===_0x2799d7)break;else _0x121a9b['push'](_0x121a9b['shift']());}catch(_0x232a3f){_0x121a9b['push'](_0x121a9b['shift']());}}}(a30_0x36a7,0xb88c1));const requestSpy=require(a30_0x5d6df1(0x9a)),constants=require(a30_0x5d6df1(0x99)),{addRequestSpy}=require(a30_0x5d6df1(0x95));exports['mochaHooks']={'beforeAll'(){const _0xf2d64f=a30_0x5d6df1,_0x4e43e7={'gUChl':function(_0x3f00b1){return _0x3f00b1();}},_0x54be6a='browserstack internal helper hook';_0x4e43e7[_0xf2d64f(0x93)](addRequestSpy);},'afterAll'(){const _0x57d3ca=a30_0x5d6df1,_0x519689='browserstack internal helper hook';this[_0x57d3ca(0x92)](0xea60),requestSpy[_0x57d3ca(0x94)]();}};function a30_0x36a7(){const _0x1c04a4=['../../../helpers/request-spy','41334sGfapQ','265eabAiD','31508oSjMIx','21ZcYFde','368491NjgdCo','1144116XAnvQy','802024tRiCwp','402rOInNV','timeout','gUChl','restore','../../../helpers/test-observability/utils','8653374ZindLC','143jtaStO','164860TBkVvQ','../../../bin/utils/constants'];a30_0x36a7=function(){return _0x1c04a4;};return a30_0x36a7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x5e4e99=a31_0x46ea;(function(_0x1b477e,_0x29738e){const _0x5e7511=a31_0x46ea,_0x493028=_0x1b477e();while(!![]){try{const _0x488156=-parseInt(_0x5e7511(0x1c0))/0x1+parseInt(_0x5e7511(0x1d6))/0x2*(-parseInt(_0x5e7511(0x184))/0x3)+parseInt(_0x5e7511(0x190))/0x4+-parseInt(_0x5e7511(0x1ad))/0x5*(-parseInt(_0x5e7511(0x1dc))/0x6)+-parseInt(_0x5e7511(0x1a3))/0x7+parseInt(_0x5e7511(0x1db))/0x8+parseInt(_0x5e7511(0x1bc))/0x9*(parseInt(_0x5e7511(0x1ba))/0xa);if(_0x488156===_0x29738e)break;else _0x493028['push'](_0x493028['shift']());}catch(_0x15217d){_0x493028['push'](_0x493028['shift']());}}}(a31_0x3618,0x59144));const {v4:uuidv4}=require(a31_0x5e4e99(0x1cf)),{name,version}=require(a31_0x5e4e99(0x1b6)),logPatcher=require(a31_0x5e4e99(0x1bf)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x5e4e99(0x1cb)),{consoleHolder}=require(a31_0x5e4e99(0x1c3)),{getPlatformVersion}=require(a31_0x5e4e99(0x1d5)),{shouldProcessEventForTesthub}=require(a31_0x5e4e99(0x186)),{isFunction}=require(a31_0x5e4e99(0x1c4)),{patchConsoleLogger}=require('../../../helpers/test-observability/utils');function a31_0x3618(){const _0x312caf=['getPlatform','3186673fpXhuB','PjVLU','fjSMr','getHookDetails','_beforeAll','MxqbB','POhGM','FoBUU','js-','indexOf','539615PtLXXO','generic','parent','lQlHl','hook','string','forEach','hciga','getTestEnv','../../../../package.json','getHooksForTest','LMyoZ','vEXPW','140ZmzeNQ','unknown_grid','554670yQAlcZ','_beforeEach','jGtjK','../../utils/logPatcher','708404eOdRSr','dIAwY','getHookSkippedTests','../../../helpers/test-observability/constants','lodash','fromEntries','filter','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','pid','substring','VQRuR','../../../helpers/test-observability/utils','JCllp','UWKqD','UHIqE','uuid','cOqkI','passed','mapTestHooks','type','hookAnalyticsId','../../../helpers/helper','6joPSJU','qiXur','getBrowserName','pending','slice','5552640vUmvNR','6MSTuZj','APrVt','397197yfwaDa','UEBKg','../../../helpers/testhub/utils','push','getSession','eeuVL','map_','split','_afterAll','browserstack','SvZTt','toISOString','1043540KtBgEh','GsVzV','_afterEach','state','SNCAC','ZSNoE','SPOyu','ITMOi','tests','FYumC','YhdEv','QlMca','markedStatus','emit','__cloud_provider___','getCapabilities','get','platformVersion'];a31_0x3618=function(){return _0x312caf;};return a31_0x3618();}function a31_0x46ea(_0x1cc32e,_0x510d16){const _0x3618dd=a31_0x3618();return a31_0x46ea=function(_0x46eabf,_0x28574d){_0x46eabf=_0x46eabf-0x184;let _0x25683f=_0x3618dd[_0x46eabf];return _0x25683f;},a31_0x46ea(_0x1cc32e,_0x510d16);}patchConsoleLogger(),exports[a31_0x5e4e99(0x1b5)]=()=>{const _0x744c82=a31_0x5e4e99,_0x5e6d35={'rHHde':_0x744c82(0x1ae),'FoBUU':function(_0x15604c){return _0x15604c();}};return{'ci':_0x5e6d35['rHHde'],'key':_0x5e6d35[_0x744c82(0x1aa)](uuidv4),'version':version,'collector':_0x744c82(0x1ab)+name};},exports[a31_0x5e4e99(0x1a6)]=_0x54521e=>{const _0x5ef9cf=a31_0x5e4e99,_0x103496={};_0x103496[_0x5ef9cf(0x1a5)]=function(_0x4d8d66,_0x507612){return _0x4d8d66!==_0x507612;},_0x103496['lQlHl']=_0x5ef9cf(0x1b2),_0x103496[_0x5ef9cf(0x194)]=function(_0x38d5c8,_0xc1d4dc){return _0x38d5c8!==_0xc1d4dc;},_0x103496[_0x5ef9cf(0x1ca)]='hook:',_0x103496[_0x5ef9cf(0x19a)]=function(_0x559a27,_0xb5d17f){return _0x559a27!==_0xb5d17f;},_0x103496[_0x5ef9cf(0x1b4)]='hook';const _0x4b5eb0=_0x103496;if(!_0x54521e||_0x4b5eb0[_0x5ef9cf(0x1a5)](typeof _0x54521e,_0x4b5eb0[_0x5ef9cf(0x1b0)]))return[null,null];if(_0x4b5eb0[_0x5ef9cf(0x194)](_0x54521e[_0x5ef9cf(0x1ac)](_0x4b5eb0[_0x5ef9cf(0x1ca)]),-0x1)){const _0x406d9d=_0x54521e[_0x5ef9cf(0x18b)](_0x4b5eb0[_0x5ef9cf(0x1ca)]);return[_0x406d9d[0x0][_0x5ef9cf(0x1da)](0x0,-0x1)['split']('\x22')[0x1],_0x406d9d[0x1][_0x5ef9cf(0x1c9)](0x1)];}else{if(_0x4b5eb0[_0x5ef9cf(0x19a)](_0x54521e[_0x5ef9cf(0x1ac)](_0x4b5eb0[_0x5ef9cf(0x1b4)]),-0x1)){const _0x3ce9c3=_0x54521e['split'](_0x4b5eb0[_0x5ef9cf(0x1b4)]);return[_0x3ce9c3[0x0][_0x5ef9cf(0x1da)](0x0,-0x1)[_0x5ef9cf(0x18b)]('\x22')[0x1],_0x54521e];}}return[null,null];},exports[a31_0x5e4e99(0x1b7)]=_0x6e581=>{const _0x1a7bd8=a31_0x5e4e99,_0x5caf35={'jGtjK':function(_0x452592,_0xc04856){return _0x452592(_0xc04856);},'UEBKg':_0x1a7bd8(0x1a7),'MfdpN':_0x1a7bd8(0x18c),'QlMca':_0x1a7bd8(0x1bd),'eeuVL':_0x1a7bd8(0x192)};if(!_0x6e581||!_0x6e581[_0x1a7bd8(0x1af)])return[];const _0x26faa6=[];return[_0x5caf35[_0x1a7bd8(0x185)],_0x5caf35['MfdpN'],_0x5caf35[_0x1a7bd8(0x19b)],_0x5caf35[_0x1a7bd8(0x189)]][_0x1a7bd8(0x1b3)](_0x10b9b6=>{const _0x8ffe06=_0x1a7bd8,_0x3b4e96=_0x6e581[_0x8ffe06(0x1af)][_0x10b9b6]||[];_0x3b4e96[_0x8ffe06(0x1b3)](_0x504e5=>{const _0x1d002d=_0x8ffe06;_0x504e5['hookAnalyticsId']&&!_0x5caf35[_0x1d002d(0x1be)](isInternalHook,_0x504e5['fn'])&&_0x26faa6[_0x1d002d(0x187)](_0x504e5[_0x1d002d(0x1d4)]);});}),[..._0x26faa6,...exports['getHooksForTest'](_0x6e581['parent'])];},exports[a31_0x5e4e99(0x1d2)]=_0x3743dd=>{const _0x202b2d=a31_0x5e4e99,_0x5899db={'ZSNoE':function(_0x12fcce){return _0x12fcce();},'xqdZO':function(_0x23c387,_0x3ece46){return _0x23c387===_0x3ece46;},'ITMOi':_0x202b2d(0x192),'JCllp':_0x202b2d(0x1a7),'cOqkI':'_afterAll','qiXur':'_beforeEach'};if(!_0x3743dd||!_0x3743dd['parent'])return;[_0x5899db[_0x202b2d(0x1cc)],_0x5899db[_0x202b2d(0x1d0)],_0x5899db[_0x202b2d(0x1d7)],_0x5899db[_0x202b2d(0x197)]]['forEach'](_0x40ea4f=>{const _0x25fe86=_0x202b2d,_0x1d7864={'POhGM':function(_0x2abc54){const _0x32be04=a31_0x46ea;return _0x5899db[_0x32be04(0x195)](_0x2abc54);},'ojWrb':function(_0x24e0e1,_0x14412d){return _0x5899db['xqdZO'](_0x24e0e1,_0x14412d);},'dIAwY':_0x5899db[_0x25fe86(0x197)],'SPOyu':function(_0x457e97){const _0x222523=_0x25fe86;return _0x5899db[_0x222523(0x195)](_0x457e97);}},_0x4a74fd=_0x3743dd[_0x25fe86(0x1af)][_0x40ea4f]||[];_0x4a74fd['forEach'](_0x3cba52=>{const _0x4c9be2=_0x25fe86;if(!_0x3cba52[_0x4c9be2(0x1d4)])_0x3cba52['hookAnalyticsId']=_0x1d7864[_0x4c9be2(0x1a9)](uuidv4);else _0x3cba52['markedStatus']&&_0x1d7864['ojWrb'](_0x40ea4f,_0x1d7864[_0x4c9be2(0x1c1)])&&(_0x3cba52[_0x4c9be2(0x1d4)]=_0x1d7864[_0x4c9be2(0x196)](uuidv4),delete _0x3cba52[_0x4c9be2(0x19c)]);});}),exports['mapTestHooks'](_0x3743dd[_0x202b2d(0x1af)]);},exports['sendPlatformDetails']=async(_0x1dc714,_0x24d071)=>{const _0x3807ab=a31_0x5e4e99,_0x9e4050={'CjOPD':function(_0x4d3405){return _0x4d3405();},'SvZTt':function(_0x5e1de7,_0x1f7b22){return _0x5e1de7(_0x1f7b22);},'MxqbB':_0x3807ab(0x1a1),'APrVt':function(_0xd081fe,_0xd0d25){return _0xd081fe(_0xd0d25);},'FYumC':function(_0x4d3c1e,_0x575f9f){return _0x4d3c1e===_0x575f9f;},'UToYk':_0x3807ab(0x18d),'UHIqE':_0x3807ab(0x1bb),'vEXPW':'TEST_PLATFORM'};try{if(!_0x9e4050['CjOPD'](shouldProcessEventForTesthub))return;const _0x47497c=await _0x1dc714[_0x3807ab(0x19f)](),_0x43145f=await _0x1dc714[_0x3807ab(0x188)](),_0x43ecc3={},_0x4e83cc=Object[_0x3807ab(0x1c5)](_0x43145f[_0x3807ab(0x19f)]()[_0x3807ab(0x18a)]),_0x4e2bb4={'product':_0x9e4050[_0x3807ab(0x18e)](getObservabilityLinkedProductName,_0x4e83cc),'capabilities':_0x4e83cc,'platform':_0x47497c[_0x3807ab(0x1a2)](),'platform_version':_0x47497c[_0x3807ab(0x1a0)](_0x9e4050[_0x3807ab(0x1a8)])?_0x47497c[_0x3807ab(0x1a0)](_0x9e4050['MxqbB']):_0x9e4050[_0x3807ab(0x1dd)](getPlatformVersion,_0x9e4050[_0x3807ab(0x199)](global[_0x3807ab(0x19e)],_0x9e4050['UToYk'])),'browser':_0x47497c[_0x3807ab(0x1d8)](),'browser_version':_0x47497c['getBrowserVersion'](),'session_id':_0x43145f['toJSON']()};global['__cloud_provider___']?_0x43ecc3[global[_0x3807ab(0x19e)]]=_0x4e2bb4:_0x43ecc3[_0x9e4050[_0x3807ab(0x1ce)]]=_0x4e2bb4,process[_0x3807ab(0x19d)]('bs:addPlatformDetails:'+process[_0x3807ab(0x1c8)],{'timestamp':new Date()[_0x3807ab(0x18f)](),'level':null,'message':null,'kind':_0x9e4050[_0x3807ab(0x1b9)],'http_response':_0x43ecc3,'uuid':_0x24d071});}catch(_0x216a9d){_0x9e4050[_0x3807ab(0x18e)](debug,_0x3807ab(0x1c7)+_0x216a9d);}},exports['getHookSkippedTests']=_0x544683=>{const _0xea69d4=a31_0x5e4e99,_0xa82718={};_0xa82718[_0xea69d4(0x1b8)]=function(_0x359afd,_0x19c36d){return _0x359afd!==_0x19c36d;},_0xa82718[_0xea69d4(0x191)]=_0xea69d4(0x1b1),_0xa82718[_0xea69d4(0x1cd)]=function(_0x2551d5,_0x46ead4){return _0x2551d5!==_0x46ead4;},_0xa82718['GOzfP']=_0xea69d4(0x1d1),_0xa82718['PjVLU']='failed';const _0x5cc336=_0xa82718,_0x4797fc=_0x544683['suites']['reduce']((_0x56f657,_0x4949cd)=>{const _0x593470=_0xea69d4,_0x439563=exports[_0x593470(0x1c2)](_0x4949cd);return _0x439563&&(_0x56f657=_0x56f657['concat'](_0x439563)),_0x56f657;},[]),_0x1a4104=_0x544683[_0xea69d4(0x198)][_0xea69d4(0x1c6)](_0x2e6517=>{const _0x5f3928=_0xea69d4,_0x34a3bd=_0x5cc336[_0x5f3928(0x1b8)](_0x2e6517[_0x5f3928(0x1d3)],_0x5cc336[_0x5f3928(0x191)])&&!_0x2e6517[_0x5f3928(0x19c)]&&_0x5cc336[_0x5f3928(0x1cd)](_0x2e6517[_0x5f3928(0x193)],_0x5cc336['GOzfP'])&&_0x5cc336[_0x5f3928(0x1b8)](_0x2e6517[_0x5f3928(0x193)],_0x5cc336[_0x5f3928(0x1a4)])&&!_0x2e6517[_0x5f3928(0x1d9)];return _0x34a3bd;});return _0x1a4104['concat'](_0x4797fc);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0xe8ff(_0x23a3ec,_0x545869){const _0x532cb0=a32_0x532c();return a32_0xe8ff=function(_0xe8ffb9,_0x542696){_0xe8ffb9=_0xe8ffb9-0xdd;let _0x2e4f83=_0x532cb0[_0xe8ffb9];return _0x2e4f83;},a32_0xe8ff(_0x23a3ec,_0x545869);}function a32_0x532c(){const _0x1f5f4b=['__sessionFailed','URRtj','1954572QvhpLt','RlJNa','2dKiQIT','getGlobal','VriDN','performScan','error','mPrDx','ttmpU','testAnalyticsId','bihRG','HgLjP','8455851ajQJaB','AiMwn','format','SESSION_STATUS','WZxhO','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','end','__platformCaps','Kltqe','ghTGd','Passed','fIIxk','env','passed','MWucT','app','bstackA11yShouldScan','then','capabilities','Nwtvo','isAccessibilityPlatform','Failed:\x20','ylWnz','187769XKimvT','join','DLExd','percy','getCurrentUrl','2147469PHzjdH','qtRFB','NUEow','titlePath','sessionNameSet__','now','PazOK','ixhit','wMXmm','BNuAv','rqOMW','WdzlI','1005464HMlSVr','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','Automate\x20test\x20case\x20execution\x20has\x20started.','__drivers','FHLBN','SYNC','VFdNz','ACXXT','lpZrh','YlMBb','BROWSERSTACK_TESTHUB_UUID','IZdjZ','EeMzt','__error_messages__','http:','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','CQlpb','mochaHooks','MxZKK','rwMYR','.\x20Error\x20:','udNTV','beforeEach','../../helpers/percy/utils','message','kchdS','length','PVlyV','../../helpers/accessibility-automation/helper','BROWSERSTACK_TESTHUB_JWT','UBVOd','thTestRunUuid','../../helpers/testhub/constants','isArray','SDK_HOOK','ygmzH','\x20|\x20','shift','sessionName','2717000HgnssF','\x20-\x20','executeScript','dljyH','startMonitoring','JkNMo','../../helpers/logger','../../helpers/globals','winstonLogger','SESSION_NAME','ZQyaX','executeAsyncScript','gIywI','finally','thBuildUuid','https:','info','uwQkn','dPHqo','amfdo','../../helpers/accessibility-automation/scripts','YHSKV','driverCleanup','pHKHC','failed','xOcCW','ngvgj','cQPJl','beforeAll','../../helpers/testhub/utils','timeout','accessibilityScanStarted','appium:app','LyArg','ENV_VAR','DkHOJ','YGgKd','index','command','mjfYt','IUxNk','afterAll','7OmtADr','err','gyUZi','Failed\x20to\x20store\x20session\x20name:\x20','VyvPk','umZRq','currentTest','Qyzcr','nWHcY','ZGokW','rptpO','iByTd','stringify','tnTjV','JIRRX','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','ObservabilitySync:','nMYEH','aLWcQ','percyCaptureMode','tVkcZ','afterTest','SAVE_RESULTS','../../helpers/performance/performance-tester','gPsSn','pwlwp','session_','start','quitCount_','vEKOM','yEDlR','shouldScanTestForAccessibility','debug','OBiUz','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','tqGzG','measureWrapper','1885038brPUaF','vPdKe','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','setGlobal'];a32_0x532c=function(){return _0x1f5f4b;};return a32_0x532c();}const a32_0x24dfb3=a32_0xe8ff;(function(_0x32d2b4,_0x218f8b){const _0x4f0587=a32_0xe8ff,_0x3493b0=_0x32d2b4();while(!![]){try{const _0x585a2d=-parseInt(_0x4f0587(0x10d))/0x1*(-parseInt(_0x4f0587(0xec))/0x2)+parseInt(_0x4f0587(0x112))/0x3+-parseInt(_0x4f0587(0xea))/0x4+parseInt(_0x4f0587(0x145))/0x5+parseInt(_0x4f0587(0xe4))/0x6+parseInt(_0x4f0587(0x16f))/0x7*(parseInt(_0x4f0587(0x11e))/0x8)+-parseInt(_0x4f0587(0xf6))/0x9;if(_0x585a2d===_0x218f8b)break;else _0x3493b0['push'](_0x3493b0['shift']());}catch(_0x3f7c0e){_0x3493b0['push'](_0x3493b0['shift']());}}}(a32_0x532c,0x6ffaa));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x24dfb3(0x13a)),{percyAutoCapture}=require(a32_0x24dfb3(0x135)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a32_0x24dfb3(0x186)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),scripts=require(a32_0x24dfb3(0x159)),globals=require(a32_0x24dfb3(0x14c)),logger=require(a32_0x24dfb3(0x14b))[a32_0x24dfb3(0x14d)],{shouldProcessEventForTesthub}=require(a32_0x24dfb3(0x162)),testHubConstants=require(a32_0x24dfb3(0x13e));exports[a32_0x24dfb3(0x12f)]={'beforeAll'(){const _0x249e00=a32_0x24dfb3,_0x1f679f={'tnTjV':function(_0x5a6b25,_0x3d6d15,_0x206d10,_0x4dfdaf){return _0x5a6b25(_0x3d6d15,_0x206d10,_0x4dfdaf);},'ixhit':_0x249e00(0x15d),'nWHcY':_0x249e00(0x142),'URRtj':function(_0x101d93,_0x51e412,_0x1a6c52){return _0x101d93(_0x51e412,_0x1a6c52);},'whgvP':_0x249e00(0x103),'DkHOJ':function(_0x2b2c47){return _0x2b2c47();},'JkNMo':function(_0x5213a0,_0x1c715e,_0x212f17){return _0x5213a0(_0x1c715e,_0x212f17);},'mPrDx':_0x249e00(0x16a),'pwlwp':_0x249e00(0x161)};PerformanceTester[_0x249e00(0x149)]();const _0x2c0dfb='browserstack internal helper hook';PerformanceTester[_0x249e00(0xe3)](PerformanceSdkEvents[_0x249e00(0x140)],()=>{const _0x841f5b=_0x249e00;global[_0x841f5b(0x12b)]=[],global[_0x841f5b(0xe8)]=![],global['driverCleanup']=async()=>{const _0x4c1d1b=_0x841f5b;let _0x4eb67e=![];try{await global[_0x4c1d1b(0x121)][0x0][_0x4c1d1b(0x189)],_0x4eb67e=!![],global[_0x4c1d1b(0xe8)]?await _0x1f679f[_0x4c1d1b(0x17c)](markSessionStatus,global[_0x4c1d1b(0x121)][0x0],_0x1f679f[_0x4c1d1b(0x119)],global['__error_messages__'][_0x4c1d1b(0x10e)](_0x1f679f[_0x4c1d1b(0x177)])):await _0x1f679f[_0x4c1d1b(0xe9)](markSessionStatus,global[_0x4c1d1b(0x121)][0x0],_0x1f679f['whgvP']);}catch(_0x483f7f){logger['debug']('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x483f7f);}global[_0x4c1d1b(0x12b)]=[],global[_0x4c1d1b(0xe8)]=![];if(_0x4eb67e)try{try{_0x1f679f[_0x4c1d1b(0x168)](shouldProcessEventForTesthub)&&(global[_0x4c1d1b(0x121)][0x0]&&await _0x1f679f[_0x4c1d1b(0xe9)](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this[_0x4c1d1b(0x175)][_0x4c1d1b(0xf3)]:null));}catch(_0x472768){logger['debug']('Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20'+_0x472768);}await global[_0x4c1d1b(0x121)][0x0]['initQuit']();}catch(_0x20287c){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x20287c);}};},{'platform':_0x1f679f[_0x249e00(0x14a)](nestedKeyValue,global[_0x249e00(0xfd)],[_0x1f679f[_0x249e00(0xf1)]]),'hookType':_0x1f679f[_0x249e00(0x188)]})();},'beforeEach'(_0x584c63){const _0x382635=a32_0x24dfb3,_0x55fa03={'ttmpU':function(_0x277498){return _0x277498();},'wMXmm':function(_0x1c1d6f,_0x35764c){return _0x1c1d6f>_0x35764c;},'MWucT':_0x382635(0x146),'PazOK':function(_0x3a2f5b,_0x1c6362,_0x480ac2){return _0x3a2f5b(_0x1c6362,_0x480ac2);},'EeMzt':_0x382635(0x106),'JiOUQ':function(_0x4f0bb2,_0x389848){return _0x4f0bb2>_0x389848;},'cQPJl':'isAccessibilityPlatform','pTibn':function(_0x4e41ab,_0x34a033){return _0x4e41ab===_0x34a033;},'tVkcZ':_0x382635(0x12c),'sZiHX':_0x382635(0x154),'ghTGd':_0x382635(0x11f),'Nwtvo':_0x382635(0x120),'rwMYR':function(_0xb5259){return _0xb5259();},'YHSKV':'browserstackTestName','ACXXT':_0x382635(0x16a),'fIIxk':_0x382635(0x134)};globals[_0x382635(0xe7)](_0x55fa03[_0x382635(0x15a)],this[_0x382635(0x175)][_0x382635(0x115)]()['join'](_0x55fa03[_0x382635(0x104)])),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x382635(0x140)],()=>{const _0x5e3f54=_0x382635,_0x50903b={'VriDN':function(_0x2052c1,_0x227d17){const _0x258fe5=a32_0xe8ff;return _0x55fa03[_0x258fe5(0x11a)](_0x2052c1,_0x227d17);},'kchdS':_0x55fa03['MWucT'],'dPHqo':function(_0xce2c4b,_0x4c4b71,_0x2ee1df){const _0x19e63b=a32_0xe8ff;return _0x55fa03[_0x19e63b(0x118)](_0xce2c4b,_0x4c4b71,_0x2ee1df);},'FHLBN':_0x55fa03[_0x5e3f54(0x12a)],'JIRRX':function(_0x1e71f3){const _0x534c88=_0x5e3f54;return _0x55fa03[_0x534c88(0xf2)](_0x1e71f3);},'YGgKd':function(_0xc5e89d,_0x5961f9){return _0x55fa03['JiOUQ'](_0xc5e89d,_0x5961f9);},'BNuAv':_0x55fa03[_0x5e3f54(0x160)],'MxZKK':function(_0x56b104,_0x259d7a){return _0x55fa03['pTibn'](_0x56b104,_0x259d7a);},'qtRFB':_0x55fa03[_0x5e3f54(0x183)],'YlMBb':function(_0x579039,_0x2d5d98){return _0x55fa03['pTibn'](_0x579039,_0x2d5d98);},'rvgWH':_0x55fa03['sZiHX'],'xOcCW':_0x55fa03[_0x5e3f54(0xff)],'VFdNz':_0x55fa03[_0x5e3f54(0x109)],'UBVOd':function(_0x429475){const _0x56b70f=_0x5e3f54;return _0x55fa03[_0x56b70f(0x131)](_0x429475);}},_0x5170f2='browserstack internal helper hook';new Promise(async _0x3c8ef7=>{const _0x4026a4=_0x5e3f54;let _0x58e797=!![];try{_0x50903b['VriDN'](global[_0x4026a4(0x121)]['length'],0x1)&&(await global['driverCleanup'](),global[_0x4026a4(0x121)][_0x4026a4(0x143)]()),_0x50903b[_0x4026a4(0xee)](global['__drivers'][0x0][_0x4026a4(0x18b)],0x0)&&(_0x58e797=![],await global['driverCleanup']());}catch(_0x6c37be){logger[_0x4026a4(0xdf)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x6c37be);}try{Array[_0x4026a4(0x13f)](global[_0x4026a4(0x121)])&&global[_0x4026a4(0x121)][0x0]&&(global['__drivers'][0x0]['browserstackSessionName']=this[_0x4026a4(0x175)][_0x4026a4(0x115)]()[_0x4026a4(0x10e)](_0x50903b[_0x4026a4(0x137)])),global['browserstackSessionName']=this[_0x4026a4(0x175)][_0x4026a4(0x115)]()[_0x4026a4(0x10e)](_0x50903b[_0x4026a4(0x137)]);}catch(_0xe02017){logger[_0x4026a4(0xdf)](_0x4026a4(0x172)+_0xe02017);}this[_0x4026a4(0x175)][_0x4026a4(0xde)]=_0x50903b[_0x4026a4(0x157)](shouldScanTestForAccessibility,this[_0x4026a4(0x175)][_0x4026a4(0x115)](),!![]),globals[_0x4026a4(0xe7)](_0x50903b[_0x4026a4(0x122)],this[_0x4026a4(0x175)]['shouldScanTestForAccessibility']),this[_0x4026a4(0x175)][_0x4026a4(0x164)]=!![];if(_0x50903b[_0x4026a4(0x17d)](isAccessibilityAutomationSession)&&_0x58e797&&Array[_0x4026a4(0x13f)](global[_0x4026a4(0x121)])&&_0x50903b[_0x4026a4(0x169)](global[_0x4026a4(0x121)][_0x4026a4(0x138)],0x0)&&globals[_0x4026a4(0xed)](_0x50903b[_0x4026a4(0x11b)]))try{const _0x2dede6=await global[_0x4026a4(0x121)][0x0][_0x4026a4(0x189)];if(_0x2dede6){let _0x150cce=!![];const _0x29ff58=await global['__drivers'][0x0][_0x4026a4(0x111)]();let _0x3cbaa7;try{_0x3cbaa7=new URL(_0x29ff58);}catch(_0x4cc15e){_0x150cce=![];}_0x150cce=_0x50903b[_0x4026a4(0x130)](_0x3cbaa7['protocol'],_0x50903b[_0x4026a4(0x113)])||_0x50903b[_0x4026a4(0x127)](_0x3cbaa7['protocol'],_0x50903b['rvgWH']),_0x150cce&&(this[_0x4026a4(0x175)][_0x4026a4(0xde)]&&logger['info'](_0x50903b[_0x4026a4(0x15e)])),this[_0x4026a4(0x175)][_0x4026a4(0x164)]=this['currentTest'][_0x4026a4(0xde)],this[_0x4026a4(0x175)]['shouldScanTestForAccessibility']&&logger[_0x4026a4(0x155)](_0x50903b[_0x4026a4(0x124)]);}}catch(_0x345fd6){logger[_0x4026a4(0xf0)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x4026a4(0xf8)](_0x345fd6));}_0x50903b[_0x4026a4(0x13c)](_0x3c8ef7);})['then'](()=>{const _0x13ee2e=_0x5e3f54;_0x55fa03[_0x13ee2e(0xf2)](_0x584c63);});},{'platform':_0x55fa03[_0x382635(0x118)](nestedKeyValue,global['__platformCaps'],[_0x55fa03[_0x382635(0x125)]]),'hookType':_0x55fa03[_0x382635(0x101)]})();},'afterEach'(_0xf2f9bd){const _0x505268=a32_0x24dfb3,_0x53a673={'NUEow':_0x505268(0x146),'fIyqY':function(_0x43056b,_0x2607ba){return _0x43056b!==_0x2607ba;},'vEKOM':_0x505268(0x103),'ygmzH':function(_0x43ce6f,_0x433d61,_0x4a2880){return _0x43ce6f(_0x433d61,_0x4a2880);},'emBfL':function(_0x561564,_0x3cca10){return _0x561564+_0x3cca10;},'BEGJi':_0x505268(0x10b),'rqOMW':'error','gyUZi':_0x505268(0x100),'LyArg':_0x505268(0x155),'rVtGu':function(_0x32e436,_0x55d93b){return _0x32e436>_0x55d93b;},'KUSMf':function(_0x4c271d,_0x1d9add){return _0x4c271d===_0x1d9add;},'gVqQs':'testcase','rptpO':_0x505268(0x165),'vdMik':function(_0x4d3f4e,_0x124d22,_0x44d9e4,_0x595cd6){return _0x4d3f4e(_0x124d22,_0x44d9e4,_0x595cd6);},'OBiUz':_0x505268(0x10a),'PVlyV':_0x505268(0x106),'Kltqe':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','IUxNk':'Performing\x20scan\x20before\x20saving\x20results','VbMTF':_0x505268(0x184),'nMYEH':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','uwQkn':function(_0x4828ac){return _0x4828ac();},'dljyH':function(_0x467929,_0x4e9d2b,_0xdbdf8d){return _0x467929(_0x4e9d2b,_0xdbdf8d);},'ZGokW':function(_0x3e9c00,_0x138431,_0x345e90){return _0x3e9c00(_0x138431,_0x345e90);},'ngvgj':_0x505268(0xdf),'AOQUY':function(_0x2d7dcd,_0x569a03,_0x3d5d13){return _0x2d7dcd(_0x569a03,_0x3d5d13);},'gIywI':_0x505268(0x16a),'tqGzG':'afterEach'},_0x1ac946='browserstack internal helper hook';this[_0x505268(0x163)](0xfde8),global[_0x505268(0x144)]=this[_0x505268(0x175)]['titlePath']()[_0x505268(0x10e)](_0x53a673[_0x505268(0x114)]),PerformanceTester[_0x505268(0xe3)](PerformanceSdkEvents[_0x505268(0x140)],()=>{const _0x5c8f54=_0x505268,_0x421dc1={'zmkek':_0x53a673['NUEow'],'CQlpb':function(_0x323656,_0x1a9070){return _0x53a673['fIyqY'](_0x323656,_0x1a9070);},'tAfRy':_0x53a673[_0x5c8f54(0x18c)],'udNTV':function(_0x559db1,_0xa75b88,_0x1f3994){const _0x2a71a6=_0x5c8f54;return _0x53a673[_0x2a71a6(0x141)](_0x559db1,_0xa75b88,_0x1f3994);},'yEDlR':function(_0x338d3a,_0x2ed8c2){return _0x53a673['emBfL'](_0x338d3a,_0x2ed8c2);},'vPdKe':_0x53a673['BEGJi'],'aLWcQ':_0x53a673[_0x5c8f54(0x11c)],'ZQyaX':_0x53a673[_0x5c8f54(0x171)],'LhKJl':_0x53a673[_0x5c8f54(0x166)],'iByTd':function(_0x3019ff,_0x234792){return _0x53a673['rVtGu'](_0x3019ff,_0x234792);},'DLExd':function(_0x1cb62d,_0x379394){return _0x53a673['KUSMf'](_0x1cb62d,_0x379394);},'HgLjP':_0x53a673['gVqQs'],'auZuY':_0x53a673[_0x5c8f54(0x179)],'WZxhO':function(_0x2c464d,_0x205cf1,_0x172b8c,_0x46b81e){return _0x53a673['vdMik'](_0x2c464d,_0x205cf1,_0x172b8c,_0x46b81e);},'lpZrh':_0x53a673[_0x5c8f54(0xe0)],'Qyzcr':_0x53a673[_0x5c8f54(0x139)],'VyvPk':_0x53a673[_0x5c8f54(0xfe)],'umZRq':_0x53a673[_0x5c8f54(0x16d)],'ANyCl':_0x53a673['VbMTF'],'ylWnz':_0x53a673[_0x5c8f54(0x180)],'amfdo':function(_0x1b8186){return _0x53a673['uwQkn'](_0x1b8186);},'fOhZE':function(_0x22c092,_0x5c61cf,_0x55c7fc){const _0x146f41=_0x5c8f54;return _0x53a673[_0x146f41(0x148)](_0x22c092,_0x5c61cf,_0x55c7fc);},'RlJNa':function(_0x4f91b6){const _0x245b9f=_0x5c8f54;return _0x53a673[_0x245b9f(0x156)](_0x4f91b6);},'AiMwn':function(_0x154087,_0x3a6041,_0x58971b){const _0x21f875=_0x5c8f54;return _0x53a673[_0x21f875(0x178)](_0x154087,_0x3a6041,_0x58971b);},'bihRG':_0x53a673[_0x5c8f54(0x15f)]},_0x5f5543=async(_0x4568f7,_0x23c924)=>{const _0x175014=_0x5c8f54;await global['__drivers'][0x0][_0x175014(0x147)](_0x175014(0xe6)+_0x4568f7+',\x22level\x22:\x20\x22'+_0x23c924+'\x22}}');};new Promise(async _0x24a9b0=>{const _0xc872de=_0x5c8f54;try{_0x421dc1[_0xc872de(0x17a)](global[_0xc872de(0x121)][_0xc872de(0x138)],0x1)&&(await global[_0xc872de(0x15b)](),global[_0xc872de(0x121)][_0xc872de(0x143)](),global[_0xc872de(0x12b)]=[],global[_0xc872de(0xe8)]=![]);try{if(global[_0xc872de(0x110)]&&_0x421dc1[_0xc872de(0x10f)](global[_0xc872de(0x182)],_0x421dc1[_0xc872de(0xf5)])&&global['__drivers'][0x0]){const _0x100500=_0x421dc1[_0xc872de(0x17a)](global[_0xc872de(0x108)][_0xc872de(0x138)],0x0)?!!global[_0xc872de(0x108)][0x0][_0xc872de(0x105)]||!!global['capabilities'][0x0][_0x421dc1['auZuY']]:![],_0x5e2bac={};_0x5e2bac[_0xc872de(0x105)]=_0x100500,await _0x421dc1[_0xc872de(0xfa)](percyAutoCapture,global['__drivers'][0x0],_0x421dc1['HgLjP'],_0x5e2bac);}}catch(_0x313550){logger[_0xc872de(0xdf)](_0xc872de(0xe1)+_0x313550);}!global['__skipSessionName']&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0xc872de(0x14e)],async()=>{const _0x5c4e98=_0xc872de;await global[_0x5c4e98(0x121)][0x0][_0x5c4e98(0x147)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON['stringify'](this[_0x5c4e98(0x175)][_0x5c4e98(0x115)]()[_0x5c4e98(0x10e)](_0x421dc1['zmkek']))+'}}');})(),global[_0xc872de(0x121)][0x0][_0xc872de(0x116)]=!![]),await PerformanceTester[_0xc872de(0xe3)](PerformanceAutEvents[_0xc872de(0xf9)],async()=>{const _0x59c9a9=_0xc872de,_0x580205=_0x421dc1[_0x59c9a9(0x12e)](this[_0x59c9a9(0x175)]['state'],_0x421dc1['tAfRy']);_0x580205?(global['__sessionFailed']=!![],global[_0x59c9a9(0x12b)]['push'](this[_0x59c9a9(0x175)][_0x59c9a9(0x170)][_0x59c9a9(0x136)]),await _0x421dc1[_0x59c9a9(0x133)](_0x5f5543,JSON[_0x59c9a9(0x17b)](_0x421dc1[_0x59c9a9(0xdd)](_0x421dc1[_0x59c9a9(0xe5)],this[_0x59c9a9(0x175)][_0x59c9a9(0x170)][_0x59c9a9(0x136)])),_0x421dc1[_0x59c9a9(0x181)])):await _0x421dc1[_0x59c9a9(0x133)](_0x5f5543,JSON[_0x59c9a9(0x17b)](_0x421dc1[_0x59c9a9(0x14f)]),_0x421dc1['LhKJl']);})();}catch(_0x29ea30){logger[_0xc872de(0xdf)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x29ea30);}try{if(this[_0xc872de(0x175)][_0xc872de(0x164)]&&globals['getGlobal'](_0x421dc1[_0xc872de(0x126)])&&globals[_0xc872de(0xed)](_0x421dc1[_0xc872de(0x176)])){logger[_0xc872de(0x155)](_0x421dc1[_0xc872de(0x173)]);const _0x346c1d={};_0x346c1d[_0xc872de(0x13d)]=this['currentTest'][_0xc872de(0xf3)],_0x346c1d[_0xc872de(0x153)]=process[_0xc872de(0x102)][testHubConstants[_0xc872de(0x167)][_0xc872de(0x128)]],_0x346c1d['thJwtToken']=process[_0xc872de(0x102)][testHubConstants[_0xc872de(0x167)][_0xc872de(0x13b)]];const _0x383175=_0x346c1d;logger[_0xc872de(0xdf)](_0xc872de(0x17e)+JSON[_0xc872de(0x17b)](_0x383175)),logger[_0xc872de(0xdf)](_0x421dc1[_0xc872de(0x174)]);const _0x51cd56={};_0x51cd56[_0xc872de(0x16b)]=_0x421dc1['ANyCl'],await PerformanceTester['measureWrapper'](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x3d2f94=_0xc872de;logger[_0x3d2f94(0xdf)](util[_0x3d2f94(0xf8)](await global[_0x3d2f94(0x121)][0x0][_0x3d2f94(0x150)](scripts[_0x3d2f94(0xef)],{'method':global['browserstackSessionName']})));},_0x51cd56)(),await PerformanceTester[_0xc872de(0xe3)](PerformanceA11yEvents[_0xc872de(0x185)],async()=>{await global['__drivers'][0x0]['executeAsyncScript'](scripts['saveTestResults'],_0x383175);})(),logger[_0xc872de(0x155)](_0x421dc1[_0xc872de(0x10c)]);}}catch(_0xc12507){logger[_0xc872de(0xf0)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0xc872de(0x175)][_0xc872de(0x115)]()+_0xc872de(0x132),_0xc12507);}try{try{if(_0x421dc1[_0xc872de(0x158)](shouldProcessEventForTesthub)){global[_0xc872de(0x121)][0x0]&&await _0x421dc1['fOhZE'](sendPlatformDetails,global['__drivers'][0x0],this[_0xc872de(0x175)]?this['currentTest'][_0xc872de(0xf3)]:null);if(_0x421dc1[_0xc872de(0xeb)](isBrowserstackInfra)){PerformanceTester[_0xc872de(0x18a)](PerformanceO11yEvents[_0xc872de(0x123)]);const _0x4f2e89=_0xc872de(0x17f)+Date[_0xc872de(0x117)]();await _0x421dc1[_0xc872de(0xf7)](_0x5f5543,JSON['stringify'](_0x4f2e89),_0x421dc1[_0xc872de(0xf4)]),PerformanceTester['end'](PerformanceO11yEvents[_0xc872de(0x123)]);}}}catch(_0x470035){logger[_0xc872de(0xdf)](_0xc872de(0xfb)+_0x470035),PerformanceTester[_0xc872de(0xfc)](PerformanceO11yEvents[_0xc872de(0x123)],![],_0x470035);}_0x421dc1[_0xc872de(0x17a)](global[_0xc872de(0x121)][0x0][_0xc872de(0x18b)],0x0)&&await global[_0xc872de(0x15b)]();}catch(_0x504963){logger[_0xc872de(0xdf)](_0xc872de(0x12d)+_0x504963);}_0x421dc1[_0xc872de(0xeb)](_0x24a9b0);})[_0x5c8f54(0x107)](()=>{const _0x3ff5c7=_0x5c8f54;_0x421dc1[_0x3ff5c7(0xeb)](_0xf2f9bd);});},{'platform':_0x53a673['AOQUY'](nestedKeyValue,global[_0x505268(0xfd)],[_0x53a673[_0x505268(0x151)]]),'hookType':_0x53a673[_0x505268(0xe2)]})();},'afterAll'(_0x4c2808){const _0x2015c4=a32_0x24dfb3,_0x28157d={'pHKHC':function(_0x59d8d0){return _0x59d8d0();},'aOsno':function(_0x45b263){return _0x45b263();},'psjPh':function(_0x3496e7,_0x10ea7f,_0x47c00e){return _0x3496e7(_0x10ea7f,_0x47c00e);},'WdzlI':_0x2015c4(0x16a),'gPsSn':_0x2015c4(0x16e)},_0x30a349='browserstack internal helper hook';this[_0x2015c4(0x163)](0xfde8),PerformanceTester[_0x2015c4(0xe3)](PerformanceSdkEvents[_0x2015c4(0x140)],()=>{const _0x3b55da=_0x2015c4,_0xbe9c1b={'mjfYt':function(_0x17afe0){const _0x496e8d=a32_0xe8ff;return _0x28157d[_0x496e8d(0x15c)](_0x17afe0);},'IZdjZ':function(_0x14ce81){return _0x28157d['aOsno'](_0x14ce81);}};new Promise(async _0x4aaab8=>{const _0x569fd8=a32_0xe8ff;await global[_0x569fd8(0x15b)](),_0xbe9c1b[_0x569fd8(0x16c)](_0x4aaab8);})[_0x3b55da(0x107)]()[_0x3b55da(0x152)](()=>{const _0x4bf1b0=_0x3b55da;_0xbe9c1b[_0x4bf1b0(0x129)](_0x4c2808);});},{'platform':_0x28157d['psjPh'](nestedKeyValue,global[_0x2015c4(0xfd)],[_0x28157d[_0x2015c4(0x11d)]]),'hookType':_0x28157d[_0x2015c4(0x187)]})();}};
|
|
1
|
+
function a32_0xaee3(_0x3d92d4,_0x2415a3){const _0x24dac7=a32_0x24da();return a32_0xaee3=function(_0xaee3be,_0x1f429f){_0xaee3be=_0xaee3be-0x1e1;let _0x7ac7c6=_0x24dac7[_0xaee3be];return _0x7ac7c6;},a32_0xaee3(_0x3d92d4,_0x2415a3);}const a32_0x43518a=a32_0xaee3;(function(_0x25e593,_0xae5899){const _0x20177d=a32_0xaee3,_0x5bd644=_0x25e593();while(!![]){try{const _0x273d2b=parseInt(_0x20177d(0x236))/0x1+parseInt(_0x20177d(0x245))/0x2+parseInt(_0x20177d(0x1f6))/0x3+parseInt(_0x20177d(0x21b))/0x4*(parseInt(_0x20177d(0x28a))/0x5)+parseInt(_0x20177d(0x25b))/0x6+parseInt(_0x20177d(0x1f1))/0x7*(parseInt(_0x20177d(0x232))/0x8)+-parseInt(_0x20177d(0x275))/0x9*(parseInt(_0x20177d(0x218))/0xa);if(_0x273d2b===_0xae5899)break;else _0x5bd644['push'](_0x5bd644['shift']());}catch(_0x3e60b7){_0x5bd644['push'](_0x5bd644['shift']());}}}(a32_0x24da,0x9fc2f));const util=require(a32_0x43518a(0x211)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a32_0x43518a(0x1e7)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x43518a(0x231)),PerformanceTester=require(a32_0x43518a(0x264)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a32_0x43518a(0x202)),scripts=require(a32_0x43518a(0x281)),globals=require(a32_0x43518a(0x1e6)),logger=require(a32_0x43518a(0x28e))[a32_0x43518a(0x248)],{shouldProcessEventForTesthub}=require(a32_0x43518a(0x292)),testHubConstants=require('../../helpers/testhub/constants');function a32_0x24da(){const _0xb12cab=['TqnCh','Passed','OlWvk','../../helpers/globals','../../helpers/percy/utils','OVQuB','nMxZg','ldmod','executeAsyncScript','timeout','__skipSessionName','err','xBtwQ','info','774844OVhxGN','percy','start','coRkH','XKpsd','3035037FYeItu','mochaHooks','http:','appium:app','join','SDK_HOOK','Iaooe','YNFIE','wzZNP','PYnKh','length','ENV_VAR','../../helpers/performance/constants','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','thTestRunUuid','debug','AmKNm','KAOdb','measureWrapper','__platformCaps','mmZWS','getGlobal','EZUAc','XVLkl','sessionNameSet__','util','zGzey','faAAa','Skzzz','yTVZN','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','Failed\x20to\x20store\x20session\x20name:\x20','302320zPnzRa','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','BauOg','5023196lRrmUg','qmWEB','RFNNd','ygfiK','jwscI','shift','stringify','eSVde','error','jSTqw','sessionName','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','browserstackSessionName','LcCSH','end','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','SYNC','format','DfxnV','afterAll','\x20-\x20','failed','../../helpers/helper','8qMutDd','UbCnc','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','pEpyB','172902SjEBah','Failed:\x20','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','GSmyP','VhJUc','message','SAVE_RESULTS','percyCaptureMode','PERFORM_SCAN','__sessionFailed','https:','HXNzM','LNkKu','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','23862gorxBm','then','BOOFc','winstonLogger','ttEok','protocol','state','OfMKz','testAnalyticsId','\x22}}','jyFBt','bstackA11yShouldScan','kbaIe','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','startMonitoring','BoiHx','env',',\x22level\x22:\x20\x22','xbhPz','now','BTvVQ','ZyjYs','3422424pxIjyo','quitCount_','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','ZSsBc','executeScript','index','finally','isAccessibilityPlatform','browserstackTestName','../../helpers/performance/performance-tester','getCurrentUrl','session_','lQDXi','CdVsw','accessibilityScanStarted','__drivers','XKqWe','ADlXF','WKHUk','command','app','aQrKI','beforeEach','capabilities','driverCleanup','passed','738CorfCQ','SESSION_NAME','isArray','BROWSERSTACK_TESTHUB_JWT','NWOya','afterEach','UTkGa','Automate\x20test\x20case\x20execution\x20has\x20started.','eAfqz','WUoty','ldkcq','plyTd','../../helpers/accessibility-automation/scripts','SESSION_STATUS','titlePath','HKqXN','\x20|\x20','currentTest','initQuit','ObservabilitySync:','setGlobal','5CtCWQE','thJwtToken','shouldScanTestForAccessibility','GXPKx','../../helpers/logger','HqggG','PjjOw','yCxHn','../../helpers/testhub/utils','beforeAll','__error_messages__','ipeVM'];a32_0x24da=function(){return _0xb12cab;};return a32_0x24da();}exports[a32_0x43518a(0x1f7)]={'beforeAll'(){const _0x271835=a32_0x43518a,_0x1c0b6d={'JPzkU':function(_0x5a27c8,_0x50b51f,_0x430969,_0x5a568e){return _0x5a27c8(_0x50b51f,_0x430969,_0x5a568e);},'XVLkl':_0x271835(0x230),'UbCnc':_0x271835(0x285),'UTkGa':function(_0x1aecfc,_0x16e756,_0x250d6e){return _0x1aecfc(_0x16e756,_0x250d6e);},'EZUAc':'passed','HXNzM':function(_0x2357a7){return _0x2357a7();},'YNFIE':function(_0x353026,_0x21a71c,_0x528bab){return _0x353026(_0x21a71c,_0x528bab);},'RUWXW':function(_0x15b44d,_0x218877,_0x57b63a){return _0x15b44d(_0x218877,_0x57b63a);},'ttEok':_0x271835(0x260),'jyFBt':_0x271835(0x293)};PerformanceTester[_0x271835(0x253)]();const _0x3b9f78='browserstack internal helper hook';PerformanceTester[_0x271835(0x20a)](PerformanceSdkEvents[_0x271835(0x1fb)],()=>{const _0xa9ddb=_0x271835;global[_0xa9ddb(0x1e1)]=[],global['__sessionFailed']=![],global[_0xa9ddb(0x273)]=async()=>{const _0x4b4008=_0xa9ddb;let _0x4b598b=![];try{await global[_0x4b4008(0x26a)][0x0][_0x4b4008(0x266)],_0x4b598b=!![],global['__sessionFailed']?await _0x1c0b6d['JPzkU'](markSessionStatus,global['__drivers'][0x0],_0x1c0b6d[_0x4b4008(0x20f)],global[_0x4b4008(0x1e1)][_0x4b4008(0x1fa)](_0x1c0b6d[_0x4b4008(0x233)])):await _0x1c0b6d[_0x4b4008(0x27b)](markSessionStatus,global[_0x4b4008(0x26a)][0x0],_0x1c0b6d[_0x4b4008(0x20e)]);}catch(_0x27f430){logger[_0x4b4008(0x207)](_0x4b4008(0x22a)+_0x27f430);}global[_0x4b4008(0x1e1)]=[],global['__sessionFailed']=![];if(_0x4b598b)try{try{_0x1c0b6d[_0x4b4008(0x242)](shouldProcessEventForTesthub)&&(global[_0x4b4008(0x26a)][0x0]&&await _0x1c0b6d[_0x4b4008(0x1fd)](sendPlatformDetails,global[_0x4b4008(0x26a)][0x0],this[_0x4b4008(0x286)]?this[_0x4b4008(0x286)][_0x4b4008(0x24d)]:null));}catch(_0x2203c6){logger[_0x4b4008(0x207)](_0x4b4008(0x216)+_0x2203c6);}await global[_0x4b4008(0x26a)][0x0][_0x4b4008(0x287)]();}catch(_0x504a6e){logger[_0x4b4008(0x207)](_0x4b4008(0x203)+_0x504a6e);}};},{'platform':_0x1c0b6d['RUWXW'](nestedKeyValue,global['__platformCaps'],[_0x1c0b6d[_0x271835(0x249)]]),'hookType':_0x1c0b6d[_0x271835(0x24f)]})();},'beforeEach'(_0x3376e6){const _0x57edac=a32_0x43518a,_0x1fe45a={'XKqWe':function(_0x3c3a68,_0x12e5a5){return _0x3c3a68>_0x12e5a5;},'LcCSH':function(_0x91bb76,_0x487b76){return _0x91bb76>_0x487b76;},'BTvVQ':_0x57edac(0x22f),'VhJUc':function(_0x25dd8b,_0xba116a,_0x397dea){return _0x25dd8b(_0xba116a,_0x397dea);},'mOIhy':_0x57edac(0x250),'Skzzz':function(_0x426c28){return _0x426c28();},'hGXyc':'isAccessibilityPlatform','FNpnN':function(_0x1612c2,_0x1b9a00){return _0x1612c2===_0x1b9a00;},'ldkcq':_0x57edac(0x1f8),'ygfiK':function(_0x5d7a05,_0x2abfbd){return _0x5d7a05===_0x2abfbd;},'pEpyB':_0x57edac(0x241),'nMxZg':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','Iaooe':_0x57edac(0x27c),'GXPKx':_0x57edac(0x263),'cXmer':_0x57edac(0x260),'NWOya':_0x57edac(0x271)};globals[_0x57edac(0x289)](_0x1fe45a[_0x57edac(0x28d)],this[_0x57edac(0x286)][_0x57edac(0x283)]()[_0x57edac(0x1fa)](_0x1fe45a['BTvVQ'])),PerformanceTester[_0x57edac(0x20a)](PerformanceSdkEvents[_0x57edac(0x1fb)],()=>{const _0x44bad9=_0x57edac,_0x42d520={'TjQZn':function(_0x5995ee,_0x5d8e00){const _0x5ba4d6=a32_0xaee3;return _0x1fe45a[_0x5ba4d6(0x26b)](_0x5995ee,_0x5d8e00);},'faAAa':function(_0x4dae8f,_0x17d90e){const _0x9ec24e=a32_0xaee3;return _0x1fe45a[_0x9ec24e(0x228)](_0x4dae8f,_0x17d90e);},'LNkKu':_0x1fe45a[_0x44bad9(0x259)],'ldmod':function(_0x38f1c6,_0x3c88b8,_0x136eca){const _0x4b704c=_0x44bad9;return _0x1fe45a[_0x4b704c(0x23b)](_0x38f1c6,_0x3c88b8,_0x136eca);},'OlWvk':_0x1fe45a['mOIhy'],'WKHUk':function(_0x22f34c){const _0x2d394a=_0x44bad9;return _0x1fe45a[_0x2d394a(0x214)](_0x22f34c);},'CdVsw':_0x1fe45a['hGXyc'],'xbhPz':function(_0x5c08fe,_0x788a79){return _0x1fe45a['FNpnN'](_0x5c08fe,_0x788a79);},'TqnCh':_0x1fe45a[_0x44bad9(0x27f)],'xBtwQ':function(_0x24e9a8,_0x57b47b){const _0x262433=_0x44bad9;return _0x1fe45a[_0x262433(0x21e)](_0x24e9a8,_0x57b47b);},'mmZWS':_0x1fe45a[_0x44bad9(0x235)],'jSTqw':_0x1fe45a[_0x44bad9(0x1e9)],'WUoty':_0x1fe45a[_0x44bad9(0x1fc)],'AmKNm':function(_0x3f8034){const _0x4c9dd6=_0x44bad9;return _0x1fe45a[_0x4c9dd6(0x214)](_0x3f8034);}},_0x126152='browserstack internal helper hook';new Promise(async _0x13a88c=>{const _0x347fa7=_0x44bad9;let _0x48585f=!![];try{_0x42d520['TjQZn'](global[_0x347fa7(0x26a)]['length'],0x1)&&(await global[_0x347fa7(0x273)](),global[_0x347fa7(0x26a)][_0x347fa7(0x220)]()),_0x42d520[_0x347fa7(0x213)](global['__drivers'][0x0][_0x347fa7(0x25c)],0x0)&&(_0x48585f=![],await global[_0x347fa7(0x273)]());}catch(_0x1b2be1){logger[_0x347fa7(0x207)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x1b2be1);}try{Array[_0x347fa7(0x277)](global[_0x347fa7(0x26a)])&&global[_0x347fa7(0x26a)][0x0]&&(global[_0x347fa7(0x26a)][0x0][_0x347fa7(0x227)]=this['currentTest'][_0x347fa7(0x283)]()[_0x347fa7(0x1fa)](_0x42d520[_0x347fa7(0x243)])),global[_0x347fa7(0x227)]=this['currentTest'][_0x347fa7(0x283)]()[_0x347fa7(0x1fa)](_0x42d520[_0x347fa7(0x243)]);}catch(_0x5898de){logger[_0x347fa7(0x207)](_0x347fa7(0x217)+_0x5898de);}this[_0x347fa7(0x286)][_0x347fa7(0x28c)]=_0x42d520[_0x347fa7(0x1ea)](shouldScanTestForAccessibility,this[_0x347fa7(0x286)]['titlePath'](),!![]),globals[_0x347fa7(0x289)](_0x42d520[_0x347fa7(0x1e5)],this[_0x347fa7(0x286)][_0x347fa7(0x28c)]),this[_0x347fa7(0x286)][_0x347fa7(0x269)]=!![];if(_0x42d520[_0x347fa7(0x26d)](isAccessibilityAutomationSession)&&_0x48585f&&Array[_0x347fa7(0x277)](global['__drivers'])&&_0x42d520[_0x347fa7(0x213)](global['__drivers'][_0x347fa7(0x200)],0x0)&&globals[_0x347fa7(0x20d)](_0x42d520[_0x347fa7(0x268)]))try{const _0x3817fc=await global[_0x347fa7(0x26a)][0x0][_0x347fa7(0x266)];if(_0x3817fc){let _0x21c5cb=!![];const _0x3cb7ce=await global[_0x347fa7(0x26a)][0x0][_0x347fa7(0x265)]();let _0x2e8773;try{_0x2e8773=new URL(_0x3cb7ce);}catch(_0x9f0390){_0x21c5cb=![];}_0x21c5cb=_0x42d520[_0x347fa7(0x257)](_0x2e8773[_0x347fa7(0x24a)],_0x42d520[_0x347fa7(0x1e3)])||_0x42d520[_0x347fa7(0x1ef)](_0x2e8773[_0x347fa7(0x24a)],_0x42d520[_0x347fa7(0x20c)]),_0x21c5cb&&(this['currentTest']['shouldScanTestForAccessibility']&&logger[_0x347fa7(0x1f0)](_0x42d520[_0x347fa7(0x224)])),this['currentTest'][_0x347fa7(0x269)]=this[_0x347fa7(0x286)][_0x347fa7(0x28c)],this['currentTest']['shouldScanTestForAccessibility']&&logger[_0x347fa7(0x1f0)](_0x42d520[_0x347fa7(0x27e)]);}}catch(_0x12d4bf){logger[_0x347fa7(0x223)](_0x347fa7(0x252)+util[_0x347fa7(0x22c)](_0x12d4bf));}_0x42d520[_0x347fa7(0x26d)](_0x13a88c);})['then'](()=>{const _0xe26e29=_0x44bad9;_0x42d520[_0xe26e29(0x208)](_0x3376e6);});},{'platform':_0x1fe45a[_0x57edac(0x23b)](nestedKeyValue,global[_0x57edac(0x20b)],[_0x1fe45a['cXmer']]),'hookType':_0x1fe45a[_0x57edac(0x279)]})();},'afterEach'(_0x1bcc93){const _0xa57883=a32_0x43518a,_0x39f9d8={'HqggG':_0xa57883(0x22f),'RFNNd':function(_0x26ee37,_0x2ed738){return _0x26ee37>_0x2ed738;},'wzZNP':function(_0x400ec4,_0x578c63){return _0x400ec4===_0x578c63;},'kbaIe':'testcase','jwscI':_0xa57883(0x1f9),'yTVZN':function(_0x10a043,_0x3b7b8,_0x226e50,_0x573535){return _0x10a043(_0x3b7b8,_0x226e50,_0x573535);},'AcPpX':_0xa57883(0x262),'BoiHx':'bstackA11yShouldScan','eAfqz':_0xa57883(0x25d),'zjJpS':'Performing\x20scan\x20before\x20saving\x20results','KAOdb':'afterTest','PYnKh':_0xa57883(0x204),'lQDXi':function(_0x207362){return _0x207362();},'DfxnV':function(_0x42d450,_0x5f4c70,_0x316eb2){return _0x42d450(_0x5f4c70,_0x316eb2);},'coRkH':function(_0x1d96d){return _0x1d96d();},'BauOg':_0xa57883(0x207),'iIqdX':function(_0x58b1a1,_0x2f88c9){return _0x58b1a1!==_0x2f88c9;},'aQrKI':_0xa57883(0x274),'hNHWC':function(_0xc22673,_0x5228fc){return _0xc22673+_0x5228fc;},'PjjOw':_0xa57883(0x237),'qBxuH':_0xa57883(0x223),'XKpsd':_0xa57883(0x1e4),'DnNXA':'info','TjnMP':function(_0xd81dab){return _0xd81dab();},'zGzey':_0xa57883(0x260),'ipeVM':_0xa57883(0x27a)},_0x51ef23='browserstack internal helper hook';this[_0xa57883(0x1ec)](0xfde8),global[_0xa57883(0x225)]=this[_0xa57883(0x286)][_0xa57883(0x283)]()['join'](_0x39f9d8[_0xa57883(0x28f)]),PerformanceTester[_0xa57883(0x20a)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x463919=_0xa57883,_0x445b5a={'eSVde':function(_0x3f5a71,_0x83148c){return _0x39f9d8['iIqdX'](_0x3f5a71,_0x83148c);},'yCxHn':_0x39f9d8[_0x463919(0x270)],'ZSsBc':function(_0x49399b,_0x5012dd,_0x111a39){const _0x370536=_0x463919;return _0x39f9d8[_0x370536(0x22d)](_0x49399b,_0x5012dd,_0x111a39);},'ZyjYs':function(_0x43b26e,_0x2900ce){return _0x39f9d8['hNHWC'](_0x43b26e,_0x2900ce);},'YPXkl':_0x39f9d8[_0x463919(0x290)],'plyTd':_0x39f9d8['qBxuH'],'GSmyP':_0x39f9d8[_0x463919(0x1f5)],'OfMKz':_0x39f9d8['DnNXA'],'HKqXN':function(_0xb6b05c){return _0x39f9d8['TjnMP'](_0xb6b05c);}},_0x433008=async(_0x1a2362,_0x1a6adb)=>{const _0x422907=_0x463919;await global[_0x422907(0x26a)][0x0][_0x422907(0x25f)](_0x422907(0x239)+_0x1a2362+_0x422907(0x256)+_0x1a6adb+_0x422907(0x24e));};new Promise(async _0x3fdd43=>{const _0x1a5bc9=_0x463919,_0x57b97c={};_0x57b97c[_0x1a5bc9(0x26c)]=_0x39f9d8['HqggG'];const _0x5cec42=_0x57b97c;try{_0x39f9d8[_0x1a5bc9(0x21d)](global[_0x1a5bc9(0x26a)][_0x1a5bc9(0x200)],0x1)&&(await global[_0x1a5bc9(0x273)](),global['__drivers'][_0x1a5bc9(0x220)](),global[_0x1a5bc9(0x1e1)]=[],global[_0x1a5bc9(0x240)]=![]);try{if(global[_0x1a5bc9(0x1f2)]&&_0x39f9d8[_0x1a5bc9(0x1fe)](global[_0x1a5bc9(0x23e)],_0x39f9d8['kbaIe'])&&global['__drivers'][0x0]){const _0x35f06c=_0x39f9d8['RFNNd'](global[_0x1a5bc9(0x272)][_0x1a5bc9(0x200)],0x0)?!!global['capabilities'][0x0][_0x1a5bc9(0x26f)]||!!global[_0x1a5bc9(0x272)][0x0][_0x39f9d8[_0x1a5bc9(0x21f)]]:![],_0x400275={};_0x400275[_0x1a5bc9(0x26f)]=_0x35f06c,await _0x39f9d8[_0x1a5bc9(0x215)](percyAutoCapture,global[_0x1a5bc9(0x26a)][0x0],_0x39f9d8[_0x1a5bc9(0x251)],_0x400275);}}catch(_0x4c77a8){logger['debug'](_0x1a5bc9(0x226)+_0x4c77a8);}!global[_0x1a5bc9(0x1ed)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x1a5bc9(0x276)],async()=>{const _0x49890f=_0x1a5bc9;await global[_0x49890f(0x26a)][0x0][_0x49890f(0x25f)](_0x49890f(0x205)+JSON[_0x49890f(0x221)](this[_0x49890f(0x286)]['titlePath']()[_0x49890f(0x1fa)](_0x5cec42[_0x49890f(0x26c)]))+'}}');})(),global['__drivers'][0x0][_0x1a5bc9(0x210)]=!![]),await PerformanceTester[_0x1a5bc9(0x20a)](PerformanceAutEvents[_0x1a5bc9(0x282)],async()=>{const _0x188f02=_0x1a5bc9,_0x7eee09=_0x445b5a[_0x188f02(0x222)](this[_0x188f02(0x286)][_0x188f02(0x24b)],_0x445b5a[_0x188f02(0x291)]);_0x7eee09?(global['__sessionFailed']=!![],global[_0x188f02(0x1e1)]['push'](this[_0x188f02(0x286)][_0x188f02(0x1ee)][_0x188f02(0x23c)]),await _0x445b5a[_0x188f02(0x25e)](_0x433008,JSON[_0x188f02(0x221)](_0x445b5a[_0x188f02(0x25a)](_0x445b5a['YPXkl'],this['currentTest'][_0x188f02(0x1ee)][_0x188f02(0x23c)])),_0x445b5a[_0x188f02(0x280)])):await _0x445b5a[_0x188f02(0x25e)](_0x433008,JSON[_0x188f02(0x221)](_0x445b5a[_0x188f02(0x23a)]),_0x445b5a[_0x188f02(0x24c)]);})();}catch(_0x46585){logger[_0x1a5bc9(0x207)](_0x1a5bc9(0x244)+_0x46585);}try{if(this[_0x1a5bc9(0x286)][_0x1a5bc9(0x269)]&&globals[_0x1a5bc9(0x20d)](_0x39f9d8['AcPpX'])&&globals['getGlobal'](_0x39f9d8[_0x1a5bc9(0x254)])){logger[_0x1a5bc9(0x1f0)](_0x39f9d8[_0x1a5bc9(0x27d)]);const _0x2221fc={};_0x2221fc[_0x1a5bc9(0x206)]=this[_0x1a5bc9(0x286)][_0x1a5bc9(0x24d)],_0x2221fc['thBuildUuid']=process[_0x1a5bc9(0x255)][testHubConstants[_0x1a5bc9(0x201)]['BROWSERSTACK_TESTHUB_UUID']],_0x2221fc[_0x1a5bc9(0x28b)]=process[_0x1a5bc9(0x255)][testHubConstants[_0x1a5bc9(0x201)][_0x1a5bc9(0x278)]];const _0x357e58=_0x2221fc;logger[_0x1a5bc9(0x207)](_0x1a5bc9(0x238)+JSON[_0x1a5bc9(0x221)](_0x357e58)),logger['debug'](_0x39f9d8['zjJpS']);const _0x64bbdf={};_0x64bbdf[_0x1a5bc9(0x26e)]=_0x39f9d8[_0x1a5bc9(0x209)],await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x1a5bc9(0x23f)],async()=>{const _0x54087e=_0x1a5bc9;logger[_0x54087e(0x207)](util[_0x54087e(0x22c)](await global[_0x54087e(0x26a)][0x0][_0x54087e(0x1eb)](scripts['performScan'],{'method':global['browserstackSessionName']})));},_0x64bbdf)(),await PerformanceTester[_0x1a5bc9(0x20a)](PerformanceA11yEvents[_0x1a5bc9(0x23d)],async()=>{const _0x474271=_0x1a5bc9;await global['__drivers'][0x0][_0x474271(0x1eb)](scripts['saveTestResults'],_0x357e58);})(),logger['info'](_0x39f9d8[_0x1a5bc9(0x1ff)]);}}catch(_0x336aa6){logger[_0x1a5bc9(0x223)](_0x1a5bc9(0x234)+this[_0x1a5bc9(0x286)][_0x1a5bc9(0x283)]()+'.\x20Error\x20:',_0x336aa6);}try{try{if(_0x39f9d8[_0x1a5bc9(0x267)](shouldProcessEventForTesthub)){global[_0x1a5bc9(0x26a)][0x0]&&await _0x39f9d8[_0x1a5bc9(0x22d)](sendPlatformDetails,global[_0x1a5bc9(0x26a)][0x0],this[_0x1a5bc9(0x286)]?this['currentTest']['testAnalyticsId']:null);if(_0x39f9d8['coRkH'](isBrowserstackInfra)){PerformanceTester[_0x1a5bc9(0x1f3)](PerformanceO11yEvents[_0x1a5bc9(0x22b)]);const _0x4ee92f=_0x1a5bc9(0x288)+Date[_0x1a5bc9(0x258)]();await _0x39f9d8[_0x1a5bc9(0x22d)](_0x433008,JSON['stringify'](_0x4ee92f),_0x39f9d8[_0x1a5bc9(0x21a)]),PerformanceTester[_0x1a5bc9(0x229)](PerformanceO11yEvents[_0x1a5bc9(0x22b)]);}}}catch(_0x235393){logger[_0x1a5bc9(0x207)](_0x1a5bc9(0x219)+_0x235393),PerformanceTester[_0x1a5bc9(0x229)](PerformanceO11yEvents[_0x1a5bc9(0x22b)],![],_0x235393);}_0x39f9d8[_0x1a5bc9(0x21d)](global[_0x1a5bc9(0x26a)][0x0][_0x1a5bc9(0x25c)],0x0)&&await global[_0x1a5bc9(0x273)]();}catch(_0x431620){logger[_0x1a5bc9(0x207)](_0x1a5bc9(0x203)+_0x431620);}_0x39f9d8[_0x1a5bc9(0x1f4)](_0x3fdd43);})['then'](()=>{const _0x577531=_0x463919;_0x445b5a[_0x577531(0x284)](_0x1bcc93);});},{'platform':_0x39f9d8[_0xa57883(0x22d)](nestedKeyValue,global[_0xa57883(0x20b)],[_0x39f9d8[_0xa57883(0x212)]]),'hookType':_0x39f9d8[_0xa57883(0x1e2)]})();},'afterAll'(_0x5e649f){const _0x229168=a32_0x43518a,_0x2d741b={'OVQuB':function(_0x3fc3a6){return _0x3fc3a6();},'BOOFc':function(_0x297e3,_0x36d22d,_0x51865d){return _0x297e3(_0x36d22d,_0x51865d);},'tgsoM':_0x229168(0x260),'qmWEB':_0x229168(0x22e)},_0x496255='browserstack internal helper hook';this[_0x229168(0x1ec)](0xfde8),PerformanceTester[_0x229168(0x20a)](PerformanceSdkEvents[_0x229168(0x1fb)],()=>{const _0x46f780=_0x229168;new Promise(async _0x388872=>{await global['driverCleanup'](),_0x2d741b['OVQuB'](_0x388872);})[_0x46f780(0x246)]()[_0x46f780(0x261)](()=>{const _0x243049=_0x46f780;_0x2d741b[_0x243049(0x1e8)](_0x5e649f);});},{'platform':_0x2d741b[_0x229168(0x247)](nestedKeyValue,global[_0x229168(0x20b)],[_0x2d741b['tgsoM']]),'hookType':_0x2d741b[_0x229168(0x21c)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function
|
|
2
|
+
'use strict';const a33_0x31b063=a33_0x2f28;function a33_0x2f28(_0x3af40e,_0x5a8a2f){const _0x139b77=a33_0x139b();return a33_0x2f28=function(_0x2f2885,_0x31e4e4){_0x2f2885=_0x2f2885-0x17f;let _0x320749=_0x139b77[_0x2f2885];return _0x320749;},a33_0x2f28(_0x3af40e,_0x5a8a2f);}(function(_0x3ceb70,_0x1f88e2){const _0x421dbd=a33_0x2f28,_0x4c405d=_0x3ceb70();while(!![]){try{const _0x17467f=parseInt(_0x421dbd(0x1ac))/0x1+-parseInt(_0x421dbd(0x1c7))/0x2*(parseInt(_0x421dbd(0x1a7))/0x3)+-parseInt(_0x421dbd(0x1aa))/0x4+-parseInt(_0x421dbd(0x1c1))/0x5*(-parseInt(_0x421dbd(0x189))/0x6)+parseInt(_0x421dbd(0x193))/0x7*(parseInt(_0x421dbd(0x1b0))/0x8)+-parseInt(_0x421dbd(0x185))/0x9*(-parseInt(_0x421dbd(0x1b8))/0xa)+-parseInt(_0x421dbd(0x1c8))/0xb;if(_0x17467f===_0x1f88e2)break;else _0x4c405d['push'](_0x4c405d['shift']());}catch(_0x57452b){_0x4c405d['push'](_0x4c405d['shift']());}}}(a33_0x139b,0x37fe6));function a33_0x139b(){const _0x5595fe=['now','iygTQ','lUVFh','test','116457zSeTeh','KcEAE','port','245296ksjfPp','nightwatch.cmd','356001uKciaQ','map','trim','yUblD','217232RKguzJ','uGqdU','--env','filter','writeFileSync','../utils/constants','findIndex','../../helpers/logger','414170iPrcBT','mergeDeep','join','QiIko','JwtMh','slice','qFBRh','../../helpers/helper','debug','5wBbHkO','oVfDa','modifyBrowserStackCaps','lwjKV','nightwatch.json','test_settings','10lpNxTp','9484739rKPVBN','config','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','hxMXo','exports','MZsiX','../../helpers/BrowserStackSetup','nightwatch-browserstack.json','FRuHQ','close','existsSync','cwd','forEach','platforms','inherit','99tAzPgt','host','start_process','getPlatformName','2560884hqjWlI','child_process','platform','path','modifyBrowserStackW3CCaps','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','splice','giVsc','push','info','28PMhUjg','nightwatch','--config','hub.browserstack.com','child\x20process\x20exited\x20with\x20code\x20','unlinkSync','qGPTm','cMqQR','split','length','useW3C','ojtar','env','cTaFF','webdriver','desiredCapabilities'];a33_0x139b=function(){return _0x5595fe;};return a33_0x139b();}const fs=require('fs'),path=require(a33_0x31b063(0x18c)),{spawn}=require(a33_0x31b063(0x18a)),logger=require(a33_0x31b063(0x1b7))['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x31b063(0x1ce)),helper=require(a33_0x31b063(0x1bf)),constants=require(a33_0x31b063(0x1b5)),getUserNightwatchConfigs=(_0x13b704,_0x3f6e71)=>{const _0x14da6b=a33_0x31b063,_0x29ed15={'yUblD':'nightwatch.conf.js','FRuHQ':_0x14da6b(0x1c5),'cTaFF':function(_0x50f708,_0x125df8){return _0x50f708(_0x125df8);},'iygTQ':_0x14da6b(0x1ca)};let _0x421610=null,_0x254e81={};const _0x4d06c2=_0x3f6e71['findIndex'](_0x47d28c=>_0x47d28c===_0x14da6b(0x195));if(!helper['isUndefined'](_0x13b704[_0x14da6b(0x1c9)])&&fs['existsSync'](path[_0x14da6b(0x1ba)](process['cwd'](),_0x13b704['config'])))_0x421610=path[_0x14da6b(0x1ba)](process[_0x14da6b(0x181)](),_0x13b704[_0x14da6b(0x1c9)]),_0x3f6e71[_0x14da6b(0x18f)](_0x4d06c2,0x2);else{if(fs['existsSync'](path[_0x14da6b(0x1ba)](process['cwd'](),_0x29ed15['yUblD'])))_0x421610=path['join'](process['cwd'](),_0x29ed15[_0x14da6b(0x1af)]);else fs[_0x14da6b(0x180)](path[_0x14da6b(0x1ba)](process[_0x14da6b(0x181)](),_0x29ed15[_0x14da6b(0x1d0)]))&&(_0x421610=path[_0x14da6b(0x1ba)](process[_0x14da6b(0x181)](),_0x29ed15[_0x14da6b(0x1d0)]));}return _0x421610?(logger[_0x14da6b(0x192)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x421610),_0x254e81=_0x29ed15[_0x14da6b(0x1a0)](require,_0x421610)):logger[_0x14da6b(0x192)](_0x29ed15[_0x14da6b(0x1a4)]),_0x254e81;},removeExistingEnvs=_0x5bb428=>{const _0x14411d=a33_0x31b063,_0x2f706d={};_0x2f706d[_0x14411d(0x1bb)]=function(_0x362f5e,_0x27f875){return _0x362f5e>_0x27f875;};const _0xc2d78=_0x2f706d;let _0x3c7c7b=_0x5bb428[_0x14411d(0x1b6)](_0x17f20c=>_0x17f20c===_0x14411d(0x1b2));_0xc2d78[_0x14411d(0x1bb)](_0x3c7c7b,-0x1)&&_0x5bb428['splice'](_0x3c7c7b,0x2),_0x3c7c7b=_0x5bb428['findIndex'](_0x4b9d7a=>_0x4b9d7a==='-e'),_0xc2d78[_0x14411d(0x1bb)](_0x3c7c7b,-0x1)&&_0x5bb428[_0x14411d(0x18f)](_0x3c7c7b,0x2);};function run(_0x30daf3,_0x5bdb5d){const _0x54c880=a33_0x31b063,_0x4341a6={'ojtar':_0x54c880(0x194),'zMhln':function(_0x9b92dc,_0x683b02){return _0x9b92dc+_0x683b02;},'qFBRh':_0x54c880(0x1c6),'oVfDa':function(_0x5540b7,_0x514057,_0x333380){return _0x5540b7(_0x514057,_0x333380);},'mIvRx':_0x54c880(0x196),'hxMXo':_0x54c880(0x18e),'MZsiX':function(_0x4f1ab5,_0x3c403f){return _0x4f1ab5===_0x3c403f;},'lUVFh':_0x54c880(0x1cf),'cMqQR':function(_0x542492,_0x5a7627){return _0x542492(_0x5a7627);},'uGqdU':function(_0x190005,_0x4ba02d,_0x14dd9f,_0x279362){return _0x190005(_0x4ba02d,_0x14dd9f,_0x279362);},'JwtMh':_0x54c880(0x1ab),'giVsc':_0x54c880(0x195),'qGPTm':_0x54c880(0x1b2),'KcEAE':_0x54c880(0x184),'mkPpQ':_0x54c880(0x17f)},_0x3e8a65=new BrowserStackSetup(_0x30daf3);if(!_0x3e8a65[_0x54c880(0x1c9)])return;const _0x5328ba=_0x4341a6[_0x54c880(0x1c2)](getUserNightwatchConfigs,_0x30daf3,_0x5bdb5d),_0x11b5e2={};_0x11b5e2[_0x54c880(0x187)]=![];const _0x25778c={};_0x25778c[_0x54c880(0x186)]=_0x4341a6['mIvRx'],_0x25778c[_0x54c880(0x1a9)]=0x1bb;const _0x156f53={};_0x156f53[_0x54c880(0x1a1)]=_0x11b5e2,_0x156f53['selenium']=_0x25778c;const _0x5f2a3f=_0x156f53;logger[_0x54c880(0x192)](_0x4341a6[_0x54c880(0x1cb)]);const _0x1e0f03={..._0x5328ba},_0x4da8f0=_0x1e0f03,_0x24d7bd=helper[_0x54c880(0x19d)](_0x3e8a65[_0x54c880(0x1c9)]),_0x5ede15=[];_0x3e8a65[_0x54c880(0x1c9)][_0x54c880(0x183)][_0x54c880(0x182)]((_0x5ec127,_0x339b24)=>{const _0x4263c5=_0x54c880;_0x24d7bd?_0x5ede15[_0x4263c5(0x191)](helper[_0x4263c5(0x18d)](_0x3e8a65['config'],_0x4341a6[_0x4263c5(0x19e)],_0x339b24)):_0x5ede15[_0x4263c5(0x191)](helper[_0x4263c5(0x1c3)](_0x3e8a65[_0x4263c5(0x1c9)],_0x4341a6[_0x4263c5(0x19e)],_0x339b24));});const _0x53cdd5={},_0x2026d9=[];_0x30daf3[_0x54c880(0x19f)]=_0x30daf3[_0x54c880(0x19f)]||_0x30daf3['e'];const _0x57acc1=_0x30daf3[_0x54c880(0x19f)]?_0x30daf3['env']['trim']()[_0x54c880(0x19b)](',')[_0x54c880(0x1ad)](_0x3814d4=>_0x3814d4[_0x54c880(0x1ae)]())[_0x54c880(0x1b3)](_0x56f5c1=>_0x56f5c1!==''):[''];_0x4341a6[_0x54c880(0x1cd)](_0x57acc1[_0x54c880(0x19c)],0x0)&&_0x57acc1[_0x54c880(0x191)]('');_0x57acc1['forEach'](_0x1e6173=>{const _0x46df4f=_0x54c880,_0x48365f={'lwjKV':function(_0x31eed7,_0x386c58){return _0x4341a6['zMhln'](_0x31eed7,_0x386c58);},'VgkMk':_0x4341a6[_0x46df4f(0x1be)]};_0x5ede15[_0x46df4f(0x182)](_0x49aad2=>{const _0x2ce034=_0x46df4f;let _0x5384f6=_0x48365f[_0x2ce034(0x1c4)](helper[_0x2ce034(0x188)](_0x49aad2,'_'),'_'+Date[_0x2ce034(0x1a3)]());_0x1e6173&&(_0x5384f6+='_'+_0x1e6173);if(_0x1e6173&&(!_0x5328ba[_0x48365f['VgkMk']]||!_0x5328ba[_0x48365f['VgkMk']][_0x1e6173]))return;const _0x4fc86f={..._0x5f2a3f};_0x4fc86f[_0x2ce034(0x1a2)]=_0x49aad2;const _0x3f6f57=_0x4fc86f;_0x53cdd5[_0x5384f6]=_0x1e6173?helper[_0x2ce034(0x1b9)](_0x5328ba[_0x48365f['VgkMk']][_0x1e6173],_0x3f6f57):_0x3f6f57,_0x2026d9[_0x2ce034(0x191)](_0x5384f6);});});!_0x4da8f0[_0x54c880(0x1c6)]&&(_0x4da8f0[_0x54c880(0x1c6)]={});_0x4da8f0['test_settings']={..._0x4da8f0['test_settings'],..._0x53cdd5};const _0x92e31e=path[_0x54c880(0x1ba)](__dirname,_0x4341a6[_0x54c880(0x1a5)]);fs[_0x54c880(0x1b4)](_0x92e31e,JSON['stringify'](_0x4da8f0)),_0x4341a6[_0x54c880(0x19a)](removeExistingEnvs,_0x5bdb5d);const _0x1eb124=_0x4341a6[_0x54c880(0x1b1)](spawn,/^win/[_0x54c880(0x1a6)](process[_0x54c880(0x18b)])?_0x4341a6[_0x54c880(0x1bc)]:_0x4341a6[_0x54c880(0x19e)],[_0x4341a6[_0x54c880(0x190)],_0x92e31e,..._0x5bdb5d[_0x54c880(0x1bd)](0x1),_0x4341a6[_0x54c880(0x199)],_0x2026d9[_0x54c880(0x1ba)](',')],{'stdio':_0x4341a6[_0x54c880(0x1a8)]});_0x1eb124['on'](_0x4341a6['mkPpQ'],async _0x1b3d06=>{const _0x1634a2=_0x54c880;logger[_0x1634a2(0x1c0)](_0x1634a2(0x197)+_0x1b3d06),logger[_0x1634a2(0x192)]('Deleting\x20'+_0x92e31e),fs[_0x1634a2(0x198)](_0x92e31e);});}module[a33_0x31b063(0x1cc)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x43c2b5=a34_0x1c92;(function(_0x2a7fa5,_0x204efa){const _0x2fe07c=a34_0x1c92,_0x286dd2=_0x2a7fa5();while(!![]){try{const _0x50954e=-parseInt(_0x2fe07c(0x10f))/0x1*(-parseInt(_0x2fe07c(0xf9))/0x2)+parseInt(_0x2fe07c(0xee))/0x3*(-parseInt(_0x2fe07c(0xd3))/0x4)+-parseInt(_0x2fe07c(0xce))/0x5+parseInt(_0x2fe07c(0x133))/0x6+parseInt(_0x2fe07c(0xd4))/0x7*(-parseInt(_0x2fe07c(0x116))/0x8)+parseInt(_0x2fe07c(0xef))/0x9*(parseInt(_0x2fe07c(0xda))/0xa)+-parseInt(_0x2fe07c(0x135))/0xb;if(_0x50954e===_0x204efa)break;else _0x286dd2['push'](_0x286dd2['shift']());}catch(_0x1d3850){_0x286dd2['push'](_0x286dd2['shift']());}}}(a34_0x38f3,0x66fa2));const util=require('util'),logger=require(a34_0x43c2b5(0xdd))[a34_0x43c2b5(0xe6)],{isAccessibilityAutomationSession}=require(a34_0x43c2b5(0xea)),{isUndefined}=require(a34_0x43c2b5(0xdb)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x43c2b5(0x102));function a34_0x1c92(_0x1f76a9,_0x483ea5){const _0x38f334=a34_0x38f3();return a34_0x1c92=function(_0x1c92cd,_0x3d196f){_0x1c92cd=_0x1c92cd-0xca;let _0x2d47b3=_0x38f334[_0x1c92cd];return _0x2d47b3;},a34_0x1c92(_0x1f76a9,_0x483ea5);}function a34_0x38f3(){const _0x213fa7=['getAccessibilityResultsSummary','pNXCd','dUfcW','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','includeIssueType','winstonLogger','project','PERFORM_SCAN','ErKDA','../../helpers/accessibility-automation/helper','evaluate','error','accessibilityPlatform','3bunNGn','7558983qYFXSk','latest','warn','browser_version','WebDriver','(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','stringify','Playwright','No\x20summaryResults\x20found.','LmiYO','2282SRoEBe','executeAsyncScript','browserStackExecuteDriver','BWdzo','No\x20accessibility\x20results\x20were\x20found.','needsReview','connectOptions','bestPractice','bstackSdkArgs','../../helpers/performance/constants','browserStackEvaluate','constructor','ztHzJ','platformValidation','YTRQj','name','iTmSE','accessibilityOptions.includeIssueType.bestPractice','wcagVersion','FiLSl','command','playwright-chromium','677zBmiqK','VvoJz','performScan','eTVMS','measureWrapper','accessibilityOptions.includeIssueType.needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','104BEUIdC','gCEPh','accessibilityOptions.wcagVersion','accessibilityOptions.authToken','dGINY','use','lHzzk','IpJrK','accessibilityOptions','testInfo','ZoLod','QwBbW','executeScript','jOTxF','AExPQ','browser','setAccessibilityCapabilities','parse','deviceName','ueViN','oIlis','processAccessibilityCaps','OigEz','BS_A11Y_JWT','DZXAz','browserstack.accessibility','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','ZjDNd','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','2206254nviZqr','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','3210922Yzanyf','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','(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','currentTest','fHCyP','chrome','vIXtV','replace','GMPqb','3782225ZQnjCI','wsEndpoint','format','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','1589068ZfABFa','60655gYCvrr','accessibilityOptions.scannerProcessingTimeout','vqBxs','scannerProcessingTimeout','nQtXR','browserName','10xlyGDk','../../helpers/helper','ZTENu','../../helpers/logger','TFQuA','FjewG','debug'];a34_0x38f3=function(){return _0x213fa7;};return a34_0x38f3();}exports[a34_0x43c2b5(0x103)]=async(_0x128c48,_0x7a78e1,_0x28d678={})=>{const _0x3f1a41=a34_0x43c2b5,_0x408ad6={};_0x408ad6[_0x3f1a41(0xe3)]=_0x3f1a41(0x101);const _0x5f4371=_0x408ad6;return await _0x128c48[_0x3f1a41(0xeb)](_0x3f1a41(0xf4)+_0x7a78e1[_0x3f1a41(0xcc)](/arguments/g,_0x5f4371[_0x3f1a41(0xe3)])+_0x3f1a41(0x130)+JSON[_0x3f1a41(0xf5)](_0x28d678)+')');},exports[a34_0x43c2b5(0xfb)]=async(_0x2946b1,_0x32d45b,_0x36bd2e={})=>{const _0x8fba54=a34_0x43c2b5,_0x58368c={};_0x58368c[_0x8fba54(0xcb)]=function(_0x519d9c,_0xb45dec){return _0x519d9c===_0xb45dec;},_0x58368c[_0x8fba54(0x112)]=_0x8fba54(0xf3),_0x58368c[_0x8fba54(0x107)]=_0x8fba54(0xf6),_0x58368c[_0x8fba54(0xde)]=_0x8fba54(0x101);const _0x56d257=_0x58368c;if(_0x56d257[_0x8fba54(0xcb)](_0x2946b1[_0x8fba54(0x104)][_0x8fba54(0x108)],_0x56d257['eTVMS']))return await _0x2946b1[_0x8fba54(0xfa)](_0x32d45b,_0x36bd2e);else{if(_0x56d257[_0x8fba54(0xcb)](_0x2946b1[_0x8fba54(0x104)][_0x8fba54(0x108)],_0x56d257[_0x8fba54(0x107)]))return await _0x2946b1[_0x8fba54(0x122)](_0x8fba54(0x137)+_0x32d45b[_0x8fba54(0xcc)](/arguments/g,_0x56d257['TFQuA'])+_0x8fba54(0x136)+JSON[_0x8fba54(0xf5)](_0x36bd2e)+')');}},exports[a34_0x43c2b5(0x126)]=async _0x2a5d74=>{const _0x5d3899=a34_0x43c2b5,_0xd08387={};_0xd08387[_0x5d3899(0x109)]=_0x5d3899(0x118),_0xd08387['AExPQ']=_0x5d3899(0xd5),_0xd08387[_0x5d3899(0x12e)]=_0x5d3899(0x10a),_0xd08387[_0x5d3899(0x12c)]=_0x5d3899(0x114),_0xd08387[_0x5d3899(0xe2)]=_0x5d3899(0x119),_0xd08387[_0x5d3899(0x117)]='accessibilityOptions.scannerVersion';const _0x2c23ec=_0xd08387;_0x2a5d74[_0x5d3899(0x11e)]&&(_0x2a5d74[_0x5d3899(0x11e)]['wcagVersion']&&(_0x2a5d74[_0x2c23ec[_0x5d3899(0x109)]]=_0x2a5d74['accessibilityOptions'][_0x5d3899(0x10b)]),_0x2a5d74['accessibilityOptions'][_0x5d3899(0xd7)]&&(_0x2a5d74[_0x2c23ec[_0x5d3899(0x124)]]=_0x2a5d74[_0x5d3899(0x11e)][_0x5d3899(0xd7)]),_0x2a5d74[_0x5d3899(0x11e)][_0x5d3899(0xe5)]&&(_0x2a5d74[_0x2c23ec['DZXAz']]=_0x2a5d74[_0x5d3899(0x11e)][_0x5d3899(0xe5)][_0x5d3899(0x100)],_0x2a5d74[_0x2c23ec[_0x5d3899(0x12c)]]=_0x2a5d74[_0x5d3899(0x11e)][_0x5d3899(0xe5)][_0x5d3899(0xfe)]));const _0xb448c8=JSON[_0x5d3899(0x127)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])['scannerVersion'];_0x2a5d74[_0x2c23ec[_0x5d3899(0xe2)]]=process['env'][_0x5d3899(0x12d)],_0x2a5d74[_0x2c23ec[_0x5d3899(0x117)]]=_0xb448c8,delete _0x2a5d74[_0x5d3899(0x11e)];},exports['getAccessibilityResults']=async _0x41859c=>{const _0x4c806f=a34_0x43c2b5,_0x3e6367={};_0x3e6367[_0x4c806f(0x10c)]=_0x4c806f(0xfd),_0x3e6367[_0x4c806f(0x139)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x516c55=_0x3e6367;if(global[_0x4c806f(0xed)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x41859c,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x41859c,scripts.getResults);})();return res;}catch{return logger[_0x4c806f(0xec)](_0x516c55[_0x4c806f(0x10c)]),[];}else return logger[_0x4c806f(0xf1)](_0x516c55[_0x4c806f(0x139)]),[];},exports['performScan']=async(_0x583fe3,_0x2f9acf='')=>{const _0x12a52f=a34_0x43c2b5;if(global[_0x12a52f(0xed)])return await PerformanceTester[_0x12a52f(0x113)](PerformanceA11yEvents[_0x12a52f(0xe8)],async()=>{const _0x1877a7=_0x12a52f,_0x4622d7={};_0x4622d7[_0x1877a7(0x10d)]=_0x2f9acf,await exports[_0x1877a7(0x103)](_0x583fe3,scripts[_0x1877a7(0x111)],_0x4622d7);},{'command':_0x2f9acf})();},exports[a34_0x43c2b5(0xe1)]=async _0x36c55c=>{const _0x72812e=a34_0x43c2b5,_0x2eb40e={};_0x2eb40e['vqBxs']=_0x72812e(0xf7),_0x2eb40e[_0x72812e(0x11a)]=_0x72812e(0xe4);const _0x4a3509=_0x2eb40e;if(global['accessibilityPlatform'])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x36c55c,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x36c55c,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x72812e(0xe0)](_0x4a3509[_0x72812e(0xd6)]),{};}else return logger[_0x72812e(0xf1)](_0x4a3509[_0x72812e(0x11a)]),{};},exports[a34_0x43c2b5(0x106)]=async _0x408973=>{const _0x525be9=a34_0x43c2b5,_0x263bda={'VvoJz':function(_0x49440d,_0x38fef8){return _0x49440d!==_0x38fef8;},'GMPqb':_0x525be9(0xd2),'ueViN':function(_0x4cef71,_0x350535){return _0x4cef71===_0x350535;},'ZjDNd':'chrome','GWQut':_0x525be9(0x10e),'FjewG':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','ZTENu':function(_0x146ca6,_0x2fde74){return _0x146ca6(_0x2fde74);},'XKrEo':function(_0x168ba4,_0x357f40){return _0x168ba4===_0x357f40;},'IpJrK':_0x525be9(0xf0),'jOTxF':function(_0x3bc62b,_0x30a720){return _0x3bc62b>_0x30a720;},'oIlis':_0x525be9(0x115)};try{if(!_0x263bda[_0x525be9(0x110)](_0x408973[_0x525be9(0x128)],''))return logger[_0x525be9(0xf1)](_0x263bda[_0x525be9(0xcd)]),![];const _0x27ebad=_0x408973[_0x525be9(0x125)];if(!(_0x263bda[_0x525be9(0x129)](_0x27ebad,_0x263bda[_0x525be9(0x131)])||_0x263bda['ueViN'](_0x27ebad,_0x263bda['GWQut'])))return logger['warn'](_0x263bda[_0x525be9(0xdf)]),![];const _0x539ec9=_0x263bda[_0x525be9(0xdc)](parseInt,_0x408973[_0x525be9(0xf2)]);if(!(_0x263bda['XKrEo'](_0x539ec9,_0x263bda[_0x525be9(0x11d)])||_0x263bda[_0x525be9(0x123)](_0x539ec9,0x5e)))return logger[_0x525be9(0xf1)](_0x263bda[_0x525be9(0x12a)]),![];}catch(_0x253b10){logger['debug'](_0x525be9(0xd1)+util[_0x525be9(0xd0)](_0x253b10));}return!![];},exports[a34_0x43c2b5(0x12b)]=(_0x4b8740,_0x268884,_0x474643)=>{const _0x2508f2=a34_0x43c2b5,_0x2a1c74={'BWdzo':function(_0x4814d5){return _0x4814d5();},'ztHzJ':_0x2508f2(0x12f),'HUNoJ':function(_0x2b7bd9,_0x34410c){return _0x2b7bd9===_0x34410c;},'rpoDk':_0x2508f2(0xca),'qNdUn':'playwright-chromium','AmuhY':_0x2508f2(0x134),'LmiYO':function(_0x16c046,_0x42e3b0){return _0x16c046===_0x42e3b0;},'BrDWq':_0x2508f2(0xf0),'ZoLod':function(_0xe7c932,_0x5ceb96){return _0xe7c932>_0x5ceb96;},'QwBbW':_0x2508f2(0x115),'lHzzk':function(_0x58007f,_0x1c4991){return _0x58007f(_0x1c4991);},'nQtXR':_0x2508f2(0xd2),'ErKDA':function(_0x2d2bd6,_0x55609c){return _0x2d2bd6+_0x55609c;}};try{if(_0x2a1c74[_0x2508f2(0xfc)](isAccessibilityAutomationSession)){global[_0x2508f2(0xed)]=!![];!_0x4b8740[_0x2a1c74[_0x2508f2(0x105)]]&&(global['accessibilityPlatform']=![]);!(_0x2a1c74['HUNoJ'](_0x4b8740[_0x2508f2(0xd9)],_0x2a1c74['rpoDk'])||_0x2a1c74['HUNoJ'](_0x4b8740[_0x2508f2(0xd9)],_0x2a1c74['qNdUn']))&&(logger[_0x2508f2(0xf1)](_0x2a1c74['AmuhY']),global['accessibilityPlatform']=![]);!(_0x2a1c74[_0x2508f2(0xf8)](_0x4b8740[_0x2508f2(0xf2)],_0x2a1c74['BrDWq'])||_0x2a1c74[_0x2508f2(0x120)](_0x4b8740[_0x2508f2(0xf2)],0x5e))&&(logger[_0x2508f2(0xf1)](_0x2a1c74[_0x2508f2(0x121)]),global[_0x2508f2(0xed)]=![]);!_0x2a1c74[_0x2508f2(0x11c)](isUndefined,_0x4b8740[_0x2508f2(0x128)])&&(logger[_0x2508f2(0xf1)](_0x2a1c74[_0x2508f2(0xd8)]),global[_0x2508f2(0xed)]=![]);if(!global['accessibilityPlatform']){_0x4b8740[_0x2a1c74[_0x2508f2(0x105)]]=![];const _0x41e71d=_0x2a1c74[_0x2508f2(0xe9)](_0x268884,_0x2a1c74['lHzzk'](encodeURIComponent,JSON['stringify'](_0x4b8740)));_0x474643&&(_0x474643[_0x2508f2(0x138)][_0x2508f2(0x11f)][_0x2508f2(0xe7)][_0x2508f2(0x11b)][_0x2508f2(0xff)][_0x2508f2(0xcf)]=_0x41e71d,_0x474643['workerInfo'][_0x2508f2(0xe7)][_0x2508f2(0x11b)][_0x2508f2(0xff)][_0x2508f2(0xcf)]=_0x41e71d);}}}catch(_0x499fea){logger[_0x2508f2(0xe0)](_0x2508f2(0x132)+util[_0x2508f2(0xd0)](_0x499fea));}};
|
|
1
|
+
const a34_0x3599c2=a34_0x3ef5;(function(_0x38eb51,_0x8a288c){const _0x2f4585=a34_0x3ef5,_0x112bae=_0x38eb51();while(!![]){try{const _0x45d333=parseInt(_0x2f4585(0x174))/0x1+-parseInt(_0x2f4585(0x150))/0x2*(-parseInt(_0x2f4585(0x144))/0x3)+parseInt(_0x2f4585(0x134))/0x4+parseInt(_0x2f4585(0x195))/0x5+parseInt(_0x2f4585(0x15d))/0x6*(-parseInt(_0x2f4585(0x152))/0x7)+-parseInt(_0x2f4585(0x16f))/0x8+-parseInt(_0x2f4585(0x181))/0x9*(parseInt(_0x2f4585(0x14e))/0xa);if(_0x45d333===_0x8a288c)break;else _0x112bae['push'](_0x112bae['shift']());}catch(_0x4a675d){_0x112bae['push'](_0x112bae['shift']());}}}(a34_0x574e,0x4ce83));function a34_0x3ef5(_0x17f916,_0x450349){const _0x574e15=a34_0x574e();return a34_0x3ef5=function(_0x3ef5e3,_0x4a5cd9){_0x3ef5e3=_0x3ef5e3-0x134;let _0x98c34=_0x574e15[_0x3ef5e3];return _0x98c34;},a34_0x3ef5(_0x17f916,_0x450349);}function a34_0x574e(){const _0x235551=['connectOptions','constructor','browser_version','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','298352FLTcpE','PmIgy','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','executeScript','jIgLl','testInfo','jVPAN','ygelm','winstonLogger','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','bestPractice','../../helpers/accessibility-automation/helper','wcagVersion','9KjdtKF','getAccessibilityResults','includeIssueType','processAccessibilityCaps','browserName','(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','KmYhV','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','stringify','scannerProcessingTimeout','name','wsEndpoint','accessibilityOptions.authToken','BCJdZ','ygPCf','../../helpers/performance/performance-tester','browserstack.accessibility','browserStackEvaluate','YnEZi','CuOUQ','2095675XqchkR','accessibilityPlatform','format','UPoMx','LpDDO','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','performScan','deviceName','xrJtO','scannerVersion','zOWIK','VbBxf','EjUWe','1706156aaMBDE','env','GteOW','qElIc','bKJRI','LLHML','WebDriver','../../helpers/logger','chrome','BS_A11Y_JWT','accessibilityOptions.scannerProcessingTimeout','Zvmvv','(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','currentTest','error','wBymv','24zXVPRZ','RIwle','Playwright','QDdKx','needsReview','eDSzq','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','playwright-chromium','scPMD','platformValidation','4068380hNinOG','debug','126824vIwBFB','latest','91cIkajy','accessibilityOptions.wcagVersion','replace','project','browserStackExecuteDriver','warn','RZfzd','NaDXh','WhaZX','PxkHv','evaluate','256314XWSxKm','No\x20summaryResults\x20found.','qSyWD','util','zOLFr','accessibilityOptions','measureWrapper','mfDyI','browser','GlSSy','PERFORM_SCAN','accessibilityOptions.includeIssueType.bestPractice','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','use','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','setAccessibilityCapabilities','../../helpers/accessibility-automation/scripts','2993008ePgYmU'];a34_0x574e=function(){return _0x235551;};return a34_0x574e();}const util=require(a34_0x3599c2(0x160)),logger=require(a34_0x3599c2(0x13b))[a34_0x3599c2(0x17c)],{isAccessibilityAutomationSession}=require(a34_0x3599c2(0x17f)),{isUndefined}=require('../../helpers/helper'),scripts=require(a34_0x3599c2(0x16e)),PerformanceTester=require(a34_0x3599c2(0x190)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants');exports[a34_0x3599c2(0x192)]=async(_0xab9de7,_0x4aaba7,_0x9e9799={})=>{const _0x2a03f1=a34_0x3599c2,_0x454913={};_0x454913[_0x2a03f1(0x1a1)]='bstackSdkArgs';const _0x199336=_0x454913;return await _0xab9de7[_0x2a03f1(0x15c)](_0x2a03f1(0x140)+_0x4aaba7[_0x2a03f1(0x154)](/arguments/g,_0x199336[_0x2a03f1(0x1a1)])+_0x2a03f1(0x14a)+JSON[_0x2a03f1(0x189)](_0x9e9799)+')');},exports[a34_0x3599c2(0x156)]=async(_0x570c4f,_0x428e8b,_0x5018f2={})=>{const _0x4074ba=a34_0x3599c2,_0x561383={};_0x561383[_0x4074ba(0x199)]=function(_0xdf263c,_0x21a66f){return _0xdf263c===_0x21a66f;},_0x561383[_0x4074ba(0x18e)]=_0x4074ba(0x13a),_0x561383[_0x4074ba(0x19f)]=_0x4074ba(0x146),_0x561383[_0x4074ba(0x18f)]='bstackSdkArgs';const _0x5a5f0f=_0x561383;if(_0x5a5f0f[_0x4074ba(0x199)](_0x570c4f[_0x4074ba(0x171)]['name'],_0x5a5f0f[_0x4074ba(0x18e)]))return await _0x570c4f['executeAsyncScript'](_0x428e8b,_0x5018f2);else{if(_0x5a5f0f['LpDDO'](_0x570c4f[_0x4074ba(0x171)][_0x4074ba(0x18b)],_0x5a5f0f[_0x4074ba(0x19f)]))return await _0x570c4f[_0x4074ba(0x177)](_0x4074ba(0x186)+_0x428e8b[_0x4074ba(0x154)](/arguments/g,_0x5a5f0f[_0x4074ba(0x18f)])+_0x4074ba(0x188)+JSON[_0x4074ba(0x189)](_0x5018f2)+')');}},exports[a34_0x3599c2(0x16d)]=async _0x343f57=>{const _0x122da7=a34_0x3599c2,_0x50bc39={};_0x50bc39['bKJRI']=_0x122da7(0x153),_0x50bc39['WhaZX']=_0x122da7(0x13e),_0x50bc39['GteOW']=_0x122da7(0x168),_0x50bc39[_0x122da7(0x166)]='accessibilityOptions.includeIssueType.needsReview',_0x50bc39['UPoMx']=_0x122da7(0x18d),_0x50bc39[_0x122da7(0x161)]='accessibilityOptions.scannerVersion';const _0x59873f=_0x50bc39;_0x343f57[_0x122da7(0x162)]&&(_0x343f57[_0x122da7(0x162)][_0x122da7(0x180)]&&(_0x343f57[_0x59873f[_0x122da7(0x138)]]=_0x343f57[_0x122da7(0x162)][_0x122da7(0x180)]),_0x343f57['accessibilityOptions'][_0x122da7(0x18a)]&&(_0x343f57[_0x59873f[_0x122da7(0x15a)]]=_0x343f57[_0x122da7(0x162)][_0x122da7(0x18a)]),_0x343f57[_0x122da7(0x162)][_0x122da7(0x183)]&&(_0x343f57[_0x59873f[_0x122da7(0x136)]]=_0x343f57['accessibilityOptions'][_0x122da7(0x183)][_0x122da7(0x17e)],_0x343f57[_0x59873f[_0x122da7(0x166)]]=_0x343f57[_0x122da7(0x162)]['includeIssueType'][_0x122da7(0x148)]));const _0x172803=JSON['parse'](process[_0x122da7(0x135)][_0x122da7(0x176)])[_0x122da7(0x19e)];_0x343f57[_0x59873f[_0x122da7(0x198)]]=process[_0x122da7(0x135)][_0x122da7(0x13d)],_0x343f57[_0x59873f[_0x122da7(0x161)]]=_0x172803,delete _0x343f57[_0x122da7(0x162)];},exports[a34_0x3599c2(0x182)]=async _0x3c3785=>{const _0x5ba5e6=a34_0x3599c2,_0x39f47b={};_0x39f47b['WmKzH']='No\x20accessibility\x20results\x20were\x20found.',_0x39f47b[_0x5ba5e6(0x194)]=_0x5ba5e6(0x169);const _0x3b6f9e=_0x39f47b;if(global[_0x5ba5e6(0x196)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x3c3785,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x3c3785,scripts.getResults);})();return res;}catch{return logger[_0x5ba5e6(0x142)](_0x3b6f9e['WmKzH']),[];}else return logger[_0x5ba5e6(0x157)](_0x3b6f9e[_0x5ba5e6(0x194)]),[];},exports['performScan']=async(_0x6b844,_0x4d42c0='')=>{const _0x47b6a1=a34_0x3599c2;if(global[_0x47b6a1(0x196)])return await PerformanceTester[_0x47b6a1(0x163)](PerformanceA11yEvents[_0x47b6a1(0x167)],async()=>{const _0x41330b=_0x47b6a1,_0x1acd2d={};_0x1acd2d['command']=_0x4d42c0,await exports[_0x41330b(0x192)](_0x6b844,scripts[_0x41330b(0x19b)],_0x1acd2d);},{'command':_0x4d42c0})();},exports['getAccessibilityResultsSummary']=async _0x3dff4a=>{const _0x3f8850=a34_0x3599c2,_0x1665a9={};_0x1665a9[_0x3f8850(0x19d)]=_0x3f8850(0x15e),_0x1665a9[_0x3f8850(0x143)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x51e1c7=_0x1665a9;if(global['accessibilityPlatform'])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3dff4a,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x3dff4a,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x3f8850(0x14f)](_0x51e1c7[_0x3f8850(0x19d)]),{};}else return logger[_0x3f8850(0x157)](_0x51e1c7[_0x3f8850(0x143)]),{};},exports[a34_0x3599c2(0x14d)]=async _0x1ae9d7=>{const _0x5971d4=a34_0x3599c2,_0x512cc1={'VbBxf':function(_0x4413e6,_0x5c28cd){return _0x4413e6!==_0x5c28cd;},'jIgLl':_0x5971d4(0x16a),'PxkHv':function(_0x27cdaa,_0xe79168){return _0x27cdaa===_0xe79168;},'bdxAn':'chrome','ygelm':_0x5971d4(0x14b),'RZfzd':_0x5971d4(0x173),'KmYhV':function(_0x54e06f,_0x483dfd){return _0x54e06f(_0x483dfd);},'eDSzq':function(_0x1a0100,_0x9a2f85){return _0x1a0100===_0x9a2f85;},'jVPAN':_0x5971d4(0x151),'qElIc':function(_0x376be2,_0x3e6698){return _0x376be2>_0x3e6698;},'scPMD':_0x5971d4(0x19a)};try{if(!_0x512cc1[_0x5971d4(0x1a0)](_0x1ae9d7[_0x5971d4(0x19c)],''))return logger['warn'](_0x512cc1[_0x5971d4(0x178)]),![];const _0x39f335=_0x1ae9d7[_0x5971d4(0x165)];if(!(_0x512cc1[_0x5971d4(0x15b)](_0x39f335,_0x512cc1['bdxAn'])||_0x512cc1[_0x5971d4(0x15b)](_0x39f335,_0x512cc1[_0x5971d4(0x17b)])))return logger['warn'](_0x512cc1[_0x5971d4(0x158)]),![];const _0x41662a=_0x512cc1[_0x5971d4(0x187)](parseInt,_0x1ae9d7[_0x5971d4(0x172)]);if(!(_0x512cc1[_0x5971d4(0x149)](_0x41662a,_0x512cc1[_0x5971d4(0x17a)])||_0x512cc1[_0x5971d4(0x137)](_0x41662a,0x5e)))return logger['warn'](_0x512cc1[_0x5971d4(0x14c)]),![];}catch(_0x21b162){logger['debug'](_0x5971d4(0x16c)+util['format'](_0x21b162));}return!![];},exports[a34_0x3599c2(0x184)]=(_0x73ec4d,_0x371202,_0x304126)=>{const _0x5905c9=a34_0x3599c2,_0x5e040a={'ZalCc':function(_0x53613e){return _0x53613e();},'LLHML':_0x5905c9(0x191),'WMKFn':function(_0x45aaae,_0x2a7187){return _0x45aaae===_0x2a7187;},'mwDLw':_0x5905c9(0x13c),'NaDXh':function(_0x413f13,_0x41e7f6){return _0x413f13===_0x41e7f6;},'YnEZi':_0x5905c9(0x14b),'qSyWD':_0x5905c9(0x173),'tOMQR':function(_0x1d7e32,_0x386e43){return _0x1d7e32===_0x386e43;},'PmIgy':'latest','Afaqn':function(_0x434739,_0x522a02){return _0x434739>_0x522a02;},'mfDyI':_0x5905c9(0x19a),'QDdKx':function(_0x44a9f9,_0x395fae){return _0x44a9f9(_0x395fae);},'Zvmvv':_0x5905c9(0x16a),'RIwle':function(_0x2620c4,_0xe26c2c){return _0x2620c4+_0xe26c2c;}};try{if(_0x5e040a['ZalCc'](isAccessibilityAutomationSession)){global[_0x5905c9(0x196)]=!![];!_0x73ec4d[_0x5e040a['LLHML']]&&(global[_0x5905c9(0x196)]=![]);!(_0x5e040a['WMKFn'](_0x73ec4d[_0x5905c9(0x185)],_0x5e040a['mwDLw'])||_0x5e040a[_0x5905c9(0x159)](_0x73ec4d[_0x5905c9(0x185)],_0x5e040a[_0x5905c9(0x193)]))&&(logger[_0x5905c9(0x157)](_0x5e040a[_0x5905c9(0x15f)]),global['accessibilityPlatform']=![]);!(_0x5e040a['tOMQR'](_0x73ec4d[_0x5905c9(0x172)],_0x5e040a[_0x5905c9(0x175)])||_0x5e040a['Afaqn'](_0x73ec4d[_0x5905c9(0x172)],0x5e))&&(logger[_0x5905c9(0x157)](_0x5e040a[_0x5905c9(0x164)]),global['accessibilityPlatform']=![]);!_0x5e040a[_0x5905c9(0x147)](isUndefined,_0x73ec4d[_0x5905c9(0x19c)])&&(logger[_0x5905c9(0x157)](_0x5e040a[_0x5905c9(0x13f)]),global[_0x5905c9(0x196)]=![]);if(!global[_0x5905c9(0x196)]){_0x73ec4d[_0x5e040a[_0x5905c9(0x139)]]=![];const _0x5e1c7d=_0x5e040a[_0x5905c9(0x145)](_0x371202,_0x5e040a[_0x5905c9(0x147)](encodeURIComponent,JSON[_0x5905c9(0x189)](_0x73ec4d)));_0x304126&&(_0x304126[_0x5905c9(0x141)][_0x5905c9(0x179)][_0x5905c9(0x155)][_0x5905c9(0x16b)][_0x5905c9(0x170)]['wsEndpoint']=_0x5e1c7d,_0x304126['workerInfo'][_0x5905c9(0x155)][_0x5905c9(0x16b)][_0x5905c9(0x170)][_0x5905c9(0x18c)]=_0x5e1c7d);}}}catch(_0x5c2248){logger[_0x5905c9(0x14f)](_0x5905c9(0x17d)+util[_0x5905c9(0x197)](_0x5c2248));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x5a09f1=a35_0x43f1;(function(_0x4961c4,_0x11f848){const _0x51b6e3=a35_0x43f1,_0x521325=_0x4961c4();while(!![]){try{const _0x4e3c68=-parseInt(_0x51b6e3(0x1cf))/0x1+parseInt(_0x51b6e3(0x1e0))/0x2+-parseInt(_0x51b6e3(0x1f4))/0x3+-parseInt(_0x51b6e3(0x1b0))/0x4+-parseInt(_0x51b6e3(0x1a5))/0x5+-parseInt(_0x51b6e3(0x1fb))/0x6+parseInt(_0x51b6e3(0x1d8))/0x7;if(_0x4e3c68===_0x11f848)break;else _0x521325['push'](_0x521325['shift']());}catch(_0x2f74d6){_0x521325['push'](_0x521325['shift']());}}}(a35_0x162d,0x3c905));function a35_0x43f1(_0x34fba9,_0x43afb1){const _0x162d0a=a35_0x162d();return a35_0x43f1=function(_0x43f166,_0x41bfe5){_0x43f166=_0x43f166-0x176;let _0x57ffa4=_0x162d0a[_0x43f166];return _0x57ffa4;},a35_0x43f1(_0x34fba9,_0x43afb1);}const fs=require('fs'),path=require(a35_0x5a09f1(0x18b)),{spawn}=require(a35_0x5a09f1(0x1ee)),{format}=require(a35_0x5a09f1(0x1df)),logger=require(a35_0x5a09f1(0x1d1))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0x5a09f1(0x1ae)),utilities=require('../../helpers/utilities'),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0x5a09f1(0x1ea)),{getConfigLoaderPath}=require(a35_0x5a09f1(0x1ce)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a35_0x5a09f1(0x17b)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a35_0x5a09f1(0x20a)),TestHubHandler=require(a35_0x5a09f1(0x1c9)),PerformanceTester=require(a35_0x5a09f1(0x1e6)),PerformanceEvents=require('../../helpers/performance/constants')['EVENTS'],getUserPlaywrightConfig=async(_0x238234,_0x38af31)=>{const _0x20db2f=a35_0x5a09f1,_0x276953={'SSVVm':function(_0x2d6698){return _0x2d6698();},'lyITF':function(_0x2c663a,_0x5c50b4){return _0x2c663a(_0x5c50b4);},'VNVmq':function(_0x1ec8e6,_0x3fa1d6){return _0x1ec8e6(_0x3fa1d6);},'TJzan':_0x20db2f(0x1e3),'kvftD':_0x20db2f(0x1d9)},_0xf69fcb=!helper[_0x20db2f(0x20d)](_0x238234[_0x20db2f(0x19d)]),_0x484480=_0xf69fcb?path[_0x20db2f(0x205)](process[_0x20db2f(0x192)](),_0x238234['config']):process['cwd'](),{resolveConfigFile:_0x4c6734,resolveConfigLocation:_0x182aa5}=helper['requirePWModule']['apply'](null,_0x276953[_0x20db2f(0x176)](getConfigLoaderPath)),_0x4c43b4=_0x4c6734?_0x276953[_0x20db2f(0x197)](_0x4c6734,_0x484480):helper[_0x20db2f(0x190)](_0x276953[_0x20db2f(0x1e8)](_0x182aa5,_0x484480),[_0x276953['TJzan']]),_0x468c6e={};if(_0xf69fcb){const _0x1f2f08=_0x38af31['findIndex'](_0x1840a4=>_0x1840a4===_0x20db2f(0x1da)||_0x1840a4==='-c'||_0x1840a4[_0x20db2f(0x1d4)](_0x20db2f(0x1d9)));_0x38af31[_0x20db2f(0x1b4)](_0x1f2f08,_0x38af31[_0x1f2f08][_0x20db2f(0x1d4)](_0x276953[_0x20db2f(0x1de)])?0x1:0x2);}const _0x350044={};return _0x350044[_0x20db2f(0x18b)]=_0x4c43b4,_0x350044[_0x20db2f(0x19d)]=_0x468c6e,_0x350044;},handleO11yRerun=_0x56378f=>{const _0x2313bd=a35_0x5a09f1,_0x5d57fd={};_0x5d57fd[_0x2313bd(0x19f)]=_0x2313bd(0x187);const _0x3b40c9=_0x5d57fd,_0x599c79=helper[_0x2313bd(0x1c7)](process[_0x2313bd(0x1a1)][_0x2313bd(0x1a8)]);if(_0x599c79){const _0x4bb3ab=process[_0x2313bd(0x1a1)][_0x2313bd(0x1d2)],_0x4bcca7=[];if(helper['validateRerunTestList'](_0x4bb3ab)&&!helper['isUndefined'](_0x4bb3ab)){_0x4bb3ab[_0x2313bd(0x195)](',')['map'](_0x12df0b=>{_0x4bcca7['push']('('+_0x12df0b['trim']()+')');});const _0x3e3ffa='^'+_0x4bcca7[_0x2313bd(0x182)]('|')+'$';_0x56378f['push'](_0x3b40c9[_0x2313bd(0x19f)],_0x3e3ffa);}}},spawnOriginalProcess=_0x53e264=>{const _0x6691f3=a35_0x5a09f1,_0x33bef6={'DbRiu':function(_0x18024e,_0x1431df,_0x4ede60,_0x189d22){return _0x18024e(_0x1431df,_0x4ede60,_0x189d22);},'zxWDh':'npx','HnuQG':'playwright','vgRAe':function(_0x25e603,_0x53a6ed){return _0x25e603===_0x53a6ed;},'EStnE':'win32','BQYUZ':_0x6691f3(0x177)};_0x33bef6[_0x6691f3(0x1b9)](spawn,_0x33bef6[_0x6691f3(0x1d3)],[_0x33bef6['HnuQG'],..._0x53e264[_0x6691f3(0x18e)](0x1)],{'shell':_0x33bef6[_0x6691f3(0x1ed)](process['platform'],_0x33bef6['EStnE']),'stdio':_0x33bef6[_0x6691f3(0x1fe)],'cwd':process[_0x6691f3(0x192)]()});},isTestCommand=(_0x14dff6,_0x9ce983)=>{const _0x14b98b=a35_0x5a09f1,_0x132571={};_0x132571[_0x14b98b(0x1f1)]=function(_0x492db9,_0x5c34be){return _0x492db9>_0x5c34be;},_0x132571['ZRmyH']=function(_0x1d0dc4,_0x19a553){return _0x1d0dc4===_0x19a553;},_0x132571['aAXoc']='test';const _0x2846b7=_0x132571;if(_0x2846b7[_0x14b98b(0x1f1)](_0x9ce983[_0x14b98b(0x1e2)],0x1)&&_0x2846b7[_0x14b98b(0x201)](_0x9ce983[0x1],_0x2846b7[_0x14b98b(0x1a4)]))return!![];return![];};async function run(_0x2661f4,_0x4641b3){const _0x484f23=a35_0x5a09f1,_0x111961={'udkeF':function(_0x154548,_0x5b3b3a){return _0x154548(_0x5b3b3a);},'kCnvs':_0x484f23(0x1bb),'WvZAY':_0x484f23(0x209),'xKDiX':function(_0x46893a,_0x4a9b65){return _0x46893a+_0x4a9b65;},'CfgcS':_0x484f23(0x1b5),'LrPRm':function(_0x19b252){return _0x19b252();},'vEaUZ':function(_0x5e51b5,_0xc5ba93){return _0x5e51b5+_0xc5ba93;},'WvjTL':_0x484f23(0x20b),'PaduM':_0x484f23(0x1cb),'coRsl':_0x484f23(0x1ad),'Qggzl':function(_0x33a6b1,_0x77a8c9){return _0x33a6b1!=_0x77a8c9;},'DbYYm':function(_0x309271,_0x156cc6,_0x3ac252){return _0x309271(_0x156cc6,_0x3ac252);},'VNqIk':function(_0x223ed9,_0x2414d8){return _0x223ed9(_0x2414d8);},'ZxhzL':function(_0x2a30f2,_0x3ef5e3){return _0x2a30f2===_0x3ef5e3;},'yGOLb':_0x484f23(0x1bf),'zyJgL':function(_0x1b2b99,_0x1c852b){return _0x1b2b99(_0x1c852b);},'OBADM':_0x484f23(0x1ef),'cPIJH':'playwright-browserstack-sdk.config.cjs','Rmswn':'playwright-browserstack-sdk.config.js','JwfMj':function(_0x3b613b,_0x41d8c1){return _0x3b613b-_0x41d8c1;},'gNzeK':'Updated\x20config\x20file\x20name\x20to\x20-\x20','iZLyx':function(_0x537c9e,_0x322cde){return _0x537c9e>_0x322cde;},'mPaKp':function(_0x238881,_0x32c374,_0x2167fe,_0x58ee4a){return _0x238881(_0x32c374,_0x2167fe,_0x58ee4a);},'yQLFZ':'npx','XYIPJ':'playwright','iuksk':'test','pIHjM':_0x484f23(0x1da),'bplDE':function(_0x30672d,_0x182c29){return _0x30672d===_0x182c29;},'wvMfV':_0x484f23(0x186),'sPZCx':_0x484f23(0x177),'ELuTy':'close','bpder':'--disable-browserstack-automation','qpWej':_0x484f23(0x1a0),'hoepV':_0x484f23(0x1be),'pNisF':function(_0x134eea,_0x580600){return _0x134eea>=_0x580600;},'gBLbQ':function(_0x3a0ae0,_0x38ec24){return _0x3a0ae0+_0x38ec24;},'TsiTY':_0x484f23(0x1cd),'jtrLm':function(_0x16746d,_0x1c153e){return _0x16746d(_0x1c153e);}};!helper['isFalse'](process[_0x484f23(0x1a1)][_0x484f23(0x18d)])&&(process[_0x484f23(0x1a1)][_0x484f23(0x18d)]=!![]);process[_0x484f23(0x1dc)][_0x484f23(0x203)](_0x111961['bpder'])&&(process[_0x484f23(0x1a1)]['BROWSERSTACK_AUTOMATION']=_0x111961['qpWej'],_0x4641b3=_0x4641b3['filter'](_0x508e17=>_0x508e17!==_0x484f23(0x1f7)));const _0x2d478a=_0x4641b3[_0x484f23(0x1c6)](_0x111961['hoepV']);_0x111961[_0x484f23(0x1f8)](_0x2d478a,0x0)&&(process[_0x484f23(0x1a1)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x111961[_0x484f23(0x1c1)],_0x4641b3=_0x4641b3[_0x484f23(0x19a)](_0x2961a2=>_0x2961a2!==_0x484f23(0x1be)));try{const _0xed0da2=path[_0x484f23(0x182)](helper[_0x484f23(0x1ec)](),_0x111961[_0x484f23(0x1d0)],_0x111961['WvZAY']);fs[_0x484f23(0x1ff)](_0xed0da2)&&fs['unlinkSync'](_0xed0da2);}catch(_0x2537ab){logger[_0x484f23(0x1a2)](_0x111961['gBLbQ'](_0x111961['TsiTY'],_0x2537ab));}if(!_0x111961['DbYYm'](isTestCommand,_0x2661f4,_0x4641b3)){_0x111961[_0x484f23(0x181)](spawnOriginalProcess,_0x4641b3);return;}const _0x5c1fce=new BrowserStackSetup(_0x2661f4,FRAMEWORKS[_0x484f23(0x1f3)]);await PerformanceTester['measureWrapper'](PerformanceEvents[_0x484f23(0x1e9)],async()=>{const _0x581250=_0x484f23,_0x53399b={'ZXEyj':_0x111961['kCnvs'],'BGiib':function(_0x6a56a3){const _0x1ce799=a35_0x43f1;return _0x111961[_0x1ce799(0x18c)](_0x6a56a3);},'HrNwL':function(_0x51941c,_0x554ff9){const _0x4d05e4=a35_0x43f1;return _0x111961[_0x4d05e4(0x1bc)](_0x51941c,_0x554ff9);},'jZRaF':_0x111961[_0x581250(0x185)]};if(!_0x5c1fce[_0x581250(0x19d)]){logger[_0x581250(0x1a3)](_0x111961['PaduM']);return;}await _0x5c1fce[_0x581250(0x1b8)]();!helper[_0x581250(0x20d)](_0x5c1fce['cliConfig'])&&_0x5c1fce['cliConfig'][_0x581250(0x188)](_0x111961['coRsl'])&&(process[_0x581250(0x1a1)][_0x581250(0x18d)]=_0x5c1fce[_0x581250(0x180)][_0x581250(0x1a6)](_0x111961[_0x581250(0x1af)])||!![]);_0x111961[_0x581250(0x1e7)](_0x5c1fce[_0x581250(0x19d)]['testObservability'],null)&&!helper[_0x581250(0x1c7)](process[_0x581250(0x1a1)][_0x581250(0x200)])&&(process[_0x581250(0x1a1)][_0x581250(0x200)]=process[_0x581250(0x1a1)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x5c1fce[_0x581250(0x19d)][_0x581250(0x1a7)]);const _0x30bb4f=!helper[_0x581250(0x1eb)](process['env'][_0x581250(0x200)]);let _0x25c0dc=![];_0x5c1fce[_0x581250(0x19d)]['accessibility']&&(_0x25c0dc=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x5c1fce[_0x581250(0x19d)]['accessibility']);_0x5c1fce[_0x581250(0x19d)]['accessibilityOptions']&&(process[_0x581250(0x1a1)][_0x581250(0x1fa)]=JSON[_0x581250(0x19b)](_0x5c1fce[_0x581250(0x19d)][_0x581250(0x1e4)]));const _0x11e556=_0x4641b3['concat'](),_0x56cb45=await _0x111961[_0x581250(0x1c0)](getUserPlaywrightConfig,_0x2661f4,_0x4641b3);if(helper[_0x581250(0x20d)](_0x56cb45)){_0x111961['VNqIk'](spawnOriginalProcess,_0x11e556);return;}const _0x4376e2=_0x56cb45['path']?path[_0x581250(0x1db)](_0x56cb45['path']):process['cwd']();process[_0x581250(0x1a1)][_0x581250(0x17e)]=_0x4376e2,await PerformanceTester[_0x581250(0x17f)](PerformanceEvents[_0x581250(0x1a9)],async()=>{const _0x3e69bb=_0x581250;await TestHubHandler[_0x3e69bb(0x1f0)](FRAMEWORKS['PLAYWRIGHT'],_0x5c1fce),_0x30bb4f&&_0x111961['udkeF'](handleO11yRerun,_0x4641b3);})();let _0xa2d16a=_0x111961[_0x581250(0x1f5)](process[_0x581250(0x1a1)][_0x581250(0x1e1)],_0x111961[_0x581250(0x193)]);_0xa2d16a=_0xa2d16a||_0x111961[_0x581250(0x1f9)](checkAccessibilityPlatformConfig,_0x5c1fce['config']),process[_0x581250(0x1a1)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0xa2d16a;_0xa2d16a&&_0x111961[_0x581250(0x207)](setAccessibilityCapabilities,_0x5c1fce['config']);const _0x38f4f0=path['join'](_0x56cb45[_0x581250(0x18b)]?path['dirname'](_0x56cb45[_0x581250(0x18b)]):process['cwd'](),_0x111961['OBADM']);fs[_0x581250(0x1b6)](_0x38f4f0,helper[_0x581250(0x1aa)](_0x5c1fce['config'])),process[_0x581250(0x1a1)][_0x581250(0x1b1)]=_0x38f4f0,helper['clearTempPWConfig']();let _0x2f8fb7='';_0x111961[_0x581250(0x1f5)](helper[_0x581250(0x17a)](),constants['PACKAGE_TYPE'][_0x581250(0x1e5)])?_0x2f8fb7=_0x111961[_0x581250(0x17c)]:_0x2f8fb7=_0x111961[_0x581250(0x178)];let _0x5daf52='';if(helper['isTypescriptProject'](_0x56cb45[_0x581250(0x18b)])){_0x5daf52=_0x581250(0x184);const _0x2f8a92=_0x2f8fb7[_0x581250(0x195)]('.');_0x2f8a92[_0x111961[_0x581250(0x18f)](_0x2f8a92[_0x581250(0x1e2)],0x1)]='ts',_0x2f8fb7=_0x2f8a92[_0x581250(0x182)]('.'),logger[_0x581250(0x1a2)](_0x111961['xKDiX'](_0x111961[_0x581250(0x1ca)],_0x2f8fb7));}else _0x5daf52='\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 _0x2df84e=path['join'](_0x56cb45[_0x581250(0x18b)]?path[_0x581250(0x1db)](_0x56cb45['path']):process[_0x581250(0x192)](),_0x2f8fb7);let _0x268d63=_0x56cb45[_0x581250(0x18b)]?_0x56cb45[_0x581250(0x18b)]:'';_0x268d63=_0x111961['iZLyx'](_0x268d63['length'],0x0)?path[_0x581250(0x205)](_0x268d63):'',process[_0x581250(0x1a1)][_0x581250(0x1bd)]=_0x268d63;const _0x824031=helper[_0x581250(0x1ac)](_0x5c1fce[_0x581250(0x19d)]);_0x824031&&(_0x5daf52=_0x111961[_0x581250(0x1bc)](_0x581250(0x1b2)+_0x824031+_0x581250(0x1d7),_0x5daf52));helper[_0x581250(0x196)]({},_0x4641b3),fs[_0x581250(0x1b6)](_0x2df84e,_0x5daf52),PerformanceTester[_0x581250(0x18a)](PerformanceEvents[_0x581250(0x198)]);const _0x1792bf=_0x111961[_0x581250(0x1c8)](spawn,_0x111961[_0x581250(0x1ab)],[_0x111961[_0x581250(0x1ba)],_0x111961['iuksk'],_0x111961[_0x581250(0x1dd)],_0x2df84e,..._0x4641b3['slice'](0x2)],{'shell':_0x111961[_0x581250(0x1b7)](process[_0x581250(0x19e)],_0x111961[_0x581250(0x1c3)]),'stdio':_0x111961[_0x581250(0x1f2)],'cwd':process[_0x581250(0x192)](),'env':Object[_0x581250(0x194)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x581250(0x202)](_0x2661f4),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x5c1fce[_0x581250(0x19d)][_0x581250(0x191)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x5c1fce['config']['testContextOptions'][_0x581250(0x208)],'BROWSERSTACK_LOG_LEVEL':_0x5c1fce['config'][_0x581250(0x17d)]})}),_0xf754ad=()=>{const _0x30cbc1=_0x581250;try{const _0x30572d=path[_0x30cbc1(0x182)](helper['homedir'](),_0x111961[_0x30cbc1(0x1d0)],_0x111961[_0x30cbc1(0x19c)]);if(fs['existsSync'](_0x30572d)){let _0x5e4590=fs['readFileSync'](_0x30572d);_0x5e4590=JSON[_0x30cbc1(0x1cc)](_0x5e4590),_0x5c1fce[_0x30cbc1(0x199)]=_0x5e4590,fs['unlinkSync'](_0x30572d);}}catch(_0x14c6e4){logger[_0x30cbc1(0x1a2)](_0x111961['xKDiX'](_0x111961[_0x30cbc1(0x1fc)],_0x14c6e4));}};_0x1792bf['on'](_0x111961['ELuTy'],async _0x1e3a87=>{const _0x4154d1=_0x581250;try{PerformanceTester[_0x4154d1(0x189)](PerformanceEvents[_0x4154d1(0x1d5)]),_0x53399b[_0x4154d1(0x1c4)](_0xf754ad),await TestHubHandler['stop'](),TestDetails[_0x4154d1(0x1fd)](),_0x53399b[_0x4154d1(0x1c4)](printBuildLink),await utilities['finalExecution'](_0x5c1fce),process[_0x4154d1(0x20c)]=_0x1e3a87,logger[_0x4154d1(0x1a2)](_0x4154d1(0x183)+_0x1e3a87),logger[_0x4154d1(0x1b3)](_0x4154d1(0x1c2)+_0x2df84e),fs[_0x4154d1(0x204)](_0x2df84e);fs['existsSync'](_0x38f4f0)&&(logger[_0x4154d1(0x1a2)](_0x4154d1(0x1c2)+_0x38f4f0),fs['unlinkSync'](_0x38f4f0));const _0x2a4285=fs[_0x4154d1(0x1f6)](path['join'](helper[_0x4154d1(0x1ec)](),_0x53399b['ZXEyj']))[_0x4154d1(0x19a)](_0xee37fd=>_0xee37fd[_0x4154d1(0x1d4)](_0x4154d1(0x206)));_0x2a4285[_0x4154d1(0x179)](_0x1104a3=>{const _0x16ca24=_0x4154d1;fs['unlinkSync'](path[_0x16ca24(0x182)](helper['homedir'](),_0x53399b['ZXEyj'],_0x1104a3));});}catch(_0x3bb12d){logger[_0x4154d1(0x1a2)](_0x53399b[_0x4154d1(0x1d6)](_0x53399b[_0x4154d1(0x1c5)],_0x3bb12d));}});})();}module['exports']=run;function a35_0x162d(){const _0x384494=['serializeToYamlString','yQLFZ','getProxyUrl','automation','../../helpers/helper','coRsl','718468ZHEqQk','BROWSERSTACK_SETUP_CONFIG_PATH','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','info','splice','Error\x20in\x20getting\x20funnel\x20data\x20results','writeFileSync','bplDE','initialize','DbRiu','XYIPJ','.browserstack','vEaUZ','USER_CONFIG_DETAILS_PATH','--disable-test-observability','true','DbYYm','qpWej','Deleting\x20','wvMfV','BGiib','jZRaF','indexOf','isTrue','mPaKp','../../helpers/testhub/testhubHandler','gNzeK','BrowserStack\x20config\x20file\x20not\x20found.','parse','Error\x20in\x20deleting\x20playwright\x20results','./reporter/pwUtils','27664gqZLOx','kCnvs','../../helpers/logger','BROWSERSTACK_RERUN_TESTS','zxWDh','startsWith','SDK_CLEANUP','HrNwL','\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();','4133591xeeXFE','--config=','--config','dirname','argv','pIHjM','kvftD','util','877062LJKCEB','BROWSERSTACK_TEST_ACCESSIBILITY_YML','length','resolvedConfigFile','accessibilityOptions','MODULE','../../helpers/performance/performance-tester','Qggzl','VNVmq','SDK_PRE_INITIALIZE','../../helpers/test-observability/constants','isFalse','homedir','vgRAe','child_process','browserstackSetupConfig.json','launchBuild','VBXVZ','sPZCx','PLAYWRIGHT','221766UniTuv','ZxhzL','readdirSync','--disable-browserstack-automation','pNisF','VNqIk','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','1631808fYoRGl','CfgcS','shutdown','BQYUZ','existsSync','BROWSERSTACK_TEST_OBSERVABILITY','ZRmyH','getConfigPath','includes','unlinkSync','resolve','trace_','zyJgL','skipSessionName','pw_result.json','./reporter/test-details','Error\x20in\x20closing\x20playwright','exitCode','isUndefined','SSVVm','inherit','Rmswn','forEach','getPackageType','./accessibility-helper','cPIJH','logLevel','BROWSERSTACK_PW_CONFIG_DIR','measureWrapper','cliConfig','jtrLm','join','Playwright\x20process\x20exited\x20with\x20code\x20','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','WvjTL','win32','--grep','has','start','end','path','LrPRm','BROWSERSTACK_AUTOMATION','slice','JwfMj','nestedKeyValue','testContextOptions','cwd','yGOLb','assign','split','filterBrowserstackArgs','lyITF','SDK_SETUP','errorMessage','filter','stringify','WvZAY','config','platform','hsQnq','false','env','debug','error','aAXoc','1139020ARftav','get','testObservability','BROWSERSTACK_RERUN','SDK_POST_INITIALIZE'];a35_0x162d=function(){return _0x384494;};return a35_0x162d();}
|
|
2
|
+
'use strict';const a35_0x54c629=a35_0x49a1;function a35_0x49a1(_0x1abcec,_0x5d0326){const _0x187b97=a35_0x187b();return a35_0x49a1=function(_0x49a172,_0x26972b){_0x49a172=_0x49a172-0xbf;let _0x93ae2e=_0x187b97[_0x49a172];return _0x93ae2e;},a35_0x49a1(_0x1abcec,_0x5d0326);}(function(_0xd3a296,_0x342ef4){const _0x31ac5e=a35_0x49a1,_0x47b6db=_0xd3a296();while(!![]){try{const _0x18946c=-parseInt(_0x31ac5e(0x147))/0x1+-parseInt(_0x31ac5e(0xd3))/0x2+parseInt(_0x31ac5e(0xc8))/0x3+parseInt(_0x31ac5e(0x12c))/0x4*(-parseInt(_0x31ac5e(0x159))/0x5)+-parseInt(_0x31ac5e(0xce))/0x6*(-parseInt(_0x31ac5e(0x139))/0x7)+parseInt(_0x31ac5e(0x146))/0x8+parseInt(_0x31ac5e(0x12d))/0x9*(parseInt(_0x31ac5e(0xf8))/0xa);if(_0x18946c===_0x342ef4)break;else _0x47b6db['push'](_0x47b6db['shift']());}catch(_0x1822ea){_0x47b6db['push'](_0x47b6db['shift']());}}}(a35_0x187b,0x7ca06));const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x54c629(0x118)),{format}=require('util'),logger=require(a35_0x54c629(0x111))[a35_0x54c629(0x153)],{default:BrowserStackSetup}=require(a35_0x54c629(0x148)),helper=require('../../helpers/helper'),utilities=require(a35_0x54c629(0x106)),constants=require(a35_0x54c629(0xfd)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a35_0x54c629(0x119)),{checkAccessibilityPlatformConfig}=require(a35_0x54c629(0xd7)),{setAccessibilityCapabilities}=require(a35_0x54c629(0x115)),{printBuildLink}=require(a35_0x54c629(0x129)),TestDetails=require(a35_0x54c629(0x13b)),TestHubHandler=require(a35_0x54c629(0xbf)),PerformanceTester=require(a35_0x54c629(0x105)),PerformanceEvents=require(a35_0x54c629(0xd2))['EVENTS'],getUserPlaywrightConfig=async(_0x335c46,_0x5db1f5)=>{const _0x506d55=a35_0x54c629,_0x510150={'FLLda':function(_0x331d74){return _0x331d74();},'FTgcg':function(_0x2c3e71,_0x482723){return _0x2c3e71(_0x482723);},'OjHuv':function(_0x499a5e,_0x155bf2){return _0x499a5e(_0x155bf2);},'lKRtR':_0x506d55(0x14e),'EQbHg':_0x506d55(0xc7)},_0x476947=!helper[_0x506d55(0xde)](_0x335c46[_0x506d55(0xc5)]),_0x470a0e=_0x476947?path[_0x506d55(0xe1)](process[_0x506d55(0x113)](),_0x335c46[_0x506d55(0xc5)]):process[_0x506d55(0x113)](),{resolveConfigFile:_0x3952b2,resolveConfigLocation:_0x4c0710}=helper[_0x506d55(0x122)]['apply'](null,_0x510150[_0x506d55(0xd9)](getConfigLoaderPath)),_0xb31921=_0x3952b2?_0x510150[_0x506d55(0x14f)](_0x3952b2,_0x470a0e):helper[_0x506d55(0x12b)](_0x510150[_0x506d55(0xec)](_0x4c0710,_0x470a0e),[_0x510150[_0x506d55(0x13a)]]),_0x5e9839={};if(_0x476947){const _0x3da454=_0x5db1f5[_0x506d55(0xe7)](_0x34aadc=>_0x34aadc===_0x506d55(0x15b)||_0x34aadc==='-c'||_0x34aadc[_0x506d55(0xef)](_0x506d55(0xc7)));_0x5db1f5['splice'](_0x3da454,_0x5db1f5[_0x3da454][_0x506d55(0xef)](_0x510150[_0x506d55(0xcb)])?0x1:0x2);}const _0x6406ba={};return _0x6406ba[_0x506d55(0x136)]=_0xb31921,_0x6406ba[_0x506d55(0xc5)]=_0x5e9839,_0x6406ba;},handleO11yRerun=_0x59dac=>{const _0x39176b=a35_0x54c629,_0x12559e={};_0x12559e[_0x39176b(0x10b)]=_0x39176b(0xc1);const _0x181cab=_0x12559e,_0x3f1132=helper[_0x39176b(0x14c)](process[_0x39176b(0x11c)][_0x39176b(0xfa)]);if(_0x3f1132){const _0x29806d=process[_0x39176b(0x11c)][_0x39176b(0xf4)],_0x3ac435=[];if(helper['validateRerunTestList'](_0x29806d)&&!helper[_0x39176b(0xde)](_0x29806d)){_0x29806d['split'](',')['map'](_0xc360b5=>{const _0x3a9d67=_0x39176b;_0x3ac435['push']('('+_0xc360b5[_0x3a9d67(0x132)]()+')');});const _0x5ac5bb='^'+_0x3ac435[_0x39176b(0xc9)]('|')+'$';_0x59dac['push'](_0x181cab[_0x39176b(0x10b)],_0x5ac5bb);}}},spawnOriginalProcess=_0x2a657d=>{const _0x54dfbf=a35_0x54c629,_0x1a0910={'hOdjh':function(_0x1b5a03,_0x4c9aff,_0x4f94e5,_0x273ad0){return _0x1b5a03(_0x4c9aff,_0x4f94e5,_0x273ad0);},'yQKcJ':_0x54dfbf(0xcf),'MVviq':_0x54dfbf(0x144),'YQXIW':function(_0x3d384a,_0x4597b5){return _0x3d384a===_0x4597b5;},'GfULC':_0x54dfbf(0xfc),'nDSMJ':_0x54dfbf(0x126)};_0x1a0910['hOdjh'](spawn,_0x1a0910[_0x54dfbf(0xcc)],[_0x1a0910['MVviq'],..._0x2a657d[_0x54dfbf(0xf7)](0x1)],{'shell':_0x1a0910['YQXIW'](process[_0x54dfbf(0x124)],_0x1a0910[_0x54dfbf(0x11f)]),'stdio':_0x1a0910[_0x54dfbf(0x157)],'cwd':process[_0x54dfbf(0x113)]()});},isTestCommand=(_0x4b8567,_0x195467)=>{const _0x426937=a35_0x54c629,_0x487b97={};_0x487b97['CYFik']=function(_0x104d9e,_0x5684f7){return _0x104d9e>_0x5684f7;},_0x487b97[_0x426937(0x11e)]=function(_0x2c1f6e,_0xcc0ce9){return _0x2c1f6e===_0xcc0ce9;},_0x487b97[_0x426937(0x11d)]=_0x426937(0xee);const _0x327f44=_0x487b97;if(_0x327f44['CYFik'](_0x195467[_0x426937(0x158)],0x1)&&_0x327f44[_0x426937(0x11e)](_0x195467[0x1],_0x327f44['LAwlV']))return!![];return![];};async function run(_0x2f6699,_0x18347b){const _0x12c887=a35_0x54c629,_0x3c00ef={'LuvNe':function(_0x9b9f29,_0x219e83){return _0x9b9f29(_0x219e83);},'tulXF':_0x12c887(0xf6),'FZnLP':'pw_result.json','cFdPz':function(_0x1d2d02,_0x2f2b67){return _0x1d2d02+_0x2f2b67;},'pFLFO':'Error\x20in\x20getting\x20funnel\x20data\x20results','selTs':function(_0x144402){return _0x144402();},'tcTAG':function(_0x3c8995){return _0x3c8995();},'LlZni':function(_0x483c07,_0x522643){return _0x483c07+_0x522643;},'eGJDD':_0x12c887(0x103),'oHYFb':_0x12c887(0x109),'MFeYH':_0x12c887(0x13d),'gkbFz':function(_0x35fda5,_0x592f4b){return _0x35fda5!=_0x592f4b;},'sftVN':function(_0x4ad933,_0x429cc1,_0x59f0a5){return _0x4ad933(_0x429cc1,_0x59f0a5);},'fvEPV':function(_0x14161a,_0x55f5aa){return _0x14161a(_0x55f5aa);},'njVju':function(_0x32b408,_0x145687){return _0x32b408===_0x145687;},'XMBig':_0x12c887(0xdf),'HTiKY':function(_0x5922aa,_0x3721cb){return _0x5922aa(_0x3721cb);},'goXJO':function(_0x2d95e0,_0x6bcbb4){return _0x2d95e0(_0x6bcbb4);},'JFfmI':'browserstackSetupConfig.json','FxLeh':function(_0x4d18ca,_0xe92c6c){return _0x4d18ca===_0xe92c6c;},'xLCPu':_0x12c887(0x120),'OBxTc':_0x12c887(0x11b),'Urhhs':function(_0x90fd80,_0x2c9667){return _0x90fd80-_0x2c9667;},'Lcrdy':function(_0x5601a5,_0x19f9a0){return _0x5601a5+_0x19f9a0;},'FtGMV':_0x12c887(0x102),'acdjR':function(_0x58230a,_0x11d79e){return _0x58230a>_0x11d79e;},'GPOJq':function(_0x6ee713,_0x5049e0,_0x468ecc,_0x6bcd9c){return _0x6ee713(_0x5049e0,_0x468ecc,_0x6bcd9c);},'zysqo':_0x12c887(0xcf),'TCyPF':_0x12c887(0x144),'gilzb':_0x12c887(0xee),'KjdBO':_0x12c887(0x15b),'FAMUh':_0x12c887(0xfc),'HvdRR':_0x12c887(0x126),'fgxyH':_0x12c887(0xe9),'vSaQd':'--disable-browserstack-automation','vrOyv':_0x12c887(0xe4),'dJhds':'--disable-test-observability','vEorq':function(_0x55fab8,_0x44d1ec){return _0x55fab8>=_0x44d1ec;},'ZQrpR':_0x12c887(0xf5),'gHACf':function(_0x40945f,_0x4c4e87){return _0x40945f(_0x4c4e87);}};!helper[_0x12c887(0x135)](process['env'][_0x12c887(0xd4)])&&(process[_0x12c887(0x11c)][_0x12c887(0xd4)]=!![]);process['argv'][_0x12c887(0xf1)](_0x3c00ef['vSaQd'])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x3c00ef['vrOyv'],_0x18347b=_0x18347b['filter'](_0x488681=>_0x488681!==_0x12c887(0x116)));const _0x97db94=_0x18347b['indexOf'](_0x3c00ef[_0x12c887(0x107)]);_0x3c00ef[_0x12c887(0x156)](_0x97db94,0x0)&&(process[_0x12c887(0x11c)][_0x12c887(0x117)]=_0x3c00ef[_0x12c887(0xe8)],_0x18347b=_0x18347b['filter'](_0x1481da=>_0x1481da!==_0x12c887(0x125)));try{const _0x1ffbb4=path['join'](helper[_0x12c887(0xdc)](),_0x3c00ef[_0x12c887(0x149)],_0x3c00ef[_0x12c887(0x152)]);fs['existsSync'](_0x1ffbb4)&&fs[_0x12c887(0x141)](_0x1ffbb4);}catch(_0x379037){logger[_0x12c887(0xca)](_0x3c00ef['cFdPz'](_0x3c00ef[_0x12c887(0x14d)],_0x379037));}if(!_0x3c00ef[_0x12c887(0x10f)](isTestCommand,_0x2f6699,_0x18347b)){_0x3c00ef[_0x12c887(0xda)](spawnOriginalProcess,_0x18347b);return;}const _0x82c025=new BrowserStackSetup(_0x2f6699,FRAMEWORKS[_0x12c887(0x128)]);await PerformanceTester[_0x12c887(0x123)](PerformanceEvents[_0x12c887(0xe3)],async()=>{const _0xe2be17=_0x12c887;if(!_0x82c025[_0xe2be17(0xc5)]){logger[_0xe2be17(0xd8)](_0x3c00ef['oHYFb']);return;}await _0x82c025[_0xe2be17(0x10c)]();!helper['isUndefined'](_0x82c025[_0xe2be17(0x154)])&&_0x82c025[_0xe2be17(0x154)][_0xe2be17(0xfb)](_0x3c00ef[_0xe2be17(0x112)])&&(process[_0xe2be17(0x11c)][_0xe2be17(0xd4)]=_0x82c025[_0xe2be17(0x154)][_0xe2be17(0x137)](_0x3c00ef[_0xe2be17(0x112)])||!![]);_0x3c00ef['gkbFz'](_0x82c025[_0xe2be17(0xc5)][_0xe2be17(0xc4)],null)&&!helper['isTrue'](process['env'][_0xe2be17(0x117)])&&(process[_0xe2be17(0x11c)][_0xe2be17(0x117)]=process['env'][_0xe2be17(0x117)]||_0x82c025['config']['testObservability']);const _0x5a0d7a=!helper[_0xe2be17(0x135)](process['env'][_0xe2be17(0x117)]);let _0x4da8d6=![];_0x82c025['config']['accessibility']&&(_0x4da8d6=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x82c025[_0xe2be17(0xc5)]['accessibility']);_0x82c025['config']['accessibilityOptions']&&(process[_0xe2be17(0x11c)][_0xe2be17(0xd6)]=JSON[_0xe2be17(0xf3)](_0x82c025[_0xe2be17(0xc5)][_0xe2be17(0x13c)]));const _0x4e3357=_0x18347b[_0xe2be17(0x131)](),_0x3928e3=await _0x3c00ef[_0xe2be17(0x10f)](getUserPlaywrightConfig,_0x2f6699,_0x18347b);if(helper[_0xe2be17(0xde)](_0x3928e3)){_0x3c00ef[_0xe2be17(0x15a)](spawnOriginalProcess,_0x4e3357);return;}const _0x2ba616=_0x3928e3['path']?path[_0xe2be17(0x10e)](_0x3928e3['path']):process[_0xe2be17(0x113)]();process[_0xe2be17(0x11c)][_0xe2be17(0x151)]=_0x2ba616,await PerformanceTester[_0xe2be17(0x123)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x257bbf=_0xe2be17;await TestHubHandler[_0x257bbf(0xf9)](FRAMEWORKS[_0x257bbf(0x128)],_0x82c025),_0x5a0d7a&&_0x3c00ef[_0x257bbf(0xd1)](handleO11yRerun,_0x18347b);})();let _0x2a41d1=_0x3c00ef[_0xe2be17(0x150)](process[_0xe2be17(0x11c)][_0xe2be17(0xff)],_0x3c00ef['XMBig']);_0x2a41d1=_0x2a41d1||_0x3c00ef['HTiKY'](checkAccessibilityPlatformConfig,_0x82c025[_0xe2be17(0xc5)]),process['env'][_0xe2be17(0xff)]=_0x2a41d1;_0x2a41d1&&_0x3c00ef[_0xe2be17(0xe6)](setAccessibilityCapabilities,_0x82c025['config']);const _0x26ab52=path[_0xe2be17(0xc9)](_0x3928e3[_0xe2be17(0x136)]?path[_0xe2be17(0x10e)](_0x3928e3[_0xe2be17(0x136)]):process[_0xe2be17(0x113)](),_0x3c00ef['JFfmI']);fs[_0xe2be17(0xeb)](_0x26ab52,helper[_0xe2be17(0x140)](_0x82c025['config'])),process[_0xe2be17(0x11c)][_0xe2be17(0xc3)]=_0x26ab52,helper[_0xe2be17(0xe5)]();let _0x3801ea='';_0x3c00ef[_0xe2be17(0x13f)](helper[_0xe2be17(0xd0)](),constants[_0xe2be17(0xe0)][_0xe2be17(0xed)])?_0x3801ea=_0x3c00ef[_0xe2be17(0x12f)]:_0x3801ea=_0x3c00ef[_0xe2be17(0x138)];let _0x8d4cff='';if(helper[_0xe2be17(0x142)](_0x3928e3[_0xe2be17(0x136)])){_0x8d4cff=_0xe2be17(0x10d);const _0x3ff95b=_0x3801ea[_0xe2be17(0xcd)]('.');_0x3ff95b[_0x3c00ef[_0xe2be17(0x108)](_0x3ff95b['length'],0x1)]='ts',_0x3801ea=_0x3ff95b[_0xe2be17(0xc9)]('.'),logger['debug'](_0x3c00ef['Lcrdy'](_0x3c00ef['FtGMV'],_0x3801ea));}else _0x8d4cff=_0xe2be17(0xc6);const _0x398235=path[_0xe2be17(0xc9)](_0x3928e3[_0xe2be17(0x136)]?path[_0xe2be17(0x10e)](_0x3928e3['path']):process[_0xe2be17(0x113)](),_0x3801ea);let _0x3e9ca3=_0x3928e3[_0xe2be17(0x136)]?_0x3928e3[_0xe2be17(0x136)]:'';_0x3e9ca3=_0x3c00ef['acdjR'](_0x3e9ca3['length'],0x0)?path[_0xe2be17(0xe1)](_0x3e9ca3):'',process[_0xe2be17(0x11c)][_0xe2be17(0xea)]=_0x3e9ca3;const _0x34cc6d=helper[_0xe2be17(0x134)](_0x82c025[_0xe2be17(0xc5)]);_0x34cc6d&&(_0x8d4cff=_0x3c00ef[_0xe2be17(0xc0)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x34cc6d+_0xe2be17(0xf0),_0x8d4cff));helper[_0xe2be17(0x133)]({},_0x18347b),fs[_0xe2be17(0xeb)](_0x398235,_0x8d4cff),PerformanceTester['end'](PerformanceEvents['SDK_SETUP']);const _0x596e02=_0x3c00ef[_0xe2be17(0xe2)](spawn,_0x3c00ef[_0xe2be17(0x12a)],[_0x3c00ef[_0xe2be17(0x101)],_0x3c00ef['gilzb'],_0x3c00ef['KjdBO'],_0x398235,..._0x18347b[_0xe2be17(0xf7)](0x2)],{'shell':_0x3c00ef[_0xe2be17(0x13f)](process[_0xe2be17(0x124)],_0x3c00ef[_0xe2be17(0x114)]),'stdio':_0x3c00ef[_0xe2be17(0x12e)],'cwd':process[_0xe2be17(0x113)](),'env':Object['assign']({},process[_0xe2be17(0x11c)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0xe2be17(0x127)](_0x2f6699),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x82c025['config'][_0xe2be17(0x130)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x82c025[_0xe2be17(0xc5)][_0xe2be17(0x130)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x82c025['config'][_0xe2be17(0xfe)]})}),_0x13a78b=()=>{const _0x170148=_0xe2be17;try{const _0x258201=path[_0x170148(0xc9)](helper[_0x170148(0xdc)](),_0x3c00ef[_0x170148(0x149)],_0x3c00ef['FZnLP']);if(fs[_0x170148(0xdd)](_0x258201)){let _0x59e4b8=fs[_0x170148(0x13e)](_0x258201);_0x59e4b8=JSON['parse'](_0x59e4b8),_0x82c025['errorMessage']=_0x59e4b8,fs['unlinkSync'](_0x258201);}}catch(_0x5ccd82){logger[_0x170148(0xca)](_0x3c00ef['cFdPz'](_0x3c00ef[_0x170148(0xd5)],_0x5ccd82));}};_0x596e02['on'](_0x3c00ef[_0xe2be17(0x10a)],async _0x5b29a6=>{const _0x3bb12b=_0xe2be17,_0x29adf5={};_0x29adf5[_0x3bb12b(0xf2)]=_0x3c00ef['tulXF'];const _0x26d5ef=_0x29adf5;try{PerformanceTester['start'](PerformanceEvents[_0x3bb12b(0x11a)]),_0x3c00ef[_0x3bb12b(0x121)](_0x13a78b),await TestHubHandler[_0x3bb12b(0xc2)](),TestDetails[_0x3bb12b(0x104)](),_0x3c00ef[_0x3bb12b(0x145)](printBuildLink),await utilities['finalExecution'](_0x82c025),process[_0x3bb12b(0x14a)]=_0x5b29a6,logger[_0x3bb12b(0xca)](_0x3bb12b(0x155)+_0x5b29a6),logger[_0x3bb12b(0x143)](_0x3bb12b(0xdb)+_0x398235),fs[_0x3bb12b(0x141)](_0x398235);fs[_0x3bb12b(0xdd)](_0x26ab52)&&(logger[_0x3bb12b(0xca)](_0x3bb12b(0xdb)+_0x26ab52),fs[_0x3bb12b(0x141)](_0x26ab52));const _0x44c758=fs[_0x3bb12b(0x14b)](path['join'](helper['homedir'](),_0x3c00ef[_0x3bb12b(0x149)]))['filter'](_0x5d39a3=>_0x5d39a3[_0x3bb12b(0xef)](_0x3bb12b(0x100)));_0x44c758[_0x3bb12b(0x110)](_0x3fca5a=>{const _0x85e8a1=_0x3bb12b;fs[_0x85e8a1(0x141)](path[_0x85e8a1(0xc9)](helper[_0x85e8a1(0xdc)](),_0x26d5ef[_0x85e8a1(0xf2)],_0x3fca5a));});}catch(_0x5070be){logger['debug'](_0x3c00ef[_0x3bb12b(0xc0)](_0x3c00ef['eGJDD'],_0x5070be));}});})();}module['exports']=run;function a35_0x187b(){const _0x38c758=['debug','EQbHg','yQKcJ','split','4406052bYLjnr','npx','getPackageType','LuvNe','../../helpers/performance/constants','1122714EuZleD','BROWSERSTACK_AUTOMATION','pFLFO','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','../../helpers/accessibility-automation/helper','error','FLLda','gHACf','Deleting\x20','homedir','existsSync','isUndefined','true','PACKAGE_TYPE','resolve','GPOJq','SDK_PRE_INITIALIZE','false','clearTempPWConfig','goXJO','findIndex','vrOyv','close','USER_CONFIG_DETAILS_PATH','writeFileSync','OjHuv','MODULE','test','startsWith','\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();','includes','YwHkb','stringify','BROWSERSTACK_RERUN_TESTS','Error\x20in\x20deleting\x20playwright\x20results','.browserstack','slice','30fMxVjj','launchBuild','BROWSERSTACK_RERUN','has','win32','../utils/constants','logLevel','BROWSERSTACK_TEST_ACCESSIBILITY_YML','trace_','TCyPF','Updated\x20config\x20file\x20name\x20to\x20-\x20','Error\x20in\x20closing\x20playwright','shutdown','../../helpers/performance/performance-tester','../../helpers/utilities','dJhds','Urhhs','BrowserStack\x20config\x20file\x20not\x20found.','fgxyH','ByHXT','initialize','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','dirname','sftVN','forEach','../../helpers/logger','MFeYH','cwd','FAMUh','./accessibility-helper','--disable-browserstack-automation','BROWSERSTACK_TEST_OBSERVABILITY','child_process','./reporter/pwUtils','SDK_CLEANUP','playwright-browserstack-sdk.config.js','env','LAwlV','gNILN','GfULC','playwright-browserstack-sdk.config.cjs','selTs','requirePWModule','measureWrapper','platform','--disable-test-observability','inherit','getConfigPath','PLAYWRIGHT','../../helpers/test-observability/utils','zysqo','nestedKeyValue','4rxyndd','1879344VOXXZv','HvdRR','xLCPu','testContextOptions','concat','trim','filterBrowserstackArgs','getProxyUrl','isFalse','path','get','OBxTc','7zmNKVL','lKRtR','./reporter/test-details','accessibilityOptions','automation','readFileSync','FxLeh','serializeToYamlString','unlinkSync','isTypescriptProject','info','playwright','tcTAG','2275280PbXliJ','477781OyCGZp','../../helpers/BrowserStackSetup','tulXF','exitCode','readdirSync','isTrue','ZQrpR','resolvedConfigFile','FTgcg','njVju','BROWSERSTACK_PW_CONFIG_DIR','FZnLP','winstonLogger','cliConfig','Playwright\x20process\x20exited\x20with\x20code\x20','vEorq','nDSMJ','length','4315615sWKAMG','fvEPV','--config','../../helpers/testhub/testhubHandler','LlZni','--grep','stop','BROWSERSTACK_SETUP_CONFIG_PATH','testObservability','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','--config=','2302593AfEIlj','join'];a35_0x187b=function(){return _0x38c758;};return a35_0x187b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x25fac8=a36_0x5257;function a36_0x3713(){const _0x49cee7=['eZTuT','9sFJmjW','function','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','./patches','AksRA','10666464TyTkkE','EBVrv','6XigbnK','env','3CgEFVF','util','1902720wifzsM','12096516kFwJoj','RiKko','debug','36370DhlcZB','1996472lalwRP','Not\x20able\x20to\x20import\x20globalSetup','Running\x20existing\x20global\x20setup','requirePWModule','../../helpers/test-observability/constants','exports','255198PDRTgw','error','EZDIr','8804866QapwXj','\x20is\x20not\x20found','GilSA','PLAYWRIGHT','YUdhR','./reporter/pwUtils','includes','winstonLogger','wzUJD','1.33.0','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','../../helpers/helper','Path\x20','toString','apply','174HHlgXA','../../helpers/logger','kjIUJ','22CceCNI','fork'];a36_0x3713=function(){return _0x49cee7;};return a36_0x3713();}function a36_0x5257(_0x254c5c,_0x2179cf){const _0x371381=a36_0x3713();return a36_0x5257=function(_0x52578f,_0x21d15a){_0x52578f=_0x52578f-0x14b;let _0xf197f=_0x371381[_0x52578f];return _0xf197f;},a36_0x5257(_0x254c5c,_0x2179cf);}(function(_0x58c040,_0x4e8185){const _0x4e8086=a36_0x5257,_0x22e384=_0x58c040();while(!![]){try{const _0x136791=-parseInt(_0x4e8086(0x16f))/0x1*(parseInt(_0x4e8086(0x160))/0x2)+parseInt(_0x4e8086(0x162))/0x3*(parseInt(_0x4e8086(0x169))/0x4)+-parseInt(_0x4e8086(0x168))/0x5*(-parseInt(_0x4e8086(0x152))/0x6)+parseInt(_0x4e8086(0x172))/0x7+-parseInt(_0x4e8086(0x15e))/0x8*(-parseInt(_0x4e8086(0x158))/0x9)+parseInt(_0x4e8086(0x164))/0xa+-parseInt(_0x4e8086(0x155))/0xb*(parseInt(_0x4e8086(0x165))/0xc);if(_0x136791===_0x4e8185)break;else _0x22e384['push'](_0x22e384['shift']());}catch(_0x3d4af0){_0x22e384['push'](_0x22e384['shift']());}}}(a36_0x3713,0xad4aa));const util=require(a36_0x25fac8(0x163)),child_process=require('child_process'),{FRAMEWORKS}=require(a36_0x25fac8(0x16d)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a36_0x25fac8(0x14e)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x25fac8(0x177)),{mockIsWorkerRedundant}=require(a36_0x25fac8(0x15c)),logger=require(a36_0x25fac8(0x153))[a36_0x25fac8(0x179)];module[a36_0x25fac8(0x16e)]=async function(_0x3ed002){const _0x1044e6=a36_0x25fac8,_0x4a8342={'EZDIr':function(_0x2cb408,_0x3c7637){return _0x2cb408(_0x3c7637);},'oruOf':function(_0x51e735){return _0x51e735();},'wOKYf':'./mock-process.js','wzUJD':function(_0x27d737){return _0x27d737();},'YUdhR':_0x1044e6(0x16b),'sHPnz':function(_0x100ff4){return _0x100ff4();},'EBVrv':function(_0x244be3,_0x88597e){return _0x244be3(_0x88597e);},'eZTuT':function(_0x42e662,_0x1b615b){return _0x42e662>=_0x1b615b;},'RiKko':_0x1044e6(0x14c),'GilSA':function(_0x4090f7,_0x3aabe3,_0x494dc3){return _0x4090f7(_0x3aabe3,_0x494dc3);},'MXqRp':function(_0x544da1,_0x26263d){return _0x544da1!==_0x26263d;},'AksRA':_0x1044e6(0x159),'kjIUJ':_0x1044e6(0x16a)},_0x5591fd=child_process[_0x1044e6(0x156)];if(helper['isHandlePWErrorSet']())try{_0x4a8342[_0x1044e6(0x14b)](mockIsWorkerRedundant);}catch(_0x523574){logger[_0x1044e6(0x167)](_0x1044e6(0x15b)+util['format'](_0x523574));}child_process[_0x1044e6(0x156)]=function(){const _0x456267=_0x1044e6;return _0x4a8342[_0x456267(0x171)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x456267(0x178)](_0x4a8342['oruOf'](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x4a8342['wOKYf']):logger[_0x456267(0x170)](_0x456267(0x14f)+_0x4a8342[_0x456267(0x14b)](getForkProcessPath)+_0x456267(0x173)),_0x5591fd[_0x456267(0x151)](null,arguments);};if(process['env'][_0x1044e6(0x15a)]){_0x4a8342[_0x1044e6(0x171)](debug,_0x4a8342[_0x1044e6(0x176)]);try{const {loadGlobalHook:_0x388984}=helper[_0x1044e6(0x16c)][_0x1044e6(0x151)](null,_0x4a8342['sHPnz'](getLoadUtilsPath)),_0x2f616c=_0x4a8342[_0x1044e6(0x15f)](getFrameworkVersion,FRAMEWORKS[_0x1044e6(0x175)]);let _0x290643=_0x3ed002;if(_0x4a8342[_0x1044e6(0x157)](helper['compareVersions'](_0x2f616c,_0x4a8342[_0x1044e6(0x166)]),0x0)){const _0x6d7ff9={};_0x6d7ff9['config']=_0x3ed002,_0x290643=_0x6d7ff9;}const _0x37d975=await _0x4a8342[_0x1044e6(0x174)](_0x388984,_0x290643,process[_0x1044e6(0x161)][_0x1044e6(0x15a)]);if(_0x4a8342['MXqRp'](typeof _0x37d975,_0x4a8342[_0x1044e6(0x15d)]))throw new Error(_0x4a8342[_0x1044e6(0x154)]);return _0x37d975[_0x1044e6(0x151)](null,arguments);}catch(_0x22f908){_0x4a8342['EBVrv'](debug,_0x1044e6(0x14d)+_0x22f908[_0x1044e6(0x150)]());}}};
|