browserstack-node-sdk 1.34.10 → 1.34.12
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 +2 -2
- 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
|
+
const a29_0x1d880e=a29_0x4408;(function(_0x1441c1,_0x22bf5e){const _0x254966=a29_0x4408,_0x328479=_0x1441c1();while(!![]){try{const _0x266ce7=-parseInt(_0x254966(0x19c))/0x1+-parseInt(_0x254966(0x1ab))/0x2+-parseInt(_0x254966(0x1c0))/0x3+parseInt(_0x254966(0x191))/0x4*(parseInt(_0x254966(0x1c4))/0x5)+-parseInt(_0x254966(0x1cb))/0x6+parseInt(_0x254966(0x1b3))/0x7*(parseInt(_0x254966(0x192))/0x8)+parseInt(_0x254966(0x1de))/0x9*(parseInt(_0x254966(0x182))/0xa);if(_0x266ce7===_0x22bf5e)break;else _0x328479['push'](_0x328479['shift']());}catch(_0x4a8e9e){_0x328479['push'](_0x328479['shift']());}}}(a29_0x55b0,0x7cb04));const logger=require(a29_0x1d880e(0x194))[a29_0x1d880e(0x17b)],helper=require('../../../helpers/helper'),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x1d880e(0x1ca)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x1d880e(0x1ae)),{setAccessibilityCapabilities,setExtension}=require(a29_0x1d880e(0x1b7)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x1d880e(0x1be)),globals=require(a29_0x1d880e(0x16f)),modify=(_0x46157d,_0x376574=null,_0xfbe12d=![])=>{const _0x5300d6=a29_0x1d880e,_0x5385e8={'xngjM':function(_0x77f7cd,_0x20828c){return _0x77f7cd!==_0x20828c;},'PmCiL':_0x5300d6(0x1e3),'gQvjv':function(_0x59f65f,_0x1b0e7f){return _0x59f65f+_0x1b0e7f;},'YbGxn':function(_0x602b6e,_0x51048e){return _0x602b6e+_0x51048e;},'ouDif':_0x5300d6(0x1d6),'qLNQu':'/wd/hub','MBRZT':_0x5300d6(0x1d2),'Lvigz':'chromeOptions','tTXdh':_0x5300d6(0x1d0),'XmJQE':_0x5300d6(0x19e),'vBewY':'moz:firefoxOptions','eofdD':_0x5300d6(0x1ce),'uPjrg':_0x5300d6(0x1dd),'KOEOf':_0x5300d6(0x1c2),'tBkWq':_0x5300d6(0x174),'MVPxZ':function(_0x29a6b6,_0x39b96b){return _0x29a6b6===_0x39b96b;},'XYHAz':_0x5300d6(0x1bd),'CAwkD':_0x5300d6(0x17d),'uCwxl':function(_0x284e35,_0x5aa50,_0x4f8fea){return _0x284e35(_0x5aa50,_0x4f8fea);},'VHaZR':function(_0x5174de,_0x57cf9f){return _0x5174de(_0x57cf9f);},'aiVKA':_0x5300d6(0x1a2),'BSXYc':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','VArKm':'2|5|0|4|1|3','GjOuH':_0x5300d6(0x1e4),'IOaVE':function(_0x8190aa,_0x2bdfb5,_0x736adb){return _0x8190aa(_0x2bdfb5,_0x736adb);},'QgTKa':function(_0x260986){return _0x260986();},'ptKCN':function(_0x236f6a,_0x1b9ce5){return _0x236f6a(_0x1b9ce5);},'GYxtY':_0x5300d6(0x1e1),'KULCz':function(_0x5d55ee,_0x595422){return _0x5d55ee(_0x595422);},'LevMx':function(_0x59c9e7,_0x3875a6){return _0x59c9e7(_0x3875a6);},'iKZvf':function(_0x322dd1,_0x99605f){return _0x322dd1!==_0x99605f;},'PgqTg':_0x5300d6(0x1dc),'pDKGX':_0x5300d6(0x1a9)},_0x4724af=helper[_0x5300d6(0x172)]();let _0x45706f;try{_0x45706f=helper[_0x5300d6(0x19d)](),_0x45706f[_0x5300d6(0x195)]&&(_0x45706f[_0x5300d6(0x1c5)]=_0x45706f[_0x5300d6(0x195)]);}catch(_0x475cb6){return;}if(helper[_0x5300d6(0x18e)]()){const _0x379d49={};_0x379d49[_0x5300d6(0x1c8)]=_0x46157d[_0x5300d6(0x181)],helper[_0x5300d6(0x1d9)](_0x379d49,new Map(),new Map()),logger[_0x5300d6(0x186)](_0x5385e8[_0x5300d6(0x196)]),logger[_0x5300d6(0x1cc)](_0x5385e8[_0x5300d6(0x19b)]);}class _0x48549c extends _0x4724af['HttpClient']{[_0x5300d6(0x1e0)](_0x28eaa6){const _0x46e476=_0x5300d6;if(_0x5385e8['xngjM'](_0x28eaa6[_0x46e476(0x18d)],_0x5385e8['PmCiL'])&&_0x5385e8['xngjM'](global[_0x46e476(0x1c9)],''))try{global['newHubUrl']=_0x5385e8[_0x46e476(0x189)](_0x5385e8[_0x46e476(0x170)](_0x5385e8[_0x46e476(0x1c7)],global['newHubUrl']),_0x5385e8[_0x46e476(0x1d4)]),this[_0x46e476(0x18b)]=hubAllocator[_0x46e476(0x1bc)](global[_0x46e476(0x1c9)]),logger['debug'](_0x46e476(0x180)+global[_0x46e476(0x1c9)]),global[_0x46e476(0x1c9)]='';}catch(_0xf1f3a6){logger[_0x46e476(0x185)](_0xf1f3a6);}return super[_0x46e476(0x1e0)](_0x28eaa6);}}class _0x356c22 extends _0x45706f[_0x5300d6(0x1c5)]{[_0x5300d6(0x17c)](){const _0x2abb48=_0x5300d6;return this[_0x2abb48(0x173)]=helper[_0x2abb48(0x1d8)](_0x46157d),logger['debug'](_0x2abb48(0x17f)+this[_0x2abb48(0x173)]),this;}['__setBrowserOptions'](_0x3049d1){const _0x466641=_0x5300d6;let _0xb5537d={};for(const _0x1805e9 in _0x3049d1){switch(_0x1805e9){case _0x5385e8[_0x466641(0x19a)]:case _0x5385e8[_0x466641(0x1b6)]:this['chromeOptions_']&&(_0xb5537d=this[_0x466641(0x18f)][_0x466641(0x1b1)](this[_0x466641(0x18f)][_0x466641(0x1df)])||{},this[_0x466641(0x18f)][_0x466641(0x19f)](this[_0x466641(0x18f)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8[_0x466641(0x1b8)]:case _0x5385e8[_0x466641(0x184)]:this['edgeOptions_']&&(_0xb5537d=this['edgeOptions_'][_0x466641(0x1b1)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x466641(0x1e5)][_0x466641(0x19f)](this[_0x466641(0x1e5)]['CAPABILITY_KEY'],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8[_0x466641(0x1b0)]:case _0x5385e8['eofdD']:this[_0x466641(0x16c)]&&(_0xb5537d=this['firefoxOptions_'][_0x466641(0x1b1)](this[_0x466641(0x16c)][_0x466641(0x1df)])||{},this[_0x466641(0x16c)][_0x466641(0x19f)](this[_0x466641(0x16c)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8[_0x466641(0x1a8)]:this[_0x466641(0x1db)]&&(_0xb5537d=this[_0x466641(0x1db)]['get'](this[_0x466641(0x1db)]['CAPABILITY_KEY'])||{},this[_0x466641(0x1db)][_0x466641(0x19f)](this[_0x466641(0x1db)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8['KOEOf']:case _0x5385e8[_0x466641(0x179)]:this['ieOptions_']&&(_0xb5537d=this[_0x466641(0x1b4)]['get'](this[_0x466641(0x1b4)][_0x466641(0x1df)])||{},this[_0x466641(0x1b4)][_0x466641(0x19f)](this[_0x466641(0x1b4)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;}}}['setCapabilities'](){const _0x2ee9a2=_0x5300d6;return logger['debug'](_0x5385e8[_0x2ee9a2(0x1b2)]),this[_0x2ee9a2(0x18a)](_0x46157d[_0x2ee9a2(0x1a0)]),Object['keys'](_0x46157d[_0x2ee9a2(0x1a0)])[_0x2ee9a2(0x1b5)](_0x2aea2b=>{const _0x481577=_0x2ee9a2,_0x14b251=this[_0x481577(0x190)][_0x481577(0x1b1)](_0x2aea2b);_0x5385e8[_0x481577(0x1bb)](typeof _0x14b251,_0x5385e8[_0x481577(0x171)])?this[_0x481577(0x190)][_0x481577(0x19f)](_0x2aea2b,helper['mergeDeep'](_0x14b251,_0x46157d[_0x481577(0x1a0)][_0x2aea2b])):this[_0x481577(0x190)][_0x481577(0x19f)](_0x2aea2b,_0x46157d[_0x481577(0x1a0)][_0x2aea2b]);}),this;}[_0x5300d6(0x1c1)](){const _0x47c12b=_0x5300d6,_0x131bca={'axLui':_0x5385e8[_0x47c12b(0x1af)],'bZfQP':_0x5385e8[_0x47c12b(0x1ad)],'itqQo':function(_0x2d839e,_0x399467,_0x4051a0){const _0x482602=_0x47c12b;return _0x5385e8[_0x482602(0x193)](_0x2d839e,_0x399467,_0x4051a0);}};if(helper[_0x47c12b(0x18e)]()){const _0x13be76=_0x5385e8['VArKm'][_0x47c12b(0x1d1)]('|');let _0x406c99=0x0;while(!![]){switch(_0x13be76[_0x406c99++]){case'0':this[_0x47c12b(0x1a5)]();continue;case'1':globals[_0x47c12b(0x1ac)](_0x5385e8[_0x47c12b(0x1d5)])&&(!_0x5385e8['IOaVE'](setExtension,this,_0x46157d)&&globals[_0x47c12b(0x16b)](_0x5385e8[_0x47c12b(0x1d5)],![]));continue;case'2':_0x5385e8[_0x47c12b(0x1e2)](isAccessibilityAutomationSession)&&_0x5385e8[_0x47c12b(0x1a7)](setAccessibilityCapabilities,_0x46157d);continue;case'3':logger['debug'](_0x5385e8[_0x47c12b(0x1c6)]);continue;case'4':if(helper[_0x47c12b(0x16e)](_0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)]))this[_0x47c12b(0x1bf)]=helper['getHttpAgent'](_0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)]);else _0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)]&&(this['proxy_']=_0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)],logger[_0x47c12b(0x1cc)]('Proxy\x20set\x20to\x20'+this[_0x47c12b(0x16d)]));continue;case'5':this[_0x47c12b(0x17c)]();continue;}break;}}const _0x1cde19=super[_0x47c12b(0x1c1)]();return _0x1cde19[_0x47c12b(0x198)][_0x47c12b(0x1da)](_0x260228=>{const _0x3b60b8=_0x47c12b;try{const _0x588b6d=_0x260228['caps_'][_0x3b60b8(0x1b1)](_0x131bca[_0x3b60b8(0x1c3)]);_0x588b6d?(logger['debug'](_0x3b60b8(0x188)+_0x588b6d),hubAllocator[_0x3b60b8(0x1ba)](_0x588b6d),helper[_0x3b60b8(0x1cf)](_0x588b6d)):logger[_0x3b60b8(0x1cc)](_0x131bca[_0x3b60b8(0x1b9)]);}catch(_0x172b8b){logger['debug'](_0x3b60b8(0x17a)+_0x172b8b);}}),_0x1cde19['quitCount_']=0x0,_0x1cde19[_0x47c12b(0x1da)]&&_0x1cde19['then'](_0x3a8b02=>{const _0x2bfd60=_0x47c12b,_0x54a219={'odCer':function(_0x308566,_0x2c4203,_0x8be891){const _0x25e2d4=a29_0x4408;return _0x5385e8[_0x25e2d4(0x193)](_0x308566,_0x2c4203,_0x8be891);},'OVtqw':function(_0x3785ba,_0x573ea4,_0x5c37d3){const _0x5f167b=a29_0x4408;return _0x5385e8[_0x5f167b(0x193)](_0x3785ba,_0x573ea4,_0x5c37d3);}};_0x5385e8[_0x2bfd60(0x193)](overrideQuit,_0x3a8b02,_0x1cde19),_0x5385e8[_0x2bfd60(0x1d3)](overrideTakeScreenshot,_0x3a8b02),helper[_0x2bfd60(0x1a3)](_0x3a8b02,_0x46157d),helper[_0x2bfd60(0x183)](_0x3a8b02,_0x46157d),_0x3a8b02[_0x2bfd60(0x1a4)]=async()=>{return await _0x54a219['odCer'](getAccessibilityResultsSummary,_0x3a8b02,global);},_0x3a8b02[_0x2bfd60(0x1d7)]=async()=>{const _0x50a54b=_0x2bfd60;return await _0x54a219[_0x50a54b(0x175)](getAccessibilityResults,_0x3a8b02,global);};}),_0x1cde19[_0x47c12b(0x1a4)]=async()=>{return await _0x131bca['itqQo'](getAccessibilityResultsSummary,_0x1cde19,global);},_0x1cde19[_0x47c12b(0x1d7)]=async()=>{const _0x396d6b=_0x47c12b;return await _0x131bca[_0x396d6b(0x1a6)](getAccessibilityResults,_0x1cde19,global);},_0x5385e8[_0x47c12b(0x176)](overrideTakeScreenshot,_0x1cde19),_0x5385e8['LevMx'](overrideQuit,_0x1cde19),helper[_0x47c12b(0x1a3)](_0x1cde19,_0x46157d),helper[_0x47c12b(0x183)](_0x1cde19,_0x46157d),helper[_0x47c12b(0x1aa)](global[_0x47c12b(0x197)])&&(global[_0x47c12b(0x197)]=[]),helper[_0x47c12b(0x1aa)](global['__drivers'])&&(global[_0x47c12b(0x1cd)]=[]),global[_0x47c12b(0x197)]['push'](_0x1cde19),global['__driver']=_0x1cde19,_0x5385e8[_0x47c12b(0x187)](global['__drivers'],undefined)&&global['__drivers'][_0x47c12b(0x1a1)](_0x1cde19),_0x376574&&helper['isUndefined'](_0x376574['global'][_0x47c12b(0x197)])&&(_0x376574[_0x47c12b(0x177)][_0x47c12b(0x197)]=[]),_0x376574&&_0x5385e8['iKZvf'](_0x376574['global'][_0x47c12b(0x1cd)],undefined)&&(_0x376574[_0x47c12b(0x177)]['__drivers'][_0x47c12b(0x1a1)](_0x1cde19),_0x376574[_0x47c12b(0x177)][_0x47c12b(0x197)][_0x47c12b(0x1a1)](_0x1cde19)),_0x1cde19;}}return _0x45706f[_0x5300d6(0x195)]=_0x45706f['Builder'],_0x45706f[_0x5300d6(0x1c5)]=_0x356c22,_0x4724af[_0x5300d6(0x17e)]=_0x48549c,_0x45706f;};function a29_0x55b0(){const _0x211531=['../../../helpers/accessibility-automation/helper','agent_','2655189RPUvSN','build','se:ieOptions','axLui','5wrTecy','Builder','GYxtY','ouDif','logLevel','newHubUrl','../../../hubAllocationMethods','4400076QExYfs','debug','__drivers','firefoxOptions','storeOptimalHubUrl','ms:edgeOptions','split','goog:chromeOptions','VHaZR','qLNQu','GjOuH','https://','getAccessibilityResults','getHubUrl','setLogLevel','then','safariOptions_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','safari.options','1437597YMOmYr','CAPABILITY_KEY','send','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','QgTKa','/session','isAccessibilityPlatform','edgeOptions_','setGlobal','firefoxOptions_','proxy_','isPacProxy','../../../helpers/globals','YbGxn','XYHAz','requireHttpClient','url_','ieOptions','OVtqw','KULCz','global','mergeDeep','tBkWq','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','winstonLogger','setServer','Setting\x20Browserstack\x20capabilities','HttpClient','Hub\x20url\x20set\x20to\x20','New\x20hub\x20url\x20set\x20to\x20','browserStackLogLevel','190hVDhnw','overrideExecute','XmJQE','error','info','xngjM','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','gQvjv','__setBrowserOptions','options_','proxyUrl','path','isBrowserstackInfra','chromeOptions_','capabilities_','1626472WbsRtq','8UTQtqB','uCwxl','../../../helpers/logger','originalBuilder','PgqTg','__driversArray','session_','proxySettings','MBRZT','pDKGX','589446tOcfdE','requireSeleniumWebdriver','edgeOptions','set','capability','push','optimalHubUrl','overrideGet','getAccessibilityResultsSummary','setCapabilities','itqQo','ptKCN','uPjrg','Modifying\x20webdriver\x20builder','isUndefined','1669574KWwLqB','getGlobal','BSXYc','../../../helpers/patchHelpers','aiVKA','vBewY','get','CAwkD','782747jmELNc','ieOptions_','forEach','Lvigz','../accessibility-automation/helper','tTXdh','bZfQP','updateHubUrl','MVPxZ','getRequestOptions','object'];a29_0x55b0=function(){return _0x211531;};return a29_0x55b0();}function a29_0x4408(_0x5ed4fa,_0x38103f){const _0x55b0c8=a29_0x55b0();return a29_0x4408=function(_0x4408b6,_0x2f5f8){_0x4408b6=_0x4408b6-0x16b;let _0x3149c6=_0x55b0c8[_0x4408b6];return _0x3149c6;},a29_0x4408(_0x5ed4fa,_0x38103f);}module['exports']['browserstackAgentObservability']=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a30_0x2aa3(_0x3e9a9a,_0x217d77){const _0x1e5993=a30_0x1e59();return a30_0x2aa3=function(_0x2aa38d,_0x15b379){_0x2aa38d=_0x2aa38d-0x1eb;let _0x5091a2=_0x1e5993[_0x2aa38d];return _0x5091a2;},a30_0x2aa3(_0x3e9a9a,_0x217d77);}const a30_0x421635=a30_0x2aa3;(function(_0x47d6f2,_0x1c3783){const _0x341af0=a30_0x2aa3,_0x20be54=_0x47d6f2();while(!![]){try{const _0x146480=-parseInt(_0x341af0(0x1f4))/0x1+-parseInt(_0x341af0(0x1ee))/0x2*(parseInt(_0x341af0(0x1f9))/0x3)+parseInt(_0x341af0(0x1f2))/0x4*(parseInt(_0x341af0(0x1eb))/0x5)+parseInt(_0x341af0(0x1ef))/0x6+parseInt(_0x341af0(0x1f6))/0x7*(-parseInt(_0x341af0(0x1f8))/0x8)+parseInt(_0x341af0(0x1f0))/0x9+parseInt(_0x341af0(0x1f7))/0xa;if(_0x146480===_0x1c3783)break;else _0x20be54['push'](_0x20be54['shift']());}catch(_0x2cf975){_0x20be54['push'](_0x20be54['shift']());}}}(a30_0x1e59,0x4dd5e));function a30_0x1e59(){const _0x49f6a0=['restore','6668VGTqWU','329268LIXkaw','2162097ZhOfGn','../../../bin/utils/constants','11836XBdSKU','DySkN','620014AGkGZK','../../../helpers/request-spy','4103715rTYOkh','13493180FoGsZx','8bJprIW','150hqvwZH','80TfJLYK','../../../helpers/test-observability/utils'];a30_0x1e59=function(){return _0x49f6a0;};return a30_0x1e59();}const requestSpy=require(a30_0x421635(0x1f5)),constants=require(a30_0x421635(0x1f1)),{addRequestSpy}=require(a30_0x421635(0x1ec));exports['mochaHooks']={'beforeAll'(){const _0x259f25=a30_0x421635,_0x1188a1={'DySkN':function(_0x67490f){return _0x67490f();}},_0x5d78bd='browserstack internal helper hook';_0x1188a1[_0x259f25(0x1f3)](addRequestSpy);},'afterAll'(){const _0x43e092=a30_0x421635,_0x3ebc88='browserstack internal helper hook';this['timeout'](0xea60),requestSpy[_0x43e092(0x1ed)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x10dce6=a31_0x3d8a;(function(_0x2ee0eb,_0x52da67){const _0x19b0f3=a31_0x3d8a,_0x577172=_0x2ee0eb();while(!![]){try{const _0x527cb7=parseInt(_0x19b0f3(0x13d))/0x1*(-parseInt(_0x19b0f3(0x174))/0x2)+parseInt(_0x19b0f3(0x15c))/0x3+-parseInt(_0x19b0f3(0x196))/0x4+-parseInt(_0x19b0f3(0x13e))/0x5*(parseInt(_0x19b0f3(0x166))/0x6)+-parseInt(_0x19b0f3(0x147))/0x7+-parseInt(_0x19b0f3(0x14a))/0x8*(parseInt(_0x19b0f3(0x157))/0x9)+-parseInt(_0x19b0f3(0x193))/0xa*(-parseInt(_0x19b0f3(0x17d))/0xb);if(_0x527cb7===_0x52da67)break;else _0x577172['push'](_0x577172['shift']());}catch(_0x406e7d){_0x577172['push'](_0x577172['shift']());}}}(a31_0x3963,0x463a8));const {v4:uuidv4}=require(a31_0x10dce6(0x14f)),{name,version}=require(a31_0x10dce6(0x169)),logPatcher=require(a31_0x10dce6(0x173)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x10dce6(0x155)),{consoleHolder}=require(a31_0x10dce6(0x18a)),{getPlatformVersion}=require(a31_0x10dce6(0x142)),{shouldProcessEventForTesthub}=require(a31_0x10dce6(0x181));function a31_0x3d8a(_0x4f2f99,_0x245933){const _0x396367=a31_0x3963();return a31_0x3d8a=function(_0x3d8a17,_0x402cd1){_0x3d8a17=_0x3d8a17-0x139;let _0x307d90=_0x396367[_0x3d8a17];return _0x307d90;},a31_0x3d8a(_0x4f2f99,_0x245933);}function a31_0x3963(){const _0xffa9fd=['mHpzQ','_beforeAll','WXxqX','substring','passed','MrqqD','state','concat','../../../helpers/test-observability/constants','homdF','mapTestHooks','parent','push','SkYNr','yTagE','getBrowserName','TatAQ','50nDGdBF','aKhGU','__cloud_provider___','465532RZZjqH','failed','_beforeEach','slice','bs:addPlatformDetails:','1hYvTvN','646120ZEihwz','axNSj','markedStatus','SeuNQ','../../../helpers/helper','wTlGr','fAoDE','getHookSkippedTests','reduce','495950PDwgCq','npiIo','keys','451016fYPkYi','indexOf','hookAnalyticsId','GhAvQ','ssTPE','uuid','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','suites','wDoWY','RCALU','getHooksForTest','../../../helpers/test-observability/utils','filter','18NYXIyI','mrzNY','forEach','hJJqr','Ubuur','802074KulmNW','hook:','bwWWs','_afterAll','generic','getHookDetails','TEST_PLATFORM','_afterEach','BIfJp','toJSON','12qUSxPX','WpXUp','type','../../../../package.json','browserstack','split','emit','RiPqj','SHxps','unknown_grid','GIyXS','NkXQt','sendPlatformDetails','../../utils/logPatcher','133954defUaq','getSession','RJsTs','getPlatform','hook','fromEntries','cUtHg','tests','pending','1420562kgQBFQ','rfufY','UcxnA','ktFAm','../../../helpers/testhub/utils'];a31_0x3963=function(){return _0xffa9fd;};return a31_0x3963();}console={},Object[a31_0x10dce6(0x149)](consoleHolder)[a31_0x10dce6(0x159)](_0x53346e=>{console[_0x53346e]=(..._0x205aa1)=>{BSTestOpsPatcher[_0x53346e](..._0x205aa1);};}),exports['getTestEnv']=()=>{const _0x45b9b7=a31_0x10dce6,_0x51593e={'WXxqX':_0x45b9b7(0x160),'RJsTs':function(_0x48f2ee){return _0x48f2ee();}};return{'ci':_0x51593e[_0x45b9b7(0x184)],'key':_0x51593e[_0x45b9b7(0x176)](uuidv4),'version':version,'collector':'js-'+name};},exports[a31_0x10dce6(0x161)]=_0x3e2fb0=>{const _0x6936ab=a31_0x10dce6,_0x2025b5={};_0x2025b5[_0x6936ab(0x187)]=function(_0x1c2c88,_0x4b42a4){return _0x1c2c88!==_0x4b42a4;},_0x2025b5[_0x6936ab(0x14e)]='string',_0x2025b5[_0x6936ab(0x17f)]=function(_0x4b6442,_0x2857b4){return _0x4b6442!==_0x2857b4;},_0x2025b5[_0x6936ab(0x190)]=_0x6936ab(0x15d),_0x2025b5[_0x6936ab(0x15a)]=function(_0x3900b5,_0x5cbc98){return _0x3900b5!==_0x5cbc98;},_0x2025b5['SZQOY']=_0x6936ab(0x178);const _0x188e09=_0x2025b5;if(!_0x3e2fb0||_0x188e09[_0x6936ab(0x187)](typeof _0x3e2fb0,_0x188e09[_0x6936ab(0x14e)]))return[null,null];if(_0x188e09[_0x6936ab(0x17f)](_0x3e2fb0[_0x6936ab(0x14b)](_0x188e09[_0x6936ab(0x190)]),-0x1)){const _0x38f756=_0x3e2fb0['split'](_0x188e09['yTagE']);return[_0x38f756[0x0][_0x6936ab(0x13b)](0x0,-0x1)[_0x6936ab(0x16b)]('\x22')[0x1],_0x38f756[0x1][_0x6936ab(0x185)](0x1)];}else{if(_0x188e09[_0x6936ab(0x15a)](_0x3e2fb0[_0x6936ab(0x14b)](_0x188e09['SZQOY']),-0x1)){const _0x245eb4=_0x3e2fb0['split'](_0x188e09['SZQOY']);return[_0x245eb4[0x0]['slice'](0x0,-0x1)['split']('\x22')[0x1],_0x3e2fb0];}}return[null,null];},exports[a31_0x10dce6(0x154)]=_0xe7b1f8=>{const _0x316dbe=a31_0x10dce6,_0x5d310e={'XoUhW':function(_0x1de8a1,_0x5404ce){return _0x1de8a1(_0x5404ce);},'WpXUp':_0x316dbe(0x183),'NkXQt':'_afterAll','TatAQ':_0x316dbe(0x13a),'BIfJp':_0x316dbe(0x163)};if(!_0xe7b1f8||!_0xe7b1f8[_0x316dbe(0x18d)])return[];const _0x559dee=[];return[_0x5d310e[_0x316dbe(0x167)],_0x5d310e[_0x316dbe(0x171)],_0x5d310e[_0x316dbe(0x192)],_0x5d310e[_0x316dbe(0x164)]][_0x316dbe(0x159)](_0x2c983e=>{const _0x37f34c=_0x316dbe,_0x3fceb2=_0xe7b1f8[_0x37f34c(0x18d)][_0x2c983e]||[];_0x3fceb2[_0x37f34c(0x159)](_0x200b5a=>{const _0x135191=_0x37f34c;_0x200b5a[_0x135191(0x14c)]&&!_0x5d310e['XoUhW'](isInternalHook,_0x200b5a['fn'])&&_0x559dee[_0x135191(0x18e)](_0x200b5a[_0x135191(0x14c)]);});}),[..._0x559dee,...exports[_0x316dbe(0x154)](_0xe7b1f8[_0x316dbe(0x18d)])];},exports[a31_0x10dce6(0x18c)]=_0x3f6865=>{const _0x24c3b8=a31_0x10dce6,_0x22e7dc={'fAoDE':function(_0x47071c){return _0x47071c();},'whafv':function(_0x4a5e4b,_0x3f48b2){return _0x4a5e4b===_0x3f48b2;},'RCALU':_0x24c3b8(0x163),'rfufY':'_beforeAll','SeuNQ':_0x24c3b8(0x15f),'bwWWs':_0x24c3b8(0x13a)};if(!_0x3f6865||!_0x3f6865[_0x24c3b8(0x18d)])return;[_0x22e7dc[_0x24c3b8(0x17e)],_0x22e7dc[_0x24c3b8(0x141)],_0x22e7dc[_0x24c3b8(0x15e)],_0x22e7dc[_0x24c3b8(0x153)]][_0x24c3b8(0x159)](_0x59e75a=>{const _0x2ad96a=_0x24c3b8,_0x2a66d2={'Ubuur':function(_0x2e3453){return _0x22e7dc['fAoDE'](_0x2e3453);},'homdF':function(_0x23ddc5,_0x2418fc){return _0x22e7dc['whafv'](_0x23ddc5,_0x2418fc);},'SHxps':_0x22e7dc[_0x2ad96a(0x153)],'aKhGU':function(_0x307b68){const _0x56b24b=_0x2ad96a;return _0x22e7dc[_0x56b24b(0x144)](_0x307b68);}},_0x3200b4=_0x3f6865[_0x2ad96a(0x18d)][_0x59e75a]||[];_0x3200b4[_0x2ad96a(0x159)](_0x2879de=>{const _0x3d45fe=_0x2ad96a;if(!_0x2879de['hookAnalyticsId'])_0x2879de[_0x3d45fe(0x14c)]=_0x2a66d2[_0x3d45fe(0x15b)](uuidv4);else _0x2879de[_0x3d45fe(0x140)]&&_0x2a66d2[_0x3d45fe(0x18b)](_0x59e75a,_0x2a66d2[_0x3d45fe(0x16e)])&&(_0x2879de[_0x3d45fe(0x14c)]=_0x2a66d2[_0x3d45fe(0x194)](uuidv4),delete _0x2879de[_0x3d45fe(0x140)]);});}),exports[_0x24c3b8(0x18c)](_0x3f6865[_0x24c3b8(0x18d)]);},exports[a31_0x10dce6(0x172)]=async(_0x19568f,_0x177c6c)=>{const _0x5ccab1=a31_0x10dce6,_0x4436a8={'mHpzQ':function(_0x591388){return _0x591388();},'zJvnp':function(_0x2df450,_0x4a5ee6){return _0x2df450(_0x4a5ee6);},'cUtHg':function(_0x421a46,_0x10186b){return _0x421a46(_0x10186b);},'wDoWY':function(_0x5b4a31,_0x841da6){return _0x5b4a31===_0x841da6;},'RiPqj':_0x5ccab1(0x16a),'npiIo':_0x5ccab1(0x16f),'SkYNr':_0x5ccab1(0x162)};try{if(!_0x4436a8[_0x5ccab1(0x182)](shouldProcessEventForTesthub))return;const _0x32c34b=await _0x19568f['getCapabilities'](),_0x3f13dd=await _0x19568f[_0x5ccab1(0x175)](),_0x256ead={},_0x127942=Object[_0x5ccab1(0x179)](_0x3f13dd['getCapabilities']()['map_']),_0x5c873c={'product':_0x4436a8['zJvnp'](getObservabilityLinkedProductName,_0x127942),'capabilities':_0x127942,'platform':_0x32c34b[_0x5ccab1(0x177)](),'platform_version':_0x4436a8[_0x5ccab1(0x17a)](getPlatformVersion,_0x4436a8[_0x5ccab1(0x152)](global[_0x5ccab1(0x195)],_0x4436a8[_0x5ccab1(0x16d)])),'browser':_0x32c34b[_0x5ccab1(0x191)](),'browser_version':_0x32c34b['getBrowserVersion'](),'session_id':_0x3f13dd[_0x5ccab1(0x165)]()};global[_0x5ccab1(0x195)]?_0x256ead[global[_0x5ccab1(0x195)]]=_0x5c873c:_0x256ead[_0x4436a8[_0x5ccab1(0x148)]]=_0x5c873c,process[_0x5ccab1(0x16c)](_0x5ccab1(0x13c)+process['pid'],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x4436a8[_0x5ccab1(0x18f)],'http_response':_0x256ead,'uuid':_0x177c6c});}catch(_0x2d35f7){_0x4436a8[_0x5ccab1(0x17a)](debug,_0x5ccab1(0x150)+_0x2d35f7);}},exports[a31_0x10dce6(0x145)]=_0x48129f=>{const _0x4220c3=a31_0x10dce6,_0x127231={};_0x127231[_0x4220c3(0x14d)]=function(_0x310bf5,_0x3a97c5){return _0x310bf5!==_0x3a97c5;},_0x127231[_0x4220c3(0x13f)]='hook',_0x127231[_0x4220c3(0x143)]=function(_0x1c2429,_0x8c16ec){return _0x1c2429!==_0x8c16ec;},_0x127231['mrzNY']=_0x4220c3(0x186),_0x127231[_0x4220c3(0x180)]=function(_0x417b88,_0x5932db){return _0x417b88!==_0x5932db;},_0x127231[_0x4220c3(0x170)]=_0x4220c3(0x139);const _0x5ef5c8=_0x127231,_0x5d894d=_0x48129f[_0x4220c3(0x151)][_0x4220c3(0x146)]((_0xb6756a,_0x4fed0b)=>{const _0x5573ac=_0x4220c3,_0x425b36=exports[_0x5573ac(0x145)](_0x4fed0b);return _0x425b36&&(_0xb6756a=_0xb6756a[_0x5573ac(0x189)](_0x425b36)),_0xb6756a;},[]),_0x3c03fe=_0x48129f[_0x4220c3(0x17b)][_0x4220c3(0x156)](_0x293258=>{const _0x419971=_0x4220c3,_0xa6d884=_0x5ef5c8['GhAvQ'](_0x293258[_0x419971(0x168)],_0x5ef5c8[_0x419971(0x13f)])&&!_0x293258[_0x419971(0x140)]&&_0x5ef5c8[_0x419971(0x143)](_0x293258['state'],_0x5ef5c8[_0x419971(0x158)])&&_0x5ef5c8[_0x419971(0x180)](_0x293258[_0x419971(0x188)],_0x5ef5c8[_0x419971(0x170)])&&!_0x293258[_0x419971(0x17c)];return _0xa6d884;});return _0x3c03fe[_0x4220c3(0x189)](_0x5d894d);};
|
|
@@ -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_0x24e1(_0x2e0bce,_0x33c57f){const _0x3589f9=a32_0x3589();return a32_0x24e1=function(_0x24e120,_0x431d09){_0x24e120=_0x24e120-0xe1;let _0x3da30a=_0x3589f9[_0x24e120];return _0x3da30a;},a32_0x24e1(_0x2e0bce,_0x33c57f);}const a32_0x3c3521=a32_0x24e1;(function(_0x24d8fe,_0x3a633f){const _0x3c00e8=a32_0x24e1,_0x29362f=_0x24d8fe();while(!![]){try{const _0x551a1e=parseInt(_0x3c00e8(0x107))/0x1+-parseInt(_0x3c00e8(0x10c))/0x2+parseInt(_0x3c00e8(0x128))/0x3+parseInt(_0x3c00e8(0x135))/0x4*(parseInt(_0x3c00e8(0x137))/0x5)+parseInt(_0x3c00e8(0x152))/0x6*(parseInt(_0x3c00e8(0xf1))/0x7)+-parseInt(_0x3c00e8(0x138))/0x8*(-parseInt(_0x3c00e8(0xe4))/0x9)+-parseInt(_0x3c00e8(0xfd))/0xa;if(_0x551a1e===_0x3a633f)break;else _0x29362f['push'](_0x29362f['shift']());}catch(_0x4851bc){_0x29362f['push'](_0x29362f['shift']());}}}(a32_0x3589,0x656c4));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x3c3521(0x105)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x3c3521(0x150)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0x3c3521(0x110)),scripts=require(a32_0x3c3521(0x120)),globals=require(a32_0x3c3521(0x130)),logger=require(a32_0x3c3521(0xed))[a32_0x3c3521(0xf2)],{shouldProcessEventForTesthub}=require(a32_0x3c3521(0x10d)),testHubConstants=require(a32_0x3c3521(0x13d));function a32_0x3589(){const _0x3f5be1=['passed','10476010ayhtrN','ZVKaU','appium:app','executeScript','UWwVn','IJngt','performScan','then','../../helpers/accessibility-automation/helper','error','771005lFFbaA','mochaHooks','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','ENV_VAR','__sessionFailed','1243002pytlbD','../../helpers/testhub/utils','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','thBuildUuid','../../helpers/performance-tester','LAuGQ','imFvn','jyoNI','getGlobal','iPLEj','TddFM','titlePath','http:','timeout','__skipSessionName','fOMuC','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','LkxEv','debug','aIOGQ','../../helpers/accessibility-automation/scripts','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','shouldScanTestForAccessibility','executeAsyncScript','testAnalyticsId','info','ntUet','CYBEo','116187oEFTOM','xXxpT','getCurrentUrl','percy','shift','qgHgs','session_','qtKpQ','../../helpers/globals','thTestRunUuid','initQuit','isArray','QMTIu','897628WEtcjp','Failed:\x20','15fiSFMt','1160YVmUyk','saveTestResults','err','thJwtToken','.\x20Error\x20:','../../helpers/testhub/constants','LrdZK','fEDSa','length','TaJaO','bHusw','quitCount_','message','failed','IKPvo','\x20-\x20','currentTest','\x20|\x20','ejecb','myUak','protocol','browserstackSessionName','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','env','./test-observability/mochaUtils','sessionNameSet__','2619390oIEQmI','MTNWJ','gcnGd','eIicq','vORVj','Performing\x20scan\x20before\x20saving\x20results','__error_messages__','BROWSERSTACK_TESTHUB_JWT','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','ZpcHM','app','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','isAccessibilityPlatform','10242LdpIDp','join','state','QhyGj','XBJxV','\x22}}','capabilities','ObservabilitySync:','bstackA11yShouldScan','../../helpers/logger','driverCleanup','__drivers','accessibilityScanStarted','7xBomzf','winstonLogger','IMoKb','stringify','https:','mTeEF','format','BROWSERSTACK_TESTHUB_UUID','Passed','XPTTt',',\x22level\x22:\x20\x22'];a32_0x3589=function(){return _0x3f5be1;};return a32_0x3589();}exports[a32_0x3c3521(0x108)]={'beforeAll'(){const _0x59777d=a32_0x3c3521,_0x106792={'xXxpT':function(_0x513df4,_0x42fcec,_0x2e38a8,_0x3e705c){return _0x513df4(_0x42fcec,_0x2e38a8,_0x3e705c);},'iPLEj':_0x59777d(0x145),'ntUet':_0x59777d(0x149),'XPTTt':function(_0x464a0c,_0x1ac6f4,_0x2cd0b4){return _0x464a0c(_0x1ac6f4,_0x2cd0b4);},'XBJxV':_0x59777d(0xfc),'MTNWJ':function(_0x3a29b4){return _0x3a29b4();}};PerformanceTester['startMonitoring']();const _0x307c9f='browserstack internal helper hook';global['__error_messages__']=[],global[_0x59777d(0x10b)]=![],global[_0x59777d(0xee)]=async()=>{const _0x5ee8fd=_0x59777d;let _0x27a740=![];try{await global[_0x5ee8fd(0xef)][0x0][_0x5ee8fd(0x12e)],_0x27a740=!![],global[_0x5ee8fd(0x10b)]?await _0x106792[_0x5ee8fd(0x129)](markSessionStatus,global[_0x5ee8fd(0xef)][0x0],_0x106792[_0x5ee8fd(0x115)],global[_0x5ee8fd(0x158)]['join'](_0x106792[_0x5ee8fd(0x126)])):await _0x106792[_0x5ee8fd(0xfa)](markSessionStatus,global['__drivers'][0x0],_0x106792[_0x5ee8fd(0xe8)]);}catch(_0x4ac0b6){}global[_0x5ee8fd(0x158)]=[],global[_0x5ee8fd(0x10b)]=![];if(_0x27a740)try{try{_0x106792[_0x5ee8fd(0x153)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x106792['XPTTt'](sendPlatformDetails,global[_0x5ee8fd(0xef)][0x0],this[_0x5ee8fd(0x148)]?this[_0x5ee8fd(0x148)][_0x5ee8fd(0x124)]:null));}catch{}await global[_0x5ee8fd(0xef)][0x0][_0x5ee8fd(0x132)]();}catch(_0x129dae){}};},'beforeEach'(_0x108e3f){const _0x5aa64b=a32_0x3c3521,_0x7226e4={'UWwVn':function(_0x5ea0c4,_0xf61cd3){return _0x5ea0c4>_0xf61cd3;},'fOMuC':_0x5aa64b(0x147),'XopCP':function(_0xcb77c7,_0x3ea204,_0x4f89e8){return _0xcb77c7(_0x3ea204,_0x4f89e8);},'vORVj':_0x5aa64b(0xec),'PjHiz':function(_0x5777bc){return _0x5777bc();},'myUak':_0x5aa64b(0xe3),'ZpcHM':function(_0xff817c,_0x599b40){return _0xff817c===_0x599b40;},'NgjSE':_0x5aa64b(0x118),'ejecb':_0x5aa64b(0xf5),'bIKZg':_0x5aa64b(0x14e),'imFvn':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0x24244a=>{const _0x2a8055=_0x5aa64b,_0x4f1875='browserstack internal helper hook';let _0x469fcd=!![];try{_0x7226e4[_0x2a8055(0x101)](global[_0x2a8055(0xef)][_0x2a8055(0x140)],0x1)&&(await global['driverCleanup'](),global[_0x2a8055(0xef)][_0x2a8055(0x12c)]()),_0x7226e4[_0x2a8055(0x101)](global[_0x2a8055(0xef)][0x0][_0x2a8055(0x143)],0x0)&&(_0x469fcd=![],await global[_0x2a8055(0xee)]());}catch{}try{Array[_0x2a8055(0x133)](global['__drivers'])&&global[_0x2a8055(0xef)][0x0]&&(global['__drivers'][0x0][_0x2a8055(0x14d)]=this[_0x2a8055(0x148)][_0x2a8055(0x117)]()[_0x2a8055(0xe5)](_0x7226e4[_0x2a8055(0x11b)])),global[_0x2a8055(0x14d)]=this[_0x2a8055(0x148)][_0x2a8055(0x117)]()[_0x2a8055(0xe5)](_0x7226e4['fOMuC']);}catch(_0x10285f){logger['debug']('Failed\x20to\x20store\x20session\x20name:\x20'+_0x10285f);}this['currentTest'][_0x2a8055(0x122)]=_0x7226e4['XopCP'](shouldScanTestForAccessibility,this[_0x2a8055(0x148)]['titlePath'](),!![]),globals['setGlobal'](_0x7226e4[_0x2a8055(0x156)],this['currentTest']['shouldScanTestForAccessibility']),this['currentTest'][_0x2a8055(0xf0)]=!![];if(_0x7226e4['PjHiz'](isAccessibilityAutomationSession)&&_0x469fcd&&Array['isArray'](global[_0x2a8055(0xef)])&&_0x7226e4[_0x2a8055(0x101)](global[_0x2a8055(0xef)]['length'],0x0)&&globals['getGlobal'](_0x7226e4[_0x2a8055(0x14b)]))try{const _0x46d4d6=await global[_0x2a8055(0xef)][0x0][_0x2a8055(0x12e)];if(_0x46d4d6){let _0x472d63=!![];const _0x2e4c4e=await global['__drivers'][0x0][_0x2a8055(0x12a)]();let _0x2039df;try{_0x2039df=new URL(_0x2e4c4e);}catch(_0x691724){_0x472d63=![];}_0x472d63=_0x7226e4[_0x2a8055(0x15b)](_0x2039df[_0x2a8055(0x14c)],_0x7226e4['NgjSE'])||_0x7226e4[_0x2a8055(0x15b)](_0x2039df['protocol'],_0x7226e4[_0x2a8055(0x14a)]),_0x472d63&&(this[_0x2a8055(0x148)][_0x2a8055(0x122)]&&logger[_0x2a8055(0x125)](_0x7226e4['bIKZg'])),this[_0x2a8055(0x148)][_0x2a8055(0xf0)]=this[_0x2a8055(0x148)][_0x2a8055(0x122)],this[_0x2a8055(0x148)][_0x2a8055(0x122)]&&logger['info'](_0x7226e4[_0x2a8055(0x112)]);}}catch(_0x2dc19c){logger[_0x2a8055(0x106)](_0x2a8055(0x109)+util[_0x2a8055(0xf7)](_0x2dc19c));}_0x7226e4['PjHiz'](_0x24244a);})['then'](_0x108e3f);},'afterEach'(_0x1680b0){const _0xbad8b7=a32_0x3c3521,_0x3439a8={'reOzr':function(_0x5cf6e9,_0x3080df){return _0x5cf6e9>_0x3080df;},'LAuGQ':function(_0x171cf8,_0xd327dd){return _0x171cf8===_0xd327dd;},'lJciS':'testcase','eIicq':function(_0x248a16,_0xf1d7c7){return _0x248a16>_0xf1d7c7;},'CYBEo':_0xbad8b7(0xff),'jyoNI':function(_0x3b1bc2,_0x39c2d1,_0x29ef29,_0x1282f9){return _0x3b1bc2(_0x39c2d1,_0x29ef29,_0x1282f9);},'TaJaO':_0xbad8b7(0x147),'IKPvo':function(_0xd40e4d,_0x344cb9){return _0xd40e4d!==_0x344cb9;},'aIOGQ':'passed','bHusw':function(_0x350080,_0x497af5,_0x389ebb){return _0x350080(_0x497af5,_0x389ebb);},'qgHgs':function(_0x3aec35,_0x5aa1ab){return _0x3aec35+_0x5aa1ab;},'PTovD':_0xbad8b7(0x136),'QhyGj':'error','IMoKb':_0xbad8b7(0xf9),'ZVKaU':_0xbad8b7(0x125),'qtKpQ':_0xbad8b7(0xe3),'QMTIu':'bstackA11yShouldScan','WXrhc':_0xbad8b7(0x121),'gcnGd':_0xbad8b7(0x157),'LrdZK':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','LkxEv':function(_0x55616d){return _0x55616d();},'IJngt':function(_0x4e0c9e,_0x424585,_0x10cb94){return _0x4e0c9e(_0x424585,_0x10cb94);},'fEDSa':_0xbad8b7(0x11e),'TddFM':function(_0x4ed30c,_0x12f10c){return _0x4ed30c>_0x12f10c;},'mTeEF':function(_0x3dbeb6){return _0x3dbeb6();}},_0x405221='browserstack internal helper hook';this[_0xbad8b7(0x119)](0xfde8);const _0x574da7=async(_0x37457f,_0x12d8e9)=>{const _0xf4b48d=_0xbad8b7;await global['__drivers'][0x0][_0xf4b48d(0x100)](_0xf4b48d(0x11c)+_0x37457f+_0xf4b48d(0xfb)+_0x12d8e9+_0xf4b48d(0xe9));};new Promise(async _0x391bb1=>{const _0x447ca3=_0xbad8b7;try{_0x3439a8['reOzr'](global[_0x447ca3(0xef)]['length'],0x1)&&(await global[_0x447ca3(0xee)](),global['__drivers'][_0x447ca3(0x12c)](),global[_0x447ca3(0x158)]=[],global['__sessionFailed']=![]);try{if(global[_0x447ca3(0x12b)]&&_0x3439a8[_0x447ca3(0x111)](global['percyCaptureMode'],_0x3439a8['lJciS'])&&global[_0x447ca3(0xef)][0x0]){const _0x322d46=_0x3439a8[_0x447ca3(0x155)](global[_0x447ca3(0xea)]['length'],0x0)?!!global[_0x447ca3(0xea)][0x0]['app']||!!global[_0x447ca3(0xea)][0x0][_0x3439a8[_0x447ca3(0x127)]]:![],_0xdb5304={};_0xdb5304[_0x447ca3(0xe1)]=_0x322d46,await _0x3439a8[_0x447ca3(0x113)](percyAutoCapture,global[_0x447ca3(0xef)][0x0],_0x3439a8['lJciS'],_0xdb5304);}}catch(_0x21a92f){}!global[_0x447ca3(0x11a)]&&(await global[_0x447ca3(0xef)][0x0][_0x447ca3(0x100)](_0x447ca3(0x10e)+JSON[_0x447ca3(0xf4)](this[_0x447ca3(0x148)][_0x447ca3(0x117)]()[_0x447ca3(0xe5)](_0x3439a8[_0x447ca3(0x141)]))+'}}'),global[_0x447ca3(0xef)][0x0][_0x447ca3(0x151)]=!![]);const _0x359d10=_0x3439a8[_0x447ca3(0x146)](this['currentTest'][_0x447ca3(0xe6)],_0x3439a8[_0x447ca3(0x11f)]);_0x359d10?(global[_0x447ca3(0x10b)]=!![],global[_0x447ca3(0x158)]['push'](this[_0x447ca3(0x148)][_0x447ca3(0x13a)]['message']),await _0x3439a8[_0x447ca3(0x142)](_0x574da7,JSON['stringify'](_0x3439a8[_0x447ca3(0x12d)](_0x3439a8['PTovD'],this[_0x447ca3(0x148)][_0x447ca3(0x13a)][_0x447ca3(0x144)])),_0x3439a8[_0x447ca3(0xe7)])):await _0x3439a8[_0x447ca3(0x142)](_0x574da7,JSON[_0x447ca3(0xf4)](_0x3439a8[_0x447ca3(0xf3)]),_0x3439a8[_0x447ca3(0xfe)]);}catch(_0x3f195b){}try{if(this[_0x447ca3(0x148)][_0x447ca3(0xf0)]&&globals[_0x447ca3(0x114)](_0x3439a8[_0x447ca3(0x12f)])&&globals[_0x447ca3(0x114)](_0x3439a8[_0x447ca3(0x134)])){logger[_0x447ca3(0x125)](_0x3439a8['WXrhc']);const _0x42486a={};_0x42486a[_0x447ca3(0x131)]=this['currentTest'][_0x447ca3(0x124)],_0x42486a[_0x447ca3(0x10f)]=process[_0x447ca3(0x14f)][testHubConstants[_0x447ca3(0x10a)][_0x447ca3(0xf8)]],_0x42486a[_0x447ca3(0x13b)]=process[_0x447ca3(0x14f)][testHubConstants[_0x447ca3(0x10a)][_0x447ca3(0x159)]];const _0x18c8d2=_0x42486a;logger[_0x447ca3(0x11e)](_0x447ca3(0xe2)+JSON[_0x447ca3(0xf4)](_0x18c8d2)),logger['debug'](_0x3439a8[_0x447ca3(0x154)]),logger['debug'](util[_0x447ca3(0xf7)](await global[_0x447ca3(0xef)][0x0][_0x447ca3(0x123)](scripts[_0x447ca3(0x103)],{'method':global['browserstackSessionName']}))),await global['__drivers'][0x0][_0x447ca3(0x123)](scripts[_0x447ca3(0x139)],_0x18c8d2),logger[_0x447ca3(0x125)](_0x3439a8[_0x447ca3(0x13e)]);}}catch(_0x9f20dd){logger[_0x447ca3(0x106)](_0x447ca3(0x15a)+this[_0x447ca3(0x148)][_0x447ca3(0x117)]()+_0x447ca3(0x13c),_0x9f20dd);}try{try{if(_0x3439a8[_0x447ca3(0x11d)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x3439a8['bHusw'](sendPlatformDetails,global[_0x447ca3(0xef)][0x0],this[_0x447ca3(0x148)]?this['currentTest']['testAnalyticsId']:null);if(_0x3439a8['LkxEv'](isBrowserstackInfra)){const _0x5299b9=_0x447ca3(0xeb)+Date['now']();await _0x3439a8[_0x447ca3(0x102)](_0x574da7,JSON[_0x447ca3(0xf4)](_0x5299b9),_0x3439a8[_0x447ca3(0x13f)]);}}}catch{}_0x3439a8[_0x447ca3(0x116)](global[_0x447ca3(0xef)][0x0][_0x447ca3(0x143)],0x0)&&await global[_0x447ca3(0xee)]();}catch(_0x24e6cc){}_0x3439a8[_0x447ca3(0xf6)](_0x391bb1);})[_0xbad8b7(0x104)](()=>_0x1680b0());},'afterAll'(_0x52a3e3){const _0x1fc594=a32_0x3c3521,_0x3f0145={'XChuZ':function(_0x38e0d8){return _0x38e0d8();}},_0x34fb43='browserstack internal helper hook';this[_0x1fc594(0x119)](0xfde8),new Promise(async _0x31e0a2=>{PerformanceTester['stopMonitoring'](),await global['driverCleanup'](),_0x3f0145['XChuZ'](_0x31e0a2);})[_0x1fc594(0x104)](()=>_0x52a3e3());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x181391=a33_0x201d;function a33_0x14d5(){const _0x7bbebf=['../../helpers/logger','xMzSF','bCvvS','port','map','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','useW3C','yjDMG','child_process','splice','3650405SFifCO','platform','env','LyoAp','112710vAKUAR','ckJNt','62ArHzvc','trim','test_settings','platforms','EWIhp','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','slice','inherit','lLwdZ','Getting\x20your\x20nightwatch\x20configs\x20from\x20','../../helpers/BrowserStackSetup','--config','config','selenium','AtbqY','mCbxP','getPlatformName','IKuXj','writeFileSync','nightwatch','25640PTYHFu','nktJT','modifyBrowserStackCaps','7ZXXGMo','unlinkSync','hub.browserstack.com','split','info','nightwatch-browserstack.json','nightwatch.cmd','join','14854OIeuMV','nightwatch.conf.js','uDeXE','push','forEach','mergeDeep','QgGMy','Deleting\x20','existsSync','KPklk','debug','VnEYk','test','host','nightwatch.json','--env','5670738nmGUJp','modifyBrowserStackW3CCaps','IzLcY','OeYZb','5078364twnSfV','findIndex','1950456jCvMvn','cwd'];a33_0x14d5=function(){return _0x7bbebf;};return a33_0x14d5();}(function(_0x4ca2eb,_0x1e8e4d){const _0x1193c5=a33_0x201d,_0x2f1292=_0x4ca2eb();while(!![]){try{const _0x19de73=-parseInt(_0x1193c5(0xa9))/0x1*(parseInt(_0x1193c5(0xc8))/0x2)+-parseInt(_0x1193c5(0xa7))/0x3+-parseInt(_0x1193c5(0xbd))/0x4+-parseInt(_0x1193c5(0xea))/0x5+parseInt(_0x1193c5(0xdc))/0x6+-parseInt(_0x1193c5(0xc0))/0x7*(-parseInt(_0x1193c5(0xde))/0x8)+parseInt(_0x1193c5(0xd8))/0x9;if(_0x19de73===_0x1e8e4d)break;else _0x2f1292['push'](_0x2f1292['shift']());}catch(_0x2a3f86){_0x2f1292['push'](_0x2f1292['shift']());}}}(a33_0x14d5,0x76974));function a33_0x201d(_0x4f8b00,_0x5c9a3f){const _0x14d514=a33_0x14d5();return a33_0x201d=function(_0x201d15,_0x234d9a){_0x201d15=_0x201d15-0xa7;let _0x4c0e66=_0x14d514[_0x201d15];return _0x4c0e66;},a33_0x201d(_0x4f8b00,_0x5c9a3f);}const fs=require('fs'),path=require('path'),{spawn}=require(a33_0x181391(0xe8)),logger=require(a33_0x181391(0xe0))['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x181391(0xb3)),helper=require('../../helpers/helper'),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x3e9489,_0x5d7fd0)=>{const _0x32bde0=a33_0x181391,_0x26e891={'IzLcY':_0x32bde0(0xc9),'lLwdZ':_0x32bde0(0xd6),'bCvvS':function(_0x271b10,_0x467466){return _0x271b10(_0x467466);},'KPklk':_0x32bde0(0xae)};let _0x2997fd=null,_0x14215f={};const _0x2fd7f7=_0x5d7fd0[_0x32bde0(0xdd)](_0x124fdd=>_0x124fdd===_0x32bde0(0xb4));if(!helper['isUndefined'](_0x3e9489[_0x32bde0(0xb5)])&&fs[_0x32bde0(0xd0)](path[_0x32bde0(0xc7)](process[_0x32bde0(0xdf)](),_0x3e9489['config'])))_0x2997fd=path[_0x32bde0(0xc7)](process[_0x32bde0(0xdf)](),_0x3e9489[_0x32bde0(0xb5)]),_0x5d7fd0['splice'](_0x2fd7f7,0x2);else{if(fs[_0x32bde0(0xd0)](path[_0x32bde0(0xc7)](process['cwd'](),_0x26e891[_0x32bde0(0xda)])))_0x2997fd=path[_0x32bde0(0xc7)](process[_0x32bde0(0xdf)](),_0x26e891[_0x32bde0(0xda)]);else fs[_0x32bde0(0xd0)](path[_0x32bde0(0xc7)](process[_0x32bde0(0xdf)](),_0x26e891['lLwdZ']))&&(_0x2997fd=path['join'](process['cwd'](),_0x26e891[_0x32bde0(0xb1)]));}return _0x2997fd?(logger[_0x32bde0(0xc4)](_0x32bde0(0xb2)+_0x2997fd),_0x14215f=_0x26e891[_0x32bde0(0xe2)](require,_0x2997fd)):logger[_0x32bde0(0xc4)](_0x26e891[_0x32bde0(0xd1)]),_0x14215f;},removeExistingEnvs=_0x44c483=>{const _0x299f76=a33_0x181391,_0x1d0826={};_0x1d0826['xMzSF']=function(_0xeb01f2,_0xe65195){return _0xeb01f2>_0xe65195;};const _0x477f0b=_0x1d0826;let _0x20b1ed=_0x44c483[_0x299f76(0xdd)](_0x2cb8ae=>_0x2cb8ae===_0x299f76(0xd7));_0x477f0b['xMzSF'](_0x20b1ed,-0x1)&&_0x44c483[_0x299f76(0xe9)](_0x20b1ed,0x2),_0x20b1ed=_0x44c483[_0x299f76(0xdd)](_0x3a2932=>_0x3a2932==='-e'),_0x477f0b[_0x299f76(0xe1)](_0x20b1ed,-0x1)&&_0x44c483[_0x299f76(0xe9)](_0x20b1ed,0x2);};function run(_0xc48c4e,_0x321064){const _0x1637b0=a33_0x181391,_0x3e71d6={'yjDMG':_0x1637b0(0xbc),'uDeXE':function(_0x3f456f,_0x2f5fe6){return _0x3f456f+_0x2f5fe6;},'mCbxP':_0x1637b0(0xab),'ckJNt':function(_0x190d97,_0x312612,_0x1a7b9d){return _0x190d97(_0x312612,_0x1a7b9d);},'OeYZb':_0x1637b0(0xc2),'AtbqY':_0x1637b0(0xe5),'IKuXj':function(_0x3d2f99,_0x3bc646){return _0x3d2f99===_0x3bc646;},'VnEYk':_0x1637b0(0xc5),'UKLJq':function(_0x375393,_0x2d70b2){return _0x375393(_0x2d70b2);},'JvYID':function(_0x15548c,_0x422d07,_0x42b8aa,_0x3e19f5){return _0x15548c(_0x422d07,_0x42b8aa,_0x3e19f5);},'MHNXW':_0x1637b0(0xc6),'EWIhp':_0x1637b0(0xb4),'QgGMy':'--env','gOfWO':_0x1637b0(0xb0),'JlLMK':'close'},_0x1a5c91=new BrowserStackSetup(_0xc48c4e);if(!_0x1a5c91[_0x1637b0(0xb5)])return;const _0x4297dd=_0x3e71d6[_0x1637b0(0xa8)](getUserNightwatchConfigs,_0xc48c4e,_0x321064),_0x528296={};_0x528296['start_process']=![];const _0x54464e={};_0x54464e[_0x1637b0(0xd5)]=_0x3e71d6[_0x1637b0(0xdb)],_0x54464e[_0x1637b0(0xe3)]=0x1bb;const _0x5d2750={};_0x5d2750['webdriver']=_0x528296,_0x5d2750[_0x1637b0(0xb6)]=_0x54464e;const _0x37056e=_0x5d2750;logger[_0x1637b0(0xc4)](_0x3e71d6[_0x1637b0(0xb7)]);const _0x4b5452={..._0x4297dd},_0x1bf7d3=_0x4b5452,_0x349f86=helper[_0x1637b0(0xe6)](_0x1a5c91['config']),_0x4da2ec=[];_0x1a5c91[_0x1637b0(0xb5)][_0x1637b0(0xac)]['forEach']((_0x176cc1,_0x5440f4)=>{const _0x2f2834=_0x1637b0;_0x349f86?_0x4da2ec[_0x2f2834(0xcb)](helper[_0x2f2834(0xd9)](_0x1a5c91[_0x2f2834(0xb5)],_0x3e71d6[_0x2f2834(0xe7)],_0x5440f4)):_0x4da2ec['push'](helper[_0x2f2834(0xbf)](_0x1a5c91[_0x2f2834(0xb5)],_0x3e71d6[_0x2f2834(0xe7)],_0x5440f4));});const _0x2d6049={},_0x3a386b=[];_0xc48c4e[_0x1637b0(0xec)]=_0xc48c4e[_0x1637b0(0xec)]||_0xc48c4e['e'];const _0x5b5b9f=_0xc48c4e['env']?_0xc48c4e[_0x1637b0(0xec)][_0x1637b0(0xaa)]()[_0x1637b0(0xc3)](',')[_0x1637b0(0xe4)](_0x10a075=>_0x10a075[_0x1637b0(0xaa)]())['filter'](_0x17abc1=>_0x17abc1!==''):[''];_0x3e71d6[_0x1637b0(0xba)](_0x5b5b9f['length'],0x0)&&_0x5b5b9f[_0x1637b0(0xcb)]('');_0x5b5b9f[_0x1637b0(0xcc)](_0x3bd0f3=>{const _0x57d76d=_0x1637b0,_0x422939={'LyoAp':function(_0x33db05,_0x1569c1){const _0x358a9d=a33_0x201d;return _0x3e71d6[_0x358a9d(0xca)](_0x33db05,_0x1569c1);},'nktJT':_0x3e71d6[_0x57d76d(0xb8)]};_0x4da2ec['forEach'](_0x3c634d=>{const _0x254c50=_0x57d76d;let _0x1f617f=_0x422939[_0x254c50(0xed)](helper[_0x254c50(0xb9)](_0x3c634d,'_'),'_'+Date['now']());_0x3bd0f3&&(_0x1f617f+='_'+_0x3bd0f3);if(_0x3bd0f3&&(!_0x4297dd[_0x422939['nktJT']]||!_0x4297dd[_0x422939[_0x254c50(0xbe)]][_0x3bd0f3]))return;const _0x52981d={..._0x37056e};_0x52981d['desiredCapabilities']=_0x3c634d;const _0x407914=_0x52981d;_0x2d6049[_0x1f617f]=_0x3bd0f3?helper[_0x254c50(0xcd)](_0x4297dd[_0x422939[_0x254c50(0xbe)]][_0x3bd0f3],_0x407914):_0x407914,_0x3a386b['push'](_0x1f617f);});});!_0x1bf7d3[_0x1637b0(0xab)]&&(_0x1bf7d3[_0x1637b0(0xab)]={});_0x1bf7d3[_0x1637b0(0xab)]={..._0x1bf7d3[_0x1637b0(0xab)],..._0x2d6049};const _0x14b2b0=path['join'](__dirname,_0x3e71d6[_0x1637b0(0xd3)]);fs[_0x1637b0(0xbb)](_0x14b2b0,JSON['stringify'](_0x1bf7d3)),_0x3e71d6['UKLJq'](removeExistingEnvs,_0x321064);const _0x269a7f=_0x3e71d6['JvYID'](spawn,/^win/[_0x1637b0(0xd4)](process[_0x1637b0(0xeb)])?_0x3e71d6['MHNXW']:_0x3e71d6[_0x1637b0(0xe7)],[_0x3e71d6[_0x1637b0(0xad)],_0x14b2b0,..._0x321064[_0x1637b0(0xaf)](0x1),_0x3e71d6[_0x1637b0(0xce)],_0x3a386b[_0x1637b0(0xc7)](',')],{'stdio':_0x3e71d6['gOfWO']});_0x269a7f['on'](_0x3e71d6['JlLMK'],async _0x2bbb28=>{const _0xed5504=_0x1637b0;logger[_0xed5504(0xd2)]('child\x20process\x20exited\x20with\x20code\x20'+_0x2bbb28),logger[_0xed5504(0xc4)](_0xed5504(0xcf)+_0x14b2b0),fs[_0xed5504(0xc1)](_0x14b2b0);});}module['exports']=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
|
+
const a34_0x1c3e8a=a34_0x4648;function a34_0x4648(_0x34bc91,_0xd69045){const _0x4f814e=a34_0x4f81();return a34_0x4648=function(_0x4648c3,_0x29a8a8){_0x4648c3=_0x4648c3-0xfa;let _0x53cdd4=_0x4f814e[_0x4648c3];return _0x53cdd4;},a34_0x4648(_0x34bc91,_0xd69045);}(function(_0x35c645,_0x4c7819){const _0x5b9939=a34_0x4648,_0x22eeda=_0x35c645();while(!![]){try{const _0x43379d=parseInt(_0x5b9939(0xfa))/0x1+parseInt(_0x5b9939(0x128))/0x2*(parseInt(_0x5b9939(0x102))/0x3)+parseInt(_0x5b9939(0x13b))/0x4+-parseInt(_0x5b9939(0x126))/0x5*(-parseInt(_0x5b9939(0x148))/0x6)+-parseInt(_0x5b9939(0x131))/0x7*(parseInt(_0x5b9939(0x106))/0x8)+-parseInt(_0x5b9939(0xfe))/0x9+-parseInt(_0x5b9939(0x108))/0xa*(parseInt(_0x5b9939(0x135))/0xb);if(_0x43379d===_0x4c7819)break;else _0x22eeda['push'](_0x22eeda['shift']());}catch(_0x36332b){_0x22eeda['push'](_0x22eeda['shift']());}}}(a34_0x4f81,0x1e020));function a34_0x4f81(){const _0x40e3a8=['accessibilityOptions.includeIssueType.needsReview','jrPVo','629055lwWrZV','GPFFE','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','browser_version','536799PPbShO','nHyap','project','plQLB','272JSiufq','scannerProcessingTimeout','4780TQHtnf','../../helpers/logger','constructor','lrUfW','browserstack.accessibility','qFtgH','QieWF','executeAsyncScript','winstonLogger','processAccessibilityCaps','BS_A11Y_JWT','dUPxp','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','bestPractice','rDdtH','../../helpers/accessibility-automation/scripts','name','use','wcagVersion','accessibilityOptions.scannerVersion','platformValidation','khCXt','cuFcO','yghpd','uicIG','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','../../helpers/helper','warn','YXEEV','accessibilityOptions','5eKFhdT','WebDriver','2apIDoy','getAccessibilityResults','env','EVOlk','GAKJy','bstackSdkArgs','accessibilityOptions.authToken','currentTest','browserStackEvaluate','30394LVmGKK','accessibilityPlatform','eUrKg','stringify','8107dByrdu','debug','browser','executeScript','error','connectOptions','609168nYCZJc','KrSix','fkXLS','testInfo','playwright-chromium','util','eFbMB','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','JGlAJ','No\x20accessibility\x20results\x20were\x20found.','replace','zsdnS','browserStackExecuteDriver','882606ihSaml','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','browserName','performScan','includeIssueType','vgmIK','(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','gTRqK','../../helpers/accessibility-automation/helper','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','deviceName','HtXiy','format','LlzNn','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','parse','IKDvk','zbRJc','evaluate','tMkbY','TeGIu','wsEndpoint','chrome','method','scannerVersion','USMcY','214395XJQAYx','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'];a34_0x4f81=function(){return _0x40e3a8;};return a34_0x4f81();}const util=require(a34_0x1c3e8a(0x140)),logger=require(a34_0x1c3e8a(0x109))[a34_0x1c3e8a(0x110)],{isAccessibilityAutomationSession}=require(a34_0x1c3e8a(0x150)),{isUndefined}=require(a34_0x1c3e8a(0x122)),scripts=require(a34_0x1c3e8a(0x117));exports[a34_0x1c3e8a(0x130)]=async(_0x1ff6cd,_0x21535f,_0x5f5d24={})=>{const _0xc0be59=a34_0x1c3e8a,_0x595e77={};_0x595e77['zbRJc']=_0xc0be59(0x12d);const _0x4b5b38=_0x595e77;return await _0x1ff6cd[_0xc0be59(0x15b)](_0xc0be59(0x14e)+_0x21535f[_0xc0be59(0x145)](/arguments/g,_0x4b5b38[_0xc0be59(0x15a)])+_0xc0be59(0x151)+JSON['stringify'](_0x5f5d24)+')');},exports[a34_0x1c3e8a(0x147)]=async(_0x5d2252,_0x2a7418,_0xf926b7={})=>{const _0xa212e2=a34_0x1c3e8a,_0xc6d220={};_0xc6d220[_0xa212e2(0x12c)]=function(_0x20e001,_0x33529c){return _0x20e001===_0x33529c;},_0xc6d220[_0xa212e2(0x13d)]=_0xa212e2(0x127),_0xc6d220['nHyap']='Playwright',_0xc6d220['GPFFE']=_0xa212e2(0x12d);const _0x5b1de7=_0xc6d220;if(_0x5b1de7[_0xa212e2(0x12c)](_0x5d2252['constructor'][_0xa212e2(0x118)],_0x5b1de7[_0xa212e2(0x13d)]))return await _0x5d2252[_0xa212e2(0x10f)](_0x2a7418,_0xf926b7);else{if(_0x5b1de7['GAKJy'](_0x5d2252[_0xa212e2(0x10a)][_0xa212e2(0x118)],_0x5b1de7[_0xa212e2(0x103)]))return await _0x5d2252[_0xa212e2(0x138)]('(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'+_0x2a7418[_0xa212e2(0x145)](/arguments/g,_0x5b1de7[_0xa212e2(0xff)])+_0xa212e2(0x142)+JSON[_0xa212e2(0x134)](_0xf926b7)+')');}},exports['setAccessibilityCapabilities']=async _0xa19c26=>{const _0x395d4f=a34_0x1c3e8a,_0x59c551={};_0x59c551['eUrKg']='accessibilityOptions.wcagVersion',_0x59c551[_0x395d4f(0x120)]='accessibilityOptions.scannerProcessingTimeout',_0x59c551[_0x395d4f(0x124)]='accessibilityOptions.includeIssueType.bestPractice',_0x59c551[_0x395d4f(0x116)]=_0x395d4f(0xfc),_0x59c551[_0x395d4f(0x10d)]=_0x395d4f(0x12e),_0x59c551[_0x395d4f(0x143)]=_0x395d4f(0x11b);const _0x311e97=_0x59c551;_0xa19c26[_0x395d4f(0x125)]&&(_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x11a)]&&(_0xa19c26[_0x311e97[_0x395d4f(0x133)]]=_0xa19c26['accessibilityOptions'][_0x395d4f(0x11a)]),_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x107)]&&(_0xa19c26[_0x311e97[_0x395d4f(0x120)]]=_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x107)]),_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x14c)]&&(_0xa19c26[_0x311e97['YXEEV']]=_0xa19c26[_0x395d4f(0x125)]['includeIssueType'][_0x395d4f(0x115)],_0xa19c26[_0x311e97['rDdtH']]=_0xa19c26['accessibilityOptions']['includeIssueType']['needsReview']));const _0x1fa336=JSON[_0x395d4f(0x158)](process[_0x395d4f(0x12a)][_0x395d4f(0xfb)])[_0x395d4f(0x161)];_0xa19c26[_0x311e97[_0x395d4f(0x10d)]]=process[_0x395d4f(0x12a)][_0x395d4f(0x112)],_0xa19c26[_0x311e97[_0x395d4f(0x143)]]=_0x1fa336,delete _0xa19c26['accessibilityOptions'];},exports[a34_0x1c3e8a(0x129)]=async _0x2eb319=>{const _0x66c9f6=a34_0x1c3e8a,_0x2b3486={};_0x2b3486['ewOha']=_0x66c9f6(0x144),_0x2b3486[_0x66c9f6(0x10b)]=_0x66c9f6(0x121);const _0x3af938=_0x2b3486;if(global[_0x66c9f6(0x132)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x2eb319,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x2eb319,scripts.getResults);return res;}catch{return logger[_0x66c9f6(0x139)](_0x3af938['ewOha']),[];}else return logger[_0x66c9f6(0x123)](_0x3af938[_0x66c9f6(0x10b)]),[];},exports[a34_0x1c3e8a(0x14b)]=async(_0x4bc5cd,_0x494301='')=>{const _0x25fb86=a34_0x1c3e8a;if(global[_0x25fb86(0x132)]){const _0x3bfee1={};return _0x3bfee1[_0x25fb86(0x160)]=_0x494301,await exports[_0x25fb86(0x130)](_0x4bc5cd,scripts[_0x25fb86(0x14b)],_0x3bfee1);}},exports['getAccessibilityResultsSummary']=async _0x1836d3=>{const _0x37937c=a34_0x1c3e8a,_0x3b5e46={};_0x3b5e46['dUPxp']='No\x20summaryResults\x20found.',_0x3b5e46[_0x37937c(0x155)]=_0x37937c(0x157);const _0x37d0bd=_0x3b5e46;if(global[_0x37937c(0x132)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1836d3,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x1836d3,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x37937c(0x136)](_0x37d0bd[_0x37937c(0x113)]),{};}else return logger[_0x37937c(0x123)](_0x37d0bd['LlzNn']),{};},exports[a34_0x1c3e8a(0x11c)]=async _0x569d99=>{const _0x97938d=a34_0x1c3e8a,_0x2fbc32={'LIXCO':function(_0x2ae4a7,_0x54ad03){return _0x2ae4a7!==_0x54ad03;},'BXlKM':_0x97938d(0x156),'gTRqK':function(_0x276440,_0x367001){return _0x276440===_0x367001;},'HtXiy':'chrome','USMcY':_0x97938d(0x13f),'EVOlk':_0x97938d(0x149),'tMkbY':function(_0x47de20,_0x5f35ae){return _0x47de20(_0x5f35ae);},'KrSix':function(_0x174c85,_0x1ef7ba){return _0x174c85===_0x1ef7ba;},'khCXt':'latest','zsdnS':function(_0x22abc2,_0x19aa3f){return _0x22abc2>_0x19aa3f;},'plQLB':_0x97938d(0x114)};try{if(!_0x2fbc32['LIXCO'](_0x569d99['deviceName'],''))return logger['warn'](_0x2fbc32['BXlKM']),![];const _0x5b3832=_0x569d99[_0x97938d(0x137)];if(!(_0x2fbc32[_0x97938d(0x14f)](_0x5b3832,_0x2fbc32[_0x97938d(0x153)])||_0x2fbc32['gTRqK'](_0x5b3832,_0x2fbc32[_0x97938d(0x162)])))return logger[_0x97938d(0x123)](_0x2fbc32[_0x97938d(0x12b)]),![];const _0x3280a3=_0x2fbc32[_0x97938d(0x15c)](parseInt,_0x569d99[_0x97938d(0x101)]);if(!(_0x2fbc32[_0x97938d(0x13c)](_0x3280a3,_0x2fbc32[_0x97938d(0x11d)])||_0x2fbc32[_0x97938d(0x146)](_0x3280a3,0x5e)))return logger[_0x97938d(0x123)](_0x2fbc32[_0x97938d(0x105)]),![];}catch(_0x59a4dd){logger['debug']('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x97938d(0x154)](_0x59a4dd));}return!![];},exports[a34_0x1c3e8a(0x111)]=(_0x1370e3,_0x1f544e,_0xe9b99e)=>{const _0x3cfd49=a34_0x1c3e8a,_0x462015={'yghpd':function(_0x566356){return _0x566356();},'TeGIu':_0x3cfd49(0x10c),'yVaig':function(_0x594895,_0x1a0897){return _0x594895===_0x1a0897;},'vgmIK':_0x3cfd49(0x15f),'SxOdX':_0x3cfd49(0x13f),'dGDqS':_0x3cfd49(0x149),'mZNZA':function(_0x589962,_0x181851){return _0x589962===_0x181851;},'IKDvk':'latest','JAhwU':function(_0x417228,_0x2b6881){return _0x417228>_0x2b6881;},'cuFcO':_0x3cfd49(0x114),'QieWF':function(_0x5f280d,_0x230936){return _0x5f280d(_0x230936);},'eFbMB':_0x3cfd49(0x156),'uFGYo':function(_0x52c0aa,_0x2088fc){return _0x52c0aa+_0x2088fc;},'jrPVo':function(_0x219519,_0x68a64d){return _0x219519(_0x68a64d);}};try{if(_0x462015[_0x3cfd49(0x11f)](isAccessibilityAutomationSession)){global[_0x3cfd49(0x132)]=!![];!_0x1370e3[_0x462015[_0x3cfd49(0x15d)]]&&(global[_0x3cfd49(0x132)]=![]);!(_0x462015['yVaig'](_0x1370e3['browserName'],_0x462015[_0x3cfd49(0x14d)])||_0x462015['yVaig'](_0x1370e3[_0x3cfd49(0x14a)],_0x462015['SxOdX']))&&(logger[_0x3cfd49(0x123)](_0x462015['dGDqS']),global[_0x3cfd49(0x132)]=![]);!(_0x462015['mZNZA'](_0x1370e3[_0x3cfd49(0x101)],_0x462015[_0x3cfd49(0x159)])||_0x462015['JAhwU'](_0x1370e3['browser_version'],0x5e))&&(logger[_0x3cfd49(0x123)](_0x462015[_0x3cfd49(0x11e)]),global['accessibilityPlatform']=![]);!_0x462015[_0x3cfd49(0x10e)](isUndefined,_0x1370e3[_0x3cfd49(0x152)])&&(logger[_0x3cfd49(0x123)](_0x462015[_0x3cfd49(0x141)]),global[_0x3cfd49(0x132)]=![]);if(!global[_0x3cfd49(0x132)]){_0x1370e3[_0x462015[_0x3cfd49(0x15d)]]=![];const _0x74e8ab=_0x462015['uFGYo'](_0x1f544e,_0x462015[_0x3cfd49(0xfd)](encodeURIComponent,JSON[_0x3cfd49(0x134)](_0x1370e3)));_0xe9b99e&&(_0xe9b99e[_0x3cfd49(0x12f)][_0x3cfd49(0x13e)][_0x3cfd49(0x104)]['use'][_0x3cfd49(0x13a)]['wsEndpoint']=_0x74e8ab,_0xe9b99e['workerInfo'][_0x3cfd49(0x104)][_0x3cfd49(0x119)][_0x3cfd49(0x13a)][_0x3cfd49(0x15e)]=_0x74e8ab);}}}catch(_0x7958d8){logger['debug'](_0x3cfd49(0x100)+util[_0x3cfd49(0x154)](_0x7958d8));}};
|
|
@@ -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_0x4c303c=a35_0x46f3;(function(_0x15688c,_0x198286){const _0x5075c1=a35_0x46f3,_0x2ae3df=_0x15688c();while(!![]){try{const _0x58c3cb=parseInt(_0x5075c1(0x199))/0x1*(parseInt(_0x5075c1(0x1e0))/0x2)+parseInt(_0x5075c1(0x14c))/0x3+parseInt(_0x5075c1(0x19b))/0x4+parseInt(_0x5075c1(0x1c8))/0x5+-parseInt(_0x5075c1(0x1c2))/0x6*(parseInt(_0x5075c1(0x1de))/0x7)+-parseInt(_0x5075c1(0x19e))/0x8*(-parseInt(_0x5075c1(0x1c9))/0x9)+parseInt(_0x5075c1(0x15e))/0xa*(-parseInt(_0x5075c1(0x1b1))/0xb);if(_0x58c3cb===_0x198286)break;else _0x2ae3df['push'](_0x2ae3df['shift']());}catch(_0x498f45){_0x2ae3df['push'](_0x2ae3df['shift']());}}}(a35_0x14ac,0xc171b));const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x4c303c(0x157)),{format}=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x4c303c(0x1a1)),helper=require(a35_0x4c303c(0x1a5)),utilities=require(a35_0x4c303c(0x1c3)),constants=require('../utils/constants'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x4c303c(0x19a)),{CrashReporter}=require(a35_0x4c303c(0x187)),{getFrameworkVersion}=require(a35_0x4c303c(0x195)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a35_0x4c303c(0x160)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x4c303c(0x1af)),getUserPlaywrightConfig=async(_0x1286e6,_0x22084a)=>{const _0x15d275=a35_0x4c303c,_0x449d32={'nfxpp':function(_0x4d4885){return _0x4d4885();},'SdnxK':function(_0x31c8f3,_0x5059ac){return _0x31c8f3(_0x5059ac);},'qnyWw':function(_0x38c342,_0x1c046a){return _0x38c342(_0x1c046a);},'gzCwF':'resolvedConfigFile','lSvPF':_0x15d275(0x1d7)},_0x18c086=!helper[_0x15d275(0x16a)](_0x1286e6['config']),_0x5ab9e6=_0x18c086?path['resolve'](process[_0x15d275(0x15b)](),_0x1286e6[_0x15d275(0x158)]):process['cwd'](),{resolveConfigFile:_0x562ea2,resolveConfigLocation:_0x43d3ed}=helper[_0x15d275(0x17a)]['apply'](null,_0x449d32[_0x15d275(0x190)](getConfigLoaderPath)),_0x19131a=_0x562ea2?_0x449d32['SdnxK'](_0x562ea2,_0x5ab9e6):helper[_0x15d275(0x165)](_0x449d32[_0x15d275(0x16b)](_0x43d3ed,_0x5ab9e6),[_0x449d32[_0x15d275(0x1bc)]]),_0x4a1af6={};if(_0x18c086){const _0x4bb864=_0x22084a['findIndex'](_0x3f716f=>_0x3f716f===_0x15d275(0x18d)||_0x3f716f==='-c'||_0x3f716f[_0x15d275(0x1b2)](_0x15d275(0x1d7)));_0x22084a[_0x15d275(0x186)](_0x4bb864,_0x22084a[_0x4bb864]['startsWith'](_0x449d32['lSvPF'])?0x1:0x2);}const _0x3749fd={};return _0x3749fd[_0x15d275(0x1bd)]=_0x19131a,_0x3749fd[_0x15d275(0x158)]=_0x4a1af6,_0x3749fd;},handleO11yRerun=_0x487097=>{const _0x4478a0=a35_0x4c303c,_0x16fbb0={};_0x16fbb0['zDCog']=function(_0x49e34c,_0x3dd374){return _0x49e34c!==_0x3dd374;},_0x16fbb0['ewRMC']=_0x4478a0(0x1d2),_0x16fbb0[_0x4478a0(0x18e)]=_0x4478a0(0x1b8);const _0x2b353f=_0x16fbb0,_0x22d877=helper[_0x4478a0(0x184)](process['env'][_0x4478a0(0x169)]);if(_0x22d877){const _0x50391e=process[_0x4478a0(0x170)]['BROWSERSTACK_RERUN_TESTS'],_0x4bfd05=[];if(_0x2b353f[_0x4478a0(0x180)](_0x50391e,_0x2b353f['ewRMC'])&&!helper[_0x4478a0(0x16a)](_0x50391e)){_0x50391e[_0x4478a0(0x162)](',')[_0x4478a0(0x1c5)](_0xb85f7=>{const _0x57ab0a=_0x4478a0;_0x4bfd05[_0x57ab0a(0x18a)]('('+_0xb85f7[_0x57ab0a(0x15a)]()+')');});const _0xa1f047='^'+_0x4bfd05['join']('|')+'$';_0x487097[_0x4478a0(0x18a)](_0x2b353f[_0x4478a0(0x18e)],_0xa1f047);}}},spawnOriginalProcess=_0x129008=>{const _0x1498a4=a35_0x4c303c,_0x2aa95f={'puRnl':function(_0x4335ac,_0x2e67c5,_0x37fb08,_0x5b763c){return _0x4335ac(_0x2e67c5,_0x37fb08,_0x5b763c);},'kAWpA':_0x1498a4(0x168),'WrNeH':'playwright','BvGTC':function(_0x579bdc,_0x995be9){return _0x579bdc===_0x995be9;},'TXnwP':_0x1498a4(0x143),'wNYZt':_0x1498a4(0x17e)};_0x2aa95f['puRnl'](spawn,_0x2aa95f[_0x1498a4(0x1d0)],[_0x2aa95f[_0x1498a4(0x18f)],..._0x129008[_0x1498a4(0x1b0)](0x1)],{'shell':_0x2aa95f[_0x1498a4(0x14e)](process[_0x1498a4(0x174)],_0x2aa95f[_0x1498a4(0x1dd)]),'stdio':_0x2aa95f['wNYZt'],'cwd':process['cwd']()});},isTestCommand=(_0x4c2317,_0x39a1a6)=>{const _0x5d59d8=a35_0x4c303c,_0x2b5fe3={};_0x2b5fe3[_0x5d59d8(0x1ca)]=function(_0x4b15c6,_0x30c285){return _0x4b15c6>_0x30c285;},_0x2b5fe3[_0x5d59d8(0x1b9)]=function(_0x18ae9b,_0x315023){return _0x18ae9b===_0x315023;},_0x2b5fe3[_0x5d59d8(0x193)]='test';const _0x54fceb=_0x2b5fe3;if(_0x54fceb['cnCzK'](_0x39a1a6[_0x5d59d8(0x1a2)],0x1)&&_0x54fceb[_0x5d59d8(0x1b9)](_0x39a1a6[0x1],_0x54fceb[_0x5d59d8(0x193)]))return!![];return![];};function a35_0x14ac(){const _0xb8e04=['MODULE','NoScH','push','skipSessionName','sKrNs','--config','vlIzy','WrNeH','nfxpp','stop','playwright-browserstack-sdk.config.js','nqrLF','Edeup','../../helpers/test-observability/utils','playwright','BROWSERSTACK_AUTOMATION','finalExecution','61718oFfRXF','./reporter/pwUtils','5161564pUMPzI','EDiqy','accessibilityOptions','472jOPWvF','logLevel','qTSGk','../../helpers/BrowserStackSetup','length','argv','getProxyUrl','../../helpers/helper','ialLe','OXVsL','existsSync','testObservability','--disable-test-observability','parse','BROWSERSTACK_TEST_OBSERVABILITY','TQJEi','ZpqIB','../../helpers/testhub/utils','slice','11QOjbWy','startsWith','BROWSERSTACK_SETUP_CONFIG_PATH','ExrCa','cdntd','PLAYWRIGHT','automation','--grep','uUvaZ','writeFileSync','concat','gzCwF','path','lZZpL','join','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','exitCode','6SzfhXc','../../helpers/utilities','pRXgb','map','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','markSDKSetupComplete','6251445aPtlFn','48699ImwPKK','cnCzK','--disable-browserstack-automation','IbKIR','cliConfig','YwmOh','ROJbw','kAWpA','accessibility','null','includes','uvrzl','Deleting\x20','Playwright\x20process\x20exited\x20with\x20code\x20','--config=','launchBuild','readFileSync','stringify','pBzZF','BrowserStack\x20config\x20file\x20not\x20found.','TXnwP','4178167LuXjZE','indexOf','48ojYiJx','test','win32','assign','AyzCz','Nlbdh','dirname','initialize','OmJrb','unlinkSync','resolve','1530498LFAPsq','close','BvGTC','getPackageType','Updated\x20config\x20file\x20name\x20to\x20-\x20','BROWSERSTACK_PW_CONFIG_DIR','filterBrowserstackArgs','sPtUx','SIRHD','Error\x20in\x20deleting\x20playwright\x20results','tErog','child_process','config','filter','trim','cwd','testContextOptions','errorMessage','34620990lbyRnN','info','./accessibility-helper','jFbLN','split','Error\x20in\x20getting\x20funnel\x20data\x20results','tpUiB','nestedKeyValue','FMcMN','\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();','npx','BROWSERSTACK_RERUN','isUndefined','qnyWw','get','playwright-browserstack-sdk.config.cjs','browserstackSetupConfig.json','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','env','kWctI','getConfigPath','isTypescriptProject','platform','true','BROWSERSTACK_TEST_ACCESSIBILITY_YML','RVGFg','fnaCV','hFHWJ','requirePWModule','homedir','nuFin','serializeToYamlString','inherit','lCGXX','zDCog','SUUzS','skipSessionStatus','Error\x20in\x20closing\x20playwright','isTrue','debug','splice','../../helpers/test-observability/error-handler'];a35_0x14ac=function(){return _0xb8e04;};return a35_0x14ac();}async function run(_0x2733d4,_0x54f324){const _0x15bfad=a35_0x4c303c,_0x25a3e1={'OXVsL':'.browserstack','nuFin':'pw_result.json','FMcMN':function(_0x58db1f,_0x38c5ad){return _0x58db1f+_0x38c5ad;},'EDiqy':_0x15bfad(0x163),'NVbnt':'6|7|8|0|5|3|4|1|2','OmJrb':function(_0x20bdef){return _0x20bdef();},'AyzCz':function(_0x2b2173,_0x4495cb){return _0x2b2173+_0x4495cb;},'TQJEi':_0x15bfad(0x183),'jFbLN':_0x15bfad(0x1cb),'Edeup':'false','MYvhh':_0x15bfad(0x1aa),'ialLe':function(_0x15288b,_0x514ebd){return _0x15288b>=_0x514ebd;},'ExrCa':function(_0x55ac93,_0x1578da){return _0x55ac93+_0x1578da;},'sPtUx':_0x15bfad(0x155),'aFPuT':function(_0x373ed8,_0xa565bc,_0x589874){return _0x373ed8(_0xa565bc,_0x589874);},'cdntd':function(_0xc5c5dc,_0x24bab2){return _0xc5c5dc(_0x24bab2);},'IbKIR':_0x15bfad(0x1dc),'tpUiB':_0x15bfad(0x1b7),'qyavc':function(_0x225a56,_0x34affd){return _0x225a56!=_0x34affd;},'lZZpL':function(_0x21cbd0,_0x35466d){return _0x21cbd0(_0x35466d);},'qTSGk':function(_0x2c9a6b,_0x545eae){return _0x2c9a6b===_0x545eae;},'pBzZF':_0x15bfad(0x175),'uvrzl':_0x15bfad(0x16e),'lCGXX':_0x15bfad(0x16d),'hFHWJ':_0x15bfad(0x192),'pRXgb':function(_0x246100,_0x5c46c9){return _0x246100-_0x5c46c9;},'YwmOh':function(_0x59becc,_0x3d51ab){return _0x59becc+_0x3d51ab;},'ZpqIB':_0x15bfad(0x150),'ROJbw':function(_0x29e76f,_0x460342){return _0x29e76f>_0x460342;},'suODS':function(_0x596f28,_0x1e782a){return _0x596f28+_0x1e782a;},'Nlbdh':function(_0x3d0fd5,_0x5617ed,_0x25b218,_0x10b5ea){return _0x3d0fd5(_0x5617ed,_0x25b218,_0x10b5ea);},'sKrNs':_0x15bfad(0x168),'RVGFg':_0x15bfad(0x196),'SUUzS':_0x15bfad(0x1e1),'SIRHD':_0x15bfad(0x18d),'NoScH':function(_0x5135ab,_0x40822c){return _0x5135ab===_0x40822c;},'fnaCV':'win32','tErog':_0x15bfad(0x17e),'kWctI':_0x15bfad(0x14d)};!helper['isFalse'](process[_0x15bfad(0x170)][_0x15bfad(0x197)])&&(process[_0x15bfad(0x170)][_0x15bfad(0x197)]=!![]);process[_0x15bfad(0x1a3)][_0x15bfad(0x1d3)](_0x25a3e1[_0x15bfad(0x161)])&&(process[_0x15bfad(0x170)]['BROWSERSTACK_AUTOMATION']=_0x25a3e1[_0x15bfad(0x194)],_0x54f324=_0x54f324[_0x15bfad(0x159)](_0xc29cc7=>_0xc29cc7!==_0x15bfad(0x1cb)));const _0x47f9c1=_0x54f324[_0x15bfad(0x1df)](_0x25a3e1['MYvhh']);_0x25a3e1[_0x15bfad(0x1a6)](_0x47f9c1,0x0)&&(process[_0x15bfad(0x170)][_0x15bfad(0x1ac)]=_0x25a3e1[_0x15bfad(0x194)],_0x54f324=_0x54f324[_0x15bfad(0x159)](_0xf02b18=>_0xf02b18!=='--disable-test-observability'));try{const _0x399ca4=path['join'](helper[_0x15bfad(0x17b)](),_0x25a3e1[_0x15bfad(0x1a7)],_0x25a3e1[_0x15bfad(0x17c)]);fs[_0x15bfad(0x1a8)](_0x399ca4)&&fs[_0x15bfad(0x14a)](_0x399ca4);}catch(_0x3ba4cd){logger[_0x15bfad(0x185)](_0x25a3e1[_0x15bfad(0x1b4)](_0x25a3e1[_0x15bfad(0x153)],_0x3ba4cd));}if(!_0x25a3e1['aFPuT'](isTestCommand,_0x2733d4,_0x54f324)){_0x25a3e1[_0x15bfad(0x1b5)](spawnOriginalProcess,_0x54f324);return;}const _0x4320b1=new BrowserStackSetup(_0x2733d4,FRAMEWORKS[_0x15bfad(0x1b6)]);if(!_0x4320b1[_0x15bfad(0x158)]){logger['error'](_0x25a3e1[_0x15bfad(0x1cc)]);return;}await _0x4320b1[_0x15bfad(0x148)]();!helper[_0x15bfad(0x16a)](_0x4320b1['cliConfig'])&&_0x4320b1[_0x15bfad(0x1cd)]['has'](_0x25a3e1[_0x15bfad(0x164)])&&(process[_0x15bfad(0x170)][_0x15bfad(0x197)]=_0x4320b1[_0x15bfad(0x1cd)][_0x15bfad(0x16c)](_0x25a3e1[_0x15bfad(0x164)])||!![]);_0x25a3e1['qyavc'](_0x4320b1[_0x15bfad(0x158)]['testObservability'],null)&&!helper['isTrue'](process[_0x15bfad(0x170)][_0x15bfad(0x1ac)])&&(process['env'][_0x15bfad(0x1ac)]=process[_0x15bfad(0x170)][_0x15bfad(0x1ac)]||_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x1a9)]);const _0x12b2b6=!helper['isFalse'](process[_0x15bfad(0x170)][_0x15bfad(0x1ac)]);let _0x261101=![];_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x1d1)]&&(_0x261101=!![],process[_0x15bfad(0x170)][_0x15bfad(0x176)]=_0x4320b1['config'][_0x15bfad(0x1d1)]);_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x19d)]&&(process[_0x15bfad(0x170)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x15bfad(0x1da)](_0x4320b1[_0x15bfad(0x158)]['accessibilityOptions']));const _0x4a8f28=_0x54f324[_0x15bfad(0x1bb)](),_0x2c02d7=await _0x25a3e1['aFPuT'](getUserPlaywrightConfig,_0x2733d4,_0x54f324);if(helper['isUndefined'](_0x2c02d7)){_0x25a3e1[_0x15bfad(0x1be)](spawnOriginalProcess,_0x4a8f28);return;}const _0xc21368=_0x2c02d7[_0x15bfad(0x1bd)]?path['dirname'](_0x2c02d7[_0x15bfad(0x1bd)]):process[_0x15bfad(0x15b)]();process['env'][_0x15bfad(0x151)]=_0xc21368,await TestHubHandler[_0x15bfad(0x1d8)](FRAMEWORKS['PLAYWRIGHT'],_0x4320b1);_0x12b2b6&&_0x25a3e1['lZZpL'](handleO11yRerun,_0x54f324);let _0x1fca31=_0x25a3e1[_0x15bfad(0x1a0)](process[_0x15bfad(0x170)][_0x15bfad(0x176)],_0x25a3e1[_0x15bfad(0x1db)]);_0x1fca31=_0x1fca31||_0x25a3e1['cdntd'](checkAccessibilityPlatformConfig,_0x4320b1[_0x15bfad(0x158)]),process[_0x15bfad(0x170)][_0x15bfad(0x176)]=_0x1fca31;_0x1fca31&&_0x25a3e1[_0x15bfad(0x1b5)](setAccessibilityCapabilities,_0x4320b1[_0x15bfad(0x158)]);const _0x50a211=path[_0x15bfad(0x1bf)](_0x2c02d7[_0x15bfad(0x1bd)]?path[_0x15bfad(0x147)](_0x2c02d7[_0x15bfad(0x1bd)]):process[_0x15bfad(0x15b)](),_0x25a3e1[_0x15bfad(0x1d4)]);fs[_0x15bfad(0x1ba)](_0x50a211,helper[_0x15bfad(0x17d)](_0x4320b1['config'])),process[_0x15bfad(0x170)][_0x15bfad(0x1b3)]=_0x50a211,helper['clearTempPWConfig']();let _0x411825='';_0x25a3e1['qTSGk'](helper[_0x15bfad(0x14f)](),constants['PACKAGE_TYPE'][_0x15bfad(0x188)])?_0x411825=_0x25a3e1[_0x15bfad(0x17f)]:_0x411825=_0x25a3e1[_0x15bfad(0x179)];let _0x51c2be='';if(helper[_0x15bfad(0x173)](_0x2c02d7[_0x15bfad(0x1bd)])){_0x51c2be=_0x15bfad(0x1c6);const _0x4da512=_0x411825['split']('.');_0x4da512[_0x25a3e1[_0x15bfad(0x1c4)](_0x4da512[_0x15bfad(0x1a2)],0x1)]='ts',_0x411825=_0x4da512[_0x15bfad(0x1bf)]('.'),logger[_0x15bfad(0x185)](_0x25a3e1[_0x15bfad(0x1ce)](_0x25a3e1[_0x15bfad(0x1ae)],_0x411825));}else _0x51c2be=_0x15bfad(0x1c0);const _0x56a215=path['join'](_0x2c02d7[_0x15bfad(0x1bd)]?path[_0x15bfad(0x147)](_0x2c02d7[_0x15bfad(0x1bd)]):process[_0x15bfad(0x15b)](),_0x411825);let _0x2f65ad=_0x2c02d7[_0x15bfad(0x1bd)]?_0x2c02d7[_0x15bfad(0x1bd)]:'';_0x2f65ad=_0x25a3e1[_0x15bfad(0x1cf)](_0x2f65ad['length'],0x0)?path[_0x15bfad(0x14b)](_0x2f65ad):'',process['env']['USER_CONFIG_DETAILS_PATH']=_0x2f65ad;const _0x48e356=helper[_0x15bfad(0x1a4)](_0x4320b1[_0x15bfad(0x158)]);_0x48e356&&(_0x51c2be=_0x25a3e1['suODS'](_0x15bfad(0x16f)+_0x48e356+_0x15bfad(0x167),_0x51c2be));helper[_0x15bfad(0x152)]({},_0x54f324),fs[_0x15bfad(0x1ba)](_0x56a215,_0x51c2be),helper[_0x15bfad(0x1c7)]();const _0x254e0c=_0x25a3e1[_0x15bfad(0x146)](spawn,_0x25a3e1[_0x15bfad(0x18c)],[_0x25a3e1[_0x15bfad(0x177)],_0x25a3e1[_0x15bfad(0x181)],_0x25a3e1[_0x15bfad(0x154)],_0x56a215,..._0x54f324[_0x15bfad(0x1b0)](0x2)],{'shell':_0x25a3e1[_0x15bfad(0x189)](process['platform'],_0x25a3e1[_0x15bfad(0x178)]),'stdio':_0x25a3e1[_0x15bfad(0x156)],'cwd':process[_0x15bfad(0x15b)](),'env':Object[_0x15bfad(0x144)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x15bfad(0x172)](_0x2733d4),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4320b1['config'][_0x15bfad(0x15c)][_0x15bfad(0x182)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x15c)][_0x15bfad(0x18b)],'BROWSERSTACK_LOG_LEVEL':_0x4320b1['config'][_0x15bfad(0x19f)]})}),_0xbf3880=()=>{const _0x39a3bf=_0x15bfad;try{const _0x3c30ee=path[_0x39a3bf(0x1bf)](helper[_0x39a3bf(0x17b)](),_0x25a3e1[_0x39a3bf(0x1a7)],_0x25a3e1['nuFin']);if(fs[_0x39a3bf(0x1a8)](_0x3c30ee)){let _0x23dbc3=fs[_0x39a3bf(0x1d9)](_0x3c30ee);_0x23dbc3=JSON[_0x39a3bf(0x1ab)](_0x23dbc3),_0x4320b1[_0x39a3bf(0x15d)]=_0x23dbc3,fs[_0x39a3bf(0x14a)](_0x3c30ee);}}catch(_0x53c463){logger[_0x39a3bf(0x185)](_0x25a3e1[_0x39a3bf(0x166)](_0x25a3e1[_0x39a3bf(0x19c)],_0x53c463));}};_0x254e0c['on'](_0x25a3e1[_0x15bfad(0x171)],async _0x256a1b=>{const _0x1bada6=_0x15bfad;try{const _0x15e120=_0x25a3e1['NVbnt']['split']('|');let _0x13c7a7=0x0;while(!![]){switch(_0x15e120[_0x13c7a7++]){case'0':process[_0x1bada6(0x1c1)]=_0x256a1b;continue;case'1':logger[_0x1bada6(0x185)](_0x1bada6(0x1d5)+_0x50a211);continue;case'2':fs[_0x1bada6(0x14a)](_0x50a211);continue;case'3':logger[_0x1bada6(0x15f)](_0x1bada6(0x1d5)+_0x56a215);continue;case'4':fs[_0x1bada6(0x14a)](_0x56a215);continue;case'5':logger[_0x1bada6(0x185)](_0x1bada6(0x1d6)+_0x256a1b);continue;case'6':_0x25a3e1[_0x1bada6(0x149)](_0xbf3880);continue;case'7':await TestHubHandler[_0x1bada6(0x191)]();continue;case'8':await utilities[_0x1bada6(0x198)](_0x4320b1);continue;}break;}}catch(_0x54b360){logger[_0x1bada6(0x185)](_0x25a3e1[_0x1bada6(0x145)](_0x25a3e1[_0x1bada6(0x1ad)],_0x54b360));}});}function a35_0x46f3(_0x3f8d7a,_0x54f599){const _0x14ac72=a35_0x14ac();return a35_0x46f3=function(_0x46f368,_0x1a9cab){_0x46f368=_0x46f368-0x143;let _0x1c809f=_0x14ac72[_0x46f368];return _0x1c809f;},a35_0x46f3(_0x3f8d7a,_0x54f599);}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x3f4e88=a36_0x3230;function a36_0x3230(_0x489452,_0x1c6106){const _0x2d9a71=a36_0x2d9a();return a36_0x3230=function(_0x32308a,_0x3aaf62){_0x32308a=_0x32308a-0x148;let _0x259d0e=_0x2d9a71[_0x32308a];return _0x259d0e;},a36_0x3230(_0x489452,_0x1c6106);}(function(_0x3439c4,_0x5c7046){const _0x8b78c4=a36_0x3230,_0x50f00a=_0x3439c4();while(!![]){try{const _0x2ea21e=-parseInt(_0x8b78c4(0x155))/0x1*(parseInt(_0x8b78c4(0x171))/0x2)+-parseInt(_0x8b78c4(0x174))/0x3*(-parseInt(_0x8b78c4(0x14f))/0x4)+-parseInt(_0x8b78c4(0x157))/0x5*(-parseInt(_0x8b78c4(0x16f))/0x6)+parseInt(_0x8b78c4(0x154))/0x7*(parseInt(_0x8b78c4(0x177))/0x8)+parseInt(_0x8b78c4(0x159))/0x9*(-parseInt(_0x8b78c4(0x15f))/0xa)+parseInt(_0x8b78c4(0x172))/0xb*(-parseInt(_0x8b78c4(0x14d))/0xc)+parseInt(_0x8b78c4(0x14e))/0xd;if(_0x2ea21e===_0x5c7046)break;else _0x50f00a['push'](_0x50f00a['shift']());}catch(_0x5bc417){_0x50f00a['push'](_0x50f00a['shift']());}}}(a36_0x2d9a,0xd3be1));const util=require(a36_0x3f4e88(0x149)),child_process=require(a36_0x3f4e88(0x178)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a36_0x3f4e88(0x14a)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a36_0x3f4e88(0x150)),logger=require(a36_0x3f4e88(0x14c))[a36_0x3f4e88(0x175)];module[a36_0x3f4e88(0x160)]=async function(_0x1fb8f0){const _0x94038b=a36_0x3f4e88,_0x1e1dc2={'GMhgA':function(_0x2579c0,_0x391207){return _0x2579c0(_0x391207);},'isYck':function(_0x36b88c){return _0x36b88c();},'xZSjH':_0x94038b(0x152),'WNHuP':function(_0x5275b5){return _0x5275b5();},'eAHQa':'Running\x20existing\x20global\x20setup','udqRy':function(_0x24062e){return _0x24062e();},'SUEXD':function(_0x44955b,_0x323032){return _0x44955b(_0x323032);},'BPLsY':function(_0xff429,_0x193d1d){return _0xff429>=_0x193d1d;},'BfIEO':_0x94038b(0x167),'USrjG':function(_0x3bc94c,_0x167666,_0x2ca540){return _0x3bc94c(_0x167666,_0x2ca540);},'GXkwf':function(_0x34718e,_0x311ceb){return _0x34718e!==_0x311ceb;},'txHgF':'function','anYvD':_0x94038b(0x168)},_0x16c464=child_process[_0x94038b(0x179)];if(helper[_0x94038b(0x151)]())try{_0x1e1dc2[_0x94038b(0x15a)](mockIsWorkerRedundant);}catch(_0x18c0b5){logger[_0x94038b(0x170)](_0x94038b(0x16b)+util[_0x94038b(0x16c)](_0x18c0b5));}child_process[_0x94038b(0x179)]=function(){const _0x6988f0=_0x94038b;return _0x1e1dc2[_0x6988f0(0x16d)](debug,_0x6988f0(0x158)+arguments[0x0]),arguments[0x0][_0x6988f0(0x14b)](_0x1e1dc2[_0x6988f0(0x16e)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x1e1dc2[_0x6988f0(0x165)]):logger[_0x6988f0(0x15e)](_0x6988f0(0x166)+_0x1e1dc2[_0x6988f0(0x16e)](getForkProcessPath)+_0x6988f0(0x16a)),_0x16c464[_0x6988f0(0x169)](null,arguments);};if(process['env'][_0x94038b(0x15b)]){_0x1e1dc2[_0x94038b(0x16d)](debug,_0x1e1dc2[_0x94038b(0x17a)]);try{const {loadGlobalHook:_0x4caf2d}=helper['requirePWModule']['apply'](null,_0x1e1dc2[_0x94038b(0x176)](getLoadUtilsPath)),_0x399f5e=_0x1e1dc2[_0x94038b(0x15c)](getFrameworkVersion,FRAMEWORKS[_0x94038b(0x164)]);let _0x3e7b41=_0x1fb8f0;if(_0x1e1dc2[_0x94038b(0x156)](helper[_0x94038b(0x148)](_0x399f5e,_0x1e1dc2[_0x94038b(0x161)]),0x0)){const _0x28f9d2={};_0x28f9d2[_0x94038b(0x163)]=_0x1fb8f0,_0x3e7b41=_0x28f9d2;}const _0x66456d=await _0x1e1dc2['USrjG'](_0x4caf2d,_0x3e7b41,process[_0x94038b(0x15d)][_0x94038b(0x15b)]);if(_0x1e1dc2[_0x94038b(0x153)](typeof _0x66456d,_0x1e1dc2['txHgF']))throw new Error(_0x1e1dc2['anYvD']);return _0x66456d[_0x94038b(0x169)](null,arguments);}catch(_0x45f805){_0x1e1dc2['SUEXD'](debug,_0x94038b(0x162)+_0x45f805[_0x94038b(0x173)]());}}};function a36_0x2d9a(){const _0x691971=['1531ycwQEY','BPLsY','19945wHMxzk','Call\x20to\x20child\x20fork\x20with\x20args\x20','2507949bGnyyo','WNHuP','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','SUEXD','env','error','50RRnBKS','exports','BfIEO','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','config','PLAYWRIGHT','xZSjH','Path\x20','1.33.0','Not\x20able\x20to\x20import\x20globalSetup','apply','\x20is\x20not\x20found','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','format','GMhgA','isYck','2244puNNDR','debug','38qereNa','30140QpbLNR','toString','1980447GCKigb','winstonLogger','udqRy','24HCARGd','child_process','fork','eAHQa','compareVersions','util','../../helpers/test-observability/utils','includes','../../helpers/logger','6108yXQoXq','7922824JGuBUj','8VoFtDt','./patches','isHandlePWErrorSet','./mock-process.js','GXkwf','613011HrZvSi'];a36_0x2d9a=function(){return _0x691971;};return a36_0x2d9a();}
|