browserstack-node-sdk 1.50.7 → 1.50.8
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/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.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/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.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/customSequencer.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.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.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/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.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/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.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/accessibilityRetryHelper.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/classLogger.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/metadata.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/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.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/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a33_0x1f8f(){const _0x58d247=['isAccessibilityPlatform','349616FaYYhu','../../../helpers/patchHelpers','HttpClient','mergeDeep','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','Hub\x20url\x20set\x20to\x20','/wd/hub','safariOptions_','getAccessibilityResultsSummary','winstonLogger','axXiP','DRRWI','set','../../../hubAllocationMethods','AEDqI','getHttpAgent','push','capability','Builder','XWoAG','./helpers/patchHelper','error','agent_','originalBuilder','build','310QQEqAO','then','logLevel','aaldK','__setBrowserOptions','NYnKg','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','qrozb','goog:chromeOptions','url_','moz:firefoxOptions','getGlobal','ZfnRe','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','newHubUrl','isUndefined','info','192ouFUWr','vjmfn','isBrowserstackInfra','__drivers','edgeOptions_','oSjJw','ms:edgeOptions','bYYYm','setCapabilities','requireHttpClient','VmBuQ','CAPABILITY_KEY','IFWua','send','ieOptions','16672QkFPbn','bdHZg','/session','isPacProxy','safari.options','1215266nEXCAF','debug','setLogLevel','MbBYF','browserstackAgentObservability','firefoxOptions_','edgeOptions','chromeOptions_','1469166AotPvm','object','global','requireSeleniumWebdriver','get','setServer','Setting\x20Browserstack\x20capabilities','getAccessibilityResults','FOoLZ','PGhBn','LkLis','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','chromeOptions','../../../bin/utils/constants','setGlobal','proxyUrl','LGKsr','overrideGet','kJokg','1782jtPPKs','OQKkr','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','YkEHV','BmCEG','exports','8363290fEbwcx','../../../helpers/logger','Proxy\x20set\x20to\x20','67576cGfAHd','session_','capabilities_','../accessibility-automation/helper','../../../helpers/helper','173663Idumev','wyuhG','https://','HriRl','caps_','__driversArray','getHubUrl','proxySettings','wGWcv','ieOptions_','__driver','proxy_','split'];a33_0x1f8f=function(){return _0x58d247;};return a33_0x1f8f();}const a33_0x32f767=a33_0x106d;(function(_0x5676be,_0xe7b062){const _0x48f8ab=a33_0x106d,_0x156d5d=_0x5676be();while(!![]){try{const _0x9bc547=-parseInt(_0x48f8ab(0x266))/0x1+-parseInt(_0x48f8ab(0x22f))/0x2+parseInt(_0x48f8ab(0x237))/0x3+parseInt(_0x48f8ab(0x253))/0x4*(-parseInt(_0x48f8ab(0x20a))/0x5)+-parseInt(_0x48f8ab(0x21b))/0x6*(-parseInt(_0x48f8ab(0x258))/0x7)+-parseInt(_0x48f8ab(0x22a))/0x8*(-parseInt(_0x48f8ab(0x24a))/0x9)+parseInt(_0x48f8ab(0x250))/0xa;if(_0x9bc547===_0xe7b062)break;else _0x156d5d['push'](_0x156d5d['shift']());}catch(_0x292128){_0x156d5d['push'](_0x156d5d['shift']());}}}(a33_0x1f8f,0x80e16));const logger=require(a33_0x32f767(0x251))[a33_0x32f767(0x1fa)],helper=require(a33_0x32f767(0x257)),constants=require(a33_0x32f767(0x244)),hubAllocator=require(a33_0x32f767(0x1fe)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a33_0x32f767(0x267)),{setAccessibilityCapabilities,setExtension}=require(a33_0x32f767(0x256)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require('../../../helpers/globals'),{overrideExecute}=require(a33_0x32f767(0x205)),modify=(_0x5c808,_0x2056a3=null,_0x362b5a=![])=>{const _0x95b696=a33_0x32f767,_0x4f6cf6={'wyuhG':function(_0x18e9e6,_0x355805){return _0x18e9e6!==_0x355805;},'OQKkr':_0x95b696(0x22c),'HriRl':function(_0x110c5a,_0x397da8){return _0x110c5a+_0x397da8;},'FOoLZ':_0x95b696(0x25a),'BmCEG':_0x95b696(0x1f7),'wHaWT':_0x95b696(0x212),'YBPjw':_0x95b696(0x243),'CiKLD':_0x95b696(0x221),'jtVOU':_0x95b696(0x235),'LkLis':_0x95b696(0x214),'bdHZg':'firefoxOptions','NYnKg':_0x95b696(0x22e),'XWoAG':'se:ieOptions','MbBYF':_0x95b696(0x229),'bYYYm':function(_0x1cb1b2,_0x48f200){return _0x1cb1b2===_0x48f200;},'ZfnRe':_0x95b696(0x238),'vjmfn':_0x95b696(0x23d),'wGWcv':'optimalHubUrl','IFWua':_0x95b696(0x217),'qrozb':function(_0x35228d,_0x15e2a3,_0x2c0673){return _0x35228d(_0x15e2a3,_0x2c0673);},'AEDqI':function(_0xae575b,_0x43da23){return _0xae575b(_0x43da23);},'PGhBn':function(_0xea62f,_0xd9572e,_0x8ee84b){return _0xea62f(_0xd9572e,_0x8ee84b);},'YkEHV':function(_0x101b7a,_0x5637b7,_0x414785){return _0x101b7a(_0x5637b7,_0x414785);},'axXiP':'4|1|5|2|0|3','DRRWI':_0x95b696(0x265),'FCdbV':_0x95b696(0x210),'aaldK':function(_0x1880d5){return _0x1880d5();},'LGKsr':function(_0x46f604,_0x1b5a19){return _0x46f604(_0x1b5a19);},'kJokg':function(_0x2dffac,_0x4d286b,_0x23bfe0){return _0x2dffac(_0x4d286b,_0x23bfe0);},'gFeSA':function(_0x2a4c77,_0x34753f){return _0x2a4c77!==_0x34753f;},'oSjJw':_0x95b696(0x24c),'VmBuQ':'Modifying\x20webdriver\x20builder'},_0x35b5cb=helper[_0x95b696(0x224)]();let _0x492177;try{_0x492177=helper[_0x95b696(0x23a)](),_0x492177['originalBuilder']&&(_0x492177['Builder']=_0x492177[_0x95b696(0x208)]);}catch(_0x32d122){return;}if(helper['isBrowserstackInfra']()){const _0x1dcd08={};_0x1dcd08[_0x95b696(0x20c)]=_0x5c808['browserStackLogLevel'],helper[_0x95b696(0x231)](_0x1dcd08,new Map(),new Map()),logger[_0x95b696(0x21a)](_0x4f6cf6[_0x95b696(0x220)]),logger[_0x95b696(0x230)](_0x4f6cf6[_0x95b696(0x225)]);}class _0xa3b9f2 extends _0x35b5cb[_0x95b696(0x268)]{[_0x95b696(0x228)](_0x14b25d){const _0x584571=_0x95b696;if(_0x4f6cf6['wyuhG'](_0x14b25d['path'],_0x4f6cf6[_0x584571(0x24b)])&&_0x4f6cf6[_0x584571(0x259)](global[_0x584571(0x218)],''))try{global[_0x584571(0x218)]=_0x4f6cf6[_0x584571(0x25b)](_0x4f6cf6['HriRl'](_0x4f6cf6[_0x584571(0x23f)],global[_0x584571(0x218)]),_0x4f6cf6[_0x584571(0x24e)]),this['options_']=hubAllocator['getRequestOptions'](global[_0x584571(0x218)]),logger[_0x584571(0x230)]('New\x20hub\x20url\x20set\x20to\x20'+global['newHubUrl']),global[_0x584571(0x218)]='';}catch(_0x4697d2){logger[_0x584571(0x206)](_0x4697d2);}return super[_0x584571(0x228)](_0x14b25d);}}class _0x245949 extends _0x492177[_0x95b696(0x203)]{[_0x95b696(0x23c)](){const _0x857c5f=_0x95b696;return this['url_']=helper[_0x857c5f(0x25e)](_0x5c808),logger[_0x857c5f(0x230)](_0x857c5f(0x1f6)+this[_0x857c5f(0x213)]),this;}[_0x95b696(0x20e)](_0x4ec019){const _0x244bae=_0x95b696;let _0x1d44c8={};for(const _0x190a16 in _0x4ec019){switch(_0x190a16){case _0x4f6cf6['wHaWT']:case _0x4f6cf6['YBPjw']:this['chromeOptions_']&&(_0x1d44c8=this['chromeOptions_']['get'](this[_0x244bae(0x236)]['CAPABILITY_KEY'])||{},this[_0x244bae(0x236)]['set'](this['chromeOptions_'][_0x244bae(0x226)],helper['mergeDeep'](_0x1d44c8,_0x4ec019[_0x190a16])));break;case _0x4f6cf6['CiKLD']:case _0x4f6cf6['jtVOU']:this[_0x244bae(0x21f)]&&(_0x1d44c8=this['edgeOptions_'][_0x244bae(0x23b)](this['edgeOptions_'][_0x244bae(0x226)])||{},this['edgeOptions_'][_0x244bae(0x1fd)](this[_0x244bae(0x21f)][_0x244bae(0x226)],helper[_0x244bae(0x1f4)](_0x1d44c8,_0x4ec019[_0x190a16])));break;case _0x4f6cf6[_0x244bae(0x241)]:case _0x4f6cf6[_0x244bae(0x22b)]:this[_0x244bae(0x234)]&&(_0x1d44c8=this['firefoxOptions_'][_0x244bae(0x23b)](this['firefoxOptions_'][_0x244bae(0x226)])||{},this[_0x244bae(0x234)][_0x244bae(0x1fd)](this[_0x244bae(0x234)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x1d44c8,_0x4ec019[_0x190a16])));break;case _0x4f6cf6[_0x244bae(0x20f)]:this[_0x244bae(0x1f8)]&&(_0x1d44c8=this['safariOptions_']['get'](this['safariOptions_']['CAPABILITY_KEY'])||{},this[_0x244bae(0x1f8)][_0x244bae(0x1fd)](this[_0x244bae(0x1f8)][_0x244bae(0x226)],helper[_0x244bae(0x1f4)](_0x1d44c8,_0x4ec019[_0x190a16])));break;case _0x4f6cf6[_0x244bae(0x204)]:case _0x4f6cf6[_0x244bae(0x232)]:this[_0x244bae(0x261)]&&(_0x1d44c8=this[_0x244bae(0x261)][_0x244bae(0x23b)](this[_0x244bae(0x261)]['CAPABILITY_KEY'])||{},this[_0x244bae(0x261)][_0x244bae(0x1fd)](this[_0x244bae(0x261)]['CAPABILITY_KEY'],helper[_0x244bae(0x1f4)](_0x1d44c8,_0x4ec019[_0x190a16])));break;}}}[_0x95b696(0x223)](){const _0x55edef=_0x95b696;return logger[_0x55edef(0x230)](_0x4f6cf6[_0x55edef(0x21c)]),this[_0x55edef(0x20e)](_0x5c808[_0x55edef(0x202)]),Object['keys'](_0x5c808[_0x55edef(0x202)])['forEach'](_0x411193=>{const _0x5cd4ea=_0x55edef,_0x5e492f=this[_0x5cd4ea(0x255)]['get'](_0x411193);_0x4f6cf6[_0x5cd4ea(0x222)](typeof _0x5e492f,_0x4f6cf6[_0x5cd4ea(0x216)])?this[_0x5cd4ea(0x255)]['set'](_0x411193,helper['mergeDeep'](_0x5e492f,_0x5c808['capability'][_0x411193])):this[_0x5cd4ea(0x255)]['set'](_0x411193,_0x5c808[_0x5cd4ea(0x202)][_0x411193]);}),this;}[_0x95b696(0x209)](){const _0x481071=_0x95b696,_0x4f0902={'vFfnA':function(_0xfd227,_0x58c90b,_0x8279fc){const _0x1ecda7=a33_0x106d;return _0x4f6cf6[_0x1ecda7(0x24d)](_0xfd227,_0x58c90b,_0x8279fc);}};if(helper[_0x481071(0x21d)]()){const _0x44571d=_0x4f6cf6[_0x481071(0x1fb)][_0x481071(0x264)]('|');let _0x65a85d=0x0;while(!![]){switch(_0x44571d[_0x65a85d++]){case'0':globals[_0x481071(0x215)](_0x4f6cf6[_0x481071(0x1fc)])&&(!_0x4f6cf6[_0x481071(0x240)](setExtension,this,_0x5c808)&&globals[_0x481071(0x245)](_0x4f6cf6[_0x481071(0x1fc)],![]));continue;case'1':this[_0x481071(0x23c)]();continue;case'2':if(helper[_0x481071(0x22d)](_0x5c808[_0x481071(0x25f)][_0x481071(0x246)]))this[_0x481071(0x207)]=helper[_0x481071(0x200)](_0x5c808['proxySettings'][_0x481071(0x246)]);else _0x5c808['proxySettings'][_0x481071(0x246)]&&(this[_0x481071(0x263)]=_0x5c808['proxySettings'][_0x481071(0x246)],logger[_0x481071(0x230)](_0x481071(0x252)+this['proxy_']));continue;case'3':logger[_0x481071(0x230)](_0x4f6cf6['FCdbV']);continue;case'4':_0x4f6cf6[_0x481071(0x20d)](isAccessibilityAutomationSession)&&_0x4f6cf6[_0x481071(0x247)](setAccessibilityCapabilities,_0x5c808);continue;case'5':this[_0x481071(0x223)]();continue;}break;}}const _0x18e6ac=super[_0x481071(0x209)]();return _0x18e6ac[_0x481071(0x254)]['then'](_0x57c7ff=>{const _0x5175fa=_0x481071;try{const _0x3c159b=_0x57c7ff[_0x5175fa(0x25c)][_0x5175fa(0x23b)](_0x4f6cf6[_0x5175fa(0x260)]);_0x3c159b?(logger[_0x5175fa(0x230)](_0x5175fa(0x1f5)+_0x3c159b),hubAllocator['updateHubUrl'](_0x3c159b),helper['storeOptimalHubUrl'](_0x3c159b)):logger[_0x5175fa(0x230)](_0x4f6cf6[_0x5175fa(0x227)]);}catch(_0x3bce6d){logger['debug'](_0x5175fa(0x242)+_0x3bce6d);}}),_0x18e6ac['quitCount_']=0x0,_0x18e6ac[_0x481071(0x20b)]&&_0x18e6ac[_0x481071(0x20b)](_0x32ee6c=>{const _0x371e3b=_0x481071,_0x41091c={'ZhOXn':function(_0x2bcdfe,_0x39a2b0,_0x3526a6){const _0x32c657=a33_0x106d;return _0x4f6cf6[_0x32c657(0x211)](_0x2bcdfe,_0x39a2b0,_0x3526a6);}};_0x4f6cf6['qrozb'](overrideQuit,_0x32ee6c,_0x18e6ac),_0x4f6cf6[_0x371e3b(0x1ff)](overrideTakeScreenshot,_0x32ee6c),helper[_0x371e3b(0x248)](_0x32ee6c,_0x5c808),_0x4f6cf6[_0x371e3b(0x211)](overrideExecute,_0x32ee6c,_0x5c808),_0x32ee6c[_0x371e3b(0x1f9)]=async()=>{return await _0x4f0902['vFfnA'](getAccessibilityResultsSummary,_0x32ee6c,global);},_0x32ee6c[_0x371e3b(0x23e)]=async()=>{return await _0x41091c['ZhOXn'](getAccessibilityResults,_0x32ee6c,global);};}),_0x18e6ac['getAccessibilityResultsSummary']=async()=>{const _0x2645ec=_0x481071;return await _0x4f6cf6[_0x2645ec(0x211)](getAccessibilityResultsSummary,_0x18e6ac,global);},_0x18e6ac[_0x481071(0x23e)]=async()=>{return await _0x4f6cf6['PGhBn'](getAccessibilityResults,_0x18e6ac,global);},_0x4f6cf6['AEDqI'](overrideTakeScreenshot,_0x18e6ac),_0x4f6cf6[_0x481071(0x247)](overrideQuit,_0x18e6ac),helper['overrideGet'](_0x18e6ac,_0x5c808),_0x4f6cf6[_0x481071(0x249)](overrideExecute,_0x18e6ac,_0x5c808),helper[_0x481071(0x219)](global[_0x481071(0x25d)])&&(global[_0x481071(0x25d)]=[]),helper['isUndefined'](global[_0x481071(0x21e)])&&(global[_0x481071(0x21e)]=[]),global[_0x481071(0x25d)][_0x481071(0x201)](_0x18e6ac),global[_0x481071(0x262)]=_0x18e6ac,_0x4f6cf6['gFeSA'](global[_0x481071(0x21e)],undefined)&&global[_0x481071(0x21e)][_0x481071(0x201)](_0x18e6ac),_0x2056a3&&helper[_0x481071(0x219)](_0x2056a3[_0x481071(0x239)][_0x481071(0x25d)])&&(_0x2056a3[_0x481071(0x239)][_0x481071(0x25d)]=[]),_0x2056a3&&_0x4f6cf6['wyuhG'](_0x2056a3[_0x481071(0x239)][_0x481071(0x21e)],undefined)&&(_0x2056a3[_0x481071(0x239)][_0x481071(0x21e)][_0x481071(0x201)](_0x18e6ac),_0x2056a3[_0x481071(0x239)]['__driversArray']['push'](_0x18e6ac)),_0x18e6ac;}}return _0x492177[_0x95b696(0x208)]=_0x492177['Builder'],_0x492177[_0x95b696(0x203)]=_0x245949,_0x35b5cb[_0x95b696(0x268)]=_0xa3b9f2,_0x492177;};function a33_0x106d(_0x4dd2df,_0x18a1a9){const _0x1f8fb1=a33_0x1f8f();return a33_0x106d=function(_0x106d30,_0x5493ef){_0x106d30=_0x106d30-0x1f4;let _0x1aeec9=_0x1f8fb1[_0x106d30];return _0x1aeec9;},a33_0x106d(_0x4dd2df,_0x18a1a9);}module[a33_0x32f767(0x24f)][a33_0x32f767(0x233)]=modify;
|
|
1
|
+
function a33_0x5682(_0x142142,_0x1acd10){const _0x4b57d2=a33_0x4b57();return a33_0x5682=function(_0x568297,_0x18d6f8){_0x568297=_0x568297-0x159;let _0x37fc1c=_0x4b57d2[_0x568297];return _0x37fc1c;},a33_0x5682(_0x142142,_0x1acd10);}const a33_0x1ac194=a33_0x5682;(function(_0xe0187,_0x191f47){const _0x17aebf=a33_0x5682,_0xce028b=_0xe0187();while(!![]){try{const _0x544e32=parseInt(_0x17aebf(0x1af))/0x1+parseInt(_0x17aebf(0x15f))/0x2+-parseInt(_0x17aebf(0x1b5))/0x3+-parseInt(_0x17aebf(0x179))/0x4+parseInt(_0x17aebf(0x174))/0x5*(-parseInt(_0x17aebf(0x171))/0x6)+-parseInt(_0x17aebf(0x173))/0x7*(parseInt(_0x17aebf(0x18a))/0x8)+-parseInt(_0x17aebf(0x19d))/0x9*(-parseInt(_0x17aebf(0x1b9))/0xa);if(_0x544e32===_0x191f47)break;else _0xce028b['push'](_0xce028b['shift']());}catch(_0x4987f7){_0xce028b['push'](_0xce028b['shift']());}}}(a33_0x4b57,0x71233));function a33_0x4b57(){const _0x5a683c=['isUndefined','__setBrowserOptions','caps_','getAccessibilityResultsSummary','1519580DiniQp','TEQpP','./helpers/patchHelper','forEach','getAccessibilityResults','../../../hubAllocationMethods','../../../helpers/logger','keys','Modifying\x20webdriver\x20builder','newHubUrl','then','proxyUrl','global','injyX','goog:chromeOptions','xQVRl','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','getRequestOptions','102VrMQhD','push','8491vnGTmH','247315CjbYAV','setServer','SqEsQ','getHttpAgent','capabilities_','3349076IIfiuy','browserStackLogLevel','Builder','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','../../../bin/utils/constants','requireHttpClient','WJaxO','../accessibility-automation/helper','ieOptions_','proxySettings','overrideGet','optimalHubUrl','kGFBA','../../../helpers/patchHelpers','mergeDeep','storeOptimalHubUrl','febsX','1584TNzLmh','arSzN','AvWme','tiiXc','ms:edgeOptions','debug','build','getGlobal','xktee','muuyD','set','NxKfE','capability','setCapabilities','eVJgX','dtWCy','__drivers','chromeOptions_','NIycA','27ABYdtd','KjYDG','agent_','New\x20hub\x20url\x20set\x20to\x20','requireSeleniumWebdriver','session_','CAPABILITY_KEY','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','YPEnt','exports','zwEfd','PwmJK','setGlobal','get','TNalo','url_','gRmVb','ZknBk','304701AszYMu','isPacProxy','firefoxOptions_','setLogLevel','hLhTN','originalBuilder','1812861JxiNIe','isAccessibilityPlatform','moz:firefoxOptions','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','6405070johubD','CHXOi','updateHubUrl','Proxy\x20set\x20to\x20','__driversArray','info','options_','faOQZ','https://','iCTdY','Setting\x20Browserstack\x20capabilities','proxy_','edgeOptions_','split','HttpClient','winstonLogger','chromeOptions','HNShG','object','quitCount_','TCnGe','__driver','BKCmh','path','LVQeV','isBrowserstackInfra','browserstackAgentObservability','safariOptions_','firefoxOptions','/wd/hub','nqHFE','getHubUrl'];a33_0x4b57=function(){return _0x5a683c;};return a33_0x4b57();}const logger=require(a33_0x1ac194(0x165))[a33_0x1ac194(0x1c8)],helper=require('../../../helpers/helper'),constants=require(a33_0x1ac194(0x17d)),hubAllocator=require(a33_0x1ac194(0x164)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a33_0x1ac194(0x186)),{setAccessibilityCapabilities,setExtension}=require(a33_0x1ac194(0x180)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require('../../../helpers/globals'),{overrideExecute}=require(a33_0x1ac194(0x161)),modify=(_0x57e375,_0x50a970=null,_0x4767db=![])=>{const _0x2d2ddb=a33_0x1ac194,_0x324df1={'rnjQK':function(_0x2bbeed,_0x651072){return _0x2bbeed!==_0x651072;},'injyX':'/session','faOQZ':function(_0x51cb7f,_0x414731){return _0x51cb7f!==_0x414731;},'BKCmh':function(_0x25f9a6,_0x5cfe32){return _0x25f9a6+_0x5cfe32;},'bKuJJ':function(_0x1b91d6,_0x1b9c78){return _0x1b91d6+_0x1b9c78;},'WJaxO':_0x2d2ddb(0x1c1),'dtWCy':_0x2d2ddb(0x1d6),'TEQpP':_0x2d2ddb(0x16d),'AVLqA':_0x2d2ddb(0x1c9),'nqHFE':_0x2d2ddb(0x18e),'tJbDC':'edgeOptions','tiiXc':_0x2d2ddb(0x1b7),'KjYDG':_0x2d2ddb(0x1d5),'YPEnt':'safari.options','PwmJK':'se:ieOptions','TNalo':'ieOptions','GyLZt':function(_0x5478e0,_0x43d750){return _0x5478e0===_0x43d750;},'TCnGe':_0x2d2ddb(0x1cb),'HNShG':_0x2d2ddb(0x1c3),'ZknBk':_0x2d2ddb(0x184),'febsX':_0x2d2ddb(0x16f),'LVQeV':function(_0x2598e6,_0x10497c,_0x51bccd){return _0x2598e6(_0x10497c,_0x51bccd);},'AvWme':function(_0xd81c43,_0xfdd841,_0x30403b){return _0xd81c43(_0xfdd841,_0x30403b);},'iCTdY':function(_0xa6e18b,_0x48fbfd){return _0xa6e18b(_0x48fbfd);},'kGFBA':function(_0x521e3c,_0x24df6a,_0xae851f){return _0x521e3c(_0x24df6a,_0xae851f);},'hLhTN':function(_0x35dd4b,_0x5492b6,_0x2448ed){return _0x35dd4b(_0x5492b6,_0x2448ed);},'TMWxm':'1|3|4|0|2|5','muuyD':function(_0x18146b){return _0x18146b();},'NIycA':function(_0x24122c,_0x460cfb){return _0x24122c(_0x460cfb);},'eVJgX':_0x2d2ddb(0x1b6),'NxKfE':function(_0x352025,_0x9f8aa6,_0x3c9eec){return _0x352025(_0x9f8aa6,_0x3c9eec);},'moANW':_0x2d2ddb(0x1b8),'arSzN':function(_0x2175d0,_0x17bf19){return _0x2175d0(_0x17bf19);},'zwEfd':function(_0x5b8291,_0x5e7d76,_0xfe4ed5){return _0x5b8291(_0x5e7d76,_0xfe4ed5);},'xktee':function(_0xa8abb2,_0x1b53b8){return _0xa8abb2!==_0x1b53b8;},'SqEsQ':_0x2d2ddb(0x17c),'xQVRl':_0x2d2ddb(0x167)},_0x543b65=helper[_0x2d2ddb(0x17e)]();let _0x581949;try{_0x581949=helper[_0x2d2ddb(0x1a1)](),_0x581949[_0x2d2ddb(0x1b4)]&&(_0x581949['Builder']=_0x581949[_0x2d2ddb(0x1b4)]);}catch(_0x1cea44){return;}if(helper[_0x2d2ddb(0x1d2)]()){const _0x841e86={};_0x841e86['logLevel']=_0x57e375[_0x2d2ddb(0x17a)],helper[_0x2d2ddb(0x1b2)](_0x841e86,new Map(),new Map()),logger[_0x2d2ddb(0x1be)](_0x324df1[_0x2d2ddb(0x176)]),logger['debug'](_0x324df1[_0x2d2ddb(0x16e)]);}class _0x46f155 extends _0x543b65[_0x2d2ddb(0x1c7)]{['send'](_0x249c06){const _0x52910a=_0x2d2ddb;if(_0x324df1['rnjQK'](_0x249c06[_0x52910a(0x1d0)],_0x324df1[_0x52910a(0x16c)])&&_0x324df1[_0x52910a(0x1c0)](global[_0x52910a(0x168)],''))try{global[_0x52910a(0x168)]=_0x324df1[_0x52910a(0x1cf)](_0x324df1['bKuJJ'](_0x324df1[_0x52910a(0x17f)],global[_0x52910a(0x168)]),_0x324df1[_0x52910a(0x199)]),this[_0x52910a(0x1bf)]=hubAllocator[_0x52910a(0x170)](global[_0x52910a(0x168)]),logger['debug'](_0x52910a(0x1a0)+global[_0x52910a(0x168)]),global[_0x52910a(0x168)]='';}catch(_0x92ac20){logger['error'](_0x92ac20);}return super['send'](_0x249c06);}}class _0xbdc9e extends _0x581949[_0x2d2ddb(0x17b)]{['setServer'](){const _0xe4f047=_0x2d2ddb;return this[_0xe4f047(0x1ac)]=helper[_0xe4f047(0x15a)](_0x57e375),logger[_0xe4f047(0x18f)]('Hub\x20url\x20set\x20to\x20'+this['url_']),this;}[_0x2d2ddb(0x15c)](_0x12718c){const _0x29309e=_0x2d2ddb;let _0x3f25e4={};for(const _0xd70547 in _0x12718c){switch(_0xd70547){case _0x324df1[_0x29309e(0x160)]:case _0x324df1['AVLqA']:this[_0x29309e(0x19b)]&&(_0x3f25e4=this[_0x29309e(0x19b)]['get'](this[_0x29309e(0x19b)][_0x29309e(0x1a3)])||{},this[_0x29309e(0x19b)][_0x29309e(0x194)](this[_0x29309e(0x19b)][_0x29309e(0x1a3)],helper[_0x29309e(0x187)](_0x3f25e4,_0x12718c[_0xd70547])));break;case _0x324df1[_0x29309e(0x159)]:case _0x324df1['tJbDC']:this['edgeOptions_']&&(_0x3f25e4=this[_0x29309e(0x1c5)]['get'](this[_0x29309e(0x1c5)][_0x29309e(0x1a3)])||{},this[_0x29309e(0x1c5)][_0x29309e(0x194)](this[_0x29309e(0x1c5)][_0x29309e(0x1a3)],helper[_0x29309e(0x187)](_0x3f25e4,_0x12718c[_0xd70547])));break;case _0x324df1[_0x29309e(0x18d)]:case _0x324df1[_0x29309e(0x19e)]:this[_0x29309e(0x1b1)]&&(_0x3f25e4=this['firefoxOptions_'][_0x29309e(0x1aa)](this['firefoxOptions_'][_0x29309e(0x1a3)])||{},this['firefoxOptions_'][_0x29309e(0x194)](this[_0x29309e(0x1b1)][_0x29309e(0x1a3)],helper[_0x29309e(0x187)](_0x3f25e4,_0x12718c[_0xd70547])));break;case _0x324df1[_0x29309e(0x1a5)]:this['safariOptions_']&&(_0x3f25e4=this[_0x29309e(0x1d4)][_0x29309e(0x1aa)](this[_0x29309e(0x1d4)]['CAPABILITY_KEY'])||{},this['safariOptions_'][_0x29309e(0x194)](this['safariOptions_'][_0x29309e(0x1a3)],helper[_0x29309e(0x187)](_0x3f25e4,_0x12718c[_0xd70547])));break;case _0x324df1[_0x29309e(0x1a8)]:case _0x324df1[_0x29309e(0x1ab)]:this['ieOptions_']&&(_0x3f25e4=this[_0x29309e(0x181)][_0x29309e(0x1aa)](this[_0x29309e(0x181)][_0x29309e(0x1a3)])||{},this[_0x29309e(0x181)][_0x29309e(0x194)](this[_0x29309e(0x181)][_0x29309e(0x1a3)],helper[_0x29309e(0x187)](_0x3f25e4,_0x12718c[_0xd70547])));break;}}}[_0x2d2ddb(0x197)](){const _0x36d804=_0x2d2ddb;return logger[_0x36d804(0x18f)](_0x324df1[_0x36d804(0x1ca)]),this['__setBrowserOptions'](_0x57e375[_0x36d804(0x196)]),Object[_0x36d804(0x166)](_0x57e375[_0x36d804(0x196)])[_0x36d804(0x162)](_0x2c9484=>{const _0x2e1d93=_0x36d804,_0x340b38=this['capabilities_'][_0x2e1d93(0x1aa)](_0x2c9484);_0x324df1['GyLZt'](typeof _0x340b38,_0x324df1[_0x2e1d93(0x1cd)])?this[_0x2e1d93(0x178)][_0x2e1d93(0x194)](_0x2c9484,helper['mergeDeep'](_0x340b38,_0x57e375[_0x2e1d93(0x196)][_0x2c9484])):this[_0x2e1d93(0x178)][_0x2e1d93(0x194)](_0x2c9484,_0x57e375[_0x2e1d93(0x196)][_0x2c9484]);}),this;}['build'](){const _0x43447c=_0x2d2ddb,_0x46a489={'gRmVb':function(_0x26b462,_0x529519,_0x382f6d){const _0x4ee031=a33_0x5682;return _0x324df1[_0x4ee031(0x1b3)](_0x26b462,_0x529519,_0x382f6d);}};if(helper['isBrowserstackInfra']()){const _0x4a7031=_0x324df1['TMWxm'][_0x43447c(0x1c6)]('|');let _0x114bbd=0x0;while(!![]){switch(_0x4a7031[_0x114bbd++]){case'0':if(helper[_0x43447c(0x1b0)](_0x57e375['proxySettings'][_0x43447c(0x16a)]))this[_0x43447c(0x19f)]=helper[_0x43447c(0x177)](_0x57e375[_0x43447c(0x182)][_0x43447c(0x16a)]);else _0x57e375['proxySettings'][_0x43447c(0x16a)]&&(this[_0x43447c(0x1c4)]=_0x57e375[_0x43447c(0x182)][_0x43447c(0x16a)],logger['debug'](_0x43447c(0x1bc)+this[_0x43447c(0x1c4)]));continue;case'1':_0x324df1[_0x43447c(0x193)](isAccessibilityAutomationSession)&&_0x324df1[_0x43447c(0x19c)](setAccessibilityCapabilities,_0x57e375);continue;case'2':globals[_0x43447c(0x191)](_0x324df1[_0x43447c(0x198)])&&(!_0x324df1[_0x43447c(0x195)](setExtension,this,_0x57e375)&&globals[_0x43447c(0x1a9)](_0x324df1['eVJgX'],![]));continue;case'3':this[_0x43447c(0x175)]();continue;case'4':this[_0x43447c(0x197)]();continue;case'5':logger[_0x43447c(0x18f)](_0x324df1['moANW']);continue;}break;}}const _0x9026c=super[_0x43447c(0x190)]();return _0x9026c[_0x43447c(0x1a2)]['then'](_0x242acd=>{const _0x5019bd=_0x43447c;try{const _0x267490=_0x242acd[_0x5019bd(0x15d)][_0x5019bd(0x1aa)](_0x324df1[_0x5019bd(0x1ae)]);_0x267490?(logger[_0x5019bd(0x18f)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x267490),hubAllocator[_0x5019bd(0x1bb)](_0x267490),helper[_0x5019bd(0x188)](_0x267490)):logger['debug'](_0x324df1[_0x5019bd(0x189)]);}catch(_0x270029){logger[_0x5019bd(0x18f)](_0x5019bd(0x1a4)+_0x270029);}}),_0x9026c[_0x43447c(0x1cc)]=0x0,_0x9026c[_0x43447c(0x169)]&&_0x9026c['then'](_0x2fef37=>{const _0x27c47f=_0x43447c,_0x129d7d={'CHXOi':function(_0x358df3,_0x92fc57,_0x462609){return _0x324df1['LVQeV'](_0x358df3,_0x92fc57,_0x462609);}};_0x324df1[_0x27c47f(0x18c)](overrideQuit,_0x2fef37,_0x9026c),_0x324df1[_0x27c47f(0x1c2)](overrideTakeScreenshot,_0x2fef37),helper[_0x27c47f(0x183)](_0x2fef37,_0x57e375),_0x324df1[_0x27c47f(0x1d1)](overrideExecute,_0x2fef37,_0x57e375),_0x2fef37[_0x27c47f(0x15e)]=async()=>{const _0x4b740f=_0x27c47f;return await _0x46a489[_0x4b740f(0x1ad)](getAccessibilityResultsSummary,_0x2fef37,global);},_0x2fef37[_0x27c47f(0x163)]=async()=>{const _0x4afbbb=_0x27c47f;return await _0x129d7d[_0x4afbbb(0x1ba)](getAccessibilityResults,_0x2fef37,global);};}),_0x9026c[_0x43447c(0x15e)]=async()=>{const _0x4c28a9=_0x43447c;return await _0x324df1[_0x4c28a9(0x185)](getAccessibilityResultsSummary,_0x9026c,global);},_0x9026c[_0x43447c(0x163)]=async()=>{const _0x5dc292=_0x43447c;return await _0x324df1[_0x5dc292(0x18c)](getAccessibilityResults,_0x9026c,global);},_0x324df1[_0x43447c(0x18b)](overrideTakeScreenshot,_0x9026c),_0x324df1[_0x43447c(0x1c2)](overrideQuit,_0x9026c),helper[_0x43447c(0x183)](_0x9026c,_0x57e375),_0x324df1[_0x43447c(0x1a7)](overrideExecute,_0x9026c,_0x57e375),helper[_0x43447c(0x15b)](global['__driversArray'])&&(global[_0x43447c(0x1bd)]=[]),helper[_0x43447c(0x15b)](global[_0x43447c(0x19a)])&&(global['__drivers']=[]),global[_0x43447c(0x1bd)][_0x43447c(0x172)](_0x9026c),global[_0x43447c(0x1ce)]=_0x9026c,_0x324df1['rnjQK'](global[_0x43447c(0x19a)],undefined)&&global[_0x43447c(0x19a)][_0x43447c(0x172)](_0x9026c),_0x50a970&&helper[_0x43447c(0x15b)](_0x50a970['global'][_0x43447c(0x1bd)])&&(_0x50a970['global'][_0x43447c(0x1bd)]=[]),_0x50a970&&_0x324df1[_0x43447c(0x192)](_0x50a970[_0x43447c(0x16b)]['__drivers'],undefined)&&(_0x50a970[_0x43447c(0x16b)][_0x43447c(0x19a)]['push'](_0x9026c),_0x50a970[_0x43447c(0x16b)][_0x43447c(0x1bd)][_0x43447c(0x172)](_0x9026c)),_0x9026c;}}return _0x581949[_0x2d2ddb(0x1b4)]=_0x581949[_0x2d2ddb(0x17b)],_0x581949[_0x2d2ddb(0x17b)]=_0xbdc9e,_0x543b65[_0x2d2ddb(0x1c7)]=_0x46f155,_0x581949;};module[a33_0x1ac194(0x1a6)][a33_0x1ac194(0x1d3)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0x306f05=a34_0x4e42;function a34_0x32e0(){const _0x5d0164=['8577976UWweUu','63ceCSIl','2290280cfNJYf','6848106qmScMD','restore','12vYyOVr','timeout','7UlFked','../../../bin/utils/constants','41840051TpUSzt','1201734xLkees','mochaHooks','72254kdxyyW','230870GBfJoc','23HQSsRA','sJYuR'];a34_0x32e0=function(){return _0x5d0164;};return a34_0x32e0();}(function(_0x2795f9,_0x28addf){const _0x2d6b50=a34_0x4e42,_0x47402b=_0x2795f9();while(!![]){try{const _0x1aeb0c=-parseInt(_0x2d6b50(0x16c))/0x1*(-parseInt(_0x2d6b50(0x16a))/0x2)+parseInt(_0x2d6b50(0x168))/0x3*(parseInt(_0x2d6b50(0x163))/0x4)+parseInt(_0x2d6b50(0x160))/0x5+-parseInt(_0x2d6b50(0x161))/0x6*(-parseInt(_0x2d6b50(0x165))/0x7)+parseInt(_0x2d6b50(0x15e))/0x8+-parseInt(_0x2d6b50(0x15f))/0x9*(parseInt(_0x2d6b50(0x16b))/0xa)+-parseInt(_0x2d6b50(0x167))/0xb;if(_0x1aeb0c===_0x28addf)break;else _0x47402b['push'](_0x47402b['shift']());}catch(_0x4133e1){_0x47402b['push'](_0x47402b['shift']());}}}(a34_0x32e0,0xb46f3));const requestSpy=require('../../../helpers/request-spy'),constants=require(a34_0x306f05(0x166)),{addRequestSpy}=require('../../../helpers/test-observability/utils');function a34_0x4e42(_0x41a133,_0x150396){const _0x32e02a=a34_0x32e0();return a34_0x4e42=function(_0x4e4243,_0x13dafd){_0x4e4243=_0x4e4243-0x15d;let _0x2f3266=_0x32e02a[_0x4e4243];return _0x2f3266;},a34_0x4e42(_0x41a133,_0x150396);}exports[a34_0x306f05(0x169)]={'beforeAll'(){const _0x536627=a34_0x306f05,_0x157627={'sJYuR':function(_0x1d5e2e){return _0x1d5e2e();}},_0x4819c9='browserstack internal helper hook';_0x157627[_0x536627(0x15d)](addRequestSpy);},'afterAll'(){const _0x1d345e=a34_0x306f05,_0x1c571e='browserstack internal helper hook';this[_0x1d345e(0x164)](0xea60),requestSpy[_0x1d345e(0x162)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a35_0x31af(_0x3fa546,_0x1cfe24){const _0x3adf55=a35_0x3adf();return a35_0x31af=function(_0x31af34,_0x7a9903){_0x31af34=_0x31af34-0x1e9;let _0xf4d4d0=_0x3adf55[_0x31af34];return _0xf4d4d0;},a35_0x31af(_0x3fa546,_0x1cfe24);}const a35_0x166a3b=a35_0x31af;(function(_0x1e3504,_0x57e759){const _0x4371a9=a35_0x31af,_0x5540bf=_0x1e3504();while(!![]){try{const _0x1ac670=-parseInt(_0x4371a9(0x247))/0x1*(parseInt(_0x4371a9(0x241))/0x2)+parseInt(_0x4371a9(0x22f))/0x3+-parseInt(_0x4371a9(0x1ee))/0x4*(parseInt(_0x4371a9(0x227))/0x5)+-parseInt(_0x4371a9(0x210))/0x6*(-parseInt(_0x4371a9(0x225))/0x7)+parseInt(_0x4371a9(0x20b))/0x8+parseInt(_0x4371a9(0x1f1))/0x9+parseInt(_0x4371a9(0x1fc))/0xa*(-parseInt(_0x4371a9(0x20f))/0xb);if(_0x1ac670===_0x57e759)break;else _0x5540bf['push'](_0x5540bf['shift']());}catch(_0x30f68a){_0x5540bf['push'](_0x5540bf['shift']());}}}(a35_0x3adf,0x5d5c8));function a35_0x3adf(){const _0x596b8a=['558990IwZULB','Reahe','../../../helpers/test-observability/utils','mapTestHooks','lodash','GqSrb','WmRlL','suites','hookAnalyticsId','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','getBrowserName','type','failed','slice','uuid','1932088yMUOSC','../../../helpers/testhub/utils','CMetQ','js-','121mmoaci','66NqEyCA','WiMEj','JorbB','parent','toISOString','pending','unknown_grid','../../utils/logPatcher','getCapabilities','DWTvZ','map_','_afterAll','SjtVI','PlnfU','get','PSUdU','forEach','getTestEnv','vERiB','vpJTb','push','324842FgsYQE','state','1423065abGRtN','TEST_PLATFORM','browserstack','__cloud_provider___','../../../../package.json','reduce','getHookDetails','getSession','1056747oiQHWJ','split','BCZBi','string','../../../helpers/test-observability/constants','_beforeAll','XWbUE','UwXeI','_beforeEach','zFTqk','KeXbk','jDnYv','substring','AYtyj','_afterEach','indexOf','hook','blplh','192008EVMhYP','cCelx','fromEntries','WbaIZ','bs:addPlatformDetails:','riIsl','6yTJZOu','platformVersion','sendPlatformDetails','getPlatform','nqpqw','../../../helpers/helper','PAouq','4lLaNrM','FpTIZ','KLhJx','6783372PZxGPG','Eqzun','sgPyY','getHooksForTest','zuvAX','WatEp','markedStatus','pid','getHookSkippedTests','NAlJs','MjIKB'];a35_0x3adf=function(){return _0x596b8a;};return a35_0x3adf();}const {v4:uuidv4}=require(a35_0x166a3b(0x20a)),{name,version}=require(a35_0x166a3b(0x22b)),logPatcher=require(a35_0x166a3b(0x217)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require(a35_0x166a3b(0x233)),{getPlatformVersion}=require(a35_0x166a3b(0x1ec)),{shouldProcessEventForTesthub}=require(a35_0x166a3b(0x20c)),{isFunction}=require(a35_0x166a3b(0x200)),{patchConsoleLogger}=require(a35_0x166a3b(0x1fe));patchConsoleLogger(),exports[a35_0x166a3b(0x221)]=()=>{const _0x38aa83=a35_0x166a3b,_0x27f428={'zFTqk':'generic','Eqzun':function(_0xc5db81){return _0xc5db81();}};return{'ci':_0x27f428[_0x38aa83(0x238)],'key':_0x27f428[_0x38aa83(0x1f2)](uuidv4),'version':version,'collector':_0x38aa83(0x20e)+name};},exports[a35_0x166a3b(0x22d)]=_0x3dbcb4=>{const _0x87a3f5=a35_0x166a3b,_0x3b7c3f={};_0x3b7c3f[_0x87a3f5(0x235)]=function(_0x5b65c0,_0x2158a8){return _0x5b65c0!==_0x2158a8;},_0x3b7c3f[_0x87a3f5(0x1eb)]=_0x87a3f5(0x232),_0x3b7c3f[_0x87a3f5(0x236)]=function(_0x19a9d8,_0x23b285){return _0x19a9d8!==_0x23b285;},_0x3b7c3f[_0x87a3f5(0x1f5)]='hook:',_0x3b7c3f['PAouq']=function(_0x541aad,_0xaed083){return _0x541aad!==_0xaed083;},_0x3b7c3f['vERiB']='hook';const _0x19e1af=_0x3b7c3f;if(!_0x3dbcb4||_0x19e1af[_0x87a3f5(0x235)](typeof _0x3dbcb4,_0x19e1af[_0x87a3f5(0x1eb)]))return[null,null];if(_0x19e1af[_0x87a3f5(0x236)](_0x3dbcb4[_0x87a3f5(0x23e)](_0x19e1af[_0x87a3f5(0x1f5)]),-0x1)){const _0x3a9440=_0x3dbcb4[_0x87a3f5(0x230)](_0x19e1af[_0x87a3f5(0x1f5)]);return[_0x3a9440[0x0][_0x87a3f5(0x209)](0x0,-0x1)['split']('\x22')[0x1],_0x3a9440[0x1][_0x87a3f5(0x23b)](0x1)];}else{if(_0x19e1af[_0x87a3f5(0x1ed)](_0x3dbcb4[_0x87a3f5(0x23e)](_0x19e1af[_0x87a3f5(0x222)]),-0x1)){const _0x4f52de=_0x3dbcb4[_0x87a3f5(0x230)](_0x19e1af['vERiB']);return[_0x4f52de[0x0][_0x87a3f5(0x209)](0x0,-0x1)['split']('\x22')[0x1],_0x3dbcb4];}}return[null,null];},exports[a35_0x166a3b(0x1f4)]=_0x3311f1=>{const _0x57c3f3=a35_0x166a3b,_0x13014d={'sgPyY':function(_0x567b0c,_0x1448a0){return _0x567b0c(_0x1448a0);},'PlnfU':_0x57c3f3(0x234),'jLkto':_0x57c3f3(0x21b),'KeXbk':_0x57c3f3(0x237),'NAlJs':_0x57c3f3(0x23d)};if(!_0x3311f1||!_0x3311f1[_0x57c3f3(0x213)])return[];const _0x10e00c=[];return[_0x13014d[_0x57c3f3(0x21d)],_0x13014d['jLkto'],_0x13014d[_0x57c3f3(0x239)],_0x13014d[_0x57c3f3(0x1fa)]]['forEach'](_0xe833af=>{const _0x25fdb3=_0x57c3f3,_0x4bbca7=_0x3311f1['parent'][_0xe833af]||[];_0x4bbca7[_0x25fdb3(0x220)](_0x4329fa=>{const _0x5516ba=_0x25fdb3;_0x4329fa[_0x5516ba(0x204)]&&!_0x13014d[_0x5516ba(0x1f3)](isInternalHook,_0x4329fa['fn'])&&_0x10e00c[_0x5516ba(0x224)](_0x4329fa[_0x5516ba(0x204)]);});}),[..._0x10e00c,...exports[_0x57c3f3(0x1f4)](_0x3311f1['parent'])];},exports[a35_0x166a3b(0x1ff)]=_0xd290ed=>{const _0x3bc40e=a35_0x166a3b,_0x4e89f3={'KLhJx':function(_0x56f481){return _0x56f481();},'CMetQ':function(_0x39ee1a,_0x4712c4){return _0x39ee1a===_0x4712c4;},'vpJTb':_0x3bc40e(0x23d),'BCZBi':_0x3bc40e(0x234),'Reahe':_0x3bc40e(0x21b),'PSUdU':'_beforeEach'};if(!_0xd290ed||!_0xd290ed[_0x3bc40e(0x213)])return;[_0x4e89f3[_0x3bc40e(0x231)],_0x4e89f3[_0x3bc40e(0x1fd)],_0x4e89f3[_0x3bc40e(0x21f)],_0x4e89f3[_0x3bc40e(0x223)]][_0x3bc40e(0x220)](_0x1e12eb=>{const _0x5128ed=_0x3bc40e,_0x381346={'DWTvZ':function(_0x232314){const _0x286526=a35_0x31af;return _0x4e89f3[_0x286526(0x1f0)](_0x232314);},'WatEp':function(_0x120b10,_0x171e33){const _0x1bcf61=a35_0x31af;return _0x4e89f3[_0x1bcf61(0x20d)](_0x120b10,_0x171e33);},'jDnYv':_0x4e89f3[_0x5128ed(0x223)]},_0x27f13b=_0xd290ed[_0x5128ed(0x213)][_0x1e12eb]||[];_0x27f13b[_0x5128ed(0x220)](_0xf5e812=>{const _0x462cd4=_0x5128ed;if(!_0xf5e812['hookAnalyticsId'])_0xf5e812[_0x462cd4(0x204)]=_0x381346['DWTvZ'](uuidv4);else _0xf5e812[_0x462cd4(0x1f7)]&&_0x381346[_0x462cd4(0x1f6)](_0x1e12eb,_0x381346[_0x462cd4(0x23a)])&&(_0xf5e812[_0x462cd4(0x204)]=_0x381346[_0x462cd4(0x219)](uuidv4),delete _0xf5e812[_0x462cd4(0x1f7)]);});}),exports[_0x3bc40e(0x1ff)](_0xd290ed[_0x3bc40e(0x213)]);},exports[a35_0x166a3b(0x1e9)]=async(_0x1af4fe,_0x1555ee)=>{const _0x5e7177=a35_0x166a3b,_0x43ad58={'KjbUQ':function(_0x107477){return _0x107477();},'JorbB':function(_0x3ed499,_0x22e156){return _0x3ed499(_0x22e156);},'blplh':_0x5e7177(0x248),'AYtyj':function(_0x9b4b1f,_0x1e8099){return _0x9b4b1f(_0x1e8099);},'SjtVI':function(_0x5e9eb8,_0x4e8b86){return _0x5e9eb8===_0x4e8b86;},'WiMEj':_0x5e7177(0x229),'riIsl':_0x5e7177(0x216),'GqSrb':_0x5e7177(0x228)};try{if(!_0x43ad58['KjbUQ'](shouldProcessEventForTesthub))return;const _0x579e8f=await _0x1af4fe['getCapabilities'](),_0x303884=await _0x1af4fe[_0x5e7177(0x22e)](),_0x103ada={},_0x574013=Object[_0x5e7177(0x243)](_0x303884[_0x5e7177(0x218)]()[_0x5e7177(0x21a)]),_0x26ca86={'product':_0x43ad58['JorbB'](getObservabilityLinkedProductName,_0x574013),'capabilities':_0x574013,'platform':_0x579e8f[_0x5e7177(0x1ea)](),'platform_version':_0x579e8f[_0x5e7177(0x21e)](_0x43ad58[_0x5e7177(0x240)])?_0x579e8f[_0x5e7177(0x21e)](_0x43ad58[_0x5e7177(0x240)]):_0x43ad58[_0x5e7177(0x23c)](getPlatformVersion,_0x43ad58[_0x5e7177(0x21c)](global[_0x5e7177(0x22a)],_0x43ad58[_0x5e7177(0x211)])),'browser':_0x579e8f[_0x5e7177(0x206)](),'browser_version':_0x579e8f['getBrowserVersion'](),'session_id':_0x303884['toJSON']()};global[_0x5e7177(0x22a)]?_0x103ada[global[_0x5e7177(0x22a)]]=_0x26ca86:_0x103ada[_0x43ad58[_0x5e7177(0x246)]]=_0x26ca86,process['emit'](_0x5e7177(0x245)+process[_0x5e7177(0x1f8)],{'timestamp':new Date()[_0x5e7177(0x214)](),'level':null,'message':null,'kind':_0x43ad58[_0x5e7177(0x201)],'http_response':_0x103ada,'uuid':_0x1555ee});}catch(_0x258e2c){_0x43ad58[_0x5e7177(0x212)](debug,_0x5e7177(0x205)+_0x258e2c);}},exports[a35_0x166a3b(0x1f9)]=_0x149ce3=>{const _0x28ab79=a35_0x166a3b,_0x14e6aa={};_0x14e6aa['cCelx']=function(_0x4208eb,_0x1c6891){return _0x4208eb!==_0x1c6891;},_0x14e6aa[_0x28ab79(0x202)]=_0x28ab79(0x23f),_0x14e6aa['FpTIZ']='passed',_0x14e6aa[_0x28ab79(0x244)]=function(_0x50a42e,_0x2c1c27){return _0x50a42e!==_0x2c1c27;},_0x14e6aa['MjIKB']=_0x28ab79(0x208);const _0x46bc30=_0x14e6aa,_0x377a5e=_0x149ce3[_0x28ab79(0x203)][_0x28ab79(0x22c)]((_0x2e329b,_0x349db5)=>{const _0x3b3de4=exports['getHookSkippedTests'](_0x349db5);return _0x3b3de4&&(_0x2e329b=_0x2e329b['concat'](_0x3b3de4)),_0x2e329b;},[]),_0x306f4f=_0x149ce3['tests']['filter'](_0x4fde51=>{const _0xf01033=_0x28ab79,_0x3e7659=_0x46bc30[_0xf01033(0x242)](_0x4fde51[_0xf01033(0x207)],_0x46bc30[_0xf01033(0x202)])&&!_0x4fde51[_0xf01033(0x1f7)]&&_0x46bc30['cCelx'](_0x4fde51[_0xf01033(0x226)],_0x46bc30[_0xf01033(0x1ef)])&&_0x46bc30[_0xf01033(0x244)](_0x4fde51[_0xf01033(0x226)],_0x46bc30[_0xf01033(0x1fb)])&&!_0x4fde51[_0xf01033(0x215)];return _0x3e7659;});return _0x306f4f['concat'](_0x377a5e);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a36_0x5da3(){const _0x4e31fb=['https:','enRhW','../../helpers/performance/performance-tester','ajsGo',',\x22level\x22:\x20\x22','finally','browserstackTestName','opwGI','percy','mMoRI','setGlobal','Automate\x20test\x20case\x20execution\x20has\x20started.','msaGO','EJALi','nEuVW','SDK_HOOK','afterTest','beforeAll','lseSq','autoScanning','rzKUo','debug','Accessibility\x20scan\x20completed\x20successfully','cUdRj','__platformCaps','command','accessibilityScanStarted','1dMutYE','4780PGvLpe','fJoIh','NMbuw','fBnBA','state','warn','\x22}}','format','error','executeScript','shift','isAccessibilityPlatform','nZFaW','env','VZBJD','921iJuZlo','afterAll','mzyUZ','ObservabilitySync:','./test-observability/mochaUtils','then','getGlobal','Failed:\x20','wJOCe','Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','JcMBL','qQFIX','GuDgy','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','LBowA','Failed\x20to\x20store\x20session\x20name:\x20','end','sessionName','ENV_VAR','info','now','KlpoA','TTcvv','performScanWithRetry','MhVEw','browserstackSessionName','appium:app','emnPm','../../helpers/logger','Wrqsk','roQRE','start','VahJq','XgvmV','capabilities','plvaN','SESSION_NAME','\x20|\x20','iBVKO','vPVUA','RIjDR','testcase','currentTest','timeout','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','BwuvX','GMjIp','sihqA','539392YIBqwa','.\x20Error\x20:','mochaHooks','driverCleanup','cLHZS','length','initQuit','testAnalyticsId','JWOXo','measureWrapper','isArray','973728HeWTfP','__sessionFailed','shouldScanTestForAccessibility','hwYQT','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','session_','12770dyNpNx','hcvbA','http:','vDYWO','ltUYG','QBtYF','__drivers','2308sQmxLi','startMonitoring','8HpIqYZ','HjFLX','failed','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','thBuildUuid','quitCount_','nAkOa','gaMHv','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','passed','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','saveAccessibilityResultsWithRetry','UhOFh','eokQH','stringify','UVwUT','index','fjUpx','aBHZF','gEEed','../../helpers/testhub/constants','SYNC','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','BROWSERSTACK_TESTHUB_UUID','aeOnP','PlhQW','HgEan','../../helpers/percy/utils','Mocha','winstonLogger','util','err','join','WGGwu','[Accessibility]\x20Auto\x20scan\x20is\x20disabled;\x20skipping\x20final\x20scan\x20and\x20saving\x20current\x20accumulated\x20results','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','message','titlePath','MzYda','TpWUh','dkMwu','heOos','bstackA11yShouldScan','protocol','mJObi','rczlA','../../helpers/globals','TwHXJ','uAYzL','2981wbuPde','\x20-\x20','percyCaptureMode','push','Accessibility\x20results\x20saved\x20successfully','zFkNd','462695SjsRKm','__error_messages__','4423446oVghbr','uNRsK','xtDZZ','dAHgf','../../helpers/accessibility-automation/accessibilityRetryHelper','DvKAX','__skipSessionName'];a36_0x5da3=function(){return _0x4e31fb;};return a36_0x5da3();}const a36_0x2b40e0=a36_0x9fa2;(function(_0x4928aa,_0x2724bc){const _0x56b145=a36_0x9fa2,_0xd78189=_0x4928aa();while(!![]){try{const _0x55c86f=parseInt(_0x56b145(0x1e0))/0x1*(-parseInt(_0x56b145(0x1e1))/0x2)+-parseInt(_0x56b145(0x1f0))/0x3*(-parseInt(_0x56b145(0x182))/0x4)+-parseInt(_0x56b145(0x1bc))/0x5+parseInt(_0x56b145(0x174))/0x6+-parseInt(_0x56b145(0x169))/0x7+-parseInt(_0x56b145(0x184))/0x8*(-parseInt(_0x56b145(0x1be))/0x9)+-parseInt(_0x56b145(0x17b))/0xa*(parseInt(_0x56b145(0x1b6))/0xb);if(_0x55c86f===_0x2724bc)break;else _0xd78189['push'](_0xd78189['shift']());}catch(_0x4b2493){_0xd78189['push'](_0xd78189['shift']());}}}(a36_0x5da3,0x4c625));function a36_0x9fa2(_0x563f05,_0x1d1dd5){const _0x5da3e6=a36_0x5da3();return a36_0x9fa2=function(_0x9fa287,_0x37ecbe){_0x9fa287=_0x9fa287-0x14f;let _0x5358a4=_0x5da3e6[_0x9fa287];return _0x5358a4;},a36_0x9fa2(_0x563f05,_0x1d1dd5);}const util=require(a36_0x2b40e0(0x1a3)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),accessibilityRetryHelper=require(a36_0x2b40e0(0x1c2)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require('../utils/constants'),{percyAutoCapture}=require(a36_0x2b40e0(0x1a0)),{sendPlatformDetails}=require(a36_0x2b40e0(0x1f4)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a36_0x2b40e0(0x1c7)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),globals=require(a36_0x2b40e0(0x1b3)),logger=require(a36_0x2b40e0(0x153))[a36_0x2b40e0(0x1a2)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a36_0x2b40e0(0x199));exports[a36_0x2b40e0(0x16b)]={'beforeAll'(){const _0x215642=a36_0x2b40e0,_0x13f69e={'xTtbr':function(_0x3aeeda,_0x2b584c,_0x141403,_0x3c5f69){return _0x3aeeda(_0x2b584c,_0x141403,_0x3c5f69);},'WtppH':_0x215642(0x186),'lseSq':_0x215642(0x15c),'JWOXo':function(_0x2b9c41,_0x40ffba,_0x5b8fff){return _0x2b9c41(_0x40ffba,_0x5b8fff);},'aBHZF':_0x215642(0x18e),'nAkOa':function(_0x4c26cb){return _0x4c26cb();},'ajsGo':'index','mzyUZ':_0x215642(0x1d6)};PerformanceTester[_0x215642(0x183)]();const _0x12f4df='browserstack internal helper hook';PerformanceTester[_0x215642(0x172)](PerformanceSdkEvents[_0x215642(0x1d4)],()=>{const _0x2403f3=_0x215642;global[_0x2403f3(0x1bd)]=[],global['__sessionFailed']=![],global['driverCleanup']=async()=>{const _0x20ea48=_0x2403f3;let _0x413676=![];try{await global['__drivers'][0x0][_0x20ea48(0x17a)],_0x413676=!![],global[_0x20ea48(0x175)]?await _0x13f69e['xTtbr'](markSessionStatus,global[_0x20ea48(0x181)][0x0],_0x13f69e['WtppH'],global[_0x20ea48(0x1bd)]['join'](_0x13f69e[_0x20ea48(0x1d7)])):await _0x13f69e[_0x20ea48(0x171)](markSessionStatus,global[_0x20ea48(0x181)][0x0],_0x13f69e[_0x20ea48(0x197)]);}catch(_0x253f42){logger['debug'](_0x20ea48(0x1fd)+_0x253f42);}global['__error_messages__']=[],global[_0x20ea48(0x175)]=![];if(_0x413676)try{try{_0x13f69e[_0x20ea48(0x18a)](shouldProcessEventForTesthub)&&(global[_0x20ea48(0x181)][0x0]&&await _0x13f69e[_0x20ea48(0x171)](sendPlatformDetails,global[_0x20ea48(0x181)][0x0],this[_0x20ea48(0x161)]?this['currentTest'][_0x20ea48(0x170)]:null));}catch(_0x2a17f8){logger[_0x20ea48(0x1da)](_0x20ea48(0x179)+_0x2a17f8);}await global[_0x20ea48(0x181)][0x0][_0x20ea48(0x16f)]();}catch(_0xa1c250){logger[_0x20ea48(0x1da)](_0x20ea48(0x19b)+_0xa1c250);}};},{'platform':_0x13f69e['JWOXo'](nestedKeyValue,global['__platformCaps'],[_0x13f69e[_0x215642(0x1c8)]]),'hookType':_0x13f69e[_0x215642(0x1f2)]})();},'beforeEach'(_0x5cf7ed){const _0x57bade=a36_0x2b40e0,_0x55cd73={'BwuvX':function(_0x54ed2a){return _0x54ed2a();},'VZBJD':function(_0x7a9e1b,_0x432db7){return _0x7a9e1b>_0x432db7;},'TpWUh':function(_0x2fe4c8,_0x564d23){return _0x2fe4c8>_0x564d23;},'KlpoA':_0x57bade(0x1b7),'WGGwu':function(_0x199fec,_0xf58629,_0xc8626a){return _0x199fec(_0xf58629,_0xc8626a);},'cLHZS':function(_0x127fd0,_0x35e279){return _0x127fd0===_0x35e279;},'dOWET':_0x57bade(0x1af),'BHVQG':'bstackA11yScanOptions','PlhQW':function(_0x564bc5){return _0x564bc5();},'fJoIh':'isAccessibilityPlatform','aeOnP':_0x57bade(0x17d),'LBowA':_0x57bade(0x1c5),'RDPUd':_0x57bade(0x187),'rzKUo':_0x57bade(0x1d0),'fBnBA':function(_0x34abc1){return _0x34abc1();},'NMbuw':_0x57bade(0x1cb),'MhVEw':_0x57bade(0x195),'dAHgf':'beforeEach'};globals[_0x57bade(0x1cf)](_0x55cd73[_0x57bade(0x1e3)],this[_0x57bade(0x161)][_0x57bade(0x1aa)]()[_0x57bade(0x1a5)](_0x55cd73[_0x57bade(0x205)])),PerformanceTester[_0x57bade(0x172)](PerformanceSdkEvents[_0x57bade(0x1d4)],()=>{const _0x66b220=_0x57bade,_0x5a1031={'uNRsK':function(_0x4a2451,_0x477061){const _0x3a38fd=a36_0x9fa2;return _0x55cd73[_0x3a38fd(0x1ef)](_0x4a2451,_0x477061);},'vPVUA':function(_0xfb9801,_0x1190c6){const _0x447cc9=a36_0x9fa2;return _0x55cd73[_0x447cc9(0x1ac)](_0xfb9801,_0x1190c6);},'MzYda':_0x55cd73[_0x66b220(0x205)],'roQRE':function(_0x3f39fb,_0x33b9ff,_0x4f84bb){return _0x55cd73['WGGwu'](_0x3f39fb,_0x33b9ff,_0x4f84bb);},'xtDZZ':function(_0x3d163e,_0x8ea4ee){const _0x272a1b=_0x66b220;return _0x55cd73[_0x272a1b(0x16d)](_0x3d163e,_0x8ea4ee);},'cUdRj':_0x55cd73['dOWET'],'dkMwu':_0x55cd73['BHVQG'],'hOIYl':function(_0x30a7df){const _0x2baac0=_0x66b220;return _0x55cd73[_0x2baac0(0x19e)](_0x30a7df);},'iBVKO':function(_0x1f46d3,_0x4df245){const _0x569a64=_0x66b220;return _0x55cd73[_0x569a64(0x1ac)](_0x1f46d3,_0x4df245);},'HjFLX':_0x55cd73[_0x66b220(0x1e2)],'RtBaR':_0x55cd73[_0x66b220(0x19d)],'ezNJf':_0x55cd73[_0x66b220(0x1fe)],'TUiki':_0x55cd73['RDPUd'],'fjUpx':_0x55cd73[_0x66b220(0x1d9)],'uJXHg':function(_0x2fcc16){const _0x5b2b78=_0x66b220;return _0x55cd73[_0x5b2b78(0x1e4)](_0x2fcc16);}},_0x433c19='browserstack internal helper hook';new Promise(async _0x4eb029=>{const _0x3304a6=_0x66b220;let _0x169dc5=!![];try{_0x5a1031[_0x3304a6(0x1bf)](global[_0x3304a6(0x181)]['length'],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x3304a6(0x1eb)]()),_0x5a1031[_0x3304a6(0x15e)](global[_0x3304a6(0x181)][0x0][_0x3304a6(0x189)],0x0)&&(_0x169dc5=![],await global[_0x3304a6(0x16c)]());}catch(_0x442ef1){logger[_0x3304a6(0x1da)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x442ef1);}try{Array['isArray'](global[_0x3304a6(0x181)])&&global['__drivers'][0x0]&&(global['__drivers'][0x0][_0x3304a6(0x150)]=this['currentTest'][_0x3304a6(0x1aa)]()[_0x3304a6(0x1a5)](_0x5a1031[_0x3304a6(0x1ab)])),global[_0x3304a6(0x150)]=this['currentTest']['titlePath']()[_0x3304a6(0x1a5)](_0x5a1031[_0x3304a6(0x1ab)]);}catch(_0x47db7e){logger[_0x3304a6(0x1da)](_0x3304a6(0x1ff)+_0x47db7e);}this['currentTest'][_0x3304a6(0x176)]=_0x5a1031[_0x3304a6(0x155)](shouldScanTestForAccessibility,this[_0x3304a6(0x161)][_0x3304a6(0x1aa)](),!![]);let _0x385695=!![];try{const _0x29fd17=JSON['parse'](process['env'][_0x3304a6(0x163)]||'{}');_0x5a1031[_0x3304a6(0x1c0)](_0x29fd17[_0x3304a6(0x1d8)],![])&&(_0x385695=![]);}catch(_0x45fc60){logger[_0x3304a6(0x1da)]('Error\x20parsing\x20autoScanning\x20config,\x20using\x20default\x20(true):\x20'+_0x45fc60[_0x3304a6(0x1a9)]);}const _0x1bef5b=_0x385695&&this[_0x3304a6(0x161)]['shouldScanTestForAccessibility'];globals['setGlobal'](_0x5a1031[_0x3304a6(0x1dc)],_0x1bef5b),globals[_0x3304a6(0x1cf)](_0x5a1031[_0x3304a6(0x1ad)],null),this[_0x3304a6(0x161)][_0x3304a6(0x1df)]=this[_0x3304a6(0x161)]['shouldScanTestForAccessibility'];if(_0x5a1031['hOIYl'](isAccessibilityAutomationSession)&&_0x169dc5&&Array[_0x3304a6(0x173)](global[_0x3304a6(0x181)])&&_0x5a1031[_0x3304a6(0x15d)](global[_0x3304a6(0x181)][_0x3304a6(0x16e)],0x0)&&globals['getGlobal'](_0x5a1031[_0x3304a6(0x185)]))try{const _0x1feaf5=await global[_0x3304a6(0x181)][0x0][_0x3304a6(0x17a)];if(_0x1feaf5){let _0x34e1ef=!![];const _0xff1983=await global[_0x3304a6(0x181)][0x0]['getCurrentUrl']();let _0x109835;try{_0x109835=new URL(_0xff1983);}catch(_0x1769fb){_0x34e1ef=![];}_0x34e1ef=_0x5a1031['xtDZZ'](_0x109835[_0x3304a6(0x1b0)],_0x5a1031['RtBaR'])||_0x5a1031[_0x3304a6(0x1c0)](_0x109835[_0x3304a6(0x1b0)],_0x5a1031['ezNJf']),_0x34e1ef&&(this[_0x3304a6(0x161)][_0x3304a6(0x176)]&&logger['info'](_0x5a1031['TUiki'])),this[_0x3304a6(0x161)][_0x3304a6(0x1df)]=this['currentTest'][_0x3304a6(0x176)],_0x1bef5b&&logger[_0x3304a6(0x203)](_0x5a1031[_0x3304a6(0x196)]);}}catch(_0x4a10de){logger[_0x3304a6(0x1e9)](_0x3304a6(0x18d)+util[_0x3304a6(0x1e8)](_0x4a10de));}_0x5a1031['uJXHg'](_0x4eb029);})[_0x66b220(0x1f5)](()=>{const _0x8c7911=_0x66b220;_0x55cd73[_0x8c7911(0x166)](_0x5cf7ed);});},{'platform':_0x55cd73[_0x57bade(0x1a6)](nestedKeyValue,global['__platformCaps'],[_0x55cd73[_0x57bade(0x14f)]]),'hookType':_0x55cd73[_0x57bade(0x1c1)]})();},'afterEach'(_0x2a4b7a){const _0x1c377c=a36_0x2b40e0,_0xfcb2bc={'vDYWO':_0x1c377c(0x1b7),'ElwEh':function(_0xc93de6,_0x201a5f){return _0xc93de6!==_0x201a5f;},'DlrEB':_0x1c377c(0x18e),'qQFIX':function(_0xdf893d,_0x4a1275,_0x2988e0){return _0xdf893d(_0x4a1275,_0x2988e0);},'LUIpR':function(_0x4816ce,_0x3b3097){return _0x4816ce+_0x3b3097;},'VahJq':_0x1c377c(0x1f7),'Wrqsk':_0x1c377c(0x1e9),'dUtuq':'Passed','zFkNd':_0x1c377c(0x203),'GuDgy':function(_0x569330,_0x176602){return _0x569330>_0x176602;},'TTcvv':function(_0x61c35d,_0x24876a){return _0x61c35d===_0x24876a;},'HgEan':_0x1c377c(0x160),'hwYQT':_0x1c377c(0x151),'nEuVW':function(_0x5bd2db,_0x2d7ad3,_0x238c2c,_0x4e7473){return _0x5bd2db(_0x2d7ad3,_0x238c2c,_0x4e7473);},'uAYzL':_0x1c377c(0x1ec),'gsirj':_0x1c377c(0x178),'FQbam':'bstackA11yShouldScan','tDFsz':'Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','XgvmV':_0x1c377c(0x1d5),'oZAnK':_0x1c377c(0x1db),'qLPyA':_0x1c377c(0x1f9),'TwHXJ':_0x1c377c(0x1a7),'rczlA':_0x1c377c(0x1ba),'QaIZe':_0x1c377c(0x18f),'msaGO':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','gEEed':function(_0x3175ac){return _0x3175ac();},'plvaN':function(_0x9c4071,_0x28d6e4,_0x5034a2){return _0x9c4071(_0x28d6e4,_0x5034a2);},'mMoRI':function(_0x359a14,_0x1554db,_0x2e7d27){return _0x359a14(_0x1554db,_0x2e7d27);},'UhOFh':_0x1c377c(0x1da),'emnPm':function(_0x3259e3){return _0x3259e3();},'hcvbA':_0x1c377c(0x1a1),'EJALi':function(_0x7afc50,_0x3a65ce,_0x28f6de){return _0x7afc50(_0x3a65ce,_0x28f6de);},'eokQH':_0x1c377c(0x195),'gaMHv':'afterEach'},_0x1ae1c8='browserstack internal helper hook';this[_0x1c377c(0x162)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0xfcb2bc[_0x1c377c(0x17c)]]),global[_0x1c377c(0x201)]=this[_0x1c377c(0x161)][_0x1c377c(0x1aa)]()[_0x1c377c(0x1a5)](_0xfcb2bc[_0x1c377c(0x17e)]),PerformanceTester['measureWrapper'](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x349631=async(_0x11bc32,_0x2642b6)=>{const _0x8aff1e=a36_0x9fa2;await global['__drivers'][0x0][_0x8aff1e(0x1ea)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x11bc32+_0x8aff1e(0x1c9)+_0x2642b6+_0x8aff1e(0x1e7));};new Promise(async _0x7724f5=>{const _0x126fe2=a36_0x9fa2,_0x5ca780={'nZFaW':_0xfcb2bc['vDYWO'],'RIjDR':function(_0x5b210e,_0x45cca4){return _0xfcb2bc['ElwEh'](_0x5b210e,_0x45cca4);},'enRhW':_0xfcb2bc['DlrEB'],'QBtYF':function(_0x17bbd8,_0x2c0c96,_0x3cb580){return _0xfcb2bc['qQFIX'](_0x17bbd8,_0x2c0c96,_0x3cb580);},'opwGI':function(_0x5406b4,_0x3bbea8){return _0xfcb2bc['LUIpR'](_0x5406b4,_0x3bbea8);},'GMjIp':_0xfcb2bc[_0x126fe2(0x157)],'sihqA':_0xfcb2bc[_0x126fe2(0x154)],'JcMBL':function(_0x37fffb,_0x1acab5,_0x597d94){const _0x157d3f=_0x126fe2;return _0xfcb2bc[_0x157d3f(0x1fb)](_0x37fffb,_0x1acab5,_0x597d94);},'mJObi':_0xfcb2bc['dUtuq'],'vShdn':_0xfcb2bc[_0x126fe2(0x1bb)]};try{_0xfcb2bc[_0x126fe2(0x1fc)](global['__drivers'][_0x126fe2(0x16e)],0x1)&&(await global[_0x126fe2(0x16c)](),global['__drivers'][_0x126fe2(0x1eb)](),global[_0x126fe2(0x1bd)]=[],global[_0x126fe2(0x175)]=![]);try{if(global[_0x126fe2(0x1cd)]&&_0xfcb2bc[_0x126fe2(0x206)](global[_0x126fe2(0x1b8)],_0xfcb2bc[_0x126fe2(0x19f)])&&global[_0x126fe2(0x181)][0x0]){const _0x42e7fc=_0xfcb2bc['GuDgy'](global[_0x126fe2(0x159)][_0x126fe2(0x16e)],0x0)?!!global[_0x126fe2(0x159)][0x0]['app']||!!global[_0x126fe2(0x159)][0x0][_0xfcb2bc[_0x126fe2(0x177)]]:![],_0x203ca4={};_0x203ca4['app']=_0x42e7fc,await _0xfcb2bc[_0x126fe2(0x1d3)](percyAutoCapture,global['__drivers'][0x0],_0xfcb2bc[_0x126fe2(0x19f)],_0x203ca4);}}catch(_0x8955a2){logger[_0x126fe2(0x1da)]('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0x8955a2);}!global[_0x126fe2(0x1c4)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x126fe2(0x15b)],async()=>{const _0x3b6504=_0x126fe2;await global[_0x3b6504(0x181)][0x0]['executeScript'](_0x3b6504(0x1a8)+JSON[_0x3b6504(0x193)](this[_0x3b6504(0x161)][_0x3b6504(0x1aa)]()[_0x3b6504(0x1a5)](_0x5ca780[_0x3b6504(0x1ed)]))+'}}');})(),global['__drivers'][0x0]['sessionNameSet__']=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents['SESSION_STATUS'],async()=>{const _0x330469=_0x126fe2,_0x4d0279=_0x5ca780[_0x330469(0x15f)](this[_0x330469(0x161)][_0x330469(0x1e5)],_0x5ca780[_0x330469(0x1c6)]);_0x4d0279?(global[_0x330469(0x175)]=!![],global[_0x330469(0x1bd)][_0x330469(0x1b9)](this[_0x330469(0x161)][_0x330469(0x1a4)]['message']),await _0x5ca780[_0x330469(0x180)](_0x349631,JSON[_0x330469(0x193)](_0x5ca780[_0x330469(0x1cc)](_0x5ca780[_0x330469(0x167)],this[_0x330469(0x161)][_0x330469(0x1a4)]['message'])),_0x5ca780[_0x330469(0x168)])):await _0x5ca780[_0x330469(0x1fa)](_0x349631,JSON[_0x330469(0x193)](_0x5ca780[_0x330469(0x1b1)]),_0x5ca780['vShdn']);})();}catch(_0x4eb9d7){logger[_0x126fe2(0x1da)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x4eb9d7);}try{if(this['currentTest'][_0x126fe2(0x1df)]&&globals['getGlobal'](_0xfcb2bc[_0x126fe2(0x1b5)])){logger[_0x126fe2(0x203)](_0xfcb2bc['gsirj']);const _0x50b0fb={};_0x50b0fb['thTestRunUuid']=this[_0x126fe2(0x161)][_0x126fe2(0x170)],_0x50b0fb[_0x126fe2(0x188)]=process[_0x126fe2(0x1ee)][testHubConstants[_0x126fe2(0x202)][_0x126fe2(0x19c)]],_0x50b0fb['thJwtToken']=process[_0x126fe2(0x1ee)][testHubConstants[_0x126fe2(0x202)]['BROWSERSTACK_TESTHUB_JWT']];const _0x437fdc=_0x50b0fb;logger[_0x126fe2(0x1da)](_0x126fe2(0x18c)+JSON[_0x126fe2(0x193)](_0x437fdc));if(globals[_0x126fe2(0x1f6)](_0xfcb2bc['FQbam'])){logger['debug'](_0xfcb2bc['tDFsz']);const _0x8d8671={};_0x8d8671[_0x126fe2(0x1de)]=_0xfcb2bc[_0x126fe2(0x158)];const _0x428d26=await PerformanceTester[_0x126fe2(0x172)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x3236ac=_0x126fe2;return await accessibilityRetryHelper[_0x3236ac(0x207)](global[_0x3236ac(0x181)][0x0],global[_0x3236ac(0x150)]);},_0x8d8671)();_0x428d26?logger[_0x126fe2(0x1da)](_0xfcb2bc['oZAnK']):logger[_0x126fe2(0x1e6)](_0xfcb2bc['qLPyA']);}else logger[_0x126fe2(0x1da)](_0xfcb2bc[_0x126fe2(0x1b4)]);const _0x5ec78b=await PerformanceTester[_0x126fe2(0x172)](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{const _0x957525=_0x126fe2;return await accessibilityRetryHelper[_0x957525(0x190)](global[_0x957525(0x181)][0x0],_0x437fdc);})();_0x5ec78b?logger[_0x126fe2(0x1da)](_0xfcb2bc[_0x126fe2(0x1b2)]):logger['warn'](_0xfcb2bc['QaIZe']),logger[_0x126fe2(0x203)](_0xfcb2bc[_0x126fe2(0x1d1)]);}}catch(_0x1ba711){logger['error'](_0x126fe2(0x164)+this[_0x126fe2(0x161)][_0x126fe2(0x1aa)]()+_0x126fe2(0x16a),_0x1ba711);}try{try{if(_0xfcb2bc[_0x126fe2(0x198)](shouldProcessEventForTesthub)){global[_0x126fe2(0x181)][0x0]&&await _0xfcb2bc[_0x126fe2(0x15a)](sendPlatformDetails,global[_0x126fe2(0x181)][0x0],this[_0x126fe2(0x161)]?this[_0x126fe2(0x161)][_0x126fe2(0x170)]:null);if(_0xfcb2bc[_0x126fe2(0x198)](isBrowserstackInfra)){PerformanceTester[_0x126fe2(0x156)](PerformanceO11yEvents[_0x126fe2(0x19a)]);const _0x1a40a4=_0x126fe2(0x1f3)+Date[_0x126fe2(0x204)]();await _0xfcb2bc[_0x126fe2(0x1ce)](_0x349631,JSON['stringify'](_0x1a40a4),_0xfcb2bc[_0x126fe2(0x191)]),PerformanceTester['end'](PerformanceO11yEvents['SYNC']);}}}catch(_0x1b296f){logger[_0x126fe2(0x1da)](_0x126fe2(0x165)+_0x1b296f),PerformanceTester[_0x126fe2(0x200)](PerformanceO11yEvents[_0x126fe2(0x19a)],![],_0x1b296f);}_0xfcb2bc[_0x126fe2(0x1fc)](global[_0x126fe2(0x181)][0x0]['quitCount_'],0x0)&&await global[_0x126fe2(0x16c)]();}catch(_0x597274){logger['debug'](_0x126fe2(0x19b)+_0x597274);}_0xfcb2bc['emnPm'](_0x7724f5);})['then'](()=>{const _0x167ac6=a36_0x9fa2;_0xfcb2bc[_0x167ac6(0x152)](_0x2a4b7a);});},{'platform':_0xfcb2bc[_0x1c377c(0x1d2)](nestedKeyValue,global[_0x1c377c(0x1dd)],[_0xfcb2bc[_0x1c377c(0x192)]]),'hookType':_0xfcb2bc[_0x1c377c(0x18b)]})();},'afterAll'(_0x4f4fdd){const _0x3b91a4=a36_0x2b40e0,_0x4185be={'PdMqc':function(_0x5bc9c2){return _0x5bc9c2();},'DvKAX':_0x3b91a4(0x1a1),'heOos':function(_0x4f0ec3,_0x4e8e57,_0x125d74){return _0x4f0ec3(_0x4e8e57,_0x125d74);},'UVwUT':_0x3b91a4(0x195),'ltUYG':_0x3b91a4(0x1f1)},_0x52633a='browserstack internal helper hook';this[_0x3b91a4(0x162)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x4185be[_0x3b91a4(0x1c3)]]),PerformanceTester[_0x3b91a4(0x172)](PerformanceSdkEvents[_0x3b91a4(0x1d4)],()=>{const _0x22031b=_0x3b91a4,_0x590402={'wJOCe':function(_0x419866){return _0x4185be['PdMqc'](_0x419866);}};new Promise(async _0x5bf65f=>{const _0x3b0847=a36_0x9fa2;await global[_0x3b0847(0x16c)](),_0x590402[_0x3b0847(0x1f8)](_0x5bf65f);})[_0x22031b(0x1f5)]()[_0x22031b(0x1ca)](()=>{_0x4185be['PdMqc'](_0x4f4fdd);});},{'platform':_0x4185be[_0x3b91a4(0x1ae)](nestedKeyValue,global[_0x3b91a4(0x1dd)],[_0x4185be[_0x3b91a4(0x194)]]),'hookType':_0x4185be[_0x3b91a4(0x17f)]})();}};
|
|
1
|
+
const a36_0x5b328c=a36_0x8f94;(function(_0x52f6ff,_0x5ac1f7){const _0x52d585=a36_0x8f94,_0x4a5a43=_0x52f6ff();while(!![]){try{const _0x4e7d89=parseInt(_0x52d585(0xa8))/0x1*(-parseInt(_0x52d585(0x112))/0x2)+-parseInt(_0x52d585(0x125))/0x3+-parseInt(_0x52d585(0x7f))/0x4*(parseInt(_0x52d585(0xf9))/0x5)+-parseInt(_0x52d585(0xa9))/0x6*(-parseInt(_0x52d585(0xee))/0x7)+parseInt(_0x52d585(0xe5))/0x8*(-parseInt(_0x52d585(0xc8))/0x9)+-parseInt(_0x52d585(0xdb))/0xa*(-parseInt(_0x52d585(0x129))/0xb)+parseInt(_0x52d585(0x108))/0xc;if(_0x4e7d89===_0x5ac1f7)break;else _0x4a5a43['push'](_0x4a5a43['shift']());}catch(_0x26a10b){_0x4a5a43['push'](_0x4a5a43['shift']());}}}(a36_0x35ee,0x5cbdf));function a36_0x8f94(_0x51be15,_0x3b41e8){const _0x35ee0c=a36_0x35ee();return a36_0x8f94=function(_0x8f94c0,_0x462549){_0x8f94c0=_0x8f94c0-0x66;let _0x20e8ea=_0x35ee0c[_0x8f94c0];return _0x20e8ea;},a36_0x8f94(_0x51be15,_0x3b41e8);}function a36_0x35ee(){const _0x56a81a=['XIpzo','appium:app','BwFza','xCfxG','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','env','../../helpers/performance/constants','ifvVV','index','shift','QBAXu','__sessionFailed','nTVqh','fCluy','LUnIG','warn','JHMjM','koldK','34570Wxzbni','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','../utils/constants','hubmW','Mocha','../../helpers/performance/performance-tester','oHYJg','quitCount_','__drivers','peLct','465944qdtzGf','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','JCqGy','RSrAO','measureWrapper','getGlobal','vZiTc','http:','Automate\x20test\x20case\x20execution\x20has\x20started.','44373sNTXIU','BQgTG','getCurrentUrl','FCvuq','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','GdQiZ','JoGCs','ZxAbK','RnNrD','accessibilityScanStarted','30kBIGSH','__platformCaps','UAfyt','err','format','currentTest','https:','epUle','winstonLogger','HmdRK','KGBJK','Bxlff','BROWSERSTACK_TESTHUB_UUID','OGhRc','push','13942728GdBRCn','browserstackSessionName','JbJQb','ruCQF','../../helpers/testhub/constants','FwnvT','error','zZOZl','beforeEach','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','1164Aafmdj','pEPOq','Failed:\x20','VghIZ','NDRPX','thBuildUuid','tWTwe','Accessibility\x20scan\x20completed\x20successfully','qxgDM','OExqG','isAccessibilityPlatform','tKPiK','./test-observability/mochaUtils','SYNC','performScanWithRetry','../../helpers/accessibility-automation/accessibilityRetryHelper','axYbg','klLOo','length','906963ohcIUP','then','message','../../helpers/testhub/utils','1419EeHqMN','qzRrh','../../helpers/logger','Error\x20parsing\x20autoScanning\x20config,\x20using\x20default\x20(true):\x20','aRNhD','zRveZ','driverCleanup','setGlobal','autoScanning','sIFoW','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','dQtyP','bstackA11yScanOptions','FjVal','afterAll','afterEach','qwARp','vZFDJ','percyCaptureMode','../../helpers/helper','SESSION_STATUS','kHFzS','igRug','QuiBU','DNcJU','protocol','353580wugjvK','nRyTm','executeScript','PBrbw','JoUUm','command','lAlDR','XKfDh','stringify','wKTZC','GRZEf','titlePath','app','browserstackTestName',',\x22level\x22:\x20\x22','[Accessibility]\x20Auto\x20scan\x20is\x20disabled;\x20skipping\x20final\x20scan\x20and\x20saving\x20current\x20accumulated\x20results','../../helpers/percy/utils','glPUh','percy','rleWQ','HDLVk','ufVWZ','startMonitoring','isArray','debug','trTEK','session_','info','testcase','kjAqW','join','start','__error_messages__','testAnalyticsId','end','ZebCq','GFBlV','Biwvs','__skipSessionName','rwfYP','iFUQJ','1187ksrmfO','390VoOcfc','PERFORM_SCAN','Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','RAdRF','state','BROWSERSTACK_TESTHUB_JWT','AviyJ','kRdhJ','yvkwc','Accessibility\x20results\x20saved\x20successfully','KCbOz','now','bstackA11yShouldScan','sessionNameSet__','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','Crhkm','ybmye','uppji','TjNkY','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','SDK_HOOK','Failed\x20to\x20store\x20session\x20name:\x20','capabilities','alQpM','\x20-\x20','passed','shouldScanTestForAccessibility','afterTest','ZnpPJ','heEld','../../helpers/accessibility-automation/helper','18nvJora'];a36_0x35ee=function(){return _0x56a81a;};return a36_0x35ee();}const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a36_0x5b328c(0xc7)),accessibilityRetryHelper=require(a36_0x5b328c(0x121)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a36_0x5b328c(0xdd)),{percyAutoCapture}=require(a36_0x5b328c(0x8f)),{sendPlatformDetails}=require(a36_0x5b328c(0x11e)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a36_0x5b328c(0x78)),PerformanceTester=require(a36_0x5b328c(0xe0)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x5b328c(0xcf)),globals=require('../../helpers/globals'),logger=require(a36_0x5b328c(0x67))[a36_0x5b328c(0x101)],{shouldProcessEventForTesthub}=require(a36_0x5b328c(0x128)),testHubConstants=require(a36_0x5b328c(0x10c));exports['mochaHooks']={'beforeAll'(){const _0x185e1e=a36_0x5b328c,_0x115334={'JbJQb':function(_0x4dfea0,_0x3bddff,_0x4c91c3,_0x240305){return _0x4dfea0(_0x3bddff,_0x4c91c3,_0x240305);},'tKPiK':'failed','FwnvT':'\x20|\x20','xCfxG':function(_0x4b0b1d,_0x2b2fff,_0xcfa92f){return _0x4b0b1d(_0x2b2fff,_0xcfa92f);},'klLOo':_0x185e1e(0xc2),'TjNkY':function(_0x2347fd){return _0x2347fd();},'FjVal':_0x185e1e(0xd1),'uppji':'beforeAll'};PerformanceTester[_0x185e1e(0x95)]();const _0xe9c335='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x185e1e(0xbd)],()=>{const _0x3b6c0b=_0x185e1e;global[_0x3b6c0b(0x9f)]=[],global[_0x3b6c0b(0xd4)]=![],global[_0x3b6c0b(0x6b)]=async()=>{const _0x38ea50=_0x3b6c0b;let _0x154d90=![];try{await global['__drivers'][0x0][_0x38ea50(0x99)],_0x154d90=!![],global['__sessionFailed']?await _0x115334[_0x38ea50(0x10a)](markSessionStatus,global[_0x38ea50(0xe3)][0x0],_0x115334[_0x38ea50(0x11d)],global[_0x38ea50(0x9f)][_0x38ea50(0x9d)](_0x115334[_0x38ea50(0x10d)])):await _0x115334[_0x38ea50(0xcc)](markSessionStatus,global['__drivers'][0x0],_0x115334[_0x38ea50(0x123)]);}catch(_0x3683d5){logger[_0x38ea50(0x97)]('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x3683d5);}global[_0x38ea50(0x9f)]=[],global[_0x38ea50(0xd4)]=![];if(_0x154d90)try{try{_0x115334[_0x38ea50(0xbb)](shouldProcessEventForTesthub)&&(global[_0x38ea50(0xe3)][0x0]&&await _0x115334[_0x38ea50(0xcc)](sendPlatformDetails,global[_0x38ea50(0xe3)][0x0],this[_0x38ea50(0xfe)]?this['currentTest'][_0x38ea50(0xa0)]:null));}catch(_0x5c1fc2){logger['debug'](_0x38ea50(0xbc)+_0x5c1fc2);}await global[_0x38ea50(0xe3)][0x0]['initQuit']();}catch(_0x3deaa5){logger[_0x38ea50(0x97)](_0x38ea50(0x6f)+_0x3deaa5);}};},{'platform':_0x115334['xCfxG'](nestedKeyValue,global[_0x185e1e(0xfa)],[_0x115334[_0x185e1e(0x72)]]),'hookType':_0x115334[_0x185e1e(0xba)]})();},'beforeEach'(_0x44714f){const _0x2cdb6d=a36_0x5b328c,_0x633a64={'PfDZJ':function(_0x12eb24){return _0x12eb24();},'RSrAO':function(_0x208d31,_0x1ffc71){return _0x208d31>_0x1ffc71;},'tWTwe':_0x2cdb6d(0xc1),'ZnpPJ':function(_0x11a9f9,_0x79eb7d,_0x207595){return _0x11a9f9(_0x79eb7d,_0x207595);},'rleWQ':function(_0x1b5d5e,_0x1efa9d){return _0x1b5d5e===_0x1efa9d;},'wKTZC':'bstackA11yShouldScan','rwfYP':_0x2cdb6d(0x71),'OGhRc':function(_0x14e9be){return _0x14e9be();},'GFBlV':'isAccessibilityPlatform','oHYJg':function(_0x4f1a43,_0x43324b){return _0x4f1a43===_0x43324b;},'JoUUm':_0x2cdb6d(0xec),'nTVqh':_0x2cdb6d(0xff),'glPUh':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','epUle':_0x2cdb6d(0xed),'rEGBw':function(_0xb9d115){return _0xb9d115();},'owdEc':_0x2cdb6d(0x8c),'QVoke':_0x2cdb6d(0xd1),'XIpzo':_0x2cdb6d(0x110)};globals[_0x2cdb6d(0x6c)](_0x633a64['owdEc'],this[_0x2cdb6d(0xfe)][_0x2cdb6d(0x8a)]()[_0x2cdb6d(0x9d)](_0x633a64['tWTwe'])),PerformanceTester[_0x2cdb6d(0xe9)](PerformanceSdkEvents[_0x2cdb6d(0xbd)],()=>{const _0x50cfff=_0x2cdb6d,_0x44bb95={'sNHRs':function(_0x32dd09,_0x8c0451){const _0x1dc2f1=a36_0x8f94;return _0x633a64[_0x1dc2f1(0xe8)](_0x32dd09,_0x8c0451);},'yvkwc':function(_0x499e7c,_0x515ebe){const _0x459890=a36_0x8f94;return _0x633a64[_0x459890(0xe8)](_0x499e7c,_0x515ebe);},'ybmye':_0x633a64[_0x50cfff(0x118)],'Bxlff':function(_0x4485f3,_0x5793e3,_0x22b7d1){return _0x633a64['ZnpPJ'](_0x4485f3,_0x5793e3,_0x22b7d1);},'UAfyt':function(_0xb2eaa1,_0x18d56d){const _0x7728ad=_0x50cfff;return _0x633a64[_0x7728ad(0x92)](_0xb2eaa1,_0x18d56d);},'zRveZ':_0x633a64[_0x50cfff(0x88)],'yXIzL':_0x633a64[_0x50cfff(0xa6)],'vZiTc':function(_0x34c1d2){const _0x3a6661=_0x50cfff;return _0x633a64[_0x3a6661(0x106)](_0x34c1d2);},'lGuDf':_0x633a64[_0x50cfff(0xa3)],'FCvuq':function(_0x3f14d8,_0x5d2f89){const _0x36c5bf=_0x50cfff;return _0x633a64[_0x36c5bf(0xe1)](_0x3f14d8,_0x5d2f89);},'peLct':_0x633a64[_0x50cfff(0x83)],'JCqGy':function(_0x469efa,_0x1c7e7c){return _0x633a64['rleWQ'](_0x469efa,_0x1c7e7c);},'JoGCs':_0x633a64[_0x50cfff(0xd5)],'gPheP':_0x633a64[_0x50cfff(0x90)],'AviyJ':_0x633a64[_0x50cfff(0x100)],'Jvuia':function(_0x57f5f5){return _0x633a64['rEGBw'](_0x57f5f5);}},_0x3a56f9='browserstack internal helper hook';new Promise(async _0xae0870=>{const _0x57f8b4=_0x50cfff;let _0x44de3e=!![];try{_0x44bb95['sNHRs'](global[_0x57f8b4(0xe3)]['length'],0x1)&&(await global['driverCleanup'](),global[_0x57f8b4(0xe3)][_0x57f8b4(0xd2)]()),_0x44bb95[_0x57f8b4(0xb1)](global['__drivers'][0x0][_0x57f8b4(0xe2)],0x0)&&(_0x44de3e=![],await global[_0x57f8b4(0x6b)]());}catch(_0x5b0acf){logger[_0x57f8b4(0x97)](_0x57f8b4(0x6f)+_0x5b0acf);}try{Array[_0x57f8b4(0x96)](global[_0x57f8b4(0xe3)])&&global[_0x57f8b4(0xe3)][0x0]&&(global[_0x57f8b4(0xe3)][0x0]['browserstackSessionName']=this[_0x57f8b4(0xfe)][_0x57f8b4(0x8a)]()[_0x57f8b4(0x9d)](_0x44bb95['ybmye'])),global[_0x57f8b4(0x109)]=this['currentTest'][_0x57f8b4(0x8a)]()[_0x57f8b4(0x9d)](_0x44bb95[_0x57f8b4(0xb9)]);}catch(_0x435051){logger[_0x57f8b4(0x97)](_0x57f8b4(0xbe)+_0x435051);}this[_0x57f8b4(0xfe)][_0x57f8b4(0xc3)]=_0x44bb95[_0x57f8b4(0x104)](shouldScanTestForAccessibility,this['currentTest'][_0x57f8b4(0x8a)](),!![]);let _0x47955a=!![];try{const _0x486b64=JSON['parse'](process[_0x57f8b4(0xce)][_0x57f8b4(0x111)]||'{}');_0x44bb95[_0x57f8b4(0xfb)](_0x486b64[_0x57f8b4(0x6d)],![])&&(_0x47955a=![]);}catch(_0xfab7f8){logger[_0x57f8b4(0x97)](_0x57f8b4(0x68)+_0xfab7f8[_0x57f8b4(0x127)]);}const _0x2737ed=_0x47955a&&this[_0x57f8b4(0xfe)][_0x57f8b4(0xc3)];globals[_0x57f8b4(0x6c)](_0x44bb95[_0x57f8b4(0x6a)],_0x2737ed),globals['setGlobal'](_0x44bb95['yXIzL'],null),this[_0x57f8b4(0xfe)][_0x57f8b4(0xf8)]=this[_0x57f8b4(0xfe)]['shouldScanTestForAccessibility'];if(_0x44bb95[_0x57f8b4(0xeb)](isAccessibilityAutomationSession)&&_0x44de3e&&Array['isArray'](global[_0x57f8b4(0xe3)])&&_0x44bb95['yvkwc'](global[_0x57f8b4(0xe3)][_0x57f8b4(0x124)],0x0)&&globals[_0x57f8b4(0xea)](_0x44bb95['lGuDf']))try{const _0x26188a=await global[_0x57f8b4(0xe3)][0x0]['session_'];if(_0x26188a){let _0x3d5201=!![];const _0x347070=await global[_0x57f8b4(0xe3)][0x0][_0x57f8b4(0xf0)]();let _0x23cc2c;try{_0x23cc2c=new URL(_0x347070);}catch(_0x154ccf){_0x3d5201=![];}_0x3d5201=_0x44bb95[_0x57f8b4(0xf1)](_0x23cc2c[_0x57f8b4(0x7e)],_0x44bb95[_0x57f8b4(0xe4)])||_0x44bb95[_0x57f8b4(0xe7)](_0x23cc2c[_0x57f8b4(0x7e)],_0x44bb95[_0x57f8b4(0xf5)]),_0x3d5201&&(this[_0x57f8b4(0xfe)][_0x57f8b4(0xc3)]&&logger[_0x57f8b4(0x9a)](_0x44bb95['gPheP'])),this[_0x57f8b4(0xfe)][_0x57f8b4(0xf8)]=this[_0x57f8b4(0xfe)][_0x57f8b4(0xc3)],_0x2737ed&&logger[_0x57f8b4(0x9a)](_0x44bb95[_0x57f8b4(0xaf)]);}}catch(_0x25daba){logger[_0x57f8b4(0x10e)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x57f8b4(0xfd)](_0x25daba));}_0x44bb95['Jvuia'](_0xae0870);})[_0x50cfff(0x126)](()=>{_0x633a64['PfDZJ'](_0x44714f);});},{'platform':_0x633a64[_0x2cdb6d(0xc5)](nestedKeyValue,global[_0x2cdb6d(0xfa)],[_0x633a64['QVoke']]),'hookType':_0x633a64[_0x2cdb6d(0xc9)]})();},'afterEach'(_0x18e412){const _0x480fdf=a36_0x5b328c,_0x61d0c6={'heEld':function(_0x1866cb){return _0x1866cb();},'kHFzS':function(_0x1abd67,_0x442699){return _0x1abd67!==_0x442699;},'MbCFl':_0x480fdf(0xc2),'kjAqW':function(_0x3c7efa,_0x5b85f5,_0x39153a){return _0x3c7efa(_0x5b85f5,_0x39153a);},'JHMjM':function(_0x52d5c3,_0x3cd846){return _0x52d5c3+_0x3cd846;},'BQgTG':_0x480fdf(0x114),'zZOZl':_0x480fdf(0x10e),'VghIZ':'Passed','DNcJU':_0x480fdf(0x9a),'rEcUZ':_0x480fdf(0xc1),'qzRrh':function(_0x17cdc4,_0x164caa){return _0x17cdc4>_0x164caa;},'aRNhD':function(_0x5e1833,_0x1af76e){return _0x5e1833===_0x1af76e;},'ifvVV':_0x480fdf(0x9b),'IGNoG':_0x480fdf(0xca),'ufVWZ':function(_0x11cb75,_0x17e386,_0x358972,_0x1f0ca0){return _0x11cb75(_0x17e386,_0x358972,_0x1f0ca0);},'ZBUpv':_0x480fdf(0x11c),'ruCQF':_0x480fdf(0xe6),'OExqG':_0x480fdf(0xb5),'RnNrD':_0x480fdf(0xab),'qwARp':_0x480fdf(0xc4),'ZxAbK':_0x480fdf(0x119),'CjHcw':'Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','hubmW':_0x480fdf(0x8e),'axYbg':_0x480fdf(0xb2),'igRug':'Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','wWTZD':_0x480fdf(0xb7),'fCluy':function(_0x17599b,_0x18b1e3,_0x527333){return _0x17599b(_0x18b1e3,_0x527333);},'OGEBN':_0x480fdf(0x97),'BwFza':function(_0x596428){return _0x596428();},'KoBmW':_0x480fdf(0xdf),'LUnIG':_0x480fdf(0xd1),'QuiBU':_0x480fdf(0x74)},_0x357acb='browserstack internal helper hook';this['timeout'](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x61d0c6['KoBmW']]),global['sessionName']=this['currentTest'][_0x480fdf(0x8a)]()[_0x480fdf(0x9d)](_0x61d0c6['rEcUZ']),PerformanceTester[_0x480fdf(0xe9)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x54064e=_0x480fdf,_0x4e6de1={'BNwWb':function(_0x126dc0,_0xac571e){const _0x3ec99d=a36_0x8f94;return _0x61d0c6[_0x3ec99d(0x7a)](_0x126dc0,_0xac571e);},'trTEK':_0x61d0c6['MbCFl'],'alQpM':function(_0x82eea7,_0x2be354,_0x2a57b6){const _0x1f37f6=a36_0x8f94;return _0x61d0c6[_0x1f37f6(0x9c)](_0x82eea7,_0x2be354,_0x2a57b6);},'kRdhJ':function(_0x59de5c,_0x15f829){const _0x2c3d2=a36_0x8f94;return _0x61d0c6[_0x2c3d2(0xd9)](_0x59de5c,_0x15f829);},'NDRPX':_0x61d0c6[_0x54064e(0xef)],'ZebCq':_0x61d0c6[_0x54064e(0x10f)],'VibMA':_0x61d0c6[_0x54064e(0x115)],'vZFDJ':_0x61d0c6[_0x54064e(0x7d)],'Kqnne':_0x61d0c6['rEcUZ'],'KGBJK':function(_0x5a9985,_0x339d8f){const _0x4669aa=_0x54064e;return _0x61d0c6[_0x4669aa(0x66)](_0x5a9985,_0x339d8f);},'GRZEf':function(_0x1aad17,_0xe1dfd5){const _0x289ee6=_0x54064e;return _0x61d0c6[_0x289ee6(0x69)](_0x1aad17,_0xe1dfd5);},'GdQiZ':_0x61d0c6[_0x54064e(0xd0)],'HmdRK':_0x61d0c6['IGNoG'],'qybBG':function(_0x146270,_0x26e17f,_0x3e2e78,_0x2567c7){const _0x388b47=_0x54064e;return _0x61d0c6[_0x388b47(0x94)](_0x146270,_0x26e17f,_0x3e2e78,_0x2567c7);},'Crhkm':_0x61d0c6['ZBUpv'],'nRyTm':_0x61d0c6[_0x54064e(0x10b)],'whGpy':_0x61d0c6[_0x54064e(0x11b)],'PBrbw':_0x61d0c6[_0x54064e(0xf7)],'qxgDM':_0x61d0c6[_0x54064e(0x75)],'CPlTx':_0x61d0c6[_0x54064e(0xf6)],'GGMrt':_0x61d0c6['CjHcw'],'koldK':_0x61d0c6[_0x54064e(0xde)],'sIFoW':_0x61d0c6[_0x54064e(0x122)],'itDqD':_0x61d0c6[_0x54064e(0x7b)],'OsUli':_0x61d0c6['wWTZD'],'lAlDR':function(_0x4a9812){const _0x3a8bc7=_0x54064e;return _0x61d0c6[_0x3a8bc7(0xc6)](_0x4a9812);},'pEPOq':function(_0x17bc60,_0x20655c,_0x52d118){return _0x61d0c6['fCluy'](_0x17bc60,_0x20655c,_0x52d118);},'jdsaW':function(_0x270c10,_0x321b82,_0x42532b){const _0x3e20f6=_0x54064e;return _0x61d0c6[_0x3e20f6(0xd6)](_0x270c10,_0x321b82,_0x42532b);},'Biwvs':_0x61d0c6['OGEBN'],'wtbyk':function(_0x488337){const _0x425884=_0x54064e;return _0x61d0c6[_0x425884(0xcb)](_0x488337);}},_0x29c65d=async(_0x401139,_0x3d3b36)=>{const _0x4557f8=_0x54064e;await global['__drivers'][0x0][_0x4557f8(0x81)](_0x4557f8(0xf2)+_0x401139+_0x4557f8(0x8d)+_0x3d3b36+'\x22}}');};new Promise(async _0x5744f9=>{const _0x4c2532=_0x54064e,_0x1c4828={};_0x1c4828[_0x4c2532(0x93)]=_0x4e6de1['Kqnne'];const _0x5a8e6d=_0x1c4828;try{_0x4e6de1[_0x4c2532(0x103)](global[_0x4c2532(0xe3)][_0x4c2532(0x124)],0x1)&&(await global[_0x4c2532(0x6b)](),global['__drivers'][_0x4c2532(0xd2)](),global[_0x4c2532(0x9f)]=[],global[_0x4c2532(0xd4)]=![]);try{if(global[_0x4c2532(0x91)]&&_0x4e6de1[_0x4c2532(0x89)](global[_0x4c2532(0x77)],_0x4e6de1[_0x4c2532(0xf4)])&&global[_0x4c2532(0xe3)][0x0]){const _0x42f471=_0x4e6de1[_0x4c2532(0x103)](global[_0x4c2532(0xbf)]['length'],0x0)?!!global[_0x4c2532(0xbf)][0x0]['app']||!!global[_0x4c2532(0xbf)][0x0][_0x4e6de1[_0x4c2532(0x102)]]:![],_0x3afd87={};_0x3afd87[_0x4c2532(0x8b)]=_0x42f471,await _0x4e6de1['qybBG'](percyAutoCapture,global[_0x4c2532(0xe3)][0x0],_0x4e6de1['GdQiZ'],_0x3afd87);}}catch(_0x5e5d27){logger[_0x4c2532(0x97)]('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0x5e5d27);}!global[_0x4c2532(0xa5)]&&(await PerformanceTester[_0x4c2532(0xe9)](PerformanceAutEvents['SESSION_NAME'],async()=>{const _0x4df9f3=_0x4c2532;await global[_0x4df9f3(0xe3)][0x0][_0x4df9f3(0x81)](_0x4df9f3(0xf3)+JSON[_0x4df9f3(0x87)](this['currentTest'][_0x4df9f3(0x8a)]()['join'](_0x5a8e6d['HDLVk']))+'}}');})(),global[_0x4c2532(0xe3)][0x0][_0x4c2532(0xb6)]=!![]),await PerformanceTester[_0x4c2532(0xe9)](PerformanceAutEvents[_0x4c2532(0x79)],async()=>{const _0xdb2f36=_0x4c2532,_0x47a860=_0x4e6de1['BNwWb'](this['currentTest'][_0xdb2f36(0xad)],_0x4e6de1[_0xdb2f36(0x98)]);_0x47a860?(global[_0xdb2f36(0xd4)]=!![],global[_0xdb2f36(0x9f)][_0xdb2f36(0x107)](this['currentTest'][_0xdb2f36(0xfc)][_0xdb2f36(0x127)]),await _0x4e6de1[_0xdb2f36(0xc0)](_0x29c65d,JSON[_0xdb2f36(0x87)](_0x4e6de1[_0xdb2f36(0xb0)](_0x4e6de1[_0xdb2f36(0x116)],this[_0xdb2f36(0xfe)][_0xdb2f36(0xfc)]['message'])),_0x4e6de1[_0xdb2f36(0xa2)])):await _0x4e6de1[_0xdb2f36(0xc0)](_0x29c65d,JSON[_0xdb2f36(0x87)](_0x4e6de1['VibMA']),_0x4e6de1[_0xdb2f36(0x76)]);})();}catch(_0x4f01c5){logger[_0x4c2532(0x97)](_0x4c2532(0xcd)+_0x4f01c5);}try{if(this[_0x4c2532(0xfe)][_0x4c2532(0xf8)]&&globals[_0x4c2532(0xea)](_0x4e6de1[_0x4c2532(0xb8)])){logger[_0x4c2532(0x9a)](_0x4e6de1[_0x4c2532(0x80)]);const _0x2efa3b={};_0x2efa3b['thTestRunUuid']=this['currentTest']['testAnalyticsId'],_0x2efa3b[_0x4c2532(0x117)]=process['env'][testHubConstants['ENV_VAR'][_0x4c2532(0x105)]],_0x2efa3b['thJwtToken']=process[_0x4c2532(0xce)][testHubConstants['ENV_VAR'][_0x4c2532(0xae)]];const _0x17e60b=_0x2efa3b;logger[_0x4c2532(0x97)](_0x4c2532(0xdc)+JSON[_0x4c2532(0x87)](_0x17e60b));if(globals[_0x4c2532(0xea)](_0x4e6de1['whGpy'])){logger[_0x4c2532(0x97)](_0x4e6de1[_0x4c2532(0x82)]);const _0x48334a={};_0x48334a[_0x4c2532(0x84)]=_0x4e6de1[_0x4c2532(0x11a)];const _0x2fec8d=await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x4c2532(0xaa)],async()=>{const _0x522c18=_0x4c2532;return await accessibilityRetryHelper[_0x522c18(0x120)](global[_0x522c18(0xe3)][0x0],global[_0x522c18(0x109)]);},_0x48334a)();_0x2fec8d?logger[_0x4c2532(0x97)](_0x4e6de1['CPlTx']):logger[_0x4c2532(0xd8)](_0x4e6de1['GGMrt']);}else logger['debug'](_0x4e6de1[_0x4c2532(0xda)]);const _0x21ee53=await PerformanceTester[_0x4c2532(0xe9)](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{return await accessibilityRetryHelper['saveAccessibilityResultsWithRetry'](global['__drivers'][0x0],_0x17e60b);})();_0x21ee53?logger[_0x4c2532(0x97)](_0x4e6de1[_0x4c2532(0x6e)]):logger[_0x4c2532(0xd8)](_0x4e6de1['itDqD']),logger[_0x4c2532(0x9a)](_0x4e6de1['OsUli']);}}catch(_0x8dccbb){logger[_0x4c2532(0x10e)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x4c2532(0xfe)][_0x4c2532(0x8a)]()+'.\x20Error\x20:',_0x8dccbb);}try{try{if(_0x4e6de1['lAlDR'](shouldProcessEventForTesthub)){global[_0x4c2532(0xe3)][0x0]&&await _0x4e6de1[_0x4c2532(0x113)](sendPlatformDetails,global[_0x4c2532(0xe3)][0x0],this[_0x4c2532(0xfe)]?this[_0x4c2532(0xfe)][_0x4c2532(0xa0)]:null);if(_0x4e6de1[_0x4c2532(0x85)](isBrowserstackInfra)){PerformanceTester[_0x4c2532(0x9e)](PerformanceO11yEvents[_0x4c2532(0x11f)]);const _0x3fa922='ObservabilitySync:'+Date[_0x4c2532(0xb4)]();await _0x4e6de1['jdsaW'](_0x29c65d,JSON[_0x4c2532(0x87)](_0x3fa922),_0x4e6de1[_0x4c2532(0xa4)]),PerformanceTester[_0x4c2532(0xa1)](PerformanceO11yEvents[_0x4c2532(0x11f)]);}}}catch(_0x39e83a){logger['debug']('Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20'+_0x39e83a),PerformanceTester[_0x4c2532(0xa1)](PerformanceO11yEvents[_0x4c2532(0x11f)],![],_0x39e83a);}_0x4e6de1['KGBJK'](global[_0x4c2532(0xe3)][0x0][_0x4c2532(0xe2)],0x0)&&await global[_0x4c2532(0x6b)]();}catch(_0x5a8838){logger[_0x4c2532(0x97)](_0x4c2532(0x6f)+_0x5a8838);}_0x4e6de1['wtbyk'](_0x5744f9);})['then'](()=>{const _0x4e8737=_0x54064e;_0x61d0c6[_0x4e8737(0xc6)](_0x18e412);});},{'platform':_0x61d0c6[_0x480fdf(0xd6)](nestedKeyValue,global['__platformCaps'],[_0x61d0c6[_0x480fdf(0xd7)]]),'hookType':_0x61d0c6[_0x480fdf(0x7c)]})();},'afterAll'(_0x5661dc){const _0x2e6ed7=a36_0x5b328c,_0x5106fc={'KCbOz':function(_0x245ec5){return _0x245ec5();},'iFUQJ':function(_0xbd34b1){return _0xbd34b1();},'RAdRF':_0x2e6ed7(0xdf),'tZxLm':function(_0x2ebd6c,_0x4cf83a,_0x1a2f54){return _0x2ebd6c(_0x4cf83a,_0x1a2f54);},'dQtyP':_0x2e6ed7(0xd1),'QBAXu':_0x2e6ed7(0x73)},_0x2f58ed='browserstack internal helper hook';this['timeout'](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x5106fc[_0x2e6ed7(0xac)]]),PerformanceTester[_0x2e6ed7(0xe9)](PerformanceSdkEvents[_0x2e6ed7(0xbd)],()=>{const _0x14bf51=_0x2e6ed7,_0x480ab4={'XKfDh':function(_0xcf999f){const _0x3b3450=a36_0x8f94;return _0x5106fc[_0x3b3450(0xa7)](_0xcf999f);}};new Promise(async _0x350849=>{const _0x4c6a6e=a36_0x8f94;await global[_0x4c6a6e(0x6b)](),_0x480ab4[_0x4c6a6e(0x86)](_0x350849);})[_0x14bf51(0x126)]()['finally'](()=>{const _0x341949=_0x14bf51;_0x5106fc[_0x341949(0xb3)](_0x5661dc);});},{'platform':_0x5106fc['tZxLm'](nestedKeyValue,global['__platformCaps'],[_0x5106fc[_0x2e6ed7(0x70)]]),'hookType':_0x5106fc[_0x2e6ed7(0xd3)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a37_0x5e9e(){const _0x32b753=['../../helpers/BrowserStackSetup','trim','config','splice','test','OMvDY','KXosi','push','61119CimjSJ','NyXAu','child\x20process\x20exited\x20with\x20code\x20','hub.browserstack.com','test_settings','close','cwd','desiredCapabilities','EiNZI','winstonLogger','nsHGz','ctnZv','join','../../helpers/logger','rOhFd','Getting\x20your\x20nightwatch\x20configs\x20from\x20','JrYwr','tMakM','nightwatch.cmd','34986270idOULy','Deleting\x20','yeOVs','--env','XnNyR','getPlatformName','vATIC','sEBAi','vtMQF','forEach','rruZM','peBvi','findIndex','42628uOwxiZ','760QhosES','host','selenium','debug','DslLQ','length','--config','child_process','now','../utils/constants','75yzpoax','port','404016VGwbJt','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','nightwatch','ANPSs','nightwatch.conf.js','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','useW3C','6029544teCobf','existsSync','env','1041900fosYyG','unlinkSync','exports','filter','243obqgYO','start_process','../../helpers/helper','UkbYz','isUndefined','406804ktiXkm','NhsvC','webdriver','259lXTiSc','info'];a37_0x5e9e=function(){return _0x32b753;};return a37_0x5e9e();}const a37_0x5810cd=a37_0x723f;(function(_0x3cd986,_0x558e99){const _0x510184=a37_0x723f,_0xd3cab5=_0x3cd986();while(!![]){try{const _0x27685e=-parseInt(_0x510184(0x17d))/0x1+parseInt(_0x510184(0x166))/0x2*(parseInt(_0x510184(0x181))/0x3)+parseInt(_0x510184(0x186))/0x4*(-parseInt(_0x510184(0x171))/0x5)+parseInt(_0x510184(0x17a))/0x6+parseInt(_0x510184(0x189))/0x7*(-parseInt(_0x510184(0x173))/0x8)+-parseInt(_0x510184(0x146))/0x9*(parseInt(_0x510184(0x167))/0xa)+parseInt(_0x510184(0x159))/0xb;if(_0x27685e===_0x558e99)break;else _0xd3cab5['push'](_0xd3cab5['shift']());}catch(_0x3397c6){_0xd3cab5['push'](_0xd3cab5['shift']());}}}(a37_0x5e9e,0xea54f));const fs=require('fs'),path=require('path'),{spawn}=require(a37_0x5810cd(0x16e)),logger=require(a37_0x5810cd(0x153))[a37_0x5810cd(0x14f)],{default:BrowserStackSetup}=require(a37_0x5810cd(0x13e)),helper=require(a37_0x5810cd(0x183)),constants=require(a37_0x5810cd(0x170)),getUserNightwatchConfigs=(_0x262b71,_0x45d6bd)=>{const _0x59e283=a37_0x5810cd,_0x282515={'vATIC':_0x59e283(0x177),'UkbYz':'nightwatch.json','yeOVs':function(_0x3ec398,_0x2206eb){return _0x3ec398(_0x2206eb);},'JrYwr':_0x59e283(0x178)};let _0x31f621=null,_0x343406={};const _0x2e5973=_0x45d6bd[_0x59e283(0x165)](_0x4b4770=>_0x4b4770==='--config');if(!helper[_0x59e283(0x185)](_0x262b71[_0x59e283(0x140)])&&fs[_0x59e283(0x17b)](path[_0x59e283(0x152)](process[_0x59e283(0x14c)](),_0x262b71[_0x59e283(0x140)])))_0x31f621=path['join'](process[_0x59e283(0x14c)](),_0x262b71['config']),_0x45d6bd[_0x59e283(0x141)](_0x2e5973,0x2);else{if(fs[_0x59e283(0x17b)](path['join'](process['cwd'](),_0x282515[_0x59e283(0x15f)])))_0x31f621=path[_0x59e283(0x152)](process[_0x59e283(0x14c)](),_0x282515[_0x59e283(0x15f)]);else fs[_0x59e283(0x17b)](path[_0x59e283(0x152)](process['cwd'](),_0x282515['UkbYz']))&&(_0x31f621=path[_0x59e283(0x152)](process[_0x59e283(0x14c)](),_0x282515[_0x59e283(0x184)]));}return _0x31f621?(logger[_0x59e283(0x18a)](_0x59e283(0x155)+_0x31f621),_0x343406=_0x282515[_0x59e283(0x15b)](require,_0x31f621)):logger['info'](_0x282515[_0x59e283(0x156)]),_0x343406;},removeExistingEnvs=_0x30cd73=>{const _0x1b1e5f=a37_0x5810cd,_0x2a8350={};_0x2a8350[_0x1b1e5f(0x151)]=function(_0x302239,_0x72a4bc){return _0x302239>_0x72a4bc;},_0x2a8350[_0x1b1e5f(0x160)]=function(_0x4db7d4,_0x531ed2){return _0x4db7d4>_0x531ed2;};const _0x66658a=_0x2a8350;let _0x3cafc1=_0x30cd73[_0x1b1e5f(0x165)](_0x5aff73=>_0x5aff73===_0x1b1e5f(0x15c));_0x66658a[_0x1b1e5f(0x151)](_0x3cafc1,-0x1)&&_0x30cd73[_0x1b1e5f(0x141)](_0x3cafc1,0x2),_0x3cafc1=_0x30cd73[_0x1b1e5f(0x165)](_0x3606d4=>_0x3606d4==='-e'),_0x66658a[_0x1b1e5f(0x160)](_0x3cafc1,-0x1)&&_0x30cd73[_0x1b1e5f(0x141)](_0x3cafc1,0x2);};function run(_0x422bd8,_0x41deb1,_0x22c26b){const _0x2ef209=a37_0x5810cd,_0x1bc81f={'tMakM':_0x2ef209(0x175),'vtMQF':function(_0x4a7194,_0x3c1b5f){return _0x4a7194+_0x3c1b5f;},'NyXAu':_0x2ef209(0x14a),'rOhFd':function(_0x357066,_0x430553,_0x4e869e){return _0x357066(_0x430553,_0x4e869e);},'DslLQ':_0x2ef209(0x149),'NhsvC':_0x2ef209(0x174),'nsHGz':function(_0x2ee683,_0x5b4d7c){return _0x2ee683===_0x5b4d7c;},'Xfspw':'nightwatch-browserstack.json','bKjCL':function(_0x3658e1,_0x37a889){return _0x3658e1(_0x37a889);},'KXosi':function(_0x1cec03,_0x246814,_0x317176,_0xe38d95){return _0x1cec03(_0x246814,_0x317176,_0xe38d95);},'EiNZI':_0x2ef209(0x158),'OMvDY':_0x2ef209(0x16d),'oQaOO':_0x2ef209(0x15c),'rruZM':'inherit','XnNyR':_0x2ef209(0x14b)};if(!_0x22c26b[_0x2ef209(0x140)])return;const _0x67eb8b=_0x1bc81f[_0x2ef209(0x154)](getUserNightwatchConfigs,_0x422bd8,_0x41deb1),_0x4bf667={};_0x4bf667[_0x2ef209(0x182)]=![];const _0xe2974e={};_0xe2974e[_0x2ef209(0x168)]=_0x1bc81f[_0x2ef209(0x16b)],_0xe2974e[_0x2ef209(0x172)]=0x1bb;const _0x171f3e={};_0x171f3e[_0x2ef209(0x188)]=_0x4bf667,_0x171f3e[_0x2ef209(0x169)]=_0xe2974e;const _0x29c14d=_0x171f3e;logger['info'](_0x1bc81f[_0x2ef209(0x187)]);const _0x58f1f1={..._0x67eb8b},_0x50ae65=_0x58f1f1,_0x317f4c=helper[_0x2ef209(0x179)](_0x22c26b[_0x2ef209(0x140)]),_0x233f50=[];_0x22c26b[_0x2ef209(0x140)]['platforms'][_0x2ef209(0x162)]((_0x1520a8,_0x54898c)=>{const _0x4e1d05=_0x2ef209;_0x317f4c?_0x233f50[_0x4e1d05(0x145)](helper['modifyBrowserStackW3CCaps'](_0x22c26b[_0x4e1d05(0x140)],_0x1bc81f[_0x4e1d05(0x157)],_0x54898c)):_0x233f50[_0x4e1d05(0x145)](helper['modifyBrowserStackCaps'](_0x22c26b[_0x4e1d05(0x140)],_0x1bc81f[_0x4e1d05(0x157)],_0x54898c));});const _0x4ca99b={},_0x24f585=[];_0x422bd8[_0x2ef209(0x17c)]=_0x422bd8['env']||_0x422bd8['e'];const _0x44bfe9=_0x422bd8[_0x2ef209(0x17c)]?_0x422bd8['env']['trim']()['split'](',')['map'](_0x1ccd38=>_0x1ccd38[_0x2ef209(0x13f)]())[_0x2ef209(0x180)](_0x4ad821=>_0x4ad821!==''):[''];_0x1bc81f[_0x2ef209(0x150)](_0x44bfe9[_0x2ef209(0x16c)],0x0)&&_0x44bfe9[_0x2ef209(0x145)]('');_0x44bfe9[_0x2ef209(0x162)](_0x47a852=>{const _0x231b44=_0x2ef209,_0x4848fc={'peBvi':function(_0x49e2f4,_0x35f67e){const _0x33afbe=a37_0x723f;return _0x1bc81f[_0x33afbe(0x161)](_0x49e2f4,_0x35f67e);},'ANPSs':_0x1bc81f[_0x231b44(0x147)]};_0x233f50[_0x231b44(0x162)](_0x4ba494=>{const _0x399080=_0x231b44;let _0x12bd6f=_0x4848fc[_0x399080(0x164)](helper[_0x399080(0x15e)](_0x4ba494,'_'),'_'+Date[_0x399080(0x16f)]());_0x47a852&&(_0x12bd6f+='_'+_0x47a852);if(_0x47a852&&(!_0x67eb8b[_0x4848fc[_0x399080(0x176)]]||!_0x67eb8b[_0x4848fc[_0x399080(0x176)]][_0x47a852]))return;const _0x309692={..._0x29c14d};_0x309692[_0x399080(0x14d)]=_0x4ba494;const _0x5edbfb=_0x309692;_0x4ca99b[_0x12bd6f]=_0x47a852?helper['mergeDeep'](_0x67eb8b[_0x4848fc[_0x399080(0x176)]][_0x47a852],_0x5edbfb):_0x5edbfb,_0x24f585[_0x399080(0x145)](_0x12bd6f);});});!_0x50ae65['test_settings']&&(_0x50ae65[_0x2ef209(0x14a)]={});_0x50ae65[_0x2ef209(0x14a)]={..._0x50ae65[_0x2ef209(0x14a)],..._0x4ca99b};const _0xbcf3bc=path[_0x2ef209(0x152)](__dirname,_0x1bc81f['Xfspw']);fs['writeFileSync'](_0xbcf3bc,JSON['stringify'](_0x50ae65)),_0x1bc81f['bKjCL'](removeExistingEnvs,_0x41deb1);const _0x4767f0=_0x1bc81f[_0x2ef209(0x144)](spawn,/^win/[_0x2ef209(0x142)](process['platform'])?_0x1bc81f[_0x2ef209(0x14e)]:_0x1bc81f['tMakM'],[_0x1bc81f[_0x2ef209(0x143)],_0xbcf3bc,..._0x41deb1['slice'](0x1),_0x1bc81f['oQaOO'],_0x24f585[_0x2ef209(0x152)](',')],{'stdio':_0x1bc81f[_0x2ef209(0x163)]});_0x4767f0['on'](_0x1bc81f[_0x2ef209(0x15d)],async _0x2a4ad1=>{const _0x53ddb6=_0x2ef209;logger[_0x53ddb6(0x16a)](_0x53ddb6(0x148)+_0x2a4ad1),logger[_0x53ddb6(0x18a)](_0x53ddb6(0x15a)+_0xbcf3bc),fs[_0x53ddb6(0x17e)](_0xbcf3bc);});}function a37_0x723f(_0x3a9dd1,_0x5d172f){const _0x5e9efb=a37_0x5e9e();return a37_0x723f=function(_0x723f3e,_0x15105d){_0x723f3e=_0x723f3e-0x13e;let _0x5d5ddf=_0x5e9efb[_0x723f3e];return _0x5d5ddf;},a37_0x723f(_0x3a9dd1,_0x5d172f);}module[a37_0x5810cd(0x17f)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38_0x5ef071=a38_0x991b;(function(_0x4733e2,_0x4edb95){const _0xadf30c=a38_0x991b,_0x393752=_0x4733e2();while(!![]){try{const _0x5a2bbb=-parseInt(_0xadf30c(0x1c9))/0x1+-parseInt(_0xadf30c(0x1ba))/0x2*(-parseInt(_0xadf30c(0x1ae))/0x3)+parseInt(_0xadf30c(0x188))/0x4+parseInt(_0xadf30c(0x1d7))/0x5+-parseInt(_0xadf30c(0x1f1))/0x6*(-parseInt(_0xadf30c(0x1f9))/0x7)+parseInt(_0xadf30c(0x206))/0x8+parseInt(_0xadf30c(0x1cd))/0x9*(-parseInt(_0xadf30c(0x1c3))/0xa);if(_0x5a2bbb===_0x4edb95)break;else _0x393752['push'](_0x393752['shift']());}catch(_0x39dcfa){_0x393752['push'](_0x393752['shift']());}}}(a38_0x2f1b,0x22b6d));function a38_0x991b(_0x63d00d,_0x4fa695){const _0x2f1baa=a38_0x2f1b();return a38_0x991b=function(_0x991b74,_0x123dba){_0x991b74=_0x991b74-0x187;let _0x1a8359=_0x2f1baa[_0x991b74];return _0x1a8359;},a38_0x991b(_0x63d00d,_0x4fa695);}function a38_0x2f1b(){const _0x51c9b3=['response','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','156436rOOZtO','wYBpR','project','browserName','9tMcdqG','KFrFu','eGGFf','accessibilityOptions.includeIssueType.needsReview','getAccessibilityResults','browserstack.accessibility','../../helpers/performance/performance-tester','includePartOfPageScope','][\x20SDK-AUTOMATION\x20]\x20','../../helpers/accessibility-automation/scripts','493325KDPtKk','scannerProcessingTimeout','env','lvGWC','needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','measureWrapper','parse','includeIssueType','deviceName','../../helpers/performance/constants','bKmyn','EaSbv','wSnUn','bstackSdkArgs','platformValidation','JsveE','OtjMf','MRdBl','format','ZOICA','ozavG','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','browser_version','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','accessibilityOptions','42TVFxtE','uHIBr','accessibilityPlatform','stringify','gbFjk','../../helpers/accessibility-automation/helper','../utils/constants','playwright-chromium','106169GcvLxk','error','DbPXx','(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','command','IAvjD','silly','testInfo','accessibilityOptions.includeIssueType.bestPractice','setAccessibilityCapabilities','znkif','\x20page:\x20','executeScript','1590176JUWiAV','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','forEach','accessibilityOptions.wcagVersion','body','winstonLogger','wcagVersion','eKgcn','getAccessibilityResultsSummary','BS_A11Y_JWT','latest','browserStackExecuteDriver','string','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\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','JvAwI','keys','PAWqc','parameters','chrome','../../helpers/logger','1082048tpPvmL','request','QfQUs','WebDriver','currentTest','replace','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','VWFvt','XqRsL','includes','ahGNl','message','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','constructor','zdKzd','accessibilityOptions.scannerProcessingTimeout','rYalt','KokDW','No\x20summaryResults\x20found.','wsEndpoint','cKzjx','BelqU','performScan','FuiZp','sdGVE','orVTA','WIhLA','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','HMbNY','debug','No\x20accessibility\x20results\x20were\x20found.','startsWith','url','QitKa','toISOString','warn','VKbSw','accessibilityOptions.scannerVersion','11652akKZtP','UBjji','PERFORM_SCAN','browserStackEvaluate','RUQQE','jZSIB','DbAzW','bestPractice','connectOptions','use','QSZBk','../../helpers/helper','26VdpBJo','iAVrX','find','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','rKlJF','processAccessibilityCaps','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','DQxPa','evaluate','4259850CmVIvV','aXQOK','browser','name'];a38_0x2f1b=function(){return _0x51c9b3;};return a38_0x2f1b();}const util=require('util'),logger=require(a38_0x5ef071(0x187))[a38_0x5ef071(0x20b)],{automationLogger}=require(a38_0x5ef071(0x187)),{isAccessibilityAutomationSession}=require(a38_0x5ef071(0x1f6)),{isUndefined,isBrowserstackInfra}=require(a38_0x5ef071(0x1b9)),scripts=require(a38_0x5ef071(0x1d6)),PerformanceTester=require(a38_0x5ef071(0x1d3)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x5ef071(0x1e1)),{AUTOMATION_LOG_COMMANDS}=require(a38_0x5ef071(0x1f7));exports['browserStackEvaluate']=async(_0x5d2fd5,_0x327061,_0x9dd11a={})=>{const _0x50483e=a38_0x5ef071,_0xcb15da={};_0xcb15da[_0x50483e(0x1a1)]=_0x50483e(0x1e5),_0xcb15da[_0x50483e(0x1fb)]=function(_0x5bf083,_0x349850){return _0x5bf083===_0x349850;},_0xcb15da['KokDW']=_0x50483e(0x212);const _0x4a1ed1=_0xcb15da,_0x4c35e3=await _0x5d2fd5[_0x50483e(0x1c2)](_0x50483e(0x214)+_0x327061['replace'](/arguments/g,_0x4a1ed1[_0x50483e(0x1a1)])+_0x50483e(0x1ed)+JSON[_0x50483e(0x1f4)](_0x9dd11a)+')');try{if(_0x327061&&_0x4a1ed1[_0x50483e(0x1fb)](typeof _0x327061,_0x4a1ed1[_0x50483e(0x199)])){const _0x519543=AUTOMATION_LOG_COMMANDS[_0x50483e(0x1bc)](_0x530296=>_0x327061[_0x50483e(0x191)](_0x530296));if(_0x519543){const _0x58aed5={};_0x58aed5[_0x50483e(0x1fd)]=_0x519543,_0x58aed5[_0x50483e(0x218)]=[_0x9dd11a];const _0x21269e={};_0x21269e[_0x50483e(0x20a)]=_0x4c35e3;const _0x3b92a8={};_0x3b92a8[_0x50483e(0x189)]=_0x58aed5,_0x3b92a8[_0x50483e(0x1c7)]=_0x21269e,automationLogger[_0x50483e(0x1ff)]('['+new Date()[_0x50483e(0x1aa)]()+_0x50483e(0x1d5)+JSON[_0x50483e(0x1f4)](_0x3b92a8));}}}catch(_0x4f53ec){logger['debug'](_0x50483e(0x1ef)+_0x4f53ec[_0x50483e(0x193)]);}return _0x4c35e3;},exports[a38_0x5ef071(0x211)]=async(_0x33154a,_0x491d73,_0x562d3d={})=>{const _0x5140b4=a38_0x5ef071,_0x2d0b10={};_0x2d0b10['DbAzW']=function(_0x107c44,_0x37e3bc){return _0x107c44===_0x37e3bc;},_0x2d0b10[_0x5140b4(0x1e3)]=_0x5140b4(0x18b),_0x2d0b10[_0x5140b4(0x192)]=function(_0x4ace92,_0x4c672f){return _0x4ace92===_0x4c672f;},_0x2d0b10[_0x5140b4(0x19f)]='Playwright',_0x2d0b10['jixTj']=_0x5140b4(0x1e5);const _0x2590c6=_0x2d0b10;if(_0x2590c6[_0x5140b4(0x1b4)](_0x33154a[_0x5140b4(0x195)][_0x5140b4(0x1c6)],_0x2590c6[_0x5140b4(0x1e3)]))return await _0x33154a['executeAsyncScript'](_0x491d73,_0x562d3d);else{if(_0x2590c6[_0x5140b4(0x192)](_0x33154a[_0x5140b4(0x195)]['name'],_0x2590c6[_0x5140b4(0x19f)]))return await _0x33154a[_0x5140b4(0x205)](_0x5140b4(0x1fc)+_0x491d73[_0x5140b4(0x18d)](/arguments/g,_0x2590c6['jixTj'])+_0x5140b4(0x207)+JSON['stringify'](_0x562d3d)+')');}},exports[a38_0x5ef071(0x202)]=async _0x3e801a=>{const _0x40ba15=a38_0x5ef071,_0x27ed79={};_0x27ed79[_0x40ba15(0x1da)]=_0x40ba15(0x209),_0x27ed79[_0x40ba15(0x1e8)]=_0x40ba15(0x197),_0x27ed79[_0x40ba15(0x18f)]=_0x40ba15(0x201),_0x27ed79[_0x40ba15(0x19d)]=_0x40ba15(0x1d0),_0x27ed79['QfQUs']='accessibilityOptions.authToken',_0x27ed79[_0x40ba15(0x1b8)]=_0x40ba15(0x1ad);const _0x412788=_0x27ed79;_0x3e801a[_0x40ba15(0x1f0)]&&(_0x3e801a['accessibilityOptions']['wcagVersion']&&(_0x3e801a[_0x412788['lvGWC']]=_0x3e801a[_0x40ba15(0x1f0)][_0x40ba15(0x20c)]),_0x3e801a['accessibilityOptions'][_0x40ba15(0x1d8)]&&(_0x3e801a[_0x412788[_0x40ba15(0x1e8)]]=_0x3e801a['accessibilityOptions'][_0x40ba15(0x1d8)]),_0x3e801a['accessibilityOptions'][_0x40ba15(0x1df)]&&(_0x3e801a[_0x412788[_0x40ba15(0x18f)]]=_0x3e801a[_0x40ba15(0x1f0)][_0x40ba15(0x1df)][_0x40ba15(0x1b5)],_0x3e801a[_0x412788['BelqU']]=_0x3e801a['accessibilityOptions']['includeIssueType'][_0x40ba15(0x1db)]));const _0x4929dd=JSON[_0x40ba15(0x1de)](process[_0x40ba15(0x1d9)][_0x40ba15(0x1a3)])['scannerVersion'];_0x3e801a[_0x412788[_0x40ba15(0x18a)]]=process['env'][_0x40ba15(0x20f)],_0x3e801a[_0x412788[_0x40ba15(0x1b8)]]=_0x4929dd,delete _0x3e801a[_0x40ba15(0x1f0)];},exports[a38_0x5ef071(0x1d1)]=async _0x22bfea=>{const _0x1fc4a3=a38_0x5ef071,_0x312376={};_0x312376[_0x1fc4a3(0x1c1)]=_0x1fc4a3(0x1a6),_0x312376[_0x1fc4a3(0x1b2)]=_0x1fc4a3(0x1c8);const _0x3ddddf=_0x312376;if(global[_0x1fc4a3(0x1f3)])try{const details={'url':await _0x22bfea.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x22bfea,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x22bfea,scripts.getResults);},{...details})();return res;}catch{return logger[_0x1fc4a3(0x1fa)](_0x3ddddf['DQxPa']),[];}else return logger[_0x1fc4a3(0x1ab)](_0x3ddddf[_0x1fc4a3(0x1b2)]),[];},exports['performScan']=async(_0x2cfd71,_0x4d3870='',_0x218da0={})=>{const _0x4ec0c7=a38_0x5ef071;logger[_0x4ec0c7(0x1a5)]('Performing\x20scan\x20with\x20method:\x20'+_0x4d3870+_0x4ec0c7(0x204)+_0x2cfd71);const _0x527e5e={'url':await _0x2cfd71[_0x4ec0c7(0x1a8)](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x4ec0c7(0x18c)]?.['id']};if(global[_0x4ec0c7(0x1f3)])return await PerformanceTester[_0x4ec0c7(0x1dd)](PerformanceA11yEvents[_0x4ec0c7(0x1b0)],async()=>{const _0x183675=_0x4ec0c7,_0x1a48bc={};_0x1a48bc[_0x183675(0x1fd)]=_0x4d3870;const _0x2001a3=_0x1a48bc;_0x218da0&&_0x218da0[_0x183675(0x1d4)]&&(_0x2001a3[_0x183675(0x1d4)]=_0x218da0[_0x183675(0x1d4)]);const _0x276b53=await exports[_0x183675(0x1b1)](_0x2cfd71,scripts[_0x183675(0x19e)],_0x2001a3);return _0x276b53;},{'command':_0x4d3870,..._0x527e5e})();},exports[a38_0x5ef071(0x20e)]=async _0x3b7b2a=>{const _0x4f4b8f=a38_0x5ef071,_0x4f22e7={};_0x4f22e7[_0x4f4b8f(0x1f5)]=_0x4f4b8f(0x19a),_0x4f22e7[_0x4f4b8f(0x1ce)]=_0x4f4b8f(0x194);const _0x1d5294=_0x4f22e7;if(global[_0x4f4b8f(0x1f3)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3b7b2a,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x3b7b2a,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x4f4b8f(0x1a5)](_0x1d5294[_0x4f4b8f(0x1f5)]),{};}else return logger[_0x4f4b8f(0x1ab)](_0x1d5294[_0x4f4b8f(0x1ce)]),{};},exports[a38_0x5ef071(0x1e6)]=async _0x5537c7=>{const _0x46b0f9=a38_0x5ef071,_0x33740a={'uHIBr':function(_0x538644,_0x327e13){return _0x538644!==_0x327e13;},'ZOICA':_0x46b0f9(0x18e),'kDxqt':_0x46b0f9(0x219),'JvAwI':'playwright-chromium','znkif':'chromium','FyyTW':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','IAvjD':function(_0x577f73,_0x5c8bb1){return _0x577f73(_0x5c8bb1);},'UrDaZ':function(_0x471ff9){return _0x471ff9();},'iAVrX':function(_0x35defa,_0x2fd4cb){return _0x35defa<_0x2fd4cb;},'PAWqc':_0x46b0f9(0x1c0),'QitKa':function(_0x3f29e4,_0x5e2cca){return _0x3f29e4===_0x5e2cca;},'VKbSw':'latest','aXQOK':function(_0x7d93e3,_0x33f057){return _0x7d93e3>_0x33f057;},'wYBpR':_0x46b0f9(0x1dc)};try{if(!_0x33740a[_0x46b0f9(0x1f2)](_0x5537c7[_0x46b0f9(0x1e0)],''))return logger[_0x46b0f9(0x1ab)](_0x33740a[_0x46b0f9(0x1eb)]),![];const _0xb7137b=_0x5537c7[_0x46b0f9(0x1c5)];if(![_0x33740a['kDxqt'],_0x33740a[_0x46b0f9(0x215)],_0x33740a[_0x46b0f9(0x203)]][_0x46b0f9(0x191)](_0xb7137b))return logger[_0x46b0f9(0x1ab)](_0x33740a['FyyTW']),![];const _0x158b17=_0x33740a[_0x46b0f9(0x1fe)](parseInt,_0x5537c7[_0x46b0f9(0x1ee)]);!_0x33740a['UrDaZ'](isBrowserstackInfra)&&(!_0x33740a[_0x46b0f9(0x1bb)](_0x158b17,0x64)&&logger[_0x46b0f9(0x1ab)](_0x33740a[_0x46b0f9(0x217)]));if(!(_0x33740a[_0x46b0f9(0x1a9)](_0x158b17,_0x33740a[_0x46b0f9(0x1ac)])||_0x33740a[_0x46b0f9(0x1c4)](_0x158b17,0x5e)))return logger[_0x46b0f9(0x1ab)](_0x33740a[_0x46b0f9(0x1ca)]),![];}catch(_0x2d2e45){logger[_0x46b0f9(0x1a5)](_0x46b0f9(0x213)+util[_0x46b0f9(0x1ea)](_0x2d2e45));}return!![];},exports[a38_0x5ef071(0x1bf)]=(_0x2baa8b,_0x34b826,_0x5205ab)=>{const _0x25647b=a38_0x5ef071,_0x260f36={'HMbNY':'browserstack.accessibilityOptions','svJKb':function(_0x5e9e79){return _0x5e9e79();},'wSnUn':_0x25647b(0x1d2),'rKlJF':function(_0x17d167,_0x211df8){return _0x17d167===_0x211df8;},'UBjji':_0x25647b(0x219),'WIhLA':function(_0x3420bf,_0x2597ff){return _0x3420bf===_0x2597ff;},'bKmyn':_0x25647b(0x1f8),'lDnGl':function(_0x2ec076,_0x3282f1){return _0x2ec076===_0x3282f1;},'eGGFf':function(_0x50f799,_0x469536){return _0x50f799===_0x469536;},'rYalt':_0x25647b(0x1bd),'JsveE':function(_0x36e649){return _0x36e649();},'eKgcn':function(_0x47f687,_0x5daf07){return _0x47f687>_0x5daf07;},'sdGVE':_0x25647b(0x1c0),'XqRsL':function(_0x231f8d,_0x5707ee){return _0x231f8d===_0x5707ee;},'jZSIB':_0x25647b(0x210),'cKzjx':_0x25647b(0x1dc),'MRdBl':function(_0x49ecc3,_0x59534e){return _0x49ecc3(_0x59534e);},'ozavG':_0x25647b(0x18e),'zdKzd':function(_0x97f509,_0x38091e){return _0x97f509+_0x38091e;}};try{if(_0x260f36['svJKb'](isAccessibilityAutomationSession)){global[_0x25647b(0x1f3)]=!![];!_0x2baa8b[_0x260f36[_0x25647b(0x1e4)]]&&(global['accessibilityPlatform']=![]);!(_0x260f36[_0x25647b(0x1be)](_0x2baa8b[_0x25647b(0x1cc)],_0x260f36[_0x25647b(0x1af)])||_0x260f36[_0x25647b(0x1a2)](_0x2baa8b[_0x25647b(0x1cc)],_0x260f36[_0x25647b(0x1e2)])||_0x260f36['lDnGl'](_0x2baa8b[_0x25647b(0x1c5)],_0x260f36[_0x25647b(0x1af)])||_0x260f36[_0x25647b(0x1cf)](_0x2baa8b['browser'],_0x260f36['bKmyn']))&&(logger[_0x25647b(0x1ab)](_0x260f36[_0x25647b(0x198)]),global[_0x25647b(0x1f3)]=![]);!_0x260f36[_0x25647b(0x1e7)](isBrowserstackInfra)&&(!_0x260f36[_0x25647b(0x20d)](_0x2baa8b['browser_version'],0x64)&&logger['warn'](_0x260f36[_0x25647b(0x1a0)]));!(_0x260f36[_0x25647b(0x190)](_0x2baa8b['browser_version'],_0x260f36[_0x25647b(0x1b3)])||_0x260f36[_0x25647b(0x20d)](_0x2baa8b[_0x25647b(0x1ee)],0x5e))&&(logger['warn'](_0x260f36[_0x25647b(0x19c)]),global[_0x25647b(0x1f3)]=![]);!_0x260f36[_0x25647b(0x1e9)](isUndefined,_0x2baa8b[_0x25647b(0x1e0)])&&(logger[_0x25647b(0x1ab)](_0x260f36[_0x25647b(0x1ec)]),global['accessibilityPlatform']=![]);if(!global[_0x25647b(0x1f3)]){_0x2baa8b[_0x260f36[_0x25647b(0x1e4)]]=![],Object[_0x25647b(0x216)](_0x2baa8b)[_0x25647b(0x208)](_0x58b9ab=>{const _0x368ade=_0x25647b;_0x58b9ab[_0x368ade(0x1a7)](_0x260f36[_0x368ade(0x1a4)])&&delete _0x2baa8b[_0x58b9ab];});const _0x3d2cfa=_0x260f36[_0x25647b(0x196)](_0x34b826,_0x260f36['MRdBl'](encodeURIComponent,JSON['stringify'](_0x2baa8b)));_0x5205ab&&(_0x5205ab[_0x25647b(0x18c)][_0x25647b(0x200)][_0x25647b(0x1cb)][_0x25647b(0x1b7)][_0x25647b(0x1b6)][_0x25647b(0x19b)]=_0x3d2cfa,_0x5205ab['workerInfo'][_0x25647b(0x1cb)][_0x25647b(0x1b7)][_0x25647b(0x1b6)]['wsEndpoint']=_0x3d2cfa);}}else global[_0x25647b(0x1f3)]=![];}catch(_0x328a37){logger[_0x25647b(0x1a5)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x25647b(0x1ea)](_0x328a37));}};
|
|
1
|
+
const a38_0x45181b=a38_0xa6f4;function a38_0xb71f(){const _0x266546=['../../helpers/helper','../utils/constants','latest','WebDriver','includeIssueType','Cgzoi','executeScript','accessibilityOptions.scannerVersion','error','oTRKk','chrome','vvjpF','__workerDetails','replace','scannerProcessingTimeout','cTJxC','getAccessibilityResults','TmChi','needsReview','parameters','connectOptions','testInfo','use','wcagVersion','stringify','accessibilityOptions.scannerProcessingTimeout','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','jKYkM','../../helpers/accessibility-automation/helper','ObrYJ','scannerVersion','axfvN','\x20page:\x20','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','command','performScan','../../helpers/logger','body','kdhfR','vCdGP','PKxbe','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','name','keys','bestPractice','kKRrf','][\x20SDK-AUTOMATION\x20]\x20','../../helpers/accessibility-automation/scripts','fyJfx','VGhiI','processAccessibilityCaps','forEach','nTpGF','tuJol','No\x20accessibility\x20results\x20were\x20found.','vGWPj','format','ebNxn','bstackSdkArgs','No\x20summaryResults\x20found.','umSJG','EHvtV','browserName','ymVpd','oIfRu','currentTest','AFNgR','qVGgT','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','bIodd','accessibilityOptions','startsWith','kiEPB','browser_version','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','winstonLogger','silly','browser','(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','accessibilityPlatform','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','msnro','constructor','PERFORM_SCAN','414124pANuri','browserStackEvaluate','project','setAccessibilityCapabilities','sWamA','VXvuJ','warn','SFYmW','qJgSM','env','deviceName','measureWrapper','includePartOfPageScope','kelkC','find','WTkCW','222265cizFHw','hMIvs','string','browserstack.accessibilityOptions','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\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','toISOString','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','3213712IrESkR','MQwgh','yaNod','14888sVIlKa','wsEndpoint','118248SAlEPK','2679900DYtCKO','dUHgH','VdDKF','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','AkVgL','gydiS','evaluate','McGyx','JIDWI','12gelJqy','Zmzxw','BOKOF','playwright-chromium','debug','795361XjdMQp'];a38_0xb71f=function(){return _0x266546;};return a38_0xb71f();}(function(_0x419cd1,_0x1da95e){const _0x503547=a38_0xa6f4,_0x33632d=_0x419cd1();while(!![]){try{const _0x2a8d33=-parseInt(_0x503547(0x150))/0x1+parseInt(_0x503547(0xea))/0x2+parseInt(_0x503547(0xec))/0x3+-parseInt(_0x503547(0xf6))/0x4*(parseInt(_0x503547(0xdf))/0x5)+parseInt(_0x503547(0xed))/0x6+-parseInt(_0x503547(0xfb))/0x7+parseInt(_0x503547(0xe7))/0x8;if(_0x2a8d33===_0x1da95e)break;else _0x33632d['push'](_0x33632d['shift']());}catch(_0x278355){_0x33632d['push'](_0x33632d['shift']());}}}(a38_0xb71f,0x39286));function a38_0xa6f4(_0x227257,_0x8208a1){const _0xb71f9d=a38_0xb71f();return a38_0xa6f4=function(_0xa6f498,_0x168ae4){_0xa6f498=_0xa6f498-0xd5;let _0x591ccf=_0xb71f9d[_0xa6f498];return _0x591ccf;},a38_0xa6f4(_0x227257,_0x8208a1);}const util=require('util'),logger=require(a38_0x45181b(0x120))[a38_0x45181b(0x147)],{automationLogger}=require('../../helpers/logger'),{isAccessibilityAutomationSession}=require(a38_0x45181b(0x118)),{isUndefined,isBrowserstackInfra}=require(a38_0x45181b(0xfc)),scripts=require(a38_0x45181b(0x12b)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),{AUTOMATION_LOG_COMMANDS}=require(a38_0x45181b(0xfd));exports[a38_0x45181b(0x151)]=async(_0x4a2ae1,_0x1797bd,_0x181eb5={})=>{const _0x5ddcaf=a38_0x45181b,_0x319017={};_0x319017[_0x5ddcaf(0x10b)]='bstackSdkArgs',_0x319017[_0x5ddcaf(0x129)]=function(_0x5a9c12,_0x58c2c2){return _0x5a9c12===_0x58c2c2;},_0x319017[_0x5ddcaf(0x138)]=_0x5ddcaf(0xe1);const _0x1a91af=_0x319017,_0x530785=await _0x4a2ae1[_0x5ddcaf(0xf3)](_0x5ddcaf(0xe4)+_0x1797bd[_0x5ddcaf(0x109)](/arguments/g,_0x1a91af[_0x5ddcaf(0x10b)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x5ddcaf(0x114)](_0x181eb5)+')');try{if(_0x1797bd&&_0x1a91af['kKRrf'](typeof _0x1797bd,_0x1a91af[_0x5ddcaf(0x138)])){const _0x5b9d39=AUTOMATION_LOG_COMMANDS[_0x5ddcaf(0xdd)](_0x2455c8=>_0x1797bd['includes'](_0x2455c8));if(_0x5b9d39){const _0x276307={};_0x276307[_0x5ddcaf(0x11e)]=_0x5b9d39,_0x276307[_0x5ddcaf(0x10f)]=[_0x181eb5];const _0x4cfc0d={};_0x4cfc0d[_0x5ddcaf(0x121)]=_0x530785;const _0x5ccb5b={};_0x5ccb5b['request']=_0x276307,_0x5ccb5b['response']=_0x4cfc0d,automationLogger[_0x5ddcaf(0x148)]('['+new Date()[_0x5ddcaf(0xe5)]()+_0x5ddcaf(0x12a)+JSON['stringify'](_0x5ccb5b));}}}catch(_0x204795){logger[_0x5ddcaf(0xfa)](_0x5ddcaf(0xe3)+_0x204795['message']);}return _0x530785;},exports['browserStackExecuteDriver']=async(_0x1502b6,_0x277797,_0x564f86={})=>{const _0x5dec72=a38_0x45181b,_0x2a31a2={};_0x2a31a2['TmChi']=function(_0x2fac9a,_0x225b75){return _0x2fac9a===_0x225b75;},_0x2a31a2[_0x5dec72(0x11b)]=_0x5dec72(0xff),_0x2a31a2[_0x5dec72(0xf4)]='Playwright',_0x2a31a2['nTpGF']=_0x5dec72(0x136);const _0x3fcfab=_0x2a31a2;if(_0x3fcfab[_0x5dec72(0x10d)](_0x1502b6[_0x5dec72(0x14e)][_0x5dec72(0x126)],_0x3fcfab[_0x5dec72(0x11b)]))return await _0x1502b6['executeAsyncScript'](_0x277797,_0x564f86);else{if(_0x3fcfab[_0x5dec72(0x10d)](_0x1502b6[_0x5dec72(0x14e)][_0x5dec72(0x126)],_0x3fcfab[_0x5dec72(0xf4)]))return await _0x1502b6[_0x5dec72(0x102)](_0x5dec72(0x14a)+_0x277797[_0x5dec72(0x109)](/arguments/g,_0x3fcfab[_0x5dec72(0x130)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON['stringify'](_0x564f86)+')');}},exports[a38_0x45181b(0x153)]=async _0x573f6c=>{const _0x48ddf2=a38_0x45181b,_0x551c4d={};_0x551c4d['vGWPj']='accessibilityOptions.wcagVersion',_0x551c4d['qJgSM']=_0x48ddf2(0x115),_0x551c4d[_0x48ddf2(0x14d)]='accessibilityOptions.includeIssueType.bestPractice',_0x551c4d['Cgzoi']='accessibilityOptions.includeIssueType.needsReview',_0x551c4d['sVnYm']='accessibilityOptions.authToken',_0x551c4d[_0x48ddf2(0xf2)]=_0x48ddf2(0x103);const _0x1710d2=_0x551c4d;_0x573f6c[_0x48ddf2(0x142)]&&(_0x573f6c[_0x48ddf2(0x142)][_0x48ddf2(0x113)]&&(_0x573f6c[_0x1710d2[_0x48ddf2(0x133)]]=_0x573f6c[_0x48ddf2(0x142)][_0x48ddf2(0x113)]),_0x573f6c['accessibilityOptions'][_0x48ddf2(0x10a)]&&(_0x573f6c[_0x1710d2[_0x48ddf2(0xd7)]]=_0x573f6c['accessibilityOptions'][_0x48ddf2(0x10a)]),_0x573f6c[_0x48ddf2(0x142)][_0x48ddf2(0x100)]&&(_0x573f6c[_0x1710d2[_0x48ddf2(0x14d)]]=_0x573f6c[_0x48ddf2(0x142)][_0x48ddf2(0x100)][_0x48ddf2(0x128)],_0x573f6c[_0x1710d2[_0x48ddf2(0x101)]]=_0x573f6c['accessibilityOptions'][_0x48ddf2(0x100)][_0x48ddf2(0x10e)]));const _0xb60b27=JSON['parse'](process[_0x48ddf2(0xd8)][_0x48ddf2(0x14c)])[_0x48ddf2(0x11a)];_0x573f6c[_0x1710d2['sVnYm']]=process['env']['BS_A11Y_JWT'],_0x573f6c[_0x1710d2[_0x48ddf2(0xf2)]]=_0xb60b27,delete _0x573f6c['accessibilityOptions'];},exports[a38_0x45181b(0x10c)]=async _0x27518f=>{const _0x26ebe9=a38_0x45181b,_0x1ec055={};_0x1ec055[_0x26ebe9(0x141)]=_0x26ebe9(0x132),_0x1ec055['oIfRu']=_0x26ebe9(0xe6);const _0x510985=_0x1ec055;if(global[_0x26ebe9(0x14b)])try{const details={'url':await _0x27518f.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x27518f,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x27518f,scripts.getResults);},{...details})();return res;}catch{return logger[_0x26ebe9(0x104)](_0x510985['bIodd']),[];}else return logger['warn'](_0x510985[_0x26ebe9(0x13c)]),[];},exports[a38_0x45181b(0x11f)]=async(_0x5b3870,_0x4f594f='',_0x1e15e4={})=>{const _0x17ccd5=a38_0x45181b;logger['debug']('Performing\x20scan\x20with\x20method:\x20'+_0x4f594f+_0x17ccd5(0x11c)+_0x5b3870);const _0x10f6c5={'url':await _0x5b3870['url'](),'testhub_btcer_uuid':global[_0x17ccd5(0x108)]?.[_0x17ccd5(0x13d)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester[_0x17ccd5(0xda)](PerformanceA11yEvents[_0x17ccd5(0x14f)],async()=>{const _0x3a42b4=_0x17ccd5,_0x26e071={};_0x26e071['command']=_0x4f594f;const _0x8cd97e=_0x26e071;_0x1e15e4&&_0x1e15e4[_0x3a42b4(0xdb)]&&(_0x8cd97e[_0x3a42b4(0xdb)]=_0x1e15e4['includePartOfPageScope']);const _0x179d88=await exports[_0x3a42b4(0x151)](_0x5b3870,scripts[_0x3a42b4(0x11f)],_0x8cd97e);return _0x179d88;},{'command':_0x4f594f,..._0x10f6c5})();},exports['getAccessibilityResultsSummary']=async _0x58341a=>{const _0x34700c=a38_0x45181b,_0x568f15={};_0x568f15[_0x34700c(0xe0)]=_0x34700c(0x137),_0x568f15[_0x34700c(0xf7)]=_0x34700c(0x140);const _0x439787=_0x568f15;if(global[_0x34700c(0x14b)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x58341a,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x58341a,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x34700c(0xfa)](_0x439787['hMIvs']),{};}else return logger['warn'](_0x439787[_0x34700c(0xf7)]),{};},exports['platformValidation']=async _0x3b033b=>{const _0x383047=a38_0x45181b,_0x29cef9={'KqiJl':function(_0x35efc7,_0x2bc0ab){return _0x35efc7!==_0x2bc0ab;},'vvjpF':_0x383047(0x11d),'VXvuJ':'chrome','sWamA':_0x383047(0xf9),'oTRKk':'chromium','PPnDR':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','BOKOF':function(_0x81637d,_0x54de7f){return _0x81637d(_0x54de7f);},'dUHgH':function(_0x5d8d41){return _0x5d8d41();},'EHvtV':function(_0x174c9d,_0x2c9fb3){return _0x174c9d<_0x2c9fb3;},'WTkCW':_0x383047(0xf0),'PKxbe':function(_0x39671f,_0x1f6f5e){return _0x39671f===_0x1f6f5e;},'VGhiI':_0x383047(0xfe),'MQwgh':function(_0x2dd237,_0x58676c){return _0x2dd237>_0x58676c;},'jKYkM':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x29cef9['KqiJl'](_0x3b033b[_0x383047(0xd9)],''))return logger[_0x383047(0xd5)](_0x29cef9[_0x383047(0x107)]),![];const _0x41e51b=_0x3b033b[_0x383047(0x149)];if(![_0x29cef9[_0x383047(0x155)],_0x29cef9[_0x383047(0x154)],_0x29cef9[_0x383047(0x105)]]['includes'](_0x41e51b))return logger[_0x383047(0xd5)](_0x29cef9['PPnDR']),![];const _0xaab213=_0x29cef9[_0x383047(0xf8)](parseInt,_0x3b033b['browser_version']);!_0x29cef9[_0x383047(0xee)](isBrowserstackInfra)&&(!_0x29cef9[_0x383047(0x139)](_0xaab213,0x64)&&logger[_0x383047(0xd5)](_0x29cef9[_0x383047(0xde)]));if(!(_0x29cef9[_0x383047(0x124)](_0xaab213,_0x29cef9[_0x383047(0x12d)])||_0x29cef9[_0x383047(0xe8)](_0xaab213,0x5e)))return logger[_0x383047(0xd5)](_0x29cef9[_0x383047(0x117)]),![];}catch(_0xb9e55c){logger['debug']('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x383047(0x134)](_0xb9e55c));}return!![];},exports[a38_0x45181b(0x12e)]=(_0x37152d,_0x2271c5,_0x455ee4)=>{const _0x4bbbf6=a38_0x45181b,_0x29bd56={'AFNgR':_0x4bbbf6(0xe2),'ymVpd':function(_0x29e5d0){return _0x29e5d0();},'yaNod':'browserstack.accessibility','SFYmW':function(_0x10a24f,_0x402db3){return _0x10a24f===_0x402db3;},'VdDKF':_0x4bbbf6(0x106),'ObrYJ':_0x4bbbf6(0xf9),'JIDWI':function(_0x6fd1c6,_0x20bbe4){return _0x6fd1c6===_0x20bbe4;},'kdhfR':_0x4bbbf6(0x116),'AkVgL':function(_0x1a948e,_0x13d664){return _0x1a948e>_0x13d664;},'kelkC':_0x4bbbf6(0xf0),'tuJol':function(_0x159ce6,_0x5d665f){return _0x159ce6===_0x5d665f;},'DTGCc':'latest','ebNxn':_0x4bbbf6(0x125),'kiEPB':function(_0x5c4429,_0x348426){return _0x5c4429(_0x348426);},'vCdGP':_0x4bbbf6(0x11d),'fyJfx':function(_0xc81fbe,_0x8f1fd2){return _0xc81fbe+_0x8f1fd2;},'qVGgT':function(_0x1e9abb,_0x3d2771){return _0x1e9abb(_0x3d2771);}};try{if(_0x29bd56[_0x4bbbf6(0x13b)](isAccessibilityAutomationSession)){global[_0x4bbbf6(0x14b)]=!![];!_0x37152d[_0x29bd56[_0x4bbbf6(0xe9)]]&&(global[_0x4bbbf6(0x14b)]=![]);!(_0x29bd56['SFYmW'](_0x37152d[_0x4bbbf6(0x13a)],_0x29bd56[_0x4bbbf6(0xef)])||_0x29bd56[_0x4bbbf6(0xd6)](_0x37152d['browserName'],_0x29bd56[_0x4bbbf6(0x119)])||_0x29bd56[_0x4bbbf6(0xd6)](_0x37152d['browser'],_0x29bd56[_0x4bbbf6(0xef)])||_0x29bd56[_0x4bbbf6(0xf5)](_0x37152d[_0x4bbbf6(0x149)],_0x29bd56[_0x4bbbf6(0x119)]))&&(logger[_0x4bbbf6(0xd5)](_0x29bd56[_0x4bbbf6(0x122)]),global[_0x4bbbf6(0x14b)]=![]);!_0x29bd56[_0x4bbbf6(0x13b)](isBrowserstackInfra)&&(!_0x29bd56[_0x4bbbf6(0xf1)](_0x37152d['browser_version'],0x64)&&logger['warn'](_0x29bd56[_0x4bbbf6(0xdc)]));!(_0x29bd56[_0x4bbbf6(0x131)](_0x37152d[_0x4bbbf6(0x145)],_0x29bd56['DTGCc'])||_0x29bd56['AkVgL'](_0x37152d[_0x4bbbf6(0x145)],0x5e))&&(logger[_0x4bbbf6(0xd5)](_0x29bd56[_0x4bbbf6(0x135)]),global[_0x4bbbf6(0x14b)]=![]);!_0x29bd56[_0x4bbbf6(0x144)](isUndefined,_0x37152d[_0x4bbbf6(0xd9)])&&(logger[_0x4bbbf6(0xd5)](_0x29bd56[_0x4bbbf6(0x123)]),global[_0x4bbbf6(0x14b)]=![]);if(!global[_0x4bbbf6(0x14b)]){_0x37152d[_0x29bd56[_0x4bbbf6(0xe9)]]=![],Object[_0x4bbbf6(0x127)](_0x37152d)[_0x4bbbf6(0x12f)](_0xf9f80b=>{const _0x2e5d97=_0x4bbbf6;_0xf9f80b[_0x2e5d97(0x143)](_0x29bd56[_0x2e5d97(0x13e)])&&delete _0x37152d[_0xf9f80b];});const _0x246392=_0x29bd56[_0x4bbbf6(0x12c)](_0x2271c5,_0x29bd56[_0x4bbbf6(0x13f)](encodeURIComponent,JSON[_0x4bbbf6(0x114)](_0x37152d)));_0x455ee4&&(_0x455ee4[_0x4bbbf6(0x13d)][_0x4bbbf6(0x111)][_0x4bbbf6(0x152)][_0x4bbbf6(0x112)][_0x4bbbf6(0x110)][_0x4bbbf6(0xeb)]=_0x246392,_0x455ee4['workerInfo'][_0x4bbbf6(0x152)][_0x4bbbf6(0x112)][_0x4bbbf6(0x110)][_0x4bbbf6(0xeb)]=_0x246392);}}else global[_0x4bbbf6(0x14b)]=![];}catch(_0x1d1f5b){logger[_0x4bbbf6(0xfa)](_0x4bbbf6(0x146)+util[_0x4bbbf6(0x134)](_0x1d1f5b));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a39_0x217b17=a39_0x2930;(function(_0xddd767,_0x1248fc){const _0x365fa6=a39_0x2930,_0x50ed2c=_0xddd767();while(!![]){try{const _0x2e1672=-parseInt(_0x365fa6(0x1d7))/0x1+parseInt(_0x365fa6(0x177))/0x2*(-parseInt(_0x365fa6(0x1f5))/0x3)+parseInt(_0x365fa6(0x149))/0x4+parseInt(_0x365fa6(0x1b3))/0x5+-parseInt(_0x365fa6(0x15e))/0x6+parseInt(_0x365fa6(0x179))/0x7+-parseInt(_0x365fa6(0x17b))/0x8;if(_0x2e1672===_0x1248fc)break;else _0x50ed2c['push'](_0x50ed2c['shift']());}catch(_0x52b362){_0x50ed2c['push'](_0x50ed2c['shift']());}}}(a39_0x47cc,0xeb39f));function a39_0x2930(_0x21756f,_0x2c5dcc){const _0x47cc28=a39_0x47cc();return a39_0x2930=function(_0x2930b7,_0x5ac5a9){_0x2930b7=_0x2930b7-0x12d;let _0x498a16=_0x47cc28[_0x2930b7];return _0x498a16;},a39_0x2930(_0x21756f,_0x2c5dcc);}function a39_0x47cc(){const _0x5db4b6=['length','unlinkSync','filterBrowserstackArgs','requireConfigLoaderYarnPnP','push','--config','ylZWw','existsSync','../utils/constants','SIumO','child_process','UFJgb','6535695UgGafw','isTypescriptProject','TFCZv','trace_','BROWSERSTACK_RERUN_TESTS','wHytQ','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','getConfig','finalExecution','playwright','W_OK','get','accessSync','VogUZ','logLevel','initialize','getInstance','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','uwUwG','path','stop','accessibility','../../helpers/test-observability/constants','getConfigPath','PACKAGE_TYPE','DUTxo','../v2/browserstackCLI','dirname','stringify','validateRerunTestList','BGcfh','pmUNL','--disable-test-observability','cjioV','ofFJn','resolvedConfigFile','1449544VwUUrT','hSTjd','../../helpers/testhub/testhubHandler','isFalse','assign','nAwsZ','accessibilityOptions','rsgRQ','wPvSN','isCLIEnabled','skipSessionStatus','writeFileSync','exitCode','slice','Error\x20in\x20deleting\x20playwright\x20results','dajrS','isUndefined','SDK_PRE_INITIALIZE','BROWSERSTACK_TEST_OBSERVABILITY','close','yLGxO','launchBuild','OGFdB','../v2/cliUtils','startsWith','isYarnPnP','sPalE','MODULE','../../helpers/logger','mRgOY','2247vbMudK','npx','SDK_SETUP','bjvIw','indexOf','CWXRi','Playwright\x20process\x20exited\x20with\x20code\x20','../../helpers/accessibility-automation/helper','VDzUw','serializeToYamlString','Error\x20in\x20getting\x20funnel\x20data\x20results','pJSOF','requirePWModule','PLAYWRIGHT','bXWtd','tKPgv','fSpSr','setFrameworkDetail','uxYKI','testObservability','../../helpers/BrowserStackSetup','VuUiC','jlZBT','getProxyUrl','RedmG','cHbqk','test','resolve','debug','nZuWD','BBSfz','5264240YHXCYh','browserstackAutomation','concat','isRunning','win32','../../helpers/performance/performance-tester','aaueB','../../helpers/test-observability/utils','browserstackSetupConfig.json','yarn','splice','Proxy\x20url\x20:\x20','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','eMJWM','join','inherit','start','readdirSync','has','nestedKeyValue','automation','1995114SHioPf','.browserstack','parse','TgIIW','cliConfig','myRWA','getPackageType','Deleting\x20','reportDotBrowserStackFolderNotAccessibleIssue','oJyhZ','testContextOptions','measureWrapper','../../helpers/performance/constants','readFileSync','QWJKd','INTERNALLY_USED_ENV_VARS','config','errorMessage','platform','lmlkG','umnFa','exports','BROWSERSTACK_PW_CONFIG_DIR','BROWSERSTACK_RERUN','--config=','2482lDRree','HPukF','7979986vmIkPS','split','705104FyNpuC','MiNHB','EVENTS','homedir','SDK_CLEANUP','BROWSERSTACK_SETUP_CONFIG_PATH','cwd','sCLHW','filter','JbRwi','Error\x20in\x20closing\x20playwright','./reporter/pwUtils','env','SDK_POST_INITIALIZE','FhJIN','wiDPY','error','Updated\x20config\x20file\x20name\x20to\x20-\x20','./reporter/test-details','./accessibility-helper','reportConflictingEnvVarIssue','getNoProxy','winstonLogger','dlBob','Ylfvc','BROWSERSTACK_TEST_ACCESSIBILITY_YML','playwright-browserstack-sdk.config.js','clearTempPWConfig','zIwQd','klXui','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','ecdyX','false','ECtIe','isTrue','pw_result.json','R_OK','end','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','setBrowserstackConfig','CFzXy','forEach','../../helpers/utilities','USER_CONFIG_DETAILS_PATH'];a39_0x47cc=function(){return _0x5db4b6;};return a39_0x47cc();}const fs=require('fs'),path=require('path'),{spawn}=require(a39_0x217b17(0x1b1)),{format}=require('util'),logger=require(a39_0x217b17(0x1f3))[a39_0x217b17(0x191)],{default:BrowserStackSetup}=require(a39_0x217b17(0x13e)),helper=require('../../helpers/helper'),utilities=require(a39_0x217b17(0x1a5)),constants=require(a39_0x217b17(0x1af)),{FRAMEWORKS}=require(a39_0x217b17(0x1c9)),{getConfigLoaderPath}=require(a39_0x217b17(0x186)),{checkAccessibilityPlatformConfig}=require(a39_0x217b17(0x131)),{setAccessibilityCapabilities}=require(a39_0x217b17(0x18e)),{printBuildLink}=require(a39_0x217b17(0x150)),TestDetails=require(a39_0x217b17(0x18d)),TestHubHandler=require(a39_0x217b17(0x1d9)),PerformanceTester=require(a39_0x217b17(0x14e)),BrowserstackCLI=require(a39_0x217b17(0x1cd)),PerformanceEvents=require(a39_0x217b17(0x16a))[a39_0x217b17(0x17d)],CLIUtils=require(a39_0x217b17(0x1ee)),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require('../utils/clientTroubleshootingService'),getUserPlaywrightConfig=async(_0x38fbe9,_0x5e9725)=>{const _0xbdba31=a39_0x217b17,_0x197676={'SIumO':function(_0x1f8cb7){return _0x1f8cb7();},'CWXRi':function(_0x562bcc,_0xfc11cb){return _0x562bcc(_0xfc11cb);},'ofFJn':_0xbdba31(0x1d6),'VDzUw':_0xbdba31(0x176)},_0x816fc3=!helper[_0xbdba31(0x1e7)](_0x38fbe9['config']),_0x583e58=_0x816fc3?path[_0xbdba31(0x145)](process[_0xbdba31(0x181)](),_0x38fbe9['config']):process[_0xbdba31(0x181)](),{resolveConfigFile:_0x15b90d,resolveConfigLocation:_0x572623}=helper[_0xbdba31(0x1f0)]()?helper[_0xbdba31(0x1aa)](..._0x197676[_0xbdba31(0x1b0)](getConfigLoaderPath)):helper[_0xbdba31(0x136)]['apply'](null,_0x197676[_0xbdba31(0x1b0)](getConfigLoaderPath)),_0x575111=_0x15b90d?_0x197676[_0xbdba31(0x12f)](_0x15b90d,_0x583e58):helper[_0xbdba31(0x15c)](_0x197676[_0xbdba31(0x12f)](_0x572623,_0x583e58),[_0x197676[_0xbdba31(0x1d5)]]),_0x335b37={};if(_0x816fc3){const _0x3ec3c1=_0x5e9725['findIndex'](_0x7a52f2=>_0x7a52f2===_0xbdba31(0x1ac)||_0x7a52f2==='-c'||_0x7a52f2[_0xbdba31(0x1ef)]('--config='));_0x5e9725[_0xbdba31(0x153)](_0x3ec3c1,_0x5e9725[_0x3ec3c1]['startsWith'](_0x197676[_0xbdba31(0x132)])?0x1:0x2);}const _0x35a829={};return _0x35a829[_0xbdba31(0x1c6)]=_0x575111,_0x35a829[_0xbdba31(0x16e)]=_0x335b37,_0x35a829;},handleO11yRerun=_0x5b7059=>{const _0x3e4c9f=a39_0x217b17,_0x20ca27={};_0x20ca27[_0x3e4c9f(0x16c)]='--grep';const _0x16b03d=_0x20ca27,_0x3f16c2=helper[_0x3e4c9f(0x19d)](process[_0x3e4c9f(0x187)][_0x3e4c9f(0x175)]);if(_0x3f16c2){const _0x45ffc9=process[_0x3e4c9f(0x187)][_0x3e4c9f(0x1b7)],_0x4d2ee2=[];if(helper[_0x3e4c9f(0x1d0)](_0x45ffc9)&&!helper[_0x3e4c9f(0x1e7)](_0x45ffc9)){_0x45ffc9[_0x3e4c9f(0x17a)](',')['map'](_0x1d6112=>{const _0x4440c4=_0x3e4c9f;_0x4d2ee2[_0x4440c4(0x1ab)]('('+_0x1d6112['trim']()+')');});const _0xfd284f='^'+_0x4d2ee2['join']('|')+'$';_0x5b7059[_0x3e4c9f(0x1ab)](_0x16b03d[_0x3e4c9f(0x16c)],_0xfd284f);}}},spawnOriginalProcess=_0x4cb51f=>{const _0x9758fc=a39_0x217b17,_0x3b09ae={'hSTjd':function(_0x490395,_0x2f49a4,_0x262c82,_0x78f0e9){return _0x490395(_0x2f49a4,_0x262c82,_0x78f0e9);},'rsgRQ':_0x9758fc(0x152),'BGcfh':_0x9758fc(0x1f6),'myRWA':_0x9758fc(0x1bc),'uxYKI':function(_0x5f18dc,_0x210817){return _0x5f18dc===_0x210817;},'oJyhZ':_0x9758fc(0x14d),'bXWtd':_0x9758fc(0x158)};_0x3b09ae[_0x9758fc(0x1d8)](spawn,helper['isYarnPnP']()?_0x3b09ae[_0x9758fc(0x1de)]:_0x3b09ae[_0x9758fc(0x1d1)],[_0x3b09ae[_0x9758fc(0x163)],..._0x4cb51f[_0x9758fc(0x1e4)](0x1)],{'shell':_0x3b09ae[_0x9758fc(0x13c)](process['platform'],_0x3b09ae[_0x9758fc(0x167)]),'stdio':_0x3b09ae[_0x9758fc(0x138)],'cwd':process[_0x9758fc(0x181)]()});},isTestCommand=(_0x429ab7,_0x176d22)=>{const _0x224a57=a39_0x217b17,_0x4cde49={};_0x4cde49['yLGxO']=function(_0x33422f,_0x1758d0){return _0x33422f>_0x1758d0;},_0x4cde49[_0x224a57(0x189)]=function(_0x201978,_0x494bba){return _0x201978===_0x494bba;},_0x4cde49[_0x224a57(0x1c5)]=_0x224a57(0x144);const _0x11be51=_0x4cde49;if(_0x11be51[_0x224a57(0x1eb)](_0x176d22[_0x224a57(0x1a7)],0x1)&&_0x11be51['FhJIN'](_0x176d22[0x1],_0x11be51[_0x224a57(0x1c5)]))return!![];return![];};async function run(_0x4bc19d,_0x51944e,_0xc2feb0){const _0x53c28b=a39_0x217b17,_0x3848a8={'umnFa':_0x53c28b(0x15f),'TgIIW':_0x53c28b(0x19e),'TFCZv':function(_0x4d9944,_0x590a58){return _0x4d9944+_0x590a58;},'CFzXy':_0x53c28b(0x134),'pJSOF':function(_0x174293){return _0x174293();},'dajrS':function(_0x2d0f92){return _0x2d0f92();},'VogUZ':_0x53c28b(0x185),'wHytQ':function(_0x1f7f70,_0x1b3e3a){return _0x1f7f70(_0x1b3e3a);},'cHbqk':'BrowserStack\x20config\x20file\x20not\x20found.','klXui':function(_0x3d24aa,_0x475bfe){return _0x3d24aa<_0x475bfe;},'DUTxo':function(_0x1315dc,_0x36c717){return _0x1315dc===_0x36c717;},'aaueB':_0x53c28b(0x19b),'cYIEN':_0x53c28b(0x1d3),'sPalE':function(_0x55557d,_0x389db4){return _0x55557d>=_0x389db4;},'wiDPY':_0x53c28b(0x15d),'bjvIw':function(_0x3539b5,_0x4ea0af){return _0x3539b5!=_0x4ea0af;},'mRgOY':function(_0x210fa4,_0x28f8f5,_0x331239){return _0x210fa4(_0x28f8f5,_0x331239);},'eMJWM':function(_0x634f0c,_0x5f0810){return _0x634f0c(_0x5f0810);},'jlZBT':'true','ecdyX':function(_0x3c4d11,_0x3fa598){return _0x3c4d11(_0x3fa598);},'sCLHW':_0x53c28b(0x151),'UFJgb':function(_0x4da515,_0x36fd3d){return _0x4da515===_0x36fd3d;},'zIwQd':'playwright-browserstack-sdk.config.cjs','HPukF':_0x53c28b(0x195),'vGpgm':function(_0x197411,_0x5a2c6b){return _0x197411-_0x5a2c6b;},'FovlR':_0x53c28b(0x18c),'MiNHB':function(_0x502d08,_0x29bab6){return _0x502d08>_0x29bab6;},'nAwsZ':function(_0x52635f,_0x110c41){return _0x52635f+_0x110c41;},'wPvSN':function(_0x143bd1,_0x4b4bdd,_0x1ff734,_0x2ecfce){return _0x143bd1(_0x4b4bdd,_0x1ff734,_0x2ecfce);},'BBSfz':'yarn','ECtIe':_0x53c28b(0x1f6),'VuUiC':_0x53c28b(0x1bc),'JbRwi':_0x53c28b(0x144),'wkwgB':_0x53c28b(0x1ac),'nZuWD':_0x53c28b(0x14d),'tKPgv':function(_0x3b0deb,_0x366b1a){return _0x3b0deb===_0x366b1a;},'dlBob':_0x53c28b(0x158),'Ylfvc':_0x53c28b(0x1ea),'RedmG':function(_0x4ddf89,_0x5212a9){return _0x4ddf89|_0x5212a9;},'lmlkG':function(_0x50d1b2,_0x1a4aee){return _0x50d1b2+_0x1a4aee;},'fSpSr':_0x53c28b(0x199),'cjioV':_0x53c28b(0x1e5),'OGFdB':function(_0xbfd919,_0x455ebd,_0x297726){return _0xbfd919(_0x455ebd,_0x297726);}};try{const _0x358dcc=path[_0x53c28b(0x157)](helper['homedir'](),_0x3848a8[_0x53c28b(0x172)]);try{fs[_0x53c28b(0x1bf)](_0x358dcc,_0x3848a8[_0x53c28b(0x142)](fs['constants'][_0x53c28b(0x19f)],fs['constants'][_0x53c28b(0x1bd)]));}catch(_0x372ec2){ClientTroubleShootingService[_0x53c28b(0x166)]();}}catch(_0x481ac7){logger[_0x53c28b(0x146)](_0x3848a8[_0x53c28b(0x171)](_0x3848a8[_0x53c28b(0x13a)],_0x481ac7));}try{const _0x4062c0=path['join'](helper[_0x53c28b(0x17e)](),_0x3848a8[_0x53c28b(0x172)],_0x3848a8['TgIIW']);fs[_0x53c28b(0x1ae)](_0x4062c0)&&fs[_0x53c28b(0x1a8)](_0x4062c0);}catch(_0x4d0e41){logger[_0x53c28b(0x146)](_0x3848a8[_0x53c28b(0x1b5)](_0x3848a8[_0x53c28b(0x1d4)],_0x4d0e41));}if(!_0x3848a8[_0x53c28b(0x1ed)](isTestCommand,_0x4bc19d,_0x51944e)){_0x3848a8[_0x53c28b(0x1b8)](spawnOriginalProcess,_0x51944e);return;}await PerformanceTester[_0x53c28b(0x169)](PerformanceEvents[_0x53c28b(0x1e8)],async()=>{const _0x276f28=_0x53c28b,_0x499f49={'pmUNL':function(_0x5dca37,_0xf1de7d){const _0x391389=a39_0x2930;return _0x3848a8[_0x391389(0x1b8)](_0x5dca37,_0xf1de7d);}};if(!_0xc2feb0[_0x276f28(0x16e)]){logger[_0x276f28(0x18b)](_0x3848a8[_0x276f28(0x143)]);return;}await _0xc2feb0[_0x276f28(0x1c2)](_0x4bc19d),CLIUtils[_0x276f28(0x13b)](FRAMEWORKS[_0x276f28(0x137)],FRAMEWORKS[_0x276f28(0x137)]),BrowserstackCLI[_0x276f28(0x1c3)]()[_0x276f28(0x1a2)](_0xc2feb0[_0x276f28(0x16e)],_0xc2feb0['configPath'],_0xc2feb0[_0x276f28(0x162)]),await BrowserstackCLI[_0x276f28(0x1c3)]()['bootstrap']();for(var _0x1e1bdc=0x0;_0x3848a8[_0x276f28(0x198)](_0x1e1bdc,constants[_0x276f28(0x16d)]['length']);_0x1e1bdc++){var _0xd3fbfd=constants[_0x276f28(0x16d)][_0x1e1bdc];process['env'][_0xd3fbfd]&&await ClientTroubleShootingService[_0x276f28(0x18f)](_0xd3fbfd);}const _0x318408=BrowserstackCLI[_0x276f28(0x1c3)]()[_0x276f28(0x1ba)]();!helper['isFalse'](_0x318408[_0x276f28(0x14a)])&&(process[_0x276f28(0x187)]['BROWSERSTACK_AUTOMATION']=!![]);_0x3848a8[_0x276f28(0x1cc)](_0x318408[_0x276f28(0x14a)],![])&&(process[_0x276f28(0x187)]['BROWSERSTACK_AUTOMATION']=_0x3848a8[_0x276f28(0x14f)],_0x51944e=_0x51944e['filter'](_0x40abdb=>_0x40abdb!=='--disable-browserstack-automation'));const _0x1954e0=_0x51944e[_0x276f28(0x12e)](_0x3848a8['cYIEN']);(_0x3848a8[_0x276f28(0x1f1)](_0x1954e0,0x0)||_0x3848a8[_0x276f28(0x1cc)](_0x318408[_0x276f28(0x13d)],![]))&&(process[_0x276f28(0x187)][_0x276f28(0x1e9)]=_0x3848a8[_0x276f28(0x14f)],_0x51944e=_0x51944e[_0x276f28(0x183)](_0x2d3956=>_0x2d3956!==_0x276f28(0x1d3)));!helper['isUndefined'](_0xc2feb0[_0x276f28(0x162)])&&_0xc2feb0[_0x276f28(0x162)][_0x276f28(0x15b)](_0x3848a8['wiDPY'])&&(process[_0x276f28(0x187)]['BROWSERSTACK_AUTOMATION']=_0xc2feb0[_0x276f28(0x162)][_0x276f28(0x1be)](_0x3848a8[_0x276f28(0x18a)])||!![]);_0x3848a8[_0x276f28(0x12d)](_0xc2feb0[_0x276f28(0x16e)][_0x276f28(0x13d)],null)&&!helper['isTrue'](process[_0x276f28(0x187)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=process['env'][_0x276f28(0x1e9)]||_0xc2feb0[_0x276f28(0x16e)]['testObservability']);const _0x5701de=!helper[_0x276f28(0x1da)](process[_0x276f28(0x187)][_0x276f28(0x1e9)]);_0xc2feb0[_0x276f28(0x16e)][_0x276f28(0x1dd)]&&(process[_0x276f28(0x187)][_0x276f28(0x1a1)]=JSON[_0x276f28(0x1cf)](_0xc2feb0[_0x276f28(0x16e)][_0x276f28(0x1dd)]));let _0x1023cf=![];_0xc2feb0[_0x276f28(0x16e)][_0x276f28(0x1c8)]&&(_0x1023cf=!![],process['env'][_0x276f28(0x194)]=_0xc2feb0[_0x276f28(0x16e)][_0x276f28(0x1c8)]);const _0x252826=_0x51944e[_0x276f28(0x14b)](),_0x2483cd=await _0x3848a8[_0x276f28(0x1f4)](getUserPlaywrightConfig,_0x4bc19d,_0x51944e);if(helper[_0x276f28(0x1e7)](_0x2483cd)){_0x3848a8[_0x276f28(0x156)](spawnOriginalProcess,_0x252826);return;}const _0x4d3697=_0x2483cd[_0x276f28(0x1c6)]?path[_0x276f28(0x1ce)](_0x2483cd[_0x276f28(0x1c6)]):process[_0x276f28(0x181)]();process[_0x276f28(0x187)][_0x276f28(0x174)]=_0x4d3697,await PerformanceTester[_0x276f28(0x169)](PerformanceEvents[_0x276f28(0x188)],async()=>{const _0x4ca7f4=_0x276f28;!BrowserstackCLI[_0x4ca7f4(0x1c3)]()[_0x4ca7f4(0x14c)]()&&await TestHubHandler[_0x4ca7f4(0x1ec)](FRAMEWORKS[_0x4ca7f4(0x137)],_0xc2feb0),_0x5701de&&_0x499f49[_0x4ca7f4(0x1d2)](handleO11yRerun,_0x51944e);})();if(!BrowserstackCLI[_0x276f28(0x1c3)]()[_0x276f28(0x14c)]()){let _0x514e0b=_0x3848a8['DUTxo'](process[_0x276f28(0x187)][_0x276f28(0x194)],_0x3848a8[_0x276f28(0x140)]);_0x514e0b=_0x514e0b||_0x3848a8[_0x276f28(0x1b8)](checkAccessibilityPlatformConfig,_0xc2feb0[_0x276f28(0x16e)]),process[_0x276f28(0x187)][_0x276f28(0x194)]=_0x514e0b,_0x514e0b&&_0x3848a8[_0x276f28(0x19a)](setAccessibilityCapabilities,_0xc2feb0[_0x276f28(0x16e)]);}const _0x45efdd=path[_0x276f28(0x157)](_0x2483cd[_0x276f28(0x1c6)]?path[_0x276f28(0x1ce)](_0x2483cd[_0x276f28(0x1c6)]):process[_0x276f28(0x181)](),_0x3848a8[_0x276f28(0x182)]);fs[_0x276f28(0x1e2)](_0x45efdd,helper[_0x276f28(0x133)](_0xc2feb0[_0x276f28(0x16e)])),process[_0x276f28(0x187)][_0x276f28(0x180)]=_0x45efdd,helper[_0x276f28(0x196)]();let _0x47d11d='';_0x3848a8[_0x276f28(0x1b2)](helper[_0x276f28(0x164)](),constants[_0x276f28(0x1cb)][_0x276f28(0x1f2)])?_0x47d11d=_0x3848a8[_0x276f28(0x197)]:_0x47d11d=_0x3848a8[_0x276f28(0x178)];let _0x5659d5='';if(helper[_0x276f28(0x1b4)](_0x2483cd[_0x276f28(0x1c6)])){_0x5659d5=_0x276f28(0x1c4);const _0x4b9391=_0x47d11d['split']('.');_0x4b9391[_0x3848a8['vGpgm'](_0x4b9391[_0x276f28(0x1a7)],0x1)]='ts',_0x47d11d=_0x4b9391[_0x276f28(0x157)]('.'),logger[_0x276f28(0x146)](_0x3848a8[_0x276f28(0x1b5)](_0x3848a8['FovlR'],_0x47d11d));}else _0x5659d5='\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 _0x387c73=path[_0x276f28(0x157)](_0x2483cd['path']?path[_0x276f28(0x1ce)](_0x2483cd[_0x276f28(0x1c6)]):process[_0x276f28(0x181)](),_0x47d11d);let _0x11371c=_0x2483cd[_0x276f28(0x1c6)]?_0x2483cd[_0x276f28(0x1c6)]:'';_0x11371c=_0x3848a8[_0x276f28(0x17c)](_0x11371c[_0x276f28(0x1a7)],0x0)?path[_0x276f28(0x145)](_0x11371c):'',process[_0x276f28(0x187)][_0x276f28(0x1a6)]=_0x11371c;const _0x172603=helper[_0x276f28(0x141)](_0xc2feb0['config']),_0x20a0ad=helper[_0x276f28(0x190)](_0xc2feb0[_0x276f28(0x16e)]);logger['debug'](_0x276f28(0x154)+_0x172603),logger[_0x276f28(0x146)]('No\x20Proxy\x20:\x20'+_0x20a0ad);_0x172603&&(_0x5659d5=_0x3848a8[_0x276f28(0x1dc)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x172603+_0x276f28(0x1b9)+_0x20a0ad+_0x276f28(0x155),_0x5659d5));helper[_0x276f28(0x1a9)]({},_0x51944e),fs[_0x276f28(0x1e2)](_0x387c73,_0x5659d5),PerformanceTester[_0x276f28(0x1a0)](PerformanceEvents[_0x276f28(0x1f7)]);const _0x222241=_0x3848a8[_0x276f28(0x1df)](spawn,helper['isYarnPnP']()?_0x3848a8[_0x276f28(0x148)]:_0x3848a8[_0x276f28(0x19c)],[_0x3848a8[_0x276f28(0x13f)],_0x3848a8[_0x276f28(0x184)],_0x3848a8['wkwgB'],_0x3848a8[_0x276f28(0x1b2)](process[_0x276f28(0x170)],_0x3848a8[_0x276f28(0x147)])?'\x22'+_0x387c73+'\x22':_0x387c73,..._0x51944e[_0x276f28(0x1e4)](0x2)],{'shell':_0x3848a8[_0x276f28(0x139)](process[_0x276f28(0x170)],_0x3848a8['nZuWD']),'stdio':_0x3848a8[_0x276f28(0x192)],'cwd':process[_0x276f28(0x181)](),'env':Object[_0x276f28(0x1db)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x276f28(0x1ca)](_0x4bc19d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0xc2feb0['config'][_0x276f28(0x168)][_0x276f28(0x1e1)],'BROWSERSTACK_SKIP_SESSION_NAME':_0xc2feb0['config'][_0x276f28(0x168)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0xc2feb0['config'][_0x276f28(0x1c1)]})}),_0xb3f027=()=>{const _0x1a8931=_0x276f28;try{const _0x2f8bbd=path[_0x1a8931(0x157)](helper[_0x1a8931(0x17e)](),_0x3848a8['umnFa'],_0x3848a8[_0x1a8931(0x161)]);if(fs['existsSync'](_0x2f8bbd)){let _0x484faa=fs[_0x1a8931(0x16b)](_0x2f8bbd);_0x484faa=JSON[_0x1a8931(0x160)](_0x484faa),_0xc2feb0[_0x1a8931(0x16f)]=_0x484faa,fs[_0x1a8931(0x1a8)](_0x2f8bbd);}}catch(_0x3b6685){logger[_0x1a8931(0x146)](_0x3848a8[_0x1a8931(0x1b5)](_0x3848a8[_0x1a8931(0x1a3)],_0x3b6685));}};_0x222241['on'](_0x3848a8[_0x276f28(0x193)],async _0x4f8a55=>{const _0x631086=_0x276f28,_0x3c17f5={};_0x3c17f5[_0x631086(0x1ad)]=_0x3848a8[_0x631086(0x172)];const _0x416c14=_0x3c17f5;try{PerformanceTester[_0x631086(0x159)](PerformanceEvents[_0x631086(0x17f)]),_0x3848a8[_0x631086(0x135)](_0xb3f027),await TestHubHandler[_0x631086(0x1c7)](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x3e9608=BrowserstackCLI[_0x631086(0x1e0)]();await BrowserstackCLI['getInstance']()[_0x631086(0x1c7)](),TestDetails['shutdown'](),_0x3848a8[_0x631086(0x1e6)](printBuildLink),await utilities[_0x631086(0x1bb)](_0xc2feb0,_0x3e9608),process[_0x631086(0x1e3)]=_0x4f8a55,logger[_0x631086(0x146)](_0x631086(0x130)+_0x4f8a55),logger['info'](_0x631086(0x165)+_0x387c73),fs[_0x631086(0x1a8)](_0x387c73);fs[_0x631086(0x1ae)](_0x45efdd)&&(logger[_0x631086(0x146)](_0x631086(0x165)+_0x45efdd),fs[_0x631086(0x1a8)](_0x45efdd));const _0x536be8=fs[_0x631086(0x15a)](path[_0x631086(0x157)](helper[_0x631086(0x17e)](),_0x3848a8[_0x631086(0x172)]))['filter'](_0x33bf64=>_0x33bf64[_0x631086(0x1ef)](_0x631086(0x1b6)));_0x536be8[_0x631086(0x1a4)](_0x46ed6b=>{const _0x176440=_0x631086;fs['unlinkSync'](path[_0x176440(0x157)](helper[_0x176440(0x17e)](),_0x416c14[_0x176440(0x1ad)],_0x46ed6b));});}catch(_0x4eb617){logger[_0x631086(0x146)](_0x3848a8[_0x631086(0x1b5)](_0x3848a8[_0x631086(0x1c0)],_0x4eb617));}});})();}module[a39_0x217b17(0x173)]=run;
|
|
2
|
+
'use strict';function a39_0x269d(_0x1ffa5a,_0x5e02bd){const _0x1d4faa=a39_0x1d4f();return a39_0x269d=function(_0x269d39,_0x5b3838){_0x269d39=_0x269d39-0x145;let _0x3a17a8=_0x1d4faa[_0x269d39];return _0x3a17a8;},a39_0x269d(_0x1ffa5a,_0x5e02bd);}const a39_0x163db1=a39_0x269d;(function(_0x479254,_0x133374){const _0x5dbeb0=a39_0x269d,_0x4549eb=_0x479254();while(!![]){try{const _0x548ee5=-parseInt(_0x5dbeb0(0x164))/0x1+parseInt(_0x5dbeb0(0x1f7))/0x2+-parseInt(_0x5dbeb0(0x18e))/0x3*(-parseInt(_0x5dbeb0(0x1ae))/0x4)+parseInt(_0x5dbeb0(0x17b))/0x5*(-parseInt(_0x5dbeb0(0x1ef))/0x6)+-parseInt(_0x5dbeb0(0x1cc))/0x7*(parseInt(_0x5dbeb0(0x1bb))/0x8)+parseInt(_0x5dbeb0(0x1c6))/0x9*(parseInt(_0x5dbeb0(0x193))/0xa)+parseInt(_0x5dbeb0(0x199))/0xb;if(_0x548ee5===_0x133374)break;else _0x4549eb['push'](_0x4549eb['shift']());}catch(_0x20abc7){_0x4549eb['push'](_0x4549eb['shift']());}}}(a39_0x1d4f,0x3ea39));function a39_0x1d4f(){const _0x367786=['accessibility','reportConflictingEnvVarIssue','accessibilityOptions','../../helpers/BrowserStackSetup','WEIAL','getConfig','elhAN','resolvedConfigFile','BpiTL','../../helpers/testhub/testhubHandler','pkIDb','jTSov','../v2/cliUtils','15JJgVAE','accessSync','map','isUndefined','slice','10HsLjjh','readFileSync','PmiFD','nestedKeyValue','BROWSERSTACK_PW_CONFIG_DIR','WGqii','2886136WVTVia','SDK_CLEANUP','BhGEm','EVENTS','dZLCp','forEach','win32','--config','cliConfig','playwright','xBrMd','BROWSERSTACK_RERUN_TESTS','setBrowserstackConfig','getNoProxy','rZBqV','setFrameworkDetail','--grep','../../helpers/accessibility-automation/helper','WVPbn','info','../v2/TestInfo','50940CykTmc','cCnez','isRunning','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','stringify','existsSync','filterBrowserstackArgs','igkWF','uyiPQ','Error\x20in\x20getting\x20funnel\x20data\x20results','configPath','emjHG','../../helpers/performance/constants','869224kwjdSY','cwd','yGnab','R_OK','has','eugsd','gKLya','XXtZd','VBKCT','testContextOptions','qALbD','1688697RVaKDV','../v2/browserstackCLI','--disable-test-observability','isTypescriptProject','requireConfigLoaderYarnPnP','hjtuy','7qDPPhN','validateRerunTestList','apply','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','jLJxE','tXEzY','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','../../helpers/performance/performance-tester','SDK_POST_INITIALIZE','getConfigPath','homedir','platform','CYwOF','constants','end','env','BROWSERSTACK_TEST_OBSERVABILITY','KDAcA','bcGPs','ZZzps','../../helpers/helper','pw_result.json','nZaFd','./reporter/test-details','getProxyUrl','Playwright\x20process\x20exited\x20with\x20code\x20','isFalse','sCoim','dirname','winstonLogger','exports','bootstrap','push','zUtbz','brBpj','6iFHeYS','startsWith','Proxy\x20url\x20:\x20','BROWSERSTACK_TEST_ACCESSIBILITY_YML','USER_CONFIG_DETAILS_PATH','Updated\x20config\x20file\x20name\x20to\x20-\x20','shutdown','skipSessionStatus','675892YCiORg','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','FopYR','inherit','YZcTX','config','stop','resolve','VLQAa','kPzbO','mBiaK','trace_','child_process','FdcsZ','../../helpers/logger','close','Error\x20in\x20deleting\x20playwright\x20results','PACKAGE_TYPE','FVNcn','BrowserStack\x20config\x20file\x20not\x20found.','assign','--config=','../utils/constants','testObservability','error','getInstance','LalBU','reportDotBrowserStackFolderNotAccessibleIssue','Deleting\x20','serializeToYamlString','../../helpers/utilities','--disable-browserstack-automation','SDK_PRE_INITIALIZE','length','findIndex','isCLIEnabled','playwright-browserstack-sdk.config.js','test','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','BROWSERSTACK_SETUP_CONFIG_PATH','unlinkSync','parse','../utils/clientTroubleshootingService','debug','TBnzV','275757xnskQu','join','Error\x20in\x20closing\x20playwright','KBzVQ','gxhbS','yarn','writeFileSync','INJEv','browserstackAutomation','isTrue','jTpAt','../../helpers/test-observability/constants','concat','iNbNH','./accessibility-helper','npx','PLAYWRIGHT','launchBuild','INTERNALLY_USED_ENV_VARS','W_OK','path','isYarnPnP','util','1053255PQldNZ','measureWrapper','BROWSERSTACK_AUTOMATION','get','split','BROWSERSTACK_RERUN'];a39_0x1d4f=function(){return _0x367786;};return a39_0x1d4f();}const fs=require('fs'),path=require(a39_0x163db1(0x178)),{spawn}=require(a39_0x163db1(0x203)),{format}=require(a39_0x163db1(0x17a)),logger=require(a39_0x163db1(0x145))[a39_0x163db1(0x1e9)],{default:BrowserStackSetup}=require(a39_0x163db1(0x184)),helper=require(a39_0x163db1(0x1e0)),utilities=require(a39_0x163db1(0x155)),constants=require(a39_0x163db1(0x14d)),{FRAMEWORKS}=require(a39_0x163db1(0x16f)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a39_0x163db1(0x1aa)),{setAccessibilityCapabilities}=require(a39_0x163db1(0x172)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a39_0x163db1(0x1e3)),TestHubHandler=require(a39_0x163db1(0x18a)),PerformanceTester=require(a39_0x163db1(0x1d3)),BrowserstackCLI=require(a39_0x163db1(0x1c7)),PerformanceEvents=require(a39_0x163db1(0x1ba))[a39_0x163db1(0x19c)],CLIUtils=require(a39_0x163db1(0x18d)),TestInfo=require(a39_0x163db1(0x1ad)),ClientTroubleShootingService=require(a39_0x163db1(0x161)),getUserPlaywrightConfig=async(_0x52a177,_0xad6e65)=>{const _0x113a7b=a39_0x163db1,_0x231139={'FVNcn':function(_0x20d062){return _0x20d062();},'jTSov':function(_0x2e8973,_0x40b276){return _0x2e8973(_0x40b276);},'iNbNH':_0x113a7b(0x188),'YZcTX':'--config='},_0x22533e=!helper[_0x113a7b(0x191)](_0x52a177[_0x113a7b(0x1fc)]),_0x11dbdb=_0x22533e?path[_0x113a7b(0x1fe)](process[_0x113a7b(0x1bc)](),_0x52a177[_0x113a7b(0x1fc)]):process['cwd'](),{resolveConfigFile:_0x2523e3,resolveConfigLocation:_0x50b01e}=helper[_0x113a7b(0x179)]()?helper[_0x113a7b(0x1ca)](..._0x231139['FVNcn'](getConfigLoaderPath)):helper['requirePWModule'][_0x113a7b(0x1ce)](null,_0x231139[_0x113a7b(0x149)](getConfigLoaderPath)),_0x24f4e7=_0x2523e3?_0x231139[_0x113a7b(0x18c)](_0x2523e3,_0x11dbdb):helper[_0x113a7b(0x196)](_0x231139[_0x113a7b(0x18c)](_0x50b01e,_0x11dbdb),[_0x231139[_0x113a7b(0x171)]]),_0x497f82={};if(_0x22533e){const _0x541009=_0xad6e65[_0x113a7b(0x159)](_0x10651c=>_0x10651c===_0x113a7b(0x1a0)||_0x10651c==='-c'||_0x10651c[_0x113a7b(0x1f0)](_0x113a7b(0x14c)));_0xad6e65['splice'](_0x541009,_0xad6e65[_0x541009]['startsWith'](_0x231139[_0x113a7b(0x1fb)])?0x1:0x2);}const _0x422694={};return _0x422694[_0x113a7b(0x178)]=_0x24f4e7,_0x422694[_0x113a7b(0x1fc)]=_0x497f82,_0x422694;},handleO11yRerun=_0x491c74=>{const _0x508654=a39_0x163db1,_0xe9ab59={};_0xe9ab59[_0x508654(0x1af)]=_0x508654(0x1a9);const _0x508c10=_0xe9ab59,_0x1402b9=helper[_0x508654(0x16d)](process['env'][_0x508654(0x180)]);if(_0x1402b9){const _0x2bc83c=process['env'][_0x508654(0x1a4)],_0x275df2=[];if(helper[_0x508654(0x1cd)](_0x2bc83c)&&!helper['isUndefined'](_0x2bc83c)){_0x2bc83c[_0x508654(0x17f)](',')[_0x508654(0x190)](_0xcf1e0a=>{const _0x4cc1a0=_0x508654;_0x275df2[_0x4cc1a0(0x1ec)]('('+_0xcf1e0a['trim']()+')');});const _0x14be4c='^'+_0x275df2['join']('|')+'$';_0x491c74[_0x508654(0x1ec)](_0x508c10['cCnez'],_0x14be4c);}}},spawnOriginalProcess=_0x3396c1=>{const _0x448e29=a39_0x163db1,_0x2a06cf={'HsmMM':function(_0x924ad,_0x4ecc97,_0x4320e2,_0x46e562){return _0x924ad(_0x4ecc97,_0x4320e2,_0x46e562);},'BpiTL':_0x448e29(0x169),'aonri':_0x448e29(0x173),'oDHyC':_0x448e29(0x1a2),'HIijP':function(_0x273a37,_0x428826){return _0x273a37===_0x428826;},'kPzbO':_0x448e29(0x19f),'igkWF':_0x448e29(0x1fa)};_0x2a06cf['HsmMM'](spawn,helper['isYarnPnP']()?_0x2a06cf[_0x448e29(0x189)]:_0x2a06cf['aonri'],[_0x2a06cf['oDHyC'],..._0x3396c1[_0x448e29(0x192)](0x1)],{'shell':_0x2a06cf['HIijP'](process[_0x448e29(0x1d7)],_0x2a06cf[_0x448e29(0x200)]),'stdio':_0x2a06cf[_0x448e29(0x1b5)],'cwd':process[_0x448e29(0x1bc)]()});},isTestCommand=(_0x406ffa,_0x47ad31)=>{const _0x5048c9=a39_0x163db1,_0x507ef3={};_0x507ef3['VMUQg']=function(_0x3e6be5,_0x447383){return _0x3e6be5>_0x447383;},_0x507ef3[_0x5048c9(0x1e2)]=function(_0x3f1b6e,_0x153a60){return _0x3f1b6e===_0x153a60;},_0x507ef3[_0x5048c9(0x151)]=_0x5048c9(0x15c);const _0x57d231=_0x507ef3;if(_0x57d231['VMUQg'](_0x47ad31['length'],0x1)&&_0x57d231[_0x5048c9(0x1e2)](_0x47ad31[0x1],_0x57d231[_0x5048c9(0x151)]))return!![];return![];};async function run(_0x25bf95,_0x6b2396,_0x6a2bdf){const _0x56ff26=a39_0x163db1,_0x21a4c4={'CYwOF':function(_0x2eaf51,_0x3fd10c){return _0x2eaf51(_0x3fd10c);},'VLQAa':'.browserstack','mBiaK':_0x56ff26(0x1e1),'rZBqV':function(_0x860f5,_0x5b8d36){return _0x860f5+_0x5b8d36;},'WVPbn':_0x56ff26(0x1b7),'MnyPh':function(_0x240fd9){return _0x240fd9();},'VBKCT':_0x56ff26(0x166),'cTZaQ':_0x56ff26(0x14a),'gxhbS':function(_0x3e5342,_0x561f0c){return _0x3e5342<_0x561f0c;},'dZLCp':function(_0x11a238,_0x1ca02c){return _0x11a238===_0x1ca02c;},'XXtZd':'false','xBrMd':_0x56ff26(0x1c8),'yGnab':function(_0x1f4568,_0xdc9212){return _0x1f4568>=_0xdc9212;},'BhGEm':'automation','byXST':function(_0x3c50c2,_0x530e93){return _0x3c50c2!=_0x530e93;},'elhAN':function(_0x4ef4cc,_0x2c7e48,_0x21a2c3){return _0x4ef4cc(_0x2c7e48,_0x21a2c3);},'bcGPs':function(_0x3211d2,_0x25b4be){return _0x3211d2(_0x25b4be);},'KBzVQ':'true','WEIAL':'browserstackSetupConfig.json','qALbD':'playwright-browserstack-sdk.config.cjs','zUtbz':_0x56ff26(0x15b),'TBnzV':function(_0x493ace,_0x2e80ef){return _0x493ace-_0x2e80ef;},'MgNxJ':_0x56ff26(0x1f4),'hjtuy':function(_0x1f6dfd,_0x39f4fa){return _0x1f6dfd>_0x39f4fa;},'eWgZt':function(_0x2cf550,_0x5e1366,_0x55e4d9,_0x2dfe18){return _0x2cf550(_0x5e1366,_0x55e4d9,_0x2dfe18);},'VKRjx':_0x56ff26(0x169),'jTpAt':_0x56ff26(0x173),'FdcsZ':_0x56ff26(0x1a2),'FopYR':'test','WOJBL':_0x56ff26(0x1a0),'eugsd':'win32','uyiPQ':_0x56ff26(0x1fa),'gKLya':_0x56ff26(0x146),'emjHG':function(_0x561613,_0xfadba6){return _0x561613|_0xfadba6;},'ZZzps':_0x56ff26(0x1d2),'brBpj':_0x56ff26(0x147),'PmiFD':function(_0x1c86b8,_0x3e9e1e,_0x3d00e8){return _0x1c86b8(_0x3e9e1e,_0x3d00e8);}};try{const _0x4f9fd6=path[_0x56ff26(0x165)](helper['homedir'](),_0x21a4c4[_0x56ff26(0x1ff)]);try{fs[_0x56ff26(0x18f)](_0x4f9fd6,_0x21a4c4[_0x56ff26(0x1b9)](fs['constants'][_0x56ff26(0x1be)],fs[_0x56ff26(0x1d9)][_0x56ff26(0x177)]));}catch(_0x37e06b){ClientTroubleShootingService[_0x56ff26(0x152)]();}}catch(_0x5432bb){logger['debug'](_0x21a4c4[_0x56ff26(0x1a7)](_0x21a4c4[_0x56ff26(0x1df)],_0x5432bb));}try{const _0x22a078=path[_0x56ff26(0x165)](helper[_0x56ff26(0x1d6)](),_0x21a4c4[_0x56ff26(0x1ff)],_0x21a4c4[_0x56ff26(0x201)]);fs[_0x56ff26(0x1b3)](_0x22a078)&&fs[_0x56ff26(0x15f)](_0x22a078);}catch(_0x3d835d){logger['debug'](_0x21a4c4[_0x56ff26(0x1a7)](_0x21a4c4[_0x56ff26(0x1ee)],_0x3d835d));}if(!_0x21a4c4[_0x56ff26(0x195)](isTestCommand,_0x25bf95,_0x6b2396)){_0x21a4c4[_0x56ff26(0x1d8)](spawnOriginalProcess,_0x6b2396);return;}await PerformanceTester[_0x56ff26(0x17c)](PerformanceEvents[_0x56ff26(0x157)],async()=>{const _0x19b90=_0x56ff26,_0x2adfad={'MExSX':function(_0x54e4bd,_0x23b156){const _0x22d38c=a39_0x269d;return _0x21a4c4[_0x22d38c(0x1d8)](_0x54e4bd,_0x23b156);},'tXEzY':_0x21a4c4[_0x19b90(0x1ff)],'pkIDb':_0x21a4c4[_0x19b90(0x201)],'sCoim':function(_0x556a2a,_0x4e7efa){return _0x21a4c4['rZBqV'](_0x556a2a,_0x4e7efa);},'WGqii':_0x21a4c4[_0x19b90(0x1ab)],'jLJxE':function(_0x5017d1){return _0x21a4c4['MnyPh'](_0x5017d1);},'INJEv':_0x21a4c4[_0x19b90(0x1c3)]};if(!_0x6a2bdf[_0x19b90(0x1fc)]){logger[_0x19b90(0x14f)](_0x21a4c4['cTZaQ']);return;}await _0x6a2bdf['initialize'](_0x25bf95),CLIUtils[_0x19b90(0x1a8)](FRAMEWORKS[_0x19b90(0x174)],FRAMEWORKS[_0x19b90(0x174)]),BrowserstackCLI[_0x19b90(0x150)]()[_0x19b90(0x1a5)](_0x6a2bdf[_0x19b90(0x1fc)],_0x6a2bdf[_0x19b90(0x1b8)],_0x6a2bdf[_0x19b90(0x1a1)]),await BrowserstackCLI[_0x19b90(0x150)]()[_0x19b90(0x1eb)]();for(var _0x369227=0x0;_0x21a4c4[_0x19b90(0x168)](_0x369227,constants[_0x19b90(0x176)][_0x19b90(0x158)]);_0x369227++){var _0x315d89=constants['INTERNALLY_USED_ENV_VARS'][_0x369227];process['env'][_0x315d89]&&await ClientTroubleShootingService[_0x19b90(0x182)](_0x315d89);}const _0x426973=BrowserstackCLI[_0x19b90(0x150)]()[_0x19b90(0x186)]();!helper[_0x19b90(0x1e6)](_0x426973[_0x19b90(0x16c)])&&(process[_0x19b90(0x1db)][_0x19b90(0x17d)]=!![]);_0x21a4c4['dZLCp'](_0x426973[_0x19b90(0x16c)],![])&&(process['env'][_0x19b90(0x17d)]=_0x21a4c4[_0x19b90(0x1c2)],_0x6b2396=_0x6b2396['filter'](_0x40d2f4=>_0x40d2f4!==_0x19b90(0x156)));const _0x2d8550=_0x6b2396['indexOf'](_0x21a4c4[_0x19b90(0x1a3)]);(_0x21a4c4[_0x19b90(0x1bd)](_0x2d8550,0x0)||_0x21a4c4[_0x19b90(0x19d)](_0x426973[_0x19b90(0x14e)],![]))&&(process[_0x19b90(0x1db)][_0x19b90(0x1dc)]=_0x21a4c4[_0x19b90(0x1c2)],_0x6b2396=_0x6b2396['filter'](_0x558d82=>_0x558d82!==_0x19b90(0x1c8)));!helper[_0x19b90(0x191)](_0x6a2bdf[_0x19b90(0x1a1)])&&_0x6a2bdf[_0x19b90(0x1a1)][_0x19b90(0x1bf)](_0x21a4c4[_0x19b90(0x19b)])&&(process[_0x19b90(0x1db)][_0x19b90(0x17d)]=_0x6a2bdf[_0x19b90(0x1a1)][_0x19b90(0x17e)](_0x21a4c4[_0x19b90(0x19b)])||!![]);_0x21a4c4['byXST'](_0x6a2bdf[_0x19b90(0x1fc)][_0x19b90(0x14e)],null)&&!helper[_0x19b90(0x16d)](process[_0x19b90(0x1db)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x19b90(0x1db)][_0x19b90(0x1dc)]=process[_0x19b90(0x1db)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x6a2bdf[_0x19b90(0x1fc)]['testObservability']);const _0x20fcfe=!helper[_0x19b90(0x1e6)](process[_0x19b90(0x1db)][_0x19b90(0x1dc)]);_0x6a2bdf[_0x19b90(0x1fc)][_0x19b90(0x183)]&&(process[_0x19b90(0x1db)][_0x19b90(0x1b1)]=JSON[_0x19b90(0x1b2)](_0x6a2bdf[_0x19b90(0x1fc)][_0x19b90(0x183)]));let _0x5c0ff5=![];_0x6a2bdf[_0x19b90(0x1fc)]['accessibility']&&(_0x5c0ff5=!![],process[_0x19b90(0x1db)][_0x19b90(0x1f2)]=_0x6a2bdf[_0x19b90(0x1fc)][_0x19b90(0x181)]);const _0x5cb6a2=_0x6b2396[_0x19b90(0x170)](),_0x452aa4=await _0x21a4c4[_0x19b90(0x187)](getUserPlaywrightConfig,_0x25bf95,_0x6b2396);if(helper[_0x19b90(0x191)](_0x452aa4)){_0x21a4c4[_0x19b90(0x1de)](spawnOriginalProcess,_0x5cb6a2);return;}const _0x4299a9=_0x452aa4[_0x19b90(0x178)]?path[_0x19b90(0x1e8)](_0x452aa4[_0x19b90(0x178)]):process[_0x19b90(0x1bc)]();process[_0x19b90(0x1db)][_0x19b90(0x197)]=_0x4299a9,await PerformanceTester[_0x19b90(0x17c)](PerformanceEvents[_0x19b90(0x1d4)],async()=>{const _0xf1817d=_0x19b90;!BrowserstackCLI[_0xf1817d(0x150)]()[_0xf1817d(0x1b0)]()&&await TestHubHandler[_0xf1817d(0x175)](FRAMEWORKS[_0xf1817d(0x174)],_0x6a2bdf),_0x20fcfe&&_0x2adfad['MExSX'](handleO11yRerun,_0x6b2396);})();if(!BrowserstackCLI[_0x19b90(0x150)]()[_0x19b90(0x1b0)]()){let _0x208e4f=_0x21a4c4['dZLCp'](process[_0x19b90(0x1db)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x21a4c4[_0x19b90(0x167)]);_0x208e4f=_0x208e4f||_0x21a4c4[_0x19b90(0x1d8)](checkAccessibilityPlatformConfig,_0x6a2bdf[_0x19b90(0x1fc)]),process['env'][_0x19b90(0x1f2)]=_0x208e4f,_0x208e4f&&_0x21a4c4[_0x19b90(0x1d8)](setAccessibilityCapabilities,_0x6a2bdf['config']);}const _0x31995e=path[_0x19b90(0x165)](_0x452aa4['path']?path[_0x19b90(0x1e8)](_0x452aa4['path']):process[_0x19b90(0x1bc)](),_0x21a4c4[_0x19b90(0x185)]);fs[_0x19b90(0x16a)](_0x31995e,helper[_0x19b90(0x154)](_0x6a2bdf[_0x19b90(0x1fc)])),process[_0x19b90(0x1db)][_0x19b90(0x15e)]=_0x31995e,helper['clearTempPWConfig']();let _0x1adf73='';_0x21a4c4[_0x19b90(0x19d)](helper['getPackageType'](),constants[_0x19b90(0x148)]['MODULE'])?_0x1adf73=_0x21a4c4[_0x19b90(0x1c5)]:_0x1adf73=_0x21a4c4[_0x19b90(0x1ed)];let _0x3fffd5='';if(helper[_0x19b90(0x1c9)](_0x452aa4[_0x19b90(0x178)])){_0x3fffd5=_0x19b90(0x1f8);const _0xcd1ba4=_0x1adf73[_0x19b90(0x17f)]('.');_0xcd1ba4[_0x21a4c4[_0x19b90(0x163)](_0xcd1ba4[_0x19b90(0x158)],0x1)]='ts',_0x1adf73=_0xcd1ba4['join']('.'),logger['debug'](_0x21a4c4[_0x19b90(0x1a7)](_0x21a4c4['MgNxJ'],_0x1adf73));}else _0x3fffd5=_0x19b90(0x15d);const _0x455ce0=path['join'](_0x452aa4[_0x19b90(0x178)]?path[_0x19b90(0x1e8)](_0x452aa4['path']):process[_0x19b90(0x1bc)](),_0x1adf73);let _0x5af7ff=_0x452aa4[_0x19b90(0x178)]?_0x452aa4[_0x19b90(0x178)]:'';_0x5af7ff=_0x21a4c4[_0x19b90(0x1cb)](_0x5af7ff[_0x19b90(0x158)],0x0)?path['resolve'](_0x5af7ff):'',process[_0x19b90(0x1db)][_0x19b90(0x1f3)]=_0x5af7ff;const _0x39dfe7=helper[_0x19b90(0x1e4)](_0x6a2bdf['config']),_0xeb578=helper[_0x19b90(0x1a6)](_0x6a2bdf['config']);logger[_0x19b90(0x162)](_0x19b90(0x1f1)+_0x39dfe7),logger[_0x19b90(0x162)]('No\x20Proxy\x20:\x20'+_0xeb578);_0x39dfe7&&(_0x3fffd5=_0x21a4c4[_0x19b90(0x1a7)](_0x19b90(0x1cf)+_0x39dfe7+'\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22'+_0xeb578+'\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();',_0x3fffd5));helper[_0x19b90(0x1b4)]({},_0x6b2396),fs[_0x19b90(0x16a)](_0x455ce0,_0x3fffd5),PerformanceTester[_0x19b90(0x1da)](PerformanceEvents['SDK_SETUP']);const _0x18799d=_0x21a4c4['eWgZt'](spawn,helper[_0x19b90(0x179)]()?_0x21a4c4['VKRjx']:_0x21a4c4[_0x19b90(0x16e)],[_0x21a4c4[_0x19b90(0x204)],_0x21a4c4[_0x19b90(0x1f9)],_0x21a4c4['WOJBL'],_0x21a4c4[_0x19b90(0x19d)](process[_0x19b90(0x1d7)],_0x21a4c4[_0x19b90(0x1c0)])?'\x22'+_0x455ce0+'\x22':_0x455ce0,..._0x6b2396[_0x19b90(0x192)](0x2)],{'shell':_0x21a4c4[_0x19b90(0x19d)](process[_0x19b90(0x1d7)],_0x21a4c4[_0x19b90(0x1c0)]),'stdio':_0x21a4c4[_0x19b90(0x1b6)],'cwd':process[_0x19b90(0x1bc)](),'env':Object[_0x19b90(0x14b)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x19b90(0x1d5)](_0x25bf95),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x6a2bdf['config'][_0x19b90(0x1c4)][_0x19b90(0x1f6)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x6a2bdf[_0x19b90(0x1fc)]['testContextOptions']['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x6a2bdf[_0x19b90(0x1fc)]['logLevel']})}),_0xf941cb=()=>{const _0x5f0a1a=_0x19b90;try{const _0x24a86b=path[_0x5f0a1a(0x165)](helper['homedir'](),_0x2adfad['tXEzY'],_0x2adfad[_0x5f0a1a(0x18b)]);if(fs['existsSync'](_0x24a86b)){let _0x200568=fs[_0x5f0a1a(0x194)](_0x24a86b);_0x200568=JSON[_0x5f0a1a(0x160)](_0x200568),_0x6a2bdf['errorMessage']=_0x200568,fs[_0x5f0a1a(0x15f)](_0x24a86b);}}catch(_0x3f7bf2){logger[_0x5f0a1a(0x162)](_0x2adfad[_0x5f0a1a(0x1e7)](_0x2adfad[_0x5f0a1a(0x198)],_0x3f7bf2));}};_0x18799d['on'](_0x21a4c4[_0x19b90(0x1c1)],async _0xafc12c=>{const _0xd25db6=_0x19b90,_0x9a1673={};_0x9a1673[_0xd25db6(0x1dd)]=_0x2adfad['tXEzY'];const _0x3a19a2=_0x9a1673;try{PerformanceTester['start'](PerformanceEvents[_0xd25db6(0x19a)]),_0x2adfad[_0xd25db6(0x1d0)](_0xf941cb),await TestHubHandler[_0xd25db6(0x1fd)](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x3ec814=BrowserstackCLI[_0xd25db6(0x15a)]();await BrowserstackCLI[_0xd25db6(0x150)]()[_0xd25db6(0x1fd)](),TestDetails[_0xd25db6(0x1f5)](),_0x2adfad['jLJxE'](printBuildLink),await utilities['finalExecution'](_0x6a2bdf,_0x3ec814),process['exitCode']=_0xafc12c,logger[_0xd25db6(0x162)](_0xd25db6(0x1e5)+_0xafc12c),logger[_0xd25db6(0x1ac)](_0xd25db6(0x153)+_0x455ce0),fs[_0xd25db6(0x15f)](_0x455ce0);fs[_0xd25db6(0x1b3)](_0x31995e)&&(logger['debug'](_0xd25db6(0x153)+_0x31995e),fs[_0xd25db6(0x15f)](_0x31995e));const _0x3baa4a=fs['readdirSync'](path[_0xd25db6(0x165)](helper[_0xd25db6(0x1d6)](),_0x2adfad[_0xd25db6(0x1d1)]))['filter'](_0x11a62f=>_0x11a62f[_0xd25db6(0x1f0)](_0xd25db6(0x202)));_0x3baa4a[_0xd25db6(0x19e)](_0x131b52=>{const _0x271b4e=_0xd25db6;fs[_0x271b4e(0x15f)](path[_0x271b4e(0x165)](helper[_0x271b4e(0x1d6)](),_0x3a19a2['KDAcA'],_0x131b52));});}catch(_0x21ff4f){logger[_0xd25db6(0x162)](_0x2adfad[_0xd25db6(0x1e7)](_0x2adfad[_0xd25db6(0x16b)],_0x21ff4f));}});})();}module[a39_0x163db1(0x1ea)]=run;
|