browserstack-node-sdk 1.34.20 → 1.34.22
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/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_0x12bd76=a29_0x1f7d;(function(_0x314d3c,_0x5ae33b){const _0x5ccbb2=a29_0x1f7d,_0x5bbf27=_0x314d3c();while(!![]){try{const _0x37bf9c=-parseInt(_0x5ccbb2(0x181))/0x1*(-parseInt(_0x5ccbb2(0x1af))/0x2)+-parseInt(_0x5ccbb2(0x1d5))/0x3+parseInt(_0x5ccbb2(0x1bb))/0x4+parseInt(_0x5ccbb2(0x1ce))/0x5*(parseInt(_0x5ccbb2(0x170))/0x6)+-parseInt(_0x5ccbb2(0x199))/0x7*(-parseInt(_0x5ccbb2(0x1b7))/0x8)+parseInt(_0x5ccbb2(0x18f))/0x9+-parseInt(_0x5ccbb2(0x1b4))/0xa*(parseInt(_0x5ccbb2(0x178))/0xb);if(_0x37bf9c===_0x5ae33b)break;else _0x5bbf27['push'](_0x5bbf27['shift']());}catch(_0x2ec503){_0x5bbf27['push'](_0x5bbf27['shift']());}}}(a29_0x14f8,0x9c1a5));function a29_0x1f7d(_0x3dc9ce,_0xa16357){const _0x14f86f=a29_0x14f8();return a29_0x1f7d=function(_0x1f7dc6,_0x1b6f65){_0x1f7dc6=_0x1f7dc6-0x16d;let _0x1108a1=_0x14f86f[_0x1f7dc6];return _0x1108a1;},a29_0x1f7d(_0x3dc9ce,_0xa16357);}const logger=require(a29_0x12bd76(0x18e))['winstonLogger'],helper=require(a29_0x12bd76(0x1d2)),constants=require(a29_0x12bd76(0x18d)),hubAllocator=require(a29_0x12bd76(0x1e7)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x12bd76(0x1bd)),{setAccessibilityCapabilities,setExtension}=require(a29_0x12bd76(0x1a3)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require('../../../helpers/globals'),{overrideExecute}=require(a29_0x12bd76(0x1dc)),modify=(_0x40c401,_0x5166b9=null,_0x5c7914=![])=>{const _0x2baf62=a29_0x12bd76,_0x524a1e={'bTiyI':function(_0x35e40b,_0x400f78){return _0x35e40b!==_0x400f78;},'iKdCn':_0x2baf62(0x197),'RxfYf':function(_0x40e5a8,_0x4ddac4){return _0x40e5a8+_0x4ddac4;},'jpGrt':function(_0x388bbd,_0x2d6e8c){return _0x388bbd+_0x2d6e8c;},'TcDVL':_0x2baf62(0x17f),'YDRXP':_0x2baf62(0x1a8),'GIRgU':_0x2baf62(0x1bc),'jtgon':_0x2baf62(0x19b),'GLWGB':'ms:edgeOptions','zTrMJ':_0x2baf62(0x188),'bNwGf':_0x2baf62(0x1b0),'RYjbd':_0x2baf62(0x1ab),'WFZWP':'safari.options','aVuBx':_0x2baf62(0x18b),'Ivoks':_0x2baf62(0x1e6),'JpTOQ':function(_0x2da47e,_0x171650){return _0x2da47e===_0x171650;},'ziFSr':'object','CAXlb':'Setting\x20Browserstack\x20capabilities','nDwPs':function(_0x40603c,_0x3de6d9,_0x280ab7){return _0x40603c(_0x3de6d9,_0x280ab7);},'hLfAU':function(_0x14cd80,_0x5e6497,_0x22269e){return _0x14cd80(_0x5e6497,_0x22269e);},'xoCZL':_0x2baf62(0x16f),'nrWcz':_0x2baf62(0x1c3),'nPEIE':function(_0x5d710f,_0x466e35,_0x50d415){return _0x5d710f(_0x466e35,_0x50d415);},'bRUZZ':_0x2baf62(0x171),'yxvlK':function(_0x4ae7f4,_0x5c63a0){return _0x4ae7f4(_0x5c63a0);},'eRJDZ':_0x2baf62(0x174),'RERIv':function(_0x58f55b){return _0x58f55b();},'TmCEg':_0x2baf62(0x19f),'OOQKy':function(_0x1a656b,_0x1c3fc9,_0x2db1e4){return _0x1a656b(_0x1c3fc9,_0x2db1e4);},'EJEUY':_0x2baf62(0x18a),'yrXKc':function(_0x50e97b,_0x82ef9d){return _0x50e97b!==_0x82ef9d;},'dtQte':_0x2baf62(0x1c0),'uUuDp':_0x2baf62(0x1eb)},_0x2ae426=helper[_0x2baf62(0x182)]();let _0x546892;try{_0x546892=helper[_0x2baf62(0x1b1)](),_0x546892['originalBuilder']&&(_0x546892['Builder']=_0x546892['originalBuilder']);}catch(_0x4bbd75){return;}if(helper[_0x2baf62(0x1a4)]()){const _0x20d25b={};_0x20d25b[_0x2baf62(0x16e)]=_0x40c401[_0x2baf62(0x19a)],helper[_0x2baf62(0x184)](_0x20d25b,new Map(),new Map()),logger['info'](_0x524a1e[_0x2baf62(0x186)]),logger['debug'](_0x524a1e[_0x2baf62(0x1df)]);}class _0x25e2a6 extends _0x2ae426[_0x2baf62(0x18c)]{[_0x2baf62(0x187)](_0x35194b){const _0x32c6cf=_0x2baf62;if(_0x524a1e['bTiyI'](_0x35194b[_0x32c6cf(0x183)],_0x524a1e[_0x32c6cf(0x1e2)])&&_0x524a1e[_0x32c6cf(0x1aa)](global[_0x32c6cf(0x1d8)],''))try{global[_0x32c6cf(0x1d8)]=_0x524a1e[_0x32c6cf(0x194)](_0x524a1e[_0x32c6cf(0x176)](_0x524a1e['TcDVL'],global[_0x32c6cf(0x1d8)]),_0x524a1e[_0x32c6cf(0x1a9)]),this[_0x32c6cf(0x1dd)]=hubAllocator[_0x32c6cf(0x1e4)](global[_0x32c6cf(0x1d8)]),logger[_0x32c6cf(0x180)](_0x32c6cf(0x1ed)+global['newHubUrl']),global['newHubUrl']='';}catch(_0x50e450){logger[_0x32c6cf(0x1a2)](_0x50e450);}return super['send'](_0x35194b);}}class _0x464ba9 extends _0x546892['Builder']{['setServer'](){const _0x5deb9a=_0x2baf62;return this['url_']=helper[_0x5deb9a(0x1ec)](_0x40c401),logger['debug']('Hub\x20url\x20set\x20to\x20'+this[_0x5deb9a(0x1e9)]),this;}['__setBrowserOptions'](_0x4d2ab3){const _0x57c514=_0x2baf62;let _0x247631={};for(const _0x47215a in _0x4d2ab3){switch(_0x47215a){case _0x524a1e[_0x57c514(0x191)]:case _0x524a1e['jtgon']:this['chromeOptions_']&&(_0x247631=this[_0x57c514(0x1cf)][_0x57c514(0x1b9)](this[_0x57c514(0x1cf)][_0x57c514(0x1d0)])||{},this[_0x57c514(0x1cf)][_0x57c514(0x1ac)](this[_0x57c514(0x1cf)][_0x57c514(0x1d0)],helper[_0x57c514(0x1b6)](_0x247631,_0x4d2ab3[_0x47215a])));break;case _0x524a1e['GLWGB']:case _0x524a1e['zTrMJ']:this[_0x57c514(0x17b)]&&(_0x247631=this[_0x57c514(0x17b)][_0x57c514(0x1b9)](this[_0x57c514(0x17b)][_0x57c514(0x1d0)])||{},this[_0x57c514(0x17b)][_0x57c514(0x1ac)](this[_0x57c514(0x17b)][_0x57c514(0x1d0)],helper[_0x57c514(0x1b6)](_0x247631,_0x4d2ab3[_0x47215a])));break;case _0x524a1e[_0x57c514(0x1d4)]:case _0x524a1e[_0x57c514(0x179)]:this['firefoxOptions_']&&(_0x247631=this[_0x57c514(0x1b5)]['get'](this[_0x57c514(0x1b5)]['CAPABILITY_KEY'])||{},this[_0x57c514(0x1b5)]['set'](this[_0x57c514(0x1b5)]['CAPABILITY_KEY'],helper[_0x57c514(0x1b6)](_0x247631,_0x4d2ab3[_0x47215a])));break;case _0x524a1e[_0x57c514(0x1d1)]:this[_0x57c514(0x1cd)]&&(_0x247631=this[_0x57c514(0x1cd)][_0x57c514(0x1b9)](this[_0x57c514(0x1cd)][_0x57c514(0x1d0)])||{},this[_0x57c514(0x1cd)][_0x57c514(0x1ac)](this[_0x57c514(0x1cd)][_0x57c514(0x1d0)],helper[_0x57c514(0x1b6)](_0x247631,_0x4d2ab3[_0x47215a])));break;case _0x524a1e[_0x57c514(0x1a5)]:case _0x524a1e[_0x57c514(0x1da)]:this['ieOptions_']&&(_0x247631=this[_0x57c514(0x19e)]['get'](this[_0x57c514(0x19e)][_0x57c514(0x1d0)])||{},this[_0x57c514(0x19e)][_0x57c514(0x1ac)](this[_0x57c514(0x19e)][_0x57c514(0x1d0)],helper[_0x57c514(0x1b6)](_0x247631,_0x4d2ab3[_0x47215a])));break;}}}[_0x2baf62(0x1c4)](){const _0x59b53f=_0x2baf62,_0x1f45a0={'DgwPt':function(_0x49b867,_0xf46d0e){return _0x524a1e['JpTOQ'](_0x49b867,_0xf46d0e);},'lMROb':_0x524a1e[_0x59b53f(0x1c7)]};return logger[_0x59b53f(0x180)](_0x524a1e[_0x59b53f(0x1ae)]),this[_0x59b53f(0x173)](_0x40c401['capability']),Object[_0x59b53f(0x1a7)](_0x40c401['capability'])[_0x59b53f(0x1b2)](_0xb3eb8f=>{const _0xf1865a=_0x59b53f,_0x18c1ec=this['capabilities_'][_0xf1865a(0x1b9)](_0xb3eb8f);_0x1f45a0[_0xf1865a(0x1b8)](typeof _0x18c1ec,_0x1f45a0[_0xf1865a(0x1cc)])?this[_0xf1865a(0x185)][_0xf1865a(0x1ac)](_0xb3eb8f,helper[_0xf1865a(0x1b6)](_0x18c1ec,_0x40c401['capability'][_0xb3eb8f])):this[_0xf1865a(0x185)][_0xf1865a(0x1ac)](_0xb3eb8f,_0x40c401[_0xf1865a(0x195)][_0xb3eb8f]);}),this;}['build'](){const _0x11e4d9=_0x2baf62,_0x2bbc26={'haXnK':_0x524a1e[_0x11e4d9(0x190)],'peTLb':_0x524a1e[_0x11e4d9(0x1c9)],'woLvj':function(_0x30c2df,_0xaee81a,_0x5ad9b6){return _0x524a1e['hLfAU'](_0x30c2df,_0xaee81a,_0x5ad9b6);},'ukRZG':function(_0x2b3a45,_0x2bb71d,_0x294a00){return _0x524a1e['nPEIE'](_0x2b3a45,_0x2bb71d,_0x294a00);},'LcNoQ':_0x524a1e[_0x11e4d9(0x1e1)],'bFBEe':function(_0x33c117,_0x13fea7){const _0x2fc3b9=_0x11e4d9;return _0x524a1e[_0x2fc3b9(0x1c5)](_0x33c117,_0x13fea7);}};if(helper[_0x11e4d9(0x1a4)]()){const _0x13fa24=_0x524a1e[_0x11e4d9(0x17e)][_0x11e4d9(0x1de)]('|');let _0x893ea5=0x0;while(!![]){switch(_0x13fa24[_0x893ea5++]){case'0':if(helper['isPacProxy'](_0x40c401[_0x11e4d9(0x1be)][_0x11e4d9(0x1e3)]))this[_0x11e4d9(0x1d9)]=helper[_0x11e4d9(0x1c6)](_0x40c401['proxySettings'][_0x11e4d9(0x1e3)]);else _0x40c401[_0x11e4d9(0x1be)][_0x11e4d9(0x1e3)]&&(this[_0x11e4d9(0x1e8)]=_0x40c401[_0x11e4d9(0x1be)]['proxyUrl'],logger[_0x11e4d9(0x180)](_0x11e4d9(0x1bf)+this[_0x11e4d9(0x1e8)]));continue;case'1':_0x524a1e['RERIv'](isAccessibilityAutomationSession)&&_0x524a1e[_0x11e4d9(0x1c5)](setAccessibilityCapabilities,_0x40c401);continue;case'2':globals[_0x11e4d9(0x17d)](_0x524a1e[_0x11e4d9(0x17c)])&&(!_0x524a1e[_0x11e4d9(0x17a)](setExtension,this,_0x40c401)&&globals[_0x11e4d9(0x1ba)](_0x524a1e['TmCEg'],![]));continue;case'3':logger[_0x11e4d9(0x180)](_0x524a1e[_0x11e4d9(0x19c)]);continue;case'4':this[_0x11e4d9(0x1c4)]();continue;case'5':this[_0x11e4d9(0x1d3)]();continue;}break;}}const _0x38ea09=super[_0x11e4d9(0x192)]();return _0x38ea09[_0x11e4d9(0x1db)][_0x11e4d9(0x189)](_0x5edd48=>{const _0x5d7d85=_0x11e4d9;try{const _0x15ef06=_0x5edd48['caps_'][_0x5d7d85(0x1b9)](_0x2bbc26['haXnK']);_0x15ef06?(logger['debug'](_0x5d7d85(0x1a0)+_0x15ef06),hubAllocator[_0x5d7d85(0x198)](_0x15ef06),helper[_0x5d7d85(0x1d6)](_0x15ef06)):logger[_0x5d7d85(0x180)](_0x2bbc26['peTLb']);}catch(_0x27b4d9){logger[_0x5d7d85(0x180)](_0x5d7d85(0x1ea)+_0x27b4d9);}}),_0x38ea09[_0x11e4d9(0x1a1)]=0x0,_0x38ea09[_0x11e4d9(0x189)]&&_0x38ea09[_0x11e4d9(0x189)](_0x104b28=>{const _0x23907c=_0x11e4d9,_0xf6d955=_0x2bbc26['LcNoQ']['split']('|');let _0x3698a4=0x0;while(!![]){switch(_0xf6d955[_0x3698a4++]){case'0':_0x2bbc26[_0x23907c(0x177)](overrideTakeScreenshot,_0x104b28);continue;case'1':_0x104b28[_0x23907c(0x1ad)]=async()=>{return await _0x2bbc26['ukRZG'](getAccessibilityResults,_0x104b28,global);};continue;case'2':helper[_0x23907c(0x1e0)](_0x104b28,_0x40c401);continue;case'3':_0x2bbc26[_0x23907c(0x1d7)](overrideQuit,_0x104b28,_0x38ea09);continue;case'4':_0x104b28['getAccessibilityResultsSummary']=async()=>{const _0x423a5b=_0x23907c;return await _0x2bbc26[_0x423a5b(0x16d)](getAccessibilityResultsSummary,_0x104b28,global);};continue;case'5':_0x2bbc26[_0x23907c(0x16d)](overrideExecute,_0x104b28,_0x40c401);continue;}break;}}),_0x38ea09[_0x11e4d9(0x1cb)]=async()=>{const _0x50e80e=_0x11e4d9;return await _0x524a1e[_0x50e80e(0x1ca)](getAccessibilityResultsSummary,_0x38ea09,global);},_0x38ea09['getAccessibilityResults']=async()=>{return await _0x524a1e['hLfAU'](getAccessibilityResults,_0x38ea09,global);},_0x524a1e[_0x11e4d9(0x1c5)](overrideTakeScreenshot,_0x38ea09),_0x524a1e[_0x11e4d9(0x1c5)](overrideQuit,_0x38ea09),helper[_0x11e4d9(0x1e0)](_0x38ea09,_0x40c401),_0x524a1e['OOQKy'](overrideExecute,_0x38ea09,_0x40c401),helper[_0x11e4d9(0x193)](global['__driversArray'])&&(global[_0x11e4d9(0x1a6)]=[]),helper['isUndefined'](global[_0x11e4d9(0x1c2)])&&(global[_0x11e4d9(0x1c2)]=[]),global[_0x11e4d9(0x1a6)][_0x11e4d9(0x19d)](_0x38ea09),global[_0x11e4d9(0x196)]=_0x38ea09,_0x524a1e[_0x11e4d9(0x1b3)](global[_0x11e4d9(0x1c2)],undefined)&&global[_0x11e4d9(0x1c2)]['push'](_0x38ea09),_0x5166b9&&helper['isUndefined'](_0x5166b9[_0x11e4d9(0x175)]['__driversArray'])&&(_0x5166b9[_0x11e4d9(0x175)][_0x11e4d9(0x1a6)]=[]),_0x5166b9&&_0x524a1e[_0x11e4d9(0x1aa)](_0x5166b9[_0x11e4d9(0x175)][_0x11e4d9(0x1c2)],undefined)&&(_0x5166b9['global'][_0x11e4d9(0x1c2)][_0x11e4d9(0x19d)](_0x38ea09),_0x5166b9[_0x11e4d9(0x175)][_0x11e4d9(0x1a6)][_0x11e4d9(0x19d)](_0x38ea09)),_0x38ea09;}}return _0x546892[_0x2baf62(0x172)]=_0x546892['Builder'],_0x546892[_0x2baf62(0x1c1)]=_0x464ba9,_0x2ae426[_0x2baf62(0x18c)]=_0x25e2a6,_0x546892;};function a29_0x14f8(){const _0x41f735=['/wd/hub','YDRXP','bTiyI','firefoxOptions','set','getAccessibilityResults','CAXlb','42586vKTUGi','moz:firefoxOptions','requireSeleniumWebdriver','forEach','yrXKc','478220movhPe','firefoxOptions_','mergeDeep','16HRuYkZ','DgwPt','get','setGlobal','3168208iHygAI','goog:chromeOptions','../../../helpers/patchHelpers','proxySettings','Proxy\x20set\x20to\x20','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','Builder','__drivers','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','setCapabilities','yxvlK','getHttpAgent','ziFSr','exports','nrWcz','nDwPs','getAccessibilityResultsSummary','lMROb','safariOptions_','235450QeELKF','chromeOptions_','CAPABILITY_KEY','WFZWP','../../../helpers/helper','setServer','bNwGf','1883865uhvxjL','storeOptimalHubUrl','ukRZG','newHubUrl','agent_','Ivoks','session_','./helpers/patchHelper','options_','split','uUuDp','overrideGet','bRUZZ','iKdCn','proxyUrl','getRequestOptions','browserstackAgentObservability','ieOptions','../../../hubAllocationMethods','proxy_','url_','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','Modifying\x20webdriver\x20builder','getHubUrl','New\x20hub\x20url\x20set\x20to\x20','woLvj','logLevel','optimalHubUrl','6DXmBEL','3|0|2|5|4|1','originalBuilder','__setBrowserOptions','1|5|4|0|2|3','global','jpGrt','bFBEe','451iegwzX','RYjbd','OOQKy','edgeOptions_','TmCEg','getGlobal','eRJDZ','https://','debug','53JSCMgv','requireHttpClient','path','setLogLevel','capabilities_','dtQte','send','edgeOptions','then','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','se:ieOptions','HttpClient','../../../bin/utils/constants','../../../helpers/logger','2494809pzDQgQ','xoCZL','GIRgU','build','isUndefined','RxfYf','capability','__driver','/session','updateHubUrl','3441137BzOjkS','browserStackLogLevel','chromeOptions','EJEUY','push','ieOptions_','isAccessibilityPlatform','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','quitCount_','error','../accessibility-automation/helper','isBrowserstackInfra','aVuBx','__driversArray','keys'];a29_0x14f8=function(){return _0x41f735;};return a29_0x14f8();}module[a29_0x12bd76(0x1c8)][a29_0x12bd76(0x1e5)]=modify;
|
|
1
|
+
const a29_0xc68e19=a29_0x6bd7;(function(_0x5b8fcb,_0x26dae8){const _0x2593b8=a29_0x6bd7,_0x1b37bc=_0x5b8fcb();while(!![]){try{const _0xfe4475=parseInt(_0x2593b8(0xaa))/0x1*(parseInt(_0x2593b8(0xcb))/0x2)+-parseInt(_0x2593b8(0xa2))/0x3*(parseInt(_0x2593b8(0xf7))/0x4)+-parseInt(_0x2593b8(0xdb))/0x5*(-parseInt(_0x2593b8(0xb3))/0x6)+parseInt(_0x2593b8(0xee))/0x7*(-parseInt(_0x2593b8(0x9f))/0x8)+parseInt(_0x2593b8(0x9d))/0x9+-parseInt(_0x2593b8(0x8c))/0xa*(-parseInt(_0x2593b8(0xd5))/0xb)+parseInt(_0x2593b8(0xc9))/0xc;if(_0xfe4475===_0x26dae8)break;else _0x1b37bc['push'](_0x1b37bc['shift']());}catch(_0x23639a){_0x1b37bc['push'](_0x1b37bc['shift']());}}}(a29_0x1b09,0x4a0ee));function a29_0x1b09(){const _0x50d7be=['isBrowserstackInfra','DjjmR','winstonLogger','../../../helpers/accessibility-automation/helper','capability','epafx','HttpClient','path','chromeOptions','url_','proxy_','firefoxOptions','../../../helpers/logger','se:ieOptions','dJwZR','2500101oOxqjV','ACWGf','2552zIiScj','3|2|0|4|5|1','getGlobal','157299tiLcDy','optimalHubUrl','Rwjqz','edgeOptions','moz:firefoxOptions','Modifying\x20webdriver\x20builder','browserStackLogLevel','caps_','26711YdXSCx','__setBrowserOptions','originalBuilder','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','edgeOptions_','IjvRc','XeZOH','proxySettings','getRequestOptions','78ikTrFO','agent_','ms:edgeOptions','isPacProxy','setLogLevel','capabilities_','isAccessibilityPlatform','Hmvsp','getAccessibilityResults','split','/session','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','HeBqc','send','hehPw','set','aCgaR','jxHgK','FclSz','overrideGet','JBHnH','proxyUrl','383280GDwizA','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','14qaskyw','../accessibility-automation/helper','FpbFv','quitCount_','oFhJP','options_','../../../helpers/globals','newHubUrl','object','requireSeleniumWebdriver','11NWnWns','Setting\x20Browserstack\x20capabilities','tDqGD','setGlobal','Proxy\x20set\x20to\x20','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','13885LIOYrw','/wd/hub','debug','mergeDeep','zpMpy','lPZJn','ieOptions_','./helpers/patchHelper','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','__driver','safariOptions_','getHttpAgent','safari.options','CAPABILITY_KEY','../../../bin/utils/constants','aStci','jOBUc','BaBEP','firefoxOptions_','10689ppvXgA','https://','storeOptimalHubUrl','__driversArray','ZEjaB','Hub\x20url\x20set\x20to\x20','TpFBL','BfIlo','browserstackAgentObservability','24YdNUXh','then','exports','global','build','../../../helpers/helper','getAccessibilityResultsSummary','forEach','New\x20hub\x20url\x20set\x20to\x20','chromeOptions_','iavMi','goog:chromeOptions','setCapabilities','__drivers','isUndefined','KnXtE','setServer','get','UNXZv','dWRWj','Builder','LWYev','5722460JrpAnr','error'];a29_0x1b09=function(){return _0x50d7be;};return a29_0x1b09();}function a29_0x6bd7(_0x52958f,_0x5c1f2f){const _0x1b0980=a29_0x1b09();return a29_0x6bd7=function(_0x6bd7d5,_0x24088b){_0x6bd7d5=_0x6bd7d5-0x89;let _0x10b281=_0x1b0980[_0x6bd7d5];return _0x10b281;},a29_0x6bd7(_0x52958f,_0x5c1f2f);}const logger=require(a29_0xc68e19(0x9a))[a29_0xc68e19(0x90)],helper=require(a29_0xc68e19(0xfc)),constants=require(a29_0xc68e19(0xe9)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a29_0xc68e19(0xcc)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0xc68e19(0x91)),globals=require(a29_0xc68e19(0xd1)),{overrideExecute}=require(a29_0xc68e19(0xe2)),modify=(_0x23f71f,_0x16d0f6=null,_0x1e8c85=![])=>{const _0x245d9e=a29_0xc68e19,_0x2ae487={'jOBUc':function(_0x3ca082,_0xf01b73){return _0x3ca082!==_0xf01b73;},'iavMi':_0x245d9e(0xbd),'mjEqe':function(_0x246eb4,_0x4099fe){return _0x246eb4!==_0x4099fe;},'KnXtE':function(_0x59a753,_0x47e5bd){return _0x59a753+_0x47e5bd;},'ZEjaB':_0x245d9e(0xef),'tDqGD':_0x245d9e(0xdc),'lPZJn':_0x245d9e(0x102),'UasMb':_0x245d9e(0x96),'xqMrG':_0x245d9e(0xb5),'CTiIL':_0x245d9e(0xa5),'BaBEP':_0x245d9e(0xa6),'oFhJP':_0x245d9e(0x99),'Hmvsp':_0x245d9e(0xe7),'epafx':_0x245d9e(0x9b),'UNXZv':'ieOptions','uDTlm':function(_0x2c89b9,_0x6ec365){return _0x2c89b9===_0x6ec365;},'ACWGf':_0x245d9e(0xd3),'RKyon':_0x245d9e(0xd6),'jxHgK':function(_0x5b7447,_0x30f0e0,_0x55e6d1){return _0x5b7447(_0x30f0e0,_0x55e6d1);},'OJFsc':function(_0x5ba731,_0x54b0fd,_0xbdd4d0){return _0x5ba731(_0x54b0fd,_0xbdd4d0);},'aStci':function(_0x5f40fd,_0x21cf7c){return _0x5f40fd(_0x21cf7c);},'dWRWj':function(_0x4c2672,_0x35cdde,_0x241052){return _0x4c2672(_0x35cdde,_0x241052);},'pvSak':function(_0x2855a9,_0x165591,_0x67ae62){return _0x2855a9(_0x165591,_0x67ae62);},'HeBqc':_0x245d9e(0xa3),'hehPw':_0x245d9e(0xca),'zpMpy':function(_0x1facdc,_0x3b27e3,_0x4a4a1d){return _0x1facdc(_0x3b27e3,_0x4a4a1d);},'BfIlo':_0x245d9e(0xa0),'qIXVb':_0x245d9e(0xad),'LWYev':function(_0x2a4749){return _0x2a4749();},'TpFBL':function(_0x45fb2a,_0x155577){return _0x45fb2a(_0x155577);},'dJwZR':_0x245d9e(0xb9),'ryIjg':function(_0x374fdf,_0x5828f1){return _0x374fdf(_0x5828f1);},'Rwjqz':_0x245d9e(0xe3),'FclSz':_0x245d9e(0xa7)},_0x59eb50=helper['requireHttpClient']();let _0x56fcc2;try{_0x56fcc2=helper[_0x245d9e(0xd4)](),_0x56fcc2[_0x245d9e(0xac)]&&(_0x56fcc2[_0x245d9e(0x8a)]=_0x56fcc2[_0x245d9e(0xac)]);}catch(_0x25e10e){return;}if(helper[_0x245d9e(0x8e)]()){const _0x4cff00={};_0x4cff00['logLevel']=_0x23f71f[_0x245d9e(0xa8)],helper[_0x245d9e(0xb7)](_0x4cff00,new Map(),new Map()),logger['info'](_0x2ae487[_0x245d9e(0xa4)]),logger[_0x245d9e(0xdd)](_0x2ae487[_0x245d9e(0xc5)]);}class _0x1347ae extends _0x59eb50[_0x245d9e(0x94)]{[_0x245d9e(0xc0)](_0x3c0aeb){const _0x46d7ff=_0x245d9e;if(_0x2ae487[_0x46d7ff(0xeb)](_0x3c0aeb[_0x46d7ff(0x95)],_0x2ae487[_0x46d7ff(0x101)])&&_0x2ae487['mjEqe'](global[_0x46d7ff(0xd2)],''))try{global['newHubUrl']=_0x2ae487[_0x46d7ff(0x106)](_0x2ae487[_0x46d7ff(0x106)](_0x2ae487[_0x46d7ff(0xf2)],global[_0x46d7ff(0xd2)]),_0x2ae487[_0x46d7ff(0xd7)]),this[_0x46d7ff(0xd0)]=hubAllocator[_0x46d7ff(0xb2)](global['newHubUrl']),logger[_0x46d7ff(0xdd)](_0x46d7ff(0xff)+global[_0x46d7ff(0xd2)]),global[_0x46d7ff(0xd2)]='';}catch(_0x50c974){logger[_0x46d7ff(0x8d)](_0x50c974);}return super['send'](_0x3c0aeb);}}class _0x21983b extends _0x56fcc2[_0x245d9e(0x8a)]{[_0x245d9e(0x107)](){const _0xe90d17=_0x245d9e;return this[_0xe90d17(0x97)]=helper['getHubUrl'](_0x23f71f),logger['debug'](_0xe90d17(0xf3)+this[_0xe90d17(0x97)]),this;}[_0x245d9e(0xab)](_0xe161c7){const _0x46ffa3=_0x245d9e;let _0x4b0504={};for(const _0x3f539c in _0xe161c7){switch(_0x3f539c){case _0x2ae487[_0x46ffa3(0xe0)]:case _0x2ae487['UasMb']:this[_0x46ffa3(0x100)]&&(_0x4b0504=this[_0x46ffa3(0x100)]['get'](this[_0x46ffa3(0x100)][_0x46ffa3(0xe8)])||{},this[_0x46ffa3(0x100)][_0x46ffa3(0xc2)](this[_0x46ffa3(0x100)]['CAPABILITY_KEY'],helper[_0x46ffa3(0xde)](_0x4b0504,_0xe161c7[_0x3f539c])));break;case _0x2ae487['xqMrG']:case _0x2ae487['CTiIL']:this[_0x46ffa3(0xae)]&&(_0x4b0504=this[_0x46ffa3(0xae)][_0x46ffa3(0x108)](this[_0x46ffa3(0xae)][_0x46ffa3(0xe8)])||{},this[_0x46ffa3(0xae)]['set'](this[_0x46ffa3(0xae)][_0x46ffa3(0xe8)],helper[_0x46ffa3(0xde)](_0x4b0504,_0xe161c7[_0x3f539c])));break;case _0x2ae487[_0x46ffa3(0xec)]:case _0x2ae487[_0x46ffa3(0xcf)]:this[_0x46ffa3(0xed)]&&(_0x4b0504=this[_0x46ffa3(0xed)][_0x46ffa3(0x108)](this['firefoxOptions_'][_0x46ffa3(0xe8)])||{},this[_0x46ffa3(0xed)][_0x46ffa3(0xc2)](this[_0x46ffa3(0xed)][_0x46ffa3(0xe8)],helper[_0x46ffa3(0xde)](_0x4b0504,_0xe161c7[_0x3f539c])));break;case _0x2ae487[_0x46ffa3(0xba)]:this[_0x46ffa3(0xe5)]&&(_0x4b0504=this[_0x46ffa3(0xe5)][_0x46ffa3(0x108)](this[_0x46ffa3(0xe5)]['CAPABILITY_KEY'])||{},this[_0x46ffa3(0xe5)]['set'](this[_0x46ffa3(0xe5)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x4b0504,_0xe161c7[_0x3f539c])));break;case _0x2ae487[_0x46ffa3(0x93)]:case _0x2ae487[_0x46ffa3(0x109)]:this['ieOptions_']&&(_0x4b0504=this['ieOptions_'][_0x46ffa3(0x108)](this[_0x46ffa3(0xe1)]['CAPABILITY_KEY'])||{},this[_0x46ffa3(0xe1)][_0x46ffa3(0xc2)](this[_0x46ffa3(0xe1)][_0x46ffa3(0xe8)],helper[_0x46ffa3(0xde)](_0x4b0504,_0xe161c7[_0x3f539c])));break;}}}[_0x245d9e(0x103)](){const _0x32a671=_0x245d9e,_0x41377e={'JBHnH':function(_0x310527,_0x8d83f7){return _0x2ae487['uDTlm'](_0x310527,_0x8d83f7);},'DjjmR':_0x2ae487[_0x32a671(0x9e)]};return logger[_0x32a671(0xdd)](_0x2ae487['RKyon']),this[_0x32a671(0xab)](_0x23f71f[_0x32a671(0x92)]),Object['keys'](_0x23f71f[_0x32a671(0x92)])[_0x32a671(0xfe)](_0x3d5df2=>{const _0x3e1fd6=_0x32a671,_0x5bcd43=this[_0x3e1fd6(0xb8)][_0x3e1fd6(0x108)](_0x3d5df2);_0x41377e[_0x3e1fd6(0xc7)](typeof _0x5bcd43,_0x41377e[_0x3e1fd6(0x8f)])?this[_0x3e1fd6(0xb8)]['set'](_0x3d5df2,helper[_0x3e1fd6(0xde)](_0x5bcd43,_0x23f71f['capability'][_0x3d5df2])):this[_0x3e1fd6(0xb8)][_0x3e1fd6(0xc2)](_0x3d5df2,_0x23f71f[_0x3e1fd6(0x92)][_0x3d5df2]);}),this;}['build'](){const _0xd87456=_0x245d9e,_0x1bd623={'IjvRc':_0x2ae487[_0xd87456(0xbf)],'aCgaR':_0x2ae487[_0xd87456(0xc1)],'bOpfw':function(_0x4a3aac,_0x3d7233,_0x2f00e9){const _0x18f7d2=_0xd87456;return _0x2ae487[_0x18f7d2(0xdf)](_0x4a3aac,_0x3d7233,_0x2f00e9);},'XeZOH':function(_0x423429,_0x5b5176,_0x5aeac0){return _0x2ae487['jxHgK'](_0x423429,_0x5b5176,_0x5aeac0);}};if(helper[_0xd87456(0x8e)]()){const _0x58ff6e=_0x2ae487[_0xd87456(0xf5)][_0xd87456(0xbc)]('|');let _0x42301e=0x0;while(!![]){switch(_0x58ff6e[_0x42301e++]){case'0':this[_0xd87456(0x103)]();continue;case'1':logger[_0xd87456(0xdd)](_0x2ae487['qIXVb']);continue;case'2':this[_0xd87456(0x107)]();continue;case'3':_0x2ae487[_0xd87456(0x8b)](isAccessibilityAutomationSession)&&_0x2ae487[_0xd87456(0xf4)](setAccessibilityCapabilities,_0x23f71f);continue;case'4':if(helper[_0xd87456(0xb6)](_0x23f71f[_0xd87456(0xb1)][_0xd87456(0xc8)]))this[_0xd87456(0xb4)]=helper[_0xd87456(0xe6)](_0x23f71f[_0xd87456(0xb1)][_0xd87456(0xc8)]);else _0x23f71f[_0xd87456(0xb1)][_0xd87456(0xc8)]&&(this[_0xd87456(0x98)]=_0x23f71f[_0xd87456(0xb1)]['proxyUrl'],logger[_0xd87456(0xdd)](_0xd87456(0xd9)+this[_0xd87456(0x98)]));continue;case'5':globals[_0xd87456(0xa1)](_0x2ae487[_0xd87456(0x9c)])&&(!_0x2ae487[_0xd87456(0xc4)](setExtension,this,_0x23f71f)&&globals[_0xd87456(0xd8)](_0x2ae487[_0xd87456(0x9c)],![]));continue;}break;}}const _0x2352eb=super[_0xd87456(0xfb)]();return _0x2352eb['session_'][_0xd87456(0xf8)](_0x3c4d2c=>{const _0x34dc0d=_0xd87456;try{const _0x3ad281=_0x3c4d2c[_0x34dc0d(0xa9)]['get'](_0x1bd623[_0x34dc0d(0xaf)]);_0x3ad281?(logger['debug'](_0x34dc0d(0xbe)+_0x3ad281),hubAllocator['updateHubUrl'](_0x3ad281),helper[_0x34dc0d(0xf0)](_0x3ad281)):logger[_0x34dc0d(0xdd)](_0x1bd623[_0x34dc0d(0xc3)]);}catch(_0x52d290){logger['debug'](_0x34dc0d(0xda)+_0x52d290);}}),_0x2352eb[_0xd87456(0xce)]=0x0,_0x2352eb[_0xd87456(0xf8)]&&_0x2352eb['then'](_0x2fc561=>{const _0x509efa=_0xd87456,_0x114d99={'FpbFv':function(_0xd6c16d,_0x17bff8,_0x4f352d){return _0x2ae487['jxHgK'](_0xd6c16d,_0x17bff8,_0x4f352d);}};_0x2ae487['OJFsc'](overrideQuit,_0x2fc561,_0x2352eb),_0x2ae487[_0x509efa(0xea)](overrideTakeScreenshot,_0x2fc561),helper[_0x509efa(0xc6)](_0x2fc561,_0x23f71f),_0x2ae487[_0x509efa(0x89)](overrideExecute,_0x2fc561,_0x23f71f),_0x2fc561['getAccessibilityResultsSummary']=async()=>{const _0x135e0a=_0x509efa;return await _0x114d99[_0x135e0a(0xcd)](getAccessibilityResultsSummary,_0x2fc561,global);},_0x2fc561[_0x509efa(0xbb)]=async()=>{return await _0x1bd623['bOpfw'](getAccessibilityResults,_0x2fc561,global);};}),_0x2352eb[_0xd87456(0xfd)]=async()=>{return await _0x2ae487['pvSak'](getAccessibilityResultsSummary,_0x2352eb,global);},_0x2352eb['getAccessibilityResults']=async()=>{const _0x3e10cb=_0xd87456;return await _0x1bd623[_0x3e10cb(0xb0)](getAccessibilityResults,_0x2352eb,global);},_0x2ae487['TpFBL'](overrideTakeScreenshot,_0x2352eb),_0x2ae487['ryIjg'](overrideQuit,_0x2352eb),helper[_0xd87456(0xc6)](_0x2352eb,_0x23f71f),_0x2ae487[_0xd87456(0x89)](overrideExecute,_0x2352eb,_0x23f71f),helper['isUndefined'](global[_0xd87456(0xf1)])&&(global[_0xd87456(0xf1)]=[]),helper[_0xd87456(0x105)](global[_0xd87456(0x104)])&&(global[_0xd87456(0x104)]=[]),global[_0xd87456(0xf1)]['push'](_0x2352eb),global[_0xd87456(0xe4)]=_0x2352eb,_0x2ae487[_0xd87456(0xeb)](global[_0xd87456(0x104)],undefined)&&global[_0xd87456(0x104)]['push'](_0x2352eb),_0x16d0f6&&helper[_0xd87456(0x105)](_0x16d0f6['global'][_0xd87456(0xf1)])&&(_0x16d0f6['global'][_0xd87456(0xf1)]=[]),_0x16d0f6&&_0x2ae487[_0xd87456(0xeb)](_0x16d0f6[_0xd87456(0xfa)][_0xd87456(0x104)],undefined)&&(_0x16d0f6[_0xd87456(0xfa)][_0xd87456(0x104)]['push'](_0x2352eb),_0x16d0f6[_0xd87456(0xfa)]['__driversArray']['push'](_0x2352eb)),_0x2352eb;}}return _0x56fcc2[_0x245d9e(0xac)]=_0x56fcc2[_0x245d9e(0x8a)],_0x56fcc2['Builder']=_0x21983b,_0x59eb50[_0x245d9e(0x94)]=_0x1347ae,_0x56fcc2;};module[a29_0xc68e19(0xf9)][a29_0xc68e19(0xf6)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x2ef678=a30_0x19e0;function a30_0x19e0(_0x348c60,_0x3a42bd){const _0x4e2f6b=a30_0x4e2f();return a30_0x19e0=function(_0x19e039,_0x4a8391){_0x19e039=_0x19e039-0x1e4;let _0x5ea7a4=_0x4e2f6b[_0x19e039];return _0x5ea7a4;},a30_0x19e0(_0x348c60,_0x3a42bd);}(function(_0x199120,_0x4b0644){const _0x59efe5=a30_0x19e0,_0x17640f=_0x199120();while(!![]){try{const _0x55b887=parseInt(_0x59efe5(0x1f2))/0x1*(-parseInt(_0x59efe5(0x1f3))/0x2)+parseInt(_0x59efe5(0x1ed))/0x3*(-parseInt(_0x59efe5(0x1f1))/0x4)+-parseInt(_0x59efe5(0x1ee))/0x5*(-parseInt(_0x59efe5(0x1e7))/0x6)+-parseInt(_0x59efe5(0x1f4))/0x7+-parseInt(_0x59efe5(0x1e4))/0x8*(parseInt(_0x59efe5(0x1ef))/0x9)+parseInt(_0x59efe5(0x1eb))/0xa+parseInt(_0x59efe5(0x1e5))/0xb;if(_0x55b887===_0x4b0644)break;else _0x17640f['push'](_0x17640f['shift']());}catch(_0x4c0290){_0x17640f['push'](_0x17640f['shift']());}}}(a30_0x4e2f,0x6bf20));function a30_0x4e2f(){const _0x44c2b1=['143168rfgAzx','6WOccWQ','2113363whEIfX','518792oKWuIg','8127944oGYXGV','timeout','131538QDnMug','mochaHooks','Prefk','../../../bin/utils/constants','6837810GpwhGO','../../../helpers/request-spy','364263TmZdLn','115jhlHxc','54jiMFIj','../../../helpers/test-observability/utils','12zCUBFl'];a30_0x4e2f=function(){return _0x44c2b1;};return a30_0x4e2f();}const requestSpy=require(a30_0x2ef678(0x1ec)),constants=require(a30_0x2ef678(0x1ea)),{addRequestSpy}=require(a30_0x2ef678(0x1f0));exports[a30_0x2ef678(0x1e8)]={'beforeAll'(){const _0x10b114=a30_0x2ef678,_0x1aed87={'Prefk':function(_0x1082ac){return _0x1082ac();}},_0x3f7efe='browserstack internal helper hook';_0x1aed87[_0x10b114(0x1e9)](addRequestSpy);},'afterAll'(){const _0x3daeee=a30_0x2ef678,_0x2831b6='browserstack internal helper hook';this[_0x3daeee(0x1e6)](0xea60),requestSpy['restore']();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a31_0x3970(){const _0x8c222e=['2398eDhDeH','hookAnalyticsId','Iolph','parent','EqYwW','../../../helpers/test-observability/utils','sendPlatformDetails','tests','4269568hmmIBH','getBrowserName','1178772pqVqmf','YJGRO','unknown_grid','concat','__cloud_provider___','getTestEnv','QOCFb','toISOString','UPugk','OLJgO','zapeu','hook:','getCapabilities','forEach','slice','generic','rdvfh','push','EThUI','360798eyelJQ','state','getHooksForTest','../../../helpers/helper','passed','reduce','BcnVn','14ZLofOr','iJfSj','10wDBWJl','30uhKtOS','ykfrg','js-','hook','pid','aGBbz','indexOf','DXuVN','15458508UCyqEW','failed','mapTestHooks','keys','8NAwRrl','SxQRE','21830XyrxNL','ttgZz','_beforeEach','KeEAi','ohCaJ','../../utils/logPatcher','bs:addPlatformDetails:','_beforeAll','filter','type','../../../helpers/testhub/utils','QlEpD','EhLlI','xxcVs','markedStatus','pending','_afterAll','map_','SbNwE','browserstack','KonMP','suites','getHookDetails','split','uuid','ZGyaj','../../../helpers/test-observability/constants','getPlatform','toJSON','gAZZo','getHookSkippedTests','getBrowserVersion','_afterEach','2672118zVCwrs','yBwDA','uipZN','NBLnb','43683qyqosh'];a31_0x3970=function(){return _0x8c222e;};return a31_0x3970();}const a31_0x2c6032=a31_0xa26f;(function(_0x553207,_0x4691ec){const _0x468c49=a31_0xa26f,_0x5398e1=_0x553207();while(!![]){try{const _0x144c95=parseInt(_0x468c49(0x198))/0x1*(-parseInt(_0x468c49(0x1c0))/0x2)+-parseInt(_0x468c49(0x1a3))/0x3*(-parseInt(_0x468c49(0x1cc))/0x4)+parseInt(_0x468c49(0x1bf))/0x5*(parseInt(_0x468c49(0x1b6))/0x6)+-parseInt(_0x468c49(0x1bd))/0x7*(parseInt(_0x468c49(0x1a1))/0x8)+-parseInt(_0x468c49(0x194))/0x9+-parseInt(_0x468c49(0x1ce))/0xa*(-parseInt(_0x468c49(0x199))/0xb)+parseInt(_0x468c49(0x1c8))/0xc;if(_0x144c95===_0x4691ec)break;else _0x5398e1['push'](_0x5398e1['shift']());}catch(_0x48f803){_0x5398e1['push'](_0x5398e1['shift']());}}}(a31_0x3970,0x9edb6));const {v4:uuidv4}=require(a31_0x2c6032(0x18b)),{name,version}=require('../../../../package.json'),logPatcher=require(a31_0x2c6032(0x1d3)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x2c6032(0x19e)),{consoleHolder}=require(a31_0x2c6032(0x18d)),{getPlatformVersion}=require(a31_0x2c6032(0x1b9)),{shouldProcessEventForTesthub}=require(a31_0x2c6032(0x17d));function a31_0xa26f(_0x554f81,_0x156a4a){const _0x39702a=a31_0x3970();return a31_0xa26f=function(_0xa26f2d,_0x587074){_0xa26f2d=_0xa26f2d-0x17c;let _0x485fe5=_0x39702a[_0xa26f2d];return _0x485fe5;},a31_0xa26f(_0x554f81,_0x156a4a);}console={},Object[a31_0x2c6032(0x1cb)](consoleHolder)[a31_0x2c6032(0x1b0)](_0x15dd2e=>{console[_0x15dd2e]=(..._0x121c40)=>{BSTestOpsPatcher[_0x15dd2e](..._0x121c40);};}),exports[a31_0x2c6032(0x1a8)]=()=>{const _0x1f1fdf=a31_0x2c6032,_0x33ed79={'EuTZl':_0x1f1fdf(0x1b2),'DXuVN':function(_0x1bec61){return _0x1bec61();}};return{'ci':_0x33ed79['EuTZl'],'key':_0x33ed79[_0x1f1fdf(0x1c7)](uuidv4),'version':version,'collector':_0x1f1fdf(0x1c2)+name};},exports[a31_0x2c6032(0x189)]=_0x115c9e=>{const _0x43d9a8=a31_0x2c6032,_0x1dd81c={};_0x1dd81c[_0x43d9a8(0x17f)]=function(_0x4847d5,_0x2b428c){return _0x4847d5!==_0x2b428c;},_0x1dd81c['Iolph']='string',_0x1dd81c[_0x43d9a8(0x190)]=_0x43d9a8(0x1ae),_0x1dd81c[_0x43d9a8(0x1bc)]=function(_0x407ec5,_0x182470){return _0x407ec5!==_0x182470;},_0x1dd81c[_0x43d9a8(0x1a9)]=_0x43d9a8(0x1c3);const _0x57e4aa=_0x1dd81c;if(!_0x115c9e||_0x57e4aa[_0x43d9a8(0x17f)](typeof _0x115c9e,_0x57e4aa[_0x43d9a8(0x19b)]))return[null,null];if(_0x57e4aa['EhLlI'](_0x115c9e['indexOf'](_0x57e4aa['gAZZo']),-0x1)){const _0x2959be=_0x115c9e['split'](_0x57e4aa['gAZZo']);return[_0x2959be[0x0][_0x43d9a8(0x1b1)](0x0,-0x1)[_0x43d9a8(0x18a)]('\x22')[0x1],_0x2959be[0x1]['substring'](0x1)];}else{if(_0x57e4aa[_0x43d9a8(0x1bc)](_0x115c9e[_0x43d9a8(0x1c6)](_0x57e4aa[_0x43d9a8(0x1a9)]),-0x1)){const _0x1679d1=_0x115c9e[_0x43d9a8(0x18a)](_0x57e4aa['QOCFb']);return[_0x1679d1[0x0]['slice'](0x0,-0x1)[_0x43d9a8(0x18a)]('\x22')[0x1],_0x115c9e];}}return[null,null];},exports[a31_0x2c6032(0x1b8)]=_0x42e84d=>{const _0x956d23=a31_0x2c6032,_0x27e8d9={'rdvfh':function(_0x50f8d1,_0x17c389){return _0x50f8d1(_0x17c389);},'YJGRO':_0x956d23(0x1d5),'uZICX':_0x956d23(0x183),'zapeu':_0x956d23(0x1d0),'iJfSj':_0x956d23(0x193)};if(!_0x42e84d||!_0x42e84d[_0x956d23(0x19c)])return[];const _0x17e8d0=[];return[_0x27e8d9[_0x956d23(0x1a4)],_0x27e8d9['uZICX'],_0x27e8d9[_0x956d23(0x1ad)],_0x27e8d9[_0x956d23(0x1be)]][_0x956d23(0x1b0)](_0x3d0864=>{const _0x432ae8=_0x956d23,_0x1ffe6b=_0x42e84d[_0x432ae8(0x19c)][_0x3d0864]||[];_0x1ffe6b[_0x432ae8(0x1b0)](_0x23bd4d=>{const _0x38236c=_0x432ae8;_0x23bd4d[_0x38236c(0x19a)]&&!_0x27e8d9[_0x38236c(0x1b3)](isInternalHook,_0x23bd4d['fn'])&&_0x17e8d0[_0x38236c(0x1b4)](_0x23bd4d[_0x38236c(0x19a)]);});}),[..._0x17e8d0,...exports[_0x956d23(0x1b8)](_0x42e84d['parent'])];},exports[a31_0x2c6032(0x1ca)]=_0xf4e0b2=>{const _0x3a3568=a31_0x2c6032,_0x55e79a={'ykfrg':function(_0x5c93be){return _0x5c93be();},'xxcVs':function(_0x2e0662,_0x43d1cb){return _0x2e0662===_0x43d1cb;},'ZGyaj':_0x3a3568(0x193),'SbNwE':function(_0x14738b){return _0x14738b();},'bGnWz':'_beforeAll','QlEpD':_0x3a3568(0x183),'mnXkB':_0x3a3568(0x1d0)};if(!_0xf4e0b2||!_0xf4e0b2['parent'])return;[_0x55e79a['bGnWz'],_0x55e79a[_0x3a3568(0x17e)],_0x55e79a['mnXkB'],_0x55e79a[_0x3a3568(0x18c)]]['forEach'](_0x6dd77d=>{const _0x15c948=_0x3a3568,_0x1e0374=_0xf4e0b2[_0x15c948(0x19c)][_0x6dd77d]||[];_0x1e0374['forEach'](_0x2b7b5a=>{const _0x57e313=_0x15c948;if(!_0x2b7b5a['hookAnalyticsId'])_0x2b7b5a[_0x57e313(0x19a)]=_0x55e79a[_0x57e313(0x1c1)](uuidv4);else _0x2b7b5a['markedStatus']&&_0x55e79a[_0x57e313(0x180)](_0x6dd77d,_0x55e79a[_0x57e313(0x18c)])&&(_0x2b7b5a[_0x57e313(0x19a)]=_0x55e79a[_0x57e313(0x185)](uuidv4),delete _0x2b7b5a['markedStatus']);});}),exports[_0x3a3568(0x1ca)](_0xf4e0b2['parent']);},exports[a31_0x2c6032(0x19f)]=async(_0x11f7f5,_0x1eb712)=>{const _0x5e69b0=a31_0x2c6032,_0x42c75c={'KeEAi':function(_0x5de462){return _0x5de462();},'ttgZz':function(_0x476504,_0x5f08d1){return _0x476504(_0x5f08d1);},'NBLnb':function(_0xe1ab66,_0x3cf381){return _0xe1ab66===_0x3cf381;},'uipZN':_0x5e69b0(0x186),'ohCaJ':_0x5e69b0(0x1a5),'EqYwW':'TEST_PLATFORM','aGBbz':function(_0x3acf45,_0x2d519c){return _0x3acf45(_0x2d519c);}};try{if(!_0x42c75c[_0x5e69b0(0x1d1)](shouldProcessEventForTesthub))return;const _0x41f84c=await _0x11f7f5[_0x5e69b0(0x1af)](),_0x146369=await _0x11f7f5['getSession'](),_0x2aeb24={},_0x4db229=Object['fromEntries'](_0x146369['getCapabilities']()[_0x5e69b0(0x184)]),_0x36cfad={'product':_0x42c75c['ttgZz'](getObservabilityLinkedProductName,_0x4db229),'capabilities':_0x4db229,'platform':_0x41f84c[_0x5e69b0(0x18e)](),'platform_version':_0x42c75c[_0x5e69b0(0x1cf)](getPlatformVersion,_0x42c75c[_0x5e69b0(0x197)](global['__cloud_provider___'],_0x42c75c[_0x5e69b0(0x196)])),'browser':_0x41f84c[_0x5e69b0(0x1a2)](),'browser_version':_0x41f84c[_0x5e69b0(0x192)](),'session_id':_0x146369[_0x5e69b0(0x18f)]()};global['__cloud_provider___']?_0x2aeb24[global[_0x5e69b0(0x1a7)]]=_0x36cfad:_0x2aeb24[_0x42c75c[_0x5e69b0(0x1d2)]]=_0x36cfad,process['emit'](_0x5e69b0(0x1d4)+process[_0x5e69b0(0x1c4)],{'timestamp':new Date()[_0x5e69b0(0x1aa)](),'level':null,'message':null,'kind':_0x42c75c[_0x5e69b0(0x19d)],'http_response':_0x2aeb24,'uuid':_0x1eb712});}catch(_0x19a1fb){_0x42c75c[_0x5e69b0(0x1c5)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x19a1fb);}},exports['getHookSkippedTests']=_0x363718=>{const _0x3ecdf8=a31_0x2c6032,_0x1285f9={};_0x1285f9[_0x3ecdf8(0x1ac)]=function(_0x23aa3a,_0x214f37){return _0x23aa3a!==_0x214f37;},_0x1285f9[_0x3ecdf8(0x187)]=_0x3ecdf8(0x1c3),_0x1285f9[_0x3ecdf8(0x1ab)]=function(_0x68c8ac,_0x2c2d06){return _0x68c8ac!==_0x2c2d06;},_0x1285f9['EThUI']=_0x3ecdf8(0x1ba),_0x1285f9[_0x3ecdf8(0x1cd)]=function(_0x212a04,_0x3e5b5c){return _0x212a04!==_0x3e5b5c;},_0x1285f9[_0x3ecdf8(0x195)]=_0x3ecdf8(0x1c9);const _0x18366a=_0x1285f9,_0x266585=_0x363718[_0x3ecdf8(0x188)][_0x3ecdf8(0x1bb)]((_0x40ec92,_0x444cc6)=>{const _0x3e27b2=_0x3ecdf8,_0x36b5a5=exports[_0x3e27b2(0x191)](_0x444cc6);return _0x36b5a5&&(_0x40ec92=_0x40ec92[_0x3e27b2(0x1a6)](_0x36b5a5)),_0x40ec92;},[]),_0x33745e=_0x363718[_0x3ecdf8(0x1a0)][_0x3ecdf8(0x1d6)](_0x5baaee=>{const _0x1028fd=_0x3ecdf8,_0x1ba7a6=_0x18366a[_0x1028fd(0x1ac)](_0x5baaee[_0x1028fd(0x17c)],_0x18366a[_0x1028fd(0x187)])&&!_0x5baaee[_0x1028fd(0x181)]&&_0x18366a[_0x1028fd(0x1ab)](_0x5baaee[_0x1028fd(0x1b7)],_0x18366a[_0x1028fd(0x1b5)])&&_0x18366a[_0x1028fd(0x1cd)](_0x5baaee[_0x1028fd(0x1b7)],_0x18366a['yBwDA'])&&!_0x5baaee[_0x1028fd(0x182)];return _0x1ba7a6;});return _0x33745e[_0x3ecdf8(0x1a6)](_0x266585);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x5b19(){const _0x16a9b1=['Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','isArray','325296ERxCVV','szgNw','6ZhtfeO','14jdcGvB','./test-observability/mochaUtils','wHvMT','testAnalyticsId','length','mochaHooks','NNyEV','../../helpers/globals','../../helpers/logger','capabilities','7909560KVuMLh','driverCleanup','fgTfB','__skipSessionName','../../helpers/helper','VxMwN','env','stopMonitoring','4429632JuuNWn','yoSCM','state','quitCount_','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','startMonitoring','40qekXEq','FjFJZ','thBuildUuid','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','SzErj','accessibilityScanStarted','percy','5899920RXEqVX','__sessionFailed','Failed\x20to\x20store\x20session\x20name:\x20','titlePath','passed','../../helpers/performance-tester','\x20|\x20','\x22}}','GmuGt','../../helpers/testhub/utils','then','TSADn','OIvUy','bstackA11yShouldScan','CxGmy','../../helpers/accessibility-automation/scripts','ENV_VAR','PbOmD','.\x20Error\x20:',',\x22level\x22:\x20\x22','mVMSh','isAccessibilityPlatform','../../helpers/percy/utils','now','3748188SVkTkh','88532xwXKgQ','AYqMp','util','format','https:','sessionNameSet__','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','EXYgr','CGWiX','IEmHq','IeiDO','protocol','TyvBH','GyzDs','stringify','app','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','Nbdqq','shift','join','currentTest','4222338cXQvGB','debug','testcase','UadcF','timeout','http:','MUQHA','err','saveTestResults','browserstackSessionName','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','yjLbS','svblQ','KcQiC','eVoFL','Failed:\x20','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','Automate\x20test\x20case\x20execution\x20has\x20started.','executeAsyncScript','failed','__error_messages__','getGlobal','dKYfP','info','\x20-\x20','Passed','executeScript','hLXpf','appium:app','setGlobal','thTestRunUuid','session_','../../helpers/testhub/constants','percyCaptureMode','teswn','initQuit','__drivers','BROWSERSTACK_TESTHUB_JWT','UqMwy','ObservabilitySync:','aGNiG','performScan','getCurrentUrl','shouldScanTestForAccessibility'];a32_0x5b19=function(){return _0x16a9b1;};return a32_0x5b19();}const a32_0x3a550a=a32_0x40d7;(function(_0x35ea02,_0x7bc0c7){const _0x44012f=a32_0x40d7,_0x2df768=_0x35ea02();while(!![]){try{const _0x3b5036=parseInt(_0x44012f(0x170))/0x1*(parseInt(_0x44012f(0x16e))/0x2)+-parseInt(_0x44012f(0x1be))/0x3+parseInt(_0x44012f(0x1a9))/0x4*(parseInt(_0x44012f(0x189))/0x5)+parseInt(_0x44012f(0x1a8))/0x6+-parseInt(_0x44012f(0x171))/0x7*(parseInt(_0x44012f(0x183))/0x8)+parseInt(_0x44012f(0x17b))/0x9+parseInt(_0x44012f(0x190))/0xa;if(_0x3b5036===_0x7bc0c7)break;else _0x2df768['push'](_0x2df768['shift']());}catch(_0x4be2f8){_0x2df768['push'](_0x2df768['shift']());}}}(a32_0x5b19,0xb29ec));const util=require(a32_0x3a550a(0x1ab)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a32_0x3a550a(0x1a6)),{sendPlatformDetails}=require(a32_0x3a550a(0x172)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x3a550a(0x17f)),PerformanceTester=require(a32_0x3a550a(0x195)),scripts=require(a32_0x3a550a(0x19f)),globals=require(a32_0x3a550a(0x178)),logger=require(a32_0x3a550a(0x179))['winstonLogger'],{shouldProcessEventForTesthub}=require(a32_0x3a550a(0x199)),testHubConstants=require(a32_0x3a550a(0x1de));function a32_0x40d7(_0x5c57e2,_0x47dd1b){const _0x5b1974=a32_0x5b19();return a32_0x40d7=function(_0x40d7b3,_0x37df10){_0x40d7b3=_0x40d7b3-0x16d;let _0x40f4e1=_0x5b1974[_0x40d7b3];return _0x40f4e1;},a32_0x40d7(_0x5c57e2,_0x47dd1b);}exports[a32_0x3a550a(0x176)]={'beforeAll'(){const _0x1e33a9=a32_0x3a550a,_0xe12ca9={'CGWiX':function(_0x971b93,_0x46e4f7,_0x3d4aec,_0x15c2ed){return _0x971b93(_0x46e4f7,_0x3d4aec,_0x15c2ed);},'waQWW':_0x1e33a9(0x1d1),'dwcce':_0x1e33a9(0x196),'dKYfP':function(_0x502fd8,_0x430ce7,_0x5cbdc8){return _0x502fd8(_0x430ce7,_0x5cbdc8);},'KcQiC':'passed','EXYgr':function(_0x3980f1){return _0x3980f1();}};PerformanceTester[_0x1e33a9(0x188)]();const _0x1e8f8c='browserstack internal helper hook';global[_0x1e33a9(0x1d2)]=[],global[_0x1e33a9(0x191)]=![],global[_0x1e33a9(0x17c)]=async()=>{const _0x2ab558=_0x1e33a9;let _0x31afc3=![];try{await global['__drivers'][0x0][_0x2ab558(0x1dd)],_0x31afc3=!![],global['__sessionFailed']?await _0xe12ca9[_0x2ab558(0x1b1)](markSessionStatus,global[_0x2ab558(0x1e2)][0x0],_0xe12ca9['waQWW'],global[_0x2ab558(0x1d2)]['join'](_0xe12ca9['dwcce'])):await _0xe12ca9[_0x2ab558(0x1d4)](markSessionStatus,global['__drivers'][0x0],_0xe12ca9[_0x2ab558(0x1cb)]);}catch(_0x2be108){}global[_0x2ab558(0x1d2)]=[],global[_0x2ab558(0x191)]=![];if(_0x31afc3)try{try{_0xe12ca9[_0x2ab558(0x1b0)](shouldProcessEventForTesthub)&&(global[_0x2ab558(0x1e2)][0x0]&&await _0xe12ca9[_0x2ab558(0x1d4)](sendPlatformDetails,global[_0x2ab558(0x1e2)][0x0],this['currentTest']?this[_0x2ab558(0x1bd)][_0x2ab558(0x174)]:null));}catch{}await global[_0x2ab558(0x1e2)][0x0][_0x2ab558(0x1e1)]();}catch(_0x4636d8){}};},'beforeEach'(_0x56ada6){const _0x391d6d=a32_0x3a550a,_0x3fc63a={'NNyEV':function(_0x4810ea,_0xc61f17){return _0x4810ea>_0xc61f17;},'UqMwy':_0x391d6d(0x1d6),'wvVIV':function(_0x4ab796,_0x82d76c,_0x400e72){return _0x4ab796(_0x82d76c,_0x400e72);},'UadcF':_0x391d6d(0x19d),'yjLbS':function(_0x3c88ce){return _0x3c88ce();},'rzStI':function(_0x585e63,_0x55f4c0){return _0x585e63>_0x55f4c0;},'IzxSj':'isAccessibilityPlatform','YJTdx':function(_0x189c81,_0x28b0ac){return _0x189c81===_0x28b0ac;},'hLXpf':_0x391d6d(0x1c3),'fgTfB':function(_0xe547ae,_0x3b3cb5){return _0xe547ae===_0x3b3cb5;},'LoeLh':_0x391d6d(0x1ad),'PbOmD':_0x391d6d(0x18c),'NWAhO':_0x391d6d(0x1cf)};new Promise(async _0x382a23=>{const _0xd8e1c5=_0x391d6d,_0x5d6bc6='browserstack internal helper hook';let _0x151e1c=!![];try{_0x3fc63a['NNyEV'](global[_0xd8e1c5(0x1e2)]['length'],0x1)&&(await global[_0xd8e1c5(0x17c)](),global['__drivers'][_0xd8e1c5(0x1bb)]()),_0x3fc63a[_0xd8e1c5(0x177)](global[_0xd8e1c5(0x1e2)][0x0][_0xd8e1c5(0x186)],0x0)&&(_0x151e1c=![],await global['driverCleanup']());}catch{}try{Array[_0xd8e1c5(0x16d)](global['__drivers'])&&global[_0xd8e1c5(0x1e2)][0x0]&&(global[_0xd8e1c5(0x1e2)][0x0][_0xd8e1c5(0x1c7)]=this[_0xd8e1c5(0x1bd)]['titlePath']()[_0xd8e1c5(0x1bc)](_0x3fc63a[_0xd8e1c5(0x1e4)])),global[_0xd8e1c5(0x1c7)]=this[_0xd8e1c5(0x1bd)][_0xd8e1c5(0x193)]()[_0xd8e1c5(0x1bc)](_0x3fc63a[_0xd8e1c5(0x1e4)]);}catch(_0x229a46){logger[_0xd8e1c5(0x1bf)](_0xd8e1c5(0x192)+_0x229a46);}this['currentTest'][_0xd8e1c5(0x1e9)]=_0x3fc63a['wvVIV'](shouldScanTestForAccessibility,this[_0xd8e1c5(0x1bd)][_0xd8e1c5(0x193)](),!![]),globals[_0xd8e1c5(0x1db)](_0x3fc63a[_0xd8e1c5(0x1c1)],this[_0xd8e1c5(0x1bd)][_0xd8e1c5(0x1e9)]),this[_0xd8e1c5(0x1bd)][_0xd8e1c5(0x18e)]=!![];if(_0x3fc63a[_0xd8e1c5(0x1c9)](isAccessibilityAutomationSession)&&_0x151e1c&&Array[_0xd8e1c5(0x16d)](global[_0xd8e1c5(0x1e2)])&&_0x3fc63a['rzStI'](global[_0xd8e1c5(0x1e2)][_0xd8e1c5(0x175)],0x0)&&globals[_0xd8e1c5(0x1d3)](_0x3fc63a['IzxSj']))try{const _0x53d6d9=await global[_0xd8e1c5(0x1e2)][0x0][_0xd8e1c5(0x1dd)];if(_0x53d6d9){let _0x13dfbd=!![];const _0x573e03=await global[_0xd8e1c5(0x1e2)][0x0][_0xd8e1c5(0x1e8)]();let _0x59718a;try{_0x59718a=new URL(_0x573e03);}catch(_0x3d4403){_0x13dfbd=![];}_0x13dfbd=_0x3fc63a['YJTdx'](_0x59718a[_0xd8e1c5(0x1b4)],_0x3fc63a[_0xd8e1c5(0x1d9)])||_0x3fc63a[_0xd8e1c5(0x17d)](_0x59718a[_0xd8e1c5(0x1b4)],_0x3fc63a['LoeLh']),_0x13dfbd&&(this[_0xd8e1c5(0x1bd)]['shouldScanTestForAccessibility']&&logger[_0xd8e1c5(0x1d5)](_0x3fc63a[_0xd8e1c5(0x1a1)])),this[_0xd8e1c5(0x1bd)][_0xd8e1c5(0x18e)]=this[_0xd8e1c5(0x1bd)]['shouldScanTestForAccessibility'],this[_0xd8e1c5(0x1bd)][_0xd8e1c5(0x1e9)]&&logger[_0xd8e1c5(0x1d5)](_0x3fc63a['NWAhO']);}}catch(_0x4b215c){logger['error'](_0xd8e1c5(0x1af)+util[_0xd8e1c5(0x1ac)](_0x4b215c));}_0x3fc63a[_0xd8e1c5(0x1c9)](_0x382a23);})[_0x391d6d(0x19a)](_0x56ada6);},'afterEach'(_0x5807e8){const _0x4e4022=a32_0x3a550a,_0x28d214={'CxGmy':function(_0x24372a,_0x6642ec){return _0x24372a>_0x6642ec;},'TyvBH':function(_0xec1abc,_0x53322e){return _0xec1abc===_0x53322e;},'TSADn':_0x4e4022(0x1c0),'wHvMT':function(_0x310ea6,_0x8c8992){return _0x310ea6>_0x8c8992;},'IEmHq':_0x4e4022(0x1da),'GmuGt':function(_0xe8a90a,_0x46b4f3,_0x1ec526,_0x1bee49){return _0xe8a90a(_0x46b4f3,_0x1ec526,_0x1bee49);},'SzErj':_0x4e4022(0x1d6),'VxMwN':function(_0x3b8612,_0x4d95e1){return _0x3b8612!==_0x4d95e1;},'teswn':_0x4e4022(0x194),'GyzDs':function(_0x53505a,_0x710dc2,_0x28ed60){return _0x53505a(_0x710dc2,_0x28ed60);},'szgNw':function(_0x2c58a6,_0x22cc84){return _0x2c58a6+_0x22cc84;},'svblQ':_0x4e4022(0x1cd),'upsPt':'error','Nbdqq':_0x4e4022(0x1d7),'dLPvx':_0x4e4022(0x1d5),'eVoFL':_0x4e4022(0x1a5),'JbhBp':_0x4e4022(0x19d),'aGNiG':_0x4e4022(0x1ce),'yoSCM':'Performing\x20scan\x20before\x20saving\x20results','VmkWz':_0x4e4022(0x1c8),'MUQHA':function(_0x579867){return _0x579867();},'FjFJZ':function(_0x51183e,_0x212fa4,_0x41d224){return _0x51183e(_0x212fa4,_0x41d224);},'OIvUy':function(_0xae7a6a){return _0xae7a6a();},'AYqMp':_0x4e4022(0x1bf),'IeiDO':function(_0x2bc973){return _0x2bc973();}},_0x2a9df0='browserstack internal helper hook';this[_0x4e4022(0x1c2)](0xfde8);const _0x36d6de=async(_0x3ca6c8,_0x20f5f2)=>{const _0x1fdfe0=_0x4e4022;await global[_0x1fdfe0(0x1e2)][0x0]['executeScript'](_0x1fdfe0(0x187)+_0x3ca6c8+_0x1fdfe0(0x1a3)+_0x20f5f2+_0x1fdfe0(0x197));};new Promise(async _0x111342=>{const _0x2546e5=_0x4e4022;try{_0x28d214[_0x2546e5(0x19e)](global[_0x2546e5(0x1e2)][_0x2546e5(0x175)],0x1)&&(await global[_0x2546e5(0x17c)](),global['__drivers'][_0x2546e5(0x1bb)](),global[_0x2546e5(0x1d2)]=[],global[_0x2546e5(0x191)]=![]);try{if(global[_0x2546e5(0x18f)]&&_0x28d214[_0x2546e5(0x1b5)](global[_0x2546e5(0x1df)],_0x28d214[_0x2546e5(0x19b)])&&global[_0x2546e5(0x1e2)][0x0]){const _0x48f5c3=_0x28d214['wHvMT'](global['capabilities'][_0x2546e5(0x175)],0x0)?!!global[_0x2546e5(0x17a)][0x0][_0x2546e5(0x1b8)]||!!global[_0x2546e5(0x17a)][0x0][_0x28d214[_0x2546e5(0x1b2)]]:![],_0x443b50={};_0x443b50['app']=_0x48f5c3,await _0x28d214[_0x2546e5(0x198)](percyAutoCapture,global['__drivers'][0x0],_0x28d214[_0x2546e5(0x19b)],_0x443b50);}}catch(_0x18bfff){}!global[_0x2546e5(0x17e)]&&(await global[_0x2546e5(0x1e2)][0x0][_0x2546e5(0x1d8)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x2546e5(0x1b7)](this[_0x2546e5(0x1bd)][_0x2546e5(0x193)]()[_0x2546e5(0x1bc)](_0x28d214[_0x2546e5(0x18d)]))+'}}'),global['__drivers'][0x0][_0x2546e5(0x1ae)]=!![]);const _0x1a27b8=_0x28d214[_0x2546e5(0x180)](this[_0x2546e5(0x1bd)][_0x2546e5(0x185)],_0x28d214[_0x2546e5(0x1e0)]);_0x1a27b8?(global[_0x2546e5(0x191)]=!![],global['__error_messages__']['push'](this['currentTest'][_0x2546e5(0x1c5)]['message']),await _0x28d214[_0x2546e5(0x1b6)](_0x36d6de,JSON[_0x2546e5(0x1b7)](_0x28d214[_0x2546e5(0x16f)](_0x28d214[_0x2546e5(0x1ca)],this[_0x2546e5(0x1bd)][_0x2546e5(0x1c5)]['message'])),_0x28d214['upsPt'])):await _0x28d214[_0x2546e5(0x1b6)](_0x36d6de,JSON[_0x2546e5(0x1b7)](_0x28d214[_0x2546e5(0x1ba)]),_0x28d214['dLPvx']);}catch(_0x3306da){}try{if(this[_0x2546e5(0x1bd)][_0x2546e5(0x18e)]&&globals['getGlobal'](_0x28d214[_0x2546e5(0x1cc)])&&globals[_0x2546e5(0x1d3)](_0x28d214['JbhBp'])){logger[_0x2546e5(0x1d5)](_0x28d214[_0x2546e5(0x1e6)]);const _0x29d56c={};_0x29d56c[_0x2546e5(0x1dc)]=this[_0x2546e5(0x1bd)][_0x2546e5(0x174)],_0x29d56c[_0x2546e5(0x18b)]=process[_0x2546e5(0x181)][testHubConstants[_0x2546e5(0x1a0)]['BROWSERSTACK_TESTHUB_UUID']],_0x29d56c['thJwtToken']=process[_0x2546e5(0x181)][testHubConstants[_0x2546e5(0x1a0)][_0x2546e5(0x1e3)]];const _0x3be549=_0x29d56c;logger['debug'](_0x2546e5(0x1b9)+JSON[_0x2546e5(0x1b7)](_0x3be549)),logger[_0x2546e5(0x1bf)](_0x28d214[_0x2546e5(0x184)]),logger['debug'](util['format'](await global[_0x2546e5(0x1e2)][0x0][_0x2546e5(0x1d0)](scripts[_0x2546e5(0x1e7)],{'method':global[_0x2546e5(0x1c7)]}))),await global[_0x2546e5(0x1e2)][0x0][_0x2546e5(0x1d0)](scripts[_0x2546e5(0x1c6)],_0x3be549),logger[_0x2546e5(0x1d5)](_0x28d214['VmkWz']);}}catch(_0x59434b){logger['error'](_0x2546e5(0x1ea)+this[_0x2546e5(0x1bd)][_0x2546e5(0x193)]()+_0x2546e5(0x1a2),_0x59434b);}try{try{if(_0x28d214[_0x2546e5(0x1c4)](shouldProcessEventForTesthub)){global[_0x2546e5(0x1e2)][0x0]&&await _0x28d214[_0x2546e5(0x18a)](sendPlatformDetails,global[_0x2546e5(0x1e2)][0x0],this[_0x2546e5(0x1bd)]?this[_0x2546e5(0x1bd)][_0x2546e5(0x174)]:null);if(_0x28d214[_0x2546e5(0x19c)](isBrowserstackInfra)){const _0x2c1817=_0x2546e5(0x1e5)+Date[_0x2546e5(0x1a7)]();await _0x28d214['GyzDs'](_0x36d6de,JSON[_0x2546e5(0x1b7)](_0x2c1817),_0x28d214[_0x2546e5(0x1aa)]);}}}catch{}_0x28d214[_0x2546e5(0x173)](global[_0x2546e5(0x1e2)][0x0]['quitCount_'],0x0)&&await global[_0x2546e5(0x17c)]();}catch(_0x2178f0){}_0x28d214[_0x2546e5(0x1b3)](_0x111342);})[_0x4e4022(0x19a)](()=>_0x5807e8());},'afterAll'(_0x572901){const _0x5ece42=a32_0x3a550a,_0x22f541={'mVMSh':function(_0x17e6bb){return _0x17e6bb();}},_0x4fbad0='browserstack internal helper hook';this[_0x5ece42(0x1c2)](0xfde8),new Promise(async _0x563961=>{const _0x489c8d=_0x5ece42;PerformanceTester[_0x489c8d(0x182)](),await global[_0x489c8d(0x17c)](),_0x22f541[_0x489c8d(0x1a4)](_0x563961);})['then'](()=>_0x572901());}};
|
|
1
|
+
function a32_0x23a0(_0x5c547e,_0x4be824){const _0x13a93c=a32_0x13a9();return a32_0x23a0=function(_0x23a0eb,_0xcb227){_0x23a0eb=_0x23a0eb-0x197;let _0x450343=_0x13a93c[_0x23a0eb];return _0x450343;},a32_0x23a0(_0x5c547e,_0x4be824);}const a32_0x229932=a32_0x23a0;function a32_0x13a9(){const _0x657e7b=['VQTGW','__error_messages__','session_','app','stringify','vhqrj','SRGwE','Passed','vakdM','fPQyl','../../helpers/accessibility-automation/scripts','Automate\x20test\x20case\x20execution\x20has\x20started.','appium:app','15VRmJYA','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','thTestRunUuid','util','4vQcMhj','http:','browserstackSessionName','../../helpers/globals','81152PKzkhN','../../helpers/testhub/utils','getCurrentUrl','timeout','BROWSERSTACK_TESTHUB_UUID','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','ENV_VAR','PuEVy','okrVi','70088uwOFVv','TquQY','isAccessibilityPlatform','aubMP','../../helpers/performance-tester','../../helpers/logger','jtbXd','join','GTpXA','GzzHA','6939273QSuyRb','iIPHK','percy','executeAsyncScript','GLkGm','ObservabilitySync:','bstackA11yShouldScan','accessibilityScanStarted','shouldScanTestForAccessibility','format','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','failed','20hLNTmz','NjOee','err','shift','now','YKCau','../../helpers/helper','SGHgB','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','SywWu','driverCleanup','then','isArray','executeScript','titlePath','Failed:\x20','HAOij','SBDRQ','thBuildUuid','state','mJHNg','quitCount_','length','info','debug','boCNH','getGlobal','Performing\x20scan\x20before\x20saving\x20results','4159704xgJFjF','505086CmdJtl','percyCaptureMode','HGlXu','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','.\x20Error\x20:','guGle','Failed\x20to\x20store\x20session\x20name:\x20','winstonLogger','testcase','maPhz','35jdFkKE','WEGmt','EvYmB','sessionNameSet__','KdyiS','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','initQuit','testAnalyticsId','hvENa','performScan','../../helpers/accessibility-automation/helper','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','qVypX','setGlobal','passed','protocol','yFZba','saveTestResults','TVwOO','924456sgjAQM','error','capabilities','env','__drivers','CuWlp','3381804qkYajq','VERfe','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','\x22}}','stopMonitoring','__sessionFailed','currentTest','message','iERFp','usCgf'];a32_0x13a9=function(){return _0x657e7b;};return a32_0x13a9();}(function(_0x250291,_0x2e97b2){const _0x23afc5=a32_0x23a0,_0x371b56=_0x250291();while(!![]){try{const _0x306b0a=parseInt(_0x23afc5(0x1f6))/0x1*(-parseInt(_0x23afc5(0x1fa))/0x2)+-parseInt(_0x23afc5(0x1d5))/0x3+-parseInt(_0x23afc5(0x203))/0x4*(parseInt(_0x23afc5(0x1f2))/0x5)+-parseInt(_0x23afc5(0x1b8))/0x6*(-parseInt(_0x23afc5(0x1c2))/0x7)+-parseInt(_0x23afc5(0x1b7))/0x8+-parseInt(_0x23afc5(0x1db))/0x9+-parseInt(_0x23afc5(0x19b))/0xa*(-parseInt(_0x23afc5(0x20d))/0xb);if(_0x306b0a===_0x2e97b2)break;else _0x371b56['push'](_0x371b56['shift']());}catch(_0x4af40e){_0x371b56['push'](_0x371b56['shift']());}}}(a32_0x13a9,0x406aa));const util=require(a32_0x229932(0x1f5)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x229932(0x1cc)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a32_0x229932(0x1a1)),PerformanceTester=require(a32_0x229932(0x207)),scripts=require(a32_0x229932(0x1ef)),globals=require(a32_0x229932(0x1f9)),logger=require(a32_0x229932(0x208))[a32_0x229932(0x1bf)],{shouldProcessEventForTesthub}=require(a32_0x229932(0x1fb)),testHubConstants=require('../../helpers/testhub/constants');exports['mochaHooks']={'beforeAll'(){const _0x52171f=a32_0x229932,_0x2b1c19={'veiTQ':function(_0x522a80,_0x2e066b,_0x2c3974,_0x402c97){return _0x522a80(_0x2e066b,_0x2c3974,_0x402c97);},'EvYmB':_0x52171f(0x19a),'maPhz':'\x20|\x20','YKCau':function(_0x4bbb45,_0xd51202,_0x240819){return _0x4bbb45(_0xd51202,_0x240819);},'VQTGW':'passed','HAOij':function(_0x12e7d1){return _0x12e7d1();},'guGle':function(_0x34ce49,_0x95db2c,_0x2c058e){return _0x34ce49(_0x95db2c,_0x2c058e);}};PerformanceTester['startMonitoring']();const _0x3f20ec='browserstack internal helper hook';global[_0x52171f(0x1e6)]=[],global['__sessionFailed']=![],global[_0x52171f(0x1a5)]=async()=>{const _0x47dcea=_0x52171f;let _0x5978a7=![];try{await global[_0x47dcea(0x1d9)][0x0][_0x47dcea(0x1e7)],_0x5978a7=!![],global[_0x47dcea(0x1e0)]?await _0x2b1c19['veiTQ'](markSessionStatus,global[_0x47dcea(0x1d9)][0x0],_0x2b1c19[_0x47dcea(0x1c4)],global[_0x47dcea(0x1e6)][_0x47dcea(0x20a)](_0x2b1c19[_0x47dcea(0x1c1)])):await _0x2b1c19[_0x47dcea(0x1a0)](markSessionStatus,global[_0x47dcea(0x1d9)][0x0],_0x2b1c19[_0x47dcea(0x1e5)]);}catch(_0x44691c){}global[_0x47dcea(0x1e6)]=[],global[_0x47dcea(0x1e0)]=![];if(_0x5978a7)try{try{_0x2b1c19[_0x47dcea(0x1ab)](shouldProcessEventForTesthub)&&(global[_0x47dcea(0x1d9)][0x0]&&await _0x2b1c19[_0x47dcea(0x1bd)](sendPlatformDetails,global['__drivers'][0x0],this[_0x47dcea(0x1e1)]?this[_0x47dcea(0x1e1)][_0x47dcea(0x1c9)]:null));}catch{}await global[_0x47dcea(0x1d9)][0x0][_0x47dcea(0x1c8)]();}catch(_0x1694ef){}};},'beforeEach'(_0x52f48f){const _0x3e0ccc=a32_0x229932,_0x39b962={'fPQyl':function(_0x564c2e,_0x162057){return _0x564c2e>_0x162057;},'CuWlp':'\x20-\x20','TQiRs':function(_0x1b8086,_0x3a92f8,_0x37ba89){return _0x1b8086(_0x3a92f8,_0x37ba89);},'SBDRQ':_0x3e0ccc(0x213),'iewVp':function(_0x137776){return _0x137776();},'SywWu':function(_0x41ba79,_0x4e4904){return _0x41ba79>_0x4e4904;},'JIMAd':_0x3e0ccc(0x205),'qVypX':function(_0x4bf0d8,_0xec69fd){return _0x4bf0d8===_0xec69fd;},'vakdM':_0x3e0ccc(0x1f7),'iWabL':function(_0x5a0b54,_0x458d47){return _0x5a0b54===_0x458d47;},'PuEVy':'https:','EwIEE':_0x3e0ccc(0x1c7),'GLkGm':_0x3e0ccc(0x1f0),'iIPHK':function(_0x10253c){return _0x10253c();}};new Promise(async _0x32ead1=>{const _0x22ce71=_0x3e0ccc,_0x37ace1='browserstack internal helper hook';let _0x441559=!![];try{_0x39b962[_0x22ce71(0x1ee)](global[_0x22ce71(0x1d9)][_0x22ce71(0x1b1)],0x1)&&(await global[_0x22ce71(0x1a5)](),global[_0x22ce71(0x1d9)][_0x22ce71(0x19e)]()),_0x39b962[_0x22ce71(0x1ee)](global[_0x22ce71(0x1d9)][0x0][_0x22ce71(0x1b0)],0x0)&&(_0x441559=![],await global['driverCleanup']());}catch{}try{Array[_0x22ce71(0x1a7)](global[_0x22ce71(0x1d9)])&&global[_0x22ce71(0x1d9)][0x0]&&(global[_0x22ce71(0x1d9)][0x0][_0x22ce71(0x1f8)]=this[_0x22ce71(0x1e1)][_0x22ce71(0x1a9)]()[_0x22ce71(0x20a)](_0x39b962[_0x22ce71(0x1da)])),global[_0x22ce71(0x1f8)]=this[_0x22ce71(0x1e1)][_0x22ce71(0x1a9)]()[_0x22ce71(0x20a)](_0x39b962[_0x22ce71(0x1da)]);}catch(_0x805ff1){logger[_0x22ce71(0x1b3)](_0x22ce71(0x1be)+_0x805ff1);}this[_0x22ce71(0x1e1)][_0x22ce71(0x197)]=_0x39b962['TQiRs'](shouldScanTestForAccessibility,this['currentTest'][_0x22ce71(0x1a9)](),!![]),globals[_0x22ce71(0x1cf)](_0x39b962[_0x22ce71(0x1ac)],this['currentTest'][_0x22ce71(0x197)]),this[_0x22ce71(0x1e1)][_0x22ce71(0x214)]=!![];if(_0x39b962['iewVp'](isAccessibilityAutomationSession)&&_0x441559&&Array[_0x22ce71(0x1a7)](global[_0x22ce71(0x1d9)])&&_0x39b962[_0x22ce71(0x1a4)](global[_0x22ce71(0x1d9)][_0x22ce71(0x1b1)],0x0)&&globals[_0x22ce71(0x1b5)](_0x39b962['JIMAd']))try{const _0x1a114a=await global[_0x22ce71(0x1d9)][0x0]['session_'];if(_0x1a114a){let _0x557d68=!![];const _0x242b54=await global[_0x22ce71(0x1d9)][0x0][_0x22ce71(0x1fc)]();let _0x3de1d0;try{_0x3de1d0=new URL(_0x242b54);}catch(_0x15c340){_0x557d68=![];}_0x557d68=_0x39b962[_0x22ce71(0x1ce)](_0x3de1d0[_0x22ce71(0x1d1)],_0x39b962[_0x22ce71(0x1ed)])||_0x39b962['iWabL'](_0x3de1d0['protocol'],_0x39b962[_0x22ce71(0x201)]),_0x557d68&&(this['currentTest']['shouldScanTestForAccessibility']&&logger[_0x22ce71(0x1b2)](_0x39b962['EwIEE'])),this[_0x22ce71(0x1e1)][_0x22ce71(0x214)]=this[_0x22ce71(0x1e1)]['shouldScanTestForAccessibility'],this[_0x22ce71(0x1e1)][_0x22ce71(0x197)]&&logger[_0x22ce71(0x1b2)](_0x39b962[_0x22ce71(0x211)]);}}catch(_0x41e0c1){logger[_0x22ce71(0x1d6)](_0x22ce71(0x1f3)+util[_0x22ce71(0x198)](_0x41e0c1));}_0x39b962[_0x22ce71(0x20e)](_0x32ead1);})[_0x3e0ccc(0x1a6)](_0x52f48f);},'afterEach'(_0x316733){const _0x3ac207=a32_0x229932,_0x1820f0={'WEGmt':function(_0x43220b,_0x43d379){return _0x43220b>_0x43d379;},'SadEa':function(_0x18a824,_0x1ff6e4){return _0x18a824===_0x1ff6e4;},'SRGwE':_0x3ac207(0x1c0),'pfFUn':_0x3ac207(0x1f1),'hvENa':function(_0x180159,_0x59324f,_0x215843,_0xbaf7aa){return _0x180159(_0x59324f,_0x215843,_0xbaf7aa);},'jtbXd':'\x20-\x20','TXPwM':function(_0x3e5347,_0x5910f4){return _0x3e5347!==_0x5910f4;},'KdyiS':_0x3ac207(0x1d0),'SGHgB':function(_0x2ce43d,_0x516dbb,_0x1a0e5d){return _0x2ce43d(_0x516dbb,_0x1a0e5d);},'yFZba':function(_0x4e4f12,_0x587747){return _0x4e4f12+_0x587747;},'usCgf':_0x3ac207(0x1aa),'mJHNg':'error','TquQY':function(_0x14b044,_0x5cf301,_0x471767){return _0x14b044(_0x5cf301,_0x471767);},'TVwOO':_0x3ac207(0x1ec),'aubMP':'info','iERFp':_0x3ac207(0x205),'EYeyF':_0x3ac207(0x213),'HGlXu':_0x3ac207(0x1dd),'VERfe':_0x3ac207(0x1b6),'GTpXA':_0x3ac207(0x1cd),'sDQTm':function(_0x21a4a2){return _0x21a4a2();},'NjOee':function(_0x3179a3,_0x5f2217,_0x3b4bfb){return _0x3179a3(_0x5f2217,_0x3b4bfb);},'okrVi':function(_0x1f9efa){return _0x1f9efa();},'GzzHA':_0x3ac207(0x1b3),'MKvfn':function(_0x38e143,_0x981a76){return _0x38e143>_0x981a76;},'vhqrj':function(_0x29ca4d){return _0x29ca4d();}},_0x21374e='browserstack internal helper hook';this[_0x3ac207(0x1fd)](0xfde8);const _0x205f69=async(_0x54190a,_0x2b3aac)=>{const _0x437bcb=_0x3ac207;await global[_0x437bcb(0x1d9)][0x0][_0x437bcb(0x1a8)](_0x437bcb(0x1ff)+_0x54190a+',\x22level\x22:\x20\x22'+_0x2b3aac+_0x437bcb(0x1de));};new Promise(async _0xb7217a=>{const _0x407f8b=_0x3ac207;try{_0x1820f0[_0x407f8b(0x1c3)](global[_0x407f8b(0x1d9)][_0x407f8b(0x1b1)],0x1)&&(await global[_0x407f8b(0x1a5)](),global[_0x407f8b(0x1d9)]['shift'](),global['__error_messages__']=[],global[_0x407f8b(0x1e0)]=![]);try{if(global[_0x407f8b(0x20f)]&&_0x1820f0['SadEa'](global[_0x407f8b(0x1b9)],_0x1820f0[_0x407f8b(0x1eb)])&&global[_0x407f8b(0x1d9)][0x0]){const _0x4bece4=_0x1820f0[_0x407f8b(0x1c3)](global['capabilities'][_0x407f8b(0x1b1)],0x0)?!!global[_0x407f8b(0x1d7)][0x0][_0x407f8b(0x1e8)]||!!global[_0x407f8b(0x1d7)][0x0][_0x1820f0['pfFUn']]:![],_0x424088={};_0x424088[_0x407f8b(0x1e8)]=_0x4bece4,await _0x1820f0[_0x407f8b(0x1ca)](percyAutoCapture,global[_0x407f8b(0x1d9)][0x0],_0x1820f0['SRGwE'],_0x424088);}}catch(_0x2d4405){}!global['__skipSessionName']&&(await global['__drivers'][0x0][_0x407f8b(0x1a8)](_0x407f8b(0x199)+JSON[_0x407f8b(0x1e9)](this[_0x407f8b(0x1e1)][_0x407f8b(0x1a9)]()[_0x407f8b(0x20a)](_0x1820f0[_0x407f8b(0x209)]))+'}}'),global[_0x407f8b(0x1d9)][0x0][_0x407f8b(0x1c5)]=!![]);const _0x528516=_0x1820f0['TXPwM'](this[_0x407f8b(0x1e1)][_0x407f8b(0x1ae)],_0x1820f0[_0x407f8b(0x1c6)]);_0x528516?(global[_0x407f8b(0x1e0)]=!![],global['__error_messages__']['push'](this[_0x407f8b(0x1e1)][_0x407f8b(0x19d)][_0x407f8b(0x1e2)]),await _0x1820f0[_0x407f8b(0x1a2)](_0x205f69,JSON[_0x407f8b(0x1e9)](_0x1820f0[_0x407f8b(0x1d2)](_0x1820f0[_0x407f8b(0x1e4)],this[_0x407f8b(0x1e1)][_0x407f8b(0x19d)]['message'])),_0x1820f0[_0x407f8b(0x1af)])):await _0x1820f0[_0x407f8b(0x204)](_0x205f69,JSON[_0x407f8b(0x1e9)](_0x1820f0[_0x407f8b(0x1d4)]),_0x1820f0[_0x407f8b(0x206)]);}catch(_0x158ac9){}try{if(this[_0x407f8b(0x1e1)]['accessibilityScanStarted']&&globals[_0x407f8b(0x1b5)](_0x1820f0[_0x407f8b(0x1e3)])&&globals[_0x407f8b(0x1b5)](_0x1820f0['EYeyF'])){logger[_0x407f8b(0x1b2)](_0x1820f0[_0x407f8b(0x1ba)]);const _0x447898={};_0x447898[_0x407f8b(0x1f4)]=this[_0x407f8b(0x1e1)]['testAnalyticsId'],_0x447898[_0x407f8b(0x1ad)]=process['env'][testHubConstants[_0x407f8b(0x200)][_0x407f8b(0x1fe)]],_0x447898['thJwtToken']=process[_0x407f8b(0x1d8)][testHubConstants[_0x407f8b(0x200)]['BROWSERSTACK_TESTHUB_JWT']];const _0x35b757=_0x447898;logger[_0x407f8b(0x1b3)](_0x407f8b(0x1a3)+JSON[_0x407f8b(0x1e9)](_0x35b757)),logger[_0x407f8b(0x1b3)](_0x1820f0[_0x407f8b(0x1dc)]),logger[_0x407f8b(0x1b3)](util[_0x407f8b(0x198)](await global[_0x407f8b(0x1d9)][0x0][_0x407f8b(0x210)](scripts[_0x407f8b(0x1cb)],{'method':global[_0x407f8b(0x1f8)]}))),await global[_0x407f8b(0x1d9)][0x0][_0x407f8b(0x210)](scripts[_0x407f8b(0x1d3)],_0x35b757),logger['info'](_0x1820f0[_0x407f8b(0x20b)]);}}catch(_0x297492){logger[_0x407f8b(0x1d6)](_0x407f8b(0x1bb)+this[_0x407f8b(0x1e1)][_0x407f8b(0x1a9)]()+_0x407f8b(0x1bc),_0x297492);}try{try{if(_0x1820f0['sDQTm'](shouldProcessEventForTesthub)){global[_0x407f8b(0x1d9)][0x0]&&await _0x1820f0['NjOee'](sendPlatformDetails,global['__drivers'][0x0],this[_0x407f8b(0x1e1)]?this['currentTest'][_0x407f8b(0x1c9)]:null);if(_0x1820f0[_0x407f8b(0x202)](isBrowserstackInfra)){const _0x916d4=_0x407f8b(0x212)+Date[_0x407f8b(0x19f)]();await _0x1820f0[_0x407f8b(0x19c)](_0x205f69,JSON[_0x407f8b(0x1e9)](_0x916d4),_0x1820f0[_0x407f8b(0x20c)]);}}}catch{}_0x1820f0['MKvfn'](global['__drivers'][0x0][_0x407f8b(0x1b0)],0x0)&&await global[_0x407f8b(0x1a5)]();}catch(_0x43d80c){}_0x1820f0[_0x407f8b(0x1ea)](_0xb7217a);})[_0x3ac207(0x1a6)](()=>_0x316733());},'afterAll'(_0x1b3449){const _0x12fbc2=a32_0x229932,_0x4dc18e={'boCNH':function(_0x472e2f){return _0x472e2f();}},_0x2b736b='browserstack internal helper hook';this[_0x12fbc2(0x1fd)](0xfde8),new Promise(async _0x3405c4=>{const _0x14954b=_0x12fbc2;PerformanceTester[_0x14954b(0x1df)](),await global['driverCleanup'](),_0x4dc18e[_0x14954b(0x1b4)](_0x3405c4);})['then'](()=>_0x1b3449());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x370121=a33_0x25a9;(function(_0x1b42c4,_0x1c10e5){const _0x51e5ea=a33_0x25a9,_0x1f4253=_0x1b42c4();while(!![]){try{const _0x26ae69=-parseInt(_0x51e5ea(0x20e))/0x1+-parseInt(_0x51e5ea(0x1e1))/0x2+parseInt(_0x51e5ea(0x214))/0x3*(-parseInt(_0x51e5ea(0x201))/0x4)+-parseInt(_0x51e5ea(0x1df))/0x5+parseInt(_0x51e5ea(0x20a))/0x6*(parseInt(_0x51e5ea(0x213))/0x7)+-parseInt(_0x51e5ea(0x218))/0x8+parseInt(_0x51e5ea(0x20b))/0x9;if(_0x26ae69===_0x1c10e5)break;else _0x1f4253['push'](_0x1f4253['shift']());}catch(_0x441ff7){_0x1f4253['push'](_0x1f4253['shift']());}}}(a33_0x1412,0x30a5f));function a33_0x25a9(_0x466cf1,_0x10efe3){const _0x14128e=a33_0x1412();return a33_0x25a9=function(_0x25a947,_0x4bc196){_0x25a947=_0x25a947-0x1dd;let _0x5b9138=_0x14128e[_0x25a947];return _0x5b9138;},a33_0x25a9(_0x466cf1,_0x10efe3);}function a33_0x1412(){const _0x170869=['JTXMG','slice','895060HrQdzw','config','516774CECsqi','VhoRB','existsSync','MjUKP','platform','../utils/constants','forEach','useW3C','platforms','child\x20process\x20exited\x20with\x20code\x20','../../helpers/logger','hRChe','NWFPP','Deleting\x20','cwd','modifyBrowserStackW3CCaps','xXJji','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','lghcp','--env','join','debug','exports','push','osLNr','start_process','qKgVq','nightwatch-browserstack.json','nightwatch.json','../../helpers/BrowserStackSetup','selenium','desiredCapabilities','17164cuureM','trim','mWuHS','Getting\x20your\x20nightwatch\x20configs\x20from\x20','hub.browserstack.com','isUndefined','dNUFL','getPlatformName','test_settings','30qgmFpK','9240651qvGIEX','mergeDeep','host','277976nuygaU','inherit','info','--config','split','260127qEDFMS','42bUqNHy','env','tGpRo','Xdjub','1902656KbxVUi','CrEfD','child_process','length','UNEAV','ZGPOx','winstonLogger','modifyBrowserStackCaps','mLTKM','findIndex'];a33_0x1412=function(){return _0x170869;};return a33_0x1412();}const fs=require('fs'),path=require('path'),{spawn}=require(a33_0x370121(0x21a)),logger=require(a33_0x370121(0x1eb))[a33_0x370121(0x21e)],{default:BrowserStackSetup}=require(a33_0x370121(0x1fe)),helper=require('../../helpers/helper'),constants=require(a33_0x370121(0x1e6)),getUserNightwatchConfigs=(_0x303cf7,_0x43e2b7)=>{const _0x50ebb6=a33_0x370121,_0x3815df={'esyTP':'nightwatch.conf.js','tGpRo':_0x50ebb6(0x1fd),'DZTbm':function(_0x4ff5e1,_0x327667){return _0x4ff5e1(_0x327667);},'mWuHS':_0x50ebb6(0x1f2)};let _0x26e421=null,_0x533506={};const _0x4c5c36=_0x43e2b7[_0x50ebb6(0x221)](_0x517dda=>_0x517dda===_0x50ebb6(0x211));if(!helper[_0x50ebb6(0x206)](_0x303cf7['config'])&&fs['existsSync'](path[_0x50ebb6(0x1f5)](process[_0x50ebb6(0x1ef)](),_0x303cf7[_0x50ebb6(0x1e0)])))_0x26e421=path['join'](process[_0x50ebb6(0x1ef)](),_0x303cf7['config']),_0x43e2b7['splice'](_0x4c5c36,0x2);else{if(fs[_0x50ebb6(0x1e3)](path['join'](process[_0x50ebb6(0x1ef)](),_0x3815df['esyTP'])))_0x26e421=path['join'](process[_0x50ebb6(0x1ef)](),_0x3815df['esyTP']);else fs[_0x50ebb6(0x1e3)](path[_0x50ebb6(0x1f5)](process[_0x50ebb6(0x1ef)](),_0x3815df[_0x50ebb6(0x216)]))&&(_0x26e421=path['join'](process[_0x50ebb6(0x1ef)](),_0x3815df[_0x50ebb6(0x216)]));}return _0x26e421?(logger[_0x50ebb6(0x210)](_0x50ebb6(0x204)+_0x26e421),_0x533506=_0x3815df['DZTbm'](require,_0x26e421)):logger[_0x50ebb6(0x210)](_0x3815df[_0x50ebb6(0x203)]),_0x533506;},removeExistingEnvs=_0x4bb40a=>{const _0x27fde7=a33_0x370121,_0x456b8d={};_0x456b8d[_0x27fde7(0x1fb)]=function(_0x560cde,_0x277a06){return _0x560cde>_0x277a06;},_0x456b8d[_0x27fde7(0x1e4)]=function(_0x3105a8,_0x3ede18){return _0x3105a8>_0x3ede18;};const _0x306317=_0x456b8d;let _0x8c5a21=_0x4bb40a[_0x27fde7(0x221)](_0x4165cd=>_0x4165cd===_0x27fde7(0x1f4));_0x306317['qKgVq'](_0x8c5a21,-0x1)&&_0x4bb40a['splice'](_0x8c5a21,0x2),_0x8c5a21=_0x4bb40a[_0x27fde7(0x221)](_0x332352=>_0x332352==='-e'),_0x306317['MjUKP'](_0x8c5a21,-0x1)&&_0x4bb40a['splice'](_0x8c5a21,0x2);};function run(_0x5cdc86,_0x2c76da){const _0x42585b=a33_0x370121,_0xfb9e04={'dNUFL':'nightwatch','CrEfD':function(_0x4c183c,_0x50f264){return _0x4c183c+_0x50f264;},'xXJji':_0x42585b(0x209),'mLTKM':function(_0xfe5ece,_0x415336,_0x21aa05){return _0xfe5ece(_0x415336,_0x21aa05);},'POjyD':_0x42585b(0x205),'VhoRB':'Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','UNEAV':function(_0x154870,_0xbcefbd){return _0x154870===_0xbcefbd;},'qTcOc':_0x42585b(0x1fc),'SqKDQ':function(_0x5080ed,_0x57a55d){return _0x5080ed(_0x57a55d);},'osLNr':function(_0x49f45a,_0x5d1859,_0xa0c927,_0x5b4589){return _0x49f45a(_0x5d1859,_0xa0c927,_0x5b4589);},'NWFPP':'nightwatch.cmd','lghcp':'--config','Xdjub':_0x42585b(0x1f4),'JTXMG':_0x42585b(0x20f),'iShPu':'close'},_0xaf13e5=new BrowserStackSetup(_0x5cdc86);if(!_0xaf13e5[_0x42585b(0x1e0)])return;const _0x124cb9=_0xfb9e04[_0x42585b(0x220)](getUserNightwatchConfigs,_0x5cdc86,_0x2c76da),_0xdfb61d={};_0xdfb61d[_0x42585b(0x1fa)]=![];const _0x26407e={};_0x26407e[_0x42585b(0x20d)]=_0xfb9e04['POjyD'],_0x26407e['port']=0x1bb;const _0x4e89b2={};_0x4e89b2['webdriver']=_0xdfb61d,_0x4e89b2[_0x42585b(0x1ff)]=_0x26407e;const _0x4a5831=_0x4e89b2;logger['info'](_0xfb9e04[_0x42585b(0x1e2)]);const _0x206e2a={..._0x124cb9},_0xb80deb=_0x206e2a,_0x161f0e=helper[_0x42585b(0x1e8)](_0xaf13e5[_0x42585b(0x1e0)]),_0x3a4dff=[];_0xaf13e5['config'][_0x42585b(0x1e9)]['forEach']((_0xa3864f,_0x3e0542)=>{const _0x485038=_0x42585b;_0x161f0e?_0x3a4dff[_0x485038(0x1f8)](helper[_0x485038(0x1f0)](_0xaf13e5[_0x485038(0x1e0)],_0xfb9e04[_0x485038(0x207)],_0x3e0542)):_0x3a4dff[_0x485038(0x1f8)](helper[_0x485038(0x21f)](_0xaf13e5[_0x485038(0x1e0)],_0xfb9e04['dNUFL'],_0x3e0542));});const _0x13323e={},_0x468ac5=[];_0x5cdc86[_0x42585b(0x215)]=_0x5cdc86[_0x42585b(0x215)]||_0x5cdc86['e'];const _0x1e42a8=_0x5cdc86[_0x42585b(0x215)]?_0x5cdc86[_0x42585b(0x215)][_0x42585b(0x202)]()[_0x42585b(0x212)](',')['map'](_0xcbb8e=>_0xcbb8e[_0x42585b(0x202)]())['filter'](_0x101db2=>_0x101db2!==''):[''];_0xfb9e04[_0x42585b(0x21c)](_0x1e42a8[_0x42585b(0x21b)],0x0)&&_0x1e42a8[_0x42585b(0x1f8)]('');_0x1e42a8[_0x42585b(0x1e7)](_0x58dedb=>{const _0x466e01=_0x42585b,_0x49f2cc={'hRChe':function(_0x58b84d,_0xc9b18c){const _0x56383e=a33_0x25a9;return _0xfb9e04[_0x56383e(0x219)](_0x58b84d,_0xc9b18c);},'ZGPOx':_0xfb9e04[_0x466e01(0x1f1)]};_0x3a4dff['forEach'](_0x378325=>{const _0x456ee0=_0x466e01;let _0x2c1c98=_0x49f2cc[_0x456ee0(0x1ec)](helper[_0x456ee0(0x208)](_0x378325,'_'),'_'+Date['now']());_0x58dedb&&(_0x2c1c98+='_'+_0x58dedb);if(_0x58dedb&&(!_0x124cb9[_0x49f2cc[_0x456ee0(0x21d)]]||!_0x124cb9[_0x49f2cc[_0x456ee0(0x21d)]][_0x58dedb]))return;const _0x15dc6d={..._0x4a5831};_0x15dc6d[_0x456ee0(0x200)]=_0x378325;const _0x2ab4e0=_0x15dc6d;_0x13323e[_0x2c1c98]=_0x58dedb?helper[_0x456ee0(0x20c)](_0x124cb9[_0x49f2cc['ZGPOx']][_0x58dedb],_0x2ab4e0):_0x2ab4e0,_0x468ac5[_0x456ee0(0x1f8)](_0x2c1c98);});});!_0xb80deb[_0x42585b(0x209)]&&(_0xb80deb['test_settings']={});_0xb80deb[_0x42585b(0x209)]={..._0xb80deb[_0x42585b(0x209)],..._0x13323e};const _0x1fb008=path[_0x42585b(0x1f5)](__dirname,_0xfb9e04['qTcOc']);fs['writeFileSync'](_0x1fb008,JSON['stringify'](_0xb80deb)),_0xfb9e04['SqKDQ'](removeExistingEnvs,_0x2c76da);const _0x129e12=_0xfb9e04[_0x42585b(0x1f9)](spawn,/^win/['test'](process[_0x42585b(0x1e5)])?_0xfb9e04[_0x42585b(0x1ed)]:_0xfb9e04[_0x42585b(0x207)],[_0xfb9e04[_0x42585b(0x1f3)],_0x1fb008,..._0x2c76da[_0x42585b(0x1de)](0x1),_0xfb9e04[_0x42585b(0x217)],_0x468ac5[_0x42585b(0x1f5)](',')],{'stdio':_0xfb9e04[_0x42585b(0x1dd)]});_0x129e12['on'](_0xfb9e04['iShPu'],async _0x1b6004=>{const _0x5440e5=_0x42585b;logger[_0x5440e5(0x1f6)](_0x5440e5(0x1ea)+_0x1b6004),logger[_0x5440e5(0x210)](_0x5440e5(0x1ee)+_0x1fb008),fs['unlinkSync'](_0x1fb008);});}module[a33_0x370121(0x1f7)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a34_0x529a(){const _0x31ae53=['oykKQ','102zsixmq','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','PxLor','RBpIv','MaCDb','YnnWF','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','includeIssueType','currentTest','constructor','testInfo','needsReview','deviceName','3326719xiRFqa','debug','platformValidation','error','executeScript','getAccessibilityResults','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','accessibilityOptions','EbLsp','accessibilityOptions.includeIssueType.needsReview','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','YQIOp','parse','dxbGU','evaluate','accessibilityPlatform','use','processAccessibilityCaps','No\x20summaryResults\x20found.','accessibilityOptions.scannerVersion','name','env','browser','mdbji','browserStackEvaluate','chrome','EUySQ','QgOPp','stringify','VreoF','accessibilityOptions.authToken','../../helpers/helper','6684zPQhxm','1022210OSsZkn','browserName','9NWWdjn','fvQrR','EXSBc','BGuQt','fNtvw','spxct','gSQdc','BS_A11Y_JWT','project','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','getAccessibilityResultsSummary','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','scannerVersion','bstackSdkArgs','bestPractice','scannerProcessingTimeout','NsrEN','1168820mRccxr','KYbMK','browser_version','playwright-chromium','800125VvOefQ','performScan','connectOptions','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','fMOLn','wsEndpoint','warn','../../helpers/accessibility-automation/helper','mJlDZ','tpAuJ','pzffl','latest','Ulfsw','browserStackExecuteDriver','BFBTo','accessibilityOptions.includeIssueType.bestPractice','826224XTJmUo','OKVAA','YFnol','(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','ggYFP','../../helpers/accessibility-automation/scripts','xiNgE','wcagVersion','winstonLogger','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','tSpdV','8eIdoPP','../../helpers/logger','IlYKo','197419ELenQQ','PAtcj','2okUXws','gqFzc','format','browserstack.accessibility'];a34_0x529a=function(){return _0x31ae53;};return a34_0x529a();}const a34_0x3734ea=a34_0x1860;(function(_0x25fcbd,_0x5a514d){const _0x11a2cf=a34_0x1860,_0x46278f=_0x25fcbd();while(!![]){try{const _0x443f03=parseInt(_0x11a2cf(0xad))/0x1*(parseInt(_0x11a2cf(0xaf))/0x2)+-parseInt(_0x11a2cf(0xb4))/0x3*(parseInt(_0x11a2cf(0xe1))/0x4)+parseInt(_0x11a2cf(0x8f))/0x5+parseInt(_0x11a2cf(0x9f))/0x6+-parseInt(_0x11a2cf(0xe2))/0x7*(parseInt(_0x11a2cf(0xaa))/0x8)+parseInt(_0x11a2cf(0xe4))/0x9*(parseInt(_0x11a2cf(0xf6))/0xa)+-parseInt(_0x11a2cf(0xc1))/0xb;if(_0x443f03===_0x5a514d)break;else _0x46278f['push'](_0x46278f['shift']());}catch(_0x1a59ef){_0x46278f['push'](_0x46278f['shift']());}}}(a34_0x529a,0x1a105));const util=require('util'),logger=require(a34_0x3734ea(0xab))[a34_0x3734ea(0xa7)],{isAccessibilityAutomationSession}=require(a34_0x3734ea(0x96)),{isUndefined}=require(a34_0x3734ea(0xe0)),scripts=require(a34_0x3734ea(0xa4));function a34_0x1860(_0x1f75f0,_0x151602){const _0x529a16=a34_0x529a();return a34_0x1860=function(_0x1860b8,_0xa99773){_0x1860b8=_0x1860b8-0x8d;let _0x33d6d5=_0x529a16[_0x1860b8];return _0x33d6d5;},a34_0x1860(_0x1f75f0,_0x151602);}exports[a34_0x3734ea(0xd9)]=async(_0x4e1c8e,_0x4b6159,_0x108476={})=>{const _0x11c9c7=a34_0x3734ea,_0x1718af={};_0x1718af[_0x11c9c7(0x9b)]=_0x11c9c7(0xf2);const _0x251d7e=_0x1718af;return await _0x4e1c8e[_0x11c9c7(0xcf)](_0x11c9c7(0xa2)+_0x4b6159['replace'](/arguments/g,_0x251d7e['Ulfsw'])+_0x11c9c7(0xcb)+JSON['stringify'](_0x108476)+')');},exports[a34_0x3734ea(0x9c)]=async(_0xd486d6,_0xa182f4,_0x296ae1={})=>{const _0x5a08fe=a34_0x3734ea,_0xece012={};_0xece012[_0x5a08fe(0xdb)]=function(_0xd13d89,_0x4ee10d){return _0xd13d89===_0x4ee10d;},_0xece012[_0x5a08fe(0xb7)]='WebDriver',_0xece012['YQIOp']=function(_0x17fed9,_0x480ba4){return _0x17fed9===_0x480ba4;},_0xece012['bIvKH']='Playwright',_0xece012[_0x5a08fe(0xb9)]='bstackSdkArgs';const _0x33513d=_0xece012;if(_0x33513d[_0x5a08fe(0xdb)](_0xd486d6[_0x5a08fe(0xbd)][_0x5a08fe(0xd5)],_0x33513d[_0x5a08fe(0xb7)]))return await _0xd486d6['executeAsyncScript'](_0xa182f4,_0x296ae1);else{if(_0x33513d[_0x5a08fe(0xcc)](_0xd486d6['constructor'][_0x5a08fe(0xd5)],_0x33513d['bIvKH']))return await _0xd486d6[_0x5a08fe(0xc5)](_0x5a08fe(0xba)+_0xa182f4['replace'](/arguments/g,_0x33513d[_0x5a08fe(0xb9)])+_0x5a08fe(0xa8)+JSON[_0x5a08fe(0xdd)](_0x296ae1)+')');}},exports['setAccessibilityCapabilities']=async _0x5913b9=>{const _0x331241=a34_0x3734ea,_0x54d3e2={};_0x54d3e2['AEVrK']='accessibilityOptions.wcagVersion',_0x54d3e2[_0x331241(0xe5)]='accessibilityOptions.scannerProcessingTimeout',_0x54d3e2['fNtvw']=_0x331241(0x9e),_0x54d3e2[_0x331241(0xe6)]=_0x331241(0xca),_0x54d3e2[_0x331241(0xa0)]=_0x331241(0xdf),_0x54d3e2[_0x331241(0xe7)]=_0x331241(0xd4);const _0xc1d8ca=_0x54d3e2;_0x5913b9[_0x331241(0xc8)]&&(_0x5913b9[_0x331241(0xc8)][_0x331241(0xa6)]&&(_0x5913b9[_0xc1d8ca['AEVrK']]=_0x5913b9[_0x331241(0xc8)][_0x331241(0xa6)]),_0x5913b9[_0x331241(0xc8)][_0x331241(0xf4)]&&(_0x5913b9[_0xc1d8ca[_0x331241(0xe5)]]=_0x5913b9['accessibilityOptions'][_0x331241(0xf4)]),_0x5913b9[_0x331241(0xc8)][_0x331241(0xbb)]&&(_0x5913b9[_0xc1d8ca[_0x331241(0xe8)]]=_0x5913b9[_0x331241(0xc8)][_0x331241(0xbb)][_0x331241(0xf3)],_0x5913b9[_0xc1d8ca[_0x331241(0xe6)]]=_0x5913b9[_0x331241(0xc8)][_0x331241(0xbb)][_0x331241(0xbf)]));const _0x347f7c=JSON[_0x331241(0xcd)](process[_0x331241(0xd6)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x331241(0xf1)];_0x5913b9[_0xc1d8ca[_0x331241(0xa0)]]=process['env'][_0x331241(0xeb)],_0x5913b9[_0xc1d8ca[_0x331241(0xe7)]]=_0x347f7c,delete _0x5913b9[_0x331241(0xc8)];},exports[a34_0x3734ea(0xc6)]=async _0x1b57cb=>{const _0x1489e1=a34_0x3734ea,_0x592341={};_0x592341[_0x1489e1(0xb6)]='No\x20accessibility\x20results\x20were\x20found.',_0x592341['tSpdV']=_0x1489e1(0xb5);const _0x2782d9=_0x592341;if(global[_0x1489e1(0xd0)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x1b57cb,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x1b57cb,scripts.getResults);return res;}catch{return logger[_0x1489e1(0xc4)](_0x2782d9['PxLor']),[];}else return logger[_0x1489e1(0x95)](_0x2782d9[_0x1489e1(0xa9)]),[];},exports[a34_0x3734ea(0x90)]=async(_0x4cf73e,_0x410c57='')=>{const _0x9bb6a1=a34_0x3734ea;if(global['accessibilityPlatform']){const _0x5362de={};return _0x5362de['method']=_0x410c57,await exports[_0x9bb6a1(0xd9)](_0x4cf73e,scripts['performScan'],_0x5362de);}},exports[a34_0x3734ea(0xef)]=async _0x4faf02=>{const _0x4d33aa=a34_0x3734ea,_0x426aad={};_0x426aad[_0x4d33aa(0xdc)]=_0x4d33aa(0xd3),_0x426aad[_0x4d33aa(0x93)]=_0x4d33aa(0xf0);const _0x2254aa=_0x426aad;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4faf02,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x4faf02,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x4d33aa(0xc2)](_0x2254aa[_0x4d33aa(0xdc)]),{};}else return logger[_0x4d33aa(0x95)](_0x2254aa[_0x4d33aa(0x93)]),{};},exports[a34_0x3734ea(0xc3)]=async _0x29e5de=>{const _0x2c43f3=a34_0x3734ea,_0xe757bb={'PAtcj':function(_0x687dd,_0xae42aa){return _0x687dd!==_0xae42aa;},'gqFzc':_0x2c43f3(0xed),'LWmWP':function(_0x46dd51,_0x1d46a2){return _0x46dd51===_0x1d46a2;},'dxbGU':_0x2c43f3(0xda),'MaCDb':function(_0x10fc91,_0x4259d4){return _0x10fc91===_0x4259d4;},'BFBTo':_0x2c43f3(0x8e),'KYbMK':_0x2c43f3(0x92),'ggYFP':function(_0x2a114,_0xbd6fed){return _0x2a114(_0xbd6fed);},'tpAuJ':'latest','EbLsp':function(_0x24c806,_0xa32158){return _0x24c806>_0xa32158;},'gSQdc':_0x2c43f3(0xc7)};try{if(!_0xe757bb[_0x2c43f3(0xae)](_0x29e5de['deviceName'],''))return logger['warn'](_0xe757bb[_0x2c43f3(0xb0)]),![];const _0x1299d1=_0x29e5de[_0x2c43f3(0xd7)];if(!(_0xe757bb['LWmWP'](_0x1299d1,_0xe757bb[_0x2c43f3(0xce)])||_0xe757bb[_0x2c43f3(0xb8)](_0x1299d1,_0xe757bb[_0x2c43f3(0x9d)])))return logger[_0x2c43f3(0x95)](_0xe757bb[_0x2c43f3(0xf7)]),![];const _0xf2fccc=_0xe757bb[_0x2c43f3(0xa3)](parseInt,_0x29e5de[_0x2c43f3(0x8d)]);if(!(_0xe757bb[_0x2c43f3(0xb8)](_0xf2fccc,_0xe757bb[_0x2c43f3(0x98)])||_0xe757bb[_0x2c43f3(0xc9)](_0xf2fccc,0x5e)))return logger[_0x2c43f3(0x95)](_0xe757bb[_0x2c43f3(0xea)]),![];}catch(_0x39dd93){logger[_0x2c43f3(0xc2)](_0x2c43f3(0xee)+util[_0x2c43f3(0xb1)](_0x39dd93));}return!![];},exports[a34_0x3734ea(0xd2)]=(_0x1ce9d9,_0x4d9243,_0x55959a)=>{const _0x424749=a34_0x3734ea,_0x44e4e6={'oykKQ':function(_0x4599fd){return _0x4599fd();},'IlYKo':_0x424749(0xb2),'NsrEN':function(_0x17f6eb,_0x4e06b4){return _0x17f6eb===_0x4e06b4;},'QhBiX':_0x424749(0xda),'pzffl':function(_0x332fbb,_0x101199){return _0x332fbb===_0x101199;},'YyYsm':'playwright-chromium','spxct':_0x424749(0x92),'ZytoM':function(_0x14216d,_0xce8ed){return _0x14216d===_0xce8ed;},'VreoF':_0x424749(0x9a),'mdbji':function(_0x5c3918,_0x452da9){return _0x5c3918>_0x452da9;},'CDHpe':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','YFnol':function(_0x5aee13,_0x152dbd){return _0x5aee13(_0x152dbd);},'xiNgE':_0x424749(0xed),'hiddO':function(_0x159833,_0x5375a8){return _0x159833+_0x5375a8;},'mJlDZ':function(_0x33fb98,_0x1a0bfc){return _0x33fb98(_0x1a0bfc);}};try{if(_0x44e4e6[_0x424749(0xb3)](isAccessibilityAutomationSession)){global[_0x424749(0xd0)]=!![];!_0x1ce9d9[_0x44e4e6['IlYKo']]&&(global[_0x424749(0xd0)]=![]);!(_0x44e4e6[_0x424749(0xf5)](_0x1ce9d9[_0x424749(0xe3)],_0x44e4e6['QhBiX'])||_0x44e4e6[_0x424749(0x99)](_0x1ce9d9[_0x424749(0xe3)],_0x44e4e6['YyYsm']))&&(logger['warn'](_0x44e4e6[_0x424749(0xe9)]),global[_0x424749(0xd0)]=![]);!(_0x44e4e6['ZytoM'](_0x1ce9d9[_0x424749(0x8d)],_0x44e4e6[_0x424749(0xde)])||_0x44e4e6[_0x424749(0xd8)](_0x1ce9d9[_0x424749(0x8d)],0x5e))&&(logger['warn'](_0x44e4e6['CDHpe']),global['accessibilityPlatform']=![]);!_0x44e4e6[_0x424749(0xa1)](isUndefined,_0x1ce9d9[_0x424749(0xc0)])&&(logger[_0x424749(0x95)](_0x44e4e6[_0x424749(0xa5)]),global[_0x424749(0xd0)]=![]);if(!global[_0x424749(0xd0)]){_0x1ce9d9[_0x44e4e6[_0x424749(0xac)]]=![];const _0x4a976d=_0x44e4e6['hiddO'](_0x4d9243,_0x44e4e6[_0x424749(0x97)](encodeURIComponent,JSON[_0x424749(0xdd)](_0x1ce9d9)));_0x55959a&&(_0x55959a[_0x424749(0xbc)][_0x424749(0xbe)][_0x424749(0xec)]['use'][_0x424749(0x91)]['wsEndpoint']=_0x4a976d,_0x55959a['workerInfo']['project'][_0x424749(0xd1)]['connectOptions'][_0x424749(0x94)]=_0x4a976d);}}}catch(_0x2776d1){logger[_0x424749(0xc2)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x424749(0xb1)](_0x2776d1));}};
|
|
1
|
+
const a34_0x21ee7e=a34_0x25c5;function a34_0x2ea9(){const _0x13ff3b=['MvyhP','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','browserstack.accessibility','ZJklr','browserName','No\x20summaryResults\x20found.','browserStackEvaluate','BZebJ','UYGQm','name','1234HJijhW','warn','ZASjX','QCsNd','accessibilityPlatform','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','kPDJM','QxOri','kzJZE','getAccessibilityResults','WebDriver','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','use','10IymBOd','../../helpers/logger','BS_A11Y_JWT','connectOptions','accessibilityOptions.wcagVersion','vHvqQ','accessibilityOptions.includeIssueType.needsReview','ZFCHo','testInfo','bstackSdkArgs','setAccessibilityCapabilities','accessibilityOptions.scannerVersion','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','10928cnJkez','24YBmhym','currentTest','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','LuniT','workerInfo','ahHwR','replace','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','955odBkOS','util','browser','Playwright','CMius','JxCsE','accessibilityOptions','../../helpers/accessibility-automation/scripts','DFPso','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','stringify','QXZOy','Oqoci','XIAov','SFljC','latest','deviceName','LmArA','method','project','3742413eNqwFd','winstonLogger','playwright-chromium','wcagVersion','yDpbn','processAccessibilityCaps','executeAsyncScript','879104vNZOsC','XCDbA','1901EpjJhy','includeIssueType','SIsYC','browser_version','BLAFK','qhgFY','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','browserStackExecuteDriver','parse','21tvqLoh','error','nQueQ','ZWEce','getAccessibilityResultsSummary','MFhkO','ybXTI','No\x20accessibility\x20results\x20were\x20found.','scannerProcessingTimeout','evaluate','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','wsEndpoint','1299426vzJUhc','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','performScan','xiFsN','platformValidation','ZyBwE','3193794lpkwEF','needsReview','WnDaU','../../helpers/helper','35222MNjvsi','constructor','debug','pdHUF','scannerVersion'];a34_0x2ea9=function(){return _0x13ff3b;};return a34_0x2ea9();}function a34_0x25c5(_0x1552df,_0x2aefe2){const _0x2ea9c5=a34_0x2ea9();return a34_0x25c5=function(_0x25c55b,_0x1106cd){_0x25c55b=_0x25c55b-0x17d;let _0x74d382=_0x2ea9c5[_0x25c55b];return _0x74d382;},a34_0x25c5(_0x1552df,_0x2aefe2);}(function(_0x4b2e66,_0x32b7dc){const _0x111119=a34_0x25c5,_0x59bf9a=_0x4b2e66();while(!![]){try{const _0x5c052d=-parseInt(_0x111119(0x1dc))/0x1*(-parseInt(_0x111119(0x19c))/0x2)+-parseInt(_0x111119(0x1d3))/0x3+-parseInt(_0x111119(0x1b6))/0x4*(-parseInt(_0x111119(0x1bf))/0x5)+parseInt(_0x111119(0x183))/0x6*(parseInt(_0x111119(0x1e5))/0x7)+-parseInt(_0x111119(0x1da))/0x8+parseInt(_0x111119(0x189))/0x9*(-parseInt(_0x111119(0x1a9))/0xa)+parseInt(_0x111119(0x18d))/0xb*(-parseInt(_0x111119(0x1b7))/0xc);if(_0x5c052d===_0x32b7dc)break;else _0x59bf9a['push'](_0x59bf9a['shift']());}catch(_0x35295e){_0x59bf9a['push'](_0x59bf9a['shift']());}}}(a34_0x2ea9,0x98c95));const util=require(a34_0x21ee7e(0x1c0)),logger=require(a34_0x21ee7e(0x1aa))[a34_0x21ee7e(0x1d4)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a34_0x21ee7e(0x18c)),scripts=require(a34_0x21ee7e(0x1c6));exports[a34_0x21ee7e(0x198)]=async(_0x368f60,_0x28a87d,_0x5c50fd={})=>{const _0x2005bd=a34_0x21ee7e,_0x3c4532={};_0x3c4532['ahHwR']=_0x2005bd(0x1b2);const _0x3e0a65=_0x3c4532;return await _0x368f60[_0x2005bd(0x180)](_0x2005bd(0x1b9)+_0x28a87d[_0x2005bd(0x1bd)](/arguments/g,_0x3e0a65[_0x2005bd(0x1bc)])+_0x2005bd(0x1b5)+JSON[_0x2005bd(0x1c9)](_0x5c50fd)+')');},exports[a34_0x21ee7e(0x1e3)]=async(_0xd4afb0,_0x367372,_0x465cb0={})=>{const _0x340269=a34_0x21ee7e,_0x3e2cd8={};_0x3e2cd8[_0x340269(0x17d)]=function(_0x54343a,_0x1dabaf){return _0x54343a===_0x1dabaf;},_0x3e2cd8[_0x340269(0x186)]=_0x340269(0x1a6),_0x3e2cd8[_0x340269(0x1cc)]=_0x340269(0x1c2),_0x3e2cd8['QXZOy']=_0x340269(0x1b2);const _0x4bf7c2=_0x3e2cd8;if(_0x4bf7c2[_0x340269(0x17d)](_0xd4afb0[_0x340269(0x18e)]['name'],_0x4bf7c2[_0x340269(0x186)]))return await _0xd4afb0[_0x340269(0x1d9)](_0x367372,_0x465cb0);else{if(_0x4bf7c2['ybXTI'](_0xd4afb0['constructor'][_0x340269(0x19b)],_0x4bf7c2[_0x340269(0x1cc)]))return await _0xd4afb0['executeScript'](_0x340269(0x1a7)+_0x367372[_0x340269(0x1bd)](/arguments/g,_0x4bf7c2[_0x340269(0x1ca)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x340269(0x1c9)](_0x465cb0)+')');}},exports[a34_0x21ee7e(0x1b3)]=async _0x847544=>{const _0x3b36c1=a34_0x21ee7e,_0x5a4dbe={};_0x5a4dbe[_0x3b36c1(0x1b0)]=_0x3b36c1(0x1ad),_0x5a4dbe[_0x3b36c1(0x1e7)]='accessibilityOptions.scannerProcessingTimeout',_0x5a4dbe[_0x3b36c1(0x1db)]='accessibilityOptions.includeIssueType.bestPractice',_0x5a4dbe[_0x3b36c1(0x1e8)]=_0x3b36c1(0x1af),_0x5a4dbe[_0x3b36c1(0x19e)]='accessibilityOptions.authToken',_0x5a4dbe[_0x3b36c1(0x1ea)]=_0x3b36c1(0x1b4);const _0x546cd8=_0x5a4dbe;_0x847544[_0x3b36c1(0x1c5)]&&(_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1d6)]&&(_0x847544[_0x546cd8[_0x3b36c1(0x1b0)]]=_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1d6)]),_0x847544['accessibilityOptions']['scannerProcessingTimeout']&&(_0x847544[_0x546cd8[_0x3b36c1(0x1e7)]]=_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x17f)]),_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1dd)]&&(_0x847544[_0x546cd8['XCDbA']]=_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1dd)]['bestPractice'],_0x847544[_0x546cd8[_0x3b36c1(0x1e8)]]=_0x847544[_0x3b36c1(0x1c5)][_0x3b36c1(0x1dd)][_0x3b36c1(0x18a)]));const _0x1a8cb4=JSON[_0x3b36c1(0x1e4)](process['env'][_0x3b36c1(0x193)])[_0x3b36c1(0x191)];_0x847544[_0x546cd8[_0x3b36c1(0x19e)]]=process['env'][_0x3b36c1(0x1ab)],_0x847544[_0x546cd8[_0x3b36c1(0x1ea)]]=_0x1a8cb4,delete _0x847544[_0x3b36c1(0x1c5)];},exports[a34_0x21ee7e(0x1a5)]=async _0x2ff7c0=>{const _0x43385c=a34_0x21ee7e,_0x14ab5f={};_0x14ab5f[_0x43385c(0x1a4)]=_0x43385c(0x17e),_0x14ab5f[_0x43385c(0x1ba)]=_0x43385c(0x1e2);const _0x9f0ade=_0x14ab5f;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x2ff7c0,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x2ff7c0,scripts.getResults);return res;}catch{return logger[_0x43385c(0x1e6)](_0x9f0ade[_0x43385c(0x1a4)]),[];}else return logger[_0x43385c(0x19d)](_0x9f0ade[_0x43385c(0x1ba)]),[];},exports[a34_0x21ee7e(0x185)]=async(_0x2fd0ae,_0x2c64ab='')=>{const _0x16ec54=a34_0x21ee7e;if(global[_0x16ec54(0x1a0)]){const _0x4fe1c5={};return _0x4fe1c5[_0x16ec54(0x1d1)]=_0x2c64ab,await exports[_0x16ec54(0x198)](_0x2fd0ae,scripts[_0x16ec54(0x185)],_0x4fe1c5);}},exports[a34_0x21ee7e(0x1e9)]=async _0x3f7783=>{const _0x5141ea=a34_0x21ee7e,_0x19beda={};_0x19beda[_0x5141ea(0x1c4)]=_0x5141ea(0x197),_0x19beda['MvyhP']=_0x5141ea(0x1c8);const _0x1e0831=_0x19beda;if(global[_0x5141ea(0x1a0)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3f7783,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x3f7783,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x5141ea(0x18f)](_0x1e0831[_0x5141ea(0x1c4)]),{};}else return logger[_0x5141ea(0x19d)](_0x1e0831[_0x5141ea(0x192)]),{};},exports[a34_0x21ee7e(0x187)]=async _0x553576=>{const _0x3be746=a34_0x21ee7e,_0x246df4={'qhgFY':function(_0x27589d,_0x479073){return _0x27589d!==_0x479073;},'Vrjtu':_0x3be746(0x1be),'UYGQm':function(_0x9dde4d,_0x212f23){return _0x9dde4d===_0x212f23;},'ZyBwE':'chrome','BuZuv':function(_0x13a9f7,_0x545435){return _0x13a9f7===_0x545435;},'yDpbn':_0x3be746(0x1d5),'GKLRk':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','CMius':function(_0x4e2b9c,_0x1100ca){return _0x4e2b9c(_0x1100ca);},'bjWzR':_0x3be746(0x1ce),'vHvqQ':function(_0x5f2059,_0x4befe4){return _0x5f2059>_0x4befe4;},'QCsNd':_0x3be746(0x1a1)};try{if(!_0x246df4[_0x3be746(0x1e1)](_0x553576['deviceName'],''))return logger['warn'](_0x246df4['Vrjtu']),![];const _0x1736ea=_0x553576[_0x3be746(0x1c1)];if(!(_0x246df4[_0x3be746(0x19a)](_0x1736ea,_0x246df4[_0x3be746(0x188)])||_0x246df4['BuZuv'](_0x1736ea,_0x246df4[_0x3be746(0x1d7)])))return logger[_0x3be746(0x19d)](_0x246df4['GKLRk']),![];const _0x7a6263=_0x246df4[_0x3be746(0x1c3)](parseInt,_0x553576[_0x3be746(0x1df)]);if(!(_0x246df4['UYGQm'](_0x7a6263,_0x246df4['bjWzR'])||_0x246df4[_0x3be746(0x1ae)](_0x7a6263,0x5e)))return logger[_0x3be746(0x19d)](_0x246df4[_0x3be746(0x19f)]),![];}catch(_0x5d7a40){logger[_0x3be746(0x18f)](_0x3be746(0x181)+util['format'](_0x5d7a40));}return!![];},exports[a34_0x21ee7e(0x1d8)]=(_0x3f7b90,_0x125c27,_0x128351)=>{const _0x5e6010=a34_0x21ee7e,_0x1d0122={'SFljC':function(_0x2321f5){return _0x2321f5();},'QxOri':_0x5e6010(0x194),'Oqoci':function(_0xcdd3c8,_0x3873e3){return _0xcdd3c8===_0x3873e3;},'LmArA':'chrome','DFPso':_0x5e6010(0x1d5),'SIsYC':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','BZebJ':function(_0xe8f1bd,_0x531dd5){return _0xe8f1bd===_0x531dd5;},'fnXqQ':_0x5e6010(0x1ce),'WnDaU':function(_0x3fc658,_0x240537){return _0x3fc658>_0x240537;},'pdHUF':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','BLAFK':function(_0x3ccfc6,_0x2d9745){return _0x3ccfc6(_0x2d9745);},'kPDJM':_0x5e6010(0x1be),'ZJklr':function(_0x2dd68b,_0x26f57a){return _0x2dd68b+_0x26f57a;},'HvgVu':function(_0x5a054f,_0x1f5c26){return _0x5a054f(_0x1f5c26);}};try{if(_0x1d0122[_0x5e6010(0x1cd)](isAccessibilityAutomationSession)){global[_0x5e6010(0x1a0)]=!![];!_0x3f7b90[_0x1d0122['QxOri']]&&(global['accessibilityPlatform']=![]);!(_0x1d0122['Oqoci'](_0x3f7b90[_0x5e6010(0x196)],_0x1d0122[_0x5e6010(0x1d0)])||_0x1d0122[_0x5e6010(0x1cb)](_0x3f7b90[_0x5e6010(0x196)],_0x1d0122[_0x5e6010(0x1c7)]))&&(logger[_0x5e6010(0x19d)](_0x1d0122[_0x5e6010(0x1de)]),global['accessibilityPlatform']=![]);!(_0x1d0122[_0x5e6010(0x199)](_0x3f7b90[_0x5e6010(0x1df)],_0x1d0122['fnXqQ'])||_0x1d0122[_0x5e6010(0x18b)](_0x3f7b90[_0x5e6010(0x1df)],0x5e))&&(logger['warn'](_0x1d0122[_0x5e6010(0x190)]),global[_0x5e6010(0x1a0)]=![]);!_0x1d0122[_0x5e6010(0x1e0)](isUndefined,_0x3f7b90[_0x5e6010(0x1cf)])&&(logger[_0x5e6010(0x19d)](_0x1d0122[_0x5e6010(0x1a2)]),global[_0x5e6010(0x1a0)]=![]);if(!global[_0x5e6010(0x1a0)]){_0x3f7b90[_0x1d0122[_0x5e6010(0x1a3)]]=![];const _0x40483f=_0x1d0122[_0x5e6010(0x195)](_0x125c27,_0x1d0122['HvgVu'](encodeURIComponent,JSON['stringify'](_0x3f7b90)));_0x128351&&(_0x128351[_0x5e6010(0x1b8)][_0x5e6010(0x1b1)][_0x5e6010(0x1d2)][_0x5e6010(0x1a8)][_0x5e6010(0x1ac)][_0x5e6010(0x182)]=_0x40483f,_0x128351[_0x5e6010(0x1bb)][_0x5e6010(0x1d2)][_0x5e6010(0x1a8)][_0x5e6010(0x1ac)][_0x5e6010(0x182)]=_0x40483f);}}}catch(_0x98e162){logger[_0x5e6010(0x18f)](_0x5e6010(0x184)+util['format'](_0x98e162));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a35_0x4384(_0x38f770,_0x52b6ad){const _0x356f91=a35_0x356f();return a35_0x4384=function(_0x438493,_0x457e2d){_0x438493=_0x438493-0x70;let _0x513529=_0x356f91[_0x438493];return _0x513529;},a35_0x4384(_0x38f770,_0x52b6ad);}const a35_0x4146e7=a35_0x4384;(function(_0x51db45,_0x237120){const _0x4eb922=a35_0x4384,_0x3f5709=_0x51db45();while(!![]){try{const _0x40ea12=parseInt(_0x4eb922(0x72))/0x1+-parseInt(_0x4eb922(0xd1))/0x2+-parseInt(_0x4eb922(0x7c))/0x3*(parseInt(_0x4eb922(0xf9))/0x4)+parseInt(_0x4eb922(0xb5))/0x5*(-parseInt(_0x4eb922(0xc4))/0x6)+parseInt(_0x4eb922(0xb0))/0x7+parseInt(_0x4eb922(0x100))/0x8*(parseInt(_0x4eb922(0xa2))/0x9)+parseInt(_0x4eb922(0xd2))/0xa*(-parseInt(_0x4eb922(0xa4))/0xb);if(_0x40ea12===_0x237120)break;else _0x3f5709['push'](_0x3f5709['shift']());}catch(_0x45b4ba){_0x3f5709['push'](_0x3f5709['shift']());}}}(a35_0x356f,0xd1c93));const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x4146e7(0x87)),{format}=require('util'),logger=require(a35_0x4146e7(0x91))['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x4146e7(0xdc)),helper=require(a35_0x4146e7(0xe9)),utilities=require(a35_0x4146e7(0xb2)),constants=require(a35_0x4146e7(0xca)),{FRAMEWORKS}=require(a35_0x4146e7(0xc5)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x4146e7(0x82)),{CrashReporter}=require(a35_0x4146e7(0xb1)),{getFrameworkVersion}=require(a35_0x4146e7(0x81)),{checkAccessibilityPlatformConfig}=require(a35_0x4146e7(0x9e)),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x4146e7(0xe0)),getUserPlaywrightConfig=async(_0x3d39d8,_0x1e20e6)=>{const _0x23c838=a35_0x4146e7,_0x11c9d9={'WPvRi':function(_0x203fd8){return _0x203fd8();},'LjDxT':function(_0x5da14f,_0x16b1ce){return _0x5da14f(_0x16b1ce);},'OWPMZ':function(_0x1332cc,_0x371c76){return _0x1332cc(_0x371c76);},'uYPYZ':_0x23c838(0xef),'LgaRI':_0x23c838(0x92)},_0x4a49fb=!helper[_0x23c838(0xc6)](_0x3d39d8['config']),_0x5a9ee0=_0x4a49fb?path['resolve'](process['cwd'](),_0x3d39d8[_0x23c838(0xc3)]):process['cwd'](),{resolveConfigFile:_0x185b33,resolveConfigLocation:_0x5b124c}=helper[_0x23c838(0xa3)][_0x23c838(0xe7)](null,_0x11c9d9[_0x23c838(0xb4)](getConfigLoaderPath)),_0x17a3f8=_0x185b33?_0x11c9d9[_0x23c838(0xa5)](_0x185b33,_0x5a9ee0):helper['nestedKeyValue'](_0x11c9d9[_0x23c838(0x90)](_0x5b124c,_0x5a9ee0),[_0x11c9d9[_0x23c838(0x89)]]),_0x202e08={};if(_0x4a49fb){const _0x3b46b9=_0x1e20e6['findIndex'](_0x512d3e=>_0x512d3e===_0x23c838(0xf1)||_0x512d3e==='-c'||_0x512d3e[_0x23c838(0x7e)](_0x23c838(0x92)));_0x1e20e6[_0x23c838(0x76)](_0x3b46b9,_0x1e20e6[_0x3b46b9][_0x23c838(0x7e)](_0x11c9d9[_0x23c838(0x9d)])?0x1:0x2);}const _0x8df49={};return _0x8df49['path']=_0x17a3f8,_0x8df49['config']=_0x202e08,_0x8df49;},handleO11yRerun=_0x425e41=>{const _0x3ec3a0=a35_0x4146e7,_0x364c35={};_0x364c35[_0x3ec3a0(0xfe)]=function(_0x593371,_0x256abc){return _0x593371!==_0x256abc;},_0x364c35['nxxMj']=_0x3ec3a0(0xda),_0x364c35['bSyWu']='--grep';const _0x512e26=_0x364c35,_0x5a84dc=helper['isTrue'](process[_0x3ec3a0(0xfd)][_0x3ec3a0(0xd6)]);if(_0x5a84dc){const _0x10e809=process[_0x3ec3a0(0xfd)][_0x3ec3a0(0xdb)],_0x338d32=[];if(_0x512e26['GNhvd'](_0x10e809,_0x512e26[_0x3ec3a0(0xc7)])&&!helper['isUndefined'](_0x10e809)){_0x10e809[_0x3ec3a0(0xc0)](',')['map'](_0x2893ae=>{const _0x129e4d=_0x3ec3a0;_0x338d32['push']('('+_0x2893ae[_0x129e4d(0xe4)]()+')');});const _0x56834e='^'+_0x338d32[_0x3ec3a0(0x103)]('|')+'$';_0x425e41[_0x3ec3a0(0x7f)](_0x512e26[_0x3ec3a0(0x77)],_0x56834e);}}},spawnOriginalProcess=_0x3bbbaf=>{const _0x4471c1=a35_0x4146e7,_0x4e603b={'rjSlF':function(_0x2a84c5,_0x267a8f,_0x59a60a,_0x54ffc0){return _0x2a84c5(_0x267a8f,_0x59a60a,_0x54ffc0);},'iRMDy':_0x4471c1(0x10d),'iJXSI':_0x4471c1(0xfc),'HgSRT':function(_0x24ba64,_0x108a4f){return _0x24ba64===_0x108a4f;},'ShNhz':_0x4471c1(0x78),'dvsMP':_0x4471c1(0xf2)};_0x4e603b[_0x4471c1(0xad)](spawn,_0x4e603b[_0x4471c1(0xdd)],[_0x4e603b['iJXSI'],..._0x3bbbaf['slice'](0x1)],{'shell':_0x4e603b[_0x4471c1(0xf8)](process[_0x4471c1(0x80)],_0x4e603b[_0x4471c1(0x10e)]),'stdio':_0x4e603b[_0x4471c1(0xcd)],'cwd':process['cwd']()});},isTestCommand=(_0x5a4f5f,_0x50ce2d)=>{const _0x56be0a=a35_0x4146e7,_0x57f6cc={};_0x57f6cc[_0x56be0a(0xee)]=function(_0x3d7a5f,_0x542e48){return _0x3d7a5f>_0x542e48;},_0x57f6cc[_0x56be0a(0x83)]=function(_0x5896ab,_0x49336a){return _0x5896ab===_0x49336a;},_0x57f6cc[_0x56be0a(0xc1)]='test';const _0x47c405=_0x57f6cc;if(_0x47c405[_0x56be0a(0xee)](_0x50ce2d[_0x56be0a(0xb8)],0x1)&&_0x47c405[_0x56be0a(0x83)](_0x50ce2d[0x1],_0x47c405[_0x56be0a(0xc1)]))return!![];return![];};function a35_0x356f(){const _0x371639=['VGmyM','AaRMa','automation','get','child_process','HQvWM','uYPYZ','USER_CONFIG_DETAILS_PATH','errorMessage','wSXhY','tDVgb','isTypescriptProject','dfJYl','OWPMZ','../../helpers/logger','--config=','fTqJi','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_AUTOMATION','includes','exports','filter','BdRLU','cwd','unlinkSync','sUYbo','LgaRI','../../helpers/accessibility-automation/helper','ydhJJ','BROWSERSTACK_TEST_ACCESSIBILITY_YML','getConfigPath','4896477GynqOP','requirePWModule','450769EaTfNZ','LjDxT','Deleting\x20','Aqpkl','writeFileSync','accessibility','error','PLAYWRIGHT','Error\x20in\x20closing\x20playwright','rjSlF','dirname','skipSessionStatus','442064rlXXmr','../../helpers/test-observability/error-handler','../../helpers/utilities','1|2|3|6|7|8|0|4|5','WPvRi','6490qbhfrd','homedir','testObservability','length','kgJRB','.browserstack','path','zEMnS','testContextOptions','logLevel','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','split','acfGx','NMKsI','config','498kKAmNP','../../helpers/test-observability/constants','isUndefined','nxxMj','PACKAGE_TYPE','getPackageType','../utils/constants','WfbWk','accessibilityOptions','dvsMP','debug','RbVEl','\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();','54418fDNlti','60zhBIsP','OEEEH','initialize','RxyiP','BROWSERSTACK_RERUN','indexOf','resolve','MODULE','null','BROWSERSTACK_RERUN_TESTS','../../helpers/BrowserStackSetup','iRMDy','Sadpe','argv','../../helpers/testhub/utils','vccMw','launchBuild','RPPGJ','trim','slldK','BROWSERSTACK_TEST_OBSERVABILITY','apply','VwTjS','../../helpers/helper','exitCode','browserstackSetupConfig.json','Error\x20in\x20deleting\x20playwright\x20results','iFrdA','Bvnsz','resolvedConfigFile','info','--config','inherit','ChuIF','Error\x20in\x20getting\x20funnel\x20data\x20results','isFalse','vHhsb','--disable-browserstack-automation','HgSRT','120UQGIdT','tdqxE','playwright-browserstack-sdk.config.js','playwright','env','GNhvd','test','16DXkUnh','QeSHf','spVnW','join','isTrue','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','--disable-test-observability','UWXfs','finalExecution','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','clearTempPWConfig','cliConfig','DlQWA','npx','ShNhz','Updated\x20config\x20file\x20name\x20to\x20-\x20','uOzzp','assign','739512EHrYgy','getProxyUrl','parse','has','splice','bSyWu','win32','YkOWP','WOfeg','stop','65067ffxbzW','markSDKSetupComplete','startsWith','push','platform','../../helpers/test-observability/utils','./reporter/pwUtils'];a35_0x356f=function(){return _0x371639;};return a35_0x356f();}async function run(_0x15849a,_0x4afa40){const _0x43b393=a35_0x4146e7,_0x1f3664={'ohlUR':_0x43b393(0xba),'Sadpe':'pw_result.json','DlQWA':function(_0x38d965,_0x48edf5){return _0x38d965+_0x48edf5;},'sUYbo':_0x43b393(0xf4),'ydhJJ':_0x43b393(0xb3),'AaRMa':function(_0x2a0840){return _0x2a0840();},'NMKsI':function(_0x1ea03a,_0x27dc94){return _0x1ea03a+_0x27dc94;},'slldK':_0x43b393(0xac),'QeSHf':'--disable-browserstack-automation','VwTjS':'false','tdqxE':_0x43b393(0x106),'RbVEl':function(_0x4d2f08,_0x2fd5e1){return _0x4d2f08>=_0x2fd5e1;},'vccMw':function(_0x71da7f,_0x524979){return _0x71da7f+_0x524979;},'WOfeg':_0x43b393(0xec),'iFrdA':function(_0x5d2768,_0x32b4f3,_0x317b96){return _0x5d2768(_0x32b4f3,_0x317b96);},'OEEEH':function(_0x534ad6,_0x2f38eb){return _0x534ad6(_0x2f38eb);},'spVnW':'BrowserStack\x20config\x20file\x20not\x20found.','YkOWP':_0x43b393(0x85),'HQvWM':function(_0x291a3b,_0x5c2e67){return _0x291a3b!=_0x5c2e67;},'tDVgb':function(_0x2c6a15,_0x4053d4){return _0x2c6a15===_0x4053d4;},'BAVgx':'true','RxyiP':function(_0x538c59,_0x559528){return _0x538c59(_0x559528);},'ChuIF':_0x43b393(0xeb),'UWXfs':function(_0x5c21de,_0x18026c){return _0x5c21de===_0x18026c;},'WfbWk':_0x43b393(0x94),'zEMnS':_0x43b393(0xfb),'VJBAe':function(_0x18bb9f,_0xb944ba){return _0x18bb9f-_0xb944ba;},'fTqJi':_0x43b393(0x10f),'kgJRB':function(_0x568da0,_0x10c035){return _0x568da0>_0x10c035;},'BdRLU':function(_0x1b7379,_0x3d5606,_0x969621,_0x4da122){return _0x1b7379(_0x3d5606,_0x969621,_0x4da122);},'vHhsb':'npx','IGRLl':_0x43b393(0xfc),'RPPGJ':_0x43b393(0xff),'Aqpkl':_0x43b393(0xf1),'qxVAG':function(_0x2d265a,_0x132002){return _0x2d265a===_0x132002;},'wSXhY':_0x43b393(0x78),'uOzzp':_0x43b393(0xf2),'dfJYl':'close'};!helper[_0x43b393(0xf5)](process[_0x43b393(0xfd)]['BROWSERSTACK_AUTOMATION'])&&(process['env'][_0x43b393(0x95)]=!![]);process[_0x43b393(0xdf)][_0x43b393(0x96)](_0x1f3664[_0x43b393(0x101)])&&(process['env'][_0x43b393(0x95)]=_0x1f3664[_0x43b393(0xe8)],_0x4afa40=_0x4afa40[_0x43b393(0x98)](_0x52c063=>_0x52c063!==_0x43b393(0xf7)));const _0x5c8149=_0x4afa40[_0x43b393(0xd7)](_0x1f3664[_0x43b393(0xfa)]);_0x1f3664[_0x43b393(0xcf)](_0x5c8149,0x0)&&(process[_0x43b393(0xfd)][_0x43b393(0xe6)]=_0x1f3664['VwTjS'],_0x4afa40=_0x4afa40[_0x43b393(0x98)](_0x7db87b=>_0x7db87b!==_0x43b393(0x106)));try{const _0xc88737=path[_0x43b393(0x103)](helper[_0x43b393(0xb6)](),_0x1f3664['ohlUR'],_0x1f3664['Sadpe']);fs['existsSync'](_0xc88737)&&fs[_0x43b393(0x9b)](_0xc88737);}catch(_0x5b2303){logger[_0x43b393(0xce)](_0x1f3664[_0x43b393(0xe1)](_0x1f3664[_0x43b393(0x7a)],_0x5b2303));}if(!_0x1f3664['iFrdA'](isTestCommand,_0x15849a,_0x4afa40)){_0x1f3664[_0x43b393(0xd3)](spawnOriginalProcess,_0x4afa40);return;}const _0x51501b=new BrowserStackSetup(_0x15849a,FRAMEWORKS[_0x43b393(0xab)]);if(!_0x51501b[_0x43b393(0xc3)]){logger[_0x43b393(0xaa)](_0x1f3664[_0x43b393(0x102)]);return;}await _0x51501b[_0x43b393(0xd4)]();!helper[_0x43b393(0xc6)](_0x51501b[_0x43b393(0x10b)])&&_0x51501b['cliConfig'][_0x43b393(0x75)](_0x1f3664[_0x43b393(0x79)])&&(process[_0x43b393(0xfd)][_0x43b393(0x95)]=_0x51501b[_0x43b393(0x10b)][_0x43b393(0x86)](_0x1f3664[_0x43b393(0x79)])||!![]);_0x1f3664[_0x43b393(0x88)](_0x51501b[_0x43b393(0xc3)][_0x43b393(0xb7)],null)&&!helper[_0x43b393(0x104)](process[_0x43b393(0xfd)][_0x43b393(0xe6)])&&(process[_0x43b393(0xfd)][_0x43b393(0xe6)]=process[_0x43b393(0xfd)][_0x43b393(0xe6)]||_0x51501b[_0x43b393(0xc3)][_0x43b393(0xb7)]);const _0x4345ad=!helper[_0x43b393(0xf5)](process[_0x43b393(0xfd)][_0x43b393(0xe6)]);let _0x44457a=![];_0x51501b[_0x43b393(0xc3)][_0x43b393(0xa9)]&&(_0x44457a=!![],process[_0x43b393(0xfd)][_0x43b393(0xa0)]=_0x51501b[_0x43b393(0xc3)]['accessibility']);_0x51501b[_0x43b393(0xc3)][_0x43b393(0xcc)]&&(process[_0x43b393(0xfd)][_0x43b393(0xbf)]=JSON['stringify'](_0x51501b[_0x43b393(0xc3)]['accessibilityOptions']));const _0x2d5bb6=_0x4afa40['concat'](),_0x3a3e0f=await _0x1f3664[_0x43b393(0xed)](getUserPlaywrightConfig,_0x15849a,_0x4afa40);if(helper['isUndefined'](_0x3a3e0f)){_0x1f3664[_0x43b393(0xd3)](spawnOriginalProcess,_0x2d5bb6);return;}const _0xd519c8=_0x3a3e0f['path']?path['dirname'](_0x3a3e0f[_0x43b393(0xbb)]):process[_0x43b393(0x9a)]();process[_0x43b393(0xfd)]['BROWSERSTACK_PW_CONFIG_DIR']=_0xd519c8,await TestHubHandler[_0x43b393(0xe2)](FRAMEWORKS[_0x43b393(0xab)],_0x51501b);_0x4345ad&&_0x1f3664[_0x43b393(0xd3)](handleO11yRerun,_0x4afa40);let _0x8fc2b3=_0x1f3664[_0x43b393(0x8d)](process[_0x43b393(0xfd)][_0x43b393(0xa0)],_0x1f3664['BAVgx']);_0x8fc2b3=_0x8fc2b3||_0x1f3664[_0x43b393(0xd3)](checkAccessibilityPlatformConfig,_0x51501b[_0x43b393(0xc3)]),process[_0x43b393(0xfd)][_0x43b393(0xa0)]=_0x8fc2b3;_0x8fc2b3&&_0x1f3664[_0x43b393(0xd5)](setAccessibilityCapabilities,_0x51501b[_0x43b393(0xc3)]);const _0x2b5043=path[_0x43b393(0x103)](_0x3a3e0f[_0x43b393(0xbb)]?path[_0x43b393(0xae)](_0x3a3e0f['path']):process[_0x43b393(0x9a)](),_0x1f3664[_0x43b393(0xf3)]);fs[_0x43b393(0xa8)](_0x2b5043,helper['serializeToYamlString'](_0x51501b[_0x43b393(0xc3)])),process[_0x43b393(0xfd)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x2b5043,helper[_0x43b393(0x10a)]();let _0x37eccf='';_0x1f3664[_0x43b393(0x107)](helper[_0x43b393(0xc9)](),constants[_0x43b393(0xc8)][_0x43b393(0xd9)])?_0x37eccf=_0x1f3664[_0x43b393(0xcb)]:_0x37eccf=_0x1f3664[_0x43b393(0xbc)];let _0x32175b='';if(helper[_0x43b393(0x8e)](_0x3a3e0f[_0x43b393(0xbb)])){_0x32175b='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x34b460=_0x37eccf[_0x43b393(0xc0)]('.');_0x34b460[_0x1f3664['VJBAe'](_0x34b460[_0x43b393(0xb8)],0x1)]='ts',_0x37eccf=_0x34b460['join']('.'),logger[_0x43b393(0xce)](_0x1f3664[_0x43b393(0xc2)](_0x1f3664[_0x43b393(0x93)],_0x37eccf));}else _0x32175b=_0x43b393(0x109);const _0x5ca493=path['join'](_0x3a3e0f[_0x43b393(0xbb)]?path[_0x43b393(0xae)](_0x3a3e0f[_0x43b393(0xbb)]):process[_0x43b393(0x9a)](),_0x37eccf);let _0x433618=_0x3a3e0f['path']?_0x3a3e0f['path']:'';_0x433618=_0x1f3664[_0x43b393(0xb9)](_0x433618[_0x43b393(0xb8)],0x0)?path[_0x43b393(0xd8)](_0x433618):'',process[_0x43b393(0xfd)][_0x43b393(0x8a)]=_0x433618;const _0x2d8214=helper[_0x43b393(0x73)](_0x51501b[_0x43b393(0xc3)]);_0x2d8214&&(_0x32175b=_0x1f3664[_0x43b393(0xc2)](_0x43b393(0x105)+_0x2d8214+_0x43b393(0xd0),_0x32175b));helper['filterBrowserstackArgs']({},_0x4afa40),fs[_0x43b393(0xa8)](_0x5ca493,_0x32175b),helper[_0x43b393(0x7d)]();const _0x2754a0=_0x1f3664[_0x43b393(0x99)](spawn,_0x1f3664[_0x43b393(0xf6)],[_0x1f3664['IGRLl'],_0x1f3664[_0x43b393(0xe3)],_0x1f3664[_0x43b393(0xa7)],_0x5ca493,..._0x4afa40['slice'](0x2)],{'shell':_0x1f3664['qxVAG'](process[_0x43b393(0x80)],_0x1f3664[_0x43b393(0x8c)]),'stdio':_0x1f3664[_0x43b393(0x70)],'cwd':process[_0x43b393(0x9a)](),'env':Object[_0x43b393(0x71)]({},process[_0x43b393(0xfd)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x43b393(0xa1)](_0x15849a),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x51501b['config'][_0x43b393(0xbd)][_0x43b393(0xaf)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x51501b[_0x43b393(0xc3)][_0x43b393(0xbd)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x51501b['config'][_0x43b393(0xbe)]})}),_0x4e45dd=()=>{const _0x321751=_0x43b393;try{const _0x1b4c3c=path[_0x321751(0x103)](helper[_0x321751(0xb6)](),_0x1f3664['ohlUR'],_0x1f3664[_0x321751(0xde)]);if(fs['existsSync'](_0x1b4c3c)){let _0x2a99e3=fs['readFileSync'](_0x1b4c3c);_0x2a99e3=JSON[_0x321751(0x74)](_0x2a99e3),_0x51501b[_0x321751(0x8b)]=_0x2a99e3,fs[_0x321751(0x9b)](_0x1b4c3c);}}catch(_0x772b12){logger['debug'](_0x1f3664[_0x321751(0x10c)](_0x1f3664[_0x321751(0x9c)],_0x772b12));}};_0x2754a0['on'](_0x1f3664[_0x43b393(0x8f)],async _0x4ab928=>{const _0x4f9e05=_0x43b393;try{const _0x45ade6=_0x1f3664[_0x4f9e05(0x9f)][_0x4f9e05(0xc0)]('|');let _0x3b1013=0x0;while(!![]){switch(_0x45ade6[_0x3b1013++]){case'0':fs[_0x4f9e05(0x9b)](_0x5ca493);continue;case'1':_0x1f3664[_0x4f9e05(0x84)](_0x4e45dd);continue;case'2':await TestHubHandler[_0x4f9e05(0x7b)]();continue;case'3':await utilities[_0x4f9e05(0x108)](_0x51501b);continue;case'4':logger[_0x4f9e05(0xce)](_0x4f9e05(0xa6)+_0x2b5043);continue;case'5':fs['unlinkSync'](_0x2b5043);continue;case'6':process[_0x4f9e05(0xea)]=_0x4ab928;continue;case'7':logger[_0x4f9e05(0xce)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x4ab928);continue;case'8':logger[_0x4f9e05(0xf0)](_0x4f9e05(0xa6)+_0x5ca493);continue;}break;}}catch(_0x2226d5){logger[_0x4f9e05(0xce)](_0x1f3664['NMKsI'](_0x1f3664[_0x4f9e05(0xe5)],_0x2226d5));}});}module[a35_0x4146e7(0x97)]=run;
|
|
2
|
+
'use strict';function a35_0x46b7(_0x36729e,_0x30efdf){const _0x319909=a35_0x3199();return a35_0x46b7=function(_0x46b737,_0x5a9c3f){_0x46b737=_0x46b737-0x1b5;let _0x140732=_0x319909[_0x46b737];return _0x140732;},a35_0x46b7(_0x36729e,_0x30efdf);}const a35_0x15e037=a35_0x46b7;(function(_0x2ac93a,_0x411d11){const _0x27ea88=a35_0x46b7,_0x229d73=_0x2ac93a();while(!![]){try{const _0x523da4=-parseInt(_0x27ea88(0x20d))/0x1+-parseInt(_0x27ea88(0x256))/0x2*(-parseInt(_0x27ea88(0x1be))/0x3)+parseInt(_0x27ea88(0x223))/0x4*(-parseInt(_0x27ea88(0x21d))/0x5)+parseInt(_0x27ea88(0x233))/0x6*(-parseInt(_0x27ea88(0x20a))/0x7)+-parseInt(_0x27ea88(0x1db))/0x8*(-parseInt(_0x27ea88(0x20e))/0x9)+parseInt(_0x27ea88(0x240))/0xa*(parseInt(_0x27ea88(0x23b))/0xb)+-parseInt(_0x27ea88(0x1f6))/0xc*(-parseInt(_0x27ea88(0x231))/0xd);if(_0x523da4===_0x411d11)break;else _0x229d73['push'](_0x229d73['shift']());}catch(_0x3fd1a5){_0x229d73['push'](_0x229d73['shift']());}}}(a35_0x3199,0xabc25));function a35_0x3199(){const _0x7f094e=['pRNVW','map','getConfigPath','hlakA','LWjsa','initialize','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','../../helpers/accessibility-automation/helper','jepHS','info','finalExecution','../../helpers/BrowserStackSetup','10375284jcyXpI','hWiuu','automation','ExdUT','stringify','RMXQu','../../helpers/test-observability/error-handler','config','hjOID','splice','pXAeV','false','isTypescriptProject','skipSessionStatus','../../helpers/test-observability/constants','child_process','Error\x20in\x20getting\x20funnel\x20data\x20results','QifrN','BROWSERSTACK_TEST_OBSERVABILITY','playwright-browserstack-sdk.config.js','560sPAwBY','ukYnN','nestedKeyValue','815566zsnqyE','117XRzKco','get','test','rJVQu','MODULE','nSKag','oxGyb','DfXyO','cwd','getPackageType','apply','fkUqQ','trim','isUndefined','logLevel','5jfyyhk','unlinkSync','JnSnH','rclPm','nqUvc','Error\x20in\x20deleting\x20playwright\x20results','332212UZEjqX','testObservability','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','IBFmZ','resolvedConfigFile','exitCode','findIndex','push','pw_result.json','split','OANvE','ZkntT','BROWSERSTACK_SETUP_CONFIG_PATH','null','13BqZjos','existsSync','36258lTQztD','path','includes','serializeToYamlString','join','../../helpers/utilities','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','playwright-browserstack-sdk.config.cjs','209cUGNxj','clearTempPWConfig','accessibility','./reporter/pwUtils','.browserstack','228430zXuuoV','parse','Deleting\x20','isFalse','ZZWWf','BROWSERSTACK_TEST_ACCESSIBILITY_YML','BROWSERSTACK_PW_CONFIG_DIR','WFwvK','iIwCN','../utils/constants','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','sTPTG','error','--disable-browserstack-automation','--disable-test-observability','startsWith','zbiLh','util','zygrd','assign','plmgO','npx','34fqSnuf','exports','playwright','slice','isTrue','3|5|7|2|6|8|1|0|4','PLAYWRIGHT','dirname','VRnER','FajoT','concat','env','resolve','length','119451NeebFp','xnEAj','../../helpers/testhub/testhubHandler','win32','winstonLogger','--grep','close','markSDKSetupComplete','BROWSERSTACK_AUTOMATION','filter','ETyTf','cliConfig','ollIy','hMQjL','LXZNC','accessibilityOptions','fSBnF','../../helpers/testhub/utils','requirePWModule','Error\x20in\x20closing\x20playwright','../../helpers/test-observability/utils','RxBZC','bpWKq','--config=','TVTtU','debug','stop','testContextOptions','true','67736QJxxVD','KUpUy','errorMessage','Updated\x20config\x20file\x20name\x20to\x20-\x20','QBNfS','platform','asxeT','LFGQT','--config','filterBrowserstackArgs','BROWSERSTACK_RERUN','browserstackSetupConfig.json','Playwright\x20process\x20exited\x20with\x20code\x20','PACKAGE_TYPE','Ccukc'];a35_0x3199=function(){return _0x7f094e;};return a35_0x3199();}const fs=require('fs'),path=require(a35_0x15e037(0x234)),{spawn}=require(a35_0x15e037(0x205)),{format}=require(a35_0x15e037(0x251)),logger=require('../../helpers/logger')[a35_0x15e037(0x1c2)],{default:BrowserStackSetup}=require(a35_0x15e037(0x1f5)),helper=require('../../helpers/helper'),utilities=require(a35_0x15e037(0x238)),constants=require(a35_0x15e037(0x249)),{FRAMEWORKS}=require(a35_0x15e037(0x204)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x15e037(0x23e)),{CrashReporter}=require(a35_0x15e037(0x1fc)),{getFrameworkVersion}=require(a35_0x15e037(0x1d2)),{checkAccessibilityPlatformConfig}=require(a35_0x15e037(0x1f1)),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require(a35_0x15e037(0x1c0)),{shouldProcessEventForTesthub}=require(a35_0x15e037(0x1cf)),getUserPlaywrightConfig=async(_0x273d93,_0xa9df53)=>{const _0x2ebdc3=a35_0x15e037,_0x14c075={'LXZNC':function(_0x581bc5){return _0x581bc5();},'zbiLh':function(_0x524b5b,_0x500b89){return _0x524b5b(_0x500b89);},'ollIy':function(_0x74caf6,_0x5e079d){return _0x74caf6(_0x5e079d);},'nqUvc':_0x2ebdc3(0x227),'rVvcO':_0x2ebdc3(0x1d5)},_0x41121e=!helper[_0x2ebdc3(0x21b)](_0x273d93[_0x2ebdc3(0x1fd)]),_0xbe16c4=_0x41121e?path[_0x2ebdc3(0x1bc)](process[_0x2ebdc3(0x216)](),_0x273d93[_0x2ebdc3(0x1fd)]):process['cwd'](),{resolveConfigFile:_0x37a36d,resolveConfigLocation:_0x21248e}=helper[_0x2ebdc3(0x1d0)][_0x2ebdc3(0x218)](null,_0x14c075[_0x2ebdc3(0x1cc)](getConfigLoaderPath)),_0x56ca01=_0x37a36d?_0x14c075[_0x2ebdc3(0x250)](_0x37a36d,_0xbe16c4):helper[_0x2ebdc3(0x20c)](_0x14c075[_0x2ebdc3(0x1ca)](_0x21248e,_0xbe16c4),[_0x14c075[_0x2ebdc3(0x221)]]),_0xe85c20={};if(_0x41121e){const _0xf1cc1c=_0xa9df53[_0x2ebdc3(0x229)](_0x9690b3=>_0x9690b3==='--config'||_0x9690b3==='-c'||_0x9690b3['startsWith'](_0x2ebdc3(0x1d5)));_0xa9df53[_0x2ebdc3(0x1ff)](_0xf1cc1c,_0xa9df53[_0xf1cc1c][_0x2ebdc3(0x24f)](_0x14c075['rVvcO'])?0x1:0x2);}const _0x44357c={};return _0x44357c[_0x2ebdc3(0x234)]=_0x56ca01,_0x44357c[_0x2ebdc3(0x1fd)]=_0xe85c20,_0x44357c;},handleO11yRerun=_0x1aae45=>{const _0x24601a=a35_0x15e037,_0x2d2755={};_0x2d2755[_0x24601a(0x1bf)]=function(_0x4fdb65,_0x5aa40b){return _0x4fdb65!==_0x5aa40b;},_0x2d2755['oxGyb']=_0x24601a(0x230),_0x2d2755[_0x24601a(0x244)]=_0x24601a(0x1c3);const _0x2467ad=_0x2d2755,_0x4550de=helper['isTrue'](process[_0x24601a(0x1bb)][_0x24601a(0x1e5)]);if(_0x4550de){const _0x147efa=process[_0x24601a(0x1bb)]['BROWSERSTACK_RERUN_TESTS'],_0x4dbb06=[];if(_0x2467ad[_0x24601a(0x1bf)](_0x147efa,_0x2467ad[_0x24601a(0x214)])&&!helper[_0x24601a(0x21b)](_0x147efa)){_0x147efa[_0x24601a(0x22c)](',')[_0x24601a(0x1eb)](_0x2940cc=>{const _0x527e98=_0x24601a;_0x4dbb06[_0x527e98(0x22a)]('('+_0x2940cc[_0x527e98(0x21a)]()+')');});const _0x2e2af2='^'+_0x4dbb06['join']('|')+'$';_0x1aae45['push'](_0x2467ad[_0x24601a(0x244)],_0x2e2af2);}}},spawnOriginalProcess=_0x2a0fba=>{const _0x553cf1=a35_0x15e037,_0x2d852b={'LFGQT':function(_0x218d46,_0x157468,_0x4b00c9,_0x579a10){return _0x218d46(_0x157468,_0x4b00c9,_0x579a10);},'pXAeV':'npx','xuvWO':_0x553cf1(0x258),'ExdUT':function(_0x44cfba,_0x34526e){return _0x44cfba===_0x34526e;},'kLxUm':_0x553cf1(0x1c1),'FajoT':'inherit'};_0x2d852b[_0x553cf1(0x1e2)](spawn,_0x2d852b[_0x553cf1(0x200)],[_0x2d852b['xuvWO'],..._0x2a0fba[_0x553cf1(0x259)](0x1)],{'shell':_0x2d852b[_0x553cf1(0x1f9)](process[_0x553cf1(0x1e0)],_0x2d852b['kLxUm']),'stdio':_0x2d852b[_0x553cf1(0x1b9)],'cwd':process['cwd']()});},isTestCommand=(_0x36438d,_0x5cffea)=>{const _0x57b89c=a35_0x15e037,_0x2783a0={};_0x2783a0['hMQjL']=function(_0x22e518,_0x1bc6bc){return _0x22e518>_0x1bc6bc;},_0x2783a0['RMXQu']=function(_0x15a5c2,_0x493a95){return _0x15a5c2===_0x493a95;},_0x2783a0[_0x57b89c(0x1d6)]=_0x57b89c(0x210);const _0x27b5f9=_0x2783a0;if(_0x27b5f9[_0x57b89c(0x1cb)](_0x5cffea[_0x57b89c(0x1bd)],0x1)&&_0x27b5f9[_0x57b89c(0x1fb)](_0x5cffea[0x1],_0x27b5f9[_0x57b89c(0x1d6)]))return!![];return![];};async function run(_0x2647c8,_0x3dd561){const _0x2bd957=a35_0x15e037,_0x10a61d={'fkUqQ':_0x2bd957(0x23f),'asxeT':_0x2bd957(0x22b),'bpWKq':function(_0xbd4f34,_0x15229a){return _0xbd4f34+_0x15229a;},'CogYL':_0x2bd957(0x206),'WFwvK':_0x2bd957(0x1b5),'fSBnF':function(_0x3c7eae){return _0x3c7eae();},'hjOID':function(_0x2d4cd2,_0x1f2f43){return _0x2d4cd2+_0x1f2f43;},'rclPm':_0x2bd957(0x1d1),'hWiuu':'--disable-browserstack-automation','zygrd':_0x2bd957(0x201),'hlakA':'--disable-test-observability','QifrN':function(_0x2de130,_0x30b21b){return _0x2de130>=_0x30b21b;},'Rdlal':function(_0x618bdd,_0x146905){return _0x618bdd+_0x146905;},'ukYnN':_0x2bd957(0x222),'KUpUy':function(_0x20d162,_0xad27da,_0x5b4c8d){return _0x20d162(_0xad27da,_0x5b4c8d);},'IBFmZ':function(_0x30339c,_0x50489b){return _0x30339c(_0x50489b);},'JnSnH':'BrowserStack\x20config\x20file\x20not\x20found.','rJVQu':_0x2bd957(0x1f8),'XFsvU':function(_0x2adb56,_0x550e8f){return _0x2adb56!=_0x550e8f;},'nSKag':function(_0x141516,_0x542919){return _0x141516===_0x542919;},'LWjsa':_0x2bd957(0x1da),'Ccukc':function(_0x3a79b8,_0x4d7197){return _0x3a79b8(_0x4d7197);},'VRnER':_0x2bd957(0x1e6),'jepHS':_0x2bd957(0x23a),'plmgO':_0x2bd957(0x209),'RxBZC':function(_0x1a2419,_0x4d8053){return _0x1a2419-_0x4d8053;},'sTPTG':function(_0x448bae,_0x222fd4){return _0x448bae+_0x222fd4;},'QBNfS':_0x2bd957(0x1de),'iIwCN':function(_0x16b074,_0x5ae48a){return _0x16b074>_0x5ae48a;},'pRNVW':function(_0x50b192,_0x2cc000,_0x49afa0,_0x493a63){return _0x50b192(_0x2cc000,_0x49afa0,_0x493a63);},'ETyTf':_0x2bd957(0x255),'ElBZq':'playwright','ZkntT':_0x2bd957(0x210),'BWXID':_0x2bd957(0x1e3),'DfXyO':function(_0x35fbc0,_0x574ced){return _0x35fbc0===_0x574ced;},'yDnVU':_0x2bd957(0x1c1),'OANvE':'inherit','pQyme':_0x2bd957(0x1c4)};!helper[_0x2bd957(0x243)](process[_0x2bd957(0x1bb)][_0x2bd957(0x1c6)])&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x1c6)]=!![]);process['argv'][_0x2bd957(0x235)](_0x10a61d[_0x2bd957(0x1f7)])&&(process['env'][_0x2bd957(0x1c6)]=_0x10a61d[_0x2bd957(0x252)],_0x3dd561=_0x3dd561[_0x2bd957(0x1c7)](_0x94a54a=>_0x94a54a!==_0x2bd957(0x24d)));const _0x382201=_0x3dd561['indexOf'](_0x10a61d[_0x2bd957(0x1ed)]);_0x10a61d[_0x2bd957(0x207)](_0x382201,0x0)&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x208)]=_0x10a61d[_0x2bd957(0x252)],_0x3dd561=_0x3dd561[_0x2bd957(0x1c7)](_0x1f3fea=>_0x1f3fea!==_0x2bd957(0x24e)));try{const _0x175fa3=path[_0x2bd957(0x237)](helper['homedir'](),_0x10a61d[_0x2bd957(0x219)],_0x10a61d[_0x2bd957(0x1e1)]);fs[_0x2bd957(0x232)](_0x175fa3)&&fs[_0x2bd957(0x21e)](_0x175fa3);}catch(_0x5255f8){logger[_0x2bd957(0x1d7)](_0x10a61d['Rdlal'](_0x10a61d[_0x2bd957(0x20b)],_0x5255f8));}if(!_0x10a61d[_0x2bd957(0x1dc)](isTestCommand,_0x2647c8,_0x3dd561)){_0x10a61d[_0x2bd957(0x226)](spawnOriginalProcess,_0x3dd561);return;}const _0x420e2a=new BrowserStackSetup(_0x2647c8,FRAMEWORKS[_0x2bd957(0x1b6)]);if(!_0x420e2a[_0x2bd957(0x1fd)]){logger[_0x2bd957(0x24c)](_0x10a61d[_0x2bd957(0x21f)]);return;}await _0x420e2a[_0x2bd957(0x1ef)]();!helper[_0x2bd957(0x21b)](_0x420e2a[_0x2bd957(0x1c9)])&&_0x420e2a[_0x2bd957(0x1c9)]['has'](_0x10a61d[_0x2bd957(0x211)])&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x1c6)]=_0x420e2a[_0x2bd957(0x1c9)][_0x2bd957(0x20f)](_0x10a61d['rJVQu'])||!![]);_0x10a61d['XFsvU'](_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x224)],null)&&!helper[_0x2bd957(0x25a)](process[_0x2bd957(0x1bb)][_0x2bd957(0x208)])&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x208)]=process[_0x2bd957(0x1bb)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x420e2a['config'][_0x2bd957(0x224)]);const _0x1f2e82=!helper[_0x2bd957(0x243)](process[_0x2bd957(0x1bb)]['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x40152a=![];_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x23d)]&&(_0x40152a=!![],process[_0x2bd957(0x1bb)][_0x2bd957(0x245)]=_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x23d)]);_0x420e2a[_0x2bd957(0x1fd)]['accessibilityOptions']&&(process[_0x2bd957(0x1bb)][_0x2bd957(0x1f0)]=JSON[_0x2bd957(0x1fa)](_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x1cd)]));const _0x11637d=_0x3dd561[_0x2bd957(0x1ba)](),_0xe8d669=await _0x10a61d[_0x2bd957(0x1dc)](getUserPlaywrightConfig,_0x2647c8,_0x3dd561);if(helper['isUndefined'](_0xe8d669)){_0x10a61d[_0x2bd957(0x226)](spawnOriginalProcess,_0x11637d);return;}const _0xfd4402=_0xe8d669[_0x2bd957(0x234)]?path[_0x2bd957(0x1b7)](_0xe8d669[_0x2bd957(0x234)]):process[_0x2bd957(0x216)]();process[_0x2bd957(0x1bb)][_0x2bd957(0x246)]=_0xfd4402,await TestHubHandler['launchBuild'](FRAMEWORKS[_0x2bd957(0x1b6)],_0x420e2a);_0x1f2e82&&_0x10a61d[_0x2bd957(0x226)](handleO11yRerun,_0x3dd561);let _0x18b7de=_0x10a61d['nSKag'](process['env'][_0x2bd957(0x245)],_0x10a61d[_0x2bd957(0x1ee)]);_0x18b7de=_0x18b7de||_0x10a61d['Ccukc'](checkAccessibilityPlatformConfig,_0x420e2a[_0x2bd957(0x1fd)]),process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x18b7de;_0x18b7de&&_0x10a61d[_0x2bd957(0x1e9)](setAccessibilityCapabilities,_0x420e2a[_0x2bd957(0x1fd)]);const _0xf1f533=path[_0x2bd957(0x237)](_0xe8d669[_0x2bd957(0x234)]?path[_0x2bd957(0x1b7)](_0xe8d669[_0x2bd957(0x234)]):process['cwd'](),_0x10a61d[_0x2bd957(0x1b8)]);fs['writeFileSync'](_0xf1f533,helper[_0x2bd957(0x236)](_0x420e2a['config'])),process['env'][_0x2bd957(0x22f)]=_0xf1f533,helper[_0x2bd957(0x23c)]();let _0x54a335='';_0x10a61d[_0x2bd957(0x213)](helper[_0x2bd957(0x217)](),constants[_0x2bd957(0x1e8)][_0x2bd957(0x212)])?_0x54a335=_0x10a61d[_0x2bd957(0x1f2)]:_0x54a335=_0x10a61d[_0x2bd957(0x254)];let _0x2893b3='';if(helper[_0x2bd957(0x202)](_0xe8d669[_0x2bd957(0x234)])){_0x2893b3=_0x2bd957(0x24a);const _0x48c531=_0x54a335[_0x2bd957(0x22c)]('.');_0x48c531[_0x10a61d[_0x2bd957(0x1d3)](_0x48c531[_0x2bd957(0x1bd)],0x1)]='ts',_0x54a335=_0x48c531[_0x2bd957(0x237)]('.'),logger[_0x2bd957(0x1d7)](_0x10a61d[_0x2bd957(0x24b)](_0x10a61d[_0x2bd957(0x1df)],_0x54a335));}else _0x2893b3='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x21d51c=path[_0x2bd957(0x237)](_0xe8d669['path']?path[_0x2bd957(0x1b7)](_0xe8d669['path']):process[_0x2bd957(0x216)](),_0x54a335);let _0xf647e0=_0xe8d669[_0x2bd957(0x234)]?_0xe8d669['path']:'';_0xf647e0=_0x10a61d[_0x2bd957(0x248)](_0xf647e0[_0x2bd957(0x1bd)],0x0)?path[_0x2bd957(0x1bc)](_0xf647e0):'',process[_0x2bd957(0x1bb)]['USER_CONFIG_DETAILS_PATH']=_0xf647e0;const _0xfa8570=helper['getProxyUrl'](_0x420e2a['config']);_0xfa8570&&(_0x2893b3=_0x10a61d[_0x2bd957(0x1fe)](_0x2bd957(0x239)+_0xfa8570+_0x2bd957(0x225),_0x2893b3));helper[_0x2bd957(0x1e4)]({},_0x3dd561),fs['writeFileSync'](_0x21d51c,_0x2893b3),helper[_0x2bd957(0x1c5)]();const _0x1474f6=_0x10a61d[_0x2bd957(0x1ea)](spawn,_0x10a61d[_0x2bd957(0x1c8)],[_0x10a61d['ElBZq'],_0x10a61d[_0x2bd957(0x22e)],_0x10a61d['BWXID'],_0x21d51c,..._0x3dd561[_0x2bd957(0x259)](0x2)],{'shell':_0x10a61d[_0x2bd957(0x215)](process[_0x2bd957(0x1e0)],_0x10a61d['yDnVU']),'stdio':_0x10a61d[_0x2bd957(0x22d)],'cwd':process[_0x2bd957(0x216)](),'env':Object[_0x2bd957(0x253)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2bd957(0x1ec)](_0x2647c8),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x1d9)][_0x2bd957(0x203)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x1d9)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x420e2a[_0x2bd957(0x1fd)][_0x2bd957(0x21c)]})}),_0x5206b4=()=>{const _0x1fe073=_0x2bd957;try{const _0x24cc5f=path['join'](helper['homedir'](),_0x10a61d[_0x1fe073(0x219)],_0x10a61d['asxeT']);if(fs[_0x1fe073(0x232)](_0x24cc5f)){let _0x49fe11=fs['readFileSync'](_0x24cc5f);_0x49fe11=JSON[_0x1fe073(0x241)](_0x49fe11),_0x420e2a[_0x1fe073(0x1dd)]=_0x49fe11,fs[_0x1fe073(0x21e)](_0x24cc5f);}}catch(_0x4b5577){logger[_0x1fe073(0x1d7)](_0x10a61d[_0x1fe073(0x1d4)](_0x10a61d['CogYL'],_0x4b5577));}};_0x1474f6['on'](_0x10a61d['pQyme'],async _0x269645=>{const _0x171a35=_0x2bd957;try{const _0x14e68d=_0x10a61d[_0x171a35(0x247)][_0x171a35(0x22c)]('|');let _0x64dbe2=0x0;while(!![]){switch(_0x14e68d[_0x64dbe2++]){case'0':logger[_0x171a35(0x1d7)](_0x171a35(0x242)+_0xf1f533);continue;case'1':fs[_0x171a35(0x21e)](_0x21d51c);continue;case'2':process[_0x171a35(0x228)]=_0x269645;continue;case'3':_0x10a61d[_0x171a35(0x1ce)](_0x5206b4);continue;case'4':fs['unlinkSync'](_0xf1f533);continue;case'5':await TestHubHandler[_0x171a35(0x1d8)]();continue;case'6':logger[_0x171a35(0x1d7)](_0x171a35(0x1e7)+_0x269645);continue;case'7':await utilities[_0x171a35(0x1f4)](_0x420e2a);continue;case'8':logger[_0x171a35(0x1f3)](_0x171a35(0x242)+_0x21d51c);continue;}break;}}catch(_0x189c20){logger[_0x171a35(0x1d7)](_0x10a61d[_0x171a35(0x1fe)](_0x10a61d[_0x171a35(0x220)],_0x189c20));}});}module[a35_0x15e037(0x257)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a36_0x1351b3=a36_0x3a0e;function a36_0x3ef9(){const _0xb67f41=['resolve','winstonLogger','toString','312mNwTQl','Call\x20to\x20child\x20fork\x20with\x20args\x20','xORNk','gvQfk','debug','XqMOt','includes','util','function','13775652chQxYp','efTOI','18nCmoNV','requirePWModule','3867570EUsWFO','../../helpers/logger','57438kYNFNL','rdRWm','env','Not\x20able\x20to\x20import\x20globalSetup','../../helpers/test-observability/utils','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','Path\x20','PLAYWRIGHT','xuCRU','fKDNv','../../helpers/test-observability/constants','2IdGaqu','789DOtdid','compareVersions','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','child_process','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','10436iOySnV','config','format','TkHEI','1615XeceQj','5380956haGgPb','./reporter/pwUtils','error','exports','1.33.0','pRKxx','437583CtUbLX','\x20is\x20not\x20found','fork','ZXCIG','apply','isHandlePWErrorSet'];a36_0x3ef9=function(){return _0xb67f41;};return a36_0x3ef9();}(function(_0x4d2ed7,_0x521f4e){const _0xd58de6=a36_0x3a0e,_0x3ccbcc=_0x4d2ed7();while(!![]){try{const _0x3a0e70=-parseInt(_0xd58de6(0x108))/0x1*(parseInt(_0xd58de6(0xf7))/0x2)+parseInt(_0xd58de6(0xf8))/0x3*(parseInt(_0xd58de6(0xfd))/0x4)+-parseInt(_0xd58de6(0x101))/0x5*(parseInt(_0xd58de6(0x11c))/0x6)+parseInt(_0xd58de6(0x102))/0x7+parseInt(_0xd58de6(0x111))/0x8*(parseInt(_0xd58de6(0xec))/0x9)+parseInt(_0xd58de6(0x11e))/0xa+-parseInt(_0xd58de6(0x11a))/0xb;if(_0x3a0e70===_0x521f4e)break;else _0x3ccbcc['push'](_0x3ccbcc['shift']());}catch(_0x2aa657){_0x3ccbcc['push'](_0x3ccbcc['shift']());}}}(a36_0x3ef9,0x6191e));const util=require(a36_0x1351b3(0x118)),child_process=require(a36_0x1351b3(0xfb)),{FRAMEWORKS}=require(a36_0x1351b3(0xf6)),{getFrameworkVersion,debug}=require(a36_0x1351b3(0xf0)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x1351b3(0x103)),{mockIsWorkerRedundant}=require('./patches'),logger=require(a36_0x1351b3(0xeb))[a36_0x1351b3(0x10f)];function a36_0x3a0e(_0x96c6c,_0xcf1d72){const _0x3ef96f=a36_0x3ef9();return a36_0x3a0e=function(_0x3a0e74,_0x3ec527){_0x3a0e74=_0x3a0e74-0xeb;let _0x48c5ac=_0x3ef96f[_0x3a0e74];return _0x48c5ac;},a36_0x3a0e(_0x96c6c,_0xcf1d72);}module[a36_0x1351b3(0x105)]=async function(_0xd73ea){const _0xee3f5=a36_0x1351b3,_0x5783ab={'xORNk':function(_0x3f30ff,_0x4d5808){return _0x3f30ff(_0x4d5808);},'gvQfk':function(_0x36ff43){return _0x36ff43();},'TkHEI':'./mock-process.js','efTOI':function(_0x3597f9){return _0x3597f9();},'ZXCIG':'Running\x20existing\x20global\x20setup','zSOsh':function(_0x533699){return _0x533699();},'pRKxx':function(_0x300248,_0xc17998){return _0x300248(_0xc17998);},'fKDNv':function(_0x2ab872,_0x493fd5){return _0x2ab872>=_0x493fd5;},'eupot':_0xee3f5(0x106),'XqMOt':function(_0x4321e9,_0x1c40b1,_0x5a9fcb){return _0x4321e9(_0x1c40b1,_0x5a9fcb);},'cBWqj':function(_0x53f663,_0x4b67e8){return _0x53f663!==_0x4b67e8;},'xuCRU':_0xee3f5(0x119),'rdRWm':_0xee3f5(0xef)},_0x17253b=child_process[_0xee3f5(0x10a)];if(helper[_0xee3f5(0x10d)]())try{_0x5783ab[_0xee3f5(0x114)](mockIsWorkerRedundant);}catch(_0x1deddd){logger[_0xee3f5(0x115)](_0xee3f5(0xfc)+util[_0xee3f5(0xff)](_0x1deddd));}child_process[_0xee3f5(0x10a)]=function(){const _0x33a2e3=_0xee3f5;return _0x5783ab[_0x33a2e3(0x113)](debug,_0x33a2e3(0x112)+arguments[0x0]),arguments[0x0][_0x33a2e3(0x117)](_0x5783ab['gvQfk'](getForkProcessPath))?arguments[0x0]=require[_0x33a2e3(0x10e)](_0x5783ab[_0x33a2e3(0x100)]):logger[_0x33a2e3(0x104)](_0x33a2e3(0xf2)+_0x5783ab[_0x33a2e3(0x11b)](getForkProcessPath)+_0x33a2e3(0x109)),_0x17253b['apply'](null,arguments);};if(process[_0xee3f5(0xee)][_0xee3f5(0xfa)]){_0x5783ab[_0xee3f5(0x113)](debug,_0x5783ab[_0xee3f5(0x10b)]);try{const {loadGlobalHook:_0x4fa092}=helper[_0xee3f5(0x11d)][_0xee3f5(0x10c)](null,_0x5783ab['zSOsh'](getLoadUtilsPath)),_0x329cc0=_0x5783ab[_0xee3f5(0x107)](getFrameworkVersion,FRAMEWORKS[_0xee3f5(0xf3)]);let _0x4e5147=_0xd73ea;if(_0x5783ab[_0xee3f5(0xf5)](helper[_0xee3f5(0xf9)](_0x329cc0,_0x5783ab['eupot']),0x0)){const _0x89f9={};_0x89f9[_0xee3f5(0xfe)]=_0xd73ea,_0x4e5147=_0x89f9;}const _0x4639ec=await _0x5783ab[_0xee3f5(0x116)](_0x4fa092,_0x4e5147,process[_0xee3f5(0xee)][_0xee3f5(0xfa)]);if(_0x5783ab['cBWqj'](typeof _0x4639ec,_0x5783ab[_0xee3f5(0xf4)]))throw new Error(_0x5783ab[_0xee3f5(0xed)]);return _0x4639ec[_0xee3f5(0x10c)](null,arguments);}catch(_0x4f5c30){_0x5783ab[_0xee3f5(0x107)](debug,_0xee3f5(0xf1)+_0x4f5c30[_0xee3f5(0x110)]());}}};
|