browserstack-node-sdk 1.34.3 → 1.34.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -0
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x271bf5=a29_0x10e9;(function(_0x32f8d4,_0x417ce9){const _0x5bff36=a29_0x10e9,_0x1ec79d=_0x32f8d4();while(!![]){try{const _0x2d110d=-parseInt(_0x5bff36(0xb2))/0x1+-parseInt(_0x5bff36(0x9e))/0x2+parseInt(_0x5bff36(0xdc))/0x3*(parseInt(_0x5bff36(0xcd))/0x4)+-parseInt(_0x5bff36(0xbb))/0x5*(parseInt(_0x5bff36(0xf3))/0x6)+parseInt(_0x5bff36(0xd0))/0x7+-parseInt(_0x5bff36(0x90))/0x8+-parseInt(_0x5bff36(0xb3))/0x9*(-parseInt(_0x5bff36(0x8b))/0xa);if(_0x2d110d===_0x417ce9)break;else _0x1ec79d['push'](_0x1ec79d['shift']());}catch(_0x2dfcf5){_0x1ec79d['push'](_0x1ec79d['shift']());}}}(a29_0xb824,0x543e7));function a29_0xb824(){const _0x4aea09=['HttpClient','global','guxgF','10wBjUvF','NIUBp','setServer','overrideExecute','browserStackLogLevel','2409488LKfkiF','originalBuilder','evLZG','then','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','ssZYW','caps_','forEach','getRequestOptions','debug','getHubUrl','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','0|5|4|3|2|1','658384SiXIhP','New\x20hub\x20url\x20set\x20to\x20','__setBrowserOptions','__drivers','safariOptions_','get','ldSqx','xtCCM','session_','ms:edgeOptions','options_','QEGpU','hsNML','Eejtp','pVSlP','sqwKC','error','__driversArray','isBrowserstackInfra','Builder','247307EKOdMw','2779065NnjRzP','url_','../../../helpers/patchHelpers','chromeOptions','getGlobal','bIQoP','storeOptimalHubUrl','ieOptions','768415DVlkVt','firefoxOptions','capabilities_','vEkIO','firefoxOptions_','../../../helpers/logger','getAccessibilityResults','build','nuwjM','VVmso','Proxy\x20set\x20to\x20','SetTN','setGlobal','send','capability','../../../bin/utils/constants','isAccessibilityPlatform','chromeOptions_','272XWxmEy','../../../helpers/globals','PXdVx','3444182aqqhTY','keys','/wd/hub','split','getHttpAgent','overrideGet','WkhRO','requireHttpClient','proxyUrl','CAPABILITY_KEY','/session','gNMfn','25395anlciJ','IRGcz','quitCount_','Modifying\x20webdriver\x20builder','ECgJV','getAccessibilityResultsSummary','set','../../../hubAllocationMethods','setCapabilities','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','../accessibility-automation/helper','path','XQEaq','__driver','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','../../../helpers/accessibility-automation/helper','ieOptions_','proxy_','edgeOptions','safari.options','UJbiJ','mergeDeep','GDlZF','6CPxCFA','proxySettings','browserstackAgentObservability','taWfe','wSGIm','push','isPacProxy','rmClD','Hub\x20url\x20set\x20to\x20','edgeOptions_','isUndefined','buhXe','IugbG','info','agent_','newHubUrl','object','HhdVX','GrTCN','tZICx'];a29_0xb824=function(){return _0x4aea09;};return a29_0xb824();}function a29_0x10e9(_0x237ca2,_0x3cb5af){const _0xb8240a=a29_0xb824();return a29_0x10e9=function(_0x10e9a5,_0x379354){_0x10e9a5=_0x10e9a5-0x7e;let _0x5b3534=_0xb8240a[_0x10e9a5];return _0x5b3534;},a29_0x10e9(_0x237ca2,_0x3cb5af);}const logger=require(a29_0x271bf5(0xc0))['winstonLogger'],helper=require('../../../helpers/helper'),constants=require(a29_0x271bf5(0xca)),hubAllocator=require(a29_0x271bf5(0xe3)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x271bf5(0xb5)),{setAccessibilityCapabilities,setExtension}=require(a29_0x271bf5(0xe6)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x271bf5(0xeb)),globals=require(a29_0x271bf5(0xce)),modify=(_0x4a3db8,_0x4bd49a=null,_0x3d7e2b=![])=>{const _0x535239=a29_0x271bf5,_0x32cc8b={'rmClD':function(_0x4d3a0c,_0x11f690){return _0x4d3a0c!==_0x11f690;},'XQEaq':_0x535239(0xda),'bIQoP':function(_0x518cd1,_0x1ec4bd){return _0x518cd1!==_0x1ec4bd;},'hsNML':function(_0x26a291,_0x460fa9){return _0x26a291+_0x460fa9;},'ssZYW':'https://','IugbG':_0x535239(0xd2),'vEkIO':'goog:chromeOptions','buhXe':_0x535239(0xb6),'tZICx':_0x535239(0xa7),'MJbZU':_0x535239(0xee),'QXeUa':'moz:firefoxOptions','IRGcz':_0x535239(0xbc),'evLZG':_0x535239(0xef),'VVmso':'se:ieOptions','PIaqZ':_0x535239(0xba),'UJbiJ':function(_0x4a681a,_0x5495fa){return _0x4a681a===_0x5495fa;},'sqwKC':_0x535239(0x84),'taWfe':'Setting\x20Browserstack\x20capabilities','guxgF':'optimalHubUrl','PXdVx':_0x535239(0xea),'xtCCM':function(_0x5dbf24,_0x1d6f38,_0x222e29){return _0x5dbf24(_0x1d6f38,_0x222e29);},'pVSlP':function(_0x2bd19f,_0x95d51,_0x1f6879){return _0x2bd19f(_0x95d51,_0x1f6879);},'dccOr':function(_0x1a183e,_0x512980,_0x2ec7e6){return _0x1a183e(_0x512980,_0x2ec7e6);},'NIUBp':function(_0x1ad1eb,_0x671828){return _0x1ad1eb(_0x671828);},'nuwjM':_0x535239(0x9d),'yXZPw':function(_0x612428){return _0x612428();},'QEGpU':_0x535239(0x9c),'GrTCN':_0x535239(0xcb),'gNMfn':function(_0x4d7e75,_0x5a8c6e,_0xe9dfa0){return _0x4d7e75(_0x5a8c6e,_0xe9dfa0);},'SetTN':function(_0x545512,_0x5c9ad8){return _0x545512(_0x5c9ad8);},'GDlZF':function(_0x4a8359,_0x595629){return _0x4a8359(_0x595629);},'ECgJV':function(_0x873d84,_0x5c9bcc){return _0x873d84!==_0x5c9bcc;},'TXcmj':_0x535239(0xe5),'SSwtF':_0x535239(0xdf)},_0x19af79=helper[_0x535239(0xd7)]();let _0x30a5f4;try{_0x30a5f4=helper['requireSeleniumWebdriver'](),_0x30a5f4[_0x535239(0x91)]&&(_0x30a5f4[_0x535239(0xb1)]=_0x30a5f4[_0x535239(0x91)]);}catch(_0x37da77){return;}if(helper[_0x535239(0xb0)]()){const _0x156358={};_0x156358['logLevel']=_0x4a3db8[_0x535239(0x8f)],helper['setLogLevel'](_0x156358,new Map(),new Map()),logger[_0x535239(0x81)](_0x32cc8b['TXcmj']),logger['debug'](_0x32cc8b['SSwtF']);}class _0x7f2d02 extends _0x19af79[_0x535239(0x88)]{[_0x535239(0xc8)](_0x33b418){const _0x196d8c=_0x535239;if(_0x32cc8b[_0x196d8c(0xfa)](_0x33b418[_0x196d8c(0xe7)],_0x32cc8b[_0x196d8c(0xe8)])&&_0x32cc8b[_0x196d8c(0xb8)](global[_0x196d8c(0x83)],''))try{global[_0x196d8c(0x83)]=_0x32cc8b[_0x196d8c(0xaa)](_0x32cc8b[_0x196d8c(0xaa)](_0x32cc8b[_0x196d8c(0x96)],global[_0x196d8c(0x83)]),_0x32cc8b[_0x196d8c(0x80)]),this[_0x196d8c(0xa8)]=hubAllocator[_0x196d8c(0x99)](global['newHubUrl']),logger['debug'](_0x196d8c(0x9f)+global['newHubUrl']),global['newHubUrl']='';}catch(_0x42fdc4){logger[_0x196d8c(0xae)](_0x42fdc4);}return super[_0x196d8c(0xc8)](_0x33b418);}}class _0x1c29f4 extends _0x30a5f4['Builder']{[_0x535239(0x8d)](){const _0x1cac95=_0x535239;return this[_0x1cac95(0xb4)]=helper[_0x1cac95(0x9b)](_0x4a3db8),logger[_0x1cac95(0x9a)](_0x1cac95(0xfb)+this[_0x1cac95(0xb4)]),this;}[_0x535239(0xa0)](_0x364648){const _0x3360fb=_0x535239;let _0x955835={};for(const _0x524b29 in _0x364648){switch(_0x524b29){case _0x32cc8b[_0x3360fb(0xbe)]:case _0x32cc8b[_0x3360fb(0x7f)]:this[_0x3360fb(0xcc)]&&(_0x955835=this['chromeOptions_']['get'](this[_0x3360fb(0xcc)][_0x3360fb(0xd9)])||{},this['chromeOptions_']['set'](this[_0x3360fb(0xcc)]['CAPABILITY_KEY'],helper[_0x3360fb(0xf1)](_0x955835,_0x364648[_0x524b29])));break;case _0x32cc8b[_0x3360fb(0x87)]:case _0x32cc8b['MJbZU']:this[_0x3360fb(0xfc)]&&(_0x955835=this[_0x3360fb(0xfc)][_0x3360fb(0xa3)](this[_0x3360fb(0xfc)]['CAPABILITY_KEY'])||{},this['edgeOptions_'][_0x3360fb(0xe2)](this[_0x3360fb(0xfc)][_0x3360fb(0xd9)],helper[_0x3360fb(0xf1)](_0x955835,_0x364648[_0x524b29])));break;case _0x32cc8b['QXeUa']:case _0x32cc8b[_0x3360fb(0xdd)]:this['firefoxOptions_']&&(_0x955835=this[_0x3360fb(0xbf)]['get'](this[_0x3360fb(0xbf)]['CAPABILITY_KEY'])||{},this[_0x3360fb(0xbf)][_0x3360fb(0xe2)](this[_0x3360fb(0xbf)][_0x3360fb(0xd9)],helper[_0x3360fb(0xf1)](_0x955835,_0x364648[_0x524b29])));break;case _0x32cc8b[_0x3360fb(0x92)]:this[_0x3360fb(0xa2)]&&(_0x955835=this['safariOptions_']['get'](this['safariOptions_'][_0x3360fb(0xd9)])||{},this[_0x3360fb(0xa2)]['set'](this[_0x3360fb(0xa2)][_0x3360fb(0xd9)],helper[_0x3360fb(0xf1)](_0x955835,_0x364648[_0x524b29])));break;case _0x32cc8b[_0x3360fb(0xc4)]:case _0x32cc8b['PIaqZ']:this[_0x3360fb(0xec)]&&(_0x955835=this[_0x3360fb(0xec)]['get'](this[_0x3360fb(0xec)]['CAPABILITY_KEY'])||{},this['ieOptions_'][_0x3360fb(0xe2)](this[_0x3360fb(0xec)][_0x3360fb(0xd9)],helper['mergeDeep'](_0x955835,_0x364648[_0x524b29])));break;}}}[_0x535239(0xe4)](){const _0xd5fa23=_0x535239,_0x48679d={'HhdVX':function(_0x1ec350,_0x374432){const _0x45c2fd=a29_0x10e9;return _0x32cc8b[_0x45c2fd(0xf0)](_0x1ec350,_0x374432);},'wSGIm':_0x32cc8b[_0xd5fa23(0xad)]};return logger[_0xd5fa23(0x9a)](_0x32cc8b[_0xd5fa23(0xf6)]),this[_0xd5fa23(0xa0)](_0x4a3db8[_0xd5fa23(0xc9)]),Object[_0xd5fa23(0xd1)](_0x4a3db8[_0xd5fa23(0xc9)])[_0xd5fa23(0x98)](_0x2b355b=>{const _0x3c8663=_0xd5fa23,_0x27885a=this[_0x3c8663(0xbd)]['get'](_0x2b355b);_0x48679d[_0x3c8663(0x85)](typeof _0x27885a,_0x48679d[_0x3c8663(0xf7)])?this[_0x3c8663(0xbd)]['set'](_0x2b355b,helper[_0x3c8663(0xf1)](_0x27885a,_0x4a3db8[_0x3c8663(0xc9)][_0x2b355b])):this['capabilities_'][_0x3c8663(0xe2)](_0x2b355b,_0x4a3db8[_0x3c8663(0xc9)][_0x2b355b]);}),this;}[_0x535239(0xc2)](){const _0xe66987=_0x535239,_0x29ff93={'Eejtp':function(_0x1b0b27,_0x1da2b0,_0x5bdfb4){const _0x535b6c=a29_0x10e9;return _0x32cc8b[_0x535b6c(0xac)](_0x1b0b27,_0x1da2b0,_0x5bdfb4);},'ldSqx':function(_0x3267db,_0xf39e7e,_0x1ecaf4){return _0x32cc8b['dccOr'](_0x3267db,_0xf39e7e,_0x1ecaf4);},'WkhRO':function(_0x4973ee,_0x4a56f8,_0x3a7fa4){const _0x39d7f6=a29_0x10e9;return _0x32cc8b[_0x39d7f6(0xa5)](_0x4973ee,_0x4a56f8,_0x3a7fa4);},'BylVC':function(_0x437b56,_0x46bcd6){const _0x48944a=a29_0x10e9;return _0x32cc8b[_0x48944a(0x8c)](_0x437b56,_0x46bcd6);}};if(helper['isBrowserstackInfra']()){const _0x59c268=_0x32cc8b[_0xe66987(0xc3)][_0xe66987(0xd3)]('|');let _0x4b42ef=0x0;while(!![]){switch(_0x59c268[_0x4b42ef++]){case'0':_0x32cc8b['yXZPw'](isAccessibilityAutomationSession)&&_0x32cc8b['NIUBp'](setAccessibilityCapabilities,_0x4a3db8);continue;case'1':logger[_0xe66987(0x9a)](_0x32cc8b[_0xe66987(0xa9)]);continue;case'2':globals[_0xe66987(0xb7)](_0x32cc8b[_0xe66987(0x86)])&&(!_0x32cc8b[_0xe66987(0xdb)](setExtension,this,_0x4a3db8)&&globals[_0xe66987(0xc7)](_0x32cc8b['GrTCN'],![]));continue;case'3':if(helper[_0xe66987(0xf9)](_0x4a3db8[_0xe66987(0xf4)][_0xe66987(0xd8)]))this[_0xe66987(0x82)]=helper[_0xe66987(0xd4)](_0x4a3db8[_0xe66987(0xf4)][_0xe66987(0xd8)]);else _0x4a3db8['proxySettings'][_0xe66987(0xd8)]&&(this[_0xe66987(0xed)]=_0x4a3db8[_0xe66987(0xf4)][_0xe66987(0xd8)],logger[_0xe66987(0x9a)](_0xe66987(0xc5)+this['proxy_']));continue;case'4':this[_0xe66987(0xe4)]();continue;case'5':this[_0xe66987(0x8d)]();continue;}break;}}const _0x1df831=super['build']();return _0x1df831[_0xe66987(0xa6)][_0xe66987(0x93)](_0xedc44e=>{const _0x2514ab=_0xe66987;try{const _0x30d323=_0xedc44e[_0x2514ab(0x97)][_0x2514ab(0xa3)](_0x32cc8b[_0x2514ab(0x8a)]);_0x30d323?(logger[_0x2514ab(0x9a)](_0x2514ab(0x95)+_0x30d323),hubAllocator['updateHubUrl'](_0x30d323),helper[_0x2514ab(0xb9)](_0x30d323)):logger['debug'](_0x32cc8b[_0x2514ab(0xcf)]);}catch(_0x2539e2){logger['debug'](_0x2514ab(0x94)+_0x2539e2);}}),_0x1df831[_0xe66987(0xde)]=0x0,_0x1df831[_0xe66987(0x93)]&&_0x1df831[_0xe66987(0x93)](_0x185691=>{const _0x438ef7=_0xe66987,_0x7b603b={'jxIyB':function(_0x56f493,_0x49c2de,_0x476d58){const _0x1bd19b=a29_0x10e9;return _0x29ff93[_0x1bd19b(0xa4)](_0x56f493,_0x49c2de,_0x476d58);}};_0x29ff93[_0x438ef7(0xd6)](overrideQuit,_0x185691,_0x1df831),_0x29ff93['BylVC'](overrideTakeScreenshot,_0x185691),helper[_0x438ef7(0xd5)](_0x185691,_0x4a3db8),helper[_0x438ef7(0x8e)](_0x185691,_0x4a3db8),_0x185691['getAccessibilityResultsSummary']=async()=>{const _0x29d6cf=_0x438ef7;return await _0x29ff93[_0x29d6cf(0xab)](getAccessibilityResultsSummary,_0x185691,global);},_0x185691[_0x438ef7(0xc1)]=async()=>{return await _0x7b603b['jxIyB'](getAccessibilityResults,_0x185691,global);};}),_0x1df831[_0xe66987(0xe1)]=async()=>{const _0x38e050=_0xe66987;return await _0x29ff93[_0x38e050(0xab)](getAccessibilityResultsSummary,_0x1df831,global);},_0x1df831[_0xe66987(0xc1)]=async()=>{const _0xb72842=_0xe66987;return await _0x32cc8b[_0xb72842(0xa5)](getAccessibilityResults,_0x1df831,global);},_0x32cc8b[_0xe66987(0xc6)](overrideTakeScreenshot,_0x1df831),_0x32cc8b[_0xe66987(0xf2)](overrideQuit,_0x1df831),helper[_0xe66987(0xd5)](_0x1df831,_0x4a3db8),helper[_0xe66987(0x8e)](_0x1df831,_0x4a3db8),helper['isUndefined'](global['__driversArray'])&&(global['__driversArray']=[]),helper[_0xe66987(0x7e)](global[_0xe66987(0xa1)])&&(global[_0xe66987(0xa1)]=[]),global[_0xe66987(0xaf)][_0xe66987(0xf8)](_0x1df831),global[_0xe66987(0xe9)]=_0x1df831,_0x32cc8b[_0xe66987(0xb8)](global['__drivers'],undefined)&&global[_0xe66987(0xa1)][_0xe66987(0xf8)](_0x1df831),_0x4bd49a&&helper['isUndefined'](_0x4bd49a[_0xe66987(0x89)]['__driversArray'])&&(_0x4bd49a[_0xe66987(0x89)][_0xe66987(0xaf)]=[]),_0x4bd49a&&_0x32cc8b[_0xe66987(0xe0)](_0x4bd49a['global']['__drivers'],undefined)&&(_0x4bd49a[_0xe66987(0x89)][_0xe66987(0xa1)]['push'](_0x1df831),_0x4bd49a[_0xe66987(0x89)][_0xe66987(0xaf)][_0xe66987(0xf8)](_0x1df831)),_0x1df831;}}return _0x30a5f4[_0x535239(0x91)]=_0x30a5f4[_0x535239(0xb1)],_0x30a5f4[_0x535239(0xb1)]=_0x1c29f4,_0x19af79[_0x535239(0x88)]=_0x7f2d02,_0x30a5f4;};module['exports'][a29_0x271bf5(0xf5)]=modify;
|
|
1
|
+
const a29_0x38a042=a29_0x3b9d;(function(_0x4bf1c4,_0xb4c3b2){const _0x5d7973=a29_0x3b9d,_0x368343=_0x4bf1c4();while(!![]){try{const _0x6ae698=-parseInt(_0x5d7973(0x193))/0x1+-parseInt(_0x5d7973(0x1a3))/0x2*(-parseInt(_0x5d7973(0x18c))/0x3)+parseInt(_0x5d7973(0x1c5))/0x4+parseInt(_0x5d7973(0x1c6))/0x5*(parseInt(_0x5d7973(0x198))/0x6)+parseInt(_0x5d7973(0x177))/0x7+parseInt(_0x5d7973(0x184))/0x8*(-parseInt(_0x5d7973(0x1b4))/0x9)+-parseInt(_0x5d7973(0x18e))/0xa;if(_0x6ae698===_0xb4c3b2)break;else _0x368343['push'](_0x368343['shift']());}catch(_0xcad19b){_0x368343['push'](_0x368343['shift']());}}}(a29_0x4b5c,0xa9833));const logger=require(a29_0x38a042(0x16e))[a29_0x38a042(0x170)],helper=require(a29_0x38a042(0x1a1)),constants=require(a29_0x38a042(0x186)),hubAllocator=require(a29_0x38a042(0x1c1)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x38a042(0x161)),{setAccessibilityCapabilities,setExtension}=require(a29_0x38a042(0x157)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require('../../../helpers/globals'),modify=(_0x3ecc0b,_0x251f77=null,_0x89b24d=![])=>{const _0x3863a7=a29_0x38a042,_0x5ad512={'yfPMW':function(_0x2b3190,_0x42f3d1){return _0x2b3190!==_0x42f3d1;},'eENKt':_0x3863a7(0x15e),'nqWYL':function(_0x3f48f6,_0x8c290c){return _0x3f48f6!==_0x8c290c;},'ysDUx':function(_0x48e6c3,_0x2d773f){return _0x48e6c3+_0x2d773f;},'WiPhl':_0x3863a7(0x1a4),'udrMt':_0x3863a7(0x155),'CYQys':_0x3863a7(0x174),'lehbg':_0x3863a7(0x1ad),'wJNrZ':_0x3863a7(0x1aa),'wdSKH':_0x3863a7(0x17a),'ZbXun':_0x3863a7(0x1ae),'bpyBR':_0x3863a7(0x19c),'ymJVv':'safari.options','geAaF':'se:ieOptions','aLmMW':_0x3863a7(0x1c4),'JwEXd':function(_0x406709,_0x294047){return _0x406709===_0x294047;},'sQgpf':'object','qfcad':'Setting\x20Browserstack\x20capabilities','fYIzI':_0x3863a7(0x167),'dkUKu':_0x3863a7(0x1b2),'HTxxb':function(_0x3ca270,_0x567ff3,_0x56a8b7){return _0x3ca270(_0x567ff3,_0x56a8b7);},'zmRsk':function(_0x1a78b1,_0x3e0e67,_0x40027a){return _0x1a78b1(_0x3e0e67,_0x40027a);},'qLROv':function(_0x4d750d,_0x302caa){return _0x4d750d(_0x302caa);},'oKrIY':function(_0x10f9f6,_0x253a08,_0x1058e0){return _0x10f9f6(_0x253a08,_0x1058e0);},'RIEom':'2|4|0|5|3|1','kdrOy':_0x3863a7(0x179),'WPHte':function(_0x372b4c){return _0x372b4c();},'SLDIu':_0x3863a7(0x171),'XuqaL':function(_0x3eb5bf,_0x3c3bd8){return _0x3eb5bf(_0x3c3bd8);},'pZJPX':function(_0x4a1577,_0x36544a){return _0x4a1577(_0x36544a);},'mzbOO':function(_0x2e42c9,_0x34ac22){return _0x2e42c9!==_0x34ac22;},'qmxQc':function(_0x5c5f0c,_0x377975){return _0x5c5f0c!==_0x377975;},'AJkZD':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','rErCS':_0x3863a7(0x156)},_0x27a7c6=helper[_0x3863a7(0x16a)]();let _0x12b626;try{_0x12b626=helper[_0x3863a7(0x187)](),_0x12b626['originalBuilder']&&(_0x12b626[_0x3863a7(0x199)]=_0x12b626[_0x3863a7(0x18b)]);}catch(_0x3f8bfa){return;}if(helper['isBrowserstackInfra']()){const _0x2bddbd={};_0x2bddbd[_0x3863a7(0x197)]=_0x3ecc0b['browserStackLogLevel'],helper[_0x3863a7(0x1b6)](_0x2bddbd,new Map(),new Map()),logger['info'](_0x5ad512['AJkZD']),logger[_0x3863a7(0x1a8)](_0x5ad512[_0x3863a7(0x16f)]);}class _0x32409c extends _0x27a7c6[_0x3863a7(0x190)]{[_0x3863a7(0x17b)](_0x421ccb){const _0x29a1a3=_0x3863a7;if(_0x5ad512[_0x29a1a3(0x19e)](_0x421ccb[_0x29a1a3(0x1b1)],_0x5ad512['eENKt'])&&_0x5ad512[_0x29a1a3(0x1af)](global[_0x29a1a3(0x188)],''))try{global[_0x29a1a3(0x188)]=_0x5ad512['ysDUx'](_0x5ad512[_0x29a1a3(0x191)](_0x5ad512[_0x29a1a3(0x1bb)],global[_0x29a1a3(0x188)]),_0x5ad512[_0x29a1a3(0x158)]),this['options_']=hubAllocator[_0x29a1a3(0x1ac)](global[_0x29a1a3(0x188)]),logger[_0x29a1a3(0x1a8)](_0x29a1a3(0x1b9)+global[_0x29a1a3(0x188)]),global['newHubUrl']='';}catch(_0x412aaf){logger[_0x29a1a3(0x152)](_0x412aaf);}return super[_0x29a1a3(0x17b)](_0x421ccb);}}class _0x2f712b extends _0x12b626[_0x3863a7(0x199)]{[_0x3863a7(0x1bf)](){const _0x5f15d6=_0x3863a7;return this['url_']=helper['getHubUrl'](_0x3ecc0b),logger[_0x5f15d6(0x1a8)](_0x5f15d6(0x164)+this['url_']),this;}[_0x3863a7(0x15b)](_0xaa5973){const _0x476ba6=_0x3863a7;let _0xa45ab2={};for(const _0x3c82d8 in _0xaa5973){switch(_0x3c82d8){case _0x5ad512[_0x476ba6(0x19d)]:case _0x5ad512[_0x476ba6(0x1bc)]:this[_0x476ba6(0x159)]&&(_0xa45ab2=this[_0x476ba6(0x159)][_0x476ba6(0x163)](this[_0x476ba6(0x159)][_0x476ba6(0x18d)])||{},this[_0x476ba6(0x159)][_0x476ba6(0x19f)](this['chromeOptions_'][_0x476ba6(0x18d)],helper[_0x476ba6(0x1b7)](_0xa45ab2,_0xaa5973[_0x3c82d8])));break;case _0x5ad512['wJNrZ']:case _0x5ad512[_0x476ba6(0x194)]:this['edgeOptions_']&&(_0xa45ab2=this[_0x476ba6(0x182)]['get'](this['edgeOptions_'][_0x476ba6(0x18d)])||{},this[_0x476ba6(0x182)]['set'](this['edgeOptions_']['CAPABILITY_KEY'],helper[_0x476ba6(0x1b7)](_0xa45ab2,_0xaa5973[_0x3c82d8])));break;case _0x5ad512[_0x476ba6(0x165)]:case _0x5ad512[_0x476ba6(0x17c)]:this[_0x476ba6(0x185)]&&(_0xa45ab2=this[_0x476ba6(0x185)][_0x476ba6(0x163)](this[_0x476ba6(0x185)]['CAPABILITY_KEY'])||{},this[_0x476ba6(0x185)][_0x476ba6(0x19f)](this[_0x476ba6(0x185)][_0x476ba6(0x18d)],helper[_0x476ba6(0x1b7)](_0xa45ab2,_0xaa5973[_0x3c82d8])));break;case _0x5ad512['ymJVv']:this[_0x476ba6(0x15d)]&&(_0xa45ab2=this[_0x476ba6(0x15d)][_0x476ba6(0x163)](this[_0x476ba6(0x15d)][_0x476ba6(0x18d)])||{},this['safariOptions_'][_0x476ba6(0x19f)](this[_0x476ba6(0x15d)][_0x476ba6(0x18d)],helper[_0x476ba6(0x1b7)](_0xa45ab2,_0xaa5973[_0x3c82d8])));break;case _0x5ad512[_0x476ba6(0x1a0)]:case _0x5ad512[_0x476ba6(0x196)]:this[_0x476ba6(0x151)]&&(_0xa45ab2=this[_0x476ba6(0x151)]['get'](this['ieOptions_'][_0x476ba6(0x18d)])||{},this[_0x476ba6(0x151)][_0x476ba6(0x19f)](this[_0x476ba6(0x151)][_0x476ba6(0x18d)],helper[_0x476ba6(0x1b7)](_0xa45ab2,_0xaa5973[_0x3c82d8])));break;}}}[_0x3863a7(0x18f)](){const _0x79e6fb=_0x3863a7;return logger[_0x79e6fb(0x1a8)](_0x5ad512[_0x79e6fb(0x1b0)]),this[_0x79e6fb(0x15b)](_0x3ecc0b[_0x79e6fb(0x181)]),Object['keys'](_0x3ecc0b['capability'])[_0x79e6fb(0x189)](_0x950261=>{const _0x12e00b=_0x79e6fb,_0x22e501=this['capabilities_']['get'](_0x950261);_0x5ad512[_0x12e00b(0x178)](typeof _0x22e501,_0x5ad512[_0x12e00b(0x192)])?this[_0x12e00b(0x160)][_0x12e00b(0x19f)](_0x950261,helper[_0x12e00b(0x1b7)](_0x22e501,_0x3ecc0b['capability'][_0x950261])):this[_0x12e00b(0x160)][_0x12e00b(0x19f)](_0x950261,_0x3ecc0b[_0x12e00b(0x181)][_0x950261]);}),this;}[_0x3863a7(0x153)](){const _0x292b84=_0x3863a7;if(helper['isBrowserstackInfra']()){const _0x38b087=_0x5ad512[_0x292b84(0x180)][_0x292b84(0x15f)]('|');let _0x3423b9=0x0;while(!![]){switch(_0x38b087[_0x3423b9++]){case'0':this['setCapabilities']();continue;case'1':logger[_0x292b84(0x1a8)](_0x5ad512[_0x292b84(0x17f)]);continue;case'2':_0x5ad512[_0x292b84(0x1ba)](isAccessibilityAutomationSession)&&_0x5ad512[_0x292b84(0x16c)](setAccessibilityCapabilities,_0x3ecc0b);continue;case'3':globals[_0x292b84(0x1c7)](_0x5ad512[_0x292b84(0x169)])&&(!_0x5ad512[_0x292b84(0x173)](setExtension,this,_0x3ecc0b)&&globals['setGlobal'](_0x5ad512[_0x292b84(0x169)],![]));continue;case'4':this[_0x292b84(0x1bf)]();continue;case'5':if(helper['isPacProxy'](_0x3ecc0b['proxySettings'][_0x292b84(0x17d)]))this[_0x292b84(0x1bd)]=helper[_0x292b84(0x1c0)](_0x3ecc0b[_0x292b84(0x19b)][_0x292b84(0x17d)]);else _0x3ecc0b[_0x292b84(0x19b)][_0x292b84(0x17d)]&&(this[_0x292b84(0x1a2)]=_0x3ecc0b[_0x292b84(0x19b)][_0x292b84(0x17d)],logger['debug'](_0x292b84(0x1a7)+this[_0x292b84(0x1a2)]));continue;}break;}}const _0x4ced96=super[_0x292b84(0x153)]();return _0x4ced96['session_'][_0x292b84(0x18a)](_0x198659=>{const _0x2ff2b5=_0x292b84;try{const _0x517c4b=_0x198659[_0x2ff2b5(0x176)][_0x2ff2b5(0x163)](_0x5ad512[_0x2ff2b5(0x1b5)]);_0x517c4b?(logger[_0x2ff2b5(0x1a8)](_0x2ff2b5(0x162)+_0x517c4b),hubAllocator[_0x2ff2b5(0x1a5)](_0x517c4b),helper[_0x2ff2b5(0x195)](_0x517c4b)):logger['debug'](_0x5ad512[_0x2ff2b5(0x17e)]);}catch(_0x2e0336){logger[_0x2ff2b5(0x1a8)](_0x2ff2b5(0x1a9)+_0x2e0336);}}),_0x4ced96[_0x292b84(0x19a)]=0x0,_0x4ced96[_0x292b84(0x18a)]&&_0x4ced96[_0x292b84(0x18a)](_0x596767=>{const _0x42b94b=_0x292b84,_0x381dec={'kNplV':function(_0x13b7ca,_0x2c770f,_0x385061){return _0x5ad512['HTxxb'](_0x13b7ca,_0x2c770f,_0x385061);},'YbmQy':function(_0x4c28e3,_0x2112ac,_0x458a6f){const _0x468589=a29_0x3b9d;return _0x5ad512[_0x468589(0x166)](_0x4c28e3,_0x2112ac,_0x458a6f);}};_0x5ad512['zmRsk'](overrideQuit,_0x596767,_0x4ced96),_0x5ad512[_0x42b94b(0x16c)](overrideTakeScreenshot,_0x596767),helper[_0x42b94b(0x15c)](_0x596767,_0x3ecc0b),helper['overrideExecute'](_0x596767,_0x3ecc0b),_0x596767[_0x42b94b(0x150)]=async()=>{const _0x27c2da=_0x42b94b;return await _0x381dec[_0x27c2da(0x172)](getAccessibilityResultsSummary,_0x596767,global);},_0x596767[_0x42b94b(0x1c2)]=async()=>{const _0x2d3224=_0x42b94b;return await _0x381dec[_0x2d3224(0x1ab)](getAccessibilityResults,_0x596767,global);};}),_0x4ced96[_0x292b84(0x150)]=async()=>{const _0x4c3b97=_0x292b84;return await _0x5ad512[_0x4c3b97(0x173)](getAccessibilityResultsSummary,_0x4ced96,global);},_0x4ced96[_0x292b84(0x1c2)]=async()=>{const _0x5560bd=_0x292b84;return await _0x5ad512[_0x5560bd(0x183)](getAccessibilityResults,_0x4ced96,global);},_0x5ad512[_0x292b84(0x15a)](overrideTakeScreenshot,_0x4ced96),_0x5ad512[_0x292b84(0x16b)](overrideQuit,_0x4ced96),helper[_0x292b84(0x15c)](_0x4ced96,_0x3ecc0b),helper[_0x292b84(0x175)](_0x4ced96,_0x3ecc0b),helper[_0x292b84(0x16d)](global[_0x292b84(0x1c3)])&&(global[_0x292b84(0x1c3)]=[]),helper[_0x292b84(0x16d)](global[_0x292b84(0x1a6)])&&(global[_0x292b84(0x1a6)]=[]),global[_0x292b84(0x1c3)][_0x292b84(0x154)](_0x4ced96),global['__driver']=_0x4ced96,_0x5ad512[_0x292b84(0x1b3)](global[_0x292b84(0x1a6)],undefined)&&global[_0x292b84(0x1a6)][_0x292b84(0x154)](_0x4ced96),_0x251f77&&helper[_0x292b84(0x16d)](_0x251f77[_0x292b84(0x168)][_0x292b84(0x1c3)])&&(_0x251f77[_0x292b84(0x168)]['__driversArray']=[]),_0x251f77&&_0x5ad512[_0x292b84(0x1b8)](_0x251f77[_0x292b84(0x168)][_0x292b84(0x1a6)],undefined)&&(_0x251f77[_0x292b84(0x168)]['__drivers'][_0x292b84(0x154)](_0x4ced96),_0x251f77[_0x292b84(0x168)][_0x292b84(0x1c3)][_0x292b84(0x154)](_0x4ced96)),_0x4ced96;}}return _0x12b626[_0x3863a7(0x18b)]=_0x12b626[_0x3863a7(0x199)],_0x12b626['Builder']=_0x2f712b,_0x27a7c6['HttpClient']=_0x32409c,_0x12b626;};function a29_0x3b9d(_0x211af2,_0x2d601b){const _0x4b5c89=a29_0x4b5c();return a29_0x3b9d=function(_0x3b9d01,_0xd6c68e){_0x3b9d01=_0x3b9d01-0x150;let _0x512cfd=_0x4b5c89[_0x3b9d01];return _0x512cfd;},a29_0x3b9d(_0x211af2,_0x2d601b);}module[a29_0x38a042(0x1be)]['browserstackAgentObservability']=modify;function a29_0x4b5c(){const _0xc94b25=['JwEXd','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','edgeOptions','send','bpyBR','proxyUrl','dkUKu','kdrOy','RIEom','capability','edgeOptions_','oKrIY','1429768fPLBOj','firefoxOptions_','../../../bin/utils/constants','requireSeleniumWebdriver','newHubUrl','forEach','then','originalBuilder','118452hmURwZ','CAPABILITY_KEY','29299240VKYfjS','setCapabilities','HttpClient','ysDUx','sQgpf','105943LDJSJt','wdSKH','storeOptimalHubUrl','aLmMW','logLevel','37032AgjXDQ','Builder','quitCount_','proxySettings','firefoxOptions','CYQys','yfPMW','set','geAaF','../../../helpers/helper','proxy_','26ZqexMb','https://','updateHubUrl','__drivers','Proxy\x20set\x20to\x20','debug','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','ms:edgeOptions','YbmQy','getRequestOptions','chromeOptions','moz:firefoxOptions','nqWYL','qfcad','path','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','mzbOO','9LfYJYn','fYIzI','setLogLevel','mergeDeep','qmxQc','New\x20hub\x20url\x20set\x20to\x20','WPHte','WiPhl','lehbg','agent_','exports','setServer','getHttpAgent','../../../hubAllocationMethods','getAccessibilityResults','__driversArray','ieOptions','4307500KcaAdS','995jaJlfz','getGlobal','getAccessibilityResultsSummary','ieOptions_','error','build','push','/wd/hub','Modifying\x20webdriver\x20builder','../accessibility-automation/helper','udrMt','chromeOptions_','XuqaL','__setBrowserOptions','overrideGet','safariOptions_','/session','split','capabilities_','../../../helpers/patchHelpers','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','get','Hub\x20url\x20set\x20to\x20','ZbXun','HTxxb','optimalHubUrl','global','SLDIu','requireHttpClient','pZJPX','qLROv','isUndefined','../../../helpers/logger','rErCS','winstonLogger','isAccessibilityPlatform','kNplV','zmRsk','goog:chromeOptions','overrideExecute','caps_','7633612lHyRCz'];a29_0x4b5c=function(){return _0xc94b25;};return a29_0x4b5c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a30_0x379c(_0x2f5c52,_0x47181f){const _0x2c4f29=a30_0x2c4f();return a30_0x379c=function(_0x379c18,_0x4d55f8){_0x379c18=_0x379c18-0x110;let _0x1c2264=_0x2c4f29[_0x379c18];return _0x1c2264;},a30_0x379c(_0x2f5c52,_0x47181f);}const a30_0x1acf9e=a30_0x379c;(function(_0x2c03bf,_0xc75b5a){const _0x1774c3=a30_0x379c,_0x27e147=_0x2c03bf();while(!![]){try{const _0x28c2bd=-parseInt(_0x1774c3(0x11c))/0x1*(parseInt(_0x1774c3(0x110))/0x2)+-parseInt(_0x1774c3(0x118))/0x3*(-parseInt(_0x1774c3(0x111))/0x4)+parseInt(_0x1774c3(0x115))/0x5*(parseInt(_0x1774c3(0x116))/0x6)+parseInt(_0x1774c3(0x11a))/0x7*(parseInt(_0x1774c3(0x119))/0x8)+parseInt(_0x1774c3(0x11b))/0x9+-parseInt(_0x1774c3(0x11f))/0xa*(-parseInt(_0x1774c3(0x113))/0xb)+parseInt(_0x1774c3(0x11d))/0xc*(-parseInt(_0x1774c3(0x117))/0xd);if(_0x28c2bd===_0xc75b5a)break;else _0x27e147['push'](_0x27e147['shift']());}catch(_0x45417d){_0x27e147['push'](_0x27e147['shift']());}}}(a30_0x2c4f,0xc3227));const requestSpy=require('../../../helpers/request-spy'),constants=require(a30_0x1acf9e(0x120)),{addRequestSpy}=require(a30_0x1acf9e(0x112));exports['mochaHooks']={'beforeAll'(){const _0x1eb0ac=a30_0x1acf9e,_0x4f8808={'AJfZd':function(_0x20f643){return _0x20f643();}},_0x886754='browserstack internal helper hook';_0x4f8808[_0x1eb0ac(0x114)](addRequestSpy);},'afterAll'(){const _0x3b0bcd=a30_0x1acf9e,_0x2732f0='browserstack internal helper hook';this[_0x3b0bcd(0x121)](0xea60),requestSpy[_0x3b0bcd(0x11e)]();}};function a30_0x2c4f(){const _0x1fc26e=['401cipIWH','1352616XjPhFt','restore','10QwxnDw','../../../bin/utils/constants','timeout','3766ELWGmp','429404qCZICE','../../../helpers/test-observability/utils','16537741MsuoDE','AJfZd','274955XVvQtw','96HWgbWY','351NXHzka','39CsQHsA','848Ijoydo','47089YgjOWd','952452DRuLWO'];a30_0x2c4f=function(){return _0x1fc26e;};return a30_0x2c4f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a31_0x4556(){const _0x33592b=['289390LcFTKE','41529bmiUmy','parent','getBrowserName','BIGiv','CsGdO','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','fromEntries','3088640qCXqjl','_beforeAll','generic','WBZvS','hookAnalyticsId','ZKlfv','Nccaa','js-','hOVBx','4FuJmcO','tests','mFAlc','nNOdY','BsKYI','1490344CVAsnM','browserstack','../../../../package.json','EmRbE','../../../helpers/test-observability/utils','boifd','lpPbA','NMSPe','getPlatform','ZbmKb','automate','getCapabilities','_beforeEach','map_','markedStatus','../../../helpers/helper','hook','6ceFgsP','_afterAll','slice','YKtpL','../../../helpers/test-observability/constants','hcJOP','TEST_PLATFORM','failed','wijOA','state','app-automate','Ecfjv','keys','808845WPPpqA','__cloud_provider___','848205EAfxoJ','indexOf','cZech','getHookDetails','ueCnz','BVEeD','app','cgsqq','qddMO','YpPlG','filter','bs:addPlatformDetails:','pending','tvObJ','LOIJC','passed','_afterEach','mapTestHooks','getHooksForTest','sendPlatformDetails','TZqXD','unknown_grid','toISOString','GkZkw','7XftMXJ','concat','type','hook:','430512mIcJIc','suites','kckmc','lRPoF','DkYrn','getBrowserVersion','PRRWL','BXiws','split','forEach','hvjRc','YlTWm','appium:app','../../../helpers/testhub/utils','toJSON'];a31_0x4556=function(){return _0x33592b;};return a31_0x4556();}const a31_0x742c2c=a31_0x55de;function a31_0x55de(_0x3e6b5c,_0x23211d){const _0x45564e=a31_0x4556();return a31_0x55de=function(_0x55de50,_0x456d66){_0x55de50=_0x55de50-0x168;let _0x46f4a7=_0x45564e[_0x55de50];return _0x46f4a7;},a31_0x55de(_0x3e6b5c,_0x23211d);}(function(_0x262cd9,_0x4eb584){const _0x59606c=a31_0x55de,_0x89c145=_0x262cd9();while(!![]){try{const _0x234e12=parseInt(_0x59606c(0x177))/0x1*(-parseInt(_0x59606c(0x19d))/0x2)+parseInt(_0x59606c(0x1aa))/0x3+parseInt(_0x59606c(0x187))/0x4*(parseInt(_0x59606c(0x176))/0x5)+-parseInt(_0x59606c(0x1c8))/0x6+parseInt(_0x59606c(0x1c4))/0x7*(-parseInt(_0x59606c(0x18c))/0x8)+-parseInt(_0x59606c(0x1ac))/0x9+parseInt(_0x59606c(0x17e))/0xa;if(_0x234e12===_0x4eb584)break;else _0x89c145['push'](_0x89c145['shift']());}catch(_0x537ba4){_0x89c145['push'](_0x89c145['shift']());}}}(a31_0x4556,0x26ef8));const {v4:uuidv4}=require('uuid'),{name,version}=require(a31_0x742c2c(0x18e)),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook}=require(a31_0x742c2c(0x190)),{consoleHolder}=require(a31_0x742c2c(0x1a1)),{getPlatformVersion}=require(a31_0x742c2c(0x19b)),{shouldProcessEventForTesthub}=require(a31_0x742c2c(0x174));console={},Object[a31_0x742c2c(0x1a9)](consoleHolder)[a31_0x742c2c(0x170)](_0x32f4d2=>{console[_0x32f4d2]=(..._0x5decda)=>{BSTestOpsPatcher[_0x32f4d2](..._0x5decda);};}),exports['getTestEnv']=()=>{const _0x326dcc=a31_0x742c2c,_0x2cc732={'EmRbE':_0x326dcc(0x180),'pwmRY':function(_0x23b429){return _0x23b429();}};return{'ci':_0x2cc732[_0x326dcc(0x18f)],'key':_0x2cc732['pwmRY'](uuidv4),'version':version,'collector':_0x326dcc(0x185)+name};},exports[a31_0x742c2c(0x1af)]=_0x24254f=>{const _0x25428e=a31_0x742c2c,_0x4f8477={};_0x4f8477[_0x25428e(0x1c3)]=function(_0x44f265,_0x5ed0a0){return _0x44f265!==_0x5ed0a0;},_0x4f8477[_0x25428e(0x192)]='string',_0x4f8477[_0x25428e(0x1c0)]=function(_0x156f55,_0x5ec7f8){return _0x156f55!==_0x5ec7f8;},_0x4f8477[_0x25428e(0x1ba)]=_0x25428e(0x1c7),_0x4f8477['lRPoF']=function(_0x115d83,_0x3507f3){return _0x115d83!==_0x3507f3;},_0x4f8477['CsGdO']='hook';const _0x145a98=_0x4f8477;if(!_0x24254f||_0x145a98[_0x25428e(0x1c3)](typeof _0x24254f,_0x145a98[_0x25428e(0x192)]))return[null,null];if(_0x145a98[_0x25428e(0x1c0)](_0x24254f[_0x25428e(0x1ad)](_0x145a98['LOIJC']),-0x1)){const _0x59914d=_0x24254f[_0x25428e(0x16f)](_0x145a98[_0x25428e(0x1ba)]);return[_0x59914d[0x0][_0x25428e(0x19f)](0x0,-0x1)['split']('\x22')[0x1],_0x59914d[0x1]['substring'](0x1)];}else{if(_0x145a98[_0x25428e(0x16a)](_0x24254f[_0x25428e(0x1ad)](_0x145a98[_0x25428e(0x17b)]),-0x1)){const _0x34a200=_0x24254f[_0x25428e(0x16f)](_0x145a98['CsGdO']);return[_0x34a200[0x0][_0x25428e(0x19f)](0x0,-0x1)[_0x25428e(0x16f)]('\x22')[0x1],_0x24254f];}}return[null,null];},exports['getHooksForTest']=_0x31ae78=>{const _0xba3f55=a31_0x742c2c,_0x17c365={'PRRWL':function(_0x2fd79c,_0x283eec){return _0x2fd79c(_0x283eec);},'BVEeD':_0xba3f55(0x17f),'mFAlc':_0xba3f55(0x19e),'hOVBx':_0xba3f55(0x198),'tvObJ':_0xba3f55(0x1bc)};if(!_0x31ae78||!_0x31ae78[_0xba3f55(0x178)])return[];const _0x371836=[];return[_0x17c365[_0xba3f55(0x1b1)],_0x17c365[_0xba3f55(0x189)],_0x17c365[_0xba3f55(0x186)],_0x17c365[_0xba3f55(0x1b9)]][_0xba3f55(0x170)](_0x38b3c2=>{const _0x522386=_0xba3f55,_0x4e53b7={'nNOdY':function(_0x3498ed,_0x54612f){const _0x4f8509=a31_0x55de;return _0x17c365[_0x4f8509(0x16d)](_0x3498ed,_0x54612f);}},_0x42f7bc=_0x31ae78[_0x522386(0x178)][_0x38b3c2]||[];_0x42f7bc[_0x522386(0x170)](_0x306220=>{const _0x4fe232=_0x522386;_0x306220[_0x4fe232(0x182)]&&!_0x4e53b7[_0x4fe232(0x18a)](isInternalHook,_0x306220['fn'])&&_0x371836['push'](_0x306220[_0x4fe232(0x182)]);});}),[..._0x371836,...exports[_0xba3f55(0x1be)](_0x31ae78[_0xba3f55(0x178)])];},exports['mapTestHooks']=_0x444646=>{const _0x29f910=a31_0x742c2c,_0x2f550a={'YlTWm':function(_0x432b0e){return _0x432b0e();},'hvjRc':function(_0x1dea38,_0xd3a4fd){return _0x1dea38===_0xd3a4fd;},'ueCnz':_0x29f910(0x1bc),'HKKSp':'_beforeAll','WBvui':_0x29f910(0x19e),'ZtzYf':'_beforeEach'};if(!_0x444646||!_0x444646[_0x29f910(0x178)])return;[_0x2f550a['HKKSp'],_0x2f550a['WBvui'],_0x2f550a['ZtzYf'],_0x2f550a[_0x29f910(0x1b0)]][_0x29f910(0x170)](_0x46c4f9=>{const _0x5baa96={'ZKlfv':function(_0x417f25){const _0x246c45=a31_0x55de;return _0x2f550a[_0x246c45(0x172)](_0x417f25);},'Ecfjv':function(_0x449849,_0x35a318){const _0x4ee4df=a31_0x55de;return _0x2f550a[_0x4ee4df(0x171)](_0x449849,_0x35a318);},'sBKdK':_0x2f550a['ueCnz'],'YKtpL':function(_0x28a233){return _0x2f550a['YlTWm'](_0x28a233);}},_0x466a6a=_0x444646['parent'][_0x46c4f9]||[];_0x466a6a['forEach'](_0x4c9fb5=>{const _0xf82ff5=a31_0x55de;if(!_0x4c9fb5[_0xf82ff5(0x182)])_0x4c9fb5[_0xf82ff5(0x182)]=_0x5baa96[_0xf82ff5(0x183)](uuidv4);else _0x4c9fb5[_0xf82ff5(0x19a)]&&_0x5baa96[_0xf82ff5(0x1a8)](_0x46c4f9,_0x5baa96['sBKdK'])&&(_0x4c9fb5['hookAnalyticsId']=_0x5baa96[_0xf82ff5(0x1a0)](uuidv4),delete _0x4c9fb5[_0xf82ff5(0x19a)]);});}),exports[_0x29f910(0x1bd)](_0x444646[_0x29f910(0x178)]);},exports[a31_0x742c2c(0x1bf)]=async(_0x57dfe2,_0x3ab37c)=>{const _0x3f2dea=a31_0x742c2c,_0x3717d4={'BXiws':function(_0x3ff075){return _0x3ff075();},'Nccaa':function(_0xb13494,_0x4a80cc){return _0xb13494===_0x4a80cc;},'wijOA':_0x3f2dea(0x18d),'kckmc':_0x3f2dea(0x173),'WBZvS':_0x3f2dea(0x1b2),'cZech':_0x3f2dea(0x1a7),'NMSPe':_0x3f2dea(0x196),'DkYrn':function(_0x5cfef9,_0x1bfd93){return _0x5cfef9(_0x1bfd93);},'VCsAj':function(_0x5b9d5c,_0x2824d8){return _0x5b9d5c===_0x2824d8;},'hcJOP':_0x3f2dea(0x1c1),'BIGiv':_0x3f2dea(0x1a3),'qddMO':function(_0x79ddd6,_0x57bf3d){return _0x79ddd6(_0x57bf3d);}};try{if(!_0x3717d4[_0x3f2dea(0x16e)](shouldProcessEventForTesthub))return;const _0x48389a=await _0x57dfe2[_0x3f2dea(0x197)](),_0x19127e=await _0x57dfe2['getSession'](),_0x3c2abf={},_0x5004dc=Object[_0x3f2dea(0x17d)](_0x19127e[_0x3f2dea(0x197)]()[_0x3f2dea(0x199)]),_0xf52d99={'product':_0x3717d4[_0x3f2dea(0x184)](global[_0x3f2dea(0x1ab)],_0x3717d4[_0x3f2dea(0x1a5)])?_0x5004dc[_0x3717d4[_0x3f2dea(0x169)]]||_0x5004dc[_0x3717d4[_0x3f2dea(0x181)]]?_0x3717d4[_0x3f2dea(0x1ae)]:_0x3717d4[_0x3f2dea(0x193)]:null,'capabilities':_0x5004dc,'platform':_0x48389a[_0x3f2dea(0x194)](),'platform_version':_0x3717d4[_0x3f2dea(0x16b)](getPlatformVersion,_0x3717d4['VCsAj'](global[_0x3f2dea(0x1ab)],_0x3717d4[_0x3f2dea(0x1a5)])),'browser':_0x48389a[_0x3f2dea(0x179)](),'browser_version':_0x48389a[_0x3f2dea(0x16c)](),'session_id':_0x19127e[_0x3f2dea(0x175)]()};global['__cloud_provider___']?_0x3c2abf[global[_0x3f2dea(0x1ab)]]=_0xf52d99:_0x3c2abf[_0x3717d4[_0x3f2dea(0x1a2)]]=_0xf52d99,process['emit'](_0x3f2dea(0x1b7)+process['pid'],{'timestamp':new Date()[_0x3f2dea(0x1c2)](),'level':null,'message':null,'kind':_0x3717d4[_0x3f2dea(0x17a)],'http_response':_0x3c2abf,'uuid':_0x3ab37c});}catch(_0x574ed2){_0x3717d4[_0x3f2dea(0x1b4)](debug,_0x3f2dea(0x17c)+_0x574ed2);}},exports['getHookSkippedTests']=_0x36a5a7=>{const _0x21bc68=a31_0x742c2c,_0x4a7f03={};_0x4a7f03[_0x21bc68(0x1b3)]=function(_0x437959,_0x33a997){return _0x437959!==_0x33a997;},_0x4a7f03[_0x21bc68(0x18b)]=_0x21bc68(0x19c),_0x4a7f03['YpPlG']=function(_0x1e6c20,_0x1dd589){return _0x1e6c20!==_0x1dd589;},_0x4a7f03['boifd']=_0x21bc68(0x1bb),_0x4a7f03[_0x21bc68(0x195)]=_0x21bc68(0x1a4);const _0x17877c=_0x4a7f03,_0x51245d=_0x36a5a7[_0x21bc68(0x168)]['reduce']((_0x17c8e3,_0x3cd44c)=>{const _0x44963d=exports['getHookSkippedTests'](_0x3cd44c);return _0x44963d&&(_0x17c8e3=_0x17c8e3['concat'](_0x44963d)),_0x17c8e3;},[]),_0x337fbd=_0x36a5a7[_0x21bc68(0x188)][_0x21bc68(0x1b6)](_0x181d1f=>{const _0x8b155f=_0x21bc68,_0x5861d8=_0x17877c[_0x8b155f(0x1b3)](_0x181d1f[_0x8b155f(0x1c6)],_0x17877c[_0x8b155f(0x18b)])&&!_0x181d1f[_0x8b155f(0x19a)]&&_0x17877c[_0x8b155f(0x1b5)](_0x181d1f[_0x8b155f(0x1a6)],_0x17877c[_0x8b155f(0x191)])&&_0x17877c['YpPlG'](_0x181d1f[_0x8b155f(0x1a6)],_0x17877c[_0x8b155f(0x195)])&&!_0x181d1f[_0x8b155f(0x1b8)];return _0x5861d8;});return _0x337fbd[_0x21bc68(0x1c5)](_0x51245d);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x4bf50e=a32_0x2d22;function a32_0x2d22(_0x22a81f,_0x512d34){const _0xd07d12=a32_0xd07d();return a32_0x2d22=function(_0x2d22eb,_0x453d4b){_0x2d22eb=_0x2d22eb-0x157;let _0x56fe4a=_0xd07d12[_0x2d22eb];return _0x56fe4a;},a32_0x2d22(_0x22a81f,_0x512d34);}(function(_0xfa09b2,_0xc16e6f){const _0x17ffed=a32_0x2d22,_0x5eaa8c=_0xfa09b2();while(!![]){try{const _0x33884f=-parseInt(_0x17ffed(0x1c5))/0x1*(parseInt(_0x17ffed(0x17f))/0x2)+parseInt(_0x17ffed(0x1c7))/0x3+parseInt(_0x17ffed(0x18e))/0x4*(parseInt(_0x17ffed(0x1ca))/0x5)+-parseInt(_0x17ffed(0x1c6))/0x6*(parseInt(_0x17ffed(0x1ae))/0x7)+-parseInt(_0x17ffed(0x19b))/0x8*(parseInt(_0x17ffed(0x170))/0x9)+parseInt(_0x17ffed(0x15f))/0xa+-parseInt(_0x17ffed(0x1cd))/0xb;if(_0x33884f===_0xc16e6f)break;else _0x5eaa8c['push'](_0x5eaa8c['shift']());}catch(_0x45eefb){_0x5eaa8c['push'](_0x5eaa8c['shift']());}}}(a32_0xd07d,0x1afe0));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x4bf50e(0x1c3)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x4bf50e(0x199)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0x4bf50e(0x1ad)),scripts=require(a32_0x4bf50e(0x1a3)),globals=require(a32_0x4bf50e(0x1af)),logger=require('../../helpers/logger')[a32_0x4bf50e(0x19f)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require('../../helpers/testhub/constants');exports[a32_0x4bf50e(0x181)]={'beforeAll'(){const _0x355807=a32_0x4bf50e,_0x449219={'cSmyR':function(_0x5dd8a2,_0x193c85,_0x545e8f,_0x2d9c5f){return _0x5dd8a2(_0x193c85,_0x545e8f,_0x2d9c5f);},'nJESF':_0x355807(0x1ab),'INaiz':_0x355807(0x19a),'znecm':function(_0x5aafbd,_0x65ff52,_0x195655){return _0x5aafbd(_0x65ff52,_0x195655);},'tazyr':_0x355807(0x15c),'QPcQf':function(_0xe489dd){return _0xe489dd();}};PerformanceTester['startMonitoring']();const _0x2e3f0d='browserstack internal helper hook';global['__error_messages__']=[],global[_0x355807(0x1b2)]=![],global[_0x355807(0x18b)]=async()=>{const _0x2f233d=_0x355807;let _0x4b9682=![];try{await global[_0x2f233d(0x197)][0x0][_0x2f233d(0x191)],_0x4b9682=!![],global[_0x2f233d(0x1b2)]?await _0x449219[_0x2f233d(0x1c4)](markSessionStatus,global[_0x2f233d(0x197)][0x0],_0x449219[_0x2f233d(0x1a6)],global[_0x2f233d(0x1b5)][_0x2f233d(0x16e)](_0x449219[_0x2f233d(0x19e)])):await _0x449219[_0x2f233d(0x18a)](markSessionStatus,global[_0x2f233d(0x197)][0x0],_0x449219[_0x2f233d(0x16d)]);}catch(_0x5c81a0){}global[_0x2f233d(0x1b5)]=[],global['__sessionFailed']=![];if(_0x4b9682)try{try{_0x449219[_0x2f233d(0x177)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x449219[_0x2f233d(0x18a)](sendPlatformDetails,global[_0x2f233d(0x197)][0x0],this[_0x2f233d(0x1c9)]?this[_0x2f233d(0x1c9)]['testAnalyticsId']:null));}catch{}await global[_0x2f233d(0x197)][0x0][_0x2f233d(0x17b)]();}catch(_0x13be08){}};},'beforeEach'(_0x15f72d){const _0xdeb4de=a32_0x4bf50e,_0x2fc25c={'IdWCC':function(_0xb0f5ee,_0x523a86){return _0xb0f5ee>_0x523a86;},'XkyDa':function(_0x30480e,_0x508036){return _0x30480e>_0x508036;},'yzQpE':_0xdeb4de(0x1b0),'DuiyB':function(_0x270526,_0x2f8a84,_0x4b3e94){return _0x270526(_0x2f8a84,_0x4b3e94);},'IiITM':'bstackA11yShouldScan','vtaHa':function(_0x36ff5f){return _0x36ff5f();},'vhrGZ':function(_0x360831,_0x27213c){return _0x360831>_0x27213c;},'BiMNC':'isAccessibilityPlatform','lMHKN':function(_0x526271,_0xc4ac26){return _0x526271===_0xc4ac26;},'HHAfY':_0xdeb4de(0x178),'iIYLk':function(_0x5cb170,_0x1d9e6b){return _0x5cb170===_0x1d9e6b;},'TsMlF':'https:','oBVJG':_0xdeb4de(0x1bb),'UeWbL':_0xdeb4de(0x1c8)};new Promise(async _0x5609d4=>{const _0x3c38fd=_0xdeb4de,_0x287474='browserstack internal helper hook';let _0x455c20=!![];try{_0x2fc25c[_0x3c38fd(0x1b3)](global[_0x3c38fd(0x197)][_0x3c38fd(0x180)],0x1)&&(await global['driverCleanup'](),global['__drivers']['shift']()),_0x2fc25c['XkyDa'](global[_0x3c38fd(0x197)][0x0]['quitCount_'],0x0)&&(_0x455c20=![],await global[_0x3c38fd(0x18b)]());}catch{}try{Array[_0x3c38fd(0x1a1)](global[_0x3c38fd(0x197)])&&global[_0x3c38fd(0x197)][0x0]&&(global['__drivers'][0x0][_0x3c38fd(0x1b4)]=this[_0x3c38fd(0x1c9)][_0x3c38fd(0x190)]()['join'](_0x2fc25c[_0x3c38fd(0x198)])),global[_0x3c38fd(0x1b4)]=this[_0x3c38fd(0x1c9)][_0x3c38fd(0x190)]()['join'](_0x2fc25c['yzQpE']);}catch(_0x48753a){logger[_0x3c38fd(0x1a8)](_0x3c38fd(0x172)+_0x48753a);}this[_0x3c38fd(0x1c9)]['shouldScanTestForAccessibility']=_0x2fc25c[_0x3c38fd(0x1ba)](shouldScanTestForAccessibility,this[_0x3c38fd(0x1c9)][_0x3c38fd(0x190)](),!![]),globals[_0x3c38fd(0x1a5)](_0x2fc25c[_0x3c38fd(0x19c)],this['currentTest'][_0x3c38fd(0x16c)]),this[_0x3c38fd(0x1c9)][_0x3c38fd(0x1a0)]=!![];if(_0x2fc25c[_0x3c38fd(0x182)](isAccessibilityAutomationSession)&&_0x455c20&&Array['isArray'](global['__drivers'])&&_0x2fc25c[_0x3c38fd(0x15d)](global[_0x3c38fd(0x197)]['length'],0x0)&&globals[_0x3c38fd(0x168)](_0x2fc25c[_0x3c38fd(0x157)]))try{const _0x4b6a07=await global[_0x3c38fd(0x197)][0x0][_0x3c38fd(0x191)];if(_0x4b6a07){let _0x5c0d68=!![];const _0x5bc5cd=await global[_0x3c38fd(0x197)][0x0][_0x3c38fd(0x1cc)]();let _0x1a1600;try{_0x1a1600=new URL(_0x5bc5cd);}catch(_0x144c1b){_0x5c0d68=![];}_0x5c0d68=_0x2fc25c[_0x3c38fd(0x1a4)](_0x1a1600['protocol'],_0x2fc25c[_0x3c38fd(0x1aa)])||_0x2fc25c[_0x3c38fd(0x196)](_0x1a1600[_0x3c38fd(0x160)],_0x2fc25c[_0x3c38fd(0x15a)]),_0x5c0d68&&(this[_0x3c38fd(0x1c9)][_0x3c38fd(0x16c)]&&logger[_0x3c38fd(0x1a7)](_0x2fc25c[_0x3c38fd(0x1bf)])),this[_0x3c38fd(0x1c9)][_0x3c38fd(0x1a0)]=this['currentTest'][_0x3c38fd(0x16c)],this[_0x3c38fd(0x1c9)][_0x3c38fd(0x16c)]&&logger[_0x3c38fd(0x1a7)](_0x2fc25c[_0x3c38fd(0x16f)]);}}catch(_0x82107e){logger[_0x3c38fd(0x165)](_0x3c38fd(0x1be)+util[_0x3c38fd(0x16a)](_0x82107e));}_0x2fc25c[_0x3c38fd(0x182)](_0x5609d4);})[_0xdeb4de(0x1cb)](_0x15f72d);},'afterEach'(_0x28d158){const _0x3438a1=a32_0x4bf50e,_0x49b02b={'Mjgcm':function(_0x16b1e1,_0x102783){return _0x16b1e1>_0x102783;},'uDEuz':function(_0x48d845,_0x23bb95){return _0x48d845===_0x23bb95;},'TKfwK':_0x3438a1(0x1ac),'NyGPB':_0x3438a1(0x15e),'KETTH':function(_0x2cf863,_0x131ec8,_0x4dbdeb,_0x210792){return _0x2cf863(_0x131ec8,_0x4dbdeb,_0x210792);},'FZVyL':_0x3438a1(0x1b0),'HxjfY':function(_0x2ddc70,_0x424d6f){return _0x2ddc70!==_0x424d6f;},'yFqZw':_0x3438a1(0x15c),'ztLtd':function(_0x1c26eb,_0x2b2317,_0x5d9895){return _0x1c26eb(_0x2b2317,_0x5d9895);},'LdDJT':function(_0x5f0180,_0x399750){return _0x5f0180+_0x399750;},'eHaOL':_0x3438a1(0x192),'VFaBp':_0x3438a1(0x165),'pSKaX':'Passed','buSXc':_0x3438a1(0x1a7),'zvspR':_0x3438a1(0x184),'uhFBZ':_0x3438a1(0x188),'aHeMt':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','JZrsj':_0x3438a1(0x163),'iSEeu':_0x3438a1(0x158),'JEuYw':function(_0x4218a5){return _0x4218a5();},'CyQpQ':function(_0x598681){return _0x598681();},'QMDLA':_0x3438a1(0x1a8)},_0x365a22='browserstack internal helper hook';this[_0x3438a1(0x17a)](0xfde8);const _0x2a053f=async(_0x9c6be2,_0x14b78d)=>{const _0x1039b1=_0x3438a1;await global[_0x1039b1(0x197)][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x9c6be2+',\x22level\x22:\x20\x22'+_0x14b78d+_0x1039b1(0x159));};new Promise(async _0x205203=>{const _0x4b8176=_0x3438a1;try{_0x49b02b[_0x4b8176(0x1a2)](global[_0x4b8176(0x197)][_0x4b8176(0x180)],0x1)&&(await global['driverCleanup'](),global[_0x4b8176(0x197)]['shift'](),global[_0x4b8176(0x1b5)]=[],global[_0x4b8176(0x1b2)]=![]);try{if(global[_0x4b8176(0x1b9)]&&_0x49b02b[_0x4b8176(0x176)](global[_0x4b8176(0x195)],_0x49b02b[_0x4b8176(0x1ce)])&&global['__drivers'][0x0]){const _0x2466dd=_0x49b02b[_0x4b8176(0x1a2)](global[_0x4b8176(0x162)]['length'],0x0)?!!global[_0x4b8176(0x162)][0x0][_0x4b8176(0x166)]||!!global['capabilities'][0x0][_0x49b02b[_0x4b8176(0x164)]]:![],_0x3b8b67={};_0x3b8b67[_0x4b8176(0x166)]=_0x2466dd,await _0x49b02b[_0x4b8176(0x1b7)](percyAutoCapture,global[_0x4b8176(0x197)][0x0],_0x49b02b[_0x4b8176(0x1ce)],_0x3b8b67);}}catch(_0x3cceac){}!global[_0x4b8176(0x161)]&&(await global[_0x4b8176(0x197)][0x0][_0x4b8176(0x169)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x4b8176(0x18f)](this[_0x4b8176(0x1c9)][_0x4b8176(0x190)]()[_0x4b8176(0x16e)](_0x49b02b['FZVyL']))+'}}'),global[_0x4b8176(0x197)][0x0]['sessionNameSet__']=!![]);const _0x141b92=_0x49b02b[_0x4b8176(0x179)](this[_0x4b8176(0x1c9)]['state'],_0x49b02b[_0x4b8176(0x185)]);_0x141b92?(global['__sessionFailed']=!![],global[_0x4b8176(0x1b5)][_0x4b8176(0x1a9)](this[_0x4b8176(0x1c9)]['err'][_0x4b8176(0x174)]),await _0x49b02b[_0x4b8176(0x18c)](_0x2a053f,JSON[_0x4b8176(0x18f)](_0x49b02b[_0x4b8176(0x171)](_0x49b02b[_0x4b8176(0x18d)],this[_0x4b8176(0x1c9)]['err'][_0x4b8176(0x174)])),_0x49b02b[_0x4b8176(0x1c1)])):await _0x49b02b[_0x4b8176(0x18c)](_0x2a053f,JSON['stringify'](_0x49b02b['pSKaX']),_0x49b02b[_0x4b8176(0x1bd)]);}catch(_0x2c0b7b){}try{if(this['currentTest'][_0x4b8176(0x1a0)]&&globals['getGlobal'](_0x49b02b[_0x4b8176(0x1c0)])&&globals[_0x4b8176(0x168)](_0x49b02b['uhFBZ'])){logger[_0x4b8176(0x1a7)](_0x49b02b['aHeMt']);const _0x2fe6df={};_0x2fe6df[_0x4b8176(0x19d)]=this[_0x4b8176(0x1c9)][_0x4b8176(0x16b)],_0x2fe6df['thBuildUuid']=process['env'][testHubConstants[_0x4b8176(0x1b1)][_0x4b8176(0x17c)]],_0x2fe6df[_0x4b8176(0x186)]=process[_0x4b8176(0x15b)][testHubConstants[_0x4b8176(0x1b1)][_0x4b8176(0x183)]];const _0x207380=_0x2fe6df;logger[_0x4b8176(0x1a8)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON['stringify'](_0x207380)),logger[_0x4b8176(0x1a8)](_0x49b02b[_0x4b8176(0x17e)]),logger[_0x4b8176(0x1a8)](util[_0x4b8176(0x16a)](await global[_0x4b8176(0x197)][0x0]['executeAsyncScript'](scripts[_0x4b8176(0x173)],{'method':global[_0x4b8176(0x1b4)]}))),await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x4b8176(0x17d)],_0x207380),logger['info'](_0x49b02b[_0x4b8176(0x193)]);}}catch(_0x524683){logger[_0x4b8176(0x165)](_0x4b8176(0x167)+this[_0x4b8176(0x1c9)][_0x4b8176(0x190)]()+_0x4b8176(0x1bc),_0x524683);}try{try{if(_0x49b02b[_0x4b8176(0x1c2)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x49b02b[_0x4b8176(0x18c)](sendPlatformDetails,global[_0x4b8176(0x197)][0x0],this[_0x4b8176(0x1c9)]?this[_0x4b8176(0x1c9)][_0x4b8176(0x16b)]:null);if(_0x49b02b[_0x4b8176(0x187)](isBrowserstackInfra)){const _0x1a1bb9=_0x4b8176(0x194)+Date[_0x4b8176(0x1b6)]();await _0x49b02b[_0x4b8176(0x18c)](_0x2a053f,JSON[_0x4b8176(0x18f)](_0x1a1bb9),_0x49b02b[_0x4b8176(0x1b8)]);}}}catch{}_0x49b02b[_0x4b8176(0x1a2)](global[_0x4b8176(0x197)][0x0][_0x4b8176(0x189)],0x0)&&await global[_0x4b8176(0x18b)]();}catch(_0x58bd74){}_0x49b02b['JEuYw'](_0x205203);})[_0x3438a1(0x1cb)](()=>_0x28d158());},'afterAll'(_0x4b7a70){const _0xfe0a79=a32_0x4bf50e,_0x5a3ee3={'gQPbx':function(_0x14728a){return _0x14728a();}},_0x3e8983='browserstack internal helper hook';this[_0xfe0a79(0x17a)](0xfde8),new Promise(async _0x5233a2=>{const _0x54d3e7=_0xfe0a79;PerformanceTester[_0x54d3e7(0x175)](),await global[_0x54d3e7(0x18b)](),_0x5a3ee3['gQPbx'](_0x5233a2);})['then'](()=>_0x4b7a70());}};function a32_0xd07d(){const _0x36158c=['../../helpers/accessibility-automation/scripts','lMHKN','setGlobal','nJESF','info','debug','push','HHAfY','failed','testcase','../../helpers/performance-tester','22141NlLMgI','../../helpers/globals','\x20-\x20','ENV_VAR','__sessionFailed','IdWCC','browserstackSessionName','__error_messages__','now','KETTH','QMDLA','percy','DuiyB','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','.\x20Error\x20:','buSXc','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','oBVJG','zvspR','VFaBp','JEuYw','../../helpers/accessibility-automation/helper','cSmyR','6529dCUDdl','174SheoZw','618738tPdUIz','Automate\x20test\x20case\x20execution\x20has\x20started.','currentTest','475fzxnws','then','getCurrentUrl','755238mRpHlJ','TKfwK','BiMNC','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','\x22}}','TsMlF','env','passed','vhrGZ','appium:app','1844260xeZMKK','protocol','__skipSessionName','capabilities','Performing\x20scan\x20before\x20saving\x20results','NyGPB','error','app','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','getGlobal','executeScript','format','testAnalyticsId','shouldScanTestForAccessibility','tazyr','join','UeWbL','72FWizLW','LdDJT','Failed\x20to\x20store\x20session\x20name:\x20','performScan','message','stopMonitoring','uDEuz','QPcQf','http:','HxjfY','timeout','initQuit','BROWSERSTACK_TESTHUB_UUID','saveTestResults','JZrsj','34IkxaRP','length','mochaHooks','vtaHa','BROWSERSTACK_TESTHUB_JWT','isAccessibilityPlatform','yFqZw','thJwtToken','CyQpQ','bstackA11yShouldScan','quitCount_','znecm','driverCleanup','ztLtd','eHaOL','5944XlSkal','stringify','titlePath','session_','Failed:\x20','iSEeu','ObservabilitySync:','percyCaptureMode','iIYLk','__drivers','yzQpE','./test-observability/mochaUtils','\x20|\x20','149904SBjMaQ','IiITM','thTestRunUuid','INaiz','winstonLogger','accessibilityScanStarted','isArray','Mjgcm'];a32_0xd07d=function(){return _0x36158c;};return a32_0xd07d();}
|
|
1
|
+
function a32_0x2597(){const _0x30a37a=['isArray','BROWSERSTACK_TESTHUB_UUID','__skipSessionName','debug','356543pSPrSD','uKwJc','1594179klfNWx','executeAsyncScript','https:','xGYkL','RdRtf','KAMKt','WWoqw','../../helpers/testhub/utils','quitCount_','TPiea','./test-observability/mochaUtils','performScan','zUHhp','Failed\x20to\x20store\x20session\x20name:\x20','VczeL','MNZZX','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','2JbsvHW','stringify','jbAgO','format','175sYzvSW','WYSRm','__error_messages__','timeout','yxwiS','initQuit','capabilities','shouldScanTestForAccessibility','lZPQN','3822008hVCesD','thTestRunUuid','../../helpers/helper','Passed','__sessionFailed','mochaHooks','error','then','join','LYmSd','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','hqKaZ','JnAMl','Performing\x20scan\x20before\x20saving\x20results','66850jRBhAa','protocol','browserstackSessionName','../../helpers/testhub/constants','.\x20Error\x20:','startMonitoring','getGlobal','passed','rQeMe','__drivers','info','now','thJwtToken','sessionNameSet__','bstackA11yShouldScan','ykEUT',',\x22level\x22:\x20\x22','BxajY','push','BGRpY','state','GTdSF','driverCleanup','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','getCurrentUrl','LMyIV','../../helpers/accessibility-automation/scripts','testAnalyticsId','titlePath','lMwZA','executeScript','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','QNgTP','ENV_VAR','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','isAccessibilityPlatform','PtftH','appium:app','EJxDd','thBuildUuid','4ecOspo','waxsr','winstonLogger','currentTest','message','pPwBe','oTrUR','testcase','ObservabilitySync:','TZKRp','2927410ejEtPK','\x20-\x20','env','../../helpers/globals','7884nUNSAe','length','Hphop','zxKdS','\x22}}','1572243Sgoatj','aHQiN','CjRCR','SmueB','accessibilityScanStarted','app','util','shift','session_','err'];a32_0x2597=function(){return _0x30a37a;};return a32_0x2597();}const a32_0x3a2468=a32_0x4a72;(function(_0x1432fe,_0xf91645){const _0x5b5818=a32_0x4a72,_0x4013e0=_0x1432fe();while(!![]){try{const _0x58e6be=parseInt(_0x5b5818(0x10c))/0x1*(parseInt(_0x5b5818(0x11f))/0x2)+-parseInt(_0x5b5818(0x175))/0x3*(-parseInt(_0x5b5818(0x162))/0x4)+parseInt(_0x5b5818(0x13a))/0x5+parseInt(_0x5b5818(0x170))/0x6*(-parseInt(_0x5b5818(0x123))/0x7)+-parseInt(_0x5b5818(0x12c))/0x8+parseInt(_0x5b5818(0x10e))/0x9+-parseInt(_0x5b5818(0x16c))/0xa;if(_0x58e6be===_0xf91645)break;else _0x4013e0['push'](_0x4013e0['shift']());}catch(_0x2600da){_0x4013e0['push'](_0x4013e0['shift']());}}}(a32_0x2597,0x41607));function a32_0x4a72(_0x4962a7,_0xaac7c1){const _0x259753=a32_0x2597();return a32_0x4a72=function(_0x4a72ee,_0x32bbc5){_0x4a72ee=_0x4a72ee-0x10b;let _0x235e4f=_0x259753[_0x4a72ee];return _0x235e4f;},a32_0x4a72(_0x4962a7,_0xaac7c1);}const util=require(a32_0x3a2468(0x17b)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x3a2468(0x118)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x3a2468(0x12e)),PerformanceTester=require('../../helpers/performance-tester'),scripts=require(a32_0x3a2468(0x154)),globals=require(a32_0x3a2468(0x16f)),logger=require('../../helpers/logger')[a32_0x3a2468(0x164)],{shouldProcessEventForTesthub}=require(a32_0x3a2468(0x115)),testHubConstants=require(a32_0x3a2468(0x13d));exports[a32_0x3a2468(0x131)]={'beforeAll'(){const _0xebe989=a32_0x3a2468,_0x2381f5={'jbAgO':function(_0x373d41,_0x5cd852,_0x216a57,_0x5b4e41){return _0x373d41(_0x5cd852,_0x216a57,_0x5b4e41);},'Hphop':'failed','hqKaZ':'\x20|\x20','zxKdS':function(_0x585e07,_0x2af4d1,_0x62975c){return _0x585e07(_0x2af4d1,_0x62975c);},'BGRpY':_0xebe989(0x141),'lZPQN':function(_0x4026b9){return _0x4026b9();},'WWoqw':function(_0x3d60f4,_0x32bfd7,_0x17c81c){return _0x3d60f4(_0x32bfd7,_0x17c81c);}};PerformanceTester[_0xebe989(0x13f)]();const _0x421de9='browserstack internal helper hook';global[_0xebe989(0x125)]=[],global[_0xebe989(0x130)]=![],global[_0xebe989(0x150)]=async()=>{const _0x135538=_0xebe989;let _0x259cf9=![];try{await global[_0x135538(0x143)][0x0]['session_'],_0x259cf9=!![],global[_0x135538(0x130)]?await _0x2381f5[_0x135538(0x121)](markSessionStatus,global[_0x135538(0x143)][0x0],_0x2381f5[_0x135538(0x172)],global[_0x135538(0x125)][_0x135538(0x134)](_0x2381f5[_0x135538(0x137)])):await _0x2381f5[_0x135538(0x173)](markSessionStatus,global[_0x135538(0x143)][0x0],_0x2381f5[_0x135538(0x14d)]);}catch(_0x55b115){}global['__error_messages__']=[],global[_0x135538(0x130)]=![];if(_0x259cf9)try{try{_0x2381f5[_0x135538(0x12b)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x2381f5[_0x135538(0x114)](sendPlatformDetails,global[_0x135538(0x143)][0x0],this[_0x135538(0x165)]?this[_0x135538(0x165)][_0x135538(0x155)]:null));}catch{}await global[_0x135538(0x143)][0x0][_0x135538(0x128)]();}catch(_0x4504da){}};},'beforeEach'(_0x29c3cd){const _0x316954=a32_0x3a2468,_0x53560d={'ZzLjK':function(_0x5a1f64,_0x5ed1da){return _0x5a1f64>_0x5ed1da;},'TPiea':function(_0x19acf6,_0x58a19c){return _0x19acf6>_0x58a19c;},'RdRtf':'\x20-\x20','VczeL':function(_0x55ac8f,_0x46926f,_0x24d1a3){return _0x55ac8f(_0x46926f,_0x24d1a3);},'ykEUT':_0x316954(0x148),'waxsr':function(_0x54bee7){return _0x54bee7();},'cqVGb':function(_0x361c19,_0x25f3c5){return _0x361c19>_0x25f3c5;},'PtftH':_0x316954(0x15d),'yxwiS':function(_0x4ee5d5,_0x3310f2){return _0x4ee5d5===_0x3310f2;},'uKwJc':'http:','aHQiN':function(_0x24a51a,_0x38f73d){return _0x24a51a===_0x38f73d;},'BxajY':_0x316954(0x110),'JUDYW':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','KAMKt':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0x161134=>{const _0x54bbab=_0x316954,_0x4326c0='browserstack internal helper hook';let _0x106a34=!![];try{_0x53560d['ZzLjK'](global[_0x54bbab(0x143)]['length'],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x54bbab(0x17c)]()),_0x53560d[_0x54bbab(0x117)](global[_0x54bbab(0x143)][0x0][_0x54bbab(0x116)],0x0)&&(_0x106a34=![],await global['driverCleanup']());}catch{}try{Array['isArray'](global['__drivers'])&&global['__drivers'][0x0]&&(global[_0x54bbab(0x143)][0x0][_0x54bbab(0x13c)]=this['currentTest'][_0x54bbab(0x156)]()[_0x54bbab(0x134)](_0x53560d[_0x54bbab(0x112)])),global[_0x54bbab(0x13c)]=this[_0x54bbab(0x165)][_0x54bbab(0x156)]()[_0x54bbab(0x134)](_0x53560d[_0x54bbab(0x112)]);}catch(_0x1be709){logger[_0x54bbab(0x10b)](_0x54bbab(0x11b)+_0x1be709);}this['currentTest'][_0x54bbab(0x12a)]=_0x53560d[_0x54bbab(0x11c)](shouldScanTestForAccessibility,this[_0x54bbab(0x165)][_0x54bbab(0x156)](),!![]),globals['setGlobal'](_0x53560d[_0x54bbab(0x149)],this[_0x54bbab(0x165)][_0x54bbab(0x12a)]),this[_0x54bbab(0x165)][_0x54bbab(0x179)]=!![];if(_0x53560d[_0x54bbab(0x163)](isAccessibilityAutomationSession)&&_0x106a34&&Array[_0x54bbab(0x17f)](global[_0x54bbab(0x143)])&&_0x53560d['cqVGb'](global[_0x54bbab(0x143)]['length'],0x0)&&globals[_0x54bbab(0x140)](_0x53560d[_0x54bbab(0x15e)]))try{const _0x3dadd9=await global[_0x54bbab(0x143)][0x0][_0x54bbab(0x17d)];if(_0x3dadd9){let _0x39f081=!![];const _0x250bd3=await global[_0x54bbab(0x143)][0x0][_0x54bbab(0x152)]();let _0x2e322c;try{_0x2e322c=new URL(_0x250bd3);}catch(_0x4ce75b){_0x39f081=![];}_0x39f081=_0x53560d[_0x54bbab(0x127)](_0x2e322c[_0x54bbab(0x13b)],_0x53560d[_0x54bbab(0x10d)])||_0x53560d[_0x54bbab(0x176)](_0x2e322c[_0x54bbab(0x13b)],_0x53560d[_0x54bbab(0x14b)]),_0x39f081&&(this['currentTest'][_0x54bbab(0x12a)]&&logger[_0x54bbab(0x144)](_0x53560d['JUDYW'])),this[_0x54bbab(0x165)][_0x54bbab(0x179)]=this[_0x54bbab(0x165)][_0x54bbab(0x12a)],this[_0x54bbab(0x165)]['shouldScanTestForAccessibility']&&logger['info'](_0x53560d[_0x54bbab(0x113)]);}}catch(_0x17badd){logger[_0x54bbab(0x132)](_0x54bbab(0x136)+util[_0x54bbab(0x122)](_0x17badd));}_0x53560d[_0x54bbab(0x163)](_0x161134);})[_0x316954(0x133)](_0x29c3cd);},'afterEach'(_0x1345f2){const _0x1e00d2=a32_0x3a2468,_0x3b8498={'LMyIV':function(_0x3f38e1,_0x4f736b){return _0x3f38e1>_0x4f736b;},'MNZZX':function(_0x1f61ea,_0x2e4690){return _0x1f61ea===_0x2e4690;},'xGYkL':_0x1e00d2(0x169),'EJxDd':function(_0x785cb1,_0x48b482){return _0x785cb1>_0x48b482;},'lMwZA':_0x1e00d2(0x15f),'jLabk':function(_0x5d9f35,_0x408dc2,_0x513c10,_0x37485c){return _0x5d9f35(_0x408dc2,_0x513c10,_0x37485c);},'thTIU':_0x1e00d2(0x16d),'hPBus':function(_0x42e90a,_0x4409cc){return _0x42e90a!==_0x4409cc;},'KnGGI':_0x1e00d2(0x141),'WYSRm':function(_0x134191,_0x28c8ee,_0x14c9e4){return _0x134191(_0x28c8ee,_0x14c9e4);},'cNWnS':function(_0xb4be93,_0xbe6049){return _0xb4be93+_0xbe6049;},'TZKRp':'Failed:\x20','WTaIh':'error','oTrUR':_0x1e00d2(0x12f),'LYmSd':_0x1e00d2(0x144),'TrqMb':_0x1e00d2(0x15d),'CjRCR':_0x1e00d2(0x148),'JnAMl':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','SmueB':_0x1e00d2(0x139),'GTdSF':_0x1e00d2(0x15c),'QNgTP':function(_0x1dfb0e){return _0x1dfb0e();},'zUHhp':function(_0x7591d3,_0x1e7c85,_0xbae571){return _0x7591d3(_0x1e7c85,_0xbae571);},'pPwBe':_0x1e00d2(0x10b)},_0x198baa='browserstack internal helper hook';this[_0x1e00d2(0x126)](0xfde8);const _0x4ff486=async(_0x48c628,_0x43312c)=>{const _0x52db4b=_0x1e00d2;await global['__drivers'][0x0][_0x52db4b(0x158)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x48c628+_0x52db4b(0x14a)+_0x43312c+_0x52db4b(0x174));};new Promise(async _0x329121=>{const _0x3983fe=_0x1e00d2;try{_0x3b8498['LMyIV'](global[_0x3983fe(0x143)][_0x3983fe(0x171)],0x1)&&(await global[_0x3983fe(0x150)](),global[_0x3983fe(0x143)][_0x3983fe(0x17c)](),global[_0x3983fe(0x125)]=[],global[_0x3983fe(0x130)]=![]);try{if(global['percy']&&_0x3b8498[_0x3983fe(0x11d)](global['percyCaptureMode'],_0x3b8498['xGYkL'])&&global['__drivers'][0x0]){const _0x591cf2=_0x3b8498[_0x3983fe(0x160)](global['capabilities'][_0x3983fe(0x171)],0x0)?!!global[_0x3983fe(0x129)][0x0][_0x3983fe(0x17a)]||!!global[_0x3983fe(0x129)][0x0][_0x3b8498[_0x3983fe(0x157)]]:![],_0x406667={};_0x406667['app']=_0x591cf2,await _0x3b8498['jLabk'](percyAutoCapture,global[_0x3983fe(0x143)][0x0],_0x3b8498[_0x3983fe(0x111)],_0x406667);}}catch(_0x33efdf){}!global[_0x3983fe(0x181)]&&(await global[_0x3983fe(0x143)][0x0][_0x3983fe(0x158)](_0x3983fe(0x11e)+JSON[_0x3983fe(0x120)](this['currentTest'][_0x3983fe(0x156)]()[_0x3983fe(0x134)](_0x3b8498['thTIU']))+'}}'),global['__drivers'][0x0][_0x3983fe(0x147)]=!![]);const _0x1b2182=_0x3b8498['hPBus'](this[_0x3983fe(0x165)][_0x3983fe(0x14e)],_0x3b8498['KnGGI']);_0x1b2182?(global['__sessionFailed']=!![],global['__error_messages__'][_0x3983fe(0x14c)](this['currentTest'][_0x3983fe(0x17e)][_0x3983fe(0x166)]),await _0x3b8498['WYSRm'](_0x4ff486,JSON[_0x3983fe(0x120)](_0x3b8498['cNWnS'](_0x3b8498[_0x3983fe(0x16b)],this[_0x3983fe(0x165)][_0x3983fe(0x17e)][_0x3983fe(0x166)])),_0x3b8498['WTaIh'])):await _0x3b8498[_0x3983fe(0x124)](_0x4ff486,JSON[_0x3983fe(0x120)](_0x3b8498[_0x3983fe(0x168)]),_0x3b8498[_0x3983fe(0x135)]);}catch(_0x2babaa){}try{if(this[_0x3983fe(0x165)][_0x3983fe(0x179)]&&globals['getGlobal'](_0x3b8498['TrqMb'])&&globals[_0x3983fe(0x140)](_0x3b8498[_0x3983fe(0x177)])){logger[_0x3983fe(0x144)](_0x3b8498[_0x3983fe(0x138)]);const _0x5be826={};_0x5be826[_0x3983fe(0x12d)]=this[_0x3983fe(0x165)][_0x3983fe(0x155)],_0x5be826[_0x3983fe(0x161)]=process[_0x3983fe(0x16e)][testHubConstants[_0x3983fe(0x15b)][_0x3983fe(0x180)]],_0x5be826[_0x3983fe(0x146)]=process['env'][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_JWT']];const _0x2b5257=_0x5be826;logger[_0x3983fe(0x10b)](_0x3983fe(0x151)+JSON['stringify'](_0x2b5257)),logger['debug'](_0x3b8498[_0x3983fe(0x178)]),logger[_0x3983fe(0x10b)](util[_0x3983fe(0x122)](await global[_0x3983fe(0x143)][0x0][_0x3983fe(0x10f)](scripts[_0x3983fe(0x119)],{'method':global['browserstackSessionName']}))),await global['__drivers'][0x0][_0x3983fe(0x10f)](scripts['saveTestResults'],_0x2b5257),logger[_0x3983fe(0x144)](_0x3b8498[_0x3983fe(0x14f)]);}}catch(_0x3f8771){logger[_0x3983fe(0x132)](_0x3983fe(0x159)+this[_0x3983fe(0x165)][_0x3983fe(0x156)]()+_0x3983fe(0x13e),_0x3f8771);}try{try{if(_0x3b8498[_0x3983fe(0x15a)](shouldProcessEventForTesthub)){global[_0x3983fe(0x143)][0x0]&&await _0x3b8498[_0x3983fe(0x124)](sendPlatformDetails,global['__drivers'][0x0],this[_0x3983fe(0x165)]?this[_0x3983fe(0x165)]['testAnalyticsId']:null);if(_0x3b8498[_0x3983fe(0x15a)](isBrowserstackInfra)){const _0x433150=_0x3983fe(0x16a)+Date[_0x3983fe(0x145)]();await _0x3b8498[_0x3983fe(0x11a)](_0x4ff486,JSON[_0x3983fe(0x120)](_0x433150),_0x3b8498[_0x3983fe(0x167)]);}}}catch{}_0x3b8498[_0x3983fe(0x153)](global[_0x3983fe(0x143)][0x0][_0x3983fe(0x116)],0x0)&&await global['driverCleanup']();}catch(_0x50939c){}_0x3b8498[_0x3983fe(0x15a)](_0x329121);})[_0x1e00d2(0x133)](()=>_0x1345f2());},'afterAll'(_0x368b23){const _0x1d7ee9=a32_0x3a2468,_0x229113={'rQeMe':function(_0x111b73){return _0x111b73();}},_0x3c1105='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x5b86c3=>{const _0x4c7d77=a32_0x4a72;PerformanceTester['stopMonitoring'](),await global[_0x4c7d77(0x150)](),_0x229113[_0x4c7d77(0x142)](_0x5b86c3);})[_0x1d7ee9(0x133)](()=>_0x368b23());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';function a33_0x56a4(_0x4a2795,_0x1c5fca){const _0x517e45=a33_0x517e();return a33_0x56a4=function(_0x56a4a1,_0x4f1a38){_0x56a4a1=_0x56a4a1-0xe1;let _0x3b9291=_0x517e45[_0x56a4a1];return _0x3b9291;},a33_0x56a4(_0x4a2795,_0x1c5fca);}const a33_0x38bf49=a33_0x56a4;(function(_0x30b624,_0x37ddb1){const _0x117d7a=a33_0x56a4,_0x31482c=_0x30b624();while(!![]){try{const _0x342cc2=parseInt(_0x117d7a(0x103))/0x1+parseInt(_0x117d7a(0xfc))/0x2+-parseInt(_0x117d7a(0x119))/0x3+-parseInt(_0x117d7a(0x105))/0x4*(-parseInt(_0x117d7a(0x111))/0x5)+-parseInt(_0x117d7a(0xf7))/0x6*(parseInt(_0x117d7a(0x109))/0x7)+parseInt(_0x117d7a(0xe3))/0x8+-parseInt(_0x117d7a(0x107))/0x9;if(_0x342cc2===_0x37ddb1)break;else _0x31482c['push'](_0x31482c['shift']());}catch(_0x38e562){_0x31482c['push'](_0x31482c['shift']());}}}(a33_0x517e,0x4da94));const fs=require('fs'),path=require(a33_0x38bf49(0xea)),{spawn}=require('child_process'),logger=require('../../helpers/logger')[a33_0x38bf49(0xee)],{default:BrowserStackSetup}=require(a33_0x38bf49(0x123)),helper=require(a33_0x38bf49(0xf2)),constants=require(a33_0x38bf49(0x120)),getUserNightwatchConfigs=(_0x14e9e8,_0x36d9e3)=>{const _0x3520c2=a33_0x38bf49,_0xe3677b={'zJhql':_0x3520c2(0x124),'GrAgk':'nightwatch.json','bbhrB':function(_0x236f11,_0x21280e){return _0x236f11(_0x21280e);},'LttEh':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x54462c=null,_0x5245ea={};const _0x466cef=_0x36d9e3['findIndex'](_0x4afec0=>_0x4afec0===_0x3520c2(0x106));if(!helper[_0x3520c2(0xe5)](_0x14e9e8['config'])&&fs[_0x3520c2(0xfb)](path[_0x3520c2(0x11b)](process[_0x3520c2(0x11c)](),_0x14e9e8['config'])))_0x54462c=path[_0x3520c2(0x11b)](process[_0x3520c2(0x11c)](),_0x14e9e8[_0x3520c2(0x118)]),_0x36d9e3[_0x3520c2(0x117)](_0x466cef,0x2);else{if(fs[_0x3520c2(0xfb)](path[_0x3520c2(0x11b)](process[_0x3520c2(0x11c)](),_0xe3677b[_0x3520c2(0x100)])))_0x54462c=path[_0x3520c2(0x11b)](process[_0x3520c2(0x11c)](),_0xe3677b['zJhql']);else fs['existsSync'](path[_0x3520c2(0x11b)](process[_0x3520c2(0x11c)](),_0xe3677b[_0x3520c2(0xf8)]))&&(_0x54462c=path['join'](process[_0x3520c2(0x11c)](),_0xe3677b['GrAgk']));}return _0x54462c?(logger['info'](_0x3520c2(0x10d)+_0x54462c),_0x5245ea=_0xe3677b['bbhrB'](require,_0x54462c)):logger[_0x3520c2(0xfd)](_0xe3677b[_0x3520c2(0x112)]),_0x5245ea;},removeExistingEnvs=_0x74c700=>{const _0x3151df=a33_0x38bf49,_0x56b963={};_0x56b963['QEmNP']=function(_0xad4aca,_0xfc845f){return _0xad4aca>_0xfc845f;};const _0x342b91=_0x56b963;let _0x1a1c00=_0x74c700[_0x3151df(0xef)](_0xe58215=>_0xe58215===_0x3151df(0xff));_0x342b91[_0x3151df(0x10a)](_0x1a1c00,-0x1)&&_0x74c700[_0x3151df(0x117)](_0x1a1c00,0x2),_0x1a1c00=_0x74c700[_0x3151df(0xef)](_0x34336e=>_0x34336e==='-e'),_0x342b91[_0x3151df(0x10a)](_0x1a1c00,-0x1)&&_0x74c700[_0x3151df(0x117)](_0x1a1c00,0x2);};function run(_0x507635,_0x26a9a6){const _0x2caa71=a33_0x38bf49,_0x5481ba={'DPipK':'nightwatch','ZarPz':function(_0x42c446,_0x32c87e){return _0x42c446+_0x32c87e;},'qvtZk':_0x2caa71(0xf3),'KSIBE':function(_0x1d9420,_0x2bd253,_0xbf30d7){return _0x1d9420(_0x2bd253,_0xbf30d7);},'BBpgT':_0x2caa71(0x122),'lYDLi':'Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','FBAtT':function(_0x560034,_0x3aea38){return _0x560034===_0x3aea38;},'RXygX':_0x2caa71(0xe7),'OULxX':function(_0x2f8eac,_0xd8b6bb){return _0x2f8eac(_0xd8b6bb);},'tJhdy':function(_0x3f4ddd,_0x5aafb5,_0x43954c,_0x5470a8){return _0x3f4ddd(_0x5aafb5,_0x43954c,_0x5470a8);},'UEESe':'nightwatch.cmd','iqGgC':'--config','SbNmg':_0x2caa71(0xff),'FywLB':_0x2caa71(0xe1),'MptGp':_0x2caa71(0x11d)},_0x401e2b=new BrowserStackSetup(_0x507635);if(!_0x401e2b[_0x2caa71(0x118)])return;const _0x1eabb4=_0x5481ba['KSIBE'](getUserNightwatchConfigs,_0x507635,_0x26a9a6),_0xa7d0f6={};_0xa7d0f6[_0x2caa71(0x102)]=![];const _0x5f5b47={};_0x5f5b47[_0x2caa71(0xf5)]=_0x5481ba['BBpgT'],_0x5f5b47[_0x2caa71(0x115)]=0x1bb;const _0x180a23={};_0x180a23['webdriver']=_0xa7d0f6,_0x180a23[_0x2caa71(0x114)]=_0x5f5b47;const _0x115bb8=_0x180a23;logger[_0x2caa71(0xfd)](_0x5481ba['lYDLi']);const _0x24f86f={..._0x1eabb4},_0x1bae47=_0x24f86f,_0x422f1d=helper[_0x2caa71(0x10b)](_0x401e2b[_0x2caa71(0x118)]),_0x3f2865=[];_0x401e2b[_0x2caa71(0x118)]['platforms'][_0x2caa71(0xeb)]((_0x28592f,_0x300011)=>{const _0x2ba650=_0x2caa71;_0x422f1d?_0x3f2865[_0x2ba650(0x127)](helper['modifyBrowserStackW3CCaps'](_0x401e2b[_0x2ba650(0x118)],_0x5481ba[_0x2ba650(0x108)],_0x300011)):_0x3f2865[_0x2ba650(0x127)](helper[_0x2ba650(0xf4)](_0x401e2b[_0x2ba650(0x118)],_0x5481ba[_0x2ba650(0x108)],_0x300011));});const _0x1f22a8={},_0x542350=[];_0x507635[_0x2caa71(0xf9)]=_0x507635[_0x2caa71(0xf9)]||_0x507635['e'];const _0x153def=_0x507635[_0x2caa71(0xf9)]?_0x507635[_0x2caa71(0xf9)][_0x2caa71(0x11a)]()[_0x2caa71(0xe9)](',')[_0x2caa71(0x10f)](_0x3f007e=>_0x3f007e[_0x2caa71(0x11a)]())['filter'](_0x2db39d=>_0x2db39d!==''):[''];_0x5481ba[_0x2caa71(0xfe)](_0x153def[_0x2caa71(0x116)],0x0)&&_0x153def[_0x2caa71(0x127)]('');_0x153def[_0x2caa71(0xeb)](_0x52a645=>{const _0x177524=_0x2caa71;_0x3f2865[_0x177524(0xeb)](_0x1f610a=>{const _0x57ff57=_0x177524;let _0xacc707=_0x5481ba['ZarPz'](helper[_0x57ff57(0xe4)](_0x1f610a,'_'),'_'+Date[_0x57ff57(0xf6)]());_0x52a645&&(_0xacc707+='_'+_0x52a645);if(_0x52a645&&(!_0x1eabb4[_0x5481ba[_0x57ff57(0x104)]]||!_0x1eabb4[_0x5481ba[_0x57ff57(0x104)]][_0x52a645]))return;const _0x2faeee={..._0x115bb8};_0x2faeee[_0x57ff57(0x125)]=_0x1f610a;const _0x438a00=_0x2faeee;_0x1f22a8[_0xacc707]=_0x52a645?helper[_0x57ff57(0x121)](_0x1eabb4[_0x5481ba[_0x57ff57(0x104)]][_0x52a645],_0x438a00):_0x438a00,_0x542350['push'](_0xacc707);});});!_0x1bae47[_0x2caa71(0xf3)]&&(_0x1bae47[_0x2caa71(0xf3)]={});_0x1bae47['test_settings']={..._0x1bae47[_0x2caa71(0xf3)],..._0x1f22a8};const _0x18fa1b=path[_0x2caa71(0x11b)](__dirname,_0x5481ba[_0x2caa71(0xf1)]);fs[_0x2caa71(0xe2)](_0x18fa1b,JSON[_0x2caa71(0x110)](_0x1bae47)),_0x5481ba[_0x2caa71(0xed)](removeExistingEnvs,_0x26a9a6);const _0x379868=_0x5481ba[_0x2caa71(0x11f)](spawn,/^win/[_0x2caa71(0x101)](process[_0x2caa71(0x10c)])?_0x5481ba[_0x2caa71(0xec)]:_0x5481ba['DPipK'],[_0x5481ba[_0x2caa71(0x10e)],_0x18fa1b,..._0x26a9a6[_0x2caa71(0x126)](0x1),_0x5481ba[_0x2caa71(0xe6)],_0x542350[_0x2caa71(0x11b)](',')],{'stdio':_0x5481ba['FywLB']});_0x379868['on'](_0x5481ba['MptGp'],async _0x5b0d72=>{const _0x5eb799=_0x2caa71;logger[_0x5eb799(0xf0)](_0x5eb799(0xfa)+_0x5b0d72),logger[_0x5eb799(0xfd)](_0x5eb799(0x113)+_0x18fa1b),fs[_0x5eb799(0x11e)](_0x18fa1b);});}module[a33_0x38bf49(0xe8)]=run;function a33_0x517e(){const _0x334ce8=['join','cwd','close','unlinkSync','tJhdy','../utils/constants','mergeDeep','hub.browserstack.com','../../helpers/BrowserStackSetup','nightwatch.conf.js','desiredCapabilities','slice','push','inherit','writeFileSync','3254784NhlAlQ','getPlatformName','isUndefined','SbNmg','nightwatch-browserstack.json','exports','split','path','forEach','UEESe','OULxX','winstonLogger','findIndex','debug','RXygX','../../helpers/helper','test_settings','modifyBrowserStackCaps','host','now','186vwxamP','GrAgk','env','child\x20process\x20exited\x20with\x20code\x20','existsSync','55566caNIjJ','info','FBAtT','--env','zJhql','test','start_process','565806dHoDDt','qvtZk','104UazXjg','--config','383976hjccze','DPipK','137039hpgQzi','QEmNP','useW3C','platform','Getting\x20your\x20nightwatch\x20configs\x20from\x20','iqGgC','map','stringify','13285bfrTuq','LttEh','Deleting\x20','selenium','port','length','splice','config','305604UbNwOw','trim'];a33_0x517e=function(){return _0x334ce8;};return a33_0x517e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x1d3b26=a34_0x7585;(function(_0x4324af,_0x2a8ff2){const _0x37aeeb=a34_0x7585,_0x3de03a=_0x4324af();while(!![]){try{const _0x2c7de5=parseInt(_0x37aeeb(0x1f5))/0x1+parseInt(_0x37aeeb(0x1e1))/0x2+parseInt(_0x37aeeb(0x230))/0x3*(parseInt(_0x37aeeb(0x205))/0x4)+parseInt(_0x37aeeb(0x235))/0x5*(-parseInt(_0x37aeeb(0x209))/0x6)+parseInt(_0x37aeeb(0x220))/0x7+parseInt(_0x37aeeb(0x1fa))/0x8+-parseInt(_0x37aeeb(0x1cd))/0x9*(parseInt(_0x37aeeb(0x204))/0xa);if(_0x2c7de5===_0x2a8ff2)break;else _0x3de03a['push'](_0x3de03a['shift']());}catch(_0x4eb13b){_0x3de03a['push'](_0x3de03a['shift']());}}}(a34_0x1938,0x57f6e));const util=require('util'),logger=require(a34_0x1d3b26(0x222))[a34_0x1d3b26(0x228)],{isAccessibilityAutomationSession}=require(a34_0x1d3b26(0x1d1)),{isUndefined}=require(a34_0x1d3b26(0x1cb)),scripts=require('../../helpers/accessibility-automation/scripts');exports[a34_0x1d3b26(0x231)]=async(_0x45d94d,_0x20863c,_0x356aa6={})=>{const _0xfbcf0=a34_0x1d3b26,_0x1dc836={};_0x1dc836[_0xfbcf0(0x1ff)]=_0xfbcf0(0x1d3);const _0x408de3=_0x1dc836;return await _0x45d94d[_0xfbcf0(0x201)](_0xfbcf0(0x1f8)+_0x20863c[_0xfbcf0(0x208)](/arguments/g,_0x408de3[_0xfbcf0(0x1ff)])+_0xfbcf0(0x212)+JSON[_0xfbcf0(0x20a)](_0x356aa6)+')');},exports[a34_0x1d3b26(0x1eb)]=async(_0x53f5d3,_0x156842,_0x26360b={})=>{const _0x58fc74=a34_0x1d3b26,_0x4280be={};_0x4280be['dbhuG']=function(_0x3b6b44,_0x5ed56a){return _0x3b6b44===_0x5ed56a;},_0x4280be[_0x58fc74(0x225)]=_0x58fc74(0x20f),_0x4280be[_0x58fc74(0x214)]=_0x58fc74(0x227),_0x4280be[_0x58fc74(0x219)]=_0x58fc74(0x1d3);const _0x9382e8=_0x4280be;if(_0x9382e8[_0x58fc74(0x22a)](_0x53f5d3[_0x58fc74(0x1ce)][_0x58fc74(0x20c)],_0x9382e8[_0x58fc74(0x225)]))return await _0x53f5d3['executeAsyncScript'](_0x156842,_0x26360b);else{if(_0x9382e8[_0x58fc74(0x22a)](_0x53f5d3['constructor'][_0x58fc74(0x20c)],_0x9382e8[_0x58fc74(0x214)]))return await _0x53f5d3['executeScript'](_0x58fc74(0x1cc)+_0x156842[_0x58fc74(0x208)](/arguments/g,_0x9382e8[_0x58fc74(0x219)])+_0x58fc74(0x21a)+JSON[_0x58fc74(0x20a)](_0x26360b)+')');}},exports[a34_0x1d3b26(0x22d)]=async _0x56e925=>{const _0xc0688f=a34_0x1d3b26,_0x24f9e7={};_0x24f9e7[_0xc0688f(0x234)]=_0xc0688f(0x21e),_0x24f9e7[_0xc0688f(0x21b)]=_0xc0688f(0x223),_0x24f9e7[_0xc0688f(0x1f2)]=_0xc0688f(0x1e6),_0x24f9e7[_0xc0688f(0x1d5)]=_0xc0688f(0x21f),_0x24f9e7[_0xc0688f(0x1e5)]=_0xc0688f(0x1f1),_0x24f9e7['nUOJb']=_0xc0688f(0x1fc);const _0x2f2de3=_0x24f9e7;_0x56e925[_0xc0688f(0x1ee)]&&(_0x56e925[_0xc0688f(0x1ee)]['wcagVersion']&&(_0x56e925[_0x2f2de3['DLyDK']]=_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x1d0)]),_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x217)]&&(_0x56e925[_0x2f2de3[_0xc0688f(0x21b)]]=_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x217)]),_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x1f4)]&&(_0x56e925[_0x2f2de3[_0xc0688f(0x1f2)]]=_0x56e925[_0xc0688f(0x1ee)]['includeIssueType'][_0xc0688f(0x216)],_0x56e925[_0x2f2de3[_0xc0688f(0x1d5)]]=_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x1f4)][_0xc0688f(0x1de)]));const _0x140b71=JSON['parse'](process['env'][_0xc0688f(0x211)])['scannerVersion'];_0x56e925[_0x2f2de3[_0xc0688f(0x1e5)]]=process[_0xc0688f(0x236)][_0xc0688f(0x20d)],_0x56e925[_0x2f2de3[_0xc0688f(0x1fe)]]=_0x140b71,delete _0x56e925['accessibilityOptions'];},exports[a34_0x1d3b26(0x1e8)]=async _0x4b2e71=>{const _0x27053c=a34_0x1d3b26,_0x3b8f35={};_0x3b8f35[_0x27053c(0x1db)]=_0x27053c(0x1d6),_0x3b8f35['GjfsT']=_0x27053c(0x218);const _0x39fe61=_0x3b8f35;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x4b2e71,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x4b2e71,scripts.getResults);return res;}catch{return logger[_0x27053c(0x1f6)](_0x39fe61[_0x27053c(0x1db)]),[];}else return logger[_0x27053c(0x232)](_0x39fe61[_0x27053c(0x1ef)]),[];},exports['performScan']=async(_0x23c28a,_0x2a7034='')=>{const _0x2dd25b=a34_0x1d3b26;if(global[_0x2dd25b(0x1d9)]){const _0x2b8e49={};return _0x2b8e49[_0x2dd25b(0x207)]=_0x2a7034,await exports[_0x2dd25b(0x231)](_0x23c28a,scripts[_0x2dd25b(0x210)],_0x2b8e49);}},exports[a34_0x1d3b26(0x202)]=async _0x972634=>{const _0x3025cf=a34_0x1d3b26,_0x2f182a={};_0x2f182a[_0x3025cf(0x1da)]=_0x3025cf(0x200),_0x2f182a[_0x3025cf(0x224)]=_0x3025cf(0x1d8);const _0x5f4340=_0x2f182a;if(global[_0x3025cf(0x1d9)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x972634,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x972634,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x5f4340[_0x3025cf(0x1da)]),{};}else return logger[_0x3025cf(0x232)](_0x5f4340['NLbGk']),{};},exports[a34_0x1d3b26(0x20b)]=async _0x18a33c=>{const _0x8d78c2=a34_0x1d3b26,_0xcef484={'zWVho':function(_0x50ffb2,_0x278ec5){return _0x50ffb2!==_0x278ec5;},'IHiOg':_0x8d78c2(0x1cf),'vPMPd':function(_0x37592b,_0x42c8e4){return _0x37592b===_0x42c8e4;},'TMJDl':_0x8d78c2(0x215),'bqoYQ':function(_0x527f9b,_0xa1ec9e){return _0x527f9b===_0xa1ec9e;},'YVjYR':'playwright-chromium','InYwA':_0x8d78c2(0x22f),'FkcwO':function(_0x4b846d,_0x4e25f0){return _0x4b846d(_0x4e25f0);},'ikLlY':function(_0x24f217,_0x5d228d){return _0x24f217===_0x5d228d;},'rkJKg':'latest','JYueP':function(_0x31b821,_0x45a6df){return _0x31b821>_0x45a6df;},'Ulskz':_0x8d78c2(0x1f9)};try{if(!_0xcef484[_0x8d78c2(0x1dc)](_0x18a33c['deviceName'],''))return logger[_0x8d78c2(0x232)](_0xcef484[_0x8d78c2(0x1e3)]),![];const _0x284a85=_0x18a33c[_0x8d78c2(0x21d)];if(!(_0xcef484[_0x8d78c2(0x213)](_0x284a85,_0xcef484[_0x8d78c2(0x1e0)])||_0xcef484['bqoYQ'](_0x284a85,_0xcef484[_0x8d78c2(0x229)])))return logger[_0x8d78c2(0x232)](_0xcef484[_0x8d78c2(0x1fb)]),![];const _0x18ac79=_0xcef484[_0x8d78c2(0x1e4)](parseInt,_0x18a33c['browser_version']);if(!(_0xcef484['ikLlY'](_0x18ac79,_0xcef484['rkJKg'])||_0xcef484[_0x8d78c2(0x1d2)](_0x18ac79,0x5e)))return logger[_0x8d78c2(0x232)](_0xcef484[_0x8d78c2(0x1ea)]),![];}catch(_0x27e6a2){logger[_0x8d78c2(0x21c)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util['format'](_0x27e6a2));}return!![];},exports[a34_0x1d3b26(0x22c)]=(_0x1d15a0,_0x4428ff,_0xbc7d9c)=>{const _0x285749=a34_0x1d3b26,_0x133f6a={'Iqpaj':function(_0x118a17){return _0x118a17();},'KZRcV':_0x285749(0x1ec),'AhIdF':function(_0x30248d,_0x1733de){return _0x30248d===_0x1733de;},'UzMOW':_0x285749(0x215),'AShoC':function(_0x4e370e,_0x6a322e){return _0x4e370e===_0x6a322e;},'gmQXD':_0x285749(0x221),'FThLX':_0x285749(0x22f),'jLlmu':function(_0x590b70,_0x24aeb2){return _0x590b70===_0x24aeb2;},'FwCQn':'latest','nhDyB':function(_0x4c6f7a,_0xaccc29){return _0x4c6f7a>_0xaccc29;},'uaSRC':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','QCebX':function(_0x1faa9f,_0x4c7079){return _0x1faa9f(_0x4c7079);},'MSRgb':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','FHymf':function(_0x1e0587,_0x45dd55){return _0x1e0587+_0x45dd55;}};try{if(_0x133f6a[_0x285749(0x1f7)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x1d15a0[_0x133f6a[_0x285749(0x1f3)]]&&(global[_0x285749(0x1d9)]=![]);!(_0x133f6a[_0x285749(0x1df)](_0x1d15a0[_0x285749(0x1dd)],_0x133f6a['UzMOW'])||_0x133f6a['AShoC'](_0x1d15a0[_0x285749(0x1dd)],_0x133f6a[_0x285749(0x206)]))&&(logger[_0x285749(0x232)](_0x133f6a[_0x285749(0x226)]),global['accessibilityPlatform']=![]);!(_0x133f6a[_0x285749(0x203)](_0x1d15a0[_0x285749(0x1d4)],_0x133f6a[_0x285749(0x1e7)])||_0x133f6a['nhDyB'](_0x1d15a0[_0x285749(0x1d4)],0x5e))&&(logger[_0x285749(0x232)](_0x133f6a[_0x285749(0x1ed)]),global[_0x285749(0x1d9)]=![]);!_0x133f6a[_0x285749(0x1ca)](isUndefined,_0x1d15a0[_0x285749(0x233)])&&(logger[_0x285749(0x232)](_0x133f6a['MSRgb']),global[_0x285749(0x1d9)]=![]);if(!global[_0x285749(0x1d9)]){_0x1d15a0[_0x133f6a[_0x285749(0x1f3)]]=![];const _0x53dfb7=_0x133f6a['FHymf'](_0x4428ff,_0x133f6a[_0x285749(0x1ca)](encodeURIComponent,JSON['stringify'](_0x1d15a0)));_0xbc7d9c&&(_0xbc7d9c[_0x285749(0x1e9)][_0x285749(0x22b)]['project']['use'][_0x285749(0x1d7)][_0x285749(0x1f0)]=_0x53dfb7,_0xbc7d9c[_0x285749(0x22e)][_0x285749(0x1e2)]['use'][_0x285749(0x1d7)][_0x285749(0x1f0)]=_0x53dfb7);}}}catch(_0x15fc09){logger[_0x285749(0x21c)](_0x285749(0x20e)+util[_0x285749(0x1fd)](_0x15fc09));}};function a34_0x7585(_0xd162d0,_0x1ffb84){const _0x1938d2=a34_0x1938();return a34_0x7585=function(_0x75851f,_0x31679e){_0x75851f=_0x75851f-0x1ca;let _0x499445=_0x1938d2[_0x75851f];return _0x499445;},a34_0x7585(_0xd162d0,_0x1ffb84);}function a34_0x1938(){const _0x32994b=['../../helpers/accessibility-automation/helper','JYueP','bstackSdkArgs','browser_version','psItS','No\x20accessibility\x20results\x20were\x20found.','connectOptions','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','accessibilityPlatform','XZmGH','ReqgE','zWVho','browserName','needsReview','AhIdF','TMJDl','921174GlGtyF','project','IHiOg','FkcwO','StFON','accessibilityOptions.includeIssueType.bestPractice','FwCQn','getAccessibilityResults','currentTest','Ulskz','browserStackExecuteDriver','browserstack.accessibility','uaSRC','accessibilityOptions','GjfsT','wsEndpoint','accessibilityOptions.authToken','jAdjo','KZRcV','includeIssueType','580722vYxmeS','error','Iqpaj','(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','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','5409304JmsLnW','InYwA','accessibilityOptions.scannerVersion','format','nUOJb','oNsbW','No\x20summaryResults\x20found.','evaluate','getAccessibilityResultsSummary','jLlmu','204730dRfsgW','4UXVZyM','gmQXD','method','replace','478596nLpNps','stringify','platformValidation','name','BS_A11Y_JWT','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','WebDriver','performScan','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','vPMPd','SZpan','chrome','bestPractice','scannerProcessingTimeout','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','ONpWY','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','ZiTuo','debug','browser','accessibilityOptions.wcagVersion','accessibilityOptions.includeIssueType.needsReview','3875004QRVfUp','playwright-chromium','../../helpers/logger','accessibilityOptions.scannerProcessingTimeout','NLbGk','Msijq','FThLX','Playwright','winstonLogger','YVjYR','dbhuG','testInfo','processAccessibilityCaps','setAccessibilityCapabilities','workerInfo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','1428285zsVVMh','browserStackEvaluate','warn','deviceName','DLyDK','20LkYBPV','env','QCebX','../../helpers/helper','(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','909zggmwr','constructor','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','wcagVersion'];a34_0x1938=function(){return _0x32994b;};return a34_0x1938();}
|
|
1
|
+
function a34_0x26cd(_0x224693,_0x4796ab){const _0x70d281=a34_0x70d2();return a34_0x26cd=function(_0x26cd01,_0x16ce9b){_0x26cd01=_0x26cd01-0x1b3;let _0xa77ad3=_0x70d281[_0x26cd01];return _0xa77ad3;},a34_0x26cd(_0x224693,_0x4796ab);}const a34_0x4234ee=a34_0x26cd;function a34_0x70d2(){const _0x2e5bbf=['uMnkX','../../helpers/helper','TzuKL','4673907qjVjfo','SrnPp','scannerProcessingTimeout','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','browserStackExecuteDriver','760052syJPCm','accessibilityOptions.scannerProcessingTimeout','VTPKK','kiqpR','wBqQj','Atktq','accessibilityPlatform','Playwright','platformValidation','vugBy','WebDriver','deviceName','browserName','format','14airxXM','currentTest','workerInfo','chrome','../../helpers/accessibility-automation/scripts','qUzzD','warn','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','orflg','NuVbe','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','connectOptions','uBRon','40531sFCpmL','winstonLogger','accessibilityOptions.wcagVersion','browserstack.accessibility','238827FdZZfA','jMcqo','vngzy','cUGvk','latest','No\x20accessibility\x20results\x20were\x20found.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','recff','constructor','FLzwK','IDtUr','replace','kguXs','8WscqHH','xaoae','includeIssueType','../../helpers/accessibility-automation/helper','getAccessibilityResults','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','JxgaY','processAccessibilityCaps','iQbcl','kYGVe','browser_version','method','LEwHy','bestPractice','No\x20summaryResults\x20found.','scannerVersion','executeScript','10lmsyzf','use','reFMr','browserStackEvaluate','kKwtL','needsReview','waGWR','ZaKUI','wsEndpoint','102imsrqW','xXfCR','bstackSdkArgs','(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','reTUT','accessibilityOptions.scannerVersion','46715wlJpmJ','playwright-chromium','DObQF','moAHg','btyYh','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','stringify','34657VLPowG','BS_A11Y_JWT','XPJYU','wcagVersion','name','parse','9860257LFFCFI','accessibilityOptions.includeIssueType.bestPractice','MuoRP','Vcrci','accessibilityOptions.includeIssueType.needsReview','getAccessibilityResultsSummary','accessibilityOptions','debug','env','evaluate','PDzJh','setAccessibilityCapabilities'];a34_0x70d2=function(){return _0x2e5bbf;};return a34_0x70d2();}(function(_0x20771a,_0x4d5440){const _0x316bca=a34_0x26cd,_0x1dfa7b=_0x20771a();while(!![]){try{const _0x382636=parseInt(_0x316bca(0x212))/0x1+-parseInt(_0x316bca(0x205))/0x2*(-parseInt(_0x316bca(0x216))/0x3)+-parseInt(_0x316bca(0x1f7))/0x4+parseInt(_0x316bca(0x1d6))/0x5*(-parseInt(_0x316bca(0x1d0))/0x6)+-parseInt(_0x316bca(0x1dd))/0x7*(-parseInt(_0x316bca(0x1b6))/0x8)+parseInt(_0x316bca(0x1f2))/0x9*(-parseInt(_0x316bca(0x1c7))/0xa)+parseInt(_0x316bca(0x1e3))/0xb;if(_0x382636===_0x4d5440)break;else _0x1dfa7b['push'](_0x1dfa7b['shift']());}catch(_0x574f65){_0x1dfa7b['push'](_0x1dfa7b['shift']());}}}(a34_0x70d2,0x9a0b5));const util=require('util'),logger=require('../../helpers/logger')[a34_0x4234ee(0x213)],{isAccessibilityAutomationSession}=require(a34_0x4234ee(0x1b9)),{isUndefined}=require(a34_0x4234ee(0x1f0)),scripts=require(a34_0x4234ee(0x209));exports[a34_0x4234ee(0x1ca)]=async(_0x5a5b64,_0x381701,_0x155126={})=>{const _0x5d837f=a34_0x4234ee,_0x47e95c={};_0x47e95c[_0x5d837f(0x1ed)]=_0x5d837f(0x1d2);const _0x3b8c6d=_0x47e95c;return await _0x5a5b64[_0x5d837f(0x1ec)]('(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'+_0x381701['replace'](/arguments/g,_0x3b8c6d['PDzJh'])+_0x5d837f(0x1bb)+JSON['stringify'](_0x155126)+')');},exports[a34_0x4234ee(0x1f6)]=async(_0x4ff08c,_0x1de1e0,_0x3ed7f9={})=>{const _0x55dbde=a34_0x4234ee,_0x206f2d={};_0x206f2d[_0x55dbde(0x1c2)]=function(_0x3ae1dc,_0xd9854d){return _0x3ae1dc===_0xd9854d;},_0x206f2d[_0x55dbde(0x1cd)]=_0x55dbde(0x201),_0x206f2d[_0x55dbde(0x20d)]=function(_0x5c9ece,_0x8e7303){return _0x5c9ece===_0x8e7303;},_0x206f2d[_0x55dbde(0x21f)]=_0x55dbde(0x1fe),_0x206f2d[_0x55dbde(0x1fc)]=_0x55dbde(0x1d2);const _0x1a3536=_0x206f2d;if(_0x1a3536['LEwHy'](_0x4ff08c[_0x55dbde(0x21e)]['name'],_0x1a3536[_0x55dbde(0x1cd)]))return await _0x4ff08c['executeAsyncScript'](_0x1de1e0,_0x3ed7f9);else{if(_0x1a3536[_0x55dbde(0x20d)](_0x4ff08c[_0x55dbde(0x21e)][_0x55dbde(0x1e1)],_0x1a3536[_0x55dbde(0x21f)]))return await _0x4ff08c[_0x55dbde(0x1c6)](_0x55dbde(0x1d3)+_0x1de1e0[_0x55dbde(0x1b4)](/arguments/g,_0x1a3536[_0x55dbde(0x1fc)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON['stringify'](_0x3ed7f9)+')');}},exports[a34_0x4234ee(0x1ee)]=async _0x5829ae=>{const _0x3a5898=a34_0x4234ee,_0x106208={};_0x106208[_0x3a5898(0x1d4)]=_0x3a5898(0x214),_0x106208[_0x3a5898(0x1c9)]=_0x3a5898(0x1f8),_0x106208[_0x3a5898(0x1d9)]=_0x3a5898(0x1e4),_0x106208[_0x3a5898(0x1be)]=_0x3a5898(0x1e7),_0x106208[_0x3a5898(0x1bf)]='accessibilityOptions.authToken',_0x106208['vngzy']=_0x3a5898(0x1d5);const _0x4d0d88=_0x106208;_0x5829ae[_0x3a5898(0x1e9)]&&(_0x5829ae['accessibilityOptions'][_0x3a5898(0x1e0)]&&(_0x5829ae[_0x4d0d88[_0x3a5898(0x1d4)]]=_0x5829ae['accessibilityOptions'][_0x3a5898(0x1e0)]),_0x5829ae[_0x3a5898(0x1e9)][_0x3a5898(0x1f4)]&&(_0x5829ae[_0x4d0d88[_0x3a5898(0x1c9)]]=_0x5829ae['accessibilityOptions'][_0x3a5898(0x1f4)]),_0x5829ae[_0x3a5898(0x1e9)]['includeIssueType']&&(_0x5829ae[_0x4d0d88[_0x3a5898(0x1d9)]]=_0x5829ae['accessibilityOptions'][_0x3a5898(0x1b8)][_0x3a5898(0x1c3)],_0x5829ae[_0x4d0d88[_0x3a5898(0x1be)]]=_0x5829ae[_0x3a5898(0x1e9)][_0x3a5898(0x1b8)][_0x3a5898(0x1cc)]));const _0x37c406=JSON[_0x3a5898(0x1e2)](process[_0x3a5898(0x1eb)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x3a5898(0x1c5)];_0x5829ae[_0x4d0d88[_0x3a5898(0x1bf)]]=process[_0x3a5898(0x1eb)][_0x3a5898(0x1de)],_0x5829ae[_0x4d0d88[_0x3a5898(0x218)]]=_0x37c406,delete _0x5829ae[_0x3a5898(0x1e9)];},exports[a34_0x4234ee(0x1ba)]=async _0x41ac64=>{const _0x3fb999=a34_0x4234ee,_0x154d01={};_0x154d01[_0x3fb999(0x20e)]=_0x3fb999(0x21b),_0x154d01[_0x3fb999(0x1ef)]=_0x3fb999(0x20c);const _0x116365=_0x154d01;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x41ac64,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x41ac64,scripts.getResults);return res;}catch{return logger['error'](_0x116365[_0x3fb999(0x20e)]),[];}else return logger[_0x3fb999(0x20b)](_0x116365['uMnkX']),[];},exports['performScan']=async(_0x1d2f0d,_0x3c5d73='')=>{const _0x476c84=a34_0x4234ee;if(global[_0x476c84(0x1fd)]){const _0x1868d1={};return _0x1868d1[_0x476c84(0x1c1)]=_0x3c5d73,await exports[_0x476c84(0x1ca)](_0x1d2f0d,scripts['performScan'],_0x1868d1);}},exports[a34_0x4234ee(0x1e8)]=async _0x51cc8d=>{const _0x3790e6=a34_0x4234ee,_0x5b8246={};_0x5b8246[_0x3790e6(0x1bc)]=_0x3790e6(0x1c4),_0x5b8246[_0x3790e6(0x20a)]=_0x3790e6(0x21c);const _0x567567=_0x5b8246;if(global[_0x3790e6(0x1fd)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x51cc8d,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x51cc8d,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x567567[_0x3790e6(0x1bc)]),{};}else return logger[_0x3790e6(0x20b)](_0x567567['qUzzD']),{};},exports[a34_0x4234ee(0x1ff)]=async _0x9e8ce3=>{const _0x116b75=a34_0x4234ee,_0xaa86a9={'recff':function(_0x368fcf,_0x1a71ba){return _0x368fcf!==_0x1a71ba;},'kKwtL':_0x116b75(0x1f5),'TzuKL':function(_0x3701b6,_0x36c312){return _0x3701b6===_0x36c312;},'cUGvk':_0x116b75(0x208),'MuoRP':function(_0x32f259,_0x5603a0){return _0x32f259===_0x5603a0;},'btyYh':_0x116b75(0x1d7),'Vcrci':_0x116b75(0x20f),'kguXs':function(_0x13b97d,_0x5ef9e6){return _0x13b97d(_0x5ef9e6);},'QavaZ':_0x116b75(0x21a),'uEQAt':function(_0x4b85ac,_0x25c840){return _0x4b85ac>_0x25c840;},'XPJYU':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0xaa86a9[_0x116b75(0x21d)](_0x9e8ce3['deviceName'],''))return logger[_0x116b75(0x20b)](_0xaa86a9[_0x116b75(0x1cb)]),![];const _0x35d563=_0x9e8ce3['browser'];if(!(_0xaa86a9[_0x116b75(0x1f1)](_0x35d563,_0xaa86a9[_0x116b75(0x219)])||_0xaa86a9[_0x116b75(0x1e5)](_0x35d563,_0xaa86a9[_0x116b75(0x1da)])))return logger[_0x116b75(0x20b)](_0xaa86a9[_0x116b75(0x1e6)]),![];const _0x395691=_0xaa86a9[_0x116b75(0x1b5)](parseInt,_0x9e8ce3['browser_version']);if(!(_0xaa86a9['TzuKL'](_0x395691,_0xaa86a9['QavaZ'])||_0xaa86a9['uEQAt'](_0x395691,0x5e)))return logger[_0x116b75(0x20b)](_0xaa86a9[_0x116b75(0x1df)]),![];}catch(_0x41f70b){logger[_0x116b75(0x1ea)](_0x116b75(0x1db)+util[_0x116b75(0x204)](_0x41f70b));}return!![];},exports[a34_0x4234ee(0x1bd)]=(_0x93618e,_0x40ada2,_0x55c30f)=>{const _0x37779e=a34_0x4234ee,_0xebd9dc={'vugBy':function(_0x30ab1c){return _0x30ab1c();},'SrnPp':_0x37779e(0x215),'uBRon':function(_0x3d7157,_0x196d2c){return _0x3d7157===_0x196d2c;},'jMcqo':_0x37779e(0x208),'ZaKUI':function(_0x4e7a23,_0x196c7e){return _0x4e7a23===_0x196c7e;},'xXfCR':_0x37779e(0x1d7),'VTPKK':_0x37779e(0x20f),'aQADq':'latest','xaoae':function(_0x2d9267,_0x17047e){return _0x2d9267>_0x17047e;},'kiqpR':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','IDtUr':function(_0x3960d0,_0x54a18a){return _0x3960d0(_0x54a18a);},'wBqQj':_0x37779e(0x1f5),'DObQF':function(_0x33d07a,_0x388557){return _0x33d07a+_0x388557;}};try{if(_0xebd9dc[_0x37779e(0x200)](isAccessibilityAutomationSession)){global[_0x37779e(0x1fd)]=!![];!_0x93618e[_0xebd9dc[_0x37779e(0x1f3)]]&&(global[_0x37779e(0x1fd)]=![]);!(_0xebd9dc[_0x37779e(0x211)](_0x93618e[_0x37779e(0x203)],_0xebd9dc[_0x37779e(0x217)])||_0xebd9dc[_0x37779e(0x1ce)](_0x93618e[_0x37779e(0x203)],_0xebd9dc[_0x37779e(0x1d1)]))&&(logger[_0x37779e(0x20b)](_0xebd9dc[_0x37779e(0x1f9)]),global[_0x37779e(0x1fd)]=![]);!(_0xebd9dc['uBRon'](_0x93618e['browser_version'],_0xebd9dc['aQADq'])||_0xebd9dc[_0x37779e(0x1b7)](_0x93618e[_0x37779e(0x1c0)],0x5e))&&(logger['warn'](_0xebd9dc[_0x37779e(0x1fa)]),global[_0x37779e(0x1fd)]=![]);!_0xebd9dc['IDtUr'](isUndefined,_0x93618e[_0x37779e(0x202)])&&(logger[_0x37779e(0x20b)](_0xebd9dc[_0x37779e(0x1fb)]),global[_0x37779e(0x1fd)]=![]);if(!global['accessibilityPlatform']){_0x93618e[_0xebd9dc['SrnPp']]=![];const _0x3dda4a=_0xebd9dc[_0x37779e(0x1d8)](_0x40ada2,_0xebd9dc[_0x37779e(0x1b3)](encodeURIComponent,JSON[_0x37779e(0x1dc)](_0x93618e)));_0x55c30f&&(_0x55c30f[_0x37779e(0x206)]['testInfo']['project'][_0x37779e(0x1c8)][_0x37779e(0x210)]['wsEndpoint']=_0x3dda4a,_0x55c30f[_0x37779e(0x207)]['project'][_0x37779e(0x1c8)]['connectOptions'][_0x37779e(0x1cf)]=_0x3dda4a);}}}catch(_0x1dccaf){logger[_0x37779e(0x1ea)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x37779e(0x204)](_0x1dccaf));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x3ebe4c=a35_0x2623;function a35_0x2623(_0x2de901,_0x35df99){const _0x23fe25=a35_0x23fe();return a35_0x2623=function(_0x2623d4,_0x4d18e3){_0x2623d4=_0x2623d4-0xf4;let _0x34f639=_0x23fe25[_0x2623d4];return _0x34f639;},a35_0x2623(_0x2de901,_0x35df99);}(function(_0x5d8127,_0x5f40d5){const _0x2640cd=a35_0x2623,_0x5b6cda=_0x5d8127();while(!![]){try{const _0x317044=parseInt(_0x2640cd(0xfb))/0x1+parseInt(_0x2640cd(0xf6))/0x2+-parseInt(_0x2640cd(0x156))/0x3+parseInt(_0x2640cd(0x16e))/0x4*(parseInt(_0x2640cd(0x133))/0x5)+parseInt(_0x2640cd(0x10c))/0x6*(parseInt(_0x2640cd(0xfe))/0x7)+-parseInt(_0x2640cd(0x12f))/0x8*(parseInt(_0x2640cd(0x124))/0x9)+parseInt(_0x2640cd(0x11c))/0xa;if(_0x317044===_0x5f40d5)break;else _0x5b6cda['push'](_0x5b6cda['shift']());}catch(_0x350176){_0x5b6cda['push'](_0x5b6cda['shift']());}}}(a35_0x23fe,0xdb0ab));const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),{format}=require(a35_0x3ebe4c(0x15d)),logger=require(a35_0x3ebe4c(0x18a))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0x3ebe4c(0x100)),constants=require(a35_0x3ebe4c(0x12e)),{FRAMEWORKS}=require(a35_0x3ebe4c(0x14e)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require('../../helpers/test-observability/error-handler'),{getFrameworkVersion}=require(a35_0x3ebe4c(0xf4)),{checkAccessibilityPlatformConfig}=require(a35_0x3ebe4c(0x174)),{setAccessibilityCapabilities}=require(a35_0x3ebe4c(0x128)),TestHubHandler=require(a35_0x3ebe4c(0x115)),{shouldProcessEventForTesthub}=require(a35_0x3ebe4c(0x11f)),getUserPlaywrightConfig=async(_0x669de6,_0x22cc5e)=>{const _0x3ace11=a35_0x3ebe4c,_0x3955ff={'sPVBW':function(_0x21480d){return _0x21480d();},'dZatI':function(_0x1c0065,_0x2ccb45){return _0x1c0065(_0x2ccb45);},'rnyrb':_0x3ace11(0x158),'JrufW':_0x3ace11(0x11a)},_0x79592a=!helper[_0x3ace11(0x11e)](_0x669de6['config']),_0x192f72=_0x79592a?path['resolve'](process[_0x3ace11(0x144)](),_0x669de6[_0x3ace11(0x113)]):process[_0x3ace11(0x144)](),{resolveConfigFile:_0x969d11,resolveConfigLocation:_0x2c23af}=helper['requirePWModule']['apply'](null,_0x3955ff[_0x3ace11(0x118)](getConfigLoaderPath)),_0x4986e2=_0x969d11?_0x3955ff[_0x3ace11(0xff)](_0x969d11,_0x192f72):helper[_0x3ace11(0x154)](_0x3955ff['dZatI'](_0x2c23af,_0x192f72),[_0x3955ff[_0x3ace11(0x12a)]]),_0x46f6c1={};if(_0x79592a){const _0x1f578b=_0x22cc5e['findIndex'](_0x591167=>_0x591167===_0x3ace11(0x149)||_0x591167==='-c'||_0x591167[_0x3ace11(0x138)](_0x3ace11(0x11a)));_0x22cc5e[_0x3ace11(0x177)](_0x1f578b,_0x22cc5e[_0x1f578b][_0x3ace11(0x138)](_0x3955ff[_0x3ace11(0x172)])?0x1:0x2);}const _0x478857={};return _0x478857[_0x3ace11(0x13b)]=_0x4986e2,_0x478857[_0x3ace11(0x113)]=_0x46f6c1,_0x478857;},handleO11yRerun=_0x5d3d3e=>{const _0x22fb66=a35_0x3ebe4c,_0x9ad5d4={};_0x9ad5d4[_0x22fb66(0x179)]=function(_0xfb32dc,_0x130268){return _0xfb32dc!==_0x130268;},_0x9ad5d4['nXcsU']=_0x22fb66(0x17a),_0x9ad5d4[_0x22fb66(0x120)]=_0x22fb66(0x103);const _0x233a13=_0x9ad5d4,_0x68f655=helper['isTrue'](process[_0x22fb66(0x15e)]['BROWSERSTACK_RERUN']);if(_0x68f655){const _0x51a688=process[_0x22fb66(0x15e)]['BROWSERSTACK_RERUN_TESTS'],_0x422d26=[];if(_0x233a13[_0x22fb66(0x179)](_0x51a688,_0x233a13[_0x22fb66(0x182)])&&!helper['isUndefined'](_0x51a688)){_0x51a688['split'](',')['map'](_0x4aed89=>{const _0x815f9c=_0x22fb66;_0x422d26['push']('('+_0x4aed89[_0x815f9c(0x145)]()+')');});const _0x280d21='^'+_0x422d26[_0x22fb66(0x102)]('|')+'$';_0x5d3d3e[_0x22fb66(0x164)](_0x233a13['RwRzV'],_0x280d21);}}},spawnOriginalProcess=_0x283ed1=>{const _0x140da7=a35_0x3ebe4c,_0x5c4015={'QBVdq':function(_0x18592f,_0x35b8d5,_0x32eea9,_0x59f08f){return _0x18592f(_0x35b8d5,_0x32eea9,_0x59f08f);},'ywsBn':_0x140da7(0x176),'dXyBi':'playwright','MtJah':function(_0x28d102,_0x1509ae){return _0x28d102===_0x1509ae;},'HbcGX':_0x140da7(0x17b),'meDVE':_0x140da7(0xf8)};_0x5c4015[_0x140da7(0x17c)](spawn,_0x5c4015['ywsBn'],[_0x5c4015[_0x140da7(0x126)],..._0x283ed1[_0x140da7(0x125)](0x1)],{'shell':_0x5c4015[_0x140da7(0x189)](process[_0x140da7(0x110)],_0x5c4015[_0x140da7(0x162)]),'stdio':_0x5c4015[_0x140da7(0xf5)],'cwd':process[_0x140da7(0x144)]()});},isTestCommand=(_0x2685ef,_0x406e0d)=>{const _0x55e185=a35_0x3ebe4c,_0x3912d7={};_0x3912d7[_0x55e185(0x142)]=function(_0x4bf4b7,_0x2cae61){return _0x4bf4b7>_0x2cae61;},_0x3912d7[_0x55e185(0x12b)]=function(_0x16f4eb,_0x5ee2b5){return _0x16f4eb===_0x5ee2b5;},_0x3912d7['RtrRs']='test';const _0x376f47=_0x3912d7;if(_0x376f47[_0x55e185(0x142)](_0x406e0d[_0x55e185(0x155)],0x1)&&_0x376f47[_0x55e185(0x12b)](_0x406e0d[0x1],_0x376f47[_0x55e185(0x14d)]))return!![];return![];};function a35_0x23fe(){const _0xb1cc7e=['etAYr','tCloy','6bvneAO','aLKDU','rTWmc','cliConfig','platform','ejXda','debug','config','errorMessage','../../helpers/testhub/testhubHandler','WwlSU','getPackageType','sPVBW','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','--config=','initialize','8636370NczatO','QbrOw','isUndefined','../../helpers/testhub/utils','RwRzV','Updated\x20config\x20file\x20name\x20to\x20-\x20','stop','ohOmZ','15354qbryrX','slice','dXyBi','getConfigPath','./accessibility-helper','pYInu','rnyrb','TxmWz','jmoqn','dirname','../utils/constants','4416PxDnVy','browserstackSetupConfig.json','concat','launchBuild','5220ASttDx','parse','RLCNY','nNBAw','yFLLA','startsWith','scoCz','huZke','path','logLevel','resolve','test','BROWSERSTACK_TEST_OBSERVABILITY','isTypescriptProject','yLZKI','wajAX','gcGZl','cwd','trim','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_TEST_ACCESSIBILITY_YML','includes','--config','BrowserStack\x20config\x20file\x20not\x20found.','filterBrowserstackConfig','mhKer','RtrRs','../../helpers/test-observability/constants','ngmgF','unlinkSync','--disable-browserstack-automation','USER_CONFIG_DETAILS_PATH','split','nestedKeyValue','length','3730704qmblrV','exports','resolvedConfigFile','Tvbsb','isFalse','automation','OSdWT','util','env','cWCRp','writeFileSync','VGalL','HbcGX','false','push','skipSessionName','MmgUk','YhlQJ','XNjsw','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','tRcor','skipSessionStatus','uZOgH','5|0|8|7|6|3|2|1|4','992lcKWsA','Deleting\x20','\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','JrufW','filter','../../helpers/accessibility-automation/helper','coAED','npx','splice','existsSync','YEoHi','null','win32','QBVdq','markSDKSetupComplete','aDmlQ','PLAYWRIGHT','PACKAGE_TYPE','testContextOptions','nXcsU','--disable-test-observability','accessibilityOptions','FUGCp','homedir','BROWSERSTACK_PW_CONFIG_DIR','.browserstack','MtJah','../../helpers/logger','accessibility','../../helpers/test-observability/utils','meDVE','3027694HMzbIH','readFileSync','inherit','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','argv','385772ORtqHO','testObservability','Error\x20in\x20getting\x20funnel\x20data\x20results','422149xlQkOq','dZatI','../../helpers/helper','indexOf','join','--grep','ychfo','true','CVvzW','BROWSERSTACK_AUTOMATION','iVyQg','finalExecution'];a35_0x23fe=function(){return _0xb1cc7e;};return a35_0x23fe();}async function run(_0x44087c,_0xbd890f){const _0x3c8946=a35_0x3ebe4c,_0xc5a26a={'QFZiB':_0x3c8946(0x188),'rTWmc':'pw_result.json','yLZKI':function(_0x59dda3,_0x19f217){return _0x59dda3+_0x19f217;},'VGalL':_0x3c8946(0xfd),'aDmlQ':_0x3c8946(0x16d),'ngmgF':function(_0x578dd0){return _0x578dd0();},'RLCNY':'Error\x20in\x20closing\x20playwright','ejXda':_0x3c8946(0x151),'CVvzW':_0x3c8946(0x163),'huZke':_0x3c8946(0x183),'WwlSU':function(_0x3f1882,_0x425f1b){return _0x3f1882>=_0x425f1b;},'mhKer':function(_0x565fc8,_0x39cfe9){return _0x565fc8+_0x39cfe9;},'etAYr':'Error\x20in\x20deleting\x20playwright\x20results','pYInu':function(_0x1a0e96,_0x410992,_0x31622c){return _0x1a0e96(_0x410992,_0x31622c);},'scoCz':function(_0x37d109,_0x3e4ffb){return _0x37d109(_0x3e4ffb);},'QbrOw':_0x3c8946(0x14a),'coAED':_0x3c8946(0x15b),'ohOmZ':function(_0xd5e43b,_0x24a0c0){return _0xd5e43b!=_0x24a0c0;},'nvJoN':function(_0xe8c68,_0x4834f1,_0x149303){return _0xe8c68(_0x4834f1,_0x149303);},'cWCRp':function(_0x53ba59,_0x3c7f15){return _0x53ba59(_0x3c7f15);},'tCloy':function(_0xfcfabd,_0x4f4207){return _0xfcfabd(_0x4f4207);},'nNBAw':function(_0x420219,_0x5bbb2f){return _0x420219===_0x5bbb2f;},'aLKDU':_0x3c8946(0x105),'gcGZl':function(_0x13cc91,_0x32fdbb){return _0x13cc91(_0x32fdbb);},'FUGCp':_0x3c8946(0x130),'jmoqn':function(_0x25b50f,_0x3ad183){return _0x25b50f===_0x3ad183;},'uucND':_0x3c8946(0x146),'ychfo':'playwright-browserstack-sdk.config.js','XNjsw':function(_0x3ac8aa,_0x3b17f8){return _0x3ac8aa-_0x3b17f8;},'MmgUk':_0x3c8946(0x121),'YGOFM':function(_0x4a03ea,_0x337ccb){return _0x4a03ea>_0x337ccb;},'OSdWT':function(_0xad6bf7,_0x5ee5d3){return _0xad6bf7+_0x5ee5d3;},'tRcor':function(_0xea9712,_0x4f1ac2,_0x27af51,_0x3f06d8){return _0xea9712(_0x4f1ac2,_0x27af51,_0x3f06d8);},'YhlQJ':'npx','yFLLA':'playwright','Tvbsb':_0x3c8946(0x13e),'iVyQg':_0x3c8946(0x149),'dPrci':_0x3c8946(0x17b),'cIYOV':_0x3c8946(0xf8),'uZOgH':'close'};!helper[_0x3c8946(0x15a)](process['env']['BROWSERSTACK_AUTOMATION'])&&(process[_0x3c8946(0x15e)][_0x3c8946(0x107)]=!![]);process[_0x3c8946(0xfa)][_0x3c8946(0x148)](_0xc5a26a[_0x3c8946(0x111)])&&(process[_0x3c8946(0x15e)][_0x3c8946(0x107)]=_0xc5a26a[_0x3c8946(0x106)],_0xbd890f=_0xbd890f[_0x3c8946(0x173)](_0x148ab5=>_0x148ab5!==_0x3c8946(0x151)));const _0x5b69c1=_0xbd890f[_0x3c8946(0x101)](_0xc5a26a[_0x3c8946(0x13a)]);_0xc5a26a[_0x3c8946(0x116)](_0x5b69c1,0x0)&&(process[_0x3c8946(0x15e)][_0x3c8946(0x13f)]=_0xc5a26a[_0x3c8946(0x106)],_0xbd890f=_0xbd890f[_0x3c8946(0x173)](_0x32368d=>_0x32368d!==_0x3c8946(0x183)));try{const _0x5bab16=path[_0x3c8946(0x102)](helper[_0x3c8946(0x186)](),_0xc5a26a['QFZiB'],_0xc5a26a[_0x3c8946(0x10e)]);fs[_0x3c8946(0x178)](_0x5bab16)&&fs[_0x3c8946(0x150)](_0x5bab16);}catch(_0x5a46dc){logger['debug'](_0xc5a26a[_0x3c8946(0x14c)](_0xc5a26a[_0x3c8946(0x10a)],_0x5a46dc));}if(!_0xc5a26a[_0x3c8946(0x129)](isTestCommand,_0x44087c,_0xbd890f)){_0xc5a26a[_0x3c8946(0x139)](spawnOriginalProcess,_0xbd890f);return;}const _0x56a1d9=new BrowserStackSetup(_0x44087c,FRAMEWORKS[_0x3c8946(0x17f)]);if(!_0x56a1d9[_0x3c8946(0x113)]){logger['error'](_0xc5a26a[_0x3c8946(0x11d)]);return;}await _0x56a1d9[_0x3c8946(0x11b)]();!helper[_0x3c8946(0x11e)](_0x56a1d9['cliConfig'])&&_0x56a1d9[_0x3c8946(0x10f)]['has'](_0xc5a26a[_0x3c8946(0x175)])&&(process['env'][_0x3c8946(0x107)]=_0x56a1d9['cliConfig']['get'](_0xc5a26a[_0x3c8946(0x175)])||!![]);_0xc5a26a[_0x3c8946(0x123)](_0x56a1d9['config'][_0x3c8946(0xfc)],null)&&!helper['isTrue'](process[_0x3c8946(0x15e)][_0x3c8946(0x13f)])&&(process[_0x3c8946(0x15e)][_0x3c8946(0x13f)]=process[_0x3c8946(0x15e)][_0x3c8946(0x13f)]||_0x56a1d9['config'][_0x3c8946(0xfc)]);const _0x195008=!helper[_0x3c8946(0x15a)](process[_0x3c8946(0x15e)][_0x3c8946(0x13f)]);let _0x306232=![];_0x56a1d9[_0x3c8946(0x113)][_0x3c8946(0x18b)]&&(_0x306232=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x56a1d9[_0x3c8946(0x113)][_0x3c8946(0x18b)]);_0x56a1d9['config'][_0x3c8946(0x184)]&&(process[_0x3c8946(0x15e)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x56a1d9[_0x3c8946(0x113)][_0x3c8946(0x184)]));const _0x421740=_0xbd890f[_0x3c8946(0x131)](),_0x1ae042=await _0xc5a26a['nvJoN'](getUserPlaywrightConfig,_0x44087c,_0xbd890f);if(helper[_0x3c8946(0x11e)](_0x1ae042)){_0xc5a26a[_0x3c8946(0x15f)](spawnOriginalProcess,_0x421740);return;}const _0x4f7c97=_0x1ae042['path']?path[_0x3c8946(0x12d)](_0x1ae042[_0x3c8946(0x13b)]):process[_0x3c8946(0x144)]();process[_0x3c8946(0x15e)][_0x3c8946(0x187)]=_0x4f7c97,await TestHubHandler[_0x3c8946(0x132)](FRAMEWORKS['PLAYWRIGHT'],_0x56a1d9);_0x195008&&_0xc5a26a['tCloy'](handleO11yRerun,_0xbd890f);let _0x576f94=_0xc5a26a[_0x3c8946(0x136)](process[_0x3c8946(0x15e)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0xc5a26a[_0x3c8946(0x10d)]);_0x576f94=_0x576f94||_0xc5a26a[_0x3c8946(0x10b)](checkAccessibilityPlatformConfig,_0x56a1d9[_0x3c8946(0x113)]),process[_0x3c8946(0x15e)][_0x3c8946(0x147)]=_0x576f94;_0x576f94&&_0xc5a26a[_0x3c8946(0x143)](setAccessibilityCapabilities,_0x56a1d9['config']);const _0x3a16c6=path[_0x3c8946(0x102)](_0x1ae042[_0x3c8946(0x13b)]?path[_0x3c8946(0x12d)](_0x1ae042[_0x3c8946(0x13b)]):process[_0x3c8946(0x144)](),_0xc5a26a[_0x3c8946(0x185)]);fs[_0x3c8946(0x160)](_0x3a16c6,helper['serializeToYamlString'](_0x56a1d9[_0x3c8946(0x113)])),process[_0x3c8946(0x15e)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x3a16c6,helper['clearTempPWConfig']();let _0x36d0a2='';_0xc5a26a[_0x3c8946(0x12c)](helper[_0x3c8946(0x117)](),constants[_0x3c8946(0x180)]['MODULE'])?_0x36d0a2=_0xc5a26a['uucND']:_0x36d0a2=_0xc5a26a[_0x3c8946(0x104)];let _0x3c4f32='';if(helper[_0x3c8946(0x140)](_0x1ae042[_0x3c8946(0x13b)])){_0x3c4f32=_0x3c8946(0xf9);const _0x38a0de=_0x36d0a2[_0x3c8946(0x153)]('.');_0x38a0de[_0xc5a26a[_0x3c8946(0x168)](_0x38a0de[_0x3c8946(0x155)],0x1)]='ts',_0x36d0a2=_0x38a0de[_0x3c8946(0x102)]('.'),logger['debug'](_0xc5a26a[_0x3c8946(0x14c)](_0xc5a26a[_0x3c8946(0x166)],_0x36d0a2));}else _0x3c4f32=_0x3c8946(0x169);const _0x3c45ea=path[_0x3c8946(0x102)](_0x1ae042[_0x3c8946(0x13b)]?path[_0x3c8946(0x12d)](_0x1ae042[_0x3c8946(0x13b)]):process[_0x3c8946(0x144)](),_0x36d0a2);let _0x1298e6=_0x1ae042[_0x3c8946(0x13b)]?_0x1ae042['path']:'';_0x1298e6=_0xc5a26a['YGOFM'](_0x1298e6[_0x3c8946(0x155)],0x0)?path[_0x3c8946(0x13d)](_0x1298e6):'',process['env'][_0x3c8946(0x152)]=_0x1298e6;const _0x2c2a26=helper['getProxyUrl'](_0x56a1d9[_0x3c8946(0x113)]);_0x2c2a26&&(_0x3c4f32=_0xc5a26a[_0x3c8946(0x15c)](_0x3c8946(0x119)+_0x2c2a26+_0x3c8946(0x170),_0x3c4f32));helper[_0x3c8946(0x14b)]({},_0xbd890f),fs[_0x3c8946(0x160)](_0x3c45ea,_0x3c4f32),helper[_0x3c8946(0x17d)]();const _0x5a5883=_0xc5a26a[_0x3c8946(0x16a)](spawn,_0xc5a26a[_0x3c8946(0x167)],[_0xc5a26a[_0x3c8946(0x137)],_0xc5a26a[_0x3c8946(0x159)],_0xc5a26a[_0x3c8946(0x108)],_0x3c45ea,..._0xbd890f[_0x3c8946(0x125)](0x2)],{'shell':_0xc5a26a[_0x3c8946(0x136)](process['platform'],_0xc5a26a['dPrci']),'stdio':_0xc5a26a['cIYOV'],'cwd':process[_0x3c8946(0x144)](),'env':Object[_0x3c8946(0x171)]({},process[_0x3c8946(0x15e)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x3c8946(0x127)](_0x44087c),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x56a1d9['config']['testContextOptions'][_0x3c8946(0x16b)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x56a1d9['config'][_0x3c8946(0x181)][_0x3c8946(0x165)],'BROWSERSTACK_LOG_LEVEL':_0x56a1d9[_0x3c8946(0x113)][_0x3c8946(0x13c)]})}),_0x5a5368=()=>{const _0x5a3a3d=_0x3c8946;try{const _0x43745=path[_0x5a3a3d(0x102)](helper[_0x5a3a3d(0x186)](),_0xc5a26a['QFZiB'],_0xc5a26a['rTWmc']);if(fs['existsSync'](_0x43745)){let _0x5c23a3=fs[_0x5a3a3d(0xf7)](_0x43745);_0x5c23a3=JSON[_0x5a3a3d(0x134)](_0x5c23a3),_0x56a1d9[_0x5a3a3d(0x114)]=_0x5c23a3,fs[_0x5a3a3d(0x150)](_0x43745);}}catch(_0x134c5f){logger[_0x5a3a3d(0x112)](_0xc5a26a[_0x5a3a3d(0x141)](_0xc5a26a[_0x5a3a3d(0x161)],_0x134c5f));}};_0x5a5883['on'](_0xc5a26a[_0x3c8946(0x16c)],async _0x38501e=>{const _0x472663=_0x3c8946;try{const _0x16ad79=_0xc5a26a[_0x472663(0x17e)][_0x472663(0x153)]('|');let _0xba2166=0x0;while(!![]){switch(_0x16ad79[_0xba2166++]){case'0':await TestHubHandler[_0x472663(0x122)]();continue;case'1':logger[_0x472663(0x112)](_0x472663(0x16f)+_0x3a16c6);continue;case'2':fs['unlinkSync'](_0x3c45ea);continue;case'3':logger['info'](_0x472663(0x16f)+_0x3c45ea);continue;case'4':fs['unlinkSync'](_0x3a16c6);continue;case'5':_0xc5a26a[_0x472663(0x14f)](_0x5a5368);continue;case'6':logger['debug']('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x38501e);continue;case'7':process['exitCode']=_0x38501e;continue;case'8':await helper[_0x472663(0x109)](_0x56a1d9);continue;}break;}}catch(_0x459b82){logger[_0x472663(0x112)](_0xc5a26a[_0x472663(0x141)](_0xc5a26a[_0x472663(0x135)],_0x459b82));}});}module[a35_0x3ebe4c(0x157)]=run;
|
|
2
|
+
'use strict';const a35_0x39cc0e=a35_0x1941;(function(_0x4d9a47,_0x2d307e){const _0x5c8fdc=a35_0x1941,_0xf9a4ce=_0x4d9a47();while(!![]){try{const _0x5ad41c=parseInt(_0x5c8fdc(0x168))/0x1*(parseInt(_0x5c8fdc(0x1d9))/0x2)+parseInt(_0x5c8fdc(0x1e2))/0x3*(parseInt(_0x5c8fdc(0x177))/0x4)+-parseInt(_0x5c8fdc(0x1d7))/0x5*(parseInt(_0x5c8fdc(0x17b))/0x6)+parseInt(_0x5c8fdc(0x1c9))/0x7+parseInt(_0x5c8fdc(0x172))/0x8*(-parseInt(_0x5c8fdc(0x1b8))/0x9)+-parseInt(_0x5c8fdc(0x1eb))/0xa*(parseInt(_0x5c8fdc(0x1d0))/0xb)+parseInt(_0x5c8fdc(0x192))/0xc;if(_0x5ad41c===_0x2d307e)break;else _0xf9a4ce['push'](_0xf9a4ce['shift']());}catch(_0x2248f3){_0xf9a4ce['push'](_0xf9a4ce['shift']());}}}(a35_0x3640,0x6e8fe));function a35_0x3640(){const _0x104bd4=['BROWSERSTACK_RERUN','--config','get','ylFaH','skipSessionName','WEZTQ','ujVJq','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/accessibility-automation/helper','BrowserStack\x20config\x20file\x20not\x20found.','clearTempPWConfig','11OBntyW','playwright-browserstack-sdk.config.js','writeFileSync','uhdXw','readFileSync','slice','MODULE','push','KuQxU','YlcsR','2008pZVgPW','isFalse','win32','../../helpers/test-observability/utils','resolvedConfigFile','1546684pjnksn','iVrXg','Wzpra','testContextOptions','350820sdJMhE','3|5|8|4|7|6|2|0|1','testObservability','homedir','USER_CONFIG_DETAILS_PATH','Error\x20in\x20getting\x20funnel\x20data\x20results','CAXAN','concat','zwHyL','dirname','sDtWs','fUmnB','RVLGV','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','filterBrowserstackConfig','parse','join','goGMo','ylYpS','MOnnM','finalExecution','lrAXi','unlinkSync','11981784ZQwEFB','dfKgg','LhTtU','jRIjC','info','Deleting\x20','trim','nestedKeyValue','config','skipSessionStatus','npx','stringify','platform','eZSQL','Eviix','errorMessage','inherit','markSDKSetupComplete','ainho','playwright-browserstack-sdk.config.cjs','playwright','getPackageType','requirePWModule','length','tHLwB','Playwright\x20process\x20exited\x20with\x20code\x20','splice','njOgY','exitCode','../../helpers/testhub/testhubHandler','serializeToYamlString','isTypescriptProject','Error\x20in\x20closing\x20playwright','includes','../../helpers/test-observability/error-handler','cliConfig','../../helpers/logger','HzSIB','31059hpuvmK','cwd','indexOf','true','logLevel','close','null','automation','KtOmS','Updated\x20config\x20file\x20name\x20to\x20-\x20','env','map','path','lVxaB','BROWSERSTACK_AUTOMATION','has','pw_result.json','5839701qtYxmd','./accessibility-helper','launchBuild','BROWSERSTACK_PW_CONFIG_DIR','getProxyUrl','VUzDi','BROWSERSTACK_TEST_ACCESSIBILITY_YML','275chnZTK','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','existsSync','findIndex','--disable-browserstack-automation','error','yAqNI','65RzGfGz','accessibility','114364AQZzTL','../../helpers/helper','.browserstack','../../helpers/BrowserStackSetup','--disable-test-observability','filter','../../helpers/test-observability/constants','XnxIq','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','3OFnQSg','PACKAGE_TYPE','czLYS','./reporter/pwUtils','DaUcz','isUndefined','browserstackSetupConfig.json','util','TpjJp','307690DJBVNs','GODML','jFeJe','resolve','test','iZbgT','YgUzS','accessibilityOptions','\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();','Ptvhe','../utils/constants','mLPIy','zJlHG','isTrue','debug','Error\x20in\x20deleting\x20playwright\x20results','PLAYWRIGHT','cTeaN','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','split','tDBtJ','assign'];a35_0x3640=function(){return _0x104bd4;};return a35_0x3640();}const fs=require('fs'),path=require(a35_0x39cc0e(0x1c4)),{spawn}=require('child_process'),{format}=require(a35_0x39cc0e(0x1e9)),logger=require(a35_0x39cc0e(0x1b6))['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x39cc0e(0x1dc)),helper=require(a35_0x39cc0e(0x1da)),utilities=require('../../helpers/utilities'),constants=require(a35_0x39cc0e(0x1f5)),{FRAMEWORKS}=require(a35_0x39cc0e(0x1df)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x39cc0e(0x1e5)),{CrashReporter}=require(a35_0x39cc0e(0x1b4)),{getFrameworkVersion}=require(a35_0x39cc0e(0x175)),{checkAccessibilityPlatformConfig}=require(a35_0x39cc0e(0x165)),{setAccessibilityCapabilities}=require(a35_0x39cc0e(0x1ca)),TestHubHandler=require(a35_0x39cc0e(0x1af)),{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),getUserPlaywrightConfig=async(_0x3182e9,_0x10fb56)=>{const _0x50be31=a35_0x39cc0e,_0x4c0493={'yAqNI':function(_0x4e2a2d){return _0x4e2a2d();},'tDBtJ':function(_0x34aaf9,_0x38fb18){return _0x34aaf9(_0x38fb18);},'zJlHG':_0x50be31(0x176),'iVrXg':'--config='},_0x2a5ae9=!helper[_0x50be31(0x1e7)](_0x3182e9['config']),_0x51cd55=_0x2a5ae9?path['resolve'](process[_0x50be31(0x1b9)](),_0x3182e9[_0x50be31(0x19a)]):process[_0x50be31(0x1b9)](),{resolveConfigFile:_0x5dfe4e,resolveConfigLocation:_0x47d763}=helper[_0x50be31(0x1a8)]['apply'](null,_0x4c0493[_0x50be31(0x1d6)](getConfigLoaderPath)),_0xef096d=_0x5dfe4e?_0x4c0493[_0x50be31(0x15b)](_0x5dfe4e,_0x51cd55):helper[_0x50be31(0x199)](_0x4c0493[_0x50be31(0x15b)](_0x47d763,_0x51cd55),[_0x4c0493[_0x50be31(0x1f7)]]),_0x11c681={};if(_0x2a5ae9){const _0x16c78e=_0x10fb56[_0x50be31(0x1d3)](_0x5d652f=>_0x5d652f===_0x50be31(0x15e)||_0x5d652f==='-c'||_0x5d652f['startsWith']('--config='));_0x10fb56[_0x50be31(0x1ac)](_0x16c78e,_0x10fb56[_0x16c78e]['startsWith'](_0x4c0493[_0x50be31(0x178)])?0x1:0x2);}const _0x259c2b={};return _0x259c2b[_0x50be31(0x1c4)]=_0xef096d,_0x259c2b[_0x50be31(0x19a)]=_0x11c681,_0x259c2b;},handleO11yRerun=_0xda3f41=>{const _0x209822=a35_0x39cc0e,_0x308b50={};_0x308b50[_0x209822(0x195)]=function(_0xa4465d,_0x2ea37d){return _0xa4465d!==_0x2ea37d;},_0x308b50[_0x209822(0x194)]=_0x209822(0x1be),_0x308b50['cTeaN']='--grep';const _0x28a3c6=_0x308b50,_0x48ce25=helper[_0x209822(0x1f8)](process[_0x209822(0x1c2)][_0x209822(0x15d)]);if(_0x48ce25){const _0x4b76a1=process[_0x209822(0x1c2)]['BROWSERSTACK_RERUN_TESTS'],_0x5d6a42=[];if(_0x28a3c6['jRIjC'](_0x4b76a1,_0x28a3c6['LhTtU'])&&!helper[_0x209822(0x1e7)](_0x4b76a1)){_0x4b76a1['split'](',')[_0x209822(0x1c3)](_0x4ed994=>{const _0x2811d3=_0x209822;_0x5d6a42[_0x2811d3(0x16f)]('('+_0x4ed994[_0x2811d3(0x198)]()+')');});const _0x45bb39='^'+_0x5d6a42[_0x209822(0x18b)]('|')+'$';_0xda3f41[_0x209822(0x16f)](_0x28a3c6[_0x209822(0x1fc)],_0x45bb39);}}},spawnOriginalProcess=_0x3b434c=>{const _0x3dd3ef=a35_0x39cc0e,_0x1c43ca={'CAXAN':function(_0x3f569a,_0x4c7f07,_0x11c627,_0x7c581f){return _0x3f569a(_0x4c7f07,_0x11c627,_0x7c581f);},'TpjJp':_0x3dd3ef(0x19c),'qIear':_0x3dd3ef(0x1a6),'goGMo':function(_0x17f5b7,_0x471e75){return _0x17f5b7===_0x471e75;},'pCclP':_0x3dd3ef(0x174),'eZSQL':_0x3dd3ef(0x1a2)};_0x1c43ca[_0x3dd3ef(0x181)](spawn,_0x1c43ca[_0x3dd3ef(0x1ea)],[_0x1c43ca['qIear'],..._0x3b434c[_0x3dd3ef(0x16d)](0x1)],{'shell':_0x1c43ca[_0x3dd3ef(0x18c)](process[_0x3dd3ef(0x19e)],_0x1c43ca['pCclP']),'stdio':_0x1c43ca[_0x3dd3ef(0x19f)],'cwd':process['cwd']()});},isTestCommand=(_0x400141,_0x9a110a)=>{const _0x23268e=a35_0x39cc0e,_0x2df048={};_0x2df048[_0x23268e(0x1f0)]=function(_0x3227e5,_0x2ce4ff){return _0x3227e5>_0x2ce4ff;},_0x2df048[_0x23268e(0x18d)]=function(_0x2ff9a0,_0x50592d){return _0x2ff9a0===_0x50592d;},_0x2df048[_0x23268e(0x1a0)]='test';const _0x2d4c86=_0x2df048;if(_0x2d4c86['iZbgT'](_0x9a110a[_0x23268e(0x1a9)],0x1)&&_0x2d4c86[_0x23268e(0x18d)](_0x9a110a[0x1],_0x2d4c86[_0x23268e(0x1a0)]))return!![];return![];};async function run(_0x1ed2c4,_0x385b42){const _0x58bd2f=a35_0x39cc0e,_0x5be10b={'RVLGV':_0x58bd2f(0x1db),'czLYS':_0x58bd2f(0x1c8),'ainho':function(_0x4e919d,_0x18afaa){return _0x4e919d+_0x18afaa;},'dWOtp':_0x58bd2f(0x180),'Yyuxb':_0x58bd2f(0x17c),'zwHyL':function(_0x56be0f){return _0x56be0f();},'fUmnB':_0x58bd2f(0x1b2),'Ptvhe':_0x58bd2f(0x1d4),'jFeJe':'false','MOnnM':_0x58bd2f(0x1dd),'YlcsR':function(_0x332c06,_0x30b6a4){return _0x332c06>=_0x30b6a4;},'YgUzS':_0x58bd2f(0x1fa),'KtOmS':function(_0x36b1f8,_0x1116cb,_0x42b6a8){return _0x36b1f8(_0x1116cb,_0x42b6a8);},'ujVJq':function(_0x1763da,_0x236a3c){return _0x1763da(_0x236a3c);},'WEZTQ':_0x58bd2f(0x166),'DaUcz':_0x58bd2f(0x1bf),'ZYUZx':function(_0x4f82a9,_0x40672e){return _0x4f82a9!=_0x40672e;},'KuQxU':function(_0xa70a3d,_0x8f2fdb,_0x52b5f7){return _0xa70a3d(_0x8f2fdb,_0x52b5f7);},'dfKgg':function(_0x109a38,_0x7a7ff1){return _0x109a38===_0x7a7ff1;},'ylFaH':_0x58bd2f(0x1bb),'rWJhP':_0x58bd2f(0x1e8),'pHiMw':_0x58bd2f(0x1a5),'tHLwB':_0x58bd2f(0x169),'njOgY':function(_0x4a81af,_0x4be415){return _0x4a81af-_0x4be415;},'lVxaB':function(_0x17b1f7,_0x2fff4e){return _0x17b1f7+_0x2fff4e;},'sDtWs':_0x58bd2f(0x1c1),'lrAXi':function(_0x57a67b,_0x3c7e6e){return _0x57a67b>_0x3c7e6e;},'MRUja':function(_0x2a6881,_0x20025e,_0x2f650a,_0x4f349b){return _0x2a6881(_0x20025e,_0x2f650a,_0x4f349b);},'GODML':_0x58bd2f(0x19c),'VUzDi':_0x58bd2f(0x1a6),'mLPIy':_0x58bd2f(0x1ef),'XnxIq':_0x58bd2f(0x15e),'Wzpra':'win32','HzSIB':_0x58bd2f(0x1a2),'uhdXw':_0x58bd2f(0x1bd)};!helper[_0x58bd2f(0x173)](process[_0x58bd2f(0x1c2)][_0x58bd2f(0x1c6)])&&(process[_0x58bd2f(0x1c2)]['BROWSERSTACK_AUTOMATION']=!![]);process['argv'][_0x58bd2f(0x1b3)](_0x5be10b[_0x58bd2f(0x1f4)])&&(process['env'][_0x58bd2f(0x1c6)]=_0x5be10b[_0x58bd2f(0x1ed)],_0x385b42=_0x385b42['filter'](_0x39e876=>_0x39e876!==_0x58bd2f(0x1d4)));const _0x350934=_0x385b42[_0x58bd2f(0x1ba)](_0x5be10b[_0x58bd2f(0x18e)]);_0x5be10b[_0x58bd2f(0x171)](_0x350934,0x0)&&(process['env'][_0x58bd2f(0x164)]=_0x5be10b[_0x58bd2f(0x1ed)],_0x385b42=_0x385b42[_0x58bd2f(0x1de)](_0x5c07a8=>_0x5c07a8!==_0x58bd2f(0x1dd)));try{const _0x3101ff=path[_0x58bd2f(0x18b)](helper['homedir'](),_0x5be10b[_0x58bd2f(0x187)],_0x5be10b[_0x58bd2f(0x1e4)]);fs[_0x58bd2f(0x1d2)](_0x3101ff)&&fs['unlinkSync'](_0x3101ff);}catch(_0x189731){logger[_0x58bd2f(0x1f9)](_0x5be10b['ainho'](_0x5be10b[_0x58bd2f(0x1f1)],_0x189731));}if(!_0x5be10b[_0x58bd2f(0x1c0)](isTestCommand,_0x1ed2c4,_0x385b42)){_0x5be10b[_0x58bd2f(0x163)](spawnOriginalProcess,_0x385b42);return;}const _0x1014d3=new BrowserStackSetup(_0x1ed2c4,FRAMEWORKS['PLAYWRIGHT']);if(!_0x1014d3[_0x58bd2f(0x19a)]){logger[_0x58bd2f(0x1d5)](_0x5be10b[_0x58bd2f(0x162)]);return;}await _0x1014d3['initialize']();!helper['isUndefined'](_0x1014d3[_0x58bd2f(0x1b5)])&&_0x1014d3['cliConfig'][_0x58bd2f(0x1c7)](_0x5be10b[_0x58bd2f(0x1e6)])&&(process[_0x58bd2f(0x1c2)][_0x58bd2f(0x1c6)]=_0x1014d3['cliConfig'][_0x58bd2f(0x15f)](_0x5be10b[_0x58bd2f(0x1e6)])||!![]);_0x5be10b['ZYUZx'](_0x1014d3[_0x58bd2f(0x19a)]['testObservability'],null)&&!helper[_0x58bd2f(0x1f8)](process[_0x58bd2f(0x1c2)][_0x58bd2f(0x164)])&&(process['env'][_0x58bd2f(0x164)]=process['env']['BROWSERSTACK_TEST_OBSERVABILITY']||_0x1014d3[_0x58bd2f(0x19a)][_0x58bd2f(0x17d)]);const _0x5d6fab=!helper['isFalse'](process[_0x58bd2f(0x1c2)]['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x473a51=![];_0x1014d3[_0x58bd2f(0x19a)]['accessibility']&&(_0x473a51=!![],process[_0x58bd2f(0x1c2)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x1014d3[_0x58bd2f(0x19a)][_0x58bd2f(0x1d8)]);_0x1014d3[_0x58bd2f(0x19a)][_0x58bd2f(0x1f2)]&&(process['env'][_0x58bd2f(0x1d1)]=JSON[_0x58bd2f(0x19d)](_0x1014d3['config'][_0x58bd2f(0x1f2)]));const _0x2c3454=_0x385b42[_0x58bd2f(0x182)](),_0x1315f3=await _0x5be10b[_0x58bd2f(0x170)](getUserPlaywrightConfig,_0x1ed2c4,_0x385b42);if(helper[_0x58bd2f(0x1e7)](_0x1315f3)){_0x5be10b[_0x58bd2f(0x163)](spawnOriginalProcess,_0x2c3454);return;}const _0x593b6d=_0x1315f3['path']?path[_0x58bd2f(0x184)](_0x1315f3[_0x58bd2f(0x1c4)]):process[_0x58bd2f(0x1b9)]();process['env'][_0x58bd2f(0x1cc)]=_0x593b6d,await TestHubHandler[_0x58bd2f(0x1cb)](FRAMEWORKS[_0x58bd2f(0x1fb)],_0x1014d3);_0x5d6fab&&_0x5be10b[_0x58bd2f(0x163)](handleO11yRerun,_0x385b42);let _0xf2dfe0=_0x5be10b[_0x58bd2f(0x193)](process[_0x58bd2f(0x1c2)][_0x58bd2f(0x1cf)],_0x5be10b[_0x58bd2f(0x160)]);_0xf2dfe0=_0xf2dfe0||_0x5be10b[_0x58bd2f(0x163)](checkAccessibilityPlatformConfig,_0x1014d3[_0x58bd2f(0x19a)]),process[_0x58bd2f(0x1c2)][_0x58bd2f(0x1cf)]=_0xf2dfe0;_0xf2dfe0&&_0x5be10b['ujVJq'](setAccessibilityCapabilities,_0x1014d3[_0x58bd2f(0x19a)]);const _0x470ff4=path[_0x58bd2f(0x18b)](_0x1315f3[_0x58bd2f(0x1c4)]?path[_0x58bd2f(0x184)](_0x1315f3[_0x58bd2f(0x1c4)]):process[_0x58bd2f(0x1b9)](),_0x5be10b['rWJhP']);fs['writeFileSync'](_0x470ff4,helper[_0x58bd2f(0x1b0)](_0x1014d3['config'])),process[_0x58bd2f(0x1c2)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x470ff4,helper[_0x58bd2f(0x167)]();let _0x2e2d7c='';_0x5be10b[_0x58bd2f(0x193)](helper[_0x58bd2f(0x1a7)](),constants[_0x58bd2f(0x1e3)][_0x58bd2f(0x16e)])?_0x2e2d7c=_0x5be10b['pHiMw']:_0x2e2d7c=_0x5be10b[_0x58bd2f(0x1aa)];let _0x4d5ee1='';if(helper[_0x58bd2f(0x1b1)](_0x1315f3[_0x58bd2f(0x1c4)])){_0x4d5ee1=_0x58bd2f(0x188);const _0x141adb=_0x2e2d7c[_0x58bd2f(0x15a)]('.');_0x141adb[_0x5be10b[_0x58bd2f(0x1ad)](_0x141adb[_0x58bd2f(0x1a9)],0x1)]='ts',_0x2e2d7c=_0x141adb[_0x58bd2f(0x18b)]('.'),logger['debug'](_0x5be10b['lVxaB'](_0x5be10b[_0x58bd2f(0x185)],_0x2e2d7c));}else _0x4d5ee1=_0x58bd2f(0x1e1);const _0x521946=path[_0x58bd2f(0x18b)](_0x1315f3[_0x58bd2f(0x1c4)]?path[_0x58bd2f(0x184)](_0x1315f3[_0x58bd2f(0x1c4)]):process[_0x58bd2f(0x1b9)](),_0x2e2d7c);let _0x36cf30=_0x1315f3[_0x58bd2f(0x1c4)]?_0x1315f3[_0x58bd2f(0x1c4)]:'';_0x36cf30=_0x5be10b[_0x58bd2f(0x190)](_0x36cf30[_0x58bd2f(0x1a9)],0x0)?path[_0x58bd2f(0x1ee)](_0x36cf30):'',process['env'][_0x58bd2f(0x17f)]=_0x36cf30;const _0x11d6c4=helper[_0x58bd2f(0x1cd)](_0x1014d3[_0x58bd2f(0x19a)]);_0x11d6c4&&(_0x4d5ee1=_0x5be10b[_0x58bd2f(0x1c5)](_0x58bd2f(0x1fd)+_0x11d6c4+_0x58bd2f(0x1f3),_0x4d5ee1));helper[_0x58bd2f(0x189)]({},_0x385b42),fs[_0x58bd2f(0x16a)](_0x521946,_0x4d5ee1),helper[_0x58bd2f(0x1a3)]();const _0x1c73ab=_0x5be10b['MRUja'](spawn,_0x5be10b[_0x58bd2f(0x1ec)],[_0x5be10b[_0x58bd2f(0x1ce)],_0x5be10b[_0x58bd2f(0x1f6)],_0x5be10b[_0x58bd2f(0x1e0)],_0x521946,..._0x385b42[_0x58bd2f(0x16d)](0x2)],{'shell':_0x5be10b['dfKgg'](process[_0x58bd2f(0x19e)],_0x5be10b[_0x58bd2f(0x179)]),'stdio':_0x5be10b[_0x58bd2f(0x1b7)],'cwd':process[_0x58bd2f(0x1b9)](),'env':Object[_0x58bd2f(0x15c)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x1ed2c4),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1014d3[_0x58bd2f(0x19a)][_0x58bd2f(0x17a)][_0x58bd2f(0x19b)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1014d3[_0x58bd2f(0x19a)][_0x58bd2f(0x17a)][_0x58bd2f(0x161)],'BROWSERSTACK_LOG_LEVEL':_0x1014d3['config'][_0x58bd2f(0x1bc)]})}),_0x16bcaa=()=>{const _0x38254a=_0x58bd2f;try{const _0x38f5d6=path[_0x38254a(0x18b)](helper[_0x38254a(0x17e)](),_0x5be10b[_0x38254a(0x187)],_0x5be10b[_0x38254a(0x1e4)]);if(fs[_0x38254a(0x1d2)](_0x38f5d6)){let _0x3432a3=fs[_0x38254a(0x16c)](_0x38f5d6);_0x3432a3=JSON[_0x38254a(0x18a)](_0x3432a3),_0x1014d3[_0x38254a(0x1a1)]=_0x3432a3,fs[_0x38254a(0x191)](_0x38f5d6);}}catch(_0x1a3a12){logger[_0x38254a(0x1f9)](_0x5be10b[_0x38254a(0x1a4)](_0x5be10b['dWOtp'],_0x1a3a12));}};_0x1c73ab['on'](_0x5be10b[_0x58bd2f(0x16b)],async _0x294523=>{const _0x28ffcb=_0x58bd2f;try{const _0xa273af=_0x5be10b['Yyuxb'][_0x28ffcb(0x15a)]('|');let _0x28dabb=0x0;while(!![]){switch(_0xa273af[_0x28dabb++]){case'0':logger[_0x28ffcb(0x1f9)]('Deleting\x20'+_0x470ff4);continue;case'1':fs[_0x28ffcb(0x191)](_0x470ff4);continue;case'2':fs['unlinkSync'](_0x521946);continue;case'3':_0x5be10b[_0x28ffcb(0x183)](_0x16bcaa);continue;case'4':process[_0x28ffcb(0x1ae)]=_0x294523;continue;case'5':await TestHubHandler['stop']();continue;case'6':logger[_0x28ffcb(0x196)](_0x28ffcb(0x197)+_0x521946);continue;case'7':logger['debug'](_0x28ffcb(0x1ab)+_0x294523);continue;case'8':await utilities[_0x28ffcb(0x18f)](_0x1014d3);continue;}break;}}catch(_0x2d0bd2){logger[_0x28ffcb(0x1f9)](_0x5be10b['ainho'](_0x5be10b[_0x28ffcb(0x186)],_0x2d0bd2));}});}function a35_0x1941(_0x1b0956,_0x2f22b0){const _0x364078=a35_0x3640();return a35_0x1941=function(_0x194163,_0x48d012){_0x194163=_0x194163-0x15a;let _0x3852b1=_0x364078[_0x194163];return _0x3852b1;},a35_0x1941(_0x1b0956,_0x2f22b0);}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a36_0x292d9d=a36_0x302d;function a36_0x302d(_0x34e9a7,_0x216ad6){const _0x3d34c7=a36_0x3d34();return a36_0x302d=function(_0x302d06,_0x40a4a7){_0x302d06=_0x302d06-0x15b;let _0x54bd21=_0x3d34c7[_0x302d06];return _0x54bd21;},a36_0x302d(_0x34e9a7,_0x216ad6);}(function(_0x35a7cd,_0x2aac35){const _0x29fc0b=a36_0x302d,_0x5ede7c=_0x35a7cd();while(!![]){try{const _0x390bbb=-parseInt(_0x29fc0b(0x180))/0x1*(parseInt(_0x29fc0b(0x16a))/0x2)+-parseInt(_0x29fc0b(0x173))/0x3+parseInt(_0x29fc0b(0x16f))/0x4*(parseInt(_0x29fc0b(0x185))/0x5)+-parseInt(_0x29fc0b(0x179))/0x6+-parseInt(_0x29fc0b(0x15d))/0x7*(-parseInt(_0x29fc0b(0x183))/0x8)+-parseInt(_0x29fc0b(0x167))/0x9+parseInt(_0x29fc0b(0x186))/0xa*(parseInt(_0x29fc0b(0x172))/0xb);if(_0x390bbb===_0x2aac35)break;else _0x5ede7c['push'](_0x5ede7c['shift']());}catch(_0x580c42){_0x5ede7c['push'](_0x5ede7c['shift']());}}}(a36_0x3d34,0x3b0bf));const util=require('util'),child_process=require(a36_0x292d9d(0x181)),{FRAMEWORKS}=require(a36_0x292d9d(0x17f)),{getFrameworkVersion,debug}=require(a36_0x292d9d(0x164)),helper=require(a36_0x292d9d(0x18a)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x292d9d(0x169)),{mockIsWorkerRedundant}=require(a36_0x292d9d(0x163)),logger=require(a36_0x292d9d(0x15e))[a36_0x292d9d(0x161)];module[a36_0x292d9d(0x17d)]=async function(_0x5199c4){const _0x42da73=a36_0x292d9d,_0x3c94a8={'ewTSb':function(_0x4a5115,_0x387661){return _0x4a5115(_0x387661);},'JdjPl':function(_0x472daf){return _0x472daf();},'POcNr':_0x42da73(0x162),'CPeZc':function(_0x24ebc0){return _0x24ebc0();},'XKaho':_0x42da73(0x189),'THwkL':function(_0xbac5ce,_0xcf96d0){return _0xbac5ce>=_0xcf96d0;},'aFTik':'1.33.0','pWxas':function(_0x3188b9,_0xaf1726,_0x18677d){return _0x3188b9(_0xaf1726,_0x18677d);},'aXawD':function(_0x301b02,_0x56c627){return _0x301b02!==_0x56c627;},'MzHUt':'function','LAWpw':_0x42da73(0x17b)},_0x478542=child_process[_0x42da73(0x15b)];if(helper[_0x42da73(0x17e)]())try{_0x3c94a8['CPeZc'](mockIsWorkerRedundant);}catch(_0x3ef269){logger[_0x42da73(0x188)](_0x42da73(0x160)+util[_0x42da73(0x15f)](_0x3ef269));}child_process[_0x42da73(0x15b)]=function(){const _0x20eedd=_0x42da73;return _0x3c94a8[_0x20eedd(0x16b)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x20eedd(0x18b)](_0x3c94a8[_0x20eedd(0x175)](getForkProcessPath))?arguments[0x0]=require[_0x20eedd(0x168)](_0x3c94a8[_0x20eedd(0x15c)]):logger[_0x20eedd(0x184)](_0x20eedd(0x176)+_0x3c94a8[_0x20eedd(0x175)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x478542[_0x20eedd(0x165)](null,arguments);};if(process[_0x42da73(0x177)][_0x42da73(0x16c)]){_0x3c94a8['ewTSb'](debug,_0x3c94a8[_0x42da73(0x17c)]);try{const {loadGlobalHook:_0x44aac9}=helper['requirePWModule'][_0x42da73(0x165)](null,_0x3c94a8[_0x42da73(0x178)](getLoadUtilsPath)),_0x34214a=_0x3c94a8[_0x42da73(0x16b)](getFrameworkVersion,FRAMEWORKS[_0x42da73(0x187)]);let _0x1b04e1=_0x5199c4;if(_0x3c94a8[_0x42da73(0x16e)](helper[_0x42da73(0x170)](_0x34214a,_0x3c94a8[_0x42da73(0x171)]),0x0)){const _0x26d764={};_0x26d764[_0x42da73(0x16d)]=_0x5199c4,_0x1b04e1=_0x26d764;}const _0x44afd4=await _0x3c94a8[_0x42da73(0x182)](_0x44aac9,_0x1b04e1,process[_0x42da73(0x177)][_0x42da73(0x16c)]);if(_0x3c94a8[_0x42da73(0x166)](typeof _0x44afd4,_0x3c94a8['MzHUt']))throw new Error(_0x3c94a8['LAWpw']);return _0x44afd4[_0x42da73(0x165)](null,arguments);}catch(_0x33d77f){_0x3c94a8['ewTSb'](debug,_0x42da73(0x174)+_0x33d77f[_0x42da73(0x17a)]());}}};function a36_0x3d34(){const _0x2432ce=['toString','Not\x20able\x20to\x20import\x20globalSetup','XKaho','exports','isHandlePWErrorSet','../../helpers/test-observability/constants','1RMaeKF','child_process','pWxas','412992jcXMcq','error','2270AhiNZq','330570mmzcMy','PLAYWRIGHT','debug','Running\x20existing\x20global\x20setup','../../helpers/helper','includes','fork','POcNr','14EcoGya','../../helpers/logger','format','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','winstonLogger','./mock-process.js','./patches','../../helpers/test-observability/utils','apply','aXawD','3907053wZLgBf','resolve','./reporter/pwUtils','828886GQvHSr','ewTSb','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','config','THwkL','4188HQEJnw','compareVersions','aFTik','308uVtnRZ','661824GTfPSt','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','JdjPl','Path\x20','env','CPeZc','1158954GAksop'];a36_0x3d34=function(){return _0x2432ce;};return a36_0x3d34();}
|