browserstack-node-sdk 1.34.10 → 1.34.11
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 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a29_0x2533(_0x2ecee3,_0x3774d8){const _0x1b6dfb=a29_0x1b6d();return a29_0x2533=function(_0x2533a7,_0x1c98b4){_0x2533a7=_0x2533a7-0x18f;let _0x3fd7e5=_0x1b6dfb[_0x2533a7];return _0x3fd7e5;},a29_0x2533(_0x2ecee3,_0x3774d8);}function a29_0x1b6d(){const _0x2b7832=['isPacProxy','eBxmX','exports','__setBrowserOptions','hPoGJ','quitCount_','agent_','mergeDeep','edgeOptions_','se:ieOptions','YTZvI','lJTFF','getHttpAgent','0|2|4|1|3|5','get','Proxy\x20set\x20to\x20','browserstackAgentObservability','XUlvV','https://','../../../hubAllocationMethods','zLqcl','IrRLU','8bLPvac','DgAhK','eapMB','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','originalBuilder','HttpClient','iZfIf','590887XOhCVu','requireHttpClient','global','208696suffou','getAccessibilityResults','246ZrRBDh','../../../helpers/logger','updateHubUrl','vzpRD','chromeOptions','12ciGhJz','setGlobal','__driversArray','goog:chromeOptions','caps_','build','AlnhP','overrideGet','url_','/wd/hub','getHubUrl','__drivers','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','path','getGlobal','Gixbs','cbBht','set','28fVTfQt','KNoxH','CAPABILITY_KEY','safari.options','../../../helpers/globals','proxy_','twVdX','Builder','then','ms:edgeOptions','nEZVe','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','storeOptimalHubUrl','capability','error','requireSeleniumWebdriver','../../../helpers/helper','newHubUrl','isBrowserstackInfra','CAbrk','safariOptions_','ieOptions','getRequestOptions','438524hxOkfI','FtdPY','BDTwN','forEach','RVlIO','27155bgpwEc','overrideExecute','push','isUndefined','winstonLogger','edgeOptions','__driver','dYIaT','NmUmj','browserStackLogLevel','split','ieOptions_','YbkyA','dYRyI','proxyUrl','proxySettings','nIurZ','../../../helpers/accessibility-automation/helper','object','logLevel','839976apHVPc','send','381093ksbEbZ','capabilities_','setCapabilities','Setting\x20Browserstack\x20capabilities','debug','LTDRk','Hub\x20url\x20set\x20to\x20','firefoxOptions_','grpNn','10bxSxka','chromeOptions_','session_','TyQzP','../../../bin/utils/constants','WOOPU','firefoxOptions','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','isAccessibilityPlatform','setServer','2247822JMcSZw'];a29_0x1b6d=function(){return _0x2b7832;};return a29_0x1b6d();}const a29_0x6aebee=a29_0x2533;(function(_0x1ea918,_0x5b9f54){const _0x31e85f=a29_0x2533,_0x1bf321=_0x1ea918();while(!![]){try{const _0x795101=parseInt(_0x31e85f(0x1b4))/0x1+-parseInt(_0x31e85f(0x1e4))/0x2+parseInt(_0x31e85f(0x1ff))/0x3*(parseInt(_0x31e85f(0x1aa))/0x4)+parseInt(_0x31e85f(0x1e9))/0x5*(parseInt(_0x31e85f(0x1b6))/0x6)+parseInt(_0x31e85f(0x1cd))/0x7*(-parseInt(_0x31e85f(0x1fd))/0x8)+parseInt(_0x31e85f(0x193))/0x9*(parseInt(_0x31e85f(0x208))/0xa)+parseInt(_0x31e85f(0x1b1))/0xb*(-parseInt(_0x31e85f(0x1bb))/0xc);if(_0x795101===_0x5b9f54)break;else _0x1bf321['push'](_0x1bf321['shift']());}catch(_0x2bfe36){_0x1bf321['push'](_0x1bf321['shift']());}}}(a29_0x1b6d,0x3b22c));const logger=require(a29_0x6aebee(0x1b7))[a29_0x6aebee(0x1ed)],helper=require(a29_0x6aebee(0x1dd)),constants=require(a29_0x6aebee(0x20c)),hubAllocator=require(a29_0x6aebee(0x1a7)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x6aebee(0x1fa)),globals=require(a29_0x6aebee(0x1d1)),modify=(_0x566e1f,_0x5b5df6=null,_0x350ef8=![])=>{const _0x117ee3=a29_0x6aebee,_0x249f86={'RVlIO':function(_0x2877b8,_0x37033c){return _0x2877b8!==_0x37033c;},'dWcWW':'/session','dYIaT':function(_0x70c73e,_0x161a3a){return _0x70c73e!==_0x161a3a;},'grpNn':function(_0x71f3a3,_0xa9df81){return _0x71f3a3+_0xa9df81;},'hPoGJ':function(_0x1d921f,_0x48cd60){return _0x1d921f+_0x48cd60;},'IrRLU':_0x117ee3(0x1a6),'BDTwN':_0x117ee3(0x1c4),'KNoxH':_0x117ee3(0x1be),'LTDRk':_0x117ee3(0x1ba),'twVdX':_0x117ee3(0x1d6),'WOOPU':_0x117ee3(0x1ee),'lJTFF':'moz:firefoxOptions','oCZKW':_0x117ee3(0x18f),'YbkyA':_0x117ee3(0x1d0),'nwGJS':_0x117ee3(0x19d),'eBxmX':_0x117ee3(0x1e2),'CAbrk':function(_0x4677b7,_0x499552){return _0x4677b7===_0x499552;},'zLqcl':_0x117ee3(0x1fb),'AlnhP':_0x117ee3(0x202),'XUlvV':'optimalHubUrl','nEZVe':_0x117ee3(0x1c7),'AlAle':function(_0x30c93b,_0x5e8ff4,_0x194a61){return _0x30c93b(_0x5e8ff4,_0x194a61);},'TyQzP':function(_0x1c0a97,_0x16e0b0,_0x3970a9){return _0x1c0a97(_0x16e0b0,_0x3970a9);},'nIurZ':function(_0x57c32f,_0x20fc1b){return _0x57c32f(_0x20fc1b);},'dYRyI':function(_0x1cd687,_0x2a3088,_0x10e2ea){return _0x1cd687(_0x2a3088,_0x10e2ea);},'hsmHE':_0x117ee3(0x1a1),'eapMB':function(_0x1038c0){return _0x1038c0();},'YTZvI':_0x117ee3(0x191),'CxImV':_0x117ee3(0x1d8),'vzpRD':function(_0xb9f59f,_0x194f79){return _0xb9f59f(_0x194f79);},'cbBht':function(_0x21971d,_0x4a2574){return _0x21971d!==_0x4a2574;},'Gixbs':function(_0x20bacd,_0x51a034){return _0x20bacd!==_0x51a034;},'NmUmj':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','FtdPY':'Modifying\x20webdriver\x20builder'},_0x4ff5a3=helper[_0x117ee3(0x1b2)]();let _0x1e2d16;try{_0x1e2d16=helper[_0x117ee3(0x1dc)](),_0x1e2d16[_0x117ee3(0x1ae)]&&(_0x1e2d16[_0x117ee3(0x1d4)]=_0x1e2d16[_0x117ee3(0x1ae)]);}catch(_0x554ce0){return;}if(helper[_0x117ee3(0x1df)]()){const _0x43515b={};_0x43515b[_0x117ee3(0x1fc)]=_0x566e1f[_0x117ee3(0x1f2)],helper['setLogLevel'](_0x43515b,new Map(),new Map()),logger['info'](_0x249f86[_0x117ee3(0x1f1)]),logger['debug'](_0x249f86[_0x117ee3(0x1e5)]);}class _0x3bd8a7 extends _0x4ff5a3['HttpClient']{['send'](_0x21aab0){const _0x5b8268=_0x117ee3;if(_0x249f86[_0x5b8268(0x1e8)](_0x21aab0[_0x5b8268(0x1c8)],_0x249f86['dWcWW'])&&_0x249f86[_0x5b8268(0x1f0)](global[_0x5b8268(0x1de)],''))try{global[_0x5b8268(0x1de)]=_0x249f86[_0x5b8268(0x207)](_0x249f86[_0x5b8268(0x198)](_0x249f86[_0x5b8268(0x1a9)],global['newHubUrl']),_0x249f86[_0x5b8268(0x1e6)]),this['options_']=hubAllocator[_0x5b8268(0x1e3)](global[_0x5b8268(0x1de)]),logger[_0x5b8268(0x203)]('New\x20hub\x20url\x20set\x20to\x20'+global[_0x5b8268(0x1de)]),global[_0x5b8268(0x1de)]='';}catch(_0x35b8b6){logger[_0x5b8268(0x1db)](_0x35b8b6);}return super[_0x5b8268(0x1fe)](_0x21aab0);}}class _0x20684e extends _0x1e2d16[_0x117ee3(0x1d4)]{[_0x117ee3(0x192)](){const _0x3aadf3=_0x117ee3;return this[_0x3aadf3(0x1c3)]=helper[_0x3aadf3(0x1c5)](_0x566e1f),logger['debug'](_0x3aadf3(0x205)+this[_0x3aadf3(0x1c3)]),this;}[_0x117ee3(0x197)](_0x3f4f10){const _0x4d4592=_0x117ee3;let _0x7b640d={};for(const _0x36ea3b in _0x3f4f10){switch(_0x36ea3b){case _0x249f86[_0x4d4592(0x1ce)]:case _0x249f86[_0x4d4592(0x204)]:this[_0x4d4592(0x209)]&&(_0x7b640d=this[_0x4d4592(0x209)][_0x4d4592(0x1a2)](this[_0x4d4592(0x209)]['CAPABILITY_KEY'])||{},this['chromeOptions_'][_0x4d4592(0x1cc)](this['chromeOptions_'][_0x4d4592(0x1cf)],helper[_0x4d4592(0x19b)](_0x7b640d,_0x3f4f10[_0x36ea3b])));break;case _0x249f86[_0x4d4592(0x1d3)]:case _0x249f86[_0x4d4592(0x20d)]:this[_0x4d4592(0x19c)]&&(_0x7b640d=this[_0x4d4592(0x19c)]['get'](this[_0x4d4592(0x19c)][_0x4d4592(0x1cf)])||{},this[_0x4d4592(0x19c)]['set'](this[_0x4d4592(0x19c)]['CAPABILITY_KEY'],helper[_0x4d4592(0x19b)](_0x7b640d,_0x3f4f10[_0x36ea3b])));break;case _0x249f86[_0x4d4592(0x19f)]:case _0x249f86['oCZKW']:this[_0x4d4592(0x206)]&&(_0x7b640d=this['firefoxOptions_'][_0x4d4592(0x1a2)](this[_0x4d4592(0x206)][_0x4d4592(0x1cf)])||{},this[_0x4d4592(0x206)][_0x4d4592(0x1cc)](this[_0x4d4592(0x206)][_0x4d4592(0x1cf)],helper['mergeDeep'](_0x7b640d,_0x3f4f10[_0x36ea3b])));break;case _0x249f86[_0x4d4592(0x1f5)]:this[_0x4d4592(0x1e1)]&&(_0x7b640d=this['safariOptions_'][_0x4d4592(0x1a2)](this[_0x4d4592(0x1e1)]['CAPABILITY_KEY'])||{},this[_0x4d4592(0x1e1)]['set'](this['safariOptions_'][_0x4d4592(0x1cf)],helper['mergeDeep'](_0x7b640d,_0x3f4f10[_0x36ea3b])));break;case _0x249f86['nwGJS']:case _0x249f86[_0x4d4592(0x195)]:this[_0x4d4592(0x1f4)]&&(_0x7b640d=this[_0x4d4592(0x1f4)][_0x4d4592(0x1a2)](this[_0x4d4592(0x1f4)]['CAPABILITY_KEY'])||{},this[_0x4d4592(0x1f4)][_0x4d4592(0x1cc)](this['ieOptions_'][_0x4d4592(0x1cf)],helper[_0x4d4592(0x19b)](_0x7b640d,_0x3f4f10[_0x36ea3b])));break;}}}['setCapabilities'](){const _0x457733=_0x117ee3;return logger[_0x457733(0x203)](_0x249f86[_0x457733(0x1c1)]),this[_0x457733(0x197)](_0x566e1f[_0x457733(0x1da)]),Object['keys'](_0x566e1f['capability'])[_0x457733(0x1e7)](_0x452d43=>{const _0x32e784=_0x457733,_0x4e19bb=this['capabilities_'][_0x32e784(0x1a2)](_0x452d43);_0x249f86[_0x32e784(0x1e0)](typeof _0x4e19bb,_0x249f86[_0x32e784(0x1a8)])?this[_0x32e784(0x200)]['set'](_0x452d43,helper[_0x32e784(0x19b)](_0x4e19bb,_0x566e1f[_0x32e784(0x1da)][_0x452d43])):this[_0x32e784(0x200)][_0x32e784(0x1cc)](_0x452d43,_0x566e1f['capability'][_0x452d43]);}),this;}[_0x117ee3(0x1c0)](){const _0xdd7179=_0x117ee3,_0x372eab={'DgAhK':function(_0x25d464,_0x2f257e,_0x2284fe){const _0x4afdb3=a29_0x2533;return _0x249f86[_0x4afdb3(0x1f6)](_0x25d464,_0x2f257e,_0x2284fe);}};if(helper[_0xdd7179(0x1df)]()){const _0x56f720=_0x249f86['hsmHE'][_0xdd7179(0x1f3)]('|');let _0x18962f=0x0;while(!![]){switch(_0x56f720[_0x18962f++]){case'0':_0x249f86[_0xdd7179(0x1ac)](isAccessibilityAutomationSession)&&_0x249f86[_0xdd7179(0x1f9)](setAccessibilityCapabilities,_0x566e1f);continue;case'1':if(helper[_0xdd7179(0x194)](_0x566e1f['proxySettings'][_0xdd7179(0x1f7)]))this[_0xdd7179(0x19a)]=helper[_0xdd7179(0x1a0)](_0x566e1f[_0xdd7179(0x1f8)][_0xdd7179(0x1f7)]);else _0x566e1f[_0xdd7179(0x1f8)][_0xdd7179(0x1f7)]&&(this['proxy_']=_0x566e1f[_0xdd7179(0x1f8)][_0xdd7179(0x1f7)],logger[_0xdd7179(0x203)](_0xdd7179(0x1a3)+this[_0xdd7179(0x1d2)]));continue;case'2':this[_0xdd7179(0x192)]();continue;case'3':globals[_0xdd7179(0x1c9)](_0x249f86[_0xdd7179(0x19e)])&&(!_0x249f86[_0xdd7179(0x20b)](setExtension,this,_0x566e1f)&&globals[_0xdd7179(0x1bc)](_0x249f86[_0xdd7179(0x19e)],![]));continue;case'4':this[_0xdd7179(0x201)]();continue;case'5':logger[_0xdd7179(0x203)](_0x249f86['CxImV']);continue;}break;}}const _0x117c83=super[_0xdd7179(0x1c0)]();return _0x117c83[_0xdd7179(0x20a)][_0xdd7179(0x1d5)](_0x3c799a=>{const _0x409b38=_0xdd7179;try{const _0x45e0f2=_0x3c799a[_0x409b38(0x1bf)][_0x409b38(0x1a2)](_0x249f86[_0x409b38(0x1a5)]);_0x45e0f2?(logger[_0x409b38(0x203)](_0x409b38(0x1ad)+_0x45e0f2),hubAllocator[_0x409b38(0x1b8)](_0x45e0f2),helper[_0x409b38(0x1d9)](_0x45e0f2)):logger['debug'](_0x249f86[_0x409b38(0x1d7)]);}catch(_0x5b7e99){logger[_0x409b38(0x203)](_0x409b38(0x190)+_0x5b7e99);}}),_0x117c83[_0xdd7179(0x199)]=0x0,_0x117c83[_0xdd7179(0x1d5)]&&_0x117c83[_0xdd7179(0x1d5)](_0x1ca79b=>{const _0xec94e3=_0xdd7179,_0x631bd9={'iZfIf':function(_0x2bd906,_0x5084e4,_0x4230c9){return _0x249f86['AlAle'](_0x2bd906,_0x5084e4,_0x4230c9);}};_0x249f86[_0xec94e3(0x20b)](overrideQuit,_0x1ca79b,_0x117c83),_0x249f86[_0xec94e3(0x1f9)](overrideTakeScreenshot,_0x1ca79b),helper[_0xec94e3(0x1c2)](_0x1ca79b,_0x566e1f),helper[_0xec94e3(0x1ea)](_0x1ca79b,_0x566e1f),_0x1ca79b['getAccessibilityResultsSummary']=async()=>{const _0x1a97f4=_0xec94e3;return await _0x372eab[_0x1a97f4(0x1ab)](getAccessibilityResultsSummary,_0x1ca79b,global);},_0x1ca79b[_0xec94e3(0x1b5)]=async()=>{const _0x4c6958=_0xec94e3;return await _0x631bd9[_0x4c6958(0x1b0)](getAccessibilityResults,_0x1ca79b,global);};}),_0x117c83['getAccessibilityResultsSummary']=async()=>{return await _0x249f86['TyQzP'](getAccessibilityResultsSummary,_0x117c83,global);},_0x117c83[_0xdd7179(0x1b5)]=async()=>{const _0x515965=_0xdd7179;return await _0x249f86[_0x515965(0x1f6)](getAccessibilityResults,_0x117c83,global);},_0x249f86[_0xdd7179(0x1f9)](overrideTakeScreenshot,_0x117c83),_0x249f86[_0xdd7179(0x1b9)](overrideQuit,_0x117c83),helper[_0xdd7179(0x1c2)](_0x117c83,_0x566e1f),helper[_0xdd7179(0x1ea)](_0x117c83,_0x566e1f),helper['isUndefined'](global['__driversArray'])&&(global[_0xdd7179(0x1bd)]=[]),helper[_0xdd7179(0x1ec)](global[_0xdd7179(0x1c6)])&&(global[_0xdd7179(0x1c6)]=[]),global['__driversArray'][_0xdd7179(0x1eb)](_0x117c83),global[_0xdd7179(0x1ef)]=_0x117c83,_0x249f86[_0xdd7179(0x1cb)](global[_0xdd7179(0x1c6)],undefined)&&global[_0xdd7179(0x1c6)][_0xdd7179(0x1eb)](_0x117c83),_0x5b5df6&&helper[_0xdd7179(0x1ec)](_0x5b5df6[_0xdd7179(0x1b3)]['__driversArray'])&&(_0x5b5df6[_0xdd7179(0x1b3)]['__driversArray']=[]),_0x5b5df6&&_0x249f86[_0xdd7179(0x1ca)](_0x5b5df6[_0xdd7179(0x1b3)]['__drivers'],undefined)&&(_0x5b5df6[_0xdd7179(0x1b3)][_0xdd7179(0x1c6)][_0xdd7179(0x1eb)](_0x117c83),_0x5b5df6[_0xdd7179(0x1b3)][_0xdd7179(0x1bd)][_0xdd7179(0x1eb)](_0x117c83)),_0x117c83;}}return _0x1e2d16[_0x117ee3(0x1ae)]=_0x1e2d16[_0x117ee3(0x1d4)],_0x1e2d16[_0x117ee3(0x1d4)]=_0x20684e,_0x4ff5a3[_0x117ee3(0x1af)]=_0x3bd8a7,_0x1e2d16;};module[a29_0x6aebee(0x196)][a29_0x6aebee(0x1a4)]=modify;
|
|
1
|
+
function a29_0x18c7(_0x1c9c04,_0x5f4858){const _0x4f73c1=a29_0x4f73();return a29_0x18c7=function(_0x18c760,_0x21fe57){_0x18c760=_0x18c760-0x84;let _0x540905=_0x4f73c1[_0x18c760];return _0x540905;},a29_0x18c7(_0x1c9c04,_0x5f4858);}function a29_0x4f73(){const _0x1bb1bc=['QckQy','capability','MlDbd','Xowik','../../../bin/utils/constants','ieOptions_','overrideGet','then','mergeDeep','firefoxOptions_','options_','isPacProxy','../../../helpers/globals','proxy_','Builder','session_','../../../helpers/patchHelpers','proxySettings','proxyUrl','ZfBGL','7aWDsAs','__driver','originalBuilder','../../../helpers/helper','Xwyua','sbiJg','1043716EsXbvy','ieOptions','259967wEEiBz','push','QZTCO','vXlqK','2242784UACfUe','send','keys','setCapabilities','Xibbk','rIURy','18996NQsppA','firefoxOptions','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','logLevel','FeoxO','updateHubUrl','build','url_','nApsR','EUFhV','setServer','caps_','getAccessibilityResultsSummary','../../../hubAllocationMethods','chromeOptions','HttpClient','/wd/hub','goog:chromeOptions','SfKpY','optimalHubUrl','getHttpAgent','get','__driversArray','moz:firefoxOptions','YFkOZ','mfTri','overrideExecute','Modifying\x20webdriver\x20builder','1241760VFBQvW','path','__setBrowserOptions','RlzVS','getGlobal','/session','split','edgeOptions_','296992jLdzdK','RNxkx','exports','NIXoo','object','Proxy\x20set\x20to\x20','LGobi','capabilities_','1|0|2|5|3|4','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','requireHttpClient','gaKuA','https://','CAPABILITY_KEY','agent_','debug','newHubUrl','tbeDW','getRequestOptions','browserstackAgentObservability','se:ieOptions','chromeOptions_','storeOptimalHubUrl','867618IwgRAx','Hub\x20url\x20set\x20to\x20','__drivers','LEXvJ','../../../helpers/accessibility-automation/helper','isBrowserstackInfra','BXNmL','error','set','isAccessibilityPlatform','zZCpO','YgWpk','wwmDU','../../../helpers/logger','20IDwzRZ','global','dwNEO','browserStackLogLevel','mveFL','ueRPR','POxCa','setGlobal','safariOptions_'];a29_0x4f73=function(){return _0x1bb1bc;};return a29_0x4f73();}const a29_0x2541c8=a29_0x18c7;(function(_0x599596,_0x5396ee){const _0x18357f=a29_0x18c7,_0x29837e=_0x599596();while(!![]){try{const _0x4d4da6=-parseInt(_0x18357f(0xc4))/0x1+-parseInt(_0x18357f(0xc2))/0x2+parseInt(_0x18357f(0xea))/0x3+parseInt(_0x18357f(0xc8))/0x4+parseInt(_0x18357f(0x9f))/0x5*(parseInt(_0x18357f(0xce))/0x6)+-parseInt(_0x18357f(0xbc))/0x7*(-parseInt(_0x18357f(0xf2))/0x8)+parseInt(_0x18357f(0x91))/0x9;if(_0x4d4da6===_0x5396ee)break;else _0x29837e['push'](_0x29837e['shift']());}catch(_0x2e41b0){_0x29837e['push'](_0x29837e['shift']());}}}(a29_0x4f73,0x52c25));const logger=require(a29_0x2541c8(0x9e))['winstonLogger'],helper=require(a29_0x2541c8(0xbf)),constants=require(a29_0x2541c8(0xac)),hubAllocator=require(a29_0x2541c8(0xdb)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x2541c8(0xb8)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x2541c8(0x95)),globals=require(a29_0x2541c8(0xb4)),modify=(_0x31a25d,_0x12a3f8=null,_0x437afa=![])=>{const _0x50cda8=a29_0x2541c8,_0x719a46={'ZfBGL':function(_0x459a0e,_0x16db8e){return _0x459a0e!==_0x16db8e;},'nApsR':_0x50cda8(0xef),'YgWpk':function(_0x5eb0cd,_0x3634a0){return _0x5eb0cd+_0x3634a0;},'mfTri':function(_0x349c47,_0x53d07a){return _0x349c47+_0x53d07a;},'sbiJg':_0x50cda8(0x86),'LEXvJ':_0x50cda8(0xde),'dwNEO':_0x50cda8(0xdf),'ouDRc':_0x50cda8(0xdc),'ueRPR':'ms:edgeOptions','mveFL':'edgeOptions','rIURy':_0x50cda8(0xe5),'wwmDU':_0x50cda8(0xcf),'vXlqK':'safari.options','Xibbk':_0x50cda8(0x8e),'RlzVS':_0x50cda8(0xc3),'SfKpY':function(_0x19c83f,_0x4928dd){return _0x19c83f===_0x4928dd;},'NIXoo':_0x50cda8(0xf6),'QZTCO':'Setting\x20Browserstack\x20capabilities','MlDbd':_0x50cda8(0xe1),'LGobi':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','RNxkx':function(_0x65eaf6,_0x5647c2,_0xb17702){return _0x65eaf6(_0x5647c2,_0xb17702);},'Xwyua':function(_0x449809,_0x2e5d67){return _0x449809(_0x2e5d67);},'FNvHw':_0x50cda8(0xfa),'MKVps':function(_0x36077e){return _0x36077e();},'YFkOZ':_0x50cda8(0x9a),'FeoxO':function(_0x3fe50a,_0x43020e,_0x4d4435){return _0x3fe50a(_0x43020e,_0x4d4435);},'ifakB':_0x50cda8(0xfb),'gaKuA':function(_0x329129,_0x44126f){return _0x329129(_0x44126f);},'zknPH':function(_0x2cfed5,_0x24a201){return _0x2cfed5!==_0x24a201;},'EUFhV':function(_0x52e289,_0x35b4be){return _0x52e289!==_0x35b4be;},'POxCa':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','QckQy':_0x50cda8(0xe9)},_0x2049e3=helper[_0x50cda8(0x84)]();let _0xfc3617;try{_0xfc3617=helper['requireSeleniumWebdriver'](),_0xfc3617[_0x50cda8(0xbe)]&&(_0xfc3617[_0x50cda8(0xb6)]=_0xfc3617[_0x50cda8(0xbe)]);}catch(_0x53e1d5){return;}if(helper[_0x50cda8(0x96)]()){const _0xb66cd2={};_0xb66cd2[_0x50cda8(0xd1)]=_0x31a25d[_0x50cda8(0xa2)],helper['setLogLevel'](_0xb66cd2,new Map(),new Map()),logger['info'](_0x719a46[_0x50cda8(0xa5)]),logger[_0x50cda8(0x89)](_0x719a46[_0x50cda8(0xa8)]);}class _0x7140bf extends _0x2049e3[_0x50cda8(0xdd)]{[_0x50cda8(0xc9)](_0x2e193d){const _0x5bf0ce=_0x50cda8;if(_0x719a46['ZfBGL'](_0x2e193d[_0x5bf0ce(0xeb)],_0x719a46[_0x5bf0ce(0xd6)])&&_0x719a46[_0x5bf0ce(0xbb)](global[_0x5bf0ce(0x8a)],''))try{global[_0x5bf0ce(0x8a)]=_0x719a46[_0x5bf0ce(0x9c)](_0x719a46[_0x5bf0ce(0xe7)](_0x719a46[_0x5bf0ce(0xc1)],global[_0x5bf0ce(0x8a)]),_0x719a46[_0x5bf0ce(0x94)]),this[_0x5bf0ce(0xb2)]=hubAllocator[_0x5bf0ce(0x8c)](global['newHubUrl']),logger[_0x5bf0ce(0x89)]('New\x20hub\x20url\x20set\x20to\x20'+global[_0x5bf0ce(0x8a)]),global[_0x5bf0ce(0x8a)]='';}catch(_0x375603){logger[_0x5bf0ce(0x98)](_0x375603);}return super['send'](_0x2e193d);}}class _0x2327ef extends _0xfc3617[_0x50cda8(0xb6)]{[_0x50cda8(0xd8)](){const _0x16cb3e=_0x50cda8;return this[_0x16cb3e(0xd5)]=helper['getHubUrl'](_0x31a25d),logger[_0x16cb3e(0x89)](_0x16cb3e(0x92)+this['url_']),this;}[_0x50cda8(0xec)](_0x317a60){const _0x35a184=_0x50cda8;let _0x1dc8f2={};for(const _0x3a860d in _0x317a60){switch(_0x3a860d){case _0x719a46[_0x35a184(0xa1)]:case _0x719a46['ouDRc']:this[_0x35a184(0x8f)]&&(_0x1dc8f2=this[_0x35a184(0x8f)]['get'](this[_0x35a184(0x8f)][_0x35a184(0x87)])||{},this[_0x35a184(0x8f)][_0x35a184(0x99)](this[_0x35a184(0x8f)][_0x35a184(0x87)],helper[_0x35a184(0xb0)](_0x1dc8f2,_0x317a60[_0x3a860d])));break;case _0x719a46[_0x35a184(0xa4)]:case _0x719a46[_0x35a184(0xa3)]:this[_0x35a184(0xf1)]&&(_0x1dc8f2=this[_0x35a184(0xf1)]['get'](this[_0x35a184(0xf1)][_0x35a184(0x87)])||{},this[_0x35a184(0xf1)]['set'](this[_0x35a184(0xf1)][_0x35a184(0x87)],helper[_0x35a184(0xb0)](_0x1dc8f2,_0x317a60[_0x3a860d])));break;case _0x719a46[_0x35a184(0xcd)]:case _0x719a46[_0x35a184(0x9d)]:this[_0x35a184(0xb1)]&&(_0x1dc8f2=this[_0x35a184(0xb1)][_0x35a184(0xe3)](this[_0x35a184(0xb1)][_0x35a184(0x87)])||{},this[_0x35a184(0xb1)][_0x35a184(0x99)](this['firefoxOptions_']['CAPABILITY_KEY'],helper[_0x35a184(0xb0)](_0x1dc8f2,_0x317a60[_0x3a860d])));break;case _0x719a46[_0x35a184(0xc7)]:this[_0x35a184(0xa7)]&&(_0x1dc8f2=this['safariOptions_'][_0x35a184(0xe3)](this[_0x35a184(0xa7)][_0x35a184(0x87)])||{},this['safariOptions_'][_0x35a184(0x99)](this[_0x35a184(0xa7)][_0x35a184(0x87)],helper['mergeDeep'](_0x1dc8f2,_0x317a60[_0x3a860d])));break;case _0x719a46[_0x35a184(0xcc)]:case _0x719a46[_0x35a184(0xed)]:this[_0x35a184(0xad)]&&(_0x1dc8f2=this[_0x35a184(0xad)][_0x35a184(0xe3)](this['ieOptions_'][_0x35a184(0x87)])||{},this[_0x35a184(0xad)][_0x35a184(0x99)](this[_0x35a184(0xad)]['CAPABILITY_KEY'],helper[_0x35a184(0xb0)](_0x1dc8f2,_0x317a60[_0x3a860d])));break;}}}[_0x50cda8(0xcb)](){const _0x50c841=_0x50cda8;return logger[_0x50c841(0x89)](_0x719a46[_0x50c841(0xc6)]),this['__setBrowserOptions'](_0x31a25d[_0x50c841(0xa9)]),Object[_0x50c841(0xca)](_0x31a25d[_0x50c841(0xa9)])['forEach'](_0x461744=>{const _0x148e0b=_0x50c841,_0x1642c3=this[_0x148e0b(0xf9)]['get'](_0x461744);_0x719a46[_0x148e0b(0xe0)](typeof _0x1642c3,_0x719a46[_0x148e0b(0xf5)])?this[_0x148e0b(0xf9)][_0x148e0b(0x99)](_0x461744,helper[_0x148e0b(0xb0)](_0x1642c3,_0x31a25d[_0x148e0b(0xa9)][_0x461744])):this[_0x148e0b(0xf9)][_0x148e0b(0x99)](_0x461744,_0x31a25d[_0x148e0b(0xa9)][_0x461744]);}),this;}['build'](){const _0x4544e7=_0x50cda8,_0x2a65c9={'BXNmL':function(_0x3eb510,_0x3174c5,_0x448515){const _0x5d8805=a29_0x18c7;return _0x719a46[_0x5d8805(0xf3)](_0x3eb510,_0x3174c5,_0x448515);},'zZCpO':function(_0x55109f,_0x3b15c9,_0x2c9aee){const _0x49c023=a29_0x18c7;return _0x719a46[_0x49c023(0xf3)](_0x55109f,_0x3b15c9,_0x2c9aee);},'tbeDW':function(_0x261d9d,_0x26151){const _0x453ba0=a29_0x18c7;return _0x719a46[_0x453ba0(0xc0)](_0x261d9d,_0x26151);}};if(helper[_0x4544e7(0x96)]()){const _0x2e0e6f=_0x719a46['FNvHw'][_0x4544e7(0xf0)]('|');let _0x3641a4=0x0;while(!![]){switch(_0x2e0e6f[_0x3641a4++]){case'0':this['setServer']();continue;case'1':_0x719a46['MKVps'](isAccessibilityAutomationSession)&&_0x719a46[_0x4544e7(0xc0)](setAccessibilityCapabilities,_0x31a25d);continue;case'2':this[_0x4544e7(0xcb)]();continue;case'3':globals[_0x4544e7(0xee)](_0x719a46['YFkOZ'])&&(!_0x719a46[_0x4544e7(0xd2)](setExtension,this,_0x31a25d)&&globals[_0x4544e7(0xa6)](_0x719a46[_0x4544e7(0xe6)],![]));continue;case'4':logger[_0x4544e7(0x89)](_0x719a46['ifakB']);continue;case'5':if(helper[_0x4544e7(0xb3)](_0x31a25d[_0x4544e7(0xb9)]['proxyUrl']))this[_0x4544e7(0x88)]=helper[_0x4544e7(0xe2)](_0x31a25d[_0x4544e7(0xb9)][_0x4544e7(0xba)]);else _0x31a25d['proxySettings'][_0x4544e7(0xba)]&&(this[_0x4544e7(0xb5)]=_0x31a25d[_0x4544e7(0xb9)][_0x4544e7(0xba)],logger[_0x4544e7(0x89)](_0x4544e7(0xf7)+this['proxy_']));continue;}break;}}const _0x436daf=super[_0x4544e7(0xd4)]();return _0x436daf[_0x4544e7(0xb7)][_0x4544e7(0xaf)](_0x429b27=>{const _0x40087a=_0x4544e7;try{const _0x191421=_0x429b27[_0x40087a(0xd9)][_0x40087a(0xe3)](_0x719a46[_0x40087a(0xaa)]);_0x191421?(logger[_0x40087a(0x89)](_0x40087a(0xd0)+_0x191421),hubAllocator[_0x40087a(0xd3)](_0x191421),helper[_0x40087a(0x90)](_0x191421)):logger['debug'](_0x719a46[_0x40087a(0xf8)]);}catch(_0x1faa2a){logger[_0x40087a(0x89)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x1faa2a);}}),_0x436daf['quitCount_']=0x0,_0x436daf[_0x4544e7(0xaf)]&&_0x436daf[_0x4544e7(0xaf)](_0x1c07a9=>{const _0x557460=_0x4544e7,_0x3e890a={'Xowik':function(_0x1773d9,_0xc0e0af,_0x1944a5){const _0x99021d=a29_0x18c7;return _0x2a65c9[_0x99021d(0x97)](_0x1773d9,_0xc0e0af,_0x1944a5);}};_0x2a65c9[_0x557460(0x9b)](overrideQuit,_0x1c07a9,_0x436daf),_0x2a65c9[_0x557460(0x8b)](overrideTakeScreenshot,_0x1c07a9),helper[_0x557460(0xae)](_0x1c07a9,_0x31a25d),helper[_0x557460(0xe8)](_0x1c07a9,_0x31a25d),_0x1c07a9['getAccessibilityResultsSummary']=async()=>{const _0xe4487b=_0x557460;return await _0x3e890a[_0xe4487b(0xab)](getAccessibilityResultsSummary,_0x1c07a9,global);},_0x1c07a9['getAccessibilityResults']=async()=>{const _0x4ddd32=_0x557460;return await _0x3e890a[_0x4ddd32(0xab)](getAccessibilityResults,_0x1c07a9,global);};}),_0x436daf[_0x4544e7(0xda)]=async()=>{const _0x3d6601=_0x4544e7;return await _0x2a65c9[_0x3d6601(0x97)](getAccessibilityResultsSummary,_0x436daf,global);},_0x436daf['getAccessibilityResults']=async()=>{const _0x313444=_0x4544e7;return await _0x2a65c9[_0x313444(0x9b)](getAccessibilityResults,_0x436daf,global);},_0x719a46[_0x4544e7(0xc0)](overrideTakeScreenshot,_0x436daf),_0x719a46[_0x4544e7(0x85)](overrideQuit,_0x436daf),helper['overrideGet'](_0x436daf,_0x31a25d),helper[_0x4544e7(0xe8)](_0x436daf,_0x31a25d),helper['isUndefined'](global[_0x4544e7(0xe4)])&&(global[_0x4544e7(0xe4)]=[]),helper['isUndefined'](global[_0x4544e7(0x93)])&&(global[_0x4544e7(0x93)]=[]),global[_0x4544e7(0xe4)][_0x4544e7(0xc5)](_0x436daf),global[_0x4544e7(0xbd)]=_0x436daf,_0x719a46['zknPH'](global['__drivers'],undefined)&&global['__drivers'][_0x4544e7(0xc5)](_0x436daf),_0x12a3f8&&helper['isUndefined'](_0x12a3f8['global']['__driversArray'])&&(_0x12a3f8[_0x4544e7(0xa0)][_0x4544e7(0xe4)]=[]),_0x12a3f8&&_0x719a46[_0x4544e7(0xd7)](_0x12a3f8[_0x4544e7(0xa0)][_0x4544e7(0x93)],undefined)&&(_0x12a3f8['global'][_0x4544e7(0x93)][_0x4544e7(0xc5)](_0x436daf),_0x12a3f8[_0x4544e7(0xa0)]['__driversArray']['push'](_0x436daf)),_0x436daf;}}return _0xfc3617['originalBuilder']=_0xfc3617[_0x50cda8(0xb6)],_0xfc3617[_0x50cda8(0xb6)]=_0x2327ef,_0x2049e3[_0x50cda8(0xdd)]=_0x7140bf,_0xfc3617;};module[a29_0x2541c8(0xf4)][a29_0x2541c8(0x8d)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a30_0x51a183=a30_0xaad1;(function(_0x540a14,_0x504799){const _0x1981c2=a30_0xaad1,_0x13f768=_0x540a14();while(!![]){try{const _0x1062be=-parseInt(_0x1981c2(0x12c))/0x1+-parseInt(_0x1981c2(0x12e))/0x2+parseInt(_0x1981c2(0x132))/0x3*(parseInt(_0x1981c2(0x125))/0x4)+parseInt(_0x1981c2(0x128))/0x5+parseInt(_0x1981c2(0x126))/0x6*(-parseInt(_0x1981c2(0x130))/0x7)+-parseInt(_0x1981c2(0x131))/0x8+-parseInt(_0x1981c2(0x12a))/0x9*(-parseInt(_0x1981c2(0x129))/0xa);if(_0x1062be===_0x504799)break;else _0x13f768['push'](_0x13f768['shift']());}catch(_0x34b5b1){_0x13f768['push'](_0x13f768['shift']());}}}(a30_0x3312,0xe0563));const requestSpy=require('../../../helpers/request-spy'),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require(a30_0x51a183(0x12f));exports[a30_0x51a183(0x12b)]={'beforeAll'(){const _0xc04ead={'YCXGr':function(_0x3b0cfe){return _0x3b0cfe();}},_0x1afd03='browserstack internal helper hook';_0xc04ead['YCXGr'](addRequestSpy);},'afterAll'(){const _0x563260=a30_0x51a183,_0x1404f7='browserstack internal helper hook';this[_0x563260(0x127)](0xea60),requestSpy[_0x563260(0x12d)]();}};function a30_0xaad1(_0x21020f,_0x22d760){const _0x331256=a30_0x3312();return a30_0xaad1=function(_0xaad102,_0x496b14){_0xaad102=_0xaad102-0x125;let _0x2b59d9=_0x331256[_0xaad102];return _0x2b59d9;},a30_0xaad1(_0x21020f,_0x22d760);}function a30_0x3312(){const _0x158d29=['6522TdOuKS','timeout','2164565OTbPiy','50XHyapY','5623821VkTFvH','mochaHooks','379390hsOOyB','restore','129810NEjxcu','../../../helpers/test-observability/utils','5502wnmRjz','14579384IdKgqx','75PqWMcS','77236QNObkc'];a30_0x3312=function(){return _0x158d29;};return a30_0x3312();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a31_0x3424(_0xcf4746,_0x2a14bd){const _0x36786e=a31_0x3678();return a31_0x3424=function(_0x342461,_0x159cd6){_0x342461=_0x342461-0x193;let _0x3e339e=_0x36786e[_0x342461];return _0x3e339e;},a31_0x3424(_0xcf4746,_0x2a14bd);}const a31_0x572209=a31_0x3424;(function(_0x45b067,_0x477413){const _0x47b1d4=a31_0x3424,_0x88576d=_0x45b067();while(!![]){try{const _0x412313=-parseInt(_0x47b1d4(0x1a5))/0x1*(-parseInt(_0x47b1d4(0x1dc))/0x2)+parseInt(_0x47b1d4(0x1f0))/0x3*(parseInt(_0x47b1d4(0x196))/0x4)+parseInt(_0x47b1d4(0x1a0))/0x5+-parseInt(_0x47b1d4(0x1c0))/0x6+parseInt(_0x47b1d4(0x1a6))/0x7+-parseInt(_0x47b1d4(0x1ca))/0x8*(parseInt(_0x47b1d4(0x1c4))/0x9)+parseInt(_0x47b1d4(0x1bb))/0xa*(-parseInt(_0x47b1d4(0x1a8))/0xb);if(_0x412313===_0x477413)break;else _0x88576d['push'](_0x88576d['shift']());}catch(_0x4909ec){_0x88576d['push'](_0x88576d['shift']());}}}(a31_0x3678,0xdaa54));function a31_0x3678(){const _0x2fcddd=['aRWpa','2206500EVaKGs','ptHGj','automate','getHookDetails','getTestEnv','8385162vIINDs','js-','substring','indexOf','18ZhVYVL','getHooksForTest','efchU','zseqx','emit','XRHGt','4056616jeNoRJ','TPspt','filter','markedStatus','toISOString','grxuO','getSession','aXYGK','RxvKF','pid','fromEntries','DtVhG','../../../helpers/test-observability/constants','generic','eQWDK','suites','split','getPlatform','2UsiaLT','passed','pRCaB','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','pIfht','_beforeAll','__cloud_provider___','parent','TEST_PLATFORM','dZUbr','bvNnj','type','SeVjd','slice','unknown_grid','tests','gWztx','push','hook:','LQSsW','27NNGQVI','map_','app-automate','../../../helpers/helper','toJSON','450592BOuOqn','state','app','forEach','keys','bs:addPlatformDetails:','_afterEach','appium:app','hook','rTTeH','546830aoLQyP','vGokD','OKKzT','getCapabilities','_afterAll','1565649PYrNes','8962492RtzKlz','getBrowserVersion','33aWzKau','mZxHG','srYZo','string','XdVyg','getHookSkippedTests','GfHSC','browserstack','pending','concat','Zhpxu','bumOR','_beforeEach','hookAnalyticsId','../../../helpers/test-observability/utils','sendPlatformDetails','mapTestHooks','wWprA'];a31_0x3678=function(){return _0x2fcddd;};return a31_0x3678();}const {v4:uuidv4}=require('uuid'),{name,version}=require('../../../../package.json'),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook}=require(a31_0x572209(0x1b6)),{consoleHolder}=require(a31_0x572209(0x1d6)),{getPlatformVersion}=require(a31_0x572209(0x194)),{shouldProcessEventForTesthub}=require('../../../helpers/testhub/utils');console={},Object[a31_0x572209(0x19a)](consoleHolder)[a31_0x572209(0x199)](_0x43fd0d=>{console[_0x43fd0d]=(..._0x589370)=>{BSTestOpsPatcher[_0x43fd0d](..._0x589370);};}),exports[a31_0x572209(0x1bf)]=()=>{const _0x1300d4=a31_0x572209,_0x315a70={'dZUbr':_0x1300d4(0x1d7),'RUmUs':function(_0x52577b){return _0x52577b();}};return{'ci':_0x315a70[_0x1300d4(0x1e5)],'key':_0x315a70['RUmUs'](uuidv4),'version':version,'collector':_0x1300d4(0x1c1)+name};},exports[a31_0x572209(0x1be)]=_0x3344ef=>{const _0x5146f9=a31_0x572209,_0x3b8f4a={};_0x3b8f4a[_0x5146f9(0x1b9)]=function(_0x1d19c9,_0x3f68ee){return _0x1d19c9!==_0x3f68ee;},_0x3b8f4a[_0x5146f9(0x1ef)]=_0x5146f9(0x1ab),_0x3b8f4a['XdVyg']=_0x5146f9(0x1ee),_0x3b8f4a[_0x5146f9(0x1de)]=function(_0x34f2eb,_0xb47db5){return _0x34f2eb!==_0xb47db5;},_0x3b8f4a[_0x5146f9(0x1d8)]=_0x5146f9(0x19e);const _0x592ede=_0x3b8f4a;if(!_0x3344ef||_0x592ede['wWprA'](typeof _0x3344ef,_0x592ede[_0x5146f9(0x1ef)]))return[null,null];if(_0x592ede[_0x5146f9(0x1b9)](_0x3344ef[_0x5146f9(0x1c3)](_0x592ede[_0x5146f9(0x1ac)]),-0x1)){const _0x324f8a=_0x3344ef[_0x5146f9(0x1da)](_0x592ede[_0x5146f9(0x1ac)]);return[_0x324f8a[0x0][_0x5146f9(0x1e9)](0x0,-0x1)['split']('\x22')[0x1],_0x324f8a[0x1][_0x5146f9(0x1c2)](0x1)];}else{if(_0x592ede['pRCaB'](_0x3344ef[_0x5146f9(0x1c3)](_0x592ede[_0x5146f9(0x1d8)]),-0x1)){const _0xf6308b=_0x3344ef[_0x5146f9(0x1da)](_0x592ede[_0x5146f9(0x1d8)]);return[_0xf6308b[0x0]['slice'](0x0,-0x1)['split']('\x22')[0x1],_0x3344ef];}}return[null,null];},exports[a31_0x572209(0x1c5)]=_0x220fbc=>{const _0x1b9742=a31_0x572209,_0x543eca={'RxvKF':function(_0x32646f,_0x5676f4){return _0x32646f(_0x5676f4);},'EuwCq':'_beforeAll','OKKzT':_0x1b9742(0x1a4),'xftzM':_0x1b9742(0x1b4),'fUbEE':_0x1b9742(0x19c)};if(!_0x220fbc||!_0x220fbc['parent'])return[];const _0xe990c3=[];return[_0x543eca['EuwCq'],_0x543eca[_0x1b9742(0x1a2)],_0x543eca['xftzM'],_0x543eca['fUbEE']]['forEach'](_0x343e03=>{const _0x56361d=_0x1b9742,_0x3ec044=_0x220fbc[_0x56361d(0x1e3)][_0x343e03]||[];_0x3ec044[_0x56361d(0x199)](_0x34a6c3=>{const _0x14c512=_0x56361d;_0x34a6c3['hookAnalyticsId']&&!_0x543eca[_0x14c512(0x1d2)](isInternalHook,_0x34a6c3['fn'])&&_0xe990c3[_0x14c512(0x1ed)](_0x34a6c3[_0x14c512(0x1b5)]);});}),[..._0xe990c3,...exports[_0x1b9742(0x1c5)](_0x220fbc[_0x1b9742(0x1e3)])];},exports[a31_0x572209(0x1b8)]=_0x2f0e7a=>{const _0x1acd28=a31_0x572209,_0x105737={'gWztx':function(_0x59025d){return _0x59025d();},'aRWpa':function(_0x214bb9,_0x401e87){return _0x214bb9===_0x401e87;},'Zhpxu':'_afterEach','bvNnj':function(_0x56dddc){return _0x56dddc();},'PNBAe':_0x1acd28(0x1e1),'pIfht':'_afterAll','bumOR':_0x1acd28(0x1b4)};if(!_0x2f0e7a||!_0x2f0e7a['parent'])return;[_0x105737['PNBAe'],_0x105737[_0x1acd28(0x1e0)],_0x105737[_0x1acd28(0x1b3)],_0x105737['Zhpxu']][_0x1acd28(0x199)](_0x1199f2=>{const _0x558ac=_0x1acd28,_0x2f7c5a=_0x2f0e7a['parent'][_0x1199f2]||[];_0x2f7c5a[_0x558ac(0x199)](_0x5b0a12=>{const _0x36f60c=_0x558ac;if(!_0x5b0a12[_0x36f60c(0x1b5)])_0x5b0a12[_0x36f60c(0x1b5)]=_0x105737[_0x36f60c(0x1ec)](uuidv4);else _0x5b0a12[_0x36f60c(0x1cd)]&&_0x105737[_0x36f60c(0x1ba)](_0x1199f2,_0x105737[_0x36f60c(0x1b2)])&&(_0x5b0a12[_0x36f60c(0x1b5)]=_0x105737[_0x36f60c(0x1e6)](uuidv4),delete _0x5b0a12[_0x36f60c(0x1cd)]);});}),exports['mapTestHooks'](_0x2f0e7a[_0x1acd28(0x1e3)]);},exports[a31_0x572209(0x1b7)]=async(_0x2da973,_0x2e7ccd)=>{const _0x4229cf=a31_0x572209,_0x41f1c1={'aXYGK':function(_0x3668ba){return _0x3668ba();},'mZxHG':function(_0xf5ddaa,_0x479b71){return _0xf5ddaa===_0x479b71;},'TPspt':_0x4229cf(0x1af),'XRHGt':_0x4229cf(0x19d),'GfHSC':_0x4229cf(0x198),'PUflw':_0x4229cf(0x193),'srYZo':_0x4229cf(0x1bd),'zseqx':function(_0x1c54c2,_0x41629d){return _0x1c54c2(_0x41629d);},'vGokD':_0x4229cf(0x1ea),'efchU':_0x4229cf(0x1e4),'uzvEy':function(_0x810db2,_0x3be4b1){return _0x810db2(_0x3be4b1);}};try{if(!_0x41f1c1[_0x4229cf(0x1d1)](shouldProcessEventForTesthub))return;const _0x25b593=await _0x2da973[_0x4229cf(0x1a3)](),_0x39706b=await _0x2da973[_0x4229cf(0x1d0)](),_0x121a95={},_0x2baf5b=Object[_0x4229cf(0x1d4)](_0x39706b['getCapabilities']()[_0x4229cf(0x1f1)]),_0x4491e0={'product':_0x41f1c1['mZxHG'](global[_0x4229cf(0x1e2)],_0x41f1c1[_0x4229cf(0x1cb)])?_0x2baf5b[_0x41f1c1[_0x4229cf(0x1c9)]]||_0x2baf5b[_0x41f1c1[_0x4229cf(0x1ae)]]?_0x41f1c1['PUflw']:_0x41f1c1[_0x4229cf(0x1aa)]:null,'capabilities':_0x2baf5b,'platform':_0x25b593[_0x4229cf(0x1db)](),'platform_version':_0x41f1c1[_0x4229cf(0x1c7)](getPlatformVersion,_0x41f1c1[_0x4229cf(0x1a9)](global[_0x4229cf(0x1e2)],_0x41f1c1['TPspt'])),'browser':_0x25b593['getBrowserName'](),'browser_version':_0x25b593[_0x4229cf(0x1a7)](),'session_id':_0x39706b[_0x4229cf(0x195)]()};global[_0x4229cf(0x1e2)]?_0x121a95[global[_0x4229cf(0x1e2)]]=_0x4491e0:_0x121a95[_0x41f1c1[_0x4229cf(0x1a1)]]=_0x4491e0,process[_0x4229cf(0x1c8)](_0x4229cf(0x19b)+process[_0x4229cf(0x1d3)],{'timestamp':new Date()[_0x4229cf(0x1ce)](),'level':null,'message':null,'kind':_0x41f1c1[_0x4229cf(0x1c6)],'http_response':_0x121a95,'uuid':_0x2e7ccd});}catch(_0x50fc0b){_0x41f1c1['uzvEy'](debug,_0x4229cf(0x1df)+_0x50fc0b);}},exports[a31_0x572209(0x1ad)]=_0x1b0c45=>{const _0x426046=a31_0x572209,_0x1453e4={};_0x1453e4[_0x426046(0x1cf)]=function(_0xb23798,_0x43e971){return _0xb23798!==_0x43e971;},_0x1453e4[_0x426046(0x1d5)]=_0x426046(0x19e),_0x1453e4[_0x426046(0x1e8)]=function(_0x39d4c9,_0x1421a3){return _0x39d4c9!==_0x1421a3;},_0x1453e4[_0x426046(0x19f)]=_0x426046(0x1dd),_0x1453e4['ptHGj']='failed';const _0x1a338f=_0x1453e4,_0x40fb24=_0x1b0c45[_0x426046(0x1d9)]['reduce']((_0x31480c,_0x3addc2)=>{const _0x4fb8d5=_0x426046,_0x26d1e3=exports[_0x4fb8d5(0x1ad)](_0x3addc2);return _0x26d1e3&&(_0x31480c=_0x31480c[_0x4fb8d5(0x1b1)](_0x26d1e3)),_0x31480c;},[]),_0x12b7bf=_0x1b0c45[_0x426046(0x1eb)][_0x426046(0x1cc)](_0x2a4132=>{const _0x4a524a=_0x426046,_0x106b84=_0x1a338f[_0x4a524a(0x1cf)](_0x2a4132[_0x4a524a(0x1e7)],_0x1a338f[_0x4a524a(0x1d5)])&&!_0x2a4132['markedStatus']&&_0x1a338f[_0x4a524a(0x1e8)](_0x2a4132['state'],_0x1a338f[_0x4a524a(0x19f)])&&_0x1a338f[_0x4a524a(0x1cf)](_0x2a4132[_0x4a524a(0x197)],_0x1a338f[_0x4a524a(0x1bc)])&&!_0x2a4132[_0x4a524a(0x1b0)];return _0x106b84;});return _0x12b7bf[_0x426046(0x1b1)](_0x40fb24);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x5907(_0x50dfc6,_0x594cf5){const _0x284957=a32_0x2849();return a32_0x5907=function(_0x590742,_0x2448de){_0x590742=_0x590742-0x97;let _0x205c93=_0x284957[_0x590742];return _0x205c93;},a32_0x5907(_0x50dfc6,_0x594cf5);}const a32_0x4bbcf4=a32_0x5907;(function(_0x5d03c4,_0x37636a){const _0x339449=a32_0x5907,_0x5bd6fb=_0x5d03c4();while(!![]){try{const _0x33a875=-parseInt(_0x339449(0xff))/0x1*(-parseInt(_0x339449(0x103))/0x2)+-parseInt(_0x339449(0xa0))/0x3*(parseInt(_0x339449(0x10a))/0x4)+-parseInt(_0x339449(0xe2))/0x5+parseInt(_0x339449(0xd3))/0x6+parseInt(_0x339449(0xc5))/0x7+-parseInt(_0x339449(0xa9))/0x8*(parseInt(_0x339449(0xe9))/0x9)+parseInt(_0x339449(0xad))/0xa;if(_0x33a875===_0x37636a)break;else _0x5bd6fb['push'](_0x5bd6fb['shift']());}catch(_0x42ec7f){_0x5bd6fb['push'](_0x5bd6fb['shift']());}}}(a32_0x2849,0x65c1a));const util=require(a32_0x4bbcf4(0xa8)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a32_0x4bbcf4(0x109)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0x4bbcf4(0xc3)),scripts=require(a32_0x4bbcf4(0xa3)),globals=require(a32_0x4bbcf4(0x9f)),logger=require(a32_0x4bbcf4(0xda))['winstonLogger'],{shouldProcessEventForTesthub}=require(a32_0x4bbcf4(0x107)),testHubConstants=require(a32_0x4bbcf4(0x108));exports[a32_0x4bbcf4(0x10d)]={'beforeAll'(){const _0x11e278=a32_0x4bbcf4,_0x476d03={'WjXdG':function(_0x5525b2,_0x5276f2,_0xed5474,_0x16dc0b){return _0x5525b2(_0x5276f2,_0xed5474,_0x16dc0b);},'snVuA':'failed','mXGnk':_0x11e278(0xdc),'HmAeG':function(_0x374866,_0x51abad,_0x699799){return _0x374866(_0x51abad,_0x699799);},'BEhqd':_0x11e278(0xe0),'QwgsO':function(_0x2970cc){return _0x2970cc();}};PerformanceTester[_0x11e278(0xf4)]();const _0x523108='browserstack internal helper hook';global[_0x11e278(0xfc)]=[],global[_0x11e278(0xf3)]=![],global[_0x11e278(0x101)]=async()=>{const _0x4af8d1=_0x11e278;let _0x98576a=![];try{await global[_0x4af8d1(0xe3)][0x0]['session_'],_0x98576a=!![],global[_0x4af8d1(0xf3)]?await _0x476d03[_0x4af8d1(0x102)](markSessionStatus,global['__drivers'][0x0],_0x476d03[_0x4af8d1(0xce)],global[_0x4af8d1(0xfc)][_0x4af8d1(0xaf)](_0x476d03[_0x4af8d1(0xd4)])):await _0x476d03[_0x4af8d1(0x10e)](markSessionStatus,global[_0x4af8d1(0xe3)][0x0],_0x476d03[_0x4af8d1(0xb5)]);}catch(_0x376a1e){}global[_0x4af8d1(0xfc)]=[],global[_0x4af8d1(0xf3)]=![];if(_0x98576a)try{try{_0x476d03['QwgsO'](shouldProcessEventForTesthub)&&(global[_0x4af8d1(0xe3)][0x0]&&await _0x476d03[_0x4af8d1(0x10e)](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this[_0x4af8d1(0xea)][_0x4af8d1(0xc9)]:null));}catch{}await global[_0x4af8d1(0xe3)][0x0][_0x4af8d1(0xd2)]();}catch(_0x18f5b8){}};},'beforeEach'(_0x1e930d){const _0x254948=a32_0x4bbcf4,_0x5cfdbd={'tsQKi':function(_0x1b9d2c,_0x1856d7){return _0x1b9d2c>_0x1856d7;},'dZgWa':_0x254948(0x99),'BMnMq':function(_0x8b64ba,_0x18f29a,_0x2af59b){return _0x8b64ba(_0x18f29a,_0x2af59b);},'ZVHsQ':'bstackA11yShouldScan','DbLZI':function(_0x88f7f9){return _0x88f7f9();},'HWMDw':function(_0x31f911,_0x1ecfe9){return _0x31f911>_0x1ecfe9;},'LOxwL':_0x254948(0xe6),'MZYDB':function(_0x14956b,_0x462217){return _0x14956b===_0x462217;},'lhJlp':_0x254948(0xbc),'JyVSM':function(_0x1fcddc,_0x25a84e){return _0x1fcddc===_0x25a84e;},'SxLld':_0x254948(0xb6),'nZDtU':_0x254948(0xca),'Bbakb':'Automate\x20test\x20case\x20execution\x20has\x20started.','nLsHq':function(_0x5b62fb){return _0x5b62fb();}};new Promise(async _0x20a0d2=>{const _0xf7c5a3=_0x254948,_0x3eca2a='browserstack internal helper hook';let _0x2c3e41=!![];try{_0x5cfdbd['tsQKi'](global[_0xf7c5a3(0xe3)]['length'],0x1)&&(await global['driverCleanup'](),global[_0xf7c5a3(0xe3)]['shift']()),_0x5cfdbd['tsQKi'](global[_0xf7c5a3(0xe3)][0x0][_0xf7c5a3(0xfe)],0x0)&&(_0x2c3e41=![],await global[_0xf7c5a3(0x101)]());}catch{}try{Array['isArray'](global['__drivers'])&&global[_0xf7c5a3(0xe3)][0x0]&&(global[_0xf7c5a3(0xe3)][0x0][_0xf7c5a3(0xb7)]=this['currentTest'][_0xf7c5a3(0xc0)]()['join'](_0x5cfdbd[_0xf7c5a3(0xbb)])),global[_0xf7c5a3(0xb7)]=this[_0xf7c5a3(0xea)][_0xf7c5a3(0xc0)]()['join'](_0x5cfdbd[_0xf7c5a3(0xbb)]);}catch(_0x2a56b9){logger[_0xf7c5a3(0xf2)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x2a56b9);}this[_0xf7c5a3(0xea)][_0xf7c5a3(0x98)]=_0x5cfdbd[_0xf7c5a3(0xab)](shouldScanTestForAccessibility,this['currentTest'][_0xf7c5a3(0xc0)](),!![]),globals['setGlobal'](_0x5cfdbd[_0xf7c5a3(0xf9)],this['currentTest']['shouldScanTestForAccessibility']),this[_0xf7c5a3(0xea)][_0xf7c5a3(0xbd)]=!![];if(_0x5cfdbd[_0xf7c5a3(0xa4)](isAccessibilityAutomationSession)&&_0x2c3e41&&Array['isArray'](global[_0xf7c5a3(0xe3)])&&_0x5cfdbd[_0xf7c5a3(0xee)](global[_0xf7c5a3(0xe3)]['length'],0x0)&&globals['getGlobal'](_0x5cfdbd[_0xf7c5a3(0x110)]))try{const _0xda728d=await global['__drivers'][0x0][_0xf7c5a3(0xe1)];if(_0xda728d){let _0x2bd65a=!![];const _0x571b80=await global['__drivers'][0x0][_0xf7c5a3(0xef)]();let _0x5979de;try{_0x5979de=new URL(_0x571b80);}catch(_0x3738f3){_0x2bd65a=![];}_0x2bd65a=_0x5cfdbd[_0xf7c5a3(0xb2)](_0x5979de[_0xf7c5a3(0xc1)],_0x5cfdbd[_0xf7c5a3(0x9b)])||_0x5cfdbd['JyVSM'](_0x5979de[_0xf7c5a3(0xc1)],_0x5cfdbd[_0xf7c5a3(0xcb)]),_0x2bd65a&&(this[_0xf7c5a3(0xea)][_0xf7c5a3(0x98)]&&logger[_0xf7c5a3(0xb1)](_0x5cfdbd[_0xf7c5a3(0xe7)])),this[_0xf7c5a3(0xea)][_0xf7c5a3(0xbd)]=this[_0xf7c5a3(0xea)]['shouldScanTestForAccessibility'],this[_0xf7c5a3(0xea)]['shouldScanTestForAccessibility']&&logger[_0xf7c5a3(0xb1)](_0x5cfdbd['Bbakb']);}}catch(_0x2a87dd){logger['error'](_0xf7c5a3(0xdf)+util[_0xf7c5a3(0xec)](_0x2a87dd));}_0x5cfdbd['nLsHq'](_0x20a0d2);})[_0x254948(0xe5)](_0x1e930d);},'afterEach'(_0x1cb71b){const _0x2585af=a32_0x4bbcf4,_0x15915a={'iUldU':function(_0x436425,_0x5f16be){return _0x436425>_0x5f16be;},'HEHwD':function(_0x463f10,_0x2c1aaf){return _0x463f10===_0x2c1aaf;},'RPBvG':'testcase','Bqbva':'appium:app','Jjpmo':function(_0x11b079,_0x1c617b,_0x4ca40f,_0x446d68){return _0x11b079(_0x1c617b,_0x4ca40f,_0x446d68);},'bXSdH':_0x2585af(0x99),'ucxDD':function(_0x57dc6a,_0x377017){return _0x57dc6a!==_0x377017;},'hRtyW':_0x2585af(0xe0),'uicyq':function(_0x3c3c36,_0x37397a,_0x430905){return _0x3c3c36(_0x37397a,_0x430905);},'ZpTfZ':function(_0xa2fec4,_0x37a0b7){return _0xa2fec4+_0x37a0b7;},'MAxzF':'Failed:\x20','KaOSg':'error','xnCCJ':_0x2585af(0xe8),'KlHCI':_0x2585af(0xb1),'bUTSM':_0x2585af(0xe6),'duzLR':_0x2585af(0xa6),'cCHoC':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','HELiC':_0x2585af(0x106),'BGCty':_0x2585af(0xd8),'Ofmfi':function(_0x5b7f87){return _0x5b7f87();},'mmlRL':function(_0x261cce){return _0x261cce();},'bCpNY':function(_0x4089bd,_0x4fe418,_0x1f6a0c){return _0x4089bd(_0x4fe418,_0x1f6a0c);},'nxrpf':'debug'},_0x2ebac1='browserstack internal helper hook';this[_0x2585af(0xc2)](0xfde8);const _0x54abce=async(_0x3110aa,_0x569471)=>{const _0x2cea89=_0x2585af;await global[_0x2cea89(0xe3)][0x0][_0x2cea89(0x97)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x3110aa+_0x2cea89(0xcd)+_0x569471+_0x2cea89(0x100));};new Promise(async _0x39e161=>{const _0x999646=_0x2585af;try{_0x15915a[_0x999646(0xfa)](global[_0x999646(0xe3)][_0x999646(0xb8)],0x1)&&(await global[_0x999646(0x101)](),global[_0x999646(0xe3)][_0x999646(0x9d)](),global['__error_messages__']=[],global[_0x999646(0xf3)]=![]);try{if(global[_0x999646(0xfd)]&&_0x15915a[_0x999646(0xa1)](global[_0x999646(0x10c)],_0x15915a[_0x999646(0xf5)])&&global[_0x999646(0xe3)][0x0]){const _0x53c5b0=_0x15915a[_0x999646(0xfa)](global['capabilities'][_0x999646(0xb8)],0x0)?!!global[_0x999646(0x9c)][0x0][_0x999646(0xb4)]||!!global[_0x999646(0x9c)][0x0][_0x15915a[_0x999646(0xe4)]]:![],_0x3befec={};_0x3befec[_0x999646(0xb4)]=_0x53c5b0,await _0x15915a[_0x999646(0xf6)](percyAutoCapture,global[_0x999646(0xe3)][0x0],_0x15915a[_0x999646(0xf5)],_0x3befec);}}catch(_0x1f2dee){}!global[_0x999646(0xa7)]&&(await global[_0x999646(0xe3)][0x0][_0x999646(0x97)](_0x999646(0xdb)+JSON['stringify'](this['currentTest']['titlePath']()[_0x999646(0xaf)](_0x15915a[_0x999646(0xcc)]))+'}}'),global[_0x999646(0xe3)][0x0][_0x999646(0x10b)]=!![]);const _0x2c9d95=_0x15915a[_0x999646(0xf8)](this[_0x999646(0xea)]['state'],_0x15915a[_0x999646(0xd6)]);_0x2c9d95?(global[_0x999646(0xf3)]=!![],global[_0x999646(0xfc)][_0x999646(0xf7)](this[_0x999646(0xea)][_0x999646(0xfb)]['message']),await _0x15915a[_0x999646(0x9e)](_0x54abce,JSON[_0x999646(0x10f)](_0x15915a[_0x999646(0xba)](_0x15915a[_0x999646(0xa2)],this[_0x999646(0xea)]['err']['message'])),_0x15915a[_0x999646(0x9a)])):await _0x15915a['uicyq'](_0x54abce,JSON['stringify'](_0x15915a[_0x999646(0xb9)]),_0x15915a[_0x999646(0xc6)]);}catch(_0x3df7a1){}try{if(this[_0x999646(0xea)][_0x999646(0xbd)]&&globals[_0x999646(0xac)](_0x15915a[_0x999646(0xc7)])&&globals['getGlobal'](_0x15915a[_0x999646(0xaa)])){logger[_0x999646(0xb1)](_0x15915a[_0x999646(0xc8)]);const _0x464e52={};_0x464e52[_0x999646(0xa5)]=this[_0x999646(0xea)]['testAnalyticsId'],_0x464e52[_0x999646(0x104)]=process[_0x999646(0xd5)][testHubConstants[_0x999646(0xf1)][_0x999646(0xd7)]],_0x464e52[_0x999646(0xd1)]=process[_0x999646(0xd5)][testHubConstants[_0x999646(0xf1)][_0x999646(0xf0)]];const _0xe884ae=_0x464e52;logger[_0x999646(0xf2)](_0x999646(0xb0)+JSON[_0x999646(0x10f)](_0xe884ae)),logger[_0x999646(0xf2)](_0x15915a[_0x999646(0xd0)]),logger[_0x999646(0xf2)](util['format'](await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x999646(0xbe)],{'method':global[_0x999646(0xb7)]}))),await global[_0x999646(0xe3)][0x0][_0x999646(0xdd)](scripts[_0x999646(0xc4)],_0xe884ae),logger[_0x999646(0xb1)](_0x15915a['BGCty']);}}catch(_0xf0d1d6){logger[_0x999646(0xde)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x999646(0xea)][_0x999646(0xc0)]()+_0x999646(0xae),_0xf0d1d6);}try{try{if(_0x15915a[_0x999646(0xbf)](shouldProcessEventForTesthub)){global[_0x999646(0xe3)][0x0]&&await _0x15915a[_0x999646(0x9e)](sendPlatformDetails,global[_0x999646(0xe3)][0x0],this[_0x999646(0xea)]?this['currentTest'][_0x999646(0xc9)]:null);if(_0x15915a[_0x999646(0xd9)](isBrowserstackInfra)){const _0x17d761=_0x999646(0xcf)+Date[_0x999646(0xed)]();await _0x15915a[_0x999646(0xb3)](_0x54abce,JSON[_0x999646(0x10f)](_0x17d761),_0x15915a['nxrpf']);}}}catch{}_0x15915a['iUldU'](global[_0x999646(0xe3)][0x0][_0x999646(0xfe)],0x0)&&await global[_0x999646(0x101)]();}catch(_0x363ca3){}_0x15915a[_0x999646(0xbf)](_0x39e161);})[_0x2585af(0xe5)](()=>_0x1cb71b());},'afterAll'(_0x8a8b11){const _0x4c165d=a32_0x4bbcf4,_0x526d6c={'wvDyj':function(_0x562e78){return _0x562e78();}},_0x38a678='browserstack internal helper hook';this[_0x4c165d(0xc2)](0xfde8),new Promise(async _0x193d01=>{const _0x5b64c3=_0x4c165d;PerformanceTester[_0x5b64c3(0x105)](),await global['driverCleanup'](),_0x526d6c[_0x5b64c3(0xeb)](_0x193d01);})[_0x4c165d(0xe5)](()=>_0x8a8b11());}};function a32_0x2849(){const _0x1d0647=['1604584QkfQmK','duzLR','BMnMq','getGlobal','11363720QzcBvN','.\x20Error\x20:','join','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','info','MZYDB','bCpNY','app','BEhqd','https:','browserstackSessionName','length','xnCCJ','ZpTfZ','dZgWa','http:','accessibilityScanStarted','performScan','Ofmfi','titlePath','protocol','timeout','../../helpers/performance-tester','saveTestResults','3728655UQeNSh','KlHCI','bUTSM','cCHoC','testAnalyticsId','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','SxLld','bXSdH',',\x22level\x22:\x20\x22','snVuA','ObservabilitySync:','HELiC','thJwtToken','initQuit','4244706qsikSR','mXGnk','env','hRtyW','BROWSERSTACK_TESTHUB_UUID','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','mmlRL','../../helpers/logger','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','\x20|\x20','executeAsyncScript','error','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','passed','session_','3540835vNTuAm','__drivers','Bqbva','then','isAccessibilityPlatform','nZDtU','Passed','36QXaCRr','currentTest','wvDyj','format','now','HWMDw','getCurrentUrl','BROWSERSTACK_TESTHUB_JWT','ENV_VAR','debug','__sessionFailed','startMonitoring','RPBvG','Jjpmo','push','ucxDD','ZVHsQ','iUldU','err','__error_messages__','percy','quitCount_','347cplYLs','\x22}}','driverCleanup','WjXdG','1922RFbyCB','thBuildUuid','stopMonitoring','Performing\x20scan\x20before\x20saving\x20results','../../helpers/testhub/utils','../../helpers/testhub/constants','../../helpers/percy/utils','8WhSQYL','sessionNameSet__','percyCaptureMode','mochaHooks','HmAeG','stringify','LOxwL','executeScript','shouldScanTestForAccessibility','\x20-\x20','KaOSg','lhJlp','capabilities','shift','uicyq','../../helpers/globals','1174053dwYqlm','HEHwD','MAxzF','../../helpers/accessibility-automation/scripts','DbLZI','thTestRunUuid','bstackA11yShouldScan','__skipSessionName','util'];a32_0x2849=function(){return _0x1d0647;};return a32_0x2849();}
|
|
1
|
+
function a32_0xde5c(){const _0x53de06=['dwOFf','OVXot','JNunk','executeAsyncScript','env','616548UKhIQe','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','../../helpers/testhub/utils','https:','XgARw','\x20-\x20','testAnalyticsId','egyyx','length','sessionNameSet__','Performing\x20scan\x20before\x20saving\x20results','gpxIm','5zWcfyC','thTestRunUuid','suHaA','../../helpers/accessibility-automation/helper','then','app','KZvIO','5221024vzZqUW','isAccessibilityPlatform','AbOCV','gEuMa','startMonitoring','OhTgW','fSayN','cZsVs','MXMMe','__error_messages__','saveTestResults','failed','__drivers','join','52238eLWgKz',',\x22level\x22:\x20\x22','quitCount_','qICfq','timeout','napXZ','passed','sOSha','../../helpers/globals','http:','getCurrentUrl','kgzBp','format','UHcTn','BjXFO','26qyXPPW','7548336zBgcNP','UfFDh','../../helpers/testhub/constants','browserstackSessionName','NIveI','percyCaptureMode','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','PnHeN','../../helpers/logger','wmWyu','pCmGx','../../helpers/accessibility-automation/scripts','FnYFb','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','thBuildUuid','mochaHooks','getGlobal','ENV_VAR','kncvT','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','Failed\x20to\x20store\x20session\x20name:\x20','titlePath','2982472DzwudW','WzQtZ','245EtOMck','protocol','currentTest','shift','OYsWi','dyAyk','__sessionFailed','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','fypRM','debug','6666PKtFVg','err','capabilities','xDFcE','aCvuY','Passed','setGlobal','sMNWp','accessibilityScanStarted','stringify','mXikx','shouldScanTestForAccessibility','performScan','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','driverCleanup','session_','push','./test-observability/mochaUtils','OWISs','SeleF','../../helpers/performance-tester','TJbWp','isArray','negzv','error','32800hkVkHC','message','glwhe','info','135144JbwkCY','winstonLogger'];a32_0xde5c=function(){return _0x53de06;};return a32_0xde5c();}function a32_0x3813(_0x5b1461,_0x522561){const _0xde5ccf=a32_0xde5c();return a32_0x3813=function(_0x3813da,_0xf3673b){_0x3813da=_0x3813da-0x160;let _0x49a381=_0xde5ccf[_0x3813da];return _0x49a381;},a32_0x3813(_0x5b1461,_0x522561);}const a32_0x4225dc=a32_0x3813;(function(_0x2aff75,_0x2e16a4){const _0x4bf0fe=a32_0x3813,_0xac682a=_0x2aff75();while(!![]){try{const _0x5ea755=parseInt(_0x4bf0fe(0x1d6))/0x1*(-parseInt(_0x4bf0fe(0x16e))/0x2)+parseInt(_0x4bf0fe(0x1b5))/0x3+-parseInt(_0x4bf0fe(0x185))/0x4*(-parseInt(_0x4bf0fe(0x1c1))/0x5)+-parseInt(_0x4bf0fe(0x1ae))/0x6*(-parseInt(_0x4bf0fe(0x187))/0x7)+parseInt(_0x4bf0fe(0x1c8))/0x8+parseInt(_0x4bf0fe(0x16f))/0x9+-parseInt(_0x4bf0fe(0x1aa))/0xa*(parseInt(_0x4bf0fe(0x191))/0xb);if(_0x5ea755===_0x2e16a4)break;else _0xac682a['push'](_0xac682a['shift']());}catch(_0x463fe2){_0xac682a['push'](_0xac682a['shift']());}}}(a32_0xde5c,0x89b40));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x4225dc(0x1c4)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x4225dc(0x1a2)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0x4225dc(0x1a5)),scripts=require(a32_0x4225dc(0x17a)),globals=require(a32_0x4225dc(0x167)),logger=require(a32_0x4225dc(0x177))[a32_0x4225dc(0x1af)],{shouldProcessEventForTesthub}=require(a32_0x4225dc(0x1b7)),testHubConstants=require(a32_0x4225dc(0x171));exports[a32_0x4225dc(0x17e)]={'beforeAll'(){const _0x4fd344=a32_0x4225dc,_0x417bb6={'uClvZ':function(_0x3193d2,_0x18f4f4,_0xac363f,_0x28e065){return _0x3193d2(_0x18f4f4,_0xac363f,_0x28e065);},'mXikx':_0x4fd344(0x1d3),'MXMMe':'\x20|\x20','KZvIO':function(_0x57146e,_0x56d6ff,_0x4bd770){return _0x57146e(_0x56d6ff,_0x4bd770);},'UHcTn':_0x4fd344(0x165),'egyyx':function(_0x592901){return _0x592901();},'dyAyk':function(_0x341f64,_0x413447,_0x47f65a){return _0x341f64(_0x413447,_0x47f65a);}};PerformanceTester[_0x4fd344(0x1cc)]();const _0xac1820='browserstack internal helper hook';global[_0x4fd344(0x1d1)]=[],global[_0x4fd344(0x18d)]=![],global[_0x4fd344(0x19f)]=async()=>{const _0x492435=_0x4fd344;let _0x1ac751=![];try{await global[_0x492435(0x1d4)][0x0]['session_'],_0x1ac751=!![],global[_0x492435(0x18d)]?await _0x417bb6['uClvZ'](markSessionStatus,global['__drivers'][0x0],_0x417bb6[_0x492435(0x19b)],global[_0x492435(0x1d1)][_0x492435(0x1d5)](_0x417bb6[_0x492435(0x1d0)])):await _0x417bb6[_0x492435(0x1c7)](markSessionStatus,global[_0x492435(0x1d4)][0x0],_0x417bb6[_0x492435(0x16c)]);}catch(_0x16c407){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0x1ac751)try{try{_0x417bb6[_0x492435(0x1bc)](shouldProcessEventForTesthub)&&(global[_0x492435(0x1d4)][0x0]&&await _0x417bb6[_0x492435(0x18c)](sendPlatformDetails,global[_0x492435(0x1d4)][0x0],this[_0x492435(0x189)]?this[_0x492435(0x189)][_0x492435(0x1bb)]:null));}catch{}await global[_0x492435(0x1d4)][0x0]['initQuit']();}catch(_0x38ac13){}};},'beforeEach'(_0x35ec8b){const _0x4ec501=a32_0x4225dc,_0x1b7a41={'OWISs':function(_0x1eb667,_0x378668){return _0x1eb667>_0x378668;},'kgzBp':_0x4ec501(0x1ba),'SeleF':function(_0x4e3763,_0xd0ea20,_0x1a2718){return _0x4e3763(_0xd0ea20,_0x1a2718);},'qICfq':'bstackA11yShouldScan','hixtC':function(_0x1b0fdb){return _0x1b0fdb();},'UOnHp':function(_0x4f6ca9,_0x88fbd2){return _0x4f6ca9>_0x88fbd2;},'PnHeN':_0x4ec501(0x1c9),'XgARw':function(_0x400522,_0x8a1fb6){return _0x400522===_0x8a1fb6;},'cZsVs':_0x4ec501(0x168),'TJbWp':_0x4ec501(0x1b8),'aCvuY':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','AbOCV':'Automate\x20test\x20case\x20execution\x20has\x20started.','gEuMa':function(_0x17bf2e){return _0x17bf2e();}};new Promise(async _0x4015ee=>{const _0x1c7cbc=_0x4ec501,_0x22dda6='browserstack internal helper hook';let _0x59838b=!![];try{_0x1b7a41[_0x1c7cbc(0x1a3)](global[_0x1c7cbc(0x1d4)][_0x1c7cbc(0x1bd)],0x1)&&(await global[_0x1c7cbc(0x19f)](),global[_0x1c7cbc(0x1d4)][_0x1c7cbc(0x18a)]()),_0x1b7a41[_0x1c7cbc(0x1a3)](global['__drivers'][0x0][_0x1c7cbc(0x161)],0x0)&&(_0x59838b=![],await global['driverCleanup']());}catch{}try{Array[_0x1c7cbc(0x1a7)](global[_0x1c7cbc(0x1d4)])&&global[_0x1c7cbc(0x1d4)][0x0]&&(global[_0x1c7cbc(0x1d4)][0x0][_0x1c7cbc(0x172)]=this[_0x1c7cbc(0x189)][_0x1c7cbc(0x184)]()[_0x1c7cbc(0x1d5)](_0x1b7a41[_0x1c7cbc(0x16a)])),global[_0x1c7cbc(0x172)]=this[_0x1c7cbc(0x189)]['titlePath']()[_0x1c7cbc(0x1d5)](_0x1b7a41['kgzBp']);}catch(_0x3e8aa0){logger[_0x1c7cbc(0x190)](_0x1c7cbc(0x183)+_0x3e8aa0);}this[_0x1c7cbc(0x189)]['shouldScanTestForAccessibility']=_0x1b7a41[_0x1c7cbc(0x1a4)](shouldScanTestForAccessibility,this[_0x1c7cbc(0x189)][_0x1c7cbc(0x184)](),!![]),globals[_0x1c7cbc(0x197)](_0x1b7a41[_0x1c7cbc(0x162)],this[_0x1c7cbc(0x189)][_0x1c7cbc(0x19c)]),this[_0x1c7cbc(0x189)][_0x1c7cbc(0x199)]=!![];if(_0x1b7a41['hixtC'](isAccessibilityAutomationSession)&&_0x59838b&&Array[_0x1c7cbc(0x1a7)](global['__drivers'])&&_0x1b7a41['UOnHp'](global[_0x1c7cbc(0x1d4)][_0x1c7cbc(0x1bd)],0x0)&&globals[_0x1c7cbc(0x17f)](_0x1b7a41[_0x1c7cbc(0x176)]))try{const _0x477065=await global[_0x1c7cbc(0x1d4)][0x0][_0x1c7cbc(0x1a0)];if(_0x477065){let _0x1b675a=!![];const _0x228bc6=await global[_0x1c7cbc(0x1d4)][0x0][_0x1c7cbc(0x169)]();let _0x1b3292;try{_0x1b3292=new URL(_0x228bc6);}catch(_0x2e350f){_0x1b675a=![];}_0x1b675a=_0x1b7a41[_0x1c7cbc(0x1b9)](_0x1b3292['protocol'],_0x1b7a41[_0x1c7cbc(0x1cf)])||_0x1b7a41[_0x1c7cbc(0x1b9)](_0x1b3292[_0x1c7cbc(0x188)],_0x1b7a41[_0x1c7cbc(0x1a6)]),_0x1b675a&&(this[_0x1c7cbc(0x189)][_0x1c7cbc(0x19c)]&&logger[_0x1c7cbc(0x1ad)](_0x1b7a41[_0x1c7cbc(0x195)])),this[_0x1c7cbc(0x189)][_0x1c7cbc(0x199)]=this[_0x1c7cbc(0x189)]['shouldScanTestForAccessibility'],this[_0x1c7cbc(0x189)][_0x1c7cbc(0x19c)]&&logger[_0x1c7cbc(0x1ad)](_0x1b7a41[_0x1c7cbc(0x1ca)]);}}catch(_0x4bb104){logger['error'](_0x1c7cbc(0x17c)+util[_0x1c7cbc(0x16b)](_0x4bb104));}_0x1b7a41[_0x1c7cbc(0x1cb)](_0x4015ee);})[_0x4ec501(0x1c5)](_0x35ec8b);},'afterEach'(_0x533d8c){const _0x1cabfc=a32_0x4225dc,_0x466b1a={'pCmGx':function(_0x4c711f,_0x1c522f){return _0x4c711f>_0x1c522f;},'OVXot':function(_0x22dbef,_0xe31ff3){return _0x22dbef===_0xe31ff3;},'fypRM':'testcase','UfFDh':'appium:app','sOSha':function(_0x5b7c1e,_0x33f05a,_0x56e277,_0x2652bd){return _0x5b7c1e(_0x33f05a,_0x56e277,_0x2652bd);},'NIveI':_0x1cabfc(0x1ba),'suHaA':function(_0x582d06,_0x2bce38){return _0x582d06!==_0x2bce38;},'napXZ':'passed','kncvT':function(_0x4ca139,_0x42ea75,_0x285208){return _0x4ca139(_0x42ea75,_0x285208);},'fSayN':function(_0x2d9943,_0xba9d5c){return _0x2d9943+_0xba9d5c;},'jmoCs':'Failed:\x20','sMNWp':_0x1cabfc(0x1a9),'gpxIm':function(_0x564e6a,_0xf38de6,_0x5c50af){return _0x564e6a(_0xf38de6,_0x5c50af);},'BjXFO':_0x1cabfc(0x196),'FgKiO':_0x1cabfc(0x1ad),'xDFcE':_0x1cabfc(0x1c9),'dyWmJ':'bstackA11yShouldScan','dwOFf':_0x1cabfc(0x182),'OYsWi':_0x1cabfc(0x1bf),'glwhe':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','OhTgW':function(_0x5973af){return _0x5973af();},'negzv':function(_0x1ed7c2,_0x3a288c,_0x32e962){return _0x1ed7c2(_0x3a288c,_0x32e962);},'FnYFb':_0x1cabfc(0x190),'wmWyu':function(_0x4794ca,_0x2341c4){return _0x4794ca>_0x2341c4;},'JNunk':function(_0x2bf050){return _0x2bf050();}},_0x5bf9da='browserstack internal helper hook';this[_0x1cabfc(0x163)](0xfde8);const _0x279489=async(_0x14c412,_0x1eed62)=>{const _0x31dcfa=_0x1cabfc;await global[_0x31dcfa(0x1d4)][0x0]['executeScript'](_0x31dcfa(0x1b6)+_0x14c412+_0x31dcfa(0x160)+_0x1eed62+'\x22}}');};new Promise(async _0x809b21=>{const _0x6c050f=_0x1cabfc;try{_0x466b1a[_0x6c050f(0x179)](global['__drivers'][_0x6c050f(0x1bd)],0x1)&&(await global['driverCleanup'](),global[_0x6c050f(0x1d4)]['shift'](),global['__error_messages__']=[],global[_0x6c050f(0x18d)]=![]);try{if(global['percy']&&_0x466b1a[_0x6c050f(0x1b1)](global[_0x6c050f(0x174)],_0x466b1a[_0x6c050f(0x18f)])&&global[_0x6c050f(0x1d4)][0x0]){const _0x512e3d=_0x466b1a['pCmGx'](global[_0x6c050f(0x193)]['length'],0x0)?!!global[_0x6c050f(0x193)][0x0][_0x6c050f(0x1c6)]||!!global[_0x6c050f(0x193)][0x0][_0x466b1a[_0x6c050f(0x170)]]:![],_0x33da74={};_0x33da74['app']=_0x512e3d,await _0x466b1a[_0x6c050f(0x166)](percyAutoCapture,global['__drivers'][0x0],_0x466b1a[_0x6c050f(0x18f)],_0x33da74);}}catch(_0x1af058){}!global['__skipSessionName']&&(await global['__drivers'][0x0]['executeScript'](_0x6c050f(0x175)+JSON[_0x6c050f(0x19a)](this[_0x6c050f(0x189)]['titlePath']()[_0x6c050f(0x1d5)](_0x466b1a[_0x6c050f(0x173)]))+'}}'),global['__drivers'][0x0][_0x6c050f(0x1be)]=!![]);const _0x41443f=_0x466b1a[_0x6c050f(0x1c3)](this[_0x6c050f(0x189)]['state'],_0x466b1a[_0x6c050f(0x164)]);_0x41443f?(global['__sessionFailed']=!![],global['__error_messages__'][_0x6c050f(0x1a1)](this[_0x6c050f(0x189)][_0x6c050f(0x192)][_0x6c050f(0x1ab)]),await _0x466b1a[_0x6c050f(0x181)](_0x279489,JSON['stringify'](_0x466b1a[_0x6c050f(0x1ce)](_0x466b1a['jmoCs'],this[_0x6c050f(0x189)][_0x6c050f(0x192)][_0x6c050f(0x1ab)])),_0x466b1a[_0x6c050f(0x198)])):await _0x466b1a[_0x6c050f(0x1c0)](_0x279489,JSON['stringify'](_0x466b1a[_0x6c050f(0x16d)]),_0x466b1a['FgKiO']);}catch(_0x3be3a0){}try{if(this[_0x6c050f(0x189)]['accessibilityScanStarted']&&globals[_0x6c050f(0x17f)](_0x466b1a[_0x6c050f(0x194)])&&globals['getGlobal'](_0x466b1a['dyWmJ'])){logger[_0x6c050f(0x1ad)](_0x466b1a[_0x6c050f(0x1b0)]);const _0x1df29b={};_0x1df29b[_0x6c050f(0x1c2)]=this[_0x6c050f(0x189)]['testAnalyticsId'],_0x1df29b[_0x6c050f(0x17d)]=process[_0x6c050f(0x1b4)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']],_0x1df29b['thJwtToken']=process[_0x6c050f(0x1b4)][testHubConstants[_0x6c050f(0x180)]['BROWSERSTACK_TESTHUB_JWT']];const _0x5e5511=_0x1df29b;logger[_0x6c050f(0x190)](_0x6c050f(0x19e)+JSON[_0x6c050f(0x19a)](_0x5e5511)),logger[_0x6c050f(0x190)](_0x466b1a[_0x6c050f(0x18b)]),logger[_0x6c050f(0x190)](util[_0x6c050f(0x16b)](await global[_0x6c050f(0x1d4)][0x0]['executeAsyncScript'](scripts[_0x6c050f(0x19d)],{'method':global[_0x6c050f(0x172)]}))),await global[_0x6c050f(0x1d4)][0x0][_0x6c050f(0x1b3)](scripts[_0x6c050f(0x1d2)],_0x5e5511),logger['info'](_0x466b1a[_0x6c050f(0x1ac)]);}}catch(_0x1e40b6){logger[_0x6c050f(0x1a9)](_0x6c050f(0x18e)+this[_0x6c050f(0x189)][_0x6c050f(0x184)]()+'.\x20Error\x20:',_0x1e40b6);}try{try{if(_0x466b1a[_0x6c050f(0x1cd)](shouldProcessEventForTesthub)){global[_0x6c050f(0x1d4)][0x0]&&await _0x466b1a['negzv'](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this['currentTest'][_0x6c050f(0x1bb)]:null);if(_0x466b1a[_0x6c050f(0x1cd)](isBrowserstackInfra)){const _0x14e2b2='ObservabilitySync:'+Date['now']();await _0x466b1a[_0x6c050f(0x1a8)](_0x279489,JSON[_0x6c050f(0x19a)](_0x14e2b2),_0x466b1a[_0x6c050f(0x17b)]);}}}catch{}_0x466b1a[_0x6c050f(0x178)](global[_0x6c050f(0x1d4)][0x0][_0x6c050f(0x161)],0x0)&&await global[_0x6c050f(0x19f)]();}catch(_0x22e0e0){}_0x466b1a[_0x6c050f(0x1b2)](_0x809b21);})[_0x1cabfc(0x1c5)](()=>_0x533d8c());},'afterAll'(_0x4b1a77){const _0x53fc94=a32_0x4225dc,_0x4ee680={'WzQtZ':function(_0x579b53){return _0x579b53();}},_0x3a78e9='browserstack internal helper hook';this[_0x53fc94(0x163)](0xfde8),new Promise(async _0x205126=>{const _0x174d85=_0x53fc94;PerformanceTester['stopMonitoring'](),await global[_0x174d85(0x19f)](),_0x4ee680[_0x174d85(0x186)](_0x205126);})[_0x53fc94(0x1c5)](()=>_0x4b1a77());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x368b2b=a33_0x1631;function a33_0x1631(_0x4deb5f,_0x454e49){const _0x561141=a33_0x5611();return a33_0x1631=function(_0x163139,_0x1bd7a3){_0x163139=_0x163139-0x1d5;let _0x1ec020=_0x561141[_0x163139];return _0x1ec020;},a33_0x1631(_0x4deb5f,_0x454e49);}(function(_0x1dc834,_0x55d5df){const _0x401efe=a33_0x1631,_0x2ebae9=_0x1dc834();while(!![]){try{const _0x58d237=parseInt(_0x401efe(0x205))/0x1*(-parseInt(_0x401efe(0x21a))/0x2)+-parseInt(_0x401efe(0x1f4))/0x3*(parseInt(_0x401efe(0x1e4))/0x4)+parseInt(_0x401efe(0x20b))/0x5*(-parseInt(_0x401efe(0x1f1))/0x6)+parseInt(_0x401efe(0x1e2))/0x7*(parseInt(_0x401efe(0x1dd))/0x8)+parseInt(_0x401efe(0x1f7))/0x9+-parseInt(_0x401efe(0x1fd))/0xa+parseInt(_0x401efe(0x20a))/0xb*(parseInt(_0x401efe(0x1fc))/0xc);if(_0x58d237===_0x55d5df)break;else _0x2ebae9['push'](_0x2ebae9['shift']());}catch(_0x3d4ac0){_0x2ebae9['push'](_0x2ebae9['shift']());}}}(a33_0x5611,0xc2ed1));const fs=require('fs'),path=require(a33_0x368b2b(0x1e0)),{spawn}=require(a33_0x368b2b(0x1ec)),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x368b2b(0x203)),helper=require('../../helpers/helper'),constants=require(a33_0x368b2b(0x216)),getUserNightwatchConfigs=(_0x5b1fb3,_0x33bd7e)=>{const _0x2a16cd=a33_0x368b2b,_0x54a746={'BSIwk':_0x2a16cd(0x208),'bSVpn':_0x2a16cd(0x1d7),'vgIwb':function(_0x9539e1,_0x492a48){return _0x9539e1(_0x492a48);},'HMopw':_0x2a16cd(0x1eb)};let _0x11be15=null,_0x5ca244={};const _0x56f5eb=_0x33bd7e['findIndex'](_0x4ca197=>_0x4ca197===_0x2a16cd(0x1fe));if(!helper['isUndefined'](_0x5b1fb3[_0x2a16cd(0x20c)])&&fs['existsSync'](path['join'](process[_0x2a16cd(0x1fa)](),_0x5b1fb3[_0x2a16cd(0x20c)])))_0x11be15=path[_0x2a16cd(0x213)](process[_0x2a16cd(0x1fa)](),_0x5b1fb3[_0x2a16cd(0x20c)]),_0x33bd7e['splice'](_0x56f5eb,0x2);else{if(fs[_0x2a16cd(0x1db)](path[_0x2a16cd(0x213)](process[_0x2a16cd(0x1fa)](),_0x54a746[_0x2a16cd(0x1ed)])))_0x11be15=path['join'](process['cwd'](),_0x54a746[_0x2a16cd(0x1ed)]);else fs[_0x2a16cd(0x1db)](path[_0x2a16cd(0x213)](process[_0x2a16cd(0x1fa)](),_0x54a746['bSVpn']))&&(_0x11be15=path[_0x2a16cd(0x213)](process[_0x2a16cd(0x1fa)](),_0x54a746['bSVpn']));}return _0x11be15?(logger[_0x2a16cd(0x1ff)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x11be15),_0x5ca244=_0x54a746['vgIwb'](require,_0x11be15)):logger[_0x2a16cd(0x1ff)](_0x54a746[_0x2a16cd(0x1f3)]),_0x5ca244;},removeExistingEnvs=_0x1be37d=>{const _0x4b629c=a33_0x368b2b,_0x106712={};_0x106712[_0x4b629c(0x217)]=function(_0x4fc1e6,_0x175aa9){return _0x4fc1e6>_0x175aa9;};const _0x285008=_0x106712;let _0x442d05=_0x1be37d[_0x4b629c(0x1da)](_0x2f280d=>_0x2f280d==='--env');_0x285008[_0x4b629c(0x217)](_0x442d05,-0x1)&&_0x1be37d[_0x4b629c(0x1d6)](_0x442d05,0x2),_0x442d05=_0x1be37d[_0x4b629c(0x1da)](_0x164ca0=>_0x164ca0==='-e'),_0x285008[_0x4b629c(0x217)](_0x442d05,-0x1)&&_0x1be37d[_0x4b629c(0x1d6)](_0x442d05,0x2);};function run(_0x5db2fe,_0x16cc73){const _0x3587d4=a33_0x368b2b,_0x345de1={'XRnjd':_0x3587d4(0x202),'EOCxJ':function(_0x1df434,_0xd17799){return _0x1df434+_0xd17799;},'njMul':_0x3587d4(0x1f5),'pfEXy':function(_0x10e619,_0x12b9d5,_0x2aaa71){return _0x10e619(_0x12b9d5,_0x2aaa71);},'JlrrV':_0x3587d4(0x206),'NTrzc':'Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','URQIt':function(_0x7f075d,_0x3dfb37){return _0x7f075d===_0x3dfb37;},'geUKu':_0x3587d4(0x1de),'solxt':function(_0x173089,_0x1640be){return _0x173089(_0x1640be);},'JvIlO':function(_0x311396,_0x3eb994,_0x1b5844,_0x262ee8){return _0x311396(_0x3eb994,_0x1b5844,_0x262ee8);},'QPLgF':_0x3587d4(0x1d9),'usgsW':'--config','AXAQy':_0x3587d4(0x1ee),'kMMtZ':_0x3587d4(0x1f0),'TeFbL':'close'},_0x1c6a7e=new BrowserStackSetup(_0x5db2fe);if(!_0x1c6a7e[_0x3587d4(0x20c)])return;const _0x4327cf=_0x345de1['pfEXy'](getUserNightwatchConfigs,_0x5db2fe,_0x16cc73),_0x2e0ced={};_0x2e0ced['start_process']=![];const _0x21ddce={};_0x21ddce[_0x3587d4(0x218)]=_0x345de1['JlrrV'],_0x21ddce[_0x3587d4(0x20f)]=0x1bb;const _0x1c433a={};_0x1c433a['webdriver']=_0x2e0ced,_0x1c433a[_0x3587d4(0x1e8)]=_0x21ddce;const _0x2ee028=_0x1c433a;logger[_0x3587d4(0x1ff)](_0x345de1[_0x3587d4(0x219)]);const _0x20a03f={..._0x4327cf},_0x4f0768=_0x20a03f,_0x599dfe=helper[_0x3587d4(0x1d8)](_0x1c6a7e[_0x3587d4(0x20c)]),_0x32ff5a=[];_0x1c6a7e['config'][_0x3587d4(0x1e3)][_0x3587d4(0x21d)]((_0x53d13a,_0x52c5ba)=>{const _0x332778=_0x3587d4;_0x599dfe?_0x32ff5a['push'](helper['modifyBrowserStackW3CCaps'](_0x1c6a7e['config'],_0x345de1[_0x332778(0x204)],_0x52c5ba)):_0x32ff5a[_0x332778(0x1df)](helper[_0x332778(0x1ef)](_0x1c6a7e[_0x332778(0x20c)],_0x345de1[_0x332778(0x204)],_0x52c5ba));});const _0x856344={},_0x4dff67=[];_0x5db2fe[_0x3587d4(0x210)]=_0x5db2fe['env']||_0x5db2fe['e'];const _0x256f1b=_0x5db2fe[_0x3587d4(0x210)]?_0x5db2fe[_0x3587d4(0x210)][_0x3587d4(0x1fb)]()[_0x3587d4(0x214)](',')[_0x3587d4(0x21b)](_0x402472=>_0x402472[_0x3587d4(0x1fb)]())[_0x3587d4(0x1ea)](_0x3b8496=>_0x3b8496!==''):[''];_0x345de1[_0x3587d4(0x1e7)](_0x256f1b[_0x3587d4(0x1d5)],0x0)&&_0x256f1b['push']('');_0x256f1b[_0x3587d4(0x21d)](_0x663036=>{_0x32ff5a['forEach'](_0x1b905d=>{const _0x46f250=a33_0x1631;let _0x392ab0=_0x345de1['EOCxJ'](helper[_0x46f250(0x212)](_0x1b905d,'_'),'_'+Date[_0x46f250(0x200)]());_0x663036&&(_0x392ab0+='_'+_0x663036);if(_0x663036&&(!_0x4327cf[_0x345de1['njMul']]||!_0x4327cf[_0x345de1['njMul']][_0x663036]))return;const _0x1b8a3a={..._0x2ee028};_0x1b8a3a[_0x46f250(0x1e5)]=_0x1b905d;const _0x110f51=_0x1b8a3a;_0x856344[_0x392ab0]=_0x663036?helper['mergeDeep'](_0x4327cf[_0x345de1[_0x46f250(0x20e)]][_0x663036],_0x110f51):_0x110f51,_0x4dff67[_0x46f250(0x1df)](_0x392ab0);});});!_0x4f0768[_0x3587d4(0x1f5)]&&(_0x4f0768[_0x3587d4(0x1f5)]={});_0x4f0768[_0x3587d4(0x1f5)]={..._0x4f0768[_0x3587d4(0x1f5)],..._0x856344};const _0x519046=path[_0x3587d4(0x213)](__dirname,_0x345de1['geUKu']);fs[_0x3587d4(0x215)](_0x519046,JSON[_0x3587d4(0x21c)](_0x4f0768)),_0x345de1['solxt'](removeExistingEnvs,_0x16cc73);const _0x3e527a=_0x345de1[_0x3587d4(0x1f8)](spawn,/^win/[_0x3587d4(0x1e6)](process[_0x3587d4(0x207)])?_0x345de1[_0x3587d4(0x201)]:_0x345de1['XRnjd'],[_0x345de1[_0x3587d4(0x1f2)],_0x519046,..._0x16cc73[_0x3587d4(0x20d)](0x1),_0x345de1['AXAQy'],_0x4dff67[_0x3587d4(0x213)](',')],{'stdio':_0x345de1[_0x3587d4(0x211)]});_0x3e527a['on'](_0x345de1[_0x3587d4(0x1f9)],async _0x33a4ad=>{const _0x15c858=_0x3587d4;logger[_0x15c858(0x1e1)](_0x15c858(0x1dc)+_0x33a4ad),logger[_0x15c858(0x1ff)](_0x15c858(0x1e9)+_0x519046),fs[_0x15c858(0x1f6)](_0x519046);});}function a33_0x5611(){const _0x4d20b6=['length','splice','nightwatch.json','useW3C','nightwatch.cmd','findIndex','existsSync','child\x20process\x20exited\x20with\x20code\x20','16TvbEAS','nightwatch-browserstack.json','push','path','debug','2461543EokuvO','platforms','184084OJCmLw','desiredCapabilities','test','URQIt','selenium','Deleting\x20','filter','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','child_process','BSIwk','--env','modifyBrowserStackCaps','inherit','1690692eqqbjm','usgsW','HMopw','6JxwOFU','test_settings','unlinkSync','3639456bbDnhr','JvIlO','TeFbL','cwd','trim','3610248sLnwvh','10928870WtpwnP','--config','info','now','QPLgF','nightwatch','../../helpers/BrowserStackSetup','XRnjd','6238pAEVGS','hub.browserstack.com','platform','nightwatch.conf.js','exports','99LMCVxU','20uuWLGp','config','slice','njMul','port','env','kMMtZ','getPlatformName','join','split','writeFileSync','../utils/constants','urPVR','host','NTrzc','226OZapgt','map','stringify','forEach'];a33_0x5611=function(){return _0x4d20b6;};return a33_0x5611();}module[a33_0x368b2b(0x209)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a34_0x5621(_0x548fe2,_0x54b016){const _0x592546=a34_0x5925();return a34_0x5621=function(_0x56212a,_0x4a95f0){_0x56212a=_0x56212a-0xd6;let _0x173b33=_0x592546[_0x56212a];return _0x173b33;},a34_0x5621(_0x548fe2,_0x54b016);}const a34_0x3c831a=a34_0x5621;(function(_0x298c2a,_0x4e3f75){const _0x4ceee2=a34_0x5621,_0x1e45b8=_0x298c2a();while(!![]){try{const _0x1f21e4=-parseInt(_0x4ceee2(0x128))/0x1+-parseInt(_0x4ceee2(0xea))/0x2*(parseInt(_0x4ceee2(0x13b))/0x3)+parseInt(_0x4ceee2(0x120))/0x4+-parseInt(_0x4ceee2(0xec))/0x5+-parseInt(_0x4ceee2(0xf4))/0x6+parseInt(_0x4ceee2(0xfe))/0x7*(-parseInt(_0x4ceee2(0xe4))/0x8)+-parseInt(_0x4ceee2(0xef))/0x9*(-parseInt(_0x4ceee2(0x10e))/0xa);if(_0x1f21e4===_0x4e3f75)break;else _0x1e45b8['push'](_0x1e45b8['shift']());}catch(_0x3e3160){_0x1e45b8['push'](_0x1e45b8['shift']());}}}(a34_0x5925,0xbfb2c));function a34_0x5925(){const _0x52f306=['connectOptions','accessibilityOptions','10MSChFD','No\x20summaryResults\x20found.','xfGWg','replace','nQHqW','scannerProcessingTimeout','zhIWY','WebDriver','method','chrome','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','use','GPntg','workerInfo','JwKha','../../helpers/accessibility-automation/scripts','2924044rIyHVP','zlrkQ','error','accessibilityOptions.authToken','accessibilityOptions.includeIssueType.bestPractice','constructor','includeIssueType','accessibilityOptions.scannerVersion','1353597NGrtti','debug','getAccessibilityResultsSummary','playwright-chromium','iwmbW','aBiRJ','scannerVersion','accessibilityPlatform','WphbU','FlvQb','QNSQo','setAccessibilityCapabilities','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','performScan','BTYEV','xJkFA','browserStackEvaluate','kFTHv','hRilU','255qSbCMF','browserstack.accessibility','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','FeJGt','(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','wcagVersion','No\x20accessibility\x20results\x20were\x20found.','DkoyL','latest','../../helpers/helper','BS_A11Y_JWT','bestPractice','wsEndpoint','accessibilityOptions.wcagVersion','ZeeSn','browserStackExecuteDriver','nqEzC','deviceName','browser','CVjBe','HkZxL','Xmaai','wcCzq','VSJOq','8808472ohGgHs','currentTest','accessibilityOptions.scannerProcessingTimeout','browserName','FAcbW','ejJKm','16402ECUuwn','getAccessibilityResults','3613195CrAJbp','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','48030462QKtfpf','util','stringify','VcJWS','ysnKR','8448918bPBgdh','name','warn','Jjkyj','Playwright','bstackSdkArgs','Qjgst','winstonLogger','processAccessibilityCaps','beLXu','7uuEGNT','project','platformValidation','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','../../helpers/accessibility-automation/helper','GRbAi','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','orDPF','hsIdL','env','CCAgI','browser_version','ethva','format'];a34_0x5925=function(){return _0x52f306;};return a34_0x5925();}const util=require(a34_0x3c831a(0xf0)),logger=require('../../helpers/logger')[a34_0x3c831a(0xfb)],{isAccessibilityAutomationSession}=require(a34_0x3c831a(0x102)),{isUndefined}=require(a34_0x3c831a(0x144)),scripts=require(a34_0x3c831a(0x11f));exports['browserStackEvaluate']=async(_0x484ac1,_0x371d72,_0x178195={})=>{const _0x5c2dd6=a34_0x3c831a,_0xe25b86={};_0xe25b86['zhIWY']=_0x5c2dd6(0xf9);const _0x131c07=_0xe25b86;return await _0x484ac1['evaluate']('(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'+_0x371d72[_0x5c2dd6(0x111)](/arguments/g,_0x131c07[_0x5c2dd6(0x114)])+_0x5c2dd6(0x101)+JSON[_0x5c2dd6(0xf1)](_0x178195)+')');},exports[a34_0x3c831a(0xdb)]=async(_0x1eaf36,_0x46f377,_0x2ef7e0={})=>{const _0x387c27=a34_0x3c831a,_0x384f52={};_0x384f52['beLXu']=function(_0x1122b8,_0x3f587b){return _0x1122b8===_0x3f587b;},_0x384f52[_0x387c27(0x131)]=_0x387c27(0x115),_0x384f52['FeJGt']=_0x387c27(0xf8),_0x384f52[_0x387c27(0xe8)]='bstackSdkArgs';const _0x695b76=_0x384f52;if(_0x695b76[_0x387c27(0xfd)](_0x1eaf36[_0x387c27(0x125)][_0x387c27(0xf5)],_0x695b76['FlvQb']))return await _0x1eaf36['executeAsyncScript'](_0x46f377,_0x2ef7e0);else{if(_0x695b76[_0x387c27(0xfd)](_0x1eaf36[_0x387c27(0x125)][_0x387c27(0xf5)],_0x695b76[_0x387c27(0x13e)]))return await _0x1eaf36['executeScript'](_0x387c27(0x13f)+_0x46f377[_0x387c27(0x111)](/arguments/g,_0x695b76[_0x387c27(0xe8)])+_0x387c27(0x134)+JSON[_0x387c27(0xf1)](_0x2ef7e0)+')');}},exports[a34_0x3c831a(0x133)]=async _0x50cec3=>{const _0x2ba3b2=a34_0x3c831a,_0x179018={};_0x179018[_0x2ba3b2(0x136)]=_0x2ba3b2(0xd9),_0x179018['VcJWS']=_0x2ba3b2(0xe6),_0x179018[_0x2ba3b2(0x139)]=_0x2ba3b2(0x124),_0x179018['DWMJS']='accessibilityOptions.includeIssueType.needsReview',_0x179018[_0x2ba3b2(0x108)]=_0x2ba3b2(0x123),_0x179018[_0x2ba3b2(0x11e)]=_0x2ba3b2(0x127);const _0xab9b2f=_0x179018;_0x50cec3[_0x2ba3b2(0x10d)]&&(_0x50cec3['accessibilityOptions']['wcagVersion']&&(_0x50cec3[_0xab9b2f['BTYEV']]=_0x50cec3[_0x2ba3b2(0x10d)][_0x2ba3b2(0x140)]),_0x50cec3[_0x2ba3b2(0x10d)][_0x2ba3b2(0x113)]&&(_0x50cec3[_0xab9b2f[_0x2ba3b2(0xf2)]]=_0x50cec3[_0x2ba3b2(0x10d)]['scannerProcessingTimeout']),_0x50cec3[_0x2ba3b2(0x10d)][_0x2ba3b2(0x126)]&&(_0x50cec3[_0xab9b2f['kFTHv']]=_0x50cec3['accessibilityOptions'][_0x2ba3b2(0x126)][_0x2ba3b2(0xd7)],_0x50cec3[_0xab9b2f['DWMJS']]=_0x50cec3[_0x2ba3b2(0x10d)][_0x2ba3b2(0x126)]['needsReview']));const _0x40ef79=JSON['parse'](process['env'][_0x2ba3b2(0xed)])[_0x2ba3b2(0x12e)];_0x50cec3[_0xab9b2f['CCAgI']]=process[_0x2ba3b2(0x107)][_0x2ba3b2(0xd6)],_0x50cec3[_0xab9b2f[_0x2ba3b2(0x11e)]]=_0x40ef79,delete _0x50cec3[_0x2ba3b2(0x10d)];},exports[a34_0x3c831a(0xeb)]=async _0x5c0d1c=>{const _0x34f575=a34_0x3c831a,_0x38c9f6={};_0x38c9f6[_0x34f575(0xe2)]=_0x34f575(0x141),_0x38c9f6[_0x34f575(0x137)]=_0x34f575(0x118);const _0x4d69a9=_0x38c9f6;if(global[_0x34f575(0x12f)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x5c0d1c,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x5c0d1c,scripts.getResults);return res;}catch{return logger[_0x34f575(0x122)](_0x4d69a9[_0x34f575(0xe2)]),[];}else return logger[_0x34f575(0xf6)](_0x4d69a9[_0x34f575(0x137)]),[];},exports[a34_0x3c831a(0x135)]=async(_0x1c81b0,_0x4a776d='')=>{const _0x246fa8=a34_0x3c831a;if(global['accessibilityPlatform']){const _0xbf2104={};return _0xbf2104[_0x246fa8(0x116)]=_0x4a776d,await exports[_0x246fa8(0x138)](_0x1c81b0,scripts[_0x246fa8(0x135)],_0xbf2104);}},exports[a34_0x3c831a(0x12a)]=async _0x2d030e=>{const _0x79ad99=a34_0x3c831a,_0xa5f52b={};_0xa5f52b[_0x79ad99(0xe0)]=_0x79ad99(0x10f),_0xa5f52b[_0x79ad99(0x121)]=_0x79ad99(0xee);const _0x20aa13=_0xa5f52b;if(global[_0x79ad99(0x12f)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x2d030e,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x2d030e,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x79ad99(0x129)](_0x20aa13[_0x79ad99(0xe0)]),{};}else return logger['warn'](_0x20aa13[_0x79ad99(0x121)]),{};},exports[a34_0x3c831a(0x100)]=async _0x58e6be=>{const _0xcd148b=a34_0x3c831a,_0x1423ef={'orDPF':function(_0x267464,_0x1a54be){return _0x267464!==_0x1a54be;},'CVjBe':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','VSJOq':function(_0x3f9c99,_0x1048d0){return _0x3f9c99===_0x1048d0;},'jqxkB':_0xcd148b(0x117),'Qjgst':function(_0x1829d3,_0x244793){return _0x1829d3===_0x244793;},'iwmbW':_0xcd148b(0x12b),'ejJKm':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','LCKbc':function(_0x3a3369,_0x2f9e7c){return _0x3a3369(_0x2f9e7c);},'Jjkyj':function(_0xa64f5b,_0x3fde7c){return _0xa64f5b===_0x3fde7c;},'Xmaai':_0xcd148b(0x143),'GRbAi':function(_0x65cf95,_0x52c9d3){return _0x65cf95>_0x52c9d3;},'hRilU':_0xcd148b(0x13d)};try{if(!_0x1423ef[_0xcd148b(0x105)](_0x58e6be['deviceName'],''))return logger[_0xcd148b(0xf6)](_0x1423ef[_0xcd148b(0xdf)]),![];const _0x4f5df4=_0x58e6be[_0xcd148b(0xde)];if(!(_0x1423ef[_0xcd148b(0xe3)](_0x4f5df4,_0x1423ef['jqxkB'])||_0x1423ef[_0xcd148b(0xfa)](_0x4f5df4,_0x1423ef[_0xcd148b(0x12c)])))return logger[_0xcd148b(0xf6)](_0x1423ef[_0xcd148b(0xe9)]),![];const _0x302e4e=_0x1423ef['LCKbc'](parseInt,_0x58e6be[_0xcd148b(0x109)]);if(!(_0x1423ef[_0xcd148b(0xf7)](_0x302e4e,_0x1423ef[_0xcd148b(0xe1)])||_0x1423ef[_0xcd148b(0x103)](_0x302e4e,0x5e)))return logger['warn'](_0x1423ef[_0xcd148b(0x13a)]),![];}catch(_0x40aead){logger[_0xcd148b(0x129)](_0xcd148b(0x104)+util[_0xcd148b(0x10b)](_0x40aead));}return!![];},exports[a34_0x3c831a(0xfc)]=(_0x2a020f,_0x3887df,_0x1a84a9)=>{const _0x1c8904=a34_0x3c831a,_0x6a83fb={'nQHqW':function(_0x3fa502){return _0x3fa502();},'xfGWg':_0x1c8904(0x13c),'GPntg':function(_0x4507b4,_0x4fc6d9){return _0x4507b4===_0x4fc6d9;},'hsIdL':_0x1c8904(0x117),'nqEzC':'playwright-chromium','aBiRJ':_0x1c8904(0x119),'ZeeSn':function(_0x21e1ea,_0x326245){return _0x21e1ea===_0x326245;},'ysnKR':_0x1c8904(0x143),'WphbU':function(_0x14abb8,_0x16b56c){return _0x14abb8>_0x16b56c;},'ethva':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','hjAyL':function(_0x47cdb7,_0x42dc5c){return _0x47cdb7(_0x42dc5c);},'fJrzY':_0x1c8904(0x11a),'QNSQo':function(_0x1511fd,_0x37488b){return _0x1511fd+_0x37488b;},'DkoyL':function(_0xe8c000,_0xfc56ef){return _0xe8c000(_0xfc56ef);}};try{if(_0x6a83fb[_0x1c8904(0x112)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x2a020f[_0x6a83fb[_0x1c8904(0x110)]]&&(global[_0x1c8904(0x12f)]=![]);!(_0x6a83fb[_0x1c8904(0x11c)](_0x2a020f[_0x1c8904(0xe7)],_0x6a83fb[_0x1c8904(0x106)])||_0x6a83fb[_0x1c8904(0x11c)](_0x2a020f['browserName'],_0x6a83fb[_0x1c8904(0xdc)]))&&(logger[_0x1c8904(0xf6)](_0x6a83fb[_0x1c8904(0x12d)]),global['accessibilityPlatform']=![]);!(_0x6a83fb[_0x1c8904(0xda)](_0x2a020f[_0x1c8904(0x109)],_0x6a83fb[_0x1c8904(0xf3)])||_0x6a83fb[_0x1c8904(0x130)](_0x2a020f[_0x1c8904(0x109)],0x5e))&&(logger[_0x1c8904(0xf6)](_0x6a83fb[_0x1c8904(0x10a)]),global[_0x1c8904(0x12f)]=![]);!_0x6a83fb['hjAyL'](isUndefined,_0x2a020f[_0x1c8904(0xdd)])&&(logger[_0x1c8904(0xf6)](_0x6a83fb['fJrzY']),global[_0x1c8904(0x12f)]=![]);if(!global[_0x1c8904(0x12f)]){_0x2a020f[_0x6a83fb[_0x1c8904(0x110)]]=![];const _0x57a480=_0x6a83fb[_0x1c8904(0x132)](_0x3887df,_0x6a83fb[_0x1c8904(0x142)](encodeURIComponent,JSON[_0x1c8904(0xf1)](_0x2a020f)));_0x1a84a9&&(_0x1a84a9[_0x1c8904(0xe5)]['testInfo'][_0x1c8904(0xff)]['use']['connectOptions'][_0x1c8904(0xd8)]=_0x57a480,_0x1a84a9[_0x1c8904(0x11d)]['project'][_0x1c8904(0x11b)][_0x1c8904(0x10c)]['wsEndpoint']=_0x57a480);}}}catch(_0x52ffee){logger[_0x1c8904(0x129)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x1c8904(0x10b)](_0x52ffee));}};
|
|
1
|
+
function a34_0x2e0a(_0xb14f23,_0x13a36b){const _0x2f0be5=a34_0x2f0b();return a34_0x2e0a=function(_0x2e0a04,_0x1a80cd){_0x2e0a04=_0x2e0a04-0x1ab;let _0x35286f=_0x2f0be5[_0x2e0a04];return _0x35286f;},a34_0x2e0a(_0xb14f23,_0x13a36b);}const a34_0x20a2d8=a34_0x2e0a;(function(_0x49d883,_0x3b48aa){const _0x37e69a=a34_0x2e0a,_0x5d0e49=_0x49d883();while(!![]){try{const _0x10ae04=-parseInt(_0x37e69a(0x1da))/0x1+-parseInt(_0x37e69a(0x1b8))/0x2*(parseInt(_0x37e69a(0x20a))/0x3)+parseInt(_0x37e69a(0x1fa))/0x4+parseInt(_0x37e69a(0x1ed))/0x5+parseInt(_0x37e69a(0x1f1))/0x6+-parseInt(_0x37e69a(0x1cf))/0x7*(parseInt(_0x37e69a(0x1d0))/0x8)+parseInt(_0x37e69a(0x1b5))/0x9*(parseInt(_0x37e69a(0x1e3))/0xa);if(_0x10ae04===_0x3b48aa)break;else _0x5d0e49['push'](_0x5d0e49['shift']());}catch(_0x3dcfa9){_0x5d0e49['push'](_0x5d0e49['shift']());}}}(a34_0x2f0b,0x94b48));function a34_0x2f0b(){const _0x23b1d1=['platformValidation','xNlWl','Mmkmh','getAccessibilityResultsSummary','debug','3499024uJTrPT','CRbrO','browserstack.accessibility','sRxMH','../../helpers/accessibility-automation/helper','accessibilityOptions.authToken','deviceName','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','name','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','hRbNC','WebDriver','browserStackEvaluate','chrome','executeScript','No\x20summaryResults\x20found.','2727krBDmi','dysHm','error','rXNWT','workerInfo','warn','poNIA','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','util','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','wchrs','Nphbt','MrNPY','TQDcH','../../helpers/helper','wcagVersion','method','latest','accessibilityOptions.scannerProcessingTimeout','bstackSdkArgs','scannerProcessingTimeout','qVnoU','format','winstonLogger','Playwright','browserStackExecuteDriver','scannerVersion','mqVcX','45ihxzHu','executeAsyncScript','zNkJs','138sFqcEo','testInfo','uIWfi','KoPpg','currentTest','includeIssueType','env','browserName','playwright-chromium','xQqGl','stringify','setAccessibilityCapabilities','bmZeD','iPjZT','LYPpg','atefq','replace','CPqMC','parse','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','No\x20accessibility\x20results\x20were\x20found.','KKKjS','7707308FixDuw','8abbZvw','dqaPc','(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','dQzfm','connectOptions','../../helpers/accessibility-automation/scripts','project','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','accessibilityOptions.scannerVersion','accessibilityOptions','687348hOrGci','MxlYp','needsReview','mPPzg','constructor','zufcL','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','yhfKs','BS_A11Y_JWT','50550cdxINC','kRyJd','iUPFz','wsEndpoint','use','ytwRv','VWnLU','fFHuk','processAccessibilityCaps','accessibilityOptions.includeIssueType.needsReview','5631485qXzzDl','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','getAccessibilityResults','IByDL','2603286yXrCWP','evaluate','browser_version','accessibilityPlatform'];a34_0x2f0b=function(){return _0x23b1d1;};return a34_0x2f0b();}const util=require(a34_0x20a2d8(0x212)),logger=require('../../helpers/logger')[a34_0x20a2d8(0x1b0)],{isAccessibilityAutomationSession}=require(a34_0x20a2d8(0x1fe)),{isUndefined}=require(a34_0x20a2d8(0x218)),scripts=require(a34_0x20a2d8(0x1d5));exports[a34_0x20a2d8(0x206)]=async(_0x47f173,_0x4f1de3,_0xf1778d={})=>{const _0x4b5b3e=a34_0x20a2d8,_0x53a0f9={};_0x53a0f9[_0x4b5b3e(0x214)]=_0x4b5b3e(0x1ac);const _0x3ee16d=_0x53a0f9;return await _0x47f173[_0x4b5b3e(0x1f2)](_0x4b5b3e(0x1d2)+_0x4f1de3[_0x4b5b3e(0x1c8)](/arguments/g,_0x3ee16d[_0x4b5b3e(0x214)])+_0x4b5b3e(0x203)+JSON['stringify'](_0xf1778d)+')');},exports[a34_0x20a2d8(0x1b2)]=async(_0x1e4e48,_0x196c9c,_0x2f38cc={})=>{const _0x12dfaa=a34_0x20a2d8,_0x2069ad={};_0x2069ad['mqVcX']=function(_0x109fa0,_0x22252e){return _0x109fa0===_0x22252e;},_0x2069ad[_0x12dfaa(0x1b7)]=_0x12dfaa(0x205),_0x2069ad[_0x12dfaa(0x1e8)]=function(_0x35eab8,_0x2020ee){return _0x35eab8===_0x2020ee;},_0x2069ad[_0x12dfaa(0x1f7)]=_0x12dfaa(0x1b1),_0x2069ad[_0x12dfaa(0x1f0)]=_0x12dfaa(0x1ac);const _0xfe29b8=_0x2069ad;if(_0xfe29b8[_0x12dfaa(0x1b4)](_0x1e4e48[_0x12dfaa(0x1de)][_0x12dfaa(0x202)],_0xfe29b8[_0x12dfaa(0x1b7)]))return await _0x1e4e48[_0x12dfaa(0x1b6)](_0x196c9c,_0x2f38cc);else{if(_0xfe29b8[_0x12dfaa(0x1e8)](_0x1e4e48[_0x12dfaa(0x1de)][_0x12dfaa(0x202)],_0xfe29b8[_0x12dfaa(0x1f7)]))return await _0x1e4e48[_0x12dfaa(0x208)](_0x12dfaa(0x1cc)+_0x196c9c[_0x12dfaa(0x1c8)](/arguments/g,_0xfe29b8[_0x12dfaa(0x1f0)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x12dfaa(0x1c2)](_0x2f38cc)+')');}},exports[a34_0x20a2d8(0x1c3)]=async _0x1efc3a=>{const _0x39fcae=a34_0x20a2d8,_0x2705ba={};_0x2705ba[_0x39fcae(0x20b)]='accessibilityOptions.wcagVersion',_0x2705ba[_0x39fcae(0x1c1)]=_0x39fcae(0x1ab),_0x2705ba[_0x39fcae(0x1fb)]='accessibilityOptions.includeIssueType.bestPractice',_0x2705ba[_0x39fcae(0x1d3)]=_0x39fcae(0x1ec),_0x2705ba[_0x39fcae(0x1e1)]=_0x39fcae(0x1ff),_0x2705ba[_0x39fcae(0x1ba)]=_0x39fcae(0x1d8);const _0x354f84=_0x2705ba;_0x1efc3a['accessibilityOptions']&&(_0x1efc3a['accessibilityOptions'][_0x39fcae(0x219)]&&(_0x1efc3a[_0x354f84['dysHm']]=_0x1efc3a['accessibilityOptions'][_0x39fcae(0x219)]),_0x1efc3a[_0x39fcae(0x1d9)][_0x39fcae(0x1ad)]&&(_0x1efc3a[_0x354f84[_0x39fcae(0x1c1)]]=_0x1efc3a[_0x39fcae(0x1d9)][_0x39fcae(0x1ad)]),_0x1efc3a['accessibilityOptions'][_0x39fcae(0x1bd)]&&(_0x1efc3a[_0x354f84[_0x39fcae(0x1fb)]]=_0x1efc3a[_0x39fcae(0x1d9)][_0x39fcae(0x1bd)]['bestPractice'],_0x1efc3a[_0x354f84[_0x39fcae(0x1d3)]]=_0x1efc3a[_0x39fcae(0x1d9)][_0x39fcae(0x1bd)][_0x39fcae(0x1dc)]));const _0xd2f56e=JSON[_0x39fcae(0x1ca)](process['env'][_0x39fcae(0x213)])[_0x39fcae(0x1b3)];_0x1efc3a[_0x354f84[_0x39fcae(0x1e1)]]=process[_0x39fcae(0x1be)][_0x39fcae(0x1e2)],_0x1efc3a[_0x354f84[_0x39fcae(0x1ba)]]=_0xd2f56e,delete _0x1efc3a[_0x39fcae(0x1d9)];},exports[a34_0x20a2d8(0x1ef)]=async _0x437a9b=>{const _0x542435=a34_0x20a2d8,_0x586031={};_0x586031[_0x542435(0x1c9)]=_0x542435(0x1cd),_0x586031[_0x542435(0x1c5)]=_0x542435(0x201);const _0x3e20b8=_0x586031;if(global[_0x542435(0x1f4)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x437a9b,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x437a9b,scripts.getResults);return res;}catch{return logger[_0x542435(0x20c)](_0x3e20b8[_0x542435(0x1c9)]),[];}else return logger['warn'](_0x3e20b8[_0x542435(0x1c5)]),[];},exports['performScan']=async(_0x5685fb,_0x2a5dc6='')=>{const _0x453928=a34_0x20a2d8;if(global[_0x453928(0x1f4)]){const _0x5c7135={};return _0x5c7135[_0x453928(0x21a)]=_0x2a5dc6,await exports[_0x453928(0x206)](_0x5685fb,scripts['performScan'],_0x5c7135);}},exports[a34_0x20a2d8(0x1f8)]=async _0x34f79b=>{const _0x5182d8=a34_0x20a2d8,_0x182916={};_0x182916['rXNWT']=_0x5182d8(0x209),_0x182916[_0x5182d8(0x1bb)]=_0x5182d8(0x211);const _0x5ba21a=_0x182916;if(global[_0x5182d8(0x1f4)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x34f79b,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x34f79b,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x5182d8(0x1f9)](_0x5ba21a[_0x5182d8(0x20d)]),{};}else return logger['warn'](_0x5ba21a[_0x5182d8(0x1bb)]),{};},exports[a34_0x20a2d8(0x1f5)]=async _0x15fedc=>{const _0x2b51b6=a34_0x20a2d8,_0x501ae9={'sRxMH':function(_0x53e832,_0x12b239){return _0x53e832!==_0x12b239;},'MxlYp':_0x2b51b6(0x1d7),'fFHuk':function(_0x5bf94d,_0x4ccfe0){return _0x5bf94d===_0x4ccfe0;},'bmZeD':'chrome','VwhwT':function(_0x3fd063,_0x7652ce){return _0x3fd063===_0x7652ce;},'qVnoU':_0x2b51b6(0x1c0),'GDDql':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','poNIA':function(_0x38e5f2,_0x1d6ef3){return _0x38e5f2(_0x1d6ef3);},'Nphbt':_0x2b51b6(0x21b),'LYPpg':function(_0xd7de52,_0xca2913){return _0xd7de52>_0xca2913;},'hRbNC':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x501ae9[_0x2b51b6(0x1fd)](_0x15fedc[_0x2b51b6(0x200)],''))return logger[_0x2b51b6(0x20f)](_0x501ae9[_0x2b51b6(0x1db)]),![];const _0x3285c3=_0x15fedc['browser'];if(!(_0x501ae9[_0x2b51b6(0x1ea)](_0x3285c3,_0x501ae9[_0x2b51b6(0x1c4)])||_0x501ae9['VwhwT'](_0x3285c3,_0x501ae9[_0x2b51b6(0x1ae)])))return logger[_0x2b51b6(0x20f)](_0x501ae9['GDDql']),![];const _0x5f53d8=_0x501ae9[_0x2b51b6(0x210)](parseInt,_0x15fedc['browser_version']);if(!(_0x501ae9[_0x2b51b6(0x1ea)](_0x5f53d8,_0x501ae9[_0x2b51b6(0x215)])||_0x501ae9[_0x2b51b6(0x1c6)](_0x5f53d8,0x5e)))return logger[_0x2b51b6(0x20f)](_0x501ae9[_0x2b51b6(0x204)]),![];}catch(_0x16b420){logger['debug'](_0x2b51b6(0x1cb)+util[_0x2b51b6(0x1af)](_0x16b420));}return!![];},exports[a34_0x20a2d8(0x1eb)]=(_0x3f09d6,_0x35e132,_0x3952e7)=>{const _0x40209a=a34_0x20a2d8,_0xc48195={'iUPFz':function(_0x4e9766){return _0x4e9766();},'KKKjS':_0x40209a(0x1fc),'VWnLU':function(_0x1fc782,_0x3c5ec8){return _0x1fc782===_0x3c5ec8;},'MrNPY':_0x40209a(0x207),'HIzSV':_0x40209a(0x1c0),'zufcL':_0x40209a(0x1e0),'VIYOu':_0x40209a(0x21b),'mPPzg':function(_0x1fb1f1,_0x273961){return _0x1fb1f1>_0x273961;},'atefq':_0x40209a(0x1ee),'xNlWl':function(_0x57700a,_0x2f2b33){return _0x57700a(_0x2f2b33);},'kRyJd':_0x40209a(0x1d7),'dqaPc':function(_0x5a4795,_0x26ff2a){return _0x5a4795+_0x26ff2a;},'TQDcH':function(_0x50c7e3,_0x9ee209){return _0x50c7e3(_0x9ee209);}};try{if(_0xc48195[_0x40209a(0x1e5)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x3f09d6[_0xc48195[_0x40209a(0x1ce)]]&&(global[_0x40209a(0x1f4)]=![]);!(_0xc48195[_0x40209a(0x1e9)](_0x3f09d6[_0x40209a(0x1bf)],_0xc48195[_0x40209a(0x216)])||_0xc48195['VWnLU'](_0x3f09d6[_0x40209a(0x1bf)],_0xc48195['HIzSV']))&&(logger[_0x40209a(0x20f)](_0xc48195[_0x40209a(0x1df)]),global['accessibilityPlatform']=![]);!(_0xc48195[_0x40209a(0x1e9)](_0x3f09d6['browser_version'],_0xc48195['VIYOu'])||_0xc48195[_0x40209a(0x1dd)](_0x3f09d6[_0x40209a(0x1f3)],0x5e))&&(logger[_0x40209a(0x20f)](_0xc48195[_0x40209a(0x1c7)]),global[_0x40209a(0x1f4)]=![]);!_0xc48195[_0x40209a(0x1f6)](isUndefined,_0x3f09d6[_0x40209a(0x200)])&&(logger[_0x40209a(0x20f)](_0xc48195[_0x40209a(0x1e4)]),global[_0x40209a(0x1f4)]=![]);if(!global[_0x40209a(0x1f4)]){_0x3f09d6[_0xc48195[_0x40209a(0x1ce)]]=![];const _0x519888=_0xc48195[_0x40209a(0x1d1)](_0x35e132,_0xc48195[_0x40209a(0x217)](encodeURIComponent,JSON['stringify'](_0x3f09d6)));_0x3952e7&&(_0x3952e7[_0x40209a(0x1bc)][_0x40209a(0x1b9)][_0x40209a(0x1d6)][_0x40209a(0x1e7)]['connectOptions'][_0x40209a(0x1e6)]=_0x519888,_0x3952e7[_0x40209a(0x20e)]['project']['use'][_0x40209a(0x1d4)][_0x40209a(0x1e6)]=_0x519888);}}}catch(_0x4c8a93){logger[_0x40209a(0x1f9)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x40209a(0x1af)](_0x4c8a93));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a35_0x33aa(){const _0x5f5685=['qfKxE','PACKAGE_TYPE','../../helpers/test-observability/error-handler','../../helpers/BrowserStackSetup','tPgDq','config','getProxyUrl','3451068BdCxjG','BvpCJ','8VpdiJJ','WfJbv','4AEKOzl','Error\x20in\x20getting\x20funnel\x20data\x20results','platform','test','518XOuSOY','skipSessionStatus','trim','dirname','length','true','nJOTO','QsFYJ','8761660QciHej','initialize','playwright-browserstack-sdk.config.cjs','QQCpD','BROWSERSTACK_TEST_OBSERVABILITY','LgzqA','Error\x20in\x20closing\x20playwright','Updated\x20config\x20file\x20name\x20to\x20-\x20','startsWith','env','isUndefined','mLqlz','accessibilityOptions','indexOf','Playwright\x20process\x20exited\x20with\x20code\x20','vTkQG','4979970puIYet','kJebM','isTypescriptProject','\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();','Deleting\x20','3208prBhPD','testObservability','cliConfig','697575tWYxDi','nestedKeyValue','jrjpA','join','inherit','skipSessionName','KUuAb','info','moXkv','FvYSB','fRVmc','GPKcA','ogmFD','existsSync','gYeTA','split','--config','resolve','LtSpR','filter','accessibility','gYASb','filterBrowserstackArgs','../../helpers/test-observability/utils','requirePWModule','close','launchBuild','../../helpers/accessibility-automation/helper','../../helpers/logger','slice','kADrM','markSDKSetupComplete','BrowserStack\x20config\x20file\x20not\x20found.','playwright','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','--disable-test-observability','getPackageType','KLRDu','4|1|8|3|0|7|5|2|6','PLAYWRIGHT','finalExecution','322009TchOUH','BROWSERSTACK_AUTOMATION','debug','USER_CONFIG_DETAILS_PATH','push','exports','ERGPC','resolvedConfigFile','argv','cwd','GOrca','./accessibility-helper','readFileSync','BROWSERSTACK_TEST_ACCESSIBILITY_YML','browserstackSetupConfig.json','getConfigPath','fiXHl','npx','--disable-browserstack-automation','winstonLogger','./reporter/pwUtils','splice','isFalse','arCli','Error\x20in\x20deleting\x20playwright\x20results','gSYBd','XFLxI','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','gBRqs','--config=','path','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','stringify','MODULE','veycl','isTrue','automation','../../helpers/utilities','OSVfj','../../helpers/test-observability/constants','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','map','findIndex','child_process','BvpPm','YlusF','KgysB','2671300FnTyeU','get','win32','BROWSERSTACK_RERUN_TESTS','../../helpers/helper','unlinkSync','llfHN','null','mhwax','playwright-browserstack-sdk.config.js','KMgDW','util','--grep','aIlCG'];a35_0x33aa=function(){return _0x5f5685;};return a35_0x33aa();}const a35_0x4c01c1=a35_0x299a;(function(_0x1c0823,_0xa072b0){const _0x195742=a35_0x299a,_0x100a39=_0x1c0823();while(!![]){try{const _0x823b47=parseInt(_0x195742(0x212))/0x1*(-parseInt(_0x195742(0x1c5))/0x2)+parseInt(_0x195742(0x1e9))/0x3*(-parseInt(_0x195742(0x1c3))/0x4)+parseInt(_0x195742(0x241))/0x5+parseInt(_0x195742(0x256))/0x6+parseInt(_0x195742(0x1c9))/0x7*(parseInt(_0x195742(0x1e6))/0x8)+-parseInt(_0x195742(0x1e1))/0x9+parseInt(_0x195742(0x1d1))/0xa;if(_0x823b47===_0xa072b0)break;else _0x100a39['push'](_0x100a39['shift']());}catch(_0x34fc8b){_0x100a39['push'](_0x100a39['shift']());}}}(a35_0x33aa,0x56270));function a35_0x299a(_0x1ea347,_0x15694a){const _0x33aa8e=a35_0x33aa();return a35_0x299a=function(_0x299a20,_0xbce038){_0x299a20=_0x299a20-0x1c2;let _0x28898e=_0x33aa8e[_0x299a20];return _0x28898e;},a35_0x299a(_0x1ea347,_0x15694a);}const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x4c01c1(0x23d)),{format}=require(a35_0x4c01c1(0x24c)),logger=require(a35_0x4c01c1(0x205))[a35_0x4c01c1(0x225)],{default:BrowserStackSetup}=require(a35_0x4c01c1(0x252)),helper=require(a35_0x4c01c1(0x245)),utilities=require(a35_0x4c01c1(0x237)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0x4c01c1(0x239)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x4c01c1(0x226)),{CrashReporter}=require(a35_0x4c01c1(0x251)),{getFrameworkVersion}=require(a35_0x4c01c1(0x200)),{checkAccessibilityPlatformConfig}=require(a35_0x4c01c1(0x204)),{setAccessibilityCapabilities}=require(a35_0x4c01c1(0x21d)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),getUserPlaywrightConfig=async(_0x325411,_0x18e90d)=>{const _0x496733=a35_0x4c01c1,_0x1cfd1e={'FNYWn':function(_0x399758){return _0x399758();},'llfHN':function(_0x4a7fc8,_0x17754d){return _0x4a7fc8(_0x17754d);},'yJpZY':_0x496733(0x219),'YxlRJ':_0x496733(0x22f)},_0x351404=!helper['isUndefined'](_0x325411['config']),_0x2ed491=_0x351404?path[_0x496733(0x1fa)](process[_0x496733(0x21b)](),_0x325411[_0x496733(0x254)]):process[_0x496733(0x21b)](),{resolveConfigFile:_0x59d5c4,resolveConfigLocation:_0x1e7674}=helper[_0x496733(0x201)]['apply'](null,_0x1cfd1e['FNYWn'](getConfigLoaderPath)),_0x32dcdd=_0x59d5c4?_0x1cfd1e['llfHN'](_0x59d5c4,_0x2ed491):helper[_0x496733(0x1ea)](_0x1cfd1e[_0x496733(0x247)](_0x1e7674,_0x2ed491),[_0x1cfd1e['yJpZY']]),_0x2145a2={};if(_0x351404){const _0x17fd14=_0x18e90d[_0x496733(0x23c)](_0xe43326=>_0xe43326===_0x496733(0x1f9)||_0xe43326==='-c'||_0xe43326[_0x496733(0x1d9)](_0x496733(0x22f)));_0x18e90d[_0x496733(0x227)](_0x17fd14,_0x18e90d[_0x17fd14][_0x496733(0x1d9)](_0x1cfd1e['YxlRJ'])?0x1:0x2);}const _0x400e99={};return _0x400e99[_0x496733(0x230)]=_0x32dcdd,_0x400e99[_0x496733(0x254)]=_0x2145a2,_0x400e99;},handleO11yRerun=_0x1adc33=>{const _0x132324=a35_0x4c01c1,_0x5bd07d={};_0x5bd07d[_0x132324(0x1f5)]=function(_0x3ffe6d,_0x368d4d){return _0x3ffe6d!==_0x368d4d;},_0x5bd07d['ERGPC']=_0x132324(0x248),_0x5bd07d[_0x132324(0x1f3)]=_0x132324(0x24d);const _0x490a2b=_0x5bd07d,_0x4f9dde=helper[_0x132324(0x235)](process[_0x132324(0x1da)]['BROWSERSTACK_RERUN']);if(_0x4f9dde){const _0x40c58e=process['env'][_0x132324(0x244)],_0x3cb1f6=[];if(_0x490a2b[_0x132324(0x1f5)](_0x40c58e,_0x490a2b[_0x132324(0x218)])&&!helper[_0x132324(0x1db)](_0x40c58e)){_0x40c58e['split'](',')[_0x132324(0x23b)](_0x721692=>{const _0x530a78=_0x132324;_0x3cb1f6[_0x530a78(0x216)]('('+_0x721692[_0x530a78(0x1cb)]()+')');});const _0x4676e9='^'+_0x3cb1f6[_0x132324(0x1ec)]('|')+'$';_0x1adc33[_0x132324(0x216)](_0x490a2b[_0x132324(0x1f3)],_0x4676e9);}}},spawnOriginalProcess=_0x450747=>{const _0x539810=a35_0x4c01c1,_0x182f1f={'tPgDq':function(_0x5a2bd4,_0x55021f,_0x5f063b,_0x41584d){return _0x5a2bd4(_0x55021f,_0x5f063b,_0x41584d);},'kADrM':_0x539810(0x223),'kBwvW':_0x539810(0x20a),'kJebM':function(_0x49e29d,_0x139df7){return _0x49e29d===_0x139df7;},'gLtQe':_0x539810(0x243),'QsFYJ':_0x539810(0x1ed)};_0x182f1f[_0x539810(0x253)](spawn,_0x182f1f[_0x539810(0x207)],[_0x182f1f['kBwvW'],..._0x450747[_0x539810(0x206)](0x1)],{'shell':_0x182f1f[_0x539810(0x1e2)](process[_0x539810(0x1c7)],_0x182f1f['gLtQe']),'stdio':_0x182f1f[_0x539810(0x1d0)],'cwd':process[_0x539810(0x21b)]()});},isTestCommand=(_0x58f92f,_0x20425a)=>{const _0x52ff8e=a35_0x4c01c1,_0x479ed4={};_0x479ed4['GFJvf']=function(_0x235c19,_0x4bdf16){return _0x235c19>_0x4bdf16;},_0x479ed4[_0x52ff8e(0x24b)]=function(_0x13ac46,_0x56948a){return _0x13ac46===_0x56948a;},_0x479ed4['AWpwF']='test';const _0x5a72a3=_0x479ed4;if(_0x5a72a3['GFJvf'](_0x20425a[_0x52ff8e(0x1cd)],0x1)&&_0x5a72a3[_0x52ff8e(0x24b)](_0x20425a[0x1],_0x5a72a3['AWpwF']))return!![];return![];};async function run(_0x12a0ae,_0x41252c){const _0x1aecf7=a35_0x4c01c1,_0xab1042={'gSYBd':'.browserstack','jrjpA':'pw_result.json','vTkQG':function(_0x597f9f,_0x1eecf5){return _0x597f9f+_0x1eecf5;},'hrgnf':_0x1aecf7(0x1c6),'KLRDu':_0x1aecf7(0x20f),'YeLdE':function(_0x262396){return _0x262396();},'KUuAb':function(_0x4b3c80,_0x526864){return _0x4b3c80+_0x526864;},'GPKcA':_0x1aecf7(0x1d7),'gBRqs':_0x1aecf7(0x224),'aIlCG':'false','nJOTO':_0x1aecf7(0x20c),'FvYSB':function(_0x190ebc,_0x4d3012){return _0x190ebc>=_0x4d3012;},'KgysB':function(_0x1778b9,_0x2a79ef){return _0x1778b9+_0x2a79ef;},'moXkv':_0x1aecf7(0x22a),'mLqlz':function(_0x467074,_0x6edf50,_0x1131b7){return _0x467074(_0x6edf50,_0x1131b7);},'QQCpD':function(_0x2f75c6,_0x371f50){return _0x2f75c6(_0x371f50);},'WfJbv':_0x1aecf7(0x209),'XFLxI':_0x1aecf7(0x236),'AMjAX':function(_0x4fd125,_0x4b0310){return _0x4fd125!=_0x4b0310;},'gYASb':function(_0x488537,_0x4a129c,_0x4d8124){return _0x488537(_0x4a129c,_0x4d8124);},'YlusF':function(_0x30c7c8,_0x237e95){return _0x30c7c8(_0x237e95);},'BvpCJ':function(_0x19a2a9,_0x1a75b2){return _0x19a2a9===_0x1a75b2;},'DcNeu':_0x1aecf7(0x1ce),'arCli':_0x1aecf7(0x220),'LtSpR':function(_0x2b33a8,_0x5abd27){return _0x2b33a8===_0x5abd27;},'qfKxE':_0x1aecf7(0x1d3),'RoudM':_0x1aecf7(0x24a),'fiXHl':function(_0x297d06,_0x51d400){return _0x297d06-_0x51d400;},'FMqFA':_0x1aecf7(0x1d8),'LgzqA':function(_0x578efe,_0x32f1b9){return _0x578efe>_0x32f1b9;},'GOrca':function(_0x598ee5,_0x44699e){return _0x598ee5+_0x44699e;},'gYeTA':function(_0x8008e9,_0x99efe4,_0xf5b31b,_0x1d774c){return _0x8008e9(_0x99efe4,_0xf5b31b,_0x1d774c);},'dPslW':'npx','nyBPE':_0x1aecf7(0x20a),'mhwax':_0x1aecf7(0x1c8),'BvpPm':_0x1aecf7(0x1f9),'zxJJk':_0x1aecf7(0x243),'veycl':'inherit','OSVfj':_0x1aecf7(0x202)};!helper[_0x1aecf7(0x228)](process[_0x1aecf7(0x1da)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x1aecf7(0x1da)][_0x1aecf7(0x213)]=!![]);process[_0x1aecf7(0x21a)]['includes'](_0xab1042[_0x1aecf7(0x22e)])&&(process[_0x1aecf7(0x1da)][_0x1aecf7(0x213)]=_0xab1042[_0x1aecf7(0x24e)],_0x41252c=_0x41252c['filter'](_0x5e5b3f=>_0x5e5b3f!==_0x1aecf7(0x224)));const _0x3bd7ff=_0x41252c[_0x1aecf7(0x1de)](_0xab1042[_0x1aecf7(0x1cf)]);_0xab1042[_0x1aecf7(0x1f2)](_0x3bd7ff,0x0)&&(process[_0x1aecf7(0x1da)][_0x1aecf7(0x1d5)]=_0xab1042[_0x1aecf7(0x24e)],_0x41252c=_0x41252c[_0x1aecf7(0x1fc)](_0x1e79e1=>_0x1e79e1!==_0x1aecf7(0x20c)));try{const _0x2bd851=path[_0x1aecf7(0x1ec)](helper['homedir'](),_0xab1042['gSYBd'],_0xab1042[_0x1aecf7(0x1eb)]);fs[_0x1aecf7(0x1f6)](_0x2bd851)&&fs[_0x1aecf7(0x246)](_0x2bd851);}catch(_0x5252bb){logger[_0x1aecf7(0x214)](_0xab1042[_0x1aecf7(0x240)](_0xab1042[_0x1aecf7(0x1f1)],_0x5252bb));}if(!_0xab1042[_0x1aecf7(0x1dc)](isTestCommand,_0x12a0ae,_0x41252c)){_0xab1042['QQCpD'](spawnOriginalProcess,_0x41252c);return;}const _0x38996f=new BrowserStackSetup(_0x12a0ae,FRAMEWORKS[_0x1aecf7(0x210)]);if(!_0x38996f[_0x1aecf7(0x254)]){logger['error'](_0xab1042[_0x1aecf7(0x1c4)]);return;}await _0x38996f[_0x1aecf7(0x1d2)]();!helper[_0x1aecf7(0x1db)](_0x38996f['cliConfig'])&&_0x38996f[_0x1aecf7(0x1e8)]['has'](_0xab1042[_0x1aecf7(0x22c)])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x38996f[_0x1aecf7(0x1e8)][_0x1aecf7(0x242)](_0xab1042[_0x1aecf7(0x22c)])||!![]);_0xab1042['AMjAX'](_0x38996f[_0x1aecf7(0x254)][_0x1aecf7(0x1e7)],null)&&!helper[_0x1aecf7(0x235)](process[_0x1aecf7(0x1da)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process['env'][_0x1aecf7(0x1d5)]=process[_0x1aecf7(0x1da)][_0x1aecf7(0x1d5)]||_0x38996f['config'][_0x1aecf7(0x1e7)]);const _0x11f3f5=!helper[_0x1aecf7(0x228)](process[_0x1aecf7(0x1da)][_0x1aecf7(0x1d5)]);let _0x32058f=![];_0x38996f[_0x1aecf7(0x254)][_0x1aecf7(0x1fd)]&&(_0x32058f=!![],process[_0x1aecf7(0x1da)][_0x1aecf7(0x21f)]=_0x38996f[_0x1aecf7(0x254)][_0x1aecf7(0x1fd)]);_0x38996f[_0x1aecf7(0x254)]['accessibilityOptions']&&(process['env'][_0x1aecf7(0x23a)]=JSON[_0x1aecf7(0x232)](_0x38996f[_0x1aecf7(0x254)][_0x1aecf7(0x1dd)]));const _0x319428=_0x41252c['concat'](),_0x3950eb=await _0xab1042[_0x1aecf7(0x1fe)](getUserPlaywrightConfig,_0x12a0ae,_0x41252c);if(helper[_0x1aecf7(0x1db)](_0x3950eb)){_0xab1042[_0x1aecf7(0x23f)](spawnOriginalProcess,_0x319428);return;}const _0x4071cc=_0x3950eb[_0x1aecf7(0x230)]?path[_0x1aecf7(0x1cc)](_0x3950eb[_0x1aecf7(0x230)]):process[_0x1aecf7(0x21b)]();process[_0x1aecf7(0x1da)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x4071cc,await TestHubHandler[_0x1aecf7(0x203)](FRAMEWORKS[_0x1aecf7(0x210)],_0x38996f);_0x11f3f5&&_0xab1042['QQCpD'](handleO11yRerun,_0x41252c);let _0x4b75ce=_0xab1042['BvpCJ'](process[_0x1aecf7(0x1da)][_0x1aecf7(0x21f)],_0xab1042['DcNeu']);_0x4b75ce=_0x4b75ce||_0xab1042[_0x1aecf7(0x1d4)](checkAccessibilityPlatformConfig,_0x38996f[_0x1aecf7(0x254)]),process[_0x1aecf7(0x1da)][_0x1aecf7(0x21f)]=_0x4b75ce;_0x4b75ce&&_0xab1042[_0x1aecf7(0x23f)](setAccessibilityCapabilities,_0x38996f[_0x1aecf7(0x254)]);const _0x468c73=path[_0x1aecf7(0x1ec)](_0x3950eb[_0x1aecf7(0x230)]?path[_0x1aecf7(0x1cc)](_0x3950eb['path']):process[_0x1aecf7(0x21b)](),_0xab1042[_0x1aecf7(0x229)]);fs['writeFileSync'](_0x468c73,helper['serializeToYamlString'](_0x38996f[_0x1aecf7(0x254)])),process[_0x1aecf7(0x1da)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x468c73,helper['clearTempPWConfig']();let _0x5e085c='';_0xab1042[_0x1aecf7(0x1fb)](helper[_0x1aecf7(0x20d)](),constants[_0x1aecf7(0x250)][_0x1aecf7(0x233)])?_0x5e085c=_0xab1042[_0x1aecf7(0x24f)]:_0x5e085c=_0xab1042['RoudM'];let _0x5e5b7a='';if(helper[_0x1aecf7(0x1e3)](_0x3950eb[_0x1aecf7(0x230)])){_0x5e5b7a=_0x1aecf7(0x20b);const _0x414fe0=_0x5e085c[_0x1aecf7(0x1f8)]('.');_0x414fe0[_0xab1042[_0x1aecf7(0x222)](_0x414fe0[_0x1aecf7(0x1cd)],0x1)]='ts',_0x5e085c=_0x414fe0[_0x1aecf7(0x1ec)]('.'),logger[_0x1aecf7(0x214)](_0xab1042['KUuAb'](_0xab1042['FMqFA'],_0x5e085c));}else _0x5e5b7a=_0x1aecf7(0x22d);const _0x3b7a81=path[_0x1aecf7(0x1ec)](_0x3950eb[_0x1aecf7(0x230)]?path[_0x1aecf7(0x1cc)](_0x3950eb[_0x1aecf7(0x230)]):process[_0x1aecf7(0x21b)](),_0x5e085c);let _0x43fe52=_0x3950eb[_0x1aecf7(0x230)]?_0x3950eb[_0x1aecf7(0x230)]:'';_0x43fe52=_0xab1042[_0x1aecf7(0x1d6)](_0x43fe52['length'],0x0)?path['resolve'](_0x43fe52):'',process['env'][_0x1aecf7(0x215)]=_0x43fe52;const _0x3fb2f1=helper[_0x1aecf7(0x255)](_0x38996f[_0x1aecf7(0x254)]);_0x3fb2f1&&(_0x5e5b7a=_0xab1042[_0x1aecf7(0x21c)](_0x1aecf7(0x231)+_0x3fb2f1+_0x1aecf7(0x1e4),_0x5e5b7a));helper[_0x1aecf7(0x1ff)]({},_0x41252c),fs['writeFileSync'](_0x3b7a81,_0x5e5b7a),helper[_0x1aecf7(0x208)]();const _0x3edaee=_0xab1042[_0x1aecf7(0x1f7)](spawn,_0xab1042['dPslW'],[_0xab1042['nyBPE'],_0xab1042[_0x1aecf7(0x249)],_0xab1042[_0x1aecf7(0x23e)],_0x3b7a81,..._0x41252c[_0x1aecf7(0x206)](0x2)],{'shell':_0xab1042[_0x1aecf7(0x1c2)](process[_0x1aecf7(0x1c7)],_0xab1042['zxJJk']),'stdio':_0xab1042[_0x1aecf7(0x234)],'cwd':process[_0x1aecf7(0x21b)](),'env':Object['assign']({},process[_0x1aecf7(0x1da)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x1aecf7(0x221)](_0x12a0ae),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x38996f[_0x1aecf7(0x254)]['testContextOptions'][_0x1aecf7(0x1ca)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x38996f[_0x1aecf7(0x254)]['testContextOptions'][_0x1aecf7(0x1ee)],'BROWSERSTACK_LOG_LEVEL':_0x38996f[_0x1aecf7(0x254)]['logLevel']})}),_0x44cfdd=()=>{const _0x41b20b=_0x1aecf7;try{const _0x4736de=path['join'](helper['homedir'](),_0xab1042[_0x41b20b(0x22b)],_0xab1042[_0x41b20b(0x1eb)]);if(fs[_0x41b20b(0x1f6)](_0x4736de)){let _0xd75460=fs[_0x41b20b(0x21e)](_0x4736de);_0xd75460=JSON['parse'](_0xd75460),_0x38996f['errorMessage']=_0xd75460,fs[_0x41b20b(0x246)](_0x4736de);}}catch(_0x235721){logger['debug'](_0xab1042[_0x41b20b(0x1e0)](_0xab1042['hrgnf'],_0x235721));}};_0x3edaee['on'](_0xab1042[_0x1aecf7(0x238)],async _0x508988=>{const _0x469916=_0x1aecf7;try{const _0x9e4ec8=_0xab1042[_0x469916(0x20e)]['split']('|');let _0x142be1=0x0;while(!![]){switch(_0x9e4ec8[_0x142be1++]){case'0':logger[_0x469916(0x214)](_0x469916(0x1df)+_0x508988);continue;case'1':await TestHubHandler['stop']();continue;case'2':logger[_0x469916(0x214)]('Deleting\x20'+_0x468c73);continue;case'3':process['exitCode']=_0x508988;continue;case'4':_0xab1042['YeLdE'](_0x44cfdd);continue;case'5':fs[_0x469916(0x246)](_0x3b7a81);continue;case'6':fs[_0x469916(0x246)](_0x468c73);continue;case'7':logger[_0x469916(0x1f0)](_0x469916(0x1e5)+_0x3b7a81);continue;case'8':await utilities[_0x469916(0x211)](_0x38996f);continue;}break;}}catch(_0x517697){logger[_0x469916(0x214)](_0xab1042[_0x469916(0x1ef)](_0xab1042[_0x469916(0x1f4)],_0x517697));}});}module[a35_0x4c01c1(0x217)]=run;
|
|
2
|
+
'use strict';const a35_0x3d3a09=a35_0x5606;(function(_0x40ef89,_0x169573){const _0x23eeeb=a35_0x5606,_0x3b239a=_0x40ef89();while(!![]){try{const _0x115ebc=-parseInt(_0x23eeeb(0x188))/0x1*(parseInt(_0x23eeeb(0x1ae))/0x2)+-parseInt(_0x23eeeb(0x1a4))/0x3+-parseInt(_0x23eeeb(0x1dc))/0x4+-parseInt(_0x23eeeb(0x21b))/0x5*(parseInt(_0x23eeeb(0x1f1))/0x6)+parseInt(_0x23eeeb(0x1e1))/0x7+-parseInt(_0x23eeeb(0x19b))/0x8*(-parseInt(_0x23eeeb(0x1ce))/0x9)+parseInt(_0x23eeeb(0x1e7))/0xa*(parseInt(_0x23eeeb(0x1fd))/0xb);if(_0x115ebc===_0x169573)break;else _0x3b239a['push'](_0x3b239a['shift']());}catch(_0x5d3c13){_0x3b239a['push'](_0x3b239a['shift']());}}}(a35_0x5e06,0xcf49b));const fs=require('fs'),path=require(a35_0x3d3a09(0x1d8)),{spawn}=require(a35_0x3d3a09(0x1d6)),{format}=require(a35_0x3d3a09(0x1e8)),logger=require(a35_0x3d3a09(0x1d3))[a35_0x3d3a09(0x207)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),utilities=require(a35_0x3d3a09(0x1b1)),constants=require(a35_0x3d3a09(0x18d)),{FRAMEWORKS}=require(a35_0x3d3a09(0x192)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require('../../helpers/test-observability/error-handler'),{getFrameworkVersion}=require(a35_0x3d3a09(0x20a)),{checkAccessibilityPlatformConfig}=require(a35_0x3d3a09(0x1df)),{setAccessibilityCapabilities}=require(a35_0x3d3a09(0x212)),TestHubHandler=require(a35_0x3d3a09(0x1ad)),{shouldProcessEventForTesthub}=require(a35_0x3d3a09(0x1c0)),getUserPlaywrightConfig=async(_0x414f5e,_0x45eacb)=>{const _0x5b9c6a=a35_0x3d3a09,_0x308dab={'xXAcW':function(_0x21d9d4){return _0x21d9d4();},'ylkNA':function(_0x57bb2e,_0x5101c7){return _0x57bb2e(_0x5101c7);},'HWCCK':_0x5b9c6a(0x1a2),'sGTZg':_0x5b9c6a(0x219)},_0x378be8=!helper['isUndefined'](_0x414f5e['config']),_0x43222b=_0x378be8?path[_0x5b9c6a(0x1a8)](process['cwd'](),_0x414f5e[_0x5b9c6a(0x18b)]):process[_0x5b9c6a(0x213)](),{resolveConfigFile:_0x1c0910,resolveConfigLocation:_0x2629d4}=helper[_0x5b9c6a(0x1f2)][_0x5b9c6a(0x20c)](null,_0x308dab['xXAcW'](getConfigLoaderPath)),_0x1b651c=_0x1c0910?_0x308dab[_0x5b9c6a(0x20f)](_0x1c0910,_0x43222b):helper[_0x5b9c6a(0x1ed)](_0x308dab[_0x5b9c6a(0x20f)](_0x2629d4,_0x43222b),[_0x308dab[_0x5b9c6a(0x1d9)]]),_0x639eaf={};if(_0x378be8){const _0x4a5a33=_0x45eacb[_0x5b9c6a(0x18c)](_0x3707b6=>_0x3707b6===_0x5b9c6a(0x1e6)||_0x3707b6==='-c'||_0x3707b6['startsWith'](_0x5b9c6a(0x219)));_0x45eacb[_0x5b9c6a(0x1ab)](_0x4a5a33,_0x45eacb[_0x4a5a33][_0x5b9c6a(0x1e0)](_0x308dab['sGTZg'])?0x1:0x2);}const _0x529ded={};return _0x529ded[_0x5b9c6a(0x1d8)]=_0x1b651c,_0x529ded['config']=_0x639eaf,_0x529ded;},handleO11yRerun=_0x2e8919=>{const _0x541c11=a35_0x3d3a09,_0x15ea8a={};_0x15ea8a['nUNaM']=function(_0x24dcbd,_0x2a31d8){return _0x24dcbd!==_0x2a31d8;},_0x15ea8a[_0x541c11(0x1ee)]=_0x541c11(0x1bc),_0x15ea8a['pIPnh']='--grep';const _0x249ccd=_0x15ea8a,_0x4711a9=helper[_0x541c11(0x1a3)](process[_0x541c11(0x1f8)]['BROWSERSTACK_RERUN']);if(_0x4711a9){const _0x36b86a=process[_0x541c11(0x1f8)][_0x541c11(0x18e)],_0x12b2cc=[];if(_0x249ccd['nUNaM'](_0x36b86a,_0x249ccd[_0x541c11(0x1ee)])&&!helper[_0x541c11(0x196)](_0x36b86a)){_0x36b86a['split'](',')[_0x541c11(0x21a)](_0x4a6542=>{const _0x47ace3=_0x541c11;_0x12b2cc[_0x47ace3(0x197)]('('+_0x4a6542[_0x47ace3(0x21f)]()+')');});const _0x4d583d='^'+_0x12b2cc[_0x541c11(0x1d1)]('|')+'$';_0x2e8919['push'](_0x249ccd[_0x541c11(0x220)],_0x4d583d);}}},spawnOriginalProcess=_0x4985c1=>{const _0x3c05c2=a35_0x3d3a09,_0x1d1e2e={'atGuc':function(_0x5f096d,_0xf35fa2,_0x13b781,_0x52432f){return _0x5f096d(_0xf35fa2,_0x13b781,_0x52432f);},'hzbrl':_0x3c05c2(0x1fe),'fVEtq':_0x3c05c2(0x202),'DPmjT':function(_0xf400f5,_0x58e044){return _0xf400f5===_0x58e044;},'hGjtB':_0x3c05c2(0x1c8),'XqJMg':_0x3c05c2(0x1b5)};_0x1d1e2e[_0x3c05c2(0x1e2)](spawn,_0x1d1e2e['hzbrl'],[_0x1d1e2e['fVEtq'],..._0x4985c1[_0x3c05c2(0x209)](0x1)],{'shell':_0x1d1e2e[_0x3c05c2(0x1f7)](process['platform'],_0x1d1e2e[_0x3c05c2(0x1be)]),'stdio':_0x1d1e2e[_0x3c05c2(0x217)],'cwd':process[_0x3c05c2(0x213)]()});},isTestCommand=(_0x5024ca,_0x1976a8)=>{const _0x3aad99=a35_0x3d3a09,_0x216c34={};_0x216c34[_0x3aad99(0x1f0)]=function(_0xba7483,_0x47461a){return _0xba7483>_0x47461a;},_0x216c34[_0x3aad99(0x1ac)]=function(_0x596156,_0x48f9ee){return _0x596156===_0x48f9ee;},_0x216c34['roJPq']='test';const _0x2ff9f2=_0x216c34;if(_0x2ff9f2[_0x3aad99(0x1f0)](_0x1976a8[_0x3aad99(0x18a)],0x1)&&_0x2ff9f2[_0x3aad99(0x1ac)](_0x1976a8[0x1],_0x2ff9f2[_0x3aad99(0x218)]))return!![];return![];};function a35_0x5606(_0x3bf11c,_0x117496){const _0x5e0678=a35_0x5e06();return a35_0x5606=function(_0x5606f1,_0x3e9393){_0x5606f1=_0x5606f1-0x187;let _0x37cd05=_0x5e0678[_0x5606f1];return _0x37cd05;},a35_0x5606(_0x3bf11c,_0x117496);}async function run(_0x546afd,_0x46a666){const _0x4ff71a=a35_0x3d3a09,_0x54fcf1={'YqEKx':_0x4ff71a(0x199),'KJuSU':'pw_result.json','PrPOE':function(_0x369eb3,_0x559685){return _0x369eb3+_0x559685;},'LJXJE':_0x4ff71a(0x1c3),'bjzIE':_0x4ff71a(0x1c9),'sWUSL':function(_0x25cc5a){return _0x25cc5a();},'CsMFX':function(_0x5ea367,_0x5e8908){return _0x5ea367+_0x5e8908;},'zwXSx':_0x4ff71a(0x194),'jkMnv':'--disable-browserstack-automation','MESAS':'false','ohPzz':_0x4ff71a(0x1a9),'ucjdW':function(_0x468940,_0x525119){return _0x468940>=_0x525119;},'UjzcX':function(_0x2ed42b,_0x4e510a){return _0x2ed42b+_0x4e510a;},'ZRdzS':'Error\x20in\x20deleting\x20playwright\x20results','PImMV':function(_0x35eb79,_0x2028bd,_0x3ab016){return _0x35eb79(_0x2028bd,_0x3ab016);},'wiByJ':function(_0x957f12,_0x56e46d){return _0x957f12(_0x56e46d);},'OgGuf':_0x4ff71a(0x1e3),'EINBc':'automation','rQuPu':function(_0x4abe4c,_0x54d6eb){return _0x4abe4c!=_0x54d6eb;},'eRcaF':function(_0x125253,_0x4f4c9c){return _0x125253===_0x4f4c9c;},'AkXAc':_0x4ff71a(0x216),'tgLqX':function(_0x381150,_0x21af46){return _0x381150(_0x21af46);},'BpeFN':function(_0x5714f3,_0x40d449){return _0x5714f3(_0x40d449);},'jJYOq':'browserstackSetupConfig.json','Fvxiv':_0x4ff71a(0x1c2),'aqZBz':_0x4ff71a(0x1c7),'lXRvX':function(_0x7e855d,_0x260e7f){return _0x7e855d-_0x260e7f;},'vNZWi':_0x4ff71a(0x1a7),'FTekH':function(_0xc11dd7,_0x3b943d){return _0xc11dd7>_0x3b943d;},'ntdMP':function(_0x701906,_0xa53ffa,_0x35b921,_0x3caf3a){return _0x701906(_0xa53ffa,_0x35b921,_0x3caf3a);},'sKSVr':_0x4ff71a(0x1fe),'DkxhG':_0x4ff71a(0x202),'WQdIe':_0x4ff71a(0x1af),'MCxTR':_0x4ff71a(0x1e6),'ymgfh':function(_0x2bcf1b,_0x5e491f){return _0x2bcf1b===_0x5e491f;},'SwzaA':_0x4ff71a(0x1c8),'gzEKX':_0x4ff71a(0x1b5),'OmxDN':_0x4ff71a(0x1b7)};!helper[_0x4ff71a(0x20d)](process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1c6)])&&(process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1c6)]=!![]);process['argv'][_0x4ff71a(0x1fb)](_0x54fcf1[_0x4ff71a(0x1bf)])&&(process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1c6)]=_0x54fcf1[_0x4ff71a(0x1e9)],_0x46a666=_0x46a666[_0x4ff71a(0x1a6)](_0x256e90=>_0x256e90!==_0x4ff71a(0x215)));const _0x2ae0b8=_0x46a666[_0x4ff71a(0x20b)](_0x54fcf1[_0x4ff71a(0x1dd)]);_0x54fcf1[_0x4ff71a(0x1cf)](_0x2ae0b8,0x0)&&(process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1e5)]=_0x54fcf1[_0x4ff71a(0x1e9)],_0x46a666=_0x46a666[_0x4ff71a(0x1a6)](_0x22a0c0=>_0x22a0c0!==_0x4ff71a(0x1a9)));try{const _0x4e1710=path[_0x4ff71a(0x1d1)](helper[_0x4ff71a(0x21c)](),_0x54fcf1[_0x4ff71a(0x1a0)],_0x54fcf1[_0x4ff71a(0x1c5)]);fs['existsSync'](_0x4e1710)&&fs[_0x4ff71a(0x1d7)](_0x4e1710);}catch(_0x1cf4b3){logger['debug'](_0x54fcf1[_0x4ff71a(0x204)](_0x54fcf1[_0x4ff71a(0x198)],_0x1cf4b3));}if(!_0x54fcf1['PImMV'](isTestCommand,_0x546afd,_0x46a666)){_0x54fcf1[_0x4ff71a(0x214)](spawnOriginalProcess,_0x46a666);return;}const _0x44cd5f=new BrowserStackSetup(_0x546afd,FRAMEWORKS[_0x4ff71a(0x19e)]);if(!_0x44cd5f['config']){logger['error'](_0x54fcf1[_0x4ff71a(0x1b8)]);return;}await _0x44cd5f[_0x4ff71a(0x1d0)]();!helper[_0x4ff71a(0x196)](_0x44cd5f['cliConfig'])&&_0x44cd5f[_0x4ff71a(0x1f9)][_0x4ff71a(0x1cb)](_0x54fcf1[_0x4ff71a(0x200)])&&(process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1c6)]=_0x44cd5f['cliConfig'][_0x4ff71a(0x1b2)](_0x54fcf1[_0x4ff71a(0x200)])||!![]);_0x54fcf1[_0x4ff71a(0x1e4)](_0x44cd5f['config'][_0x4ff71a(0x1de)],null)&&!helper[_0x4ff71a(0x1a3)](process['env'][_0x4ff71a(0x1e5)])&&(process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1e5)]=process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1e5)]||_0x44cd5f[_0x4ff71a(0x18b)][_0x4ff71a(0x1de)]);const _0x39acdd=!helper[_0x4ff71a(0x20d)](process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1e5)]);let _0x587b18=![];_0x44cd5f['config'][_0x4ff71a(0x1bd)]&&(_0x587b18=!![],process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1cc)]=_0x44cd5f[_0x4ff71a(0x18b)][_0x4ff71a(0x1bd)]);_0x44cd5f[_0x4ff71a(0x18b)]['accessibilityOptions']&&(process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1ba)]=JSON[_0x4ff71a(0x21d)](_0x44cd5f['config']['accessibilityOptions']));const _0x1804d6=_0x46a666[_0x4ff71a(0x1ef)](),_0x47e2a6=await _0x54fcf1[_0x4ff71a(0x1ff)](getUserPlaywrightConfig,_0x546afd,_0x46a666);if(helper[_0x4ff71a(0x196)](_0x47e2a6)){_0x54fcf1[_0x4ff71a(0x214)](spawnOriginalProcess,_0x1804d6);return;}const _0x3a6426=_0x47e2a6[_0x4ff71a(0x1d8)]?path[_0x4ff71a(0x1fa)](_0x47e2a6[_0x4ff71a(0x1d8)]):process[_0x4ff71a(0x213)]();process[_0x4ff71a(0x1f8)][_0x4ff71a(0x189)]=_0x3a6426,await TestHubHandler[_0x4ff71a(0x191)](FRAMEWORKS[_0x4ff71a(0x19e)],_0x44cd5f);_0x39acdd&&_0x54fcf1[_0x4ff71a(0x214)](handleO11yRerun,_0x46a666);let _0x244cb9=_0x54fcf1['eRcaF'](process[_0x4ff71a(0x1f8)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x54fcf1[_0x4ff71a(0x1bb)]);_0x244cb9=_0x244cb9||_0x54fcf1[_0x4ff71a(0x19f)](checkAccessibilityPlatformConfig,_0x44cd5f[_0x4ff71a(0x18b)]),process[_0x4ff71a(0x1f8)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x244cb9;_0x244cb9&&_0x54fcf1['BpeFN'](setAccessibilityCapabilities,_0x44cd5f[_0x4ff71a(0x18b)]);const _0x1cce90=path[_0x4ff71a(0x1d1)](_0x47e2a6[_0x4ff71a(0x1d8)]?path[_0x4ff71a(0x1fa)](_0x47e2a6[_0x4ff71a(0x1d8)]):process[_0x4ff71a(0x213)](),_0x54fcf1[_0x4ff71a(0x1b3)]);fs[_0x4ff71a(0x1c1)](_0x1cce90,helper[_0x4ff71a(0x1ea)](_0x44cd5f[_0x4ff71a(0x18b)])),process[_0x4ff71a(0x1f8)][_0x4ff71a(0x206)]=_0x1cce90,helper[_0x4ff71a(0x1f5)]();let _0xb91e2e='';_0x54fcf1['eRcaF'](helper[_0x4ff71a(0x1b9)](),constants[_0x4ff71a(0x1f3)][_0x4ff71a(0x208)])?_0xb91e2e=_0x54fcf1[_0x4ff71a(0x190)]:_0xb91e2e=_0x54fcf1[_0x4ff71a(0x203)];let _0x2b5fff='';if(helper['isTypescriptProject'](_0x47e2a6[_0x4ff71a(0x1d8)])){_0x2b5fff='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x2887ff=_0xb91e2e[_0x4ff71a(0x1c4)]('.');_0x2887ff[_0x54fcf1['lXRvX'](_0x2887ff['length'],0x1)]='ts',_0xb91e2e=_0x2887ff[_0x4ff71a(0x1d1)]('.'),logger[_0x4ff71a(0x1a1)](_0x54fcf1[_0x4ff71a(0x210)](_0x54fcf1['vNZWi'],_0xb91e2e));}else _0x2b5fff='\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 _0x35f89f=path[_0x4ff71a(0x1d1)](_0x47e2a6['path']?path[_0x4ff71a(0x1fa)](_0x47e2a6[_0x4ff71a(0x1d8)]):process['cwd'](),_0xb91e2e);let _0x4e9ee3=_0x47e2a6['path']?_0x47e2a6[_0x4ff71a(0x1d8)]:'';_0x4e9ee3=_0x54fcf1['FTekH'](_0x4e9ee3[_0x4ff71a(0x18a)],0x0)?path[_0x4ff71a(0x1a8)](_0x4e9ee3):'',process['env'][_0x4ff71a(0x211)]=_0x4e9ee3;const _0x1f8d84=helper[_0x4ff71a(0x1aa)](_0x44cd5f[_0x4ff71a(0x18b)]);_0x1f8d84&&(_0x2b5fff=_0x54fcf1['CsMFX'](_0x4ff71a(0x193)+_0x1f8d84+_0x4ff71a(0x21e),_0x2b5fff));helper[_0x4ff71a(0x1eb)]({},_0x46a666),fs[_0x4ff71a(0x1c1)](_0x35f89f,_0x2b5fff),helper[_0x4ff71a(0x1b6)]();const _0x28bffb=_0x54fcf1[_0x4ff71a(0x1d2)](spawn,_0x54fcf1[_0x4ff71a(0x1da)],[_0x54fcf1[_0x4ff71a(0x195)],_0x54fcf1[_0x4ff71a(0x187)],_0x54fcf1[_0x4ff71a(0x1d4)],_0x35f89f,..._0x46a666[_0x4ff71a(0x209)](0x2)],{'shell':_0x54fcf1[_0x4ff71a(0x1fc)](process[_0x4ff71a(0x20e)],_0x54fcf1[_0x4ff71a(0x1d5)]),'stdio':_0x54fcf1[_0x4ff71a(0x1b0)],'cwd':process[_0x4ff71a(0x213)](),'env':Object[_0x4ff71a(0x1ec)]({},process[_0x4ff71a(0x1f8)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x4ff71a(0x18f)](_0x546afd),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x44cd5f['config'][_0x4ff71a(0x201)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x44cd5f[_0x4ff71a(0x18b)][_0x4ff71a(0x201)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x44cd5f[_0x4ff71a(0x18b)][_0x4ff71a(0x19c)]})}),_0x169bdc=()=>{const _0x2363dc=_0x4ff71a;try{const _0x519e0f=path[_0x2363dc(0x1d1)](helper['homedir'](),_0x54fcf1['YqEKx'],_0x54fcf1['KJuSU']);if(fs['existsSync'](_0x519e0f)){let _0x59d361=fs[_0x2363dc(0x19a)](_0x519e0f);_0x59d361=JSON['parse'](_0x59d361),_0x44cd5f[_0x2363dc(0x1cd)]=_0x59d361,fs[_0x2363dc(0x1d7)](_0x519e0f);}}catch(_0x3b7987){logger[_0x2363dc(0x1a1)](_0x54fcf1[_0x2363dc(0x1f6)](_0x54fcf1[_0x2363dc(0x1a5)],_0x3b7987));}};_0x28bffb['on'](_0x54fcf1['OmxDN'],async _0x272bd5=>{const _0x2798f1=_0x4ff71a;try{const _0x28f663=_0x54fcf1[_0x2798f1(0x1f4)][_0x2798f1(0x1c4)]('|');let _0x24013c=0x0;while(!![]){switch(_0x28f663[_0x24013c++]){case'0':process['exitCode']=_0x272bd5;continue;case'1':_0x54fcf1[_0x2798f1(0x1db)](_0x169bdc);continue;case'2':await TestHubHandler[_0x2798f1(0x19d)]();continue;case'3':fs[_0x2798f1(0x1d7)](_0x35f89f);continue;case'4':await utilities[_0x2798f1(0x1ca)](_0x44cd5f);continue;case'5':fs['unlinkSync'](_0x1cce90);continue;case'6':logger['info'](_0x2798f1(0x1b4)+_0x35f89f);continue;case'7':logger[_0x2798f1(0x1a1)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x272bd5);continue;case'8':logger[_0x2798f1(0x1a1)]('Deleting\x20'+_0x1cce90);continue;}break;}}catch(_0x2477bb){logger[_0x2798f1(0x1a1)](_0x54fcf1[_0x2798f1(0x210)](_0x54fcf1['zwXSx'],_0x2477bb));}});}function a35_0x5e06(){const _0x2d1b17=['BrowserStack\x20config\x20file\x20not\x20found.','rQuPu','BROWSERSTACK_TEST_OBSERVABILITY','--config','42945380cGsupq','util','MESAS','serializeToYamlString','filterBrowserstackArgs','assign','nestedKeyValue','ErpXf','concat','lnjos','1602QRyECp','requirePWModule','PACKAGE_TYPE','bjzIE','clearTempPWConfig','PrPOE','DPmjT','env','cliConfig','dirname','includes','ymgfh','11UgeOdb','npx','PImMV','EINBc','testContextOptions','playwright','aqZBz','UjzcX','exports','BROWSERSTACK_SETUP_CONFIG_PATH','winstonLogger','MODULE','slice','../../helpers/test-observability/utils','indexOf','apply','isFalse','platform','ylkNA','CsMFX','USER_CONFIG_DETAILS_PATH','./accessibility-helper','cwd','wiByJ','--disable-browserstack-automation','true','XqJMg','roJPq','--config=','map','13675BGsqPf','homedir','stringify','\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();','trim','pIPnh','WQdIe','1011331TdTUmU','BROWSERSTACK_PW_CONFIG_DIR','length','config','findIndex','../utils/constants','BROWSERSTACK_RERUN_TESTS','getConfigPath','Fvxiv','launchBuild','../../helpers/test-observability/constants','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','Error\x20in\x20closing\x20playwright','DkxhG','isUndefined','push','ZRdzS','.browserstack','readFileSync','16GaPMAU','logLevel','stop','PLAYWRIGHT','tgLqX','YqEKx','debug','resolvedConfigFile','isTrue','4085631CAtWVQ','LJXJE','filter','Updated\x20config\x20file\x20name\x20to\x20-\x20','resolve','--disable-test-observability','getProxyUrl','splice','ykkWT','../../helpers/testhub/testhubHandler','2WbYxPQ','test','gzEKX','../../helpers/utilities','get','jJYOq','Deleting\x20','inherit','markSDKSetupComplete','close','OgGuf','getPackageType','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','AkXAc','null','accessibility','hGjtB','jkMnv','../../helpers/testhub/utils','writeFileSync','playwright-browserstack-sdk.config.cjs','Error\x20in\x20getting\x20funnel\x20data\x20results','split','KJuSU','BROWSERSTACK_AUTOMATION','playwright-browserstack-sdk.config.js','win32','1|2|4|0|7|6|3|8|5','finalExecution','has','BROWSERSTACK_TEST_ACCESSIBILITY_YML','errorMessage','1261773ZSKvoz','ucjdW','initialize','join','ntdMP','../../helpers/logger','MCxTR','SwzaA','child_process','unlinkSync','path','HWCCK','sKSVr','sWUSL','3550928xjgIEn','ohPzz','testObservability','../../helpers/accessibility-automation/helper','startsWith','1857128FRrzXl','atGuc'];a35_0x5e06=function(){return _0x2d1b17;};return a35_0x5e06();}module[a35_0x3d3a09(0x205)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a36_0x41c9(_0x41b74b,_0x45b1d7){const _0x2f1d09=a36_0x2f1d();return a36_0x41c9=function(_0x41c99a,_0x37e26f){_0x41c99a=_0x41c99a-0x1ac;let _0x2213ae=_0x2f1d09[_0x41c99a];return _0x2213ae;},a36_0x41c9(_0x41b74b,_0x45b1d7);}const a36_0x55352a=a36_0x41c9;(function(_0x5ab98c,_0x3bd85d){const _0x5cbacd=a36_0x41c9,_0x173dfa=_0x5ab98c();while(!![]){try{const _0x34350f=parseInt(_0x5cbacd(0x1b5))/0x1*(parseInt(_0x5cbacd(0x1b7))/0x2)+parseInt(_0x5cbacd(0x1bb))/0x3+-parseInt(_0x5cbacd(0x1cb))/0x4+parseInt(_0x5cbacd(0x1b6))/0x5+-parseInt(_0x5cbacd(0x1ae))/0x6*(parseInt(_0x5cbacd(0x1d3))/0x7)+-parseInt(_0x5cbacd(0x1c2))/0x8*(-parseInt(_0x5cbacd(0x1d4))/0x9)+parseInt(_0x5cbacd(0x1c5))/0xa;if(_0x34350f===_0x3bd85d)break;else _0x173dfa['push'](_0x173dfa['shift']());}catch(_0x3e8bbe){_0x173dfa['push'](_0x173dfa['shift']());}}}(a36_0x2f1d,0x7d45a));function a36_0x2f1d(){const _0x2cab1a=['MFXFM','Running\x20existing\x20global\x20setup','\x20is\x20not\x20found','../../helpers/test-observability/constants','1UpCwMG','2376135PYYaWM','169306Drtrdf','1.33.0','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','Not\x20able\x20to\x20import\x20globalSetup','373152dfyHPm','./reporter/pwUtils','apply','env','../../helpers/test-observability/utils','akwpY','akDyj','16elHDha','../../helpers/logger','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','15946340ggkZYd','OjsHP','epJMO','compareVersions','../../helpers/helper','isHandlePWErrorSet','3490532yybmDq','format','requirePWModule','debug','error','resolve','./patches','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','2919pScuxM','313659tIxXjg','child_process','vMKtd','Path\x20','jHVxf','util','fork','13854GejPMT','config','iFvan'];a36_0x2f1d=function(){return _0x2cab1a;};return a36_0x2f1d();}const util=require(a36_0x55352a(0x1ac)),child_process=require(a36_0x55352a(0x1d5)),{FRAMEWORKS}=require(a36_0x55352a(0x1b4)),{getFrameworkVersion,debug}=require(a36_0x55352a(0x1bf)),helper=require(a36_0x55352a(0x1c9)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x55352a(0x1bc)),{mockIsWorkerRedundant}=require(a36_0x55352a(0x1d1)),logger=require(a36_0x55352a(0x1c3))['winstonLogger'];module['exports']=async function(_0x1b4dad){const _0x422e69=a36_0x55352a,_0x758e05={'vMKtd':function(_0x39b064,_0x259e58){return _0x39b064(_0x259e58);},'umPYZ':function(_0x51df82){return _0x51df82();},'akwpY':'./mock-process.js','epJMO':function(_0x197c9c){return _0x197c9c();},'jHVxf':_0x422e69(0x1b2),'QOqOc':function(_0x2b627a,_0x3131d4){return _0x2b627a>=_0x3131d4;},'EMNsm':_0x422e69(0x1b8),'OjsHP':function(_0x13cf57,_0x154506,_0x4b2aa3){return _0x13cf57(_0x154506,_0x4b2aa3);},'iFvan':function(_0x14f8c9,_0x309d79){return _0x14f8c9!==_0x309d79;},'MFXFM':'function','sOOQT':_0x422e69(0x1ba),'akDyj':function(_0x152ac3,_0x42a240){return _0x152ac3(_0x42a240);}},_0x51f59a=child_process[_0x422e69(0x1ad)];if(helper[_0x422e69(0x1ca)]())try{_0x758e05[_0x422e69(0x1c7)](mockIsWorkerRedundant);}catch(_0x26ce0f){logger[_0x422e69(0x1ce)](_0x422e69(0x1b9)+util[_0x422e69(0x1cc)](_0x26ce0f));}child_process['fork']=function(){const _0x4bca73=_0x422e69;return _0x758e05[_0x4bca73(0x1d6)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0]['includes'](_0x758e05['umPYZ'](getForkProcessPath))?arguments[0x0]=require[_0x4bca73(0x1d0)](_0x758e05[_0x4bca73(0x1c0)]):logger[_0x4bca73(0x1cf)](_0x4bca73(0x1d7)+_0x758e05['epJMO'](getForkProcessPath)+_0x4bca73(0x1b3)),_0x51f59a[_0x4bca73(0x1bd)](null,arguments);};if(process[_0x422e69(0x1be)][_0x422e69(0x1d2)]){_0x758e05['vMKtd'](debug,_0x758e05[_0x422e69(0x1d8)]);try{const {loadGlobalHook:_0x16f2f8}=helper[_0x422e69(0x1cd)][_0x422e69(0x1bd)](null,_0x758e05[_0x422e69(0x1c7)](getLoadUtilsPath)),_0x3a90e4=_0x758e05[_0x422e69(0x1d6)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x3adb11=_0x1b4dad;if(_0x758e05['QOqOc'](helper[_0x422e69(0x1c8)](_0x3a90e4,_0x758e05['EMNsm']),0x0)){const _0x33e3f2={};_0x33e3f2[_0x422e69(0x1af)]=_0x1b4dad,_0x3adb11=_0x33e3f2;}const _0x12fea9=await _0x758e05[_0x422e69(0x1c6)](_0x16f2f8,_0x3adb11,process[_0x422e69(0x1be)][_0x422e69(0x1d2)]);if(_0x758e05[_0x422e69(0x1b0)](typeof _0x12fea9,_0x758e05[_0x422e69(0x1b1)]))throw new Error(_0x758e05['sOOQT']);return _0x12fea9['apply'](null,arguments);}catch(_0x3a6442){_0x758e05[_0x422e69(0x1c1)](debug,_0x422e69(0x1c4)+_0x3a6442['toString']());}}};
|