browserstack-node-sdk 1.34.20 → 1.34.21
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_0x54f591=a29_0xf1ef;function a29_0x42df(){const _0x216dcc=['agent_','1492160Honcwp','Uuvjj','XcnuQ','moz:firefoxOptions','CuNiV','isUndefined','../../../helpers/accessibility-automation/helper','overrideGet','./helpers/patchHelper','HttpClient','safari.options','requireHttpClient','isBrowserstackInfra','../accessibility-automation/helper','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','keys','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','Hpubb','Setting\x20Browserstack\x20capabilities','optimalHubUrl','RlXUg','PVDIe','ieOptions','setGlobal','proxy_','__setBrowserOptions','pRyhe','../../../helpers/helper','then','https://','setServer','set','browserstackAgentObservability','Proxy\x20set\x20to\x20','ntrjn','lTZhI','__driversArray','getHubUrl','push','__driver','se:ieOptions','YcRbE','XpiiA','18ZQkTBZ','chromeOptions_','proxySettings','setLogLevel','KnUgf','OQETi','mMvFC','../../../helpers/logger','storeOptimalHubUrl','aCmsS','288LZzemZ','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','session_','vHReQ','logLevel','zBBoQ','YPxpS','proxyUrl','ieOptions_','newHubUrl','DtRrc','166HwaPTP','capability','AluqN','caps_','build','378987uryRFP','CAPABILITY_KEY','New\x20hub\x20url\x20set\x20to\x20','Builder','chromeOptions','VpRxs','FOREO','error','Tkxpj','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','../../../hubAllocationMethods','goog:chromeOptions','path','winstonLogger','1040120CtLUXW','info','send','isPacProxy','../../../helpers/patchHelpers','requireSeleniumWebdriver','firefoxOptions_','edgeOptions_','debug','originalBuilder','0|4|1|5|2|3','Hub\x20url\x20set\x20to\x20','3227587gRozid','setCapabilities','NYmLb','3232NjssOD','706WQyiUr','global','/wd/hub','safariOptions_','get','getGlobal','pFkkI','capabilities_','firefoxOptions','mergeDeep','../../../helpers/globals','__drivers','isAccessibilityPlatform','browserStackLogLevel','getAccessibilityResults','../../../bin/utils/constants','ms:edgeOptions','351RHmsIJ','split','geLxI','getHttpAgent','getRequestOptions','INbjC','url_','getAccessibilityResultsSummary','19288DzMmIt'];a29_0x42df=function(){return _0x216dcc;};return a29_0x42df();}(function(_0x1bbc42,_0x19002f){const _0x10bfea=a29_0xf1ef,_0x5c31ff=_0x1bbc42();while(!![]){try{const _0xccdc84=-parseInt(_0x10bfea(0x108))/0x1*(-parseInt(_0x10bfea(0xe5))/0x2)+parseInt(_0x10bfea(0xda))/0x3*(-parseInt(_0x10bfea(0x107))/0x4)+-parseInt(_0x10bfea(0xf8))/0x5+parseInt(_0x10bfea(0x14e))/0x6*(-parseInt(_0x10bfea(0xea))/0x7)+-parseInt(_0x10bfea(0x121))/0x8*(-parseInt(_0x10bfea(0x119))/0x9)+parseInt(_0x10bfea(0x123))/0xa+parseInt(_0x10bfea(0x104))/0xb;if(_0xccdc84===_0x19002f)break;else _0x5c31ff['push'](_0x5c31ff['shift']());}catch(_0x275706){_0x5c31ff['push'](_0x5c31ff['shift']());}}}(a29_0x42df,0x23f2d));function a29_0xf1ef(_0x57a248,_0x2525ab){const _0x42df39=a29_0x42df();return a29_0xf1ef=function(_0xf1ef33,_0x305eec){_0xf1ef33=_0xf1ef33-0xd4;let _0x58ca2f=_0x42df39[_0xf1ef33];return _0x58ca2f;},a29_0xf1ef(_0x57a248,_0x2525ab);}const logger=require(a29_0x54f591(0xd7))[a29_0x54f591(0xf7)],helper=require(a29_0x54f591(0x13e)),constants=require(a29_0x54f591(0x117)),hubAllocator=require(a29_0x54f591(0xf4)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x54f591(0xfc)),{setAccessibilityCapabilities,setExtension}=require(a29_0x54f591(0x130)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x54f591(0x129)),globals=require(a29_0x54f591(0x112)),{overrideExecute}=require(a29_0x54f591(0x12b)),modify=(_0x1ab4f5,_0x3fa8ac=null,_0x29cd5f=![])=>{const _0x338f5b=a29_0x54f591,_0x4eba39={'aCmsS':function(_0x14dcc5,_0x214cc5){return _0x14dcc5!==_0x214cc5;},'DLXYE':'/session','Hpubb':function(_0x28eeba,_0x360f1c){return _0x28eeba+_0x360f1c;},'XcnuQ':function(_0x1af252,_0x791a7f){return _0x1af252+_0x791a7f;},'AluqN':_0x338f5b(0x140),'YPxpS':_0x338f5b(0x10a),'ntrjn':_0x338f5b(0xf5),'Uuvjj':_0x338f5b(0xee),'CuNiV':_0x338f5b(0x118),'NYmLb':'edgeOptions','DtRrc':_0x338f5b(0x126),'FOREO':_0x338f5b(0x110),'qpCWq':_0x338f5b(0x12d),'Tkxpj':_0x338f5b(0x14b),'Qwyxh':_0x338f5b(0x139),'uyeCz':function(_0x58d6cf,_0x2c5ae3){return _0x58d6cf===_0x2c5ae3;},'pFkkI':'object','pLsZr':_0x338f5b(0x135),'FwulD':_0x338f5b(0x136),'ijxoT':_0x338f5b(0x133),'PVDIe':function(_0x1431ae,_0x409456,_0x42d933){return _0x1431ae(_0x409456,_0x42d933);},'vHReQ':function(_0x387522,_0x1b2adc,_0x1533c8){return _0x387522(_0x1b2adc,_0x1533c8);},'OQETi':function(_0x2ded84,_0x151c7d){return _0x2ded84(_0x151c7d);},'MseLw':_0x338f5b(0x102),'zBBoQ':function(_0x2dc5ea){return _0x2dc5ea();},'KnUgf':_0x338f5b(0x114),'INbjC':function(_0x4ad6a6,_0x3b0d13,_0x3fece1){return _0x4ad6a6(_0x3b0d13,_0x3fece1);},'Vfogp':_0x338f5b(0xdb),'OFNOq':function(_0x52e643,_0x2841e1,_0x30db48){return _0x52e643(_0x2841e1,_0x30db48);},'pRyhe':function(_0x20e792,_0x259911){return _0x20e792!==_0x259911;},'XpiiA':function(_0x14d6e2,_0x58e761){return _0x14d6e2!==_0x58e761;},'RlXUg':_0x338f5b(0xf3),'lTZhI':'Modifying\x20webdriver\x20builder'},_0x32b925=helper[_0x338f5b(0x12e)]();let _0x33e2e9;try{_0x33e2e9=helper[_0x338f5b(0xfd)](),_0x33e2e9['originalBuilder']&&(_0x33e2e9[_0x338f5b(0xed)]=_0x33e2e9[_0x338f5b(0x101)]);}catch(_0x1b27ca){return;}if(helper[_0x338f5b(0x12f)]()){const _0x19ce03={};_0x19ce03[_0x338f5b(0xde)]=_0x1ab4f5[_0x338f5b(0x115)],helper[_0x338f5b(0x151)](_0x19ce03,new Map(),new Map()),logger[_0x338f5b(0xf9)](_0x4eba39[_0x338f5b(0x137)]),logger[_0x338f5b(0x100)](_0x4eba39[_0x338f5b(0x146)]);}class _0x3af796 extends _0x32b925[_0x338f5b(0x12c)]{['send'](_0x24a645){const _0x1a9b84=_0x338f5b;if(_0x4eba39[_0x1a9b84(0xd9)](_0x24a645[_0x1a9b84(0xf6)],_0x4eba39['DLXYE'])&&_0x4eba39[_0x1a9b84(0xd9)](global[_0x1a9b84(0xe3)],''))try{global[_0x1a9b84(0xe3)]=_0x4eba39[_0x1a9b84(0x134)](_0x4eba39[_0x1a9b84(0x125)](_0x4eba39[_0x1a9b84(0xe7)],global[_0x1a9b84(0xe3)]),_0x4eba39[_0x1a9b84(0xe0)]),this['options_']=hubAllocator[_0x1a9b84(0x11d)](global['newHubUrl']),logger[_0x1a9b84(0x100)](_0x1a9b84(0xec)+global[_0x1a9b84(0xe3)]),global[_0x1a9b84(0xe3)]='';}catch(_0x2caea7){logger[_0x1a9b84(0xf1)](_0x2caea7);}return super[_0x1a9b84(0xfa)](_0x24a645);}}class _0x274866 extends _0x33e2e9['Builder']{[_0x338f5b(0x141)](){const _0x15c7fd=_0x338f5b;return this['url_']=helper[_0x15c7fd(0x148)](_0x1ab4f5),logger[_0x15c7fd(0x100)](_0x15c7fd(0x103)+this[_0x15c7fd(0x11f)]),this;}[_0x338f5b(0x13c)](_0x5ba40a){const _0x1cbb1f=_0x338f5b;let _0x339e20={};for(const _0x3a2fc5 in _0x5ba40a){switch(_0x3a2fc5){case _0x4eba39[_0x1cbb1f(0x145)]:case _0x4eba39[_0x1cbb1f(0x124)]:this[_0x1cbb1f(0x14f)]&&(_0x339e20=this['chromeOptions_'][_0x1cbb1f(0x10c)](this[_0x1cbb1f(0x14f)][_0x1cbb1f(0xeb)])||{},this[_0x1cbb1f(0x14f)][_0x1cbb1f(0x142)](this['chromeOptions_'][_0x1cbb1f(0xeb)],helper[_0x1cbb1f(0x111)](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;case _0x4eba39[_0x1cbb1f(0x127)]:case _0x4eba39[_0x1cbb1f(0x106)]:this[_0x1cbb1f(0xff)]&&(_0x339e20=this[_0x1cbb1f(0xff)][_0x1cbb1f(0x10c)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x1cbb1f(0xff)][_0x1cbb1f(0x142)](this['edgeOptions_'][_0x1cbb1f(0xeb)],helper[_0x1cbb1f(0x111)](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;case _0x4eba39[_0x1cbb1f(0xe4)]:case _0x4eba39[_0x1cbb1f(0xf0)]:this['firefoxOptions_']&&(_0x339e20=this['firefoxOptions_'][_0x1cbb1f(0x10c)](this[_0x1cbb1f(0xfe)]['CAPABILITY_KEY'])||{},this[_0x1cbb1f(0xfe)]['set'](this['firefoxOptions_']['CAPABILITY_KEY'],helper['mergeDeep'](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;case _0x4eba39['qpCWq']:this[_0x1cbb1f(0x10b)]&&(_0x339e20=this['safariOptions_'][_0x1cbb1f(0x10c)](this[_0x1cbb1f(0x10b)][_0x1cbb1f(0xeb)])||{},this['safariOptions_'][_0x1cbb1f(0x142)](this[_0x1cbb1f(0x10b)][_0x1cbb1f(0xeb)],helper[_0x1cbb1f(0x111)](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;case _0x4eba39[_0x1cbb1f(0xf2)]:case _0x4eba39['Qwyxh']:this[_0x1cbb1f(0xe2)]&&(_0x339e20=this[_0x1cbb1f(0xe2)][_0x1cbb1f(0x10c)](this[_0x1cbb1f(0xe2)]['CAPABILITY_KEY'])||{},this[_0x1cbb1f(0xe2)][_0x1cbb1f(0x142)](this[_0x1cbb1f(0xe2)][_0x1cbb1f(0xeb)],helper[_0x1cbb1f(0x111)](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;}}}[_0x338f5b(0x105)](){const _0x3eca9b=_0x338f5b;return logger[_0x3eca9b(0x100)](_0x4eba39['pLsZr']),this[_0x3eca9b(0x13c)](_0x1ab4f5[_0x3eca9b(0xe6)]),Object[_0x3eca9b(0x132)](_0x1ab4f5[_0x3eca9b(0xe6)])['forEach'](_0x21ec16=>{const _0x463820=_0x3eca9b,_0x5a427c=this['capabilities_']['get'](_0x21ec16);_0x4eba39['uyeCz'](typeof _0x5a427c,_0x4eba39[_0x463820(0x10e)])?this[_0x463820(0x10f)]['set'](_0x21ec16,helper[_0x463820(0x111)](_0x5a427c,_0x1ab4f5[_0x463820(0xe6)][_0x21ec16])):this['capabilities_'][_0x463820(0x142)](_0x21ec16,_0x1ab4f5[_0x463820(0xe6)][_0x21ec16]);}),this;}['build'](){const _0x52abf2=_0x338f5b,_0xd8e4fc={'VpRxs':function(_0x5c4a13,_0x19bfc0,_0x418ff3){const _0x5e3295=a29_0xf1ef;return _0x4eba39[_0x5e3295(0xdd)](_0x5c4a13,_0x19bfc0,_0x418ff3);},'OmaUo':function(_0x49cb20,_0x542fb6,_0x3303ff){const _0x58998a=a29_0xf1ef;return _0x4eba39[_0x58998a(0x138)](_0x49cb20,_0x542fb6,_0x3303ff);},'mMvFC':function(_0x213881,_0x20e2b8){const _0x317f37=a29_0xf1ef;return _0x4eba39[_0x317f37(0xd5)](_0x213881,_0x20e2b8);},'YcRbE':function(_0x58d88d,_0x192da4,_0x4bda7b){const _0x136c2c=a29_0xf1ef;return _0x4eba39[_0x136c2c(0xdd)](_0x58d88d,_0x192da4,_0x4bda7b);}};if(helper['isBrowserstackInfra']()){const _0x9777e4=_0x4eba39['MseLw'][_0x52abf2(0x11a)]('|');let _0x5bbb3c=0x0;while(!![]){switch(_0x9777e4[_0x5bbb3c++]){case'0':_0x4eba39[_0x52abf2(0xdf)](isAccessibilityAutomationSession)&&_0x4eba39['OQETi'](setAccessibilityCapabilities,_0x1ab4f5);continue;case'1':this[_0x52abf2(0x105)]();continue;case'2':globals[_0x52abf2(0x10d)](_0x4eba39['KnUgf'])&&(!_0x4eba39[_0x52abf2(0x11e)](setExtension,this,_0x1ab4f5)&&globals[_0x52abf2(0x13a)](_0x4eba39[_0x52abf2(0xd4)],![]));continue;case'3':logger[_0x52abf2(0x100)](_0x4eba39['Vfogp']);continue;case'4':this[_0x52abf2(0x141)]();continue;case'5':if(helper[_0x52abf2(0xfb)](_0x1ab4f5[_0x52abf2(0x150)][_0x52abf2(0xe1)]))this[_0x52abf2(0x122)]=helper[_0x52abf2(0x11c)](_0x1ab4f5[_0x52abf2(0x150)]['proxyUrl']);else _0x1ab4f5[_0x52abf2(0x150)][_0x52abf2(0xe1)]&&(this[_0x52abf2(0x13b)]=_0x1ab4f5[_0x52abf2(0x150)]['proxyUrl'],logger[_0x52abf2(0x100)](_0x52abf2(0x144)+this['proxy_']));continue;}break;}}const _0x347616=super[_0x52abf2(0xe9)]();return _0x347616[_0x52abf2(0xdc)][_0x52abf2(0x13f)](_0x486280=>{const _0xb31183=_0x52abf2;try{const _0xfdd1e9=_0x486280[_0xb31183(0xe8)]['get'](_0x4eba39['FwulD']);_0xfdd1e9?(logger['debug']('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0xfdd1e9),hubAllocator['updateHubUrl'](_0xfdd1e9),helper[_0xb31183(0xd8)](_0xfdd1e9)):logger[_0xb31183(0x100)](_0x4eba39['ijxoT']);}catch(_0x491493){logger[_0xb31183(0x100)](_0xb31183(0x131)+_0x491493);}}),_0x347616['quitCount_']=0x0,_0x347616[_0x52abf2(0x13f)]&&_0x347616[_0x52abf2(0x13f)](_0x54c116=>{const _0x1efff6=_0x52abf2,_0x181161={'geLxI':function(_0x30783a,_0x5c333f,_0x2e9009){const _0x27b855=a29_0xf1ef;return _0xd8e4fc[_0x27b855(0xef)](_0x30783a,_0x5c333f,_0x2e9009);},'VVLhm':function(_0x546bb6,_0x13b2b5,_0x2c2758){return _0xd8e4fc['OmaUo'](_0x546bb6,_0x13b2b5,_0x2c2758);}};_0xd8e4fc[_0x1efff6(0xef)](overrideQuit,_0x54c116,_0x347616),_0xd8e4fc[_0x1efff6(0xd6)](overrideTakeScreenshot,_0x54c116),helper[_0x1efff6(0x12a)](_0x54c116,_0x1ab4f5),_0xd8e4fc[_0x1efff6(0x14c)](overrideExecute,_0x54c116,_0x1ab4f5),_0x54c116['getAccessibilityResultsSummary']=async()=>{const _0x23b32a=_0x1efff6;return await _0x181161[_0x23b32a(0x11b)](getAccessibilityResultsSummary,_0x54c116,global);},_0x54c116[_0x1efff6(0x116)]=async()=>{return await _0x181161['VVLhm'](getAccessibilityResults,_0x54c116,global);};}),_0x347616[_0x52abf2(0x120)]=async()=>{const _0xa5d425=_0x52abf2;return await _0x4eba39[_0xa5d425(0x138)](getAccessibilityResultsSummary,_0x347616,global);},_0x347616['getAccessibilityResults']=async()=>{return await _0xd8e4fc['VpRxs'](getAccessibilityResults,_0x347616,global);},_0x4eba39['OQETi'](overrideTakeScreenshot,_0x347616),_0x4eba39[_0x52abf2(0xd5)](overrideQuit,_0x347616),helper['overrideGet'](_0x347616,_0x1ab4f5),_0x4eba39['OFNOq'](overrideExecute,_0x347616,_0x1ab4f5),helper[_0x52abf2(0x128)](global[_0x52abf2(0x147)])&&(global['__driversArray']=[]),helper[_0x52abf2(0x128)](global[_0x52abf2(0x113)])&&(global[_0x52abf2(0x113)]=[]),global[_0x52abf2(0x147)]['push'](_0x347616),global[_0x52abf2(0x14a)]=_0x347616,_0x4eba39[_0x52abf2(0x13d)](global[_0x52abf2(0x113)],undefined)&&global[_0x52abf2(0x113)][_0x52abf2(0x149)](_0x347616),_0x3fa8ac&&helper[_0x52abf2(0x128)](_0x3fa8ac[_0x52abf2(0x109)][_0x52abf2(0x147)])&&(_0x3fa8ac[_0x52abf2(0x109)][_0x52abf2(0x147)]=[]),_0x3fa8ac&&_0x4eba39[_0x52abf2(0x14d)](_0x3fa8ac['global'][_0x52abf2(0x113)],undefined)&&(_0x3fa8ac[_0x52abf2(0x109)][_0x52abf2(0x113)]['push'](_0x347616),_0x3fa8ac['global'][_0x52abf2(0x147)]['push'](_0x347616)),_0x347616;}}return _0x33e2e9['originalBuilder']=_0x33e2e9[_0x338f5b(0xed)],_0x33e2e9[_0x338f5b(0xed)]=_0x274866,_0x32b925[_0x338f5b(0x12c)]=_0x3af796,_0x33e2e9;};module['exports'][a29_0x54f591(0x143)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x537b36=a30_0x58d0;(function(_0x70ed78,_0xd24e70){const _0x5d749f=a30_0x58d0,_0x53baf5=_0x70ed78();while(!![]){try{const _0xc7212e=-parseInt(_0x5d749f(0x18d))/0x1*(parseInt(_0x5d749f(0x192))/0x2)+parseInt(_0x5d749f(0x189))/0x3*(-parseInt(_0x5d749f(0x190))/0x4)+-parseInt(_0x5d749f(0x185))/0x5*(parseInt(_0x5d749f(0x186))/0x6)+parseInt(_0x5d749f(0x18b))/0x7+parseInt(_0x5d749f(0x18e))/0x8*(-parseInt(_0x5d749f(0x184))/0x9)+-parseInt(_0x5d749f(0x182))/0xa*(-parseInt(_0x5d749f(0x18a))/0xb)+parseInt(_0x5d749f(0x18c))/0xc;if(_0xc7212e===_0xd24e70)break;else _0x53baf5['push'](_0x53baf5['shift']());}catch(_0x852024){_0x53baf5['push'](_0x53baf5['shift']());}}}(a30_0x1996,0x5ff7e));function a30_0x1996(){const _0x1448ee=['22154VnLHos','1073471CLIczM','16273056thyyPa','268873wkxdQG','376rsAtFD','../../../helpers/test-observability/utils','848XzjVmG','timeout','2sznKNv','mochaHooks','restore','1290OzqziC','../../../bin/utils/constants','32013qgpXOT','1482385QduTJE','6ZXoCrw','../../../helpers/request-spy','Jvdue','9108BMvNZo'];a30_0x1996=function(){return _0x1448ee;};return a30_0x1996();}function a30_0x58d0(_0x5d2f89,_0xce49f2){const _0x199600=a30_0x1996();return a30_0x58d0=function(_0x58d0db,_0x28437e){_0x58d0db=_0x58d0db-0x180;let _0x62e847=_0x199600[_0x58d0db];return _0x62e847;},a30_0x58d0(_0x5d2f89,_0xce49f2);}const requestSpy=require(a30_0x537b36(0x187)),constants=require(a30_0x537b36(0x183)),{addRequestSpy}=require(a30_0x537b36(0x18f));exports[a30_0x537b36(0x180)]={'beforeAll'(){const _0x4af218=a30_0x537b36,_0x14dbc6={'Jvdue':function(_0x59fe3c){return _0x59fe3c();}},_0x305e4f='browserstack internal helper hook';_0x14dbc6[_0x4af218(0x188)](addRequestSpy);},'afterAll'(){const _0x364078=a30_0x537b36,_0x380c73='browserstack internal helper hook';this[_0x364078(0x191)](0xea60),requestSpy[_0x364078(0x181)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x1c2ca9=a31_0x7c08;function a31_0x7c08(_0x2cc04e,_0x1d30a2){const _0x48b723=a31_0x48b7();return a31_0x7c08=function(_0x7c08,_0xe10b46){_0x7c08=_0x7c08-0x148;let _0x53cef4=_0x48b723[_0x7c08];return _0x53cef4;},a31_0x7c08(_0x2cc04e,_0x1d30a2);}function a31_0x48b7(){const _0x4d14a7=['zdqad','concat','suites','../../../helpers/test-observability/utils','state','miKlY','BSurU','map_','tuYlc','8bnxlua','../../../helpers/helper','getSession','fnDfL','tests','js-','../../utils/logPatcher','15790cULnrw','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','5376119LTwnsp','PSpKZ','DqKZR','_afterAll','4234416KIcxxX','4aOuHQg','split','TEST_PLATFORM','indexOf','_afterEach','vSWLR','pvzJS','slice','fwyXQ','VWxkr','../../../../package.json','xnJrF','failed','reduce','tJdVh','getHookSkippedTests','forEach','push','SEbiR','5270859uyzVrA','fromEntries','20204550EZUMGF','TMigT','toISOString','_beforeEach','getCapabilities','browserstack','getTestEnv','LsLLG','sqxvC','passed','type','hook','xoAHB','XheeY','VpPRO','koTlT','pid','JZOfb','383960JOyyOj','getHooksForTest','lSRqS','unknown_grid','substring','__cloud_provider___','mapTestHooks','inidI','generic','nAcdN','qbnHG','../../../helpers/test-observability/constants','bktyK','AcDvq','pending','markedStatus','_beforeAll','OErsI','getBrowserVersion','872rmmwDP','bs:addPlatformDetails:','sendPlatformDetails','string','emit','../../../helpers/testhub/utils','getPlatform','hookAnalyticsId','parent','2110473NdRZJa'];a31_0x48b7=function(){return _0x4d14a7;};return a31_0x48b7();}(function(_0x328c83,_0x22d807){const _0x405a52=a31_0x7c08,_0x6836c3=_0x328c83();while(!![]){try{const _0x34b18d=parseInt(_0x405a52(0x185))/0x1*(parseInt(_0x405a52(0x151))/0x2)+-parseInt(_0x405a52(0x16d))/0x3+-parseInt(_0x405a52(0x164))/0x4*(parseInt(_0x405a52(0x17e))/0x5)+-parseInt(_0x405a52(0x184))/0x6+-parseInt(_0x405a52(0x180))/0x7*(parseInt(_0x405a52(0x177))/0x8)+parseInt(_0x405a52(0x198))/0x9+parseInt(_0x405a52(0x19a))/0xa;if(_0x34b18d===_0x22d807)break;else _0x6836c3['push'](_0x6836c3['shift']());}catch(_0x26f0c2){_0x6836c3['push'](_0x6836c3['shift']());}}}(a31_0x48b7,0x7c1b2));const {v4:uuidv4}=require('uuid'),{name,version}=require(a31_0x1c2ca9(0x18f)),logPatcher=require(a31_0x1c2ca9(0x17d)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x1c2ca9(0x171)),{consoleHolder}=require(a31_0x1c2ca9(0x15c)),{getPlatformVersion}=require(a31_0x1c2ca9(0x178)),{shouldProcessEventForTesthub}=require(a31_0x1c2ca9(0x169));console={},Object['keys'](consoleHolder)['forEach'](_0x22814c=>{console[_0x22814c]=(..._0x4eec1c)=>{BSTestOpsPatcher[_0x22814c](..._0x4eec1c);};}),exports[a31_0x1c2ca9(0x1a0)]=()=>{const _0x2c68da=a31_0x1c2ca9,_0x5256cd={'JtgWL':_0x2c68da(0x159),'JZOfb':function(_0x357ba1){return _0x357ba1();}};return{'ci':_0x5256cd['JtgWL'],'key':_0x5256cd[_0x2c68da(0x150)](uuidv4),'version':version,'collector':_0x2c68da(0x17c)+name};},exports['getHookDetails']=_0x4fe4c4=>{const _0x3a117c=a31_0x1c2ca9,_0x23a1e4={};_0x23a1e4[_0x3a117c(0x18d)]=function(_0x443828,_0x3f26c6){return _0x443828!==_0x3f26c6;},_0x23a1e4[_0x3a117c(0x19b)]=_0x3a117c(0x167),_0x23a1e4[_0x3a117c(0x14d)]='hook:',_0x23a1e4['SriTn']=function(_0x16c3b7,_0x48bd6a){return _0x16c3b7!==_0x48bd6a;},_0x23a1e4[_0x3a117c(0x153)]=_0x3a117c(0x14a);const _0x43422d=_0x23a1e4;if(!_0x4fe4c4||_0x43422d['fwyXQ'](typeof _0x4fe4c4,_0x43422d[_0x3a117c(0x19b)]))return[null,null];if(_0x43422d[_0x3a117c(0x18d)](_0x4fe4c4[_0x3a117c(0x188)](_0x43422d['VpPRO']),-0x1)){const _0x3161ec=_0x4fe4c4[_0x3a117c(0x186)](_0x43422d[_0x3a117c(0x14d)]);return[_0x3161ec[0x0][_0x3a117c(0x18c)](0x0,-0x1)['split']('\x22')[0x1],_0x3161ec[0x1][_0x3a117c(0x155)](0x1)];}else{if(_0x43422d['SriTn'](_0x4fe4c4[_0x3a117c(0x188)](_0x43422d[_0x3a117c(0x153)]),-0x1)){const _0x2d362a=_0x4fe4c4[_0x3a117c(0x186)](_0x43422d[_0x3a117c(0x153)]);return[_0x2d362a[0x0][_0x3a117c(0x18c)](0x0,-0x1)['split']('\x22')[0x1],_0x4fe4c4];}}return[null,null];},exports[a31_0x1c2ca9(0x152)]=_0x30c3db=>{const _0x1a542f=a31_0x1c2ca9,_0x58a17a={'SEbiR':function(_0x473c8f,_0x26522b){return _0x473c8f(_0x26522b);},'XheeY':_0x1a542f(0x161),'aLSWA':'_afterAll','fPWVH':_0x1a542f(0x19d),'bktyK':_0x1a542f(0x189)};if(!_0x30c3db||!_0x30c3db[_0x1a542f(0x16c)])return[];const _0x5472d1=[];return[_0x58a17a[_0x1a542f(0x14c)],_0x58a17a['aLSWA'],_0x58a17a['fPWVH'],_0x58a17a[_0x1a542f(0x15d)]][_0x1a542f(0x195)](_0x3fddf2=>{const _0x20fb99=_0x1a542f,_0x62d0c0={'fnDfL':function(_0x2d73ea,_0x472d01){const _0x3fb8a4=a31_0x7c08;return _0x58a17a[_0x3fb8a4(0x197)](_0x2d73ea,_0x472d01);}},_0x5cd9ef=_0x30c3db[_0x20fb99(0x16c)][_0x3fddf2]||[];_0x5cd9ef[_0x20fb99(0x195)](_0xe9c578=>{const _0x1ed688=_0x20fb99;_0xe9c578['hookAnalyticsId']&&!_0x62d0c0[_0x1ed688(0x17a)](isInternalHook,_0xe9c578['fn'])&&_0x5472d1[_0x1ed688(0x196)](_0xe9c578[_0x1ed688(0x16b)]);});}),[..._0x5472d1,...exports[_0x1a542f(0x152)](_0x30c3db[_0x1a542f(0x16c)])];},exports[a31_0x1c2ca9(0x157)]=_0x36871d=>{const _0x134bec=a31_0x1c2ca9,_0x34fb91={'OErsI':function(_0x5d8602){return _0x5d8602();},'inidI':function(_0x1a3614,_0x15a081){return _0x1a3614===_0x15a081;},'tuYlc':'_afterEach','tJdVh':'_beforeAll','xoAHB':_0x134bec(0x183),'kBgfi':'_beforeEach'};if(!_0x36871d||!_0x36871d[_0x134bec(0x16c)])return;[_0x34fb91[_0x134bec(0x193)],_0x34fb91[_0x134bec(0x14b)],_0x34fb91['kBgfi'],_0x34fb91[_0x134bec(0x176)]][_0x134bec(0x195)](_0x299034=>{const _0x39850e=_0x134bec,_0x216398={'qbnHG':function(_0xe4d710){const _0x3f3ef7=a31_0x7c08;return _0x34fb91[_0x3f3ef7(0x162)](_0xe4d710);},'nAcdN':function(_0xc57f1c,_0xca434c){const _0x436196=a31_0x7c08;return _0x34fb91[_0x436196(0x158)](_0xc57f1c,_0xca434c);},'VWxkr':_0x34fb91[_0x39850e(0x176)]},_0x45ac2e=_0x36871d[_0x39850e(0x16c)][_0x299034]||[];_0x45ac2e[_0x39850e(0x195)](_0x1c1854=>{const _0x1e2a8d=_0x39850e;if(!_0x1c1854['hookAnalyticsId'])_0x1c1854['hookAnalyticsId']=_0x216398[_0x1e2a8d(0x15b)](uuidv4);else _0x1c1854[_0x1e2a8d(0x160)]&&_0x216398[_0x1e2a8d(0x15a)](_0x299034,_0x216398[_0x1e2a8d(0x18e)])&&(_0x1c1854['hookAnalyticsId']=_0x216398[_0x1e2a8d(0x15b)](uuidv4),delete _0x1c1854[_0x1e2a8d(0x160)]);});}),exports[_0x134bec(0x157)](_0x36871d[_0x134bec(0x16c)]);},exports[a31_0x1c2ca9(0x166)]=async(_0x2cd807,_0x54fc52)=>{const _0x1a64d9=a31_0x1c2ca9,_0x4e5982={'AcDvq':function(_0xbda429){return _0xbda429();},'zdqad':function(_0x1b2b21,_0x2518ff){return _0x1b2b21(_0x2518ff);},'pvzJS':function(_0x217586,_0xb24872){return _0x217586(_0xb24872);},'sqxvC':function(_0x1c4909,_0x34129b){return _0x1c4909===_0x34129b;},'LsLLG':_0x1a64d9(0x19f),'BSurU':_0x1a64d9(0x154),'PSpKZ':_0x1a64d9(0x187),'vSWLR':function(_0x3a1ada,_0x59d949){return _0x3a1ada(_0x59d949);}};try{if(!_0x4e5982[_0x1a64d9(0x15e)](shouldProcessEventForTesthub))return;const _0x551fe4=await _0x2cd807[_0x1a64d9(0x19e)](),_0x55c175=await _0x2cd807[_0x1a64d9(0x179)](),_0x339cb6={},_0x304867=Object[_0x1a64d9(0x199)](_0x55c175[_0x1a64d9(0x19e)]()[_0x1a64d9(0x175)]),_0x19f2b1={'product':_0x4e5982[_0x1a64d9(0x16e)](getObservabilityLinkedProductName,_0x304867),'capabilities':_0x304867,'platform':_0x551fe4[_0x1a64d9(0x16a)](),'platform_version':_0x4e5982[_0x1a64d9(0x18b)](getPlatformVersion,_0x4e5982[_0x1a64d9(0x1a2)](global[_0x1a64d9(0x156)],_0x4e5982[_0x1a64d9(0x1a1)])),'browser':_0x551fe4['getBrowserName'](),'browser_version':_0x551fe4[_0x1a64d9(0x163)](),'session_id':_0x55c175['toJSON']()};global[_0x1a64d9(0x156)]?_0x339cb6[global['__cloud_provider___']]=_0x19f2b1:_0x339cb6[_0x4e5982[_0x1a64d9(0x174)]]=_0x19f2b1,process[_0x1a64d9(0x168)](_0x1a64d9(0x165)+process[_0x1a64d9(0x14f)],{'timestamp':new Date()[_0x1a64d9(0x19c)](),'level':null,'message':null,'kind':_0x4e5982[_0x1a64d9(0x181)],'http_response':_0x339cb6,'uuid':_0x54fc52});}catch(_0x2d98e5){_0x4e5982[_0x1a64d9(0x18a)](debug,_0x1a64d9(0x17f)+_0x2d98e5);}},exports['getHookSkippedTests']=_0x49b0b6=>{const _0x370bdc=a31_0x1c2ca9,_0x285994={};_0x285994[_0x370bdc(0x182)]=function(_0x459853,_0x3ac125){return _0x459853!==_0x3ac125;},_0x285994[_0x370bdc(0x14e)]=_0x370bdc(0x14a),_0x285994[_0x370bdc(0x173)]=_0x370bdc(0x148),_0x285994[_0x370bdc(0x190)]=_0x370bdc(0x191);const _0x3229b5=_0x285994,_0x58c760=_0x49b0b6[_0x370bdc(0x170)][_0x370bdc(0x192)]((_0x1d0c1b,_0x43418e)=>{const _0xc75b85=_0x370bdc,_0x5f3318=exports[_0xc75b85(0x194)](_0x43418e);return _0x5f3318&&(_0x1d0c1b=_0x1d0c1b[_0xc75b85(0x16f)](_0x5f3318)),_0x1d0c1b;},[]),_0xeb17ee=_0x49b0b6[_0x370bdc(0x17b)]['filter'](_0x52b647=>{const _0x42a432=_0x370bdc,_0x174d4c=_0x3229b5[_0x42a432(0x182)](_0x52b647[_0x42a432(0x149)],_0x3229b5[_0x42a432(0x14e)])&&!_0x52b647[_0x42a432(0x160)]&&_0x3229b5[_0x42a432(0x182)](_0x52b647[_0x42a432(0x172)],_0x3229b5['miKlY'])&&_0x3229b5[_0x42a432(0x182)](_0x52b647[_0x42a432(0x172)],_0x3229b5[_0x42a432(0x190)])&&!_0x52b647[_0x42a432(0x15f)];return _0x174d4c;});return _0xeb17ee['concat'](_0x58c760);};
|
|
@@ -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
|
+
const a32_0x812b4c=a32_0x232c;(function(_0x365498,_0x1aba70){const _0x5dd46d=a32_0x232c,_0x119c56=_0x365498();while(!![]){try{const _0x5c4c0a=parseInt(_0x5dd46d(0x10a))/0x1+-parseInt(_0x5dd46d(0x105))/0x2*(parseInt(_0x5dd46d(0x154))/0x3)+-parseInt(_0x5dd46d(0x108))/0x4*(parseInt(_0x5dd46d(0x127))/0x5)+parseInt(_0x5dd46d(0x113))/0x6*(parseInt(_0x5dd46d(0xf4))/0x7)+parseInt(_0x5dd46d(0x10b))/0x8*(parseInt(_0x5dd46d(0xe6))/0x9)+-parseInt(_0x5dd46d(0x102))/0xa*(parseInt(_0x5dd46d(0x11e))/0xb)+parseInt(_0x5dd46d(0xe7))/0xc;if(_0x5c4c0a===_0x1aba70)break;else _0x119c56['push'](_0x119c56['shift']());}catch(_0x5ad76f){_0x119c56['push'](_0x119c56['shift']());}}}(a32_0x2acb,0x9e681));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x812b4c(0x13d)),{percyAutoCapture}=require(a32_0x812b4c(0x153)),{sendPlatformDetails}=require(a32_0x812b4c(0x158)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0x812b4c(0x115)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x812b4c(0x159)),logger=require(a32_0x812b4c(0x100))[a32_0x812b4c(0xf3)],{shouldProcessEventForTesthub}=require(a32_0x812b4c(0x14b)),testHubConstants=require('../../helpers/testhub/constants');exports[a32_0x812b4c(0x117)]={'beforeAll'(){const _0x120464=a32_0x812b4c,_0x426654={'OBNRZ':function(_0x4c6efd,_0xf7387f,_0x16f72b,_0xbab915){return _0x4c6efd(_0xf7387f,_0x16f72b,_0xbab915);},'MsJfv':'failed','otLAL':_0x120464(0x148),'GKbjj':function(_0x3c2b91,_0x7e692a,_0x1e13d8){return _0x3c2b91(_0x7e692a,_0x1e13d8);},'PVIle':_0x120464(0x14a),'KcLlK':function(_0x3d96de){return _0x3d96de();}};PerformanceTester[_0x120464(0x13f)]();const _0x39b902='browserstack internal helper hook';global[_0x120464(0x146)]=[],global[_0x120464(0x147)]=![],global[_0x120464(0xf5)]=async()=>{const _0x1afdfb=_0x120464;let _0x517df6=![];try{await global[_0x1afdfb(0xeb)][0x0]['session_'],_0x517df6=!![],global['__sessionFailed']?await _0x426654[_0x1afdfb(0x145)](markSessionStatus,global[_0x1afdfb(0xeb)][0x0],_0x426654[_0x1afdfb(0xf2)],global['__error_messages__'][_0x1afdfb(0xfa)](_0x426654['otLAL'])):await _0x426654['GKbjj'](markSessionStatus,global['__drivers'][0x0],_0x426654['PVIle']);}catch(_0x3da530){}global[_0x1afdfb(0x146)]=[],global[_0x1afdfb(0x147)]=![];if(_0x517df6)try{try{_0x426654[_0x1afdfb(0x119)](shouldProcessEventForTesthub)&&(global[_0x1afdfb(0xeb)][0x0]&&await _0x426654[_0x1afdfb(0x10d)](sendPlatformDetails,global[_0x1afdfb(0xeb)][0x0],this[_0x1afdfb(0x14d)]?this[_0x1afdfb(0x14d)]['testAnalyticsId']:null));}catch{}await global[_0x1afdfb(0xeb)][0x0][_0x1afdfb(0x13e)]();}catch(_0x48d396){}};},'beforeEach'(_0x581a72){const _0x125843=a32_0x812b4c,_0x47c3ec={'sTCgC':function(_0x1e759f,_0x4b5864){return _0x1e759f>_0x4b5864;},'tHIXs':function(_0x1d58c,_0x5dad09){return _0x1d58c>_0x5dad09;},'FrKyI':_0x125843(0xea),'DdPzV':function(_0x357286,_0x21585d,_0x2ed322){return _0x357286(_0x21585d,_0x2ed322);},'yYpSG':_0x125843(0x11a),'aArkf':function(_0x130eea){return _0x130eea();},'ygklg':_0x125843(0x13b),'nPZxP':function(_0x432b37,_0x457154){return _0x432b37===_0x457154;},'LBFUZ':_0x125843(0x101),'iQUQH':function(_0xac98fe,_0x399fd1){return _0xac98fe===_0x399fd1;},'OkGPl':_0x125843(0x104),'cVgVW':_0x125843(0x11d),'EIXnU':_0x125843(0x12d)};new Promise(async _0x4c2d79=>{const _0x2e48bd=_0x125843,_0x525492='browserstack internal helper hook';let _0x1e76f0=!![];try{_0x47c3ec[_0x2e48bd(0x11b)](global[_0x2e48bd(0xeb)]['length'],0x1)&&(await global[_0x2e48bd(0xf5)](),global['__drivers'][_0x2e48bd(0x11c)]()),_0x47c3ec['tHIXs'](global[_0x2e48bd(0xeb)][0x0][_0x2e48bd(0xe3)],0x0)&&(_0x1e76f0=![],await global[_0x2e48bd(0xf5)]());}catch{}try{Array[_0x2e48bd(0x136)](global[_0x2e48bd(0xeb)])&&global[_0x2e48bd(0xeb)][0x0]&&(global[_0x2e48bd(0xeb)][0x0][_0x2e48bd(0x140)]=this[_0x2e48bd(0x14d)][_0x2e48bd(0x143)]()['join'](_0x47c3ec[_0x2e48bd(0x107)])),global[_0x2e48bd(0x140)]=this[_0x2e48bd(0x14d)][_0x2e48bd(0x143)]()['join'](_0x47c3ec[_0x2e48bd(0x107)]);}catch(_0x12b63b){logger['debug'](_0x2e48bd(0xed)+_0x12b63b);}this['currentTest']['shouldScanTestForAccessibility']=_0x47c3ec[_0x2e48bd(0x155)](shouldScanTestForAccessibility,this[_0x2e48bd(0x14d)]['titlePath'](),!![]),globals[_0x2e48bd(0x13a)](_0x47c3ec[_0x2e48bd(0xf0)],this[_0x2e48bd(0x14d)]['shouldScanTestForAccessibility']),this['currentTest'][_0x2e48bd(0x141)]=!![];if(_0x47c3ec['aArkf'](isAccessibilityAutomationSession)&&_0x1e76f0&&Array['isArray'](global[_0x2e48bd(0xeb)])&&_0x47c3ec[_0x2e48bd(0x11b)](global[_0x2e48bd(0xeb)]['length'],0x0)&&globals[_0x2e48bd(0xf1)](_0x47c3ec[_0x2e48bd(0xfe)]))try{const _0x41950f=await global[_0x2e48bd(0xeb)][0x0][_0x2e48bd(0x123)];if(_0x41950f){let _0x2e059b=!![];const _0x4bf4dd=await global[_0x2e48bd(0xeb)][0x0][_0x2e48bd(0x111)]();let _0x82b14;try{_0x82b14=new URL(_0x4bf4dd);}catch(_0x5bb35f){_0x2e059b=![];}_0x2e059b=_0x47c3ec['nPZxP'](_0x82b14[_0x2e48bd(0x121)],_0x47c3ec[_0x2e48bd(0x126)])||_0x47c3ec[_0x2e48bd(0x152)](_0x82b14[_0x2e48bd(0x121)],_0x47c3ec[_0x2e48bd(0xfc)]),_0x2e059b&&(this[_0x2e48bd(0x14d)][_0x2e48bd(0xfb)]&&logger[_0x2e48bd(0xff)](_0x47c3ec['cVgVW'])),this[_0x2e48bd(0x14d)][_0x2e48bd(0x141)]=this[_0x2e48bd(0x14d)]['shouldScanTestForAccessibility'],this[_0x2e48bd(0x14d)]['shouldScanTestForAccessibility']&&logger[_0x2e48bd(0xff)](_0x47c3ec['EIXnU']);}}catch(_0x13e5d5){logger[_0x2e48bd(0x142)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util['format'](_0x13e5d5));}_0x47c3ec['aArkf'](_0x4c2d79);})[_0x125843(0xe8)](_0x581a72);},'afterEach'(_0x1d7efe){const _0x195ff7=a32_0x812b4c,_0x5a2414={'zrQQJ':function(_0x48fc2e,_0x3da8bb){return _0x48fc2e>_0x3da8bb;},'Uyith':function(_0x16b21a,_0x3656c1){return _0x16b21a===_0x3656c1;},'Rqgse':_0x195ff7(0x132),'LaUdQ':'appium:app','JOYoA':function(_0x5a7efd,_0x64c569,_0x562ab9,_0x3d4ee4){return _0x5a7efd(_0x64c569,_0x562ab9,_0x3d4ee4);},'hhyaT':_0x195ff7(0xea),'DrMWR':function(_0x328c45,_0x529c43){return _0x328c45!==_0x529c43;},'JErEB':_0x195ff7(0x14a),'mdbNa':function(_0x2f6bb5,_0x33d1ac,_0x5a5a99){return _0x2f6bb5(_0x33d1ac,_0x5a5a99);},'UfMre':function(_0x155f54,_0x482495){return _0x155f54+_0x482495;},'NsCrJ':_0x195ff7(0xe4),'CEMDD':_0x195ff7(0x142),'kYDXv':function(_0x347888,_0x3f27cc,_0x3cb4d1){return _0x347888(_0x3f27cc,_0x3cb4d1);},'uwzVR':'Passed','leQcE':'info','dxnYd':_0x195ff7(0x13b),'YsGYb':_0x195ff7(0x11a),'uuwKh':_0x195ff7(0xf8),'rDPQl':_0x195ff7(0x128),'jywxf':_0x195ff7(0x116),'GYjjc':function(_0x48cf74){return _0x48cf74();},'hfTWx':function(_0x28cca6){return _0x28cca6();},'SzVQQ':_0x195ff7(0x150),'fkrJm':function(_0x4896df){return _0x4896df();}},_0x25052c='browserstack internal helper hook';this['timeout'](0xfde8);const _0x54728e=async(_0x398586,_0x403be1)=>{const _0x1f1876=_0x195ff7;await global[_0x1f1876(0xeb)][0x0][_0x1f1876(0xe5)](_0x1f1876(0x12e)+_0x398586+_0x1f1876(0x114)+_0x403be1+_0x1f1876(0x135));};new Promise(async _0x53bc6b=>{const _0x510069=_0x195ff7;try{_0x5a2414[_0x510069(0x133)](global[_0x510069(0xeb)][_0x510069(0x151)],0x1)&&(await global[_0x510069(0xf5)](),global[_0x510069(0xeb)][_0x510069(0x11c)](),global['__error_messages__']=[],global[_0x510069(0x147)]=![]);try{if(global[_0x510069(0x118)]&&_0x5a2414[_0x510069(0x149)](global[_0x510069(0x12b)],_0x5a2414['Rqgse'])&&global[_0x510069(0xeb)][0x0]){const _0x4b2bf5=_0x5a2414[_0x510069(0x133)](global[_0x510069(0x156)][_0x510069(0x151)],0x0)?!!global[_0x510069(0x156)][0x0][_0x510069(0x11f)]||!!global[_0x510069(0x156)][0x0][_0x5a2414['LaUdQ']]:![],_0x5366f8={};_0x5366f8[_0x510069(0x11f)]=_0x4b2bf5,await _0x5a2414['JOYoA'](percyAutoCapture,global[_0x510069(0xeb)][0x0],_0x5a2414[_0x510069(0x109)],_0x5366f8);}}catch(_0x11a438){}!global[_0x510069(0x10c)]&&(await global[_0x510069(0xeb)][0x0][_0x510069(0xe5)](_0x510069(0xfd)+JSON[_0x510069(0x10e)](this[_0x510069(0x14d)][_0x510069(0x143)]()[_0x510069(0xfa)](_0x5a2414['hhyaT']))+'}}'),global[_0x510069(0xeb)][0x0]['sessionNameSet__']=!![]);const _0x3d875f=_0x5a2414[_0x510069(0x12c)](this[_0x510069(0x14d)][_0x510069(0x110)],_0x5a2414[_0x510069(0x134)]);_0x3d875f?(global['__sessionFailed']=!![],global[_0x510069(0x146)][_0x510069(0x14c)](this[_0x510069(0x14d)][_0x510069(0xe9)][_0x510069(0xf9)]),await _0x5a2414[_0x510069(0xf6)](_0x54728e,JSON[_0x510069(0x10e)](_0x5a2414['UfMre'](_0x5a2414[_0x510069(0x138)],this[_0x510069(0x14d)][_0x510069(0xe9)][_0x510069(0xf9)])),_0x5a2414['CEMDD'])):await _0x5a2414[_0x510069(0x157)](_0x54728e,JSON[_0x510069(0x10e)](_0x5a2414[_0x510069(0x129)]),_0x5a2414[_0x510069(0x13c)]);}catch(_0x4952b7){}try{if(this[_0x510069(0x14d)]['accessibilityScanStarted']&&globals[_0x510069(0xf1)](_0x5a2414['dxnYd'])&&globals['getGlobal'](_0x5a2414['YsGYb'])){logger['info'](_0x5a2414['uuwKh']);const _0x4c0599={};_0x4c0599[_0x510069(0x120)]=this[_0x510069(0x14d)]['testAnalyticsId'],_0x4c0599[_0x510069(0x112)]=process[_0x510069(0x130)][testHubConstants[_0x510069(0x125)][_0x510069(0x103)]],_0x4c0599[_0x510069(0x10f)]=process[_0x510069(0x130)][testHubConstants[_0x510069(0x125)][_0x510069(0x131)]];const _0x54eb46=_0x4c0599;logger['debug'](_0x510069(0x122)+JSON[_0x510069(0x10e)](_0x54eb46)),logger[_0x510069(0x150)](_0x5a2414[_0x510069(0x106)]),logger[_0x510069(0x150)](util[_0x510069(0x14e)](await global[_0x510069(0xeb)][0x0][_0x510069(0x12a)](scripts[_0x510069(0xf7)],{'method':global['browserstackSessionName']}))),await global['__drivers'][0x0][_0x510069(0x12a)](scripts[_0x510069(0x137)],_0x54eb46),logger[_0x510069(0xff)](_0x5a2414[_0x510069(0xee)]);}}catch(_0x300621){logger['error']('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x510069(0x14d)][_0x510069(0x143)]()+_0x510069(0x12f),_0x300621);}try{try{if(_0x5a2414['GYjjc'](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x5a2414['mdbNa'](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this[_0x510069(0x14d)][_0x510069(0xef)]:null);if(_0x5a2414['hfTWx'](isBrowserstackInfra)){const _0x481aae=_0x510069(0x124)+Date[_0x510069(0x14f)]();await _0x5a2414[_0x510069(0xf6)](_0x54728e,JSON[_0x510069(0x10e)](_0x481aae),_0x5a2414['SzVQQ']);}}}catch{}_0x5a2414[_0x510069(0x133)](global[_0x510069(0xeb)][0x0][_0x510069(0xe3)],0x0)&&await global[_0x510069(0xf5)]();}catch(_0x2ae0aa){}_0x5a2414['fkrJm'](_0x53bc6b);})[_0x195ff7(0xe8)](()=>_0x1d7efe());},'afterAll'(_0x1a05be){const _0x18a4fa=a32_0x812b4c,_0x335c98={'bSBma':function(_0x2f8b73){return _0x2f8b73();}},_0x26d86a='browserstack internal helper hook';this[_0x18a4fa(0x139)](0xfde8),new Promise(async _0xf28c73=>{const _0x57d75b=_0x18a4fa;PerformanceTester[_0x57d75b(0x144)](),await global[_0x57d75b(0xf5)](),_0x335c98[_0x57d75b(0xec)](_0xf28c73);})[_0x18a4fa(0xe8)](()=>_0x1a05be());}};function a32_0x232c(_0xffacbc,_0x16535f){const _0x2acb50=a32_0x2acb();return a32_0x232c=function(_0x232c76,_0x40d29a){_0x232c76=_0x232c76-0xe3;let _0x10fd00=_0x2acb50[_0x232c76];return _0x10fd00;},a32_0x232c(_0xffacbc,_0x16535f);}function a32_0x2acb(){const _0x3fc430=['DdPzV','capabilities','kYDXv','./test-observability/mochaUtils','../../helpers/globals','quitCount_','Failed:\x20','executeScript','9dSEUSS','5781168ExtjCq','then','err','\x20-\x20','__drivers','bSBma','Failed\x20to\x20store\x20session\x20name:\x20','jywxf','testAnalyticsId','yYpSG','getGlobal','MsJfv','winstonLogger','611842RthRyA','driverCleanup','mdbNa','performScan','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','message','join','shouldScanTestForAccessibility','OkGPl','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','ygklg','info','../../helpers/logger','http:','1786990alpwoh','BROWSERSTACK_TESTHUB_UUID','https:','8xJDRvE','rDPQl','FrKyI','6572mzmtGi','Rqgse','925620RMLPdA','688088EMsZZd','__skipSessionName','GKbjj','stringify','thJwtToken','state','getCurrentUrl','thBuildUuid','48xKQFZQ',',\x22level\x22:\x20\x22','../../helpers/performance-tester','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','mochaHooks','percy','KcLlK','bstackA11yShouldScan','sTCgC','shift','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','11QbLwIZ','app','thTestRunUuid','protocol','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','session_','ObservabilitySync:','ENV_VAR','LBFUZ','1285VkVtGy','Performing\x20scan\x20before\x20saving\x20results','uwzVR','executeAsyncScript','percyCaptureMode','DrMWR','Automate\x20test\x20case\x20execution\x20has\x20started.','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','.\x20Error\x20:','env','BROWSERSTACK_TESTHUB_JWT','testcase','zrQQJ','JErEB','\x22}}','isArray','saveTestResults','NsCrJ','timeout','setGlobal','isAccessibilityPlatform','leQcE','../../helpers/accessibility-automation/helper','initQuit','startMonitoring','browserstackSessionName','accessibilityScanStarted','error','titlePath','stopMonitoring','OBNRZ','__error_messages__','__sessionFailed','\x20|\x20','Uyith','passed','../../helpers/testhub/utils','push','currentTest','format','now','debug','length','iQUQH','../../helpers/percy/utils','707145wyASxn'];a32_0x2acb=function(){return _0x3fc430;};return a32_0x2acb();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a33_0x23f3(_0x396129,_0xc5bae1){const _0x421b01=a33_0x421b();return a33_0x23f3=function(_0x23f352,_0x243b20){_0x23f352=_0x23f352-0x1c6;let _0x3f00e6=_0x421b01[_0x23f352];return _0x3f00e6;},a33_0x23f3(_0x396129,_0xc5bae1);}const a33_0x17f754=a33_0x23f3;(function(_0xdce603,_0x570210){const _0x57cf4b=a33_0x23f3,_0x1f9077=_0xdce603();while(!![]){try{const _0x580ca6=parseInt(_0x57cf4b(0x1de))/0x1+parseInt(_0x57cf4b(0x202))/0x2*(parseInt(_0x57cf4b(0x1f0))/0x3)+parseInt(_0x57cf4b(0x1f6))/0x4*(parseInt(_0x57cf4b(0x1fb))/0x5)+parseInt(_0x57cf4b(0x1d0))/0x6+-parseInt(_0x57cf4b(0x1d4))/0x7*(-parseInt(_0x57cf4b(0x1f7))/0x8)+-parseInt(_0x57cf4b(0x1e2))/0x9+-parseInt(_0x57cf4b(0x208))/0xa*(parseInt(_0x57cf4b(0x1c6))/0xb);if(_0x580ca6===_0x570210)break;else _0x1f9077['push'](_0x1f9077['shift']());}catch(_0x3832ab){_0x1f9077['push'](_0x1f9077['shift']());}}}(a33_0x421b,0x7831f));const fs=require('fs'),path=require(a33_0x17f754(0x1c8)),{spawn}=require('child_process'),logger=require(a33_0x17f754(0x203))[a33_0x17f754(0x1d3)],{default:BrowserStackSetup}=require(a33_0x17f754(0x1d2)),helper=require(a33_0x17f754(0x1fe)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x1e32a5,_0x5dc89c)=>{const _0x1a2375=a33_0x17f754,_0x3dc271={'tJQOE':'nightwatch.conf.js','GJcdC':_0x1a2375(0x1f3),'HAIWA':function(_0x3f9817,_0x12ccab){return _0x3f9817(_0x12ccab);},'vRDvR':_0x1a2375(0x1ce)};let _0x41b3f6=null,_0x186cbb={};const _0x5cdc9e=_0x5dc89c[_0x1a2375(0x1dd)](_0x3a91ee=>_0x3a91ee===_0x1a2375(0x210));if(!helper['isUndefined'](_0x1e32a5[_0x1a2375(0x201)])&&fs[_0x1a2375(0x1d7)](path['join'](process[_0x1a2375(0x1dc)](),_0x1e32a5['config'])))_0x41b3f6=path[_0x1a2375(0x1f4)](process['cwd'](),_0x1e32a5[_0x1a2375(0x201)]),_0x5dc89c[_0x1a2375(0x1e3)](_0x5cdc9e,0x2);else{if(fs[_0x1a2375(0x1d7)](path[_0x1a2375(0x1f4)](process[_0x1a2375(0x1dc)](),_0x3dc271[_0x1a2375(0x20b)])))_0x41b3f6=path['join'](process[_0x1a2375(0x1dc)](),_0x3dc271[_0x1a2375(0x20b)]);else fs[_0x1a2375(0x1d7)](path[_0x1a2375(0x1f4)](process[_0x1a2375(0x1dc)](),_0x3dc271[_0x1a2375(0x1ea)]))&&(_0x41b3f6=path[_0x1a2375(0x1f4)](process['cwd'](),_0x3dc271[_0x1a2375(0x1ea)]));}return _0x41b3f6?(logger[_0x1a2375(0x205)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x41b3f6),_0x186cbb=_0x3dc271[_0x1a2375(0x200)](require,_0x41b3f6)):logger[_0x1a2375(0x205)](_0x3dc271[_0x1a2375(0x1d5)]),_0x186cbb;},removeExistingEnvs=_0x3ed8d2=>{const _0x5a99b4=a33_0x17f754,_0x203950={};_0x203950[_0x5a99b4(0x20d)]=function(_0x3e71f1,_0x37bd0b){return _0x3e71f1>_0x37bd0b;},_0x203950[_0x5a99b4(0x1d6)]=function(_0x591df2,_0x4e3b9d){return _0x591df2>_0x4e3b9d;};const _0x4cbd59=_0x203950;let _0x26472b=_0x3ed8d2[_0x5a99b4(0x1dd)](_0x5832f2=>_0x5832f2===_0x5a99b4(0x1ed));_0x4cbd59[_0x5a99b4(0x20d)](_0x26472b,-0x1)&&_0x3ed8d2[_0x5a99b4(0x1e3)](_0x26472b,0x2),_0x26472b=_0x3ed8d2[_0x5a99b4(0x1dd)](_0x450010=>_0x450010==='-e'),_0x4cbd59[_0x5a99b4(0x1d6)](_0x26472b,-0x1)&&_0x3ed8d2[_0x5a99b4(0x1e3)](_0x26472b,0x2);};function a33_0x421b(){const _0x4dd90f=['nightwatch.json','join','nightwatch.cmd','20idtXGb','8gzPNum','env','jtADE','platforms','198245FLEAhU','yrzSf','kOYCx','../../helpers/helper','hub.browserstack.com','HAIWA','config','237082djfbTM','../../helpers/logger','modifyBrowserStackCaps','info','port','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','17910Kjzkbv','filter','Zldff','tJQOE','nmqJa','sckAa','push','stringify','--config','BNXXe','869HvrxBi','Deleting\x20','path','length','getPlatformName','weYCH','MAwdV','useW3C','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','TPvvs','1240614mJAOik','platform','../../helpers/BrowserStackSetup','winstonLogger','2802457QaCDhr','vRDvR','twSDU','existsSync','trim','iAnwM','host','exports','cwd','findIndex','573309xnApKq','map','nightwatch','modifyBrowserStackW3CCaps','7770663vUKsty','splice','close','inherit','test_settings','test','forEach','MwoRI','GJcdC','mergeDeep','nightwatch-browserstack.json','--env','now','writeFileSync','3dLRXac','ULXEy','uJVBt'];a33_0x421b=function(){return _0x4dd90f;};return a33_0x421b();}function run(_0x366ed2,_0x7721dd){const _0x3aad06=a33_0x17f754,_0x1db10e={'weYCH':_0x3aad06(0x1e0),'TPvvs':function(_0x3c0a9f,_0x3a14fc){return _0x3c0a9f+_0x3a14fc;},'yrzSf':'test_settings','LvsLF':function(_0x5a4c40,_0x3a5530,_0x4a6e4b){return _0x5a4c40(_0x3a5530,_0x4a6e4b);},'DkqLa':_0x3aad06(0x1ff),'BNXXe':_0x3aad06(0x207),'uJVBt':function(_0x5d403e,_0x5ad3b5){return _0x5d403e===_0x5ad3b5;},'LbcSf':_0x3aad06(0x1ec),'iAnwM':function(_0x15226a,_0x4bf94d){return _0x15226a(_0x4bf94d);},'kOYCx':function(_0x247227,_0x242be2,_0x36a178,_0xf63729){return _0x247227(_0x242be2,_0x36a178,_0xf63729);},'ULXEy':_0x3aad06(0x1f5),'jtADE':'--config','MwoRI':_0x3aad06(0x1ed),'KxdSz':_0x3aad06(0x1e5),'nmqJa':_0x3aad06(0x1e4)},_0x27bf31=new BrowserStackSetup(_0x366ed2);if(!_0x27bf31[_0x3aad06(0x201)])return;const _0x3cf791=_0x1db10e['LvsLF'](getUserNightwatchConfigs,_0x366ed2,_0x7721dd),_0xd0b1fc={};_0xd0b1fc['start_process']=![];const _0x1cfbc8={};_0x1cfbc8[_0x3aad06(0x1da)]=_0x1db10e['DkqLa'],_0x1cfbc8[_0x3aad06(0x206)]=0x1bb;const _0xdba850={};_0xdba850['webdriver']=_0xd0b1fc,_0xdba850['selenium']=_0x1cfbc8;const _0x311013=_0xdba850;logger[_0x3aad06(0x205)](_0x1db10e[_0x3aad06(0x211)]);const _0x2f64f7={..._0x3cf791},_0x1c9e2c=_0x2f64f7,_0x18446e=helper[_0x3aad06(0x1cd)](_0x27bf31['config']),_0x5f1edb=[];_0x27bf31[_0x3aad06(0x201)][_0x3aad06(0x1fa)]['forEach']((_0x521a43,_0x55b346)=>{const _0x5a74a9=_0x3aad06;_0x18446e?_0x5f1edb[_0x5a74a9(0x20e)](helper[_0x5a74a9(0x1e1)](_0x27bf31[_0x5a74a9(0x201)],_0x1db10e['weYCH'],_0x55b346)):_0x5f1edb[_0x5a74a9(0x20e)](helper[_0x5a74a9(0x204)](_0x27bf31['config'],_0x1db10e[_0x5a74a9(0x1cb)],_0x55b346));});const _0x364499={},_0x2b3c0e=[];_0x366ed2[_0x3aad06(0x1f8)]=_0x366ed2[_0x3aad06(0x1f8)]||_0x366ed2['e'];const _0x5e0fea=_0x366ed2['env']?_0x366ed2['env']['trim']()['split'](',')[_0x3aad06(0x1df)](_0x1770eb=>_0x1770eb[_0x3aad06(0x1d8)]())[_0x3aad06(0x209)](_0xe3db0a=>_0xe3db0a!==''):[''];_0x1db10e[_0x3aad06(0x1f2)](_0x5e0fea[_0x3aad06(0x1c9)],0x0)&&_0x5e0fea[_0x3aad06(0x20e)]('');_0x5e0fea[_0x3aad06(0x1e8)](_0x11ba75=>{const _0xe12637=_0x3aad06,_0x4a06da={'Zldff':function(_0x5fb9c6,_0x2c2b9c){const _0x2172a2=a33_0x23f3;return _0x1db10e[_0x2172a2(0x1cf)](_0x5fb9c6,_0x2c2b9c);},'MAwdV':_0x1db10e[_0xe12637(0x1fc)]};_0x5f1edb['forEach'](_0x4200bd=>{const _0x5ea697=_0xe12637;let _0x5155d2=_0x4a06da[_0x5ea697(0x20a)](helper[_0x5ea697(0x1ca)](_0x4200bd,'_'),'_'+Date[_0x5ea697(0x1ee)]());_0x11ba75&&(_0x5155d2+='_'+_0x11ba75);if(_0x11ba75&&(!_0x3cf791[_0x4a06da['MAwdV']]||!_0x3cf791[_0x4a06da[_0x5ea697(0x1cc)]][_0x11ba75]))return;const _0x3d2fc2={..._0x311013};_0x3d2fc2['desiredCapabilities']=_0x4200bd;const _0x1f4a5c=_0x3d2fc2;_0x364499[_0x5155d2]=_0x11ba75?helper[_0x5ea697(0x1eb)](_0x3cf791[_0x4a06da[_0x5ea697(0x1cc)]][_0x11ba75],_0x1f4a5c):_0x1f4a5c,_0x2b3c0e[_0x5ea697(0x20e)](_0x5155d2);});});!_0x1c9e2c['test_settings']&&(_0x1c9e2c[_0x3aad06(0x1e6)]={});_0x1c9e2c[_0x3aad06(0x1e6)]={..._0x1c9e2c[_0x3aad06(0x1e6)],..._0x364499};const _0xa93104=path[_0x3aad06(0x1f4)](__dirname,_0x1db10e['LbcSf']);fs[_0x3aad06(0x1ef)](_0xa93104,JSON[_0x3aad06(0x20f)](_0x1c9e2c)),_0x1db10e[_0x3aad06(0x1d9)](removeExistingEnvs,_0x7721dd);const _0x528446=_0x1db10e[_0x3aad06(0x1fd)](spawn,/^win/[_0x3aad06(0x1e7)](process[_0x3aad06(0x1d1)])?_0x1db10e[_0x3aad06(0x1f1)]:_0x1db10e['weYCH'],[_0x1db10e[_0x3aad06(0x1f9)],_0xa93104,..._0x7721dd['slice'](0x1),_0x1db10e[_0x3aad06(0x1e9)],_0x2b3c0e['join'](',')],{'stdio':_0x1db10e['KxdSz']});_0x528446['on'](_0x1db10e[_0x3aad06(0x20c)],async _0x457bbc=>{const _0x428319=_0x3aad06;logger['debug']('child\x20process\x20exited\x20with\x20code\x20'+_0x457bbc),logger[_0x428319(0x205)](_0x428319(0x1c7)+_0xa93104),fs['unlinkSync'](_0xa93104);});}module[a33_0x17f754(0x1db)]=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
|
+
function a34_0x3d8a(_0x9d3c49,_0x29ea80){const _0x358dab=a34_0x358d();return a34_0x3d8a=function(_0x3d8a1c,_0x580f4e){_0x3d8a1c=_0x3d8a1c-0x100;let _0x50ba99=_0x358dab[_0x3d8a1c];return _0x50ba99;},a34_0x3d8a(_0x9d3c49,_0x29ea80);}const a34_0x3bc1cb=a34_0x3d8a;(function(_0x510606,_0x25da71){const _0xe0f232=a34_0x3d8a,_0x3104c0=_0x510606();while(!![]){try{const _0x2835d6=parseInt(_0xe0f232(0x12f))/0x1+parseInt(_0xe0f232(0x15c))/0x2+-parseInt(_0xe0f232(0x10f))/0x3*(-parseInt(_0xe0f232(0x10a))/0x4)+-parseInt(_0xe0f232(0x133))/0x5+parseInt(_0xe0f232(0x161))/0x6*(parseInt(_0xe0f232(0x121))/0x7)+parseInt(_0xe0f232(0x12e))/0x8*(parseInt(_0xe0f232(0x160))/0x9)+-parseInt(_0xe0f232(0x149))/0xa;if(_0x2835d6===_0x25da71)break;else _0x3104c0['push'](_0x3104c0['shift']());}catch(_0x1786df){_0x3104c0['push'](_0x3104c0['shift']());}}}(a34_0x358d,0x1af01));const util=require(a34_0x3bc1cb(0x15d)),logger=require('../../helpers/logger')[a34_0x3bc1cb(0x102)],{isAccessibilityAutomationSession}=require(a34_0x3bc1cb(0x159)),{isUndefined}=require(a34_0x3bc1cb(0x12a)),scripts=require(a34_0x3bc1cb(0x14b));function a34_0x358d(){const _0x36c76e=['No\x20accessibility\x20results\x20were\x20found.','VhgDn','(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','env','../../helpers/helper','stringify','project','format','731688BbKAAV','165318KnyCvz','YJOJI','fetyO','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','1102010JRBmPF','latest','mnBCQ','setAccessibilityCapabilities','accessibilityOptions.scannerProcessingTimeout','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','bestPractice','bTrza','evaluate','browserStackEvaluate','method','getAccessibilityResults','scannerProcessingTimeout','chrome','constructor','currentTest','Playwright','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','No\x20summaryResults\x20found.','clSCC','error','guIqE','3649540rYgGOf','ezizj','../../helpers/accessibility-automation/scripts','includeIssueType','bstackSdkArgs','FYwiw','accessibilityOptions','browserStackExecuteDriver','OQuKO','browser_version','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','testInfo','bEaRk','tTHpQ','performScan','kYyKg','../../helpers/accessibility-automation/helper','rXpuW','accessibilityPlatform','64020KPboBB','util','bNnbV','browserName','18Hmgaex','894gaDDcx','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Rnlgy','debug','playwright-chromium','workerInfo','warn','winstonLogger','needsReview','use','deviceName','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','accessibilityOptions.wcagVersion','EINjT','gOnXd','920AQxaAO','kcYvx','aIhUo','processAccessibilityCaps','name','1827fukFYM','fUMRJ','browser','browserstack.accessibility','WebDriver','RAKVH','nTUBH','connectOptions','executeScript','executeAsyncScript','TNOnr','Vhpcd','fwbqZ','CBbYI','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','wcagVersion','hoZPL','BS_A11Y_JWT','8239FIfuZR','(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','oNwHh','HzjQR','UXGUG'];a34_0x358d=function(){return _0x36c76e;};return a34_0x358d();}exports[a34_0x3bc1cb(0x13c)]=async(_0x4b5ecb,_0x47b2fb,_0x25cd19={})=>{const _0x349e1c=a34_0x3bc1cb,_0x54f8ae={};_0x54f8ae[_0x349e1c(0x130)]='bstackSdkArgs';const _0x2b668a=_0x54f8ae;return await _0x4b5ecb[_0x349e1c(0x13b)](_0x349e1c(0x122)+_0x47b2fb['replace'](/arguments/g,_0x2b668a['YJOJI'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x349e1c(0x12b)](_0x25cd19)+')');},exports[a34_0x3bc1cb(0x150)]=async(_0x230dd3,_0x56815a,_0x1d4df3={})=>{const _0x2b501d=a34_0x3bc1cb,_0x2d9e18={};_0x2d9e18[_0x2b501d(0x155)]=function(_0x4460ad,_0x5bc268){return _0x4460ad===_0x5bc268;},_0x2d9e18[_0x2b501d(0x131)]=_0x2b501d(0x113),_0x2d9e18['cKDoL']=function(_0x1e558e,_0x3f967e){return _0x1e558e===_0x3f967e;},_0x2d9e18['VhgDn']=_0x2b501d(0x143),_0x2d9e18[_0x2b501d(0x11c)]=_0x2b501d(0x14d);const _0xd734d4=_0x2d9e18;if(_0xd734d4[_0x2b501d(0x155)](_0x230dd3[_0x2b501d(0x141)][_0x2b501d(0x10e)],_0xd734d4[_0x2b501d(0x131)]))return await _0x230dd3[_0x2b501d(0x118)](_0x56815a,_0x1d4df3);else{if(_0xd734d4['cKDoL'](_0x230dd3[_0x2b501d(0x141)]['name'],_0xd734d4[_0x2b501d(0x127)]))return await _0x230dd3[_0x2b501d(0x117)](_0x2b501d(0x128)+_0x56815a['replace'](/arguments/g,_0xd734d4[_0x2b501d(0x11c)])+_0x2b501d(0x106)+JSON['stringify'](_0x1d4df3)+')');}},exports[a34_0x3bc1cb(0x136)]=async _0x4e2bc3=>{const _0x158e6e=a34_0x3bc1cb,_0x5b24f3={};_0x5b24f3[_0x158e6e(0x163)]=_0x158e6e(0x107),_0x5b24f3[_0x158e6e(0x156)]=_0x158e6e(0x137),_0x5b24f3[_0x158e6e(0x125)]='accessibilityOptions.includeIssueType.bestPractice',_0x5b24f3[_0x158e6e(0x14a)]='accessibilityOptions.includeIssueType.needsReview',_0x5b24f3['TNOnr']='accessibilityOptions.authToken',_0x5b24f3['APyeS']='accessibilityOptions.scannerVersion';const _0x58b05f=_0x5b24f3;_0x4e2bc3['accessibilityOptions']&&(_0x4e2bc3[_0x158e6e(0x14f)][_0x158e6e(0x11e)]&&(_0x4e2bc3[_0x58b05f[_0x158e6e(0x163)]]=_0x4e2bc3[_0x158e6e(0x14f)][_0x158e6e(0x11e)]),_0x4e2bc3['accessibilityOptions'][_0x158e6e(0x13f)]&&(_0x4e2bc3[_0x58b05f[_0x158e6e(0x156)]]=_0x4e2bc3[_0x158e6e(0x14f)][_0x158e6e(0x13f)]),_0x4e2bc3[_0x158e6e(0x14f)][_0x158e6e(0x14c)]&&(_0x4e2bc3[_0x58b05f[_0x158e6e(0x125)]]=_0x4e2bc3['accessibilityOptions'][_0x158e6e(0x14c)][_0x158e6e(0x139)],_0x4e2bc3[_0x58b05f[_0x158e6e(0x14a)]]=_0x4e2bc3[_0x158e6e(0x14f)]['includeIssueType'][_0x158e6e(0x103)]));const _0x218e8a=JSON['parse'](process[_0x158e6e(0x129)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])['scannerVersion'];_0x4e2bc3[_0x58b05f[_0x158e6e(0x119)]]=process[_0x158e6e(0x129)][_0x158e6e(0x120)],_0x4e2bc3[_0x58b05f['APyeS']]=_0x218e8a,delete _0x4e2bc3[_0x158e6e(0x14f)];},exports[a34_0x3bc1cb(0x13e)]=async _0x194ca8=>{const _0x4d1fa2=a34_0x3bc1cb,_0xd73de7={};_0xd73de7[_0x4d1fa2(0x148)]=_0x4d1fa2(0x126),_0xd73de7[_0x4d1fa2(0x11a)]=_0x4d1fa2(0x11d);const _0x53807b=_0xd73de7;if(global[_0x4d1fa2(0x15b)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x194ca8,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x194ca8,scripts.getResults);return res;}catch{return logger[_0x4d1fa2(0x147)](_0x53807b[_0x4d1fa2(0x148)]),[];}else return logger[_0x4d1fa2(0x101)](_0x53807b[_0x4d1fa2(0x11a)]),[];},exports[a34_0x3bc1cb(0x157)]=async(_0x5a9a99,_0x1a53a6='')=>{const _0x2e9363=a34_0x3bc1cb;if(global['accessibilityPlatform']){const _0x37d5c7={};return _0x37d5c7[_0x2e9363(0x13d)]=_0x1a53a6,await exports['browserStackEvaluate'](_0x5a9a99,scripts[_0x2e9363(0x157)],_0x37d5c7);}},exports['getAccessibilityResultsSummary']=async _0x3f2cf0=>{const _0x3a4d8d=a34_0x3bc1cb,_0x131007={};_0x131007[_0x3a4d8d(0x13a)]=_0x3a4d8d(0x145),_0x131007['fhXMx']='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x594284=_0x131007;if(global[_0x3a4d8d(0x15b)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3f2cf0,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x3f2cf0,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x3a4d8d(0x164)](_0x594284['bTrza']),{};}else return logger[_0x3a4d8d(0x101)](_0x594284['fhXMx']),{};},exports['platformValidation']=async _0x65d6b3=>{const _0x164546=a34_0x3bc1cb,_0x59cf3a={'EINjT':function(_0x293cea,_0x34ec02){return _0x293cea!==_0x34ec02;},'nWodc':_0x164546(0x138),'TwATz':function(_0x15e676,_0x254406){return _0x15e676===_0x254406;},'hoZPL':_0x164546(0x140),'clSCC':function(_0x137dd0,_0x5683c5){return _0x137dd0===_0x5683c5;},'oNwHh':_0x164546(0x165),'kYyKg':_0x164546(0x132),'gOnXd':function(_0x3b992b,_0x37261b){return _0x3b992b(_0x37261b);},'OQuKO':function(_0x568256,_0xb684a1){return _0x568256===_0xb684a1;},'mnBCQ':_0x164546(0x134),'xntKn':function(_0x5cd4b9,_0x491356){return _0x5cd4b9>_0x491356;},'kcYvx':_0x164546(0x162)};try{if(!_0x59cf3a[_0x164546(0x108)](_0x65d6b3[_0x164546(0x105)],''))return logger[_0x164546(0x101)](_0x59cf3a['nWodc']),![];const _0x47d909=_0x65d6b3[_0x164546(0x111)];if(!(_0x59cf3a['TwATz'](_0x47d909,_0x59cf3a[_0x164546(0x11f)])||_0x59cf3a[_0x164546(0x146)](_0x47d909,_0x59cf3a[_0x164546(0x123)])))return logger[_0x164546(0x101)](_0x59cf3a[_0x164546(0x158)]),![];const _0x2b748b=_0x59cf3a[_0x164546(0x109)](parseInt,_0x65d6b3[_0x164546(0x152)]);if(!(_0x59cf3a[_0x164546(0x151)](_0x2b748b,_0x59cf3a[_0x164546(0x135)])||_0x59cf3a['xntKn'](_0x2b748b,0x5e)))return logger[_0x164546(0x101)](_0x59cf3a[_0x164546(0x10b)]),![];}catch(_0x24c960){logger[_0x164546(0x164)](_0x164546(0x144)+util[_0x164546(0x12d)](_0x24c960));}return!![];},exports[a34_0x3bc1cb(0x10d)]=(_0x45ae60,_0x343270,_0x19a0c8)=>{const _0xba2bf3=a34_0x3bc1cb,_0x1fc666={'aIhUo':function(_0xcbb0c7){return _0xcbb0c7();},'fwbqZ':_0xba2bf3(0x112),'HzjQR':function(_0x578c53,_0x4b2053){return _0x578c53===_0x4b2053;},'KsZFr':'chrome','fUMRJ':_0xba2bf3(0x165),'aTZqP':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','bNnbV':'latest','FYwiw':function(_0x2d3dcc,_0x250b72){return _0x2d3dcc>_0x250b72;},'nTUBH':_0xba2bf3(0x162),'RAKVH':function(_0x3c9912,_0x29e020){return _0x3c9912(_0x29e020);},'srtJa':_0xba2bf3(0x138),'rXpuW':function(_0x5d6df5,_0x209b67){return _0x5d6df5+_0x209b67;},'GzMwr':function(_0x4c692e,_0x5063f9){return _0x4c692e(_0x5063f9);}};try{if(_0x1fc666[_0xba2bf3(0x10c)](isAccessibilityAutomationSession)){global[_0xba2bf3(0x15b)]=!![];!_0x45ae60[_0x1fc666[_0xba2bf3(0x11b)]]&&(global[_0xba2bf3(0x15b)]=![]);!(_0x1fc666[_0xba2bf3(0x124)](_0x45ae60[_0xba2bf3(0x15f)],_0x1fc666['KsZFr'])||_0x1fc666[_0xba2bf3(0x124)](_0x45ae60[_0xba2bf3(0x15f)],_0x1fc666[_0xba2bf3(0x110)]))&&(logger[_0xba2bf3(0x101)](_0x1fc666['aTZqP']),global[_0xba2bf3(0x15b)]=![]);!(_0x1fc666['HzjQR'](_0x45ae60[_0xba2bf3(0x152)],_0x1fc666[_0xba2bf3(0x15e)])||_0x1fc666[_0xba2bf3(0x14e)](_0x45ae60[_0xba2bf3(0x152)],0x5e))&&(logger['warn'](_0x1fc666[_0xba2bf3(0x115)]),global['accessibilityPlatform']=![]);!_0x1fc666[_0xba2bf3(0x114)](isUndefined,_0x45ae60['deviceName'])&&(logger[_0xba2bf3(0x101)](_0x1fc666['srtJa']),global['accessibilityPlatform']=![]);if(!global[_0xba2bf3(0x15b)]){_0x45ae60[_0x1fc666[_0xba2bf3(0x11b)]]=![];const _0x1e1ba0=_0x1fc666[_0xba2bf3(0x15a)](_0x343270,_0x1fc666['GzMwr'](encodeURIComponent,JSON['stringify'](_0x45ae60)));_0x19a0c8&&(_0x19a0c8[_0xba2bf3(0x142)][_0xba2bf3(0x154)][_0xba2bf3(0x12c)][_0xba2bf3(0x104)][_0xba2bf3(0x116)]['wsEndpoint']=_0x1e1ba0,_0x19a0c8[_0xba2bf3(0x100)][_0xba2bf3(0x12c)]['use']['connectOptions']['wsEndpoint']=_0x1e1ba0);}}}catch(_0x30bd9c){logger[_0xba2bf3(0x164)](_0xba2bf3(0x153)+util[_0xba2bf3(0x12d)](_0x30bd9c));}};
|
|
@@ -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';const a35_0x112c4f=a35_0x3fc4;(function(_0x22ce29,_0x58ebe2){const _0x2acd7d=a35_0x3fc4,_0x5b4aea=_0x22ce29();while(!![]){try{const _0x4015d8=-parseInt(_0x2acd7d(0xee))/0x1*(-parseInt(_0x2acd7d(0xc0))/0x2)+-parseInt(_0x2acd7d(0xfe))/0x3*(parseInt(_0x2acd7d(0xa5))/0x4)+parseInt(_0x2acd7d(0xe1))/0x5+-parseInt(_0x2acd7d(0xdd))/0x6+parseInt(_0x2acd7d(0xd9))/0x7+-parseInt(_0x2acd7d(0x85))/0x8*(-parseInt(_0x2acd7d(0xd6))/0x9)+parseInt(_0x2acd7d(0x97))/0xa*(parseInt(_0x2acd7d(0xc8))/0xb);if(_0x4015d8===_0x58ebe2)break;else _0x5b4aea['push'](_0x5b4aea['shift']());}catch(_0x17b2fe){_0x5b4aea['push'](_0x5b4aea['shift']());}}}(a35_0x241a,0x5a66f));function a35_0x3fc4(_0x169c69,_0x5beda7){const _0x241a89=a35_0x241a();return a35_0x3fc4=function(_0x3fc46b,_0x5c1da1){_0x3fc46b=_0x3fc46b-0x6e;let _0x2dd86e=_0x241a89[_0x3fc46b];return _0x2dd86e;},a35_0x3fc4(_0x169c69,_0x5beda7);}const fs=require('fs'),path=require(a35_0x112c4f(0x78)),{spawn}=require(a35_0x112c4f(0xb7)),{format}=require(a35_0x112c4f(0x96)),logger=require(a35_0x112c4f(0xbb))['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x112c4f(0x8f)),helper=require('../../helpers/helper'),utilities=require(a35_0x112c4f(0xf0)),constants=require('../utils/constants'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require(a35_0x112c4f(0xa4)),{getFrameworkVersion}=require(a35_0x112c4f(0x10a)),{checkAccessibilityPlatformConfig}=require(a35_0x112c4f(0x8b)),{setAccessibilityCapabilities}=require(a35_0x112c4f(0x7e)),TestHubHandler=require(a35_0x112c4f(0x10c)),{shouldProcessEventForTesthub}=require(a35_0x112c4f(0x77)),getUserPlaywrightConfig=async(_0xdc3540,_0x4a4a68)=>{const _0x1d3bbd=a35_0x112c4f,_0x332cbc={'mRFjN':function(_0x2871f8){return _0x2871f8();},'tPvIf':function(_0x4f290f,_0x2de312){return _0x4f290f(_0x2de312);},'HOQAp':_0x1d3bbd(0xcc),'Jlfoi':_0x1d3bbd(0xaa)},_0x4418f7=!helper[_0x1d3bbd(0x100)](_0xdc3540[_0x1d3bbd(0x99)]),_0x5d4083=_0x4418f7?path['resolve'](process[_0x1d3bbd(0xb8)](),_0xdc3540['config']):process['cwd'](),{resolveConfigFile:_0x283e89,resolveConfigLocation:_0x3c3c00}=helper[_0x1d3bbd(0xe9)][_0x1d3bbd(0xf2)](null,_0x332cbc[_0x1d3bbd(0xa6)](getConfigLoaderPath)),_0x2a2be1=_0x283e89?_0x332cbc['tPvIf'](_0x283e89,_0x5d4083):helper['nestedKeyValue'](_0x332cbc[_0x1d3bbd(0x73)](_0x3c3c00,_0x5d4083),[_0x332cbc['HOQAp']]),_0x27caf6={};if(_0x4418f7){const _0x444eb7=_0x4a4a68[_0x1d3bbd(0xac)](_0xa06244=>_0xa06244===_0x1d3bbd(0x86)||_0xa06244==='-c'||_0xa06244[_0x1d3bbd(0x103)](_0x1d3bbd(0xaa)));_0x4a4a68[_0x1d3bbd(0xf1)](_0x444eb7,_0x4a4a68[_0x444eb7][_0x1d3bbd(0x103)](_0x332cbc['Jlfoi'])?0x1:0x2);}const _0x359319={};return _0x359319['path']=_0x2a2be1,_0x359319[_0x1d3bbd(0x99)]=_0x27caf6,_0x359319;},handleO11yRerun=_0x4ed141=>{const _0x2136c3=a35_0x112c4f,_0x5c6cb4={};_0x5c6cb4['CFXBW']=function(_0x222305,_0x42069e){return _0x222305!==_0x42069e;},_0x5c6cb4['yNQxE']=_0x2136c3(0x10b),_0x5c6cb4[_0x2136c3(0xfa)]=_0x2136c3(0x71);const _0x360364=_0x5c6cb4,_0x10f186=helper[_0x2136c3(0x6f)](process[_0x2136c3(0x80)][_0x2136c3(0xc1)]);if(_0x10f186){const _0x37e4d8=process[_0x2136c3(0x80)][_0x2136c3(0xda)],_0x4d4076=[];if(_0x360364[_0x2136c3(0xa8)](_0x37e4d8,_0x360364[_0x2136c3(0x94)])&&!helper[_0x2136c3(0x100)](_0x37e4d8)){_0x37e4d8[_0x2136c3(0xff)](',')[_0x2136c3(0xe0)](_0x28f7ca=>{const _0x474784=_0x2136c3;_0x4d4076[_0x474784(0xe6)]('('+_0x28f7ca[_0x474784(0x92)]()+')');});const _0x5d30d3='^'+_0x4d4076['join']('|')+'$';_0x4ed141['push'](_0x360364[_0x2136c3(0xfa)],_0x5d30d3);}}},spawnOriginalProcess=_0x51abac=>{const _0x48507d=a35_0x112c4f,_0x481ec8={'UBudH':function(_0x199850,_0x25c24a,_0x2e3dd9,_0x483611){return _0x199850(_0x25c24a,_0x2e3dd9,_0x483611);},'aElmh':_0x48507d(0xdb),'hESJJ':_0x48507d(0xca),'YijFf':function(_0x282662,_0x98af43){return _0x282662===_0x98af43;},'NPLjD':'win32','rnaEr':_0x48507d(0x9d)};_0x481ec8[_0x48507d(0xa3)](spawn,_0x481ec8[_0x48507d(0x101)],[_0x481ec8[_0x48507d(0xa9)],..._0x51abac[_0x48507d(0xae)](0x1)],{'shell':_0x481ec8['YijFf'](process[_0x48507d(0xb1)],_0x481ec8[_0x48507d(0xe3)]),'stdio':_0x481ec8[_0x48507d(0xef)],'cwd':process[_0x48507d(0xb8)]()});},isTestCommand=(_0x499367,_0x5a071b)=>{const _0x38909d=a35_0x112c4f,_0x500fdc={};_0x500fdc[_0x38909d(0x109)]=function(_0xb2fec3,_0xc7a5fe){return _0xb2fec3>_0xc7a5fe;},_0x500fdc[_0x38909d(0x95)]=function(_0x39a423,_0x101498){return _0x39a423===_0x101498;},_0x500fdc[_0x38909d(0xf3)]=_0x38909d(0x7a);const _0x3b24d0=_0x500fdc;if(_0x3b24d0[_0x38909d(0x109)](_0x5a071b['length'],0x1)&&_0x3b24d0[_0x38909d(0x95)](_0x5a071b[0x1],_0x3b24d0[_0x38909d(0xf3)]))return!![];return![];};async function run(_0x5bfe9c,_0xb4ff44){const _0x5dd3f1=a35_0x112c4f,_0x26b128={'LAULT':_0x5dd3f1(0xa2),'yBRvl':_0x5dd3f1(0xbf),'lIenC':function(_0x3e29b6,_0x3c4d9e){return _0x3e29b6+_0x3c4d9e;},'zwTmP':_0x5dd3f1(0xf6),'MKzyh':_0x5dd3f1(0xcb),'MDQZn':function(_0x36eefe){return _0x36eefe();},'vYqDK':_0x5dd3f1(0xbe),'QCIkm':_0x5dd3f1(0xc9),'XKSeo':_0x5dd3f1(0xeb),'TNNJG':_0x5dd3f1(0x9e),'eADDd':function(_0x41f524,_0x4db8ec){return _0x41f524>=_0x4db8ec;},'XGQJb':_0x5dd3f1(0xbd),'KOMFp':function(_0x16a0b4,_0xbb1f38,_0x3a1eb5){return _0x16a0b4(_0xbb1f38,_0x3a1eb5);},'kRrFX':function(_0x395508,_0x2733f5){return _0x395508(_0x2733f5);},'weGPB':_0x5dd3f1(0xb4),'ANiQq':_0x5dd3f1(0x10d),'LHWQG':function(_0x3c5b70,_0x24d9e3){return _0x3c5b70!=_0x24d9e3;},'IYPwR':function(_0xe02aec,_0x199a51){return _0xe02aec(_0x199a51);},'gbhjQ':function(_0x4b605c,_0x1c08ae){return _0x4b605c===_0x1c08ae;},'AdthX':_0x5dd3f1(0xad),'ibFPd':function(_0x534f01,_0x1b5cd3){return _0x534f01(_0x1b5cd3);},'yjgzg':_0x5dd3f1(0xab),'dEeXk':function(_0x278b06,_0x500ed4){return _0x278b06===_0x500ed4;},'QWyjS':_0x5dd3f1(0xc6),'eDekl':_0x5dd3f1(0xf7),'qiLts':function(_0x3746e0,_0x89a822){return _0x3746e0-_0x89a822;},'dRUJZ':'Updated\x20config\x20file\x20name\x20to\x20-\x20','KEaNw':function(_0xb611dd,_0x3e445f){return _0xb611dd>_0x3e445f;},'izLNl':function(_0x34ab7f,_0x327550,_0x368d70,_0x282de7){return _0x34ab7f(_0x327550,_0x368d70,_0x282de7);},'fYzhT':_0x5dd3f1(0xdb),'omkaF':_0x5dd3f1(0xca),'PYcGC':_0x5dd3f1(0x7a),'QsCim':_0x5dd3f1(0x86),'SroVm':'win32','NtJet':_0x5dd3f1(0x9d),'oEDJL':'close'};!helper['isFalse'](process[_0x5dd3f1(0x80)][_0x5dd3f1(0x74)])&&(process[_0x5dd3f1(0x80)][_0x5dd3f1(0x74)]=!![]);process[_0x5dd3f1(0xe8)]['includes'](_0x26b128[_0x5dd3f1(0xb2)])&&(process[_0x5dd3f1(0x80)]['BROWSERSTACK_AUTOMATION']=_0x26b128['XKSeo'],_0xb4ff44=_0xb4ff44[_0x5dd3f1(0xf9)](_0x5997c9=>_0x5997c9!==_0x5dd3f1(0xc9)));const _0x2394b9=_0xb4ff44[_0x5dd3f1(0xaf)](_0x26b128['TNNJG']);_0x26b128[_0x5dd3f1(0x8c)](_0x2394b9,0x0)&&(process['env'][_0x5dd3f1(0x9c)]=_0x26b128[_0x5dd3f1(0xb0)],_0xb4ff44=_0xb4ff44['filter'](_0x127d82=>_0x127d82!==_0x5dd3f1(0x9e)));try{const _0x3cce3a=path[_0x5dd3f1(0xd3)](helper['homedir'](),_0x26b128['LAULT'],_0x26b128[_0x5dd3f1(0x98)]);fs['existsSync'](_0x3cce3a)&&fs[_0x5dd3f1(0xc5)](_0x3cce3a);}catch(_0x2735c3){logger['debug'](_0x26b128[_0x5dd3f1(0xec)](_0x26b128['XGQJb'],_0x2735c3));}if(!_0x26b128[_0x5dd3f1(0xb9)](isTestCommand,_0x5bfe9c,_0xb4ff44)){_0x26b128['kRrFX'](spawnOriginalProcess,_0xb4ff44);return;}const _0x55274c=new BrowserStackSetup(_0x5bfe9c,FRAMEWORKS[_0x5dd3f1(0x9f)]);if(!_0x55274c['config']){logger['error'](_0x26b128[_0x5dd3f1(0x83)]);return;}await _0x55274c[_0x5dd3f1(0xd2)]();!helper['isUndefined'](_0x55274c[_0x5dd3f1(0xd4)])&&_0x55274c[_0x5dd3f1(0xd4)][_0x5dd3f1(0xa1)](_0x26b128['ANiQq'])&&(process[_0x5dd3f1(0x80)][_0x5dd3f1(0x74)]=_0x55274c['cliConfig'][_0x5dd3f1(0x107)](_0x26b128[_0x5dd3f1(0xc4)])||!![]);_0x26b128[_0x5dd3f1(0x108)](_0x55274c['config'][_0x5dd3f1(0xe7)],null)&&!helper[_0x5dd3f1(0x6f)](process['env'][_0x5dd3f1(0x9c)])&&(process[_0x5dd3f1(0x80)][_0x5dd3f1(0x9c)]=process[_0x5dd3f1(0x80)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x55274c['config'][_0x5dd3f1(0xe7)]);const _0xd30f05=!helper['isFalse'](process[_0x5dd3f1(0x80)][_0x5dd3f1(0x9c)]);let _0x3f29e0=![];_0x55274c['config'][_0x5dd3f1(0x8e)]&&(_0x3f29e0=!![],process[_0x5dd3f1(0x80)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x55274c['config'][_0x5dd3f1(0x8e)]);_0x55274c[_0x5dd3f1(0x99)][_0x5dd3f1(0x89)]&&(process[_0x5dd3f1(0x80)][_0x5dd3f1(0x6e)]=JSON[_0x5dd3f1(0x76)](_0x55274c['config'][_0x5dd3f1(0x89)]));const _0x507609=_0xb4ff44['concat'](),_0x49f611=await _0x26b128[_0x5dd3f1(0xb9)](getUserPlaywrightConfig,_0x5bfe9c,_0xb4ff44);if(helper[_0x5dd3f1(0x100)](_0x49f611)){_0x26b128[_0x5dd3f1(0xd1)](spawnOriginalProcess,_0x507609);return;}const _0x3689c4=_0x49f611[_0x5dd3f1(0x78)]?path[_0x5dd3f1(0x104)](_0x49f611[_0x5dd3f1(0x78)]):process[_0x5dd3f1(0xb8)]();process[_0x5dd3f1(0x80)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x3689c4,await TestHubHandler[_0x5dd3f1(0xed)](FRAMEWORKS['PLAYWRIGHT'],_0x55274c);_0xd30f05&&_0x26b128[_0x5dd3f1(0xd1)](handleO11yRerun,_0xb4ff44);let _0x475284=_0x26b128[_0x5dd3f1(0x72)](process[_0x5dd3f1(0x80)][_0x5dd3f1(0xc7)],_0x26b128[_0x5dd3f1(0xea)]);_0x475284=_0x475284||_0x26b128['ibFPd'](checkAccessibilityPlatformConfig,_0x55274c[_0x5dd3f1(0x99)]),process[_0x5dd3f1(0x80)][_0x5dd3f1(0xc7)]=_0x475284;_0x475284&&_0x26b128[_0x5dd3f1(0xf5)](setAccessibilityCapabilities,_0x55274c['config']);const _0x22fe05=path[_0x5dd3f1(0xd3)](_0x49f611[_0x5dd3f1(0x78)]?path[_0x5dd3f1(0x104)](_0x49f611['path']):process[_0x5dd3f1(0xb8)](),_0x26b128[_0x5dd3f1(0xdf)]);fs['writeFileSync'](_0x22fe05,helper[_0x5dd3f1(0x9b)](_0x55274c[_0x5dd3f1(0x99)])),process[_0x5dd3f1(0x80)][_0x5dd3f1(0x70)]=_0x22fe05,helper[_0x5dd3f1(0xfd)]();let _0x41ca5e='';_0x26b128[_0x5dd3f1(0x105)](helper['getPackageType'](),constants[_0x5dd3f1(0x75)][_0x5dd3f1(0xbc)])?_0x41ca5e=_0x26b128['QWyjS']:_0x41ca5e=_0x26b128[_0x5dd3f1(0x8d)];let _0x5d5a4f='';if(helper[_0x5dd3f1(0xd7)](_0x49f611[_0x5dd3f1(0x78)])){_0x5d5a4f=_0x5dd3f1(0xfb);const _0x205d88=_0x41ca5e[_0x5dd3f1(0xff)]('.');_0x205d88[_0x26b128[_0x5dd3f1(0xce)](_0x205d88['length'],0x1)]='ts',_0x41ca5e=_0x205d88['join']('.'),logger[_0x5dd3f1(0x106)](_0x26b128[_0x5dd3f1(0xec)](_0x26b128[_0x5dd3f1(0xfc)],_0x41ca5e));}else _0x5d5a4f=_0x5dd3f1(0x82);const _0x2d956b=path[_0x5dd3f1(0xd3)](_0x49f611['path']?path[_0x5dd3f1(0x104)](_0x49f611[_0x5dd3f1(0x78)]):process[_0x5dd3f1(0xb8)](),_0x41ca5e);let _0x588c4b=_0x49f611[_0x5dd3f1(0x78)]?_0x49f611[_0x5dd3f1(0x78)]:'';_0x588c4b=_0x26b128[_0x5dd3f1(0x90)](_0x588c4b[_0x5dd3f1(0x93)],0x0)?path['resolve'](_0x588c4b):'',process[_0x5dd3f1(0x80)][_0x5dd3f1(0x84)]=_0x588c4b;const _0x3a7530=helper[_0x5dd3f1(0xf8)](_0x55274c[_0x5dd3f1(0x99)]);_0x3a7530&&(_0x5d5a4f=_0x26b128[_0x5dd3f1(0xec)](_0x5dd3f1(0xba)+_0x3a7530+_0x5dd3f1(0xe5),_0x5d5a4f));helper[_0x5dd3f1(0x7f)]({},_0xb4ff44),fs[_0x5dd3f1(0x81)](_0x2d956b,_0x5d5a4f),helper[_0x5dd3f1(0xc2)]();const _0xccd853=_0x26b128[_0x5dd3f1(0x7c)](spawn,_0x26b128[_0x5dd3f1(0x9a)],[_0x26b128[_0x5dd3f1(0x87)],_0x26b128['PYcGC'],_0x26b128[_0x5dd3f1(0xb5)],_0x2d956b,..._0xb4ff44[_0x5dd3f1(0xae)](0x2)],{'shell':_0x26b128[_0x5dd3f1(0x72)](process[_0x5dd3f1(0xb1)],_0x26b128[_0x5dd3f1(0x102)]),'stdio':_0x26b128[_0x5dd3f1(0xc3)],'cwd':process[_0x5dd3f1(0xb8)](),'env':Object[_0x5dd3f1(0x79)]({},process[_0x5dd3f1(0x80)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x5dd3f1(0xb3)](_0x5bfe9c),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x55274c['config'][_0x5dd3f1(0x8a)][_0x5dd3f1(0xa0)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x55274c[_0x5dd3f1(0x99)][_0x5dd3f1(0x8a)][_0x5dd3f1(0xa7)],'BROWSERSTACK_LOG_LEVEL':_0x55274c['config']['logLevel']})}),_0x2c352e=()=>{const _0x4a33b9=_0x5dd3f1;try{const _0x482554=path['join'](helper[_0x4a33b9(0x91)](),_0x26b128[_0x4a33b9(0xe2)],_0x26b128['yBRvl']);if(fs[_0x4a33b9(0xf4)](_0x482554)){let _0x4d53f3=fs[_0x4a33b9(0xd8)](_0x482554);_0x4d53f3=JSON[_0x4a33b9(0x7d)](_0x4d53f3),_0x55274c[_0x4a33b9(0x88)]=_0x4d53f3,fs[_0x4a33b9(0xc5)](_0x482554);}}catch(_0x1d0a17){logger[_0x4a33b9(0x106)](_0x26b128[_0x4a33b9(0xec)](_0x26b128[_0x4a33b9(0xcf)],_0x1d0a17));}};_0xccd853['on'](_0x26b128[_0x5dd3f1(0xb6)],async _0x64831e=>{const _0x390249=_0x5dd3f1;try{const _0x4de35e=_0x26b128[_0x390249(0xcd)]['split']('|');let _0x2593d5=0x0;while(!![]){switch(_0x4de35e[_0x2593d5++]){case'0':fs['unlinkSync'](_0x22fe05);continue;case'1':await utilities[_0x390249(0x7b)](_0x55274c);continue;case'2':logger[_0x390249(0xde)](_0x390249(0xd0)+_0x2d956b);continue;case'3':await TestHubHandler[_0x390249(0xe4)]();continue;case'4':logger[_0x390249(0x106)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x64831e);continue;case'5':process[_0x390249(0xdc)]=_0x64831e;continue;case'6':fs[_0x390249(0xc5)](_0x2d956b);continue;case'7':logger[_0x390249(0x106)](_0x390249(0xd0)+_0x22fe05);continue;case'8':_0x26b128[_0x390249(0xd5)](_0x2c352e);continue;}break;}}catch(_0x5f4c3d){logger[_0x390249(0x106)](_0x26b128[_0x390249(0xec)](_0x26b128['vYqDK'],_0x5f4c3d));}});}function a35_0x241a(){const _0x28b915=['dirname','dEeXk','debug','get','LHWQG','mIMJC','../../helpers/test-observability/utils','null','../../helpers/testhub/testhubHandler','automation','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','isTrue','BROWSERSTACK_SETUP_CONFIG_PATH','--grep','gbhjQ','tPvIf','BROWSERSTACK_AUTOMATION','PACKAGE_TYPE','stringify','../../helpers/testhub/utils','path','assign','test','finalExecution','izLNl','parse','./accessibility-helper','filterBrowserstackArgs','env','writeFileSync','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','weGPB','USER_CONFIG_DETAILS_PATH','37096uwtzpl','--config','omkaF','errorMessage','accessibilityOptions','testContextOptions','../../helpers/accessibility-automation/helper','eADDd','eDekl','accessibility','../../helpers/BrowserStackSetup','KEaNw','homedir','trim','length','yNQxE','OHnBx','util','60shYZuN','yBRvl','config','fYzhT','serializeToYamlString','BROWSERSTACK_TEST_OBSERVABILITY','inherit','--disable-test-observability','PLAYWRIGHT','skipSessionStatus','has','.browserstack','UBudH','../../helpers/test-observability/error-handler','4htuNNf','mRFjN','skipSessionName','CFXBW','hESJJ','--config=','browserstackSetupConfig.json','findIndex','true','slice','indexOf','XKSeo','platform','QCIkm','getConfigPath','BrowserStack\x20config\x20file\x20not\x20found.','QsCim','oEDJL','child_process','cwd','KOMFp','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','../../helpers/logger','MODULE','Error\x20in\x20deleting\x20playwright\x20results','Error\x20in\x20closing\x20playwright','pw_result.json','177668BnEpqy','BROWSERSTACK_RERUN','markSDKSetupComplete','NtJet','ANiQq','unlinkSync','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_TEST_ACCESSIBILITY_YML','1549427pAiljI','--disable-browserstack-automation','playwright','8|3|1|5|4|2|6|7|0','resolvedConfigFile','MKzyh','qiLts','zwTmP','Deleting\x20','IYPwR','initialize','join','cliConfig','MDQZn','459oqFwsw','isTypescriptProject','readFileSync','257229QxBfRi','BROWSERSTACK_RERUN_TESTS','npx','exitCode','2383956qNcMZU','info','yjgzg','map','598450gHTris','LAULT','NPLjD','stop','\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();','push','testObservability','argv','requirePWModule','AdthX','false','lIenC','launchBuild','1lxiORk','rnaEr','../../helpers/utilities','splice','apply','cDMYM','existsSync','ibFPd','Error\x20in\x20getting\x20funnel\x20data\x20results','playwright-browserstack-sdk.config.js','getProxyUrl','filter','GcBSC','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','dRUJZ','clearTempPWConfig','1677861ANiKQs','split','isUndefined','aElmh','SroVm','startsWith'];a35_0x241a=function(){return _0x28b915;};return a35_0x241a();}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a36_0x455ea6=a36_0x1c36;function a36_0x4150(){const _0x20db6c=['../../helpers/helper','6484lsZVNu','OSzDC','URWOk','Spbei','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','130aUpWIh','./reporter/pwUtils','child_process','999240zBQmpu','../../helpers/test-observability/utils','./patches','hNIWi','fork','debug','qoeEl','1120167dEsYjE','13063lNSbSD','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','isHandlePWErrorSet','exports','qKfbF','format','8587015YkwtmK','BsTab','./mock-process.js','kInpM','error','Running\x20existing\x20global\x20setup','resolve','1.33.0','Not\x20able\x20to\x20import\x20globalSetup','2838598LbiEUw','\x20is\x20not\x20found','12900736wVzcrz','apply','../../helpers/logger','function','786FKVoWn','env','config','6STFAbH','PLAYWRIGHT','NtfcW','gDdbq','Sztwm','Call\x20to\x20child\x20fork\x20with\x20args\x20','228SqjYLk'];a36_0x4150=function(){return _0x20db6c;};return a36_0x4150();}(function(_0x2f97cd,_0x3bd7b7){const _0xffa68f=a36_0x1c36,_0xce2765=_0x2f97cd();while(!![]){try{const _0x1f42c2=-parseInt(_0xffa68f(0x94))/0x1*(parseInt(_0xffa68f(0x82))/0x2)+parseInt(_0xffa68f(0x79))/0x3*(parseInt(_0xffa68f(0x84))/0x4)+parseInt(_0xffa68f(0x9a))/0x5+-parseInt(_0xffa68f(0x7c))/0x6*(-parseInt(_0xffa68f(0xa3))/0x7)+-parseInt(_0xffa68f(0xa5))/0x8+parseInt(_0xffa68f(0x93))/0x9*(parseInt(_0xffa68f(0x89))/0xa)+-parseInt(_0xffa68f(0x8c))/0xb;if(_0x1f42c2===_0x3bd7b7)break;else _0xce2765['push'](_0xce2765['shift']());}catch(_0x2e4018){_0xce2765['push'](_0xce2765['shift']());}}}(a36_0x4150,0xed8e0));const util=require('util'),child_process=require(a36_0x455ea6(0x8b)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a36_0x455ea6(0x8d)),helper=require(a36_0x455ea6(0x83)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x455ea6(0x8a)),{mockIsWorkerRedundant}=require(a36_0x455ea6(0x8e)),logger=require(a36_0x455ea6(0x77))['winstonLogger'];function a36_0x1c36(_0x117521,_0x5f4c78){const _0x4150ac=a36_0x4150();return a36_0x1c36=function(_0x1c360b,_0x1386a3){_0x1c360b=_0x1c360b-0x77;let _0x58428b=_0x4150ac[_0x1c360b];return _0x58428b;},a36_0x1c36(_0x117521,_0x5f4c78);}module[a36_0x455ea6(0x97)]=async function(_0x584300){const _0x48c1c6=a36_0x455ea6,_0x36686a={'kInpM':function(_0x1d626b,_0x2166b6){return _0x1d626b(_0x2166b6);},'OSzDC':function(_0x2fdb16){return _0x2fdb16();},'gDdbq':_0x48c1c6(0x9c),'GjkTg':function(_0x20f093){return _0x20f093();},'BsTab':_0x48c1c6(0x9f),'URWOk':function(_0x3b5570,_0x4626ed){return _0x3b5570>=_0x4626ed;},'hNIWi':_0x48c1c6(0xa1),'Sztwm':function(_0x4b5941,_0x32308b,_0x7a528d){return _0x4b5941(_0x32308b,_0x7a528d);},'NtfcW':function(_0x34a297,_0x2db16d){return _0x34a297!==_0x2db16d;},'qoeEl':_0x48c1c6(0x78),'Spbei':_0x48c1c6(0xa2),'qKfbF':function(_0x462389,_0x44abcf){return _0x462389(_0x44abcf);}},_0x20eafe=child_process[_0x48c1c6(0x90)];if(helper[_0x48c1c6(0x96)]())try{_0x36686a['GjkTg'](mockIsWorkerRedundant);}catch(_0x4caa6e){logger[_0x48c1c6(0x91)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0x48c1c6(0x99)](_0x4caa6e));}child_process[_0x48c1c6(0x90)]=function(){const _0x4f61e2=_0x48c1c6;return _0x36686a[_0x4f61e2(0x9d)](debug,_0x4f61e2(0x81)+arguments[0x0]),arguments[0x0]['includes'](_0x36686a['OSzDC'](getForkProcessPath))?arguments[0x0]=require[_0x4f61e2(0xa0)](_0x36686a[_0x4f61e2(0x7f)]):logger[_0x4f61e2(0x9e)]('Path\x20'+_0x36686a[_0x4f61e2(0x85)](getForkProcessPath)+_0x4f61e2(0xa4)),_0x20eafe['apply'](null,arguments);};if(process[_0x48c1c6(0x7a)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x36686a[_0x48c1c6(0x9d)](debug,_0x36686a[_0x48c1c6(0x9b)]);try{const {loadGlobalHook:_0xc31d8d}=helper['requirePWModule'][_0x48c1c6(0xa6)](null,_0x36686a['GjkTg'](getLoadUtilsPath)),_0x193ce2=_0x36686a['kInpM'](getFrameworkVersion,FRAMEWORKS[_0x48c1c6(0x7d)]);let _0x43443a=_0x584300;if(_0x36686a[_0x48c1c6(0x86)](helper['compareVersions'](_0x193ce2,_0x36686a[_0x48c1c6(0x8f)]),0x0)){const _0x56af6f={};_0x56af6f[_0x48c1c6(0x7b)]=_0x584300,_0x43443a=_0x56af6f;}const _0x177ab6=await _0x36686a[_0x48c1c6(0x80)](_0xc31d8d,_0x43443a,process['env'][_0x48c1c6(0x95)]);if(_0x36686a[_0x48c1c6(0x7e)](typeof _0x177ab6,_0x36686a[_0x48c1c6(0x92)]))throw new Error(_0x36686a[_0x48c1c6(0x87)]);return _0x177ab6[_0x48c1c6(0xa6)](null,arguments);}catch(_0x3e13e9){_0x36686a[_0x48c1c6(0x98)](debug,_0x48c1c6(0x88)+_0x3e13e9['toString']());}}};
|