browserstack-node-sdk 1.34.18 → 1.34.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x39695f=a29_0x47f5;(function(_0x169c19,_0x1dc90d){const _0x304764=a29_0x47f5,_0x2f354e=_0x169c19();while(!![]){try{const _0x2e68e6=parseInt(_0x304764(0x1f9))/0x1+-parseInt(_0x304764(0x187))/0x2*(-parseInt(_0x304764(0x1eb))/0x3)+-parseInt(_0x304764(0x1d9))/0x4+-parseInt(_0x304764(0x1d8))/0x5+parseInt(_0x304764(0x1b0))/0x6+-parseInt(_0x304764(0x1c1))/0x7*(-parseInt(_0x304764(0x1b4))/0x8)+-parseInt(_0x304764(0x1ec))/0x9*(parseInt(_0x304764(0x1bf))/0xa);if(_0x2e68e6===_0x1dc90d)break;else _0x2f354e['push'](_0x2f354e['shift']());}catch(_0x2d76e9){_0x2f354e['push'](_0x2f354e['shift']());}}}(a29_0xc881,0x6abad));function a29_0xc881(){const _0x479d79=['tOwEG','OCVDC','firefoxOptions_','forEach','originalBuilder','2959368adZfBS','ieOptions_','OVWEZ','NMHUv','8mAriTt','RiBnI','../../../helpers/globals','VHkvo','Builder','moz:firefoxOptions','url_','updeE','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','setGlobal','edgeOptions','130ErAWLL','set','2146522niNfXt','rdoLe','getRequestOptions','quitCount_','RuxNe','oypGb','logLevel','chromeOptions_','browserstackAgentObservability','debug','capability','../../../helpers/logger','__driver','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','setCapabilities','browserStackLogLevel','MLDxT','ExhVe','caps_','proxyUrl','isBrowserstackInfra','storeOptimalHubUrl','oAPZr','1009000ijyyCA','67796QZJjEb','oeBQp','https://','then','chromeOptions','../../../bin/utils/constants','keys','path','/session','capabilities_','ms:edgeOptions','info','edgeOptions_','./helpers/patchHelper','optimalHubUrl','zFoKT','requireSeleniumWebdriver','overrideGet','121497VCTaFr','956673SKSiSg','getAccessibilityResults','BCGFZ','New\x20hub\x20url\x20set\x20to\x20','YbreC','DLTSs','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','getHubUrl','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','__driversArray','zyChz','zTQQS','newHubUrl','711414FdeexJ','proxy_','safariOptions_','FnaBD','requireHttpClient','/wd/hub','proxySettings','isPacProxy','build','Hub\x20url\x20set\x20to\x20','26BUgRDd','Proxy\x20set\x20to\x20','Znijo','../../../hubAllocationMethods','nXzAI','1|0|3|2|4|5','get','isUndefined','setServer','se:ieOptions','send','PjmnB','CAPABILITY_KEY','ezqAN','LsHwv','../../../helpers/accessibility-automation/helper','mergeDeep','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','Modifying\x20webdriver\x20builder','HttpClient','split','error','getAccessibilityResultsSummary','GBmtl','push','isAccessibilityPlatform','session_','firefoxOptions','XXyjq','global','object','safari.options','agent_','../accessibility-automation/helper','__drivers','../../../helpers/patchHelpers'];a29_0xc881=function(){return _0x479d79;};return a29_0xc881();}const logger=require(a29_0x39695f(0x1cc))['winstonLogger'],helper=require('../../../helpers/helper'),constants=require(a29_0x39695f(0x1de)),hubAllocator=require(a29_0x39695f(0x18a)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x39695f(0x1aa)),{setAccessibilityCapabilities,setExtension}=require(a29_0x39695f(0x1a8)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x39695f(0x196)),globals=require(a29_0x39695f(0x1b6)),{overrideExecute}=require(a29_0x39695f(0x1e6)),modify=(_0x37a0c4,_0xe473b8=null,_0x1cf702=![])=>{const _0x4f7b5f=a29_0x39695f,_0x44afa0={'bwwEz':function(_0x1d9591,_0x375546){return _0x1d9591!==_0x375546;},'RiBnI':_0x4f7b5f(0x1e1),'MLDxT':function(_0x4ba27d,_0x5d4d44){return _0x4ba27d!==_0x5d4d44;},'zTQQS':function(_0x1d1929,_0x4aa0e4){return _0x1d1929+_0x4aa0e4;},'oypGb':_0x4f7b5f(0x1db),'tOwEG':_0x4f7b5f(0x1fe),'nzldr':'goog:chromeOptions','Znijo':_0x4f7b5f(0x1dd),'ohzsi':_0x4f7b5f(0x1e3),'ggFGz':_0x4f7b5f(0x1be),'FnaBD':_0x4f7b5f(0x1b9),'YbreC':_0x4f7b5f(0x1a2),'VHkvo':_0x4f7b5f(0x1a6),'OVWEZ':_0x4f7b5f(0x190),'RuxNe':'ieOptions','updeE':function(_0x2b20cf,_0x48f8e4){return _0x2b20cf===_0x48f8e4;},'NMHUv':_0x4f7b5f(0x1a5),'ezqAN':'Setting\x20Browserstack\x20capabilities','XXyjq':function(_0xbc723e,_0x40087a,_0x125319){return _0xbc723e(_0x40087a,_0x125319);},'DLTSs':function(_0x3ceb5e,_0x1f4d5b){return _0x3ceb5e(_0x1f4d5b);},'GBmtl':function(_0x99bc68,_0x1525d9,_0x1e7a03){return _0x99bc68(_0x1525d9,_0x1e7a03);},'zFoKT':_0x4f7b5f(0x1e7),'nXzAI':_0x4f7b5f(0x1f4),'ExhVe':_0x4f7b5f(0x18c),'knTMu':function(_0x542a45){return _0x542a45();},'zyChz':_0x4f7b5f(0x1a0),'TbKjC':_0x4f7b5f(0x198),'ujtLa':function(_0x2bd354,_0x15af74){return _0x2bd354(_0x15af74);},'BCGFZ':function(_0x42004e,_0x1ef8a3){return _0x42004e!==_0x1ef8a3;},'CZZZf':function(_0x1d19c8,_0x3f3332){return _0x1d19c8!==_0x3f3332;},'OCVDC':_0x4f7b5f(0x1ce),'mZdoP':_0x4f7b5f(0x199)},_0x4fd516=helper[_0x4f7b5f(0x1fd)]();let _0x3c8b37;try{_0x3c8b37=helper[_0x4f7b5f(0x1e9)](),_0x3c8b37[_0x4f7b5f(0x1af)]&&(_0x3c8b37['Builder']=_0x3c8b37[_0x4f7b5f(0x1af)]);}catch(_0x5d151c){return;}if(helper['isBrowserstackInfra']()){const _0x3080d0={};_0x3080d0[_0x4f7b5f(0x1c7)]=_0x37a0c4[_0x4f7b5f(0x1d0)],helper['setLogLevel'](_0x3080d0,new Map(),new Map()),logger[_0x4f7b5f(0x1e4)](_0x44afa0[_0x4f7b5f(0x1ac)]),logger[_0x4f7b5f(0x1ca)](_0x44afa0['mZdoP']);}class _0x39ac13 extends _0x4fd516[_0x4f7b5f(0x19a)]{['send'](_0x3780e7){const _0x4af57b=_0x4f7b5f;if(_0x44afa0['bwwEz'](_0x3780e7[_0x4af57b(0x1e0)],_0x44afa0[_0x4af57b(0x1b5)])&&_0x44afa0[_0x4af57b(0x1d1)](global['newHubUrl'],''))try{global['newHubUrl']=_0x44afa0[_0x4af57b(0x1f7)](_0x44afa0[_0x4af57b(0x1f7)](_0x44afa0[_0x4af57b(0x1c6)],global[_0x4af57b(0x1f8)]),_0x44afa0[_0x4af57b(0x1ab)]),this['options_']=hubAllocator[_0x4af57b(0x1c3)](global[_0x4af57b(0x1f8)]),logger[_0x4af57b(0x1ca)](_0x4af57b(0x1ef)+global[_0x4af57b(0x1f8)]),global[_0x4af57b(0x1f8)]='';}catch(_0x70a58d){logger[_0x4af57b(0x19c)](_0x70a58d);}return super[_0x4af57b(0x191)](_0x3780e7);}}class _0x568be7 extends _0x3c8b37[_0x4f7b5f(0x1b8)]{[_0x4f7b5f(0x18f)](){const _0x58816e=_0x4f7b5f;return this[_0x58816e(0x1ba)]=helper[_0x58816e(0x1f3)](_0x37a0c4),logger[_0x58816e(0x1ca)](_0x58816e(0x186)+this['url_']),this;}['__setBrowserOptions'](_0x4df353){const _0xd9254c=_0x4f7b5f;let _0x246e04={};for(const _0x22f7c9 in _0x4df353){switch(_0x22f7c9){case _0x44afa0['nzldr']:case _0x44afa0[_0xd9254c(0x189)]:this[_0xd9254c(0x1c8)]&&(_0x246e04=this['chromeOptions_'][_0xd9254c(0x18d)](this[_0xd9254c(0x1c8)]['CAPABILITY_KEY'])||{},this[_0xd9254c(0x1c8)]['set'](this[_0xd9254c(0x1c8)][_0xd9254c(0x193)],helper[_0xd9254c(0x197)](_0x246e04,_0x4df353[_0x22f7c9])));break;case _0x44afa0['ohzsi']:case _0x44afa0['ggFGz']:this[_0xd9254c(0x1e5)]&&(_0x246e04=this[_0xd9254c(0x1e5)][_0xd9254c(0x18d)](this[_0xd9254c(0x1e5)][_0xd9254c(0x193)])||{},this[_0xd9254c(0x1e5)][_0xd9254c(0x1c0)](this[_0xd9254c(0x1e5)][_0xd9254c(0x193)],helper[_0xd9254c(0x197)](_0x246e04,_0x4df353[_0x22f7c9])));break;case _0x44afa0[_0xd9254c(0x1fc)]:case _0x44afa0[_0xd9254c(0x1f0)]:this[_0xd9254c(0x1ad)]&&(_0x246e04=this[_0xd9254c(0x1ad)][_0xd9254c(0x18d)](this[_0xd9254c(0x1ad)][_0xd9254c(0x193)])||{},this[_0xd9254c(0x1ad)][_0xd9254c(0x1c0)](this[_0xd9254c(0x1ad)][_0xd9254c(0x193)],helper[_0xd9254c(0x197)](_0x246e04,_0x4df353[_0x22f7c9])));break;case _0x44afa0[_0xd9254c(0x1b7)]:this[_0xd9254c(0x1fb)]&&(_0x246e04=this[_0xd9254c(0x1fb)]['get'](this[_0xd9254c(0x1fb)]['CAPABILITY_KEY'])||{},this[_0xd9254c(0x1fb)][_0xd9254c(0x1c0)](this['safariOptions_'][_0xd9254c(0x193)],helper[_0xd9254c(0x197)](_0x246e04,_0x4df353[_0x22f7c9])));break;case _0x44afa0[_0xd9254c(0x1b2)]:case _0x44afa0[_0xd9254c(0x1c5)]:this['ieOptions_']&&(_0x246e04=this[_0xd9254c(0x1b1)]['get'](this[_0xd9254c(0x1b1)][_0xd9254c(0x193)])||{},this[_0xd9254c(0x1b1)][_0xd9254c(0x1c0)](this[_0xd9254c(0x1b1)][_0xd9254c(0x193)],helper[_0xd9254c(0x197)](_0x246e04,_0x4df353[_0x22f7c9])));break;}}}[_0x4f7b5f(0x1cf)](){const _0x16e466=_0x4f7b5f,_0x501685={'PjmnB':function(_0x38d104,_0xc4e50e){const _0x2e78ca=a29_0x47f5;return _0x44afa0[_0x2e78ca(0x1bb)](_0x38d104,_0xc4e50e);},'lhalo':_0x44afa0[_0x16e466(0x1b3)]};return logger[_0x16e466(0x1ca)](_0x44afa0[_0x16e466(0x194)]),this['__setBrowserOptions'](_0x37a0c4[_0x16e466(0x1cb)]),Object[_0x16e466(0x1df)](_0x37a0c4[_0x16e466(0x1cb)])[_0x16e466(0x1ae)](_0x2f9acc=>{const _0x291b40=_0x16e466,_0x3dfccf=this[_0x291b40(0x1e2)][_0x291b40(0x18d)](_0x2f9acc);_0x501685[_0x291b40(0x192)](typeof _0x3dfccf,_0x501685['lhalo'])?this[_0x291b40(0x1e2)]['set'](_0x2f9acc,helper[_0x291b40(0x197)](_0x3dfccf,_0x37a0c4[_0x291b40(0x1cb)][_0x2f9acc])):this[_0x291b40(0x1e2)][_0x291b40(0x1c0)](_0x2f9acc,_0x37a0c4[_0x291b40(0x1cb)][_0x2f9acc]);}),this;}['build'](){const _0x1185bb=_0x4f7b5f,_0x22b1ad={'rdoLe':_0x44afa0[_0x1185bb(0x1e8)],'oAPZr':_0x44afa0[_0x1185bb(0x18b)],'oeBQp':function(_0x374523,_0xda762d,_0x154f9f){return _0x44afa0['XXyjq'](_0x374523,_0xda762d,_0x154f9f);}};if(helper[_0x1185bb(0x1d5)]()){const _0x35dcc3=_0x44afa0[_0x1185bb(0x1d2)][_0x1185bb(0x19b)]('|');let _0x564d57=0x0;while(!![]){switch(_0x35dcc3[_0x564d57++]){case'0':this[_0x1185bb(0x18f)]();continue;case'1':_0x44afa0['knTMu'](isAccessibilityAutomationSession)&&_0x44afa0[_0x1185bb(0x1f1)](setAccessibilityCapabilities,_0x37a0c4);continue;case'2':if(helper[_0x1185bb(0x184)](_0x37a0c4[_0x1185bb(0x1ff)][_0x1185bb(0x1d4)]))this[_0x1185bb(0x1a7)]=helper['getHttpAgent'](_0x37a0c4[_0x1185bb(0x1ff)]['proxyUrl']);else _0x37a0c4[_0x1185bb(0x1ff)][_0x1185bb(0x1d4)]&&(this['proxy_']=_0x37a0c4[_0x1185bb(0x1ff)]['proxyUrl'],logger['debug'](_0x1185bb(0x188)+this[_0x1185bb(0x1fa)]));continue;case'3':this[_0x1185bb(0x1cf)]();continue;case'4':globals['getGlobal'](_0x44afa0[_0x1185bb(0x1f6)])&&(!_0x44afa0['XXyjq'](setExtension,this,_0x37a0c4)&&globals[_0x1185bb(0x1bd)](_0x44afa0[_0x1185bb(0x1f6)],![]));continue;case'5':logger[_0x1185bb(0x1ca)](_0x44afa0['TbKjC']);continue;}break;}}const _0x5ac6f1=super[_0x1185bb(0x185)]();return _0x5ac6f1[_0x1185bb(0x1a1)][_0x1185bb(0x1dc)](_0x166f28=>{const _0x22ed5e=_0x1185bb;try{const _0x5f34ef=_0x166f28[_0x22ed5e(0x1d3)][_0x22ed5e(0x18d)](_0x22b1ad[_0x22ed5e(0x1c2)]);_0x5f34ef?(logger[_0x22ed5e(0x1ca)](_0x22ed5e(0x1bc)+_0x5f34ef),hubAllocator['updateHubUrl'](_0x5f34ef),helper[_0x22ed5e(0x1d6)](_0x5f34ef)):logger['debug'](_0x22b1ad[_0x22ed5e(0x1d7)]);}catch(_0x1e4966){logger[_0x22ed5e(0x1ca)](_0x22ed5e(0x1f2)+_0x1e4966);}}),_0x5ac6f1[_0x1185bb(0x1c4)]=0x0,_0x5ac6f1[_0x1185bb(0x1dc)]&&_0x5ac6f1[_0x1185bb(0x1dc)](_0x32ee2f=>{const _0x5ce7d2=_0x1185bb,_0x26fcba={'LsHwv':function(_0xb4931a,_0x45f8b8,_0xb694cc){const _0xf299b6=a29_0x47f5;return _0x44afa0[_0xf299b6(0x1a3)](_0xb4931a,_0x45f8b8,_0xb694cc);}};_0x44afa0[_0x5ce7d2(0x1a3)](overrideQuit,_0x32ee2f,_0x5ac6f1),_0x44afa0[_0x5ce7d2(0x1f1)](overrideTakeScreenshot,_0x32ee2f),helper[_0x5ce7d2(0x1ea)](_0x32ee2f,_0x37a0c4),_0x44afa0['GBmtl'](overrideExecute,_0x32ee2f,_0x37a0c4),_0x32ee2f['getAccessibilityResultsSummary']=async()=>{const _0x27f6aa=_0x5ce7d2;return await _0x22b1ad[_0x27f6aa(0x1da)](getAccessibilityResultsSummary,_0x32ee2f,global);},_0x32ee2f[_0x5ce7d2(0x1ed)]=async()=>{const _0x26cebe=_0x5ce7d2;return await _0x26fcba[_0x26cebe(0x195)](getAccessibilityResults,_0x32ee2f,global);};}),_0x5ac6f1[_0x1185bb(0x19d)]=async()=>{return await _0x44afa0['GBmtl'](getAccessibilityResultsSummary,_0x5ac6f1,global);},_0x5ac6f1['getAccessibilityResults']=async()=>{const _0x24c307=_0x1185bb;return await _0x44afa0[_0x24c307(0x19e)](getAccessibilityResults,_0x5ac6f1,global);},_0x44afa0['DLTSs'](overrideTakeScreenshot,_0x5ac6f1),_0x44afa0['ujtLa'](overrideQuit,_0x5ac6f1),helper[_0x1185bb(0x1ea)](_0x5ac6f1,_0x37a0c4),_0x44afa0[_0x1185bb(0x19e)](overrideExecute,_0x5ac6f1,_0x37a0c4),helper[_0x1185bb(0x18e)](global[_0x1185bb(0x1f5)])&&(global[_0x1185bb(0x1f5)]=[]),helper[_0x1185bb(0x18e)](global[_0x1185bb(0x1a9)])&&(global[_0x1185bb(0x1a9)]=[]),global[_0x1185bb(0x1f5)]['push'](_0x5ac6f1),global[_0x1185bb(0x1cd)]=_0x5ac6f1,_0x44afa0[_0x1185bb(0x1ee)](global[_0x1185bb(0x1a9)],undefined)&&global[_0x1185bb(0x1a9)]['push'](_0x5ac6f1),_0xe473b8&&helper[_0x1185bb(0x18e)](_0xe473b8[_0x1185bb(0x1a4)]['__driversArray'])&&(_0xe473b8[_0x1185bb(0x1a4)][_0x1185bb(0x1f5)]=[]),_0xe473b8&&_0x44afa0['CZZZf'](_0xe473b8[_0x1185bb(0x1a4)][_0x1185bb(0x1a9)],undefined)&&(_0xe473b8[_0x1185bb(0x1a4)]['__drivers'][_0x1185bb(0x19f)](_0x5ac6f1),_0xe473b8[_0x1185bb(0x1a4)]['__driversArray'][_0x1185bb(0x19f)](_0x5ac6f1)),_0x5ac6f1;}}return _0x3c8b37[_0x4f7b5f(0x1af)]=_0x3c8b37['Builder'],_0x3c8b37[_0x4f7b5f(0x1b8)]=_0x568be7,_0x4fd516[_0x4f7b5f(0x19a)]=_0x39ac13,_0x3c8b37;};function a29_0x47f5(_0x13f1fb,_0xa8a061){const _0xc8817f=a29_0xc881();return a29_0x47f5=function(_0x47f533,_0x1be9e1){_0x47f533=_0x47f533-0x184;let _0x16a8fa=_0xc8817f[_0x47f533];return _0x16a8fa;},a29_0x47f5(_0x13f1fb,_0xa8a061);}module['exports'][a29_0x39695f(0x1c9)]=modify;
|
|
1
|
+
function a29_0x44da(){const _0x598db4=['originalBuilder','52snaoTr','send','getRequestOptions','Builder','462976BgEoVy','isBrowserstackInfra','options_','ieOptions_','qfXEh','OUSrJ','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','OHcLZ','optimalHubUrl','WvJBa','wafPg','object','capability','PACdJ','isPacProxy','OLJFX','New\x20hub\x20url\x20set\x20to\x20','keys','../accessibility-automation/helper','quitCount_','aGVTe','ieOptions','IvrSv','proxy_','__driver','winstonLogger','456450XccsjA','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','edgeOptions','isUndefined','WyNtn','session_','se:ieOptions','proxySettings','debug','PgCiH','../../../hubAllocationMethods','/session','proxyUrl','requireHttpClient','browserStackLogLevel','bGuxh','../../../helpers/globals','goog:chromeOptions','QaKwE','__driversArray','fPwTY','YSjnN','Setting\x20Browserstack\x20capabilities','then','https://','isAccessibilityPlatform','CAPABILITY_KEY','ms:edgeOptions','2696480uWxvOB','hmXHI','reSKN','storeOptimalHubUrl','firefoxOptions','edgeOptions_','getHubUrl','KhnRm','setServer','newHubUrl','14966216QSGdXk','qUXkf','Proxy\x20set\x20to\x20','global','overrideGet','WgFOy','1|4|0|2|5|3','dBaQz','get','chromeOptions_','MwWhb','FizER','build','Kdtac','getGlobal','65217sQygEG','firefoxOptions_','187788XEcnFV','safariOptions_','mergeDeep','url_','path','setGlobal','setCapabilities','fVjbk','./helpers/patchHelper','forEach','capabilities_','getAccessibilityResultsSummary','../../../helpers/accessibility-automation/helper','/wd/hub','tYQrN','4559093OSdOEW','set','__setBrowserOptions','push','info','requireSeleniumWebdriver','HttpClient','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','__drivers','WNTcV','moz:firefoxOptions'];a29_0x44da=function(){return _0x598db4;};return a29_0x44da();}const a29_0xc56812=a29_0x2f55;(function(_0x21be9c,_0x594651){const _0x145acb=a29_0x2f55,_0x1bec43=_0x21be9c();while(!![]){try{const _0x37c55c=-parseInt(_0x145acb(0xd0))/0x1+-parseInt(_0x145acb(0xb1))/0x2+-parseInt(_0x145acb(0xaf))/0x3*(-parseInt(_0x145acb(0xcc))/0x4)+-parseInt(_0x145acb(0x96))/0x5+-parseInt(_0x145acb(0xea))/0x6+-parseInt(_0x145acb(0xc0))/0x7+parseInt(_0x145acb(0xa0))/0x8;if(_0x37c55c===_0x594651)break;else _0x1bec43['push'](_0x1bec43['shift']());}catch(_0x4ffad8){_0x1bec43['push'](_0x1bec43['shift']());}}}(a29_0x44da,0x50874));function a29_0x2f55(_0x5085f3,_0x2f2096){const _0x44da31=a29_0x44da();return a29_0x2f55=function(_0x2f555f,_0x5d0227){_0x2f555f=_0x2f555f-0x92;let _0x3fccf8=_0x44da31[_0x2f555f];return _0x3fccf8;},a29_0x2f55(_0x5085f3,_0x2f2096);}const logger=require('../../../helpers/logger')[a29_0xc56812(0xe9)],helper=require('../../../helpers/helper'),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0xc56812(0xf4)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a29_0xc56812(0xe2)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0xc56812(0xbd)),globals=require(a29_0xc56812(0xfa)),{overrideExecute}=require(a29_0xc56812(0xb9)),modify=(_0x30b115,_0x86834b=null,_0x19d9a5=![])=>{const _0x2271b9=a29_0xc56812,_0x21d269={'PACdJ':function(_0x4507c8,_0x90d24c){return _0x4507c8!==_0x90d24c;},'aGVTe':_0x2271b9(0xf5),'wafPg':function(_0x1101a,_0x58adc4){return _0x1101a+_0x58adc4;},'fPwTY':function(_0x4edeed,_0xf0f7fd){return _0x4edeed+_0xf0f7fd;},'YSjnN':_0x2271b9(0x92),'PgCiH':_0x2271b9(0xbe),'CqNHP':_0x2271b9(0xfb),'FizER':'chromeOptions','hmXHI':_0x2271b9(0x95),'qUXkf':_0x2271b9(0xec),'reSKN':_0x2271b9(0xca),'bUkKX':_0x2271b9(0x9a),'SpOLP':'safari.options','Kdtac':_0x2271b9(0xf0),'bGuxh':_0x2271b9(0xe5),'crHFt':function(_0x142723,_0x2f86a7){return _0x142723===_0x2f86a7;},'OHcLZ':_0x2271b9(0xdb),'QaKwE':_0x2271b9(0x100),'KhnRm':function(_0x46e371,_0x3e339e,_0x40b71f){return _0x46e371(_0x3e339e,_0x40b71f);},'tYQrN':function(_0x2b3e15,_0x1d0b05){return _0x2b3e15(_0x1d0b05);},'WgFOy':function(_0x1663fb,_0x521919,_0x1e7810){return _0x1663fb(_0x521919,_0x1e7810);},'IvrSv':_0x2271b9(0xd8),'gPDdL':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','qfXEh':_0x2271b9(0xa6),'CGweo':function(_0x17e2b7){return _0x17e2b7();},'OLJFX':function(_0x4d971f,_0x4acbe0){return _0x4d971f(_0x4acbe0);},'OUSrJ':_0x2271b9(0xc7),'fVjbk':_0x2271b9(0x93),'WNTcV':function(_0x3eb8e3,_0x40e6e3){return _0x3eb8e3!==_0x40e6e3;},'kSuBI':_0x2271b9(0xeb),'EyzSh':'Modifying\x20webdriver\x20builder'},_0x795ee1=helper[_0x2271b9(0xf7)]();let _0x4cb1cb;try{_0x4cb1cb=helper[_0x2271b9(0xc5)](),_0x4cb1cb[_0x2271b9(0xcb)]&&(_0x4cb1cb[_0x2271b9(0xcf)]=_0x4cb1cb[_0x2271b9(0xcb)]);}catch(_0xf69f12){return;}if(helper[_0x2271b9(0xd1)]()){const _0xde4c8b={};_0xde4c8b['logLevel']=_0x30b115[_0x2271b9(0xf8)],helper['setLogLevel'](_0xde4c8b,new Map(),new Map()),logger[_0x2271b9(0xc4)](_0x21d269['kSuBI']),logger[_0x2271b9(0xf2)](_0x21d269['EyzSh']);}class _0x20f92c extends _0x795ee1['HttpClient']{[_0x2271b9(0xcd)](_0x5252af){const _0x108e4f=_0x2271b9;if(_0x21d269[_0x108e4f(0xdd)](_0x5252af[_0x108e4f(0xb5)],_0x21d269[_0x108e4f(0xe4)])&&_0x21d269[_0x108e4f(0xdd)](global[_0x108e4f(0x9f)],''))try{global['newHubUrl']=_0x21d269[_0x108e4f(0xda)](_0x21d269[_0x108e4f(0xfe)](_0x21d269[_0x108e4f(0xff)],global[_0x108e4f(0x9f)]),_0x21d269[_0x108e4f(0xf3)]),this[_0x108e4f(0xd2)]=hubAllocator[_0x108e4f(0xce)](global[_0x108e4f(0x9f)]),logger['debug'](_0x108e4f(0xe0)+global[_0x108e4f(0x9f)]),global[_0x108e4f(0x9f)]='';}catch(_0x38d246){logger['error'](_0x38d246);}return super['send'](_0x5252af);}}class _0x21a8b2 extends _0x4cb1cb['Builder']{[_0x2271b9(0x9e)](){const _0x12ea80=_0x2271b9;return this['url_']=helper[_0x12ea80(0x9c)](_0x30b115),logger[_0x12ea80(0xf2)]('Hub\x20url\x20set\x20to\x20'+this[_0x12ea80(0xb4)]),this;}[_0x2271b9(0xc2)](_0x979c9b){const _0x3d42ef=_0x2271b9;let _0x8898ac={};for(const _0x1abef0 in _0x979c9b){switch(_0x1abef0){case _0x21d269['CqNHP']:case _0x21d269[_0x3d42ef(0xab)]:this[_0x3d42ef(0xa9)]&&(_0x8898ac=this['chromeOptions_'][_0x3d42ef(0xa8)](this[_0x3d42ef(0xa9)][_0x3d42ef(0x94)])||{},this['chromeOptions_'][_0x3d42ef(0xc1)](this[_0x3d42ef(0xa9)][_0x3d42ef(0x94)],helper[_0x3d42ef(0xb3)](_0x8898ac,_0x979c9b[_0x1abef0])));break;case _0x21d269[_0x3d42ef(0x97)]:case _0x21d269[_0x3d42ef(0xa1)]:this[_0x3d42ef(0x9b)]&&(_0x8898ac=this[_0x3d42ef(0x9b)][_0x3d42ef(0xa8)](this['edgeOptions_'][_0x3d42ef(0x94)])||{},this[_0x3d42ef(0x9b)][_0x3d42ef(0xc1)](this[_0x3d42ef(0x9b)][_0x3d42ef(0x94)],helper[_0x3d42ef(0xb3)](_0x8898ac,_0x979c9b[_0x1abef0])));break;case _0x21d269[_0x3d42ef(0x98)]:case _0x21d269['bUkKX']:this['firefoxOptions_']&&(_0x8898ac=this[_0x3d42ef(0xb0)][_0x3d42ef(0xa8)](this['firefoxOptions_'][_0x3d42ef(0x94)])||{},this['firefoxOptions_'][_0x3d42ef(0xc1)](this[_0x3d42ef(0xb0)]['CAPABILITY_KEY'],helper[_0x3d42ef(0xb3)](_0x8898ac,_0x979c9b[_0x1abef0])));break;case _0x21d269['SpOLP']:this[_0x3d42ef(0xb2)]&&(_0x8898ac=this['safariOptions_'][_0x3d42ef(0xa8)](this[_0x3d42ef(0xb2)][_0x3d42ef(0x94)])||{},this[_0x3d42ef(0xb2)][_0x3d42ef(0xc1)](this[_0x3d42ef(0xb2)][_0x3d42ef(0x94)],helper[_0x3d42ef(0xb3)](_0x8898ac,_0x979c9b[_0x1abef0])));break;case _0x21d269[_0x3d42ef(0xad)]:case _0x21d269[_0x3d42ef(0xf9)]:this['ieOptions_']&&(_0x8898ac=this[_0x3d42ef(0xd3)][_0x3d42ef(0xa8)](this[_0x3d42ef(0xd3)][_0x3d42ef(0x94)])||{},this[_0x3d42ef(0xd3)][_0x3d42ef(0xc1)](this['ieOptions_'][_0x3d42ef(0x94)],helper[_0x3d42ef(0xb3)](_0x8898ac,_0x979c9b[_0x1abef0])));break;}}}[_0x2271b9(0xb7)](){const _0x3df7f3=_0x2271b9;return logger[_0x3df7f3(0xf2)](_0x21d269[_0x3df7f3(0xfc)]),this['__setBrowserOptions'](_0x30b115[_0x3df7f3(0xdc)]),Object[_0x3df7f3(0xe1)](_0x30b115[_0x3df7f3(0xdc)])[_0x3df7f3(0xba)](_0x5e377c=>{const _0x428e18=_0x3df7f3,_0x1ed389=this[_0x428e18(0xbb)][_0x428e18(0xa8)](_0x5e377c);_0x21d269['crHFt'](typeof _0x1ed389,_0x21d269[_0x428e18(0xd7)])?this[_0x428e18(0xbb)][_0x428e18(0xc1)](_0x5e377c,helper['mergeDeep'](_0x1ed389,_0x30b115[_0x428e18(0xdc)][_0x5e377c])):this[_0x428e18(0xbb)][_0x428e18(0xc1)](_0x5e377c,_0x30b115[_0x428e18(0xdc)][_0x5e377c]);}),this;}['build'](){const _0x2d9449=_0x2271b9,_0x1bbe46={'WvJBa':_0x21d269[_0x2d9449(0xe6)],'WyNtn':_0x21d269['gPDdL'],'dBaQz':function(_0x1559df,_0x8cf676,_0x2e0d17){const _0x560551=_0x2d9449;return _0x21d269[_0x560551(0xa5)](_0x1559df,_0x8cf676,_0x2e0d17);}};if(helper[_0x2d9449(0xd1)]()){const _0x21bb9c=_0x21d269[_0x2d9449(0xd4)]['split']('|');let _0x3d005e=0x0;while(!![]){switch(_0x21bb9c[_0x3d005e++]){case'0':this[_0x2d9449(0xb7)]();continue;case'1':_0x21d269['CGweo'](isAccessibilityAutomationSession)&&_0x21d269[_0x2d9449(0xdf)](setAccessibilityCapabilities,_0x30b115);continue;case'2':if(helper[_0x2d9449(0xde)](_0x30b115[_0x2d9449(0xf1)][_0x2d9449(0xf6)]))this['agent_']=helper['getHttpAgent'](_0x30b115[_0x2d9449(0xf1)][_0x2d9449(0xf6)]);else _0x30b115[_0x2d9449(0xf1)][_0x2d9449(0xf6)]&&(this['proxy_']=_0x30b115['proxySettings']['proxyUrl'],logger['debug'](_0x2d9449(0xa2)+this[_0x2d9449(0xe7)]));continue;case'3':logger['debug'](_0x21d269[_0x2d9449(0xd5)]);continue;case'4':this['setServer']();continue;case'5':globals[_0x2d9449(0xae)](_0x21d269[_0x2d9449(0xb8)])&&(!_0x21d269[_0x2d9449(0xa5)](setExtension,this,_0x30b115)&&globals[_0x2d9449(0xb6)](_0x21d269[_0x2d9449(0xb8)],![]));continue;}break;}}const _0x24c069=super[_0x2d9449(0xac)]();return _0x24c069[_0x2d9449(0xef)][_0x2d9449(0x101)](_0x39c2f9=>{const _0x1eb0cf=_0x2d9449;try{const _0x51b183=_0x39c2f9['caps_'][_0x1eb0cf(0xa8)](_0x1bbe46[_0x1eb0cf(0xd9)]);_0x51b183?(logger[_0x1eb0cf(0xf2)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x51b183),hubAllocator['updateHubUrl'](_0x51b183),helper[_0x1eb0cf(0x99)](_0x51b183)):logger[_0x1eb0cf(0xf2)](_0x1bbe46[_0x1eb0cf(0xee)]);}catch(_0xdb1ff6){logger[_0x1eb0cf(0xf2)](_0x1eb0cf(0xd6)+_0xdb1ff6);}}),_0x24c069[_0x2d9449(0xe3)]=0x0,_0x24c069[_0x2d9449(0x101)]&&_0x24c069['then'](_0x49c715=>{const _0x555e12=_0x2d9449,_0x49b327={'MwWhb':function(_0x8cd1e4,_0x66ee4b,_0x5de446){const _0x258642=a29_0x2f55;return _0x21d269[_0x258642(0x9d)](_0x8cd1e4,_0x66ee4b,_0x5de446);}};_0x21d269[_0x555e12(0x9d)](overrideQuit,_0x49c715,_0x24c069),_0x21d269[_0x555e12(0xbf)](overrideTakeScreenshot,_0x49c715),helper[_0x555e12(0xa4)](_0x49c715,_0x30b115),_0x21d269[_0x555e12(0xa5)](overrideExecute,_0x49c715,_0x30b115),_0x49c715[_0x555e12(0xbc)]=async()=>{const _0x3e7f34=_0x555e12;return await _0x1bbe46[_0x3e7f34(0xa7)](getAccessibilityResultsSummary,_0x49c715,global);},_0x49c715['getAccessibilityResults']=async()=>{const _0x5ede1e=_0x555e12;return await _0x49b327[_0x5ede1e(0xaa)](getAccessibilityResults,_0x49c715,global);};}),_0x24c069[_0x2d9449(0xbc)]=async()=>{const _0x3e4afc=_0x2d9449;return await _0x21d269[_0x3e4afc(0x9d)](getAccessibilityResultsSummary,_0x24c069,global);},_0x24c069['getAccessibilityResults']=async()=>{const _0x240b88=_0x2d9449;return await _0x21d269[_0x240b88(0xa5)](getAccessibilityResults,_0x24c069,global);},_0x21d269['tYQrN'](overrideTakeScreenshot,_0x24c069),_0x21d269['tYQrN'](overrideQuit,_0x24c069),helper['overrideGet'](_0x24c069,_0x30b115),_0x21d269['WgFOy'](overrideExecute,_0x24c069,_0x30b115),helper['isUndefined'](global[_0x2d9449(0xfd)])&&(global['__driversArray']=[]),helper[_0x2d9449(0xed)](global[_0x2d9449(0xc8)])&&(global['__drivers']=[]),global['__driversArray'][_0x2d9449(0xc3)](_0x24c069),global[_0x2d9449(0xe8)]=_0x24c069,_0x21d269[_0x2d9449(0xdd)](global['__drivers'],undefined)&&global[_0x2d9449(0xc8)]['push'](_0x24c069),_0x86834b&&helper[_0x2d9449(0xed)](_0x86834b['global'][_0x2d9449(0xfd)])&&(_0x86834b['global'][_0x2d9449(0xfd)]=[]),_0x86834b&&_0x21d269[_0x2d9449(0xc9)](_0x86834b[_0x2d9449(0xa3)][_0x2d9449(0xc8)],undefined)&&(_0x86834b[_0x2d9449(0xa3)][_0x2d9449(0xc8)][_0x2d9449(0xc3)](_0x24c069),_0x86834b[_0x2d9449(0xa3)]['__driversArray'][_0x2d9449(0xc3)](_0x24c069)),_0x24c069;}}return _0x4cb1cb['originalBuilder']=_0x4cb1cb['Builder'],_0x4cb1cb['Builder']=_0x21a8b2,_0x795ee1[_0x2271b9(0xc6)]=_0x20f92c,_0x4cb1cb;};module['exports']['browserstackAgentObservability']=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a30_0x1678(_0x37e6a1,_0x56d9d9){const _0x525100=a30_0x5251();return a30_0x1678=function(_0x167801,_0x4dbeb8){_0x167801=_0x167801-0x106;let _0x1e5eb2=_0x525100[_0x167801];return _0x1e5eb2;},a30_0x1678(_0x37e6a1,_0x56d9d9);}const a30_0x8770c8=a30_0x1678;(function(_0x2f944b,_0x4ec31f){const _0x18485f=a30_0x1678,_0x194be3=_0x2f944b();while(!![]){try{const _0x5eb2bb=-parseInt(_0x18485f(0x10f))/0x1+parseInt(_0x18485f(0x109))/0x2*(parseInt(_0x18485f(0x10b))/0x3)+parseInt(_0x18485f(0x10e))/0x4+parseInt(_0x18485f(0x10d))/0x5+parseInt(_0x18485f(0x108))/0x6*(-parseInt(_0x18485f(0x110))/0x7)+parseInt(_0x18485f(0x10a))/0x8*(-parseInt(_0x18485f(0x107))/0x9)+-parseInt(_0x18485f(0x106))/0xa*(-parseInt(_0x18485f(0x113))/0xb);if(_0x5eb2bb===_0x4ec31f)break;else _0x194be3['push'](_0x194be3['shift']());}catch(_0x5781b6){_0x194be3['push'](_0x194be3['shift']());}}}(a30_0x5251,0x5fa54));const requestSpy=require(a30_0x8770c8(0x10c)),constants=require(a30_0x8770c8(0x112)),{addRequestSpy}=require(a30_0x8770c8(0x111));function a30_0x5251(){const _0x32a8f4=['8GAXpXe','56319lNrKKn','../../../helpers/request-spy','2083075jGxdgo','1039516CtuTVf','650107CexxJo','4804919uVrAjA','../../../helpers/test-observability/utils','../../../bin/utils/constants','355157IVAmBB','restore','370YRIwHs','2299167koJrPS','6hWKMRJ','12UHshSG'];a30_0x5251=function(){return _0x32a8f4;};return a30_0x5251();}exports['mochaHooks']={'beforeAll'(){const _0x26e59a={'VqAbw':function(_0x5b4fd9){return _0x5b4fd9();}},_0x33944b='browserstack internal helper hook';_0x26e59a['VqAbw'](addRequestSpy);},'afterAll'(){const _0x5213b1=a30_0x8770c8,_0xc2310b='browserstack internal helper hook';this['timeout'](0xea60),requestSpy[_0x5213b1(0x114)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a31_0x1804(){const _0x1e7c6f=['bs:addPlatformDetails:','ChQJH','hook','SrquG','BjwzB','getTestEnv','CutBP','browserstack','OdENM','aGjJF','pid','push','LXLjp','FttiJ','136TUSkIt','map_','passed','slice','__cloud_provider___','../../../helpers/helper','getPlatform','_beforeEach','xmNNQ','udBGj','HoFlS','mapTestHooks','amWXV','tests','liQrD','type','1771518XzRClv','gsjfM','getBrowserVersion','pending','XFbcI','../../../helpers/testhub/utils','hookAnalyticsId','unknown_grid','markedStatus','71076uTzuUQ','forEach','qXgOY','_afterEach','3610362HXMpNB','state','filter','KnWoZ','suites','TnifR','UbbZc','../../../helpers/test-observability/constants','getSession','../../../../package.json','getHooksForTest','getBrowserName','generic','hook:','IFRBx','_beforeAll','19743600ryLeQY','MIMnW','parent','split','_afterAll','1051614OitvMe','sendPlatformDetails','getCapabilities','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','144747LhuOac','zDGAV','JXjQP','eTJoy','getHookSkippedTests','MwRTB','concat','fromEntries','RsXaa','FSebd','toJSON','1688885xTejIc','failed','string','keys','zDPOl'];a31_0x1804=function(){return _0x1e7c6f;};return a31_0x1804();}const a31_0x5de41b=a31_0x43ad;(function(_0x5577dd,_0x50a6ec){const _0x52f686=a31_0x43ad,_0x4fa499=_0x5577dd();while(!![]){try{const _0x526fd4=parseInt(_0x52f686(0x1db))/0x1+-parseInt(_0x52f686(0x1d7))/0x2+-parseInt(_0x52f686(0x1be))/0x3*(parseInt(_0x52f686(0x1a5))/0x4)+parseInt(_0x52f686(0x1e6))/0x5+-parseInt(_0x52f686(0x1c2))/0x6+-parseInt(_0x52f686(0x1b5))/0x7+parseInt(_0x52f686(0x1d2))/0x8;if(_0x526fd4===_0x50a6ec)break;else _0x4fa499['push'](_0x4fa499['shift']());}catch(_0x9d9e03){_0x4fa499['push'](_0x4fa499['shift']());}}}(a31_0x1804,0xba9b2));const {v4:uuidv4}=require('uuid'),{name,version}=require(a31_0x5de41b(0x1cb)),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require(a31_0x5de41b(0x1c9)),{getPlatformVersion}=require(a31_0x5de41b(0x1aa)),{shouldProcessEventForTesthub}=require(a31_0x5de41b(0x1ba));function a31_0x43ad(_0x2352a5,_0x55e2e6){const _0x18044c=a31_0x1804();return a31_0x43ad=function(_0x43adc3,_0x216246){_0x43adc3=_0x43adc3-0x19c;let _0x103494=_0x18044c[_0x43adc3];return _0x103494;},a31_0x43ad(_0x2352a5,_0x55e2e6);}console={},Object[a31_0x5de41b(0x1e9)](consoleHolder)[a31_0x5de41b(0x1bf)](_0x11ee03=>{console[_0x11ee03]=(..._0x3c1405)=>{BSTestOpsPatcher[_0x11ee03](..._0x3c1405);};}),exports[a31_0x5de41b(0x19c)]=()=>{const _0x27782a=a31_0x5de41b,_0x26f9b0={'TnifR':_0x27782a(0x1ce),'CutBP':function(_0x1fecf3){return _0x1fecf3();}};return{'ci':_0x26f9b0[_0x27782a(0x1c7)],'key':_0x26f9b0[_0x27782a(0x19d)](uuidv4),'version':version,'collector':'js-'+name};},exports['getHookDetails']=_0x2ca72d=>{const _0x746923=a31_0x5de41b,_0x5df347={};_0x5df347[_0x746923(0x1c8)]=function(_0x36802e,_0x296d79){return _0x36802e!==_0x296d79;},_0x5df347[_0x746923(0x1b6)]=_0x746923(0x1e8),_0x5df347[_0x746923(0x1af)]=function(_0x20e6e0,_0x123591){return _0x20e6e0!==_0x123591;},_0x5df347['liQrD']=_0x746923(0x1cf),_0x5df347[_0x746923(0x1ec)]=function(_0x19b5aa,_0x3c53cf){return _0x19b5aa!==_0x3c53cf;},_0x5df347[_0x746923(0x1ef)]=_0x746923(0x1ed);const _0x3f4754=_0x5df347;if(!_0x2ca72d||_0x3f4754[_0x746923(0x1c8)](typeof _0x2ca72d,_0x3f4754['gsjfM']))return[null,null];if(_0x3f4754[_0x746923(0x1af)](_0x2ca72d['indexOf'](_0x3f4754[_0x746923(0x1b3)]),-0x1)){const _0x1bdbce=_0x2ca72d[_0x746923(0x1d5)](_0x3f4754[_0x746923(0x1b3)]);return[_0x1bdbce[0x0][_0x746923(0x1a8)](0x0,-0x1)[_0x746923(0x1d5)]('\x22')[0x1],_0x1bdbce[0x1]['substring'](0x1)];}else{if(_0x3f4754[_0x746923(0x1ec)](_0x2ca72d['indexOf'](_0x3f4754[_0x746923(0x1ef)]),-0x1)){const _0x17c9a8=_0x2ca72d[_0x746923(0x1d5)](_0x3f4754[_0x746923(0x1ef)]);return[_0x17c9a8[0x0][_0x746923(0x1a8)](0x0,-0x1)[_0x746923(0x1d5)]('\x22')[0x1],_0x2ca72d];}}return[null,null];},exports['getHooksForTest']=_0x4020c8=>{const _0x594394=a31_0x5de41b,_0x3bdd49={'bjPtd':function(_0x10336b,_0x572fd9){return _0x10336b(_0x572fd9);},'qXgOY':'_beforeAll','jtXbT':_0x594394(0x1d6),'zDGAV':_0x594394(0x1ac),'xmNNQ':_0x594394(0x1c1)};if(!_0x4020c8||!_0x4020c8['parent'])return[];const _0x36ff7f=[];return[_0x3bdd49[_0x594394(0x1c0)],_0x3bdd49['jtXbT'],_0x3bdd49[_0x594394(0x1dc)],_0x3bdd49[_0x594394(0x1ad)]][_0x594394(0x1bf)](_0xbc0a5f=>{const _0x1113bb=_0x594394,_0x23c47f=_0x4020c8[_0x1113bb(0x1d4)][_0xbc0a5f]||[];_0x23c47f['forEach'](_0x2204a1=>{const _0x1591c0=_0x1113bb;_0x2204a1[_0x1591c0(0x1bb)]&&!_0x3bdd49['bjPtd'](isInternalHook,_0x2204a1['fn'])&&_0x36ff7f[_0x1591c0(0x1a2)](_0x2204a1[_0x1591c0(0x1bb)]);});}),[..._0x36ff7f,...exports[_0x594394(0x1cc)](_0x4020c8[_0x594394(0x1d4)])];},exports['mapTestHooks']=_0x530ea4=>{const _0x33c782=a31_0x5de41b,_0x264034={'eTJoy':function(_0x1e2900){return _0x1e2900();},'RsXaa':function(_0x1336c5,_0x521329){return _0x1336c5===_0x521329;},'MwRTB':_0x33c782(0x1c1),'amWXV':_0x33c782(0x1d1),'JXjQP':_0x33c782(0x1d6),'aGjJF':_0x33c782(0x1ac)};if(!_0x530ea4||!_0x530ea4['parent'])return;[_0x264034[_0x33c782(0x1b1)],_0x264034[_0x33c782(0x1dd)],_0x264034[_0x33c782(0x1a0)],_0x264034['MwRTB']]['forEach'](_0x350451=>{const _0x593db4=_0x33c782,_0x559283=_0x530ea4['parent'][_0x350451]||[];_0x559283[_0x593db4(0x1bf)](_0x3327cd=>{const _0x305b99=_0x593db4;if(!_0x3327cd[_0x305b99(0x1bb)])_0x3327cd[_0x305b99(0x1bb)]=_0x264034[_0x305b99(0x1de)](uuidv4);else _0x3327cd[_0x305b99(0x1bd)]&&_0x264034[_0x305b99(0x1e3)](_0x350451,_0x264034[_0x305b99(0x1e0)])&&(_0x3327cd[_0x305b99(0x1bb)]=_0x264034[_0x305b99(0x1de)](uuidv4),delete _0x3327cd[_0x305b99(0x1bd)]);});}),exports[_0x33c782(0x1b0)](_0x530ea4[_0x33c782(0x1d4)]);},exports[a31_0x5de41b(0x1d8)]=async(_0x3f5bb4,_0x58606e)=>{const _0x1d6d96=a31_0x5de41b,_0x22d828={'FSebd':function(_0x4fa8fc){return _0x4fa8fc();},'udBGj':function(_0x40967c,_0x3d960e){return _0x40967c(_0x3d960e);},'KnWoZ':function(_0x57e58e,_0x21ea2f){return _0x57e58e===_0x21ea2f;},'FttiJ':_0x1d6d96(0x19e),'IFRBx':_0x1d6d96(0x1bc),'XFbcI':'TEST_PLATFORM'};try{if(!_0x22d828[_0x1d6d96(0x1e4)](shouldProcessEventForTesthub))return;const _0x5f1ab2=await _0x3f5bb4[_0x1d6d96(0x1d9)](),_0x489f2f=await _0x3f5bb4[_0x1d6d96(0x1ca)](),_0x308f8f={},_0x44fec8=Object[_0x1d6d96(0x1e2)](_0x489f2f[_0x1d6d96(0x1d9)]()[_0x1d6d96(0x1a6)]),_0x583143={'product':_0x22d828[_0x1d6d96(0x1ae)](getObservabilityLinkedProductName,_0x44fec8),'capabilities':_0x44fec8,'platform':_0x5f1ab2[_0x1d6d96(0x1ab)](),'platform_version':_0x22d828[_0x1d6d96(0x1ae)](getPlatformVersion,_0x22d828[_0x1d6d96(0x1c5)](global[_0x1d6d96(0x1a9)],_0x22d828[_0x1d6d96(0x1a4)])),'browser':_0x5f1ab2[_0x1d6d96(0x1cd)](),'browser_version':_0x5f1ab2[_0x1d6d96(0x1b7)](),'session_id':_0x489f2f[_0x1d6d96(0x1e5)]()};global[_0x1d6d96(0x1a9)]?_0x308f8f[global['__cloud_provider___']]=_0x583143:_0x308f8f[_0x22d828[_0x1d6d96(0x1d0)]]=_0x583143,process['emit'](_0x1d6d96(0x1eb)+process[_0x1d6d96(0x1a1)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x22d828[_0x1d6d96(0x1b9)],'http_response':_0x308f8f,'uuid':_0x58606e});}catch(_0x1803c2){_0x22d828['udBGj'](debug,_0x1d6d96(0x1da)+_0x1803c2);}},exports[a31_0x5de41b(0x1df)]=_0x1bbbee=>{const _0x3e76c4=a31_0x5de41b,_0x127cba={};_0x127cba[_0x3e76c4(0x1ea)]=function(_0x243650,_0x37b08d){return _0x243650!==_0x37b08d;},_0x127cba[_0x3e76c4(0x19f)]=_0x3e76c4(0x1ed),_0x127cba[_0x3e76c4(0x1d3)]=_0x3e76c4(0x1a7),_0x127cba[_0x3e76c4(0x1a3)]=function(_0xa20119,_0x334ffe){return _0xa20119!==_0x334ffe;},_0x127cba['SrquG']=_0x3e76c4(0x1e7);const _0x645b51=_0x127cba,_0x5acda1=_0x1bbbee[_0x3e76c4(0x1c6)]['reduce']((_0x2d8b55,_0x3beb37)=>{const _0xb7c402=_0x3e76c4,_0xe8ddcd=exports[_0xb7c402(0x1df)](_0x3beb37);return _0xe8ddcd&&(_0x2d8b55=_0x2d8b55[_0xb7c402(0x1e1)](_0xe8ddcd)),_0x2d8b55;},[]),_0x3a6440=_0x1bbbee[_0x3e76c4(0x1b2)][_0x3e76c4(0x1c4)](_0x27d972=>{const _0x4fbc74=_0x3e76c4,_0x1fe0d6=_0x645b51[_0x4fbc74(0x1ea)](_0x27d972[_0x4fbc74(0x1b4)],_0x645b51[_0x4fbc74(0x19f)])&&!_0x27d972[_0x4fbc74(0x1bd)]&&_0x645b51[_0x4fbc74(0x1ea)](_0x27d972[_0x4fbc74(0x1c3)],_0x645b51[_0x4fbc74(0x1d3)])&&_0x645b51[_0x4fbc74(0x1a3)](_0x27d972[_0x4fbc74(0x1c3)],_0x645b51[_0x4fbc74(0x1ee)])&&!_0x27d972[_0x4fbc74(0x1b8)];return _0x1fe0d6;});return _0x3a6440['concat'](_0x5acda1);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x19fe(_0x4d5051,_0x17c915){const _0x5b6208=a32_0x5b62();return a32_0x19fe=function(_0x19feb3,_0x5f16ff){_0x19feb3=_0x19feb3-0xa6;let _0x137d43=_0x5b6208[_0x19feb3];return _0x137d43;},a32_0x19fe(_0x4d5051,_0x17c915);}function a32_0x5b62(){const _0x453ecd=['currentTest','http:','qNVnm','TYGbb','gtUlH','9085744yxeKOk','../../helpers/performance-tester','push','mochaHooks','7rxdLrF','shouldScanTestForAccessibility','then','https:','state','browserstackSessionName','MBDGr','stringify','percy','AMLnv','appium:app','lUQOw','10803438lURACs','AIOeo','BROWSERSTACK_TESTHUB_UUID','passed','Failed\x20to\x20store\x20session\x20name:\x20','WxiIA','../../helpers/globals','env','../../helpers/percy/utils','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','../../helpers/logger','../../helpers/helper','XAgeQ','executeAsyncScript','VGDOH','testcase','titlePath','performScan','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','initQuit','Performing\x20scan\x20before\x20saving\x20results','bRjfc','6ITZKYc','24464890BdVpMR','iQpxG','format','error','tpWgZ','mVrrQ','quitCount_','pesZD','join','util','driverCleanup','NFKOe','1681490tTufjZ','vVEvV','message','debug','jMcqD','testAnalyticsId','saveTestResults','session_','__drivers','__sessionFailed','length','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','pvyLw','Sjpqz','../../helpers/testhub/constants','startMonitoring','945014CyEuYN','info','DEcMF','getGlobal','winstonLogger','timeout','shift','isArray','hRRhb','1632236cPcFHp','capabilities','\x20-\x20','__error_messages__','ENV_VAR','protocol','../../helpers/accessibility-automation/scripts','thJwtToken','psMJG','sessionNameSet__','92KQLVfy','QaXCJ','lvkyC','\x22}}','executeScript','gogcq','.\x20Error\x20:','accessibilityScanStarted','__skipSessionName','./test-observability/mochaUtils','kZXXs','57501PiLvKS','app','oFqIG','bstackA11yShouldScan','err','stopMonitoring',',\x22level\x22:\x20\x22','ERKEd','aBtUJ','isAccessibilityPlatform','ObservabilitySync:','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','setGlobal','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','ptyxm','miExQ'];a32_0x5b62=function(){return _0x453ecd;};return a32_0x5b62();}const a32_0x476440=a32_0x19fe;(function(_0x4f86c0,_0x4e09d6){const _0x1332db=a32_0x19fe,_0x3b9e75=_0x4f86c0();while(!![]){try{const _0x4d49c6=-parseInt(_0x1332db(0xc0))/0x1+-parseInt(_0x1332db(0xc9))/0x2+parseInt(_0x1332db(0xde))/0x3*(parseInt(_0x1332db(0xd3))/0x4)+parseInt(_0x1332db(0xb0))/0x5*(-parseInt(_0x1332db(0x119))/0x6)+-parseInt(_0x1332db(0xf7))/0x7*(parseInt(_0x1332db(0xf3))/0x8)+parseInt(_0x1332db(0x103))/0x9+parseInt(_0x1332db(0x11a))/0xa;if(_0x4d49c6===_0x4e09d6)break;else _0x3b9e75['push'](_0x3b9e75['shift']());}catch(_0x16ea75){_0x3b9e75['push'](_0x3b9e75['shift']());}}}(a32_0x5b62,0xd0a24));const util=require(a32_0x476440(0xad)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a32_0x476440(0x10b)),{sendPlatformDetails}=require(a32_0x476440(0xdc)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x476440(0x10e)),PerformanceTester=require(a32_0x476440(0xf4)),scripts=require(a32_0x476440(0xcf)),globals=require(a32_0x476440(0x109)),logger=require(a32_0x476440(0x10d))[a32_0x476440(0xc4)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a32_0x476440(0xbe));exports[a32_0x476440(0xf6)]={'beforeAll'(){const _0x1e567f=a32_0x476440,_0x4ab0ba={'AIOeo':function(_0x2625ca,_0x3b7d00,_0x55ee9e,_0x3a4942){return _0x2625ca(_0x3b7d00,_0x55ee9e,_0x3a4942);},'MBDGr':'failed','kZXXs':'\x20|\x20','vVEvV':function(_0x114bc3,_0x4934a2,_0x45bf67){return _0x114bc3(_0x4934a2,_0x45bf67);},'XAgeQ':_0x1e567f(0x106),'AICLo':function(_0xff586b){return _0xff586b();},'pesZD':function(_0x3b4bb2,_0x401cda,_0x4a10ef){return _0x3b4bb2(_0x401cda,_0x4a10ef);}};PerformanceTester[_0x1e567f(0xbf)]();const _0x15308b='browserstack internal helper hook';global[_0x1e567f(0xcc)]=[],global[_0x1e567f(0xb9)]=![],global[_0x1e567f(0xae)]=async()=>{const _0x2351b3=_0x1e567f;let _0x579ded=![];try{await global[_0x2351b3(0xb8)][0x0][_0x2351b3(0xb7)],_0x579ded=!![],global['__sessionFailed']?await _0x4ab0ba[_0x2351b3(0x104)](markSessionStatus,global[_0x2351b3(0xb8)][0x0],_0x4ab0ba[_0x2351b3(0xfd)],global[_0x2351b3(0xcc)][_0x2351b3(0xac)](_0x4ab0ba[_0x2351b3(0xdd)])):await _0x4ab0ba[_0x2351b3(0xb1)](markSessionStatus,global[_0x2351b3(0xb8)][0x0],_0x4ab0ba[_0x2351b3(0x10f)]);}catch(_0x5e8b25){}global[_0x2351b3(0xcc)]=[],global[_0x2351b3(0xb9)]=![];if(_0x579ded)try{try{_0x4ab0ba['AICLo'](shouldProcessEventForTesthub)&&(global[_0x2351b3(0xb8)][0x0]&&await _0x4ab0ba[_0x2351b3(0xab)](sendPlatformDetails,global[_0x2351b3(0xb8)][0x0],this[_0x2351b3(0xee)]?this['currentTest'][_0x2351b3(0xb5)]:null));}catch{}await global[_0x2351b3(0xb8)][0x0][_0x2351b3(0x116)]();}catch(_0x4c068e){}};},'beforeEach'(_0x40ec0f){const _0x804b9c=a32_0x476440,_0x28f88b={'gtUlH':function(_0x30bb0b,_0x144b44){return _0x30bb0b>_0x144b44;},'iQpxG':function(_0x27ae3b,_0x548103){return _0x27ae3b>_0x548103;},'oFqIG':'\x20-\x20','AQCdS':function(_0xcce4bb,_0x53665d,_0x30efd4){return _0xcce4bb(_0x53665d,_0x30efd4);},'tpWgZ':_0x804b9c(0xe1),'ptyxm':function(_0x41eeae){return _0x41eeae();},'VGDOH':function(_0x45b9e6,_0x43c9e1){return _0x45b9e6>_0x43c9e1;},'PmJVj':_0x804b9c(0xe7),'ERKEd':function(_0xf86c82,_0xfb5b6d){return _0xf86c82===_0xfb5b6d;},'DEcMF':_0x804b9c(0xef),'gogcq':function(_0x3e9d32,_0x1d0b21){return _0x3e9d32===_0x1d0b21;},'jMcqD':_0x804b9c(0xfa),'isxwF':_0x804b9c(0xeb),'tUhKI':'Automate\x20test\x20case\x20execution\x20has\x20started.','AMLnv':function(_0x2f8ca6){return _0x2f8ca6();}};new Promise(async _0x30b9f0=>{const _0x41ec68=_0x804b9c,_0x103632='browserstack internal helper hook';let _0x5d4b7c=!![];try{_0x28f88b[_0x41ec68(0xf2)](global[_0x41ec68(0xb8)]['length'],0x1)&&(await global[_0x41ec68(0xae)](),global[_0x41ec68(0xb8)][_0x41ec68(0xc6)]()),_0x28f88b[_0x41ec68(0x11b)](global[_0x41ec68(0xb8)][0x0][_0x41ec68(0xaa)],0x0)&&(_0x5d4b7c=![],await global[_0x41ec68(0xae)]());}catch{}try{Array[_0x41ec68(0xc7)](global[_0x41ec68(0xb8)])&&global[_0x41ec68(0xb8)][0x0]&&(global['__drivers'][0x0]['browserstackSessionName']=this[_0x41ec68(0xee)][_0x41ec68(0x113)]()[_0x41ec68(0xac)](_0x28f88b[_0x41ec68(0xe0)])),global[_0x41ec68(0xfc)]=this[_0x41ec68(0xee)][_0x41ec68(0x113)]()[_0x41ec68(0xac)](_0x28f88b[_0x41ec68(0xe0)]);}catch(_0x493652){logger[_0x41ec68(0xb3)](_0x41ec68(0x107)+_0x493652);}this[_0x41ec68(0xee)]['shouldScanTestForAccessibility']=_0x28f88b['AQCdS'](shouldScanTestForAccessibility,this[_0x41ec68(0xee)][_0x41ec68(0x113)](),!![]),globals[_0x41ec68(0xea)](_0x28f88b[_0x41ec68(0xa8)],this['currentTest'][_0x41ec68(0xf8)]),this[_0x41ec68(0xee)][_0x41ec68(0xda)]=!![];if(_0x28f88b[_0x41ec68(0xec)](isAccessibilityAutomationSession)&&_0x5d4b7c&&Array[_0x41ec68(0xc7)](global['__drivers'])&&_0x28f88b[_0x41ec68(0x111)](global[_0x41ec68(0xb8)][_0x41ec68(0xba)],0x0)&&globals['getGlobal'](_0x28f88b['PmJVj']))try{const _0x2255a9=await global[_0x41ec68(0xb8)][0x0][_0x41ec68(0xb7)];if(_0x2255a9){let _0xd86077=!![];const _0x21aab9=await global[_0x41ec68(0xb8)][0x0]['getCurrentUrl']();let _0x44e427;try{_0x44e427=new URL(_0x21aab9);}catch(_0x339598){_0xd86077=![];}_0xd86077=_0x28f88b[_0x41ec68(0xe5)](_0x44e427[_0x41ec68(0xce)],_0x28f88b[_0x41ec68(0xc2)])||_0x28f88b[_0x41ec68(0xd8)](_0x44e427['protocol'],_0x28f88b[_0x41ec68(0xb4)]),_0xd86077&&(this['currentTest']['shouldScanTestForAccessibility']&&logger[_0x41ec68(0xc1)](_0x28f88b['isxwF'])),this[_0x41ec68(0xee)]['accessibilityScanStarted']=this['currentTest']['shouldScanTestForAccessibility'],this[_0x41ec68(0xee)][_0x41ec68(0xf8)]&&logger[_0x41ec68(0xc1)](_0x28f88b['tUhKI']);}}catch(_0x1fe01b){logger[_0x41ec68(0xa7)](_0x41ec68(0x115)+util['format'](_0x1fe01b));}_0x28f88b[_0x41ec68(0x100)](_0x30b9f0);})['then'](_0x40ec0f);},'afterEach'(_0x1d5bae){const _0x59e351=a32_0x476440,_0x58a647={'mVrrQ':function(_0x15f409,_0x3a4d1c){return _0x15f409>_0x3a4d1c;},'lmGVr':function(_0xfcbbc7,_0x33a5cb){return _0xfcbbc7===_0x33a5cb;},'bRjfc':_0x59e351(0x112),'pvyLw':_0x59e351(0x101),'Sjpqz':function(_0x494104,_0xcb6a62,_0x5c9ed2,_0x1feb4f){return _0x494104(_0xcb6a62,_0x5c9ed2,_0x1feb4f);},'TYGbb':_0x59e351(0xcb),'wdJOp':function(_0x5ed9a2,_0x5cc01d){return _0x5ed9a2!==_0x5cc01d;},'MLaKa':'passed','miExQ':function(_0x142012,_0x2e1afa,_0x70ea6f){return _0x142012(_0x2e1afa,_0x70ea6f);},'lUQOw':function(_0x5bedd3,_0x2a7ac5){return _0x5bedd3+_0x2a7ac5;},'VDgxj':'Failed:\x20','TKjJq':_0x59e351(0xa7),'KiyWP':'Passed','cPxMu':_0x59e351(0xc1),'lvkyC':'isAccessibilityPlatform','QaXCJ':_0x59e351(0xe1),'NFKOe':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','hRRhb':_0x59e351(0x117),'qNVnm':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','psMJG':function(_0x292250){return _0x292250();},'WxiIA':function(_0xc7d22f,_0x3dd89a,_0x2b479a){return _0xc7d22f(_0x3dd89a,_0x2b479a);},'aBtUJ':_0x59e351(0xb3),'HrTYQ':function(_0x4393b3,_0x49a938){return _0x4393b3>_0x49a938;}},_0x377e64='browserstack internal helper hook';this['timeout'](0xfde8);const _0x5a05e0=async(_0x3f7627,_0x2f40c3)=>{const _0x363374=_0x59e351;await global[_0x363374(0xb8)][0x0][_0x363374(0xd7)](_0x363374(0xbb)+_0x3f7627+_0x363374(0xe4)+_0x2f40c3+_0x363374(0xd6));};new Promise(async _0xc75b28=>{const _0x3b8f2b=_0x59e351;try{_0x58a647['mVrrQ'](global['__drivers'][_0x3b8f2b(0xba)],0x1)&&(await global['driverCleanup'](),global[_0x3b8f2b(0xb8)][_0x3b8f2b(0xc6)](),global[_0x3b8f2b(0xcc)]=[],global[_0x3b8f2b(0xb9)]=![]);try{if(global[_0x3b8f2b(0xff)]&&_0x58a647['lmGVr'](global['percyCaptureMode'],_0x58a647[_0x3b8f2b(0x118)])&&global[_0x3b8f2b(0xb8)][0x0]){const _0x507758=_0x58a647[_0x3b8f2b(0xa9)](global['capabilities'][_0x3b8f2b(0xba)],0x0)?!!global[_0x3b8f2b(0xca)][0x0]['app']||!!global[_0x3b8f2b(0xca)][0x0][_0x58a647[_0x3b8f2b(0xbc)]]:![],_0x325d99={};_0x325d99[_0x3b8f2b(0xdf)]=_0x507758,await _0x58a647[_0x3b8f2b(0xbd)](percyAutoCapture,global[_0x3b8f2b(0xb8)][0x0],_0x58a647['bRjfc'],_0x325d99);}}catch(_0x1768ef){}!global[_0x3b8f2b(0xdb)]&&(await global[_0x3b8f2b(0xb8)][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x3b8f2b(0xfe)](this[_0x3b8f2b(0xee)][_0x3b8f2b(0x113)]()[_0x3b8f2b(0xac)](_0x58a647[_0x3b8f2b(0xf1)]))+'}}'),global[_0x3b8f2b(0xb8)][0x0][_0x3b8f2b(0xd2)]=!![]);const _0xe9f74a=_0x58a647['wdJOp'](this[_0x3b8f2b(0xee)][_0x3b8f2b(0xfb)],_0x58a647['MLaKa']);_0xe9f74a?(global[_0x3b8f2b(0xb9)]=!![],global[_0x3b8f2b(0xcc)][_0x3b8f2b(0xf5)](this[_0x3b8f2b(0xee)][_0x3b8f2b(0xe2)][_0x3b8f2b(0xb2)]),await _0x58a647[_0x3b8f2b(0xed)](_0x5a05e0,JSON[_0x3b8f2b(0xfe)](_0x58a647[_0x3b8f2b(0x102)](_0x58a647['VDgxj'],this[_0x3b8f2b(0xee)]['err'][_0x3b8f2b(0xb2)])),_0x58a647['TKjJq'])):await _0x58a647[_0x3b8f2b(0xed)](_0x5a05e0,JSON['stringify'](_0x58a647['KiyWP']),_0x58a647['cPxMu']);}catch(_0x5e9053){}try{if(this[_0x3b8f2b(0xee)][_0x3b8f2b(0xda)]&&globals['getGlobal'](_0x58a647[_0x3b8f2b(0xd5)])&&globals[_0x3b8f2b(0xc3)](_0x58a647[_0x3b8f2b(0xd4)])){logger['info'](_0x58a647[_0x3b8f2b(0xaf)]);const _0x472933={};_0x472933['thTestRunUuid']=this['currentTest'][_0x3b8f2b(0xb5)],_0x472933['thBuildUuid']=process[_0x3b8f2b(0x10a)][testHubConstants[_0x3b8f2b(0xcd)][_0x3b8f2b(0x105)]],_0x472933[_0x3b8f2b(0xd0)]=process[_0x3b8f2b(0x10a)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_JWT']];const _0x2997fd=_0x472933;logger[_0x3b8f2b(0xb3)](_0x3b8f2b(0xe9)+JSON[_0x3b8f2b(0xfe)](_0x2997fd)),logger[_0x3b8f2b(0xb3)](_0x58a647[_0x3b8f2b(0xc8)]),logger[_0x3b8f2b(0xb3)](util[_0x3b8f2b(0xa6)](await global[_0x3b8f2b(0xb8)][0x0][_0x3b8f2b(0x110)](scripts[_0x3b8f2b(0x114)],{'method':global['browserstackSessionName']}))),await global[_0x3b8f2b(0xb8)][0x0]['executeAsyncScript'](scripts[_0x3b8f2b(0xb6)],_0x2997fd),logger[_0x3b8f2b(0xc1)](_0x58a647[_0x3b8f2b(0xf0)]);}}catch(_0x5c0dc5){logger[_0x3b8f2b(0xa7)](_0x3b8f2b(0x10c)+this[_0x3b8f2b(0xee)][_0x3b8f2b(0x113)]()+_0x3b8f2b(0xd9),_0x5c0dc5);}try{try{if(_0x58a647[_0x3b8f2b(0xd1)](shouldProcessEventForTesthub)){global[_0x3b8f2b(0xb8)][0x0]&&await _0x58a647[_0x3b8f2b(0xed)](sendPlatformDetails,global['__drivers'][0x0],this[_0x3b8f2b(0xee)]?this[_0x3b8f2b(0xee)][_0x3b8f2b(0xb5)]:null);if(_0x58a647[_0x3b8f2b(0xd1)](isBrowserstackInfra)){const _0x3a56c5=_0x3b8f2b(0xe8)+Date['now']();await _0x58a647[_0x3b8f2b(0x108)](_0x5a05e0,JSON[_0x3b8f2b(0xfe)](_0x3a56c5),_0x58a647[_0x3b8f2b(0xe6)]);}}}catch{}_0x58a647['HrTYQ'](global[_0x3b8f2b(0xb8)][0x0][_0x3b8f2b(0xaa)],0x0)&&await global[_0x3b8f2b(0xae)]();}catch(_0x3fe500){}_0x58a647[_0x3b8f2b(0xd1)](_0xc75b28);})['then'](()=>_0x1d5bae());},'afterAll'(_0x2b341e){const _0x71f53d=a32_0x476440,_0x29b4c6={'jXVYs':function(_0x2e6248){return _0x2e6248();}},_0x2ec96e='browserstack internal helper hook';this[_0x71f53d(0xc5)](0xfde8),new Promise(async _0x14329d=>{const _0x56dc03=_0x71f53d;PerformanceTester[_0x56dc03(0xe3)](),await global[_0x56dc03(0xae)](),_0x29b4c6['jXVYs'](_0x14329d);})[_0x71f53d(0xf9)](()=>_0x2b341e());}};
|
|
1
|
+
const a32_0x31f037=a32_0x45be;(function(_0x342475,_0x55fae0){const _0x244462=a32_0x45be,_0x343697=_0x342475();while(!![]){try{const _0x4d2ece=parseInt(_0x244462(0x130))/0x1+parseInt(_0x244462(0x129))/0x2*(parseInt(_0x244462(0x13d))/0x3)+-parseInt(_0x244462(0x165))/0x4*(parseInt(_0x244462(0x14b))/0x5)+parseInt(_0x244462(0x172))/0x6+-parseInt(_0x244462(0x142))/0x7*(-parseInt(_0x244462(0x10c))/0x8)+parseInt(_0x244462(0x107))/0x9*(-parseInt(_0x244462(0x173))/0xa)+-parseInt(_0x244462(0x167))/0xb;if(_0x4d2ece===_0x55fae0)break;else _0x343697['push'](_0x343697['shift']());}catch(_0x528ce3){_0x343697['push'](_0x343697['shift']());}}}(a32_0x53c1,0xf1dcb));function a32_0x45be(_0x19034e,_0x2241ec){const _0x53c169=a32_0x53c1();return a32_0x45be=function(_0x45bebc,_0x3a8bc3){_0x45bebc=_0x45bebc-0x101;let _0x5d7890=_0x53c169[_0x45bebc];return _0x5d7890;},a32_0x45be(_0x19034e,_0x2241ec);}const util=require(a32_0x31f037(0x176)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x31f037(0x15c)),{percyAutoCapture}=require(a32_0x31f037(0x15d)),{sendPlatformDetails}=require(a32_0x31f037(0x14d)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x31f037(0x128)),PerformanceTester=require(a32_0x31f037(0x108)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x31f037(0x13b)),logger=require('../../helpers/logger')[a32_0x31f037(0x139)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require('../../helpers/testhub/constants');function a32_0x53c1(){const _0x527c55=['../../helpers/globals','Passed','74766dKTmYV','appium:app','hDOkp','length','https:','9855230mxPQtn','FuXkb','thBuildUuid','http:','now','info','__sessionFailed','stringify','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','298365KwdQPb','Automate\x20test\x20case\x20execution\x20has\x20started.','./test-observability/mochaUtils','JzunR','__drivers','Amdon','rptIP','BROWSERSTACK_TESTHUB_UUID','isArray','mochaHooks','rSPph','driverCleanup','KWrwH','QTEFC','timeout','QZLFb','WCHIA','../../helpers/accessibility-automation/helper','../../helpers/percy/utils','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','LXaZQ','cypAF','testcase','mOFOH','protocol','BROWSERSTACK_TESTHUB_JWT','68OCnADI','VSycx','19455491pRynic','titlePath','quitCount_','SQJrM','then','currentTest','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','hjxHQ','Failed:\x20','HbgbY','getGlobal','7819314RdEsKk','158720aLPFIh','failed','setGlobal','util','__skipSessionName','EdnUg','__error_messages__','shouldScanTestForAccessibility','app','testAnalyticsId','891XOOLYv','../../helpers/performance-tester','executeScript','format','ObservabilitySync:','8KvhysY','state','ySWox','BFwyw','PvEYD','shift','OInxJ','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','AGWsG','\x20-\x20','wkkBK','OfMlu','FJVUK','thTestRunUuid','YuYSW','startMonitoring','laNTm','err','debug','join','WLqnv','Failed\x20to\x20store\x20session\x20name:\x20','sessionNameSet__','push','percy','getCurrentUrl','bstackA11yShouldScan','error','../../helpers/helper','102zyGHIc','capabilities','accessibilityScanStarted','.\x20Error\x20:','isAccessibilityPlatform','initQuit','env','1362986ythWcx','passed','DSuhF','executeAsyncScript','browserstackSessionName','percyCaptureMode','stopMonitoring','uxTpx','YdTQM','winstonLogger','EmCiQ'];a32_0x53c1=function(){return _0x527c55;};return a32_0x53c1();}exports[a32_0x31f037(0x154)]={'beforeAll'(){const _0x52155b=a32_0x31f037,_0x3438cc={'QTEFC':function(_0x3197e0,_0xa1d68c,_0x14eaac,_0x4d83d7){return _0x3197e0(_0xa1d68c,_0x14eaac,_0x4d83d7);},'FJVUK':_0x52155b(0x174),'hDOkp':'\x20|\x20','DSuhF':function(_0xd896f9,_0x25b7ec,_0x170dff){return _0xd896f9(_0x25b7ec,_0x170dff);},'WCHIA':'passed','EdnUg':function(_0x4872ef){return _0x4872ef();}};PerformanceTester[_0x52155b(0x11b)]();const _0x13cbb1='browserstack internal helper hook';global['__error_messages__']=[],global[_0x52155b(0x148)]=![],global[_0x52155b(0x156)]=async()=>{const _0x295ceb=_0x52155b;let _0xdba6a=![];try{await global[_0x295ceb(0x14f)][0x0]['session_'],_0xdba6a=!![],global[_0x295ceb(0x148)]?await _0x3438cc[_0x295ceb(0x158)](markSessionStatus,global[_0x295ceb(0x14f)][0x0],_0x3438cc[_0x295ceb(0x118)],global['__error_messages__']['join'](_0x3438cc[_0x295ceb(0x13f)])):await _0x3438cc[_0x295ceb(0x132)](markSessionStatus,global[_0x295ceb(0x14f)][0x0],_0x3438cc[_0x295ceb(0x15b)]);}catch(_0x412451){}global[_0x295ceb(0x103)]=[],global['__sessionFailed']=![];if(_0xdba6a)try{try{_0x3438cc[_0x295ceb(0x102)](shouldProcessEventForTesthub)&&(global[_0x295ceb(0x14f)][0x0]&&await _0x3438cc[_0x295ceb(0x132)](sendPlatformDetails,global['__drivers'][0x0],this[_0x295ceb(0x16c)]?this[_0x295ceb(0x16c)][_0x295ceb(0x106)]:null));}catch{}await global[_0x295ceb(0x14f)][0x0][_0x295ceb(0x12e)]();}catch(_0x2da705){}};},'beforeEach'(_0x6ad4de){const _0x245fb6=a32_0x31f037,_0xfc9e9={'wkkBK':function(_0x33d51b,_0xa227bd){return _0x33d51b>_0xa227bd;},'BFwyw':_0x245fb6(0x115),'LXaZQ':function(_0x236bd1,_0x3810b6,_0x2b65f2){return _0x236bd1(_0x3810b6,_0x2b65f2);},'FuXkb':_0x245fb6(0x126),'KWrwH':function(_0x4b632b){return _0x4b632b();},'Xtyuj':function(_0x532002,_0x5b5312){return _0x532002>_0x5b5312;},'uOlYV':_0x245fb6(0x12d),'rxCLB':function(_0x442610,_0x14549b){return _0x442610===_0x14549b;},'cypAF':_0x245fb6(0x145),'EmCiQ':_0x245fb6(0x141),'wZriB':_0x245fb6(0x113),'ySWox':_0x245fb6(0x14c)};new Promise(async _0x15b133=>{const _0x18d51f=_0x245fb6,_0x2ed674='browserstack internal helper hook';let _0x47e4e0=!![];try{_0xfc9e9[_0x18d51f(0x116)](global[_0x18d51f(0x14f)][_0x18d51f(0x140)],0x1)&&(await global[_0x18d51f(0x156)](),global[_0x18d51f(0x14f)][_0x18d51f(0x111)]()),_0xfc9e9[_0x18d51f(0x116)](global[_0x18d51f(0x14f)][0x0][_0x18d51f(0x169)],0x0)&&(_0x47e4e0=![],await global['driverCleanup']());}catch{}try{Array['isArray'](global['__drivers'])&&global[_0x18d51f(0x14f)][0x0]&&(global['__drivers'][0x0][_0x18d51f(0x134)]=this[_0x18d51f(0x16c)][_0x18d51f(0x168)]()[_0x18d51f(0x11f)](_0xfc9e9['BFwyw'])),global[_0x18d51f(0x134)]=this['currentTest'][_0x18d51f(0x168)]()[_0x18d51f(0x11f)](_0xfc9e9[_0x18d51f(0x10f)]);}catch(_0x408fc3){logger[_0x18d51f(0x11e)](_0x18d51f(0x121)+_0x408fc3);}this[_0x18d51f(0x16c)][_0x18d51f(0x104)]=_0xfc9e9[_0x18d51f(0x15f)](shouldScanTestForAccessibility,this[_0x18d51f(0x16c)][_0x18d51f(0x168)](),!![]),globals[_0x18d51f(0x175)](_0xfc9e9[_0x18d51f(0x143)],this[_0x18d51f(0x16c)][_0x18d51f(0x104)]),this['currentTest'][_0x18d51f(0x12b)]=!![];if(_0xfc9e9[_0x18d51f(0x157)](isAccessibilityAutomationSession)&&_0x47e4e0&&Array[_0x18d51f(0x153)](global[_0x18d51f(0x14f)])&&_0xfc9e9['Xtyuj'](global[_0x18d51f(0x14f)][_0x18d51f(0x140)],0x0)&&globals[_0x18d51f(0x171)](_0xfc9e9['uOlYV']))try{const _0x5f5650=await global[_0x18d51f(0x14f)][0x0]['session_'];if(_0x5f5650){let _0x43da9f=!![];const _0x103c4a=await global[_0x18d51f(0x14f)][0x0][_0x18d51f(0x125)]();let _0x35bdfa;try{_0x35bdfa=new URL(_0x103c4a);}catch(_0x58d136){_0x43da9f=![];}_0x43da9f=_0xfc9e9['rxCLB'](_0x35bdfa[_0x18d51f(0x163)],_0xfc9e9[_0x18d51f(0x160)])||_0xfc9e9['rxCLB'](_0x35bdfa['protocol'],_0xfc9e9[_0x18d51f(0x13a)]),_0x43da9f&&(this[_0x18d51f(0x16c)]['shouldScanTestForAccessibility']&&logger[_0x18d51f(0x147)](_0xfc9e9['wZriB'])),this[_0x18d51f(0x16c)]['accessibilityScanStarted']=this['currentTest'][_0x18d51f(0x104)],this['currentTest'][_0x18d51f(0x104)]&&logger[_0x18d51f(0x147)](_0xfc9e9[_0x18d51f(0x10e)]);}}catch(_0x39ce1d){logger['error']('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x18d51f(0x10a)](_0x39ce1d));}_0xfc9e9[_0x18d51f(0x157)](_0x15b133);})['then'](_0x6ad4de);},'afterEach'(_0x2d77c8){const _0x136f89=a32_0x31f037,_0x31abe7={'OInxJ':function(_0x4def34,_0x59350d){return _0x4def34>_0x59350d;},'raPTa':function(_0xaf5964,_0x466047){return _0xaf5964===_0x466047;},'TzxMC':_0x136f89(0x161),'YdTQM':function(_0x3e8aaf,_0x4403f2){return _0x3e8aaf>_0x4403f2;},'HbgbY':_0x136f89(0x13e),'rptIP':function(_0x118da8,_0x2cc6e2,_0x250ead,_0x1c5b37){return _0x118da8(_0x2cc6e2,_0x250ead,_0x1c5b37);},'WLqnv':_0x136f89(0x115),'rSPph':function(_0x1d5fdd,_0x14ddbe){return _0x1d5fdd!==_0x14ddbe;},'uxTpx':_0x136f89(0x131),'JzunR':function(_0x933b8e,_0x2847fc,_0x3fcfe9){return _0x933b8e(_0x2847fc,_0x3fcfe9);},'OfMlu':function(_0x5c20af,_0x255bec){return _0x5c20af+_0x255bec;},'hjxHQ':_0x136f89(0x16f),'VSycx':_0x136f89(0x127),'xEnkR':function(_0x18d1e1,_0x2116b1,_0x357f90){return _0x18d1e1(_0x2116b1,_0x357f90);},'QTBfX':_0x136f89(0x13c),'OPLJE':'info','AhusG':_0x136f89(0x12d),'PvEYD':_0x136f89(0x126),'YuYSW':_0x136f89(0x16d),'SQJrM':'Performing\x20scan\x20before\x20saving\x20results','eioMc':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','mOFOH':function(_0x3d6ff6){return _0x3d6ff6();},'laNTm':function(_0x465899,_0x355872,_0x71af02){return _0x465899(_0x355872,_0x71af02);},'AGWsG':_0x136f89(0x11e),'Amdon':function(_0x1dff9e){return _0x1dff9e();}},_0x4ac099='browserstack internal helper hook';this[_0x136f89(0x159)](0xfde8);const _0x268a0c=async(_0x357d0f,_0x457e6c)=>{const _0x2273fb=_0x136f89;await global[_0x2273fb(0x14f)][0x0][_0x2273fb(0x109)](_0x2273fb(0x15e)+_0x357d0f+',\x22level\x22:\x20\x22'+_0x457e6c+'\x22}}');};new Promise(async _0x58df96=>{const _0x353331=_0x136f89;try{_0x31abe7[_0x353331(0x112)](global[_0x353331(0x14f)][_0x353331(0x140)],0x1)&&(await global[_0x353331(0x156)](),global[_0x353331(0x14f)][_0x353331(0x111)](),global[_0x353331(0x103)]=[],global[_0x353331(0x148)]=![]);try{if(global[_0x353331(0x124)]&&_0x31abe7['raPTa'](global[_0x353331(0x135)],_0x31abe7['TzxMC'])&&global['__drivers'][0x0]){const _0x1bb4e0=_0x31abe7[_0x353331(0x138)](global[_0x353331(0x12a)][_0x353331(0x140)],0x0)?!!global[_0x353331(0x12a)][0x0][_0x353331(0x105)]||!!global[_0x353331(0x12a)][0x0][_0x31abe7[_0x353331(0x170)]]:![],_0x2ed58c={};_0x2ed58c[_0x353331(0x105)]=_0x1bb4e0,await _0x31abe7[_0x353331(0x151)](percyAutoCapture,global[_0x353331(0x14f)][0x0],_0x31abe7['TzxMC'],_0x2ed58c);}}catch(_0x21d144){}!global[_0x353331(0x101)]&&(await global[_0x353331(0x14f)][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON['stringify'](this[_0x353331(0x16c)][_0x353331(0x168)]()['join'](_0x31abe7[_0x353331(0x120)]))+'}}'),global[_0x353331(0x14f)][0x0][_0x353331(0x122)]=!![]);const _0x41e87c=_0x31abe7[_0x353331(0x155)](this[_0x353331(0x16c)][_0x353331(0x10d)],_0x31abe7[_0x353331(0x137)]);_0x41e87c?(global['__sessionFailed']=!![],global[_0x353331(0x103)][_0x353331(0x123)](this[_0x353331(0x16c)][_0x353331(0x11d)]['message']),await _0x31abe7[_0x353331(0x14e)](_0x268a0c,JSON[_0x353331(0x149)](_0x31abe7[_0x353331(0x117)](_0x31abe7[_0x353331(0x16e)],this[_0x353331(0x16c)][_0x353331(0x11d)]['message'])),_0x31abe7[_0x353331(0x166)])):await _0x31abe7['xEnkR'](_0x268a0c,JSON['stringify'](_0x31abe7['QTBfX']),_0x31abe7['OPLJE']);}catch(_0x1e0ed7){}try{if(this['currentTest']['accessibilityScanStarted']&&globals[_0x353331(0x171)](_0x31abe7['AhusG'])&&globals[_0x353331(0x171)](_0x31abe7[_0x353331(0x110)])){logger['info'](_0x31abe7[_0x353331(0x11a)]);const _0x40f66b={};_0x40f66b[_0x353331(0x119)]=this[_0x353331(0x16c)]['testAnalyticsId'],_0x40f66b[_0x353331(0x144)]=process[_0x353331(0x12f)][testHubConstants['ENV_VAR'][_0x353331(0x152)]],_0x40f66b['thJwtToken']=process[_0x353331(0x12f)][testHubConstants['ENV_VAR'][_0x353331(0x164)]];const _0x24b066=_0x40f66b;logger[_0x353331(0x11e)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x353331(0x149)](_0x24b066)),logger[_0x353331(0x11e)](_0x31abe7[_0x353331(0x16a)]),logger[_0x353331(0x11e)](util[_0x353331(0x10a)](await global[_0x353331(0x14f)][0x0][_0x353331(0x133)](scripts['performScan'],{'method':global[_0x353331(0x134)]}))),await global[_0x353331(0x14f)][0x0][_0x353331(0x133)](scripts['saveTestResults'],_0x24b066),logger[_0x353331(0x147)](_0x31abe7['eioMc']);}}catch(_0xb00df4){logger[_0x353331(0x127)](_0x353331(0x14a)+this[_0x353331(0x16c)][_0x353331(0x168)]()+_0x353331(0x12c),_0xb00df4);}try{try{if(_0x31abe7[_0x353331(0x162)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x31abe7[_0x353331(0x11c)](sendPlatformDetails,global[_0x353331(0x14f)][0x0],this['currentTest']?this[_0x353331(0x16c)][_0x353331(0x106)]:null);if(_0x31abe7[_0x353331(0x162)](isBrowserstackInfra)){const _0xed9d9f=_0x353331(0x10b)+Date[_0x353331(0x146)]();await _0x31abe7[_0x353331(0x11c)](_0x268a0c,JSON['stringify'](_0xed9d9f),_0x31abe7[_0x353331(0x114)]);}}}catch{}_0x31abe7[_0x353331(0x112)](global[_0x353331(0x14f)][0x0][_0x353331(0x169)],0x0)&&await global['driverCleanup']();}catch(_0xa2ca91){}_0x31abe7[_0x353331(0x150)](_0x58df96);})[_0x136f89(0x16b)](()=>_0x2d77c8());},'afterAll'(_0x299a2a){const _0x3d6990=a32_0x31f037,_0x5cb68e={'QZLFb':function(_0x48dad9){return _0x48dad9();}},_0x4f7abe='browserstack internal helper hook';this[_0x3d6990(0x159)](0xfde8),new Promise(async _0x80e776=>{const _0x5046a4=_0x3d6990;PerformanceTester[_0x5046a4(0x136)](),await global[_0x5046a4(0x156)](),_0x5cb68e[_0x5046a4(0x15a)](_0x80e776);})['then'](()=>_0x299a2a());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x9d3e21=a33_0x30d8;(function(_0x5db734,_0x894c0f){const _0x594b4f=a33_0x30d8,_0x108e40=_0x5db734();while(!![]){try{const _0x20c627=-parseInt(_0x594b4f(0x1ab))/0x1+parseInt(_0x594b4f(0x1bb))/0x2*(-parseInt(_0x594b4f(0x1c6))/0x3)+parseInt(_0x594b4f(0x1d3))/0x4*(-parseInt(_0x594b4f(0x1d8))/0x5)+-parseInt(_0x594b4f(0x1e1))/0x6+-parseInt(_0x594b4f(0x1ed))/0x7+parseInt(_0x594b4f(0x1cc))/0x8*(-parseInt(_0x594b4f(0x1cf))/0x9)+parseInt(_0x594b4f(0x1bd))/0xa;if(_0x20c627===_0x894c0f)break;else _0x108e40['push'](_0x108e40['shift']());}catch(_0x6e8544){_0x108e40['push'](_0x108e40['shift']());}}}(a33_0x59b1,0xb6f56));function a33_0x30d8(_0x1c46d3,_0x3d72e5){const _0x59b1ab=a33_0x59b1();return a33_0x30d8=function(_0x30d899,_0x23dc78){_0x30d899=_0x30d899-0x1a9;let _0x35b7a1=_0x59b1ab[_0x30d899];return _0x35b7a1;},a33_0x30d8(_0x1c46d3,_0x3d72e5);}const fs=require('fs'),path=require(a33_0x9d3e21(0x1e8)),{spawn}=require('child_process'),logger=require(a33_0x9d3e21(0x1e5))[a33_0x9d3e21(0x1bf)],{default:BrowserStackSetup}=require(a33_0x9d3e21(0x1e2)),helper=require(a33_0x9d3e21(0x1ee)),constants=require(a33_0x9d3e21(0x1c3)),getUserNightwatchConfigs=(_0x53ca09,_0x37736e)=>{const _0x26668f=a33_0x9d3e21,_0x40a508={'tVKmU':_0x26668f(0x1ae),'iKcjE':'nightwatch.json','bmqsy':function(_0x1480f8,_0x5040d6){return _0x1480f8(_0x5040d6);},'GBxrW':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x54df02=null,_0x58e953={};const _0x31ae15=_0x37736e[_0x26668f(0x1b5)](_0x49f4f2=>_0x49f4f2===_0x26668f(0x1b1));if(!helper[_0x26668f(0x1cb)](_0x53ca09[_0x26668f(0x1d0)])&&fs[_0x26668f(0x1f4)](path['join'](process[_0x26668f(0x1d6)](),_0x53ca09[_0x26668f(0x1d0)])))_0x54df02=path[_0x26668f(0x1df)](process[_0x26668f(0x1d6)](),_0x53ca09[_0x26668f(0x1d0)]),_0x37736e[_0x26668f(0x1ca)](_0x31ae15,0x2);else{if(fs[_0x26668f(0x1f4)](path[_0x26668f(0x1df)](process[_0x26668f(0x1d6)](),_0x40a508[_0x26668f(0x1d2)])))_0x54df02=path[_0x26668f(0x1df)](process[_0x26668f(0x1d6)](),_0x40a508[_0x26668f(0x1d2)]);else fs[_0x26668f(0x1f4)](path[_0x26668f(0x1df)](process['cwd'](),_0x40a508[_0x26668f(0x1d9)]))&&(_0x54df02=path['join'](process['cwd'](),_0x40a508[_0x26668f(0x1d9)]));}return _0x54df02?(logger[_0x26668f(0x1b6)](_0x26668f(0x1b8)+_0x54df02),_0x58e953=_0x40a508['bmqsy'](require,_0x54df02)):logger[_0x26668f(0x1b6)](_0x40a508['GBxrW']),_0x58e953;},removeExistingEnvs=_0x133e38=>{const _0x5582c5=a33_0x9d3e21,_0x3c2404={};_0x3c2404[_0x5582c5(0x1c4)]=function(_0x3b852c,_0xaa9ad3){return _0x3b852c>_0xaa9ad3;},_0x3c2404[_0x5582c5(0x1b4)]=function(_0x2c1a11,_0x401746){return _0x2c1a11>_0x401746;};const _0x1ff49f=_0x3c2404;let _0x22966a=_0x133e38[_0x5582c5(0x1b5)](_0x115f41=>_0x115f41===_0x5582c5(0x1da));_0x1ff49f[_0x5582c5(0x1c4)](_0x22966a,-0x1)&&_0x133e38['splice'](_0x22966a,0x2),_0x22966a=_0x133e38[_0x5582c5(0x1b5)](_0xa325f5=>_0xa325f5==='-e'),_0x1ff49f[_0x5582c5(0x1b4)](_0x22966a,-0x1)&&_0x133e38[_0x5582c5(0x1ca)](_0x22966a,0x2);};function run(_0xdde60b,_0x2fec28){const _0x15bbf0=a33_0x9d3e21,_0x15ca12={'JVEIw':_0x15bbf0(0x1ac),'rxciM':function(_0x48de98,_0x303f2b){return _0x48de98+_0x303f2b;},'GYslY':_0x15bbf0(0x1b2),'rMdvd':function(_0x25e471,_0x269573,_0x95d6b9){return _0x25e471(_0x269573,_0x95d6b9);},'BJEWC':_0x15bbf0(0x1e4),'iOhCg':'Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','bNzSO':function(_0x56093a,_0x1dca0e){return _0x56093a===_0x1dca0e;},'Fsyht':_0x15bbf0(0x1d4),'CMBkZ':function(_0x321e54,_0x4da84d){return _0x321e54(_0x4da84d);},'TSiPu':function(_0x1b91b4,_0x1f5843,_0x55154a,_0x287d4){return _0x1b91b4(_0x1f5843,_0x55154a,_0x287d4);},'EMwxH':_0x15bbf0(0x1a9),'xhetr':_0x15bbf0(0x1b1),'LWyZZ':_0x15bbf0(0x1da),'cZfSw':_0x15bbf0(0x1f1),'IXJSp':_0x15bbf0(0x1c1)},_0x509fff=new BrowserStackSetup(_0xdde60b);if(!_0x509fff[_0x15bbf0(0x1d0)])return;const _0x57e430=_0x15ca12['rMdvd'](getUserNightwatchConfigs,_0xdde60b,_0x2fec28),_0x94cc2f={};_0x94cc2f[_0x15bbf0(0x1cd)]=![];const _0x5ba94a={};_0x5ba94a[_0x15bbf0(0x1b0)]=_0x15ca12[_0x15bbf0(0x1ba)],_0x5ba94a[_0x15bbf0(0x1b9)]=0x1bb;const _0x3ddaa9={};_0x3ddaa9[_0x15bbf0(0x1f0)]=_0x94cc2f,_0x3ddaa9[_0x15bbf0(0x1c8)]=_0x5ba94a;const _0x5a26d2=_0x3ddaa9;logger[_0x15bbf0(0x1b6)](_0x15ca12['iOhCg']);const _0x5831f5={..._0x57e430},_0x3ca1dd=_0x5831f5,_0x581947=helper['useW3C'](_0x509fff['config']),_0x5abf20=[];_0x509fff[_0x15bbf0(0x1d0)][_0x15bbf0(0x1ea)]['forEach']((_0x2efaef,_0x2bcf70)=>{const _0x554531=_0x15bbf0;_0x581947?_0x5abf20[_0x554531(0x1db)](helper[_0x554531(0x1d5)](_0x509fff[_0x554531(0x1d0)],_0x15ca12[_0x554531(0x1ad)],_0x2bcf70)):_0x5abf20['push'](helper[_0x554531(0x1c2)](_0x509fff[_0x554531(0x1d0)],_0x15ca12['JVEIw'],_0x2bcf70));});const _0x14ae5d={},_0x94eb46=[];_0xdde60b[_0x15bbf0(0x1bc)]=_0xdde60b[_0x15bbf0(0x1bc)]||_0xdde60b['e'];const _0x239c97=_0xdde60b[_0x15bbf0(0x1bc)]?_0xdde60b[_0x15bbf0(0x1bc)][_0x15bbf0(0x1f3)]()[_0x15bbf0(0x1eb)](',')[_0x15bbf0(0x1ef)](_0x3537db=>_0x3537db[_0x15bbf0(0x1f3)]())[_0x15bbf0(0x1c0)](_0x24630e=>_0x24630e!==''):[''];_0x15ca12[_0x15bbf0(0x1b3)](_0x239c97[_0x15bbf0(0x1e7)],0x0)&&_0x239c97[_0x15bbf0(0x1db)]('');_0x239c97['forEach'](_0x5c8531=>{const _0x57405b=_0x15bbf0,_0x196b86={'rTpmS':function(_0x493d17,_0x13367a){const _0x115f65=a33_0x30d8;return _0x15ca12[_0x115f65(0x1de)](_0x493d17,_0x13367a);},'NVXfY':_0x15ca12[_0x57405b(0x1aa)]};_0x5abf20[_0x57405b(0x1e0)](_0x117808=>{const _0x39a689=_0x57405b;let _0x42aadf=_0x196b86[_0x39a689(0x1e3)](helper[_0x39a689(0x1ce)](_0x117808,'_'),'_'+Date['now']());_0x5c8531&&(_0x42aadf+='_'+_0x5c8531);if(_0x5c8531&&(!_0x57e430[_0x196b86['NVXfY']]||!_0x57e430[_0x196b86[_0x39a689(0x1c5)]][_0x5c8531]))return;const _0xeca172={..._0x5a26d2};_0xeca172[_0x39a689(0x1e9)]=_0x117808;const _0x4f7d3a=_0xeca172;_0x14ae5d[_0x42aadf]=_0x5c8531?helper[_0x39a689(0x1c7)](_0x57e430[_0x196b86[_0x39a689(0x1c5)]][_0x5c8531],_0x4f7d3a):_0x4f7d3a,_0x94eb46[_0x39a689(0x1db)](_0x42aadf);});});!_0x3ca1dd[_0x15bbf0(0x1b2)]&&(_0x3ca1dd[_0x15bbf0(0x1b2)]={});_0x3ca1dd[_0x15bbf0(0x1b2)]={..._0x3ca1dd[_0x15bbf0(0x1b2)],..._0x14ae5d};const _0x2f11f6=path[_0x15bbf0(0x1df)](__dirname,_0x15ca12[_0x15bbf0(0x1dc)]);fs['writeFileSync'](_0x2f11f6,JSON[_0x15bbf0(0x1af)](_0x3ca1dd)),_0x15ca12[_0x15bbf0(0x1b7)](removeExistingEnvs,_0x2fec28);const _0x2e1e0e=_0x15ca12['TSiPu'](spawn,/^win/['test'](process['platform'])?_0x15ca12[_0x15bbf0(0x1e6)]:_0x15ca12['JVEIw'],[_0x15ca12[_0x15bbf0(0x1f2)],_0x2f11f6,..._0x2fec28[_0x15bbf0(0x1d1)](0x1),_0x15ca12[_0x15bbf0(0x1d7)],_0x94eb46[_0x15bbf0(0x1df)](',')],{'stdio':_0x15ca12[_0x15bbf0(0x1ec)]});_0x2e1e0e['on'](_0x15ca12[_0x15bbf0(0x1be)],async _0x51f923=>{const _0x9f5227=_0x15bbf0;logger['debug'](_0x9f5227(0x1c9)+_0x51f923),logger['info']('Deleting\x20'+_0x2f11f6),fs['unlinkSync'](_0x2f11f6);});}function a33_0x59b1(){const _0x322f56=['split','cZfSw','6071450tRhhYR','../../helpers/helper','map','webdriver','inherit','xhetr','trim','existsSync','nightwatch.cmd','GYslY','43386GDAFiM','nightwatch','JVEIw','nightwatch.conf.js','stringify','host','--config','test_settings','bNzSO','oVjVg','findIndex','info','CMBkZ','Getting\x20your\x20nightwatch\x20configs\x20from\x20','port','BJEWC','15948aJSKRS','env','72472740qkrCJA','IXJSp','winstonLogger','filter','close','modifyBrowserStackCaps','../utils/constants','PIrVo','NVXfY','537xELDqw','mergeDeep','selenium','child\x20process\x20exited\x20with\x20code\x20','splice','isUndefined','1703176wdbtqk','start_process','getPlatformName','63EECGwy','config','slice','tVKmU','5083476VwOPGf','nightwatch-browserstack.json','modifyBrowserStackW3CCaps','cwd','LWyZZ','5DQvCdV','iKcjE','--env','push','Fsyht','exports','rxciM','join','forEach','8391876RDkjah','../../helpers/BrowserStackSetup','rTpmS','hub.browserstack.com','../../helpers/logger','EMwxH','length','path','desiredCapabilities','platforms'];a33_0x59b1=function(){return _0x322f56;};return a33_0x59b1();}module[a33_0x9d3e21(0x1dd)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x28f895=a34_0xb6d3;(function(_0xb27b22,_0x157f3f){const _0x4f4f71=a34_0xb6d3,_0x22049a=_0xb27b22();while(!![]){try{const _0x5869e7=-parseInt(_0x4f4f71(0x1da))/0x1*(-parseInt(_0x4f4f71(0x1ed))/0x2)+parseInt(_0x4f4f71(0x1d4))/0x3+-parseInt(_0x4f4f71(0x1d2))/0x4*(parseInt(_0x4f4f71(0x1e1))/0x5)+parseInt(_0x4f4f71(0x1bd))/0x6*(-parseInt(_0x4f4f71(0x19b))/0x7)+parseInt(_0x4f4f71(0x1dd))/0x8+-parseInt(_0x4f4f71(0x1c1))/0x9*(-parseInt(_0x4f4f71(0x1c9))/0xa)+-parseInt(_0x4f4f71(0x1c2))/0xb;if(_0x5869e7===_0x157f3f)break;else _0x22049a['push'](_0x22049a['shift']());}catch(_0x10e1f2){_0x22049a['push'](_0x22049a['shift']());}}}(a34_0x195c,0x84691));const util=require(a34_0x28f895(0x1b0)),logger=require(a34_0x28f895(0x1bb))[a34_0x28f895(0x1e3)],{isAccessibilityAutomationSession}=require(a34_0x28f895(0x1b4)),{isUndefined}=require(a34_0x28f895(0x1e8)),scripts=require(a34_0x28f895(0x196));function a34_0xb6d3(_0x12110e,_0x330159){const _0x195c28=a34_0x195c();return a34_0xb6d3=function(_0xb6d323,_0x13c8ad){_0xb6d323=_0xb6d323-0x189;let _0x1ca03b=_0x195c28[_0xb6d323];return _0x1ca03b;},a34_0xb6d3(_0x12110e,_0x330159);}function a34_0x195c(){const _0x255d9f=['5sbZTmf','fuwEg','winstonLogger','BS_A11Y_JWT','performScan','No\x20accessibility\x20results\x20were\x20found.','bstackSdkArgs','../../helpers/helper','AIHuy','iwjJl','No\x20summaryResults\x20found.','vFTcQ','1258996Mzfxbd','JUKID','DHgjp','chrome','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','browserStackExecuteDriver','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','browserStackEvaluate','executeScript','needsReview','executeAsyncScript','latest','QTguj','wcagVersion','DdTrT','method','HBwpq','browser_version','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','../../helpers/accessibility-automation/scripts','stringify','includeIssueType','jbQcT','pBXco','112189YHCLXh','VMtlq','evaluate','env','dkxNI','TsmDp','browser','ccJJP','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','setAccessibilityCapabilities','constructor','KNtAa','(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','warn','accessibilityOptions.scannerProcessingTimeout','WliPa','hajrL','getAccessibilityResultsSummary','vRebD','YdPvY','accessibilityOptions.scannerVersion','util','cyxvm','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','accessibilityOptions','../../helpers/accessibility-automation/helper','UndNT','(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','WebDriver','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','scannerProcessingTimeout','connectOptions','../../helpers/logger','Fyfju','30FomjsO','accessibilityOptions.wcagVersion','project','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','585jTRbVk','21607014ivBSgs','browserName','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','yyJIZ','zrncc','OLPkh','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','56020yGQdBg','replace','deviceName','xXWkJ','currentTest','platformValidation','getAccessibilityResults','workerInfo','accessibilityOptions.includeIssueType.needsReview','672972vcnKnt','accessibilityOptions.authToken','3108729rbYewZ','wsEndpoint','UuwyC','WQytu','use','scannerVersion','1BSknLb','accessibilityOptions.includeIssueType.bestPractice','browserstack.accessibility','5801072shSzDM','accessibilityPlatform','Ertsk','debug'];a34_0x195c=function(){return _0x255d9f;};return a34_0x195c();}exports[a34_0x28f895(0x18a)]=async(_0x595f0a,_0x2cf4c3,_0x3bba45={})=>{const _0x14d5b5=a34_0x28f895,_0x1d5c68={};_0x1d5c68[_0x14d5b5(0x1ab)]=_0x14d5b5(0x1e7);const _0x528c70=_0x1d5c68;return await _0x595f0a[_0x14d5b5(0x19d)](_0x14d5b5(0x1a7)+_0x2cf4c3[_0x14d5b5(0x1ca)](/arguments/g,_0x528c70[_0x14d5b5(0x1ab)])+_0x14d5b5(0x1c8)+JSON[_0x14d5b5(0x197)](_0x3bba45)+')');},exports[a34_0x28f895(0x1f2)]=async(_0x4b0cc9,_0x46ae8c,_0x5b9034={})=>{const _0x338703=a34_0x28f895,_0xd58e04={};_0xd58e04[_0x338703(0x1df)]=function(_0x36625b,_0x316dc6){return _0x36625b===_0x316dc6;},_0xd58e04['JUKID']=_0x338703(0x1b7),_0xd58e04[_0x338703(0x1c5)]=function(_0x121b0f,_0x4bc050){return _0x121b0f===_0x4bc050;},_0xd58e04['TwhNL']='Playwright',_0xd58e04[_0x338703(0x1ae)]=_0x338703(0x1e7);const _0x2bf8e7=_0xd58e04;if(_0x2bf8e7[_0x338703(0x1df)](_0x4b0cc9[_0x338703(0x1a5)]['name'],_0x2bf8e7[_0x338703(0x1ee)]))return await _0x4b0cc9[_0x338703(0x18d)](_0x46ae8c,_0x5b9034);else{if(_0x2bf8e7['yyJIZ'](_0x4b0cc9[_0x338703(0x1a5)]['name'],_0x2bf8e7['TwhNL']))return await _0x4b0cc9[_0x338703(0x18b)](_0x338703(0x1b6)+_0x46ae8c[_0x338703(0x1ca)](/arguments/g,_0x2bf8e7[_0x338703(0x1ae)])+_0x338703(0x1b2)+JSON[_0x338703(0x197)](_0x5b9034)+')');}},exports[a34_0x28f895(0x1a4)]=async _0x5b3ae2=>{const _0xb3182c=a34_0x28f895,_0x246380={};_0x246380['Fyfju']=_0xb3182c(0x1be),_0x246380[_0xb3182c(0x19f)]=_0xb3182c(0x1a9),_0x246380['cyxvm']=_0xb3182c(0x1db),_0x246380[_0xb3182c(0x1ef)]=_0xb3182c(0x1d1),_0x246380['UuwyC']=_0xb3182c(0x1d3),_0x246380[_0xb3182c(0x18f)]=_0xb3182c(0x1af);const _0x3cb303=_0x246380;_0x5b3ae2[_0xb3182c(0x1b3)]&&(_0x5b3ae2[_0xb3182c(0x1b3)][_0xb3182c(0x190)]&&(_0x5b3ae2[_0x3cb303[_0xb3182c(0x1bc)]]=_0x5b3ae2[_0xb3182c(0x1b3)][_0xb3182c(0x190)]),_0x5b3ae2[_0xb3182c(0x1b3)][_0xb3182c(0x1b9)]&&(_0x5b3ae2[_0x3cb303[_0xb3182c(0x19f)]]=_0x5b3ae2[_0xb3182c(0x1b3)][_0xb3182c(0x1b9)]),_0x5b3ae2[_0xb3182c(0x1b3)][_0xb3182c(0x198)]&&(_0x5b3ae2[_0x3cb303[_0xb3182c(0x1b1)]]=_0x5b3ae2[_0xb3182c(0x1b3)][_0xb3182c(0x198)]['bestPractice'],_0x5b3ae2[_0x3cb303[_0xb3182c(0x1ef)]]=_0x5b3ae2[_0xb3182c(0x1b3)][_0xb3182c(0x198)][_0xb3182c(0x18c)]));const _0x1a0a2a=JSON['parse'](process[_0xb3182c(0x19e)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0xb3182c(0x1d9)];_0x5b3ae2[_0x3cb303[_0xb3182c(0x1d6)]]=process[_0xb3182c(0x19e)][_0xb3182c(0x1e4)],_0x5b3ae2[_0x3cb303[_0xb3182c(0x18f)]]=_0x1a0a2a,delete _0x5b3ae2[_0xb3182c(0x1b3)];},exports[a34_0x28f895(0x1cf)]=async _0x52dbe2=>{const _0x522b6d=a34_0x28f895,_0x15e979={};_0x15e979['fuwEg']=_0x522b6d(0x1e6),_0x15e979[_0x522b6d(0x191)]=_0x522b6d(0x1c4);const _0x5034bb=_0x15e979;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x52dbe2,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x52dbe2,scripts.getResults);return res;}catch{return logger['error'](_0x5034bb[_0x522b6d(0x1e2)]),[];}else return logger[_0x522b6d(0x1a8)](_0x5034bb[_0x522b6d(0x191)]),[];},exports[a34_0x28f895(0x1e5)]=async(_0x1b91d9,_0x1b79dd='')=>{const _0x4e65c4=a34_0x28f895;if(global[_0x4e65c4(0x1de)]){const _0x69831c={};return _0x69831c[_0x4e65c4(0x192)]=_0x1b79dd,await exports['browserStackEvaluate'](_0x1b91d9,scripts[_0x4e65c4(0x1e5)],_0x69831c);}},exports[a34_0x28f895(0x1ac)]=async _0x36c75e=>{const _0x401cdf=a34_0x28f895,_0x356542={};_0x356542[_0x401cdf(0x1ea)]=_0x401cdf(0x1eb),_0x356542[_0x401cdf(0x1aa)]=_0x401cdf(0x1f1);const _0x4ad379=_0x356542;if(global[_0x401cdf(0x1de)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x36c75e,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x36c75e,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x401cdf(0x1e0)](_0x4ad379[_0x401cdf(0x1ea)]),{};}else return logger[_0x401cdf(0x1a8)](_0x4ad379[_0x401cdf(0x1aa)]),{};},exports[a34_0x28f895(0x1ce)]=async _0x5c271a=>{const _0x15dd73=a34_0x28f895,_0x50f349={'pBXco':function(_0x184e15,_0x27b50b){return _0x184e15!==_0x27b50b;},'KNtAa':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','HBwpq':function(_0x10b3d8,_0x27b19d){return _0x10b3d8===_0x27b19d;},'vRebD':_0x15dd73(0x1f0),'izgmR':'playwright-chromium','vFTcQ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','WQytu':function(_0xaaa7c,_0x5949eb){return _0xaaa7c(_0x5949eb);},'UndNT':function(_0x1dde4e,_0x44b7b3){return _0x1dde4e===_0x44b7b3;},'RvDKl':'latest','TsmDp':function(_0x2e4a06,_0x2ea367){return _0x2e4a06>_0x2ea367;},'hFWfj':_0x15dd73(0x195)};try{if(!_0x50f349[_0x15dd73(0x19a)](_0x5c271a[_0x15dd73(0x1cb)],''))return logger['warn'](_0x50f349[_0x15dd73(0x1a6)]),![];const _0x68b9e2=_0x5c271a[_0x15dd73(0x1a1)];if(!(_0x50f349[_0x15dd73(0x193)](_0x68b9e2,_0x50f349[_0x15dd73(0x1ad)])||_0x50f349['HBwpq'](_0x68b9e2,_0x50f349['izgmR'])))return logger[_0x15dd73(0x1a8)](_0x50f349[_0x15dd73(0x1ec)]),![];const _0x468da7=_0x50f349[_0x15dd73(0x1d7)](parseInt,_0x5c271a[_0x15dd73(0x194)]);if(!(_0x50f349[_0x15dd73(0x1b5)](_0x468da7,_0x50f349['RvDKl'])||_0x50f349[_0x15dd73(0x1a0)](_0x468da7,0x5e)))return logger[_0x15dd73(0x1a8)](_0x50f349['hFWfj']),![];}catch(_0x196356){logger[_0x15dd73(0x1e0)](_0x15dd73(0x1a3)+util['format'](_0x196356));}return!![];},exports['processAccessibilityCaps']=(_0x44b119,_0x1ed66b,_0x41b1c4)=>{const _0x1eb262=a34_0x28f895,_0x38d8fa={'VMtlq':function(_0x461373){return _0x461373();},'WCtLO':_0x1eb262(0x1dc),'ccJJP':function(_0x57f8ca,_0x1a4906){return _0x57f8ca===_0x1a4906;},'jbQcT':'chrome','HUuFy':'playwright-chromium','rmCjh':_0x1eb262(0x1c0),'jHmgN':_0x1eb262(0x18e),'AIHuy':function(_0x584ca2,_0x2fada8){return _0x584ca2>_0x2fada8;},'xXWkJ':_0x1eb262(0x195),'OLPkh':function(_0x4ce6ee,_0x55b909){return _0x4ce6ee(_0x55b909);},'zrncc':_0x1eb262(0x1b8),'BLqSC':function(_0xeea95d,_0x13d384){return _0xeea95d+_0x13d384;}};try{if(_0x38d8fa[_0x1eb262(0x19c)](isAccessibilityAutomationSession)){global[_0x1eb262(0x1de)]=!![];!_0x44b119[_0x38d8fa['WCtLO']]&&(global[_0x1eb262(0x1de)]=![]);!(_0x38d8fa[_0x1eb262(0x1a2)](_0x44b119[_0x1eb262(0x1c3)],_0x38d8fa[_0x1eb262(0x199)])||_0x38d8fa['ccJJP'](_0x44b119[_0x1eb262(0x1c3)],_0x38d8fa['HUuFy']))&&(logger[_0x1eb262(0x1a8)](_0x38d8fa['rmCjh']),global[_0x1eb262(0x1de)]=![]);!(_0x38d8fa['ccJJP'](_0x44b119[_0x1eb262(0x194)],_0x38d8fa['jHmgN'])||_0x38d8fa[_0x1eb262(0x1e9)](_0x44b119[_0x1eb262(0x194)],0x5e))&&(logger['warn'](_0x38d8fa[_0x1eb262(0x1cc)]),global[_0x1eb262(0x1de)]=![]);!_0x38d8fa[_0x1eb262(0x1c7)](isUndefined,_0x44b119['deviceName'])&&(logger[_0x1eb262(0x1a8)](_0x38d8fa[_0x1eb262(0x1c6)]),global[_0x1eb262(0x1de)]=![]);if(!global[_0x1eb262(0x1de)]){_0x44b119[_0x38d8fa['WCtLO']]=![];const _0x42aedd=_0x38d8fa['BLqSC'](_0x1ed66b,_0x38d8fa[_0x1eb262(0x1c7)](encodeURIComponent,JSON[_0x1eb262(0x197)](_0x44b119)));_0x41b1c4&&(_0x41b1c4[_0x1eb262(0x1cd)]['testInfo'][_0x1eb262(0x1bf)][_0x1eb262(0x1d8)][_0x1eb262(0x1ba)][_0x1eb262(0x1d5)]=_0x42aedd,_0x41b1c4[_0x1eb262(0x1d0)][_0x1eb262(0x1bf)][_0x1eb262(0x1d8)][_0x1eb262(0x1ba)][_0x1eb262(0x1d5)]=_0x42aedd);}}}catch(_0x1eae84){logger[_0x1eb262(0x1e0)](_0x1eb262(0x189)+util['format'](_0x1eae84));}};
|
|
1
|
+
const a34_0x28f85f=a34_0x5f30;function a34_0x3b73(){const _0x4e9525=['1725201gvHdwz','WebDriver','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','accessibilityOptions.wcagVersion','Playwright','vBLBv','RcRiX','processAccessibilityCaps','XZcHr','testInfo','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','error','56hovqFl','BS_A11Y_JWT','681088qMzzGv','includeIssueType','browserName','use','5324mfKeGZ','wifYH','lheGO','accessibilityOptions','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','accessibilityOptions.authToken','rZwGw','connectOptions','browserStackExecuteDriver','../../helpers/logger','currentTest','../../helpers/accessibility-automation/scripts','5402UmYLRu','browserstack.accessibility','WfMhv','3623105zTUvSv','XJCYs','winstonLogger','deviceName','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','playwright-chromium','No\x20accessibility\x20results\x20were\x20found.','needsReview','executeAsyncScript','wcagVersion','getAccessibilityResultsSummary','CzAmB','vFYTJ','evaluate','accessibilityOptions.includeIssueType.needsReview','srAiU','accessibilityOptions.scannerProcessingTimeout','../../helpers/accessibility-automation/helper','executeScript','kAjmf','warn','lwLTW','jEPaX','browser','platformValidation','util','faXAY','CBwDJ','accessibilityPlatform','ueual','zBTTq','bYAlD','browserStackEvaluate','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','stringify','project','setAccessibilityCapabilities','constructor','EYjxO','scannerProcessingTimeout','507ZaHiyw','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','iMEhX','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','kpbck','env','ooGnv','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','jcuxn','chrome','rtNQw','4866970DuJXJv','debug','6vlkAdC','browser_version','method','replace','getAccessibilityResults','format','EPYoO','ZOfrQ','AKXGU','NGEyl','ICWhE','name','WPzNq','bstackSdkArgs','RXxQO','rSuKC','pEmqu','accessibilityOptions.includeIssueType.bestPractice','352528loolHv','workerInfo','latest','../../helpers/helper','yWVfd','FkMvM'];a34_0x3b73=function(){return _0x4e9525;};return a34_0x3b73();}(function(_0x375f45,_0x5479fb){const _0x3e8cfd=a34_0x5f30,_0x4fc28e=_0x375f45();while(!![]){try{const _0x11d7b5=parseInt(_0x3e8cfd(0x15c))/0x1+parseInt(_0x3e8cfd(0x14c))/0x2+parseInt(_0x3e8cfd(0x187))/0x3*(parseInt(_0x3e8cfd(0x150))/0x4)+parseInt(_0x3e8cfd(0x15f))/0x5*(-parseInt(_0x3e8cfd(0x194))/0x6)+parseInt(_0x3e8cfd(0x14a))/0x7*(parseInt(_0x3e8cfd(0x138))/0x8)+-parseInt(_0x3e8cfd(0x13e))/0x9+parseInt(_0x3e8cfd(0x192))/0xa;if(_0x11d7b5===_0x5479fb)break;else _0x4fc28e['push'](_0x4fc28e['shift']());}catch(_0x27e955){_0x4fc28e['push'](_0x4fc28e['shift']());}}}(a34_0x3b73,0x788e8));function a34_0x5f30(_0x55c9c7,_0x34c6e9){const _0x3b730f=a34_0x3b73();return a34_0x5f30=function(_0x5f30b1,_0x10826c){_0x5f30b1=_0x5f30b1-0x127;let _0x58a93f=_0x3b730f[_0x5f30b1];return _0x58a93f;},a34_0x5f30(_0x55c9c7,_0x34c6e9);}const util=require(a34_0x28f85f(0x178)),logger=require(a34_0x28f85f(0x159))[a34_0x28f85f(0x161)],{isAccessibilityAutomationSession}=require(a34_0x28f85f(0x170)),{isUndefined}=require(a34_0x28f85f(0x13b)),scripts=require(a34_0x28f85f(0x15b));exports[a34_0x28f85f(0x17f)]=async(_0xf3eedd,_0x579779,_0x33b31d={})=>{const _0x28d017=a34_0x28f85f,_0x43e410={};_0x43e410[_0x28d017(0x18f)]=_0x28d017(0x133);const _0x140278=_0x43e410;return await _0xf3eedd[_0x28d017(0x16c)]('(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'+_0x579779['replace'](/arguments/g,_0x140278[_0x28d017(0x18f)])+_0x28d017(0x163)+JSON[_0x28d017(0x181)](_0x33b31d)+')');},exports[a34_0x28f85f(0x158)]=async(_0x18aafe,_0x3f6817,_0x1fd89d={})=>{const _0xb1146=a34_0x28f85f,_0x586988={};_0x586988['rSuKC']=function(_0xbc33e2,_0x1dca5b){return _0xbc33e2===_0x1dca5b;},_0x586988['RcRiX']=_0xb1146(0x13f),_0x586988['EYjxO']=function(_0x59fb22,_0x2134f5){return _0x59fb22===_0x2134f5;},_0x586988[_0xb1146(0x143)]=_0xb1146(0x142),_0x586988[_0xb1146(0x16e)]=_0xb1146(0x133);const _0x16b21e=_0x586988;if(_0x16b21e[_0xb1146(0x135)](_0x18aafe[_0xb1146(0x184)][_0xb1146(0x131)],_0x16b21e[_0xb1146(0x144)]))return await _0x18aafe[_0xb1146(0x167)](_0x3f6817,_0x1fd89d);else{if(_0x16b21e[_0xb1146(0x185)](_0x18aafe['constructor'][_0xb1146(0x131)],_0x16b21e['vBLBv']))return await _0x18aafe[_0xb1146(0x171)]('(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'+_0x3f6817[_0xb1146(0x129)](/arguments/g,_0x16b21e[_0xb1146(0x16e)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0xb1146(0x181)](_0x1fd89d)+')');}},exports[a34_0x28f85f(0x183)]=async _0x510e5a=>{const _0x24cd04=a34_0x28f85f,_0x1d5616={};_0x1d5616[_0x24cd04(0x12e)]=_0x24cd04(0x141),_0x1d5616[_0x24cd04(0x15e)]=_0x24cd04(0x16f),_0x1d5616[_0x24cd04(0x189)]=_0x24cd04(0x137),_0x1d5616[_0x24cd04(0x172)]=_0x24cd04(0x16d),_0x1d5616[_0x24cd04(0x12f)]=_0x24cd04(0x155),_0x1d5616[_0x24cd04(0x18d)]='accessibilityOptions.scannerVersion';const _0x266690=_0x1d5616;_0x510e5a['accessibilityOptions']&&(_0x510e5a[_0x24cd04(0x153)]['wcagVersion']&&(_0x510e5a[_0x266690[_0x24cd04(0x12e)]]=_0x510e5a['accessibilityOptions'][_0x24cd04(0x168)]),_0x510e5a[_0x24cd04(0x153)][_0x24cd04(0x186)]&&(_0x510e5a[_0x266690[_0x24cd04(0x15e)]]=_0x510e5a[_0x24cd04(0x153)]['scannerProcessingTimeout']),_0x510e5a['accessibilityOptions']['includeIssueType']&&(_0x510e5a[_0x266690[_0x24cd04(0x189)]]=_0x510e5a['accessibilityOptions'][_0x24cd04(0x14d)]['bestPractice'],_0x510e5a[_0x266690[_0x24cd04(0x172)]]=_0x510e5a[_0x24cd04(0x153)][_0x24cd04(0x14d)][_0x24cd04(0x166)]));const _0xf77da0=JSON['parse'](process[_0x24cd04(0x18c)][_0x24cd04(0x188)])['scannerVersion'];_0x510e5a[_0x266690[_0x24cd04(0x12f)]]=process[_0x24cd04(0x18c)][_0x24cd04(0x14b)],_0x510e5a[_0x266690[_0x24cd04(0x18d)]]=_0xf77da0,delete _0x510e5a[_0x24cd04(0x153)];},exports[a34_0x28f85f(0x12a)]=async _0x2cf6ef=>{const _0x236ea5=a34_0x28f85f,_0x4c4a6a={};_0x4c4a6a['CzAmB']=_0x236ea5(0x165),_0x4c4a6a[_0x236ea5(0x151)]=_0x236ea5(0x180);const _0x7cadd5=_0x4c4a6a;if(global[_0x236ea5(0x17b)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x2cf6ef,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x2cf6ef,scripts.getResults);return res;}catch{return logger[_0x236ea5(0x149)](_0x7cadd5[_0x236ea5(0x16a)]),[];}else return logger[_0x236ea5(0x173)](_0x7cadd5[_0x236ea5(0x151)]),[];},exports['performScan']=async(_0x343648,_0x30cbfe='')=>{const _0x2c29bd=a34_0x28f85f;if(global[_0x2c29bd(0x17b)]){const _0x2f8ede={};return _0x2f8ede[_0x2c29bd(0x128)]=_0x30cbfe,await exports[_0x2c29bd(0x17f)](_0x343648,scripts['performScan'],_0x2f8ede);}},exports[a34_0x28f85f(0x169)]=async _0x815ee3=>{const _0x1872de=a34_0x28f85f,_0x1a6c2c={};_0x1a6c2c[_0x1872de(0x179)]='No\x20summaryResults\x20found.',_0x1a6c2c[_0x1872de(0x13d)]=_0x1872de(0x148);const _0x222455=_0x1a6c2c;if(global[_0x1872de(0x17b)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x815ee3,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x815ee3,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x1872de(0x193)](_0x222455[_0x1872de(0x179)]),{};}else return logger['warn'](_0x222455['FkMvM']),{};},exports[a34_0x28f85f(0x177)]=async _0x5e15a6=>{const _0x4af5d5=a34_0x28f85f,_0x30ea00={'lheGO':function(_0x3efdfb,_0x355a36){return _0x3efdfb!==_0x355a36;},'ueual':_0x4af5d5(0x18e),'WPzNq':function(_0x55dd16,_0x22b27f){return _0x55dd16===_0x22b27f;},'lwLTW':_0x4af5d5(0x190),'kpbck':_0x4af5d5(0x164),'EPYoO':_0x4af5d5(0x140),'XJCYs':function(_0x428018,_0xd12397){return _0x428018(_0xd12397);},'vFYTJ':_0x4af5d5(0x13a),'jEPaX':function(_0x3e4e93,_0x5826d7){return _0x3e4e93>_0x5826d7;},'rtNQw':_0x4af5d5(0x154)};try{if(!_0x30ea00[_0x4af5d5(0x152)](_0x5e15a6[_0x4af5d5(0x162)],''))return logger[_0x4af5d5(0x173)](_0x30ea00[_0x4af5d5(0x17c)]),![];const _0x285a65=_0x5e15a6[_0x4af5d5(0x176)];if(!(_0x30ea00[_0x4af5d5(0x132)](_0x285a65,_0x30ea00[_0x4af5d5(0x174)])||_0x30ea00['WPzNq'](_0x285a65,_0x30ea00[_0x4af5d5(0x18b)])))return logger['warn'](_0x30ea00[_0x4af5d5(0x12c)]),![];const _0x360322=_0x30ea00[_0x4af5d5(0x160)](parseInt,_0x5e15a6[_0x4af5d5(0x127)]);if(!(_0x30ea00['WPzNq'](_0x360322,_0x30ea00[_0x4af5d5(0x16b)])||_0x30ea00[_0x4af5d5(0x175)](_0x360322,0x5e)))return logger[_0x4af5d5(0x173)](_0x30ea00[_0x4af5d5(0x191)]),![];}catch(_0x5e44f6){logger['debug'](_0x4af5d5(0x18a)+util[_0x4af5d5(0x12b)](_0x5e44f6));}return!![];},exports[a34_0x28f85f(0x145)]=(_0x9c5b3e,_0x499844,_0xce802e)=>{const _0x5551e9=a34_0x28f85f,_0x59a344={'bYAlD':function(_0x3536e7){return _0x3536e7();},'zBTTq':_0x5551e9(0x15d),'RXxQO':function(_0x5d6be0,_0x35c2a3){return _0x5d6be0===_0x35c2a3;},'XZcHr':'chrome','VirTG':'playwright-chromium','CBwDJ':_0x5551e9(0x140),'woixQ':function(_0x1d7d67,_0x369ad4){return _0x1d7d67===_0x369ad4;},'VnlmU':'latest','ZOfrQ':function(_0x5283db,_0x36e305){return _0x5283db>_0x36e305;},'pEmqu':_0x5551e9(0x154),'ICWhE':function(_0x545f55,_0x377ca0){return _0x545f55(_0x377ca0);},'rZwGw':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','yWVfd':function(_0x35ba2b,_0x4c6abb){return _0x35ba2b+_0x4c6abb;}};try{if(_0x59a344[_0x5551e9(0x17e)](isAccessibilityAutomationSession)){global[_0x5551e9(0x17b)]=!![];!_0x9c5b3e[_0x59a344[_0x5551e9(0x17d)]]&&(global['accessibilityPlatform']=![]);!(_0x59a344[_0x5551e9(0x134)](_0x9c5b3e[_0x5551e9(0x14e)],_0x59a344[_0x5551e9(0x146)])||_0x59a344['RXxQO'](_0x9c5b3e[_0x5551e9(0x14e)],_0x59a344['VirTG']))&&(logger['warn'](_0x59a344[_0x5551e9(0x17a)]),global[_0x5551e9(0x17b)]=![]);!(_0x59a344['woixQ'](_0x9c5b3e['browser_version'],_0x59a344['VnlmU'])||_0x59a344[_0x5551e9(0x12d)](_0x9c5b3e[_0x5551e9(0x127)],0x5e))&&(logger['warn'](_0x59a344[_0x5551e9(0x136)]),global[_0x5551e9(0x17b)]=![]);!_0x59a344[_0x5551e9(0x130)](isUndefined,_0x9c5b3e['deviceName'])&&(logger['warn'](_0x59a344[_0x5551e9(0x156)]),global[_0x5551e9(0x17b)]=![]);if(!global[_0x5551e9(0x17b)]){_0x9c5b3e[_0x59a344['zBTTq']]=![];const _0x188ba6=_0x59a344[_0x5551e9(0x13c)](_0x499844,_0x59a344['ICWhE'](encodeURIComponent,JSON[_0x5551e9(0x181)](_0x9c5b3e)));_0xce802e&&(_0xce802e[_0x5551e9(0x15a)][_0x5551e9(0x147)][_0x5551e9(0x182)]['use'][_0x5551e9(0x157)]['wsEndpoint']=_0x188ba6,_0xce802e[_0x5551e9(0x139)][_0x5551e9(0x182)][_0x5551e9(0x14f)]['connectOptions']['wsEndpoint']=_0x188ba6);}}}catch(_0x1d966f){logger[_0x5551e9(0x193)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x5551e9(0x12b)](_0x1d966f));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x3dd8f=a35_0x2e30;(function(_0x5c9320,_0x2328c4){const _0x4f814f=a35_0x2e30,_0x3074e7=_0x5c9320();while(!![]){try{const _0x55bbb3=-parseInt(_0x4f814f(0x12b))/0x1*(parseInt(_0x4f814f(0x16a))/0x2)+-parseInt(_0x4f814f(0x104))/0x3+-parseInt(_0x4f814f(0xe5))/0x4+-parseInt(_0x4f814f(0x114))/0x5+parseInt(_0x4f814f(0xf4))/0x6*(-parseInt(_0x4f814f(0x138))/0x7)+-parseInt(_0x4f814f(0xd9))/0x8*(-parseInt(_0x4f814f(0x137))/0x9)+parseInt(_0x4f814f(0x135))/0xa;if(_0x55bbb3===_0x2328c4)break;else _0x3074e7['push'](_0x3074e7['shift']());}catch(_0x346864){_0x3074e7['push'](_0x3074e7['shift']());}}}(a35_0x1b75,0x2f7b1));function a35_0x2e30(_0x20d669,_0x3a94e8){const _0x1b7510=a35_0x1b75();return a35_0x2e30=function(_0x2e3082,_0x1c3145){_0x2e3082=_0x2e3082-0xcc;let _0x5b5b2d=_0x1b7510[_0x2e3082];return _0x5b5b2d;},a35_0x2e30(_0x20d669,_0x3a94e8);}const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x3dd8f(0x11c)),{format}=require(a35_0x3dd8f(0x11a)),logger=require(a35_0x3dd8f(0x116))[a35_0x3dd8f(0xce)],{default:BrowserStackSetup}=require(a35_0x3dd8f(0xdd)),helper=require(a35_0x3dd8f(0xfe)),utilities=require('../../helpers/utilities'),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0x3dd8f(0x145)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x3dd8f(0xcc)),{CrashReporter}=require(a35_0x3dd8f(0x11e)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{checkAccessibilityPlatformConfig}=require(a35_0x3dd8f(0x13e)),{setAccessibilityCapabilities}=require(a35_0x3dd8f(0x143)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x3dd8f(0x159)),getUserPlaywrightConfig=async(_0x3ad06b,_0x18aea2)=>{const _0x3193d9=a35_0x3dd8f,_0x2afb05={'HDJkj':function(_0x4c026a){return _0x4c026a();},'izyyy':function(_0x31e90c,_0x2c7739){return _0x31e90c(_0x2c7739);},'xqsCU':_0x3193d9(0xfd),'sWfWh':'--config='},_0x306386=!helper[_0x3193d9(0x13c)](_0x3ad06b[_0x3193d9(0x169)]),_0x4cf299=_0x306386?path[_0x3193d9(0x140)](process[_0x3193d9(0x10e)](),_0x3ad06b[_0x3193d9(0x169)]):process['cwd'](),{resolveConfigFile:_0x4735b5,resolveConfigLocation:_0x36240b}=helper[_0x3193d9(0x121)]['apply'](null,_0x2afb05[_0x3193d9(0x12c)](getConfigLoaderPath)),_0x4bf7a9=_0x4735b5?_0x2afb05[_0x3193d9(0x102)](_0x4735b5,_0x4cf299):helper[_0x3193d9(0x117)](_0x2afb05[_0x3193d9(0x102)](_0x36240b,_0x4cf299),[_0x2afb05[_0x3193d9(0x113)]]),_0x4b0d9={};if(_0x306386){const _0x398319=_0x18aea2[_0x3193d9(0xf1)](_0xbf5878=>_0xbf5878===_0x3193d9(0x150)||_0xbf5878==='-c'||_0xbf5878[_0x3193d9(0x131)](_0x3193d9(0xcd)));_0x18aea2[_0x3193d9(0xd7)](_0x398319,_0x18aea2[_0x398319][_0x3193d9(0x131)](_0x2afb05[_0x3193d9(0x168)])?0x1:0x2);}const _0x103476={};return _0x103476[_0x3193d9(0xea)]=_0x4bf7a9,_0x103476[_0x3193d9(0x169)]=_0x4b0d9,_0x103476;},handleO11yRerun=_0xdc68d5=>{const _0x387fcf=a35_0x3dd8f,_0x287ffd={};_0x287ffd[_0x387fcf(0xd6)]=function(_0x2a9352,_0x327969){return _0x2a9352!==_0x327969;},_0x287ffd['zSuIa']=_0x387fcf(0x10b),_0x287ffd[_0x387fcf(0x15d)]=_0x387fcf(0x15e);const _0x23b1f0=_0x287ffd,_0x1c368b=helper[_0x387fcf(0x15a)](process['env'][_0x387fcf(0x127)]);if(_0x1c368b){const _0x5522d3=process[_0x387fcf(0x13d)][_0x387fcf(0xd5)],_0x118cad=[];if(_0x23b1f0['tEbnn'](_0x5522d3,_0x23b1f0[_0x387fcf(0x14a)])&&!helper[_0x387fcf(0x13c)](_0x5522d3)){_0x5522d3[_0x387fcf(0xeb)](',')[_0x387fcf(0x112)](_0x132a3d=>{const _0x35004b=_0x387fcf;_0x118cad['push']('('+_0x132a3d[_0x35004b(0x124)]()+')');});const _0x1402cd='^'+_0x118cad['join']('|')+'$';_0xdc68d5[_0x387fcf(0x156)](_0x23b1f0['yoNml'],_0x1402cd);}}},spawnOriginalProcess=_0x2ef6bb=>{const _0x1b04ad=a35_0x3dd8f,_0x463a61={'QYKPy':function(_0x28b873,_0x41726f,_0xdc6fe7,_0x155bdf){return _0x28b873(_0x41726f,_0xdc6fe7,_0x155bdf);},'Ongwu':_0x1b04ad(0xed),'svWJF':_0x1b04ad(0x167),'oIIPB':function(_0x58ad3d,_0x5aeb7d){return _0x58ad3d===_0x5aeb7d;},'jTiBl':'win32','SLXWr':_0x1b04ad(0x12a)};_0x463a61[_0x1b04ad(0xe6)](spawn,_0x463a61['Ongwu'],[_0x463a61[_0x1b04ad(0x107)],..._0x2ef6bb[_0x1b04ad(0xf5)](0x1)],{'shell':_0x463a61['oIIPB'](process['platform'],_0x463a61[_0x1b04ad(0xe2)]),'stdio':_0x463a61['SLXWr'],'cwd':process[_0x1b04ad(0x10e)]()});},isTestCommand=(_0x4d9542,_0x2a6e0e)=>{const _0x245517=a35_0x3dd8f,_0x1f8bab={};_0x1f8bab['uOdHr']=function(_0x3777ab,_0x5293dc){return _0x3777ab>_0x5293dc;},_0x1f8bab[_0x245517(0xfc)]=function(_0x509794,_0x82129c){return _0x509794===_0x82129c;},_0x1f8bab[_0x245517(0x115)]=_0x245517(0xdc);const _0x57606b=_0x1f8bab;if(_0x57606b['uOdHr'](_0x2a6e0e['length'],0x1)&&_0x57606b[_0x245517(0xfc)](_0x2a6e0e[0x1],_0x57606b['Odurm']))return!![];return![];};async function run(_0x4df57b,_0x1ea8a4){const _0x456e2d=a35_0x3dd8f,_0x1c9107={'aJZTx':_0x456e2d(0x11f),'iByij':_0x456e2d(0x15b),'FtBji':function(_0x316e19,_0x442a27){return _0x316e19+_0x442a27;},'XOrIc':_0x456e2d(0xda),'PgKjD':_0x456e2d(0x154),'ztwUr':function(_0x5c4314){return _0x5c4314();},'AtjoU':function(_0x2b5bc7,_0x248034){return _0x2b5bc7+_0x248034;},'oLaKj':_0x456e2d(0xf6),'chFdN':_0x456e2d(0x151),'DmDdn':_0x456e2d(0x141),'eERdH':'--disable-test-observability','rFUlv':function(_0x4fa49b,_0x795f23){return _0x4fa49b>=_0x795f23;},'VvSjy':function(_0x1e96e7,_0x27f2f6){return _0x1e96e7+_0x27f2f6;},'LClgL':_0x456e2d(0x103),'nXSSY':function(_0x2a9d64,_0x523ac4,_0x17ade6){return _0x2a9d64(_0x523ac4,_0x17ade6);},'TfsMj':function(_0x3ff43c,_0x221bd0){return _0x3ff43c(_0x221bd0);},'ILxJF':'BrowserStack\x20config\x20file\x20not\x20found.','tFphT':_0x456e2d(0xf8),'IbeBC':function(_0x977c94,_0x5b7986){return _0x977c94!=_0x5b7986;},'xqdHp':function(_0x74e35f,_0x341516,_0x29972c){return _0x74e35f(_0x341516,_0x29972c);},'JlWEP':function(_0x3350b6,_0x224aca){return _0x3350b6(_0x224aca);},'nRExw':function(_0x20cece,_0x1f2f66){return _0x20cece===_0x1f2f66;},'uiRqP':_0x456e2d(0x10f),'zXAin':function(_0x12c0c0,_0x2cf820){return _0x12c0c0(_0x2cf820);},'rIclF':function(_0x4ee82e,_0x1c2a15){return _0x4ee82e(_0x1c2a15);},'BNnkh':'browserstackSetupConfig.json','kYrIl':function(_0x247b9e,_0x119a80){return _0x247b9e===_0x119a80;},'cuIzL':_0x456e2d(0xcf),'TlfFo':_0x456e2d(0xd0),'mmMjr':function(_0x18a285,_0x10f092){return _0x18a285-_0x10f092;},'thoqO':function(_0x5acc37,_0x2e5ea3){return _0x5acc37+_0x2e5ea3;},'vURAQ':'Updated\x20config\x20file\x20name\x20to\x20-\x20','LncxG':function(_0x4a33dd,_0xf04425){return _0x4a33dd>_0xf04425;},'KkPsA':function(_0x38cfa4,_0x320361,_0xa9616c,_0x352c17){return _0x38cfa4(_0x320361,_0xa9616c,_0x352c17);},'VTWTf':_0x456e2d(0xed),'GwnHO':'playwright','kLUhj':'test','kdaeL':'--config','laMVv':function(_0x1dce85,_0x19bd90){return _0x1dce85===_0x19bd90;},'pWXaQ':_0x456e2d(0xfa),'UfUvW':_0x456e2d(0x12a),'ewVuO':_0x456e2d(0x14d)};!helper['isFalse'](process[_0x456e2d(0x13d)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x456e2d(0x13d)][_0x456e2d(0xf2)]=!![]);process['argv']['includes'](_0x1c9107[_0x456e2d(0x10c)])&&(process['env'][_0x456e2d(0xf2)]=_0x1c9107[_0x456e2d(0xe4)],_0x1ea8a4=_0x1ea8a4[_0x456e2d(0xd4)](_0xeddf1b=>_0xeddf1b!==_0x456e2d(0x151)));const _0x40a808=_0x1ea8a4['indexOf'](_0x1c9107[_0x456e2d(0x160)]);_0x1c9107[_0x456e2d(0xf0)](_0x40a808,0x0)&&(process[_0x456e2d(0x13d)][_0x456e2d(0x110)]=_0x1c9107[_0x456e2d(0xe4)],_0x1ea8a4=_0x1ea8a4[_0x456e2d(0xd4)](_0xd3cab1=>_0xd3cab1!=='--disable-test-observability'));try{const _0x15d215=path[_0x456e2d(0xd8)](helper[_0x456e2d(0xe9)](),_0x1c9107[_0x456e2d(0x142)],_0x1c9107['iByij']);fs[_0x456e2d(0x161)](_0x15d215)&&fs[_0x456e2d(0x123)](_0x15d215);}catch(_0x5d1471){logger[_0x456e2d(0x119)](_0x1c9107[_0x456e2d(0xdb)](_0x1c9107[_0x456e2d(0x12d)],_0x5d1471));}if(!_0x1c9107[_0x456e2d(0x134)](isTestCommand,_0x4df57b,_0x1ea8a4)){_0x1c9107[_0x456e2d(0xef)](spawnOriginalProcess,_0x1ea8a4);return;}const _0x58e7cd=new BrowserStackSetup(_0x4df57b,FRAMEWORKS['PLAYWRIGHT']);if(!_0x58e7cd[_0x456e2d(0x169)]){logger[_0x456e2d(0xfb)](_0x1c9107[_0x456e2d(0x139)]);return;}await _0x58e7cd[_0x456e2d(0x125)]();!helper[_0x456e2d(0x13c)](_0x58e7cd[_0x456e2d(0x152)])&&_0x58e7cd[_0x456e2d(0x152)][_0x456e2d(0xd3)](_0x1c9107[_0x456e2d(0x109)])&&(process[_0x456e2d(0x13d)][_0x456e2d(0xf2)]=_0x58e7cd[_0x456e2d(0x152)][_0x456e2d(0x15f)](_0x1c9107['tFphT'])||!![]);_0x1c9107['IbeBC'](_0x58e7cd[_0x456e2d(0x169)][_0x456e2d(0x111)],null)&&!helper[_0x456e2d(0x15a)](process[_0x456e2d(0x13d)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x456e2d(0x13d)][_0x456e2d(0x110)]=process[_0x456e2d(0x13d)][_0x456e2d(0x110)]||_0x58e7cd[_0x456e2d(0x169)][_0x456e2d(0x111)]);const _0x57ee54=!helper[_0x456e2d(0xe7)](process['env'][_0x456e2d(0x110)]);let _0x5a42f1=![];_0x58e7cd[_0x456e2d(0x169)]['accessibility']&&(_0x5a42f1=!![],process[_0x456e2d(0x13d)][_0x456e2d(0x13b)]=_0x58e7cd['config'][_0x456e2d(0x165)]);_0x58e7cd[_0x456e2d(0x169)][_0x456e2d(0xd1)]&&(process[_0x456e2d(0x13d)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x456e2d(0x147)](_0x58e7cd[_0x456e2d(0x169)][_0x456e2d(0xd1)]));const _0x217f8d=_0x1ea8a4[_0x456e2d(0x132)](),_0xa4ab96=await _0x1c9107[_0x456e2d(0x14b)](getUserPlaywrightConfig,_0x4df57b,_0x1ea8a4);if(helper[_0x456e2d(0x13c)](_0xa4ab96)){_0x1c9107['TfsMj'](spawnOriginalProcess,_0x217f8d);return;}const _0x725d1a=_0xa4ab96[_0x456e2d(0xea)]?path[_0x456e2d(0x155)](_0xa4ab96[_0x456e2d(0xea)]):process[_0x456e2d(0x10e)]();process['env'][_0x456e2d(0xde)]=_0x725d1a,await TestHubHandler[_0x456e2d(0x153)](FRAMEWORKS[_0x456e2d(0x100)],_0x58e7cd);_0x57ee54&&_0x1c9107[_0x456e2d(0x14e)](handleO11yRerun,_0x1ea8a4);let _0x20234a=_0x1c9107['nRExw'](process['env'][_0x456e2d(0x13b)],_0x1c9107[_0x456e2d(0x101)]);_0x20234a=_0x20234a||_0x1c9107[_0x456e2d(0x14c)](checkAccessibilityPlatformConfig,_0x58e7cd[_0x456e2d(0x169)]),process['env'][_0x456e2d(0x13b)]=_0x20234a;_0x20234a&&_0x1c9107[_0x456e2d(0x166)](setAccessibilityCapabilities,_0x58e7cd[_0x456e2d(0x169)]);const _0x49a11b=path[_0x456e2d(0xd8)](_0xa4ab96[_0x456e2d(0xea)]?path[_0x456e2d(0x155)](_0xa4ab96[_0x456e2d(0xea)]):process[_0x456e2d(0x10e)](),_0x1c9107[_0x456e2d(0x12f)]);fs[_0x456e2d(0x164)](_0x49a11b,helper[_0x456e2d(0x146)](_0x58e7cd[_0x456e2d(0x169)])),process[_0x456e2d(0x13d)][_0x456e2d(0xec)]=_0x49a11b,helper['clearTempPWConfig']();let _0x4c29da='';_0x1c9107['kYrIl'](helper[_0x456e2d(0x158)](),constants[_0x456e2d(0x12e)][_0x456e2d(0x13a)])?_0x4c29da=_0x1c9107[_0x456e2d(0x157)]:_0x4c29da=_0x1c9107[_0x456e2d(0xf7)];let _0x489fd4='';if(helper[_0x456e2d(0x10d)](_0xa4ab96['path'])){_0x489fd4=_0x456e2d(0xf3);const _0x512fa4=_0x4c29da[_0x456e2d(0xeb)]('.');_0x512fa4[_0x1c9107[_0x456e2d(0x11b)](_0x512fa4['length'],0x1)]='ts',_0x4c29da=_0x512fa4[_0x456e2d(0xd8)]('.'),logger[_0x456e2d(0x119)](_0x1c9107[_0x456e2d(0xe1)](_0x1c9107[_0x456e2d(0x14f)],_0x4c29da));}else _0x489fd4='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x24be94=path[_0x456e2d(0xd8)](_0xa4ab96['path']?path[_0x456e2d(0x155)](_0xa4ab96[_0x456e2d(0xea)]):process[_0x456e2d(0x10e)](),_0x4c29da);let _0x12d140=_0xa4ab96['path']?_0xa4ab96[_0x456e2d(0xea)]:'';_0x12d140=_0x1c9107[_0x456e2d(0x11d)](_0x12d140['length'],0x0)?path['resolve'](_0x12d140):'',process[_0x456e2d(0x13d)][_0x456e2d(0x126)]=_0x12d140;const _0x15249d=helper[_0x456e2d(0x105)](_0x58e7cd[_0x456e2d(0x169)]);_0x15249d&&(_0x489fd4=_0x1c9107[_0x456e2d(0xe1)](_0x456e2d(0xff)+_0x15249d+_0x456e2d(0xdf),_0x489fd4));helper['filterBrowserstackArgs']({},_0x1ea8a4),fs['writeFileSync'](_0x24be94,_0x489fd4),helper[_0x456e2d(0x133)]();const _0x8db67b=_0x1c9107[_0x456e2d(0x129)](spawn,_0x1c9107[_0x456e2d(0x136)],[_0x1c9107[_0x456e2d(0x106)],_0x1c9107[_0x456e2d(0x120)],_0x1c9107[_0x456e2d(0xe3)],_0x24be94,..._0x1ea8a4[_0x456e2d(0xf5)](0x2)],{'shell':_0x1c9107['laMVv'](process['platform'],_0x1c9107[_0x456e2d(0x148)]),'stdio':_0x1c9107[_0x456e2d(0xe8)],'cwd':process[_0x456e2d(0x10e)](),'env':Object[_0x456e2d(0xe0)]({},process[_0x456e2d(0x13d)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x456e2d(0x13f)](_0x4df57b),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x58e7cd[_0x456e2d(0x169)][_0x456e2d(0x130)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x58e7cd[_0x456e2d(0x169)][_0x456e2d(0x130)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x58e7cd[_0x456e2d(0x169)][_0x456e2d(0x149)]})}),_0x558ad6=()=>{const _0x6757de=_0x456e2d;try{const _0x136ee9=path[_0x6757de(0xd8)](helper['homedir'](),_0x1c9107[_0x6757de(0x142)],_0x1c9107[_0x6757de(0x15c)]);if(fs[_0x6757de(0x161)](_0x136ee9)){let _0x448e40=fs[_0x6757de(0x163)](_0x136ee9);_0x448e40=JSON[_0x6757de(0x108)](_0x448e40),_0x58e7cd['errorMessage']=_0x448e40,fs['unlinkSync'](_0x136ee9);}}catch(_0xa94557){logger[_0x6757de(0x119)](_0x1c9107['FtBji'](_0x1c9107['XOrIc'],_0xa94557));}};_0x8db67b['on'](_0x1c9107[_0x456e2d(0x122)],async _0x50312d=>{const _0x4d1506=_0x456e2d;try{const _0x28e9ba=_0x1c9107[_0x4d1506(0x128)][_0x4d1506(0xeb)]('|');let _0x532c13=0x0;while(!![]){switch(_0x28e9ba[_0x532c13++]){case'0':_0x1c9107[_0x4d1506(0xee)](_0x558ad6);continue;case'1':process[_0x4d1506(0x10a)]=_0x50312d;continue;case'2':await TestHubHandler[_0x4d1506(0xd2)]();continue;case'3':fs[_0x4d1506(0x123)](_0x49a11b);continue;case'4':logger[_0x4d1506(0x118)](_0x4d1506(0xf9)+_0x24be94);continue;case'5':await utilities['finalExecution'](_0x58e7cd);continue;case'6':logger[_0x4d1506(0x119)](_0x4d1506(0x162)+_0x50312d);continue;case'7':fs['unlinkSync'](_0x24be94);continue;case'8':logger[_0x4d1506(0x119)](_0x4d1506(0xf9)+_0x49a11b);continue;}break;}}catch(_0x42b104){logger[_0x4d1506(0x119)](_0x1c9107['AtjoU'](_0x1c9107[_0x4d1506(0x144)],_0x42b104));}});}function a35_0x1b75(){const _0x3e064a=['push','cuIzL','getPackageType','../../helpers/testhub/utils','isTrue','pw_result.json','iByij','yoNml','--grep','get','eERdH','existsSync','Playwright\x20process\x20exited\x20with\x20code\x20','readFileSync','writeFileSync','accessibility','rIclF','playwright','sWfWh','config','78418OXivJi','./reporter/pwUtils','--config=','winstonLogger','playwright-browserstack-sdk.config.cjs','playwright-browserstack-sdk.config.js','accessibilityOptions','stop','has','filter','BROWSERSTACK_RERUN_TESTS','tEbnn','splice','join','742720OrwrKg','Error\x20in\x20getting\x20funnel\x20data\x20results','VvSjy','test','../../helpers/BrowserStackSetup','BROWSERSTACK_PW_CONFIG_DIR','\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();','assign','thoqO','jTiBl','kdaeL','DmDdn','221408INjyeF','QYKPy','isFalse','UfUvW','homedir','path','split','BROWSERSTACK_SETUP_CONFIG_PATH','npx','ztwUr','TfsMj','rFUlv','findIndex','BROWSERSTACK_AUTOMATION','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','6uxIlch','slice','Error\x20in\x20closing\x20playwright','TlfFo','automation','Deleting\x20','win32','error','mxZHG','resolvedConfigFile','../../helpers/helper','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','PLAYWRIGHT','uiRqP','izyyy','Error\x20in\x20deleting\x20playwright\x20results','521874MZyWbm','getProxyUrl','GwnHO','svWJF','parse','tFphT','exitCode','null','chFdN','isTypescriptProject','cwd','true','BROWSERSTACK_TEST_OBSERVABILITY','testObservability','map','xqsCU','107635NZKWib','Odurm','../../helpers/logger','nestedKeyValue','info','debug','util','mmMjr','child_process','LncxG','../../helpers/test-observability/error-handler','.browserstack','kLUhj','requirePWModule','ewVuO','unlinkSync','trim','initialize','USER_CONFIG_DETAILS_PATH','BROWSERSTACK_RERUN','PgKjD','KkPsA','inherit','1LlYHRD','HDJkj','LClgL','PACKAGE_TYPE','BNnkh','testContextOptions','startsWith','concat','markSDKSetupComplete','nXSSY','4725080zqhqwU','VTWTf','9MXpXaZ','565747LkQhNx','ILxJF','MODULE','BROWSERSTACK_TEST_ACCESSIBILITY_YML','isUndefined','env','../../helpers/accessibility-automation/helper','getConfigPath','resolve','false','aJZTx','./accessibility-helper','oLaKj','../../helpers/test-observability/constants','serializeToYamlString','stringify','pWXaQ','logLevel','zSuIa','xqdHp','zXAin','close','JlWEP','vURAQ','--config','--disable-browserstack-automation','cliConfig','launchBuild','0|2|5|1|6|4|7|8|3','dirname'];a35_0x1b75=function(){return _0x3e064a;};return a35_0x1b75();}module['exports']=run;
|
|
2
|
+
'use strict';const a35_0x40265a=a35_0x3a63;(function(_0x3ce7eb,_0x4b3283){const _0x464c42=a35_0x3a63,_0x438777=_0x3ce7eb();while(!![]){try{const _0x26af38=-parseInt(_0x464c42(0x86))/0x1+parseInt(_0x464c42(0xe9))/0x2*(-parseInt(_0x464c42(0xec))/0x3)+-parseInt(_0x464c42(0xe6))/0x4+parseInt(_0x464c42(0x7c))/0x5*(parseInt(_0x464c42(0xd9))/0x6)+-parseInt(_0x464c42(0xb0))/0x7*(-parseInt(_0x464c42(0xa1))/0x8)+-parseInt(_0x464c42(0xe0))/0x9*(parseInt(_0x464c42(0xfe))/0xa)+-parseInt(_0x464c42(0xe1))/0xb*(parseInt(_0x464c42(0xd7))/0xc);if(_0x26af38===_0x4b3283)break;else _0x438777['push'](_0x438777['shift']());}catch(_0x8e28f4){_0x438777['push'](_0x438777['shift']());}}}(a35_0x1c23,0x6ce69));function a35_0x3a63(_0x544cee,_0x3b4984){const _0x1c2301=a35_0x1c23();return a35_0x3a63=function(_0x3a63de,_0x1f0add){_0x3a63de=_0x3a63de-0x7a;let _0x3a04ec=_0x1c2301[_0x3a63de];return _0x3a04ec;},a35_0x3a63(_0x544cee,_0x3b4984);}const fs=require('fs'),path=require(a35_0x40265a(0x91)),{spawn}=require('child_process'),{format}=require(a35_0x40265a(0xa6)),logger=require('../../helpers/logger')[a35_0x40265a(0xe2)],{default:BrowserStackSetup}=require(a35_0x40265a(0x98)),helper=require(a35_0x40265a(0xda)),utilities=require(a35_0x40265a(0x85)),constants=require(a35_0x40265a(0xc7)),{FRAMEWORKS}=require(a35_0x40265a(0x9f)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x40265a(0xbe)),{CrashReporter}=require(a35_0x40265a(0x114)),{getFrameworkVersion}=require(a35_0x40265a(0xef)),{checkAccessibilityPlatformConfig}=require(a35_0x40265a(0x10c)),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),getUserPlaywrightConfig=async(_0x3bc4a4,_0x183d61)=>{const _0x39a729=a35_0x40265a,_0x4a2265={'NKdoa':function(_0x47e6c9){return _0x47e6c9();},'GVhHv':function(_0x3fb0eb,_0x3ca7e3){return _0x3fb0eb(_0x3ca7e3);},'SFLYq':'resolvedConfigFile','OxvvB':_0x39a729(0xe5)},_0x1f727d=!helper[_0x39a729(0xa3)](_0x3bc4a4['config']),_0x3b3857=_0x1f727d?path[_0x39a729(0xd3)](process['cwd'](),_0x3bc4a4[_0x39a729(0xac)]):process[_0x39a729(0x115)](),{resolveConfigFile:_0x1d8643,resolveConfigLocation:_0xb87ba6}=helper[_0x39a729(0xf6)][_0x39a729(0x96)](null,_0x4a2265['NKdoa'](getConfigLoaderPath)),_0x5b7ead=_0x1d8643?_0x4a2265[_0x39a729(0xc1)](_0x1d8643,_0x3b3857):helper[_0x39a729(0xfd)](_0x4a2265[_0x39a729(0xc1)](_0xb87ba6,_0x3b3857),[_0x4a2265[_0x39a729(0xbd)]]),_0x3cfae6={};if(_0x1f727d){const _0x3048d8=_0x183d61[_0x39a729(0xd5)](_0x318ee0=>_0x318ee0===_0x39a729(0xf3)||_0x318ee0==='-c'||_0x318ee0[_0x39a729(0xad)]('--config='));_0x183d61[_0x39a729(0xbf)](_0x3048d8,_0x183d61[_0x3048d8][_0x39a729(0xad)](_0x4a2265['OxvvB'])?0x1:0x2);}const _0x835cae={};return _0x835cae[_0x39a729(0x91)]=_0x5b7ead,_0x835cae[_0x39a729(0xac)]=_0x3cfae6,_0x835cae;},handleO11yRerun=_0x1fd59d=>{const _0x4fafbb=a35_0x40265a,_0x4530b3={};_0x4530b3[_0x4fafbb(0xbb)]=function(_0x27ae3f,_0x19644c){return _0x27ae3f!==_0x19644c;},_0x4530b3[_0x4fafbb(0xb5)]=_0x4fafbb(0x97),_0x4530b3[_0x4fafbb(0x10f)]=_0x4fafbb(0x118);const _0x34123f=_0x4530b3,_0x373315=helper[_0x4fafbb(0xb8)](process[_0x4fafbb(0xf0)][_0x4fafbb(0x110)]);if(_0x373315){const _0xdc856f=process[_0x4fafbb(0xf0)]['BROWSERSTACK_RERUN_TESTS'],_0x6eaf83=[];if(_0x34123f[_0x4fafbb(0xbb)](_0xdc856f,_0x34123f[_0x4fafbb(0xb5)])&&!helper[_0x4fafbb(0xa3)](_0xdc856f)){_0xdc856f[_0x4fafbb(0xf5)](',')[_0x4fafbb(0x108)](_0x1b687c=>{const _0x47720f=_0x4fafbb;_0x6eaf83[_0x47720f(0x113)]('('+_0x1b687c[_0x47720f(0xa0)]()+')');});const _0x3da92c='^'+_0x6eaf83[_0x4fafbb(0xa7)]('|')+'$';_0x1fd59d['push'](_0x34123f[_0x4fafbb(0x10f)],_0x3da92c);}}},spawnOriginalProcess=_0x4b43a0=>{const _0x4dc05f=a35_0x40265a,_0x452b13={'PWOjV':function(_0x4c7383,_0x1cc9e2,_0x44b222,_0x78fc98){return _0x4c7383(_0x1cc9e2,_0x44b222,_0x78fc98);},'zKnUF':_0x4dc05f(0xdb),'OgqKC':_0x4dc05f(0x8a),'HKdEB':function(_0x4fae81,_0x50fe22){return _0x4fae81===_0x50fe22;},'xxSak':_0x4dc05f(0xb3),'UWeCW':_0x4dc05f(0xd6)};_0x452b13[_0x4dc05f(0xc8)](spawn,_0x452b13[_0x4dc05f(0x8e)],[_0x452b13['OgqKC'],..._0x4b43a0['slice'](0x1)],{'shell':_0x452b13[_0x4dc05f(0xaf)](process[_0x4dc05f(0xc5)],_0x452b13[_0x4dc05f(0xfc)]),'stdio':_0x452b13[_0x4dc05f(0xdf)],'cwd':process[_0x4dc05f(0x115)]()});},isTestCommand=(_0x566786,_0x4abf2a)=>{const _0x91fdad=a35_0x40265a,_0x2d31af={};_0x2d31af[_0x91fdad(0xe8)]=function(_0x718a85,_0x4588c3){return _0x718a85>_0x4588c3;},_0x2d31af[_0x91fdad(0xde)]=function(_0x587194,_0x2032b6){return _0x587194===_0x2032b6;},_0x2d31af[_0x91fdad(0x99)]=_0x91fdad(0x106);const _0x2a403f=_0x2d31af;if(_0x2a403f[_0x91fdad(0xe8)](_0x4abf2a['length'],0x1)&&_0x2a403f['EdqnR'](_0x4abf2a[0x1],_0x2a403f[_0x91fdad(0x99)]))return!![];return![];};async function run(_0x2d14f2,_0x4f5b00){const _0x461543=a35_0x40265a,_0x416adc={'YlIeY':_0x461543(0x7d),'CYTPF':'pw_result.json','BdVXv':function(_0xa91e9,_0x9e07b6){return _0xa91e9+_0x9e07b6;},'JUPZb':_0x461543(0x9e),'DVxDr':_0x461543(0xc3),'IKxhh':function(_0x2aa652){return _0x2aa652();},'PwIJC':function(_0x4f22a3,_0x2ab855){return _0x4f22a3+_0x2ab855;},'NNXJa':_0x461543(0xa9),'UvjEe':_0x461543(0xab),'FQmaP':'false','YFdQU':_0x461543(0xd0),'ddOok':function(_0x208e58,_0x1ea8ae){return _0x208e58>=_0x1ea8ae;},'DrsSd':_0x461543(0xcb),'uOVtd':function(_0x2df5e0,_0xcf72ad,_0x25e851){return _0x2df5e0(_0xcf72ad,_0x25e851);},'Igktz':function(_0x2f9203,_0x4f597b){return _0x2f9203(_0x4f597b);},'EnenN':_0x461543(0xb9),'UsMBb':_0x461543(0x103),'zMFHg':function(_0x73cb8f,_0x8a9351){return _0x73cb8f!=_0x8a9351;},'riaVc':function(_0x180484,_0x45c9be,_0x3079e9){return _0x180484(_0x45c9be,_0x3079e9);},'eQVyM':function(_0x57770f,_0x19d269){return _0x57770f(_0x19d269);},'NqjwD':function(_0xa6f09a,_0x241e70){return _0xa6f09a===_0x241e70;},'WETVa':_0x461543(0x101),'eCLUI':function(_0x233c70,_0x77c081){return _0x233c70(_0x77c081);},'zYmpc':_0x461543(0x93),'hEZoG':_0x461543(0xb2),'ZihvL':_0x461543(0x7a),'SNrmI':function(_0x5ba584,_0x4855d6){return _0x5ba584-_0x4855d6;},'BrIWr':_0x461543(0xc2),'EPlfR':function(_0x49674f,_0x53b590){return _0x49674f>_0x53b590;},'acNbR':function(_0x49e9c2,_0x11b527){return _0x49e9c2+_0x11b527;},'aaiLs':function(_0x5371de,_0x46fb6f,_0x438bfd,_0x47fe6e){return _0x5371de(_0x46fb6f,_0x438bfd,_0x47fe6e);},'odPwX':_0x461543(0xdb),'fKqDv':_0x461543(0x8a),'BAVxm':_0x461543(0x106),'xHxZK':'--config','KFLKF':_0x461543(0xb3),'MiBNv':'inherit','cHctB':_0x461543(0xc6)};!helper['isFalse'](process['env'][_0x461543(0x112)])&&(process['env'][_0x461543(0x112)]=!![]);process[_0x461543(0x80)][_0x461543(0x111)](_0x416adc[_0x461543(0xa5)])&&(process[_0x461543(0xf0)]['BROWSERSTACK_AUTOMATION']=_0x416adc['FQmaP'],_0x4f5b00=_0x4f5b00['filter'](_0x2e3bc3=>_0x2e3bc3!==_0x461543(0xab)));const _0x471c66=_0x4f5b00[_0x461543(0x9c)](_0x416adc[_0x461543(0xce)]);_0x416adc[_0x461543(0x90)](_0x471c66,0x0)&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=_0x416adc[_0x461543(0x7b)],_0x4f5b00=_0x4f5b00[_0x461543(0xb1)](_0xff5818=>_0xff5818!=='--disable-test-observability'));try{const _0x1c174d=path[_0x461543(0xa7)](helper['homedir'](),_0x416adc['YlIeY'],_0x416adc['CYTPF']);fs[_0x461543(0xc0)](_0x1c174d)&&fs[_0x461543(0xe3)](_0x1c174d);}catch(_0x195f47){logger[_0x461543(0xae)](_0x416adc[_0x461543(0xf4)](_0x416adc[_0x461543(0x82)],_0x195f47));}if(!_0x416adc[_0x461543(0xe7)](isTestCommand,_0x2d14f2,_0x4f5b00)){_0x416adc['Igktz'](spawnOriginalProcess,_0x4f5b00);return;}const _0x40e31f=new BrowserStackSetup(_0x2d14f2,FRAMEWORKS[_0x461543(0x7e)]);if(!_0x40e31f[_0x461543(0xac)]){logger[_0x461543(0xaa)](_0x416adc[_0x461543(0xb6)]);return;}await _0x40e31f['initialize']();!helper['isUndefined'](_0x40e31f[_0x461543(0xf8)])&&_0x40e31f[_0x461543(0xf8)]['has'](_0x416adc[_0x461543(0x8f)])&&(process[_0x461543(0xf0)][_0x461543(0x112)]=_0x40e31f[_0x461543(0xf8)][_0x461543(0x116)](_0x416adc[_0x461543(0x8f)])||!![]);_0x416adc[_0x461543(0xb4)](_0x40e31f[_0x461543(0xac)][_0x461543(0x10b)],null)&&!helper[_0x461543(0xb8)](process[_0x461543(0xf0)][_0x461543(0x102)])&&(process[_0x461543(0xf0)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x461543(0xf0)][_0x461543(0x102)]||_0x40e31f[_0x461543(0xac)]['testObservability']);const _0xb06948=!helper[_0x461543(0xbc)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x497407=![];_0x40e31f[_0x461543(0xac)][_0x461543(0x81)]&&(_0x497407=!![],process[_0x461543(0xf0)][_0x461543(0x10e)]=_0x40e31f['config'][_0x461543(0x81)]);_0x40e31f['config'][_0x461543(0x10a)]&&(process[_0x461543(0xf0)][_0x461543(0xe4)]=JSON[_0x461543(0xff)](_0x40e31f[_0x461543(0xac)]['accessibilityOptions']));const _0x181d9d=_0x4f5b00[_0x461543(0x89)](),_0x5a5cbe=await _0x416adc[_0x461543(0x8c)](getUserPlaywrightConfig,_0x2d14f2,_0x4f5b00);if(helper[_0x461543(0xa3)](_0x5a5cbe)){_0x416adc[_0x461543(0xea)](spawnOriginalProcess,_0x181d9d);return;}const _0xa1ec=_0x5a5cbe[_0x461543(0x91)]?path[_0x461543(0xfa)](_0x5a5cbe[_0x461543(0x91)]):process['cwd']();process['env']['BROWSERSTACK_PW_CONFIG_DIR']=_0xa1ec,await TestHubHandler[_0x461543(0xcc)](FRAMEWORKS[_0x461543(0x7e)],_0x40e31f);_0xb06948&&_0x416adc['Igktz'](handleO11yRerun,_0x4f5b00);let _0x3fdaff=_0x416adc['NqjwD'](process['env'][_0x461543(0x10e)],_0x416adc[_0x461543(0x109)]);_0x3fdaff=_0x3fdaff||_0x416adc['Igktz'](checkAccessibilityPlatformConfig,_0x40e31f[_0x461543(0xac)]),process[_0x461543(0xf0)][_0x461543(0x10e)]=_0x3fdaff;_0x3fdaff&&_0x416adc[_0x461543(0x87)](setAccessibilityCapabilities,_0x40e31f['config']);const _0x210e19=path[_0x461543(0xa7)](_0x5a5cbe[_0x461543(0x91)]?path['dirname'](_0x5a5cbe[_0x461543(0x91)]):process[_0x461543(0x115)](),_0x416adc[_0x461543(0xf9)]);fs[_0x461543(0xfb)](_0x210e19,helper[_0x461543(0x105)](_0x40e31f['config'])),process['env'][_0x461543(0xa4)]=_0x210e19,helper[_0x461543(0xb7)]();let _0x129027='';_0x416adc[_0x461543(0xc9)](helper[_0x461543(0x92)](),constants[_0x461543(0x88)]['MODULE'])?_0x129027=_0x416adc['hEZoG']:_0x129027=_0x416adc[_0x461543(0xca)];let _0x37f291='';if(helper['isTypescriptProject'](_0x5a5cbe[_0x461543(0x91)])){_0x37f291='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x2b38e6=_0x129027['split']('.');_0x2b38e6[_0x416adc[_0x461543(0xd1)](_0x2b38e6[_0x461543(0x9b)],0x1)]='ts',_0x129027=_0x2b38e6[_0x461543(0xa7)]('.'),logger[_0x461543(0xae)](_0x416adc['BdVXv'](_0x416adc[_0x461543(0xcd)],_0x129027));}else _0x37f291=_0x461543(0xa8);const _0x2ffe9a=path[_0x461543(0xa7)](_0x5a5cbe[_0x461543(0x91)]?path['dirname'](_0x5a5cbe[_0x461543(0x91)]):process['cwd'](),_0x129027);let _0x88d7d9=_0x5a5cbe['path']?_0x5a5cbe['path']:'';_0x88d7d9=_0x416adc[_0x461543(0xee)](_0x88d7d9[_0x461543(0x9b)],0x0)?path['resolve'](_0x88d7d9):'',process[_0x461543(0xf0)]['USER_CONFIG_DETAILS_PATH']=_0x88d7d9;const _0x43185b=helper[_0x461543(0xdc)](_0x40e31f[_0x461543(0xac)]);_0x43185b&&(_0x37f291=_0x416adc['acNbR'](_0x461543(0x107)+_0x43185b+'\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();',_0x37f291));helper[_0x461543(0xed)]({},_0x4f5b00),fs[_0x461543(0xfb)](_0x2ffe9a,_0x37f291),helper[_0x461543(0xcf)]();const _0x384a45=_0x416adc[_0x461543(0x8b)](spawn,_0x416adc[_0x461543(0xeb)],[_0x416adc[_0x461543(0xba)],_0x416adc['BAVxm'],_0x416adc[_0x461543(0x100)],_0x2ffe9a,..._0x4f5b00['slice'](0x2)],{'shell':_0x416adc[_0x461543(0xc9)](process[_0x461543(0xc5)],_0x416adc[_0x461543(0xdd)]),'stdio':_0x416adc[_0x461543(0xf1)],'cwd':process[_0x461543(0x115)](),'env':Object[_0x461543(0x104)]({},process[_0x461543(0xf0)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x461543(0x94)](_0x2d14f2),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x40e31f[_0x461543(0xac)]['testContextOptions'][_0x461543(0xd8)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x40e31f[_0x461543(0xac)][_0x461543(0x9d)][_0x461543(0xd2)],'BROWSERSTACK_LOG_LEVEL':_0x40e31f['config'][_0x461543(0xa2)]})}),_0x5f034e=()=>{const _0x13dd14=_0x461543;try{const _0x1a574c=path[_0x13dd14(0xa7)](helper['homedir'](),_0x416adc['YlIeY'],_0x416adc['CYTPF']);if(fs[_0x13dd14(0xc0)](_0x1a574c)){let _0x2e2c1b=fs['readFileSync'](_0x1a574c);_0x2e2c1b=JSON[_0x13dd14(0xf7)](_0x2e2c1b),_0x40e31f['errorMessage']=_0x2e2c1b,fs[_0x13dd14(0xe3)](_0x1a574c);}}catch(_0x19d7ad){logger[_0x13dd14(0xae)](_0x416adc[_0x13dd14(0xf4)](_0x416adc[_0x13dd14(0x84)],_0x19d7ad));}};_0x384a45['on'](_0x416adc[_0x461543(0x95)],async _0x21b7f4=>{const _0x9e2685=_0x461543;try{const _0x4d75f2=_0x416adc[_0x9e2685(0x8d)][_0x9e2685(0xf5)]('|');let _0x1b54d4=0x0;while(!![]){switch(_0x4d75f2[_0x1b54d4++]){case'0':_0x416adc[_0x9e2685(0xf2)](_0x5f034e);continue;case'1':logger[_0x9e2685(0xae)](_0x9e2685(0xc4)+_0x21b7f4);continue;case'2':fs[_0x9e2685(0xe3)](_0x2ffe9a);continue;case'3':logger[_0x9e2685(0xae)]('Deleting\x20'+_0x210e19);continue;case'4':logger[_0x9e2685(0x83)]('Deleting\x20'+_0x2ffe9a);continue;case'5':process[_0x9e2685(0x9a)]=_0x21b7f4;continue;case'6':fs[_0x9e2685(0xe3)](_0x210e19);continue;case'7':await utilities[_0x9e2685(0x7f)](_0x40e31f);continue;case'8':await TestHubHandler[_0x9e2685(0x10d)]();continue;}break;}}catch(_0x384a12){logger[_0x9e2685(0xae)](_0x416adc[_0x9e2685(0x117)](_0x416adc[_0x9e2685(0xd4)],_0x384a12));}});}function a35_0x1c23(){const _0x1d67c5=['BROWSERSTACK_AUTOMATION','push','../../helpers/test-observability/error-handler','cwd','get','PwIJC','--grep','playwright-browserstack-sdk.config.js','FQmaP','3935335CEhCCv','.browserstack','PLAYWRIGHT','finalExecution','argv','accessibility','DrsSd','info','JUPZb','../../helpers/utilities','69929rzJkoy','eCLUI','PACKAGE_TYPE','concat','playwright','aaiLs','riaVc','DVxDr','zKnUF','UsMBb','ddOok','path','getPackageType','browserstackSetupConfig.json','getConfigPath','cHctB','apply','null','../../helpers/BrowserStackSetup','RfdZO','exitCode','length','indexOf','testContextOptions','Error\x20in\x20getting\x20funnel\x20data\x20results','../../helpers/test-observability/constants','trim','972464tITOXY','logLevel','isUndefined','BROWSERSTACK_SETUP_CONFIG_PATH','UvjEe','util','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','Error\x20in\x20closing\x20playwright','error','--disable-browserstack-automation','config','startsWith','debug','HKdEB','42vJlqes','filter','playwright-browserstack-sdk.config.cjs','win32','zMFHg','BNqNv','EnenN','clearTempPWConfig','isTrue','BrowserStack\x20config\x20file\x20not\x20found.','fKqDv','SffPZ','isFalse','SFLYq','./reporter/pwUtils','splice','existsSync','GVhHv','Updated\x20config\x20file\x20name\x20to\x20-\x20','0|8|7|5|1|4|2|3|6','Playwright\x20process\x20exited\x20with\x20code\x20','platform','close','../utils/constants','PWOjV','NqjwD','ZihvL','Error\x20in\x20deleting\x20playwright\x20results','launchBuild','BrIWr','YFdQU','markSDKSetupComplete','--disable-test-observability','SNrmI','skipSessionName','resolve','NNXJa','findIndex','inherit','3192yvMVLe','skipSessionStatus','6JdLrVE','../../helpers/helper','npx','getProxyUrl','KFLKF','EdqnR','UWeCW','81QVaOCI','2101skffeA','winstonLogger','unlinkSync','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','--config=','928536WTCgRL','uOVtd','FZtZr','10118ioyDOk','eQVyM','odPwX','162RsCRDw','filterBrowserstackArgs','EPlfR','../../helpers/test-observability/utils','env','MiBNv','IKxhh','--config','BdVXv','split','requirePWModule','parse','cliConfig','zYmpc','dirname','writeFileSync','xxSak','nestedKeyValue','493670fcGENz','stringify','xHxZK','true','BROWSERSTACK_TEST_OBSERVABILITY','automation','assign','serializeToYamlString','test','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','map','WETVa','accessibilityOptions','testObservability','../../helpers/accessibility-automation/helper','stop','BROWSERSTACK_TEST_ACCESSIBILITY_YML','djhnU','BROWSERSTACK_RERUN','includes'];a35_0x1c23=function(){return _0x1d67c5;};return a35_0x1c23();}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a36_0x1c9e(){const _0xa4ae99=['Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','compareVersions','function','esKbP','162LCldVi','../../helpers/test-observability/constants','debug','error','FYGzs','5mAOYyb','27HeAZwQ','2790541IQGZKD','154WEhfoN','13692ZeazAd','9WLXeqS','winstonLogger','apply','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','./reporter/pwUtils','oEcoO','./mock-process.js','Not\x20able\x20to\x20import\x20globalSetup','5813SBVWbr','includes','toString','PLAYWRIGHT','1090870KuCgpD','env','FqtmT','resolve','fork','../../helpers/test-observability/utils','Rpmmm','619088gLtWaL','NkCbL','./patches','isHandlePWErrorSet','child_process','3398610MTEFwV','77412ZCymaQ','format','LtLZS','uGzsF','1648RPWjgY','28VBOyye','RRDKf','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','\x20is\x20not\x20found','Call\x20to\x20child\x20fork\x20with\x20args\x20','Mjwxh'];a36_0x1c9e=function(){return _0xa4ae99;};return a36_0x1c9e();}function a36_0x4348(_0x27c285,_0x42aa95){const _0x1c9e15=a36_0x1c9e();return a36_0x4348=function(_0x4348b4,_0x24125e){_0x4348b4=_0x4348b4-0x106;let _0x3fe18e=_0x1c9e15[_0x4348b4];return _0x3fe18e;},a36_0x4348(_0x27c285,_0x42aa95);}const a36_0x5b65ad=a36_0x4348;(function(_0x3c5a29,_0x315b3a){const _0x3bcf95=a36_0x4348,_0xff345=_0x3c5a29();while(!![]){try{const _0xd9018c=parseInt(_0x3bcf95(0x10c))/0x1*(parseInt(_0x3bcf95(0x12c))/0x2)+parseInt(_0x3bcf95(0x136))/0x3*(-parseInt(_0x3bcf95(0x117))/0x4)+-parseInt(_0x3bcf95(0x131))/0x5*(-parseInt(_0x3bcf95(0x11c))/0x6)+parseInt(_0x3bcf95(0x135))/0x7*(parseInt(_0x3bcf95(0x121))/0x8)+parseInt(_0x3bcf95(0x132))/0x9*(-parseInt(_0x3bcf95(0x110))/0xa)+parseInt(_0x3bcf95(0x134))/0xb*(parseInt(_0x3bcf95(0x11d))/0xc)+parseInt(_0x3bcf95(0x133))/0xd*(-parseInt(_0x3bcf95(0x122))/0xe);if(_0xd9018c===_0x315b3a)break;else _0xff345['push'](_0xff345['shift']());}catch(_0xc681e4){_0xff345['push'](_0xff345['shift']());}}}(a36_0x1c9e,0x4b98f));const util=require('util'),child_process=require(a36_0x5b65ad(0x11b)),{FRAMEWORKS}=require(a36_0x5b65ad(0x12d)),{getFrameworkVersion,debug}=require(a36_0x5b65ad(0x115)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x5b65ad(0x108)),{mockIsWorkerRedundant}=require(a36_0x5b65ad(0x119)),logger=require('../../helpers/logger')[a36_0x5b65ad(0x137)];module['exports']=async function(_0x8b4d9){const _0x6ce21a=a36_0x5b65ad,_0x521988={'Rpmmm':function(_0x53670e,_0x27cdc7){return _0x53670e(_0x27cdc7);},'NkCbL':function(_0x463835){return _0x463835();},'FqtmT':_0x6ce21a(0x10a),'FYGzs':function(_0x322379,_0x380175){return _0x322379(_0x380175);},'uGzsF':'Running\x20existing\x20global\x20setup','cVXNh':function(_0xb6048f){return _0xb6048f();},'RRDKf':function(_0x1a0fd6,_0xba696b){return _0x1a0fd6(_0xba696b);},'JPpDS':function(_0x5b2224,_0x23a613){return _0x5b2224>=_0x23a613;},'LtLZS':'1.33.0','Mjwxh':function(_0xed0b4e,_0x41d9e8,_0xa6fbe0){return _0xed0b4e(_0x41d9e8,_0xa6fbe0);},'esKbP':function(_0xa9a36c,_0x1e3fb7){return _0xa9a36c!==_0x1e3fb7;},'Kujce':_0x6ce21a(0x12a),'oEcoO':_0x6ce21a(0x10b)},_0x5c1f51=child_process[_0x6ce21a(0x114)];if(helper[_0x6ce21a(0x11a)]())try{_0x521988[_0x6ce21a(0x118)](mockIsWorkerRedundant);}catch(_0x51abc3){logger[_0x6ce21a(0x12e)](_0x6ce21a(0x107)+util[_0x6ce21a(0x11e)](_0x51abc3));}child_process[_0x6ce21a(0x114)]=function(){const _0x6ea312=_0x6ce21a;return _0x521988[_0x6ea312(0x116)](debug,_0x6ea312(0x126)+arguments[0x0]),arguments[0x0][_0x6ea312(0x10d)](_0x521988[_0x6ea312(0x118)](getForkProcessPath))?arguments[0x0]=require[_0x6ea312(0x113)](_0x521988[_0x6ea312(0x112)]):logger[_0x6ea312(0x12f)]('Path\x20'+_0x521988['NkCbL'](getForkProcessPath)+_0x6ea312(0x125)),_0x5c1f51[_0x6ea312(0x106)](null,arguments);};if(process[_0x6ce21a(0x111)][_0x6ce21a(0x124)]){_0x521988[_0x6ce21a(0x130)](debug,_0x521988[_0x6ce21a(0x120)]);try{const {loadGlobalHook:_0x4c48bd}=helper['requirePWModule'][_0x6ce21a(0x106)](null,_0x521988['cVXNh'](getLoadUtilsPath)),_0x43c0b0=_0x521988[_0x6ce21a(0x123)](getFrameworkVersion,FRAMEWORKS[_0x6ce21a(0x10f)]);let _0x1883b4=_0x8b4d9;if(_0x521988['JPpDS'](helper[_0x6ce21a(0x129)](_0x43c0b0,_0x521988[_0x6ce21a(0x11f)]),0x0)){const _0x3bad5c={};_0x3bad5c['config']=_0x8b4d9,_0x1883b4=_0x3bad5c;}const _0x3cce93=await _0x521988[_0x6ce21a(0x127)](_0x4c48bd,_0x1883b4,process[_0x6ce21a(0x111)][_0x6ce21a(0x124)]);if(_0x521988[_0x6ce21a(0x12b)](typeof _0x3cce93,_0x521988['Kujce']))throw new Error(_0x521988[_0x6ce21a(0x109)]);return _0x3cce93[_0x6ce21a(0x106)](null,arguments);}catch(_0x1c4183){_0x521988[_0x6ce21a(0x130)](debug,_0x6ce21a(0x128)+_0x1c4183[_0x6ce21a(0x10e)]());}}};
|