browserstack-node-sdk 1.34.26 → 1.34.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x4c9e18=a29_0x43ca;function a29_0x43ca(_0x375f09,_0x34be0f){const _0x432a72=a29_0x432a();return a29_0x43ca=function(_0x43ca30,_0x511add){_0x43ca30=_0x43ca30-0x154;let _0x3c4dc8=_0x432a72[_0x43ca30];return _0x3c4dc8;},a29_0x43ca(_0x375f09,_0x34be0f);}(function(_0x4029aa,_0x21da56){const _0x574a78=a29_0x43ca,_0x3fa23a=_0x4029aa();while(!![]){try{const _0x185d41=parseInt(_0x574a78(0x186))/0x1+-parseInt(_0x574a78(0x163))/0x2*(-parseInt(_0x574a78(0x15f))/0x3)+-parseInt(_0x574a78(0x1ac))/0x4*(parseInt(_0x574a78(0x157))/0x5)+-parseInt(_0x574a78(0x1b1))/0x6*(parseInt(_0x574a78(0x1c1))/0x7)+parseInt(_0x574a78(0x1af))/0x8*(-parseInt(_0x574a78(0x1a1))/0x9)+parseInt(_0x574a78(0x1ab))/0xa*(parseInt(_0x574a78(0x181))/0xb)+parseInt(_0x574a78(0x16d))/0xc*(-parseInt(_0x574a78(0x17f))/0xd);if(_0x185d41===_0x21da56)break;else _0x3fa23a['push'](_0x3fa23a['shift']());}catch(_0x3187bd){_0x3fa23a['push'](_0x3fa23a['shift']());}}}(a29_0x432a,0x7f793));const logger=require(a29_0x4c9e18(0x1c5))[a29_0x4c9e18(0x1a4)],helper=require(a29_0x4c9e18(0x1bf)),constants=require(a29_0x4c9e18(0x175)),hubAllocator=require(a29_0x4c9e18(0x17d)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x4c9e18(0x19a)),{setAccessibilityCapabilities,setExtension}=require(a29_0x4c9e18(0x16b)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x4c9e18(0x1b6)),globals=require('../../../helpers/globals'),{overrideExecute}=require(a29_0x4c9e18(0x166)),modify=(_0x4aa19b,_0x3ceac9=null,_0x3a4aa6=![])=>{const _0xebf436=a29_0x4c9e18,_0x893a39={'VHPiG':function(_0x178cff,_0x118781){return _0x178cff!==_0x118781;},'pruro':_0xebf436(0x189),'fOTUA':function(_0x597d93,_0x39c709){return _0x597d93+_0x39c709;},'XJNnz':function(_0x211f3f,_0x47aa92){return _0x211f3f+_0x47aa92;},'AfgRU':_0xebf436(0x19e),'UhVzj':'/wd/hub','lRWpQ':_0xebf436(0x1bc),'wvDdp':'chromeOptions','VkDUe':'ms:edgeOptions','XMNow':_0xebf436(0x1c6),'AmlFJ':'moz:firefoxOptions','QMNTp':_0xebf436(0x1a0),'EsRUt':_0xebf436(0x179),'SqyLf':'se:ieOptions','XfwJV':'ieOptions','ryAev':function(_0x54b91c,_0x31d56a){return _0x54b91c===_0x31d56a;},'HkbYx':_0xebf436(0x16a),'TXuFR':'Setting\x20Browserstack\x20capabilities','YzkDd':function(_0x7b3d6a,_0x37206e,_0x64f8b4){return _0x7b3d6a(_0x37206e,_0x64f8b4);},'GbghA':_0xebf436(0x190),'gJfKm':_0xebf436(0x15b),'gIcLi':function(_0x2450f1,_0x2934ef){return _0x2450f1(_0x2934ef);},'EzoAR':'4|0|5|2|3|1','YfBwh':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','hyOfu':_0xebf436(0x171),'WKWes':function(_0x1a45a3){return _0x1a45a3();},'zXgXE':function(_0x43fd8b,_0x5233db){return _0x43fd8b(_0x5233db);},'jRnVa':function(_0x50c4aa,_0x3cc3dc){return _0x50c4aa(_0x3cc3dc);},'BEKdU':function(_0x2f2a7a,_0x38a4e0,_0x458f94){return _0x2f2a7a(_0x38a4e0,_0x458f94);},'jIWNw':function(_0x2c2c6e,_0x461b23){return _0x2c2c6e!==_0x461b23;},'VvPVD':_0xebf436(0x1aa),'pHLRG':_0xebf436(0x168)},_0x59807e=helper['requireHttpClient']();let _0x49d6fb;try{_0x49d6fb=helper[_0xebf436(0x1a7)](),_0x49d6fb[_0xebf436(0x155)]&&(_0x49d6fb[_0xebf436(0x18e)]=_0x49d6fb[_0xebf436(0x155)]);}catch(_0x5d9e3d){return;}if(helper['isBrowserstackInfra']()){const _0x3a49ee={};_0x3a49ee['logLevel']=_0x4aa19b[_0xebf436(0x191)],helper[_0xebf436(0x1c0)](_0x3a49ee,new Map(),new Map()),logger[_0xebf436(0x1be)](_0x893a39[_0xebf436(0x1ba)]),logger[_0xebf436(0x18b)](_0x893a39[_0xebf436(0x19d)]);}class _0x42625b extends _0x59807e['HttpClient']{[_0xebf436(0x16c)](_0x12ef33){const _0xd19b3d=_0xebf436;if(_0x893a39[_0xd19b3d(0x1a5)](_0x12ef33[_0xd19b3d(0x18d)],_0x893a39[_0xd19b3d(0x178)])&&_0x893a39[_0xd19b3d(0x1a5)](global[_0xd19b3d(0x18f)],''))try{global[_0xd19b3d(0x18f)]=_0x893a39['fOTUA'](_0x893a39[_0xd19b3d(0x19f)](_0x893a39['AfgRU'],global[_0xd19b3d(0x18f)]),_0x893a39['UhVzj']),this['options_']=hubAllocator[_0xd19b3d(0x194)](global['newHubUrl']),logger[_0xd19b3d(0x18b)](_0xd19b3d(0x1bd)+global['newHubUrl']),global[_0xd19b3d(0x18f)]='';}catch(_0x3d0189){logger[_0xd19b3d(0x197)](_0x3d0189);}return super['send'](_0x12ef33);}}class _0x239ee2 extends _0x49d6fb[_0xebf436(0x18e)]{[_0xebf436(0x192)](){const _0x21c4b9=_0xebf436;return this[_0x21c4b9(0x15c)]=helper['getHubUrl'](_0x4aa19b),logger[_0x21c4b9(0x18b)]('Hub\x20url\x20set\x20to\x20'+this[_0x21c4b9(0x15c)]),this;}['__setBrowserOptions'](_0x52c281){const _0x52f942=_0xebf436;let _0x5dba0e={};for(const _0x3da2eb in _0x52c281){switch(_0x3da2eb){case _0x893a39[_0x52f942(0x17e)]:case _0x893a39[_0x52f942(0x16f)]:this[_0x52f942(0x17c)]&&(_0x5dba0e=this['chromeOptions_'][_0x52f942(0x1c2)](this['chromeOptions_'][_0x52f942(0x159)])||{},this[_0x52f942(0x17c)]['set'](this['chromeOptions_']['CAPABILITY_KEY'],helper[_0x52f942(0x1a3)](_0x5dba0e,_0x52c281[_0x3da2eb])));break;case _0x893a39['VkDUe']:case _0x893a39[_0x52f942(0x158)]:this['edgeOptions_']&&(_0x5dba0e=this[_0x52f942(0x18c)][_0x52f942(0x1c2)](this[_0x52f942(0x18c)]['CAPABILITY_KEY'])||{},this[_0x52f942(0x18c)][_0x52f942(0x1a6)](this[_0x52f942(0x18c)][_0x52f942(0x159)],helper['mergeDeep'](_0x5dba0e,_0x52c281[_0x3da2eb])));break;case _0x893a39[_0x52f942(0x162)]:case _0x893a39['QMNTp']:this[_0x52f942(0x188)]&&(_0x5dba0e=this[_0x52f942(0x188)][_0x52f942(0x1c2)](this[_0x52f942(0x188)][_0x52f942(0x159)])||{},this[_0x52f942(0x188)][_0x52f942(0x1a6)](this['firefoxOptions_']['CAPABILITY_KEY'],helper['mergeDeep'](_0x5dba0e,_0x52c281[_0x3da2eb])));break;case _0x893a39['EsRUt']:this[_0x52f942(0x19c)]&&(_0x5dba0e=this['safariOptions_']['get'](this[_0x52f942(0x19c)][_0x52f942(0x159)])||{},this['safariOptions_']['set'](this[_0x52f942(0x19c)][_0x52f942(0x159)],helper[_0x52f942(0x1a3)](_0x5dba0e,_0x52c281[_0x3da2eb])));break;case _0x893a39['SqyLf']:case _0x893a39['XfwJV']:this[_0x52f942(0x154)]&&(_0x5dba0e=this[_0x52f942(0x154)]['get'](this['ieOptions_'][_0x52f942(0x159)])||{},this[_0x52f942(0x154)][_0x52f942(0x1a6)](this[_0x52f942(0x154)][_0x52f942(0x159)],helper[_0x52f942(0x1a3)](_0x5dba0e,_0x52c281[_0x3da2eb])));break;}}}['setCapabilities'](){const _0x309300=_0xebf436;return logger['debug'](_0x893a39[_0x309300(0x1a9)]),this[_0x309300(0x15a)](_0x4aa19b[_0x309300(0x1b0)]),Object['keys'](_0x4aa19b['capability'])[_0x309300(0x177)](_0x54ebf7=>{const _0x286654=_0x309300,_0x189341=this[_0x286654(0x1a8)][_0x286654(0x1c2)](_0x54ebf7);_0x893a39[_0x286654(0x176)](typeof _0x189341,_0x893a39[_0x286654(0x185)])?this[_0x286654(0x1a8)][_0x286654(0x1a6)](_0x54ebf7,helper[_0x286654(0x1a3)](_0x189341,_0x4aa19b[_0x286654(0x1b0)][_0x54ebf7])):this[_0x286654(0x1a8)][_0x286654(0x1a6)](_0x54ebf7,_0x4aa19b[_0x286654(0x1b0)][_0x54ebf7]);}),this;}[_0xebf436(0x16e)](){const _0x18e63a=_0xebf436,_0x524d07={'liFtK':_0x893a39[_0x18e63a(0x1c7)],'bScNh':_0x893a39['gJfKm'],'btexS':function(_0x3c57d2,_0x7a24d,_0x444cd1){const _0x16ea85=_0x18e63a;return _0x893a39[_0x16ea85(0x1c4)](_0x3c57d2,_0x7a24d,_0x444cd1);},'mopEp':function(_0x44d84d,_0x4c82af){const _0x337f52=_0x18e63a;return _0x893a39[_0x337f52(0x173)](_0x44d84d,_0x4c82af);},'OaQUl':function(_0x287991,_0x4245f4,_0x38dfa7){return _0x893a39['YzkDd'](_0x287991,_0x4245f4,_0x38dfa7);}};if(helper[_0x18e63a(0x160)]()){const _0x2a20a7=_0x893a39[_0x18e63a(0x187)]['split']('|');let _0x4f931c=0x0;while(!![]){switch(_0x2a20a7[_0x4f931c++]){case'0':this['setServer']();continue;case'1':logger[_0x18e63a(0x18b)](_0x893a39[_0x18e63a(0x15e)]);continue;case'2':if(helper['isPacProxy'](_0x4aa19b['proxySettings'][_0x18e63a(0x182)]))this[_0x18e63a(0x1b2)]=helper[_0x18e63a(0x17b)](_0x4aa19b[_0x18e63a(0x1b9)][_0x18e63a(0x182)]);else _0x4aa19b['proxySettings'][_0x18e63a(0x182)]&&(this[_0x18e63a(0x1b4)]=_0x4aa19b[_0x18e63a(0x1b9)][_0x18e63a(0x182)],logger[_0x18e63a(0x18b)](_0x18e63a(0x15d)+this[_0x18e63a(0x1b4)]));continue;case'3':globals[_0x18e63a(0x196)](_0x893a39[_0x18e63a(0x1ae)])&&(!_0x893a39[_0x18e63a(0x1c4)](setExtension,this,_0x4aa19b)&&globals[_0x18e63a(0x193)](_0x893a39['hyOfu'],![]));continue;case'4':_0x893a39[_0x18e63a(0x1b3)](isAccessibilityAutomationSession)&&_0x893a39[_0x18e63a(0x1bb)](setAccessibilityCapabilities,_0x4aa19b);continue;case'5':this[_0x18e63a(0x156)]();continue;}break;}}const _0x44c16b=super[_0x18e63a(0x16e)]();return _0x44c16b['session_'][_0x18e63a(0x1b5)](_0x39c0bd=>{const _0x486b66=_0x18e63a;try{const _0x2fd76f=_0x39c0bd[_0x486b66(0x1b7)]['get'](_0x524d07[_0x486b66(0x17a)]);_0x2fd76f?(logger[_0x486b66(0x18b)](_0x486b66(0x172)+_0x2fd76f),hubAllocator['updateHubUrl'](_0x2fd76f),helper[_0x486b66(0x174)](_0x2fd76f)):logger[_0x486b66(0x18b)](_0x524d07[_0x486b66(0x180)]);}catch(_0x2c7603){logger['debug']('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x2c7603);}}),_0x44c16b[_0x18e63a(0x183)]=0x0,_0x44c16b[_0x18e63a(0x1b5)]&&_0x44c16b[_0x18e63a(0x1b5)](_0x12c8a0=>{const _0x37f6e0=_0x18e63a,_0x2aaa04={'CpEXG':function(_0x47ead6,_0x50f72a,_0x3818d5){return _0x524d07['btexS'](_0x47ead6,_0x50f72a,_0x3818d5);}};_0x524d07[_0x37f6e0(0x198)](overrideQuit,_0x12c8a0,_0x44c16b),_0x524d07['mopEp'](overrideTakeScreenshot,_0x12c8a0),helper[_0x37f6e0(0x19b)](_0x12c8a0,_0x4aa19b),_0x524d07[_0x37f6e0(0x198)](overrideExecute,_0x12c8a0,_0x4aa19b),_0x12c8a0[_0x37f6e0(0x199)]=async()=>{const _0x2f85ad=_0x37f6e0;return await _0x2aaa04[_0x2f85ad(0x1b8)](getAccessibilityResultsSummary,_0x12c8a0,global);},_0x12c8a0[_0x37f6e0(0x1ad)]=async()=>{const _0x5ab80f=_0x37f6e0;return await _0x2aaa04[_0x5ab80f(0x1b8)](getAccessibilityResults,_0x12c8a0,global);};}),_0x44c16b[_0x18e63a(0x199)]=async()=>{return await _0x524d07['OaQUl'](getAccessibilityResultsSummary,_0x44c16b,global);},_0x44c16b[_0x18e63a(0x1ad)]=async()=>{const _0x18ea45=_0x18e63a;return await _0x893a39[_0x18ea45(0x1c4)](getAccessibilityResults,_0x44c16b,global);},_0x893a39[_0x18e63a(0x1c3)](overrideTakeScreenshot,_0x44c16b),_0x893a39[_0x18e63a(0x1bb)](overrideQuit,_0x44c16b),helper[_0x18e63a(0x19b)](_0x44c16b,_0x4aa19b),_0x893a39[_0x18e63a(0x184)](overrideExecute,_0x44c16b,_0x4aa19b),helper[_0x18e63a(0x167)](global[_0x18e63a(0x1a2)])&&(global[_0x18e63a(0x1a2)]=[]),helper[_0x18e63a(0x167)](global[_0x18e63a(0x170)])&&(global[_0x18e63a(0x170)]=[]),global[_0x18e63a(0x1a2)][_0x18e63a(0x195)](_0x44c16b),global[_0x18e63a(0x164)]=_0x44c16b,_0x893a39['VHPiG'](global[_0x18e63a(0x170)],undefined)&&global[_0x18e63a(0x170)][_0x18e63a(0x195)](_0x44c16b),_0x3ceac9&&helper[_0x18e63a(0x167)](_0x3ceac9[_0x18e63a(0x161)]['__driversArray'])&&(_0x3ceac9[_0x18e63a(0x161)][_0x18e63a(0x1a2)]=[]),_0x3ceac9&&_0x893a39['jIWNw'](_0x3ceac9[_0x18e63a(0x161)][_0x18e63a(0x170)],undefined)&&(_0x3ceac9[_0x18e63a(0x161)][_0x18e63a(0x170)][_0x18e63a(0x195)](_0x44c16b),_0x3ceac9['global'][_0x18e63a(0x1a2)][_0x18e63a(0x195)](_0x44c16b)),_0x44c16b;}}return _0x49d6fb[_0xebf436(0x155)]=_0x49d6fb[_0xebf436(0x18e)],_0x49d6fb[_0xebf436(0x18e)]=_0x239ee2,_0x59807e[_0xebf436(0x18a)]=_0x42625b,_0x49d6fb;};function a29_0x432a(){const _0x2c5d2c=['New\x20hub\x20url\x20set\x20to\x20','info','../../../helpers/helper','setLogLevel','1071959lRTmdG','get','jRnVa','YzkDd','../../../helpers/logger','edgeOptions','GbghA','ieOptions_','originalBuilder','setCapabilities','2805070apvVhg','XMNow','CAPABILITY_KEY','__setBrowserOptions','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','url_','Proxy\x20set\x20to\x20','YfBwh','6iRXMPH','isBrowserstackInfra','global','AmlFJ','737542bmnpNi','__driver','exports','./helpers/patchHelper','isUndefined','Modifying\x20webdriver\x20builder','browserstackAgentObservability','object','../accessibility-automation/helper','send','98220RhsAAf','build','wvDdp','__drivers','isAccessibilityPlatform','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','gIcLi','storeOptimalHubUrl','../../../bin/utils/constants','ryAev','forEach','pruro','safari.options','liFtK','getHttpAgent','chromeOptions_','../../../hubAllocationMethods','lRWpQ','507xObOVy','bScNh','11DTcLqs','proxyUrl','quitCount_','BEKdU','HkbYx','927640ZjAwtx','EzoAR','firefoxOptions_','/session','HttpClient','debug','edgeOptions_','path','Builder','newHubUrl','optimalHubUrl','browserStackLogLevel','setServer','setGlobal','getRequestOptions','push','getGlobal','error','btexS','getAccessibilityResultsSummary','../../../helpers/patchHelpers','overrideGet','safariOptions_','pHLRG','https://','XJNnz','firefoxOptions','1069542qhUgfw','__driversArray','mergeDeep','winstonLogger','VHPiG','set','requireSeleniumWebdriver','capabilities_','TXuFR','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','3154270mtdjTO','4WDYUeQ','getAccessibilityResults','hyOfu','8ejxgqf','capability','18qPXxoW','agent_','WKWes','proxy_','then','../../../helpers/accessibility-automation/helper','caps_','CpEXG','proxySettings','VvPVD','zXgXE','goog:chromeOptions'];a29_0x432a=function(){return _0x2c5d2c;};return a29_0x432a();}module[a29_0x4c9e18(0x165)][a29_0x4c9e18(0x169)]=modify;
|
|
1
|
+
function a29_0x3a87(){const _0x53ef5a=['qwvge','SRmhs','qvvii','build','vFJRV','session_','object','capabilities_','GZGna','Proxy\x20set\x20to\x20','debug','New\x20hub\x20url\x20set\x20to\x20','../../../helpers/patchHelpers','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','__setBrowserOptions','YvIUv','proxySettings','GjtIy','401552HFyNbW','newHubUrl','setLogLevel','edgeOptions_','mKCOg','rOmFx','mergeDeep','__driver','../../../helpers/logger','MJnta','browserStackLogLevel','options_','../../../helpers/helper','edgeOptions','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','sbTRM','../../../bin/utils/constants','chromeOptions_','XVHRS','98398rsEoxA','quitCount_','TGBOj','split','CAPABILITY_KEY','setCapabilities','requireSeleniumWebdriver','then','getAccessibilityResults','updateHubUrl','requireHttpClient','1160756BOYOyd','push','exports','setServer','gyWgd','moz:firefoxOptions','HttpClient','isPacProxy','ONzDK','browserstackAgentObservability','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','isBrowserstackInfra','capability','OOVXa','info','firefoxOptions_','caps_','MhKKv','ECVal','./helpers/patchHelper','Bsvtr','sGidg','DeSiu','/wd/hub','global','Hub\x20url\x20set\x20to\x20','logLevel','getGlobal','getHttpAgent','safariOptions_','optimalHubUrl','FKpbH','../../../helpers/globals','se:ieOptions','set','storeOptimalHubUrl','klVqj','MfXKB','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','kWbLQ','1|5|3|4|2|0','TFavM','vjlhP','FWiFy','mkXgL','1668632vTVbBo','getAccessibilityResultsSummary','loWkF','108eVbHkM','/session','1669060PexBRp','ZijJh','proxy_','originalBuilder','firefoxOptions','goog:chromeOptions','21ovOwjN','mVlAO','winstonLogger','__drivers','ieOptions_','../accessibility-automation/helper','send','ieOptions','../../../hubAllocationMethods','Kglvo','yfOVa','getHubUrl','proxyUrl','getRequestOptions','safari.options','__driversArray','Builder','get','PKerL','url_','chromeOptions','7017291RZBrmN','isUndefined','178283CrEmkx','../../../helpers/accessibility-automation/helper','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND'];a29_0x3a87=function(){return _0x53ef5a;};return a29_0x3a87();}function a29_0x3e1d(_0x1f4ecc,_0x48ae9d){const _0x3a871e=a29_0x3a87();return a29_0x3e1d=function(_0x3e1d6b,_0x4ab2b9){_0x3e1d6b=_0x3e1d6b-0xc2;let _0x5b824a=_0x3a871e[_0x3e1d6b];return _0x5b824a;},a29_0x3e1d(_0x1f4ecc,_0x48ae9d);}const a29_0x139dde=a29_0x3e1d;(function(_0x24dc85,_0x1841e5){const _0x249363=a29_0x3e1d,_0x33cb46=_0x24dc85();while(!![]){try{const _0x5b2c83=-parseInt(_0x249363(0xf3))/0x1+parseInt(_0x249363(0x106))/0x2*(-parseInt(_0x249363(0xc7))/0x3)+parseInt(_0x249363(0x111))/0x4+-parseInt(_0x249363(0x143))/0x5+parseInt(_0x249363(0x141))/0x6*(parseInt(_0x249363(0xde))/0x7)+-parseInt(_0x249363(0x13e))/0x8+parseInt(_0x249363(0xdc))/0x9;if(_0x5b2c83===_0x1841e5)break;else _0x33cb46['push'](_0x33cb46['shift']());}catch(_0x1db870){_0x33cb46['push'](_0x33cb46['shift']());}}}(a29_0x3a87,0x3a97a));const logger=require(a29_0x139dde(0xfb))[a29_0x139dde(0xc9)],helper=require(a29_0x139dde(0xff)),constants=require(a29_0x139dde(0x103)),hubAllocator=require(a29_0x139dde(0xcf)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x139dde(0xed)),{setAccessibilityCapabilities,setExtension}=require(a29_0x139dde(0xcc)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x139dde(0xdf)),globals=require(a29_0x139dde(0x131)),{overrideExecute}=require(a29_0x139dde(0x124)),modify=(_0x1a4e6f,_0x4156fe=null,_0x4e37a1=![])=>{const _0x29b42d=a29_0x139dde,_0x4305c0={'MhKKv':function(_0x1bb117,_0x24c39e){return _0x1bb117!==_0x24c39e;},'qwvge':_0x29b42d(0x142),'loWkF':function(_0x696a25,_0x7b698){return _0x696a25!==_0x7b698;},'mKCOg':function(_0x43e730,_0x13d1aa){return _0x43e730+_0x13d1aa;},'MfXKB':function(_0x541476,_0x4c25cf){return _0x541476+_0x4c25cf;},'rOmFx':'https://','Bsvtr':_0x29b42d(0x128),'mkXgL':_0x29b42d(0xc6),'OOVXa':_0x29b42d(0xdb),'ECVal':'ms:edgeOptions','klVqj':_0x29b42d(0x100),'sbTRM':_0x29b42d(0x116),'TFavM':_0x29b42d(0xc5),'qvvii':_0x29b42d(0xd5),'GZGna':_0x29b42d(0x132),'gyWgd':_0x29b42d(0xce),'yfOVa':function(_0x18f520,_0x457e6d){return _0x18f520===_0x457e6d;},'PKerL':_0x29b42d(0xe7),'zXdqQ':'Setting\x20Browserstack\x20capabilities','YvIUv':_0x29b42d(0x12f),'XVHRS':_0x29b42d(0xe0),'ONzDK':function(_0xfa7d75,_0x26cef2,_0x1715bd){return _0xfa7d75(_0x26cef2,_0x1715bd);},'vjlhP':function(_0x18d6a8,_0x5940e3,_0x479163){return _0x18d6a8(_0x5940e3,_0x479163);},'ZijJh':function(_0x289062,_0x9f0db6,_0x4788b6){return _0x289062(_0x9f0db6,_0x4788b6);},'MJnta':function(_0x32baa1,_0x18172b){return _0x32baa1(_0x18172b);},'sGidg':_0x29b42d(0x139),'CNifu':_0x29b42d(0xee),'TGBOj':function(_0x21c7a0){return _0x21c7a0();},'kWbLQ':'isAccessibilityPlatform','DeSiu':function(_0x46fefb,_0x2eea84){return _0x46fefb!==_0x2eea84;},'GjtIy':function(_0x2def48,_0xa9b831){return _0x2def48!==_0xa9b831;},'SRmhs':_0x29b42d(0x137),'Kglvo':'Modifying\x20webdriver\x20builder'},_0x37a84f=helper[_0x29b42d(0x110)]();let _0xa8e690;try{_0xa8e690=helper[_0x29b42d(0x10c)](),_0xa8e690[_0x29b42d(0xc4)]&&(_0xa8e690[_0x29b42d(0xd7)]=_0xa8e690[_0x29b42d(0xc4)]);}catch(_0x42a3ef){return;}if(helper['isBrowserstackInfra']()){const _0x55d3c6={};_0x55d3c6[_0x29b42d(0x12b)]=_0x1a4e6f[_0x29b42d(0xfd)],helper[_0x29b42d(0xf5)](_0x55d3c6,new Map(),new Map()),logger[_0x29b42d(0x11f)](_0x4305c0[_0x29b42d(0xe2)]),logger[_0x29b42d(0xeb)](_0x4305c0[_0x29b42d(0xd0)]);}class _0x364652 extends _0x37a84f['HttpClient']{[_0x29b42d(0xcd)](_0x188132){const _0x2f64d6=_0x29b42d;if(_0x4305c0[_0x2f64d6(0x122)](_0x188132['path'],_0x4305c0[_0x2f64d6(0xe1)])&&_0x4305c0[_0x2f64d6(0x140)](global[_0x2f64d6(0xf4)],''))try{global[_0x2f64d6(0xf4)]=_0x4305c0[_0x2f64d6(0xf7)](_0x4305c0[_0x2f64d6(0x136)](_0x4305c0[_0x2f64d6(0xf8)],global[_0x2f64d6(0xf4)]),_0x4305c0[_0x2f64d6(0x125)]),this[_0x2f64d6(0xfe)]=hubAllocator[_0x2f64d6(0xd4)](global[_0x2f64d6(0xf4)]),logger[_0x2f64d6(0xeb)](_0x2f64d6(0xec)+global[_0x2f64d6(0xf4)]),global[_0x2f64d6(0xf4)]='';}catch(_0x557822){logger['error'](_0x557822);}return super[_0x2f64d6(0xcd)](_0x188132);}}class _0x26e59d extends _0xa8e690[_0x29b42d(0xd7)]{[_0x29b42d(0x114)](){const _0x2ceed1=_0x29b42d;return this[_0x2ceed1(0xda)]=helper[_0x2ceed1(0xd2)](_0x1a4e6f),logger[_0x2ceed1(0xeb)](_0x2ceed1(0x12a)+this[_0x2ceed1(0xda)]),this;}[_0x29b42d(0xef)](_0x5e7585){const _0x5a9c30=_0x29b42d;let _0xa27349={};for(const _0x473f19 in _0x5e7585){switch(_0x473f19){case _0x4305c0[_0x5a9c30(0x13d)]:case _0x4305c0[_0x5a9c30(0x11e)]:this[_0x5a9c30(0x104)]&&(_0xa27349=this[_0x5a9c30(0x104)]['get'](this['chromeOptions_'][_0x5a9c30(0x10a)])||{},this[_0x5a9c30(0x104)][_0x5a9c30(0x133)](this[_0x5a9c30(0x104)][_0x5a9c30(0x10a)],helper['mergeDeep'](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0x123)]:case _0x4305c0[_0x5a9c30(0x135)]:this[_0x5a9c30(0xf6)]&&(_0xa27349=this[_0x5a9c30(0xf6)][_0x5a9c30(0xd8)](this[_0x5a9c30(0xf6)]['CAPABILITY_KEY'])||{},this[_0x5a9c30(0xf6)][_0x5a9c30(0x133)](this[_0x5a9c30(0xf6)][_0x5a9c30(0x10a)],helper[_0x5a9c30(0xf9)](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0x102)]:case _0x4305c0[_0x5a9c30(0x13a)]:this[_0x5a9c30(0x120)]&&(_0xa27349=this[_0x5a9c30(0x120)][_0x5a9c30(0xd8)](this[_0x5a9c30(0x120)]['CAPABILITY_KEY'])||{},this['firefoxOptions_'][_0x5a9c30(0x133)](this[_0x5a9c30(0x120)][_0x5a9c30(0x10a)],helper[_0x5a9c30(0xf9)](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0xe3)]:this[_0x5a9c30(0x12e)]&&(_0xa27349=this[_0x5a9c30(0x12e)][_0x5a9c30(0xd8)](this[_0x5a9c30(0x12e)][_0x5a9c30(0x10a)])||{},this[_0x5a9c30(0x12e)][_0x5a9c30(0x133)](this[_0x5a9c30(0x12e)][_0x5a9c30(0x10a)],helper['mergeDeep'](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0xe9)]:case _0x4305c0[_0x5a9c30(0x115)]:this[_0x5a9c30(0xcb)]&&(_0xa27349=this[_0x5a9c30(0xcb)][_0x5a9c30(0xd8)](this[_0x5a9c30(0xcb)][_0x5a9c30(0x10a)])||{},this['ieOptions_']['set'](this[_0x5a9c30(0xcb)][_0x5a9c30(0x10a)],helper[_0x5a9c30(0xf9)](_0xa27349,_0x5e7585[_0x473f19])));break;}}}[_0x29b42d(0x10b)](){const _0x36a427=_0x29b42d,_0x39d598={'YOUhw':function(_0x2ea986,_0x258be8){const _0x1db1b2=a29_0x3e1d;return _0x4305c0[_0x1db1b2(0xd1)](_0x2ea986,_0x258be8);},'FWiFy':_0x4305c0[_0x36a427(0xd9)]};return logger[_0x36a427(0xeb)](_0x4305c0['zXdqQ']),this[_0x36a427(0xef)](_0x1a4e6f[_0x36a427(0x11d)]),Object['keys'](_0x1a4e6f[_0x36a427(0x11d)])['forEach'](_0x133307=>{const _0x56050e=_0x36a427,_0x20592f=this[_0x56050e(0xe8)][_0x56050e(0xd8)](_0x133307);_0x39d598['YOUhw'](typeof _0x20592f,_0x39d598[_0x56050e(0x13c)])?this[_0x56050e(0xe8)][_0x56050e(0x133)](_0x133307,helper[_0x56050e(0xf9)](_0x20592f,_0x1a4e6f[_0x56050e(0x11d)][_0x133307])):this[_0x56050e(0xe8)][_0x56050e(0x133)](_0x133307,_0x1a4e6f[_0x56050e(0x11d)][_0x133307]);}),this;}['build'](){const _0x559c4b=_0x29b42d,_0x3b2bd6={'mVlAO':function(_0xfe13cb,_0xe7df23,_0x26dd63){const _0x3e1486=a29_0x3e1d;return _0x4305c0[_0x3e1486(0xc2)](_0xfe13cb,_0xe7df23,_0x26dd63);},'vFJRV':function(_0x38c6c4,_0x145999,_0x7ab89){const _0x141626=a29_0x3e1d;return _0x4305c0[_0x141626(0x13b)](_0x38c6c4,_0x145999,_0x7ab89);},'Tbvqy':function(_0xdbb77a,_0x2c4d4c){const _0x4a7843=a29_0x3e1d;return _0x4305c0[_0x4a7843(0xfc)](_0xdbb77a,_0x2c4d4c);}};if(helper[_0x559c4b(0x11c)]()){const _0x333c09=_0x4305c0[_0x559c4b(0x126)][_0x559c4b(0x109)]('|');let _0xdde3b3=0x0;while(!![]){switch(_0x333c09[_0xdde3b3++]){case'0':logger[_0x559c4b(0xeb)](_0x4305c0['CNifu']);continue;case'1':_0x4305c0[_0x559c4b(0x108)](isAccessibilityAutomationSession)&&_0x4305c0[_0x559c4b(0xfc)](setAccessibilityCapabilities,_0x1a4e6f);continue;case'2':globals[_0x559c4b(0x12c)](_0x4305c0[_0x559c4b(0x138)])&&(!_0x4305c0[_0x559c4b(0x119)](setExtension,this,_0x1a4e6f)&&globals['setGlobal'](_0x4305c0[_0x559c4b(0x138)],![]));continue;case'3':this[_0x559c4b(0x10b)]();continue;case'4':if(helper[_0x559c4b(0x118)](_0x1a4e6f['proxySettings'][_0x559c4b(0xd3)]))this['agent_']=helper[_0x559c4b(0x12d)](_0x1a4e6f[_0x559c4b(0xf1)][_0x559c4b(0xd3)]);else _0x1a4e6f[_0x559c4b(0xf1)][_0x559c4b(0xd3)]&&(this['proxy_']=_0x1a4e6f[_0x559c4b(0xf1)][_0x559c4b(0xd3)],logger['debug'](_0x559c4b(0xea)+this[_0x559c4b(0xc3)]));continue;case'5':this[_0x559c4b(0x114)]();continue;}break;}}const _0x2e3299=super[_0x559c4b(0xe4)]();return _0x2e3299[_0x559c4b(0xe6)]['then'](_0x4ad667=>{const _0x2de6d3=_0x559c4b;try{const _0x260856=_0x4ad667[_0x2de6d3(0x121)]['get'](_0x4305c0[_0x2de6d3(0xf0)]);_0x260856?(logger[_0x2de6d3(0xeb)](_0x2de6d3(0x101)+_0x260856),hubAllocator[_0x2de6d3(0x10f)](_0x260856),helper[_0x2de6d3(0x134)](_0x260856)):logger['debug'](_0x4305c0[_0x2de6d3(0x105)]);}catch(_0x542041){logger['debug'](_0x2de6d3(0x11b)+_0x542041);}}),_0x2e3299[_0x559c4b(0x107)]=0x0,_0x2e3299[_0x559c4b(0x10d)]&&_0x2e3299[_0x559c4b(0x10d)](_0x2ca2e1=>{const _0x36dc64=_0x559c4b,_0x235b01={'FKpbH':function(_0x786bf2,_0x51fae2,_0x368c19){return _0x3b2bd6['vFJRV'](_0x786bf2,_0x51fae2,_0x368c19);}};_0x3b2bd6[_0x36dc64(0xe5)](overrideQuit,_0x2ca2e1,_0x2e3299),_0x3b2bd6['Tbvqy'](overrideTakeScreenshot,_0x2ca2e1),helper['overrideGet'](_0x2ca2e1,_0x1a4e6f),_0x3b2bd6[_0x36dc64(0xe5)](overrideExecute,_0x2ca2e1,_0x1a4e6f),_0x2ca2e1[_0x36dc64(0x13f)]=async()=>{const _0x2624c0=_0x36dc64;return await _0x3b2bd6[_0x2624c0(0xc8)](getAccessibilityResultsSummary,_0x2ca2e1,global);},_0x2ca2e1['getAccessibilityResults']=async()=>{const _0xd7ddc5=_0x36dc64;return await _0x235b01[_0xd7ddc5(0x130)](getAccessibilityResults,_0x2ca2e1,global);};}),_0x2e3299['getAccessibilityResultsSummary']=async()=>{return await _0x4305c0['ONzDK'](getAccessibilityResultsSummary,_0x2e3299,global);},_0x2e3299[_0x559c4b(0x10e)]=async()=>{const _0x5c1a6d=_0x559c4b;return await _0x4305c0[_0x5c1a6d(0x13b)](getAccessibilityResults,_0x2e3299,global);},_0x4305c0[_0x559c4b(0xfc)](overrideTakeScreenshot,_0x2e3299),_0x4305c0[_0x559c4b(0xfc)](overrideQuit,_0x2e3299),helper['overrideGet'](_0x2e3299,_0x1a4e6f),_0x4305c0[_0x559c4b(0x119)](overrideExecute,_0x2e3299,_0x1a4e6f),helper[_0x559c4b(0xdd)](global[_0x559c4b(0xd6)])&&(global['__driversArray']=[]),helper[_0x559c4b(0xdd)](global[_0x559c4b(0xca)])&&(global[_0x559c4b(0xca)]=[]),global['__driversArray'][_0x559c4b(0x112)](_0x2e3299),global[_0x559c4b(0xfa)]=_0x2e3299,_0x4305c0[_0x559c4b(0x127)](global[_0x559c4b(0xca)],undefined)&&global['__drivers'][_0x559c4b(0x112)](_0x2e3299),_0x4156fe&&helper[_0x559c4b(0xdd)](_0x4156fe['global'][_0x559c4b(0xd6)])&&(_0x4156fe[_0x559c4b(0x129)]['__driversArray']=[]),_0x4156fe&&_0x4305c0[_0x559c4b(0xf2)](_0x4156fe[_0x559c4b(0x129)][_0x559c4b(0xca)],undefined)&&(_0x4156fe['global'][_0x559c4b(0xca)][_0x559c4b(0x112)](_0x2e3299),_0x4156fe[_0x559c4b(0x129)][_0x559c4b(0xd6)]['push'](_0x2e3299)),_0x2e3299;}}return _0xa8e690[_0x29b42d(0xc4)]=_0xa8e690[_0x29b42d(0xd7)],_0xa8e690[_0x29b42d(0xd7)]=_0x26e59d,_0x37a84f[_0x29b42d(0x117)]=_0x364652,_0xa8e690;};module[a29_0x139dde(0x113)][a29_0x139dde(0x11a)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x2abde3=a30_0x2abd;(function(_0x8dfc92,_0x217b3f){const _0x35ce21=a30_0x2abd,_0x44ced1=_0x8dfc92();while(!![]){try{const _0x3df7cf=-parseInt(_0x35ce21(0xd7))/0x1+-parseInt(_0x35ce21(0xdb))/0x2+parseInt(_0x35ce21(0xd8))/0x3+parseInt(_0x35ce21(0xd3))/0x4*(parseInt(_0x35ce21(0xd9))/0x5)+parseInt(_0x35ce21(0xdd))/0x6+parseInt(_0x35ce21(0xcf))/0x7*(parseInt(_0x35ce21(0xd4))/0x8)+-parseInt(_0x35ce21(0xd6))/0x9;if(_0x3df7cf===_0x217b3f)break;else _0x44ced1['push'](_0x44ced1['shift']());}catch(_0x3e56c0){_0x44ced1['push'](_0x44ced1['shift']());}}}(a30_0x26b0,0x89e9b));function a30_0x2abd(_0x1ed3fc,_0x14ca3e){const _0x26b0ce=a30_0x26b0();return a30_0x2abd=function(_0x2abd52,_0xd3cf36){_0x2abd52=_0x2abd52-0xcf;let _0x55fe83=_0x26b0ce[_0x2abd52];return _0x55fe83;},a30_0x2abd(_0x1ed3fc,_0x14ca3e);}const requestSpy=require(a30_0x2abde3(0xd2)),constants=require(a30_0x2abde3(0xd1)),{addRequestSpy}=require(a30_0x2abde3(0xda));function a30_0x26b0(){const _0x6f58f7=['../../../helpers/test-observability/utils','466984CkANBG','restore','1996680NyTSEM','7iCdkJQ','oiwOs','../../../bin/utils/constants','../../../helpers/request-spy','8wyBbCc','672024aoFtAR','timeout','10624356BttDgn','219635pQTxZn','3359043EUQMVu','1655095ovtagz'];a30_0x26b0=function(){return _0x6f58f7;};return a30_0x26b0();}exports['mochaHooks']={'beforeAll'(){const _0x4c5448=a30_0x2abde3,_0x4b22db={'oiwOs':function(_0x4f81a6){return _0x4f81a6();}},_0x2ce3cf='browserstack internal helper hook';_0x4b22db[_0x4c5448(0xd0)](addRequestSpy);},'afterAll'(){const _0x36107a=a30_0x2abde3,_0x1e3582='browserstack internal helper hook';this[_0x36107a(0xd5)](0xea60),requestSpy[_0x36107a(0xdc)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x18e40d=a31_0x2059;function a31_0x2059(_0x527f5f,_0x4f2ce5){const _0x3e7d45=a31_0x3e7d();return a31_0x2059=function(_0x205969,_0x31af12){_0x205969=_0x205969-0xc7;let _0x555e44=_0x3e7d45[_0x205969];return _0x555e44;},a31_0x2059(_0x527f5f,_0x4f2ce5);}(function(_0x2f2c8a,_0x52d39c){const _0x5b1207=a31_0x2059,_0x370c53=_0x2f2c8a();while(!![]){try{const _0x2a75b7=-parseInt(_0x5b1207(0xe4))/0x1+parseInt(_0x5b1207(0x114))/0x2+-parseInt(_0x5b1207(0x10b))/0x3+-parseInt(_0x5b1207(0xc9))/0x4+-parseInt(_0x5b1207(0xd4))/0x5+-parseInt(_0x5b1207(0xcc))/0x6*(-parseInt(_0x5b1207(0xf6))/0x7)+-parseInt(_0x5b1207(0xc8))/0x8*(-parseInt(_0x5b1207(0xe1))/0x9);if(_0x2a75b7===_0x52d39c)break;else _0x370c53['push'](_0x370c53['shift']());}catch(_0x3b345c){_0x370c53['push'](_0x370c53['shift']());}}}(a31_0x3e7d,0x436ed));function a31_0x3e7d(){const _0x4f6b51=['80030IzneMe','hCiDJ','8vmimus','2188352hPnoNa','fNtCU','getHookSkippedTests','694770lDTrka','getHooksForTest','../../../helpers/test-observability/utils','lodash','DPkok','uuid','suites','parent','1386710LVqvrx','_beforeAll','emit','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','lTcZG','sendPlatformDetails','_beforeEach','getCapabilities','hookAnalyticsId','bpJHp','getTestEnv','__cloud_provider___','benan','12069279pSIaVR','split','concat','129130ZyUTIp','_afterEach','phtMJ','filter','pending','getHookDetails','getPlatform','TppMd','../../../helpers/helper','state','fromEntries','jSdGA','failed','ouBcQ','forEach','markedStatus','slice','BbGOx','7UPLHEE','fHjCI','push','yRYiu','KJkdO','TEST_PLATFORM','rnnXT','EZXCS','AOKld','Ehdnj','string','tests','../../../helpers/testhub/utils','hook','_afterAll','generic','wMQNq','dLqlj','../../utils/logPatcher','getBrowserName','map_','801228zFzlCg','../../../../package.json','reduce','mapTestHooks','../../../helpers/test-observability/constants','type','cVLPn','ermfT','unknown_grid'];a31_0x3e7d=function(){return _0x4f6b51;};return a31_0x3e7d();}const {v4:uuidv4}=require(a31_0x18e40d(0xd1)),{name,version}=require(a31_0x18e40d(0x10c)),logPatcher=require(a31_0x18e40d(0x108)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x18e40d(0xce)),{consoleHolder}=require(a31_0x18e40d(0x10f)),{getPlatformVersion}=require(a31_0x18e40d(0xec)),{shouldProcessEventForTesthub}=require(a31_0x18e40d(0x102)),{isFunction}=require(a31_0x18e40d(0xcf)),{patchConsoleLogger}=require(a31_0x18e40d(0xce));patchConsoleLogger(),exports[a31_0x18e40d(0xde)]=()=>{const _0x15b729=a31_0x18e40d,_0x7694a4={'bpJHp':_0x15b729(0x105),'TppMd':function(_0x570df9){return _0x570df9();}};return{'ci':_0x7694a4[_0x15b729(0xdd)],'key':_0x7694a4[_0x15b729(0xeb)](uuidv4),'version':version,'collector':'js-'+name};},exports[a31_0x18e40d(0xe9)]=_0x40fa88=>{const _0xd1603=a31_0x18e40d,_0x3ec79c={};_0x3ec79c[_0xd1603(0xc7)]=function(_0x58ed5c,_0x9068ad){return _0x58ed5c!==_0x9068ad;},_0x3ec79c['hLcFz']=_0xd1603(0x100),_0x3ec79c[_0xd1603(0xff)]='hook:',_0x3ec79c[_0xd1603(0xd8)]=_0xd1603(0x103);const _0x8c5214=_0x3ec79c;if(!_0x40fa88||_0x8c5214[_0xd1603(0xc7)](typeof _0x40fa88,_0x8c5214['hLcFz']))return[null,null];if(_0x8c5214[_0xd1603(0xc7)](_0x40fa88['indexOf'](_0x8c5214[_0xd1603(0xff)]),-0x1)){const _0x4681ca=_0x40fa88['split'](_0x8c5214[_0xd1603(0xff)]);return[_0x4681ca[0x0][_0xd1603(0xf4)](0x0,-0x1)['split']('\x22')[0x1],_0x4681ca[0x1]['substring'](0x1)];}else{if(_0x8c5214[_0xd1603(0xc7)](_0x40fa88['indexOf'](_0x8c5214[_0xd1603(0xd8)]),-0x1)){const _0x3819e6=_0x40fa88[_0xd1603(0xe2)](_0x8c5214['lTcZG']);return[_0x3819e6[0x0][_0xd1603(0xf4)](0x0,-0x1)['split']('\x22')[0x1],_0x40fa88];}}return[null,null];},exports[a31_0x18e40d(0xcd)]=_0x163a60=>{const _0x36820c=a31_0x18e40d,_0x3ef57a={'gyxof':function(_0x415aa0,_0x5a8212){return _0x415aa0(_0x5a8212);},'FLkjr':_0x36820c(0xd5),'EuLef':_0x36820c(0x104),'fHjCI':_0x36820c(0xda),'ouBcQ':_0x36820c(0xe5)};if(!_0x163a60||!_0x163a60['parent'])return[];const _0x49bc9b=[];return[_0x3ef57a['FLkjr'],_0x3ef57a['EuLef'],_0x3ef57a[_0x36820c(0xf7)],_0x3ef57a[_0x36820c(0xf1)]][_0x36820c(0xf2)](_0x975589=>{const _0x32a708=_0x36820c,_0x222b29={'LJnJG':function(_0x3b00e9,_0x124cb8){return _0x3ef57a['gyxof'](_0x3b00e9,_0x124cb8);}},_0x102d40=_0x163a60['parent'][_0x975589]||[];_0x102d40[_0x32a708(0xf2)](_0x5010af=>{const _0x702317=_0x32a708;_0x5010af[_0x702317(0xdc)]&&!_0x222b29['LJnJG'](isInternalHook,_0x5010af['fn'])&&_0x49bc9b[_0x702317(0xf8)](_0x5010af[_0x702317(0xdc)]);});}),[..._0x49bc9b,...exports['getHooksForTest'](_0x163a60[_0x36820c(0xd3)])];},exports[a31_0x18e40d(0x10e)]=_0x4e756f=>{const _0x1b4cbe=a31_0x18e40d,_0x416139={'TaKfq':function(_0xc66734){return _0xc66734();},'wMQNq':function(_0x15a4b5,_0x5eca94){return _0x15a4b5===_0x5eca94;},'BbGOx':_0x1b4cbe(0xe5),'yRYiu':_0x1b4cbe(0xd5),'QXqnC':'_afterAll','laLsE':_0x1b4cbe(0xda)};if(!_0x4e756f||!_0x4e756f[_0x1b4cbe(0xd3)])return;[_0x416139[_0x1b4cbe(0xf9)],_0x416139['QXqnC'],_0x416139['laLsE'],_0x416139[_0x1b4cbe(0xf5)]]['forEach'](_0xeceac4=>{const _0x3bc73e=_0x1b4cbe,_0xe34a3a={'DPkok':function(_0x507b39){return _0x416139['TaKfq'](_0x507b39);},'AOKld':function(_0x24c164,_0x48d147){const _0x4e1461=a31_0x2059;return _0x416139[_0x4e1461(0x106)](_0x24c164,_0x48d147);},'jSdGA':_0x416139['BbGOx']},_0x4a5e38=_0x4e756f[_0x3bc73e(0xd3)][_0xeceac4]||[];_0x4a5e38[_0x3bc73e(0xf2)](_0x48e8a8=>{const _0x27345d=_0x3bc73e;if(!_0x48e8a8[_0x27345d(0xdc)])_0x48e8a8[_0x27345d(0xdc)]=_0xe34a3a[_0x27345d(0xd0)](uuidv4);else _0x48e8a8['markedStatus']&&_0xe34a3a[_0x27345d(0xfe)](_0xeceac4,_0xe34a3a[_0x27345d(0xef)])&&(_0x48e8a8[_0x27345d(0xdc)]=_0xe34a3a[_0x27345d(0xd0)](uuidv4),delete _0x48e8a8['markedStatus']);});}),exports[_0x1b4cbe(0x10e)](_0x4e756f[_0x1b4cbe(0xd3)]);},exports[a31_0x18e40d(0xd9)]=async(_0x167eec,_0x2d73e5)=>{const _0x2888f1=a31_0x18e40d,_0x5c2b0c={'AnjsN':function(_0x55d017){return _0x55d017();},'cVLPn':function(_0x475441,_0x2ef0cc){return _0x475441(_0x2ef0cc);},'ermfT':function(_0x150343,_0x387649){return _0x150343===_0x387649;},'dLqlj':'browserstack','phtMJ':_0x2888f1(0x113),'KJkdO':_0x2888f1(0xfb),'viKEt':function(_0x531b4b,_0x3c9f5b){return _0x531b4b(_0x3c9f5b);}};try{if(!_0x5c2b0c['AnjsN'](shouldProcessEventForTesthub))return;const _0x3e1359=await _0x167eec['getCapabilities'](),_0x3f9d20=await _0x167eec['getSession'](),_0x12a887={},_0x662772=Object[_0x2888f1(0xee)](_0x3f9d20[_0x2888f1(0xdb)]()[_0x2888f1(0x10a)]),_0x1c90ab={'product':_0x5c2b0c['cVLPn'](getObservabilityLinkedProductName,_0x662772),'capabilities':_0x662772,'platform':_0x3e1359[_0x2888f1(0xea)](),'platform_version':_0x5c2b0c[_0x2888f1(0x111)](getPlatformVersion,_0x5c2b0c[_0x2888f1(0x112)](global['__cloud_provider___'],_0x5c2b0c[_0x2888f1(0x107)])),'browser':_0x3e1359[_0x2888f1(0x109)](),'browser_version':_0x3e1359['getBrowserVersion'](),'session_id':_0x3f9d20['toJSON']()};global['__cloud_provider___']?_0x12a887[global[_0x2888f1(0xdf)]]=_0x1c90ab:_0x12a887[_0x5c2b0c[_0x2888f1(0xe6)]]=_0x1c90ab,process[_0x2888f1(0xd6)]('bs:addPlatformDetails:'+process['pid'],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x5c2b0c[_0x2888f1(0xfa)],'http_response':_0x12a887,'uuid':_0x2d73e5});}catch(_0x4c1851){_0x5c2b0c['viKEt'](debug,_0x2888f1(0xd7)+_0x4c1851);}},exports[a31_0x18e40d(0xcb)]=_0x8d5ce3=>{const _0x345b37=a31_0x18e40d,_0x47225a={};_0x47225a['benan']=function(_0x564d98,_0x4d4792){return _0x564d98!==_0x4d4792;},_0x47225a['EZXCS']=_0x345b37(0x103),_0x47225a[_0x345b37(0xca)]='passed',_0x47225a[_0x345b37(0xfc)]=_0x345b37(0xf0);const _0x184af1=_0x47225a,_0x3be0fd=_0x8d5ce3[_0x345b37(0xd2)][_0x345b37(0x10d)]((_0xbd74de,_0x48432a)=>{const _0x32733e=_0x345b37,_0x33d2d6=exports[_0x32733e(0xcb)](_0x48432a);return _0x33d2d6&&(_0xbd74de=_0xbd74de[_0x32733e(0xe3)](_0x33d2d6)),_0xbd74de;},[]),_0xae1687=_0x8d5ce3[_0x345b37(0x101)][_0x345b37(0xe7)](_0x32f9e5=>{const _0x570fc2=_0x345b37,_0x2a88e1=_0x184af1[_0x570fc2(0xe0)](_0x32f9e5[_0x570fc2(0x110)],_0x184af1[_0x570fc2(0xfd)])&&!_0x32f9e5[_0x570fc2(0xf3)]&&_0x184af1[_0x570fc2(0xe0)](_0x32f9e5[_0x570fc2(0xed)],_0x184af1['fNtCU'])&&_0x184af1[_0x570fc2(0xe0)](_0x32f9e5[_0x570fc2(0xed)],_0x184af1[_0x570fc2(0xfc)])&&!_0x32f9e5[_0x570fc2(0xe8)];return _0x2a88e1;});return _0xae1687[_0x345b37(0xe3)](_0x3be0fd);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x24cf7f=a32_0x3986;(function(_0x4e479f,_0x998af7){const _0x5dc05d=a32_0x3986,_0x41a578=_0x4e479f();while(!![]){try{const _0x2f6e4f=-parseInt(_0x5dc05d(0x1b4))/0x1+parseInt(_0x5dc05d(0x1e7))/0x2*(parseInt(_0x5dc05d(0x1c7))/0x3)+-parseInt(_0x5dc05d(0x1a6))/0x4*(parseInt(_0x5dc05d(0x1c1))/0x5)+parseInt(_0x5dc05d(0x1b2))/0x6+-parseInt(_0x5dc05d(0x200))/0x7*(-parseInt(_0x5dc05d(0x1cd))/0x8)+parseInt(_0x5dc05d(0x1b8))/0x9+parseInt(_0x5dc05d(0x212))/0xa*(-parseInt(_0x5dc05d(0x1ba))/0xb);if(_0x2f6e4f===_0x998af7)break;else _0x41a578['push'](_0x41a578['shift']());}catch(_0x379405){_0x41a578['push'](_0x41a578['shift']());}}}(a32_0x5c98,0xbc520));function a32_0x3986(_0x15b650,_0x27786c){const _0x5c9814=a32_0x5c98();return a32_0x3986=function(_0x398641,_0x3a24b4){_0x398641=_0x398641-0x192;let _0xde4f85=_0x5c9814[_0x398641];return _0xde4f85;},a32_0x3986(_0x15b650,_0x27786c);}function a32_0x5c98(){const _0x224748=['mjgkm','percy','env','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','stringify','titlePath','6580PjQNYR','CdnQi','ekjEN','\x22}}','xbNYs','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','BROWSERSTACK_TESTHUB_UUID','https:','IbDbQ','hORWr','accessibilityScanStarted','../../helpers/accessibility-automation/scripts','failed','debug','startMonitoring','gtYZr','pvMGA','cPneR','TeWbf','currentTest','gFhoE','JeNVr','NBodc','app','shift','Failed:\x20','4yXbPGG','now','\x20|\x20','__drivers','vJnRy','BsFQI','err','OIdYw','error','__skipSessionName','percyCaptureMode','http:','9002418vsodQh','ifpUA','859140AbDOYq','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','isAccessibilityPlatform','__error_messages__','12203226lRGlKh','info','17116OiiPnV','../../helpers/testhub/utils',',\x22level\x22:\x20\x22','MyYgx','../../helpers/logger','getCurrentUrl','performScan','6578090dVhIEi','format','initQuit','lUKBh','thBuildUuid','length','3DSXYip','../../helpers/performance-tester','pyFRI','executeScript','qIHmI','ObservabilitySync:','8VSfJiL','\x20-\x20','EOMfM','./test-observability/mochaUtils','Passed','SnlZl','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','mochaHooks','message','otDXF','then','testcase','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','KNPHB','ENV_VAR','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','quitCount_','shouldScanTestForAccessibility','__sessionFailed','../../helpers/globals','session_','bXpya','PnOhS','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','1247952JCKksQ','JPwiK','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','browserstackSessionName','getGlobal','Failed\x20to\x20store\x20session\x20name:\x20','fHunp','passed','thTestRunUuid','Performing\x20scan\x20before\x20saving\x20results','BROWSERSTACK_TESTHUB_JWT','saveTestResults','NTZUL','push','XKTTO','.\x20Error\x20:','AIzuC','nzGFU','protocol','../../helpers/helper','testAnalyticsId','setGlobal','timeout','stopMonitoring','uOgUm','3427711TxJXSo','isArray','Automate\x20test\x20case\x20execution\x20has\x20started.','state','driverCleanup','sGJkK','xpuCN','cYSMw','NIREg','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','join','nAHGh'];a32_0x5c98=function(){return _0x224748;};return a32_0x5c98();}const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x24cf7f(0x1d0)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x24cf7f(0x1fa)),PerformanceTester=require(a32_0x24cf7f(0x1c8)),scripts=require(a32_0x24cf7f(0x197)),globals=require(a32_0x24cf7f(0x1e0)),logger=require(a32_0x24cf7f(0x1be))['winstonLogger'],{shouldProcessEventForTesthub}=require(a32_0x24cf7f(0x1bb)),testHubConstants=require('../../helpers/testhub/constants');exports[a32_0x24cf7f(0x1d4)]={'beforeAll'(){const _0x59d686=a32_0x24cf7f,_0x3615ee={'YuDBP':function(_0x3a4adb,_0x277584,_0x4b2135,_0x2ee1cc){return _0x3a4adb(_0x277584,_0x4b2135,_0x2ee1cc);},'gtYZr':_0x59d686(0x198),'fHunp':_0x59d686(0x1a8),'IcfsO':function(_0x577ba6,_0x1f96d3,_0x1c83b9){return _0x577ba6(_0x1f96d3,_0x1c83b9);},'NTZUL':'passed','cYSMw':function(_0x9a4573){return _0x9a4573();}};PerformanceTester[_0x59d686(0x19a)]();const _0x12dc20='browserstack internal helper hook';global['__error_messages__']=[],global[_0x59d686(0x1df)]=![],global['driverCleanup']=async()=>{const _0x141214=_0x59d686;let _0x3f485e=![];try{await global['__drivers'][0x0]['session_'],_0x3f485e=!![],global[_0x141214(0x1df)]?await _0x3615ee['YuDBP'](markSessionStatus,global[_0x141214(0x1a9)][0x0],_0x3615ee[_0x141214(0x19b)],global[_0x141214(0x1b7)][_0x141214(0x20a)](_0x3615ee[_0x141214(0x1ed)])):await _0x3615ee['IcfsO'](markSessionStatus,global[_0x141214(0x1a9)][0x0],_0x3615ee[_0x141214(0x1f3)]);}catch(_0x14b04a){logger['debug'](_0x141214(0x1d3)+_0x14b04a);}global[_0x141214(0x1b7)]=[],global[_0x141214(0x1df)]=![];if(_0x3f485e)try{try{_0x3615ee[_0x141214(0x207)](shouldProcessEventForTesthub)&&(global[_0x141214(0x1a9)][0x0]&&await _0x3615ee['IcfsO'](sendPlatformDetails,global[_0x141214(0x1a9)][0x0],this[_0x141214(0x19f)]?this[_0x141214(0x19f)][_0x141214(0x1fb)]:null));}catch(_0x3f34a0){logger[_0x141214(0x199)](_0x141214(0x1b5)+_0x3f34a0);}await global[_0x141214(0x1a9)][0x0][_0x141214(0x1c3)]();}catch(_0xa2767c){logger[_0x141214(0x199)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0xa2767c);}};},'beforeEach'(_0x2b260e){const _0x2c684f=a32_0x24cf7f,_0x21bae6={'MyYgx':function(_0x24a0f0,_0x323923){return _0x24a0f0>_0x323923;},'uOgUm':_0x2c684f(0x1ce),'lUKBh':function(_0x4a7a29,_0x81ff59,_0x48cd02){return _0x4a7a29(_0x81ff59,_0x48cd02);},'PnOhS':'bstackA11yShouldScan','CdnQi':function(_0x107392){return _0x107392();},'EOMfM':function(_0x20902e,_0x4cb5f3){return _0x20902e>_0x4cb5f3;},'sGJkK':_0x2c684f(0x1b6),'mjgkm':function(_0x20cfd3,_0x356f47){return _0x20cfd3===_0x356f47;},'nzGFU':_0x2c684f(0x1b1),'ekjEN':_0x2c684f(0x193),'PGWLH':_0x2c684f(0x1e9),'pvMGA':_0x2c684f(0x202),'otDXF':function(_0x404aa4){return _0x404aa4();}};new Promise(async _0x592f66=>{const _0x2cddcd=_0x2c684f,_0x2aa84a='browserstack internal helper hook';let _0x26bbd5=!![];try{_0x21bae6['MyYgx'](global['__drivers'][_0x2cddcd(0x1c6)],0x1)&&(await global[_0x2cddcd(0x204)](),global[_0x2cddcd(0x1a9)][_0x2cddcd(0x1a4)]()),_0x21bae6[_0x2cddcd(0x1bd)](global['__drivers'][0x0][_0x2cddcd(0x1dd)],0x0)&&(_0x26bbd5=![],await global[_0x2cddcd(0x204)]());}catch(_0x30d271){logger['debug'](_0x2cddcd(0x217)+_0x30d271);}try{Array[_0x2cddcd(0x201)](global[_0x2cddcd(0x1a9)])&&global[_0x2cddcd(0x1a9)][0x0]&&(global['__drivers'][0x0][_0x2cddcd(0x1ea)]=this[_0x2cddcd(0x19f)][_0x2cddcd(0x211)]()[_0x2cddcd(0x20a)](_0x21bae6['uOgUm'])),global[_0x2cddcd(0x1ea)]=this['currentTest'][_0x2cddcd(0x211)]()[_0x2cddcd(0x20a)](_0x21bae6[_0x2cddcd(0x1ff)]);}catch(_0x10444a){logger[_0x2cddcd(0x199)](_0x2cddcd(0x1ec)+_0x10444a);}this[_0x2cddcd(0x19f)][_0x2cddcd(0x1de)]=_0x21bae6[_0x2cddcd(0x1c4)](shouldScanTestForAccessibility,this['currentTest'][_0x2cddcd(0x211)](),!![]),globals[_0x2cddcd(0x1fc)](_0x21bae6[_0x2cddcd(0x1e3)],this[_0x2cddcd(0x19f)][_0x2cddcd(0x1de)]),this[_0x2cddcd(0x19f)][_0x2cddcd(0x196)]=!![];if(_0x21bae6[_0x2cddcd(0x213)](isAccessibilityAutomationSession)&&_0x26bbd5&&Array[_0x2cddcd(0x201)](global[_0x2cddcd(0x1a9)])&&_0x21bae6[_0x2cddcd(0x1cf)](global[_0x2cddcd(0x1a9)][_0x2cddcd(0x1c6)],0x0)&&globals[_0x2cddcd(0x1eb)](_0x21bae6[_0x2cddcd(0x205)]))try{const _0x18c87c=await global[_0x2cddcd(0x1a9)][0x0][_0x2cddcd(0x1e1)];if(_0x18c87c){let _0x3c80eb=!![];const _0x2c8c76=await global[_0x2cddcd(0x1a9)][0x0][_0x2cddcd(0x1bf)]();let _0x39eafe;try{_0x39eafe=new URL(_0x2c8c76);}catch(_0x2a30e0){_0x3c80eb=![];}_0x3c80eb=_0x21bae6[_0x2cddcd(0x20c)](_0x39eafe['protocol'],_0x21bae6[_0x2cddcd(0x1f8)])||_0x21bae6[_0x2cddcd(0x20c)](_0x39eafe[_0x2cddcd(0x1f9)],_0x21bae6[_0x2cddcd(0x214)]),_0x3c80eb&&(this[_0x2cddcd(0x19f)]['shouldScanTestForAccessibility']&&logger[_0x2cddcd(0x1b9)](_0x21bae6['PGWLH'])),this[_0x2cddcd(0x19f)][_0x2cddcd(0x196)]=this[_0x2cddcd(0x19f)][_0x2cddcd(0x1de)],this[_0x2cddcd(0x19f)][_0x2cddcd(0x1de)]&&logger[_0x2cddcd(0x1b9)](_0x21bae6[_0x2cddcd(0x19c)]);}}catch(_0x4a1468){logger[_0x2cddcd(0x1ae)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x2cddcd(0x1c2)](_0x4a1468));}_0x21bae6[_0x2cddcd(0x1d6)](_0x592f66);})[_0x2c684f(0x1d7)](_0x2b260e);},'afterEach'(_0x5e03aa){const _0x813f4c=a32_0x24cf7f,_0x487cae={'gMXCx':function(_0x3804e9,_0x1d4577){return _0x3804e9>_0x1d4577;},'KNPHB':function(_0x1e12b0,_0x547dfc){return _0x1e12b0===_0x547dfc;},'NBodc':_0x813f4c(0x1d8),'SnlZl':function(_0x4a9d49,_0x2b1de2){return _0x4a9d49>_0x2b1de2;},'AIzuC':'appium:app','hORWr':function(_0x5e947d,_0x37f7b0,_0x3d7714,_0x46061b){return _0x5e947d(_0x37f7b0,_0x3d7714,_0x46061b);},'IbDbQ':_0x813f4c(0x1ce),'qIHmI':function(_0x571687,_0x17c18a){return _0x571687!==_0x17c18a;},'nAHGh':_0x813f4c(0x1ee),'cPneR':function(_0x2f697c,_0x552bfb,_0x2be568){return _0x2f697c(_0x552bfb,_0x2be568);},'XKTTO':function(_0x5cb2e2,_0x1f974d){return _0x5cb2e2+_0x1f974d;},'JPwiK':_0x813f4c(0x1a5),'xpuCN':_0x813f4c(0x1ae),'vJnRy':_0x813f4c(0x1d1),'ifpUA':_0x813f4c(0x1b9),'TeWbf':'isAccessibilityPlatform','gFhoE':'bstackA11yShouldScan','BsFQI':_0x813f4c(0x1e4),'FbHIQ':_0x813f4c(0x1f0),'JeNVr':_0x813f4c(0x1dc),'pyFRI':function(_0xf116b0){return _0xf116b0();},'OIdYw':function(_0x30d89d){return _0x30d89d();},'bXpya':function(_0xad981b,_0x4244fa,_0x5e54e6){return _0xad981b(_0x4244fa,_0x5e54e6);},'xbNYs':_0x813f4c(0x199),'lnSeD':function(_0x5990d2,_0x10100c){return _0x5990d2>_0x10100c;}},_0x562aeb='browserstack internal helper hook';this[_0x813f4c(0x1fd)](0xfde8);const _0x4e24a2=async(_0x41cbff,_0x4e8693)=>{const _0x4b7cc4=_0x813f4c;await global[_0x4b7cc4(0x1a9)][0x0][_0x4b7cc4(0x1ca)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x41cbff+_0x4b7cc4(0x1bc)+_0x4e8693+_0x4b7cc4(0x215));};new Promise(async _0x4f4d44=>{const _0x41a2ea=_0x813f4c;try{_0x487cae['gMXCx'](global['__drivers'][_0x41a2ea(0x1c6)],0x1)&&(await global[_0x41a2ea(0x204)](),global[_0x41a2ea(0x1a9)]['shift'](),global['__error_messages__']=[],global[_0x41a2ea(0x1df)]=![]);try{if(global[_0x41a2ea(0x20d)]&&_0x487cae[_0x41a2ea(0x1da)](global[_0x41a2ea(0x1b0)],_0x487cae[_0x41a2ea(0x1a2)])&&global['__drivers'][0x0]){const _0x22ef96=_0x487cae[_0x41a2ea(0x1d2)](global['capabilities']['length'],0x0)?!!global['capabilities'][0x0][_0x41a2ea(0x1a3)]||!!global['capabilities'][0x0][_0x487cae[_0x41a2ea(0x1f7)]]:![],_0x31971e={};_0x31971e[_0x41a2ea(0x1a3)]=_0x22ef96,await _0x487cae[_0x41a2ea(0x195)](percyAutoCapture,global[_0x41a2ea(0x1a9)][0x0],_0x487cae[_0x41a2ea(0x1a2)],_0x31971e);}}catch(_0x408dd0){logger['debug'](_0x41a2ea(0x1d9)+_0x408dd0);}!global[_0x41a2ea(0x1af)]&&(await global[_0x41a2ea(0x1a9)][0x0][_0x41a2ea(0x1ca)](_0x41a2ea(0x20f)+JSON[_0x41a2ea(0x210)](this['currentTest'][_0x41a2ea(0x211)]()[_0x41a2ea(0x20a)](_0x487cae[_0x41a2ea(0x194)]))+'}}'),global[_0x41a2ea(0x1a9)][0x0]['sessionNameSet__']=!![]);const _0x1e7b6a=_0x487cae[_0x41a2ea(0x1cb)](this['currentTest'][_0x41a2ea(0x203)],_0x487cae[_0x41a2ea(0x20b)]);_0x1e7b6a?(global[_0x41a2ea(0x1df)]=!![],global[_0x41a2ea(0x1b7)][_0x41a2ea(0x1f4)](this['currentTest'][_0x41a2ea(0x1ac)][_0x41a2ea(0x1d5)]),await _0x487cae[_0x41a2ea(0x19d)](_0x4e24a2,JSON['stringify'](_0x487cae[_0x41a2ea(0x1f5)](_0x487cae[_0x41a2ea(0x1e8)],this[_0x41a2ea(0x19f)]['err']['message'])),_0x487cae[_0x41a2ea(0x206)])):await _0x487cae['cPneR'](_0x4e24a2,JSON[_0x41a2ea(0x210)](_0x487cae[_0x41a2ea(0x1aa)]),_0x487cae[_0x41a2ea(0x1b3)]);}catch(_0x9b0875){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x9b0875);}try{if(this[_0x41a2ea(0x19f)][_0x41a2ea(0x196)]&&globals[_0x41a2ea(0x1eb)](_0x487cae[_0x41a2ea(0x19e)])&&globals['getGlobal'](_0x487cae[_0x41a2ea(0x1a0)])){logger[_0x41a2ea(0x1b9)](_0x487cae[_0x41a2ea(0x1ab)]);const _0x17b0ae={};_0x17b0ae[_0x41a2ea(0x1ef)]=this[_0x41a2ea(0x19f)][_0x41a2ea(0x1fb)],_0x17b0ae[_0x41a2ea(0x1c5)]=process[_0x41a2ea(0x20e)][testHubConstants['ENV_VAR'][_0x41a2ea(0x192)]],_0x17b0ae['thJwtToken']=process['env'][testHubConstants[_0x41a2ea(0x1db)][_0x41a2ea(0x1f1)]];const _0x279523=_0x17b0ae;logger[_0x41a2ea(0x199)](_0x41a2ea(0x209)+JSON['stringify'](_0x279523)),logger[_0x41a2ea(0x199)](_0x487cae['FbHIQ']),logger[_0x41a2ea(0x199)](util[_0x41a2ea(0x1c2)](await global[_0x41a2ea(0x1a9)][0x0]['executeAsyncScript'](scripts[_0x41a2ea(0x1c0)],{'method':global['browserstackSessionName']}))),await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x41a2ea(0x1f2)],_0x279523),logger[_0x41a2ea(0x1b9)](_0x487cae[_0x41a2ea(0x1a1)]);}}catch(_0x1ae35a){logger[_0x41a2ea(0x1ae)](_0x41a2ea(0x1e5)+this[_0x41a2ea(0x19f)][_0x41a2ea(0x211)]()+_0x41a2ea(0x1f6),_0x1ae35a);}try{try{if(_0x487cae[_0x41a2ea(0x1c9)](shouldProcessEventForTesthub)){global[_0x41a2ea(0x1a9)][0x0]&&await _0x487cae[_0x41a2ea(0x19d)](sendPlatformDetails,global[_0x41a2ea(0x1a9)][0x0],this[_0x41a2ea(0x19f)]?this[_0x41a2ea(0x19f)][_0x41a2ea(0x1fb)]:null);if(_0x487cae['OIdYw'](isBrowserstackInfra)){const _0x22054d=_0x41a2ea(0x1cc)+Date[_0x41a2ea(0x1a7)]();await _0x487cae[_0x41a2ea(0x1e2)](_0x4e24a2,JSON[_0x41a2ea(0x210)](_0x22054d),_0x487cae[_0x41a2ea(0x216)]);}}}catch(_0x5d38a4){logger[_0x41a2ea(0x199)](_0x41a2ea(0x1e6)+_0x5d38a4);}_0x487cae['lnSeD'](global[_0x41a2ea(0x1a9)][0x0][_0x41a2ea(0x1dd)],0x0)&&await global[_0x41a2ea(0x204)]();}catch(_0x258c50){logger[_0x41a2ea(0x199)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x258c50);}_0x487cae[_0x41a2ea(0x1ad)](_0x4f4d44);})[_0x813f4c(0x1d7)](()=>_0x5e03aa());},'afterAll'(_0x32da98){const _0x1d1434=a32_0x24cf7f,_0xf0cb09={'NIREg':function(_0x29fe8b){return _0x29fe8b();}},_0x2452ae='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x218b06=>{const _0x3e3962=a32_0x3986;PerformanceTester[_0x3e3962(0x1fe)](),await global[_0x3e3962(0x204)](),_0xf0cb09[_0x3e3962(0x208)](_0x218b06);})[_0x1d1434(0x1d7)](()=>_0x32da98());}};
|
|
1
|
+
const a32_0x3cb7a6=a32_0x2460;(function(_0x5c6839,_0x5463a8){const _0x254f13=a32_0x2460,_0x59d5a9=_0x5c6839();while(!![]){try{const _0x485995=parseInt(_0x254f13(0x16c))/0x1+parseInt(_0x254f13(0x1bc))/0x2*(-parseInt(_0x254f13(0x14d))/0x3)+-parseInt(_0x254f13(0x193))/0x4+parseInt(_0x254f13(0x18f))/0x5+parseInt(_0x254f13(0x169))/0x6+-parseInt(_0x254f13(0x143))/0x7*(parseInt(_0x254f13(0x179))/0x8)+-parseInt(_0x254f13(0x1ae))/0x9*(parseInt(_0x254f13(0x157))/0xa);if(_0x485995===_0x5463a8)break;else _0x59d5a9['push'](_0x59d5a9['shift']());}catch(_0x2e358d){_0x59d5a9['push'](_0x59d5a9['shift']());}}}(a32_0x5c60,0xac92e));const util=require(a32_0x3cb7a6(0x1be)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x3cb7a6(0x1a7)),{percyAutoCapture}=require(a32_0x3cb7a6(0x19d)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a32_0x3cb7a6(0x17b)),PerformanceTester=require(a32_0x3cb7a6(0x18b)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x3cb7a6(0x1ad)),logger=require(a32_0x3cb7a6(0x1bf))[a32_0x3cb7a6(0x19c)],{shouldProcessEventForTesthub}=require(a32_0x3cb7a6(0x185)),testHubConstants=require(a32_0x3cb7a6(0x141));function a32_0x5c60(){const _0x5184a0=['BROWSERSTACK_TESTHUB_JWT','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','protocol','aFbSt','error','ToGpk','capabilities','6520XcETeK','\x20-\x20','../../helpers/helper','isArray','stopMonitoring','then','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','testAnalyticsId','__error_messages__','percyCaptureMode','hOWQE','timeout','../../helpers/testhub/utils','accessibilityScanStarted','push','executeAsyncScript','vpWWA','https:','../../helpers/performance-tester','gnJPz','JtMow','join','3427975fzNHPB','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','KlKlg','wrhMB','56316eaciLN','getGlobal','currentTest','CddEc','__skipSessionName','dRWgD','idxMQ','performScan','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','winstonLogger','../../helpers/percy/utils','failed','MDwDI','saveTestResults','exNiH','setGlobal','__drivers','shift','initQuit','env','../../helpers/accessibility-automation/helper','PLXgX','RUiHL','length','http:','thTestRunUuid','../../helpers/globals','9MuTxYL','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','thBuildUuid','state','ObservabilitySync:','BROWSERSTACK_TESTHUB_UUID','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','err','getCurrentUrl','\x20|\x20','testcase','xwvug','.\x20Error\x20:','debug','2HbaGmb','driverCleanup','util','../../helpers/logger','format','ENV_VAR','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','../../helpers/testhub/constants',',\x22level\x22:\x20\x22','5376awuMyJ','startMonitoring','XQlAr','quitCount_','Bnksp','hxTwK','cOMnf','Performing\x20scan\x20before\x20saving\x20results','oSAmo','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','326526DgsNkb','browserstackSessionName','appium:app','percy','isAccessibilityPlatform','KoGPS','app','zYmMf','kPQPA','thJwtToken','2337290hkFMmz','Passed','OWNfN','EgVfy','session_','ulnGw','PbIPc','titlePath','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','bstackA11yShouldScan','shouldScanTestForAccessibility','__sessionFailed','YOXoZ','info','message','now','stringify','executeScript','1066200wOPfiG','\x22}}','BwaYc','826137rijeLo','jZyRA','mochaHooks','Failed\x20to\x20store\x20session\x20name:\x20','Failed:\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.'];a32_0x5c60=function(){return _0x5184a0;};return a32_0x5c60();}function a32_0x2460(_0x438bc9,_0x3fb585){const _0x5c6081=a32_0x5c60();return a32_0x2460=function(_0x24603e,_0x32b471){_0x24603e=_0x24603e-0x13e;let _0x558347=_0x5c6081[_0x24603e];return _0x558347;},a32_0x2460(_0x438bc9,_0x3fb585);}exports[a32_0x3cb7a6(0x16e)]={'beforeAll'(){const _0x481500=a32_0x3cb7a6,_0x1498a5={'XQlAr':function(_0x5e1a97,_0x33492f,_0xf0c00d,_0x92b447){return _0x5e1a97(_0x33492f,_0xf0c00d,_0x92b447);},'RUiHL':_0x481500(0x19e),'oqLow':_0x481500(0x1b7),'exNiH':function(_0x20047b,_0x2877f0,_0x20d233){return _0x20047b(_0x2877f0,_0x20d233);},'YOXoZ':'passed','kPQPA':function(_0x5aac2e){return _0x5aac2e();},'SqOPW':function(_0x398279,_0x30d08e,_0xbee3b4){return _0x398279(_0x30d08e,_0xbee3b4);}};PerformanceTester[_0x481500(0x144)]();const _0x5d85c8='browserstack internal helper hook';global[_0x481500(0x181)]=[],global[_0x481500(0x162)]=![],global['driverCleanup']=async()=>{const _0x2dfd74=_0x481500;let _0x573c89=![];try{await global['__drivers'][0x0]['session_'],_0x573c89=!![],global[_0x2dfd74(0x162)]?await _0x1498a5[_0x2dfd74(0x145)](markSessionStatus,global[_0x2dfd74(0x1a3)][0x0],_0x1498a5[_0x2dfd74(0x1a9)],global[_0x2dfd74(0x181)][_0x2dfd74(0x18e)](_0x1498a5['oqLow'])):await _0x1498a5[_0x2dfd74(0x1a1)](markSessionStatus,global[_0x2dfd74(0x1a3)][0x0],_0x1498a5[_0x2dfd74(0x163)]);}catch(_0x3abf0c){logger[_0x2dfd74(0x1bb)](_0x2dfd74(0x14c)+_0x3abf0c);}global[_0x2dfd74(0x181)]=[],global[_0x2dfd74(0x162)]=![];if(_0x573c89)try{try{_0x1498a5[_0x2dfd74(0x155)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x1498a5['SqOPW'](sendPlatformDetails,global[_0x2dfd74(0x1a3)][0x0],this[_0x2dfd74(0x195)]?this[_0x2dfd74(0x195)][_0x2dfd74(0x180)]:null));}catch(_0x1def7b){logger[_0x2dfd74(0x1bb)](_0x2dfd74(0x140)+_0x1def7b);}await global[_0x2dfd74(0x1a3)][0x0][_0x2dfd74(0x1a5)]();}catch(_0x89d1c9){logger[_0x2dfd74(0x1bb)](_0x2dfd74(0x15f)+_0x89d1c9);}};},'beforeEach'(_0x59707b){const _0x38b0b4=a32_0x3cb7a6,_0x589baa={'jZyRA':function(_0x8a6e91,_0x1f4656){return _0x8a6e91>_0x1f4656;},'ulnGw':_0x38b0b4(0x17a),'KlKlg':function(_0x59715f,_0x1c5b0d,_0x4cac0a){return _0x59715f(_0x1c5b0d,_0x4cac0a);},'JtMow':'bstackA11yShouldScan','vpWWA':function(_0x2ecfb1){return _0x2ecfb1();},'Wxmsm':_0x38b0b4(0x151),'wrhMB':function(_0x9a80c5,_0xb9b22){return _0x9a80c5===_0xb9b22;},'aFbSt':_0x38b0b4(0x1ab),'cYVqz':function(_0x1d070d,_0x352ab0){return _0x1d070d===_0x352ab0;},'BwaYc':_0x38b0b4(0x18a),'hOWQE':_0x38b0b4(0x173),'dRWgD':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0x483315=>{const _0x198542=_0x38b0b4,_0x4521f3='browserstack internal helper hook';let _0x34314f=!![];try{_0x589baa[_0x198542(0x16d)](global['__drivers'][_0x198542(0x1aa)],0x1)&&(await global[_0x198542(0x1bd)](),global['__drivers']['shift']()),_0x589baa[_0x198542(0x16d)](global[_0x198542(0x1a3)][0x0]['quitCount_'],0x0)&&(_0x34314f=![],await global[_0x198542(0x1bd)]());}catch(_0x28d491){logger[_0x198542(0x1bb)](_0x198542(0x15f)+_0x28d491);}try{Array[_0x198542(0x17c)](global[_0x198542(0x1a3)])&&global[_0x198542(0x1a3)][0x0]&&(global[_0x198542(0x1a3)][0x0][_0x198542(0x14e)]=this[_0x198542(0x195)][_0x198542(0x15e)]()[_0x198542(0x18e)](_0x589baa[_0x198542(0x15c)])),global[_0x198542(0x14e)]=this['currentTest'][_0x198542(0x15e)]()[_0x198542(0x18e)](_0x589baa[_0x198542(0x15c)]);}catch(_0x35d183){logger[_0x198542(0x1bb)](_0x198542(0x16f)+_0x35d183);}this[_0x198542(0x195)][_0x198542(0x161)]=_0x589baa[_0x198542(0x191)](shouldScanTestForAccessibility,this[_0x198542(0x195)][_0x198542(0x15e)](),!![]),globals[_0x198542(0x1a2)](_0x589baa[_0x198542(0x18d)],this['currentTest'][_0x198542(0x161)]),this[_0x198542(0x195)][_0x198542(0x186)]=!![];if(_0x589baa[_0x198542(0x189)](isAccessibilityAutomationSession)&&_0x34314f&&Array[_0x198542(0x17c)](global[_0x198542(0x1a3)])&&_0x589baa[_0x198542(0x16d)](global['__drivers'][_0x198542(0x1aa)],0x0)&&globals[_0x198542(0x194)](_0x589baa['Wxmsm']))try{const _0x2effb1=await global[_0x198542(0x1a3)][0x0][_0x198542(0x15b)];if(_0x2effb1){let _0x355375=!![];const _0x26cbd4=await global[_0x198542(0x1a3)][0x0][_0x198542(0x1b6)]();let _0x4666bd;try{_0x4666bd=new URL(_0x26cbd4);}catch(_0x492dea){_0x355375=![];}_0x355375=_0x589baa[_0x198542(0x192)](_0x4666bd[_0x198542(0x174)],_0x589baa[_0x198542(0x175)])||_0x589baa['cYVqz'](_0x4666bd['protocol'],_0x589baa[_0x198542(0x16b)]),_0x355375&&(this[_0x198542(0x195)][_0x198542(0x161)]&&logger[_0x198542(0x164)](_0x589baa[_0x198542(0x183)])),this[_0x198542(0x195)][_0x198542(0x186)]=this[_0x198542(0x195)][_0x198542(0x161)],this[_0x198542(0x195)]['shouldScanTestForAccessibility']&&logger[_0x198542(0x164)](_0x589baa[_0x198542(0x198)]);}}catch(_0x247eae){logger['error'](_0x198542(0x17f)+util['format'](_0x247eae));}_0x589baa['vpWWA'](_0x483315);})[_0x38b0b4(0x17e)](_0x59707b);},'afterEach'(_0x38b155){const _0x3de7d7=a32_0x3cb7a6,_0x38c184={'CddEc':function(_0x2826da,_0x17b411){return _0x2826da>_0x17b411;},'yuQOP':function(_0x55b107,_0x194cd1){return _0x55b107===_0x194cd1;},'oSAmo':_0x3de7d7(0x1b8),'hxTwK':_0x3de7d7(0x14f),'ToGpk':function(_0x28e53d,_0x56dfdc,_0x267c40,_0x373fb7){return _0x28e53d(_0x56dfdc,_0x267c40,_0x373fb7);},'gnJPz':'\x20-\x20','zYmMf':function(_0x41fee7,_0x3f6cc9){return _0x41fee7!==_0x3f6cc9;},'wsfSt':'passed','MDwDI':function(_0x540d9c,_0x356119,_0x46549d){return _0x540d9c(_0x356119,_0x46549d);},'KoGPS':function(_0x300bf0,_0x721c76){return _0x300bf0+_0x721c76;},'cOMnf':_0x3de7d7(0x170),'OWNfN':_0x3de7d7(0x176),'PLXgX':_0x3de7d7(0x158),'idxMQ':'info','Bnksp':'isAccessibilityPlatform','NJVdr':_0x3de7d7(0x160),'uQDnG':_0x3de7d7(0x19b),'xwvug':_0x3de7d7(0x14a),'zXJvs':_0x3de7d7(0x171),'VjTUm':function(_0x340475){return _0x340475();},'OMonL':function(_0x3b6de5){return _0x3b6de5();},'PiCVQ':'debug','PbIPc':function(_0xe9e2d8){return _0xe9e2d8();}},_0xab0c8f='browserstack internal helper hook';this[_0x3de7d7(0x184)](0xfde8);const _0x148c2f=async(_0x1ffb42,_0x2202a5)=>{const _0x509c08=_0x3de7d7;await global['__drivers'][0x0][_0x509c08(0x168)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x1ffb42+_0x509c08(0x142)+_0x2202a5+_0x509c08(0x16a));};new Promise(async _0x1eb349=>{const _0x2ea67c=_0x3de7d7;try{_0x38c184[_0x2ea67c(0x196)](global[_0x2ea67c(0x1a3)][_0x2ea67c(0x1aa)],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x2ea67c(0x1a4)](),global[_0x2ea67c(0x181)]=[],global[_0x2ea67c(0x162)]=![]);try{if(global[_0x2ea67c(0x150)]&&_0x38c184['yuQOP'](global[_0x2ea67c(0x182)],_0x38c184[_0x2ea67c(0x14b)])&&global[_0x2ea67c(0x1a3)][0x0]){const _0x2b5ca0=_0x38c184['CddEc'](global['capabilities'][_0x2ea67c(0x1aa)],0x0)?!!global['capabilities'][0x0][_0x2ea67c(0x153)]||!!global[_0x2ea67c(0x178)][0x0][_0x38c184[_0x2ea67c(0x148)]]:![],_0x416653={};_0x416653['app']=_0x2b5ca0,await _0x38c184[_0x2ea67c(0x177)](percyAutoCapture,global[_0x2ea67c(0x1a3)][0x0],_0x38c184['oSAmo'],_0x416653);}}catch(_0xdb335c){logger['debug']('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0xdb335c);}!global[_0x2ea67c(0x197)]&&(await global['__drivers'][0x0][_0x2ea67c(0x168)](_0x2ea67c(0x1b4)+JSON[_0x2ea67c(0x167)](this[_0x2ea67c(0x195)][_0x2ea67c(0x15e)]()[_0x2ea67c(0x18e)](_0x38c184[_0x2ea67c(0x18c)]))+'}}'),global[_0x2ea67c(0x1a3)][0x0]['sessionNameSet__']=!![]);const _0x57cd8d=_0x38c184[_0x2ea67c(0x154)](this[_0x2ea67c(0x195)][_0x2ea67c(0x1b1)],_0x38c184['wsfSt']);_0x57cd8d?(global[_0x2ea67c(0x162)]=!![],global[_0x2ea67c(0x181)][_0x2ea67c(0x187)](this[_0x2ea67c(0x195)][_0x2ea67c(0x1b5)][_0x2ea67c(0x165)]),await _0x38c184[_0x2ea67c(0x19f)](_0x148c2f,JSON[_0x2ea67c(0x167)](_0x38c184[_0x2ea67c(0x152)](_0x38c184[_0x2ea67c(0x149)],this['currentTest'][_0x2ea67c(0x1b5)]['message'])),_0x38c184[_0x2ea67c(0x159)])):await _0x38c184[_0x2ea67c(0x19f)](_0x148c2f,JSON[_0x2ea67c(0x167)](_0x38c184[_0x2ea67c(0x1a8)]),_0x38c184[_0x2ea67c(0x199)]);}catch(_0x54b24b){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x54b24b);}try{if(this[_0x2ea67c(0x195)][_0x2ea67c(0x186)]&&globals[_0x2ea67c(0x194)](_0x38c184[_0x2ea67c(0x147)])&&globals['getGlobal'](_0x38c184['NJVdr'])){logger['info'](_0x38c184['uQDnG']);const _0x4b9847={};_0x4b9847[_0x2ea67c(0x1ac)]=this[_0x2ea67c(0x195)][_0x2ea67c(0x180)],_0x4b9847[_0x2ea67c(0x1b0)]=process[_0x2ea67c(0x1a6)][testHubConstants[_0x2ea67c(0x13f)][_0x2ea67c(0x1b3)]],_0x4b9847[_0x2ea67c(0x156)]=process['env'][testHubConstants['ENV_VAR'][_0x2ea67c(0x172)]];const _0x193366=_0x4b9847;logger[_0x2ea67c(0x1bb)](_0x2ea67c(0x190)+JSON['stringify'](_0x193366)),logger['debug'](_0x38c184[_0x2ea67c(0x1b9)]),logger['debug'](util[_0x2ea67c(0x13e)](await global[_0x2ea67c(0x1a3)][0x0]['executeAsyncScript'](scripts[_0x2ea67c(0x19a)],{'method':global[_0x2ea67c(0x14e)]}))),await global[_0x2ea67c(0x1a3)][0x0][_0x2ea67c(0x188)](scripts[_0x2ea67c(0x1a0)],_0x193366),logger[_0x2ea67c(0x164)](_0x38c184['zXJvs']);}}catch(_0xc8e351){logger[_0x2ea67c(0x176)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x2ea67c(0x195)][_0x2ea67c(0x15e)]()+_0x2ea67c(0x1ba),_0xc8e351);}try{try{if(_0x38c184['VjTUm'](shouldProcessEventForTesthub)){global[_0x2ea67c(0x1a3)][0x0]&&await _0x38c184[_0x2ea67c(0x19f)](sendPlatformDetails,global[_0x2ea67c(0x1a3)][0x0],this[_0x2ea67c(0x195)]?this[_0x2ea67c(0x195)]['testAnalyticsId']:null);if(_0x38c184['OMonL'](isBrowserstackInfra)){const _0x4e6918=_0x2ea67c(0x1b2)+Date[_0x2ea67c(0x166)]();await _0x38c184[_0x2ea67c(0x19f)](_0x148c2f,JSON[_0x2ea67c(0x167)](_0x4e6918),_0x38c184['PiCVQ']);}}}catch(_0x24ed0b){logger[_0x2ea67c(0x1bb)](_0x2ea67c(0x1af)+_0x24ed0b);}_0x38c184[_0x2ea67c(0x196)](global[_0x2ea67c(0x1a3)][0x0][_0x2ea67c(0x146)],0x0)&&await global[_0x2ea67c(0x1bd)]();}catch(_0x5a1024){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x5a1024);}_0x38c184[_0x2ea67c(0x15d)](_0x1eb349);})[_0x3de7d7(0x17e)](()=>_0x38b155());},'afterAll'(_0x32ddf4){const _0x20702d=a32_0x3cb7a6,_0x2f08b7={'EgVfy':function(_0x4fac25){return _0x4fac25();}},_0x5250e7='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x33b449=>{const _0x47480f=a32_0x2460;PerformanceTester[_0x47480f(0x17d)](),await global[_0x47480f(0x1bd)](),_0x2f08b7[_0x47480f(0x15a)](_0x33b449);})[_0x20702d(0x17e)](()=>_0x32ddf4());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function
|
|
2
|
+
'use strict';function a33_0x3aff(){const _0x330fd6=['push','path','Deleting\x20','length','unlinkSync','findIndex','441985nSSmmI','webdriver','YLuac','--config','modifyBrowserStackCaps','ucpob','nightwatch','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','trim','port','../../helpers/helper','eOpsk','124977YcDFOn','mqfAY','platforms','2811893cVGGKG','filter','join','JxPMj','exports','uIpUn','test','RUDEE','../../helpers/logger','1606068ypuEhV','EBCma','10819305tEnkru','GhwNg','now','TDdPw','1207766AwDsbb','existsSync','CBuFG','debug','getPlatformName','gIdAY','--env','env','nightwatch-browserstack.json','close','mergeDeep','vlYPe','168253LFcwwO','URwXc','FJzfH','config','40Xktqwj','cwd','hub.browserstack.com','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','info','writeFileSync','splice','dBXFb','test_settings','stringify','modifyBrowserStackW3CCaps','VsjOe','Getting\x20your\x20nightwatch\x20configs\x20from\x20','isUndefined','cdYOX','nightwatch.cmd','8GlmTPi','nightwatch.conf.js','forEach'];a33_0x3aff=function(){return _0x330fd6;};return a33_0x3aff();}function a33_0x193c(_0x474c07,_0x1a1d54){const _0x3aff5e=a33_0x3aff();return a33_0x193c=function(_0x193ce4,_0x229b63){_0x193ce4=_0x193ce4-0x79;let _0x28d969=_0x3aff5e[_0x193ce4];return _0x28d969;},a33_0x193c(_0x474c07,_0x1a1d54);}const a33_0x5a5d0a=a33_0x193c;(function(_0x1b0cdb,_0x45e781){const _0x1a23c9=a33_0x193c,_0x5f0a97=_0x1b0cdb();while(!![]){try{const _0x598687=parseInt(_0x1a23c9(0x7b))/0x1+-parseInt(_0x1a23c9(0xb6))/0x2+parseInt(_0x1a23c9(0xa4))/0x3*(-parseInt(_0x1a23c9(0x7f))/0x4)+parseInt(_0x1a23c9(0x98))/0x5+parseInt(_0x1a23c9(0xb0))/0x6+-parseInt(_0x1a23c9(0xa7))/0x7*(parseInt(_0x1a23c9(0x8f))/0x8)+parseInt(_0x1a23c9(0xb2))/0x9;if(_0x598687===_0x45e781)break;else _0x5f0a97['push'](_0x5f0a97['shift']());}catch(_0x5e2b73){_0x5f0a97['push'](_0x5f0a97['shift']());}}}(a33_0x3aff,0x4a4ad));const fs=require('fs'),path=require(a33_0x5a5d0a(0x93)),{spawn}=require('child_process'),logger=require(a33_0x5a5d0a(0xaf))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0x5a5d0a(0xa2)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0xeb335b,_0x17f523)=>{const _0x1966a2=a33_0x5a5d0a,_0x2c4069={'UIsbA':_0x1966a2(0x90),'gIdAY':'nightwatch.json','mqfAY':function(_0x4d63e4,_0x3039fe){return _0x4d63e4(_0x3039fe);},'VsjOe':_0x1966a2(0x9f)};let _0x5695fa=null,_0x58b79a={};const _0x276cc5=_0x17f523['findIndex'](_0x52d6a2=>_0x52d6a2===_0x1966a2(0x9b));if(!helper[_0x1966a2(0x8c)](_0xeb335b['config'])&&fs[_0x1966a2(0xb7)](path[_0x1966a2(0xa9)](process[_0x1966a2(0x80)](),_0xeb335b['config'])))_0x5695fa=path['join'](process[_0x1966a2(0x80)](),_0xeb335b[_0x1966a2(0x7e)]),_0x17f523[_0x1966a2(0x85)](_0x276cc5,0x2);else{if(fs[_0x1966a2(0xb7)](path[_0x1966a2(0xa9)](process[_0x1966a2(0x80)](),_0x2c4069['UIsbA'])))_0x5695fa=path['join'](process['cwd'](),_0x2c4069['UIsbA']);else fs[_0x1966a2(0xb7)](path[_0x1966a2(0xa9)](process[_0x1966a2(0x80)](),_0x2c4069[_0x1966a2(0xbb)]))&&(_0x5695fa=path[_0x1966a2(0xa9)](process[_0x1966a2(0x80)](),_0x2c4069['gIdAY']));}return _0x5695fa?(logger['info'](_0x1966a2(0x8b)+_0x5695fa),_0x58b79a=_0x2c4069[_0x1966a2(0xa5)](require,_0x5695fa)):logger[_0x1966a2(0x83)](_0x2c4069[_0x1966a2(0x8a)]),_0x58b79a;},removeExistingEnvs=_0x49e28f=>{const _0x1091b0=a33_0x5a5d0a,_0x2a67fb={};_0x2a67fb[_0x1091b0(0x86)]=function(_0x5c43e3,_0x5abc5c){return _0x5c43e3>_0x5abc5c;};const _0x21e648=_0x2a67fb;let _0x2b2e20=_0x49e28f[_0x1091b0(0x97)](_0x2e8ea2=>_0x2e8ea2===_0x1091b0(0xbc));_0x21e648[_0x1091b0(0x86)](_0x2b2e20,-0x1)&&_0x49e28f[_0x1091b0(0x85)](_0x2b2e20,0x2),_0x2b2e20=_0x49e28f[_0x1091b0(0x97)](_0x261204=>_0x261204==='-e'),_0x21e648[_0x1091b0(0x86)](_0x2b2e20,-0x1)&&_0x49e28f['splice'](_0x2b2e20,0x2);};function run(_0x145c8f,_0x27412e){const _0x57042c=a33_0x5a5d0a,_0x3ca5a6={'CBuFG':_0x57042c(0x9e),'GhwNg':function(_0x1dc48d,_0x40cd4b){return _0x1dc48d+_0x40cd4b;},'RUDEE':_0x57042c(0x87),'URwXc':function(_0xfe6662,_0x4ba246,_0x59efc1){return _0xfe6662(_0x4ba246,_0x59efc1);},'FJzfH':_0x57042c(0x81),'ucpob':_0x57042c(0x82),'LyHcx':function(_0x2659a0,_0x1ea3e5){return _0x2659a0===_0x1ea3e5;},'YLuac':_0x57042c(0xbe),'eOpsk':function(_0x2f2557,_0x34c849){return _0x2f2557(_0x34c849);},'uIpUn':function(_0x478ef9,_0x535566,_0x2eff74,_0x1dc539){return _0x478ef9(_0x535566,_0x2eff74,_0x1dc539);},'EBCma':_0x57042c(0x8e),'JxPMj':_0x57042c(0x9b),'TDdPw':_0x57042c(0xbc),'cdYOX':'inherit','vlYPe':_0x57042c(0xbf)},_0x346cfc=new BrowserStackSetup(_0x145c8f);if(!_0x346cfc[_0x57042c(0x7e)])return;const _0x2f11b6=_0x3ca5a6[_0x57042c(0x7c)](getUserNightwatchConfigs,_0x145c8f,_0x27412e),_0x183050={};_0x183050['start_process']=![];const _0x23e685={};_0x23e685['host']=_0x3ca5a6[_0x57042c(0x7d)],_0x23e685[_0x57042c(0xa1)]=0x1bb;const _0x2875cb={};_0x2875cb[_0x57042c(0x99)]=_0x183050,_0x2875cb['selenium']=_0x23e685;const _0x3de9a3=_0x2875cb;logger[_0x57042c(0x83)](_0x3ca5a6[_0x57042c(0x9d)]);const _0x3af8b8={..._0x2f11b6},_0x41768a=_0x3af8b8,_0x923552=helper['useW3C'](_0x346cfc[_0x57042c(0x7e)]),_0x208e5e=[];_0x346cfc['config'][_0x57042c(0xa6)][_0x57042c(0x91)]((_0x213c0b,_0x12aafd)=>{const _0x32d26b=_0x57042c;_0x923552?_0x208e5e[_0x32d26b(0x92)](helper[_0x32d26b(0x89)](_0x346cfc[_0x32d26b(0x7e)],_0x3ca5a6[_0x32d26b(0xb8)],_0x12aafd)):_0x208e5e[_0x32d26b(0x92)](helper[_0x32d26b(0x9c)](_0x346cfc[_0x32d26b(0x7e)],_0x3ca5a6[_0x32d26b(0xb8)],_0x12aafd));});const _0x1f8e0b={},_0x59bcad=[];_0x145c8f[_0x57042c(0xbd)]=_0x145c8f[_0x57042c(0xbd)]||_0x145c8f['e'];const _0x235a87=_0x145c8f[_0x57042c(0xbd)]?_0x145c8f[_0x57042c(0xbd)][_0x57042c(0xa0)]()['split'](',')['map'](_0x5ebd59=>_0x5ebd59['trim']())[_0x57042c(0xa8)](_0x44f44e=>_0x44f44e!==''):[''];_0x3ca5a6['LyHcx'](_0x235a87[_0x57042c(0x95)],0x0)&&_0x235a87['push']('');_0x235a87[_0x57042c(0x91)](_0x28689f=>{const _0x33b05c=_0x57042c;_0x208e5e[_0x33b05c(0x91)](_0xf49d53=>{const _0x452dd1=_0x33b05c;let _0x590db3=_0x3ca5a6[_0x452dd1(0xb3)](helper[_0x452dd1(0xba)](_0xf49d53,'_'),'_'+Date[_0x452dd1(0xb4)]());_0x28689f&&(_0x590db3+='_'+_0x28689f);if(_0x28689f&&(!_0x2f11b6[_0x3ca5a6[_0x452dd1(0xae)]]||!_0x2f11b6[_0x3ca5a6[_0x452dd1(0xae)]][_0x28689f]))return;const _0x1b2561={..._0x3de9a3};_0x1b2561['desiredCapabilities']=_0xf49d53;const _0x5ef70f=_0x1b2561;_0x1f8e0b[_0x590db3]=_0x28689f?helper[_0x452dd1(0x79)](_0x2f11b6[_0x3ca5a6[_0x452dd1(0xae)]][_0x28689f],_0x5ef70f):_0x5ef70f,_0x59bcad[_0x452dd1(0x92)](_0x590db3);});});!_0x41768a[_0x57042c(0x87)]&&(_0x41768a[_0x57042c(0x87)]={});_0x41768a[_0x57042c(0x87)]={..._0x41768a[_0x57042c(0x87)],..._0x1f8e0b};const _0x150b1b=path[_0x57042c(0xa9)](__dirname,_0x3ca5a6[_0x57042c(0x9a)]);fs[_0x57042c(0x84)](_0x150b1b,JSON[_0x57042c(0x88)](_0x41768a)),_0x3ca5a6[_0x57042c(0xa3)](removeExistingEnvs,_0x27412e);const _0x5d35b7=_0x3ca5a6[_0x57042c(0xac)](spawn,/^win/[_0x57042c(0xad)](process['platform'])?_0x3ca5a6[_0x57042c(0xb1)]:_0x3ca5a6['CBuFG'],[_0x3ca5a6[_0x57042c(0xaa)],_0x150b1b,..._0x27412e['slice'](0x1),_0x3ca5a6[_0x57042c(0xb5)],_0x59bcad[_0x57042c(0xa9)](',')],{'stdio':_0x3ca5a6[_0x57042c(0x8d)]});_0x5d35b7['on'](_0x3ca5a6[_0x57042c(0x7a)],async _0x4098fa=>{const _0x3df637=_0x57042c;logger[_0x3df637(0xb9)]('child\x20process\x20exited\x20with\x20code\x20'+_0x4098fa),logger[_0x3df637(0x83)](_0x3df637(0x94)+_0x150b1b),fs[_0x3df637(0x96)](_0x150b1b);});}module[a33_0x5a5d0a(0xab)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x4e802e=a34_0x3140;(function(_0x5e3d2f,_0x2c097a){const _0x187750=a34_0x3140,_0x315835=_0x5e3d2f();while(!![]){try{const _0x5084c4=parseInt(_0x187750(0x130))/0x1+-parseInt(_0x187750(0x12c))/0x2+-parseInt(_0x187750(0x13c))/0x3*(-parseInt(_0x187750(0x136))/0x4)+parseInt(_0x187750(0x16a))/0x5*(-parseInt(_0x187750(0x149))/0x6)+parseInt(_0x187750(0x160))/0x7+parseInt(_0x187750(0x161))/0x8*(parseInt(_0x187750(0x146))/0x9)+-parseInt(_0x187750(0x147))/0xa;if(_0x5084c4===_0x2c097a)break;else _0x315835['push'](_0x315835['shift']());}catch(_0x23b48b){_0x315835['push'](_0x315835['shift']());}}}(a34_0x3c50,0xaf93d));function a34_0x3140(_0x2ff78b,_0x398599){const _0x3c504f=a34_0x3c50();return a34_0x3140=function(_0x314062,_0x38a59b){_0x314062=_0x314062-0x116;let _0x349ae7=_0x3c504f[_0x314062];return _0x349ae7;},a34_0x3140(_0x2ff78b,_0x398599);}const util=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{isAccessibilityAutomationSession}=require(a34_0x4e802e(0x173)),{isUndefined}=require(a34_0x4e802e(0x140)),scripts=require(a34_0x4e802e(0x12a));function a34_0x3c50(){const _0x3a8c60=['VMwnM','LDEct','stringify','UJYJq','jPLsx','wsEndpoint','eNtfp','../../helpers/accessibility-automation/helper','use','scannerProcessingTimeout','IOULB','replace','error','uvwJS','Lyyay','parse','Playwright','platformValidation','workerInfo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','accessibilityPlatform','DJRzS','browserStackExecuteDriver','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','evaluate','OqpoT','jHIcT','kpnbo','testInfo','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','accessibilityOptions.includeIssueType.bestPractice','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','browser','SzbmW','JDOcD','axYaQ','QudZl','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','../../helpers/accessibility-automation/scripts','deviceName','329022bmWlEz','performScan','processAccessibilityCaps','pblyu','493917OPDHHg','format','OxSzA','RVGSG','DVRKc','wXoLB','35836UzNmSk','chrome','method','WdCke','getAccessibilityResults','ndCPE','204tqaJty','wACsP','oNQEF','dYRlt','../../helpers/helper','includeIssueType','needsReview','constructor','No\x20summaryResults\x20found.','latest','4761kjBrWV','8715720QIObVo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','3539370tPMNSS','debug','bestPractice','name','connectOptions','No\x20accessibility\x20results\x20were\x20found.','HFuld','mKfIv','getAccessibilityResultsSummary','executeAsyncScript','accessibilityOptions','cjfkI','executeScript','(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','accessibilityOptions.wcagVersion','playwright-chromium','DPxcy','oJweD','bstackSdkArgs','scannerVersion','warn','accessibilityOptions.scannerProcessingTimeout','wcagVersion','1065918HeXYLc','16480BOcdhq','currentTest','yGJjy','EzsQN','setAccessibilityCapabilities','browserName','ISXqM','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','5XwAjBg','project'];a34_0x3c50=function(){return _0x3a8c60;};return a34_0x3c50();}exports['browserStackEvaluate']=async(_0x515f22,_0x4f2924,_0x136e9c={})=>{const _0xe5902f=a34_0x4e802e,_0x534274={};_0x534274[_0xe5902f(0x150)]=_0xe5902f(0x15b);const _0x415dd2=_0x534274;return await _0x515f22[_0xe5902f(0x11a)](_0xe5902f(0x122)+_0x4f2924[_0xe5902f(0x177)](/arguments/g,_0x415dd2[_0xe5902f(0x150)])+_0xe5902f(0x128)+JSON[_0xe5902f(0x16e)](_0x136e9c)+')');},exports[a34_0x4e802e(0x118)]=async(_0x37894c,_0x64d4c,_0x2cf010={})=>{const _0x36ec0f=a34_0x4e802e,_0x4c4c38={};_0x4c4c38['yGJjy']=function(_0x3f8fdb,_0x410b26){return _0x3f8fdb===_0x410b26;},_0x4c4c38['lEPPQ']='WebDriver',_0x4c4c38[_0x36ec0f(0x132)]=_0x36ec0f(0x17c),_0x4c4c38[_0x36ec0f(0x11b)]=_0x36ec0f(0x15b);const _0x1be89b=_0x4c4c38;if(_0x1be89b[_0x36ec0f(0x163)](_0x37894c[_0x36ec0f(0x143)][_0x36ec0f(0x14c)],_0x1be89b['lEPPQ']))return await _0x37894c[_0x36ec0f(0x152)](_0x64d4c,_0x2cf010);else{if(_0x1be89b[_0x36ec0f(0x163)](_0x37894c['constructor'][_0x36ec0f(0x14c)],_0x1be89b[_0x36ec0f(0x132)]))return await _0x37894c[_0x36ec0f(0x155)](_0x36ec0f(0x156)+_0x64d4c['replace'](/arguments/g,_0x1be89b['OqpoT'])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x36ec0f(0x16e)](_0x2cf010)+')');}},exports[a34_0x4e802e(0x165)]=async _0x11261a=>{const _0x42752c=a34_0x4e802e,_0x15fc0b={};_0x15fc0b[_0x42752c(0x164)]=_0x42752c(0x157),_0x15fc0b[_0x42752c(0x154)]=_0x42752c(0x15e),_0x15fc0b[_0x42752c(0x172)]=_0x42752c(0x120),_0x15fc0b[_0x42752c(0x11c)]='accessibilityOptions.includeIssueType.needsReview',_0x15fc0b[_0x42752c(0x117)]='accessibilityOptions.authToken',_0x15fc0b[_0x42752c(0x124)]='accessibilityOptions.scannerVersion';const _0x4c9290=_0x15fc0b;_0x11261a[_0x42752c(0x153)]&&(_0x11261a['accessibilityOptions'][_0x42752c(0x15f)]&&(_0x11261a[_0x4c9290[_0x42752c(0x164)]]=_0x11261a[_0x42752c(0x153)][_0x42752c(0x15f)]),_0x11261a[_0x42752c(0x153)]['scannerProcessingTimeout']&&(_0x11261a[_0x4c9290['cjfkI']]=_0x11261a[_0x42752c(0x153)][_0x42752c(0x175)]),_0x11261a[_0x42752c(0x153)]['includeIssueType']&&(_0x11261a[_0x4c9290[_0x42752c(0x172)]]=_0x11261a[_0x42752c(0x153)][_0x42752c(0x141)][_0x42752c(0x14b)],_0x11261a[_0x4c9290[_0x42752c(0x11c)]]=_0x11261a[_0x42752c(0x153)][_0x42752c(0x141)][_0x42752c(0x142)]));const _0x1c750a=JSON[_0x42752c(0x17b)](process['env'][_0x42752c(0x169)])[_0x42752c(0x15c)];_0x11261a[_0x4c9290['DJRzS']]=process['env']['BS_A11Y_JWT'],_0x11261a[_0x4c9290[_0x42752c(0x124)]]=_0x1c750a,delete _0x11261a[_0x42752c(0x153)];},exports[a34_0x4e802e(0x13a)]=async _0x4d0b06=>{const _0x1b5b88=a34_0x4e802e,_0x5a3f13={};_0x5a3f13[_0x1b5b88(0x139)]=_0x1b5b88(0x14e),_0x5a3f13[_0x1b5b88(0x134)]=_0x1b5b88(0x11f);const _0x573244=_0x5a3f13;if(global[_0x1b5b88(0x116)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x4d0b06,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x4d0b06,scripts.getResults);return res;}catch{return logger[_0x1b5b88(0x178)](_0x573244[_0x1b5b88(0x139)]),[];}else return logger[_0x1b5b88(0x15d)](_0x573244['DVRKc']),[];},exports[a34_0x4e802e(0x12d)]=async(_0x2a54d8,_0x23a934='')=>{const _0x1c20ff=a34_0x4e802e;if(global[_0x1c20ff(0x116)]){const _0x39b47c={};return _0x39b47c[_0x1c20ff(0x138)]=_0x23a934,await exports['browserStackEvaluate'](_0x2a54d8,scripts[_0x1c20ff(0x12d)],_0x39b47c);}},exports[a34_0x4e802e(0x151)]=async _0x50fc72=>{const _0x128d1b=a34_0x4e802e,_0x4d4ea={};_0x4d4ea['VYlpk']=_0x128d1b(0x144),_0x4d4ea[_0x128d1b(0x133)]=_0x128d1b(0x129);const _0x46ffc0=_0x4d4ea;if(global[_0x128d1b(0x116)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x50fc72,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x50fc72,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x128d1b(0x14a)](_0x46ffc0['VYlpk']),{};}else return logger[_0x128d1b(0x15d)](_0x46ffc0['RVGSG']),{};},exports[a34_0x4e802e(0x17d)]=async _0x5015e6=>{const _0x95b912=a34_0x4e802e,_0x4a7096={'oJweD':function(_0x3a32aa,_0x537e50){return _0x3a32aa!==_0x537e50;},'DnuUn':_0x95b912(0x168),'Lyyay':function(_0x4f04bc,_0x3cde18){return _0x4f04bc===_0x3cde18;},'QudZl':_0x95b912(0x137),'dbfyL':function(_0x50fb8f,_0x4edf04){return _0x50fb8f===_0x4edf04;},'uvwJS':_0x95b912(0x158),'DPxcy':_0x95b912(0x17f),'wACsP':function(_0x583736,_0x4dc76d){return _0x583736(_0x4dc76d);},'UJYJq':function(_0xee70f9,_0x13b598){return _0xee70f9===_0x13b598;},'IOULB':_0x95b912(0x145),'roTFE':function(_0x3747fb,_0x3a1fa6){return _0x3747fb>_0x3a1fa6;},'dYRlt':_0x95b912(0x148)};try{if(!_0x4a7096[_0x95b912(0x15a)](_0x5015e6[_0x95b912(0x12b)],''))return logger[_0x95b912(0x15d)](_0x4a7096['DnuUn']),![];const _0x9b2eae=_0x5015e6[_0x95b912(0x123)];if(!(_0x4a7096[_0x95b912(0x17a)](_0x9b2eae,_0x4a7096[_0x95b912(0x127)])||_0x4a7096['dbfyL'](_0x9b2eae,_0x4a7096[_0x95b912(0x179)])))return logger['warn'](_0x4a7096[_0x95b912(0x159)]),![];const _0x3b26a8=_0x4a7096[_0x95b912(0x13d)](parseInt,_0x5015e6['browser_version']);if(!(_0x4a7096[_0x95b912(0x16f)](_0x3b26a8,_0x4a7096[_0x95b912(0x176)])||_0x4a7096['roTFE'](_0x3b26a8,0x5e)))return logger['warn'](_0x4a7096[_0x95b912(0x13f)]),![];}catch(_0x255c21){logger[_0x95b912(0x14a)](_0x95b912(0x119)+util[_0x95b912(0x131)](_0x255c21));}return!![];},exports[a34_0x4e802e(0x12e)]=(_0x1360e1,_0xa99c46,_0x432647)=>{const _0x38ec7c=a34_0x4e802e,_0x3f60fa={'JDOcD':function(_0x2d9de3){return _0x2d9de3();},'wXoLB':'browserstack.accessibility','axYaQ':function(_0x3c65b1,_0x25461e){return _0x3c65b1===_0x25461e;},'VMwnM':_0x38ec7c(0x137),'ndCPE':function(_0x5abf7b,_0x364a2f){return _0x5abf7b===_0x364a2f;},'sjhZx':_0x38ec7c(0x158),'HWsOG':_0x38ec7c(0x17f),'oNQEF':_0x38ec7c(0x145),'LDEct':function(_0x2dd590,_0x5daf2c){return _0x2dd590>_0x5daf2c;},'jPLsx':_0x38ec7c(0x148),'pblyu':function(_0xe45bd,_0x249b3a){return _0xe45bd(_0x249b3a);},'kpnbo':_0x38ec7c(0x168),'ISXqM':function(_0xd8f589,_0x318fe2){return _0xd8f589+_0x318fe2;},'HFuld':function(_0x1c7fb2,_0x437784){return _0x1c7fb2(_0x437784);}};try{if(_0x3f60fa[_0x38ec7c(0x125)](isAccessibilityAutomationSession)){global[_0x38ec7c(0x116)]=!![];!_0x1360e1[_0x3f60fa['wXoLB']]&&(global[_0x38ec7c(0x116)]=![]);!(_0x3f60fa[_0x38ec7c(0x126)](_0x1360e1[_0x38ec7c(0x166)],_0x3f60fa[_0x38ec7c(0x16c)])||_0x3f60fa[_0x38ec7c(0x13b)](_0x1360e1[_0x38ec7c(0x166)],_0x3f60fa['sjhZx']))&&(logger[_0x38ec7c(0x15d)](_0x3f60fa['HWsOG']),global[_0x38ec7c(0x116)]=![]);!(_0x3f60fa['ndCPE'](_0x1360e1['browser_version'],_0x3f60fa[_0x38ec7c(0x13e)])||_0x3f60fa[_0x38ec7c(0x16d)](_0x1360e1['browser_version'],0x5e))&&(logger[_0x38ec7c(0x15d)](_0x3f60fa[_0x38ec7c(0x170)]),global['accessibilityPlatform']=![]);!_0x3f60fa[_0x38ec7c(0x12f)](isUndefined,_0x1360e1[_0x38ec7c(0x12b)])&&(logger[_0x38ec7c(0x15d)](_0x3f60fa[_0x38ec7c(0x11d)]),global['accessibilityPlatform']=![]);if(!global['accessibilityPlatform']){_0x1360e1[_0x3f60fa[_0x38ec7c(0x135)]]=![];const _0x3f356d=_0x3f60fa[_0x38ec7c(0x167)](_0xa99c46,_0x3f60fa[_0x38ec7c(0x14f)](encodeURIComponent,JSON[_0x38ec7c(0x16e)](_0x1360e1)));_0x432647&&(_0x432647[_0x38ec7c(0x162)][_0x38ec7c(0x11e)][_0x38ec7c(0x16b)][_0x38ec7c(0x174)]['connectOptions'][_0x38ec7c(0x171)]=_0x3f356d,_0x432647[_0x38ec7c(0x17e)][_0x38ec7c(0x16b)][_0x38ec7c(0x174)][_0x38ec7c(0x14d)][_0x38ec7c(0x171)]=_0x3f356d);}}}catch(_0x3cb186){logger[_0x38ec7c(0x14a)](_0x38ec7c(0x121)+util[_0x38ec7c(0x131)](_0x3cb186));}};
|
|
1
|
+
function a34_0x2eaf(_0x497612,_0x33a4bd){const _0x59c3ea=a34_0x59c3();return a34_0x2eaf=function(_0x2eaf6f,_0x2983ea){_0x2eaf6f=_0x2eaf6f-0xd7;let _0x54a639=_0x59c3ea[_0x2eaf6f];return _0x54a639;},a34_0x2eaf(_0x497612,_0x33a4bd);}const a34_0x107325=a34_0x2eaf;(function(_0x59d2dd,_0x75e084){const _0x5879d6=a34_0x2eaf,_0x40826b=_0x59d2dd();while(!![]){try{const _0x447f83=parseInt(_0x5879d6(0x11f))/0x1*(parseInt(_0x5879d6(0xee))/0x2)+-parseInt(_0x5879d6(0xfd))/0x3*(parseInt(_0x5879d6(0xe2))/0x4)+-parseInt(_0x5879d6(0xdf))/0x5+parseInt(_0x5879d6(0xe9))/0x6+-parseInt(_0x5879d6(0x128))/0x7+-parseInt(_0x5879d6(0xe8))/0x8+parseInt(_0x5879d6(0x10c))/0x9;if(_0x447f83===_0x75e084)break;else _0x40826b['push'](_0x40826b['shift']());}catch(_0x5a54ed){_0x40826b['push'](_0x40826b['shift']());}}}(a34_0x59c3,0x4c924));function a34_0x59c3(){const _0x50ceed=['Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','JNlyy','bstackSdkArgs','platformValidation','performScan','project','../../helpers/logger','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','ssduw','kzbhd','evaluate','browserName','Wmgwr','(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','No\x20accessibility\x20results\x20were\x20found.','xxQCN','kYOZI','BKamO','accessibilityOptions','testInfo','KuFGr','455860Pmulec','deviceName','needsReview','49116khQloO','ALhbo','dStFn','workerInfo','warn','NtkFQ','3460984BcnjOQ','1431168sKXXME','DUcMn','accessibilityOptions.scannerVersion','processAccessibilityCaps','stringify','2108Oxzsev','eojOG','browser_version','includeIssueType','../../helpers/accessibility-automation/helper','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','accessibilityOptions.includeIssueType.needsReview','wcagVersion','azzlh','latest','NyWSB','qEWZB','BS_A11Y_JWT','FUpgz','browser','21AvtRNn','geRlN','chrome','../../helpers/accessibility-automation/scripts','error','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','format','BIKBe','wajgr','../../helpers/helper','rBIvU','mIKVk','use','PoOwe','accessibilityPlatform','3187494NtvyFK','kvwka','playwright-chromium','cNDwL','nqUgM','method','replace','Playwright','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','accessibilityOptions.scannerProcessingTimeout','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','constructor','name','util','browserStackEvaluate','ezjPB','executeAsyncScript','cDqdh','winstonLogger','542nAIenK','env','executeScript','scannerProcessingTimeout','Qbzif','getAccessibilityResults','accessibilityOptions.includeIssueType.bestPractice','debug','tcxyW','1684046iPGjmZ','(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','setAccessibilityCapabilities','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','MxXTS','XCtHN','mIRiO','ULvXN'];a34_0x59c3=function(){return _0x50ceed;};return a34_0x59c3();}const util=require(a34_0x107325(0x119)),logger=require(a34_0x107325(0x136))[a34_0x107325(0x11e)],{isAccessibilityAutomationSession}=require(a34_0x107325(0xf2)),{isUndefined}=require(a34_0x107325(0x106)),scripts=require(a34_0x107325(0x100));exports['browserStackEvaluate']=async(_0x3fe016,_0x278990,_0x34283a={})=>{const _0xb06b22=a34_0x107325,_0x1fd6ae={};_0x1fd6ae[_0xb06b22(0x10a)]=_0xb06b22(0x132);const _0xd78789=_0x1fd6ae;return await _0x3fe016[_0xb06b22(0x13a)](_0xb06b22(0xd7)+_0x278990[_0xb06b22(0x112)](/arguments/g,_0xd78789[_0xb06b22(0x10a)])+_0xb06b22(0xf3)+JSON[_0xb06b22(0xed)](_0x34283a)+')');},exports['browserStackExecuteDriver']=async(_0x36e10a,_0xf48205,_0x2f3a9c={})=>{const _0x481d5b=a34_0x107325,_0x10f6f6={};_0x10f6f6[_0x481d5b(0x13c)]=function(_0x28ac6a,_0x501fcb){return _0x28ac6a===_0x501fcb;},_0x10f6f6['RgBJC']='WebDriver',_0x10f6f6[_0x481d5b(0xe3)]=function(_0x1b4179,_0x254c62){return _0x1b4179===_0x254c62;},_0x10f6f6[_0x481d5b(0x11d)]=_0x481d5b(0x113),_0x10f6f6[_0x481d5b(0x12c)]=_0x481d5b(0x132);const _0x170a6b=_0x10f6f6;if(_0x170a6b[_0x481d5b(0x13c)](_0x36e10a[_0x481d5b(0x117)]['name'],_0x170a6b['RgBJC']))return await _0x36e10a[_0x481d5b(0x11c)](_0xf48205,_0x2f3a9c);else{if(_0x170a6b[_0x481d5b(0xe3)](_0x36e10a[_0x481d5b(0x117)][_0x481d5b(0x118)],_0x170a6b['cDqdh']))return await _0x36e10a[_0x481d5b(0x121)](_0x481d5b(0x129)+_0xf48205[_0x481d5b(0x112)](/arguments/g,_0x170a6b[_0x481d5b(0x12c)])+_0x481d5b(0x102)+JSON[_0x481d5b(0xed)](_0x2f3a9c)+')');}},exports[a34_0x107325(0x12a)]=async _0xc876d0=>{const _0xfd7f5b=a34_0x107325,_0x2bdb72={};_0x2bdb72['tDDSG']='accessibilityOptions.wcagVersion',_0x2bdb72[_0xfd7f5b(0xde)]=_0xfd7f5b(0x115),_0x2bdb72[_0xfd7f5b(0xfb)]=_0xfd7f5b(0x125),_0x2bdb72[_0xfd7f5b(0x105)]=_0xfd7f5b(0xf4),_0x2bdb72[_0xfd7f5b(0x108)]='accessibilityOptions.authToken',_0x2bdb72[_0xfd7f5b(0x10f)]=_0xfd7f5b(0xeb);const _0x2e9ebe=_0x2bdb72;_0xc876d0[_0xfd7f5b(0xdc)]&&(_0xc876d0['accessibilityOptions'][_0xfd7f5b(0xf5)]&&(_0xc876d0[_0x2e9ebe['tDDSG']]=_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0xf5)]),_0xc876d0[_0xfd7f5b(0xdc)]['scannerProcessingTimeout']&&(_0xc876d0[_0x2e9ebe[_0xfd7f5b(0xde)]]=_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0x122)]),_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0xf1)]&&(_0xc876d0[_0x2e9ebe[_0xfd7f5b(0xfb)]]=_0xc876d0[_0xfd7f5b(0xdc)]['includeIssueType']['bestPractice'],_0xc876d0[_0x2e9ebe[_0xfd7f5b(0x105)]]=_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0xf1)][_0xfd7f5b(0xe1)]));const _0x100f72=JSON['parse'](process[_0xfd7f5b(0x120)][_0xfd7f5b(0x116)])['scannerVersion'];_0xc876d0[_0x2e9ebe[_0xfd7f5b(0x108)]]=process['env'][_0xfd7f5b(0xfa)],_0xc876d0[_0x2e9ebe[_0xfd7f5b(0x10f)]]=_0x100f72,delete _0xc876d0['accessibilityOptions'];},exports[a34_0x107325(0x124)]=async _0x5dce94=>{const _0x2c54c2=a34_0x107325,_0x41bd7b={};_0x41bd7b[_0x2c54c2(0x12d)]=_0x2c54c2(0xd8),_0x41bd7b[_0x2c54c2(0x127)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x36c5b9=_0x41bd7b;if(global[_0x2c54c2(0x10b)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x5dce94,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x5dce94,scripts.getResults);return res;}catch{return logger[_0x2c54c2(0x101)](_0x36c5b9[_0x2c54c2(0x12d)]),[];}else return logger['warn'](_0x36c5b9['tcxyW']),[];},exports[a34_0x107325(0x134)]=async(_0x366450,_0x13316e='')=>{const _0x4317cf=a34_0x107325;if(global['accessibilityPlatform']){const _0x22a5fb={};return _0x22a5fb[_0x4317cf(0x111)]=_0x13316e,await exports[_0x4317cf(0x11a)](_0x366450,scripts['performScan'],_0x22a5fb);}},exports['getAccessibilityResultsSummary']=async _0xc62f33=>{const _0x950585=a34_0x107325,_0x28349c={};_0x28349c[_0x950585(0xe7)]='No\x20summaryResults\x20found.',_0x28349c[_0x950585(0x138)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x2ef8d8=_0x28349c;if(global[_0x950585(0x10b)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0xc62f33,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0xc62f33,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x2ef8d8['NtkFQ']),{};}else return logger['warn'](_0x2ef8d8[_0x950585(0x138)]),{};},exports[a34_0x107325(0x133)]=async _0x4f695b=>{const _0x5b830a=a34_0x107325,_0x27126f={'eojOG':function(_0x561529,_0x5c46c2){return _0x561529!==_0x5c46c2;},'JNlyy':_0x5b830a(0x130),'RwmCh':function(_0x5f2c01,_0x35ae4f){return _0x5f2c01===_0x35ae4f;},'rBIvU':_0x5b830a(0xff),'ezjPB':function(_0x4a2c42,_0x5d4e3a){return _0x4a2c42===_0x5d4e3a;},'kYOZI':_0x5b830a(0x10e),'mIRiO':_0x5b830a(0x114),'ULvXN':function(_0xbbec46,_0x33d5b5){return _0xbbec46(_0x33d5b5);},'Qbzif':function(_0x236c04,_0x46a899){return _0x236c04===_0x46a899;},'UbJYH':_0x5b830a(0xf7),'DUcMn':function(_0xaf1e24,_0x30c2d1){return _0xaf1e24>_0x30c2d1;},'FkktQ':_0x5b830a(0x12b)};try{if(!_0x27126f[_0x5b830a(0xef)](_0x4f695b[_0x5b830a(0xe0)],''))return logger[_0x5b830a(0xe6)](_0x27126f[_0x5b830a(0x131)]),![];const _0x1745ef=_0x4f695b[_0x5b830a(0xfc)];if(!(_0x27126f['RwmCh'](_0x1745ef,_0x27126f[_0x5b830a(0x107)])||_0x27126f[_0x5b830a(0x11b)](_0x1745ef,_0x27126f[_0x5b830a(0xda)])))return logger['warn'](_0x27126f[_0x5b830a(0x12e)]),![];const _0x2a9ec2=_0x27126f[_0x5b830a(0x12f)](parseInt,_0x4f695b[_0x5b830a(0xf0)]);if(!(_0x27126f[_0x5b830a(0x123)](_0x2a9ec2,_0x27126f['UbJYH'])||_0x27126f[_0x5b830a(0xea)](_0x2a9ec2,0x5e)))return logger[_0x5b830a(0xe6)](_0x27126f['FkktQ']),![];}catch(_0x2778b5){logger[_0x5b830a(0x126)](_0x5b830a(0x137)+util['format'](_0x2778b5));}return!![];},exports[a34_0x107325(0xec)]=(_0x137944,_0xf02ce7,_0x304240)=>{const _0x577cab=a34_0x107325,_0x1bf12c={'azzlh':function(_0x54124c){return _0x54124c();},'nqUgM':'browserstack.accessibility','qEWZB':function(_0x1b3cbc,_0x3ab57b){return _0x1b3cbc===_0x3ab57b;},'dStFn':_0x577cab(0xff),'geRlN':function(_0x143283,_0x3e8a4c){return _0x143283===_0x3e8a4c;},'NyWSB':_0x577cab(0x10e),'xxQCN':_0x577cab(0x114),'fmEjm':'latest','MxTcV':function(_0x19c973,_0x12704d){return _0x19c973>_0x12704d;},'kzbhd':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','BIKBe':function(_0x483f24,_0x2a63fe){return _0x483f24(_0x2a63fe);},'kvwka':_0x577cab(0x130),'BKamO':function(_0x3ed647,_0x2dc3f8){return _0x3ed647+_0x2dc3f8;}};try{if(_0x1bf12c[_0x577cab(0xf6)](isAccessibilityAutomationSession)){global[_0x577cab(0x10b)]=!![];!_0x137944[_0x1bf12c[_0x577cab(0x110)]]&&(global[_0x577cab(0x10b)]=![]);!(_0x1bf12c[_0x577cab(0xf9)](_0x137944[_0x577cab(0x13b)],_0x1bf12c[_0x577cab(0xe4)])||_0x1bf12c[_0x577cab(0xfe)](_0x137944[_0x577cab(0x13b)],_0x1bf12c[_0x577cab(0xf8)]))&&(logger['warn'](_0x1bf12c[_0x577cab(0xd9)]),global[_0x577cab(0x10b)]=![]);!(_0x1bf12c[_0x577cab(0xf9)](_0x137944[_0x577cab(0xf0)],_0x1bf12c['fmEjm'])||_0x1bf12c['MxTcV'](_0x137944[_0x577cab(0xf0)],0x5e))&&(logger[_0x577cab(0xe6)](_0x1bf12c[_0x577cab(0x139)]),global[_0x577cab(0x10b)]=![]);!_0x1bf12c[_0x577cab(0x104)](isUndefined,_0x137944[_0x577cab(0xe0)])&&(logger[_0x577cab(0xe6)](_0x1bf12c[_0x577cab(0x10d)]),global[_0x577cab(0x10b)]=![]);if(!global[_0x577cab(0x10b)]){_0x137944[_0x1bf12c[_0x577cab(0x110)]]=![];const _0x714a14=_0x1bf12c[_0x577cab(0xdb)](_0xf02ce7,_0x1bf12c[_0x577cab(0x104)](encodeURIComponent,JSON[_0x577cab(0xed)](_0x137944)));_0x304240&&(_0x304240['currentTest'][_0x577cab(0xdd)][_0x577cab(0x135)][_0x577cab(0x109)]['connectOptions']['wsEndpoint']=_0x714a14,_0x304240[_0x577cab(0xe5)][_0x577cab(0x135)][_0x577cab(0x109)]['connectOptions']['wsEndpoint']=_0x714a14);}}}catch(_0x23713d){logger[_0x577cab(0x126)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x577cab(0x103)](_0x23713d));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x1af99a=a35_0x3594;function a35_0x3594(_0x4b62f8,_0x579910){const _0x2cc9ae=a35_0x2cc9();return a35_0x3594=function(_0x35948e,_0x319efb){_0x35948e=_0x35948e-0x117;let _0x92477b=_0x2cc9ae[_0x35948e];return _0x92477b;},a35_0x3594(_0x4b62f8,_0x579910);}(function(_0x1368b4,_0x4accd9){const _0x4a68c9=a35_0x3594,_0xf75e19=_0x1368b4();while(!![]){try{const _0x5aedc3=-parseInt(_0x4a68c9(0x12d))/0x1+parseInt(_0x4a68c9(0x199))/0x2+parseInt(_0x4a68c9(0x11e))/0x3+-parseInt(_0x4a68c9(0x13b))/0x4+-parseInt(_0x4a68c9(0x11c))/0x5*(-parseInt(_0x4a68c9(0x13e))/0x6)+-parseInt(_0x4a68c9(0x167))/0x7*(parseInt(_0x4a68c9(0x1a6))/0x8)+parseInt(_0x4a68c9(0x193))/0x9;if(_0x5aedc3===_0x4accd9)break;else _0xf75e19['push'](_0xf75e19['shift']());}catch(_0x26fb55){_0xf75e19['push'](_0xf75e19['shift']());}}}(a35_0x2cc9,0x4ccb4));function a35_0x2cc9(){const _0x589943=['indexOf','Deleting\x20','existsSync','Pofkk','ZegXE','eZIyJ','BrowserStack\x20config\x20file\x20not\x20found.','BROWSERSTACK_RERUN_TESTS','--disable-browserstack-automation','cwd','USER_CONFIG_DETAILS_PATH','stop','Updated\x20config\x20file\x20name\x20to\x20-\x20','.browserstack','--config=','HiAUe','push','saFIU','startsWith','error','../../helpers/helper','RtJVr','apply','isFalse','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','writeFileSync','inherit','win32','rRJqZ','../utils/constants','util','child_process','aSQwn','resolve','isTrue','accessibilityOptions','10311zcXZQn','unlinkSync','BROWSERSTACK_TEST_ACCESSIBILITY_YML','tkYaq','aoxum','XPLck','testContextOptions','Betbx','NAzDd','playwright','serializeToYamlString','true','--grep','yUHmt','OneKd','wjrty','eCaxB','../../helpers/test-observability/utils','nestedKeyValue','join','./accessibility-helper','eeQPM','aixtc','--config','../../helpers/testhub/testhubHandler','DhbDk','rxUXi','dirname','VzXtv','MODULE','BROWSERSTACK_SETUP_CONFIG_PATH','skipSessionName','Error\x20in\x20deleting\x20playwright\x20results','info','testObservability','orEAq','clearTempPWConfig','automation','yvUDZ','--disable-test-observability','markSDKSetupComplete','assign','isTypescriptProject','oTesO','8615340JRDzpi','npx','../../helpers/test-observability/constants','BROWSERSTACK_AUTOMATION','exitCode','getConfigPath','477096uhjhbQ','filter','homedir','gpsZb','eMOrb','accessibility','LVZvT','qOgTR','Ijmus','PLAYWRIGHT','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','map','argv','3112SJSakH','OCpps','isUndefined','ZkuDa','has','DwYRQ','splice','YqrTS','config','requirePWModule','XAHcV','bfNxa','AkhVV','../../helpers/logger','debug','fxddj','48305wPKQIr','split','280794QnhpgZ','skipSessionStatus','../../helpers/accessibility-automation/helper','playwright-browserstack-sdk.config.cjs','exports','readFileSync','Vtsdv','TbETe','path','finalExecution','Error\x20in\x20getting\x20funnel\x20data\x20results','trim','PACKAGE_TYPE','Fzfmz','4|7|0|1|5|8|3|6|2','306725Vgdrbx','initialize','../../helpers/test-observability/error-handler','BROWSERSTACK_PW_CONFIG_DIR','rgtqW','includes','POhQM','false','env','length','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','Error\x20in\x20closing\x20playwright','launchBuild','test','1114780DPTxUX','BROWSERSTACK_TEST_OBSERVABILITY','browserstackSetupConfig.json','114fOJlIN','Playwright\x20process\x20exited\x20with\x20code\x20','BROWSERSTACK_RERUN','cliConfig','slice'];a35_0x2cc9=function(){return _0x589943;};return a35_0x2cc9();}const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x1af99a(0x162)),{format}=require(a35_0x1af99a(0x161)),logger=require(a35_0x1af99a(0x119))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0x1af99a(0x157)),utilities=require('../../helpers/utilities'),constants=require(a35_0x1af99a(0x160)),{FRAMEWORKS}=require(a35_0x1af99a(0x195)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require(a35_0x1af99a(0x12f)),{getFrameworkVersion}=require(a35_0x1af99a(0x178)),{checkAccessibilityPlatformConfig}=require(a35_0x1af99a(0x120)),{setAccessibilityCapabilities}=require(a35_0x1af99a(0x17b)),TestHubHandler=require(a35_0x1af99a(0x17f)),{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),getUserPlaywrightConfig=async(_0x1aa8ab,_0x242900)=>{const _0x4a9e5c=a35_0x1af99a,_0x1bdc42={'ZkuDa':function(_0xaa8c97){return _0xaa8c97();},'aixtc':function(_0x404f5c,_0x689b98){return _0x404f5c(_0x689b98);},'ZegXE':'resolvedConfigFile','Ijmus':_0x4a9e5c(0x151)},_0x5bce4d=!helper['isUndefined'](_0x1aa8ab[_0x4a9e5c(0x1ae)]),_0x46655f=_0x5bce4d?path[_0x4a9e5c(0x164)](process[_0x4a9e5c(0x14c)](),_0x1aa8ab[_0x4a9e5c(0x1ae)]):process[_0x4a9e5c(0x14c)](),{resolveConfigFile:_0xac5913,resolveConfigLocation:_0x42dcfd}=helper[_0x4a9e5c(0x1af)][_0x4a9e5c(0x159)](null,_0x1bdc42[_0x4a9e5c(0x1a9)](getConfigLoaderPath)),_0x297ec6=_0xac5913?_0x1bdc42[_0x4a9e5c(0x17d)](_0xac5913,_0x46655f):helper[_0x4a9e5c(0x179)](_0x1bdc42['aixtc'](_0x42dcfd,_0x46655f),[_0x1bdc42[_0x4a9e5c(0x147)]]),_0x26ecf8={};if(_0x5bce4d){const _0x50f325=_0x242900['findIndex'](_0x17ad88=>_0x17ad88===_0x4a9e5c(0x17e)||_0x17ad88==='-c'||_0x17ad88[_0x4a9e5c(0x155)](_0x4a9e5c(0x151)));_0x242900[_0x4a9e5c(0x1ac)](_0x50f325,_0x242900[_0x50f325][_0x4a9e5c(0x155)](_0x1bdc42[_0x4a9e5c(0x1a1)])?0x1:0x2);}const _0x3dd4ec={};return _0x3dd4ec[_0x4a9e5c(0x126)]=_0x297ec6,_0x3dd4ec[_0x4a9e5c(0x1ae)]=_0x26ecf8,_0x3dd4ec;},handleO11yRerun=_0x40297c=>{const _0x6c2e3=a35_0x1af99a,_0x1e2f66={};_0x1e2f66[_0x6c2e3(0x176)]=function(_0x5d1fe5,_0x1314b5){return _0x5d1fe5!==_0x1314b5;},_0x1e2f66[_0x6c2e3(0x16e)]='null',_0x1e2f66['eevZH']=_0x6c2e3(0x173);const _0x23302e=_0x1e2f66,_0x2abb85=helper[_0x6c2e3(0x165)](process[_0x6c2e3(0x135)][_0x6c2e3(0x140)]);if(_0x2abb85){const _0x2a08f9=process[_0x6c2e3(0x135)][_0x6c2e3(0x14a)],_0x5ea7ce=[];if(_0x23302e['wjrty'](_0x2a08f9,_0x23302e[_0x6c2e3(0x16e)])&&!helper[_0x6c2e3(0x1a8)](_0x2a08f9)){_0x2a08f9['split'](',')[_0x6c2e3(0x1a4)](_0x1adce5=>{const _0x6c115f=_0x6c2e3;_0x5ea7ce[_0x6c115f(0x153)]('('+_0x1adce5[_0x6c115f(0x129)]()+')');});const _0x3c6235='^'+_0x5ea7ce[_0x6c2e3(0x17a)]('|')+'$';_0x40297c[_0x6c2e3(0x153)](_0x23302e['eevZH'],_0x3c6235);}}},spawnOriginalProcess=_0x1edae1=>{const _0x4d912e=a35_0x1af99a,_0x29a2a2={'POhQM':function(_0x173c3a,_0x304227,_0x4108cf,_0x303d43){return _0x173c3a(_0x304227,_0x4108cf,_0x303d43);},'XAHcV':_0x4d912e(0x194),'yUHmt':_0x4d912e(0x170),'ydXAq':function(_0x3efb49,_0x12dc7d){return _0x3efb49===_0x12dc7d;},'CqmAl':'win32','aSQwn':_0x4d912e(0x15d)};_0x29a2a2[_0x4d912e(0x133)](spawn,_0x29a2a2[_0x4d912e(0x1b0)],[_0x29a2a2[_0x4d912e(0x174)],..._0x1edae1['slice'](0x1)],{'shell':_0x29a2a2['ydXAq'](process['platform'],_0x29a2a2['CqmAl']),'stdio':_0x29a2a2[_0x4d912e(0x163)],'cwd':process['cwd']()});},isTestCommand=(_0x284ce1,_0x12492d)=>{const _0x513fe8=a35_0x1af99a,_0x19adb4={};_0x19adb4['eeQPM']=function(_0x392f75,_0x367a69){return _0x392f75>_0x367a69;},_0x19adb4[_0x513fe8(0x131)]=function(_0x511308,_0x317c5d){return _0x511308===_0x317c5d;},_0x19adb4[_0x513fe8(0x1ab)]='test';const _0x2fd1f1=_0x19adb4;if(_0x2fd1f1[_0x513fe8(0x17c)](_0x12492d[_0x513fe8(0x136)],0x1)&&_0x2fd1f1[_0x513fe8(0x131)](_0x12492d[0x1],_0x2fd1f1[_0x513fe8(0x1ab)]))return!![];return![];};async function run(_0x2b9035,_0x4a4ebd){const _0x51aeab=a35_0x1af99a,_0x2b51a7={'RtJVr':_0x51aeab(0x150),'Vtsdv':'pw_result.json','YqrTS':function(_0x4aeff2,_0x3fe640){return _0x4aeff2+_0x3fe640;},'gpsZb':_0x51aeab(0x128),'FSxGu':_0x51aeab(0x12c),'rxUXi':function(_0x5d2aa0){return _0x5d2aa0();},'lHsBn':_0x51aeab(0x138),'eZIyJ':_0x51aeab(0x14b),'AkhVV':_0x51aeab(0x134),'wHiqg':_0x51aeab(0x18e),'NAzDd':function(_0xb5741e,_0x2d6833){return _0xb5741e>=_0x2d6833;},'tkYaq':_0x51aeab(0x187),'eCaxB':function(_0x36fbd8,_0x13c853,_0x2247db){return _0x36fbd8(_0x13c853,_0x2247db);},'HiAUe':function(_0x18ac70,_0xa11f12){return _0x18ac70(_0xa11f12);},'eMOrb':_0x51aeab(0x149),'vVEyZ':_0x51aeab(0x18c),'XPLck':function(_0x888102,_0x53cb88){return _0x888102!=_0x53cb88;},'oTesO':function(_0x10540b,_0x5dcade,_0x222d9a){return _0x10540b(_0x5dcade,_0x222d9a);},'bfNxa':function(_0x46be15,_0xe6bf36){return _0x46be15===_0xe6bf36;},'Bvfmv':_0x51aeab(0x172),'rvLkG':function(_0x4c194c,_0x41813b){return _0x4c194c(_0x41813b);},'DhbDk':function(_0x4b41a7,_0x3cbfc6){return _0x4b41a7(_0x3cbfc6);},'OneKd':_0x51aeab(0x13d),'VzXtv':function(_0x2df151,_0x114a29){return _0x2df151===_0x114a29;},'saFIU':_0x51aeab(0x121),'TbETe':'playwright-browserstack-sdk.config.js','orEAq':function(_0xf09035,_0xaa9779){return _0xf09035-_0xaa9779;},'fxddj':function(_0x3ad2f4,_0x1d0551){return _0x3ad2f4+_0x1d0551;},'rRJqZ':_0x51aeab(0x14f),'LVZvT':function(_0x5ce680,_0x334fb9){return _0x5ce680>_0x334fb9;},'Pofkk':function(_0x17c34d,_0x4b2365){return _0x17c34d+_0x4b2365;},'qOgTR':function(_0x39e89c,_0x4915ec,_0x56dd00,_0x570cb3){return _0x39e89c(_0x4915ec,_0x56dd00,_0x570cb3);},'aoxum':'npx','bXszw':_0x51aeab(0x170),'OCpps':_0x51aeab(0x13a),'wOXWL':_0x51aeab(0x17e),'Fzfmz':_0x51aeab(0x15e),'ikoVw':_0x51aeab(0x15d),'yvUDZ':'close'};!helper[_0x51aeab(0x15a)](process[_0x51aeab(0x135)][_0x51aeab(0x196)])&&(process[_0x51aeab(0x135)]['BROWSERSTACK_AUTOMATION']=!![]);process[_0x51aeab(0x1a5)][_0x51aeab(0x132)](_0x2b51a7[_0x51aeab(0x148)])&&(process[_0x51aeab(0x135)][_0x51aeab(0x196)]=_0x2b51a7['AkhVV'],_0x4a4ebd=_0x4a4ebd[_0x51aeab(0x19a)](_0x1e7c20=>_0x1e7c20!=='--disable-browserstack-automation'));const _0x2efe9c=_0x4a4ebd[_0x51aeab(0x143)](_0x2b51a7['wHiqg']);_0x2b51a7[_0x51aeab(0x16f)](_0x2efe9c,0x0)&&(process[_0x51aeab(0x135)][_0x51aeab(0x13c)]=_0x2b51a7[_0x51aeab(0x118)],_0x4a4ebd=_0x4a4ebd[_0x51aeab(0x19a)](_0x3b4ac2=>_0x3b4ac2!==_0x51aeab(0x18e)));try{const _0x1797ab=path[_0x51aeab(0x17a)](helper['homedir'](),_0x2b51a7['RtJVr'],_0x2b51a7[_0x51aeab(0x124)]);fs[_0x51aeab(0x145)](_0x1797ab)&&fs['unlinkSync'](_0x1797ab);}catch(_0x5b153a){logger[_0x51aeab(0x11a)](_0x2b51a7['YqrTS'](_0x2b51a7[_0x51aeab(0x16a)],_0x5b153a));}if(!_0x2b51a7[_0x51aeab(0x177)](isTestCommand,_0x2b9035,_0x4a4ebd)){_0x2b51a7['HiAUe'](spawnOriginalProcess,_0x4a4ebd);return;}const _0x4db6ba=new BrowserStackSetup(_0x2b9035,FRAMEWORKS[_0x51aeab(0x1a2)]);if(!_0x4db6ba[_0x51aeab(0x1ae)]){logger[_0x51aeab(0x156)](_0x2b51a7[_0x51aeab(0x19d)]);return;}await _0x4db6ba[_0x51aeab(0x12e)]();!helper[_0x51aeab(0x1a8)](_0x4db6ba[_0x51aeab(0x141)])&&_0x4db6ba[_0x51aeab(0x141)][_0x51aeab(0x1aa)](_0x2b51a7['vVEyZ'])&&(process[_0x51aeab(0x135)][_0x51aeab(0x196)]=_0x4db6ba[_0x51aeab(0x141)]['get'](_0x2b51a7['vVEyZ'])||!![]);_0x2b51a7[_0x51aeab(0x16c)](_0x4db6ba[_0x51aeab(0x1ae)]['testObservability'],null)&&!helper['isTrue'](process[_0x51aeab(0x135)][_0x51aeab(0x13c)])&&(process['env'][_0x51aeab(0x13c)]=process[_0x51aeab(0x135)][_0x51aeab(0x13c)]||_0x4db6ba['config'][_0x51aeab(0x189)]);const _0x4c1889=!helper['isFalse'](process[_0x51aeab(0x135)][_0x51aeab(0x13c)]);let _0x3ed666=![];_0x4db6ba[_0x51aeab(0x1ae)][_0x51aeab(0x19e)]&&(_0x3ed666=!![],process[_0x51aeab(0x135)][_0x51aeab(0x169)]=_0x4db6ba[_0x51aeab(0x1ae)][_0x51aeab(0x19e)]);_0x4db6ba[_0x51aeab(0x1ae)][_0x51aeab(0x166)]&&(process[_0x51aeab(0x135)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x4db6ba['config'][_0x51aeab(0x166)]));const _0x2214ad=_0x4a4ebd['concat'](),_0x36c2a8=await _0x2b51a7[_0x51aeab(0x192)](getUserPlaywrightConfig,_0x2b9035,_0x4a4ebd);if(helper[_0x51aeab(0x1a8)](_0x36c2a8)){_0x2b51a7['HiAUe'](spawnOriginalProcess,_0x2214ad);return;}const _0x3180cc=_0x36c2a8[_0x51aeab(0x126)]?path[_0x51aeab(0x182)](_0x36c2a8[_0x51aeab(0x126)]):process[_0x51aeab(0x14c)]();process[_0x51aeab(0x135)][_0x51aeab(0x130)]=_0x3180cc,await TestHubHandler[_0x51aeab(0x139)](FRAMEWORKS[_0x51aeab(0x1a2)],_0x4db6ba);_0x4c1889&&_0x2b51a7[_0x51aeab(0x152)](handleO11yRerun,_0x4a4ebd);let _0x456cae=_0x2b51a7[_0x51aeab(0x117)](process[_0x51aeab(0x135)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x2b51a7['Bvfmv']);_0x456cae=_0x456cae||_0x2b51a7['rvLkG'](checkAccessibilityPlatformConfig,_0x4db6ba[_0x51aeab(0x1ae)]),process[_0x51aeab(0x135)][_0x51aeab(0x169)]=_0x456cae;_0x456cae&&_0x2b51a7[_0x51aeab(0x180)](setAccessibilityCapabilities,_0x4db6ba['config']);const _0x2b1923=path[_0x51aeab(0x17a)](_0x36c2a8[_0x51aeab(0x126)]?path[_0x51aeab(0x182)](_0x36c2a8['path']):process[_0x51aeab(0x14c)](),_0x2b51a7[_0x51aeab(0x175)]);fs['writeFileSync'](_0x2b1923,helper[_0x51aeab(0x171)](_0x4db6ba['config'])),process[_0x51aeab(0x135)][_0x51aeab(0x185)]=_0x2b1923,helper[_0x51aeab(0x18b)]();let _0x2fe2c7='';_0x2b51a7['VzXtv'](helper['getPackageType'](),constants[_0x51aeab(0x12a)][_0x51aeab(0x184)])?_0x2fe2c7=_0x2b51a7[_0x51aeab(0x154)]:_0x2fe2c7=_0x2b51a7[_0x51aeab(0x125)];let _0x3a64cb='';if(helper[_0x51aeab(0x191)](_0x36c2a8[_0x51aeab(0x126)])){_0x3a64cb=_0x51aeab(0x137);const _0x59eccf=_0x2fe2c7[_0x51aeab(0x11d)]('.');_0x59eccf[_0x2b51a7[_0x51aeab(0x18a)](_0x59eccf['length'],0x1)]='ts',_0x2fe2c7=_0x59eccf['join']('.'),logger[_0x51aeab(0x11a)](_0x2b51a7[_0x51aeab(0x11b)](_0x2b51a7[_0x51aeab(0x15f)],_0x2fe2c7));}else _0x3a64cb=_0x51aeab(0x15b);const _0x3e0e94=path[_0x51aeab(0x17a)](_0x36c2a8[_0x51aeab(0x126)]?path[_0x51aeab(0x182)](_0x36c2a8['path']):process[_0x51aeab(0x14c)](),_0x2fe2c7);let _0x9f10bf=_0x36c2a8[_0x51aeab(0x126)]?_0x36c2a8[_0x51aeab(0x126)]:'';_0x9f10bf=_0x2b51a7[_0x51aeab(0x19f)](_0x9f10bf[_0x51aeab(0x136)],0x0)?path[_0x51aeab(0x164)](_0x9f10bf):'',process['env'][_0x51aeab(0x14d)]=_0x9f10bf;const _0x21c4b3=helper['getProxyUrl'](_0x4db6ba[_0x51aeab(0x1ae)]);_0x21c4b3&&(_0x3a64cb=_0x2b51a7[_0x51aeab(0x146)](_0x51aeab(0x1a3)+_0x21c4b3+'\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();',_0x3a64cb));helper['filterBrowserstackArgs']({},_0x4a4ebd),fs[_0x51aeab(0x15c)](_0x3e0e94,_0x3a64cb),helper[_0x51aeab(0x18f)]();const _0x2e821a=_0x2b51a7[_0x51aeab(0x1a0)](spawn,_0x2b51a7[_0x51aeab(0x16b)],[_0x2b51a7['bXszw'],_0x2b51a7[_0x51aeab(0x1a7)],_0x2b51a7['wOXWL'],_0x3e0e94,..._0x4a4ebd[_0x51aeab(0x142)](0x2)],{'shell':_0x2b51a7[_0x51aeab(0x183)](process['platform'],_0x2b51a7[_0x51aeab(0x12b)]),'stdio':_0x2b51a7['ikoVw'],'cwd':process[_0x51aeab(0x14c)](),'env':Object[_0x51aeab(0x190)]({},process[_0x51aeab(0x135)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x51aeab(0x198)](_0x2b9035),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4db6ba[_0x51aeab(0x1ae)][_0x51aeab(0x16d)][_0x51aeab(0x11f)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4db6ba[_0x51aeab(0x1ae)][_0x51aeab(0x16d)][_0x51aeab(0x186)],'BROWSERSTACK_LOG_LEVEL':_0x4db6ba[_0x51aeab(0x1ae)]['logLevel']})}),_0x4e8b43=()=>{const _0x1dca64=_0x51aeab;try{const _0x320cf8=path[_0x1dca64(0x17a)](helper[_0x1dca64(0x19b)](),_0x2b51a7[_0x1dca64(0x158)],_0x2b51a7[_0x1dca64(0x124)]);if(fs[_0x1dca64(0x145)](_0x320cf8)){let _0x284db1=fs[_0x1dca64(0x123)](_0x320cf8);_0x284db1=JSON['parse'](_0x284db1),_0x4db6ba['errorMessage']=_0x284db1,fs['unlinkSync'](_0x320cf8);}}catch(_0x2c3e1a){logger['debug'](_0x2b51a7[_0x1dca64(0x1ad)](_0x2b51a7[_0x1dca64(0x19c)],_0x2c3e1a));}};_0x2e821a['on'](_0x2b51a7[_0x51aeab(0x18d)],async _0x4c4c9b=>{const _0x5bd46b=_0x51aeab;try{const _0x5849d3=_0x2b51a7['FSxGu'][_0x5bd46b(0x11d)]('|');let _0x11674c=0x0;while(!![]){switch(_0x5849d3[_0x11674c++]){case'0':await utilities[_0x5bd46b(0x127)](_0x4db6ba);continue;case'1':process[_0x5bd46b(0x197)]=_0x4c4c9b;continue;case'2':fs['unlinkSync'](_0x2b1923);continue;case'3':fs[_0x5bd46b(0x168)](_0x3e0e94);continue;case'4':_0x2b51a7[_0x5bd46b(0x181)](_0x4e8b43);continue;case'5':logger[_0x5bd46b(0x11a)](_0x5bd46b(0x13f)+_0x4c4c9b);continue;case'6':logger['debug'](_0x5bd46b(0x144)+_0x2b1923);continue;case'7':await TestHubHandler[_0x5bd46b(0x14e)]();continue;case'8':logger[_0x5bd46b(0x188)]('Deleting\x20'+_0x3e0e94);continue;}break;}}catch(_0x4bd9f3){logger[_0x5bd46b(0x11a)](_0x2b51a7[_0x5bd46b(0x1ad)](_0x2b51a7['lHsBn'],_0x4bd9f3));}});}module[a35_0x1af99a(0x122)]=run;
|
|
2
|
+
'use strict';const a35_0xa463fa=a35_0x9082;(function(_0xb6d58c,_0x2ef2e8){const _0x3d158a=a35_0x9082,_0x778dbd=_0xb6d58c();while(!![]){try{const _0x2d3193=-parseInt(_0x3d158a(0x136))/0x1*(-parseInt(_0x3d158a(0x134))/0x2)+parseInt(_0x3d158a(0x13f))/0x3*(parseInt(_0x3d158a(0x153))/0x4)+-parseInt(_0x3d158a(0x144))/0x5+-parseInt(_0x3d158a(0x148))/0x6*(parseInt(_0x3d158a(0x115))/0x7)+parseInt(_0x3d158a(0xfa))/0x8+parseInt(_0x3d158a(0x140))/0x9+-parseInt(_0x3d158a(0xdd))/0xa*(parseInt(_0x3d158a(0x111))/0xb);if(_0x2d3193===_0x2ef2e8)break;else _0x778dbd['push'](_0x778dbd['shift']());}catch(_0x3f7ed9){_0x778dbd['push'](_0x778dbd['shift']());}}}(a35_0x34e7,0xb9172));function a35_0x9082(_0x436edf,_0x340e4e){const _0x34e7c3=a35_0x34e7();return a35_0x9082=function(_0x9082f,_0x55e459){_0x9082f=_0x9082f-0xc8;let _0x20d669=_0x34e7c3[_0x9082f];return _0x20d669;},a35_0x9082(_0x436edf,_0x340e4e);}const fs=require('fs'),path=require(a35_0xa463fa(0x123)),{spawn}=require(a35_0xa463fa(0x114)),{format}=require('util'),logger=require(a35_0xa463fa(0xf4))[a35_0xa463fa(0xdb)],{default:BrowserStackSetup}=require(a35_0xa463fa(0x12d)),helper=require(a35_0xa463fa(0xd8)),utilities=require(a35_0xa463fa(0x14d)),constants=require(a35_0xa463fa(0x129)),{FRAMEWORKS}=require(a35_0xa463fa(0x13b)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0xa463fa(0x143)),{CrashReporter}=require(a35_0xa463fa(0xd3)),{getFrameworkVersion}=require(a35_0xa463fa(0x138)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require(a35_0xa463fa(0x10d)),{shouldProcessEventForTesthub}=require(a35_0xa463fa(0xf1)),getUserPlaywrightConfig=async(_0x6b1062,_0x47b0de)=>{const _0x49a89c=a35_0xa463fa,_0x127b4b={'SdvIQ':function(_0x1c2b7e){return _0x1c2b7e();},'BcALl':function(_0x59a07f,_0x4be197){return _0x59a07f(_0x4be197);},'mlDKb':_0x49a89c(0xfb),'xSgRd':_0x49a89c(0x137)},_0x306aa4=!helper[_0x49a89c(0x142)](_0x6b1062['config']),_0x3c3976=_0x306aa4?path[_0x49a89c(0x125)](process[_0x49a89c(0x118)](),_0x6b1062[_0x49a89c(0x141)]):process[_0x49a89c(0x118)](),{resolveConfigFile:_0x4896f2,resolveConfigLocation:_0x1153e1}=helper[_0x49a89c(0x151)][_0x49a89c(0xde)](null,_0x127b4b[_0x49a89c(0x150)](getConfigLoaderPath)),_0x4f84bf=_0x4896f2?_0x127b4b['BcALl'](_0x4896f2,_0x3c3976):helper[_0x49a89c(0x14b)](_0x127b4b[_0x49a89c(0x15c)](_0x1153e1,_0x3c3976),[_0x127b4b[_0x49a89c(0xd5)]]),_0x1cf123={};if(_0x306aa4){const _0x4158e4=_0x47b0de['findIndex'](_0x3523c1=>_0x3523c1===_0x49a89c(0xec)||_0x3523c1==='-c'||_0x3523c1[_0x49a89c(0xce)](_0x49a89c(0x137)));_0x47b0de[_0x49a89c(0x135)](_0x4158e4,_0x47b0de[_0x4158e4][_0x49a89c(0xce)](_0x127b4b[_0x49a89c(0x11e)])?0x1:0x2);}const _0x49c89b={};return _0x49c89b[_0x49a89c(0x123)]=_0x4f84bf,_0x49c89b[_0x49a89c(0x141)]=_0x1cf123,_0x49c89b;},handleO11yRerun=_0x49b6b8=>{const _0x282af5=a35_0xa463fa,_0xafc75e={};_0xafc75e[_0x282af5(0x11f)]=function(_0x4b7715,_0x309c75){return _0x4b7715!==_0x309c75;},_0xafc75e['Ktnyd']='null',_0xafc75e[_0x282af5(0x10e)]='--grep';const _0x37488e=_0xafc75e,_0xd1bbf7=helper[_0x282af5(0x147)](process[_0x282af5(0xd4)]['BROWSERSTACK_RERUN']);if(_0xd1bbf7){const _0x566740=process[_0x282af5(0xd4)]['BROWSERSTACK_RERUN_TESTS'],_0x2ee188=[];if(_0x37488e['OPXob'](_0x566740,_0x37488e[_0x282af5(0x15e)])&&!helper[_0x282af5(0x142)](_0x566740)){_0x566740[_0x282af5(0xe5)](',')[_0x282af5(0x10a)](_0x565635=>{const _0x2b5b79=_0x282af5;_0x2ee188[_0x2b5b79(0x158)]('('+_0x565635[_0x2b5b79(0x15f)]()+')');});const _0x26b942='^'+_0x2ee188['join']('|')+'$';_0x49b6b8[_0x282af5(0x158)](_0x37488e[_0x282af5(0x10e)],_0x26b942);}}},spawnOriginalProcess=_0x2f1997=>{const _0x1c43f0=a35_0xa463fa,_0x15938c={'VHbFq':function(_0x3237b0,_0xe4af8a,_0x261d1f,_0x31d6e6){return _0x3237b0(_0xe4af8a,_0x261d1f,_0x31d6e6);},'uqylL':_0x1c43f0(0x11c),'HFxSY':_0x1c43f0(0x11d),'LaZGK':function(_0x3d9bb4,_0x455c1c){return _0x3d9bb4===_0x455c1c;},'ygkBc':_0x1c43f0(0xda),'jTIiS':_0x1c43f0(0x112)};_0x15938c[_0x1c43f0(0x131)](spawn,_0x15938c[_0x1c43f0(0xe6)],[_0x15938c[_0x1c43f0(0x139)],..._0x2f1997[_0x1c43f0(0x11a)](0x1)],{'shell':_0x15938c[_0x1c43f0(0x15d)](process['platform'],_0x15938c[_0x1c43f0(0xf2)]),'stdio':_0x15938c[_0x1c43f0(0xc8)],'cwd':process[_0x1c43f0(0x118)]()});},isTestCommand=(_0x39d075,_0x124d88)=>{const _0xe78861=a35_0xa463fa,_0x1ce43d={};_0x1ce43d[_0xe78861(0x133)]=function(_0x3d3656,_0x5e5855){return _0x3d3656>_0x5e5855;},_0x1ce43d[_0xe78861(0xf5)]=function(_0x55206a,_0x1b75d7){return _0x55206a===_0x1b75d7;},_0x1ce43d[_0xe78861(0x164)]=_0xe78861(0xeb);const _0xa9bd4f=_0x1ce43d;if(_0xa9bd4f[_0xe78861(0x133)](_0x124d88[_0xe78861(0xf0)],0x1)&&_0xa9bd4f[_0xe78861(0xf5)](_0x124d88[0x1],_0xa9bd4f['xFfVQ']))return!![];return![];};async function run(_0xab064,_0x56fe5f){const _0x52d68c=a35_0xa463fa,_0x98f4a8={'jHKrp':'.browserstack','jbNHh':_0x52d68c(0x165),'HmrBG':function(_0x519201,_0x3d2791){return _0x519201+_0x3d2791;},'uSMQX':'Error\x20in\x20getting\x20funnel\x20data\x20results','tGRge':_0x52d68c(0x15b),'BicYb':function(_0x138711){return _0x138711();},'qdzpK':_0x52d68c(0x122),'syfwF':_0x52d68c(0x132),'XbodK':'false','IzjnT':'--disable-test-observability','glfkP':function(_0x5045ae,_0x3435a9){return _0x5045ae>=_0x3435a9;},'Uwuox':function(_0x56791f,_0x36c2e8){return _0x56791f+_0x36c2e8;},'tXAIr':_0x52d68c(0x157),'JnFFH':function(_0x345ab0,_0x313e31,_0x69d6a7){return _0x345ab0(_0x313e31,_0x69d6a7);},'jRSjF':function(_0x3b18a1,_0xa4b702){return _0x3b18a1(_0xa4b702);},'hauTQ':_0x52d68c(0xdf),'vgttr':'automation','qzbZC':function(_0x1c493f,_0x1b8eb8){return _0x1c493f!=_0x1b8eb8;},'lvbtU':function(_0xadb4a5,_0x5249b3,_0x520590){return _0xadb4a5(_0x5249b3,_0x520590);},'edlkW':function(_0xca68bc,_0x4c25a9){return _0xca68bc(_0x4c25a9);},'SAtXf':function(_0x353229,_0x2c075b){return _0x353229===_0x2c075b;},'JDLte':_0x52d68c(0x124),'tZtgn':function(_0x5aada5,_0xd7fc66){return _0x5aada5(_0xd7fc66);},'aWnXE':_0x52d68c(0xe8),'NOkOn':function(_0x522554,_0x3aa2ca){return _0x522554===_0x3aa2ca;},'gvmDe':_0x52d68c(0xfc),'qkrSo':_0x52d68c(0xe3),'Usxne':function(_0x58a308,_0x2383c5){return _0x58a308-_0x2383c5;},'FwtZW':'Updated\x20config\x20file\x20name\x20to\x20-\x20','gZKFU':function(_0x403b74,_0x227c49){return _0x403b74>_0x227c49;},'ezear':function(_0x192acd,_0x1f5d92,_0x1a34df,_0x1de1c5){return _0x192acd(_0x1f5d92,_0x1a34df,_0x1de1c5);},'UjfPx':_0x52d68c(0x11c),'uGCbG':'playwright','BdgMN':_0x52d68c(0xeb),'VUenr':_0x52d68c(0xec),'fuChf':function(_0x13bd5b,_0x542113){return _0x13bd5b===_0x542113;},'fXAvt':'win32','SXGDt':_0x52d68c(0x112),'bJfzJ':_0x52d68c(0xdc)};!helper[_0x52d68c(0xe0)](process[_0x52d68c(0xd4)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x52d68c(0xd4)][_0x52d68c(0x15a)]=!![]);process[_0x52d68c(0x156)][_0x52d68c(0x161)](_0x98f4a8[_0x52d68c(0xd0)])&&(process[_0x52d68c(0xd4)][_0x52d68c(0x15a)]=_0x98f4a8[_0x52d68c(0x12b)],_0x56fe5f=_0x56fe5f[_0x52d68c(0xc9)](_0x1d1aaa=>_0x1d1aaa!==_0x52d68c(0x132)));const _0x2f0258=_0x56fe5f[_0x52d68c(0x160)](_0x98f4a8[_0x52d68c(0xfd)]);_0x98f4a8[_0x52d68c(0xd9)](_0x2f0258,0x0)&&(process[_0x52d68c(0xd4)][_0x52d68c(0xfe)]=_0x98f4a8['XbodK'],_0x56fe5f=_0x56fe5f[_0x52d68c(0xc9)](_0x41d0bf=>_0x41d0bf!==_0x52d68c(0xd6)));try{const _0x437a1a=path[_0x52d68c(0x107)](helper[_0x52d68c(0x13d)](),_0x98f4a8[_0x52d68c(0x11b)],_0x98f4a8[_0x52d68c(0x106)]);fs[_0x52d68c(0x155)](_0x437a1a)&&fs[_0x52d68c(0x102)](_0x437a1a);}catch(_0x337aaf){logger[_0x52d68c(0xf3)](_0x98f4a8[_0x52d68c(0xe7)](_0x98f4a8[_0x52d68c(0x14c)],_0x337aaf));}if(!_0x98f4a8['JnFFH'](isTestCommand,_0xab064,_0x56fe5f)){_0x98f4a8[_0x52d68c(0xe9)](spawnOriginalProcess,_0x56fe5f);return;}const _0x50581f=new BrowserStackSetup(_0xab064,FRAMEWORKS[_0x52d68c(0x14f)]);if(!_0x50581f[_0x52d68c(0x141)]){logger[_0x52d68c(0x128)](_0x98f4a8['hauTQ']);return;}await _0x50581f['initialize']();!helper[_0x52d68c(0x142)](_0x50581f[_0x52d68c(0x12c)])&&_0x50581f[_0x52d68c(0x12c)][_0x52d68c(0xd1)](_0x98f4a8[_0x52d68c(0x116)])&&(process['env'][_0x52d68c(0x15a)]=_0x50581f[_0x52d68c(0x12c)][_0x52d68c(0x13e)](_0x98f4a8[_0x52d68c(0x116)])||!![]);_0x98f4a8[_0x52d68c(0x149)](_0x50581f['config'][_0x52d68c(0x10b)],null)&&!helper[_0x52d68c(0x147)](process[_0x52d68c(0xd4)][_0x52d68c(0xfe)])&&(process['env'][_0x52d68c(0xfe)]=process['env']['BROWSERSTACK_TEST_OBSERVABILITY']||_0x50581f[_0x52d68c(0x141)]['testObservability']);const _0x3df49f=!helper[_0x52d68c(0xe0)](process[_0x52d68c(0xd4)][_0x52d68c(0xfe)]);let _0x276a22=![];_0x50581f[_0x52d68c(0x141)][_0x52d68c(0x120)]&&(_0x276a22=!![],process[_0x52d68c(0xd4)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x50581f[_0x52d68c(0x141)][_0x52d68c(0x120)]);_0x50581f[_0x52d68c(0x141)]['accessibilityOptions']&&(process[_0x52d68c(0xd4)][_0x52d68c(0x108)]=JSON[_0x52d68c(0x10f)](_0x50581f['config'][_0x52d68c(0x109)]));const _0x133c39=_0x56fe5f['concat'](),_0x53bb1a=await _0x98f4a8[_0x52d68c(0xd2)](getUserPlaywrightConfig,_0xab064,_0x56fe5f);if(helper[_0x52d68c(0x142)](_0x53bb1a)){_0x98f4a8[_0x52d68c(0xcf)](spawnOriginalProcess,_0x133c39);return;}const _0xc9c965=_0x53bb1a['path']?path[_0x52d68c(0x126)](_0x53bb1a[_0x52d68c(0x123)]):process['cwd']();process[_0x52d68c(0xd4)][_0x52d68c(0xef)]=_0xc9c965,await TestHubHandler[_0x52d68c(0x12f)](FRAMEWORKS[_0x52d68c(0x14f)],_0x50581f);_0x3df49f&&_0x98f4a8[_0x52d68c(0xe9)](handleO11yRerun,_0x56fe5f);let _0x5946f7=_0x98f4a8['SAtXf'](process[_0x52d68c(0xd4)][_0x52d68c(0xed)],_0x98f4a8[_0x52d68c(0x13a)]);_0x5946f7=_0x5946f7||_0x98f4a8['tZtgn'](checkAccessibilityPlatformConfig,_0x50581f['config']),process['env'][_0x52d68c(0xed)]=_0x5946f7;_0x5946f7&&_0x98f4a8[_0x52d68c(0xcf)](setAccessibilityCapabilities,_0x50581f[_0x52d68c(0x141)]);const _0x461cdb=path[_0x52d68c(0x107)](_0x53bb1a['path']?path[_0x52d68c(0x126)](_0x53bb1a[_0x52d68c(0x123)]):process[_0x52d68c(0x118)](),_0x98f4a8[_0x52d68c(0x13c)]);fs['writeFileSync'](_0x461cdb,helper['serializeToYamlString'](_0x50581f[_0x52d68c(0x141)])),process[_0x52d68c(0xd4)][_0x52d68c(0x113)]=_0x461cdb,helper[_0x52d68c(0x12a)]();let _0x719c69='';_0x98f4a8['NOkOn'](helper[_0x52d68c(0xcc)](),constants[_0x52d68c(0xe1)][_0x52d68c(0x119)])?_0x719c69=_0x98f4a8[_0x52d68c(0x101)]:_0x719c69=_0x98f4a8[_0x52d68c(0x166)];let _0x4f16e4='';if(helper[_0x52d68c(0xe4)](_0x53bb1a[_0x52d68c(0x123)])){_0x4f16e4=_0x52d68c(0x127);const _0x5f1158=_0x719c69['split']('.');_0x5f1158[_0x98f4a8['Usxne'](_0x5f1158[_0x52d68c(0xf0)],0x1)]='ts',_0x719c69=_0x5f1158[_0x52d68c(0x107)]('.'),logger[_0x52d68c(0xf3)](_0x98f4a8['HmrBG'](_0x98f4a8[_0x52d68c(0x145)],_0x719c69));}else _0x4f16e4=_0x52d68c(0xea);const _0x355db0=path[_0x52d68c(0x107)](_0x53bb1a[_0x52d68c(0x123)]?path['dirname'](_0x53bb1a[_0x52d68c(0x123)]):process['cwd'](),_0x719c69);let _0x2cfa3b=_0x53bb1a[_0x52d68c(0x123)]?_0x53bb1a[_0x52d68c(0x123)]:'';_0x2cfa3b=_0x98f4a8[_0x52d68c(0x103)](_0x2cfa3b['length'],0x0)?path['resolve'](_0x2cfa3b):'',process[_0x52d68c(0xd4)][_0x52d68c(0xff)]=_0x2cfa3b;const _0x2449c1=helper[_0x52d68c(0x121)](_0x50581f[_0x52d68c(0x141)]);_0x2449c1&&(_0x4f16e4=_0x98f4a8[_0x52d68c(0xe7)](_0x52d68c(0x130)+_0x2449c1+_0x52d68c(0xcb),_0x4f16e4));helper[_0x52d68c(0x12e)]({},_0x56fe5f),fs[_0x52d68c(0xd7)](_0x355db0,_0x4f16e4),helper[_0x52d68c(0x162)]();const _0x560c6c=_0x98f4a8['ezear'](spawn,_0x98f4a8[_0x52d68c(0x159)],[_0x98f4a8[_0x52d68c(0x100)],_0x98f4a8[_0x52d68c(0x152)],_0x98f4a8[_0x52d68c(0xca)],_0x355db0,..._0x56fe5f[_0x52d68c(0x11a)](0x2)],{'shell':_0x98f4a8[_0x52d68c(0xcd)](process['platform'],_0x98f4a8[_0x52d68c(0x163)]),'stdio':_0x98f4a8['SXGDt'],'cwd':process[_0x52d68c(0x118)](),'env':Object[_0x52d68c(0xee)]({},process[_0x52d68c(0xd4)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0xab064),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x50581f['config'][_0x52d68c(0x14e)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x50581f[_0x52d68c(0x141)]['testContextOptions'][_0x52d68c(0x10c)],'BROWSERSTACK_LOG_LEVEL':_0x50581f[_0x52d68c(0x141)][_0x52d68c(0xf8)]})}),_0x3a13db=()=>{const _0x3387ed=_0x52d68c;try{const _0x37565d=path[_0x3387ed(0x107)](helper[_0x3387ed(0x13d)](),_0x98f4a8[_0x3387ed(0x11b)],_0x98f4a8[_0x3387ed(0x106)]);if(fs[_0x3387ed(0x155)](_0x37565d)){let _0xc4beaf=fs[_0x3387ed(0xf9)](_0x37565d);_0xc4beaf=JSON[_0x3387ed(0xf7)](_0xc4beaf),_0x50581f[_0x3387ed(0x14a)]=_0xc4beaf,fs[_0x3387ed(0x102)](_0x37565d);}}catch(_0xdf9257){logger[_0x3387ed(0xf3)](_0x98f4a8[_0x3387ed(0xe2)](_0x98f4a8['uSMQX'],_0xdf9257));}};_0x560c6c['on'](_0x98f4a8[_0x52d68c(0x105)],async _0x211b18=>{const _0x42c790=_0x52d68c;try{const _0x26e353=_0x98f4a8[_0x42c790(0x154)]['split']('|');let _0x378bb8=0x0;while(!![]){switch(_0x26e353[_0x378bb8++]){case'0':await utilities[_0x42c790(0xf6)](_0x50581f);continue;case'1':fs[_0x42c790(0x102)](_0x355db0);continue;case'2':_0x98f4a8['BicYb'](_0x3a13db);continue;case'3':logger['debug']('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x211b18);continue;case'4':await TestHubHandler[_0x42c790(0x104)]();continue;case'5':process[_0x42c790(0x110)]=_0x211b18;continue;case'6':logger['info'](_0x42c790(0x146)+_0x355db0);continue;case'7':logger[_0x42c790(0xf3)](_0x42c790(0x146)+_0x461cdb);continue;case'8':fs[_0x42c790(0x102)](_0x461cdb);continue;}break;}}catch(_0x3f5cd7){logger[_0x42c790(0xf3)](_0x98f4a8[_0x42c790(0xe2)](_0x98f4a8['qdzpK'],_0x3f5cd7));}});}module[a35_0xa463fa(0x117)]=run;function a35_0x34e7(){const _0xc42fe7=['../../helpers/logger','xIeDp','finalExecution','parse','logLevel','readFileSync','5902800VyjPbb','resolvedConfigFile','playwright-browserstack-sdk.config.cjs','IzjnT','BROWSERSTACK_TEST_OBSERVABILITY','USER_CONFIG_DETAILS_PATH','uGCbG','gvmDe','unlinkSync','gZKFU','stop','bJfzJ','jbNHh','join','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','accessibilityOptions','map','testObservability','skipSessionName','../../helpers/testhub/testhubHandler','FqMeS','stringify','exitCode','2224123kTGCsQ','inherit','BROWSERSTACK_SETUP_CONFIG_PATH','child_process','518XMSfXR','vgttr','exports','cwd','MODULE','slice','jHKrp','npx','playwright','xSgRd','OPXob','accessibility','getProxyUrl','Error\x20in\x20closing\x20playwright','path','true','resolve','dirname','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','error','../utils/constants','clearTempPWConfig','XbodK','cliConfig','../../helpers/BrowserStackSetup','filterBrowserstackArgs','launchBuild','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','VHbFq','--disable-browserstack-automation','UJkQn','2oAZJad','splice','451957kIqdIc','--config=','../../helpers/test-observability/utils','HFxSY','JDLte','../../helpers/test-observability/constants','aWnXE','homedir','get','12imsBhk','12340665sbLHTl','config','isUndefined','./reporter/pwUtils','1964480BSjvRL','FwtZW','Deleting\x20','isTrue','87234LsHrjc','qzbZC','errorMessage','nestedKeyValue','tXAIr','../../helpers/utilities','testContextOptions','PLAYWRIGHT','SdvIQ','requirePWModule','BdgMN','474692iHYdcs','tGRge','existsSync','argv','Error\x20in\x20deleting\x20playwright\x20results','push','UjfPx','BROWSERSTACK_AUTOMATION','2|4|0|5|3|6|1|7|8','BcALl','LaZGK','Ktnyd','trim','indexOf','includes','markSDKSetupComplete','fXAvt','xFfVQ','pw_result.json','qkrSo','jTIiS','filter','VUenr','\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();','getPackageType','fuChf','startsWith','edlkW','syfwF','has','lvbtU','../../helpers/test-observability/error-handler','env','mlDKb','--disable-test-observability','writeFileSync','../../helpers/helper','glfkP','win32','winstonLogger','close','40riJGrm','apply','BrowserStack\x20config\x20file\x20not\x20found.','isFalse','PACKAGE_TYPE','HmrBG','playwright-browserstack-sdk.config.js','isTypescriptProject','split','uqylL','Uwuox','browserstackSetupConfig.json','jRSjF','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','test','--config','BROWSERSTACK_TEST_ACCESSIBILITY_YML','assign','BROWSERSTACK_PW_CONFIG_DIR','length','../../helpers/testhub/utils','ygkBc','debug'];a35_0x34e7=function(){return _0xc42fe7;};return a35_0x34e7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a36_0x3881(){const _0x21c3dd=['17502YSgvSd','EpuLZ','isHandlePWErrorSet','./mock-process.js','2940948YHWxBL','HanmU','1.33.0','14XabcgV','Running\x20existing\x20global\x20setup','gRYjY','includes','rEmXK','apply','config','mnHlM','uwwxV','PLAYWRIGHT','dZzCp','20ugTYub','format','./patches','1502433XStRUl','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','iLGWq','env','Path\x20','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','./reporter/pwUtils','function','1650985jotyLL','Call\x20to\x20child\x20fork\x20with\x20args\x20','2499550ZgtWZK','error','Hktyl','compareVersions','../../helpers/logger','resolve','../../helpers/test-observability/utils','zOeSl','toString','requirePWModule','2720608iuMeSF','AQsqY','4JEtXXJ','494289TucwAX','../../helpers/test-observability/constants','util','\x20is\x20not\x20found','fork','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','exports','child_process','HRFGV'];a36_0x3881=function(){return _0x21c3dd;};return a36_0x3881();}const a36_0x58159f=a36_0x5829;function a36_0x5829(_0x2de432,_0x2fe5b7){const _0x388182=a36_0x3881();return a36_0x5829=function(_0x5829a6,_0x477777){_0x5829a6=_0x5829a6-0x8b;let _0x26ea1f=_0x388182[_0x5829a6];return _0x26ea1f;},a36_0x5829(_0x2de432,_0x2fe5b7);}(function(_0x33c57d,_0x1382c7){const _0x588ab5=a36_0x5829,_0x2a840a=_0x33c57d();while(!![]){try{const _0x4aeb01=-parseInt(_0x588ab5(0xa0))/0x1+-parseInt(_0x588ab5(0xbb))/0x2*(parseInt(_0x588ab5(0xa9))/0x3)+-parseInt(_0x588ab5(0x9f))/0x4*(parseInt(_0x588ab5(0x91))/0x5)+parseInt(_0x588ab5(0xad))/0x6+parseInt(_0x588ab5(0xb0))/0x7*(parseInt(_0x588ab5(0x9d))/0x8)+-parseInt(_0x588ab5(0xbe))/0x9+parseInt(_0x588ab5(0x93))/0xa;if(_0x4aeb01===_0x1382c7)break;else _0x2a840a['push'](_0x2a840a['shift']());}catch(_0xe8dc63){_0x2a840a['push'](_0x2a840a['shift']());}}}(a36_0x3881,0x5a746));const util=require(a36_0x58159f(0xa2)),child_process=require(a36_0x58159f(0xa7)),{FRAMEWORKS}=require(a36_0x58159f(0xa1)),{getFrameworkVersion,debug}=require(a36_0x58159f(0x99)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x58159f(0x8f)),{mockIsWorkerRedundant}=require(a36_0x58159f(0xbd)),logger=require(a36_0x58159f(0x97))['winstonLogger'];module[a36_0x58159f(0xa6)]=async function(_0x56cee7){const _0x193f5b=a36_0x58159f,_0x3b04d7={'gRYjY':function(_0x4d87b4,_0x2dcec4){return _0x4d87b4(_0x2dcec4);},'mnHlM':function(_0x2a307f){return _0x2a307f();},'Hktyl':_0x193f5b(0xac),'dZzCp':function(_0x145754){return _0x145754();},'MdbHJ':function(_0x2587a5,_0x4cb8bd){return _0x2587a5(_0x4cb8bd);},'HRFGV':_0x193f5b(0xb1),'rEmXK':function(_0x38e7d4,_0x30c499){return _0x38e7d4(_0x30c499);},'EpuLZ':function(_0x1668e2,_0x119aae){return _0x1668e2>=_0x119aae;},'uwwxV':_0x193f5b(0xaf),'zOeSl':function(_0xe48c7b,_0x244973,_0x279c5c){return _0xe48c7b(_0x244973,_0x279c5c);},'iLGWq':function(_0x9dbc16,_0x762011){return _0x9dbc16!==_0x762011;},'AQsqY':_0x193f5b(0x90),'HanmU':'Not\x20able\x20to\x20import\x20globalSetup'},_0x15613a=child_process[_0x193f5b(0xa4)];if(helper[_0x193f5b(0xab)]())try{_0x3b04d7[_0x193f5b(0xba)](mockIsWorkerRedundant);}catch(_0x15f737){logger['debug'](_0x193f5b(0x8e)+util[_0x193f5b(0xbc)](_0x15f737));}child_process[_0x193f5b(0xa4)]=function(){const _0x1325e4=_0x193f5b;return _0x3b04d7[_0x1325e4(0xb2)](debug,_0x1325e4(0x92)+arguments[0x0]),arguments[0x0][_0x1325e4(0xb3)](_0x3b04d7[_0x1325e4(0xb7)](getForkProcessPath))?arguments[0x0]=require[_0x1325e4(0x98)](_0x3b04d7[_0x1325e4(0x95)]):logger[_0x1325e4(0x94)](_0x1325e4(0x8d)+_0x3b04d7[_0x1325e4(0xba)](getForkProcessPath)+_0x1325e4(0xa3)),_0x15613a['apply'](null,arguments);};if(process[_0x193f5b(0x8c)][_0x193f5b(0xbf)]){_0x3b04d7['MdbHJ'](debug,_0x3b04d7[_0x193f5b(0xa8)]);try{const {loadGlobalHook:_0x99140a}=helper[_0x193f5b(0x9c)][_0x193f5b(0xb5)](null,_0x3b04d7['mnHlM'](getLoadUtilsPath)),_0x2ec006=_0x3b04d7[_0x193f5b(0xb4)](getFrameworkVersion,FRAMEWORKS[_0x193f5b(0xb9)]);let _0x1158d0=_0x56cee7;if(_0x3b04d7[_0x193f5b(0xaa)](helper[_0x193f5b(0x96)](_0x2ec006,_0x3b04d7[_0x193f5b(0xb8)]),0x0)){const _0x5b744f={};_0x5b744f[_0x193f5b(0xb6)]=_0x56cee7,_0x1158d0=_0x5b744f;}const _0xf2aeed=await _0x3b04d7[_0x193f5b(0x9a)](_0x99140a,_0x1158d0,process[_0x193f5b(0x8c)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x3b04d7[_0x193f5b(0x8b)](typeof _0xf2aeed,_0x3b04d7[_0x193f5b(0x9e)]))throw new Error(_0x3b04d7[_0x193f5b(0xae)]);return _0xf2aeed[_0x193f5b(0xb5)](null,arguments);}catch(_0x41237d){_0x3b04d7[_0x193f5b(0xb2)](debug,_0x193f5b(0xa5)+_0x41237d[_0x193f5b(0x9b)]());}}};
|