browserstack-node-sdk 1.34.2 → 1.34.4
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/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 -0
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a29_0x4c7c(){const _0x40d835=['newHubUrl','push','split','../../../hubAllocationMethods','__drivers','isUndefined','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','CAPABILITY_KEY','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','2299Mxxcco','11267640wijlzW','../../../bin/utils/constants','6156472KdTkHW','setCapabilities','pKKrq','qXedx','se:ieOptions','7qxFnel','caps_','gqBjL','originalBuilder','New\x20hub\x20url\x20set\x20to\x20','39UNooVt','capability','dKSDZ','vLCqQ','IJttV','sYBOf','5|3|4|0|1|2','yKKqp','JBnXS','hLzpI','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','ieOptions_','Modifying\x20webdriver\x20builder','__driversArray','kVFyu','IIecZ','__setBrowserOptions','kJfse','edgeOptions_','then','proxy_','getHttpAgent','exports','get','proxySettings','JpAWR','923555dkLnXI','Proxy\x20set\x20to\x20','getAccessibilityResultsSummary','iscvW','RmYxo','CMdgQ','set','browserstackAgentObservability','info','PLqJM','RZnzG','mergeDeep','setGlobal','session_','isPacProxy','RWfNp','ZALMZ','requireHttpClient','requireSeleniumWebdriver','../../../helpers/helper','safariOptions_','tbWbD','object','__driver','../../../helpers/patchHelpers','kfvno','30OhNtSE','goog:chromeOptions','send','NjiBm','firefoxOptions_','proxyUrl','Builder','Hub\x20url\x20set\x20to\x20','getAccessibilityResults','BOCWh','isBrowserstackInfra','../../../helpers/accessibility-automation/helper','quitCount_','capabilities_','KMRRh','chromeOptions_','getRequestOptions','build','../../../helpers/logger','eqlUW','/session','safari.options','setServer','DMDMX','../../../helpers/globals','updateHubUrl','url_','edgeOptions','72680oMnrpZ','debug','options_','optimalHubUrl','HttpClient','global','545532HKarSh','9428NyhwtW','https://','getGlobal','2390476eoZPqO','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','path'];a29_0x4c7c=function(){return _0x40d835;};return a29_0x4c7c();}const a29_0xdea631=a29_0x4ff3;(function(_0x1db9a4,_0xf195f2){const _0x1bffbe=a29_0x4ff3,_0x2a2c12=_0x1db9a4();while(!![]){try{const _0xfce2ff=-parseInt(_0x1bffbe(0xc8))/0x1+parseInt(_0x1bffbe(0xc9))/0x2*(-parseInt(_0x1bffbe(0x72))/0x3)+-parseInt(_0x1bffbe(0xcc))/0x4+-parseInt(_0x1bffbe(0x8c))/0x5*(-parseInt(_0x1bffbe(0xa6))/0x6)+parseInt(_0x1bffbe(0x6d))/0x7*(parseInt(_0x1bffbe(0x68))/0x8)+-parseInt(_0x1bffbe(0x66))/0x9+parseInt(_0x1bffbe(0xc2))/0xa*(parseInt(_0x1bffbe(0x65))/0xb);if(_0xfce2ff===_0xf195f2)break;else _0x2a2c12['push'](_0x2a2c12['shift']());}catch(_0x18ef85){_0x2a2c12['push'](_0x2a2c12['shift']());}}}(a29_0x4c7c,0xb8815));function a29_0x4ff3(_0x350f77,_0x3a304b){const _0x4c7c55=a29_0x4c7c();return a29_0x4ff3=function(_0x4ff33c,_0x1bdd10){_0x4ff33c=_0x4ff33c-0x65;let _0x199cd8=_0x4c7c55[_0x4ff33c];return _0x199cd8;},a29_0x4ff3(_0x350f77,_0x3a304b);}const logger=require(a29_0xdea631(0xb8))['winstonLogger'],helper=require(a29_0xdea631(0x9f)),constants=require(a29_0xdea631(0x67)),hubAllocator=require(a29_0xdea631(0xd2)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0xdea631(0xa4)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0xdea631(0xb1)),globals=require(a29_0xdea631(0xbe)),modify=(_0x895fab,_0x516d22=null,_0x267870=![])=>{const _0x4f6a9e=a29_0xdea631,_0x1de8e2={'iscvW':function(_0x26e2e0,_0x51bad6){return _0x26e2e0!==_0x51bad6;},'tbWbD':_0x4f6a9e(0xba),'yKKqp':function(_0x17fe64,_0x366929){return _0x17fe64+_0x366929;},'dKSDZ':function(_0x3b65c5,_0x3fbed9){return _0x3b65c5+_0x3fbed9;},'FTOtv':_0x4f6a9e(0xca),'RmYxo':'/wd/hub','BVNHF':_0x4f6a9e(0xa7),'cugVE':'chromeOptions','kfvno':'ms:edgeOptions','eqlUW':_0x4f6a9e(0xc1),'BOCWh':'moz:firefoxOptions','JpAWR':'firefoxOptions','HZMER':_0x4f6a9e(0xbb),'pKKrq':_0x4f6a9e(0x6c),'kJfse':'ieOptions','EOZeS':function(_0x3101fa,_0x3979e6){return _0x3101fa===_0x3979e6;},'RZnzG':_0x4f6a9e(0xa2),'yFyXK':'Setting\x20Browserstack\x20capabilities','qXedx':function(_0x41cce8,_0x597ebe,_0x205ce5){return _0x41cce8(_0x597ebe,_0x205ce5);},'vLCqQ':function(_0x368654,_0x1e5863,_0x4cd6b6){return _0x368654(_0x1e5863,_0x4cd6b6);},'CMdgQ':function(_0x20e2d8,_0x3d5d23){return _0x20e2d8(_0x3d5d23);},'PLqJM':function(_0x5c8cf5,_0x579a0c,_0x5de5a6){return _0x5c8cf5(_0x579a0c,_0x5de5a6);},'nDLJn':_0x4f6a9e(0xc5),'IIecZ':_0x4f6a9e(0xcd),'NjiBm':_0x4f6a9e(0x78),'JBnXS':'isAccessibilityPlatform','KMRRh':function(_0x1e06f5,_0x3b8b35,_0x2b1736){return _0x1e06f5(_0x3b8b35,_0x2b1736);},'IJttV':_0x4f6a9e(0xd7),'VVSjn':function(_0x5302dd){return _0x5302dd();},'RWfNp':function(_0x55c1bf,_0x15380a){return _0x55c1bf(_0x15380a);},'gqBjL':function(_0x287318,_0x233a72){return _0x287318!==_0x233a72;},'DMDMX':_0x4f6a9e(0xd5),'kVFyu':_0x4f6a9e(0x7e)},_0x35466a=helper[_0x4f6a9e(0x9d)]();let _0x1e4bd5;try{_0x1e4bd5=helper[_0x4f6a9e(0x9e)](),_0x1e4bd5['originalBuilder']&&(_0x1e4bd5[_0x4f6a9e(0xac)]=_0x1e4bd5[_0x4f6a9e(0x70)]);}catch(_0xbc40c7){return;}if(helper[_0x4f6a9e(0xb0)]()){const _0x11f3e7={};_0x11f3e7['logLevel']=_0x895fab['browserStackLogLevel'],helper['setLogLevel'](_0x11f3e7,new Map(),new Map()),logger[_0x4f6a9e(0x94)](_0x1de8e2[_0x4f6a9e(0xbd)]),logger[_0x4f6a9e(0xc3)](_0x1de8e2[_0x4f6a9e(0x80)]);}class _0x25511d extends _0x35466a['HttpClient']{[_0x4f6a9e(0xa8)](_0x2d4956){const _0x86ab58=_0x4f6a9e;if(_0x1de8e2['iscvW'](_0x2d4956[_0x86ab58(0xce)],_0x1de8e2[_0x86ab58(0xa1)])&&_0x1de8e2[_0x86ab58(0x8f)](global[_0x86ab58(0xcf)],''))try{global[_0x86ab58(0xcf)]=_0x1de8e2[_0x86ab58(0x79)](_0x1de8e2[_0x86ab58(0x74)](_0x1de8e2['FTOtv'],global[_0x86ab58(0xcf)]),_0x1de8e2[_0x86ab58(0x90)]),this[_0x86ab58(0xc4)]=hubAllocator[_0x86ab58(0xb6)](global['newHubUrl']),logger['debug'](_0x86ab58(0x71)+global[_0x86ab58(0xcf)]),global['newHubUrl']='';}catch(_0x32d50e){logger['error'](_0x32d50e);}return super['send'](_0x2d4956);}}class _0x1eb573 extends _0x1e4bd5[_0x4f6a9e(0xac)]{['setServer'](){const _0x4e7a6e=_0x4f6a9e;return this[_0x4e7a6e(0xc0)]=helper['getHubUrl'](_0x895fab),logger[_0x4e7a6e(0xc3)](_0x4e7a6e(0xad)+this['url_']),this;}[_0x4f6a9e(0x82)](_0x43ac99){const _0x363459=_0x4f6a9e;let _0x4cd2bd={};for(const _0x397f08 in _0x43ac99){switch(_0x397f08){case _0x1de8e2['BVNHF']:case _0x1de8e2['cugVE']:this['chromeOptions_']&&(_0x4cd2bd=this[_0x363459(0xb5)][_0x363459(0x89)](this[_0x363459(0xb5)][_0x363459(0xd6)])||{},this[_0x363459(0xb5)][_0x363459(0x92)](this['chromeOptions_'][_0x363459(0xd6)],helper['mergeDeep'](_0x4cd2bd,_0x43ac99[_0x397f08])));break;case _0x1de8e2[_0x363459(0xa5)]:case _0x1de8e2[_0x363459(0xb9)]:this[_0x363459(0x84)]&&(_0x4cd2bd=this[_0x363459(0x84)][_0x363459(0x89)](this[_0x363459(0x84)][_0x363459(0xd6)])||{},this[_0x363459(0x84)][_0x363459(0x92)](this['edgeOptions_']['CAPABILITY_KEY'],helper[_0x363459(0x97)](_0x4cd2bd,_0x43ac99[_0x397f08])));break;case _0x1de8e2[_0x363459(0xaf)]:case _0x1de8e2[_0x363459(0x8b)]:this[_0x363459(0xaa)]&&(_0x4cd2bd=this[_0x363459(0xaa)][_0x363459(0x89)](this[_0x363459(0xaa)]['CAPABILITY_KEY'])||{},this['firefoxOptions_'][_0x363459(0x92)](this[_0x363459(0xaa)][_0x363459(0xd6)],helper[_0x363459(0x97)](_0x4cd2bd,_0x43ac99[_0x397f08])));break;case _0x1de8e2['HZMER']:this['safariOptions_']&&(_0x4cd2bd=this['safariOptions_'][_0x363459(0x89)](this[_0x363459(0xa0)][_0x363459(0xd6)])||{},this[_0x363459(0xa0)][_0x363459(0x92)](this[_0x363459(0xa0)][_0x363459(0xd6)],helper[_0x363459(0x97)](_0x4cd2bd,_0x43ac99[_0x397f08])));break;case _0x1de8e2[_0x363459(0x6a)]:case _0x1de8e2[_0x363459(0x83)]:this[_0x363459(0x7d)]&&(_0x4cd2bd=this[_0x363459(0x7d)][_0x363459(0x89)](this[_0x363459(0x7d)][_0x363459(0xd6)])||{},this['ieOptions_']['set'](this[_0x363459(0x7d)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x4cd2bd,_0x43ac99[_0x397f08])));break;}}}[_0x4f6a9e(0x69)](){const _0x241803=_0x4f6a9e;return logger[_0x241803(0xc3)](_0x1de8e2['yFyXK']),this['__setBrowserOptions'](_0x895fab[_0x241803(0x73)]),Object['keys'](_0x895fab[_0x241803(0x73)])['forEach'](_0x55e152=>{const _0x4df67b=_0x241803,_0x4fd9d2=this[_0x4df67b(0xb3)][_0x4df67b(0x89)](_0x55e152);_0x1de8e2['EOZeS'](typeof _0x4fd9d2,_0x1de8e2[_0x4df67b(0x96)])?this['capabilities_'][_0x4df67b(0x92)](_0x55e152,helper[_0x4df67b(0x97)](_0x4fd9d2,_0x895fab[_0x4df67b(0x73)][_0x55e152])):this[_0x4df67b(0xb3)]['set'](_0x55e152,_0x895fab[_0x4df67b(0x73)][_0x55e152]);}),this;}[_0x4f6a9e(0xb7)](){const _0x419ad1=_0x4f6a9e,_0x4bca06={'hLzpI':_0x1de8e2['nDLJn'],'sYBOf':_0x1de8e2[_0x419ad1(0x81)],'ZALMZ':function(_0x9ee98b,_0xd29a7f,_0x5e9d54){return _0x1de8e2['vLCqQ'](_0x9ee98b,_0xd29a7f,_0x5e9d54);}};if(helper[_0x419ad1(0xb0)]()){const _0x4a9af3=_0x1de8e2[_0x419ad1(0xa9)][_0x419ad1(0xd1)]('|');let _0x1e4905=0x0;while(!![]){switch(_0x4a9af3[_0x1e4905++]){case'0':if(helper[_0x419ad1(0x9a)](_0x895fab[_0x419ad1(0x8a)][_0x419ad1(0xab)]))this['agent_']=helper[_0x419ad1(0x87)](_0x895fab[_0x419ad1(0x8a)][_0x419ad1(0xab)]);else _0x895fab[_0x419ad1(0x8a)][_0x419ad1(0xab)]&&(this[_0x419ad1(0x86)]=_0x895fab['proxySettings']['proxyUrl'],logger[_0x419ad1(0xc3)](_0x419ad1(0x8d)+this[_0x419ad1(0x86)]));continue;case'1':globals[_0x419ad1(0xcb)](_0x1de8e2[_0x419ad1(0x7a)])&&(!_0x1de8e2[_0x419ad1(0xb4)](setExtension,this,_0x895fab)&&globals[_0x419ad1(0x98)](_0x1de8e2[_0x419ad1(0x7a)],![]));continue;case'2':logger['debug'](_0x1de8e2[_0x419ad1(0x76)]);continue;case'3':this[_0x419ad1(0xbc)]();continue;case'4':this[_0x419ad1(0x69)]();continue;case'5':_0x1de8e2['VVSjn'](isAccessibilityAutomationSession)&&_0x1de8e2[_0x419ad1(0x91)](setAccessibilityCapabilities,_0x895fab);continue;}break;}}const _0x586510=super[_0x419ad1(0xb7)]();return _0x586510[_0x419ad1(0x99)]['then'](_0x3dd8a7=>{const _0x11ac7f=_0x419ad1;try{const _0x37205d=_0x3dd8a7[_0x11ac7f(0x6e)][_0x11ac7f(0x89)](_0x4bca06[_0x11ac7f(0x7b)]);_0x37205d?(logger[_0x11ac7f(0xc3)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x37205d),hubAllocator[_0x11ac7f(0xbf)](_0x37205d),helper['storeOptimalHubUrl'](_0x37205d)):logger[_0x11ac7f(0xc3)](_0x4bca06[_0x11ac7f(0x77)]);}catch(_0x4eaf01){logger[_0x11ac7f(0xc3)](_0x11ac7f(0x7c)+_0x4eaf01);}}),_0x586510[_0x419ad1(0xb2)]=0x0,_0x586510[_0x419ad1(0x85)]&&_0x586510[_0x419ad1(0x85)](_0xd9eaa2=>{const _0x3ce022=_0x419ad1,_0x359f10={'EjuNA':function(_0x52b2f,_0x1e8323,_0x5b8a2d){const _0x1d4990=a29_0x4ff3;return _0x1de8e2[_0x1d4990(0x6b)](_0x52b2f,_0x1e8323,_0x5b8a2d);}};_0x1de8e2[_0x3ce022(0x75)](overrideQuit,_0xd9eaa2,_0x586510),_0x1de8e2[_0x3ce022(0x91)](overrideTakeScreenshot,_0xd9eaa2),helper['overrideGet'](_0xd9eaa2,_0x895fab),helper['overrideExecute'](_0xd9eaa2,_0x895fab),_0xd9eaa2[_0x3ce022(0x8e)]=async()=>{return await _0x359f10['EjuNA'](getAccessibilityResultsSummary,_0xd9eaa2,global);},_0xd9eaa2[_0x3ce022(0xae)]=async()=>{const _0x10aa8d=_0x3ce022;return await _0x4bca06[_0x10aa8d(0x9c)](getAccessibilityResults,_0xd9eaa2,global);};}),_0x586510[_0x419ad1(0x8e)]=async()=>{const _0x331a90=_0x419ad1;return await _0x4bca06[_0x331a90(0x9c)](getAccessibilityResultsSummary,_0x586510,global);},_0x586510[_0x419ad1(0xae)]=async()=>{const _0x36adb9=_0x419ad1;return await _0x1de8e2[_0x36adb9(0x95)](getAccessibilityResults,_0x586510,global);},_0x1de8e2[_0x419ad1(0x91)](overrideTakeScreenshot,_0x586510),_0x1de8e2[_0x419ad1(0x9b)](overrideQuit,_0x586510),helper['overrideGet'](_0x586510,_0x895fab),helper['overrideExecute'](_0x586510,_0x895fab),helper[_0x419ad1(0xd4)](global[_0x419ad1(0x7f)])&&(global[_0x419ad1(0x7f)]=[]),helper[_0x419ad1(0xd4)](global[_0x419ad1(0xd3)])&&(global[_0x419ad1(0xd3)]=[]),global[_0x419ad1(0x7f)][_0x419ad1(0xd0)](_0x586510),global[_0x419ad1(0xa3)]=_0x586510,_0x1de8e2[_0x419ad1(0x6f)](global[_0x419ad1(0xd3)],undefined)&&global[_0x419ad1(0xd3)]['push'](_0x586510),_0x516d22&&helper[_0x419ad1(0xd4)](_0x516d22[_0x419ad1(0xc7)]['__driversArray'])&&(_0x516d22[_0x419ad1(0xc7)]['__driversArray']=[]),_0x516d22&&_0x1de8e2['iscvW'](_0x516d22[_0x419ad1(0xc7)][_0x419ad1(0xd3)],undefined)&&(_0x516d22[_0x419ad1(0xc7)]['__drivers']['push'](_0x586510),_0x516d22['global'][_0x419ad1(0x7f)][_0x419ad1(0xd0)](_0x586510)),_0x586510;}}return _0x1e4bd5[_0x4f6a9e(0x70)]=_0x1e4bd5[_0x4f6a9e(0xac)],_0x1e4bd5[_0x4f6a9e(0xac)]=_0x1eb573,_0x35466a[_0x4f6a9e(0xc6)]=_0x25511d,_0x1e4bd5;};module[a29_0xdea631(0x88)][a29_0xdea631(0x93)]=modify;
|
|
1
|
+
const a29_0x4d8474=a29_0x3351;function a29_0x3351(_0x243e4c,_0x285489){const _0x4331c9=a29_0x4331();return a29_0x3351=function(_0x335108,_0x16b31a){_0x335108=_0x335108-0x1cb;let _0x35ccab=_0x4331c9[_0x335108];return _0x35ccab;},a29_0x3351(_0x243e4c,_0x285489);}(function(_0x237415,_0x2cd15f){const _0x481b61=a29_0x3351,_0x115d1=_0x237415();while(!![]){try{const _0x36a917=-parseInt(_0x481b61(0x1ce))/0x1+-parseInt(_0x481b61(0x205))/0x2+parseInt(_0x481b61(0x232))/0x3*(-parseInt(_0x481b61(0x224))/0x4)+parseInt(_0x481b61(0x1dd))/0x5*(-parseInt(_0x481b61(0x21f))/0x6)+parseInt(_0x481b61(0x1ef))/0x7*(-parseInt(_0x481b61(0x239))/0x8)+parseInt(_0x481b61(0x21d))/0x9+parseInt(_0x481b61(0x1cf))/0xa*(parseInt(_0x481b61(0x1fb))/0xb);if(_0x36a917===_0x2cd15f)break;else _0x115d1['push'](_0x115d1['shift']());}catch(_0x5ba5e5){_0x115d1['push'](_0x115d1['shift']());}}}(a29_0x4331,0x6469b));const logger=require(a29_0x4d8474(0x22c))[a29_0x4d8474(0x1d5)],helper=require(a29_0x4d8474(0x23a)),constants=require(a29_0x4d8474(0x1d0)),hubAllocator=require(a29_0x4d8474(0x204)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x4d8474(0x203)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x4d8474(0x1f0)),globals=require('../../../helpers/globals'),modify=(_0x4ecab1,_0x1bc369=null,_0x1f4b6c=![])=>{const _0x36dbe4=a29_0x4d8474,_0x26fd1f={'hJrtD':function(_0x5ef772,_0x2cdc12){return _0x5ef772!==_0x2cdc12;},'wKime':_0x36dbe4(0x1e3),'bSGCd':function(_0xc47fe6,_0x499245){return _0xc47fe6+_0x499245;},'KHdcP':_0x36dbe4(0x1e2),'jfcIC':_0x36dbe4(0x1f8),'SHybI':'goog:chromeOptions','fyJzR':'chromeOptions','aZNCk':'ms:edgeOptions','IMQdS':_0x36dbe4(0x1eb),'noRhY':'moz:firefoxOptions','CmIpf':'firefoxOptions','MFTdx':_0x36dbe4(0x1e7),'OepaQ':'se:ieOptions','CImTg':_0x36dbe4(0x209),'fblgm':function(_0x4f7128,_0x25b645){return _0x4f7128===_0x25b645;},'Tjebz':'object','UguPT':_0x36dbe4(0x1d1),'Bezza':_0x36dbe4(0x200),'ySxmX':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','SWnjE':'5|4|2|0|1|3','lDfKL':function(_0x207ac9,_0x290cac){return _0x207ac9(_0x290cac);},'xFwTz':function(_0x58e1ea,_0x11ae5f,_0x2ddc13){return _0x58e1ea(_0x11ae5f,_0x2ddc13);},'EMFUe':function(_0x352000,_0x3a04ae,_0x3623e0){return _0x352000(_0x3a04ae,_0x3623e0);},'hppKf':'1|3|0|2|4|5','IDxVP':function(_0x221b96){return _0x221b96();},'lcIcq':function(_0x1aca1b,_0x2a2904){return _0x1aca1b(_0x2a2904);},'SKHMc':'isAccessibilityPlatform','vHNRz':function(_0x5cf82e,_0x2ed0b4,_0x414cb4){return _0x5cf82e(_0x2ed0b4,_0x414cb4);},'iRKGf':_0x36dbe4(0x238),'QCLHF':function(_0x5dce62,_0xb2e654){return _0x5dce62(_0xb2e654);},'OvntK':function(_0x2bf7bc,_0x157472){return _0x2bf7bc!==_0x157472;},'Foynt':function(_0x36e57f,_0x3df47c){return _0x36e57f!==_0x3df47c;},'UqOVa':_0x36dbe4(0x1ec),'oKdRo':'Modifying\x20webdriver\x20builder'},_0x4d3d94=helper['requireHttpClient']();let _0x5763fa;try{_0x5763fa=helper[_0x36dbe4(0x202)](),_0x5763fa['originalBuilder']&&(_0x5763fa[_0x36dbe4(0x1e4)]=_0x5763fa[_0x36dbe4(0x210)]);}catch(_0x367655){return;}if(helper['isBrowserstackInfra']()){const _0x246a26={};_0x246a26[_0x36dbe4(0x234)]=_0x4ecab1[_0x36dbe4(0x1da)],helper[_0x36dbe4(0x1f5)](_0x246a26,new Map(),new Map()),logger[_0x36dbe4(0x1f4)](_0x26fd1f[_0x36dbe4(0x225)]),logger[_0x36dbe4(0x1e8)](_0x26fd1f['oKdRo']);}class _0xe67310 extends _0x4d3d94[_0x36dbe4(0x230)]{['send'](_0x36f9f2){const _0x143255=_0x36dbe4;if(_0x26fd1f[_0x143255(0x235)](_0x36f9f2['path'],_0x26fd1f['wKime'])&&_0x26fd1f[_0x143255(0x235)](global['newHubUrl'],''))try{global[_0x143255(0x206)]=_0x26fd1f[_0x143255(0x1fc)](_0x26fd1f[_0x143255(0x1fc)](_0x26fd1f[_0x143255(0x1db)],global[_0x143255(0x206)]),_0x26fd1f[_0x143255(0x236)]),this[_0x143255(0x1de)]=hubAllocator['getRequestOptions'](global[_0x143255(0x206)]),logger[_0x143255(0x1e8)](_0x143255(0x1e6)+global[_0x143255(0x206)]),global[_0x143255(0x206)]='';}catch(_0x285392){logger['error'](_0x285392);}return super[_0x143255(0x1ee)](_0x36f9f2);}}class _0x54d544 extends _0x5763fa[_0x36dbe4(0x1e4)]{[_0x36dbe4(0x1cb)](){const _0x4a7ad5=_0x36dbe4;return this[_0x4a7ad5(0x1cd)]=helper[_0x4a7ad5(0x20e)](_0x4ecab1),logger[_0x4a7ad5(0x1e8)](_0x4a7ad5(0x221)+this[_0x4a7ad5(0x1cd)]),this;}[_0x36dbe4(0x1fd)](_0x266fe1){const _0x3caa99=_0x36dbe4;let _0x382380={};for(const _0x1e2139 in _0x266fe1){switch(_0x1e2139){case _0x26fd1f[_0x3caa99(0x20b)]:case _0x26fd1f[_0x3caa99(0x1fa)]:this[_0x3caa99(0x1f3)]&&(_0x382380=this[_0x3caa99(0x1f3)]['get'](this[_0x3caa99(0x1f3)]['CAPABILITY_KEY'])||{},this[_0x3caa99(0x1f3)][_0x3caa99(0x22f)](this[_0x3caa99(0x1f3)]['CAPABILITY_KEY'],helper[_0x3caa99(0x20f)](_0x382380,_0x266fe1[_0x1e2139])));break;case _0x26fd1f[_0x3caa99(0x20d)]:case _0x26fd1f['IMQdS']:this[_0x3caa99(0x1ea)]&&(_0x382380=this['edgeOptions_'][_0x3caa99(0x217)](this['edgeOptions_'][_0x3caa99(0x1d9)])||{},this[_0x3caa99(0x1ea)][_0x3caa99(0x22f)](this[_0x3caa99(0x1ea)][_0x3caa99(0x1d9)],helper[_0x3caa99(0x20f)](_0x382380,_0x266fe1[_0x1e2139])));break;case _0x26fd1f[_0x3caa99(0x1ff)]:case _0x26fd1f[_0x3caa99(0x22e)]:this[_0x3caa99(0x219)]&&(_0x382380=this[_0x3caa99(0x219)][_0x3caa99(0x217)](this['firefoxOptions_'][_0x3caa99(0x1d9)])||{},this[_0x3caa99(0x219)][_0x3caa99(0x22f)](this['firefoxOptions_']['CAPABILITY_KEY'],helper[_0x3caa99(0x20f)](_0x382380,_0x266fe1[_0x1e2139])));break;case _0x26fd1f[_0x3caa99(0x214)]:this[_0x3caa99(0x1f9)]&&(_0x382380=this[_0x3caa99(0x1f9)][_0x3caa99(0x217)](this['safariOptions_'][_0x3caa99(0x1d9)])||{},this[_0x3caa99(0x1f9)][_0x3caa99(0x22f)](this[_0x3caa99(0x1f9)][_0x3caa99(0x1d9)],helper[_0x3caa99(0x20f)](_0x382380,_0x266fe1[_0x1e2139])));break;case _0x26fd1f[_0x3caa99(0x1f2)]:case _0x26fd1f['CImTg']:this[_0x3caa99(0x1d8)]&&(_0x382380=this[_0x3caa99(0x1d8)][_0x3caa99(0x217)](this['ieOptions_'][_0x3caa99(0x1d9)])||{},this['ieOptions_'][_0x3caa99(0x22f)](this[_0x3caa99(0x1d8)][_0x3caa99(0x1d9)],helper[_0x3caa99(0x20f)](_0x382380,_0x266fe1[_0x1e2139])));break;}}}[_0x36dbe4(0x201)](){const _0x4a050d=_0x36dbe4,_0x35390b={'yvjwe':function(_0x55b6e4,_0x2f8526){const _0x239ab0=a29_0x3351;return _0x26fd1f[_0x239ab0(0x22d)](_0x55b6e4,_0x2f8526);},'glUeA':_0x26fd1f['Tjebz']};return logger[_0x4a050d(0x1e8)](_0x26fd1f[_0x4a050d(0x21e)]),this[_0x4a050d(0x1fd)](_0x4ecab1['capability']),Object['keys'](_0x4ecab1[_0x4a050d(0x220)])['forEach'](_0x24391c=>{const _0x3514e9=_0x4a050d,_0x4fdde4=this[_0x3514e9(0x22b)][_0x3514e9(0x217)](_0x24391c);_0x35390b[_0x3514e9(0x23c)](typeof _0x4fdde4,_0x35390b[_0x3514e9(0x207)])?this[_0x3514e9(0x22b)][_0x3514e9(0x22f)](_0x24391c,helper[_0x3514e9(0x20f)](_0x4fdde4,_0x4ecab1[_0x3514e9(0x220)][_0x24391c])):this['capabilities_'][_0x3514e9(0x22f)](_0x24391c,_0x4ecab1[_0x3514e9(0x220)][_0x24391c]);}),this;}[_0x36dbe4(0x231)](){const _0x356a89=_0x36dbe4,_0x2a3e3e={'PZSVN':function(_0xd2fd0f,_0x2e67db,_0x1f5be0){const _0x3d4232=a29_0x3351;return _0x26fd1f[_0x3d4232(0x20c)](_0xd2fd0f,_0x2e67db,_0x1f5be0);},'sfXOl':function(_0x275043,_0x54a940,_0x2c04a7){return _0x26fd1f['xFwTz'](_0x275043,_0x54a940,_0x2c04a7);}};if(helper[_0x356a89(0x211)]()){const _0x38abdb=_0x26fd1f['hppKf'][_0x356a89(0x1e5)]('|');let _0x1b6153=0x0;while(!![]){switch(_0x38abdb[_0x1b6153++]){case'0':this[_0x356a89(0x201)]();continue;case'1':_0x26fd1f[_0x356a89(0x226)](isAccessibilityAutomationSession)&&_0x26fd1f[_0x356a89(0x22a)](setAccessibilityCapabilities,_0x4ecab1);continue;case'2':if(helper[_0x356a89(0x21c)](_0x4ecab1[_0x356a89(0x212)][_0x356a89(0x215)]))this['agent_']=helper[_0x356a89(0x1d6)](_0x4ecab1[_0x356a89(0x212)][_0x356a89(0x215)]);else _0x4ecab1[_0x356a89(0x212)][_0x356a89(0x215)]&&(this[_0x356a89(0x21b)]=_0x4ecab1[_0x356a89(0x212)][_0x356a89(0x215)],logger['debug'](_0x356a89(0x237)+this[_0x356a89(0x21b)]));continue;case'3':this[_0x356a89(0x1cb)]();continue;case'4':globals[_0x356a89(0x216)](_0x26fd1f['SKHMc'])&&(!_0x26fd1f[_0x356a89(0x218)](setExtension,this,_0x4ecab1)&&globals['setGlobal'](_0x26fd1f[_0x356a89(0x208)],![]));continue;case'5':logger[_0x356a89(0x1e8)](_0x26fd1f['iRKGf']);continue;}break;}}const _0x3f80e4=super[_0x356a89(0x231)]();return _0x3f80e4[_0x356a89(0x1d3)][_0x356a89(0x227)](_0x45d239=>{const _0x27e8c9=_0x356a89;try{const _0x5e8e6b=_0x45d239[_0x27e8c9(0x1f1)][_0x27e8c9(0x217)](_0x26fd1f['Bezza']);_0x5e8e6b?(logger[_0x27e8c9(0x1e8)](_0x27e8c9(0x1d2)+_0x5e8e6b),hubAllocator[_0x27e8c9(0x1e0)](_0x5e8e6b),helper[_0x27e8c9(0x223)](_0x5e8e6b)):logger[_0x27e8c9(0x1e8)](_0x26fd1f[_0x27e8c9(0x228)]);}catch(_0x44946f){logger[_0x27e8c9(0x1e8)](_0x27e8c9(0x222)+_0x44946f);}}),_0x3f80e4[_0x356a89(0x233)]=0x0,_0x3f80e4[_0x356a89(0x227)]&&_0x3f80e4[_0x356a89(0x227)](_0x2b030d=>{const _0x4fa679=_0x356a89,_0x21c1eb=_0x26fd1f['SWnjE'][_0x4fa679(0x1e5)]('|');let _0x46c9c0=0x0;while(!![]){switch(_0x21c1eb[_0x46c9c0++]){case'0':helper[_0x4fa679(0x1ed)](_0x2b030d,_0x4ecab1);continue;case'1':_0x2b030d[_0x4fa679(0x1df)]=async()=>{const _0x2f7e73=_0x4fa679;return await _0x2a3e3e[_0x2f7e73(0x1f6)](getAccessibilityResultsSummary,_0x2b030d,global);};continue;case'2':helper[_0x4fa679(0x1cc)](_0x2b030d,_0x4ecab1);continue;case'3':_0x2b030d['getAccessibilityResults']=async()=>{const _0x3af86e=_0x4fa679;return await _0x2a3e3e[_0x3af86e(0x213)](getAccessibilityResults,_0x2b030d,global);};continue;case'4':_0x26fd1f[_0x4fa679(0x229)](overrideTakeScreenshot,_0x2b030d);continue;case'5':_0x26fd1f[_0x4fa679(0x20c)](overrideQuit,_0x2b030d,_0x3f80e4);continue;}break;}}),_0x3f80e4['getAccessibilityResultsSummary']=async()=>{const _0x2bb4c0=_0x356a89;return await _0x26fd1f[_0x2bb4c0(0x1d7)](getAccessibilityResultsSummary,_0x3f80e4,global);},_0x3f80e4['getAccessibilityResults']=async()=>{const _0x40d4af=_0x356a89;return await _0x26fd1f[_0x40d4af(0x20c)](getAccessibilityResults,_0x3f80e4,global);},_0x26fd1f[_0x356a89(0x22a)](overrideTakeScreenshot,_0x3f80e4),_0x26fd1f[_0x356a89(0x1dc)](overrideQuit,_0x3f80e4),helper['overrideGet'](_0x3f80e4,_0x4ecab1),helper[_0x356a89(0x1ed)](_0x3f80e4,_0x4ecab1),helper[_0x356a89(0x20a)](global[_0x356a89(0x23b)])&&(global['__driversArray']=[]),helper[_0x356a89(0x20a)](global[_0x356a89(0x1e1)])&&(global[_0x356a89(0x1e1)]=[]),global[_0x356a89(0x23b)]['push'](_0x3f80e4),global[_0x356a89(0x1d4)]=_0x3f80e4,_0x26fd1f['OvntK'](global[_0x356a89(0x1e1)],undefined)&&global[_0x356a89(0x1e1)][_0x356a89(0x1f7)](_0x3f80e4),_0x1bc369&&helper['isUndefined'](_0x1bc369['global'][_0x356a89(0x23b)])&&(_0x1bc369['global'][_0x356a89(0x23b)]=[]),_0x1bc369&&_0x26fd1f['Foynt'](_0x1bc369[_0x356a89(0x1e9)][_0x356a89(0x1e1)],undefined)&&(_0x1bc369[_0x356a89(0x1e9)][_0x356a89(0x1e1)][_0x356a89(0x1f7)](_0x3f80e4),_0x1bc369['global']['__driversArray']['push'](_0x3f80e4)),_0x3f80e4;}}return _0x5763fa[_0x36dbe4(0x210)]=_0x5763fa[_0x36dbe4(0x1e4)],_0x5763fa[_0x36dbe4(0x1e4)]=_0x54d544,_0x4d3d94[_0x36dbe4(0x230)]=_0xe67310,_0x5763fa;};module[a29_0x4d8474(0x1fe)][a29_0x4d8474(0x21a)]=modify;function a29_0x4331(){const _0x5e4ef3=['setLogLevel','PZSVN','push','/wd/hub','safariOptions_','fyJzR','55uNwPUz','bSGCd','__setBrowserOptions','exports','noRhY','optimalHubUrl','setCapabilities','requireSeleniumWebdriver','../../../helpers/patchHelpers','../../../hubAllocationMethods','1156758IuTcdf','newHubUrl','glUeA','SKHMc','ieOptions','isUndefined','SHybI','xFwTz','aZNCk','getHubUrl','mergeDeep','originalBuilder','isBrowserstackInfra','proxySettings','sfXOl','MFTdx','proxyUrl','getGlobal','get','vHNRz','firefoxOptions_','browserstackAgentObservability','proxy_','isPacProxy','6734412DfLLSQ','UguPT','12288ogThak','capability','Hub\x20url\x20set\x20to\x20','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','storeOptimalHubUrl','593828uHXPGA','UqOVa','IDxVP','then','ySxmX','lDfKL','lcIcq','capabilities_','../../../helpers/logger','fblgm','CmIpf','set','HttpClient','build','6Fgwkbr','quitCount_','logLevel','hJrtD','jfcIC','Proxy\x20set\x20to\x20','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','279176LtPTfu','../../../helpers/helper','__driversArray','yvjwe','setServer','overrideGet','url_','676779BzIATv','3405200rMfABL','../../../bin/utils/constants','Setting\x20Browserstack\x20capabilities','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','session_','__driver','winstonLogger','getHttpAgent','EMFUe','ieOptions_','CAPABILITY_KEY','browserStackLogLevel','KHdcP','QCLHF','1105VSrOWx','options_','getAccessibilityResultsSummary','updateHubUrl','__drivers','https://','/session','Builder','split','New\x20hub\x20url\x20set\x20to\x20','safari.options','debug','global','edgeOptions_','edgeOptions','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','overrideExecute','send','7mIsjpb','../../../helpers/accessibility-automation/helper','caps_','OepaQ','chromeOptions_','info'];a29_0x4331=function(){return _0x5e4ef3;};return a29_0x4331();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a30_0x1f2d(){const _0x121573=['../../../helpers/request-spy','11aTrxNX','2zIamzR','timeout','1395QhQEhu','../../../helpers/test-observability/utils','1757qjzhAO','2979104xCBDMs','642pGdqLM','restore','6235272HtkWzs','2792gdSjGp','673565oJBNEb','1812726EwUFuz','23906190mmOmzF','jSfhi'];a30_0x1f2d=function(){return _0x121573;};return a30_0x1f2d();}const a30_0x3ecc45=a30_0x3929;(function(_0x2e9f1e,_0x240f9f){const _0x1025f5=a30_0x3929,_0x3f1257=_0x2e9f1e();while(!![]){try{const _0x22997c=parseInt(_0x1025f5(0x78))/0x1+-parseInt(_0x1025f5(0x6e))/0x2*(-parseInt(_0x1025f5(0x69))/0x3)+parseInt(_0x1025f5(0x73))/0x4+-parseInt(_0x1025f5(0x70))/0x5*(-parseInt(_0x1025f5(0x74))/0x6)+-parseInt(_0x1025f5(0x72))/0x7*(-parseInt(_0x1025f5(0x77))/0x8)+parseInt(_0x1025f5(0x76))/0x9+parseInt(_0x1025f5(0x6a))/0xa*(-parseInt(_0x1025f5(0x6d))/0xb);if(_0x22997c===_0x240f9f)break;else _0x3f1257['push'](_0x3f1257['shift']());}catch(_0x4140c0){_0x3f1257['push'](_0x3f1257['shift']());}}}(a30_0x1f2d,0x6bf70));const requestSpy=require(a30_0x3ecc45(0x6c)),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require(a30_0x3ecc45(0x71));function a30_0x3929(_0x25b1a3,_0x297279){const _0x1f2da7=a30_0x1f2d();return a30_0x3929=function(_0x392918,_0x9f09f7){_0x392918=_0x392918-0x69;let _0x53d015=_0x1f2da7[_0x392918];return _0x53d015;},a30_0x3929(_0x25b1a3,_0x297279);}exports['mochaHooks']={'beforeAll'(){const _0x5426d3=a30_0x3ecc45,_0x183579={'jSfhi':function(_0xb61e1e){return _0xb61e1e();}},_0x1e9058='browserstack internal helper hook';_0x183579[_0x5426d3(0x6b)](addRequestSpy);},'afterAll'(){const _0x36d90e=a30_0x3ecc45,_0x28ecf2='browserstack internal helper hook';this[_0x36d90e(0x6f)](0xea60),requestSpy[_0x36d90e(0x75)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a31_0x205f58=a31_0x472a;(function(_0x5e1669,_0x152de7){const _0x50d6db=a31_0x472a,_0xc0403=_0x5e1669();while(!![]){try{const _0x3edb27=parseInt(_0x50d6db(0xd6))/0x1+parseInt(_0x50d6db(0xf2))/0x2*(-parseInt(_0x50d6db(0xce))/0x3)+parseInt(_0x50d6db(0x113))/0x4+-parseInt(_0x50d6db(0x112))/0x5+parseInt(_0x50d6db(0xde))/0x6*(-parseInt(_0x50d6db(0xe4))/0x7)+parseInt(_0x50d6db(0xc8))/0x8+parseInt(_0x50d6db(0x109))/0x9*(parseInt(_0x50d6db(0xe5))/0xa);if(_0x3edb27===_0x152de7)break;else _0xc0403['push'](_0xc0403['shift']());}catch(_0x27e639){_0xc0403['push'](_0xc0403['shift']());}}}(a31_0x1956,0xc022b));const {v4:uuidv4}=require('uuid'),{name,version}=require(a31_0x205f58(0x101)),logPatcher=require(a31_0x205f58(0xd9)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook}=require(a31_0x205f58(0x11b)),{consoleHolder}=require(a31_0x205f58(0x114)),{getPlatformVersion}=require('../../../helpers/helper'),{shouldProcessEventForTesthub}=require(a31_0x205f58(0xf1));function a31_0x472a(_0x45dec3,_0x53d80d){const _0x195686=a31_0x1956();return a31_0x472a=function(_0x472a76,_0x42cf06){_0x472a76=_0x472a76-0xc3;let _0x1c604b=_0x195686[_0x472a76];return _0x1c604b;},a31_0x472a(_0x45dec3,_0x53d80d);}console={},Object[a31_0x205f58(0xf3)](consoleHolder)[a31_0x205f58(0xf4)](_0xb7ef86=>{console[_0xb7ef86]=(..._0x809865)=>{BSTestOpsPatcher[_0xb7ef86](..._0x809865);};}),exports[a31_0x205f58(0xf0)]=()=>{const _0x249ee5=a31_0x205f58,_0x17af7f={'IwKQI':_0x249ee5(0xd4),'ZLyNq':function(_0x15bcb8){return _0x15bcb8();}};return{'ci':_0x17af7f['IwKQI'],'key':_0x17af7f[_0x249ee5(0xef)](uuidv4),'version':version,'collector':'js-'+name};},exports['getHookDetails']=_0x2ff7bd=>{const _0x2d6aa7=a31_0x205f58,_0x44c206={};_0x44c206[_0x2d6aa7(0x10e)]=function(_0x53b5f1,_0x54d6dc){return _0x53b5f1!==_0x54d6dc;},_0x44c206[_0x2d6aa7(0xe3)]='string',_0x44c206[_0x2d6aa7(0xdb)]=_0x2d6aa7(0xc6),_0x44c206['rKFlh']=function(_0x4ccc3d,_0x449ea1){return _0x4ccc3d!==_0x449ea1;},_0x44c206[_0x2d6aa7(0xcb)]=_0x2d6aa7(0x110);const _0x369be6=_0x44c206;if(!_0x2ff7bd||_0x369be6['HzwXm'](typeof _0x2ff7bd,_0x369be6[_0x2d6aa7(0xe3)]))return[null,null];if(_0x369be6[_0x2d6aa7(0x10e)](_0x2ff7bd['indexOf'](_0x369be6[_0x2d6aa7(0xdb)]),-0x1)){const _0x160d7b=_0x2ff7bd[_0x2d6aa7(0x10c)](_0x369be6['oKTLu']);return[_0x160d7b[0x0][_0x2d6aa7(0x106)](0x0,-0x1)[_0x2d6aa7(0x10c)]('\x22')[0x1],_0x160d7b[0x1]['substring'](0x1)];}else{if(_0x369be6[_0x2d6aa7(0xdf)](_0x2ff7bd['indexOf'](_0x369be6[_0x2d6aa7(0xcb)]),-0x1)){const _0x150ebe=_0x2ff7bd[_0x2d6aa7(0x10c)](_0x369be6[_0x2d6aa7(0xcb)]);return[_0x150ebe[0x0]['slice'](0x0,-0x1)['split']('\x22')[0x1],_0x2ff7bd];}}return[null,null];},exports['getHooksForTest']=_0x232a8c=>{const _0xc70c33=a31_0x205f58,_0xa079ba={'qEieZ':function(_0x39200b,_0x35ddc7){return _0x39200b(_0x35ddc7);},'sVbzV':_0xc70c33(0xfd),'ygnnG':_0xc70c33(0xda),'UZwnx':_0xc70c33(0xe1),'TRqxU':_0xc70c33(0xca)};if(!_0x232a8c||!_0x232a8c['parent'])return[];const _0x2f3603=[];return[_0xa079ba['sVbzV'],_0xa079ba['ygnnG'],_0xa079ba[_0xc70c33(0x10b)],_0xa079ba[_0xc70c33(0x103)]][_0xc70c33(0xf4)](_0x53e102=>{const _0x38672c=_0xc70c33,_0x5599e2={'gnjtB':function(_0x157974,_0x7788a6){return _0xa079ba['qEieZ'](_0x157974,_0x7788a6);}},_0x1de03e=_0x232a8c[_0x38672c(0xd8)][_0x53e102]||[];_0x1de03e[_0x38672c(0xf4)](_0x5f4ff4=>{const _0x1bc582=_0x38672c;_0x5f4ff4[_0x1bc582(0xfe)]&&!_0x5599e2['gnjtB'](isInternalHook,_0x5f4ff4['fn'])&&_0x2f3603[_0x1bc582(0xd7)](_0x5f4ff4[_0x1bc582(0xfe)]);});}),[..._0x2f3603,...exports[_0xc70c33(0x115)](_0x232a8c[_0xc70c33(0xd8)])];},exports[a31_0x205f58(0x117)]=_0x6ae14d=>{const _0x870b9d=a31_0x205f58,_0x47ce46={'XEUeu':function(_0x3483ba){return _0x3483ba();},'RSHTY':function(_0x46531f,_0x17f9f1){return _0x46531f===_0x17f9f1;},'ACnfe':_0x870b9d(0xca),'EvfHz':_0x870b9d(0xfd),'pBJrE':'_afterAll','GGoUr':'_beforeEach'};if(!_0x6ae14d||!_0x6ae14d[_0x870b9d(0xd8)])return;[_0x47ce46[_0x870b9d(0xc5)],_0x47ce46[_0x870b9d(0xfa)],_0x47ce46[_0x870b9d(0x10d)],_0x47ce46[_0x870b9d(0x11c)]][_0x870b9d(0xf4)](_0x1a8233=>{const _0x2b70e6=_0x870b9d,_0x540749={'qPVXh':function(_0x1a5c24){const _0x3bc9da=a31_0x472a;return _0x47ce46[_0x3bc9da(0xe2)](_0x1a5c24);},'mrCWg':function(_0x32e46d,_0xcc8ad5){return _0x47ce46['RSHTY'](_0x32e46d,_0xcc8ad5);},'yuXZb':_0x47ce46['ACnfe']},_0x364b6f=_0x6ae14d[_0x2b70e6(0xd8)][_0x1a8233]||[];_0x364b6f[_0x2b70e6(0xf4)](_0x28f33d=>{const _0x56c6fc=_0x2b70e6;if(!_0x28f33d[_0x56c6fc(0xfe)])_0x28f33d[_0x56c6fc(0xfe)]=_0x540749[_0x56c6fc(0x104)](uuidv4);else _0x28f33d[_0x56c6fc(0xc7)]&&_0x540749[_0x56c6fc(0xee)](_0x1a8233,_0x540749[_0x56c6fc(0x108)])&&(_0x28f33d[_0x56c6fc(0xfe)]=_0x540749[_0x56c6fc(0x104)](uuidv4),delete _0x28f33d[_0x56c6fc(0xc7)]);});}),exports[_0x870b9d(0x117)](_0x6ae14d[_0x870b9d(0xd8)]);},exports[a31_0x205f58(0xe7)]=async(_0x4e2ac3,_0x4b396f)=>{const _0x42df49=a31_0x205f58,_0x459829={'HujGr':function(_0x227e72){return _0x227e72();},'dHBxX':function(_0x3af526,_0x86efef){return _0x3af526===_0x86efef;},'YHErG':'browserstack','HZqXm':'appium:app','CgKSA':_0x42df49(0x10a),'VQwGi':_0x42df49(0x119),'eRDBv':_0x42df49(0xd1),'KgQpY':function(_0x32a1b4,_0x2b29ad){return _0x32a1b4(_0x2b29ad);},'FmHmB':_0x42df49(0xd2),'cnAbZ':'TEST_PLATFORM','bHsgO':function(_0x485186,_0xe65b8b){return _0x485186(_0xe65b8b);}};try{if(!_0x459829[_0x42df49(0xe0)](shouldProcessEventForTesthub))return;const _0xc9f570=await _0x4e2ac3[_0x42df49(0x105)](),_0xb39c8b=await _0x4e2ac3[_0x42df49(0xe8)](),_0x3762c2={},_0x5f2a77=Object[_0x42df49(0xd3)](_0xb39c8b[_0x42df49(0x105)]()[_0x42df49(0xc4)]),_0x579e72={'product':_0x459829[_0x42df49(0x11d)](global[_0x42df49(0x111)],_0x459829[_0x42df49(0xfc)])?_0x5f2a77[_0x459829['HZqXm']]||_0x5f2a77[_0x459829[_0x42df49(0xcf)]]?_0x459829[_0x42df49(0xe9)]:_0x459829[_0x42df49(0xd5)]:null,'capabilities':_0x5f2a77,'platform':_0xc9f570[_0x42df49(0xc9)](),'platform_version':_0x459829[_0x42df49(0xcc)](getPlatformVersion,_0x459829['dHBxX'](global[_0x42df49(0x111)],_0x459829[_0x42df49(0xfc)])),'browser':_0xc9f570['getBrowserName'](),'browser_version':_0xc9f570[_0x42df49(0xcd)](),'session_id':_0xb39c8b[_0x42df49(0xdc)]()};global['__cloud_provider___']?_0x3762c2[global[_0x42df49(0x111)]]=_0x579e72:_0x3762c2[_0x459829[_0x42df49(0xf8)]]=_0x579e72,process['emit'](_0x42df49(0x10f)+process[_0x42df49(0x118)],{'timestamp':new Date()[_0x42df49(0x100)](),'level':null,'message':null,'kind':_0x459829[_0x42df49(0xed)],'http_response':_0x3762c2,'uuid':_0x4b396f});}catch(_0xccaef3){_0x459829[_0x42df49(0xeb)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0xccaef3);}},exports[a31_0x205f58(0xff)]=_0x15e620=>{const _0x5d875a=a31_0x205f58,_0x9ea391={};_0x9ea391[_0x5d875a(0xf7)]=function(_0x1af5dc,_0x5c48f9){return _0x1af5dc!==_0x5c48f9;},_0x9ea391[_0x5d875a(0xfb)]=_0x5d875a(0x110),_0x9ea391['JhAIA']=function(_0x1c605c,_0x5bfdbf){return _0x1c605c!==_0x5bfdbf;},_0x9ea391[_0x5d875a(0xd0)]=_0x5d875a(0x107),_0x9ea391['ChKpt']=function(_0x2fea7f,_0x40b4c1){return _0x2fea7f!==_0x40b4c1;},_0x9ea391['MjuLb']=_0x5d875a(0xea);const _0x41bc55=_0x9ea391,_0x4074f5=_0x15e620['suites'][_0x5d875a(0xec)]((_0x1956b3,_0x2eac7f)=>{const _0x4e6d21=_0x5d875a,_0x64f86=exports[_0x4e6d21(0xff)](_0x2eac7f);return _0x64f86&&(_0x1956b3=_0x1956b3[_0x4e6d21(0xe6)](_0x64f86)),_0x1956b3;},[]),_0x3a8be3=_0x15e620[_0x5d875a(0xdd)][_0x5d875a(0xc3)](_0x6b6229=>{const _0x23f5ae=_0x5d875a,_0x3f296f=_0x41bc55[_0x23f5ae(0xf7)](_0x6b6229[_0x23f5ae(0xf9)],_0x41bc55['qNjcJ'])&&!_0x6b6229[_0x23f5ae(0xc7)]&&_0x41bc55[_0x23f5ae(0x116)](_0x6b6229[_0x23f5ae(0x11a)],_0x41bc55[_0x23f5ae(0xd0)])&&_0x41bc55[_0x23f5ae(0xf6)](_0x6b6229[_0x23f5ae(0x11a)],_0x41bc55[_0x23f5ae(0x102)])&&!_0x6b6229[_0x23f5ae(0xf5)];return _0x3f296f;});return _0x3a8be3['concat'](_0x4074f5);};function a31_0x1956(){const _0x4a18d0=['state','../../../helpers/test-observability/utils','ACnfe','dHBxX','filter','map_','EvfHz','hook:','markedStatus','11179160ZutSEj','getPlatform','_afterEach','uTnSV','KgQpY','getBrowserVersion','2450061dWvFAf','CgKSA','CQVfE','automate','unknown_grid','fromEntries','generic','eRDBv','604111IyiDxQ','push','parent','../../utils/logPatcher','_afterAll','oKTLu','toJSON','tests','4127034mSaCtq','rKFlh','HujGr','_beforeEach','XEUeu','MuESx','14IyTnfS','10qRCHPg','concat','sendPlatformDetails','getSession','VQwGi','failed','bHsgO','reduce','cnAbZ','mrCWg','ZLyNq','getTestEnv','../../../helpers/testhub/utils','2OYUrmG','keys','forEach','pending','ChKpt','pfEpu','FmHmB','type','pBJrE','qNjcJ','YHErG','_beforeAll','hookAnalyticsId','getHookSkippedTests','toISOString','../../../../package.json','MjuLb','TRqxU','qPVXh','getCapabilities','slice','passed','yuXZb','13882815zbucFz','app','UZwnx','split','GGoUr','HzwXm','bs:addPlatformDetails:','hook','__cloud_provider___','3727175etZToQ','722984HelxAA','../../../helpers/test-observability/constants','getHooksForTest','JhAIA','mapTestHooks','pid','app-automate'];a31_0x1956=function(){return _0x4a18d0;};return a31_0x1956();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0xe01c8c=a32_0xe4b5;function a32_0x2a2a(){const _0x427917=['YhLqh','stopMonitoring','saveTestResults','length','https:','__drivers','join','SFuAz','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','RzLbb','appium:app','urGyD','format','env','OALAG','../../helpers/percy/utils','10pADwXO','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','jrHed','jXyLK','failed','app','10956771MHuNZI','pIWeT','118482UvBBtX','roeBn','6hGavnl','__sessionFailed','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','sessionNameSet__','isAccessibilityPlatform','testcase','http:','shouldScanTestForAccessibility','then','thTestRunUuid','__skipSessionName','QuVja','../../helpers/testhub/utils','error','now','initQuit','BROWSERSTACK_TESTHUB_JWT','../../helpers/globals','GcdbM','stringify','getGlobal','thBuildUuid','mlTWX','3478434qHayfQ','BROWSERSTACK_TESTHUB_UUID','2883565Dashtr','setGlobal','\x20-\x20','PlyHQ','titlePath','cCXGj','util','../../helpers/helper','WhBFW','oMBco','mochaHooks','mFHjA','testAnalyticsId','../../helpers/testhub/constants','AWEIS','fMSlo','cUvDm','.\x20Error\x20:','isArray','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','executeAsyncScript','passed','7aPsbqD','../../helpers/performance-tester','7355404jgBGkw','debug','../../helpers/logger',',\x22level\x22:\x20\x22','push','driverCleanup','info','quitCount_','kmtlY','ObservabilitySync:','session_','wpzZp','browserstackSessionName','Performing\x20scan\x20before\x20saving\x20results','XTnVD','currentTest','ENV_VAR','protocol','Automate\x20test\x20case\x20execution\x20has\x20started.','percy','getCurrentUrl','8vHulTw','ugPxL','bstackA11yShouldScan','winstonLogger','executeScript','dpGfr','IHowa','shift','Failed\x20to\x20store\x20session\x20name:\x20','42007163iFsjfm','IMHCk','CGGxB','message','fPqUM','capabilities','../../helpers/accessibility-automation/helper','3587008mKFTmh','accessibilityScanStarted','Passed','KFjby','\x22}}','__error_messages__','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','\x20|\x20','./test-observability/mochaUtils','DyMJZ'];a32_0x2a2a=function(){return _0x427917;};return a32_0x2a2a();}(function(_0x2ddc54,_0x4cd022){const _0x533876=a32_0xe4b5,_0x273669=_0x2ddc54();while(!![]){try{const _0x57f2e4=-parseInt(_0x533876(0x173))/0x1*(parseInt(_0x533876(0x142))/0x2)+parseInt(_0x533876(0x15b))/0x3+parseInt(_0x533876(0x19a))/0x4+parseInt(_0x533876(0x15d))/0x5*(parseInt(_0x533876(0x144))/0x6)+parseInt(_0x533876(0x175))/0x7*(parseInt(_0x533876(0x18a))/0x8)+parseInt(_0x533876(0x140))/0x9+-parseInt(_0x533876(0x1b4))/0xa*(parseInt(_0x533876(0x193))/0xb);if(_0x57f2e4===_0x4cd022)break;else _0x273669['push'](_0x273669['shift']());}catch(_0x169447){_0x273669['push'](_0x273669['shift']());}}}(a32_0x2a2a,0xa2fde));const util=require(a32_0xe01c8c(0x163)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0xe01c8c(0x199)),{percyAutoCapture}=require(a32_0xe01c8c(0x1b3)),{sendPlatformDetails}=require(a32_0xe01c8c(0x1a2)),{isBrowserstackInfra,markSessionStatus}=require(a32_0xe01c8c(0x164)),PerformanceTester=require(a32_0xe01c8c(0x174)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0xe01c8c(0x155)),logger=require(a32_0xe01c8c(0x177))[a32_0xe01c8c(0x18d)],{shouldProcessEventForTesthub}=require(a32_0xe01c8c(0x150)),testHubConstants=require(a32_0xe01c8c(0x16a));function a32_0xe4b5(_0x2c719c,_0x14d64f){const _0x2a2a76=a32_0x2a2a();return a32_0xe4b5=function(_0xe4b59d,_0x4d6a00){_0xe4b59d=_0xe4b59d-0x13e;let _0x34ca55=_0x2a2a76[_0xe4b59d];return _0x34ca55;},a32_0xe4b5(_0x2c719c,_0x14d64f);}exports[a32_0xe01c8c(0x167)]={'beforeAll'(){const _0x985bd9=a32_0xe01c8c,_0x574321={'jlITA':function(_0x26441b,_0x509832,_0x3ee766,_0x2f8f00){return _0x26441b(_0x509832,_0x3ee766,_0x2f8f00);},'roeBn':_0x985bd9(0x13e),'cCXGj':_0x985bd9(0x1a1),'SFuAz':function(_0x5c72de,_0xb2d8e4,_0x18133d){return _0x5c72de(_0xb2d8e4,_0x18133d);},'IHowa':'passed','pxytO':function(_0x1dedc8){return _0x1dedc8();}};PerformanceTester['startMonitoring']();const _0x2eec4a='browserstack internal helper hook';global[_0x985bd9(0x19f)]=[],global['__sessionFailed']=![],global[_0x985bd9(0x17a)]=async()=>{const _0x33ed99=_0x985bd9;let _0x5acd28=![];try{await global[_0x33ed99(0x1a9)][0x0]['session_'],_0x5acd28=!![],global[_0x33ed99(0x145)]?await _0x574321['jlITA'](markSessionStatus,global['__drivers'][0x0],_0x574321[_0x33ed99(0x143)],global['__error_messages__'][_0x33ed99(0x1aa)](_0x574321[_0x33ed99(0x162)])):await _0x574321[_0x33ed99(0x1ab)](markSessionStatus,global['__drivers'][0x0],_0x574321[_0x33ed99(0x190)]);}catch(_0x4df911){}global[_0x33ed99(0x19f)]=[],global[_0x33ed99(0x145)]=![];if(_0x5acd28)try{try{_0x574321['pxytO'](shouldProcessEventForTesthub)&&(global[_0x33ed99(0x1a9)][0x0]&&await _0x574321[_0x33ed99(0x1ab)](sendPlatformDetails,global[_0x33ed99(0x1a9)][0x0],this[_0x33ed99(0x184)]?this[_0x33ed99(0x184)][_0x33ed99(0x169)]:null));}catch{}await global[_0x33ed99(0x1a9)][0x0][_0x33ed99(0x153)]();}catch(_0x14ba5c){}};},'beforeEach'(_0x267ca3){const _0xaee9b3=a32_0xe01c8c,_0x267bdb={'DyMJZ':function(_0x145809,_0x4f8782){return _0x145809>_0x4f8782;},'mlTWX':function(_0x21f8ad,_0x388ba6){return _0x21f8ad>_0x388ba6;},'jrHed':_0xaee9b3(0x15f),'fMSlo':function(_0x239de8,_0x6d8f40,_0x3484e3){return _0x239de8(_0x6d8f40,_0x3484e3);},'xEZAV':_0xaee9b3(0x18c),'GcdbM':function(_0x21a4ed){return _0x21a4ed();},'TUaDV':_0xaee9b3(0x148),'gxfEI':function(_0x18349f,_0x31e5d1){return _0x18349f===_0x31e5d1;},'pIWeT':_0xaee9b3(0x14a),'cUvDm':function(_0x7a4919,_0x21db40){return _0x7a4919===_0x21db40;},'cIJAn':_0xaee9b3(0x1a8),'CGGxB':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','AWEIS':_0xaee9b3(0x187)};new Promise(async _0x594f51=>{const _0x202e55=_0xaee9b3,_0xbf9259='browserstack internal helper hook';let _0x3d3a45=!![];try{_0x267bdb[_0x202e55(0x1a3)](global[_0x202e55(0x1a9)][_0x202e55(0x1a7)],0x1)&&(await global['driverCleanup'](),global['__drivers']['shift']()),_0x267bdb[_0x202e55(0x15a)](global[_0x202e55(0x1a9)][0x0][_0x202e55(0x17c)],0x0)&&(_0x3d3a45=![],await global[_0x202e55(0x17a)]());}catch{}try{Array[_0x202e55(0x16f)](global[_0x202e55(0x1a9)])&&global[_0x202e55(0x1a9)][0x0]&&(global[_0x202e55(0x1a9)][0x0][_0x202e55(0x181)]=this[_0x202e55(0x184)][_0x202e55(0x161)]()['join'](_0x267bdb[_0x202e55(0x1b6)])),global[_0x202e55(0x181)]=this[_0x202e55(0x184)][_0x202e55(0x161)]()[_0x202e55(0x1aa)](_0x267bdb[_0x202e55(0x1b6)]);}catch(_0xb42979){logger[_0x202e55(0x176)](_0x202e55(0x192)+_0xb42979);}this['currentTest']['shouldScanTestForAccessibility']=_0x267bdb[_0x202e55(0x16c)](shouldScanTestForAccessibility,this[_0x202e55(0x184)][_0x202e55(0x161)](),!![]),globals[_0x202e55(0x15e)](_0x267bdb['xEZAV'],this['currentTest'][_0x202e55(0x14b)]),this[_0x202e55(0x184)]['accessibilityScanStarted']=!![];if(_0x267bdb[_0x202e55(0x156)](isAccessibilityAutomationSession)&&_0x3d3a45&&Array[_0x202e55(0x16f)](global[_0x202e55(0x1a9)])&&_0x267bdb[_0x202e55(0x1a3)](global['__drivers'][_0x202e55(0x1a7)],0x0)&&globals[_0x202e55(0x158)](_0x267bdb['TUaDV']))try{const _0x234b49=await global['__drivers'][0x0][_0x202e55(0x17f)];if(_0x234b49){let _0x348149=!![];const _0x511ad8=await global[_0x202e55(0x1a9)][0x0][_0x202e55(0x189)]();let _0xe4af4a;try{_0xe4af4a=new URL(_0x511ad8);}catch(_0x12508e){_0x348149=![];}_0x348149=_0x267bdb['gxfEI'](_0xe4af4a[_0x202e55(0x186)],_0x267bdb[_0x202e55(0x141)])||_0x267bdb[_0x202e55(0x16d)](_0xe4af4a[_0x202e55(0x186)],_0x267bdb['cIJAn']),_0x348149&&(this[_0x202e55(0x184)][_0x202e55(0x14b)]&&logger[_0x202e55(0x17b)](_0x267bdb[_0x202e55(0x195)])),this[_0x202e55(0x184)][_0x202e55(0x19b)]=this[_0x202e55(0x184)][_0x202e55(0x14b)],this['currentTest'][_0x202e55(0x14b)]&&logger[_0x202e55(0x17b)](_0x267bdb[_0x202e55(0x16b)]);}}catch(_0x26ef5d){logger['error']('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x202e55(0x1b0)](_0x26ef5d));}_0x267bdb[_0x202e55(0x156)](_0x594f51);})['then'](_0x267ca3);},'afterEach'(_0x43b8c9){const _0x38ee58=a32_0xe01c8c,_0x1e07cc={'KFjby':function(_0x27019b,_0x1b5316){return _0x27019b>_0x1b5316;},'XgJmZ':function(_0x246685,_0x3d557f){return _0x246685===_0x3d557f;},'IMHCk':_0x38ee58(0x149),'PlyHQ':_0x38ee58(0x1ae),'mFHjA':function(_0x560086,_0x19d889,_0x2046d0,_0x5774ff){return _0x560086(_0x19d889,_0x2046d0,_0x5774ff);},'CfDsF':'\x20-\x20','kmtlY':function(_0x51da27,_0x5e1a3e){return _0x51da27!==_0x5e1a3e;},'YhLqh':_0x38ee58(0x172),'RzLbb':function(_0x59479e,_0xc61112,_0x595f3d){return _0x59479e(_0xc61112,_0x595f3d);},'urGyD':function(_0x196ede,_0x3bde7e){return _0x196ede+_0x3bde7e;},'WhBFW':'Failed:\x20','jXyLK':_0x38ee58(0x151),'QuVja':_0x38ee58(0x19c),'oMBco':'info','ODtSF':'isAccessibilityPlatform','jIJJX':'bstackA11yShouldScan','UGvwD':_0x38ee58(0x146),'dpGfr':_0x38ee58(0x182),'frDlH':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','OALAG':function(_0x57f073){return _0x57f073();},'XTnVD':function(_0x53eb3f){return _0x53eb3f();},'TFgwU':function(_0x5dc278,_0x5f063f,_0x407b99){return _0x5dc278(_0x5f063f,_0x407b99);},'fPqUM':_0x38ee58(0x176),'ugPxL':function(_0x4b9e51,_0xcd97ee){return _0x4b9e51>_0xcd97ee;}},_0x4f7cd7='browserstack internal helper hook';this['timeout'](0xfde8);const _0x35b53f=async(_0x12d43a,_0x430896)=>{const _0x52bbb6=_0x38ee58;await global['__drivers'][0x0][_0x52bbb6(0x18e)](_0x52bbb6(0x1ac)+_0x12d43a+_0x52bbb6(0x178)+_0x430896+_0x52bbb6(0x19e));};new Promise(async _0x56e848=>{const _0x8fb27a=_0x38ee58;try{_0x1e07cc[_0x8fb27a(0x19d)](global[_0x8fb27a(0x1a9)][_0x8fb27a(0x1a7)],0x1)&&(await global[_0x8fb27a(0x17a)](),global['__drivers'][_0x8fb27a(0x191)](),global[_0x8fb27a(0x19f)]=[],global[_0x8fb27a(0x145)]=![]);try{if(global[_0x8fb27a(0x188)]&&_0x1e07cc['XgJmZ'](global['percyCaptureMode'],_0x1e07cc[_0x8fb27a(0x194)])&&global[_0x8fb27a(0x1a9)][0x0]){const _0x148a8e=_0x1e07cc[_0x8fb27a(0x19d)](global[_0x8fb27a(0x198)][_0x8fb27a(0x1a7)],0x0)?!!global['capabilities'][0x0]['app']||!!global[_0x8fb27a(0x198)][0x0][_0x1e07cc[_0x8fb27a(0x160)]]:![],_0x215aac={};_0x215aac[_0x8fb27a(0x13f)]=_0x148a8e,await _0x1e07cc[_0x8fb27a(0x168)](percyAutoCapture,global[_0x8fb27a(0x1a9)][0x0],_0x1e07cc[_0x8fb27a(0x194)],_0x215aac);}}catch(_0x4b12dc){}!global[_0x8fb27a(0x14e)]&&(await global['__drivers'][0x0][_0x8fb27a(0x18e)](_0x8fb27a(0x170)+JSON['stringify'](this[_0x8fb27a(0x184)][_0x8fb27a(0x161)]()['join'](_0x1e07cc['CfDsF']))+'}}'),global[_0x8fb27a(0x1a9)][0x0][_0x8fb27a(0x147)]=!![]);const _0x3d7f4f=_0x1e07cc[_0x8fb27a(0x17d)](this['currentTest']['state'],_0x1e07cc[_0x8fb27a(0x1a4)]);_0x3d7f4f?(global['__sessionFailed']=!![],global[_0x8fb27a(0x19f)][_0x8fb27a(0x179)](this[_0x8fb27a(0x184)]['err'][_0x8fb27a(0x196)]),await _0x1e07cc[_0x8fb27a(0x1ad)](_0x35b53f,JSON[_0x8fb27a(0x157)](_0x1e07cc[_0x8fb27a(0x1af)](_0x1e07cc[_0x8fb27a(0x165)],this[_0x8fb27a(0x184)]['err'][_0x8fb27a(0x196)])),_0x1e07cc[_0x8fb27a(0x1b7)])):await _0x1e07cc[_0x8fb27a(0x1ad)](_0x35b53f,JSON[_0x8fb27a(0x157)](_0x1e07cc[_0x8fb27a(0x14f)]),_0x1e07cc[_0x8fb27a(0x166)]);}catch(_0x35b529){}try{if(this['currentTest'][_0x8fb27a(0x19b)]&&globals[_0x8fb27a(0x158)](_0x1e07cc['ODtSF'])&&globals['getGlobal'](_0x1e07cc['jIJJX'])){logger[_0x8fb27a(0x17b)](_0x1e07cc['UGvwD']);const _0x1afbe9={};_0x1afbe9[_0x8fb27a(0x14d)]=this[_0x8fb27a(0x184)][_0x8fb27a(0x169)],_0x1afbe9[_0x8fb27a(0x159)]=process[_0x8fb27a(0x1b1)][testHubConstants[_0x8fb27a(0x185)][_0x8fb27a(0x15c)]],_0x1afbe9['thJwtToken']=process[_0x8fb27a(0x1b1)][testHubConstants[_0x8fb27a(0x185)][_0x8fb27a(0x154)]];const _0x5a9fd4=_0x1afbe9;logger[_0x8fb27a(0x176)](_0x8fb27a(0x1b5)+JSON[_0x8fb27a(0x157)](_0x5a9fd4)),logger[_0x8fb27a(0x176)](_0x1e07cc[_0x8fb27a(0x18f)]),logger[_0x8fb27a(0x176)](util[_0x8fb27a(0x1b0)](await global[_0x8fb27a(0x1a9)][0x0][_0x8fb27a(0x171)](scripts['performScan'],{'method':global[_0x8fb27a(0x181)]}))),await global[_0x8fb27a(0x1a9)][0x0][_0x8fb27a(0x171)](scripts[_0x8fb27a(0x1a6)],_0x5a9fd4),logger['info'](_0x1e07cc['frDlH']);}}catch(_0x4c7c33){logger[_0x8fb27a(0x151)](_0x8fb27a(0x1a0)+this[_0x8fb27a(0x184)][_0x8fb27a(0x161)]()+_0x8fb27a(0x16e),_0x4c7c33);}try{try{if(_0x1e07cc['OALAG'](shouldProcessEventForTesthub)){global[_0x8fb27a(0x1a9)][0x0]&&await _0x1e07cc[_0x8fb27a(0x1ad)](sendPlatformDetails,global[_0x8fb27a(0x1a9)][0x0],this[_0x8fb27a(0x184)]?this[_0x8fb27a(0x184)][_0x8fb27a(0x169)]:null);if(_0x1e07cc[_0x8fb27a(0x183)](isBrowserstackInfra)){const _0x500cdb=_0x8fb27a(0x17e)+Date[_0x8fb27a(0x152)]();await _0x1e07cc['TFgwU'](_0x35b53f,JSON[_0x8fb27a(0x157)](_0x500cdb),_0x1e07cc[_0x8fb27a(0x197)]);}}}catch{}_0x1e07cc[_0x8fb27a(0x18b)](global[_0x8fb27a(0x1a9)][0x0][_0x8fb27a(0x17c)],0x0)&&await global['driverCleanup']();}catch(_0x22e5c0){}_0x1e07cc[_0x8fb27a(0x1b2)](_0x56e848);})[_0x38ee58(0x14c)](()=>_0x43b8c9());},'afterAll'(_0xba7d8c){const _0xb3e706=a32_0xe01c8c,_0x331943={'wpzZp':function(_0x4bd252){return _0x4bd252();}},_0x5e100e='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x44d46e=>{const _0x42471d=a32_0xe4b5;PerformanceTester[_0x42471d(0x1a5)](),await global[_0x42471d(0x17a)](),_0x331943[_0x42471d(0x180)](_0x44d46e);})[_0xb3e706(0x14c)](()=>_0xba7d8c());}};
|
|
1
|
+
const a32_0x5ef54e=a32_0x146b;(function(_0x15e828,_0x598480){const _0xc423a3=a32_0x146b,_0x557c59=_0x15e828();while(!![]){try{const _0x582dc6=parseInt(_0xc423a3(0x20f))/0x1+-parseInt(_0xc423a3(0x1dc))/0x2+-parseInt(_0xc423a3(0x21e))/0x3+parseInt(_0xc423a3(0x221))/0x4+parseInt(_0xc423a3(0x1cf))/0x5+-parseInt(_0xc423a3(0x1e9))/0x6+parseInt(_0xc423a3(0x1f3))/0x7*(parseInt(_0xc423a3(0x1d8))/0x8);if(_0x582dc6===_0x598480)break;else _0x557c59['push'](_0x557c59['shift']());}catch(_0x59926e){_0x557c59['push'](_0x557c59['shift']());}}}(a32_0x3a66,0x38cd2));const util=require(a32_0x5ef54e(0x219)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x5ef54e(0x1d5)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x5ef54e(0x1cb)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x5ef54e(0x208)),PerformanceTester=require(a32_0x5ef54e(0x207)),scripts=require(a32_0x5ef54e(0x23f)),globals=require('../../helpers/globals'),logger=require(a32_0x5ef54e(0x22b))[a32_0x5ef54e(0x224)],{shouldProcessEventForTesthub}=require(a32_0x5ef54e(0x21c)),testHubConstants=require(a32_0x5ef54e(0x230));function a32_0x146b(_0x3e8ca9,_0x2fdef7){const _0x3a6623=a32_0x3a66();return a32_0x146b=function(_0x146b3e,_0x14cba9){_0x146b3e=_0x146b3e-0x1ca;let _0x30b57f=_0x3a6623[_0x146b3e];return _0x30b57f;},a32_0x146b(_0x3e8ca9,_0x2fdef7);}exports[a32_0x5ef54e(0x204)]={'beforeAll'(){const _0x5ada1a=a32_0x5ef54e,_0x300712={'vGJpY':function(_0x3d208a,_0x4a6c31,_0x465940,_0x3d04d4){return _0x3d208a(_0x4a6c31,_0x465940,_0x3d04d4);},'CaNsl':_0x5ada1a(0x1e8),'TQjgo':_0x5ada1a(0x1e1),'Vufpc':function(_0x3f1b7c,_0x3b4a83,_0x4845d6){return _0x3f1b7c(_0x3b4a83,_0x4845d6);},'CkjAT':_0x5ada1a(0x20e),'qBCmL':function(_0x17260c){return _0x17260c();},'kPvnG':function(_0x4af5cf,_0x5665c0,_0x16ab81){return _0x4af5cf(_0x5665c0,_0x16ab81);}};PerformanceTester['startMonitoring']();const _0x2bbe68='browserstack internal helper hook';global[_0x5ada1a(0x213)]=[],global[_0x5ada1a(0x24a)]=![],global[_0x5ada1a(0x238)]=async()=>{const _0x39a38c=_0x5ada1a;let _0x269dde=![];try{await global[_0x39a38c(0x21a)][0x0][_0x39a38c(0x205)],_0x269dde=!![],global[_0x39a38c(0x24a)]?await _0x300712[_0x39a38c(0x211)](markSessionStatus,global[_0x39a38c(0x21a)][0x0],_0x300712[_0x39a38c(0x1fc)],global[_0x39a38c(0x213)][_0x39a38c(0x227)](_0x300712[_0x39a38c(0x1e4)])):await _0x300712[_0x39a38c(0x229)](markSessionStatus,global[_0x39a38c(0x21a)][0x0],_0x300712['CkjAT']);}catch(_0x5b383a){}global[_0x39a38c(0x213)]=[],global[_0x39a38c(0x24a)]=![];if(_0x269dde)try{try{_0x300712[_0x39a38c(0x1d4)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x300712[_0x39a38c(0x232)](sendPlatformDetails,global['__drivers'][0x0],this[_0x39a38c(0x1cd)]?this[_0x39a38c(0x1cd)][_0x39a38c(0x23a)]:null));}catch{}await global[_0x39a38c(0x21a)][0x0][_0x39a38c(0x233)]();}catch(_0x33543c){}};},'beforeEach'(_0x46eede){const _0x7ae1cb=a32_0x5ef54e,_0x5aa815={'hbroF':function(_0x42fe63,_0x469b70){return _0x42fe63>_0x469b70;},'oASfZ':_0x7ae1cb(0x1f0),'eFTBZ':function(_0x1d3883,_0x20d90b,_0x3b816c){return _0x1d3883(_0x20d90b,_0x3b816c);},'wUxqH':_0x7ae1cb(0x1e3),'YEHiH':function(_0x1a1455){return _0x1a1455();},'qaWKq':_0x7ae1cb(0x20c),'Huasd':function(_0x14c20f,_0x62e3ea){return _0x14c20f===_0x62e3ea;},'KAIOV':_0x7ae1cb(0x249),'pKJJF':function(_0x18e9fd,_0x5d18e7){return _0x18e9fd===_0x5d18e7;},'LAsbv':'https:','GbunN':_0x7ae1cb(0x246),'iYibb':_0x7ae1cb(0x1ea),'XATDN':function(_0x1348b4){return _0x1348b4();}};new Promise(async _0x443a82=>{const _0x57d940=_0x7ae1cb,_0x1fa1d4='browserstack internal helper hook';let _0x15c022=!![];try{_0x5aa815[_0x57d940(0x235)](global['__drivers']['length'],0x1)&&(await global['driverCleanup'](),global[_0x57d940(0x21a)][_0x57d940(0x237)]()),_0x5aa815[_0x57d940(0x235)](global[_0x57d940(0x21a)][0x0][_0x57d940(0x1d9)],0x0)&&(_0x15c022=![],await global[_0x57d940(0x238)]());}catch{}try{Array[_0x57d940(0x210)](global['__drivers'])&&global[_0x57d940(0x21a)][0x0]&&(global[_0x57d940(0x21a)][0x0][_0x57d940(0x241)]=this[_0x57d940(0x1cd)][_0x57d940(0x1d6)]()[_0x57d940(0x227)](_0x5aa815[_0x57d940(0x248)])),global[_0x57d940(0x241)]=this[_0x57d940(0x1cd)][_0x57d940(0x1d6)]()[_0x57d940(0x227)](_0x5aa815[_0x57d940(0x248)]);}catch(_0xc109ff){logger[_0x57d940(0x1fe)](_0x57d940(0x22c)+_0xc109ff);}this[_0x57d940(0x1cd)][_0x57d940(0x200)]=_0x5aa815[_0x57d940(0x22d)](shouldScanTestForAccessibility,this[_0x57d940(0x1cd)][_0x57d940(0x1d6)](),!![]),globals['setGlobal'](_0x5aa815[_0x57d940(0x1f8)],this[_0x57d940(0x1cd)]['shouldScanTestForAccessibility']),this['currentTest']['accessibilityScanStarted']=!![];if(_0x5aa815[_0x57d940(0x222)](isAccessibilityAutomationSession)&&_0x15c022&&Array[_0x57d940(0x210)](global[_0x57d940(0x21a)])&&_0x5aa815['hbroF'](global[_0x57d940(0x21a)]['length'],0x0)&&globals[_0x57d940(0x1f1)](_0x5aa815[_0x57d940(0x22e)]))try{const _0x4bf9a0=await global['__drivers'][0x0][_0x57d940(0x205)];if(_0x4bf9a0){let _0x30a6a9=!![];const _0x3233c5=await global[_0x57d940(0x21a)][0x0][_0x57d940(0x1f5)]();let _0x46489e;try{_0x46489e=new URL(_0x3233c5);}catch(_0x592454){_0x30a6a9=![];}_0x30a6a9=_0x5aa815[_0x57d940(0x1d1)](_0x46489e[_0x57d940(0x20a)],_0x5aa815[_0x57d940(0x1f9)])||_0x5aa815[_0x57d940(0x1ce)](_0x46489e['protocol'],_0x5aa815[_0x57d940(0x1fb)]),_0x30a6a9&&(this[_0x57d940(0x1cd)][_0x57d940(0x200)]&&logger['info'](_0x5aa815[_0x57d940(0x1fd)])),this[_0x57d940(0x1cd)]['accessibilityScanStarted']=this[_0x57d940(0x1cd)][_0x57d940(0x200)],this['currentTest']['shouldScanTestForAccessibility']&&logger[_0x57d940(0x231)](_0x5aa815[_0x57d940(0x1e6)]);}}catch(_0x326804){logger[_0x57d940(0x22f)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x57d940(0x21f)](_0x326804));}_0x5aa815[_0x57d940(0x1f7)](_0x443a82);})['then'](_0x46eede);},'afterEach'(_0x2304cb){const _0x5839e6=a32_0x5ef54e,_0x4038f2={'eclvp':function(_0x58111e,_0x2e17a3){return _0x58111e>_0x2e17a3;},'tjTvX':function(_0x53b07f,_0x277a96){return _0x53b07f===_0x277a96;},'dtGRo':'testcase','zrsEH':function(_0x310fa3,_0x489f23){return _0x310fa3>_0x489f23;},'NAMYG':_0x5839e6(0x20d),'BIGrg':function(_0x24ebcd,_0x1d9d9d,_0x109e65,_0x4d28e8){return _0x24ebcd(_0x1d9d9d,_0x109e65,_0x4d28e8);},'BGNvl':_0x5839e6(0x1f0),'LZkPx':function(_0x25533b,_0x1b50fd){return _0x25533b!==_0x1b50fd;},'eZfvE':_0x5839e6(0x20e),'RozXu':function(_0x4895b4,_0x4a0b8c,_0x4c0744){return _0x4895b4(_0x4a0b8c,_0x4c0744);},'vPIkI':function(_0x3fa48d,_0x4d164d){return _0x3fa48d+_0x4d164d;},'jZHZR':_0x5839e6(0x1ff),'EWsyp':_0x5839e6(0x22f),'hEzBV':function(_0x20bd39,_0x532907,_0x204dc4){return _0x20bd39(_0x532907,_0x204dc4);},'yXYGh':_0x5839e6(0x209),'GpCAv':'info','OrgqV':_0x5839e6(0x20c),'rvkAe':_0x5839e6(0x1e3),'GaEtA':_0x5839e6(0x1db),'nkSRA':_0x5839e6(0x226),'nwVXX':_0x5839e6(0x23e),'hTffS':function(_0xa69a49){return _0xa69a49();},'waCTL':function(_0x36e31b,_0x3623ee,_0x4ad65b){return _0x36e31b(_0x3623ee,_0x4ad65b);},'keufA':function(_0x41ad78){return _0x41ad78();},'TUPVD':_0x5839e6(0x1fe),'PQoEj':function(_0x702039,_0x513243){return _0x702039>_0x513243;}},_0x42617b='browserstack internal helper hook';this[_0x5839e6(0x240)](0xfde8);const _0x2b6253=async(_0x2c629c,_0x369822)=>{const _0x58c439=_0x5839e6;await global[_0x58c439(0x21a)][0x0][_0x58c439(0x1dd)](_0x58c439(0x202)+_0x2c629c+_0x58c439(0x212)+_0x369822+_0x58c439(0x201));};new Promise(async _0x33e945=>{const _0x231ff0=_0x5839e6;try{_0x4038f2[_0x231ff0(0x1d7)](global['__drivers'][_0x231ff0(0x218)],0x1)&&(await global[_0x231ff0(0x238)](),global[_0x231ff0(0x21a)][_0x231ff0(0x237)](),global[_0x231ff0(0x213)]=[],global[_0x231ff0(0x24a)]=![]);try{if(global[_0x231ff0(0x216)]&&_0x4038f2[_0x231ff0(0x1e0)](global[_0x231ff0(0x1f2)],_0x4038f2['dtGRo'])&&global[_0x231ff0(0x21a)][0x0]){const _0x27bb06=_0x4038f2[_0x231ff0(0x1eb)](global[_0x231ff0(0x24b)][_0x231ff0(0x218)],0x0)?!!global[_0x231ff0(0x24b)][0x0][_0x231ff0(0x244)]||!!global[_0x231ff0(0x24b)][0x0][_0x4038f2[_0x231ff0(0x23b)]]:![],_0x311742={};_0x311742[_0x231ff0(0x244)]=_0x27bb06,await _0x4038f2[_0x231ff0(0x206)](percyAutoCapture,global[_0x231ff0(0x21a)][0x0],_0x4038f2[_0x231ff0(0x228)],_0x311742);}}catch(_0x5eaa8f){}!global['__skipSessionName']&&(await global[_0x231ff0(0x21a)][0x0][_0x231ff0(0x1dd)](_0x231ff0(0x214)+JSON[_0x231ff0(0x1e5)](this[_0x231ff0(0x1cd)]['titlePath']()['join'](_0x4038f2[_0x231ff0(0x24d)]))+'}}'),global[_0x231ff0(0x21a)][0x0]['sessionNameSet__']=!![]);const _0x58b924=_0x4038f2[_0x231ff0(0x236)](this['currentTest']['state'],_0x4038f2[_0x231ff0(0x20b)]);_0x58b924?(global[_0x231ff0(0x24a)]=!![],global['__error_messages__'][_0x231ff0(0x21d)](this[_0x231ff0(0x1cd)]['err'][_0x231ff0(0x1cc)]),await _0x4038f2[_0x231ff0(0x1ee)](_0x2b6253,JSON['stringify'](_0x4038f2[_0x231ff0(0x1d0)](_0x4038f2[_0x231ff0(0x1d3)],this[_0x231ff0(0x1cd)][_0x231ff0(0x1df)][_0x231ff0(0x1cc)])),_0x4038f2[_0x231ff0(0x1e2)])):await _0x4038f2['hEzBV'](_0x2b6253,JSON[_0x231ff0(0x1e5)](_0x4038f2['yXYGh']),_0x4038f2[_0x231ff0(0x215)]);}catch(_0x181168){}try{if(this[_0x231ff0(0x1cd)]['accessibilityScanStarted']&&globals['getGlobal'](_0x4038f2[_0x231ff0(0x203)])&&globals['getGlobal'](_0x4038f2[_0x231ff0(0x247)])){logger[_0x231ff0(0x231)](_0x4038f2[_0x231ff0(0x1ec)]);const _0x199d03={};_0x199d03['thTestRunUuid']=this[_0x231ff0(0x1cd)][_0x231ff0(0x23a)],_0x199d03[_0x231ff0(0x223)]=process[_0x231ff0(0x225)][testHubConstants['ENV_VAR'][_0x231ff0(0x234)]],_0x199d03[_0x231ff0(0x1f6)]=process['env'][testHubConstants[_0x231ff0(0x1de)][_0x231ff0(0x23c)]];const _0x1be865=_0x199d03;logger[_0x231ff0(0x1fe)](_0x231ff0(0x23d)+JSON[_0x231ff0(0x1e5)](_0x1be865)),logger[_0x231ff0(0x1fe)](_0x4038f2[_0x231ff0(0x245)]),logger[_0x231ff0(0x1fe)](util[_0x231ff0(0x21f)](await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x231ff0(0x1fa)],{'method':global[_0x231ff0(0x241)]}))),await global[_0x231ff0(0x21a)][0x0][_0x231ff0(0x1d2)](scripts[_0x231ff0(0x242)],_0x1be865),logger[_0x231ff0(0x231)](_0x4038f2[_0x231ff0(0x1ca)]);}}catch(_0x37ea44){logger[_0x231ff0(0x22f)](_0x231ff0(0x217)+this[_0x231ff0(0x1cd)][_0x231ff0(0x1d6)]()+_0x231ff0(0x243),_0x37ea44);}try{try{if(_0x4038f2[_0x231ff0(0x22a)](shouldProcessEventForTesthub)){global[_0x231ff0(0x21a)][0x0]&&await _0x4038f2['waCTL'](sendPlatformDetails,global[_0x231ff0(0x21a)][0x0],this[_0x231ff0(0x1cd)]?this[_0x231ff0(0x1cd)][_0x231ff0(0x23a)]:null);if(_0x4038f2['keufA'](isBrowserstackInfra)){const _0x37b290=_0x231ff0(0x239)+Date[_0x231ff0(0x24c)]();await _0x4038f2[_0x231ff0(0x1e7)](_0x2b6253,JSON['stringify'](_0x37b290),_0x4038f2[_0x231ff0(0x1f4)]);}}}catch{}_0x4038f2[_0x231ff0(0x220)](global[_0x231ff0(0x21a)][0x0][_0x231ff0(0x1d9)],0x0)&&await global[_0x231ff0(0x238)]();}catch(_0x579824){}_0x4038f2[_0x231ff0(0x1ed)](_0x33e945);})[_0x5839e6(0x1da)](()=>_0x2304cb());},'afterAll'(_0x5ecc9b){const _0x15db40=a32_0x5ef54e,_0x23a6f3={'gFUuA':function(_0x526881){return _0x526881();}},_0xfa93a0='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x23e595=>{const _0x303ddb=a32_0x146b;PerformanceTester[_0x303ddb(0x1ef)](),await global[_0x303ddb(0x238)](),_0x23a6f3[_0x303ddb(0x21b)](_0x23e595);})[_0x15db40(0x1da)](()=>_0x5ecc9b());}};function a32_0x3a66(){const _0x148767=['PQoEj','305760mHwdxA','YEHiH','thBuildUuid','winstonLogger','env','Performing\x20scan\x20before\x20saving\x20results','join','dtGRo','Vufpc','hTffS','../../helpers/logger','Failed\x20to\x20store\x20session\x20name:\x20','eFTBZ','qaWKq','error','../../helpers/testhub/constants','info','kPvnG','initQuit','BROWSERSTACK_TESTHUB_UUID','hbroF','LZkPx','shift','driverCleanup','ObservabilitySync:','testAnalyticsId','NAMYG','BROWSERSTACK_TESTHUB_JWT','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','../../helpers/accessibility-automation/scripts','timeout','browserstackSessionName','saveTestResults','.\x20Error\x20:','app','nkSRA','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','rvkAe','oASfZ','http:','__sessionFailed','capabilities','now','BGNvl','nwVXX','./test-observability/mochaUtils','message','currentTest','pKJJF','33795stnGch','vPIkI','Huasd','executeAsyncScript','jZHZR','qBCmL','../../helpers/accessibility-automation/helper','titlePath','eclvp','21272EmCGfd','quitCount_','then','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','66366wzhOlM','executeScript','ENV_VAR','err','tjTvX','\x20|\x20','EWsyp','bstackA11yShouldScan','TQjgo','stringify','iYibb','waCTL','failed','2646492IEHZfJ','Automate\x20test\x20case\x20execution\x20has\x20started.','zrsEH','GaEtA','keufA','RozXu','stopMonitoring','\x20-\x20','getGlobal','percyCaptureMode','1085HoWWxW','TUPVD','getCurrentUrl','thJwtToken','XATDN','wUxqH','KAIOV','performScan','LAsbv','CaNsl','GbunN','debug','Failed:\x20','shouldScanTestForAccessibility','\x22}}','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','OrgqV','mochaHooks','session_','BIGrg','../../helpers/performance-tester','../../helpers/helper','Passed','protocol','eZfvE','isAccessibilityPlatform','appium:app','passed','435308jwxPhE','isArray','vGJpY',',\x22level\x22:\x20\x22','__error_messages__','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','GpCAv','percy','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','length','util','__drivers','gFUuA','../../helpers/testhub/utils','push','671187LAQBmJ','format'];a32_0x3a66=function(){return _0x148767;};return a32_0x3a66();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a33_0x1762(){const _0x38f024=['modifyBrowserStackCaps','16834332MnGMNy','HjMVm','wuMHX','port','trim','xyPaT','MyzTK','child_process','--env','platforms','inherit','split','slice','test_settings','JbHCT','Jxddh','549178tyiHzQ','push','grMKx','2276547XDDAMO','bIBCk','modifyBrowserStackW3CCaps','unlinkSync','22532LPJdOi','nightwatch.conf.js','bEYFN','795EgsgPA','findIndex','1810xFCvLS','info','nightwatch.json','filter','writeFileSync','nightwatch.cmd','mergeDeep','platform','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','nightwatch','desiredCapabilities','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','wkJrw','stringify','host','nightwatch-browserstack.json','close','2047362Bkoypq','useW3C','VgKmj','map','wOMPE','MfKXW','splice','2439848PKbVle','11axGbRH','existsSync','tsECv','../../helpers/logger','20RHVEXp','2SFKtzZ','IEIxl','child\x20process\x20exited\x20with\x20code\x20','isUndefined','3492pUaYZe','config','Deleting\x20','exports','--config','../utils/constants','uSWso','forEach','BNetX','join','selenium','now','cwd','ZpIRt','tHuIa','env'];a33_0x1762=function(){return _0x38f024;};return a33_0x1762();}function a33_0x209a(_0x4d616a,_0x41a2e4){const _0x17623e=a33_0x1762();return a33_0x209a=function(_0x209a3a,_0xbc891d){_0x209a3a=_0x209a3a-0xd5;let _0x12051a=_0x17623e[_0x209a3a];return _0x12051a;},a33_0x209a(_0x4d616a,_0x41a2e4);}const a33_0x246b89=a33_0x209a;(function(_0x12725a,_0x392a65){const _0x4e8285=a33_0x209a,_0x177085=_0x12725a();while(!![]){try{const _0x201d25=-parseInt(_0x4e8285(0xe9))/0x1*(parseInt(_0x4e8285(0x10e))/0x2)+parseInt(_0x4e8285(0x118))/0x3*(-parseInt(_0x4e8285(0x115))/0x4)+-parseInt(_0x4e8285(0xe8))/0x5*(-parseInt(_0x4e8285(0xdc))/0x6)+parseInt(_0x4e8285(0x111))/0x7+-parseInt(_0x4e8285(0xe3))/0x8+-parseInt(_0x4e8285(0xed))/0x9*(-parseInt(_0x4e8285(0x11a))/0xa)+-parseInt(_0x4e8285(0xe4))/0xb*(-parseInt(_0x4e8285(0xfe))/0xc);if(_0x201d25===_0x392a65)break;else _0x177085['push'](_0x177085['shift']());}catch(_0x186cfb){_0x177085['push'](_0x177085['shift']());}}}(a33_0x1762,0xc74ba));const fs=require('fs'),path=require('path'),{spawn}=require(a33_0x246b89(0x105)),logger=require(a33_0x246b89(0xe7))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),constants=require(a33_0x246b89(0xf2)),getUserNightwatchConfigs=(_0x314a8b,_0x4f4e3a)=>{const _0x401d03=a33_0x246b89,_0x28f430={'ZpIRt':_0x401d03(0x116),'HjMVm':_0x401d03(0x11c),'tsECv':function(_0x5adb70,_0x2c9e04){return _0x5adb70(_0x2c9e04);},'Jxddh':_0x401d03(0x122)};let _0x2eb3ef=null,_0x366d21={};const _0x4a7adb=_0x4f4e3a[_0x401d03(0x119)](_0x1a5edf=>_0x1a5edf==='--config');if(!helper[_0x401d03(0xec)](_0x314a8b['config'])&&fs['existsSync'](path[_0x401d03(0xf6)](process[_0x401d03(0xf9)](),_0x314a8b[_0x401d03(0xee)])))_0x2eb3ef=path[_0x401d03(0xf6)](process[_0x401d03(0xf9)](),_0x314a8b['config']),_0x4f4e3a[_0x401d03(0xe2)](_0x4a7adb,0x2);else{if(fs[_0x401d03(0xe5)](path['join'](process['cwd'](),_0x28f430[_0x401d03(0xfa)])))_0x2eb3ef=path['join'](process[_0x401d03(0xf9)](),_0x28f430['ZpIRt']);else fs['existsSync'](path[_0x401d03(0xf6)](process[_0x401d03(0xf9)](),_0x28f430[_0x401d03(0xff)]))&&(_0x2eb3ef=path[_0x401d03(0xf6)](process[_0x401d03(0xf9)](),_0x28f430[_0x401d03(0xff)]));}return _0x2eb3ef?(logger[_0x401d03(0x11b)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x2eb3ef),_0x366d21=_0x28f430[_0x401d03(0xe6)](require,_0x2eb3ef)):logger[_0x401d03(0x11b)](_0x28f430[_0x401d03(0x10d)]),_0x366d21;},removeExistingEnvs=_0x2c11c9=>{const _0x4005eb=a33_0x246b89,_0x153b2e={};_0x153b2e[_0x4005eb(0x103)]=function(_0x1d5f7b,_0x3fe06a){return _0x1d5f7b>_0x3fe06a;};const _0x2acba6=_0x153b2e;let _0x59c0cf=_0x2c11c9[_0x4005eb(0x119)](_0x234375=>_0x234375===_0x4005eb(0x106));_0x2acba6[_0x4005eb(0x103)](_0x59c0cf,-0x1)&&_0x2c11c9[_0x4005eb(0xe2)](_0x59c0cf,0x2),_0x59c0cf=_0x2c11c9['findIndex'](_0x4c89af=>_0x4c89af==='-e'),_0x2acba6[_0x4005eb(0x103)](_0x59c0cf,-0x1)&&_0x2c11c9[_0x4005eb(0xe2)](_0x59c0cf,0x2);};function run(_0x2d854e,_0xc24fd6){const _0x4bbfd0=a33_0x246b89,_0x563b94={'MfKXW':_0x4bbfd0(0x123),'VgKmj':function(_0x5d4456,_0x31d18d){return _0x5d4456+_0x31d18d;},'BNetX':_0x4bbfd0(0x10b),'JbHCT':function(_0x11a1a3,_0x272acd,_0x47c443){return _0x11a1a3(_0x272acd,_0x47c443);},'bIBCk':'hub.browserstack.com','bEYFN':_0x4bbfd0(0xd6),'IEIxl':function(_0x16d00a,_0x5b756a){return _0x16d00a===_0x5b756a;},'uSWso':_0x4bbfd0(0xda),'grMKx':function(_0x119c91,_0x1faf2a){return _0x119c91(_0x1faf2a);},'tHuIa':function(_0x446bc9,_0x3dced4,_0x51908f,_0x4362b3){return _0x446bc9(_0x3dced4,_0x51908f,_0x4362b3);},'wkJrw':_0x4bbfd0(0x11f),'wOMPE':_0x4bbfd0(0xf1),'wuMHX':_0x4bbfd0(0x106),'hxSfj':_0x4bbfd0(0x108),'MyzTK':_0x4bbfd0(0xdb)},_0x3dbbc4=new BrowserStackSetup(_0x2d854e);if(!_0x3dbbc4[_0x4bbfd0(0xee)])return;const _0x2818bf=_0x563b94[_0x4bbfd0(0x10c)](getUserNightwatchConfigs,_0x2d854e,_0xc24fd6),_0xab76f3={};_0xab76f3['start_process']=![];const _0x3dbaa1={};_0x3dbaa1[_0x4bbfd0(0xd9)]=_0x563b94[_0x4bbfd0(0x112)],_0x3dbaa1[_0x4bbfd0(0x101)]=0x1bb;const _0x44cb8e={};_0x44cb8e['webdriver']=_0xab76f3,_0x44cb8e[_0x4bbfd0(0xf7)]=_0x3dbaa1;const _0x5cfeb4=_0x44cb8e;logger[_0x4bbfd0(0x11b)](_0x563b94[_0x4bbfd0(0x117)]);const _0x31c1ba={..._0x2818bf},_0x719e4a=_0x31c1ba,_0x3737ea=helper[_0x4bbfd0(0xdd)](_0x3dbbc4['config']),_0x2bded9=[];_0x3dbbc4[_0x4bbfd0(0xee)][_0x4bbfd0(0x107)][_0x4bbfd0(0xf4)]((_0x543a24,_0xc3298f)=>{const _0x363605=_0x4bbfd0;_0x3737ea?_0x2bded9[_0x363605(0x10f)](helper[_0x363605(0x113)](_0x3dbbc4[_0x363605(0xee)],_0x563b94[_0x363605(0xe1)],_0xc3298f)):_0x2bded9[_0x363605(0x10f)](helper[_0x363605(0xfd)](_0x3dbbc4[_0x363605(0xee)],_0x563b94['MfKXW'],_0xc3298f));});const _0x39b3f8={},_0x27c33b=[];_0x2d854e[_0x4bbfd0(0xfc)]=_0x2d854e[_0x4bbfd0(0xfc)]||_0x2d854e['e'];const _0x4edb5e=_0x2d854e[_0x4bbfd0(0xfc)]?_0x2d854e[_0x4bbfd0(0xfc)][_0x4bbfd0(0x102)]()[_0x4bbfd0(0x109)](',')[_0x4bbfd0(0xdf)](_0x3083e3=>_0x3083e3[_0x4bbfd0(0x102)]())[_0x4bbfd0(0x11d)](_0x13bc96=>_0x13bc96!==''):[''];_0x563b94[_0x4bbfd0(0xea)](_0x4edb5e['length'],0x0)&&_0x4edb5e['push']('');_0x4edb5e[_0x4bbfd0(0xf4)](_0x501e19=>{const _0x2ef74c=_0x4bbfd0;_0x2bded9[_0x2ef74c(0xf4)](_0x5b0a4f=>{const _0x531e7e=_0x2ef74c;let _0x42834d=_0x563b94[_0x531e7e(0xde)](helper['getPlatformName'](_0x5b0a4f,'_'),'_'+Date[_0x531e7e(0xf8)]());_0x501e19&&(_0x42834d+='_'+_0x501e19);if(_0x501e19&&(!_0x2818bf[_0x563b94[_0x531e7e(0xf5)]]||!_0x2818bf[_0x563b94[_0x531e7e(0xf5)]][_0x501e19]))return;const _0x34888c={..._0x5cfeb4};_0x34888c[_0x531e7e(0xd5)]=_0x5b0a4f;const _0x425e19=_0x34888c;_0x39b3f8[_0x42834d]=_0x501e19?helper[_0x531e7e(0x120)](_0x2818bf[_0x563b94['BNetX']][_0x501e19],_0x425e19):_0x425e19,_0x27c33b[_0x531e7e(0x10f)](_0x42834d);});});!_0x719e4a['test_settings']&&(_0x719e4a[_0x4bbfd0(0x10b)]={});_0x719e4a['test_settings']={..._0x719e4a[_0x4bbfd0(0x10b)],..._0x39b3f8};const _0xa66449=path[_0x4bbfd0(0xf6)](__dirname,_0x563b94[_0x4bbfd0(0xf3)]);fs[_0x4bbfd0(0x11e)](_0xa66449,JSON[_0x4bbfd0(0xd8)](_0x719e4a)),_0x563b94[_0x4bbfd0(0x110)](removeExistingEnvs,_0xc24fd6);const _0x35e760=_0x563b94[_0x4bbfd0(0xfb)](spawn,/^win/['test'](process[_0x4bbfd0(0x121)])?_0x563b94[_0x4bbfd0(0xd7)]:_0x563b94[_0x4bbfd0(0xe1)],[_0x563b94[_0x4bbfd0(0xe0)],_0xa66449,..._0xc24fd6[_0x4bbfd0(0x10a)](0x1),_0x563b94[_0x4bbfd0(0x100)],_0x27c33b[_0x4bbfd0(0xf6)](',')],{'stdio':_0x563b94['hxSfj']});_0x35e760['on'](_0x563b94[_0x4bbfd0(0x104)],async _0x4f0643=>{const _0x1be2e7=_0x4bbfd0;logger['debug'](_0x1be2e7(0xeb)+_0x4f0643),logger[_0x1be2e7(0x11b)](_0x1be2e7(0xef)+_0xa66449),fs[_0x1be2e7(0x114)](_0xa66449);});}module[a33_0x246b89(0xf0)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x124007=a34_0x3a0a;(function(_0x5253a6,_0x2cc5d2){const _0x3fe13f=a34_0x3a0a,_0x596494=_0x5253a6();while(!![]){try{const _0x14dd35=parseInt(_0x3fe13f(0x18a))/0x1+parseInt(_0x3fe13f(0x1b2))/0x2*(parseInt(_0x3fe13f(0x1b0))/0x3)+-parseInt(_0x3fe13f(0x165))/0x4*(parseInt(_0x3fe13f(0x194))/0x5)+-parseInt(_0x3fe13f(0x17b))/0x6+parseInt(_0x3fe13f(0x187))/0x7+parseInt(_0x3fe13f(0x19b))/0x8+parseInt(_0x3fe13f(0x17d))/0x9;if(_0x14dd35===_0x2cc5d2)break;else _0x596494['push'](_0x596494['shift']());}catch(_0x33bac3){_0x596494['push'](_0x596494['shift']());}}}(a34_0x157b,0x867a7));const util=require(a34_0x124007(0x184)),logger=require(a34_0x124007(0x1ba))[a34_0x124007(0x1ac)],{isAccessibilityAutomationSession}=require(a34_0x124007(0x1b8)),{isUndefined}=require(a34_0x124007(0x17c)),scripts=require(a34_0x124007(0x1b3));function a34_0x3a0a(_0x5c399f,_0x4b4762){const _0x157bed=a34_0x157b();return a34_0x3a0a=function(_0x3a0a40,_0x23946e){_0x3a0a40=_0x3a0a40-0x160;let _0x325835=_0x157bed[_0x3a0a40];return _0x325835;},a34_0x3a0a(_0x5c399f,_0x4b4762);}exports[a34_0x124007(0x1c1)]=async(_0x4ce563,_0x939f24,_0x390031={})=>{const _0x2dcafa=a34_0x124007,_0x55bb55={};_0x55bb55[_0x2dcafa(0x176)]='bstackSdkArgs';const _0xd68493=_0x55bb55;return await _0x4ce563[_0x2dcafa(0x1a3)](_0x2dcafa(0x162)+_0x939f24['replace'](/arguments/g,_0xd68493[_0x2dcafa(0x176)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x2dcafa(0x188)](_0x390031)+')');},exports['browserStackExecuteDriver']=async(_0x96c932,_0x240d6e,_0x11278a={})=>{const _0x2cfdf6=a34_0x124007,_0x5423b9={};_0x5423b9['jaipE']=function(_0x517eda,_0x2987ee){return _0x517eda===_0x2987ee;},_0x5423b9['arwVJ']=_0x2cfdf6(0x1b4),_0x5423b9[_0x2cfdf6(0x1c2)]=function(_0x285127,_0x13f289){return _0x285127===_0x13f289;},_0x5423b9[_0x2cfdf6(0x1be)]=_0x2cfdf6(0x19d),_0x5423b9[_0x2cfdf6(0x1bb)]='bstackSdkArgs';const _0x2c0292=_0x5423b9;if(_0x2c0292[_0x2cfdf6(0x196)](_0x96c932[_0x2cfdf6(0x1a2)][_0x2cfdf6(0x1c3)],_0x2c0292['arwVJ']))return await _0x96c932[_0x2cfdf6(0x18c)](_0x240d6e,_0x11278a);else{if(_0x2c0292[_0x2cfdf6(0x1c2)](_0x96c932[_0x2cfdf6(0x1a2)][_0x2cfdf6(0x1c3)],_0x2c0292['rAnmB']))return await _0x96c932[_0x2cfdf6(0x16a)](_0x2cfdf6(0x172)+_0x240d6e[_0x2cfdf6(0x170)](/arguments/g,_0x2c0292[_0x2cfdf6(0x1bb)])+_0x2cfdf6(0x181)+JSON[_0x2cfdf6(0x188)](_0x11278a)+')');}},exports[a34_0x124007(0x191)]=async _0x5c09c9=>{const _0x33de99=a34_0x124007,_0x218117={};_0x218117['zTfgQ']='accessibilityOptions.wcagVersion',_0x218117[_0x33de99(0x18e)]=_0x33de99(0x1a6),_0x218117[_0x33de99(0x1a8)]=_0x33de99(0x182),_0x218117[_0x33de99(0x168)]=_0x33de99(0x1b5),_0x218117[_0x33de99(0x1bd)]=_0x33de99(0x16e),_0x218117[_0x33de99(0x171)]='accessibilityOptions.scannerVersion';const _0x48885f=_0x218117;_0x5c09c9[_0x33de99(0x199)]&&(_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x177)]&&(_0x5c09c9[_0x48885f[_0x33de99(0x1ab)]]=_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x177)]),_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x198)]&&(_0x5c09c9[_0x48885f[_0x33de99(0x18e)]]=_0x5c09c9['accessibilityOptions'][_0x33de99(0x198)]),_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x1c0)]&&(_0x5c09c9[_0x48885f[_0x33de99(0x1a8)]]=_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x1c0)][_0x33de99(0x180)],_0x5c09c9[_0x48885f[_0x33de99(0x168)]]=_0x5c09c9[_0x33de99(0x199)]['includeIssueType'][_0x33de99(0x1bf)]));const _0x32ea94=JSON[_0x33de99(0x16f)](process[_0x33de99(0x173)][_0x33de99(0x192)])[_0x33de99(0x193)];_0x5c09c9[_0x48885f[_0x33de99(0x1bd)]]=process[_0x33de99(0x173)]['BS_A11Y_JWT'],_0x5c09c9[_0x48885f[_0x33de99(0x171)]]=_0x32ea94,delete _0x5c09c9['accessibilityOptions'];},exports[a34_0x124007(0x1c4)]=async _0x4ebe40=>{const _0x459567=a34_0x124007,_0x3a1e16={};_0x3a1e16[_0x459567(0x17f)]=_0x459567(0x18b),_0x3a1e16['wfYFV']=_0x459567(0x1a5);const _0x391669=_0x3a1e16;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x4ebe40,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x4ebe40,scripts.getResults);return res;}catch{return logger[_0x459567(0x175)](_0x391669['jKbfo']),[];}else return logger[_0x459567(0x16c)](_0x391669[_0x459567(0x1bc)]),[];},exports[a34_0x124007(0x183)]=async(_0x383093,_0x147d3d='')=>{const _0x4518e1=a34_0x124007;if(global[_0x4518e1(0x16d)]){const _0x342a2e={};return _0x342a2e['method']=_0x147d3d,await exports[_0x4518e1(0x1c1)](_0x383093,scripts[_0x4518e1(0x183)],_0x342a2e);}},exports[a34_0x124007(0x197)]=async _0x35a494=>{const _0x23a5f4=a34_0x124007,_0x164acb={};_0x164acb['Smfmi']=_0x23a5f4(0x1a7),_0x164acb[_0x23a5f4(0x178)]=_0x23a5f4(0x1c5);const _0x69d01b=_0x164acb;if(global[_0x23a5f4(0x16d)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x35a494,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x35a494,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x69d01b['Smfmi']),{};}else return logger[_0x23a5f4(0x16c)](_0x69d01b[_0x23a5f4(0x178)]),{};},exports[a34_0x124007(0x160)]=async _0x5de6ba=>{const _0x2f2298=a34_0x124007,_0x5f2c69={'mGCRb':function(_0x207502,_0x278c0d){return _0x207502!==_0x278c0d;},'cyOpn':_0x2f2298(0x19c),'FZILB':function(_0x5e7ad8,_0x559458){return _0x5e7ad8===_0x559458;},'QznZh':_0x2f2298(0x1b9),'pLPWY':function(_0x16ddb4,_0x39eec){return _0x16ddb4===_0x39eec;},'WHJhu':'playwright-chromium','pOOLt':_0x2f2298(0x1ad),'MUdmG':function(_0x51bd41,_0x47886f){return _0x51bd41(_0x47886f);},'Nudzu':function(_0x18cb70,_0x1c05e8){return _0x18cb70===_0x1c05e8;},'tHJbS':'latest','sMbYi':function(_0x589d0c,_0xe9f393){return _0x589d0c>_0xe9f393;},'RcjrI':_0x2f2298(0x17e)};try{if(!_0x5f2c69[_0x2f2298(0x189)](_0x5de6ba['deviceName'],''))return logger[_0x2f2298(0x16c)](_0x5f2c69['cyOpn']),![];const _0x28b082=_0x5de6ba[_0x2f2298(0x1aa)];if(!(_0x5f2c69['FZILB'](_0x28b082,_0x5f2c69[_0x2f2298(0x1ae)])||_0x5f2c69[_0x2f2298(0x1a4)](_0x28b082,_0x5f2c69[_0x2f2298(0x186)])))return logger[_0x2f2298(0x16c)](_0x5f2c69[_0x2f2298(0x1a9)]),![];const _0x260576=_0x5f2c69[_0x2f2298(0x1a1)](parseInt,_0x5de6ba[_0x2f2298(0x1af)]);if(!(_0x5f2c69['Nudzu'](_0x260576,_0x5f2c69[_0x2f2298(0x19f)])||_0x5f2c69[_0x2f2298(0x19a)](_0x260576,0x5e)))return logger[_0x2f2298(0x16c)](_0x5f2c69['RcjrI']),![];}catch(_0x2aae69){logger['debug']('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x2f2298(0x18d)](_0x2aae69));}return!![];},exports['processAccessibilityCaps']=(_0x58d225,_0x284e26,_0xae3cb8)=>{const _0x3b1b20=a34_0x124007,_0x44a4ec={'CXPtr':function(_0x139f3a){return _0x139f3a();},'wyHPm':_0x3b1b20(0x1b7),'KGDRW':function(_0x27260f,_0x4f7306){return _0x27260f===_0x4f7306;},'IWTRV':'chrome','sPtOQ':_0x3b1b20(0x18f),'dcAvx':_0x3b1b20(0x1ad),'seTTB':'latest','mKluc':function(_0x2bd907,_0x1c8558){return _0x2bd907>_0x1c8558;},'GCVlh':_0x3b1b20(0x17e),'smLww':function(_0x52bd2e,_0xda3a9d){return _0x52bd2e(_0xda3a9d);},'LmDlO':_0x3b1b20(0x19c),'xhNSE':function(_0x45521f,_0x32c26b){return _0x45521f+_0x32c26b;},'QbAnz':function(_0x599768,_0x2196cc){return _0x599768(_0x2196cc);}};try{if(_0x44a4ec[_0x3b1b20(0x195)](isAccessibilityAutomationSession)){global[_0x3b1b20(0x16d)]=!![];!_0x58d225[_0x44a4ec['wyHPm']]&&(global[_0x3b1b20(0x16d)]=![]);!(_0x44a4ec[_0x3b1b20(0x19e)](_0x58d225[_0x3b1b20(0x166)],_0x44a4ec[_0x3b1b20(0x190)])||_0x44a4ec[_0x3b1b20(0x19e)](_0x58d225['browserName'],_0x44a4ec[_0x3b1b20(0x1b1)]))&&(logger[_0x3b1b20(0x16c)](_0x44a4ec['dcAvx']),global[_0x3b1b20(0x16d)]=![]);!(_0x44a4ec[_0x3b1b20(0x19e)](_0x58d225[_0x3b1b20(0x1af)],_0x44a4ec[_0x3b1b20(0x174)])||_0x44a4ec[_0x3b1b20(0x167)](_0x58d225['browser_version'],0x5e))&&(logger[_0x3b1b20(0x16c)](_0x44a4ec[_0x3b1b20(0x163)]),global['accessibilityPlatform']=![]);!_0x44a4ec['smLww'](isUndefined,_0x58d225[_0x3b1b20(0x17a)])&&(logger[_0x3b1b20(0x16c)](_0x44a4ec['LmDlO']),global[_0x3b1b20(0x16d)]=![]);if(!global[_0x3b1b20(0x16d)]){_0x58d225[_0x44a4ec[_0x3b1b20(0x169)]]=![];const _0x320e91=_0x44a4ec['xhNSE'](_0x284e26,_0x44a4ec[_0x3b1b20(0x179)](encodeURIComponent,JSON[_0x3b1b20(0x188)](_0x58d225)));_0xae3cb8&&(_0xae3cb8['currentTest'][_0x3b1b20(0x1c6)][_0x3b1b20(0x16b)][_0x3b1b20(0x164)][_0x3b1b20(0x1b6)][_0x3b1b20(0x185)]=_0x320e91,_0xae3cb8[_0x3b1b20(0x161)][_0x3b1b20(0x16b)][_0x3b1b20(0x164)][_0x3b1b20(0x1b6)][_0x3b1b20(0x185)]=_0x320e91);}}}catch(_0x431103){logger[_0x3b1b20(0x1a0)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x3b1b20(0x18d)](_0x431103));}};function a34_0x157b(){const _0x10851c=['env','seTTB','error','bDocw','wcagVersion','xtRUX','QbAnz','deviceName','6350832yrEMmR','../../helpers/helper','1059867HZOmVP','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','jKbfo','bestPractice','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','accessibilityOptions.includeIssueType.bestPractice','performScan','util','wsEndpoint','WHJhu','4402433ZHLinx','stringify','mGCRb','351789rkhscW','No\x20accessibility\x20results\x20were\x20found.','executeAsyncScript','format','tpcvG','playwright-chromium','IWTRV','setAccessibilityCapabilities','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','scannerVersion','190340EGHaIP','CXPtr','jaipE','getAccessibilityResultsSummary','scannerProcessingTimeout','accessibilityOptions','sMbYi','2211728dqQHlh','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','Playwright','KGDRW','tHJbS','debug','MUdmG','constructor','evaluate','pLPWY','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','accessibilityOptions.scannerProcessingTimeout','No\x20summaryResults\x20found.','JsqeO','pOOLt','browser','zTfgQ','winstonLogger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','QznZh','browser_version','751251JXZzBP','sPtOQ','4hvHvwA','../../helpers/accessibility-automation/scripts','WebDriver','accessibilityOptions.includeIssueType.needsReview','connectOptions','browserstack.accessibility','../../helpers/accessibility-automation/helper','chrome','../../helpers/logger','HbLGM','wfYFV','jmnfA','rAnmB','needsReview','includeIssueType','browserStackEvaluate','lgSTK','name','getAccessibilityResults','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','testInfo','platformValidation','workerInfo','(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','GCVlh','use','28sORkUJ','browserName','mKluc','XRqpw','wyHPm','executeScript','project','warn','accessibilityPlatform','accessibilityOptions.authToken','parse','replace','QXCEc','(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'];a34_0x157b=function(){return _0x10851c;};return a34_0x157b();}
|
|
1
|
+
const a34_0x7e201f=a34_0x1ba1;function a34_0x1ba1(_0x3f5e4d,_0x3e418a){const _0x2968b4=a34_0x2968();return a34_0x1ba1=function(_0x1ba1d2,_0xd754ed){_0x1ba1d2=_0x1ba1d2-0xc0;let _0x4a844a=_0x2968b4[_0x1ba1d2];return _0x4a844a;},a34_0x1ba1(_0x3f5e4d,_0x3e418a);}(function(_0x5b0f90,_0xd7fe56){const _0x56baf0=a34_0x1ba1,_0x1e5fbf=_0x5b0f90();while(!![]){try{const _0x34049a=-parseInt(_0x56baf0(0xf9))/0x1+parseInt(_0x56baf0(0x12d))/0x2*(parseInt(_0x56baf0(0x126))/0x3)+-parseInt(_0x56baf0(0x10e))/0x4+parseInt(_0x56baf0(0x12b))/0x5*(parseInt(_0x56baf0(0xc5))/0x6)+-parseInt(_0x56baf0(0x119))/0x7+-parseInt(_0x56baf0(0xe9))/0x8*(parseInt(_0x56baf0(0xcb))/0x9)+parseInt(_0x56baf0(0xea))/0xa;if(_0x34049a===_0xd7fe56)break;else _0x1e5fbf['push'](_0x1e5fbf['shift']());}catch(_0x291522){_0x1e5fbf['push'](_0x1e5fbf['shift']());}}}(a34_0x2968,0xd832d));const util=require('util'),logger=require(a34_0x7e201f(0xf3))['winstonLogger'],{isAccessibilityAutomationSession}=require(a34_0x7e201f(0x12a)),{isUndefined}=require(a34_0x7e201f(0xc3)),scripts=require(a34_0x7e201f(0x10d));function a34_0x2968(){const _0x6c5eda=['getAccessibilityResults','processAccessibilityCaps','cRmJP','gaGcp','platformValidation','latest','executeAsyncScript','accessibilityOptions','CpKQO','dwyaf','YvpJw','executeScript','error','JYoDy','vLQqw','env','8MClYQY','24262440DSJjbO','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','wsEndpoint','BRkpc','cMVko','browserstack.accessibility','parse','debug','accessibilityOptions.includeIssueType.needsReview','../../helpers/logger','Playwright','No\x20accessibility\x20results\x20were\x20found.','bestPractice','bvfsS','accessibilityOptions.scannerProcessingTimeout','758792BQhvXZ','ccQSE','VHibW','connectOptions','accessibilityPlatform','currentTest','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','testInfo','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','leAaJ','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Mdqhg','accessibilityOptions.authToken','method','tbWWt','name','browserName','accessibilityOptions.includeIssueType.bestPractice','warn','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','../../helpers/accessibility-automation/scripts','4565580cGBGjw','includeIssueType','VHxBW','format','BSkGI','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','Dthdx','deviceName','kefZS','PdzkC','No\x20summaryResults\x20found.','9353841omHpvX','pstFq','CnINU','workerInfo','bstackSdkArgs','accessibilityOptions.wcagVersion','IIPlx','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','ITSdJ','wcagVersion','eWrfU','stringify','ocqmf','1260723rGrkaz','wTpRc','xAYJC','project','../../helpers/accessibility-automation/helper','284895DvNyuN','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','4tPVlQO','performScan','yYeRP','scannerProcessingTimeout','../../helpers/helper','use','108mOwaYf','WebDriver','ccDnu','WdNED','replace','needsReview','1533141dBjvyl','browserStackEvaluate','playwright-chromium','IraPm','HlDJT','constructor','gRgfu','accessibilityOptions.scannerVersion','chrome','yRYgm','browser','scannerVersion','browser_version','JaDdY'];a34_0x2968=function(){return _0x6c5eda;};return a34_0x2968();}exports[a34_0x7e201f(0xcc)]=async(_0x228914,_0x3e4903,_0x5473d3={})=>{const _0x5dc7ad=a34_0x7e201f,_0x456c20={};_0x456c20[_0x5dc7ad(0x117)]=_0x5dc7ad(0x11d);const _0x2f8f08=_0x456c20;return await _0x228914['evaluate'](_0x5dc7ad(0xff)+_0x3e4903[_0x5dc7ad(0xc9)](/arguments/g,_0x2f8f08[_0x5dc7ad(0x117)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x5dc7ad(0x124)](_0x5473d3)+')');},exports['browserStackExecuteDriver']=async(_0x4ede17,_0x38611b,_0x570404={})=>{const _0x1a9f52=a34_0x7e201f,_0x1bdfe8={};_0x1bdfe8[_0x1a9f52(0xf7)]=function(_0x1fb81a,_0x587828){return _0x1fb81a===_0x587828;},_0x1bdfe8[_0x1a9f52(0x107)]=_0x1a9f52(0xc6),_0x1bdfe8[_0x1a9f52(0x128)]=function(_0x1af8cd,_0x2f782e){return _0x1af8cd===_0x2f782e;},_0x1bdfe8[_0x1a9f52(0x11b)]=_0x1a9f52(0xf4),_0x1bdfe8['YvpJw']=_0x1a9f52(0x11d);const _0x471caf=_0x1bdfe8;if(_0x471caf[_0x1a9f52(0xf7)](_0x4ede17[_0x1a9f52(0xd0)][_0x1a9f52(0x108)],_0x471caf[_0x1a9f52(0x107)]))return await _0x4ede17[_0x1a9f52(0xdf)](_0x38611b,_0x570404);else{if(_0x471caf[_0x1a9f52(0x128)](_0x4ede17[_0x1a9f52(0xd0)][_0x1a9f52(0x108)],_0x471caf[_0x1a9f52(0x11b)]))return await _0x4ede17[_0x1a9f52(0xe4)]('(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'+_0x38611b['replace'](/arguments/g,_0x471caf[_0x1a9f52(0xe3)])+_0x1a9f52(0xeb)+JSON['stringify'](_0x570404)+')');}},exports['setAccessibilityCapabilities']=async _0x1ece4e=>{const _0x2b22b0=a34_0x7e201f,_0x82451b={};_0x82451b[_0x2b22b0(0x116)]=_0x2b22b0(0x11e),_0x82451b[_0x2b22b0(0xcf)]=_0x2b22b0(0xf8),_0x82451b[_0x2b22b0(0x121)]=_0x2b22b0(0x10a),_0x82451b[_0x2b22b0(0xc8)]=_0x2b22b0(0xf2),_0x82451b[_0x2b22b0(0x102)]=_0x2b22b0(0x105),_0x82451b[_0x2b22b0(0x11a)]=_0x2b22b0(0xd2);const _0x2d6214=_0x82451b;_0x1ece4e[_0x2b22b0(0xe0)]&&(_0x1ece4e[_0x2b22b0(0xe0)]['wcagVersion']&&(_0x1ece4e[_0x2d6214['kefZS']]=_0x1ece4e['accessibilityOptions'][_0x2b22b0(0x122)]),_0x1ece4e[_0x2b22b0(0xe0)][_0x2b22b0(0xc2)]&&(_0x1ece4e[_0x2d6214[_0x2b22b0(0xcf)]]=_0x1ece4e['accessibilityOptions']['scannerProcessingTimeout']),_0x1ece4e[_0x2b22b0(0xe0)][_0x2b22b0(0x10f)]&&(_0x1ece4e[_0x2d6214[_0x2b22b0(0x121)]]=_0x1ece4e[_0x2b22b0(0xe0)]['includeIssueType'][_0x2b22b0(0xf6)],_0x1ece4e[_0x2d6214[_0x2b22b0(0xc8)]]=_0x1ece4e['accessibilityOptions'][_0x2b22b0(0x10f)][_0x2b22b0(0xca)]));const _0x5e7a9b=JSON[_0x2b22b0(0xf0)](process[_0x2b22b0(0xe8)][_0x2b22b0(0x10c)])[_0x2b22b0(0xd6)];_0x1ece4e[_0x2d6214[_0x2b22b0(0x102)]]=process[_0x2b22b0(0xe8)]['BS_A11Y_JWT'],_0x1ece4e[_0x2d6214[_0x2b22b0(0x11a)]]=_0x5e7a9b,delete _0x1ece4e[_0x2b22b0(0xe0)];},exports[a34_0x7e201f(0xd9)]=async _0x309f66=>{const _0x2f0fae=a34_0x7e201f,_0xfe6ae3={};_0xfe6ae3[_0x2f0fae(0xfb)]=_0x2f0fae(0xf5),_0xfe6ae3[_0x2f0fae(0xe7)]=_0x2f0fae(0x101);const _0x1b6a4b=_0xfe6ae3;if(global[_0x2f0fae(0xfd)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x309f66,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x309f66,scripts.getResults);return res;}catch{return logger[_0x2f0fae(0xe5)](_0x1b6a4b['VHibW']),[];}else return logger[_0x2f0fae(0x10b)](_0x1b6a4b[_0x2f0fae(0xe7)]),[];},exports[a34_0x7e201f(0xc0)]=async(_0x3bfaf3,_0x4ea3b1='')=>{const _0x3019e2=a34_0x7e201f;if(global[_0x3019e2(0xfd)]){const _0x547112={};return _0x547112[_0x3019e2(0x106)]=_0x4ea3b1,await exports[_0x3019e2(0xcc)](_0x3bfaf3,scripts[_0x3019e2(0xc0)],_0x547112);}},exports['getAccessibilityResultsSummary']=async _0x589313=>{const _0x5d007c=a34_0x7e201f,_0x25cbde={};_0x25cbde[_0x5d007c(0xe6)]=_0x5d007c(0x118),_0x25cbde[_0x5d007c(0x110)]=_0x5d007c(0x120);const _0x383c5e=_0x25cbde;if(global[_0x5d007c(0xfd)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x589313,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x589313,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x383c5e[_0x5d007c(0xe6)]),{};}else return logger[_0x5d007c(0x10b)](_0x383c5e[_0x5d007c(0x110)]),{};},exports[a34_0x7e201f(0xdd)]=async _0x4eb69b=>{const _0x57c7dd=a34_0x7e201f,_0x35ca41={'cRmJP':function(_0x1472e7,_0x37e64b){return _0x1472e7!==_0x37e64b;},'RDYlj':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','IIPlx':function(_0x39267c,_0x4d1130){return _0x39267c===_0x4d1130;},'gRgfu':_0x57c7dd(0xd3),'yYeRP':'playwright-chromium','dwyaf':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','ccQSE':function(_0xd9d3f7,_0x1596c1){return _0xd9d3f7(_0x1596c1);},'BRkpc':_0x57c7dd(0xde),'ccDnu':function(_0x560a4f,_0x4b8441){return _0x560a4f>_0x4b8441;},'wTpRc':_0x57c7dd(0x103)};try{if(!_0x35ca41[_0x57c7dd(0xdb)](_0x4eb69b[_0x57c7dd(0x115)],''))return logger[_0x57c7dd(0x10b)](_0x35ca41['RDYlj']),![];const _0x463ee3=_0x4eb69b[_0x57c7dd(0xd5)];if(!(_0x35ca41[_0x57c7dd(0x11f)](_0x463ee3,_0x35ca41[_0x57c7dd(0xd1)])||_0x35ca41[_0x57c7dd(0x11f)](_0x463ee3,_0x35ca41[_0x57c7dd(0xc1)])))return logger['warn'](_0x35ca41[_0x57c7dd(0xe2)]),![];const _0x51df5c=_0x35ca41[_0x57c7dd(0xfa)](parseInt,_0x4eb69b[_0x57c7dd(0xd7)]);if(!(_0x35ca41['IIPlx'](_0x51df5c,_0x35ca41[_0x57c7dd(0xed)])||_0x35ca41[_0x57c7dd(0xc7)](_0x51df5c,0x5e)))return logger[_0x57c7dd(0x10b)](_0x35ca41[_0x57c7dd(0x127)]),![];}catch(_0x1703be){logger[_0x57c7dd(0xf1)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x57c7dd(0x111)](_0x1703be));}return!![];},exports[a34_0x7e201f(0xda)]=(_0x22f650,_0x42e11a,_0x5b2dc6)=>{const _0x54ec50=a34_0x7e201f,_0x3d5a64={'gaGcp':function(_0x259ebc){return _0x259ebc();},'CpKQO':_0x54ec50(0xef),'Mdqhg':function(_0x577b39,_0x23ebaa){return _0x577b39===_0x23ebaa;},'yVgRJ':_0x54ec50(0xd3),'eWrfU':_0x54ec50(0xcd),'ocqmf':_0x54ec50(0x12c),'NKqoz':_0x54ec50(0xde),'IraPm':function(_0x45cecc,_0x1991cc){return _0x45cecc>_0x1991cc;},'cMVko':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','BSkGI':function(_0x1bfd4a,_0x124626){return _0x1bfd4a(_0x124626);},'yRYgm':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','JaDdY':function(_0x3fa905,_0x1cc88b){return _0x3fa905+_0x1cc88b;},'Dthdx':function(_0x5e74d8,_0x239e53){return _0x5e74d8(_0x239e53);}};try{if(_0x3d5a64[_0x54ec50(0xdc)](isAccessibilityAutomationSession)){global[_0x54ec50(0xfd)]=!![];!_0x22f650[_0x3d5a64[_0x54ec50(0xe1)]]&&(global[_0x54ec50(0xfd)]=![]);!(_0x3d5a64[_0x54ec50(0x104)](_0x22f650[_0x54ec50(0x109)],_0x3d5a64['yVgRJ'])||_0x3d5a64[_0x54ec50(0x104)](_0x22f650[_0x54ec50(0x109)],_0x3d5a64[_0x54ec50(0x123)]))&&(logger[_0x54ec50(0x10b)](_0x3d5a64[_0x54ec50(0x125)]),global[_0x54ec50(0xfd)]=![]);!(_0x3d5a64[_0x54ec50(0x104)](_0x22f650['browser_version'],_0x3d5a64['NKqoz'])||_0x3d5a64[_0x54ec50(0xce)](_0x22f650[_0x54ec50(0xd7)],0x5e))&&(logger['warn'](_0x3d5a64[_0x54ec50(0xee)]),global['accessibilityPlatform']=![]);!_0x3d5a64[_0x54ec50(0x112)](isUndefined,_0x22f650[_0x54ec50(0x115)])&&(logger['warn'](_0x3d5a64[_0x54ec50(0xd4)]),global[_0x54ec50(0xfd)]=![]);if(!global['accessibilityPlatform']){_0x22f650[_0x3d5a64[_0x54ec50(0xe1)]]=![];const _0x5630da=_0x3d5a64[_0x54ec50(0xd8)](_0x42e11a,_0x3d5a64[_0x54ec50(0x114)](encodeURIComponent,JSON['stringify'](_0x22f650)));_0x5b2dc6&&(_0x5b2dc6[_0x54ec50(0xfe)][_0x54ec50(0x100)][_0x54ec50(0x129)]['use']['connectOptions'][_0x54ec50(0xec)]=_0x5630da,_0x5b2dc6[_0x54ec50(0x11c)][_0x54ec50(0x129)][_0x54ec50(0xc4)][_0x54ec50(0xfc)]['wsEndpoint']=_0x5630da);}}}catch(_0x4d1ee1){logger[_0x54ec50(0xf1)](_0x54ec50(0x113)+util['format'](_0x4d1ee1));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x449f89=a35_0x5238;(function(_0x1c52e6,_0x4b0e89){const _0x4e07e8=a35_0x5238,_0x5af607=_0x1c52e6();while(!![]){try{const _0x438560=-parseInt(_0x4e07e8(0x106))/0x1+parseInt(_0x4e07e8(0x119))/0x2*(-parseInt(_0x4e07e8(0xfe))/0x3)+parseInt(_0x4e07e8(0x135))/0x4*(parseInt(_0x4e07e8(0x115))/0x5)+parseInt(_0x4e07e8(0x15b))/0x6*(-parseInt(_0x4e07e8(0x148))/0x7)+-parseInt(_0x4e07e8(0xd1))/0x8+parseInt(_0x4e07e8(0x131))/0x9+parseInt(_0x4e07e8(0x100))/0xa;if(_0x438560===_0x4b0e89)break;else _0x5af607['push'](_0x5af607['shift']());}catch(_0x1b9e9e){_0x5af607['push'](_0x5af607['shift']());}}}(a35_0x1c70,0x9403e));const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x449f89(0xcd)),{format}=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),constants=require(a35_0x449f89(0x14c)),{FRAMEWORKS}=require(a35_0x449f89(0xe6)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x449f89(0x152)),{CrashReporter}=require(a35_0x449f89(0x144)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{checkAccessibilityPlatformConfig}=require(a35_0x449f89(0xfd)),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x449f89(0x107)),getUserPlaywrightConfig=async(_0x1cd5b5,_0x35b38e)=>{const _0x3c6623=a35_0x449f89,_0x315855={'nEqLy':function(_0xb5b102){return _0xb5b102();},'cGdkb':function(_0x51160e,_0x379fd7){return _0x51160e(_0x379fd7);},'uZRNL':function(_0x2c394c,_0x924dfc){return _0x2c394c(_0x924dfc);},'MCKik':_0x3c6623(0x130),'TEwXC':_0x3c6623(0xf0)},_0x3a0650=!helper[_0x3c6623(0x128)](_0x1cd5b5[_0x3c6623(0xe8)]),_0x1d7383=_0x3a0650?path[_0x3c6623(0xeb)](process['cwd'](),_0x1cd5b5[_0x3c6623(0xe8)]):process[_0x3c6623(0xcc)](),{resolveConfigFile:_0x55dde7,resolveConfigLocation:_0x7033fa}=helper[_0x3c6623(0x149)][_0x3c6623(0xec)](null,_0x315855[_0x3c6623(0x15e)](getConfigLoaderPath)),_0x116647=_0x55dde7?_0x315855[_0x3c6623(0x124)](_0x55dde7,_0x1d7383):helper[_0x3c6623(0x134)](_0x315855[_0x3c6623(0xcf)](_0x7033fa,_0x1d7383),[_0x315855['MCKik']]),_0x290844={};if(_0x3a0650){const _0x528338=_0x35b38e[_0x3c6623(0xe3)](_0x29c585=>_0x29c585==='--config'||_0x29c585==='-c'||_0x29c585[_0x3c6623(0x122)](_0x3c6623(0xf0)));_0x35b38e[_0x3c6623(0x103)](_0x528338,_0x35b38e[_0x528338][_0x3c6623(0x122)](_0x315855['TEwXC'])?0x1:0x2);}const _0x7d5192={};return _0x7d5192[_0x3c6623(0x137)]=_0x116647,_0x7d5192['config']=_0x290844,_0x7d5192;},handleO11yRerun=_0x384aa4=>{const _0x369861=a35_0x449f89,_0x5cbac9={};_0x5cbac9[_0x369861(0xff)]=function(_0x356efd,_0x1fda11){return _0x356efd!==_0x1fda11;},_0x5cbac9[_0x369861(0x15c)]=_0x369861(0x143),_0x5cbac9[_0x369861(0x13e)]=_0x369861(0x109);const _0x4374de=_0x5cbac9,_0x458c4f=helper[_0x369861(0xf7)](process[_0x369861(0x142)][_0x369861(0x145)]);if(_0x458c4f){const _0x41e5d9=process[_0x369861(0x142)][_0x369861(0x116)],_0x3dbd05=[];if(_0x4374de[_0x369861(0xff)](_0x41e5d9,_0x4374de[_0x369861(0x15c)])&&!helper[_0x369861(0x128)](_0x41e5d9)){_0x41e5d9[_0x369861(0x146)](',')['map'](_0x59d6a2=>{const _0x58b7eb=_0x369861;_0x3dbd05[_0x58b7eb(0x14d)]('('+_0x59d6a2[_0x58b7eb(0x10c)]()+')');});const _0x5f3613='^'+_0x3dbd05[_0x369861(0xfb)]('|')+'$';_0x384aa4[_0x369861(0x14d)](_0x4374de[_0x369861(0x13e)],_0x5f3613);}}},spawnOriginalProcess=_0x39341e=>{const _0x32ecc1=a35_0x449f89,_0x2169b6={'pmfcX':function(_0x224cfa,_0x36d131,_0x199799,_0x545cc2){return _0x224cfa(_0x36d131,_0x199799,_0x545cc2);},'VNKHG':'npx','cRHOc':_0x32ecc1(0xd0),'eTdLa':function(_0xf97149,_0x2bfd2c){return _0xf97149===_0x2bfd2c;},'avRVY':_0x32ecc1(0x110),'OoOxN':'inherit'};_0x2169b6[_0x32ecc1(0x120)](spawn,_0x2169b6[_0x32ecc1(0x12f)],[_0x2169b6[_0x32ecc1(0x147)],..._0x39341e['slice'](0x1)],{'shell':_0x2169b6[_0x32ecc1(0x12a)](process[_0x32ecc1(0x10f)],_0x2169b6['avRVY']),'stdio':_0x2169b6[_0x32ecc1(0x159)],'cwd':process['cwd']()});},isTestCommand=(_0x1bf6b3,_0x27a69a)=>{const _0xcd5f33=a35_0x449f89,_0xdc36e2={};_0xdc36e2['bgiss']=function(_0x4f79d6,_0x2fdd6b){return _0x4f79d6>_0x2fdd6b;},_0xdc36e2[_0xcd5f33(0xe4)]=function(_0x2b204b,_0x28c4a1){return _0x2b204b===_0x28c4a1;},_0xdc36e2['ViZHJ']='test';const _0x44e1a7=_0xdc36e2;if(_0x44e1a7[_0xcd5f33(0x153)](_0x27a69a[_0xcd5f33(0x133)],0x1)&&_0x44e1a7[_0xcd5f33(0xe4)](_0x27a69a[0x1],_0x44e1a7[_0xcd5f33(0xc8)]))return!![];return![];};function a35_0x5238(_0x7a37ae,_0xf7ac1b){const _0x1c70fb=a35_0x1c70();return a35_0x5238=function(_0x5238b8,_0x550307){_0x5238b8=_0x5238b8-0xc8;let _0xc3fe1b=_0x1c70fb[_0x5238b8];return _0xc3fe1b;},a35_0x5238(_0x7a37ae,_0xf7ac1b);}async function run(_0x422d83,_0x3e1273){const _0x3a05b0=a35_0x449f89,_0xbda195={'GSDPu':'.browserstack','Ajbvn':'pw_result.json','UfOua':function(_0x36564e,_0x2bf4ee){return _0x36564e+_0x2bf4ee;},'QyZVX':'Error\x20in\x20getting\x20funnel\x20data\x20results','hcXNH':_0x3a05b0(0x114),'ptlap':function(_0x5ae04b){return _0x5ae04b();},'BSFGv':'Error\x20in\x20closing\x20playwright','hngGl':_0x3a05b0(0x140),'ontmU':_0x3a05b0(0x101),'hARAy':_0x3a05b0(0x15d),'zEMNh':function(_0x13f1f0,_0x458720){return _0x13f1f0>=_0x458720;},'FAMEO':function(_0x103999,_0xe513f6){return _0x103999+_0xe513f6;},'vroXE':_0x3a05b0(0x11a),'ERIxt':function(_0x4122ab,_0x55da8b,_0x64339d){return _0x4122ab(_0x55da8b,_0x64339d);},'wSzDG':function(_0x465760,_0x5a6e33){return _0x465760(_0x5a6e33);},'LODxq':_0x3a05b0(0x14e),'BmtPC':_0x3a05b0(0xd5),'PHGAI':function(_0x4f7dd9,_0x1b341b){return _0x4f7dd9!=_0x1b341b;},'yEXzl':function(_0x5ab4ad,_0x3b44cd,_0x46f114){return _0x5ab4ad(_0x3b44cd,_0x46f114);},'ehltD':function(_0x4a4785,_0x14c474){return _0x4a4785(_0x14c474);},'bdjHa':function(_0x3558e5,_0x2cd9b1){return _0x3558e5===_0x2cd9b1;},'eezLR':_0x3a05b0(0xcb),'cJaRm':_0x3a05b0(0x15a),'MDLbG':function(_0x2e3f07,_0x1da669){return _0x2e3f07===_0x1da669;},'YMbvq':_0x3a05b0(0xd7),'bLHEa':_0x3a05b0(0x12d),'EChvK':function(_0x163f64,_0x3525d1){return _0x163f64-_0x3525d1;},'aKQZO':function(_0x19aa8c,_0x5189b3){return _0x19aa8c+_0x5189b3;},'VVJoF':'Updated\x20config\x20file\x20name\x20to\x20-\x20','YMECf':function(_0x29da12,_0xd1e48d){return _0x29da12>_0xd1e48d;},'mjoyJ':function(_0x13b3d2,_0x5db39f,_0x28aa37,_0x3676fc){return _0x13b3d2(_0x5db39f,_0x28aa37,_0x3676fc);},'tuZoM':_0x3a05b0(0x154),'KKEua':'playwright','gxjTj':_0x3a05b0(0xfa),'xQTZB':_0x3a05b0(0x14b),'lYcVq':_0x3a05b0(0x110),'RTaRF':'inherit','FcnxD':'close'};!helper[_0x3a05b0(0x157)](process[_0x3a05b0(0x142)][_0x3a05b0(0x141)])&&(process[_0x3a05b0(0x142)][_0x3a05b0(0x141)]=!![]);process[_0x3a05b0(0x11d)][_0x3a05b0(0xe9)](_0xbda195[_0x3a05b0(0xe0)])&&(process[_0x3a05b0(0x142)][_0x3a05b0(0x141)]=_0xbda195['ontmU'],_0x3e1273=_0x3e1273[_0x3a05b0(0xe7)](_0x1a0799=>_0x1a0799!==_0x3a05b0(0x140)));const _0x2bcbd1=_0x3e1273[_0x3a05b0(0xdd)](_0xbda195[_0x3a05b0(0x104)]);_0xbda195[_0x3a05b0(0x111)](_0x2bcbd1,0x0)&&(process[_0x3a05b0(0x142)][_0x3a05b0(0xca)]=_0xbda195['ontmU'],_0x3e1273=_0x3e1273[_0x3a05b0(0xe7)](_0x5db11b=>_0x5db11b!=='--disable-test-observability'));try{const _0x3e0174=path[_0x3a05b0(0xfb)](helper[_0x3a05b0(0x138)](),_0xbda195[_0x3a05b0(0xef)],_0xbda195['Ajbvn']);fs[_0x3a05b0(0xda)](_0x3e0174)&&fs['unlinkSync'](_0x3e0174);}catch(_0x3ce2a0){logger[_0x3a05b0(0xde)](_0xbda195['FAMEO'](_0xbda195['vroXE'],_0x3ce2a0));}if(!_0xbda195[_0x3a05b0(0xe1)](isTestCommand,_0x422d83,_0x3e1273)){_0xbda195[_0x3a05b0(0xf4)](spawnOriginalProcess,_0x3e1273);return;}const _0x2e6099=new BrowserStackSetup(_0x422d83,FRAMEWORKS[_0x3a05b0(0x13f)]);if(!_0x2e6099[_0x3a05b0(0xe8)]){logger['error'](_0xbda195['LODxq']);return;}await _0x2e6099[_0x3a05b0(0x156)]();!helper[_0x3a05b0(0x128)](_0x2e6099[_0x3a05b0(0x10b)])&&_0x2e6099['cliConfig'][_0x3a05b0(0x129)](_0xbda195[_0x3a05b0(0x117)])&&(process[_0x3a05b0(0x142)]['BROWSERSTACK_AUTOMATION']=_0x2e6099[_0x3a05b0(0x10b)]['get'](_0xbda195['BmtPC'])||!![]);_0xbda195['PHGAI'](_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0xee)],null)&&!helper[_0x3a05b0(0xf7)](process[_0x3a05b0(0x142)][_0x3a05b0(0xca)])&&(process[_0x3a05b0(0x142)][_0x3a05b0(0xca)]=process['env'][_0x3a05b0(0xca)]||_0x2e6099['config'][_0x3a05b0(0xee)]);const _0x1bf065=!helper[_0x3a05b0(0x157)](process['env'][_0x3a05b0(0xca)]);let _0x3caeeb=![];_0x2e6099['config'][_0x3a05b0(0x13b)]&&(_0x3caeeb=!![],process[_0x3a05b0(0x142)][_0x3a05b0(0x11f)]=_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0x13b)]);_0x2e6099['config'][_0x3a05b0(0x125)]&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x3a05b0(0x126)](_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0x125)]));const _0x216d56=_0x3e1273[_0x3a05b0(0x11c)](),_0x3581af=await _0xbda195[_0x3a05b0(0x112)](getUserPlaywrightConfig,_0x422d83,_0x3e1273);if(helper[_0x3a05b0(0x128)](_0x3581af)){_0xbda195[_0x3a05b0(0x14a)](spawnOriginalProcess,_0x216d56);return;}const _0x37f791=_0x3581af[_0x3a05b0(0x137)]?path[_0x3a05b0(0xd3)](_0x3581af[_0x3a05b0(0x137)]):process[_0x3a05b0(0xcc)]();process['env'][_0x3a05b0(0xd9)]=_0x37f791,await TestHubHandler[_0x3a05b0(0x139)](FRAMEWORKS[_0x3a05b0(0x13f)],_0x2e6099);_0x1bf065&&_0xbda195[_0x3a05b0(0x14a)](handleO11yRerun,_0x3e1273);let _0x201a38=_0xbda195['bdjHa'](process[_0x3a05b0(0x142)][_0x3a05b0(0x11f)],_0xbda195[_0x3a05b0(0x10d)]);_0x201a38=_0x201a38||_0xbda195['wSzDG'](checkAccessibilityPlatformConfig,_0x2e6099[_0x3a05b0(0xe8)]),process[_0x3a05b0(0x142)][_0x3a05b0(0x11f)]=_0x201a38;_0x201a38&&_0xbda195[_0x3a05b0(0xf4)](setAccessibilityCapabilities,_0x2e6099[_0x3a05b0(0xe8)]);const _0x28a224=path[_0x3a05b0(0xfb)](_0x3581af[_0x3a05b0(0x137)]?path[_0x3a05b0(0xd3)](_0x3581af[_0x3a05b0(0x137)]):process[_0x3a05b0(0xcc)](),_0xbda195[_0x3a05b0(0x113)]);fs[_0x3a05b0(0x12b)](_0x28a224,helper['serializeToYamlString'](_0x2e6099[_0x3a05b0(0xe8)])),process['env'][_0x3a05b0(0xed)]=_0x28a224,helper[_0x3a05b0(0xf8)]();let _0x11bd93='';_0xbda195[_0x3a05b0(0xce)](helper[_0x3a05b0(0xf2)](),constants[_0x3a05b0(0x14f)][_0x3a05b0(0xc9)])?_0x11bd93=_0xbda195[_0x3a05b0(0x108)]:_0x11bd93=_0xbda195[_0x3a05b0(0x150)];let _0x2e5f49='';if(helper['isTypescriptProject'](_0x3581af[_0x3a05b0(0x137)])){_0x2e5f49=_0x3a05b0(0xf5);const _0x41fe54=_0x11bd93[_0x3a05b0(0x146)]('.');_0x41fe54[_0xbda195[_0x3a05b0(0xe2)](_0x41fe54[_0x3a05b0(0x133)],0x1)]='ts',_0x11bd93=_0x41fe54[_0x3a05b0(0xfb)]('.'),logger[_0x3a05b0(0xde)](_0xbda195[_0x3a05b0(0x12e)](_0xbda195[_0x3a05b0(0xd8)],_0x11bd93));}else _0x2e5f49='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x371208=path[_0x3a05b0(0xfb)](_0x3581af['path']?path[_0x3a05b0(0xd3)](_0x3581af['path']):process['cwd'](),_0x11bd93);let _0x563d2b=_0x3581af[_0x3a05b0(0x137)]?_0x3581af['path']:'';_0x563d2b=_0xbda195[_0x3a05b0(0x15f)](_0x563d2b[_0x3a05b0(0x133)],0x0)?path[_0x3a05b0(0xeb)](_0x563d2b):'',process[_0x3a05b0(0x142)][_0x3a05b0(0x155)]=_0x563d2b;const _0x42c7ff=helper[_0x3a05b0(0x11e)](_0x2e6099[_0x3a05b0(0xe8)]);_0x42c7ff&&(_0x2e5f49=_0xbda195[_0x3a05b0(0xf1)](_0x3a05b0(0x12c)+_0x42c7ff+_0x3a05b0(0x10a),_0x2e5f49));helper['filterBrowserstackConfig']({},_0x3e1273),fs[_0x3a05b0(0x12b)](_0x371208,_0x2e5f49),helper[_0x3a05b0(0x118)]();const _0x265451=_0xbda195[_0x3a05b0(0xea)](spawn,_0xbda195[_0x3a05b0(0xd6)],[_0xbda195[_0x3a05b0(0x158)],_0xbda195['gxjTj'],_0xbda195['xQTZB'],_0x371208,..._0x3e1273[_0x3a05b0(0x13c)](0x2)],{'shell':_0xbda195[_0x3a05b0(0x105)](process[_0x3a05b0(0x10f)],_0xbda195[_0x3a05b0(0xdc)]),'stdio':_0xbda195[_0x3a05b0(0x11b)],'cwd':process['cwd'](),'env':Object['assign']({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x3a05b0(0x13d)](_0x422d83),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0x102)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0x102)][_0x3a05b0(0xd4)],'BROWSERSTACK_LOG_LEVEL':_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0xf3)]})}),_0x18227c=()=>{const _0x422ce1=_0x3a05b0;try{const _0x11587d=path[_0x422ce1(0xfb)](helper[_0x422ce1(0x138)](),_0xbda195[_0x422ce1(0xef)],_0xbda195[_0x422ce1(0x13a)]);if(fs[_0x422ce1(0xda)](_0x11587d)){let _0x52fa18=fs['readFileSync'](_0x11587d);_0x52fa18=JSON[_0x422ce1(0x10e)](_0x52fa18),_0x2e6099[_0x422ce1(0xf9)]=_0x52fa18,fs[_0x422ce1(0x136)](_0x11587d);}}catch(_0x2bf2ff){logger['debug'](_0xbda195[_0x422ce1(0x121)](_0xbda195[_0x422ce1(0xe5)],_0x2bf2ff));}};_0x265451['on'](_0xbda195[_0x3a05b0(0xd2)],async _0x4ee733=>{const _0x22b68f=_0x3a05b0;try{const _0x48729d=_0xbda195['hcXNH']['split']('|');let _0x381905=0x0;while(!![]){switch(_0x48729d[_0x381905++]){case'0':process['exitCode']=_0x4ee733;continue;case'1':logger['debug'](_0x22b68f(0xdf)+_0x4ee733);continue;case'2':fs[_0x22b68f(0x136)](_0x371208);continue;case'3':logger[_0x22b68f(0xdb)]('Deleting\x20'+_0x371208);continue;case'4':await TestHubHandler[_0x22b68f(0x151)]();continue;case'5':logger[_0x22b68f(0xde)](_0x22b68f(0x132)+_0x28a224);continue;case'6':fs[_0x22b68f(0x136)](_0x28a224);continue;case'7':await helper[_0x22b68f(0xf6)](_0x2e6099);continue;case'8':_0xbda195[_0x22b68f(0xfc)](_0x18227c);continue;}break;}}catch(_0x1b4aa0){logger[_0x22b68f(0xde)](_0xbda195[_0x22b68f(0x121)](_0xbda195[_0x22b68f(0x123)],_0x1b4aa0));}});}function a35_0x1c70(){const _0x237955=['true','cwd','child_process','MDLbG','uZRNL','playwright','3287112EFyJTU','FcnxD','dirname','skipSessionName','automation','tuZoM','playwright-browserstack-sdk.config.cjs','VVJoF','BROWSERSTACK_PW_CONFIG_DIR','existsSync','info','lYcVq','indexOf','debug','Playwright\x20process\x20exited\x20with\x20code\x20','hngGl','ERIxt','EChvK','findIndex','uJrSS','QyZVX','../../helpers/test-observability/constants','filter','config','includes','mjoyJ','resolve','apply','BROWSERSTACK_SETUP_CONFIG_PATH','testObservability','GSDPu','--config=','FAMEO','getPackageType','logLevel','wSzDG','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','finalExecution','isTrue','clearTempPWConfig','errorMessage','test','join','ptlap','../../helpers/accessibility-automation/helper','3490428YGfOrq','sjkAo','27248880aucxWe','false','testContextOptions','splice','hARAy','bdjHa','773896XdCgre','../../helpers/testhub/utils','YMbvq','--grep','\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();','cliConfig','trim','eezLR','parse','platform','win32','zEMNh','yEXzl','cJaRm','8|4|7|0|1|3|2|5|6','45545wFksRM','BROWSERSTACK_RERUN_TESTS','BmtPC','markSDKSetupComplete','2tluwbD','Error\x20in\x20deleting\x20playwright\x20results','RTaRF','concat','argv','getProxyUrl','BROWSERSTACK_TEST_ACCESSIBILITY_YML','pmfcX','UfOua','startsWith','BSFGv','cGdkb','accessibilityOptions','stringify','exports','isUndefined','has','eTdLa','writeFileSync','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','playwright-browserstack-sdk.config.js','aKQZO','VNKHG','resolvedConfigFile','4274091lhPoBe','Deleting\x20','length','nestedKeyValue','44JKnLDA','unlinkSync','path','homedir','launchBuild','Ajbvn','accessibility','slice','getConfigPath','HZsPq','PLAYWRIGHT','--disable-browserstack-automation','BROWSERSTACK_AUTOMATION','env','null','../../helpers/test-observability/error-handler','BROWSERSTACK_RERUN','split','cRHOc','483637htoUUN','requirePWModule','ehltD','--config','../utils/constants','push','BrowserStack\x20config\x20file\x20not\x20found.','PACKAGE_TYPE','bLHEa','stop','./reporter/pwUtils','bgiss','npx','USER_CONFIG_DETAILS_PATH','initialize','isFalse','KKEua','OoOxN','browserstackSetupConfig.json','30LYOLXj','AIWgA','--disable-test-observability','nEqLy','YMECf','ViZHJ','MODULE','BROWSERSTACK_TEST_OBSERVABILITY'];a35_0x1c70=function(){return _0x237955;};return a35_0x1c70();}module[a35_0x449f89(0x127)]=run;
|
|
2
|
+
'use strict';function a35_0x5898(_0x4b0939,_0x4c2198){const _0x5b1047=a35_0x5b10();return a35_0x5898=function(_0x5898f0,_0x9e84ab){_0x5898f0=_0x5898f0-0x1d6;let _0x3b137e=_0x5b1047[_0x5898f0];return _0x3b137e;},a35_0x5898(_0x4b0939,_0x4c2198);}const a35_0x3d716f=a35_0x5898;(function(_0x26472a,_0x142cc6){const _0x2b17f3=a35_0x5898,_0x37bc6a=_0x26472a();while(!![]){try{const _0x4bbd21=-parseInt(_0x2b17f3(0x262))/0x1*(parseInt(_0x2b17f3(0x20b))/0x2)+parseInt(_0x2b17f3(0x1da))/0x3*(-parseInt(_0x2b17f3(0x1f7))/0x4)+parseInt(_0x2b17f3(0x264))/0x5*(parseInt(_0x2b17f3(0x1f2))/0x6)+parseInt(_0x2b17f3(0x207))/0x7+-parseInt(_0x2b17f3(0x257))/0x8+parseInt(_0x2b17f3(0x249))/0x9+-parseInt(_0x2b17f3(0x1ef))/0xa;if(_0x4bbd21===_0x142cc6)break;else _0x37bc6a['push'](_0x37bc6a['shift']());}catch(_0x59761f){_0x37bc6a['push'](_0x37bc6a['shift']());}}}(a35_0x5b10,0xc61d4));const fs=require('fs'),path=require(a35_0x3d716f(0x24f)),{spawn}=require(a35_0x3d716f(0x1d7)),{format}=require(a35_0x3d716f(0x1f3)),logger=require(a35_0x3d716f(0x205))[a35_0x3d716f(0x1e2)],{default:BrowserStackSetup}=require(a35_0x3d716f(0x23b)),helper=require(a35_0x3d716f(0x1fb)),utilities=require(a35_0x3d716f(0x25c)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0x3d716f(0x22f)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x3d716f(0x1e5)),{CrashReporter}=require(a35_0x3d716f(0x200)),{getFrameworkVersion}=require(a35_0x3d716f(0x26f)),{checkAccessibilityPlatformConfig}=require(a35_0x3d716f(0x22d)),{setAccessibilityCapabilities}=require(a35_0x3d716f(0x230)),TestHubHandler=require(a35_0x3d716f(0x1f8)),{shouldProcessEventForTesthub}=require(a35_0x3d716f(0x25e)),getUserPlaywrightConfig=async(_0x2d907d,_0x3b1821)=>{const _0x585883=a35_0x3d716f,_0x3e91b1={'NxxfZ':function(_0x8d2a29){return _0x8d2a29();},'zhWik':function(_0x4fd872,_0x263328){return _0x4fd872(_0x263328);},'OBuMa':function(_0x320bc3,_0x93c51d){return _0x320bc3(_0x93c51d);},'CNvzO':'resolvedConfigFile','rgVDg':_0x585883(0x23c)},_0x5a8bdc=!helper['isUndefined'](_0x2d907d[_0x585883(0x1e4)]),_0x1086a5=_0x5a8bdc?path[_0x585883(0x244)](process[_0x585883(0x215)](),_0x2d907d[_0x585883(0x1e4)]):process[_0x585883(0x215)](),{resolveConfigFile:_0x5b2016,resolveConfigLocation:_0x21ff62}=helper[_0x585883(0x26d)][_0x585883(0x1e9)](null,_0x3e91b1[_0x585883(0x271)](getConfigLoaderPath)),_0x3525a3=_0x5b2016?_0x3e91b1[_0x585883(0x206)](_0x5b2016,_0x1086a5):helper[_0x585883(0x1eb)](_0x3e91b1[_0x585883(0x23a)](_0x21ff62,_0x1086a5),[_0x3e91b1['CNvzO']]),_0x5cc8a4={};if(_0x5a8bdc){const _0x3ffaad=_0x3b1821[_0x585883(0x1ed)](_0x436b43=>_0x436b43==='--config'||_0x436b43==='-c'||_0x436b43[_0x585883(0x210)]('--config='));_0x3b1821[_0x585883(0x1ea)](_0x3ffaad,_0x3b1821[_0x3ffaad][_0x585883(0x210)](_0x3e91b1['rgVDg'])?0x1:0x2);}const _0x40e5b1={};return _0x40e5b1['path']=_0x3525a3,_0x40e5b1[_0x585883(0x1e4)]=_0x5cc8a4,_0x40e5b1;},handleO11yRerun=_0x5dd0e7=>{const _0x2a461f=a35_0x3d716f,_0x4c281d={};_0x4c281d['SLxCq']=function(_0x5c5711,_0x108daf){return _0x5c5711!==_0x108daf;},_0x4c281d[_0x2a461f(0x23f)]=_0x2a461f(0x260),_0x4c281d[_0x2a461f(0x251)]=_0x2a461f(0x21a);const _0x3519cb=_0x4c281d,_0x1740c0=helper[_0x2a461f(0x258)](process[_0x2a461f(0x1f1)][_0x2a461f(0x224)]);if(_0x1740c0){const _0x214e1b=process['env'][_0x2a461f(0x216)],_0x48c610=[];if(_0x3519cb['SLxCq'](_0x214e1b,_0x3519cb[_0x2a461f(0x23f)])&&!helper[_0x2a461f(0x1dc)](_0x214e1b)){_0x214e1b[_0x2a461f(0x217)](',')[_0x2a461f(0x203)](_0x413f0c=>{const _0x7f2c0b=_0x2a461f;_0x48c610['push']('('+_0x413f0c[_0x7f2c0b(0x272)]()+')');});const _0x51af2f='^'+_0x48c610[_0x2a461f(0x231)]('|')+'$';_0x5dd0e7[_0x2a461f(0x21c)](_0x3519cb[_0x2a461f(0x251)],_0x51af2f);}}},spawnOriginalProcess=_0x393928=>{const _0x28f6b2=a35_0x3d716f,_0x1b3875={'SRpon':function(_0xfe9fb1,_0x46103d,_0xb0b0c9,_0x28ca41){return _0xfe9fb1(_0x46103d,_0xb0b0c9,_0x28ca41);},'snHLf':_0x28f6b2(0x235),'sHadK':'playwright','Yjgwf':function(_0x210559,_0x12c5df){return _0x210559===_0x12c5df;},'meiGn':_0x28f6b2(0x1d6),'ejjvx':_0x28f6b2(0x233)};_0x1b3875[_0x28f6b2(0x211)](spawn,_0x1b3875['snHLf'],[_0x1b3875[_0x28f6b2(0x246)],..._0x393928['slice'](0x1)],{'shell':_0x1b3875['Yjgwf'](process[_0x28f6b2(0x202)],_0x1b3875[_0x28f6b2(0x252)]),'stdio':_0x1b3875[_0x28f6b2(0x1dd)],'cwd':process['cwd']()});},isTestCommand=(_0x4e05b5,_0x4f38e6)=>{const _0x4deded=a35_0x3d716f,_0x4da7ca={};_0x4da7ca[_0x4deded(0x22e)]=function(_0x1100a7,_0x30178b){return _0x1100a7>_0x30178b;},_0x4da7ca[_0x4deded(0x227)]=function(_0x5db433,_0x3264a1){return _0x5db433===_0x3264a1;},_0x4da7ca[_0x4deded(0x20e)]=_0x4deded(0x1e3);const _0x193b63=_0x4da7ca;if(_0x193b63[_0x4deded(0x22e)](_0x4f38e6[_0x4deded(0x263)],0x1)&&_0x193b63['RXbBK'](_0x4f38e6[0x1],_0x193b63['dCRmU']))return!![];return![];};async function run(_0x530fb1,_0x2835e5){const _0x33dc48=a35_0x3d716f,_0x216b17={'fYrGF':'.browserstack','FpFHA':_0x33dc48(0x237),'Rsspw':function(_0x14159d,_0xe14cb6){return _0x14159d+_0xe14cb6;},'hchcO':_0x33dc48(0x256),'gYgUR':'2|5|4|3|1|6|0|8|7','WGNpe':function(_0x335a87){return _0x335a87();},'Bpbmv':_0x33dc48(0x209),'vMCtr':_0x33dc48(0x218),'oxnvq':_0x33dc48(0x1f6),'Wfkne':'--disable-test-observability','hGgQj':function(_0x2b9e95,_0x43db61){return _0x2b9e95>=_0x43db61;},'UzfXq':function(_0x308e84,_0x561f24){return _0x308e84+_0x561f24;},'AWjse':_0x33dc48(0x259),'qfGlG':function(_0x5c0915,_0x28d98b,_0x4ce1d7){return _0x5c0915(_0x28d98b,_0x4ce1d7);},'GGKTr':function(_0x287f5c,_0x2b3716){return _0x287f5c(_0x2b3716);},'yCfIg':_0x33dc48(0x26e),'RDyES':_0x33dc48(0x1e7),'EKENb':function(_0x32e973,_0x4c1e2f){return _0x32e973!=_0x4c1e2f;},'xJzXb':function(_0x44ad68,_0x1d710f,_0x50e15f){return _0x44ad68(_0x1d710f,_0x50e15f);},'bvGsZ':function(_0xf583ec,_0xb9f4b7){return _0xf583ec(_0xb9f4b7);},'yDpyk':function(_0x33e3f3,_0x36a7ec){return _0x33e3f3===_0x36a7ec;},'PWzpk':_0x33dc48(0x228),'HyAQu':_0x33dc48(0x269),'FFdBg':'playwright-browserstack-sdk.config.cjs','xJqIj':_0x33dc48(0x1ee),'xcGMT':function(_0x1a94af,_0x3e52d5){return _0x1a94af-_0x3e52d5;},'qqBzf':function(_0x4109b1,_0x5df6c3){return _0x4109b1+_0x5df6c3;},'vAZDt':_0x33dc48(0x25f),'IEixu':function(_0x47fa6d,_0x165c9c){return _0x47fa6d>_0x165c9c;},'kOQaf':function(_0x1e9046,_0x30825b){return _0x1e9046+_0x30825b;},'QRBCM':function(_0x5ab6f0,_0x2a5495,_0x47e0c6,_0x27d4c2){return _0x5ab6f0(_0x2a5495,_0x47e0c6,_0x27d4c2);},'btkOA':'npx','AEnCH':_0x33dc48(0x21e),'phyPG':_0x33dc48(0x1e3),'mZlzN':'--config','fVUAr':_0x33dc48(0x1d6),'LPDoV':_0x33dc48(0x233),'ICNmv':_0x33dc48(0x221)};!helper[_0x33dc48(0x1f4)](process[_0x33dc48(0x1f1)][_0x33dc48(0x267)])&&(process[_0x33dc48(0x1f1)][_0x33dc48(0x267)]=!![]);process['argv'][_0x33dc48(0x1d8)](_0x216b17[_0x33dc48(0x204)])&&(process[_0x33dc48(0x1f1)][_0x33dc48(0x267)]=_0x216b17['oxnvq'],_0x2835e5=_0x2835e5['filter'](_0x13e665=>_0x13e665!==_0x33dc48(0x218)));const _0x1f7a04=_0x2835e5[_0x33dc48(0x1e8)](_0x216b17[_0x33dc48(0x241)]);_0x216b17[_0x33dc48(0x24e)](_0x1f7a04,0x0)&&(process[_0x33dc48(0x1f1)][_0x33dc48(0x20f)]=_0x216b17[_0x33dc48(0x20a)],_0x2835e5=_0x2835e5[_0x33dc48(0x1fc)](_0x376de9=>_0x376de9!==_0x33dc48(0x22b)));try{const _0x4fee36=path[_0x33dc48(0x231)](helper['homedir'](),_0x216b17['fYrGF'],_0x216b17[_0x33dc48(0x26c)]);fs['existsSync'](_0x4fee36)&&fs[_0x33dc48(0x21d)](_0x4fee36);}catch(_0x37933d){logger[_0x33dc48(0x24a)](_0x216b17[_0x33dc48(0x245)](_0x216b17['AWjse'],_0x37933d));}if(!_0x216b17[_0x33dc48(0x255)](isTestCommand,_0x530fb1,_0x2835e5)){_0x216b17['GGKTr'](spawnOriginalProcess,_0x2835e5);return;}const _0x492715=new BrowserStackSetup(_0x530fb1,FRAMEWORKS['PLAYWRIGHT']);if(!_0x492715[_0x33dc48(0x1e4)]){logger['error'](_0x216b17['yCfIg']);return;}await _0x492715[_0x33dc48(0x214)]();!helper['isUndefined'](_0x492715[_0x33dc48(0x22c)])&&_0x492715[_0x33dc48(0x22c)]['has'](_0x216b17[_0x33dc48(0x1f9)])&&(process[_0x33dc48(0x1f1)]['BROWSERSTACK_AUTOMATION']=_0x492715[_0x33dc48(0x22c)][_0x33dc48(0x220)](_0x216b17[_0x33dc48(0x1f9)])||!![]);_0x216b17['EKENb'](_0x492715[_0x33dc48(0x1e4)][_0x33dc48(0x240)],null)&&!helper['isTrue'](process[_0x33dc48(0x1f1)][_0x33dc48(0x20f)])&&(process['env'][_0x33dc48(0x20f)]=process[_0x33dc48(0x1f1)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x492715[_0x33dc48(0x1e4)]['testObservability']);const _0x260838=!helper[_0x33dc48(0x1f4)](process[_0x33dc48(0x1f1)][_0x33dc48(0x20f)]);let _0x30a42e=![];_0x492715[_0x33dc48(0x1e4)][_0x33dc48(0x26a)]&&(_0x30a42e=!![],process[_0x33dc48(0x1f1)][_0x33dc48(0x229)]=_0x492715[_0x33dc48(0x1e4)][_0x33dc48(0x26a)]);_0x492715['config'][_0x33dc48(0x239)]&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x33dc48(0x201)](_0x492715[_0x33dc48(0x1e4)]['accessibilityOptions']));const _0x33a265=_0x2835e5[_0x33dc48(0x273)](),_0x151520=await _0x216b17[_0x33dc48(0x21b)](getUserPlaywrightConfig,_0x530fb1,_0x2835e5);if(helper[_0x33dc48(0x1dc)](_0x151520)){_0x216b17['GGKTr'](spawnOriginalProcess,_0x33a265);return;}const _0x35edd7=_0x151520[_0x33dc48(0x24f)]?path[_0x33dc48(0x25b)](_0x151520[_0x33dc48(0x24f)]):process[_0x33dc48(0x215)]();process['env']['BROWSERSTACK_PW_CONFIG_DIR']=_0x35edd7,await TestHubHandler[_0x33dc48(0x26b)](FRAMEWORKS[_0x33dc48(0x248)],_0x492715);_0x260838&&_0x216b17[_0x33dc48(0x247)](handleO11yRerun,_0x2835e5);let _0x138ae7=_0x216b17['yDpyk'](process[_0x33dc48(0x1f1)][_0x33dc48(0x229)],_0x216b17[_0x33dc48(0x24d)]);_0x138ae7=_0x138ae7||_0x216b17['bvGsZ'](checkAccessibilityPlatformConfig,_0x492715[_0x33dc48(0x1e4)]),process[_0x33dc48(0x1f1)][_0x33dc48(0x229)]=_0x138ae7;_0x138ae7&&_0x216b17[_0x33dc48(0x247)](setAccessibilityCapabilities,_0x492715[_0x33dc48(0x1e4)]);const _0x37a31d=path[_0x33dc48(0x231)](_0x151520[_0x33dc48(0x24f)]?path[_0x33dc48(0x25b)](_0x151520['path']):process['cwd'](),_0x216b17[_0x33dc48(0x1d9)]);fs[_0x33dc48(0x1e1)](_0x37a31d,helper[_0x33dc48(0x1fd)](_0x492715['config'])),process[_0x33dc48(0x1f1)][_0x33dc48(0x219)]=_0x37a31d,helper['clearTempPWConfig']();let _0x55c98e='';_0x216b17['yDpyk'](helper[_0x33dc48(0x1fe)](),constants[_0x33dc48(0x254)][_0x33dc48(0x21f)])?_0x55c98e=_0x216b17[_0x33dc48(0x232)]:_0x55c98e=_0x216b17['xJqIj'];let _0x16f462='';if(helper[_0x33dc48(0x208)](_0x151520[_0x33dc48(0x24f)])){_0x16f462=_0x33dc48(0x270);const _0x5d8c3b=_0x55c98e[_0x33dc48(0x217)]('.');_0x5d8c3b[_0x216b17[_0x33dc48(0x250)](_0x5d8c3b[_0x33dc48(0x263)],0x1)]='ts',_0x55c98e=_0x5d8c3b['join']('.'),logger[_0x33dc48(0x24a)](_0x216b17[_0x33dc48(0x25d)](_0x216b17[_0x33dc48(0x1f0)],_0x55c98e));}else _0x16f462='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x41a4ab=path[_0x33dc48(0x231)](_0x151520[_0x33dc48(0x24f)]?path[_0x33dc48(0x25b)](_0x151520[_0x33dc48(0x24f)]):process[_0x33dc48(0x215)](),_0x55c98e);let _0x5efdec=_0x151520[_0x33dc48(0x24f)]?_0x151520[_0x33dc48(0x24f)]:'';_0x5efdec=_0x216b17[_0x33dc48(0x265)](_0x5efdec[_0x33dc48(0x263)],0x0)?path['resolve'](_0x5efdec):'',process[_0x33dc48(0x1f1)][_0x33dc48(0x20c)]=_0x5efdec;const _0x20284d=helper['getProxyUrl'](_0x492715[_0x33dc48(0x1e4)]);_0x20284d&&(_0x16f462=_0x216b17[_0x33dc48(0x1ec)](_0x33dc48(0x223)+_0x20284d+_0x33dc48(0x242),_0x16f462));helper[_0x33dc48(0x23e)]({},_0x2835e5),fs[_0x33dc48(0x1e1)](_0x41a4ab,_0x16f462),helper[_0x33dc48(0x24b)]();const _0x154f19=_0x216b17['QRBCM'](spawn,_0x216b17[_0x33dc48(0x25a)],[_0x216b17[_0x33dc48(0x1e0)],_0x216b17[_0x33dc48(0x266)],_0x216b17[_0x33dc48(0x1de)],_0x41a4ab,..._0x2835e5[_0x33dc48(0x222)](0x2)],{'shell':_0x216b17[_0x33dc48(0x23d)](process[_0x33dc48(0x202)],_0x216b17['fVUAr']),'stdio':_0x216b17['LPDoV'],'cwd':process[_0x33dc48(0x215)](),'env':Object[_0x33dc48(0x226)]({},process[_0x33dc48(0x1f1)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x33dc48(0x22a)](_0x530fb1),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x492715['config'][_0x33dc48(0x24c)][_0x33dc48(0x213)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x492715[_0x33dc48(0x1e4)][_0x33dc48(0x24c)][_0x33dc48(0x1ff)],'BROWSERSTACK_LOG_LEVEL':_0x492715['config']['logLevel']})}),_0x490688=()=>{const _0x5217ce=_0x33dc48;try{const _0x176ef4=path[_0x5217ce(0x231)](helper[_0x5217ce(0x225)](),_0x216b17['fYrGF'],_0x216b17['FpFHA']);if(fs[_0x5217ce(0x20d)](_0x176ef4)){let _0x27c26e=fs[_0x5217ce(0x243)](_0x176ef4);_0x27c26e=JSON[_0x5217ce(0x268)](_0x27c26e),_0x492715['errorMessage']=_0x27c26e,fs[_0x5217ce(0x21d)](_0x176ef4);}}catch(_0x98f2b9){logger['debug'](_0x216b17[_0x5217ce(0x236)](_0x216b17[_0x5217ce(0x238)],_0x98f2b9));}};_0x154f19['on'](_0x216b17[_0x33dc48(0x1e6)],async _0xc907b0=>{const _0x2fb0fd=_0x33dc48;try{const _0x30be3e=_0x216b17[_0x2fb0fd(0x1f5)][_0x2fb0fd(0x217)]('|');let _0x34d146=0x0;while(!![]){switch(_0x30be3e[_0x34d146++]){case'0':fs[_0x2fb0fd(0x21d)](_0x41a4ab);continue;case'1':logger['debug'](_0x2fb0fd(0x261)+_0xc907b0);continue;case'2':_0x216b17[_0x2fb0fd(0x234)](_0x490688);continue;case'3':process['exitCode']=_0xc907b0;continue;case'4':await utilities[_0x2fb0fd(0x253)](_0x492715);continue;case'5':await TestHubHandler[_0x2fb0fd(0x212)]();continue;case'6':logger['info']('Deleting\x20'+_0x41a4ab);continue;case'7':fs[_0x2fb0fd(0x21d)](_0x37a31d);continue;case'8':logger[_0x2fb0fd(0x24a)](_0x2fb0fd(0x1fa)+_0x37a31d);continue;}break;}}catch(_0x4af78b){logger[_0x2fb0fd(0x24a)](_0x216b17['Rsspw'](_0x216b17[_0x2fb0fd(0x1db)],_0x4af78b));}});}function a35_0x5b10(){const _0x738d80=['child_process','includes','HyAQu','15tVxtXG','Bpbmv','isUndefined','ejjvx','mZlzN','exports','AEnCH','writeFileSync','winstonLogger','test','config','./reporter/pwUtils','ICNmv','automation','indexOf','apply','splice','nestedKeyValue','kOQaf','findIndex','playwright-browserstack-sdk.config.js','6941250YZSfWU','vAZDt','env','90582uEWxkB','util','isFalse','gYgUR','false','17164nsGvAB','../../helpers/testhub/testhubHandler','RDyES','Deleting\x20','../../helpers/helper','filter','serializeToYamlString','getPackageType','skipSessionName','../../helpers/test-observability/error-handler','stringify','platform','map','vMCtr','../../helpers/logger','zhWik','1043203VDkFnD','isTypescriptProject','Error\x20in\x20closing\x20playwright','oxnvq','447432UBBDLV','USER_CONFIG_DETAILS_PATH','existsSync','dCRmU','BROWSERSTACK_TEST_OBSERVABILITY','startsWith','SRpon','stop','skipSessionStatus','initialize','cwd','BROWSERSTACK_RERUN_TESTS','split','--disable-browserstack-automation','BROWSERSTACK_SETUP_CONFIG_PATH','--grep','xJzXb','push','unlinkSync','playwright','MODULE','get','close','slice','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','BROWSERSTACK_RERUN','homedir','assign','RXbBK','true','BROWSERSTACK_TEST_ACCESSIBILITY_YML','getConfigPath','--disable-test-observability','cliConfig','../../helpers/accessibility-automation/helper','BsKAv','../../helpers/test-observability/constants','./accessibility-helper','join','FFdBg','inherit','WGNpe','npx','Rsspw','pw_result.json','hchcO','accessibilityOptions','OBuMa','../../helpers/BrowserStackSetup','--config=','yDpyk','filterBrowserstackConfig','BNFOl','testObservability','Wfkne','\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();','readFileSync','resolve','UzfXq','sHadK','bvGsZ','PLAYWRIGHT','14364522pypvgt','debug','markSDKSetupComplete','testContextOptions','PWzpk','hGgQj','path','xcGMT','LyKbo','meiGn','finalExecution','PACKAGE_TYPE','qfGlG','Error\x20in\x20getting\x20funnel\x20data\x20results','3094696QnnoDx','isTrue','Error\x20in\x20deleting\x20playwright\x20results','btkOA','dirname','../../helpers/utilities','qqBzf','../../helpers/testhub/utils','Updated\x20config\x20file\x20name\x20to\x20-\x20','null','Playwright\x20process\x20exited\x20with\x20code\x20','1TxwxTW','length','130vdzxyL','IEixu','phyPG','BROWSERSTACK_AUTOMATION','parse','browserstackSetupConfig.json','accessibility','launchBuild','FpFHA','requirePWModule','BrowserStack\x20config\x20file\x20not\x20found.','../../helpers/test-observability/utils','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','NxxfZ','trim','concat','win32'];a35_0x5b10=function(){return _0x738d80;};return a35_0x5b10();}module[a35_0x3d716f(0x1df)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a36_0x1284(){const _0x3b9b6e=['vrpCK','util','xyqhr','../../helpers/helper','includes','1.33.0','fsAmG','format','Call\x20to\x20child\x20fork\x20with\x20args\x20','winstonLogger','Vsbcu','8Ehkmdc','58122lIVeGz','apply','KiisO','env','compareVersions','error','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','vZPCR','526341wkDyMC','../../helpers/test-observability/utils','RAyLC','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','Path\x20','./patches','config','1815164jtKOvl','WuNgC','55CGdlmQ','../../helpers/test-observability/constants','YhDHs','fork','PLAYWRIGHT','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','2614824gAkzTS','OmoYH','HDGUl','debug','child_process','toString','exports','isHandlePWErrorSet','Not\x20able\x20to\x20import\x20globalSetup','4750zCEeKT','ekFXi','442473ajtbXj','4161297ychhfY','./mock-process.js','FtnSq','528396XIfjxc','Running\x20existing\x20global\x20setup'];a36_0x1284=function(){return _0x3b9b6e;};return a36_0x1284();}function a36_0x9998(_0x1136e6,_0x8c2be8){const _0x128450=a36_0x1284();return a36_0x9998=function(_0x99983c,_0x2185b5){_0x99983c=_0x99983c-0x187;let _0xea05bb=_0x128450[_0x99983c];return _0xea05bb;},a36_0x9998(_0x1136e6,_0x8c2be8);}const a36_0x249ee6=a36_0x9998;(function(_0x137ed9,_0x137cb1){const _0x4c97b3=a36_0x9998,_0x36255f=_0x137ed9();while(!![]){try{const _0x5f06aa=-parseInt(_0x4c97b3(0x188))/0x1+-parseInt(_0x4c97b3(0x199))/0x2*(parseInt(_0x4c97b3(0x1a2))/0x3)+parseInt(_0x4c97b3(0x1a9))/0x4+parseInt(_0x4c97b3(0x1ab))/0x5*(-parseInt(_0x4c97b3(0x18c))/0x6)+-parseInt(_0x4c97b3(0x189))/0x7+-parseInt(_0x4c97b3(0x1b1))/0x8+parseInt(_0x4c97b3(0x19a))/0x9*(parseInt(_0x4c97b3(0x1ba))/0xa);if(_0x5f06aa===_0x137cb1)break;else _0x36255f['push'](_0x36255f['shift']());}catch(_0x2043e6){_0x36255f['push'](_0x36255f['shift']());}}}(a36_0x1284,0x76e76));const util=require(a36_0x249ee6(0x18f)),child_process=require(a36_0x249ee6(0x1b5)),{FRAMEWORKS}=require(a36_0x249ee6(0x1ac)),{getFrameworkVersion,debug}=require(a36_0x249ee6(0x1a3)),helper=require(a36_0x249ee6(0x191)),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a36_0x249ee6(0x1a7)),logger=require('../../helpers/logger')[a36_0x249ee6(0x197)];module[a36_0x249ee6(0x1b7)]=async function(_0x17660){const _0x34ca8f=a36_0x249ee6,_0x46cef3={'vZPCR':function(_0x2dc9e6,_0x202515){return _0x2dc9e6(_0x202515);},'KiisO':function(_0x4e6d00){return _0x4e6d00();},'fsAmG':_0x34ca8f(0x18a),'OmoYH':function(_0x1efa08){return _0x1efa08();},'FtnSq':function(_0x470e33,_0x41e77e){return _0x470e33(_0x41e77e);},'xyqhr':_0x34ca8f(0x18d),'RAyLC':function(_0xec8c5b,_0x199e15){return _0xec8c5b(_0x199e15);},'vrpCK':function(_0x394044,_0x275c60){return _0x394044>=_0x275c60;},'Vsbcu':_0x34ca8f(0x193),'qcFMK':function(_0x457258,_0x29a019,_0x119cdb){return _0x457258(_0x29a019,_0x119cdb);},'HDGUl':function(_0x5e8268,_0x47d982){return _0x5e8268!==_0x47d982;},'ekFXi':'function','WuNgC':_0x34ca8f(0x1b9),'YhDHs':function(_0x2adc83,_0x5a4f3f){return _0x2adc83(_0x5a4f3f);}},_0x2a133c=child_process['fork'];if(helper[_0x34ca8f(0x1b8)]())try{_0x46cef3[_0x34ca8f(0x1b2)](mockIsWorkerRedundant);}catch(_0x3c5882){logger[_0x34ca8f(0x1b4)](_0x34ca8f(0x1b0)+util[_0x34ca8f(0x195)](_0x3c5882));}child_process[_0x34ca8f(0x1ae)]=function(){const _0x435c21=_0x34ca8f;return _0x46cef3[_0x435c21(0x1a1)](debug,_0x435c21(0x196)+arguments[0x0]),arguments[0x0][_0x435c21(0x192)](_0x46cef3['KiisO'](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x46cef3[_0x435c21(0x194)]):logger[_0x435c21(0x19f)](_0x435c21(0x1a6)+_0x46cef3[_0x435c21(0x19c)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x2a133c[_0x435c21(0x19b)](null,arguments);};if(process[_0x34ca8f(0x19d)][_0x34ca8f(0x1a5)]){_0x46cef3[_0x34ca8f(0x18b)](debug,_0x46cef3[_0x34ca8f(0x190)]);try{const {loadGlobalHook:_0x2267eb}=helper['requirePWModule'][_0x34ca8f(0x19b)](null,_0x46cef3[_0x34ca8f(0x1b2)](getLoadUtilsPath)),_0x5528b7=_0x46cef3[_0x34ca8f(0x1a4)](getFrameworkVersion,FRAMEWORKS[_0x34ca8f(0x1af)]);let _0x8936ff=_0x17660;if(_0x46cef3[_0x34ca8f(0x18e)](helper[_0x34ca8f(0x19e)](_0x5528b7,_0x46cef3[_0x34ca8f(0x198)]),0x0)){const _0x35b832={};_0x35b832[_0x34ca8f(0x1a8)]=_0x17660,_0x8936ff=_0x35b832;}const _0x4d0581=await _0x46cef3['qcFMK'](_0x2267eb,_0x8936ff,process[_0x34ca8f(0x19d)][_0x34ca8f(0x1a5)]);if(_0x46cef3[_0x34ca8f(0x1b3)](typeof _0x4d0581,_0x46cef3[_0x34ca8f(0x187)]))throw new Error(_0x46cef3[_0x34ca8f(0x1aa)]);return _0x4d0581[_0x34ca8f(0x19b)](null,arguments);}catch(_0x1fb42f){_0x46cef3[_0x34ca8f(0x1ad)](debug,_0x34ca8f(0x1a0)+_0x1fb42f[_0x34ca8f(0x1b6)]());}}};
|