browserstack-node-sdk 1.34.3 → 1.34.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -0
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
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_0x4d8474=a29_0x3351;function a29_0x3351(_0x243e4c,_0x285489){const _0x4331c9=a29_0x4331();return a29_0x3351=function(_0x335108,_0x16b31a){_0x335108=_0x335108-0x1cb;let _0x35ccab=_0x4331c9[_0x335108];return _0x35ccab;},a29_0x3351(_0x243e4c,_0x285489);}(function(_0x237415,_0x2cd15f){const _0x481b61=a29_0x3351,_0x115d1=_0x237415();while(!![]){try{const _0x36a917=-parseInt(_0x481b61(0x1ce))/0x1+-parseInt(_0x481b61(0x205))/0x2+parseInt(_0x481b61(0x232))/0x3*(-parseInt(_0x481b61(0x224))/0x4)+parseInt(_0x481b61(0x1dd))/0x5*(-parseInt(_0x481b61(0x21f))/0x6)+parseInt(_0x481b61(0x1ef))/0x7*(-parseInt(_0x481b61(0x239))/0x8)+parseInt(_0x481b61(0x21d))/0x9+parseInt(_0x481b61(0x1cf))/0xa*(parseInt(_0x481b61(0x1fb))/0xb);if(_0x36a917===_0x2cd15f)break;else _0x115d1['push'](_0x115d1['shift']());}catch(_0x5ba5e5){_0x115d1['push'](_0x115d1['shift']());}}}(a29_0x4331,0x6469b));const logger=require(a29_0x4d8474(0x22c))[a29_0x4d8474(0x1d5)],helper=require(a29_0x4d8474(0x23a)),constants=require(a29_0x4d8474(0x1d0)),hubAllocator=require(a29_0x4d8474(0x204)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x4d8474(0x203)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x4d8474(0x1f0)),globals=require('../../../helpers/globals'),modify=(_0x4ecab1,_0x1bc369=null,_0x1f4b6c=![])=>{const _0x36dbe4=a29_0x4d8474,_0x26fd1f={'hJrtD':function(_0x5ef772,_0x2cdc12){return _0x5ef772!==_0x2cdc12;},'wKime':_0x36dbe4(0x1e3),'bSGCd':function(_0xc47fe6,_0x499245){return _0xc47fe6+_0x499245;},'KHdcP':_0x36dbe4(0x1e2),'jfcIC':_0x36dbe4(0x1f8),'SHybI':'goog:chromeOptions','fyJzR':'chromeOptions','aZNCk':'ms:edgeOptions','IMQdS':_0x36dbe4(0x1eb),'noRhY':'moz:firefoxOptions','CmIpf':'firefoxOptions','MFTdx':_0x36dbe4(0x1e7),'OepaQ':'se:ieOptions','CImTg':_0x36dbe4(0x209),'fblgm':function(_0x4f7128,_0x25b645){return _0x4f7128===_0x25b645;},'Tjebz':'object','UguPT':_0x36dbe4(0x1d1),'Bezza':_0x36dbe4(0x200),'ySxmX':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','SWnjE':'5|4|2|0|1|3','lDfKL':function(_0x207ac9,_0x290cac){return _0x207ac9(_0x290cac);},'xFwTz':function(_0x58e1ea,_0x11ae5f,_0x2ddc13){return _0x58e1ea(_0x11ae5f,_0x2ddc13);},'EMFUe':function(_0x352000,_0x3a04ae,_0x3623e0){return _0x352000(_0x3a04ae,_0x3623e0);},'hppKf':'1|3|0|2|4|5','IDxVP':function(_0x221b96){return _0x221b96();},'lcIcq':function(_0x1aca1b,_0x2a2904){return _0x1aca1b(_0x2a2904);},'SKHMc':'isAccessibilityPlatform','vHNRz':function(_0x5cf82e,_0x2ed0b4,_0x414cb4){return _0x5cf82e(_0x2ed0b4,_0x414cb4);},'iRKGf':_0x36dbe4(0x238),'QCLHF':function(_0x5dce62,_0xb2e654){return _0x5dce62(_0xb2e654);},'OvntK':function(_0x2bf7bc,_0x157472){return _0x2bf7bc!==_0x157472;},'Foynt':function(_0x36e57f,_0x3df47c){return _0x36e57f!==_0x3df47c;},'UqOVa':_0x36dbe4(0x1ec),'oKdRo':'Modifying\x20webdriver\x20builder'},_0x4d3d94=helper['requireHttpClient']();let _0x5763fa;try{_0x5763fa=helper[_0x36dbe4(0x202)](),_0x5763fa['originalBuilder']&&(_0x5763fa[_0x36dbe4(0x1e4)]=_0x5763fa[_0x36dbe4(0x210)]);}catch(_0x367655){return;}if(helper['isBrowserstackInfra']()){const _0x246a26={};_0x246a26[_0x36dbe4(0x234)]=_0x4ecab1[_0x36dbe4(0x1da)],helper[_0x36dbe4(0x1f5)](_0x246a26,new Map(),new Map()),logger[_0x36dbe4(0x1f4)](_0x26fd1f[_0x36dbe4(0x225)]),logger[_0x36dbe4(0x1e8)](_0x26fd1f['oKdRo']);}class _0xe67310 extends _0x4d3d94[_0x36dbe4(0x230)]{['send'](_0x36f9f2){const _0x143255=_0x36dbe4;if(_0x26fd1f[_0x143255(0x235)](_0x36f9f2['path'],_0x26fd1f['wKime'])&&_0x26fd1f[_0x143255(0x235)](global['newHubUrl'],''))try{global[_0x143255(0x206)]=_0x26fd1f[_0x143255(0x1fc)](_0x26fd1f[_0x143255(0x1fc)](_0x26fd1f[_0x143255(0x1db)],global[_0x143255(0x206)]),_0x26fd1f[_0x143255(0x236)]),this[_0x143255(0x1de)]=hubAllocator['getRequestOptions'](global[_0x143255(0x206)]),logger[_0x143255(0x1e8)](_0x143255(0x1e6)+global[_0x143255(0x206)]),global[_0x143255(0x206)]='';}catch(_0x285392){logger['error'](_0x285392);}return super[_0x143255(0x1ee)](_0x36f9f2);}}class _0x54d544 extends _0x5763fa[_0x36dbe4(0x1e4)]{[_0x36dbe4(0x1cb)](){const _0x4a7ad5=_0x36dbe4;return this[_0x4a7ad5(0x1cd)]=helper[_0x4a7ad5(0x20e)](_0x4ecab1),logger[_0x4a7ad5(0x1e8)](_0x4a7ad5(0x221)+this[_0x4a7ad5(0x1cd)]),this;}[_0x36dbe4(0x1fd)](_0x266fe1){const _0x3caa99=_0x36dbe4;let _0x382380={};for(const _0x1e2139 in _0x266fe1){switch(_0x1e2139){case _0x26fd1f[_0x3caa99(0x20b)]:case _0x26fd1f[_0x3caa99(0x1fa)]:this[_0x3caa99(0x1f3)]&&(_0x382380=this[_0x3caa99(0x1f3)]['get'](this[_0x3caa99(0x1f3)]['CAPABILITY_KEY'])||{},this[_0x3caa99(0x1f3)][_0x3caa99(0x22f)](this[_0x3caa99(0x1f3)]['CAPABILITY_KEY'],helper[_0x3caa99(0x20f)](_0x382380,_0x266fe1[_0x1e2139])));break;case _0x26fd1f[_0x3caa99(0x20d)]:case _0x26fd1f['IMQdS']:this[_0x3caa99(0x1ea)]&&(_0x382380=this['edgeOptions_'][_0x3caa99(0x217)](this['edgeOptions_'][_0x3caa99(0x1d9)])||{},this[_0x3caa99(0x1ea)][_0x3caa99(0x22f)](this[_0x3caa99(0x1ea)][_0x3caa99(0x1d9)],helper[_0x3caa99(0x20f)](_0x382380,_0x266fe1[_0x1e2139])));break;case _0x26fd1f[_0x3caa99(0x1ff)]:case _0x26fd1f[_0x3caa99(0x22e)]:this[_0x3caa99(0x219)]&&(_0x382380=this[_0x3caa99(0x219)][_0x3caa99(0x217)](this['firefoxOptions_'][_0x3caa99(0x1d9)])||{},this[_0x3caa99(0x219)][_0x3caa99(0x22f)](this['firefoxOptions_']['CAPABILITY_KEY'],helper[_0x3caa99(0x20f)](_0x382380,_0x266fe1[_0x1e2139])));break;case _0x26fd1f[_0x3caa99(0x214)]:this[_0x3caa99(0x1f9)]&&(_0x382380=this[_0x3caa99(0x1f9)][_0x3caa99(0x217)](this['safariOptions_'][_0x3caa99(0x1d9)])||{},this[_0x3caa99(0x1f9)][_0x3caa99(0x22f)](this[_0x3caa99(0x1f9)][_0x3caa99(0x1d9)],helper[_0x3caa99(0x20f)](_0x382380,_0x266fe1[_0x1e2139])));break;case _0x26fd1f[_0x3caa99(0x1f2)]:case _0x26fd1f['CImTg']:this[_0x3caa99(0x1d8)]&&(_0x382380=this[_0x3caa99(0x1d8)][_0x3caa99(0x217)](this['ieOptions_'][_0x3caa99(0x1d9)])||{},this['ieOptions_'][_0x3caa99(0x22f)](this[_0x3caa99(0x1d8)][_0x3caa99(0x1d9)],helper[_0x3caa99(0x20f)](_0x382380,_0x266fe1[_0x1e2139])));break;}}}[_0x36dbe4(0x201)](){const _0x4a050d=_0x36dbe4,_0x35390b={'yvjwe':function(_0x55b6e4,_0x2f8526){const _0x239ab0=a29_0x3351;return _0x26fd1f[_0x239ab0(0x22d)](_0x55b6e4,_0x2f8526);},'glUeA':_0x26fd1f['Tjebz']};return logger[_0x4a050d(0x1e8)](_0x26fd1f[_0x4a050d(0x21e)]),this[_0x4a050d(0x1fd)](_0x4ecab1['capability']),Object['keys'](_0x4ecab1[_0x4a050d(0x220)])['forEach'](_0x24391c=>{const _0x3514e9=_0x4a050d,_0x4fdde4=this[_0x3514e9(0x22b)][_0x3514e9(0x217)](_0x24391c);_0x35390b[_0x3514e9(0x23c)](typeof _0x4fdde4,_0x35390b[_0x3514e9(0x207)])?this[_0x3514e9(0x22b)][_0x3514e9(0x22f)](_0x24391c,helper[_0x3514e9(0x20f)](_0x4fdde4,_0x4ecab1[_0x3514e9(0x220)][_0x24391c])):this['capabilities_'][_0x3514e9(0x22f)](_0x24391c,_0x4ecab1[_0x3514e9(0x220)][_0x24391c]);}),this;}[_0x36dbe4(0x231)](){const _0x356a89=_0x36dbe4,_0x2a3e3e={'PZSVN':function(_0xd2fd0f,_0x2e67db,_0x1f5be0){const _0x3d4232=a29_0x3351;return _0x26fd1f[_0x3d4232(0x20c)](_0xd2fd0f,_0x2e67db,_0x1f5be0);},'sfXOl':function(_0x275043,_0x54a940,_0x2c04a7){return _0x26fd1f['xFwTz'](_0x275043,_0x54a940,_0x2c04a7);}};if(helper[_0x356a89(0x211)]()){const _0x38abdb=_0x26fd1f['hppKf'][_0x356a89(0x1e5)]('|');let _0x1b6153=0x0;while(!![]){switch(_0x38abdb[_0x1b6153++]){case'0':this[_0x356a89(0x201)]();continue;case'1':_0x26fd1f[_0x356a89(0x226)](isAccessibilityAutomationSession)&&_0x26fd1f[_0x356a89(0x22a)](setAccessibilityCapabilities,_0x4ecab1);continue;case'2':if(helper[_0x356a89(0x21c)](_0x4ecab1[_0x356a89(0x212)][_0x356a89(0x215)]))this['agent_']=helper[_0x356a89(0x1d6)](_0x4ecab1[_0x356a89(0x212)][_0x356a89(0x215)]);else _0x4ecab1[_0x356a89(0x212)][_0x356a89(0x215)]&&(this[_0x356a89(0x21b)]=_0x4ecab1[_0x356a89(0x212)][_0x356a89(0x215)],logger['debug'](_0x356a89(0x237)+this[_0x356a89(0x21b)]));continue;case'3':this[_0x356a89(0x1cb)]();continue;case'4':globals[_0x356a89(0x216)](_0x26fd1f['SKHMc'])&&(!_0x26fd1f[_0x356a89(0x218)](setExtension,this,_0x4ecab1)&&globals['setGlobal'](_0x26fd1f[_0x356a89(0x208)],![]));continue;case'5':logger[_0x356a89(0x1e8)](_0x26fd1f['iRKGf']);continue;}break;}}const _0x3f80e4=super[_0x356a89(0x231)]();return _0x3f80e4[_0x356a89(0x1d3)][_0x356a89(0x227)](_0x45d239=>{const _0x27e8c9=_0x356a89;try{const _0x5e8e6b=_0x45d239[_0x27e8c9(0x1f1)][_0x27e8c9(0x217)](_0x26fd1f['Bezza']);_0x5e8e6b?(logger[_0x27e8c9(0x1e8)](_0x27e8c9(0x1d2)+_0x5e8e6b),hubAllocator[_0x27e8c9(0x1e0)](_0x5e8e6b),helper[_0x27e8c9(0x223)](_0x5e8e6b)):logger[_0x27e8c9(0x1e8)](_0x26fd1f[_0x27e8c9(0x228)]);}catch(_0x44946f){logger[_0x27e8c9(0x1e8)](_0x27e8c9(0x222)+_0x44946f);}}),_0x3f80e4[_0x356a89(0x233)]=0x0,_0x3f80e4[_0x356a89(0x227)]&&_0x3f80e4[_0x356a89(0x227)](_0x2b030d=>{const _0x4fa679=_0x356a89,_0x21c1eb=_0x26fd1f['SWnjE'][_0x4fa679(0x1e5)]('|');let _0x46c9c0=0x0;while(!![]){switch(_0x21c1eb[_0x46c9c0++]){case'0':helper[_0x4fa679(0x1ed)](_0x2b030d,_0x4ecab1);continue;case'1':_0x2b030d[_0x4fa679(0x1df)]=async()=>{const _0x2f7e73=_0x4fa679;return await _0x2a3e3e[_0x2f7e73(0x1f6)](getAccessibilityResultsSummary,_0x2b030d,global);};continue;case'2':helper[_0x4fa679(0x1cc)](_0x2b030d,_0x4ecab1);continue;case'3':_0x2b030d['getAccessibilityResults']=async()=>{const _0x3af86e=_0x4fa679;return await _0x2a3e3e[_0x3af86e(0x213)](getAccessibilityResults,_0x2b030d,global);};continue;case'4':_0x26fd1f[_0x4fa679(0x229)](overrideTakeScreenshot,_0x2b030d);continue;case'5':_0x26fd1f[_0x4fa679(0x20c)](overrideQuit,_0x2b030d,_0x3f80e4);continue;}break;}}),_0x3f80e4['getAccessibilityResultsSummary']=async()=>{const _0x2bb4c0=_0x356a89;return await _0x26fd1f[_0x2bb4c0(0x1d7)](getAccessibilityResultsSummary,_0x3f80e4,global);},_0x3f80e4['getAccessibilityResults']=async()=>{const _0x40d4af=_0x356a89;return await _0x26fd1f[_0x40d4af(0x20c)](getAccessibilityResults,_0x3f80e4,global);},_0x26fd1f[_0x356a89(0x22a)](overrideTakeScreenshot,_0x3f80e4),_0x26fd1f[_0x356a89(0x1dc)](overrideQuit,_0x3f80e4),helper['overrideGet'](_0x3f80e4,_0x4ecab1),helper[_0x356a89(0x1ed)](_0x3f80e4,_0x4ecab1),helper[_0x356a89(0x20a)](global[_0x356a89(0x23b)])&&(global['__driversArray']=[]),helper[_0x356a89(0x20a)](global[_0x356a89(0x1e1)])&&(global[_0x356a89(0x1e1)]=[]),global[_0x356a89(0x23b)]['push'](_0x3f80e4),global[_0x356a89(0x1d4)]=_0x3f80e4,_0x26fd1f['OvntK'](global[_0x356a89(0x1e1)],undefined)&&global[_0x356a89(0x1e1)][_0x356a89(0x1f7)](_0x3f80e4),_0x1bc369&&helper['isUndefined'](_0x1bc369['global'][_0x356a89(0x23b)])&&(_0x1bc369['global'][_0x356a89(0x23b)]=[]),_0x1bc369&&_0x26fd1f['Foynt'](_0x1bc369[_0x356a89(0x1e9)][_0x356a89(0x1e1)],undefined)&&(_0x1bc369[_0x356a89(0x1e9)][_0x356a89(0x1e1)][_0x356a89(0x1f7)](_0x3f80e4),_0x1bc369['global']['__driversArray']['push'](_0x3f80e4)),_0x3f80e4;}}return _0x5763fa[_0x36dbe4(0x210)]=_0x5763fa[_0x36dbe4(0x1e4)],_0x5763fa[_0x36dbe4(0x1e4)]=_0x54d544,_0x4d3d94[_0x36dbe4(0x230)]=_0xe67310,_0x5763fa;};module[a29_0x4d8474(0x1fe)][a29_0x4d8474(0x21a)]=modify;function a29_0x4331(){const _0x5e4ef3=['setLogLevel','PZSVN','push','/wd/hub','safariOptions_','fyJzR','55uNwPUz','bSGCd','__setBrowserOptions','exports','noRhY','optimalHubUrl','setCapabilities','requireSeleniumWebdriver','../../../helpers/patchHelpers','../../../hubAllocationMethods','1156758IuTcdf','newHubUrl','glUeA','SKHMc','ieOptions','isUndefined','SHybI','xFwTz','aZNCk','getHubUrl','mergeDeep','originalBuilder','isBrowserstackInfra','proxySettings','sfXOl','MFTdx','proxyUrl','getGlobal','get','vHNRz','firefoxOptions_','browserstackAgentObservability','proxy_','isPacProxy','6734412DfLLSQ','UguPT','12288ogThak','capability','Hub\x20url\x20set\x20to\x20','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','storeOptimalHubUrl','593828uHXPGA','UqOVa','IDxVP','then','ySxmX','lDfKL','lcIcq','capabilities_','../../../helpers/logger','fblgm','CmIpf','set','HttpClient','build','6Fgwkbr','quitCount_','logLevel','hJrtD','jfcIC','Proxy\x20set\x20to\x20','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','279176LtPTfu','../../../helpers/helper','__driversArray','yvjwe','setServer','overrideGet','url_','676779BzIATv','3405200rMfABL','../../../bin/utils/constants','Setting\x20Browserstack\x20capabilities','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','session_','__driver','winstonLogger','getHttpAgent','EMFUe','ieOptions_','CAPABILITY_KEY','browserStackLogLevel','KHdcP','QCLHF','1105VSrOWx','options_','getAccessibilityResultsSummary','updateHubUrl','__drivers','https://','/session','Builder','split','New\x20hub\x20url\x20set\x20to\x20','safari.options','debug','global','edgeOptions_','edgeOptions','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','overrideExecute','send','7mIsjpb','../../../helpers/accessibility-automation/helper','caps_','OepaQ','chromeOptions_','info'];a29_0x4331=function(){return _0x5e4ef3;};return a29_0x4331();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a30_0x1f2d(){const _0x121573=['../../../helpers/request-spy','11aTrxNX','2zIamzR','timeout','1395QhQEhu','../../../helpers/test-observability/utils','1757qjzhAO','2979104xCBDMs','642pGdqLM','restore','6235272HtkWzs','2792gdSjGp','673565oJBNEb','1812726EwUFuz','23906190mmOmzF','jSfhi'];a30_0x1f2d=function(){return _0x121573;};return a30_0x1f2d();}const a30_0x3ecc45=a30_0x3929;(function(_0x2e9f1e,_0x240f9f){const _0x1025f5=a30_0x3929,_0x3f1257=_0x2e9f1e();while(!![]){try{const _0x22997c=parseInt(_0x1025f5(0x78))/0x1+-parseInt(_0x1025f5(0x6e))/0x2*(-parseInt(_0x1025f5(0x69))/0x3)+parseInt(_0x1025f5(0x73))/0x4+-parseInt(_0x1025f5(0x70))/0x5*(-parseInt(_0x1025f5(0x74))/0x6)+-parseInt(_0x1025f5(0x72))/0x7*(-parseInt(_0x1025f5(0x77))/0x8)+parseInt(_0x1025f5(0x76))/0x9+parseInt(_0x1025f5(0x6a))/0xa*(-parseInt(_0x1025f5(0x6d))/0xb);if(_0x22997c===_0x240f9f)break;else _0x3f1257['push'](_0x3f1257['shift']());}catch(_0x4140c0){_0x3f1257['push'](_0x3f1257['shift']());}}}(a30_0x1f2d,0x6bf70));const requestSpy=require(a30_0x3ecc45(0x6c)),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require(a30_0x3ecc45(0x71));function a30_0x3929(_0x25b1a3,_0x297279){const _0x1f2da7=a30_0x1f2d();return a30_0x3929=function(_0x392918,_0x9f09f7){_0x392918=_0x392918-0x69;let _0x53d015=_0x1f2da7[_0x392918];return _0x53d015;},a30_0x3929(_0x25b1a3,_0x297279);}exports['mochaHooks']={'beforeAll'(){const _0x5426d3=a30_0x3ecc45,_0x183579={'jSfhi':function(_0xb61e1e){return _0xb61e1e();}},_0x1e9058='browserstack internal helper hook';_0x183579[_0x5426d3(0x6b)](addRequestSpy);},'afterAll'(){const _0x36d90e=a30_0x3ecc45,_0x28ecf2='browserstack internal helper hook';this[_0x36d90e(0x6f)](0xea60),requestSpy[_0x36d90e(0x75)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a31_0x205f58=a31_0x472a;(function(_0x5e1669,_0x152de7){const _0x50d6db=a31_0x472a,_0xc0403=_0x5e1669();while(!![]){try{const _0x3edb27=parseInt(_0x50d6db(0xd6))/0x1+parseInt(_0x50d6db(0xf2))/0x2*(-parseInt(_0x50d6db(0xce))/0x3)+parseInt(_0x50d6db(0x113))/0x4+-parseInt(_0x50d6db(0x112))/0x5+parseInt(_0x50d6db(0xde))/0x6*(-parseInt(_0x50d6db(0xe4))/0x7)+parseInt(_0x50d6db(0xc8))/0x8+parseInt(_0x50d6db(0x109))/0x9*(parseInt(_0x50d6db(0xe5))/0xa);if(_0x3edb27===_0x152de7)break;else _0xc0403['push'](_0xc0403['shift']());}catch(_0x27e639){_0xc0403['push'](_0xc0403['shift']());}}}(a31_0x1956,0xc022b));const {v4:uuidv4}=require('uuid'),{name,version}=require(a31_0x205f58(0x101)),logPatcher=require(a31_0x205f58(0xd9)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook}=require(a31_0x205f58(0x11b)),{consoleHolder}=require(a31_0x205f58(0x114)),{getPlatformVersion}=require('../../../helpers/helper'),{shouldProcessEventForTesthub}=require(a31_0x205f58(0xf1));function a31_0x472a(_0x45dec3,_0x53d80d){const _0x195686=a31_0x1956();return a31_0x472a=function(_0x472a76,_0x42cf06){_0x472a76=_0x472a76-0xc3;let _0x1c604b=_0x195686[_0x472a76];return _0x1c604b;},a31_0x472a(_0x45dec3,_0x53d80d);}console={},Object[a31_0x205f58(0xf3)](consoleHolder)[a31_0x205f58(0xf4)](_0xb7ef86=>{console[_0xb7ef86]=(..._0x809865)=>{BSTestOpsPatcher[_0xb7ef86](..._0x809865);};}),exports[a31_0x205f58(0xf0)]=()=>{const _0x249ee5=a31_0x205f58,_0x17af7f={'IwKQI':_0x249ee5(0xd4),'ZLyNq':function(_0x15bcb8){return _0x15bcb8();}};return{'ci':_0x17af7f['IwKQI'],'key':_0x17af7f[_0x249ee5(0xef)](uuidv4),'version':version,'collector':'js-'+name};},exports['getHookDetails']=_0x2ff7bd=>{const _0x2d6aa7=a31_0x205f58,_0x44c206={};_0x44c206[_0x2d6aa7(0x10e)]=function(_0x53b5f1,_0x54d6dc){return _0x53b5f1!==_0x54d6dc;},_0x44c206[_0x2d6aa7(0xe3)]='string',_0x44c206[_0x2d6aa7(0xdb)]=_0x2d6aa7(0xc6),_0x44c206['rKFlh']=function(_0x4ccc3d,_0x449ea1){return _0x4ccc3d!==_0x449ea1;},_0x44c206[_0x2d6aa7(0xcb)]=_0x2d6aa7(0x110);const _0x369be6=_0x44c206;if(!_0x2ff7bd||_0x369be6['HzwXm'](typeof _0x2ff7bd,_0x369be6[_0x2d6aa7(0xe3)]))return[null,null];if(_0x369be6[_0x2d6aa7(0x10e)](_0x2ff7bd['indexOf'](_0x369be6[_0x2d6aa7(0xdb)]),-0x1)){const _0x160d7b=_0x2ff7bd[_0x2d6aa7(0x10c)](_0x369be6['oKTLu']);return[_0x160d7b[0x0][_0x2d6aa7(0x106)](0x0,-0x1)[_0x2d6aa7(0x10c)]('\x22')[0x1],_0x160d7b[0x1]['substring'](0x1)];}else{if(_0x369be6[_0x2d6aa7(0xdf)](_0x2ff7bd['indexOf'](_0x369be6[_0x2d6aa7(0xcb)]),-0x1)){const _0x150ebe=_0x2ff7bd[_0x2d6aa7(0x10c)](_0x369be6[_0x2d6aa7(0xcb)]);return[_0x150ebe[0x0]['slice'](0x0,-0x1)['split']('\x22')[0x1],_0x2ff7bd];}}return[null,null];},exports['getHooksForTest']=_0x232a8c=>{const _0xc70c33=a31_0x205f58,_0xa079ba={'qEieZ':function(_0x39200b,_0x35ddc7){return _0x39200b(_0x35ddc7);},'sVbzV':_0xc70c33(0xfd),'ygnnG':_0xc70c33(0xda),'UZwnx':_0xc70c33(0xe1),'TRqxU':_0xc70c33(0xca)};if(!_0x232a8c||!_0x232a8c['parent'])return[];const _0x2f3603=[];return[_0xa079ba['sVbzV'],_0xa079ba['ygnnG'],_0xa079ba[_0xc70c33(0x10b)],_0xa079ba[_0xc70c33(0x103)]][_0xc70c33(0xf4)](_0x53e102=>{const _0x38672c=_0xc70c33,_0x5599e2={'gnjtB':function(_0x157974,_0x7788a6){return _0xa079ba['qEieZ'](_0x157974,_0x7788a6);}},_0x1de03e=_0x232a8c[_0x38672c(0xd8)][_0x53e102]||[];_0x1de03e[_0x38672c(0xf4)](_0x5f4ff4=>{const _0x1bc582=_0x38672c;_0x5f4ff4[_0x1bc582(0xfe)]&&!_0x5599e2['gnjtB'](isInternalHook,_0x5f4ff4['fn'])&&_0x2f3603[_0x1bc582(0xd7)](_0x5f4ff4[_0x1bc582(0xfe)]);});}),[..._0x2f3603,...exports[_0xc70c33(0x115)](_0x232a8c[_0xc70c33(0xd8)])];},exports[a31_0x205f58(0x117)]=_0x6ae14d=>{const _0x870b9d=a31_0x205f58,_0x47ce46={'XEUeu':function(_0x3483ba){return _0x3483ba();},'RSHTY':function(_0x46531f,_0x17f9f1){return _0x46531f===_0x17f9f1;},'ACnfe':_0x870b9d(0xca),'EvfHz':_0x870b9d(0xfd),'pBJrE':'_afterAll','GGoUr':'_beforeEach'};if(!_0x6ae14d||!_0x6ae14d[_0x870b9d(0xd8)])return;[_0x47ce46[_0x870b9d(0xc5)],_0x47ce46[_0x870b9d(0xfa)],_0x47ce46[_0x870b9d(0x10d)],_0x47ce46[_0x870b9d(0x11c)]][_0x870b9d(0xf4)](_0x1a8233=>{const _0x2b70e6=_0x870b9d,_0x540749={'qPVXh':function(_0x1a5c24){const _0x3bc9da=a31_0x472a;return _0x47ce46[_0x3bc9da(0xe2)](_0x1a5c24);},'mrCWg':function(_0x32e46d,_0xcc8ad5){return _0x47ce46['RSHTY'](_0x32e46d,_0xcc8ad5);},'yuXZb':_0x47ce46['ACnfe']},_0x364b6f=_0x6ae14d[_0x2b70e6(0xd8)][_0x1a8233]||[];_0x364b6f[_0x2b70e6(0xf4)](_0x28f33d=>{const _0x56c6fc=_0x2b70e6;if(!_0x28f33d[_0x56c6fc(0xfe)])_0x28f33d[_0x56c6fc(0xfe)]=_0x540749[_0x56c6fc(0x104)](uuidv4);else _0x28f33d[_0x56c6fc(0xc7)]&&_0x540749[_0x56c6fc(0xee)](_0x1a8233,_0x540749[_0x56c6fc(0x108)])&&(_0x28f33d[_0x56c6fc(0xfe)]=_0x540749[_0x56c6fc(0x104)](uuidv4),delete _0x28f33d[_0x56c6fc(0xc7)]);});}),exports[_0x870b9d(0x117)](_0x6ae14d[_0x870b9d(0xd8)]);},exports[a31_0x205f58(0xe7)]=async(_0x4e2ac3,_0x4b396f)=>{const _0x42df49=a31_0x205f58,_0x459829={'HujGr':function(_0x227e72){return _0x227e72();},'dHBxX':function(_0x3af526,_0x86efef){return _0x3af526===_0x86efef;},'YHErG':'browserstack','HZqXm':'appium:app','CgKSA':_0x42df49(0x10a),'VQwGi':_0x42df49(0x119),'eRDBv':_0x42df49(0xd1),'KgQpY':function(_0x32a1b4,_0x2b29ad){return _0x32a1b4(_0x2b29ad);},'FmHmB':_0x42df49(0xd2),'cnAbZ':'TEST_PLATFORM','bHsgO':function(_0x485186,_0xe65b8b){return _0x485186(_0xe65b8b);}};try{if(!_0x459829[_0x42df49(0xe0)](shouldProcessEventForTesthub))return;const _0xc9f570=await _0x4e2ac3[_0x42df49(0x105)](),_0xb39c8b=await _0x4e2ac3[_0x42df49(0xe8)](),_0x3762c2={},_0x5f2a77=Object[_0x42df49(0xd3)](_0xb39c8b[_0x42df49(0x105)]()[_0x42df49(0xc4)]),_0x579e72={'product':_0x459829[_0x42df49(0x11d)](global[_0x42df49(0x111)],_0x459829[_0x42df49(0xfc)])?_0x5f2a77[_0x459829['HZqXm']]||_0x5f2a77[_0x459829[_0x42df49(0xcf)]]?_0x459829[_0x42df49(0xe9)]:_0x459829[_0x42df49(0xd5)]:null,'capabilities':_0x5f2a77,'platform':_0xc9f570[_0x42df49(0xc9)](),'platform_version':_0x459829[_0x42df49(0xcc)](getPlatformVersion,_0x459829['dHBxX'](global[_0x42df49(0x111)],_0x459829[_0x42df49(0xfc)])),'browser':_0xc9f570['getBrowserName'](),'browser_version':_0xc9f570[_0x42df49(0xcd)](),'session_id':_0xb39c8b[_0x42df49(0xdc)]()};global['__cloud_provider___']?_0x3762c2[global[_0x42df49(0x111)]]=_0x579e72:_0x3762c2[_0x459829[_0x42df49(0xf8)]]=_0x579e72,process['emit'](_0x42df49(0x10f)+process[_0x42df49(0x118)],{'timestamp':new Date()[_0x42df49(0x100)](),'level':null,'message':null,'kind':_0x459829[_0x42df49(0xed)],'http_response':_0x3762c2,'uuid':_0x4b396f});}catch(_0xccaef3){_0x459829[_0x42df49(0xeb)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0xccaef3);}},exports[a31_0x205f58(0xff)]=_0x15e620=>{const _0x5d875a=a31_0x205f58,_0x9ea391={};_0x9ea391[_0x5d875a(0xf7)]=function(_0x1af5dc,_0x5c48f9){return _0x1af5dc!==_0x5c48f9;},_0x9ea391[_0x5d875a(0xfb)]=_0x5d875a(0x110),_0x9ea391['JhAIA']=function(_0x1c605c,_0x5bfdbf){return _0x1c605c!==_0x5bfdbf;},_0x9ea391[_0x5d875a(0xd0)]=_0x5d875a(0x107),_0x9ea391['ChKpt']=function(_0x2fea7f,_0x40b4c1){return _0x2fea7f!==_0x40b4c1;},_0x9ea391['MjuLb']=_0x5d875a(0xea);const _0x41bc55=_0x9ea391,_0x4074f5=_0x15e620['suites'][_0x5d875a(0xec)]((_0x1956b3,_0x2eac7f)=>{const _0x4e6d21=_0x5d875a,_0x64f86=exports[_0x4e6d21(0xff)](_0x2eac7f);return _0x64f86&&(_0x1956b3=_0x1956b3[_0x4e6d21(0xe6)](_0x64f86)),_0x1956b3;},[]),_0x3a8be3=_0x15e620[_0x5d875a(0xdd)][_0x5d875a(0xc3)](_0x6b6229=>{const _0x23f5ae=_0x5d875a,_0x3f296f=_0x41bc55[_0x23f5ae(0xf7)](_0x6b6229[_0x23f5ae(0xf9)],_0x41bc55['qNjcJ'])&&!_0x6b6229[_0x23f5ae(0xc7)]&&_0x41bc55[_0x23f5ae(0x116)](_0x6b6229[_0x23f5ae(0x11a)],_0x41bc55[_0x23f5ae(0xd0)])&&_0x41bc55[_0x23f5ae(0xf6)](_0x6b6229[_0x23f5ae(0x11a)],_0x41bc55[_0x23f5ae(0x102)])&&!_0x6b6229[_0x23f5ae(0xf5)];return _0x3f296f;});return _0x3a8be3['concat'](_0x4074f5);};function a31_0x1956(){const _0x4a18d0=['state','../../../helpers/test-observability/utils','ACnfe','dHBxX','filter','map_','EvfHz','hook:','markedStatus','11179160ZutSEj','getPlatform','_afterEach','uTnSV','KgQpY','getBrowserVersion','2450061dWvFAf','CgKSA','CQVfE','automate','unknown_grid','fromEntries','generic','eRDBv','604111IyiDxQ','push','parent','../../utils/logPatcher','_afterAll','oKTLu','toJSON','tests','4127034mSaCtq','rKFlh','HujGr','_beforeEach','XEUeu','MuESx','14IyTnfS','10qRCHPg','concat','sendPlatformDetails','getSession','VQwGi','failed','bHsgO','reduce','cnAbZ','mrCWg','ZLyNq','getTestEnv','../../../helpers/testhub/utils','2OYUrmG','keys','forEach','pending','ChKpt','pfEpu','FmHmB','type','pBJrE','qNjcJ','YHErG','_beforeAll','hookAnalyticsId','getHookSkippedTests','toISOString','../../../../package.json','MjuLb','TRqxU','qPVXh','getCapabilities','slice','passed','yuXZb','13882815zbucFz','app','UZwnx','split','GGoUr','HzwXm','bs:addPlatformDetails:','hook','__cloud_provider___','3727175etZToQ','722984HelxAA','../../../helpers/test-observability/constants','getHooksForTest','JhAIA','mapTestHooks','pid','app-automate'];a31_0x1956=function(){return _0x4a18d0;};return a31_0x1956();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_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
|
+
const a32_0x5ef54e=a32_0x146b;(function(_0x15e828,_0x598480){const _0xc423a3=a32_0x146b,_0x557c59=_0x15e828();while(!![]){try{const _0x582dc6=parseInt(_0xc423a3(0x20f))/0x1+-parseInt(_0xc423a3(0x1dc))/0x2+-parseInt(_0xc423a3(0x21e))/0x3+parseInt(_0xc423a3(0x221))/0x4+parseInt(_0xc423a3(0x1cf))/0x5+-parseInt(_0xc423a3(0x1e9))/0x6+parseInt(_0xc423a3(0x1f3))/0x7*(parseInt(_0xc423a3(0x1d8))/0x8);if(_0x582dc6===_0x598480)break;else _0x557c59['push'](_0x557c59['shift']());}catch(_0x59926e){_0x557c59['push'](_0x557c59['shift']());}}}(a32_0x3a66,0x38cd2));const util=require(a32_0x5ef54e(0x219)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x5ef54e(0x1d5)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x5ef54e(0x1cb)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x5ef54e(0x208)),PerformanceTester=require(a32_0x5ef54e(0x207)),scripts=require(a32_0x5ef54e(0x23f)),globals=require('../../helpers/globals'),logger=require(a32_0x5ef54e(0x22b))[a32_0x5ef54e(0x224)],{shouldProcessEventForTesthub}=require(a32_0x5ef54e(0x21c)),testHubConstants=require(a32_0x5ef54e(0x230));function a32_0x146b(_0x3e8ca9,_0x2fdef7){const _0x3a6623=a32_0x3a66();return a32_0x146b=function(_0x146b3e,_0x14cba9){_0x146b3e=_0x146b3e-0x1ca;let _0x30b57f=_0x3a6623[_0x146b3e];return _0x30b57f;},a32_0x146b(_0x3e8ca9,_0x2fdef7);}exports[a32_0x5ef54e(0x204)]={'beforeAll'(){const _0x5ada1a=a32_0x5ef54e,_0x300712={'vGJpY':function(_0x3d208a,_0x4a6c31,_0x465940,_0x3d04d4){return _0x3d208a(_0x4a6c31,_0x465940,_0x3d04d4);},'CaNsl':_0x5ada1a(0x1e8),'TQjgo':_0x5ada1a(0x1e1),'Vufpc':function(_0x3f1b7c,_0x3b4a83,_0x4845d6){return _0x3f1b7c(_0x3b4a83,_0x4845d6);},'CkjAT':_0x5ada1a(0x20e),'qBCmL':function(_0x17260c){return _0x17260c();},'kPvnG':function(_0x4af5cf,_0x5665c0,_0x16ab81){return _0x4af5cf(_0x5665c0,_0x16ab81);}};PerformanceTester['startMonitoring']();const _0x2bbe68='browserstack internal helper hook';global[_0x5ada1a(0x213)]=[],global[_0x5ada1a(0x24a)]=![],global[_0x5ada1a(0x238)]=async()=>{const _0x39a38c=_0x5ada1a;let _0x269dde=![];try{await global[_0x39a38c(0x21a)][0x0][_0x39a38c(0x205)],_0x269dde=!![],global[_0x39a38c(0x24a)]?await _0x300712[_0x39a38c(0x211)](markSessionStatus,global[_0x39a38c(0x21a)][0x0],_0x300712[_0x39a38c(0x1fc)],global[_0x39a38c(0x213)][_0x39a38c(0x227)](_0x300712[_0x39a38c(0x1e4)])):await _0x300712[_0x39a38c(0x229)](markSessionStatus,global[_0x39a38c(0x21a)][0x0],_0x300712['CkjAT']);}catch(_0x5b383a){}global[_0x39a38c(0x213)]=[],global[_0x39a38c(0x24a)]=![];if(_0x269dde)try{try{_0x300712[_0x39a38c(0x1d4)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x300712[_0x39a38c(0x232)](sendPlatformDetails,global['__drivers'][0x0],this[_0x39a38c(0x1cd)]?this[_0x39a38c(0x1cd)][_0x39a38c(0x23a)]:null));}catch{}await global[_0x39a38c(0x21a)][0x0][_0x39a38c(0x233)]();}catch(_0x33543c){}};},'beforeEach'(_0x46eede){const _0x7ae1cb=a32_0x5ef54e,_0x5aa815={'hbroF':function(_0x42fe63,_0x469b70){return _0x42fe63>_0x469b70;},'oASfZ':_0x7ae1cb(0x1f0),'eFTBZ':function(_0x1d3883,_0x20d90b,_0x3b816c){return _0x1d3883(_0x20d90b,_0x3b816c);},'wUxqH':_0x7ae1cb(0x1e3),'YEHiH':function(_0x1a1455){return _0x1a1455();},'qaWKq':_0x7ae1cb(0x20c),'Huasd':function(_0x14c20f,_0x62e3ea){return _0x14c20f===_0x62e3ea;},'KAIOV':_0x7ae1cb(0x249),'pKJJF':function(_0x18e9fd,_0x5d18e7){return _0x18e9fd===_0x5d18e7;},'LAsbv':'https:','GbunN':_0x7ae1cb(0x246),'iYibb':_0x7ae1cb(0x1ea),'XATDN':function(_0x1348b4){return _0x1348b4();}};new Promise(async _0x443a82=>{const _0x57d940=_0x7ae1cb,_0x1fa1d4='browserstack internal helper hook';let _0x15c022=!![];try{_0x5aa815[_0x57d940(0x235)](global['__drivers']['length'],0x1)&&(await global['driverCleanup'](),global[_0x57d940(0x21a)][_0x57d940(0x237)]()),_0x5aa815[_0x57d940(0x235)](global[_0x57d940(0x21a)][0x0][_0x57d940(0x1d9)],0x0)&&(_0x15c022=![],await global[_0x57d940(0x238)]());}catch{}try{Array[_0x57d940(0x210)](global['__drivers'])&&global[_0x57d940(0x21a)][0x0]&&(global[_0x57d940(0x21a)][0x0][_0x57d940(0x241)]=this[_0x57d940(0x1cd)][_0x57d940(0x1d6)]()[_0x57d940(0x227)](_0x5aa815[_0x57d940(0x248)])),global[_0x57d940(0x241)]=this[_0x57d940(0x1cd)][_0x57d940(0x1d6)]()[_0x57d940(0x227)](_0x5aa815[_0x57d940(0x248)]);}catch(_0xc109ff){logger[_0x57d940(0x1fe)](_0x57d940(0x22c)+_0xc109ff);}this[_0x57d940(0x1cd)][_0x57d940(0x200)]=_0x5aa815[_0x57d940(0x22d)](shouldScanTestForAccessibility,this[_0x57d940(0x1cd)][_0x57d940(0x1d6)](),!![]),globals['setGlobal'](_0x5aa815[_0x57d940(0x1f8)],this[_0x57d940(0x1cd)]['shouldScanTestForAccessibility']),this['currentTest']['accessibilityScanStarted']=!![];if(_0x5aa815[_0x57d940(0x222)](isAccessibilityAutomationSession)&&_0x15c022&&Array[_0x57d940(0x210)](global[_0x57d940(0x21a)])&&_0x5aa815['hbroF'](global[_0x57d940(0x21a)]['length'],0x0)&&globals[_0x57d940(0x1f1)](_0x5aa815[_0x57d940(0x22e)]))try{const _0x4bf9a0=await global['__drivers'][0x0][_0x57d940(0x205)];if(_0x4bf9a0){let _0x30a6a9=!![];const _0x3233c5=await global[_0x57d940(0x21a)][0x0][_0x57d940(0x1f5)]();let _0x46489e;try{_0x46489e=new URL(_0x3233c5);}catch(_0x592454){_0x30a6a9=![];}_0x30a6a9=_0x5aa815[_0x57d940(0x1d1)](_0x46489e[_0x57d940(0x20a)],_0x5aa815[_0x57d940(0x1f9)])||_0x5aa815[_0x57d940(0x1ce)](_0x46489e['protocol'],_0x5aa815[_0x57d940(0x1fb)]),_0x30a6a9&&(this[_0x57d940(0x1cd)][_0x57d940(0x200)]&&logger['info'](_0x5aa815[_0x57d940(0x1fd)])),this[_0x57d940(0x1cd)]['accessibilityScanStarted']=this[_0x57d940(0x1cd)][_0x57d940(0x200)],this['currentTest']['shouldScanTestForAccessibility']&&logger[_0x57d940(0x231)](_0x5aa815[_0x57d940(0x1e6)]);}}catch(_0x326804){logger[_0x57d940(0x22f)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x57d940(0x21f)](_0x326804));}_0x5aa815[_0x57d940(0x1f7)](_0x443a82);})['then'](_0x46eede);},'afterEach'(_0x2304cb){const _0x5839e6=a32_0x5ef54e,_0x4038f2={'eclvp':function(_0x58111e,_0x2e17a3){return _0x58111e>_0x2e17a3;},'tjTvX':function(_0x53b07f,_0x277a96){return _0x53b07f===_0x277a96;},'dtGRo':'testcase','zrsEH':function(_0x310fa3,_0x489f23){return _0x310fa3>_0x489f23;},'NAMYG':_0x5839e6(0x20d),'BIGrg':function(_0x24ebcd,_0x1d9d9d,_0x109e65,_0x4d28e8){return _0x24ebcd(_0x1d9d9d,_0x109e65,_0x4d28e8);},'BGNvl':_0x5839e6(0x1f0),'LZkPx':function(_0x25533b,_0x1b50fd){return _0x25533b!==_0x1b50fd;},'eZfvE':_0x5839e6(0x20e),'RozXu':function(_0x4895b4,_0x4a0b8c,_0x4c0744){return _0x4895b4(_0x4a0b8c,_0x4c0744);},'vPIkI':function(_0x3fa48d,_0x4d164d){return _0x3fa48d+_0x4d164d;},'jZHZR':_0x5839e6(0x1ff),'EWsyp':_0x5839e6(0x22f),'hEzBV':function(_0x20bd39,_0x532907,_0x204dc4){return _0x20bd39(_0x532907,_0x204dc4);},'yXYGh':_0x5839e6(0x209),'GpCAv':'info','OrgqV':_0x5839e6(0x20c),'rvkAe':_0x5839e6(0x1e3),'GaEtA':_0x5839e6(0x1db),'nkSRA':_0x5839e6(0x226),'nwVXX':_0x5839e6(0x23e),'hTffS':function(_0xa69a49){return _0xa69a49();},'waCTL':function(_0x36e31b,_0x3623ee,_0x4ad65b){return _0x36e31b(_0x3623ee,_0x4ad65b);},'keufA':function(_0x41ad78){return _0x41ad78();},'TUPVD':_0x5839e6(0x1fe),'PQoEj':function(_0x702039,_0x513243){return _0x702039>_0x513243;}},_0x42617b='browserstack internal helper hook';this[_0x5839e6(0x240)](0xfde8);const _0x2b6253=async(_0x2c629c,_0x369822)=>{const _0x58c439=_0x5839e6;await global[_0x58c439(0x21a)][0x0][_0x58c439(0x1dd)](_0x58c439(0x202)+_0x2c629c+_0x58c439(0x212)+_0x369822+_0x58c439(0x201));};new Promise(async _0x33e945=>{const _0x231ff0=_0x5839e6;try{_0x4038f2[_0x231ff0(0x1d7)](global['__drivers'][_0x231ff0(0x218)],0x1)&&(await global[_0x231ff0(0x238)](),global[_0x231ff0(0x21a)][_0x231ff0(0x237)](),global[_0x231ff0(0x213)]=[],global[_0x231ff0(0x24a)]=![]);try{if(global[_0x231ff0(0x216)]&&_0x4038f2[_0x231ff0(0x1e0)](global[_0x231ff0(0x1f2)],_0x4038f2['dtGRo'])&&global[_0x231ff0(0x21a)][0x0]){const _0x27bb06=_0x4038f2[_0x231ff0(0x1eb)](global[_0x231ff0(0x24b)][_0x231ff0(0x218)],0x0)?!!global[_0x231ff0(0x24b)][0x0][_0x231ff0(0x244)]||!!global[_0x231ff0(0x24b)][0x0][_0x4038f2[_0x231ff0(0x23b)]]:![],_0x311742={};_0x311742[_0x231ff0(0x244)]=_0x27bb06,await _0x4038f2[_0x231ff0(0x206)](percyAutoCapture,global[_0x231ff0(0x21a)][0x0],_0x4038f2[_0x231ff0(0x228)],_0x311742);}}catch(_0x5eaa8f){}!global['__skipSessionName']&&(await global[_0x231ff0(0x21a)][0x0][_0x231ff0(0x1dd)](_0x231ff0(0x214)+JSON[_0x231ff0(0x1e5)](this[_0x231ff0(0x1cd)]['titlePath']()['join'](_0x4038f2[_0x231ff0(0x24d)]))+'}}'),global[_0x231ff0(0x21a)][0x0]['sessionNameSet__']=!![]);const _0x58b924=_0x4038f2[_0x231ff0(0x236)](this['currentTest']['state'],_0x4038f2[_0x231ff0(0x20b)]);_0x58b924?(global[_0x231ff0(0x24a)]=!![],global['__error_messages__'][_0x231ff0(0x21d)](this[_0x231ff0(0x1cd)]['err'][_0x231ff0(0x1cc)]),await _0x4038f2[_0x231ff0(0x1ee)](_0x2b6253,JSON['stringify'](_0x4038f2[_0x231ff0(0x1d0)](_0x4038f2[_0x231ff0(0x1d3)],this[_0x231ff0(0x1cd)][_0x231ff0(0x1df)][_0x231ff0(0x1cc)])),_0x4038f2[_0x231ff0(0x1e2)])):await _0x4038f2['hEzBV'](_0x2b6253,JSON[_0x231ff0(0x1e5)](_0x4038f2['yXYGh']),_0x4038f2[_0x231ff0(0x215)]);}catch(_0x181168){}try{if(this[_0x231ff0(0x1cd)]['accessibilityScanStarted']&&globals['getGlobal'](_0x4038f2[_0x231ff0(0x203)])&&globals['getGlobal'](_0x4038f2[_0x231ff0(0x247)])){logger[_0x231ff0(0x231)](_0x4038f2[_0x231ff0(0x1ec)]);const _0x199d03={};_0x199d03['thTestRunUuid']=this[_0x231ff0(0x1cd)][_0x231ff0(0x23a)],_0x199d03[_0x231ff0(0x223)]=process[_0x231ff0(0x225)][testHubConstants['ENV_VAR'][_0x231ff0(0x234)]],_0x199d03[_0x231ff0(0x1f6)]=process['env'][testHubConstants[_0x231ff0(0x1de)][_0x231ff0(0x23c)]];const _0x1be865=_0x199d03;logger[_0x231ff0(0x1fe)](_0x231ff0(0x23d)+JSON[_0x231ff0(0x1e5)](_0x1be865)),logger[_0x231ff0(0x1fe)](_0x4038f2[_0x231ff0(0x245)]),logger[_0x231ff0(0x1fe)](util[_0x231ff0(0x21f)](await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x231ff0(0x1fa)],{'method':global[_0x231ff0(0x241)]}))),await global[_0x231ff0(0x21a)][0x0][_0x231ff0(0x1d2)](scripts[_0x231ff0(0x242)],_0x1be865),logger[_0x231ff0(0x231)](_0x4038f2[_0x231ff0(0x1ca)]);}}catch(_0x37ea44){logger[_0x231ff0(0x22f)](_0x231ff0(0x217)+this[_0x231ff0(0x1cd)][_0x231ff0(0x1d6)]()+_0x231ff0(0x243),_0x37ea44);}try{try{if(_0x4038f2[_0x231ff0(0x22a)](shouldProcessEventForTesthub)){global[_0x231ff0(0x21a)][0x0]&&await _0x4038f2['waCTL'](sendPlatformDetails,global[_0x231ff0(0x21a)][0x0],this[_0x231ff0(0x1cd)]?this[_0x231ff0(0x1cd)][_0x231ff0(0x23a)]:null);if(_0x4038f2['keufA'](isBrowserstackInfra)){const _0x37b290=_0x231ff0(0x239)+Date[_0x231ff0(0x24c)]();await _0x4038f2[_0x231ff0(0x1e7)](_0x2b6253,JSON['stringify'](_0x37b290),_0x4038f2[_0x231ff0(0x1f4)]);}}}catch{}_0x4038f2[_0x231ff0(0x220)](global[_0x231ff0(0x21a)][0x0][_0x231ff0(0x1d9)],0x0)&&await global[_0x231ff0(0x238)]();}catch(_0x579824){}_0x4038f2[_0x231ff0(0x1ed)](_0x33e945);})[_0x5839e6(0x1da)](()=>_0x2304cb());},'afterAll'(_0x5ecc9b){const _0x15db40=a32_0x5ef54e,_0x23a6f3={'gFUuA':function(_0x526881){return _0x526881();}},_0xfa93a0='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x23e595=>{const _0x303ddb=a32_0x146b;PerformanceTester[_0x303ddb(0x1ef)](),await global[_0x303ddb(0x238)](),_0x23a6f3[_0x303ddb(0x21b)](_0x23e595);})[_0x15db40(0x1da)](()=>_0x5ecc9b());}};function a32_0x3a66(){const _0x148767=['PQoEj','305760mHwdxA','YEHiH','thBuildUuid','winstonLogger','env','Performing\x20scan\x20before\x20saving\x20results','join','dtGRo','Vufpc','hTffS','../../helpers/logger','Failed\x20to\x20store\x20session\x20name:\x20','eFTBZ','qaWKq','error','../../helpers/testhub/constants','info','kPvnG','initQuit','BROWSERSTACK_TESTHUB_UUID','hbroF','LZkPx','shift','driverCleanup','ObservabilitySync:','testAnalyticsId','NAMYG','BROWSERSTACK_TESTHUB_JWT','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','../../helpers/accessibility-automation/scripts','timeout','browserstackSessionName','saveTestResults','.\x20Error\x20:','app','nkSRA','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','rvkAe','oASfZ','http:','__sessionFailed','capabilities','now','BGNvl','nwVXX','./test-observability/mochaUtils','message','currentTest','pKJJF','33795stnGch','vPIkI','Huasd','executeAsyncScript','jZHZR','qBCmL','../../helpers/accessibility-automation/helper','titlePath','eclvp','21272EmCGfd','quitCount_','then','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','66366wzhOlM','executeScript','ENV_VAR','err','tjTvX','\x20|\x20','EWsyp','bstackA11yShouldScan','TQjgo','stringify','iYibb','waCTL','failed','2646492IEHZfJ','Automate\x20test\x20case\x20execution\x20has\x20started.','zrsEH','GaEtA','keufA','RozXu','stopMonitoring','\x20-\x20','getGlobal','percyCaptureMode','1085HoWWxW','TUPVD','getCurrentUrl','thJwtToken','XATDN','wUxqH','KAIOV','performScan','LAsbv','CaNsl','GbunN','debug','Failed:\x20','shouldScanTestForAccessibility','\x22}}','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','OrgqV','mochaHooks','session_','BIGrg','../../helpers/performance-tester','../../helpers/helper','Passed','protocol','eZfvE','isAccessibilityPlatform','appium:app','passed','435308jwxPhE','isArray','vGJpY',',\x22level\x22:\x20\x22','__error_messages__','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','GpCAv','percy','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','length','util','__drivers','gFUuA','../../helpers/testhub/utils','push','671187LAQBmJ','format'];a32_0x3a66=function(){return _0x148767;};return a32_0x3a66();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';function a33_0x1762(){const _0x38f024=['modifyBrowserStackCaps','16834332MnGMNy','HjMVm','wuMHX','port','trim','xyPaT','MyzTK','child_process','--env','platforms','inherit','split','slice','test_settings','JbHCT','Jxddh','549178tyiHzQ','push','grMKx','2276547XDDAMO','bIBCk','modifyBrowserStackW3CCaps','unlinkSync','22532LPJdOi','nightwatch.conf.js','bEYFN','795EgsgPA','findIndex','1810xFCvLS','info','nightwatch.json','filter','writeFileSync','nightwatch.cmd','mergeDeep','platform','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','nightwatch','desiredCapabilities','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','wkJrw','stringify','host','nightwatch-browserstack.json','close','2047362Bkoypq','useW3C','VgKmj','map','wOMPE','MfKXW','splice','2439848PKbVle','11axGbRH','existsSync','tsECv','../../helpers/logger','20RHVEXp','2SFKtzZ','IEIxl','child\x20process\x20exited\x20with\x20code\x20','isUndefined','3492pUaYZe','config','Deleting\x20','exports','--config','../utils/constants','uSWso','forEach','BNetX','join','selenium','now','cwd','ZpIRt','tHuIa','env'];a33_0x1762=function(){return _0x38f024;};return a33_0x1762();}function a33_0x209a(_0x4d616a,_0x41a2e4){const _0x17623e=a33_0x1762();return a33_0x209a=function(_0x209a3a,_0xbc891d){_0x209a3a=_0x209a3a-0xd5;let _0x12051a=_0x17623e[_0x209a3a];return _0x12051a;},a33_0x209a(_0x4d616a,_0x41a2e4);}const a33_0x246b89=a33_0x209a;(function(_0x12725a,_0x392a65){const _0x4e8285=a33_0x209a,_0x177085=_0x12725a();while(!![]){try{const _0x201d25=-parseInt(_0x4e8285(0xe9))/0x1*(parseInt(_0x4e8285(0x10e))/0x2)+parseInt(_0x4e8285(0x118))/0x3*(-parseInt(_0x4e8285(0x115))/0x4)+-parseInt(_0x4e8285(0xe8))/0x5*(-parseInt(_0x4e8285(0xdc))/0x6)+parseInt(_0x4e8285(0x111))/0x7+-parseInt(_0x4e8285(0xe3))/0x8+-parseInt(_0x4e8285(0xed))/0x9*(-parseInt(_0x4e8285(0x11a))/0xa)+-parseInt(_0x4e8285(0xe4))/0xb*(-parseInt(_0x4e8285(0xfe))/0xc);if(_0x201d25===_0x392a65)break;else _0x177085['push'](_0x177085['shift']());}catch(_0x186cfb){_0x177085['push'](_0x177085['shift']());}}}(a33_0x1762,0xc74ba));const fs=require('fs'),path=require('path'),{spawn}=require(a33_0x246b89(0x105)),logger=require(a33_0x246b89(0xe7))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),constants=require(a33_0x246b89(0xf2)),getUserNightwatchConfigs=(_0x314a8b,_0x4f4e3a)=>{const _0x401d03=a33_0x246b89,_0x28f430={'ZpIRt':_0x401d03(0x116),'HjMVm':_0x401d03(0x11c),'tsECv':function(_0x5adb70,_0x2c9e04){return _0x5adb70(_0x2c9e04);},'Jxddh':_0x401d03(0x122)};let _0x2eb3ef=null,_0x366d21={};const _0x4a7adb=_0x4f4e3a[_0x401d03(0x119)](_0x1a5edf=>_0x1a5edf==='--config');if(!helper[_0x401d03(0xec)](_0x314a8b['config'])&&fs['existsSync'](path[_0x401d03(0xf6)](process[_0x401d03(0xf9)](),_0x314a8b[_0x401d03(0xee)])))_0x2eb3ef=path[_0x401d03(0xf6)](process[_0x401d03(0xf9)](),_0x314a8b['config']),_0x4f4e3a[_0x401d03(0xe2)](_0x4a7adb,0x2);else{if(fs[_0x401d03(0xe5)](path['join'](process['cwd'](),_0x28f430[_0x401d03(0xfa)])))_0x2eb3ef=path['join'](process[_0x401d03(0xf9)](),_0x28f430['ZpIRt']);else fs['existsSync'](path[_0x401d03(0xf6)](process[_0x401d03(0xf9)](),_0x28f430[_0x401d03(0xff)]))&&(_0x2eb3ef=path[_0x401d03(0xf6)](process[_0x401d03(0xf9)](),_0x28f430[_0x401d03(0xff)]));}return _0x2eb3ef?(logger[_0x401d03(0x11b)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x2eb3ef),_0x366d21=_0x28f430[_0x401d03(0xe6)](require,_0x2eb3ef)):logger[_0x401d03(0x11b)](_0x28f430[_0x401d03(0x10d)]),_0x366d21;},removeExistingEnvs=_0x2c11c9=>{const _0x4005eb=a33_0x246b89,_0x153b2e={};_0x153b2e[_0x4005eb(0x103)]=function(_0x1d5f7b,_0x3fe06a){return _0x1d5f7b>_0x3fe06a;};const _0x2acba6=_0x153b2e;let _0x59c0cf=_0x2c11c9[_0x4005eb(0x119)](_0x234375=>_0x234375===_0x4005eb(0x106));_0x2acba6[_0x4005eb(0x103)](_0x59c0cf,-0x1)&&_0x2c11c9[_0x4005eb(0xe2)](_0x59c0cf,0x2),_0x59c0cf=_0x2c11c9['findIndex'](_0x4c89af=>_0x4c89af==='-e'),_0x2acba6[_0x4005eb(0x103)](_0x59c0cf,-0x1)&&_0x2c11c9[_0x4005eb(0xe2)](_0x59c0cf,0x2);};function run(_0x2d854e,_0xc24fd6){const _0x4bbfd0=a33_0x246b89,_0x563b94={'MfKXW':_0x4bbfd0(0x123),'VgKmj':function(_0x5d4456,_0x31d18d){return _0x5d4456+_0x31d18d;},'BNetX':_0x4bbfd0(0x10b),'JbHCT':function(_0x11a1a3,_0x272acd,_0x47c443){return _0x11a1a3(_0x272acd,_0x47c443);},'bIBCk':'hub.browserstack.com','bEYFN':_0x4bbfd0(0xd6),'IEIxl':function(_0x16d00a,_0x5b756a){return _0x16d00a===_0x5b756a;},'uSWso':_0x4bbfd0(0xda),'grMKx':function(_0x119c91,_0x1faf2a){return _0x119c91(_0x1faf2a);},'tHuIa':function(_0x446bc9,_0x3dced4,_0x51908f,_0x4362b3){return _0x446bc9(_0x3dced4,_0x51908f,_0x4362b3);},'wkJrw':_0x4bbfd0(0x11f),'wOMPE':_0x4bbfd0(0xf1),'wuMHX':_0x4bbfd0(0x106),'hxSfj':_0x4bbfd0(0x108),'MyzTK':_0x4bbfd0(0xdb)},_0x3dbbc4=new BrowserStackSetup(_0x2d854e);if(!_0x3dbbc4[_0x4bbfd0(0xee)])return;const _0x2818bf=_0x563b94[_0x4bbfd0(0x10c)](getUserNightwatchConfigs,_0x2d854e,_0xc24fd6),_0xab76f3={};_0xab76f3['start_process']=![];const _0x3dbaa1={};_0x3dbaa1[_0x4bbfd0(0xd9)]=_0x563b94[_0x4bbfd0(0x112)],_0x3dbaa1[_0x4bbfd0(0x101)]=0x1bb;const _0x44cb8e={};_0x44cb8e['webdriver']=_0xab76f3,_0x44cb8e[_0x4bbfd0(0xf7)]=_0x3dbaa1;const _0x5cfeb4=_0x44cb8e;logger[_0x4bbfd0(0x11b)](_0x563b94[_0x4bbfd0(0x117)]);const _0x31c1ba={..._0x2818bf},_0x719e4a=_0x31c1ba,_0x3737ea=helper[_0x4bbfd0(0xdd)](_0x3dbbc4['config']),_0x2bded9=[];_0x3dbbc4[_0x4bbfd0(0xee)][_0x4bbfd0(0x107)][_0x4bbfd0(0xf4)]((_0x543a24,_0xc3298f)=>{const _0x363605=_0x4bbfd0;_0x3737ea?_0x2bded9[_0x363605(0x10f)](helper[_0x363605(0x113)](_0x3dbbc4[_0x363605(0xee)],_0x563b94[_0x363605(0xe1)],_0xc3298f)):_0x2bded9[_0x363605(0x10f)](helper[_0x363605(0xfd)](_0x3dbbc4[_0x363605(0xee)],_0x563b94['MfKXW'],_0xc3298f));});const _0x39b3f8={},_0x27c33b=[];_0x2d854e[_0x4bbfd0(0xfc)]=_0x2d854e[_0x4bbfd0(0xfc)]||_0x2d854e['e'];const _0x4edb5e=_0x2d854e[_0x4bbfd0(0xfc)]?_0x2d854e[_0x4bbfd0(0xfc)][_0x4bbfd0(0x102)]()[_0x4bbfd0(0x109)](',')[_0x4bbfd0(0xdf)](_0x3083e3=>_0x3083e3[_0x4bbfd0(0x102)]())[_0x4bbfd0(0x11d)](_0x13bc96=>_0x13bc96!==''):[''];_0x563b94[_0x4bbfd0(0xea)](_0x4edb5e['length'],0x0)&&_0x4edb5e['push']('');_0x4edb5e[_0x4bbfd0(0xf4)](_0x501e19=>{const _0x2ef74c=_0x4bbfd0;_0x2bded9[_0x2ef74c(0xf4)](_0x5b0a4f=>{const _0x531e7e=_0x2ef74c;let _0x42834d=_0x563b94[_0x531e7e(0xde)](helper['getPlatformName'](_0x5b0a4f,'_'),'_'+Date[_0x531e7e(0xf8)]());_0x501e19&&(_0x42834d+='_'+_0x501e19);if(_0x501e19&&(!_0x2818bf[_0x563b94[_0x531e7e(0xf5)]]||!_0x2818bf[_0x563b94[_0x531e7e(0xf5)]][_0x501e19]))return;const _0x34888c={..._0x5cfeb4};_0x34888c[_0x531e7e(0xd5)]=_0x5b0a4f;const _0x425e19=_0x34888c;_0x39b3f8[_0x42834d]=_0x501e19?helper[_0x531e7e(0x120)](_0x2818bf[_0x563b94['BNetX']][_0x501e19],_0x425e19):_0x425e19,_0x27c33b[_0x531e7e(0x10f)](_0x42834d);});});!_0x719e4a['test_settings']&&(_0x719e4a[_0x4bbfd0(0x10b)]={});_0x719e4a['test_settings']={..._0x719e4a[_0x4bbfd0(0x10b)],..._0x39b3f8};const _0xa66449=path[_0x4bbfd0(0xf6)](__dirname,_0x563b94[_0x4bbfd0(0xf3)]);fs[_0x4bbfd0(0x11e)](_0xa66449,JSON[_0x4bbfd0(0xd8)](_0x719e4a)),_0x563b94[_0x4bbfd0(0x110)](removeExistingEnvs,_0xc24fd6);const _0x35e760=_0x563b94[_0x4bbfd0(0xfb)](spawn,/^win/['test'](process[_0x4bbfd0(0x121)])?_0x563b94[_0x4bbfd0(0xd7)]:_0x563b94[_0x4bbfd0(0xe1)],[_0x563b94[_0x4bbfd0(0xe0)],_0xa66449,..._0xc24fd6[_0x4bbfd0(0x10a)](0x1),_0x563b94[_0x4bbfd0(0x100)],_0x27c33b[_0x4bbfd0(0xf6)](',')],{'stdio':_0x563b94['hxSfj']});_0x35e760['on'](_0x563b94[_0x4bbfd0(0x104)],async _0x4f0643=>{const _0x1be2e7=_0x4bbfd0;logger['debug'](_0x1be2e7(0xeb)+_0x4f0643),logger[_0x1be2e7(0x11b)](_0x1be2e7(0xef)+_0xa66449),fs[_0x1be2e7(0x114)](_0xa66449);});}module[a33_0x246b89(0xf0)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_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
|
+
const a34_0x7e201f=a34_0x1ba1;function a34_0x1ba1(_0x3f5e4d,_0x3e418a){const _0x2968b4=a34_0x2968();return a34_0x1ba1=function(_0x1ba1d2,_0xd754ed){_0x1ba1d2=_0x1ba1d2-0xc0;let _0x4a844a=_0x2968b4[_0x1ba1d2];return _0x4a844a;},a34_0x1ba1(_0x3f5e4d,_0x3e418a);}(function(_0x5b0f90,_0xd7fe56){const _0x56baf0=a34_0x1ba1,_0x1e5fbf=_0x5b0f90();while(!![]){try{const _0x34049a=-parseInt(_0x56baf0(0xf9))/0x1+parseInt(_0x56baf0(0x12d))/0x2*(parseInt(_0x56baf0(0x126))/0x3)+-parseInt(_0x56baf0(0x10e))/0x4+parseInt(_0x56baf0(0x12b))/0x5*(parseInt(_0x56baf0(0xc5))/0x6)+-parseInt(_0x56baf0(0x119))/0x7+-parseInt(_0x56baf0(0xe9))/0x8*(parseInt(_0x56baf0(0xcb))/0x9)+parseInt(_0x56baf0(0xea))/0xa;if(_0x34049a===_0xd7fe56)break;else _0x1e5fbf['push'](_0x1e5fbf['shift']());}catch(_0x291522){_0x1e5fbf['push'](_0x1e5fbf['shift']());}}}(a34_0x2968,0xd832d));const util=require('util'),logger=require(a34_0x7e201f(0xf3))['winstonLogger'],{isAccessibilityAutomationSession}=require(a34_0x7e201f(0x12a)),{isUndefined}=require(a34_0x7e201f(0xc3)),scripts=require(a34_0x7e201f(0x10d));function a34_0x2968(){const _0x6c5eda=['getAccessibilityResults','processAccessibilityCaps','cRmJP','gaGcp','platformValidation','latest','executeAsyncScript','accessibilityOptions','CpKQO','dwyaf','YvpJw','executeScript','error','JYoDy','vLQqw','env','8MClYQY','24262440DSJjbO','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','wsEndpoint','BRkpc','cMVko','browserstack.accessibility','parse','debug','accessibilityOptions.includeIssueType.needsReview','../../helpers/logger','Playwright','No\x20accessibility\x20results\x20were\x20found.','bestPractice','bvfsS','accessibilityOptions.scannerProcessingTimeout','758792BQhvXZ','ccQSE','VHibW','connectOptions','accessibilityPlatform','currentTest','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','testInfo','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','leAaJ','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Mdqhg','accessibilityOptions.authToken','method','tbWWt','name','browserName','accessibilityOptions.includeIssueType.bestPractice','warn','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','../../helpers/accessibility-automation/scripts','4565580cGBGjw','includeIssueType','VHxBW','format','BSkGI','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','Dthdx','deviceName','kefZS','PdzkC','No\x20summaryResults\x20found.','9353841omHpvX','pstFq','CnINU','workerInfo','bstackSdkArgs','accessibilityOptions.wcagVersion','IIPlx','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','ITSdJ','wcagVersion','eWrfU','stringify','ocqmf','1260723rGrkaz','wTpRc','xAYJC','project','../../helpers/accessibility-automation/helper','284895DvNyuN','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','4tPVlQO','performScan','yYeRP','scannerProcessingTimeout','../../helpers/helper','use','108mOwaYf','WebDriver','ccDnu','WdNED','replace','needsReview','1533141dBjvyl','browserStackEvaluate','playwright-chromium','IraPm','HlDJT','constructor','gRgfu','accessibilityOptions.scannerVersion','chrome','yRYgm','browser','scannerVersion','browser_version','JaDdY'];a34_0x2968=function(){return _0x6c5eda;};return a34_0x2968();}exports[a34_0x7e201f(0xcc)]=async(_0x228914,_0x3e4903,_0x5473d3={})=>{const _0x5dc7ad=a34_0x7e201f,_0x456c20={};_0x456c20[_0x5dc7ad(0x117)]=_0x5dc7ad(0x11d);const _0x2f8f08=_0x456c20;return await _0x228914['evaluate'](_0x5dc7ad(0xff)+_0x3e4903[_0x5dc7ad(0xc9)](/arguments/g,_0x2f8f08[_0x5dc7ad(0x117)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x5dc7ad(0x124)](_0x5473d3)+')');},exports['browserStackExecuteDriver']=async(_0x4ede17,_0x38611b,_0x570404={})=>{const _0x1a9f52=a34_0x7e201f,_0x1bdfe8={};_0x1bdfe8[_0x1a9f52(0xf7)]=function(_0x1fb81a,_0x587828){return _0x1fb81a===_0x587828;},_0x1bdfe8[_0x1a9f52(0x107)]=_0x1a9f52(0xc6),_0x1bdfe8[_0x1a9f52(0x128)]=function(_0x1af8cd,_0x2f782e){return _0x1af8cd===_0x2f782e;},_0x1bdfe8[_0x1a9f52(0x11b)]=_0x1a9f52(0xf4),_0x1bdfe8['YvpJw']=_0x1a9f52(0x11d);const _0x471caf=_0x1bdfe8;if(_0x471caf[_0x1a9f52(0xf7)](_0x4ede17[_0x1a9f52(0xd0)][_0x1a9f52(0x108)],_0x471caf[_0x1a9f52(0x107)]))return await _0x4ede17[_0x1a9f52(0xdf)](_0x38611b,_0x570404);else{if(_0x471caf[_0x1a9f52(0x128)](_0x4ede17[_0x1a9f52(0xd0)][_0x1a9f52(0x108)],_0x471caf[_0x1a9f52(0x11b)]))return await _0x4ede17[_0x1a9f52(0xe4)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0x38611b['replace'](/arguments/g,_0x471caf[_0x1a9f52(0xe3)])+_0x1a9f52(0xeb)+JSON['stringify'](_0x570404)+')');}},exports['setAccessibilityCapabilities']=async _0x1ece4e=>{const _0x2b22b0=a34_0x7e201f,_0x82451b={};_0x82451b[_0x2b22b0(0x116)]=_0x2b22b0(0x11e),_0x82451b[_0x2b22b0(0xcf)]=_0x2b22b0(0xf8),_0x82451b[_0x2b22b0(0x121)]=_0x2b22b0(0x10a),_0x82451b[_0x2b22b0(0xc8)]=_0x2b22b0(0xf2),_0x82451b[_0x2b22b0(0x102)]=_0x2b22b0(0x105),_0x82451b[_0x2b22b0(0x11a)]=_0x2b22b0(0xd2);const _0x2d6214=_0x82451b;_0x1ece4e[_0x2b22b0(0xe0)]&&(_0x1ece4e[_0x2b22b0(0xe0)]['wcagVersion']&&(_0x1ece4e[_0x2d6214['kefZS']]=_0x1ece4e['accessibilityOptions'][_0x2b22b0(0x122)]),_0x1ece4e[_0x2b22b0(0xe0)][_0x2b22b0(0xc2)]&&(_0x1ece4e[_0x2d6214[_0x2b22b0(0xcf)]]=_0x1ece4e['accessibilityOptions']['scannerProcessingTimeout']),_0x1ece4e[_0x2b22b0(0xe0)][_0x2b22b0(0x10f)]&&(_0x1ece4e[_0x2d6214[_0x2b22b0(0x121)]]=_0x1ece4e[_0x2b22b0(0xe0)]['includeIssueType'][_0x2b22b0(0xf6)],_0x1ece4e[_0x2d6214[_0x2b22b0(0xc8)]]=_0x1ece4e['accessibilityOptions'][_0x2b22b0(0x10f)][_0x2b22b0(0xca)]));const _0x5e7a9b=JSON[_0x2b22b0(0xf0)](process[_0x2b22b0(0xe8)][_0x2b22b0(0x10c)])[_0x2b22b0(0xd6)];_0x1ece4e[_0x2d6214[_0x2b22b0(0x102)]]=process[_0x2b22b0(0xe8)]['BS_A11Y_JWT'],_0x1ece4e[_0x2d6214[_0x2b22b0(0x11a)]]=_0x5e7a9b,delete _0x1ece4e[_0x2b22b0(0xe0)];},exports[a34_0x7e201f(0xd9)]=async _0x309f66=>{const _0x2f0fae=a34_0x7e201f,_0xfe6ae3={};_0xfe6ae3[_0x2f0fae(0xfb)]=_0x2f0fae(0xf5),_0xfe6ae3[_0x2f0fae(0xe7)]=_0x2f0fae(0x101);const _0x1b6a4b=_0xfe6ae3;if(global[_0x2f0fae(0xfd)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x309f66,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x309f66,scripts.getResults);return res;}catch{return logger[_0x2f0fae(0xe5)](_0x1b6a4b['VHibW']),[];}else return logger[_0x2f0fae(0x10b)](_0x1b6a4b[_0x2f0fae(0xe7)]),[];},exports[a34_0x7e201f(0xc0)]=async(_0x3bfaf3,_0x4ea3b1='')=>{const _0x3019e2=a34_0x7e201f;if(global[_0x3019e2(0xfd)]){const _0x547112={};return _0x547112[_0x3019e2(0x106)]=_0x4ea3b1,await exports[_0x3019e2(0xcc)](_0x3bfaf3,scripts[_0x3019e2(0xc0)],_0x547112);}},exports['getAccessibilityResultsSummary']=async _0x589313=>{const _0x5d007c=a34_0x7e201f,_0x25cbde={};_0x25cbde[_0x5d007c(0xe6)]=_0x5d007c(0x118),_0x25cbde[_0x5d007c(0x110)]=_0x5d007c(0x120);const _0x383c5e=_0x25cbde;if(global[_0x5d007c(0xfd)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x589313,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x589313,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x383c5e[_0x5d007c(0xe6)]),{};}else return logger[_0x5d007c(0x10b)](_0x383c5e[_0x5d007c(0x110)]),{};},exports[a34_0x7e201f(0xdd)]=async _0x4eb69b=>{const _0x57c7dd=a34_0x7e201f,_0x35ca41={'cRmJP':function(_0x1472e7,_0x37e64b){return _0x1472e7!==_0x37e64b;},'RDYlj':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','IIPlx':function(_0x39267c,_0x4d1130){return _0x39267c===_0x4d1130;},'gRgfu':_0x57c7dd(0xd3),'yYeRP':'playwright-chromium','dwyaf':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','ccQSE':function(_0xd9d3f7,_0x1596c1){return _0xd9d3f7(_0x1596c1);},'BRkpc':_0x57c7dd(0xde),'ccDnu':function(_0x560a4f,_0x4b8441){return _0x560a4f>_0x4b8441;},'wTpRc':_0x57c7dd(0x103)};try{if(!_0x35ca41[_0x57c7dd(0xdb)](_0x4eb69b[_0x57c7dd(0x115)],''))return logger[_0x57c7dd(0x10b)](_0x35ca41['RDYlj']),![];const _0x463ee3=_0x4eb69b[_0x57c7dd(0xd5)];if(!(_0x35ca41[_0x57c7dd(0x11f)](_0x463ee3,_0x35ca41[_0x57c7dd(0xd1)])||_0x35ca41[_0x57c7dd(0x11f)](_0x463ee3,_0x35ca41[_0x57c7dd(0xc1)])))return logger['warn'](_0x35ca41[_0x57c7dd(0xe2)]),![];const _0x51df5c=_0x35ca41[_0x57c7dd(0xfa)](parseInt,_0x4eb69b[_0x57c7dd(0xd7)]);if(!(_0x35ca41['IIPlx'](_0x51df5c,_0x35ca41[_0x57c7dd(0xed)])||_0x35ca41[_0x57c7dd(0xc7)](_0x51df5c,0x5e)))return logger[_0x57c7dd(0x10b)](_0x35ca41[_0x57c7dd(0x127)]),![];}catch(_0x1703be){logger[_0x57c7dd(0xf1)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x57c7dd(0x111)](_0x1703be));}return!![];},exports[a34_0x7e201f(0xda)]=(_0x22f650,_0x42e11a,_0x5b2dc6)=>{const _0x54ec50=a34_0x7e201f,_0x3d5a64={'gaGcp':function(_0x259ebc){return _0x259ebc();},'CpKQO':_0x54ec50(0xef),'Mdqhg':function(_0x577b39,_0x23ebaa){return _0x577b39===_0x23ebaa;},'yVgRJ':_0x54ec50(0xd3),'eWrfU':_0x54ec50(0xcd),'ocqmf':_0x54ec50(0x12c),'NKqoz':_0x54ec50(0xde),'IraPm':function(_0x45cecc,_0x1991cc){return _0x45cecc>_0x1991cc;},'cMVko':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','BSkGI':function(_0x1bfd4a,_0x124626){return _0x1bfd4a(_0x124626);},'yRYgm':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','JaDdY':function(_0x3fa905,_0x1cc88b){return _0x3fa905+_0x1cc88b;},'Dthdx':function(_0x5e74d8,_0x239e53){return _0x5e74d8(_0x239e53);}};try{if(_0x3d5a64[_0x54ec50(0xdc)](isAccessibilityAutomationSession)){global[_0x54ec50(0xfd)]=!![];!_0x22f650[_0x3d5a64[_0x54ec50(0xe1)]]&&(global[_0x54ec50(0xfd)]=![]);!(_0x3d5a64[_0x54ec50(0x104)](_0x22f650[_0x54ec50(0x109)],_0x3d5a64['yVgRJ'])||_0x3d5a64[_0x54ec50(0x104)](_0x22f650[_0x54ec50(0x109)],_0x3d5a64[_0x54ec50(0x123)]))&&(logger[_0x54ec50(0x10b)](_0x3d5a64[_0x54ec50(0x125)]),global[_0x54ec50(0xfd)]=![]);!(_0x3d5a64[_0x54ec50(0x104)](_0x22f650['browser_version'],_0x3d5a64['NKqoz'])||_0x3d5a64[_0x54ec50(0xce)](_0x22f650[_0x54ec50(0xd7)],0x5e))&&(logger['warn'](_0x3d5a64[_0x54ec50(0xee)]),global['accessibilityPlatform']=![]);!_0x3d5a64[_0x54ec50(0x112)](isUndefined,_0x22f650[_0x54ec50(0x115)])&&(logger['warn'](_0x3d5a64[_0x54ec50(0xd4)]),global[_0x54ec50(0xfd)]=![]);if(!global['accessibilityPlatform']){_0x22f650[_0x3d5a64[_0x54ec50(0xe1)]]=![];const _0x5630da=_0x3d5a64[_0x54ec50(0xd8)](_0x42e11a,_0x3d5a64[_0x54ec50(0x114)](encodeURIComponent,JSON['stringify'](_0x22f650)));_0x5b2dc6&&(_0x5b2dc6[_0x54ec50(0xfe)][_0x54ec50(0x100)][_0x54ec50(0x129)]['use']['connectOptions'][_0x54ec50(0xec)]=_0x5630da,_0x5b2dc6[_0x54ec50(0x11c)][_0x54ec50(0x129)][_0x54ec50(0xc4)][_0x54ec50(0xfc)]['wsEndpoint']=_0x5630da);}}}catch(_0x4d1ee1){logger[_0x54ec50(0xf1)](_0x54ec50(0x113)+util['format'](_0x4d1ee1));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_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';function a35_0x5898(_0x4b0939,_0x4c2198){const _0x5b1047=a35_0x5b10();return a35_0x5898=function(_0x5898f0,_0x9e84ab){_0x5898f0=_0x5898f0-0x1d6;let _0x3b137e=_0x5b1047[_0x5898f0];return _0x3b137e;},a35_0x5898(_0x4b0939,_0x4c2198);}const a35_0x3d716f=a35_0x5898;(function(_0x26472a,_0x142cc6){const _0x2b17f3=a35_0x5898,_0x37bc6a=_0x26472a();while(!![]){try{const _0x4bbd21=-parseInt(_0x2b17f3(0x262))/0x1*(parseInt(_0x2b17f3(0x20b))/0x2)+parseInt(_0x2b17f3(0x1da))/0x3*(-parseInt(_0x2b17f3(0x1f7))/0x4)+parseInt(_0x2b17f3(0x264))/0x5*(parseInt(_0x2b17f3(0x1f2))/0x6)+parseInt(_0x2b17f3(0x207))/0x7+-parseInt(_0x2b17f3(0x257))/0x8+parseInt(_0x2b17f3(0x249))/0x9+-parseInt(_0x2b17f3(0x1ef))/0xa;if(_0x4bbd21===_0x142cc6)break;else _0x37bc6a['push'](_0x37bc6a['shift']());}catch(_0x59761f){_0x37bc6a['push'](_0x37bc6a['shift']());}}}(a35_0x5b10,0xc61d4));const fs=require('fs'),path=require(a35_0x3d716f(0x24f)),{spawn}=require(a35_0x3d716f(0x1d7)),{format}=require(a35_0x3d716f(0x1f3)),logger=require(a35_0x3d716f(0x205))[a35_0x3d716f(0x1e2)],{default:BrowserStackSetup}=require(a35_0x3d716f(0x23b)),helper=require(a35_0x3d716f(0x1fb)),utilities=require(a35_0x3d716f(0x25c)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0x3d716f(0x22f)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x3d716f(0x1e5)),{CrashReporter}=require(a35_0x3d716f(0x200)),{getFrameworkVersion}=require(a35_0x3d716f(0x26f)),{checkAccessibilityPlatformConfig}=require(a35_0x3d716f(0x22d)),{setAccessibilityCapabilities}=require(a35_0x3d716f(0x230)),TestHubHandler=require(a35_0x3d716f(0x1f8)),{shouldProcessEventForTesthub}=require(a35_0x3d716f(0x25e)),getUserPlaywrightConfig=async(_0x2d907d,_0x3b1821)=>{const _0x585883=a35_0x3d716f,_0x3e91b1={'NxxfZ':function(_0x8d2a29){return _0x8d2a29();},'zhWik':function(_0x4fd872,_0x263328){return _0x4fd872(_0x263328);},'OBuMa':function(_0x320bc3,_0x93c51d){return _0x320bc3(_0x93c51d);},'CNvzO':'resolvedConfigFile','rgVDg':_0x585883(0x23c)},_0x5a8bdc=!helper['isUndefined'](_0x2d907d[_0x585883(0x1e4)]),_0x1086a5=_0x5a8bdc?path[_0x585883(0x244)](process[_0x585883(0x215)](),_0x2d907d[_0x585883(0x1e4)]):process[_0x585883(0x215)](),{resolveConfigFile:_0x5b2016,resolveConfigLocation:_0x21ff62}=helper[_0x585883(0x26d)][_0x585883(0x1e9)](null,_0x3e91b1[_0x585883(0x271)](getConfigLoaderPath)),_0x3525a3=_0x5b2016?_0x3e91b1[_0x585883(0x206)](_0x5b2016,_0x1086a5):helper[_0x585883(0x1eb)](_0x3e91b1[_0x585883(0x23a)](_0x21ff62,_0x1086a5),[_0x3e91b1['CNvzO']]),_0x5cc8a4={};if(_0x5a8bdc){const _0x3ffaad=_0x3b1821[_0x585883(0x1ed)](_0x436b43=>_0x436b43==='--config'||_0x436b43==='-c'||_0x436b43[_0x585883(0x210)]('--config='));_0x3b1821[_0x585883(0x1ea)](_0x3ffaad,_0x3b1821[_0x3ffaad][_0x585883(0x210)](_0x3e91b1['rgVDg'])?0x1:0x2);}const _0x40e5b1={};return _0x40e5b1['path']=_0x3525a3,_0x40e5b1[_0x585883(0x1e4)]=_0x5cc8a4,_0x40e5b1;},handleO11yRerun=_0x5dd0e7=>{const _0x2a461f=a35_0x3d716f,_0x4c281d={};_0x4c281d['SLxCq']=function(_0x5c5711,_0x108daf){return _0x5c5711!==_0x108daf;},_0x4c281d[_0x2a461f(0x23f)]=_0x2a461f(0x260),_0x4c281d[_0x2a461f(0x251)]=_0x2a461f(0x21a);const _0x3519cb=_0x4c281d,_0x1740c0=helper[_0x2a461f(0x258)](process[_0x2a461f(0x1f1)][_0x2a461f(0x224)]);if(_0x1740c0){const _0x214e1b=process['env'][_0x2a461f(0x216)],_0x48c610=[];if(_0x3519cb['SLxCq'](_0x214e1b,_0x3519cb[_0x2a461f(0x23f)])&&!helper[_0x2a461f(0x1dc)](_0x214e1b)){_0x214e1b[_0x2a461f(0x217)](',')[_0x2a461f(0x203)](_0x413f0c=>{const _0x7f2c0b=_0x2a461f;_0x48c610['push']('('+_0x413f0c[_0x7f2c0b(0x272)]()+')');});const _0x51af2f='^'+_0x48c610[_0x2a461f(0x231)]('|')+'$';_0x5dd0e7[_0x2a461f(0x21c)](_0x3519cb[_0x2a461f(0x251)],_0x51af2f);}}},spawnOriginalProcess=_0x393928=>{const _0x28f6b2=a35_0x3d716f,_0x1b3875={'SRpon':function(_0xfe9fb1,_0x46103d,_0xb0b0c9,_0x28ca41){return _0xfe9fb1(_0x46103d,_0xb0b0c9,_0x28ca41);},'snHLf':_0x28f6b2(0x235),'sHadK':'playwright','Yjgwf':function(_0x210559,_0x12c5df){return _0x210559===_0x12c5df;},'meiGn':_0x28f6b2(0x1d6),'ejjvx':_0x28f6b2(0x233)};_0x1b3875[_0x28f6b2(0x211)](spawn,_0x1b3875['snHLf'],[_0x1b3875[_0x28f6b2(0x246)],..._0x393928['slice'](0x1)],{'shell':_0x1b3875['Yjgwf'](process[_0x28f6b2(0x202)],_0x1b3875[_0x28f6b2(0x252)]),'stdio':_0x1b3875[_0x28f6b2(0x1dd)],'cwd':process['cwd']()});},isTestCommand=(_0x4e05b5,_0x4f38e6)=>{const _0x4deded=a35_0x3d716f,_0x4da7ca={};_0x4da7ca[_0x4deded(0x22e)]=function(_0x1100a7,_0x30178b){return _0x1100a7>_0x30178b;},_0x4da7ca[_0x4deded(0x227)]=function(_0x5db433,_0x3264a1){return _0x5db433===_0x3264a1;},_0x4da7ca[_0x4deded(0x20e)]=_0x4deded(0x1e3);const _0x193b63=_0x4da7ca;if(_0x193b63[_0x4deded(0x22e)](_0x4f38e6[_0x4deded(0x263)],0x1)&&_0x193b63['RXbBK'](_0x4f38e6[0x1],_0x193b63['dCRmU']))return!![];return![];};async function run(_0x530fb1,_0x2835e5){const _0x33dc48=a35_0x3d716f,_0x216b17={'fYrGF':'.browserstack','FpFHA':_0x33dc48(0x237),'Rsspw':function(_0x14159d,_0xe14cb6){return _0x14159d+_0xe14cb6;},'hchcO':_0x33dc48(0x256),'gYgUR':'2|5|4|3|1|6|0|8|7','WGNpe':function(_0x335a87){return _0x335a87();},'Bpbmv':_0x33dc48(0x209),'vMCtr':_0x33dc48(0x218),'oxnvq':_0x33dc48(0x1f6),'Wfkne':'--disable-test-observability','hGgQj':function(_0x2b9e95,_0x43db61){return _0x2b9e95>=_0x43db61;},'UzfXq':function(_0x308e84,_0x561f24){return _0x308e84+_0x561f24;},'AWjse':_0x33dc48(0x259),'qfGlG':function(_0x5c0915,_0x28d98b,_0x4ce1d7){return _0x5c0915(_0x28d98b,_0x4ce1d7);},'GGKTr':function(_0x287f5c,_0x2b3716){return _0x287f5c(_0x2b3716);},'yCfIg':_0x33dc48(0x26e),'RDyES':_0x33dc48(0x1e7),'EKENb':function(_0x32e973,_0x4c1e2f){return _0x32e973!=_0x4c1e2f;},'xJzXb':function(_0x44ad68,_0x1d710f,_0x50e15f){return _0x44ad68(_0x1d710f,_0x50e15f);},'bvGsZ':function(_0xf583ec,_0xb9f4b7){return _0xf583ec(_0xb9f4b7);},'yDpyk':function(_0x33e3f3,_0x36a7ec){return _0x33e3f3===_0x36a7ec;},'PWzpk':_0x33dc48(0x228),'HyAQu':_0x33dc48(0x269),'FFdBg':'playwright-browserstack-sdk.config.cjs','xJqIj':_0x33dc48(0x1ee),'xcGMT':function(_0x1a94af,_0x3e52d5){return _0x1a94af-_0x3e52d5;},'qqBzf':function(_0x4109b1,_0x5df6c3){return _0x4109b1+_0x5df6c3;},'vAZDt':_0x33dc48(0x25f),'IEixu':function(_0x47fa6d,_0x165c9c){return _0x47fa6d>_0x165c9c;},'kOQaf':function(_0x1e9046,_0x30825b){return _0x1e9046+_0x30825b;},'QRBCM':function(_0x5ab6f0,_0x2a5495,_0x47e0c6,_0x27d4c2){return _0x5ab6f0(_0x2a5495,_0x47e0c6,_0x27d4c2);},'btkOA':'npx','AEnCH':_0x33dc48(0x21e),'phyPG':_0x33dc48(0x1e3),'mZlzN':'--config','fVUAr':_0x33dc48(0x1d6),'LPDoV':_0x33dc48(0x233),'ICNmv':_0x33dc48(0x221)};!helper[_0x33dc48(0x1f4)](process[_0x33dc48(0x1f1)][_0x33dc48(0x267)])&&(process[_0x33dc48(0x1f1)][_0x33dc48(0x267)]=!![]);process['argv'][_0x33dc48(0x1d8)](_0x216b17[_0x33dc48(0x204)])&&(process[_0x33dc48(0x1f1)][_0x33dc48(0x267)]=_0x216b17['oxnvq'],_0x2835e5=_0x2835e5['filter'](_0x13e665=>_0x13e665!==_0x33dc48(0x218)));const _0x1f7a04=_0x2835e5[_0x33dc48(0x1e8)](_0x216b17[_0x33dc48(0x241)]);_0x216b17[_0x33dc48(0x24e)](_0x1f7a04,0x0)&&(process[_0x33dc48(0x1f1)][_0x33dc48(0x20f)]=_0x216b17[_0x33dc48(0x20a)],_0x2835e5=_0x2835e5[_0x33dc48(0x1fc)](_0x376de9=>_0x376de9!==_0x33dc48(0x22b)));try{const _0x4fee36=path[_0x33dc48(0x231)](helper['homedir'](),_0x216b17['fYrGF'],_0x216b17[_0x33dc48(0x26c)]);fs['existsSync'](_0x4fee36)&&fs[_0x33dc48(0x21d)](_0x4fee36);}catch(_0x37933d){logger[_0x33dc48(0x24a)](_0x216b17[_0x33dc48(0x245)](_0x216b17['AWjse'],_0x37933d));}if(!_0x216b17[_0x33dc48(0x255)](isTestCommand,_0x530fb1,_0x2835e5)){_0x216b17['GGKTr'](spawnOriginalProcess,_0x2835e5);return;}const _0x492715=new BrowserStackSetup(_0x530fb1,FRAMEWORKS['PLAYWRIGHT']);if(!_0x492715[_0x33dc48(0x1e4)]){logger['error'](_0x216b17['yCfIg']);return;}await _0x492715[_0x33dc48(0x214)]();!helper['isUndefined'](_0x492715[_0x33dc48(0x22c)])&&_0x492715[_0x33dc48(0x22c)]['has'](_0x216b17[_0x33dc48(0x1f9)])&&(process[_0x33dc48(0x1f1)]['BROWSERSTACK_AUTOMATION']=_0x492715[_0x33dc48(0x22c)][_0x33dc48(0x220)](_0x216b17[_0x33dc48(0x1f9)])||!![]);_0x216b17['EKENb'](_0x492715[_0x33dc48(0x1e4)][_0x33dc48(0x240)],null)&&!helper['isTrue'](process[_0x33dc48(0x1f1)][_0x33dc48(0x20f)])&&(process['env'][_0x33dc48(0x20f)]=process[_0x33dc48(0x1f1)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x492715[_0x33dc48(0x1e4)]['testObservability']);const _0x260838=!helper[_0x33dc48(0x1f4)](process[_0x33dc48(0x1f1)][_0x33dc48(0x20f)]);let _0x30a42e=![];_0x492715[_0x33dc48(0x1e4)][_0x33dc48(0x26a)]&&(_0x30a42e=!![],process[_0x33dc48(0x1f1)][_0x33dc48(0x229)]=_0x492715[_0x33dc48(0x1e4)][_0x33dc48(0x26a)]);_0x492715['config'][_0x33dc48(0x239)]&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x33dc48(0x201)](_0x492715[_0x33dc48(0x1e4)]['accessibilityOptions']));const _0x33a265=_0x2835e5[_0x33dc48(0x273)](),_0x151520=await _0x216b17[_0x33dc48(0x21b)](getUserPlaywrightConfig,_0x530fb1,_0x2835e5);if(helper[_0x33dc48(0x1dc)](_0x151520)){_0x216b17['GGKTr'](spawnOriginalProcess,_0x33a265);return;}const _0x35edd7=_0x151520[_0x33dc48(0x24f)]?path[_0x33dc48(0x25b)](_0x151520[_0x33dc48(0x24f)]):process[_0x33dc48(0x215)]();process['env']['BROWSERSTACK_PW_CONFIG_DIR']=_0x35edd7,await TestHubHandler[_0x33dc48(0x26b)](FRAMEWORKS[_0x33dc48(0x248)],_0x492715);_0x260838&&_0x216b17[_0x33dc48(0x247)](handleO11yRerun,_0x2835e5);let _0x138ae7=_0x216b17['yDpyk'](process[_0x33dc48(0x1f1)][_0x33dc48(0x229)],_0x216b17[_0x33dc48(0x24d)]);_0x138ae7=_0x138ae7||_0x216b17['bvGsZ'](checkAccessibilityPlatformConfig,_0x492715[_0x33dc48(0x1e4)]),process[_0x33dc48(0x1f1)][_0x33dc48(0x229)]=_0x138ae7;_0x138ae7&&_0x216b17[_0x33dc48(0x247)](setAccessibilityCapabilities,_0x492715[_0x33dc48(0x1e4)]);const _0x37a31d=path[_0x33dc48(0x231)](_0x151520[_0x33dc48(0x24f)]?path[_0x33dc48(0x25b)](_0x151520['path']):process['cwd'](),_0x216b17[_0x33dc48(0x1d9)]);fs[_0x33dc48(0x1e1)](_0x37a31d,helper[_0x33dc48(0x1fd)](_0x492715['config'])),process[_0x33dc48(0x1f1)][_0x33dc48(0x219)]=_0x37a31d,helper['clearTempPWConfig']();let _0x55c98e='';_0x216b17['yDpyk'](helper[_0x33dc48(0x1fe)](),constants[_0x33dc48(0x254)][_0x33dc48(0x21f)])?_0x55c98e=_0x216b17[_0x33dc48(0x232)]:_0x55c98e=_0x216b17['xJqIj'];let _0x16f462='';if(helper[_0x33dc48(0x208)](_0x151520[_0x33dc48(0x24f)])){_0x16f462=_0x33dc48(0x270);const _0x5d8c3b=_0x55c98e[_0x33dc48(0x217)]('.');_0x5d8c3b[_0x216b17[_0x33dc48(0x250)](_0x5d8c3b[_0x33dc48(0x263)],0x1)]='ts',_0x55c98e=_0x5d8c3b['join']('.'),logger[_0x33dc48(0x24a)](_0x216b17[_0x33dc48(0x25d)](_0x216b17[_0x33dc48(0x1f0)],_0x55c98e));}else _0x16f462='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x41a4ab=path[_0x33dc48(0x231)](_0x151520[_0x33dc48(0x24f)]?path[_0x33dc48(0x25b)](_0x151520[_0x33dc48(0x24f)]):process[_0x33dc48(0x215)](),_0x55c98e);let _0x5efdec=_0x151520[_0x33dc48(0x24f)]?_0x151520[_0x33dc48(0x24f)]:'';_0x5efdec=_0x216b17[_0x33dc48(0x265)](_0x5efdec[_0x33dc48(0x263)],0x0)?path['resolve'](_0x5efdec):'',process[_0x33dc48(0x1f1)][_0x33dc48(0x20c)]=_0x5efdec;const _0x20284d=helper['getProxyUrl'](_0x492715[_0x33dc48(0x1e4)]);_0x20284d&&(_0x16f462=_0x216b17[_0x33dc48(0x1ec)](_0x33dc48(0x223)+_0x20284d+_0x33dc48(0x242),_0x16f462));helper[_0x33dc48(0x23e)]({},_0x2835e5),fs[_0x33dc48(0x1e1)](_0x41a4ab,_0x16f462),helper[_0x33dc48(0x24b)]();const _0x154f19=_0x216b17['QRBCM'](spawn,_0x216b17[_0x33dc48(0x25a)],[_0x216b17[_0x33dc48(0x1e0)],_0x216b17[_0x33dc48(0x266)],_0x216b17[_0x33dc48(0x1de)],_0x41a4ab,..._0x2835e5[_0x33dc48(0x222)](0x2)],{'shell':_0x216b17[_0x33dc48(0x23d)](process[_0x33dc48(0x202)],_0x216b17['fVUAr']),'stdio':_0x216b17['LPDoV'],'cwd':process[_0x33dc48(0x215)](),'env':Object[_0x33dc48(0x226)]({},process[_0x33dc48(0x1f1)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x33dc48(0x22a)](_0x530fb1),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x492715['config'][_0x33dc48(0x24c)][_0x33dc48(0x213)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x492715[_0x33dc48(0x1e4)][_0x33dc48(0x24c)][_0x33dc48(0x1ff)],'BROWSERSTACK_LOG_LEVEL':_0x492715['config']['logLevel']})}),_0x490688=()=>{const _0x5217ce=_0x33dc48;try{const _0x176ef4=path[_0x5217ce(0x231)](helper[_0x5217ce(0x225)](),_0x216b17['fYrGF'],_0x216b17['FpFHA']);if(fs[_0x5217ce(0x20d)](_0x176ef4)){let _0x27c26e=fs[_0x5217ce(0x243)](_0x176ef4);_0x27c26e=JSON[_0x5217ce(0x268)](_0x27c26e),_0x492715['errorMessage']=_0x27c26e,fs[_0x5217ce(0x21d)](_0x176ef4);}}catch(_0x98f2b9){logger['debug'](_0x216b17[_0x5217ce(0x236)](_0x216b17[_0x5217ce(0x238)],_0x98f2b9));}};_0x154f19['on'](_0x216b17[_0x33dc48(0x1e6)],async _0xc907b0=>{const _0x2fb0fd=_0x33dc48;try{const _0x30be3e=_0x216b17[_0x2fb0fd(0x1f5)][_0x2fb0fd(0x217)]('|');let _0x34d146=0x0;while(!![]){switch(_0x30be3e[_0x34d146++]){case'0':fs[_0x2fb0fd(0x21d)](_0x41a4ab);continue;case'1':logger['debug'](_0x2fb0fd(0x261)+_0xc907b0);continue;case'2':_0x216b17[_0x2fb0fd(0x234)](_0x490688);continue;case'3':process['exitCode']=_0xc907b0;continue;case'4':await utilities[_0x2fb0fd(0x253)](_0x492715);continue;case'5':await TestHubHandler[_0x2fb0fd(0x212)]();continue;case'6':logger['info']('Deleting\x20'+_0x41a4ab);continue;case'7':fs[_0x2fb0fd(0x21d)](_0x37a31d);continue;case'8':logger[_0x2fb0fd(0x24a)](_0x2fb0fd(0x1fa)+_0x37a31d);continue;}break;}}catch(_0x4af78b){logger[_0x2fb0fd(0x24a)](_0x216b17['Rsspw'](_0x216b17[_0x2fb0fd(0x1db)],_0x4af78b));}});}function a35_0x5b10(){const _0x738d80=['child_process','includes','HyAQu','15tVxtXG','Bpbmv','isUndefined','ejjvx','mZlzN','exports','AEnCH','writeFileSync','winstonLogger','test','config','./reporter/pwUtils','ICNmv','automation','indexOf','apply','splice','nestedKeyValue','kOQaf','findIndex','playwright-browserstack-sdk.config.js','6941250YZSfWU','vAZDt','env','90582uEWxkB','util','isFalse','gYgUR','false','17164nsGvAB','../../helpers/testhub/testhubHandler','RDyES','Deleting\x20','../../helpers/helper','filter','serializeToYamlString','getPackageType','skipSessionName','../../helpers/test-observability/error-handler','stringify','platform','map','vMCtr','../../helpers/logger','zhWik','1043203VDkFnD','isTypescriptProject','Error\x20in\x20closing\x20playwright','oxnvq','447432UBBDLV','USER_CONFIG_DETAILS_PATH','existsSync','dCRmU','BROWSERSTACK_TEST_OBSERVABILITY','startsWith','SRpon','stop','skipSessionStatus','initialize','cwd','BROWSERSTACK_RERUN_TESTS','split','--disable-browserstack-automation','BROWSERSTACK_SETUP_CONFIG_PATH','--grep','xJzXb','push','unlinkSync','playwright','MODULE','get','close','slice','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','BROWSERSTACK_RERUN','homedir','assign','RXbBK','true','BROWSERSTACK_TEST_ACCESSIBILITY_YML','getConfigPath','--disable-test-observability','cliConfig','../../helpers/accessibility-automation/helper','BsKAv','../../helpers/test-observability/constants','./accessibility-helper','join','FFdBg','inherit','WGNpe','npx','Rsspw','pw_result.json','hchcO','accessibilityOptions','OBuMa','../../helpers/BrowserStackSetup','--config=','yDpyk','filterBrowserstackConfig','BNFOl','testObservability','Wfkne','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','readFileSync','resolve','UzfXq','sHadK','bvGsZ','PLAYWRIGHT','14364522pypvgt','debug','markSDKSetupComplete','testContextOptions','PWzpk','hGgQj','path','xcGMT','LyKbo','meiGn','finalExecution','PACKAGE_TYPE','qfGlG','Error\x20in\x20getting\x20funnel\x20data\x20results','3094696QnnoDx','isTrue','Error\x20in\x20deleting\x20playwright\x20results','btkOA','dirname','../../helpers/utilities','qqBzf','../../helpers/testhub/utils','Updated\x20config\x20file\x20name\x20to\x20-\x20','null','Playwright\x20process\x20exited\x20with\x20code\x20','1TxwxTW','length','130vdzxyL','IEixu','phyPG','BROWSERSTACK_AUTOMATION','parse','browserstackSetupConfig.json','accessibility','launchBuild','FpFHA','requirePWModule','BrowserStack\x20config\x20file\x20not\x20found.','../../helpers/test-observability/utils','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','NxxfZ','trim','concat','win32'];a35_0x5b10=function(){return _0x738d80;};return a35_0x5b10();}module[a35_0x3d716f(0x1df)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a36_0x1284(){const _0x3b9b6e=['vrpCK','util','xyqhr','../../helpers/helper','includes','1.33.0','fsAmG','format','Call\x20to\x20child\x20fork\x20with\x20args\x20','winstonLogger','Vsbcu','8Ehkmdc','58122lIVeGz','apply','KiisO','env','compareVersions','error','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','vZPCR','526341wkDyMC','../../helpers/test-observability/utils','RAyLC','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','Path\x20','./patches','config','1815164jtKOvl','WuNgC','55CGdlmQ','../../helpers/test-observability/constants','YhDHs','fork','PLAYWRIGHT','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','2614824gAkzTS','OmoYH','HDGUl','debug','child_process','toString','exports','isHandlePWErrorSet','Not\x20able\x20to\x20import\x20globalSetup','4750zCEeKT','ekFXi','442473ajtbXj','4161297ychhfY','./mock-process.js','FtnSq','528396XIfjxc','Running\x20existing\x20global\x20setup'];a36_0x1284=function(){return _0x3b9b6e;};return a36_0x1284();}function a36_0x9998(_0x1136e6,_0x8c2be8){const _0x128450=a36_0x1284();return a36_0x9998=function(_0x99983c,_0x2185b5){_0x99983c=_0x99983c-0x187;let _0xea05bb=_0x128450[_0x99983c];return _0xea05bb;},a36_0x9998(_0x1136e6,_0x8c2be8);}const a36_0x249ee6=a36_0x9998;(function(_0x137ed9,_0x137cb1){const _0x4c97b3=a36_0x9998,_0x36255f=_0x137ed9();while(!![]){try{const _0x5f06aa=-parseInt(_0x4c97b3(0x188))/0x1+-parseInt(_0x4c97b3(0x199))/0x2*(parseInt(_0x4c97b3(0x1a2))/0x3)+parseInt(_0x4c97b3(0x1a9))/0x4+parseInt(_0x4c97b3(0x1ab))/0x5*(-parseInt(_0x4c97b3(0x18c))/0x6)+-parseInt(_0x4c97b3(0x189))/0x7+-parseInt(_0x4c97b3(0x1b1))/0x8+parseInt(_0x4c97b3(0x19a))/0x9*(parseInt(_0x4c97b3(0x1ba))/0xa);if(_0x5f06aa===_0x137cb1)break;else _0x36255f['push'](_0x36255f['shift']());}catch(_0x2043e6){_0x36255f['push'](_0x36255f['shift']());}}}(a36_0x1284,0x76e76));const util=require(a36_0x249ee6(0x18f)),child_process=require(a36_0x249ee6(0x1b5)),{FRAMEWORKS}=require(a36_0x249ee6(0x1ac)),{getFrameworkVersion,debug}=require(a36_0x249ee6(0x1a3)),helper=require(a36_0x249ee6(0x191)),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a36_0x249ee6(0x1a7)),logger=require('../../helpers/logger')[a36_0x249ee6(0x197)];module[a36_0x249ee6(0x1b7)]=async function(_0x17660){const _0x34ca8f=a36_0x249ee6,_0x46cef3={'vZPCR':function(_0x2dc9e6,_0x202515){return _0x2dc9e6(_0x202515);},'KiisO':function(_0x4e6d00){return _0x4e6d00();},'fsAmG':_0x34ca8f(0x18a),'OmoYH':function(_0x1efa08){return _0x1efa08();},'FtnSq':function(_0x470e33,_0x41e77e){return _0x470e33(_0x41e77e);},'xyqhr':_0x34ca8f(0x18d),'RAyLC':function(_0xec8c5b,_0x199e15){return _0xec8c5b(_0x199e15);},'vrpCK':function(_0x394044,_0x275c60){return _0x394044>=_0x275c60;},'Vsbcu':_0x34ca8f(0x193),'qcFMK':function(_0x457258,_0x29a019,_0x119cdb){return _0x457258(_0x29a019,_0x119cdb);},'HDGUl':function(_0x5e8268,_0x47d982){return _0x5e8268!==_0x47d982;},'ekFXi':'function','WuNgC':_0x34ca8f(0x1b9),'YhDHs':function(_0x2adc83,_0x5a4f3f){return _0x2adc83(_0x5a4f3f);}},_0x2a133c=child_process['fork'];if(helper[_0x34ca8f(0x1b8)]())try{_0x46cef3[_0x34ca8f(0x1b2)](mockIsWorkerRedundant);}catch(_0x3c5882){logger[_0x34ca8f(0x1b4)](_0x34ca8f(0x1b0)+util[_0x34ca8f(0x195)](_0x3c5882));}child_process[_0x34ca8f(0x1ae)]=function(){const _0x435c21=_0x34ca8f;return _0x46cef3[_0x435c21(0x1a1)](debug,_0x435c21(0x196)+arguments[0x0]),arguments[0x0][_0x435c21(0x192)](_0x46cef3['KiisO'](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x46cef3[_0x435c21(0x194)]):logger[_0x435c21(0x19f)](_0x435c21(0x1a6)+_0x46cef3[_0x435c21(0x19c)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x2a133c[_0x435c21(0x19b)](null,arguments);};if(process[_0x34ca8f(0x19d)][_0x34ca8f(0x1a5)]){_0x46cef3[_0x34ca8f(0x18b)](debug,_0x46cef3[_0x34ca8f(0x190)]);try{const {loadGlobalHook:_0x2267eb}=helper['requirePWModule'][_0x34ca8f(0x19b)](null,_0x46cef3[_0x34ca8f(0x1b2)](getLoadUtilsPath)),_0x5528b7=_0x46cef3[_0x34ca8f(0x1a4)](getFrameworkVersion,FRAMEWORKS[_0x34ca8f(0x1af)]);let _0x8936ff=_0x17660;if(_0x46cef3[_0x34ca8f(0x18e)](helper[_0x34ca8f(0x19e)](_0x5528b7,_0x46cef3[_0x34ca8f(0x198)]),0x0)){const _0x35b832={};_0x35b832[_0x34ca8f(0x1a8)]=_0x17660,_0x8936ff=_0x35b832;}const _0x4d0581=await _0x46cef3['qcFMK'](_0x2267eb,_0x8936ff,process[_0x34ca8f(0x19d)][_0x34ca8f(0x1a5)]);if(_0x46cef3[_0x34ca8f(0x1b3)](typeof _0x4d0581,_0x46cef3[_0x34ca8f(0x187)]))throw new Error(_0x46cef3[_0x34ca8f(0x1aa)]);return _0x4d0581[_0x34ca8f(0x19b)](null,arguments);}catch(_0x1fb42f){_0x46cef3[_0x34ca8f(0x1ad)](debug,_0x34ca8f(0x1a0)+_0x1fb42f[_0x34ca8f(0x1b6)]());}}};
|