browserstack-node-sdk 1.34.23 → 1.34.24
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/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x1a9bc7=a29_0x2ab6;(function(_0x40de6f,_0x221abe){const _0x309c60=a29_0x2ab6,_0x150e49=_0x40de6f();while(!![]){try{const _0x4cf3a6=-parseInt(_0x309c60(0x70))/0x1+-parseInt(_0x309c60(0x79))/0x2+-parseInt(_0x309c60(0xdb))/0x3+-parseInt(_0x309c60(0x67))/0x4*(-parseInt(_0x309c60(0x9b))/0x5)+parseInt(_0x309c60(0xd2))/0x6+parseInt(_0x309c60(0x94))/0x7*(-parseInt(_0x309c60(0xd3))/0x8)+-parseInt(_0x309c60(0xdc))/0x9*(-parseInt(_0x309c60(0x92))/0xa);if(_0x4cf3a6===_0x221abe)break;else _0x150e49['push'](_0x150e49['shift']());}catch(_0x251d69){_0x150e49['push'](_0x150e49['shift']());}}}(a29_0x1cbe,0x3b1ca));function a29_0x2ab6(_0xf8d6a4,_0x31b11a){const _0x1cbe8d=a29_0x1cbe();return a29_0x2ab6=function(_0x2ab610,_0x4a9886){_0x2ab610=_0x2ab610-0x65;let _0x2ef9b8=_0x1cbe8d[_0x2ab610];return _0x2ef9b8;},a29_0x2ab6(_0xf8d6a4,_0x31b11a);}function a29_0x1cbe(){const _0x581348=['setGlobal','ooxej','__drivers','241071fwwKOi','3715317IOjFyR','error','UBHsK','../../../helpers/accessibility-automation/helper','split','4780JsorXS','get','goog:chromeOptions','object','edgeOptions','session_','exports','send','DNmvA','261024oDHSyA','getAccessibilityResultsSummary','2|5|0|1|4|3','logLevel','New\x20hub\x20url\x20set\x20to\x20','iGqRz','options_','isUndefined','overrideGet','869462LMqRzV','rppTN','FkXrO','getGlobal','getHttpAgent','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','edgeOptions_','PfXmC','capability','build','uGLkL','updateHubUrl','ARJmR','push','yPAGm','isPacProxy','chromeOptions_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','browserStackLogLevel','Hub\x20url\x20set\x20to\x20','JwlHT','optimalHubUrl','ngRNX','debug','CAPABILITY_KEY','20Lgoovy','Setting\x20Browserstack\x20capabilities','8834LblVgH','ieOptions_','set','GrgNd','uTqcA','Riiys','RCTMK','290JvBrQa','./helpers/patchHelper','requireSeleniumWebdriver','TcMCK','HttpClient','chromeOptions','storeOptimalHubUrl','../../../helpers/patchHelpers','fpmLR','mergeDeep','isBrowserstackInfra','__driversArray','vFTXw','caps_','Proxy\x20set\x20to\x20','fuVrv','global','setServer','wDyrB','__setBrowserOptions','se:ieOptions','forEach','proxySettings','proxy_','../../../helpers/globals','getAccessibilityResults','then','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','https://','/session','rNdlo','setLogLevel','JhxML','originalBuilder','requireHttpClient','amGrO','url_','MvmGz','ZTGwn','LHoEV','setCapabilities','isAccessibilityPlatform','safariOptions_','getRequestOptions','../../../hubAllocationMethods','rMmGw','browserstackAgentObservability','Builder','firefoxOptions_','YHoKY','HpbmP','../../../bin/utils/constants','../../../helpers/logger','capabilities_','newHubUrl','785220pWFCmj','48ACMGsd','ZwYcA','proxyUrl','../../../helpers/helper','getHubUrl'];a29_0x1cbe=function(){return _0x581348;};return a29_0x1cbe();}const logger=require(a29_0x1a9bc7(0xcf))['winstonLogger'],helper=require(a29_0x1a9bc7(0xd6)),constants=require(a29_0x1a9bc7(0xce)),hubAllocator=require(a29_0x1a9bc7(0xc7)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x1a9bc7(0xa2)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x1a9bc7(0x65)),globals=require(a29_0x1a9bc7(0xb3)),{overrideExecute}=require(a29_0x1a9bc7(0x9c)),modify=(_0x26fd52,_0x4d87ad=null,_0x45dc85=![])=>{const _0xfc20de=a29_0x1a9bc7,_0x34e162={'ARJmR':function(_0xc94ba5,_0x4c47ef){return _0xc94ba5!==_0x4c47ef;},'rppTN':_0xfc20de(0xb8),'Riiys':function(_0x3fd166,_0x1f1074){return _0x3fd166+_0x1f1074;},'RCTMK':function(_0xeba37,_0x371595){return _0xeba37+_0x371595;},'vFTXw':_0xfc20de(0xb7),'uKEra':'/wd/hub','LHoEV':_0xfc20de(0x69),'gZJQI':_0xfc20de(0xa0),'amGrO':'ms:edgeOptions','iGqRz':_0xfc20de(0x6b),'JhxML':'moz:firefoxOptions','ZwYcA':'firefoxOptions','uGLkL':'safari.options','ywTaK':_0xfc20de(0xaf),'gsFdy':'ieOptions','Fvvgw':function(_0x355001,_0x23281a){return _0x355001===_0x23281a;},'rMmGw':_0xfc20de(0x6a),'fuVrv':_0xfc20de(0x93),'ngRNX':function(_0x437010,_0x406ee9,_0x4a9c86){return _0x437010(_0x406ee9,_0x4a9c86);},'DNmvA':function(_0x49313a,_0xf9bb04){return _0x49313a(_0xf9bb04);},'UBHsK':_0xfc20de(0x8e),'rNdlo':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','wDyrB':function(_0x18de80,_0x4364e8,_0x2879be){return _0x18de80(_0x4364e8,_0x2879be);},'ZTGwn':_0xfc20de(0x72),'PfXmC':function(_0x2edb93){return _0x2edb93();},'JwlHT':_0xfc20de(0xb6),'ooxej':_0xfc20de(0xc4),'tsiMK':function(_0x3f14cd,_0x44df2b){return _0x3f14cd(_0x44df2b);},'TcMCK':function(_0x8acd6e,_0x1cb375){return _0x8acd6e(_0x1cb375);},'MvmGz':function(_0x104f83,_0x152f3a,_0xbd7092){return _0x104f83(_0x152f3a,_0xbd7092);},'fpmLR':function(_0x18b3f0,_0x586f8f){return _0x18b3f0!==_0x586f8f;},'HpbmP':function(_0x69ea12,_0x17c9fa){return _0x69ea12!==_0x17c9fa;},'AMsbA':_0xfc20de(0x8a),'YwXYs':'Modifying\x20webdriver\x20builder'},_0x2d7bef=helper[_0xfc20de(0xbd)]();let _0x5f4ea2;try{_0x5f4ea2=helper[_0xfc20de(0x9d)](),_0x5f4ea2[_0xfc20de(0xbc)]&&(_0x5f4ea2[_0xfc20de(0xca)]=_0x5f4ea2[_0xfc20de(0xbc)]);}catch(_0x2360ec){return;}if(helper['isBrowserstackInfra']()){const _0x45c4c9={};_0x45c4c9[_0xfc20de(0x73)]=_0x26fd52[_0xfc20de(0x8b)],helper[_0xfc20de(0xba)](_0x45c4c9,new Map(),new Map()),logger['info'](_0x34e162['AMsbA']),logger[_0xfc20de(0x90)](_0x34e162['YwXYs']);}class _0x2973d4 extends _0x2d7bef[_0xfc20de(0x9f)]{['send'](_0x464406){const _0x2594b6=_0xfc20de;if(_0x34e162['ARJmR'](_0x464406['path'],_0x34e162[_0x2594b6(0x7a)])&&_0x34e162[_0x2594b6(0x85)](global[_0x2594b6(0xd1)],''))try{global[_0x2594b6(0xd1)]=_0x34e162[_0x2594b6(0x99)](_0x34e162[_0x2594b6(0x9a)](_0x34e162[_0x2594b6(0xa7)],global[_0x2594b6(0xd1)]),_0x34e162['uKEra']),this[_0x2594b6(0x76)]=hubAllocator[_0x2594b6(0xc6)](global[_0x2594b6(0xd1)]),logger[_0x2594b6(0x90)](_0x2594b6(0x74)+global[_0x2594b6(0xd1)]),global[_0x2594b6(0xd1)]='';}catch(_0x29af22){logger[_0x2594b6(0xdd)](_0x29af22);}return super[_0x2594b6(0x6e)](_0x464406);}}class _0x27577c extends _0x5f4ea2[_0xfc20de(0xca)]{[_0xfc20de(0xac)](){const _0xc3234f=_0xfc20de;return this['url_']=helper[_0xc3234f(0xd7)](_0x26fd52),logger[_0xc3234f(0x90)](_0xc3234f(0x8c)+this[_0xc3234f(0xbf)]),this;}[_0xfc20de(0xae)](_0x2bf251){const _0x4c00b3=_0xfc20de;let _0x1a3428={};for(const _0x425919 in _0x2bf251){switch(_0x425919){case _0x34e162[_0x4c00b3(0xc2)]:case _0x34e162['gZJQI']:this['chromeOptions_']&&(_0x1a3428=this[_0x4c00b3(0x89)][_0x4c00b3(0x68)](this['chromeOptions_'][_0x4c00b3(0x91)])||{},this[_0x4c00b3(0x89)][_0x4c00b3(0x96)](this['chromeOptions_'][_0x4c00b3(0x91)],helper[_0x4c00b3(0xa4)](_0x1a3428,_0x2bf251[_0x425919])));break;case _0x34e162[_0x4c00b3(0xbe)]:case _0x34e162[_0x4c00b3(0x75)]:this[_0x4c00b3(0x7f)]&&(_0x1a3428=this[_0x4c00b3(0x7f)]['get'](this['edgeOptions_'][_0x4c00b3(0x91)])||{},this[_0x4c00b3(0x7f)][_0x4c00b3(0x96)](this[_0x4c00b3(0x7f)][_0x4c00b3(0x91)],helper[_0x4c00b3(0xa4)](_0x1a3428,_0x2bf251[_0x425919])));break;case _0x34e162[_0x4c00b3(0xbb)]:case _0x34e162[_0x4c00b3(0xd4)]:this['firefoxOptions_']&&(_0x1a3428=this[_0x4c00b3(0xcb)][_0x4c00b3(0x68)](this['firefoxOptions_'][_0x4c00b3(0x91)])||{},this[_0x4c00b3(0xcb)][_0x4c00b3(0x96)](this[_0x4c00b3(0xcb)]['CAPABILITY_KEY'],helper[_0x4c00b3(0xa4)](_0x1a3428,_0x2bf251[_0x425919])));break;case _0x34e162[_0x4c00b3(0x83)]:this[_0x4c00b3(0xc5)]&&(_0x1a3428=this['safariOptions_'][_0x4c00b3(0x68)](this['safariOptions_'][_0x4c00b3(0x91)])||{},this[_0x4c00b3(0xc5)][_0x4c00b3(0x96)](this[_0x4c00b3(0xc5)]['CAPABILITY_KEY'],helper[_0x4c00b3(0xa4)](_0x1a3428,_0x2bf251[_0x425919])));break;case _0x34e162['ywTaK']:case _0x34e162['gsFdy']:this[_0x4c00b3(0x95)]&&(_0x1a3428=this['ieOptions_'][_0x4c00b3(0x68)](this[_0x4c00b3(0x95)][_0x4c00b3(0x91)])||{},this[_0x4c00b3(0x95)][_0x4c00b3(0x96)](this['ieOptions_'][_0x4c00b3(0x91)],helper['mergeDeep'](_0x1a3428,_0x2bf251[_0x425919])));break;}}}['setCapabilities'](){const _0x352f96=_0xfc20de;return logger['debug'](_0x34e162[_0x352f96(0xaa)]),this[_0x352f96(0xae)](_0x26fd52[_0x352f96(0x81)]),Object['keys'](_0x26fd52[_0x352f96(0x81)])[_0x352f96(0xb0)](_0x163680=>{const _0x3e935b=_0x352f96,_0x86f455=this[_0x3e935b(0xd0)]['get'](_0x163680);_0x34e162['Fvvgw'](typeof _0x86f455,_0x34e162[_0x3e935b(0xc8)])?this[_0x3e935b(0xd0)]['set'](_0x163680,helper['mergeDeep'](_0x86f455,_0x26fd52['capability'][_0x163680])):this[_0x3e935b(0xd0)][_0x3e935b(0x96)](_0x163680,_0x26fd52[_0x3e935b(0x81)][_0x163680]);}),this;}[_0xfc20de(0x82)](){const _0xe3e225=_0xfc20de,_0x14e5bf={'GrgNd':_0x34e162[_0xe3e225(0xde)],'yPAGm':_0x34e162[_0xe3e225(0xb9)],'FkXrO':function(_0x110a37,_0x57a2b4,_0x29c9b7){const _0x3aebdd=_0xe3e225;return _0x34e162[_0x3aebdd(0xad)](_0x110a37,_0x57a2b4,_0x29c9b7);},'uTqcA':function(_0x4f6b53,_0x2276fc,_0x3813e4){return _0x34e162['wDyrB'](_0x4f6b53,_0x2276fc,_0x3813e4);}};if(helper[_0xe3e225(0xa5)]()){const _0x1effce=_0x34e162[_0xe3e225(0xc1)][_0xe3e225(0x66)]('|');let _0x489c91=0x0;while(!![]){switch(_0x1effce[_0x489c91++]){case'0':this[_0xe3e225(0xc3)]();continue;case'1':if(helper[_0xe3e225(0x88)](_0x26fd52[_0xe3e225(0xb1)]['proxyUrl']))this['agent_']=helper[_0xe3e225(0x7d)](_0x26fd52[_0xe3e225(0xb1)][_0xe3e225(0xd5)]);else _0x26fd52[_0xe3e225(0xb1)][_0xe3e225(0xd5)]&&(this[_0xe3e225(0xb2)]=_0x26fd52[_0xe3e225(0xb1)][_0xe3e225(0xd5)],logger[_0xe3e225(0x90)](_0xe3e225(0xa9)+this['proxy_']));continue;case'2':_0x34e162[_0xe3e225(0x80)](isAccessibilityAutomationSession)&&_0x34e162['DNmvA'](setAccessibilityCapabilities,_0x26fd52);continue;case'3':logger['debug'](_0x34e162[_0xe3e225(0x8d)]);continue;case'4':globals[_0xe3e225(0x7c)](_0x34e162[_0xe3e225(0xd9)])&&(!_0x34e162[_0xe3e225(0xad)](setExtension,this,_0x26fd52)&&globals[_0xe3e225(0xd8)](_0x34e162[_0xe3e225(0xd9)],![]));continue;case'5':this['setServer']();continue;}break;}}const _0x492c62=super[_0xe3e225(0x82)]();return _0x492c62[_0xe3e225(0x6c)][_0xe3e225(0xb5)](_0x299707=>{const _0x2bdfbe=_0xe3e225;try{const _0xfe3cca=_0x299707[_0x2bdfbe(0xa8)]['get'](_0x14e5bf[_0x2bdfbe(0x97)]);_0xfe3cca?(logger[_0x2bdfbe(0x90)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0xfe3cca),hubAllocator[_0x2bdfbe(0x84)](_0xfe3cca),helper[_0x2bdfbe(0xa1)](_0xfe3cca)):logger[_0x2bdfbe(0x90)](_0x14e5bf[_0x2bdfbe(0x87)]);}catch(_0x5db48){logger[_0x2bdfbe(0x90)](_0x2bdfbe(0x7e)+_0x5db48);}}),_0x492c62['quitCount_']=0x0,_0x492c62[_0xe3e225(0xb5)]&&_0x492c62[_0xe3e225(0xb5)](_0x16f505=>{const _0x64cf26=_0xe3e225,_0x5251f7={'YHoKY':function(_0x131fa5,_0x254792,_0x31e707){const _0x264a3c=a29_0x2ab6;return _0x34e162[_0x264a3c(0x8f)](_0x131fa5,_0x254792,_0x31e707);}};_0x34e162['ngRNX'](overrideQuit,_0x16f505,_0x492c62),_0x34e162[_0x64cf26(0x6f)](overrideTakeScreenshot,_0x16f505),helper[_0x64cf26(0x78)](_0x16f505,_0x26fd52),_0x34e162['ngRNX'](overrideExecute,_0x16f505,_0x26fd52),_0x16f505[_0x64cf26(0x71)]=async()=>{const _0x5e7273=_0x64cf26;return await _0x14e5bf[_0x5e7273(0x7b)](getAccessibilityResultsSummary,_0x16f505,global);},_0x16f505[_0x64cf26(0xb4)]=async()=>{const _0x2e2a80=_0x64cf26;return await _0x5251f7[_0x2e2a80(0xcc)](getAccessibilityResults,_0x16f505,global);};}),_0x492c62['getAccessibilityResultsSummary']=async()=>{const _0x192c48=_0xe3e225;return await _0x14e5bf[_0x192c48(0x7b)](getAccessibilityResultsSummary,_0x492c62,global);},_0x492c62[_0xe3e225(0xb4)]=async()=>{const _0x41648e=_0xe3e225;return await _0x14e5bf[_0x41648e(0x98)](getAccessibilityResults,_0x492c62,global);},_0x34e162['tsiMK'](overrideTakeScreenshot,_0x492c62),_0x34e162[_0xe3e225(0x9e)](overrideQuit,_0x492c62),helper[_0xe3e225(0x78)](_0x492c62,_0x26fd52),_0x34e162[_0xe3e225(0xc0)](overrideExecute,_0x492c62,_0x26fd52),helper[_0xe3e225(0x77)](global[_0xe3e225(0xa6)])&&(global['__driversArray']=[]),helper[_0xe3e225(0x77)](global['__drivers'])&&(global[_0xe3e225(0xda)]=[]),global[_0xe3e225(0xa6)][_0xe3e225(0x86)](_0x492c62),global['__driver']=_0x492c62,_0x34e162[_0xe3e225(0xa3)](global['__drivers'],undefined)&&global[_0xe3e225(0xda)][_0xe3e225(0x86)](_0x492c62),_0x4d87ad&&helper[_0xe3e225(0x77)](_0x4d87ad['global'][_0xe3e225(0xa6)])&&(_0x4d87ad['global'][_0xe3e225(0xa6)]=[]),_0x4d87ad&&_0x34e162[_0xe3e225(0xcd)](_0x4d87ad[_0xe3e225(0xab)]['__drivers'],undefined)&&(_0x4d87ad[_0xe3e225(0xab)]['__drivers'][_0xe3e225(0x86)](_0x492c62),_0x4d87ad[_0xe3e225(0xab)][_0xe3e225(0xa6)][_0xe3e225(0x86)](_0x492c62)),_0x492c62;}}return _0x5f4ea2[_0xfc20de(0xbc)]=_0x5f4ea2[_0xfc20de(0xca)],_0x5f4ea2[_0xfc20de(0xca)]=_0x27577c,_0x2d7bef['HttpClient']=_0x2973d4,_0x5f4ea2;};module[a29_0x1a9bc7(0x6d)][a29_0x1a9bc7(0xc9)]=modify;
|
|
1
|
+
function a29_0x32d9(_0x3b5361,_0x54a3b5){const _0xae27f9=a29_0xae27();return a29_0x32d9=function(_0x32d9af,_0x2d93a5){_0x32d9af=_0x32d9af-0x102;let _0x22171c=_0xae27f9[_0x32d9af];return _0x22171c;},a29_0x32d9(_0x3b5361,_0x54a3b5);}const a29_0x2a1f73=a29_0x32d9;(function(_0x18bcdb,_0x1ec78e){const _0x54e208=a29_0x32d9,_0xb79c76=_0x18bcdb();while(!![]){try{const _0x348fcb=parseInt(_0x54e208(0x150))/0x1+parseInt(_0x54e208(0x148))/0x2+parseInt(_0x54e208(0x166))/0x3+parseInt(_0x54e208(0x15b))/0x4+-parseInt(_0x54e208(0x154))/0x5+parseInt(_0x54e208(0x135))/0x6*(parseInt(_0x54e208(0x127))/0x7)+parseInt(_0x54e208(0x147))/0x8*(-parseInt(_0x54e208(0x10f))/0x9);if(_0x348fcb===_0x1ec78e)break;else _0xb79c76['push'](_0xb79c76['shift']());}catch(_0x430a25){_0xb79c76['push'](_0xb79c76['shift']());}}}(a29_0xae27,0x462d2));const logger=require(a29_0x2a1f73(0x117))['winstonLogger'],helper=require(a29_0x2a1f73(0x113)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x2a1f73(0x16e)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x2a1f73(0x109)),{setAccessibilityCapabilities,setExtension}=require(a29_0x2a1f73(0x119)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x2a1f73(0x145)),globals=require(a29_0x2a1f73(0x14c)),{overrideExecute}=require(a29_0x2a1f73(0x129)),modify=(_0x2c96ac,_0x14f56a=null,_0x380819=![])=>{const _0x563375=a29_0x2a1f73,_0x325aa5={'eBoyl':function(_0x2485aa,_0x289b92){return _0x2485aa!==_0x289b92;},'MrYMw':'/session','vdXtJ':function(_0x356637,_0x56a140){return _0x356637!==_0x56a140;},'UFsmh':function(_0x583fc7,_0x48f59c){return _0x583fc7+_0x48f59c;},'eUoHl':_0x563375(0x15c),'XJPRx':_0x563375(0x11d),'hymco':'goog:chromeOptions','PYmUq':_0x563375(0x168),'sZTqx':_0x563375(0x158),'QleGr':_0x563375(0x162),'wLgQp':_0x563375(0x170),'quZWR':_0x563375(0x11b),'qWmny':_0x563375(0x167),'GZnzd':_0x563375(0x17c),'NFwME':_0x563375(0x13e),'xLuxN':function(_0x2bd77c,_0x5d3185){return _0x2bd77c===_0x5d3185;},'NNElB':'object','vucjl':_0x563375(0x176),'WgPHV':_0x563375(0x13b),'CFEiS':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','mnStF':function(_0x4d6584,_0x5d269d,_0x4599ce){return _0x4d6584(_0x5d269d,_0x4599ce);},'RMGWQ':function(_0x476e26,_0xe1df26,_0x78a2a5){return _0x476e26(_0xe1df26,_0x78a2a5);},'XMmGd':function(_0xe2c758,_0x349b59){return _0xe2c758(_0x349b59);},'aEYRp':function(_0x5e778d,_0x4d0b62,_0xf6ceb5){return _0x5e778d(_0x4d0b62,_0xf6ceb5);},'eqRfC':function(_0x418e44,_0x3e84ab,_0x4b43ff){return _0x418e44(_0x3e84ab,_0x4b43ff);},'ToaRk':_0x563375(0x152),'erVdB':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','hCWEg':function(_0x59fd71){return _0x59fd71();},'TqNTL':_0x563375(0x125),'elFcW':function(_0x2b03f9,_0x19de28){return _0x2b03f9!==_0x19de28;},'HYqpK':function(_0x308e3f,_0x3f0876){return _0x308e3f!==_0x3f0876;},'JDMFo':_0x563375(0x178),'CrQnz':_0x563375(0x122)},_0x2e0e13=helper[_0x563375(0x140)]();let _0x1c1cf6;try{_0x1c1cf6=helper[_0x563375(0x165)](),_0x1c1cf6[_0x563375(0x12d)]&&(_0x1c1cf6[_0x563375(0x11f)]=_0x1c1cf6[_0x563375(0x12d)]);}catch(_0x16224d){return;}if(helper[_0x563375(0x137)]()){const _0x3d0ab0={};_0x3d0ab0[_0x563375(0x10d)]=_0x2c96ac[_0x563375(0x175)],helper[_0x563375(0x153)](_0x3d0ab0,new Map(),new Map()),logger[_0x563375(0x15f)](_0x325aa5[_0x563375(0x120)]),logger[_0x563375(0x14a)](_0x325aa5['CrQnz']);}class _0x4a7fa4 extends _0x2e0e13[_0x563375(0x107)]{[_0x563375(0x123)](_0x3cc005){const _0x53ed67=_0x563375;if(_0x325aa5[_0x53ed67(0x156)](_0x3cc005[_0x53ed67(0x106)],_0x325aa5[_0x53ed67(0x14e)])&&_0x325aa5[_0x53ed67(0x114)](global[_0x53ed67(0x141)],''))try{global[_0x53ed67(0x141)]=_0x325aa5[_0x53ed67(0x169)](_0x325aa5[_0x53ed67(0x169)](_0x325aa5[_0x53ed67(0x142)],global[_0x53ed67(0x141)]),_0x325aa5[_0x53ed67(0x103)]),this[_0x53ed67(0x146)]=hubAllocator[_0x53ed67(0x16a)](global[_0x53ed67(0x141)]),logger[_0x53ed67(0x14a)]('New\x20hub\x20url\x20set\x20to\x20'+global[_0x53ed67(0x141)]),global[_0x53ed67(0x141)]='';}catch(_0x11f0ed){logger[_0x53ed67(0x14f)](_0x11f0ed);}return super[_0x53ed67(0x123)](_0x3cc005);}}class _0x1d9f68 extends _0x1c1cf6[_0x563375(0x11f)]{['setServer'](){const _0x51056d=_0x563375;return this[_0x51056d(0x160)]=helper[_0x51056d(0x16d)](_0x2c96ac),logger[_0x51056d(0x14a)](_0x51056d(0x12f)+this['url_']),this;}[_0x563375(0x138)](_0x14c047){const _0x10fdcf=_0x563375;let _0x5a27f0={};for(const _0xef003 in _0x14c047){switch(_0xef003){case _0x325aa5[_0x10fdcf(0x10b)]:case _0x325aa5[_0x10fdcf(0x12e)]:this['chromeOptions_']&&(_0x5a27f0=this[_0x10fdcf(0x126)]['get'](this['chromeOptions_'][_0x10fdcf(0x10a)])||{},this[_0x10fdcf(0x126)]['set'](this['chromeOptions_'][_0x10fdcf(0x10a)],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;case _0x325aa5[_0x10fdcf(0x10e)]:case _0x325aa5[_0x10fdcf(0x10c)]:this['edgeOptions_']&&(_0x5a27f0=this[_0x10fdcf(0x11c)]['get'](this[_0x10fdcf(0x11c)][_0x10fdcf(0x10a)])||{},this[_0x10fdcf(0x11c)][_0x10fdcf(0x118)](this[_0x10fdcf(0x11c)][_0x10fdcf(0x10a)],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;case _0x325aa5['wLgQp']:case _0x325aa5['quZWR']:this[_0x10fdcf(0x16c)]&&(_0x5a27f0=this[_0x10fdcf(0x16c)][_0x10fdcf(0x134)](this['firefoxOptions_'][_0x10fdcf(0x10a)])||{},this[_0x10fdcf(0x16c)][_0x10fdcf(0x118)](this[_0x10fdcf(0x16c)]['CAPABILITY_KEY'],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;case _0x325aa5['qWmny']:this[_0x10fdcf(0x112)]&&(_0x5a27f0=this[_0x10fdcf(0x112)][_0x10fdcf(0x134)](this['safariOptions_'][_0x10fdcf(0x10a)])||{},this['safariOptions_']['set'](this['safariOptions_'][_0x10fdcf(0x10a)],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;case _0x325aa5['GZnzd']:case _0x325aa5[_0x10fdcf(0x163)]:this[_0x10fdcf(0x124)]&&(_0x5a27f0=this['ieOptions_'][_0x10fdcf(0x134)](this[_0x10fdcf(0x124)][_0x10fdcf(0x10a)])||{},this['ieOptions_']['set'](this['ieOptions_'][_0x10fdcf(0x10a)],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;}}}['setCapabilities'](){const _0x28fb08=_0x563375,_0x258f1e={'UhSaG':function(_0x11a161,_0x2b46f9){const _0x50d2d8=a29_0x32d9;return _0x325aa5[_0x50d2d8(0x128)](_0x11a161,_0x2b46f9);},'QyCvU':_0x325aa5[_0x28fb08(0x110)]};return logger[_0x28fb08(0x14a)](_0x325aa5[_0x28fb08(0x171)]),this['__setBrowserOptions'](_0x2c96ac[_0x28fb08(0x12a)]),Object[_0x28fb08(0x11a)](_0x2c96ac['capability'])[_0x28fb08(0x121)](_0x5441a0=>{const _0x2145e6=_0x28fb08,_0x53e430=this[_0x2145e6(0x13a)]['get'](_0x5441a0);_0x258f1e[_0x2145e6(0x15a)](typeof _0x53e430,_0x258f1e[_0x2145e6(0x104)])?this[_0x2145e6(0x13a)]['set'](_0x5441a0,helper['mergeDeep'](_0x53e430,_0x2c96ac[_0x2145e6(0x12a)][_0x5441a0])):this[_0x2145e6(0x13a)][_0x2145e6(0x118)](_0x5441a0,_0x2c96ac[_0x2145e6(0x12a)][_0x5441a0]);}),this;}['build'](){const _0x5ca46c=_0x563375,_0x2ff4b0={'GymPC':function(_0x51de4c,_0x3cb0ee,_0x34c270){const _0x2e01cf=a29_0x32d9;return _0x325aa5[_0x2e01cf(0x139)](_0x51de4c,_0x3cb0ee,_0x34c270);},'iOGoi':function(_0x331922,_0x2b852e,_0x5b0cef){const _0xadcce1=a29_0x32d9;return _0x325aa5[_0xadcce1(0x133)](_0x331922,_0x2b852e,_0x5b0cef);}};if(helper[_0x5ca46c(0x137)]()){const _0x3ef281=_0x325aa5[_0x5ca46c(0x12b)]['split']('|');let _0x4feb8d=0x0;while(!![]){switch(_0x3ef281[_0x4feb8d++]){case'0':logger[_0x5ca46c(0x14a)](_0x325aa5[_0x5ca46c(0x105)]);continue;case'1':if(helper['isPacProxy'](_0x2c96ac['proxySettings'][_0x5ca46c(0x111)]))this[_0x5ca46c(0x13c)]=helper[_0x5ca46c(0x144)](_0x2c96ac[_0x5ca46c(0x173)]['proxyUrl']);else _0x2c96ac[_0x5ca46c(0x173)][_0x5ca46c(0x111)]&&(this[_0x5ca46c(0x174)]=_0x2c96ac[_0x5ca46c(0x173)][_0x5ca46c(0x111)],logger[_0x5ca46c(0x14a)](_0x5ca46c(0x13d)+this[_0x5ca46c(0x174)]));continue;case'2':this[_0x5ca46c(0x12c)]();continue;case'3':_0x325aa5[_0x5ca46c(0x159)](isAccessibilityAutomationSession)&&_0x325aa5[_0x5ca46c(0x143)](setAccessibilityCapabilities,_0x2c96ac);continue;case'4':globals['getGlobal'](_0x325aa5['TqNTL'])&&(!_0x325aa5[_0x5ca46c(0x139)](setExtension,this,_0x2c96ac)&&globals[_0x5ca46c(0x131)](_0x325aa5[_0x5ca46c(0x15d)],![]));continue;case'5':this[_0x5ca46c(0x155)]();continue;}break;}}const _0x3b382a=super['build']();return _0x3b382a[_0x5ca46c(0x161)]['then'](_0x175f5a=>{const _0x412669=_0x5ca46c;try{const _0x4deea8=_0x175f5a['caps_'][_0x412669(0x134)](_0x325aa5[_0x412669(0x149)]);_0x4deea8?(logger[_0x412669(0x14a)](_0x412669(0x14b)+_0x4deea8),hubAllocator[_0x412669(0x16b)](_0x4deea8),helper['storeOptimalHubUrl'](_0x4deea8)):logger[_0x412669(0x14a)](_0x325aa5[_0x412669(0x164)]);}catch(_0x3e4e73){logger['debug'](_0x412669(0x132)+_0x3e4e73);}}),_0x3b382a['quitCount_']=0x0,_0x3b382a['then']&&_0x3b382a[_0x5ca46c(0x16f)](_0x328bd5=>{const _0x4db40b=_0x5ca46c,_0x262d1f={'NZrVL':function(_0x2dc607,_0x4fb8d1,_0x34fd75){return _0x325aa5['mnStF'](_0x2dc607,_0x4fb8d1,_0x34fd75);}};_0x325aa5[_0x4db40b(0x115)](overrideQuit,_0x328bd5,_0x3b382a),_0x325aa5[_0x4db40b(0x143)](overrideTakeScreenshot,_0x328bd5),helper[_0x4db40b(0x177)](_0x328bd5,_0x2c96ac),_0x325aa5[_0x4db40b(0x139)](overrideExecute,_0x328bd5,_0x2c96ac),_0x328bd5['getAccessibilityResultsSummary']=async()=>{const _0x464dd2=_0x4db40b;return await _0x262d1f[_0x464dd2(0x17a)](getAccessibilityResultsSummary,_0x328bd5,global);},_0x328bd5[_0x4db40b(0x172)]=async()=>{return await _0x2ff4b0['GymPC'](getAccessibilityResults,_0x328bd5,global);};}),_0x3b382a[_0x5ca46c(0x151)]=async()=>{return await _0x2ff4b0['GymPC'](getAccessibilityResultsSummary,_0x3b382a,global);},_0x3b382a[_0x5ca46c(0x172)]=async()=>{const _0x32d93f=_0x5ca46c;return await _0x2ff4b0[_0x32d93f(0x116)](getAccessibilityResults,_0x3b382a,global);},_0x325aa5[_0x5ca46c(0x143)](overrideTakeScreenshot,_0x3b382a),_0x325aa5[_0x5ca46c(0x143)](overrideQuit,_0x3b382a),helper[_0x5ca46c(0x177)](_0x3b382a,_0x2c96ac),_0x325aa5['aEYRp'](overrideExecute,_0x3b382a,_0x2c96ac),helper[_0x5ca46c(0x15e)](global['__driversArray'])&&(global[_0x5ca46c(0x17b)]=[]),helper[_0x5ca46c(0x15e)](global['__drivers'])&&(global['__drivers']=[]),global['__driversArray']['push'](_0x3b382a),global[_0x5ca46c(0x179)]=_0x3b382a,_0x325aa5[_0x5ca46c(0x11e)](global['__drivers'],undefined)&&global[_0x5ca46c(0x14d)]['push'](_0x3b382a),_0x14f56a&&helper[_0x5ca46c(0x15e)](_0x14f56a[_0x5ca46c(0x157)][_0x5ca46c(0x17b)])&&(_0x14f56a['global']['__driversArray']=[]),_0x14f56a&&_0x325aa5[_0x5ca46c(0x13f)](_0x14f56a[_0x5ca46c(0x157)]['__drivers'],undefined)&&(_0x14f56a[_0x5ca46c(0x157)][_0x5ca46c(0x14d)][_0x5ca46c(0x136)](_0x3b382a),_0x14f56a['global'][_0x5ca46c(0x17b)][_0x5ca46c(0x136)](_0x3b382a)),_0x3b382a;}}return _0x1c1cf6['originalBuilder']=_0x1c1cf6[_0x563375(0x11f)],_0x1c1cf6[_0x563375(0x11f)]=_0x1d9f68,_0x2e0e13[_0x563375(0x107)]=_0x4a7fa4,_0x1c1cf6;};module[a29_0x2a1f73(0x130)][a29_0x2a1f73(0x102)]=modify;function a29_0xae27(){const _0x31c475=['QyCvU','erVdB','path','HttpClient','mergeDeep','../../../helpers/patchHelpers','CAPABILITY_KEY','hymco','QleGr','logLevel','sZTqx','153pXnaVT','NNElB','proxyUrl','safariOptions_','../../../helpers/helper','vdXtJ','RMGWQ','iOGoi','../../../helpers/logger','set','../accessibility-automation/helper','keys','firefoxOptions','edgeOptions_','/wd/hub','elFcW','Builder','JDMFo','forEach','Modifying\x20webdriver\x20builder','send','ieOptions_','isAccessibilityPlatform','chromeOptions_','77OOrPEO','xLuxN','./helpers/patchHelper','capability','ToaRk','setServer','originalBuilder','PYmUq','Hub\x20url\x20set\x20to\x20','exports','setGlobal','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','eqRfC','get','163236PAbGIQ','push','isBrowserstackInfra','__setBrowserOptions','aEYRp','capabilities_','optimalHubUrl','agent_','Proxy\x20set\x20to\x20','ieOptions','HYqpK','requireHttpClient','newHubUrl','eUoHl','XMmGd','getHttpAgent','../../../helpers/accessibility-automation/helper','options_','605088MQalLl','1052604CACrwa','WgPHV','debug','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','../../../helpers/globals','__drivers','MrYMw','error','463344WqYpFQ','getAccessibilityResultsSummary','3|2|5|1|4|0','setLogLevel','984550wHjgap','setCapabilities','eBoyl','global','ms:edgeOptions','hCWEg','UhSaG','544912IzGLiH','https://','TqNTL','isUndefined','info','url_','session_','edgeOptions','NFwME','CFEiS','requireSeleniumWebdriver','1035072GlSAKO','safari.options','chromeOptions','UFsmh','getRequestOptions','updateHubUrl','firefoxOptions_','getHubUrl','../../../hubAllocationMethods','then','moz:firefoxOptions','vucjl','getAccessibilityResults','proxySettings','proxy_','browserStackLogLevel','Setting\x20Browserstack\x20capabilities','overrideGet','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','__driver','NZrVL','__driversArray','se:ieOptions','browserstackAgentObservability','XJPRx'];a29_0xae27=function(){return _0x31c475;};return a29_0xae27();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x2362b=a30_0x4b55;function a30_0x4b55(_0x3bc7ba,_0x3ea056){const _0x4f3b2d=a30_0x4f3b();return a30_0x4b55=function(_0x4b554f,_0x475b24){_0x4b554f=_0x4b554f-0xc5;let _0x2d2a0e=_0x4f3b2d[_0x4b554f];return _0x2d2a0e;},a30_0x4b55(_0x3bc7ba,_0x3ea056);}function a30_0x4f3b(){const _0x457ae7=['684444jHhaHN','632510eetxgy','180MhgmjB','restore','vikxc','3651396fOhqhk','5753655mONyDM','20hPdYXh','440DjAqAc','../../../helpers/request-spy','../../../bin/utils/constants','154zccxcf','30079njDJpP','712185DXIAYp','mochaHooks','2543ZDLSXJ'];a30_0x4f3b=function(){return _0x457ae7;};return a30_0x4f3b();}(function(_0x5368eb,_0x19eb06){const _0x3320e8=a30_0x4b55,_0x5edb7c=_0x5368eb();while(!![]){try{const _0x534230=parseInt(_0x3320e8(0xd0))/0x1*(parseInt(_0x3320e8(0xd3))/0x2)+-parseInt(_0x3320e8(0xce))/0x3+parseInt(_0x3320e8(0xc6))/0x4+parseInt(_0x3320e8(0xc8))/0x5*(-parseInt(_0x3320e8(0xd1))/0x6)+parseInt(_0x3320e8(0xcd))/0x7*(-parseInt(_0x3320e8(0xc9))/0x8)+-parseInt(_0x3320e8(0xc7))/0x9+-parseInt(_0x3320e8(0xd2))/0xa*(-parseInt(_0x3320e8(0xcc))/0xb);if(_0x534230===_0x19eb06)break;else _0x5edb7c['push'](_0x5edb7c['shift']());}catch(_0x38df47){_0x5edb7c['push'](_0x5edb7c['shift']());}}}(a30_0x4f3b,0x6fcb8));const requestSpy=require(a30_0x2362b(0xca)),constants=require(a30_0x2362b(0xcb)),{addRequestSpy}=require('../../../helpers/test-observability/utils');exports[a30_0x2362b(0xcf)]={'beforeAll'(){const _0x393cd5=a30_0x2362b,_0x461911={'vikxc':function(_0x49a116){return _0x49a116();}},_0x2f896d='browserstack internal helper hook';_0x461911[_0x393cd5(0xc5)](addRequestSpy);},'afterAll'(){const _0x161af2=a30_0x2362b,_0x203d90='browserstack internal helper hook';this['timeout'](0xea60),requestSpy[_0x161af2(0xd4)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a31_0x13e9(_0x27e54f,_0x11a453){const _0x2ebe78=a31_0x2ebe();return a31_0x13e9=function(_0x13e9a1,_0x2fb6e3){_0x13e9a1=_0x13e9a1-0xc5;let _0x481b7a=_0x2ebe78[_0x13e9a1];return _0x481b7a;},a31_0x13e9(_0x27e54f,_0x11a453);}function a31_0x2ebe(){const _0x269911=['91yQDfvs','string','failed','CbPbI','pid','bEEwJ','uuid','yKhoK','UDQmO','LoRXp','js-','../../../helpers/test-observability/utils','pending','slice','JpKhr','322744qFysmk','4032430fPDEeG','getHookSkippedTests','markedStatus','fromEntries','nYSkc','TAcnd','QxqWb','625634Zvkwvd','generic','ZIOPB','getBrowserName','KkEDq','751107AxxVOF','vTLrO','hvODL','SwTbO','__cloud_provider___','mMpgr','CqnCg','hook:','sendPlatformDetails','split','TEST_PLATFORM','_beforeEach','243665WixriO','sWaVm','parent','forEach','gFkMH','concat','5LUOtKo','getBrowserVersion','getSession','getCapabilities','Bhlaj','../../../../package.json','reduce','EFBwu','eHfLD','getHookDetails','suites','filter','cLuub','indexOf','state','171486njPtgF','hook','ELcEt','../../../helpers/helper','22fALaZf','CwkBJ','XHtnu','../../utils/logPatcher','hookAnalyticsId','79736BPapph','UwfnU','../../../helpers/testhub/utils','getHooksForTest','passed','GKkhp','Ohzxm','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','_beforeAll','tests','YvTlJ','type','getTestEnv','cVPGK','bs:addPlatformDetails:','bUToJ','mapTestHooks','toJSON','unknown_grid','push','36ZMWCGD','substring','_afterAll','Enorh','emit'];a31_0x2ebe=function(){return _0x269911;};return a31_0x2ebe();}const a31_0x190ebf=a31_0x13e9;(function(_0x486300,_0x4e2ef3){const _0x4fa23c=a31_0x13e9,_0x2618dc=_0x486300();while(!![]){try{const _0x284cc7=-parseInt(_0x4fa23c(0x10a))/0x1+parseInt(_0x4fa23c(0xf9))/0x2+-parseInt(_0x4fa23c(0xfe))/0x3+-parseInt(_0x4fa23c(0xf1))/0x4*(parseInt(_0x4fa23c(0x110))/0x5)+parseInt(_0x4fa23c(0x11f))/0x6*(-parseInt(_0x4fa23c(0xe2))/0x7)+parseInt(_0x4fa23c(0xc9))/0x8*(parseInt(_0x4fa23c(0xdd))/0x9)+-parseInt(_0x4fa23c(0xf2))/0xa*(-parseInt(_0x4fa23c(0x123))/0xb);if(_0x284cc7===_0x4e2ef3)break;else _0x2618dc['push'](_0x2618dc['shift']());}catch(_0x14c135){_0x2618dc['push'](_0x2618dc['shift']());}}}(a31_0x2ebe,0x33fa2));const {v4:uuidv4}=require(a31_0x190ebf(0xe8)),{name,version}=require(a31_0x190ebf(0x115)),logPatcher=require(a31_0x190ebf(0xc7)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x190ebf(0xed)),{consoleHolder}=require('../../../helpers/test-observability/constants'),{getPlatformVersion}=require(a31_0x190ebf(0x122)),{shouldProcessEventForTesthub}=require(a31_0x190ebf(0xcb));console={},Object['keys'](consoleHolder)[a31_0x190ebf(0x10d)](_0x20a13b=>{console[_0x20a13b]=(..._0x268b48)=>{BSTestOpsPatcher[_0x20a13b](..._0x268b48);};}),exports[a31_0x190ebf(0xd5)]=()=>{const _0x31991a=a31_0x190ebf,_0x197f88={'jiyjm':_0x31991a(0xfa),'bUToJ':function(_0x15ba8d){return _0x15ba8d();}};return{'ci':_0x197f88['jiyjm'],'key':_0x197f88[_0x31991a(0xd8)](uuidv4),'version':version,'collector':_0x31991a(0xec)+name};},exports[a31_0x190ebf(0x119)]=_0x479256=>{const _0x5de29f=a31_0x190ebf,_0x5d5b28={};_0x5d5b28[_0x5de29f(0xfb)]=function(_0x55b2d5,_0x56f25f){return _0x55b2d5!==_0x56f25f;},_0x5d5b28[_0x5de29f(0xd6)]=_0x5de29f(0xe3),_0x5d5b28[_0x5de29f(0xea)]=function(_0x51945d,_0x4176ec){return _0x51945d!==_0x4176ec;},_0x5d5b28[_0x5de29f(0xce)]=_0x5de29f(0x105),_0x5d5b28[_0x5de29f(0xf8)]=function(_0x1afb0f,_0x1c349a){return _0x1afb0f!==_0x1c349a;},_0x5d5b28[_0x5de29f(0x11c)]='hook';const _0x2ac7d6=_0x5d5b28;if(!_0x479256||_0x2ac7d6['ZIOPB'](typeof _0x479256,_0x2ac7d6['cVPGK']))return[null,null];if(_0x2ac7d6[_0x5de29f(0xea)](_0x479256[_0x5de29f(0x11d)](_0x2ac7d6['GKkhp']),-0x1)){const _0x408f3f=_0x479256[_0x5de29f(0x107)](_0x2ac7d6[_0x5de29f(0xce)]);return[_0x408f3f[0x0][_0x5de29f(0xef)](0x0,-0x1)[_0x5de29f(0x107)]('\x22')[0x1],_0x408f3f[0x1][_0x5de29f(0xde)](0x1)];}else{if(_0x2ac7d6[_0x5de29f(0xf8)](_0x479256['indexOf'](_0x2ac7d6[_0x5de29f(0x11c)]),-0x1)){const _0x3bc81f=_0x479256[_0x5de29f(0x107)](_0x2ac7d6[_0x5de29f(0x11c)]);return[_0x3bc81f[0x0]['slice'](0x0,-0x1)[_0x5de29f(0x107)]('\x22')[0x1],_0x479256];}}return[null,null];},exports[a31_0x190ebf(0xcc)]=_0x159019=>{const _0x5bccf5=a31_0x190ebf,_0xad0e5d={'hvODL':function(_0x445f47,_0x58b200){return _0x445f47(_0x58b200);},'sWaVm':_0x5bccf5(0xd1),'YvTlJ':'_afterAll','mMpgr':_0x5bccf5(0x109),'Ohzxm':'_afterEach'};if(!_0x159019||!_0x159019[_0x5bccf5(0x10c)])return[];const _0xb72dff=[];return[_0xad0e5d[_0x5bccf5(0x10b)],_0xad0e5d[_0x5bccf5(0xd3)],_0xad0e5d[_0x5bccf5(0x103)],_0xad0e5d[_0x5bccf5(0xcf)]][_0x5bccf5(0x10d)](_0x3b97cd=>{const _0x58b245=_0x5bccf5,_0x4c3b99=_0x159019['parent'][_0x3b97cd]||[];_0x4c3b99[_0x58b245(0x10d)](_0x12e4e2=>{const _0x314b53=_0x58b245;_0x12e4e2[_0x314b53(0xc8)]&&!_0xad0e5d[_0x314b53(0x100)](isInternalHook,_0x12e4e2['fn'])&&_0xb72dff[_0x314b53(0xdc)](_0x12e4e2['hookAnalyticsId']);});}),[..._0xb72dff,...exports[_0x5bccf5(0xcc)](_0x159019[_0x5bccf5(0x10c)])];},exports[a31_0x190ebf(0xd9)]=_0x21b688=>{const _0x3f42ea=a31_0x190ebf,_0x1bfdcf={'bEEwJ':function(_0x50a341){return _0x50a341();},'XHtnu':function(_0x2d8637,_0x584e97){return _0x2d8637===_0x584e97;},'JpKhr':'_afterEach','ELcEt':_0x3f42ea(0xd1),'TAcnd':_0x3f42ea(0xdf),'SwTbO':_0x3f42ea(0x109)};if(!_0x21b688||!_0x21b688[_0x3f42ea(0x10c)])return;[_0x1bfdcf[_0x3f42ea(0x121)],_0x1bfdcf[_0x3f42ea(0xf7)],_0x1bfdcf[_0x3f42ea(0x101)],_0x1bfdcf[_0x3f42ea(0xf0)]]['forEach'](_0x1c35c0=>{const _0x1c9e19=_0x3f42ea,_0x3cf346={'EFBwu':function(_0x584c71){const _0xa74410=a31_0x13e9;return _0x1bfdcf[_0xa74410(0xe7)](_0x584c71);},'vTLrO':function(_0x5c4655,_0x4caf3a){const _0x484ba7=a31_0x13e9;return _0x1bfdcf[_0x484ba7(0xc6)](_0x5c4655,_0x4caf3a);},'qGDIY':_0x1bfdcf[_0x1c9e19(0xf0)],'KkEDq':function(_0x5be163){const _0x58dfa0=_0x1c9e19;return _0x1bfdcf[_0x58dfa0(0xe7)](_0x5be163);}},_0x105b97=_0x21b688[_0x1c9e19(0x10c)][_0x1c35c0]||[];_0x105b97['forEach'](_0x316a6e=>{const _0x22fbb7=_0x1c9e19;if(!_0x316a6e[_0x22fbb7(0xc8)])_0x316a6e['hookAnalyticsId']=_0x3cf346[_0x22fbb7(0x117)](uuidv4);else _0x316a6e[_0x22fbb7(0xf4)]&&_0x3cf346[_0x22fbb7(0xff)](_0x1c35c0,_0x3cf346['qGDIY'])&&(_0x316a6e[_0x22fbb7(0xc8)]=_0x3cf346[_0x22fbb7(0xfd)](uuidv4),delete _0x316a6e[_0x22fbb7(0xf4)]);});}),exports[_0x3f42ea(0xd9)](_0x21b688[_0x3f42ea(0x10c)]);},exports[a31_0x190ebf(0x106)]=async(_0x3e774a,_0x11de18)=>{const _0x57e8d1=a31_0x190ebf,_0x521bed={'CbPbI':function(_0x379641){return _0x379641();},'LoRXp':function(_0x4f0c8f,_0x44e41a){return _0x4f0c8f(_0x44e41a);},'yKhoK':function(_0x352d9c,_0x545de0){return _0x352d9c===_0x545de0;},'CqnCg':'browserstack','eHfLD':_0x57e8d1(0xdb),'nYSkc':_0x57e8d1(0x108)};try{if(!_0x521bed[_0x57e8d1(0xe5)](shouldProcessEventForTesthub))return;const _0x3fc44f=await _0x3e774a['getCapabilities'](),_0x1d76f1=await _0x3e774a[_0x57e8d1(0x112)](),_0x312495={},_0x3ac1fa=Object[_0x57e8d1(0xf5)](_0x1d76f1[_0x57e8d1(0x113)]()['map_']),_0x43354d={'product':_0x521bed[_0x57e8d1(0xeb)](getObservabilityLinkedProductName,_0x3ac1fa),'capabilities':_0x3ac1fa,'platform':_0x3fc44f['getPlatform'](),'platform_version':_0x521bed[_0x57e8d1(0xeb)](getPlatformVersion,_0x521bed[_0x57e8d1(0xe9)](global[_0x57e8d1(0x102)],_0x521bed[_0x57e8d1(0x104)])),'browser':_0x3fc44f[_0x57e8d1(0xfc)](),'browser_version':_0x3fc44f[_0x57e8d1(0x111)](),'session_id':_0x1d76f1[_0x57e8d1(0xda)]()};global[_0x57e8d1(0x102)]?_0x312495[global['__cloud_provider___']]=_0x43354d:_0x312495[_0x521bed[_0x57e8d1(0x118)]]=_0x43354d,process[_0x57e8d1(0xe1)](_0x57e8d1(0xd7)+process[_0x57e8d1(0xe6)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x521bed[_0x57e8d1(0xf6)],'http_response':_0x312495,'uuid':_0x11de18});}catch(_0xf6791a){_0x521bed[_0x57e8d1(0xeb)](debug,_0x57e8d1(0xd0)+_0xf6791a);}},exports[a31_0x190ebf(0xf3)]=_0x51675f=>{const _0x5d99a4=a31_0x190ebf,_0x54c06a={};_0x54c06a[_0x5d99a4(0x114)]=function(_0x359871,_0x412ff6){return _0x359871!==_0x412ff6;},_0x54c06a[_0x5d99a4(0xc5)]=_0x5d99a4(0x120),_0x54c06a['UwfnU']=function(_0x3f215e,_0x2713dd){return _0x3f215e!==_0x2713dd;},_0x54c06a[_0x5d99a4(0x10e)]=_0x5d99a4(0xcd),_0x54c06a[_0x5d99a4(0xe0)]=_0x5d99a4(0xe4);const _0x5116a1=_0x54c06a,_0xd0c86a=_0x51675f[_0x5d99a4(0x11a)][_0x5d99a4(0x116)]((_0x281066,_0x526175)=>{const _0x585512=_0x5d99a4,_0x4efe82=exports[_0x585512(0xf3)](_0x526175);return _0x4efe82&&(_0x281066=_0x281066[_0x585512(0x10f)](_0x4efe82)),_0x281066;},[]),_0x207f95=_0x51675f[_0x5d99a4(0xd2)][_0x5d99a4(0x11b)](_0x3661ee=>{const _0x54136a=_0x5d99a4,_0x5849f1=_0x5116a1[_0x54136a(0x114)](_0x3661ee[_0x54136a(0xd4)],_0x5116a1[_0x54136a(0xc5)])&&!_0x3661ee[_0x54136a(0xf4)]&&_0x5116a1[_0x54136a(0xca)](_0x3661ee[_0x54136a(0x11e)],_0x5116a1[_0x54136a(0x10e)])&&_0x5116a1[_0x54136a(0xca)](_0x3661ee[_0x54136a(0x11e)],_0x5116a1[_0x54136a(0xe0)])&&!_0x3661ee[_0x54136a(0xee)];return _0x5849f1;});return _0x207f95[_0x5d99a4(0x10f)](_0xd0c86a);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x72062f=a32_0x1e59;(function(_0x3965c1,_0x555c02){const _0xd037ae=a32_0x1e59,_0x535ff6=_0x3965c1();while(!![]){try{const _0x4728b2=parseInt(_0xd037ae(0x106))/0x1+parseInt(_0xd037ae(0xcb))/0x2+-parseInt(_0xd037ae(0xc6))/0x3+parseInt(_0xd037ae(0xea))/0x4+-parseInt(_0xd037ae(0xf8))/0x5+-parseInt(_0xd037ae(0xb6))/0x6+-parseInt(_0xd037ae(0xf7))/0x7*(-parseInt(_0xd037ae(0xd2))/0x8);if(_0x4728b2===_0x555c02)break;else _0x535ff6['push'](_0x535ff6['shift']());}catch(_0x4214f){_0x535ff6['push'](_0x535ff6['shift']());}}}(a32_0x14bf,0x62294));function a32_0x1e59(_0x22aec8,_0xa94d0e){const _0x14bf97=a32_0x14bf();return a32_0x1e59=function(_0x1e59b8,_0x2787d9){_0x1e59b8=_0x1e59b8-0xa5;let _0x3dc7d7=_0x14bf97[_0x1e59b8];return _0x3dc7d7;},a32_0x1e59(_0x22aec8,_0xa94d0e);}function a32_0x14bf(){const _0x5f5a32=['../../helpers/testhub/utils','shift','thTestRunUuid','length','startMonitoring','../../helpers/accessibility-automation/helper','isArray','JXQqO','__skipSessionName','Passed','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','YXtFJ','https:','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','saveTestResults','getCurrentUrl','mochaHooks','1920120KyVoIK','executeScript','setGlobal','percyCaptureMode','../../helpers/logger','stringify','Performing\x20scan\x20before\x20saving\x20results','timeout','VFJri','fqlvJ','\x20-\x20','pIlHM','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','env','olWaz','accessibilityScanStarted','752799vkfzBs','join','MQjAi','SCnOQ','testAnalyticsId','735964UcliTr','__sessionFailed','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','sessionNameSet__','UuKKW','TERpA',',\x22level\x22:\x20\x22','1640iDoMoe','thBuildUuid','titlePath','Automate\x20test\x20case\x20execution\x20has\x20started.','../../helpers/globals','BROWSERSTACK_TESTHUB_UUID','../../helpers/helper','KaDfS','ObservabilitySync:','QlAxr','bstackA11yShouldScan','currentTest','passed','debug','Failed:\x20','driverCleanup','EiqPi','ENV_VAR','err','then','protocol','failed','XrdEr','thJwtToken','2455436XNnxbw','stopMonitoring','now','testcase','../../helpers/accessibility-automation/scripts','zFaSo','util','app','\x22}}','isAccessibilityPlatform','winstonLogger','QNdKh','executeAsyncScript','16093hsjlwL','3177720yAYotb','hWmuI','message','CHaOH','hXMqM','capabilities','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','error','session_','http:','YSUPs','EcDSH','shouldScanTestForAccessibility','../../helpers/performance-tester','155429MZfNvA','quitCount_','../../helpers/percy/utils','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','CFOFB','ZIJwJ','browserstackSessionName','__drivers','info','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','.\x20Error\x20:','\x20|\x20','percy','format','state','getGlobal','bxrUv','__error_messages__'];a32_0x14bf=function(){return _0x5f5a32;};return a32_0x14bf();}const util=require(a32_0x72062f(0xf0)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x72062f(0xaa)),{percyAutoCapture}=require(a32_0x72062f(0x108)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a32_0x72062f(0xd8)),PerformanceTester=require(a32_0x72062f(0x105)),scripts=require(a32_0x72062f(0xee)),globals=require(a32_0x72062f(0xd6)),logger=require(a32_0x72062f(0xba))[a32_0x72062f(0xf4)],{shouldProcessEventForTesthub}=require(a32_0x72062f(0xa5)),testHubConstants=require('../../helpers/testhub/constants');exports[a32_0x72062f(0xb5)]={'beforeAll'(){const _0x454744=a32_0x72062f,_0x51d9e1={'JXQqO':function(_0x69f964,_0x2116f3,_0x3d0541,_0x4daa3e){return _0x69f964(_0x2116f3,_0x3d0541,_0x4daa3e);},'UuKKW':_0x454744(0xe7),'VFJri':_0x454744(0x111),'ZIJwJ':function(_0x26dfc3,_0x12585e,_0x2c4b7b){return _0x26dfc3(_0x12585e,_0x2c4b7b);},'CHaOH':_0x454744(0xde),'CFOFB':function(_0x4a81fb){return _0x4a81fb();},'WGZfz':function(_0x5adcab,_0x485564,_0x19c9fe){return _0x5adcab(_0x485564,_0x19c9fe);}};PerformanceTester[_0x454744(0xa9)]();const _0x1bbb49='browserstack internal helper hook';global['__error_messages__']=[],global[_0x454744(0xcc)]=![],global[_0x454744(0xe1)]=async()=>{const _0x52dfdc=_0x454744;let _0x5bfd2b=![];try{await global[_0x52dfdc(0x10d)][0x0][_0x52dfdc(0x100)],_0x5bfd2b=!![],global['__sessionFailed']?await _0x51d9e1[_0x52dfdc(0xac)](markSessionStatus,global[_0x52dfdc(0x10d)][0x0],_0x51d9e1[_0x52dfdc(0xcf)],global[_0x52dfdc(0x117)][_0x52dfdc(0xc7)](_0x51d9e1[_0x52dfdc(0xbe)])):await _0x51d9e1[_0x52dfdc(0x10b)](markSessionStatus,global[_0x52dfdc(0x10d)][0x0],_0x51d9e1[_0x52dfdc(0xfb)]);}catch(_0x3b14e1){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0x5bfd2b)try{try{_0x51d9e1[_0x52dfdc(0x10a)](shouldProcessEventForTesthub)&&(global[_0x52dfdc(0x10d)][0x0]&&await _0x51d9e1['WGZfz'](sendPlatformDetails,global[_0x52dfdc(0x10d)][0x0],this[_0x52dfdc(0xdd)]?this[_0x52dfdc(0xdd)][_0x52dfdc(0xca)]:null));}catch{}await global[_0x52dfdc(0x10d)][0x0]['initQuit']();}catch(_0x5385fb){}};},'beforeEach'(_0x2ce961){const _0x513432=a32_0x72062f,_0x3772c7={'olWaz':function(_0x35bff6,_0xb08b1d){return _0x35bff6>_0xb08b1d;},'hXMqM':_0x513432(0xc0),'pDNsq':function(_0xf128ba,_0x370ce8,_0x43b004){return _0xf128ba(_0x370ce8,_0x43b004);},'QPftx':_0x513432(0xdc),'YSUPs':function(_0x2c988f){return _0x2c988f();},'TERpA':_0x513432(0xf3),'QNdKh':function(_0x2a9f06,_0x250f69){return _0x2a9f06===_0x250f69;},'kbMGc':_0x513432(0x101),'GgMap':_0x513432(0xb1),'fqlvJ':_0x513432(0xaf),'XrdEr':_0x513432(0xd5),'DETeP':function(_0x5181be){return _0x5181be();}};new Promise(async _0x2a766c=>{const _0x96baef=_0x513432,_0x368ea1='browserstack internal helper hook';let _0xc88da7=!![];try{_0x3772c7['olWaz'](global['__drivers']['length'],0x1)&&(await global[_0x96baef(0xe1)](),global['__drivers'][_0x96baef(0xa6)]()),_0x3772c7[_0x96baef(0xc4)](global['__drivers'][0x0][_0x96baef(0x107)],0x0)&&(_0xc88da7=![],await global[_0x96baef(0xe1)]());}catch{}try{Array[_0x96baef(0xab)](global[_0x96baef(0x10d)])&&global['__drivers'][0x0]&&(global['__drivers'][0x0][_0x96baef(0x10c)]=this[_0x96baef(0xdd)][_0x96baef(0xd4)]()[_0x96baef(0xc7)](_0x3772c7[_0x96baef(0xfc)])),global[_0x96baef(0x10c)]=this[_0x96baef(0xdd)]['titlePath']()[_0x96baef(0xc7)](_0x3772c7[_0x96baef(0xfc)]);}catch(_0x1bc939){logger[_0x96baef(0xdf)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x1bc939);}this['currentTest'][_0x96baef(0x104)]=_0x3772c7['pDNsq'](shouldScanTestForAccessibility,this['currentTest']['titlePath'](),!![]),globals[_0x96baef(0xb8)](_0x3772c7['QPftx'],this[_0x96baef(0xdd)]['shouldScanTestForAccessibility']),this[_0x96baef(0xdd)]['accessibilityScanStarted']=!![];if(_0x3772c7[_0x96baef(0x102)](isAccessibilityAutomationSession)&&_0xc88da7&&Array[_0x96baef(0xab)](global[_0x96baef(0x10d)])&&_0x3772c7['olWaz'](global[_0x96baef(0x10d)]['length'],0x0)&&globals[_0x96baef(0x115)](_0x3772c7[_0x96baef(0xd0)]))try{const _0x42af4d=await global['__drivers'][0x0]['session_'];if(_0x42af4d){let _0x605e0b=!![];const _0x5f2606=await global[_0x96baef(0x10d)][0x0][_0x96baef(0xb4)]();let _0xa0fb3e;try{_0xa0fb3e=new URL(_0x5f2606);}catch(_0x1f731e){_0x605e0b=![];}_0x605e0b=_0x3772c7[_0x96baef(0xf5)](_0xa0fb3e[_0x96baef(0xe6)],_0x3772c7['kbMGc'])||_0x3772c7[_0x96baef(0xf5)](_0xa0fb3e[_0x96baef(0xe6)],_0x3772c7['GgMap']),_0x605e0b&&(this[_0x96baef(0xdd)][_0x96baef(0x104)]&&logger[_0x96baef(0x10e)](_0x3772c7[_0x96baef(0xbf)])),this[_0x96baef(0xdd)][_0x96baef(0xc5)]=this[_0x96baef(0xdd)]['shouldScanTestForAccessibility'],this[_0x96baef(0xdd)]['shouldScanTestForAccessibility']&&logger[_0x96baef(0x10e)](_0x3772c7[_0x96baef(0xe8)]);}}catch(_0x5964aa){logger[_0x96baef(0xff)](_0x96baef(0xb2)+util[_0x96baef(0x113)](_0x5964aa));}_0x3772c7['DETeP'](_0x2a766c);})[_0x513432(0xe5)](_0x2ce961);},'afterEach'(_0x739742){const _0x25c8b0=a32_0x72062f,_0x4d2669={'pIlHM':function(_0x3b1441,_0x492dd7){return _0x3b1441>_0x492dd7;},'smowp':function(_0x5a726f,_0x2653c7){return _0x5a726f===_0x2653c7;},'hWmuI':_0x25c8b0(0xed),'WgaXi':function(_0x81ee08,_0x37fc75){return _0x81ee08>_0x37fc75;},'YXtFJ':'appium:app','zFaSo':function(_0x268a53,_0x48f59a,_0x47adf7,_0x446d4f){return _0x268a53(_0x48f59a,_0x47adf7,_0x446d4f);},'LoCPP':_0x25c8b0(0xc0),'PiuZK':function(_0x365238,_0x56f65d){return _0x365238!==_0x56f65d;},'GPlca':_0x25c8b0(0xde),'EcDSH':function(_0x482d39,_0xc214c1,_0x2fff28){return _0x482d39(_0xc214c1,_0x2fff28);},'WlgUV':function(_0x4aba37,_0x5d4624){return _0x4aba37+_0x5d4624;},'KaDfS':_0x25c8b0(0xe0),'kLpOs':'error','yrFFO':_0x25c8b0(0xae),'mtyxB':_0x25c8b0(0x10e),'MQjAi':_0x25c8b0(0xf3),'TLKCy':_0x25c8b0(0xdc),'QlAxr':_0x25c8b0(0x109),'aXgnL':_0x25c8b0(0xbc),'TAMhp':_0x25c8b0(0xfe),'bxrUv':function(_0x52feef){return _0x52feef();},'SCnOQ':'debug','CrwVv':function(_0x519e0a,_0x5a7c5c){return _0x519e0a>_0x5a7c5c;}},_0x14b6ee='browserstack internal helper hook';this[_0x25c8b0(0xbd)](0xfde8);const _0x5288ba=async(_0x1f64a5,_0x1fa81a)=>{const _0xd5650e=_0x25c8b0;await global[_0xd5650e(0x10d)][0x0][_0xd5650e(0xb7)](_0xd5650e(0xcd)+_0x1f64a5+_0xd5650e(0xd1)+_0x1fa81a+_0xd5650e(0xf2));};new Promise(async _0x541864=>{const _0x228618=_0x25c8b0;try{_0x4d2669[_0x228618(0xc1)](global[_0x228618(0x10d)][_0x228618(0xa8)],0x1)&&(await global[_0x228618(0xe1)](),global[_0x228618(0x10d)]['shift'](),global[_0x228618(0x117)]=[],global[_0x228618(0xcc)]=![]);try{if(global[_0x228618(0x112)]&&_0x4d2669['smowp'](global[_0x228618(0xb9)],_0x4d2669[_0x228618(0xf9)])&&global[_0x228618(0x10d)][0x0]){const _0x5d088e=_0x4d2669['WgaXi'](global[_0x228618(0xfd)][_0x228618(0xa8)],0x0)?!!global[_0x228618(0xfd)][0x0][_0x228618(0xf1)]||!!global[_0x228618(0xfd)][0x0][_0x4d2669[_0x228618(0xb0)]]:![],_0x1322f5={};_0x1322f5[_0x228618(0xf1)]=_0x5d088e,await _0x4d2669[_0x228618(0xef)](percyAutoCapture,global[_0x228618(0x10d)][0x0],_0x4d2669['hWmuI'],_0x1322f5);}}catch(_0x219083){}!global[_0x228618(0xad)]&&(await global[_0x228618(0x10d)][0x0]['executeScript'](_0x228618(0xc2)+JSON[_0x228618(0xbb)](this[_0x228618(0xdd)]['titlePath']()[_0x228618(0xc7)](_0x4d2669['LoCPP']))+'}}'),global[_0x228618(0x10d)][0x0][_0x228618(0xce)]=!![]);const _0x4b2da6=_0x4d2669['PiuZK'](this[_0x228618(0xdd)][_0x228618(0x114)],_0x4d2669['GPlca']);_0x4b2da6?(global[_0x228618(0xcc)]=!![],global[_0x228618(0x117)]['push'](this['currentTest'][_0x228618(0xe4)][_0x228618(0xfa)]),await _0x4d2669[_0x228618(0x103)](_0x5288ba,JSON[_0x228618(0xbb)](_0x4d2669['WlgUV'](_0x4d2669[_0x228618(0xd9)],this[_0x228618(0xdd)]['err'][_0x228618(0xfa)])),_0x4d2669['kLpOs'])):await _0x4d2669[_0x228618(0x103)](_0x5288ba,JSON[_0x228618(0xbb)](_0x4d2669['yrFFO']),_0x4d2669['mtyxB']);}catch(_0x2d211a){}try{if(this['currentTest'][_0x228618(0xc5)]&&globals['getGlobal'](_0x4d2669[_0x228618(0xc8)])&&globals['getGlobal'](_0x4d2669['TLKCy'])){logger[_0x228618(0x10e)](_0x4d2669[_0x228618(0xdb)]);const _0x3e43f5={};_0x3e43f5[_0x228618(0xa7)]=this[_0x228618(0xdd)][_0x228618(0xca)],_0x3e43f5[_0x228618(0xd3)]=process[_0x228618(0xc3)][testHubConstants['ENV_VAR'][_0x228618(0xd7)]],_0x3e43f5[_0x228618(0xe9)]=process[_0x228618(0xc3)][testHubConstants[_0x228618(0xe3)]['BROWSERSTACK_TESTHUB_JWT']];const _0x213555=_0x3e43f5;logger[_0x228618(0xdf)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x228618(0xbb)](_0x213555)),logger[_0x228618(0xdf)](_0x4d2669['aXgnL']),logger[_0x228618(0xdf)](util[_0x228618(0x113)](await global[_0x228618(0x10d)][0x0][_0x228618(0xf6)](scripts['performScan'],{'method':global[_0x228618(0x10c)]}))),await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x228618(0xb3)],_0x213555),logger[_0x228618(0x10e)](_0x4d2669['TAMhp']);}}catch(_0x446900){logger[_0x228618(0xff)](_0x228618(0x10f)+this[_0x228618(0xdd)]['titlePath']()+_0x228618(0x110),_0x446900);}try{try{if(_0x4d2669[_0x228618(0x116)](shouldProcessEventForTesthub)){global[_0x228618(0x10d)][0x0]&&await _0x4d2669[_0x228618(0x103)](sendPlatformDetails,global[_0x228618(0x10d)][0x0],this['currentTest']?this['currentTest'][_0x228618(0xca)]:null);if(_0x4d2669[_0x228618(0x116)](isBrowserstackInfra)){const _0x3d7260=_0x228618(0xda)+Date[_0x228618(0xec)]();await _0x4d2669['EcDSH'](_0x5288ba,JSON[_0x228618(0xbb)](_0x3d7260),_0x4d2669[_0x228618(0xc9)]);}}}catch{}_0x4d2669['CrwVv'](global['__drivers'][0x0][_0x228618(0x107)],0x0)&&await global['driverCleanup']();}catch(_0x197134){}_0x4d2669['bxrUv'](_0x541864);})[_0x25c8b0(0xe5)](()=>_0x739742());},'afterAll'(_0x9d57f9){const _0x459ac4=a32_0x72062f,_0x20883f={'EiqPi':function(_0x5651ad){return _0x5651ad();}},_0x199593='browserstack internal helper hook';this[_0x459ac4(0xbd)](0xfde8),new Promise(async _0x5db866=>{const _0x585b6f=_0x459ac4;PerformanceTester[_0x585b6f(0xeb)](),await global[_0x585b6f(0xe1)](),_0x20883f[_0x585b6f(0xe2)](_0x5db866);})['then'](()=>_0x9d57f9());}};
|
|
1
|
+
const a32_0x36d5f8=a32_0x36d3;(function(_0x19abd8,_0x4ffaba){const _0x4fcff9=a32_0x36d3,_0x10f4cb=_0x19abd8();while(!![]){try{const _0x26b583=-parseInt(_0x4fcff9(0x11a))/0x1*(-parseInt(_0x4fcff9(0x181))/0x2)+parseInt(_0x4fcff9(0x15a))/0x3*(-parseInt(_0x4fcff9(0x139))/0x4)+-parseInt(_0x4fcff9(0x16d))/0x5+-parseInt(_0x4fcff9(0x119))/0x6+parseInt(_0x4fcff9(0x150))/0x7+-parseInt(_0x4fcff9(0x184))/0x8+parseInt(_0x4fcff9(0x13f))/0x9;if(_0x26b583===_0x4ffaba)break;else _0x10f4cb['push'](_0x10f4cb['shift']());}catch(_0x34bb13){_0x10f4cb['push'](_0x10f4cb['shift']());}}}(a32_0x2032,0x9588d));function a32_0x36d3(_0x175625,_0x821c7){const _0x2032fe=a32_0x2032();return a32_0x36d3=function(_0x36d358,_0x47f030){_0x36d358=_0x36d358-0x10f;let _0x312226=_0x2032fe[_0x36d358];return _0x312226;},a32_0x36d3(_0x175625,_0x821c7);}function a32_0x2032(){const _0x319e2d=['15004782LiYEiQ','AZmmR','stopMonitoring','qfJro','Failed:\x20','passed','lJrjT','\x20|\x20','performScan','POBbm','winstonLogger','wKrwK','../../helpers/accessibility-automation/helper','browserstackSessionName','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','sqkQR','timeout','5291839FnYCev','LJcSV','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','testAnalyticsId','__drivers','BROWSERSTACK_TESTHUB_UUID','ENV_VAR','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','mGSwM','ZkQTD','319065gCJYLG','vinDO','TNOxT','info','then','capabilities','../../helpers/performance-tester','../../helpers/testhub/utils','debug','isArray','env','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','LUulY','eHHuz','currentTest','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','executeAsyncScript','sessionNameSet__','KGVAY','4521975Dugewk','saveTestResults','format','protocol','state','stringify','Automate\x20test\x20case\x20execution\x20has\x20started.','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','appium:app','getCurrentUrl','pTVqE','shift','PSSDV','zbZnN','push','tGcaO','thJwtToken','percy','geNME','http:','2blHCsS','mushv','session_','6863720nNTNBT','ACKEw','accessibilityScanStarted','__error_messages__','gKBAH','../../helpers/accessibility-automation/scripts','ITvDC','shouldScanTestForAccessibility','kBUSf','../../helpers/testhub/constants','titlePath','app','yaCHm','isAccessibilityPlatform','__sessionFailed','hxQze','err','executeScript','199620bYeoMr','91303mIzkpW','error','now','getGlobal','Ajogq','kheCf','.\x20Error\x20:','startMonitoring','length','Ixlnd','bstackA11yShouldScan','Exxbp','../../helpers/logger','Failed\x20to\x20store\x20session\x20name:\x20','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','../../helpers/percy/utils','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','\x20-\x20','../../helpers/helper','https:','failed','quitCount_','testcase','FSnha','Passed','setGlobal','util','BROWSERSTACK_TESTHUB_JWT','sHEIS','ObservabilitySync:','driverCleanup','4XgJkyb','soXzs','thTestRunUuid','DxiCP','join','NaJEa'];a32_0x2032=function(){return _0x319e2d;};return a32_0x2032();}const util=require(a32_0x36d5f8(0x134)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x36d5f8(0x14b)),{percyAutoCapture}=require(a32_0x36d5f8(0x129)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a32_0x36d5f8(0x12c)),PerformanceTester=require(a32_0x36d5f8(0x160)),scripts=require(a32_0x36d5f8(0x189)),globals=require('../../helpers/globals'),logger=require(a32_0x36d5f8(0x126))[a32_0x36d5f8(0x149)],{shouldProcessEventForTesthub}=require(a32_0x36d5f8(0x161)),testHubConstants=require(a32_0x36d5f8(0x110));exports['mochaHooks']={'beforeAll'(){const _0x152836=a32_0x36d5f8,_0x1b0a3a={'kheCf':function(_0x2b9594,_0x5a894d,_0x365d78,_0x1b766d){return _0x2b9594(_0x5a894d,_0x365d78,_0x1b766d);},'vinDO':_0x152836(0x12e),'NaJEa':_0x152836(0x146),'pTVqE':function(_0x26ae1f,_0x348640,_0x50f802){return _0x26ae1f(_0x348640,_0x50f802);},'gKBAH':_0x152836(0x144),'zbZnN':function(_0x36a51a){return _0x36a51a();}};PerformanceTester[_0x152836(0x121)]();const _0x30d3e9='browserstack internal helper hook';global[_0x152836(0x187)]=[],global[_0x152836(0x115)]=![],global['driverCleanup']=async()=>{const _0x403bd1=_0x152836;let _0x99d59e=![];try{await global['__drivers'][0x0]['session_'],_0x99d59e=!![],global[_0x403bd1(0x115)]?await _0x1b0a3a[_0x403bd1(0x11f)](markSessionStatus,global['__drivers'][0x0],_0x1b0a3a[_0x403bd1(0x15b)],global['__error_messages__'][_0x403bd1(0x13d)](_0x1b0a3a[_0x403bd1(0x13e)])):await _0x1b0a3a[_0x403bd1(0x177)](markSessionStatus,global[_0x403bd1(0x154)][0x0],_0x1b0a3a[_0x403bd1(0x188)]);}catch(_0xcc8fed){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0x99d59e)try{try{_0x1b0a3a[_0x403bd1(0x17a)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x1b0a3a[_0x403bd1(0x177)](sendPlatformDetails,global['__drivers'][0x0],this[_0x403bd1(0x168)]?this[_0x403bd1(0x168)][_0x403bd1(0x153)]:null));}catch{}await global[_0x403bd1(0x154)][0x0]['initQuit']();}catch(_0x546449){}};},'beforeEach'(_0x3b9972){const _0x4611ce=a32_0x36d5f8,_0x99759b={'mGSwM':function(_0x23f29b,_0x3e37f8){return _0x23f29b>_0x3e37f8;},'Ixlnd':_0x4611ce(0x12b),'ZkQTD':function(_0x4d8419,_0xd45d43,_0x263190){return _0x4d8419(_0xd45d43,_0x263190);},'yEEDD':'bstackA11yShouldScan','LUulY':function(_0x132ae1){return _0x132ae1();},'sHEIS':function(_0x3f64ef,_0x403d04){return _0x3f64ef>_0x403d04;},'ckzIp':_0x4611ce(0x114),'wKrwK':function(_0xb257d8,_0x130c92){return _0xb257d8===_0x130c92;},'ACKEw':_0x4611ce(0x180),'ANxUI':function(_0x3fb6b3,_0x4fbc37){return _0x3fb6b3===_0x4fbc37;},'lJrjT':_0x4611ce(0x12d),'GaJRf':_0x4611ce(0x165),'qfJro':_0x4611ce(0x173)};new Promise(async _0x3edbc1=>{const _0x339a69=_0x4611ce,_0x5c6d33='browserstack internal helper hook';let _0xc7b38f=!![];try{_0x99759b[_0x339a69(0x158)](global[_0x339a69(0x154)]['length'],0x1)&&(await global[_0x339a69(0x138)](),global[_0x339a69(0x154)][_0x339a69(0x178)]()),_0x99759b[_0x339a69(0x158)](global['__drivers'][0x0][_0x339a69(0x12f)],0x0)&&(_0xc7b38f=![],await global[_0x339a69(0x138)]());}catch{}try{Array['isArray'](global[_0x339a69(0x154)])&&global[_0x339a69(0x154)][0x0]&&(global[_0x339a69(0x154)][0x0][_0x339a69(0x14c)]=this[_0x339a69(0x168)][_0x339a69(0x111)]()[_0x339a69(0x13d)](_0x99759b[_0x339a69(0x123)])),global[_0x339a69(0x14c)]=this[_0x339a69(0x168)]['titlePath']()['join'](_0x99759b[_0x339a69(0x123)]);}catch(_0x5ef844){logger['debug'](_0x339a69(0x127)+_0x5ef844);}this[_0x339a69(0x168)][_0x339a69(0x18b)]=_0x99759b[_0x339a69(0x159)](shouldScanTestForAccessibility,this['currentTest'][_0x339a69(0x111)](),!![]),globals[_0x339a69(0x133)](_0x99759b['yEEDD'],this[_0x339a69(0x168)]['shouldScanTestForAccessibility']),this[_0x339a69(0x168)][_0x339a69(0x186)]=!![];if(_0x99759b[_0x339a69(0x166)](isAccessibilityAutomationSession)&&_0xc7b38f&&Array[_0x339a69(0x163)](global['__drivers'])&&_0x99759b[_0x339a69(0x136)](global['__drivers']['length'],0x0)&&globals[_0x339a69(0x11d)](_0x99759b['ckzIp']))try{const _0xbf3358=await global[_0x339a69(0x154)][0x0][_0x339a69(0x183)];if(_0xbf3358){let _0x11571b=!![];const _0x438bde=await global[_0x339a69(0x154)][0x0][_0x339a69(0x176)]();let _0x166edc;try{_0x166edc=new URL(_0x438bde);}catch(_0x28731b){_0x11571b=![];}_0x11571b=_0x99759b[_0x339a69(0x14a)](_0x166edc[_0x339a69(0x170)],_0x99759b[_0x339a69(0x185)])||_0x99759b['ANxUI'](_0x166edc[_0x339a69(0x170)],_0x99759b[_0x339a69(0x145)]),_0x11571b&&(this['currentTest'][_0x339a69(0x18b)]&&logger[_0x339a69(0x15d)](_0x99759b['GaJRf'])),this[_0x339a69(0x168)][_0x339a69(0x186)]=this[_0x339a69(0x168)][_0x339a69(0x18b)],this[_0x339a69(0x168)][_0x339a69(0x18b)]&&logger[_0x339a69(0x15d)](_0x99759b[_0x339a69(0x142)]);}}catch(_0x203b26){logger[_0x339a69(0x11b)](_0x339a69(0x14d)+util[_0x339a69(0x16f)](_0x203b26));}_0x99759b[_0x339a69(0x166)](_0x3edbc1);})[_0x4611ce(0x15e)](_0x3b9972);},'afterEach'(_0xa1de02){const _0x4ce2bc=a32_0x36d5f8,_0x22d38b={'kBUSf':function(_0x1a068e,_0xe0f87d){return _0x1a068e>_0xe0f87d;},'Exxbp':function(_0xda9d2e,_0x2ef0d8){return _0xda9d2e===_0x2ef0d8;},'Ajogq':_0x4ce2bc(0x130),'sqkQR':_0x4ce2bc(0x175),'yaCHm':function(_0x524c9b,_0x5945d7,_0x2fba46,_0x3563c1){return _0x524c9b(_0x5945d7,_0x2fba46,_0x3563c1);},'TZQpr':_0x4ce2bc(0x12b),'geNME':function(_0x2cbd54,_0x51286b){return _0x2cbd54!==_0x51286b;},'hxQze':_0x4ce2bc(0x144),'wmdVn':function(_0x27da60,_0x5db1fb,_0x3111f0){return _0x27da60(_0x5db1fb,_0x3111f0);},'DxiCP':function(_0x3d80e2,_0x43ef01){return _0x3d80e2+_0x43ef01;},'KGVAY':_0x4ce2bc(0x143),'eHHuz':_0x4ce2bc(0x11b),'NVwvJ':_0x4ce2bc(0x132),'ITvDC':_0x4ce2bc(0x15d),'tGcaO':'isAccessibilityPlatform','soXzs':_0x4ce2bc(0x124),'POBbm':_0x4ce2bc(0x157),'TNOxT':'Performing\x20scan\x20before\x20saving\x20results','mushv':_0x4ce2bc(0x12a),'AZmmR':function(_0x4d56db){return _0x4d56db();},'PSSDV':function(_0x106508,_0x213a09,_0x117dfe){return _0x106508(_0x213a09,_0x117dfe);},'YFqIk':function(_0x74bfbc,_0xd8c84,_0x454c6c){return _0x74bfbc(_0xd8c84,_0x454c6c);},'LJcSV':'debug','tXYqV':function(_0x3177e4){return _0x3177e4();}},_0x2a19fb='browserstack internal helper hook';this[_0x4ce2bc(0x14f)](0xfde8);const _0x56b6a6=async(_0xb78e62,_0x572009)=>{const _0x5f119e=_0x4ce2bc;await global[_0x5f119e(0x154)][0x0][_0x5f119e(0x118)](_0x5f119e(0x152)+_0xb78e62+',\x22level\x22:\x20\x22'+_0x572009+'\x22}}');};new Promise(async _0x5e68b8=>{const _0x5a4f8d=_0x4ce2bc;try{_0x22d38b[_0x5a4f8d(0x10f)](global[_0x5a4f8d(0x154)][_0x5a4f8d(0x122)],0x1)&&(await global[_0x5a4f8d(0x138)](),global[_0x5a4f8d(0x154)][_0x5a4f8d(0x178)](),global['__error_messages__']=[],global['__sessionFailed']=![]);try{if(global[_0x5a4f8d(0x17e)]&&_0x22d38b[_0x5a4f8d(0x125)](global['percyCaptureMode'],_0x22d38b['Ajogq'])&&global['__drivers'][0x0]){const _0x5646fb=_0x22d38b['kBUSf'](global[_0x5a4f8d(0x15f)][_0x5a4f8d(0x122)],0x0)?!!global[_0x5a4f8d(0x15f)][0x0][_0x5a4f8d(0x112)]||!!global[_0x5a4f8d(0x15f)][0x0][_0x22d38b[_0x5a4f8d(0x14e)]]:![],_0x50d5cc={};_0x50d5cc[_0x5a4f8d(0x112)]=_0x5646fb,await _0x22d38b[_0x5a4f8d(0x113)](percyAutoCapture,global['__drivers'][0x0],_0x22d38b[_0x5a4f8d(0x11e)],_0x50d5cc);}}catch(_0x30472c){}!global['__skipSessionName']&&(await global[_0x5a4f8d(0x154)][0x0][_0x5a4f8d(0x118)](_0x5a4f8d(0x169)+JSON[_0x5a4f8d(0x172)](this[_0x5a4f8d(0x168)]['titlePath']()[_0x5a4f8d(0x13d)](_0x22d38b['TZQpr']))+'}}'),global[_0x5a4f8d(0x154)][0x0][_0x5a4f8d(0x16b)]=!![]);const _0x213e51=_0x22d38b[_0x5a4f8d(0x17f)](this[_0x5a4f8d(0x168)][_0x5a4f8d(0x171)],_0x22d38b[_0x5a4f8d(0x116)]);_0x213e51?(global[_0x5a4f8d(0x115)]=!![],global[_0x5a4f8d(0x187)][_0x5a4f8d(0x17b)](this['currentTest'][_0x5a4f8d(0x117)]['message']),await _0x22d38b['wmdVn'](_0x56b6a6,JSON[_0x5a4f8d(0x172)](_0x22d38b[_0x5a4f8d(0x13c)](_0x22d38b[_0x5a4f8d(0x16c)],this[_0x5a4f8d(0x168)]['err']['message'])),_0x22d38b[_0x5a4f8d(0x167)])):await _0x22d38b['wmdVn'](_0x56b6a6,JSON[_0x5a4f8d(0x172)](_0x22d38b['NVwvJ']),_0x22d38b[_0x5a4f8d(0x18a)]);}catch(_0x263393){}try{if(this[_0x5a4f8d(0x168)][_0x5a4f8d(0x186)]&&globals[_0x5a4f8d(0x11d)](_0x22d38b[_0x5a4f8d(0x17c)])&&globals[_0x5a4f8d(0x11d)](_0x22d38b[_0x5a4f8d(0x13a)])){logger['info'](_0x22d38b[_0x5a4f8d(0x148)]);const _0x56ace3={};_0x56ace3[_0x5a4f8d(0x13b)]=this[_0x5a4f8d(0x168)][_0x5a4f8d(0x153)],_0x56ace3['thBuildUuid']=process[_0x5a4f8d(0x164)][testHubConstants[_0x5a4f8d(0x156)][_0x5a4f8d(0x155)]],_0x56ace3[_0x5a4f8d(0x17d)]=process['env'][testHubConstants['ENV_VAR'][_0x5a4f8d(0x135)]];const _0x3035a1=_0x56ace3;logger[_0x5a4f8d(0x162)](_0x5a4f8d(0x128)+JSON[_0x5a4f8d(0x172)](_0x3035a1)),logger[_0x5a4f8d(0x162)](_0x22d38b[_0x5a4f8d(0x15c)]),logger[_0x5a4f8d(0x162)](util['format'](await global['__drivers'][0x0][_0x5a4f8d(0x16a)](scripts[_0x5a4f8d(0x147)],{'method':global[_0x5a4f8d(0x14c)]}))),await global[_0x5a4f8d(0x154)][0x0]['executeAsyncScript'](scripts[_0x5a4f8d(0x16e)],_0x3035a1),logger[_0x5a4f8d(0x15d)](_0x22d38b[_0x5a4f8d(0x182)]);}}catch(_0x186b7f){logger[_0x5a4f8d(0x11b)](_0x5a4f8d(0x174)+this['currentTest'][_0x5a4f8d(0x111)]()+_0x5a4f8d(0x120),_0x186b7f);}try{try{if(_0x22d38b[_0x5a4f8d(0x140)](shouldProcessEventForTesthub)){global[_0x5a4f8d(0x154)][0x0]&&await _0x22d38b[_0x5a4f8d(0x179)](sendPlatformDetails,global[_0x5a4f8d(0x154)][0x0],this[_0x5a4f8d(0x168)]?this[_0x5a4f8d(0x168)][_0x5a4f8d(0x153)]:null);if(_0x22d38b[_0x5a4f8d(0x140)](isBrowserstackInfra)){const _0x5591f5=_0x5a4f8d(0x137)+Date[_0x5a4f8d(0x11c)]();await _0x22d38b['YFqIk'](_0x56b6a6,JSON[_0x5a4f8d(0x172)](_0x5591f5),_0x22d38b[_0x5a4f8d(0x151)]);}}}catch{}_0x22d38b['kBUSf'](global[_0x5a4f8d(0x154)][0x0][_0x5a4f8d(0x12f)],0x0)&&await global[_0x5a4f8d(0x138)]();}catch(_0x176053){}_0x22d38b['tXYqV'](_0x5e68b8);})[_0x4ce2bc(0x15e)](()=>_0xa1de02());},'afterAll'(_0x4a8811){const _0x12f3e5=a32_0x36d5f8,_0x3dd98b={'FSnha':function(_0x4373b3){return _0x4373b3();}},_0x323533='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x17afe3=>{const _0x3e3745=a32_0x36d3;PerformanceTester[_0x3e3745(0x141)](),await global[_0x3e3745(0x138)](),_0x3dd98b[_0x3e3745(0x131)](_0x17afe3);})[_0x12f3e5(0x15e)](()=>_0x4a8811());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x17d2eb=a33_0x53c9;function a33_0x53c9(_0x1b93f3,_0x447a62){const _0x4e4b1b=a33_0x4e4b();return a33_0x53c9=function(_0x53c929,_0x20fe2c){_0x53c929=_0x53c929-0xc0;let _0x4ca7ea=_0x4e4b1b[_0x53c929];return _0x4ca7ea;},a33_0x53c9(_0x1b93f3,_0x447a62);}(function(_0x3249dc,_0x7cb83a){const _0x126467=a33_0x53c9,_0x226195=_0x3249dc();while(!![]){try{const _0x4fd15e=parseInt(_0x126467(0xec))/0x1*(parseInt(_0x126467(0xf9))/0x2)+-parseInt(_0x126467(0xf5))/0x3*(-parseInt(_0x126467(0xd6))/0x4)+-parseInt(_0x126467(0xda))/0x5*(parseInt(_0x126467(0x10c))/0x6)+-parseInt(_0x126467(0x103))/0x7*(-parseInt(_0x126467(0xe2))/0x8)+parseInt(_0x126467(0xd1))/0x9*(-parseInt(_0x126467(0xca))/0xa)+-parseInt(_0x126467(0x100))/0xb+parseInt(_0x126467(0xc4))/0xc;if(_0x4fd15e===_0x7cb83a)break;else _0x226195['push'](_0x226195['shift']());}catch(_0x26993f){_0x226195['push'](_0x226195['shift']());}}}(a33_0x4e4b,0xa7903));function a33_0x4e4b(){const _0x410fa6=['slice','winstonLogger','port','child_process','148hZQGIO','nightwatch.conf.js','nightwatch.cmd','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','112600EVoOgc','VrKMH','exports','czrsQ','length','ECCcm','start_process','../../helpers/BrowserStackSetup','32LZPTpH','RyDUj','findIndex','platforms','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','filter','config','HbHLE','child\x20process\x20exited\x20with\x20code\x20','qfuqq','76542IUfSVk','splice','modifyBrowserStackCaps','ZxMEe','existsSync','nightwatch','../../helpers/helper','vKcHo','hqFRX','87531EaMbff','isUndefined','oXzmO','host','6XtyaxC','desiredCapabilities','map','AiTQz','info','push','gSIHD','12069288KbpUXb','mfTKm','platform','1901669cwmRUZ','stringify','inherit','getPlatformName','selenium','hub.browserstack.com','nightwatch.json','nightwatch-browserstack.json','join','36IhUURk','env','test_settings','Getting\x20your\x20nightwatch\x20configs\x20from\x20','cwd','modifyBrowserStackW3CCaps','unlinkSync','now','wltUH','4917408OrEzFh','uqQoZ','path','FVqna','writeFileSync','trim','221740HXFJPk','vuHbC','debug','--env','forEach','useW3C','close','360rBsXUK'];a33_0x4e4b=function(){return _0x410fa6;};return a33_0x4e4b();}const fs=require('fs'),path=require(a33_0x17d2eb(0xc6)),{spawn}=require(a33_0x17d2eb(0xd5)),logger=require('../../helpers/logger')[a33_0x17d2eb(0xd3)],{default:BrowserStackSetup}=require(a33_0x17d2eb(0xe1)),helper=require(a33_0x17d2eb(0xf2)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x2c2bc7,_0x1bea3a)=>{const _0x10d814=a33_0x17d2eb,_0x537564={'ECCcm':_0x10d814(0xd7),'HbHLE':_0x10d814(0x109),'vKcHo':function(_0x38d993,_0x484424){return _0x38d993(_0x484424);},'FzOLm':_0x10d814(0xd9)};let _0x58c927=null,_0x41550a={};const _0x35bb69=_0x1bea3a[_0x10d814(0xe4)](_0xfb7f1a=>_0xfb7f1a==='--config');if(!helper[_0x10d814(0xf6)](_0x2c2bc7[_0x10d814(0xe8)])&&fs['existsSync'](path['join'](process[_0x10d814(0x110)](),_0x2c2bc7['config'])))_0x58c927=path[_0x10d814(0x10b)](process['cwd'](),_0x2c2bc7['config']),_0x1bea3a[_0x10d814(0xed)](_0x35bb69,0x2);else{if(fs[_0x10d814(0xf0)](path[_0x10d814(0x10b)](process[_0x10d814(0x110)](),_0x537564[_0x10d814(0xdf)])))_0x58c927=path['join'](process[_0x10d814(0x110)](),_0x537564[_0x10d814(0xdf)]);else fs[_0x10d814(0xf0)](path[_0x10d814(0x10b)](process['cwd'](),_0x537564[_0x10d814(0xe9)]))&&(_0x58c927=path[_0x10d814(0x10b)](process[_0x10d814(0x110)](),_0x537564['HbHLE']));}return _0x58c927?(logger[_0x10d814(0xfd)](_0x10d814(0x10f)+_0x58c927),_0x41550a=_0x537564[_0x10d814(0xf3)](require,_0x58c927)):logger[_0x10d814(0xfd)](_0x537564['FzOLm']),_0x41550a;},removeExistingEnvs=_0x7e27cd=>{const _0x2b705d=a33_0x17d2eb,_0x50fdaf={};_0x50fdaf[_0x2b705d(0xff)]=function(_0xf5583c,_0x426545){return _0xf5583c>_0x426545;};const _0x1906ac=_0x50fdaf;let _0xd376e4=_0x7e27cd[_0x2b705d(0xe4)](_0x427289=>_0x427289===_0x2b705d(0xcd));_0x1906ac[_0x2b705d(0xff)](_0xd376e4,-0x1)&&_0x7e27cd['splice'](_0xd376e4,0x2),_0xd376e4=_0x7e27cd['findIndex'](_0x303e64=>_0x303e64==='-e'),_0x1906ac[_0x2b705d(0xff)](_0xd376e4,-0x1)&&_0x7e27cd[_0x2b705d(0xed)](_0xd376e4,0x2);};function run(_0x378693,_0x44083c){const _0x140fe2=a33_0x17d2eb,_0x1a65f9={'VrKMH':_0x140fe2(0xf1),'hqFRX':function(_0x352989,_0x3e7d02){return _0x352989+_0x3e7d02;},'mfTKm':_0x140fe2(0x10e),'vuHbC':function(_0x2825cb,_0x4e9818,_0x2a7a42){return _0x2825cb(_0x4e9818,_0x2a7a42);},'czrsQ':_0x140fe2(0x108),'uqQoZ':_0x140fe2(0xe6),'FKTGa':function(_0x210fc5,_0x459663){return _0x210fc5===_0x459663;},'ektXR':_0x140fe2(0x10a),'ZgwHU':function(_0x32f19b,_0x75e7d5){return _0x32f19b(_0x75e7d5);},'qfuqq':function(_0x5d1e94,_0x5c4c67,_0x3700e4,_0x3e6148){return _0x5d1e94(_0x5c4c67,_0x3700e4,_0x3e6148);},'ZxMEe':_0x140fe2(0xd8),'JbSJt':'--config','FVqna':_0x140fe2(0xcd),'AiTQz':_0x140fe2(0x105),'RyDUj':_0x140fe2(0xd0)},_0x57f783=new BrowserStackSetup(_0x378693);if(!_0x57f783[_0x140fe2(0xe8)])return;const _0x21ff70=_0x1a65f9[_0x140fe2(0xcb)](getUserNightwatchConfigs,_0x378693,_0x44083c),_0xc4d68b={};_0xc4d68b[_0x140fe2(0xe0)]=![];const _0x349661={};_0x349661[_0x140fe2(0xf8)]=_0x1a65f9[_0x140fe2(0xdd)],_0x349661[_0x140fe2(0xd4)]=0x1bb;const _0x4191fe={};_0x4191fe['webdriver']=_0xc4d68b,_0x4191fe[_0x140fe2(0x107)]=_0x349661;const _0x57e348=_0x4191fe;logger['info'](_0x1a65f9[_0x140fe2(0xc5)]);const _0x320eab={..._0x21ff70},_0x3b792c=_0x320eab,_0x204a35=helper[_0x140fe2(0xcf)](_0x57f783['config']),_0x2c91a4=[];_0x57f783['config'][_0x140fe2(0xe5)][_0x140fe2(0xce)]((_0x47ed2c,_0x3a3af2)=>{const _0x17f9fe=_0x140fe2;_0x204a35?_0x2c91a4[_0x17f9fe(0xfe)](helper[_0x17f9fe(0xc0)](_0x57f783[_0x17f9fe(0xe8)],_0x1a65f9[_0x17f9fe(0xdb)],_0x3a3af2)):_0x2c91a4[_0x17f9fe(0xfe)](helper[_0x17f9fe(0xee)](_0x57f783[_0x17f9fe(0xe8)],_0x1a65f9[_0x17f9fe(0xdb)],_0x3a3af2));});const _0x18c8f3={},_0x43383b=[];_0x378693['env']=_0x378693[_0x140fe2(0x10d)]||_0x378693['e'];const _0x4f4693=_0x378693[_0x140fe2(0x10d)]?_0x378693[_0x140fe2(0x10d)][_0x140fe2(0xc9)]()['split'](',')[_0x140fe2(0xfb)](_0xb6c333=>_0xb6c333[_0x140fe2(0xc9)]())[_0x140fe2(0xe7)](_0x1320ff=>_0x1320ff!==''):[''];_0x1a65f9['FKTGa'](_0x4f4693[_0x140fe2(0xde)],0x0)&&_0x4f4693['push']('');_0x4f4693[_0x140fe2(0xce)](_0x5a5873=>{const _0x5ad8ba=_0x140fe2,_0x4b0a44={'wltUH':function(_0x50e64c,_0x141257){const _0x30100e=a33_0x53c9;return _0x1a65f9[_0x30100e(0xf4)](_0x50e64c,_0x141257);},'oXzmO':_0x1a65f9[_0x5ad8ba(0x101)]};_0x2c91a4['forEach'](_0x1f8c09=>{const _0x20965f=_0x5ad8ba;let _0x3024b7=_0x4b0a44[_0x20965f(0xc3)](helper[_0x20965f(0x106)](_0x1f8c09,'_'),'_'+Date[_0x20965f(0xc2)]());_0x5a5873&&(_0x3024b7+='_'+_0x5a5873);if(_0x5a5873&&(!_0x21ff70[_0x4b0a44[_0x20965f(0xf7)]]||!_0x21ff70[_0x4b0a44[_0x20965f(0xf7)]][_0x5a5873]))return;const _0x9692={..._0x57e348};_0x9692[_0x20965f(0xfa)]=_0x1f8c09;const _0x5aadd9=_0x9692;_0x18c8f3[_0x3024b7]=_0x5a5873?helper['mergeDeep'](_0x21ff70[_0x4b0a44[_0x20965f(0xf7)]][_0x5a5873],_0x5aadd9):_0x5aadd9,_0x43383b['push'](_0x3024b7);});});!_0x3b792c[_0x140fe2(0x10e)]&&(_0x3b792c[_0x140fe2(0x10e)]={});_0x3b792c[_0x140fe2(0x10e)]={..._0x3b792c[_0x140fe2(0x10e)],..._0x18c8f3};const _0x25dbdb=path['join'](__dirname,_0x1a65f9['ektXR']);fs[_0x140fe2(0xc8)](_0x25dbdb,JSON[_0x140fe2(0x104)](_0x3b792c)),_0x1a65f9['ZgwHU'](removeExistingEnvs,_0x44083c);const _0x4595c1=_0x1a65f9[_0x140fe2(0xeb)](spawn,/^win/['test'](process[_0x140fe2(0x102)])?_0x1a65f9[_0x140fe2(0xef)]:_0x1a65f9[_0x140fe2(0xdb)],[_0x1a65f9['JbSJt'],_0x25dbdb,..._0x44083c[_0x140fe2(0xd2)](0x1),_0x1a65f9[_0x140fe2(0xc7)],_0x43383b[_0x140fe2(0x10b)](',')],{'stdio':_0x1a65f9[_0x140fe2(0xfc)]});_0x4595c1['on'](_0x1a65f9[_0x140fe2(0xe3)],async _0x485510=>{const _0x9be935=_0x140fe2;logger[_0x9be935(0xcc)](_0x9be935(0xea)+_0x485510),logger[_0x9be935(0xfd)]('Deleting\x20'+_0x25dbdb),fs[_0x9be935(0xc1)](_0x25dbdb);});}module[a33_0x17d2eb(0xdc)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a34_0x448a(){const _0x55d158=['../../helpers/logger','platformValidation','goQpa','bstackSdkArgs','workerInfo','vEKSk','testInfo','MUjmf','getAccessibilityResultsSummary','602236meoxyC','KDtUf','5624122qhPCmg','accessibilityPlatform','2424kGARTN','Playwright','BS_A11Y_JWT','nWMXZ','project','EqWiP','debug','gXfGn','381392AJJtwS','EHQLq','executeScript','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','accessibilityOptions.includeIssueType.needsReview','dlbLN','browser','269400yxCQdx','jdYiR','nCEZD','No\x20accessibility\x20results\x20were\x20found.','ubgtk','setAccessibilityCapabilities','biXVM','constructor','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','tJSOe','stringify','QEhIi','CboTg','processAccessibilityCaps','zAaSR','146706GsxMmx','vJfuq','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','onJQd','uDIQc','error','deviceName','nFfLj','format','24BzaULV','currentTest','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','warn','scannerVersion','aolZZ','accessibilityOptions','1377320MMVjWA','45sZQqkN','THhWr','jVliz','browserStackEvaluate','env','browserName','name','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','TzcyS','VQaTv','connectOptions','playwright-chromium','../../helpers/accessibility-automation/helper','latest','OvWbx','JfvFl','srANJ','browserStackExecuteDriver','8307hhrZHp','(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','BQBxH','scannerProcessingTimeout','ZLycW','../../helpers/accessibility-automation/scripts','accessibilityOptions.wcagVersion','replace','wcagVersion','chrome','util','use','needsReview','performScan','browser_version','includeIssueType','rCvSy','wsEndpoint','pdcvh','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','../../helpers/helper','WebDriver','accessibilityOptions.scannerVersion','method'];a34_0x448a=function(){return _0x55d158;};return a34_0x448a();}function a34_0x5013(_0x1fb4ce,_0x4d4c97){const _0x448a42=a34_0x448a();return a34_0x5013=function(_0x501365,_0x3027cf){_0x501365=_0x501365-0x119;let _0x3ec7a4=_0x448a42[_0x501365];return _0x3ec7a4;},a34_0x5013(_0x1fb4ce,_0x4d4c97);}const a34_0x5dedd1=a34_0x5013;(function(_0x492d72,_0x1dfa2c){const _0x8a447f=a34_0x5013,_0x3b0f79=_0x492d72();while(!![]){try{const _0x59bbb4=parseInt(_0x8a447f(0x144))/0x1+-parseInt(_0x8a447f(0x11e))/0x2+-parseInt(_0x8a447f(0x13d))/0x3*(parseInt(_0x8a447f(0x179))/0x4)+-parseInt(_0x8a447f(0x145))/0x5*(parseInt(_0x8a447f(0x134))/0x6)+parseInt(_0x8a447f(0x17b))/0x7+parseInt(_0x8a447f(0x17d))/0x8*(parseInt(_0x8a447f(0x157))/0x9)+-parseInt(_0x8a447f(0x125))/0xa;if(_0x59bbb4===_0x1dfa2c)break;else _0x3b0f79['push'](_0x3b0f79['shift']());}catch(_0x3548df){_0x3b0f79['push'](_0x3b0f79['shift']());}}}(a34_0x448a,0xc7c5c));const util=require(a34_0x5dedd1(0x161)),logger=require(a34_0x5dedd1(0x170))['winstonLogger'],{isAccessibilityAutomationSession}=require(a34_0x5dedd1(0x151)),{isUndefined}=require(a34_0x5dedd1(0x16c)),scripts=require(a34_0x5dedd1(0x15c));exports[a34_0x5dedd1(0x148)]=async(_0x1cca7d,_0x170331,_0x48f340={})=>{const _0x72a52e=a34_0x5dedd1,_0x61e4d7={};_0x61e4d7['pdcvh']=_0x72a52e(0x173);const _0x5b54c0=_0x61e4d7;return await _0x1cca7d['evaluate']('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x170331[_0x72a52e(0x15e)](/arguments/g,_0x5b54c0[_0x72a52e(0x169)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x72a52e(0x12f)](_0x48f340)+')');},exports[a34_0x5dedd1(0x156)]=async(_0x14acd8,_0x2ba394,_0x2ad891={})=>{const _0x47f12c=a34_0x5dedd1,_0x469dbb={};_0x469dbb['SYlXF']=function(_0x2b875e,_0x532b19){return _0x2b875e===_0x532b19;},_0x469dbb[_0x47f12c(0x129)]=_0x47f12c(0x16d),_0x469dbb[_0x47f12c(0x135)]=function(_0x1d6aab,_0x3ef8c5){return _0x1d6aab===_0x3ef8c5;},_0x469dbb['nCEZD']=_0x47f12c(0x17e),_0x469dbb[_0x47f12c(0x17a)]=_0x47f12c(0x173);const _0x5ea37c=_0x469dbb;if(_0x5ea37c['SYlXF'](_0x14acd8[_0x47f12c(0x12c)][_0x47f12c(0x14b)],_0x5ea37c[_0x47f12c(0x129)]))return await _0x14acd8['executeAsyncScript'](_0x2ba394,_0x2ad891);else{if(_0x5ea37c[_0x47f12c(0x135)](_0x14acd8[_0x47f12c(0x12c)][_0x47f12c(0x14b)],_0x5ea37c[_0x47f12c(0x127)]))return await _0x14acd8[_0x47f12c(0x120)](_0x47f12c(0x158)+_0x2ba394[_0x47f12c(0x15e)](/arguments/g,_0x5ea37c[_0x47f12c(0x17a)])+_0x47f12c(0x14c)+JSON[_0x47f12c(0x12f)](_0x2ad891)+')');}},exports[a34_0x5dedd1(0x12a)]=async _0x3870a4=>{const _0x51df4b=a34_0x5dedd1,_0x2cf798={};_0x2cf798[_0x51df4b(0x130)]=_0x51df4b(0x15d),_0x2cf798[_0x51df4b(0x126)]='accessibilityOptions.scannerProcessingTimeout',_0x2cf798[_0x51df4b(0x177)]='accessibilityOptions.includeIssueType.bestPractice',_0x2cf798['ClQOE']=_0x51df4b(0x122),_0x2cf798[_0x51df4b(0x175)]='accessibilityOptions.authToken',_0x2cf798[_0x51df4b(0x11f)]=_0x51df4b(0x16e);const _0x38084f=_0x2cf798;_0x3870a4[_0x51df4b(0x143)]&&(_0x3870a4['accessibilityOptions'][_0x51df4b(0x15f)]&&(_0x3870a4[_0x38084f[_0x51df4b(0x130)]]=_0x3870a4[_0x51df4b(0x143)][_0x51df4b(0x15f)]),_0x3870a4[_0x51df4b(0x143)][_0x51df4b(0x15a)]&&(_0x3870a4[_0x38084f[_0x51df4b(0x126)]]=_0x3870a4[_0x51df4b(0x143)][_0x51df4b(0x15a)]),_0x3870a4['accessibilityOptions'][_0x51df4b(0x166)]&&(_0x3870a4[_0x38084f[_0x51df4b(0x177)]]=_0x3870a4['accessibilityOptions'][_0x51df4b(0x166)]['bestPractice'],_0x3870a4[_0x38084f['ClQOE']]=_0x3870a4[_0x51df4b(0x143)]['includeIssueType'][_0x51df4b(0x163)]));const _0x4c3d20=JSON['parse'](process[_0x51df4b(0x149)][_0x51df4b(0x13f)])[_0x51df4b(0x141)];_0x3870a4[_0x38084f['vEKSk']]=process['env'][_0x51df4b(0x17f)],_0x3870a4[_0x38084f['EHQLq']]=_0x4c3d20,delete _0x3870a4[_0x51df4b(0x143)];},exports['getAccessibilityResults']=async _0x58081e=>{const _0x139143=a34_0x5dedd1,_0xe89a84={};_0xe89a84['dlbLN']=_0x139143(0x128),_0xe89a84[_0x139143(0x119)]=_0x139143(0x16a);const _0x42e8e5=_0xe89a84;if(global[_0x139143(0x17c)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x58081e,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x58081e,scripts.getResults);return res;}catch{return logger[_0x139143(0x139)](_0x42e8e5[_0x139143(0x123)]),[];}else return logger['warn'](_0x42e8e5[_0x139143(0x119)]),[];},exports[a34_0x5dedd1(0x164)]=async(_0xf408d6,_0x526248='')=>{const _0xa5fde0=a34_0x5dedd1;if(global[_0xa5fde0(0x17c)]){const _0x5400af={};return _0x5400af[_0xa5fde0(0x16f)]=_0x526248,await exports['browserStackEvaluate'](_0xf408d6,scripts[_0xa5fde0(0x164)],_0x5400af);}},exports[a34_0x5dedd1(0x178)]=async _0x4fb10d=>{const _0x308ca2=a34_0x5dedd1,_0x2b8bc8={};_0x2b8bc8[_0x308ca2(0x12b)]='No\x20summaryResults\x20found.',_0x2b8bc8[_0x308ca2(0x131)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x4d013d=_0x2b8bc8;if(global[_0x308ca2(0x17c)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4fb10d,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x4fb10d,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x308ca2(0x11c)](_0x4d013d[_0x308ca2(0x12b)]),{};}else return logger[_0x308ca2(0x140)](_0x4d013d[_0x308ca2(0x131)]),{};},exports[a34_0x5dedd1(0x171)]=async _0x5244a4=>{const _0x59fb11=a34_0x5dedd1,_0x1008fa={'NXAzU':function(_0x30727d,_0x153793){return _0x30727d!==_0x153793;},'BQBxH':_0x59fb11(0x136),'oIKiN':function(_0x593594,_0x8e29f5){return _0x593594===_0x8e29f5;},'jeWmM':_0x59fb11(0x160),'ZLycW':function(_0x559cb0,_0x2dc448){return _0x559cb0===_0x2dc448;},'BYNcA':_0x59fb11(0x150),'TzcyS':_0x59fb11(0x121),'gXfGn':function(_0x25113a,_0x2b6ae2){return _0x25113a(_0x2b6ae2);},'goQpa':function(_0x33e308,_0x4b8cf5){return _0x33e308===_0x4b8cf5;},'jVliz':'latest','lOfgB':function(_0x31a0b2,_0x2ddbba){return _0x31a0b2>_0x2ddbba;},'JfvFl':_0x59fb11(0x12d)};try{if(!_0x1008fa['NXAzU'](_0x5244a4['deviceName'],''))return logger[_0x59fb11(0x140)](_0x1008fa[_0x59fb11(0x159)]),![];const _0x4991a4=_0x5244a4[_0x59fb11(0x124)];if(!(_0x1008fa['oIKiN'](_0x4991a4,_0x1008fa['jeWmM'])||_0x1008fa[_0x59fb11(0x15b)](_0x4991a4,_0x1008fa['BYNcA'])))return logger[_0x59fb11(0x140)](_0x1008fa[_0x59fb11(0x14d)]),![];const _0xdb8cfd=_0x1008fa[_0x59fb11(0x11d)](parseInt,_0x5244a4[_0x59fb11(0x165)]);if(!(_0x1008fa[_0x59fb11(0x172)](_0xdb8cfd,_0x1008fa[_0x59fb11(0x147)])||_0x1008fa['lOfgB'](_0xdb8cfd,0x5e)))return logger['warn'](_0x1008fa[_0x59fb11(0x154)]),![];}catch(_0x37dc8c){logger[_0x59fb11(0x11c)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x59fb11(0x13c)](_0x37dc8c));}return!![];},exports[a34_0x5dedd1(0x132)]=(_0x25e650,_0x2c2788,_0x37d66d)=>{const _0x426e6b=a34_0x5dedd1,_0x5b431d={'onJQd':function(_0x5c5090){return _0x5c5090();},'rCvSy':'browserstack.accessibility','OvWbx':function(_0x3b5e67,_0x4db5b5){return _0x3b5e67===_0x4db5b5;},'tJSOe':_0x426e6b(0x160),'THhWr':_0x426e6b(0x150),'uDIQc':_0x426e6b(0x121),'SyPsY':function(_0x19044e,_0x4bb062){return _0x19044e===_0x4bb062;},'UgRBY':_0x426e6b(0x152),'srANJ':function(_0x1dd9e7,_0x5c4da0){return _0x1dd9e7>_0x5c4da0;},'nFfLj':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','aolZZ':function(_0x4446c9,_0x554d2f){return _0x4446c9(_0x554d2f);},'EqWiP':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','VQaTv':function(_0xef5400,_0x5654ac){return _0xef5400+_0x5654ac;},'zAaSR':function(_0x33506c,_0x3da939){return _0x33506c(_0x3da939);}};try{if(_0x5b431d[_0x426e6b(0x137)](isAccessibilityAutomationSession)){global[_0x426e6b(0x17c)]=!![];!_0x25e650[_0x5b431d[_0x426e6b(0x167)]]&&(global[_0x426e6b(0x17c)]=![]);!(_0x5b431d[_0x426e6b(0x153)](_0x25e650['browserName'],_0x5b431d[_0x426e6b(0x12e)])||_0x5b431d[_0x426e6b(0x153)](_0x25e650[_0x426e6b(0x14a)],_0x5b431d[_0x426e6b(0x146)]))&&(logger['warn'](_0x5b431d[_0x426e6b(0x138)]),global[_0x426e6b(0x17c)]=![]);!(_0x5b431d['SyPsY'](_0x25e650[_0x426e6b(0x165)],_0x5b431d['UgRBY'])||_0x5b431d[_0x426e6b(0x155)](_0x25e650['browser_version'],0x5e))&&(logger['warn'](_0x5b431d[_0x426e6b(0x13b)]),global['accessibilityPlatform']=![]);!_0x5b431d[_0x426e6b(0x142)](isUndefined,_0x25e650[_0x426e6b(0x13a)])&&(logger[_0x426e6b(0x140)](_0x5b431d[_0x426e6b(0x11b)]),global[_0x426e6b(0x17c)]=![]);if(!global[_0x426e6b(0x17c)]){_0x25e650[_0x5b431d[_0x426e6b(0x167)]]=![];const _0x538d64=_0x5b431d[_0x426e6b(0x14e)](_0x2c2788,_0x5b431d[_0x426e6b(0x133)](encodeURIComponent,JSON['stringify'](_0x25e650)));_0x37d66d&&(_0x37d66d[_0x426e6b(0x13e)][_0x426e6b(0x176)][_0x426e6b(0x11a)][_0x426e6b(0x162)][_0x426e6b(0x14f)]['wsEndpoint']=_0x538d64,_0x37d66d[_0x426e6b(0x174)][_0x426e6b(0x11a)][_0x426e6b(0x162)][_0x426e6b(0x14f)][_0x426e6b(0x168)]=_0x538d64);}}}catch(_0x51e88c){logger[_0x426e6b(0x11c)](_0x426e6b(0x16b)+util['format'](_0x51e88c));}};
|
|
1
|
+
const a34_0x3e1dd7=a34_0x214d;(function(_0x4eda1e,_0x1ea242){const _0x3250ec=a34_0x214d,_0x5b7d53=_0x4eda1e();while(!![]){try{const _0x34d3b7=parseInt(_0x3250ec(0x16d))/0x1*(parseInt(_0x3250ec(0x133))/0x2)+parseInt(_0x3250ec(0x166))/0x3*(parseInt(_0x3250ec(0x158))/0x4)+-parseInt(_0x3250ec(0x176))/0x5+-parseInt(_0x3250ec(0x13d))/0x6+-parseInt(_0x3250ec(0x159))/0x7*(-parseInt(_0x3250ec(0x16a))/0x8)+parseInt(_0x3250ec(0x122))/0x9+-parseInt(_0x3250ec(0x11d))/0xa*(-parseInt(_0x3250ec(0x13c))/0xb);if(_0x34d3b7===_0x1ea242)break;else _0x5b7d53['push'](_0x5b7d53['shift']());}catch(_0x5952cf){_0x5b7d53['push'](_0x5b7d53['shift']());}}}(a34_0x3223,0x79cc5));function a34_0x3223(){const _0x463282=['794923oSberz','TfBqD','jZqTe','DixoG','bestPractice','WTbxX','currentTest','No\x20accessibility\x20results\x20were\x20found.','browserName','695040SgorQg','DtNUq','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','warn','accessibilityPlatform','testInfo','method','RLULJ','use','../../helpers/accessibility-automation/helper','Fcuhb','accessibilityOptions.includeIssueType.needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','waSWH','../../helpers/helper','playwright-chromium','svAur','stringify','project','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','executeAsyncScript','306310mlNHMY','deviceName','obSAN','blgpD','browserStackExecuteDriver','2446047uYNRgU','gsUlL','replace','kWOXl','scannerProcessingTimeout','util','browserstack.accessibility','BpAZW','nBXzh','RiyLh','mtnda','accessibilityOptions','QuClD','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','performScan','evaluate','getAccessibilityResults','2SNyYws','executeScript','KZKPL','lidGJ','kkNxc','format','error','connectOptions','wsEndpoint','11pLzZZs','5826996WeBPJM','accessibilityOptions.scannerVersion','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','rPqCr','ZLCLv','alNhu','(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','(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','accessibilityOptions.includeIssueType.bestPractice','mvleD','constructor','processAccessibilityCaps','setAccessibilityCapabilities','includeIssueType','../../helpers/logger','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','Playwright','getAccessibilityResultsSummary','browser_version','browserStackEvaluate','bstackSdkArgs','debug','sNfzX','PkrEO','IubGl','latest','winstonLogger','4076dThtzJ','4907NCMIff','deqrr','env','workerInfo','chrome','needsReview','dEcbA','OaTJz','Nymot','WebDriver','nvQiQ','platformValidation','fQDgt','939uzYawX','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','browser','sGSdZ','2200qQiRKq','wcagVersion','../../helpers/accessibility-automation/scripts'];a34_0x3223=function(){return _0x463282;};return a34_0x3223();}function a34_0x214d(_0x4f602b,_0x2715c7){const _0x3223eb=a34_0x3223();return a34_0x214d=function(_0x214dd3,_0x43d206){_0x214dd3=_0x214dd3-0x112;let _0x27c626=_0x3223eb[_0x214dd3];return _0x27c626;},a34_0x214d(_0x4f602b,_0x2715c7);}const util=require(a34_0x3e1dd7(0x127)),logger=require(a34_0x3e1dd7(0x14b))[a34_0x3e1dd7(0x157)],{isAccessibilityAutomationSession}=require(a34_0x3e1dd7(0x17f)),{isUndefined}=require(a34_0x3e1dd7(0x116)),scripts=require(a34_0x3e1dd7(0x16c));exports['browserStackEvaluate']=async(_0x232fb4,_0x51ca2a,_0x29c50c={})=>{const _0x3ccfb6=a34_0x3e1dd7,_0xf9bad6={};_0xf9bad6[_0x3ccfb6(0x125)]=_0x3ccfb6(0x151);const _0x25b61c=_0xf9bad6;return await _0x232fb4[_0x3ccfb6(0x131)](_0x3ccfb6(0x144)+_0x51ca2a['replace'](/arguments/g,_0x25b61c[_0x3ccfb6(0x125)])+_0x3ccfb6(0x14c)+JSON['stringify'](_0x29c50c)+')');},exports[a34_0x3e1dd7(0x121)]=async(_0xadf2cb,_0x793214,_0x51cb16={})=>{const _0x17d9f0=a34_0x3e1dd7,_0x138aea={};_0x138aea[_0x17d9f0(0x141)]=function(_0x5872e5,_0x2632ca){return _0x5872e5===_0x2632ca;},_0x138aea[_0x17d9f0(0x12c)]=_0x17d9f0(0x162),_0x138aea['DixoG']=_0x17d9f0(0x14d),_0x138aea[_0x17d9f0(0x12b)]=_0x17d9f0(0x151);const _0x11a9ce=_0x138aea;if(_0x11a9ce[_0x17d9f0(0x141)](_0xadf2cb[_0x17d9f0(0x147)]['name'],_0x11a9ce['mtnda']))return await _0xadf2cb[_0x17d9f0(0x11c)](_0x793214,_0x51cb16);else{if(_0x11a9ce[_0x17d9f0(0x141)](_0xadf2cb[_0x17d9f0(0x147)]['name'],_0x11a9ce[_0x17d9f0(0x170)]))return await _0xadf2cb[_0x17d9f0(0x134)](_0x17d9f0(0x143)+_0x793214[_0x17d9f0(0x124)](/arguments/g,_0x11a9ce[_0x17d9f0(0x12b)])+_0x17d9f0(0x11b)+JSON[_0x17d9f0(0x119)](_0x51cb16)+')');}},exports[a34_0x3e1dd7(0x149)]=async _0x429bc8=>{const _0x2c5963=a34_0x3e1dd7,_0x2362e0={};_0x2362e0[_0x2c5963(0x15f)]='accessibilityOptions.wcagVersion',_0x2362e0[_0x2c5963(0x172)]='accessibilityOptions.scannerProcessingTimeout',_0x2362e0[_0x2c5963(0x161)]=_0x2c5963(0x145),_0x2362e0[_0x2c5963(0x142)]=_0x2c5963(0x113),_0x2362e0[_0x2c5963(0x15a)]='accessibilityOptions.authToken',_0x2362e0[_0x2c5963(0x115)]=_0x2c5963(0x13e);const _0x2b9898=_0x2362e0;_0x429bc8[_0x2c5963(0x12d)]&&(_0x429bc8[_0x2c5963(0x12d)][_0x2c5963(0x16b)]&&(_0x429bc8[_0x2b9898[_0x2c5963(0x15f)]]=_0x429bc8['accessibilityOptions'][_0x2c5963(0x16b)]),_0x429bc8['accessibilityOptions'][_0x2c5963(0x126)]&&(_0x429bc8[_0x2b9898[_0x2c5963(0x172)]]=_0x429bc8[_0x2c5963(0x12d)][_0x2c5963(0x126)]),_0x429bc8[_0x2c5963(0x12d)]['includeIssueType']&&(_0x429bc8[_0x2b9898[_0x2c5963(0x161)]]=_0x429bc8[_0x2c5963(0x12d)]['includeIssueType'][_0x2c5963(0x171)],_0x429bc8[_0x2b9898[_0x2c5963(0x142)]]=_0x429bc8[_0x2c5963(0x12d)][_0x2c5963(0x14a)][_0x2c5963(0x15e)]));const _0x495235=JSON['parse'](process[_0x2c5963(0x15b)][_0x2c5963(0x167)])['scannerVersion'];_0x429bc8[_0x2b9898[_0x2c5963(0x15a)]]=process[_0x2c5963(0x15b)]['BS_A11Y_JWT'],_0x429bc8[_0x2b9898[_0x2c5963(0x115)]]=_0x495235,delete _0x429bc8[_0x2c5963(0x12d)];},exports[a34_0x3e1dd7(0x132)]=async _0x12c11c=>{const _0x2c52ba=a34_0x3e1dd7,_0x3368a6={};_0x3368a6['IubGl']=_0x2c52ba(0x174),_0x3368a6[_0x2c52ba(0x16e)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x2b231f=_0x3368a6;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x12c11c,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x12c11c,scripts.getResults);return res;}catch{return logger[_0x2c52ba(0x139)](_0x2b231f[_0x2c52ba(0x155)]),[];}else return logger['warn'](_0x2b231f[_0x2c52ba(0x16e)]),[];},exports['performScan']=async(_0x4a3325,_0x4f9e1e='')=>{const _0x3e408f=a34_0x3e1dd7;if(global[_0x3e408f(0x17a)]){const _0x14ae3c={};return _0x14ae3c[_0x3e408f(0x17c)]=_0x4f9e1e,await exports[_0x3e408f(0x150)](_0x4a3325,scripts[_0x3e408f(0x130)],_0x14ae3c);}},exports[a34_0x3e1dd7(0x14e)]=async _0x34a23d=>{const _0x3f5fbe=a34_0x3e1dd7,_0x1778b6={};_0x1778b6[_0x3f5fbe(0x12a)]='No\x20summaryResults\x20found.',_0x1778b6[_0x3f5fbe(0x169)]=_0x3f5fbe(0x13f);const _0x46d742=_0x1778b6;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x34a23d,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x34a23d,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x3f5fbe(0x152)](_0x46d742['nBXzh']),{};}else return logger['warn'](_0x46d742['sGSdZ']),{};},exports[a34_0x3e1dd7(0x164)]=async _0xd6bfc6=>{const _0x37cdfb=a34_0x3e1dd7,_0x5d3d77={'JffNS':function(_0x44693b,_0x356528){return _0x44693b!==_0x356528;},'nvQiQ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','svAur':function(_0x37bcde,_0x1aeb31){return _0x37bcde===_0x1aeb31;},'QuClD':'chrome','OaTJz':function(_0x4f98b3,_0x2fef76){return _0x4f98b3===_0x2fef76;},'DtNUq':_0x37cdfb(0x117),'vqeoL':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','blMNC':function(_0x5d8c5a,_0x10645f){return _0x5d8c5a(_0x10645f);},'mvleD':function(_0x98460d,_0x28482d){return _0x98460d===_0x28482d;},'ghpyi':_0x37cdfb(0x156),'kkNxc':function(_0x19a6bb,_0xee110e){return _0x19a6bb>_0xee110e;},'PkrEO':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x5d3d77['JffNS'](_0xd6bfc6[_0x37cdfb(0x11e)],''))return logger[_0x37cdfb(0x179)](_0x5d3d77[_0x37cdfb(0x163)]),![];const _0x434a85=_0xd6bfc6[_0x37cdfb(0x168)];if(!(_0x5d3d77[_0x37cdfb(0x118)](_0x434a85,_0x5d3d77[_0x37cdfb(0x12e)])||_0x5d3d77[_0x37cdfb(0x160)](_0x434a85,_0x5d3d77[_0x37cdfb(0x177)])))return logger['warn'](_0x5d3d77['vqeoL']),![];const _0xa6b7f2=_0x5d3d77['blMNC'](parseInt,_0xd6bfc6['browser_version']);if(!(_0x5d3d77[_0x37cdfb(0x146)](_0xa6b7f2,_0x5d3d77['ghpyi'])||_0x5d3d77[_0x37cdfb(0x137)](_0xa6b7f2,0x5e)))return logger['warn'](_0x5d3d77[_0x37cdfb(0x154)]),![];}catch(_0x42897a){logger[_0x37cdfb(0x152)](_0x37cdfb(0x178)+util[_0x37cdfb(0x138)](_0x42897a));}return!![];},exports[a34_0x3e1dd7(0x148)]=(_0x3c8674,_0x1db025,_0x5daffc)=>{const _0x3efcd5=a34_0x3e1dd7,_0x3b18a0={'fQDgt':function(_0xf6d7a9){return _0xf6d7a9();},'jZqTe':_0x3efcd5(0x128),'blgpD':function(_0x144514,_0x14d22a){return _0x144514===_0x14d22a;},'sNfzX':_0x3efcd5(0x15d),'gsUlL':'playwright-chromium','RLULJ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','lidGJ':function(_0x4d7437,_0x3e8bb9){return _0x4d7437===_0x3e8bb9;},'CPURv':'latest','BpAZW':function(_0x52fee5,_0x225a19){return _0x52fee5>_0x225a19;},'KZKPL':_0x3efcd5(0x114),'CGmBW':function(_0x57f132,_0x216d63){return _0x57f132(_0x216d63);},'rPqCr':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','obSAN':function(_0x12dbb6,_0x14d6fe){return _0x12dbb6+_0x14d6fe;},'Fcuhb':function(_0xcbfc1f,_0x42cf4a){return _0xcbfc1f(_0x42cf4a);}};try{if(_0x3b18a0[_0x3efcd5(0x165)](isAccessibilityAutomationSession)){global[_0x3efcd5(0x17a)]=!![];!_0x3c8674[_0x3b18a0[_0x3efcd5(0x16f)]]&&(global[_0x3efcd5(0x17a)]=![]);!(_0x3b18a0['blgpD'](_0x3c8674[_0x3efcd5(0x175)],_0x3b18a0[_0x3efcd5(0x153)])||_0x3b18a0[_0x3efcd5(0x120)](_0x3c8674[_0x3efcd5(0x175)],_0x3b18a0[_0x3efcd5(0x123)]))&&(logger[_0x3efcd5(0x179)](_0x3b18a0[_0x3efcd5(0x17d)]),global[_0x3efcd5(0x17a)]=![]);!(_0x3b18a0[_0x3efcd5(0x136)](_0x3c8674[_0x3efcd5(0x14f)],_0x3b18a0['CPURv'])||_0x3b18a0[_0x3efcd5(0x129)](_0x3c8674[_0x3efcd5(0x14f)],0x5e))&&(logger[_0x3efcd5(0x179)](_0x3b18a0[_0x3efcd5(0x135)]),global['accessibilityPlatform']=![]);!_0x3b18a0['CGmBW'](isUndefined,_0x3c8674[_0x3efcd5(0x11e)])&&(logger[_0x3efcd5(0x179)](_0x3b18a0[_0x3efcd5(0x140)]),global['accessibilityPlatform']=![]);if(!global[_0x3efcd5(0x17a)]){_0x3c8674[_0x3b18a0[_0x3efcd5(0x16f)]]=![];const _0x597c20=_0x3b18a0[_0x3efcd5(0x11f)](_0x1db025,_0x3b18a0[_0x3efcd5(0x112)](encodeURIComponent,JSON['stringify'](_0x3c8674)));_0x5daffc&&(_0x5daffc[_0x3efcd5(0x173)][_0x3efcd5(0x17b)][_0x3efcd5(0x11a)][_0x3efcd5(0x17e)][_0x3efcd5(0x13a)][_0x3efcd5(0x13b)]=_0x597c20,_0x5daffc[_0x3efcd5(0x15c)]['project'][_0x3efcd5(0x17e)][_0x3efcd5(0x13a)][_0x3efcd5(0x13b)]=_0x597c20);}}}catch(_0x33bc2c){logger[_0x3efcd5(0x152)](_0x3efcd5(0x12f)+util[_0x3efcd5(0x138)](_0x33bc2c));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x13b51e=a35_0x40c0;(function(_0x1c1e56,_0x51813e){const _0x5099bf=a35_0x40c0,_0xf097c1=_0x1c1e56();while(!![]){try{const _0x3740d6=-parseInt(_0x5099bf(0x1c7))/0x1+-parseInt(_0x5099bf(0x1ca))/0x2*(parseInt(_0x5099bf(0x1e3))/0x3)+-parseInt(_0x5099bf(0x212))/0x4*(-parseInt(_0x5099bf(0x1f6))/0x5)+parseInt(_0x5099bf(0x1f8))/0x6+parseInt(_0x5099bf(0x204))/0x7+-parseInt(_0x5099bf(0x211))/0x8*(-parseInt(_0x5099bf(0x210))/0x9)+-parseInt(_0x5099bf(0x1d1))/0xa;if(_0x3740d6===_0x51813e)break;else _0xf097c1['push'](_0xf097c1['shift']());}catch(_0x16d906){_0xf097c1['push'](_0xf097c1['shift']());}}}(a35_0x2d58,0x2fd30));const fs=require('fs'),path=require(a35_0x13b51e(0x1fc)),{spawn}=require(a35_0x13b51e(0x1ee)),{format}=require(a35_0x13b51e(0x18a)),logger=require(a35_0x13b51e(0x201))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0x13b51e(0x1ec)),utilities=require(a35_0x13b51e(0x193)),constants=require(a35_0x13b51e(0x200)),{FRAMEWORKS}=require(a35_0x13b51e(0x1c3)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x13b51e(0x1fd)),{CrashReporter}=require(a35_0x13b51e(0x20a)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{checkAccessibilityPlatformConfig}=require(a35_0x13b51e(0x19d)),{setAccessibilityCapabilities}=require(a35_0x13b51e(0x1f4)),TestHubHandler=require(a35_0x13b51e(0x1e5)),{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),getUserPlaywrightConfig=async(_0x1bd7cd,_0x31fe27)=>{const _0x2bc945=a35_0x13b51e,_0x4f36d1={'mqIMr':function(_0x585747){return _0x585747();},'PdjXM':function(_0x9cc41d,_0xc424e4){return _0x9cc41d(_0xc424e4);},'eiLRW':_0x2bc945(0x1a2),'xfLAy':_0x2bc945(0x1c4)},_0x2ab988=!helper['isUndefined'](_0x1bd7cd['config']),_0x278bde=_0x2ab988?path['resolve'](process[_0x2bc945(0x1d0)](),_0x1bd7cd[_0x2bc945(0x197)]):process[_0x2bc945(0x1d0)](),{resolveConfigFile:_0xbc44e9,resolveConfigLocation:_0x304aea}=helper['requirePWModule'][_0x2bc945(0x202)](null,_0x4f36d1[_0x2bc945(0x1b8)](getConfigLoaderPath)),_0x76ef8e=_0xbc44e9?_0x4f36d1[_0x2bc945(0x1a7)](_0xbc44e9,_0x278bde):helper[_0x2bc945(0x1ad)](_0x4f36d1[_0x2bc945(0x1a7)](_0x304aea,_0x278bde),[_0x4f36d1['eiLRW']]),_0x16fc91={};if(_0x2ab988){const _0x2e3e94=_0x31fe27[_0x2bc945(0x1d6)](_0x10c940=>_0x10c940===_0x2bc945(0x1c2)||_0x10c940==='-c'||_0x10c940[_0x2bc945(0x1b2)](_0x2bc945(0x1c4)));_0x31fe27[_0x2bc945(0x1e4)](_0x2e3e94,_0x31fe27[_0x2e3e94]['startsWith'](_0x4f36d1[_0x2bc945(0x1a5)])?0x1:0x2);}const _0x393809={};return _0x393809['path']=_0x76ef8e,_0x393809[_0x2bc945(0x197)]=_0x16fc91,_0x393809;},handleO11yRerun=_0x31eea4=>{const _0x397814=a35_0x13b51e,_0xa75367={};_0xa75367[_0x397814(0x1b1)]=function(_0x3fa846,_0x1fa770){return _0x3fa846!==_0x1fa770;},_0xa75367[_0x397814(0x1b5)]=_0x397814(0x1c5),_0xa75367[_0x397814(0x1f2)]=_0x397814(0x217);const _0x4a574f=_0xa75367,_0x1e7545=helper[_0x397814(0x1a3)](process[_0x397814(0x18f)]['BROWSERSTACK_RERUN']);if(_0x1e7545){const _0x21054f=process[_0x397814(0x18f)]['BROWSERSTACK_RERUN_TESTS'],_0x381718=[];if(_0x4a574f[_0x397814(0x1b1)](_0x21054f,_0x4a574f[_0x397814(0x1b5)])&&!helper[_0x397814(0x1bc)](_0x21054f)){_0x21054f['split'](',')['map'](_0x14fe3e=>{const _0x1adf18=_0x397814;_0x381718[_0x1adf18(0x1b7)]('('+_0x14fe3e[_0x1adf18(0x1e7)]()+')');});const _0x1affee='^'+_0x381718['join']('|')+'$';_0x31eea4[_0x397814(0x1b7)](_0x4a574f['LySUX'],_0x1affee);}}},spawnOriginalProcess=_0x23a402=>{const _0x3265f1=a35_0x13b51e,_0x3c573b={'tcaZf':function(_0x5e2db9,_0x3351bb,_0x4cbbe8,_0x268145){return _0x5e2db9(_0x3351bb,_0x4cbbe8,_0x268145);},'ZtjyD':_0x3265f1(0x18e),'ZaOYk':_0x3265f1(0x1bd),'GeJVB':function(_0xef4875,_0x5b6d3d){return _0xef4875===_0x5b6d3d;},'SXgbW':'win32','lAHNo':'inherit'};_0x3c573b[_0x3265f1(0x20c)](spawn,_0x3c573b['ZtjyD'],[_0x3c573b[_0x3265f1(0x1a1)],..._0x23a402[_0x3265f1(0x1a0)](0x1)],{'shell':_0x3c573b[_0x3265f1(0x1d3)](process['platform'],_0x3c573b[_0x3265f1(0x19e)]),'stdio':_0x3c573b[_0x3265f1(0x194)],'cwd':process[_0x3265f1(0x1d0)]()});},isTestCommand=(_0x3cba25,_0x455167)=>{const _0x124e3f=a35_0x13b51e,_0x512a48={};_0x512a48[_0x124e3f(0x185)]=function(_0x2bf0c0,_0x5eb017){return _0x2bf0c0>_0x5eb017;},_0x512a48[_0x124e3f(0x218)]=function(_0x206cb9,_0x21079f){return _0x206cb9===_0x21079f;},_0x512a48['eZGGR']=_0x124e3f(0x1cf);const _0x4573e8=_0x512a48;if(_0x4573e8[_0x124e3f(0x185)](_0x455167[_0x124e3f(0x1de)],0x1)&&_0x4573e8[_0x124e3f(0x218)](_0x455167[0x1],_0x4573e8['eZGGR']))return!![];return![];};async function run(_0x13ae2a,_0x8fadf){const _0x1c4cd4=a35_0x13b51e,_0x20058f={'GrBii':_0x1c4cd4(0x206),'clNiF':_0x1c4cd4(0x1cd),'NisHW':function(_0x215960,_0x2ca65e){return _0x215960+_0x2ca65e;},'vCSow':_0x1c4cd4(0x188),'grObA':_0x1c4cd4(0x215),'YFopr':function(_0x421bea){return _0x421bea();},'TaPKo':function(_0x34749f,_0x5de045){return _0x34749f+_0x5de045;},'gJzWD':_0x1c4cd4(0x183),'hoshq':_0x1c4cd4(0x1ef),'lkkHl':_0x1c4cd4(0x1f7),'HQMpl':_0x1c4cd4(0x187),'RVpPm':function(_0x1471c2,_0x2d147f){return _0x1471c2>=_0x2d147f;},'kcsgx':_0x1c4cd4(0x1e8),'NRUTY':function(_0x461507,_0x489a0a,_0xbe9f60){return _0x461507(_0x489a0a,_0xbe9f60);},'pLfff':function(_0x1d27df,_0x27eb4b){return _0x1d27df(_0x27eb4b);},'KkMKi':'BrowserStack\x20config\x20file\x20not\x20found.','DwFHO':_0x1c4cd4(0x21b),'bmqEn':function(_0x283702,_0x4d574b){return _0x283702!=_0x4d574b;},'VhcZv':function(_0x549c87,_0x893d4e){return _0x549c87(_0x893d4e);},'HNbWe':function(_0x51b051,_0x388aad){return _0x51b051(_0x388aad);},'nMavV':function(_0x135b65,_0x58bdbb){return _0x135b65===_0x58bdbb;},'lwmZM':_0x1c4cd4(0x1f9),'mveMZ':function(_0x127499,_0x4c513b){return _0x127499(_0x4c513b);},'FxTjh':'browserstackSetupConfig.json','DtLYg':function(_0x190f99,_0x2b8409){return _0x190f99===_0x2b8409;},'beiYT':_0x1c4cd4(0x17f),'vETUq':_0x1c4cd4(0x190),'jUbTn':function(_0x1be16d,_0x224569){return _0x1be16d-_0x224569;},'gleLP':function(_0x15c5f8,_0x26eabd){return _0x15c5f8+_0x26eabd;},'TYpzC':_0x1c4cd4(0x1f5),'sNuJy':function(_0x1dc9f1,_0x392e16){return _0x1dc9f1>_0x392e16;},'ocXTK':function(_0x5e07a4,_0x5b36e0){return _0x5e07a4+_0x5b36e0;},'Acyzv':function(_0x455c98,_0x110b4c,_0x4b8a15,_0x29b7ed){return _0x455c98(_0x110b4c,_0x4b8a15,_0x29b7ed);},'CQPbg':_0x1c4cd4(0x18e),'KTMkE':'playwright','oEyqf':_0x1c4cd4(0x1cf),'OPXnK':'--config','KClKa':'win32','WARkM':_0x1c4cd4(0x1e2),'meQfL':_0x1c4cd4(0x18b)};!helper['isFalse'](process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x1c0)])&&(process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x1c0)]=!![]);process[_0x1c4cd4(0x182)][_0x1c4cd4(0x18c)](_0x20058f['hoshq'])&&(process[_0x1c4cd4(0x18f)]['BROWSERSTACK_AUTOMATION']=_0x20058f[_0x1c4cd4(0x1dd)],_0x8fadf=_0x8fadf['filter'](_0xa71e4c=>_0xa71e4c!==_0x1c4cd4(0x1ef)));const _0x315b46=_0x8fadf[_0x1c4cd4(0x1fa)](_0x20058f[_0x1c4cd4(0x1e1)]);_0x20058f['RVpPm'](_0x315b46,0x0)&&(process['env'][_0x1c4cd4(0x203)]=_0x20058f[_0x1c4cd4(0x1dd)],_0x8fadf=_0x8fadf[_0x1c4cd4(0x1da)](_0x249c0a=>_0x249c0a!==_0x1c4cd4(0x187)));try{const _0x58e0e0=path[_0x1c4cd4(0x205)](helper[_0x1c4cd4(0x1ae)](),_0x20058f['GrBii'],_0x20058f[_0x1c4cd4(0x1d7)]);fs[_0x1c4cd4(0x1ab)](_0x58e0e0)&&fs[_0x1c4cd4(0x1a9)](_0x58e0e0);}catch(_0xac6125){logger[_0x1c4cd4(0x1b9)](_0x20058f[_0x1c4cd4(0x214)](_0x20058f[_0x1c4cd4(0x1ac)],_0xac6125));}if(!_0x20058f[_0x1c4cd4(0x1e9)](isTestCommand,_0x13ae2a,_0x8fadf)){_0x20058f[_0x1c4cd4(0x1a8)](spawnOriginalProcess,_0x8fadf);return;}const _0x44579c=new BrowserStackSetup(_0x13ae2a,FRAMEWORKS[_0x1c4cd4(0x1ed)]);if(!_0x44579c[_0x1c4cd4(0x197)]){logger[_0x1c4cd4(0x186)](_0x20058f[_0x1c4cd4(0x1a4)]);return;}await _0x44579c['initialize']();!helper[_0x1c4cd4(0x1bc)](_0x44579c['cliConfig'])&&_0x44579c[_0x1c4cd4(0x1a6)][_0x1c4cd4(0x21a)](_0x20058f[_0x1c4cd4(0x1df)])&&(process['env'][_0x1c4cd4(0x1c0)]=_0x44579c[_0x1c4cd4(0x1a6)][_0x1c4cd4(0x207)](_0x20058f[_0x1c4cd4(0x1df)])||!![]);_0x20058f[_0x1c4cd4(0x1d8)](_0x44579c[_0x1c4cd4(0x197)][_0x1c4cd4(0x1fe)],null)&&!helper['isTrue'](process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x203)])&&(process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x203)]=process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x203)]||_0x44579c[_0x1c4cd4(0x197)][_0x1c4cd4(0x1fe)]);const _0x4c4909=!helper[_0x1c4cd4(0x1d4)](process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x203)]);let _0x3006b3=![];_0x44579c[_0x1c4cd4(0x197)][_0x1c4cd4(0x1af)]&&(_0x3006b3=!![],process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x181)]=_0x44579c[_0x1c4cd4(0x197)]['accessibility']);_0x44579c[_0x1c4cd4(0x197)]['accessibilityOptions']&&(process[_0x1c4cd4(0x18f)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x1c4cd4(0x1e6)](_0x44579c[_0x1c4cd4(0x197)][_0x1c4cd4(0x21c)]));const _0x27c138=_0x8fadf['concat'](),_0x1d3c61=await _0x20058f[_0x1c4cd4(0x1e9)](getUserPlaywrightConfig,_0x13ae2a,_0x8fadf);if(helper[_0x1c4cd4(0x1bc)](_0x1d3c61)){_0x20058f[_0x1c4cd4(0x20e)](spawnOriginalProcess,_0x27c138);return;}const _0x277e89=_0x1d3c61[_0x1c4cd4(0x1fc)]?path[_0x1c4cd4(0x195)](_0x1d3c61[_0x1c4cd4(0x1fc)]):process[_0x1c4cd4(0x1d0)]();process[_0x1c4cd4(0x18f)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x277e89,await TestHubHandler[_0x1c4cd4(0x19b)](FRAMEWORKS['PLAYWRIGHT'],_0x44579c);_0x4c4909&&_0x20058f['HNbWe'](handleO11yRerun,_0x8fadf);let _0xe177f0=_0x20058f['nMavV'](process[_0x1c4cd4(0x18f)][_0x1c4cd4(0x181)],_0x20058f[_0x1c4cd4(0x209)]);_0xe177f0=_0xe177f0||_0x20058f[_0x1c4cd4(0x1e0)](checkAccessibilityPlatformConfig,_0x44579c[_0x1c4cd4(0x197)]),process[_0x1c4cd4(0x18f)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0xe177f0;_0xe177f0&&_0x20058f[_0x1c4cd4(0x192)](setAccessibilityCapabilities,_0x44579c[_0x1c4cd4(0x197)]);const _0x350571=path[_0x1c4cd4(0x205)](_0x1d3c61['path']?path['dirname'](_0x1d3c61['path']):process[_0x1c4cd4(0x1d0)](),_0x20058f['FxTjh']);fs[_0x1c4cd4(0x196)](_0x350571,helper[_0x1c4cd4(0x1ce)](_0x44579c[_0x1c4cd4(0x197)])),process['env'][_0x1c4cd4(0x191)]=_0x350571,helper['clearTempPWConfig']();let _0x2fd82a='';_0x20058f[_0x1c4cd4(0x1aa)](helper[_0x1c4cd4(0x1ff)](),constants[_0x1c4cd4(0x20b)]['MODULE'])?_0x2fd82a=_0x20058f[_0x1c4cd4(0x1ba)]:_0x2fd82a=_0x20058f[_0x1c4cd4(0x21d)];let _0x478e40='';if(helper[_0x1c4cd4(0x19a)](_0x1d3c61[_0x1c4cd4(0x1fc)])){_0x478e40=_0x1c4cd4(0x1b4);const _0xf93eb4=_0x2fd82a[_0x1c4cd4(0x1ea)]('.');_0xf93eb4[_0x20058f['jUbTn'](_0xf93eb4[_0x1c4cd4(0x1de)],0x1)]='ts',_0x2fd82a=_0xf93eb4[_0x1c4cd4(0x205)]('.'),logger[_0x1c4cd4(0x1b9)](_0x20058f[_0x1c4cd4(0x213)](_0x20058f[_0x1c4cd4(0x1bf)],_0x2fd82a));}else _0x478e40=_0x1c4cd4(0x1c1);const _0x409fc1=path[_0x1c4cd4(0x205)](_0x1d3c61['path']?path['dirname'](_0x1d3c61['path']):process['cwd'](),_0x2fd82a);let _0x275193=_0x1d3c61[_0x1c4cd4(0x1fc)]?_0x1d3c61[_0x1c4cd4(0x1fc)]:'';_0x275193=_0x20058f[_0x1c4cd4(0x1cb)](_0x275193['length'],0x0)?path['resolve'](_0x275193):'',process['env'][_0x1c4cd4(0x1d9)]=_0x275193;const _0x446d1e=helper[_0x1c4cd4(0x18d)](_0x44579c[_0x1c4cd4(0x197)]);_0x446d1e&&(_0x478e40=_0x20058f[_0x1c4cd4(0x189)](_0x1c4cd4(0x180)+_0x446d1e+_0x1c4cd4(0x19f),_0x478e40));helper[_0x1c4cd4(0x1c6)]({},_0x8fadf),fs[_0x1c4cd4(0x196)](_0x409fc1,_0x478e40),helper[_0x1c4cd4(0x1d5)]();const _0x527af2=_0x20058f[_0x1c4cd4(0x1b3)](spawn,_0x20058f['CQPbg'],[_0x20058f[_0x1c4cd4(0x1cc)],_0x20058f[_0x1c4cd4(0x1d2)],_0x20058f[_0x1c4cd4(0x198)],_0x409fc1,..._0x8fadf['slice'](0x2)],{'shell':_0x20058f[_0x1c4cd4(0x1eb)](process['platform'],_0x20058f[_0x1c4cd4(0x20f)]),'stdio':_0x20058f['WARkM'],'cwd':process[_0x1c4cd4(0x1d0)](),'env':Object[_0x1c4cd4(0x199)]({},process[_0x1c4cd4(0x18f)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x13ae2a),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x44579c[_0x1c4cd4(0x197)][_0x1c4cd4(0x19c)][_0x1c4cd4(0x184)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x44579c['config'][_0x1c4cd4(0x19c)][_0x1c4cd4(0x1c8)],'BROWSERSTACK_LOG_LEVEL':_0x44579c[_0x1c4cd4(0x197)][_0x1c4cd4(0x1be)]})}),_0x325c3=()=>{const _0x462a0d=_0x1c4cd4;try{const _0x71376a=path[_0x462a0d(0x205)](helper[_0x462a0d(0x1ae)](),_0x20058f[_0x462a0d(0x1c9)],_0x20058f[_0x462a0d(0x1d7)]);if(fs[_0x462a0d(0x1ab)](_0x71376a)){let _0x22b9b9=fs[_0x462a0d(0x1b6)](_0x71376a);_0x22b9b9=JSON[_0x462a0d(0x219)](_0x22b9b9),_0x44579c['errorMessage']=_0x22b9b9,fs['unlinkSync'](_0x71376a);}}catch(_0x5a321a){logger[_0x462a0d(0x1b9)](_0x20058f[_0x462a0d(0x214)](_0x20058f[_0x462a0d(0x1f0)],_0x5a321a));}};_0x527af2['on'](_0x20058f[_0x1c4cd4(0x20d)],async _0x7de0db=>{const _0xa972bf=_0x1c4cd4;try{const _0x250b87=_0x20058f['grObA'][_0xa972bf(0x1ea)]('|');let _0x4b01b0=0x0;while(!![]){switch(_0x250b87[_0x4b01b0++]){case'0':logger[_0xa972bf(0x1b9)](_0xa972bf(0x208)+_0x7de0db);continue;case'1':await TestHubHandler[_0xa972bf(0x1b0)]();continue;case'2':logger[_0xa972bf(0x1b9)]('Deleting\x20'+_0x350571);continue;case'3':await utilities[_0xa972bf(0x1bb)](_0x44579c);continue;case'4':_0x20058f[_0xa972bf(0x1fb)](_0x325c3);continue;case'5':logger[_0xa972bf(0x216)](_0xa972bf(0x1dc)+_0x409fc1);continue;case'6':process['exitCode']=_0x7de0db;continue;case'7':fs['unlinkSync'](_0x409fc1);continue;case'8':fs['unlinkSync'](_0x350571);continue;}break;}}catch(_0x30e3e4){logger[_0xa972bf(0x1b9)](_0x20058f[_0xa972bf(0x1db)](_0x20058f[_0xa972bf(0x1f1)],_0x30e3e4));}});}function a35_0x2d58(){const _0x3694ab=['VhcZv','KClKa','1129599FJlUTq','8EhHGoz','4IkAwSk','gleLP','NisHW','4|1|3|6|0|5|7|2|8','info','--grep','Eipka','parse','has','automation','accessibilityOptions','vETUq','playwright-browserstack-sdk.config.cjs','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','BROWSERSTACK_TEST_ACCESSIBILITY_YML','argv','Error\x20in\x20closing\x20playwright','skipSessionStatus','fFBLR','error','--disable-test-observability','Error\x20in\x20getting\x20funnel\x20data\x20results','ocXTK','util','close','includes','getProxyUrl','npx','env','playwright-browserstack-sdk.config.js','BROWSERSTACK_SETUP_CONFIG_PATH','mveMZ','../../helpers/utilities','lAHNo','dirname','writeFileSync','config','OPXnK','assign','isTypescriptProject','launchBuild','testContextOptions','../../helpers/accessibility-automation/helper','SXgbW','\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();','slice','ZaOYk','resolvedConfigFile','isTrue','KkMKi','xfLAy','cliConfig','PdjXM','pLfff','unlinkSync','DtLYg','existsSync','kcsgx','nestedKeyValue','homedir','accessibility','stop','PUPcY','startsWith','Acyzv','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','dsOsP','readFileSync','push','mqIMr','debug','beiYT','finalExecution','isUndefined','playwright','logLevel','TYpzC','BROWSERSTACK_AUTOMATION','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','--config','../../helpers/test-observability/constants','--config=','null','filterBrowserstackArgs','155591phDyRX','skipSessionName','GrBii','73198gYSZCm','sNuJy','KTMkE','pw_result.json','serializeToYamlString','test','cwd','3094820jwnRba','oEyqf','GeJVB','isFalse','markSDKSetupComplete','findIndex','clNiF','bmqEn','USER_CONFIG_DETAILS_PATH','filter','TaPKo','Deleting\x20','lkkHl','length','DwFHO','HNbWe','HQMpl','inherit','3CyTsep','splice','../../helpers/testhub/testhubHandler','stringify','trim','Error\x20in\x20deleting\x20playwright\x20results','NRUTY','split','nMavV','../../helpers/helper','PLAYWRIGHT','child_process','--disable-browserstack-automation','vCSow','gJzWD','LySUX','exports','./accessibility-helper','Updated\x20config\x20file\x20name\x20to\x20-\x20','1697040QUGogG','false','934932wDFMQG','true','indexOf','YFopr','path','./reporter/pwUtils','testObservability','getPackageType','../utils/constants','../../helpers/logger','apply','BROWSERSTACK_TEST_OBSERVABILITY','537733tLXvul','join','.browserstack','get','Playwright\x20process\x20exited\x20with\x20code\x20','lwmZM','../../helpers/test-observability/error-handler','PACKAGE_TYPE','tcaZf','meQfL'];a35_0x2d58=function(){return _0x3694ab;};return a35_0x2d58();}function a35_0x40c0(_0x59f07e,_0x335220){const _0x2d58e3=a35_0x2d58();return a35_0x40c0=function(_0x40c0ed,_0x2dc226){_0x40c0ed=_0x40c0ed-0x17f;let _0x480e98=_0x2d58e3[_0x40c0ed];return _0x480e98;},a35_0x40c0(_0x59f07e,_0x335220);}module[a35_0x13b51e(0x1f3)]=run;
|
|
2
|
+
'use strict';const a35_0x1e0bea=a35_0xdcc9;function a35_0xdcc9(_0x2ac689,_0x2de421){const _0x44e039=a35_0x44e0();return a35_0xdcc9=function(_0xdcc90d,_0x5af65b){_0xdcc90d=_0xdcc90d-0x1af;let _0x3941f=_0x44e039[_0xdcc90d];return _0x3941f;},a35_0xdcc9(_0x2ac689,_0x2de421);}(function(_0x5d1503,_0x236be0){const _0x48b06b=a35_0xdcc9,_0x4358ef=_0x5d1503();while(!![]){try{const _0x243707=parseInt(_0x48b06b(0x23d))/0x1*(-parseInt(_0x48b06b(0x221))/0x2)+parseInt(_0x48b06b(0x212))/0x3+parseInt(_0x48b06b(0x1b6))/0x4+-parseInt(_0x48b06b(0x1f2))/0x5*(-parseInt(_0x48b06b(0x230))/0x6)+-parseInt(_0x48b06b(0x1f0))/0x7+parseInt(_0x48b06b(0x225))/0x8*(parseInt(_0x48b06b(0x20d))/0x9)+-parseInt(_0x48b06b(0x1b4))/0xa*(-parseInt(_0x48b06b(0x1bf))/0xb);if(_0x243707===_0x236be0)break;else _0x4358ef['push'](_0x4358ef['shift']());}catch(_0x48d837){_0x4358ef['push'](_0x4358ef['shift']());}}}(a35_0x44e0,0x2860a));const fs=require('fs'),path=require(a35_0x1e0bea(0x203)),{spawn}=require(a35_0x1e0bea(0x1e9)),{format}=require('util'),logger=require(a35_0x1e0bea(0x1d7))['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x1e0bea(0x1d1)),helper=require(a35_0x1e0bea(0x1fd)),utilities=require(a35_0x1e0bea(0x240)),constants=require(a35_0x1e0bea(0x209)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x1e0bea(0x1da)),{CrashReporter}=require(a35_0x1e0bea(0x1d9)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{checkAccessibilityPlatformConfig}=require(a35_0x1e0bea(0x247)),{setAccessibilityCapabilities}=require(a35_0x1e0bea(0x244)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x1e0bea(0x1c3)),getUserPlaywrightConfig=async(_0x158264,_0x18a9c7)=>{const _0x4df3bc=a35_0x1e0bea,_0x5b2b57={'ImYQw':function(_0x3f074c){return _0x3f074c();},'LISbO':function(_0x50c47f,_0x5831d0){return _0x50c47f(_0x5831d0);},'CLeZg':function(_0x252f74,_0x4f6a8e){return _0x252f74(_0x4f6a8e);},'yvcEc':_0x4df3bc(0x23c),'PvhkE':'--config='},_0x2c2f28=!helper[_0x4df3bc(0x24b)](_0x158264[_0x4df3bc(0x1ec)]),_0x449d40=_0x2c2f28?path[_0x4df3bc(0x22e)](process[_0x4df3bc(0x246)](),_0x158264[_0x4df3bc(0x1ec)]):process[_0x4df3bc(0x246)](),{resolveConfigFile:_0x24d9cf,resolveConfigLocation:_0x1a683d}=helper[_0x4df3bc(0x1c2)]['apply'](null,_0x5b2b57[_0x4df3bc(0x213)](getConfigLoaderPath)),_0x475861=_0x24d9cf?_0x5b2b57[_0x4df3bc(0x224)](_0x24d9cf,_0x449d40):helper['nestedKeyValue'](_0x5b2b57[_0x4df3bc(0x208)](_0x1a683d,_0x449d40),[_0x5b2b57[_0x4df3bc(0x1cb)]]),_0x520775={};if(_0x2c2f28){const _0x5c2eef=_0x18a9c7[_0x4df3bc(0x235)](_0x5d3914=>_0x5d3914==='--config'||_0x5d3914==='-c'||_0x5d3914[_0x4df3bc(0x1df)](_0x4df3bc(0x22c)));_0x18a9c7[_0x4df3bc(0x21b)](_0x5c2eef,_0x18a9c7[_0x5c2eef][_0x4df3bc(0x1df)](_0x5b2b57[_0x4df3bc(0x1c0)])?0x1:0x2);}const _0x417156={};return _0x417156[_0x4df3bc(0x203)]=_0x475861,_0x417156[_0x4df3bc(0x1ec)]=_0x520775,_0x417156;},handleO11yRerun=_0x5e3c91=>{const _0x4f44dd=a35_0x1e0bea,_0x1d042f={};_0x1d042f['cZeip']=function(_0x538830,_0x397c50){return _0x538830!==_0x397c50;},_0x1d042f[_0x4f44dd(0x1c8)]='null',_0x1d042f[_0x4f44dd(0x21e)]=_0x4f44dd(0x210);const _0x403298=_0x1d042f,_0x3d72c7=helper[_0x4f44dd(0x1b8)](process[_0x4f44dd(0x219)][_0x4f44dd(0x237)]);if(_0x3d72c7){const _0x5f1cad=process['env'][_0x4f44dd(0x22f)],_0x190361=[];if(_0x403298[_0x4f44dd(0x216)](_0x5f1cad,_0x403298[_0x4f44dd(0x1c8)])&&!helper[_0x4f44dd(0x24b)](_0x5f1cad)){_0x5f1cad['split'](',')[_0x4f44dd(0x206)](_0x2e7a0f=>{_0x190361['push']('('+_0x2e7a0f['trim']()+')');});const _0x6c56fa='^'+_0x190361['join']('|')+'$';_0x5e3c91[_0x4f44dd(0x1f9)](_0x403298['vwKgs'],_0x6c56fa);}}},spawnOriginalProcess=_0x4dc810=>{const _0x20d8d7=a35_0x1e0bea,_0x2919dc={'ircIK':function(_0x30e9b6,_0x3353d8,_0x3f5224,_0x7332e0){return _0x30e9b6(_0x3353d8,_0x3f5224,_0x7332e0);},'NZWhT':_0x20d8d7(0x1e1),'bYRfk':_0x20d8d7(0x1e2),'tMDof':function(_0x214fbf,_0x560458){return _0x214fbf===_0x560458;},'aWNYN':_0x20d8d7(0x1eb),'yuqMq':'inherit'};_0x2919dc['ircIK'](spawn,_0x2919dc[_0x20d8d7(0x21d)],[_0x2919dc['bYRfk'],..._0x4dc810['slice'](0x1)],{'shell':_0x2919dc[_0x20d8d7(0x1bb)](process[_0x20d8d7(0x1e5)],_0x2919dc[_0x20d8d7(0x1dd)]),'stdio':_0x2919dc[_0x20d8d7(0x222)],'cwd':process[_0x20d8d7(0x246)]()});},isTestCommand=(_0x3a27e6,_0x149099)=>{const _0x11edfa=a35_0x1e0bea,_0x46d920={};_0x46d920['LufId']=function(_0x2f21f3,_0x29fe8a){return _0x2f21f3>_0x29fe8a;},_0x46d920['beHdB']=function(_0x342ed8,_0x3cff59){return _0x342ed8===_0x3cff59;},_0x46d920['BexTt']=_0x11edfa(0x205);const _0x3a674d=_0x46d920;if(_0x3a674d[_0x11edfa(0x23b)](_0x149099[_0x11edfa(0x227)],0x1)&&_0x3a674d[_0x11edfa(0x236)](_0x149099[0x1],_0x3a674d[_0x11edfa(0x229)]))return!![];return![];};function a35_0x44e0(){const _0x4bc44a=['BexTt','get','VfDZU','--config=','inherit','resolve','BROWSERSTACK_RERUN_TESTS','438WJbsVd','pw_result.json','ShygW','exports','VsHSC','findIndex','beHdB','BROWSERSTACK_RERUN','BROWSERSTACK_AUTOMATION','gDFhz','CqtOv','LufId','resolvedConfigFile','21xbqYgA','nvbyz','accessibility','../../helpers/utilities','Error\x20in\x20closing\x20playwright','HkGvq','jSPCn','./accessibility-helper','concat','cwd','../../helpers/accessibility-automation/helper','skipSessionName','BROWSERSTACK_TEST_ACCESSIBILITY_YML','getPackageType','isUndefined','existsSync','parse','UNafz','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','stop','8290nPexWt','errorMessage','719128ILEklM','rPftF','isTrue','BJsoo','markSDKSetupComplete','tMDof','cZQms','close','eJyrg','2816oejZXP','PvhkE','Error\x20in\x20deleting\x20playwright\x20results','requirePWModule','../../helpers/testhub/utils','Playwright\x20process\x20exited\x20with\x20code\x20','XAXhD','ZPRgR','includes','Cjvly','xswLa','assign','yvcEc','cliConfig','testContextOptions','getProxyUrl','false','launchBuild','../../helpers/BrowserStackSetup','knBnt','split','initialize','uacRk','isFalse','../../helpers/logger','Error\x20in\x20getting\x20funnel\x20data\x20results','../../helpers/test-observability/error-handler','./reporter/pwUtils','join','slice','aWNYN','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','startsWith','filterBrowserstackArgs','npx','playwright','filter','accessibilityOptions','platform','uQhGx','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','dirname','child_process','error','win32','config','gyHJi','IjVSr','eXzKs','1960875YKVAFQ','MODULE','4150jVRxkN','5|8|2|6|3|1|7|4|0','BROWSERSTACK_TEST_OBSERVABILITY','true','automation','isTypescriptProject','info','push','homedir','MZumI','--config','../../helpers/helper','hoReW','testObservability','clearTempPWConfig','USER_CONFIG_DETAILS_PATH','serializeToYamlString','path','unlinkSync','test','map','RnxHq','CLeZg','../utils/constants','OZwGu','debug','BROWSERSTACK_PW_CONFIG_DIR','326997GhzfoJ','finalExecution','PACKAGE_TYPE','--grep','browserstackSetupConfig.json','75936vyBtqg','ImYQw','hNYXp','writeFileSync','cZeip','YCiDw','has','env','OsyBb','splice','eKoZh','NZWhT','vwKgs','Deleting\x20','getConfigPath','10006LfABNJ','yuqMq','InToI','LISbO','16foqRmC','--disable-browserstack-automation','length','readFileSync'];a35_0x44e0=function(){return _0x4bc44a;};return a35_0x44e0();}async function run(_0xc8b456,_0x4c6347){const _0x25e04e=a35_0x1e0bea,_0x2a7be8={'InToI':'.browserstack','eXzKs':_0x25e04e(0x231),'bYaUj':function(_0x15d0d3,_0x58d620){return _0x15d0d3+_0x58d620;},'gDFhz':_0x25e04e(0x1d8),'hoReW':_0x25e04e(0x1f3),'UNafz':function(_0x14c446){return _0x14c446();},'rPftF':_0x25e04e(0x241),'jSPCn':'--disable-browserstack-automation','CqtOv':_0x25e04e(0x1cf),'mfQJM':'--disable-test-observability','dnrEV':function(_0x2b44a5,_0x3cc895){return _0x2b44a5>=_0x3cc895;},'MZumI':function(_0x2f3167,_0x1c6f56){return _0x2f3167+_0x1c6f56;},'XAXhD':_0x25e04e(0x1c1),'hNYXp':function(_0x2283d8,_0x46b087,_0x2bb3c8){return _0x2283d8(_0x46b087,_0x2bb3c8);},'IjVSr':function(_0xd30f14,_0x43201f){return _0xd30f14(_0x43201f);},'HkGvq':'BrowserStack\x20config\x20file\x20not\x20found.','gyHJi':_0x25e04e(0x1f6),'xswLa':function(_0x49f88c,_0x26811b){return _0x49f88c!=_0x26811b;},'RnxHq':function(_0x5825f1,_0x5c235e,_0x355661){return _0x5825f1(_0x5c235e,_0x355661);},'BJsoo':function(_0x1867ea,_0x27e4f0){return _0x1867ea===_0x27e4f0;},'Hniuj':_0x25e04e(0x1f5),'eJyrg':function(_0x42f08c,_0x357414){return _0x42f08c(_0x357414);},'cZQms':function(_0x497990,_0x3aecde){return _0x497990(_0x3aecde);},'ShygW':_0x25e04e(0x211),'VsHSC':'playwright-browserstack-sdk.config.cjs','OsyBb':'playwright-browserstack-sdk.config.js','uQhGx':function(_0x404090,_0xdc60a1){return _0x404090-_0xdc60a1;},'Bufue':function(_0x4980fc,_0xd37ca6){return _0x4980fc+_0xd37ca6;},'nvbyz':'Updated\x20config\x20file\x20name\x20to\x20-\x20','OZwGu':function(_0x495493,_0x9bb696){return _0x495493>_0x9bb696;},'uacRk':function(_0xf316b0,_0x10cb30,_0x93b237,_0x25236f){return _0xf316b0(_0x10cb30,_0x93b237,_0x25236f);},'YCiDw':_0x25e04e(0x1e1),'ImGuA':'playwright','VfDZU':_0x25e04e(0x205),'ZPRgR':_0x25e04e(0x1fc),'knBnt':function(_0x2e50f6,_0x3a48e1){return _0x2e50f6===_0x3a48e1;},'eKoZh':_0x25e04e(0x1eb),'TNsLu':_0x25e04e(0x22d),'JOTtt':_0x25e04e(0x1bd)};!helper[_0x25e04e(0x1d6)](process['env']['BROWSERSTACK_AUTOMATION'])&&(process[_0x25e04e(0x219)][_0x25e04e(0x238)]=!![]);process['argv'][_0x25e04e(0x1c7)](_0x2a7be8[_0x25e04e(0x243)])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x2a7be8['CqtOv'],_0x4c6347=_0x4c6347['filter'](_0x49124f=>_0x49124f!==_0x25e04e(0x226)));const _0x1a6442=_0x4c6347['indexOf'](_0x2a7be8['mfQJM']);_0x2a7be8['dnrEV'](_0x1a6442,0x0)&&(process[_0x25e04e(0x219)][_0x25e04e(0x1f4)]=_0x2a7be8[_0x25e04e(0x23a)],_0x4c6347=_0x4c6347[_0x25e04e(0x1e3)](_0x396700=>_0x396700!=='--disable-test-observability'));try{const _0x215ed4=path['join'](helper[_0x25e04e(0x1fa)](),_0x2a7be8[_0x25e04e(0x223)],_0x2a7be8[_0x25e04e(0x1ef)]);fs['existsSync'](_0x215ed4)&&fs[_0x25e04e(0x204)](_0x215ed4);}catch(_0x32052b){logger[_0x25e04e(0x20b)](_0x2a7be8[_0x25e04e(0x1fb)](_0x2a7be8[_0x25e04e(0x1c5)],_0x32052b));}if(!_0x2a7be8[_0x25e04e(0x214)](isTestCommand,_0xc8b456,_0x4c6347)){_0x2a7be8[_0x25e04e(0x1ee)](spawnOriginalProcess,_0x4c6347);return;}const _0x4b9e6d=new BrowserStackSetup(_0xc8b456,FRAMEWORKS['PLAYWRIGHT']);if(!_0x4b9e6d[_0x25e04e(0x1ec)]){logger[_0x25e04e(0x1ea)](_0x2a7be8[_0x25e04e(0x242)]);return;}await _0x4b9e6d[_0x25e04e(0x1d4)]();!helper[_0x25e04e(0x24b)](_0x4b9e6d[_0x25e04e(0x1cc)])&&_0x4b9e6d[_0x25e04e(0x1cc)][_0x25e04e(0x218)](_0x2a7be8['gyHJi'])&&(process[_0x25e04e(0x219)][_0x25e04e(0x238)]=_0x4b9e6d[_0x25e04e(0x1cc)][_0x25e04e(0x22a)](_0x2a7be8[_0x25e04e(0x1ed)])||!![]);_0x2a7be8[_0x25e04e(0x1c9)](_0x4b9e6d['config'][_0x25e04e(0x1ff)],null)&&!helper[_0x25e04e(0x1b8)](process[_0x25e04e(0x219)][_0x25e04e(0x1f4)])&&(process[_0x25e04e(0x219)][_0x25e04e(0x1f4)]=process[_0x25e04e(0x219)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x4b9e6d['config'][_0x25e04e(0x1ff)]);const _0x2e055d=!helper[_0x25e04e(0x1d6)](process['env'][_0x25e04e(0x1f4)]);let _0x5934c2=![];_0x4b9e6d[_0x25e04e(0x1ec)][_0x25e04e(0x23f)]&&(_0x5934c2=!![],process[_0x25e04e(0x219)][_0x25e04e(0x249)]=_0x4b9e6d['config'][_0x25e04e(0x23f)]);_0x4b9e6d[_0x25e04e(0x1ec)]['accessibilityOptions']&&(process[_0x25e04e(0x219)][_0x25e04e(0x1de)]=JSON['stringify'](_0x4b9e6d[_0x25e04e(0x1ec)][_0x25e04e(0x1e4)]));const _0x290264=_0x4c6347[_0x25e04e(0x245)](),_0x5a3dd0=await _0x2a7be8[_0x25e04e(0x207)](getUserPlaywrightConfig,_0xc8b456,_0x4c6347);if(helper[_0x25e04e(0x24b)](_0x5a3dd0)){_0x2a7be8[_0x25e04e(0x1ee)](spawnOriginalProcess,_0x290264);return;}const _0x3ba480=_0x5a3dd0[_0x25e04e(0x203)]?path[_0x25e04e(0x1e8)](_0x5a3dd0[_0x25e04e(0x203)]):process[_0x25e04e(0x246)]();process[_0x25e04e(0x219)][_0x25e04e(0x20c)]=_0x3ba480,await TestHubHandler[_0x25e04e(0x1d0)](FRAMEWORKS['PLAYWRIGHT'],_0x4b9e6d);_0x2e055d&&_0x2a7be8[_0x25e04e(0x1ee)](handleO11yRerun,_0x4c6347);let _0x3aeea0=_0x2a7be8[_0x25e04e(0x1b9)](process[_0x25e04e(0x219)][_0x25e04e(0x249)],_0x2a7be8['Hniuj']);_0x3aeea0=_0x3aeea0||_0x2a7be8[_0x25e04e(0x1be)](checkAccessibilityPlatformConfig,_0x4b9e6d['config']),process['env'][_0x25e04e(0x249)]=_0x3aeea0;_0x3aeea0&&_0x2a7be8[_0x25e04e(0x1bc)](setAccessibilityCapabilities,_0x4b9e6d[_0x25e04e(0x1ec)]);const _0x14f3ff=path[_0x25e04e(0x1db)](_0x5a3dd0['path']?path['dirname'](_0x5a3dd0[_0x25e04e(0x203)]):process[_0x25e04e(0x246)](),_0x2a7be8[_0x25e04e(0x232)]);fs[_0x25e04e(0x215)](_0x14f3ff,helper[_0x25e04e(0x202)](_0x4b9e6d['config'])),process[_0x25e04e(0x219)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x14f3ff,helper[_0x25e04e(0x200)]();let _0x115f3f='';_0x2a7be8[_0x25e04e(0x1b9)](helper[_0x25e04e(0x24a)](),constants[_0x25e04e(0x20f)][_0x25e04e(0x1f1)])?_0x115f3f=_0x2a7be8[_0x25e04e(0x234)]:_0x115f3f=_0x2a7be8[_0x25e04e(0x21a)];let _0x488d7a='';if(helper[_0x25e04e(0x1f7)](_0x5a3dd0['path'])){_0x488d7a=_0x25e04e(0x1e7);const _0x3c5399=_0x115f3f[_0x25e04e(0x1d3)]('.');_0x3c5399[_0x2a7be8[_0x25e04e(0x1e6)](_0x3c5399[_0x25e04e(0x227)],0x1)]='ts',_0x115f3f=_0x3c5399[_0x25e04e(0x1db)]('.'),logger[_0x25e04e(0x20b)](_0x2a7be8['Bufue'](_0x2a7be8[_0x25e04e(0x23e)],_0x115f3f));}else _0x488d7a='\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 _0x449df3=path[_0x25e04e(0x1db)](_0x5a3dd0['path']?path[_0x25e04e(0x1e8)](_0x5a3dd0['path']):process[_0x25e04e(0x246)](),_0x115f3f);let _0x907941=_0x5a3dd0[_0x25e04e(0x203)]?_0x5a3dd0[_0x25e04e(0x203)]:'';_0x907941=_0x2a7be8[_0x25e04e(0x20a)](_0x907941[_0x25e04e(0x227)],0x0)?path[_0x25e04e(0x22e)](_0x907941):'',process['env'][_0x25e04e(0x201)]=_0x907941;const _0x1ef493=helper[_0x25e04e(0x1ce)](_0x4b9e6d['config']);_0x1ef493&&(_0x488d7a=_0x2a7be8['Bufue'](_0x25e04e(0x1b2)+_0x1ef493+'\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();',_0x488d7a));helper[_0x25e04e(0x1e0)]({},_0x4c6347),fs[_0x25e04e(0x215)](_0x449df3,_0x488d7a),helper[_0x25e04e(0x1ba)]();const _0x18e681=_0x2a7be8[_0x25e04e(0x1d5)](spawn,_0x2a7be8[_0x25e04e(0x217)],[_0x2a7be8['ImGuA'],_0x2a7be8[_0x25e04e(0x22b)],_0x2a7be8[_0x25e04e(0x1c6)],_0x449df3,..._0x4c6347[_0x25e04e(0x1dc)](0x2)],{'shell':_0x2a7be8[_0x25e04e(0x1d2)](process['platform'],_0x2a7be8[_0x25e04e(0x21c)]),'stdio':_0x2a7be8['TNsLu'],'cwd':process[_0x25e04e(0x246)](),'env':Object[_0x25e04e(0x1ca)]({},process[_0x25e04e(0x219)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x25e04e(0x220)](_0xc8b456),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4b9e6d[_0x25e04e(0x1ec)][_0x25e04e(0x1cd)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4b9e6d[_0x25e04e(0x1ec)][_0x25e04e(0x1cd)][_0x25e04e(0x248)],'BROWSERSTACK_LOG_LEVEL':_0x4b9e6d[_0x25e04e(0x1ec)]['logLevel']})}),_0x4ac69e=()=>{const _0x4581cc=_0x25e04e;try{const _0x4188d5=path['join'](helper[_0x4581cc(0x1fa)](),_0x2a7be8[_0x4581cc(0x223)],_0x2a7be8[_0x4581cc(0x1ef)]);if(fs[_0x4581cc(0x1af)](_0x4188d5)){let _0x22cf17=fs[_0x4581cc(0x228)](_0x4188d5);_0x22cf17=JSON[_0x4581cc(0x1b0)](_0x22cf17),_0x4b9e6d[_0x4581cc(0x1b5)]=_0x22cf17,fs[_0x4581cc(0x204)](_0x4188d5);}}catch(_0x3d0075){logger[_0x4581cc(0x20b)](_0x2a7be8['bYaUj'](_0x2a7be8[_0x4581cc(0x239)],_0x3d0075));}};_0x18e681['on'](_0x2a7be8['JOTtt'],async _0xd7f816=>{const _0x56f390=_0x25e04e;try{const _0x28b27b=_0x2a7be8[_0x56f390(0x1fe)][_0x56f390(0x1d3)]('|');let _0xf58ce5=0x0;while(!![]){switch(_0x28b27b[_0xf58ce5++]){case'0':fs[_0x56f390(0x204)](_0x14f3ff);continue;case'1':logger[_0x56f390(0x1f8)](_0x56f390(0x21f)+_0x449df3);continue;case'2':await utilities[_0x56f390(0x20e)](_0x4b9e6d);continue;case'3':logger[_0x56f390(0x20b)](_0x56f390(0x1c4)+_0xd7f816);continue;case'4':logger[_0x56f390(0x20b)](_0x56f390(0x21f)+_0x14f3ff);continue;case'5':_0x2a7be8[_0x56f390(0x1b1)](_0x4ac69e);continue;case'6':process['exitCode']=_0xd7f816;continue;case'7':fs['unlinkSync'](_0x449df3);continue;case'8':await TestHubHandler[_0x56f390(0x1b3)]();continue;}break;}}catch(_0x43b9a4){logger['debug'](_0x2a7be8['bYaUj'](_0x2a7be8[_0x56f390(0x1b7)],_0x43b9a4));}});}module[a35_0x1e0bea(0x233)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a36_0x1f87(_0x2e0ae9,_0x45dff0){const _0x18d619=a36_0x18d6();return a36_0x1f87=function(_0x1f87c6,_0x5ad14d){_0x1f87c6=_0x1f87c6-0x8c;let _0x82c0bd=_0x18d619[_0x1f87c6];return _0x82c0bd;},a36_0x1f87(_0x2e0ae9,_0x45dff0);}const a36_0x3eed4b=a36_0x1f87;(function(_0x4b123a,_0x4c7b1a){const _0x4dd8e4=a36_0x1f87,_0x45a9fd=_0x4b123a();while(!![]){try{const _0x2e51c4=-parseInt(_0x4dd8e4(0x91))/0x1+-parseInt(_0x4dd8e4(0x94))/0x2*(parseInt(_0x4dd8e4(0x9f))/0x3)+parseInt(_0x4dd8e4(0x97))/0x4+parseInt(_0x4dd8e4(0xaf))/0x5*(-parseInt(_0x4dd8e4(0x98))/0x6)+parseInt(_0x4dd8e4(0xa2))/0x7*(parseInt(_0x4dd8e4(0xa8))/0x8)+parseInt(_0x4dd8e4(0xa0))/0x9+-parseInt(_0x4dd8e4(0x99))/0xa*(parseInt(_0x4dd8e4(0xb6))/0xb);if(_0x2e51c4===_0x4c7b1a)break;else _0x45a9fd['push'](_0x45a9fd['shift']());}catch(_0x584087){_0x45a9fd['push'](_0x45a9fd['shift']());}}}(a36_0x18d6,0xb5ed9));const util=require('util'),child_process=require(a36_0x3eed4b(0x9b)),{FRAMEWORKS}=require(a36_0x3eed4b(0xab)),{getFrameworkVersion,debug}=require(a36_0x3eed4b(0x93)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a36_0x3eed4b(0x96)),logger=require(a36_0x3eed4b(0x8d))[a36_0x3eed4b(0xa7)];module['exports']=async function(_0x2a8e03){const _0x528cc5=a36_0x3eed4b,_0x3ef09b={'WPifG':function(_0x48abf6,_0x26f70e){return _0x48abf6(_0x26f70e);},'WZOXH':function(_0x51d7c2){return _0x51d7c2();},'ymNeQ':_0x528cc5(0xb2),'boPLG':function(_0x4da559){return _0x4da559();},'frtIg':function(_0x5fab0f,_0xbbbc94){return _0x5fab0f(_0xbbbc94);},'bUHrA':_0x528cc5(0x8e),'cuNox':function(_0x169b64,_0x57eff2){return _0x169b64(_0x57eff2);},'ephqb':function(_0x307777,_0x480775){return _0x307777>=_0x480775;},'sCIIu':_0x528cc5(0xa3),'HUley':function(_0x45f74e,_0x50f664,_0x3fd2f1){return _0x45f74e(_0x50f664,_0x3fd2f1);},'PPuNA':function(_0x49ca25,_0x12b041){return _0x49ca25!==_0x12b041;},'TddoR':_0x528cc5(0xaa),'kaMEl':'Not\x20able\x20to\x20import\x20globalSetup'},_0x404779=child_process['fork'];if(helper[_0x528cc5(0xae)]())try{_0x3ef09b['WZOXH'](mockIsWorkerRedundant);}catch(_0x158c00){logger['debug'](_0x528cc5(0x9c)+util[_0x528cc5(0x9d)](_0x158c00));}child_process['fork']=function(){const _0x2b7a5f=_0x528cc5;return _0x3ef09b[_0x2b7a5f(0xad)](debug,_0x2b7a5f(0xa4)+arguments[0x0]),arguments[0x0][_0x2b7a5f(0xa1)](_0x3ef09b[_0x2b7a5f(0x9e)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x3ef09b[_0x2b7a5f(0xb8)]):logger[_0x2b7a5f(0xa5)](_0x2b7a5f(0x8c)+_0x3ef09b['boPLG'](getForkProcessPath)+_0x2b7a5f(0x92)),_0x404779['apply'](null,arguments);};if(process['env'][_0x528cc5(0xb3)]){_0x3ef09b[_0x528cc5(0x95)](debug,_0x3ef09b[_0x528cc5(0xb0)]);try{const {loadGlobalHook:_0x2a7770}=helper[_0x528cc5(0x90)][_0x528cc5(0xb1)](null,_0x3ef09b[_0x528cc5(0x9e)](getLoadUtilsPath)),_0x325d71=_0x3ef09b[_0x528cc5(0xac)](getFrameworkVersion,FRAMEWORKS[_0x528cc5(0x9a)]);let _0x3b3239=_0x2a8e03;if(_0x3ef09b[_0x528cc5(0x8f)](helper['compareVersions'](_0x325d71,_0x3ef09b[_0x528cc5(0xb7)]),0x0)){const _0x3b1643={};_0x3b1643['config']=_0x2a8e03,_0x3b3239=_0x3b1643;}const _0x599384=await _0x3ef09b[_0x528cc5(0xa9)](_0x2a7770,_0x3b3239,process[_0x528cc5(0xa6)][_0x528cc5(0xb3)]);if(_0x3ef09b[_0x528cc5(0xb5)](typeof _0x599384,_0x3ef09b['TddoR']))throw new Error(_0x3ef09b['kaMEl']);return _0x599384[_0x528cc5(0xb1)](null,arguments);}catch(_0x30043e){_0x3ef09b[_0x528cc5(0xac)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x30043e[_0x528cc5(0xb4)]());}}};function a36_0x18d6(){const _0x28b072=['error','env','winstonLogger','1070960BGFcZs','HUley','function','../../helpers/test-observability/constants','cuNox','WPifG','isHandlePWErrorSet','162280RCucPs','bUHrA','apply','./mock-process.js','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','toString','PPuNA','11JyuFIN','sCIIu','ymNeQ','Path\x20','../../helpers/logger','Running\x20existing\x20global\x20setup','ephqb','requirePWModule','460688lHlMtB','\x20is\x20not\x20found','../../helpers/test-observability/utils','794QHHwBf','frtIg','./patches','4129312MWbZJF','24npQnOH','9357830yjbYhS','PLAYWRIGHT','child_process','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','format','WZOXH','7017KOujWs','11075733vowAcw','includes','49tmgfQP','1.33.0','Call\x20to\x20child\x20fork\x20with\x20args\x20'];a36_0x18d6=function(){return _0x28b072;};return a36_0x18d6();}
|