browserstack-node-sdk 1.48.1 → 1.49.1
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 +3 -2
- 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_0x5e33(){const _0x59ef6c=['GrSfL','url_','New\x20hub\x20url\x20set\x20to\x20','__driversArray','ECajS','BQxSI','build','ieOptions','HttpClient','options_','./helpers/patchHelper','storeOptimalHubUrl','firefoxOptions','BTuuV','isPacProxy','ktoiI','OkvXP','global','proxyUrl','getAccessibilityResultsSummary','tXtRS','newHubUrl','CuQlz','agent_','then','quitCount_','5781030OrzGbs','bmpFJ','15EgCfuR','275962BaPZqA','8JAtwxl','requireHttpClient','Modifying\x20webdriver\x20builder','TaoUf','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','proxy_','split','setGlobal','../../../helpers/patchHelpers','3|4|1|2|0|5','PEmvX','overrideGet','tObPC','BUMey','../../../helpers/accessibility-automation/helper','capabilities_','safari.options','uLnwB','proxySettings','2514140WtUGOz','__drivers','set','getGlobal','Setting\x20Browserstack\x20capabilities','firefoxOptions_','ms:edgeOptions','setCapabilities','3595420MFvAqF','LGYjQ','agPod','isAccessibilityPlatform','getAccessibilityResults','UTSip','pIakx','get','__driver','mbsWP','XqVZR','forEach','originalBuilder','keys','se:ieOptions','setServer','exports','chromeOptions','PVqJr','capability','moz:firefoxOptions','error','jnrTK','chromeOptions_','RnZUH','../../../hubAllocationMethods','ieOptions_','../../../bin/utils/constants','uDIyD','winstonLogger','7343766YGgIoR','debug','../accessibility-automation/helper','push','JNjNh','/wd/hub','gJcej','mHVeh','hOTGZ','2|0|4|3|5|1','7450440ckhyDe','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','772383cfPLqP','Builder','CAPABILITY_KEY','DoNls','vGYTg','object','omBKN','7NcWsnj','browserstackAgentObservability','xXRyf','isBrowserstackInfra','xDrot','browserStackLogLevel','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','updateHubUrl','isUndefined','setLogLevel','epfdI','Nlinj','edgeOptions_','safariOptions_','__setBrowserOptions','send','mergeDeep'];a33_0x5e33=function(){return _0x59ef6c;};return a33_0x5e33();}const a33_0x3820b5=a33_0x5016;(function(_0x8b6c21,_0x5ecee0){const _0x50a7e5=a33_0x5016,_0x4388fe=_0x8b6c21();while(!![]){try{const _0x188b91=parseInt(_0x50a7e5(0xe8))/0x1+-parseInt(_0x50a7e5(0x11d))/0x2*(parseInt(_0x50a7e5(0x11c))/0x3)+parseInt(_0x50a7e5(0x11e))/0x4*(-parseInt(_0x50a7e5(0x131))/0x5)+parseInt(_0x50a7e5(0x11a))/0x6+-parseInt(_0x50a7e5(0xef))/0x7*(-parseInt(_0x50a7e5(0xe6))/0x8)+-parseInt(_0x50a7e5(0xdc))/0x9+parseInt(_0x50a7e5(0x139))/0xa;if(_0x188b91===_0x5ecee0)break;else _0x4388fe['push'](_0x4388fe['shift']());}catch(_0x29545f){_0x4388fe['push'](_0x4388fe['shift']());}}}(a33_0x5e33,0x7dc80));const logger=require('../../../helpers/logger')[a33_0x3820b5(0xdb)],helper=require('../../../helpers/helper'),constants=require(a33_0x3820b5(0xd9)),hubAllocator=require(a33_0x3820b5(0xd7)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a33_0x3820b5(0x126)),{setAccessibilityCapabilities,setExtension}=require(a33_0x3820b5(0xde)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a33_0x3820b5(0x12c)),globals=require('../../../helpers/globals'),{overrideExecute}=require(a33_0x3820b5(0x10a)),modify=(_0x228b7a,_0x3f42b3=null,_0x13c8f5=![])=>{const _0x1bfb20=a33_0x3820b5,_0x14d70c={'agPod':function(_0x372ca3,_0x3998a5){return _0x372ca3!==_0x3998a5;},'gpzDS':'/session','tSJrc':function(_0x227904,_0x194d42){return _0x227904+_0x194d42;},'ktoiI':function(_0x8013ba,_0x421eb5){return _0x8013ba+_0x421eb5;},'xDrot':'https://','BQxSI':_0x1bfb20(0xe1),'CuQlz':'goog:chromeOptions','TaoUf':_0x1bfb20(0x14a),'mbsWP':_0x1bfb20(0x137),'Nlinj':'edgeOptions','XqVZR':_0x1bfb20(0xd2),'pIakx':_0x1bfb20(0x10c),'OkvXP':_0x1bfb20(0x12e),'GrSfL':_0x1bfb20(0x147),'VUgXr':_0x1bfb20(0x107),'uDIyD':function(_0xebdc79,_0x1b00b3){return _0xebdc79===_0x1b00b3;},'UTSip':_0x1bfb20(0xed),'gJcej':_0x1bfb20(0x135),'bmpFJ':_0x1bfb20(0x127),'epfdI':function(_0x1d4664,_0x626d15,_0x2f603d){return _0x1d4664(_0x626d15,_0x2f603d);},'PEmvX':function(_0x505c7d,_0x5c65ad,_0x26183f){return _0x505c7d(_0x5c65ad,_0x26183f);},'uLnwB':function(_0x51d6e6,_0x482408){return _0x51d6e6(_0x482408);},'tObPC':'optimalHubUrl','SwHKe':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','xXRyf':function(_0x3785b7,_0x407ecb,_0x5886d6){return _0x3785b7(_0x407ecb,_0x5886d6);},'LGYjQ':function(_0x492d0b,_0x4590a5,_0x1d452a){return _0x492d0b(_0x4590a5,_0x1d452a);},'DoNls':_0x1bfb20(0xe5),'ECajS':_0x1bfb20(0xf5),'vGYTg':function(_0x412a5a){return _0x412a5a();},'hOTGZ':function(_0x208487,_0xe435f7){return _0x208487(_0xe435f7);},'mHVeh':_0x1bfb20(0x13c),'PVqJr':function(_0xf7d758,_0x4ee3c1){return _0xf7d758(_0x4ee3c1);},'omBKN':function(_0x5b7a6b,_0x55fea5,_0x16248d){return _0x5b7a6b(_0x55fea5,_0x16248d);},'JNjNh':function(_0x3ecd7c,_0x12b036){return _0x3ecd7c!==_0x12b036;},'XbLHv':function(_0x5d1eb4,_0x158a35){return _0x5d1eb4!==_0x158a35;},'BUMey':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','BTuuV':_0x1bfb20(0x120)},_0x59abc7=helper[_0x1bfb20(0x11f)]();let _0x18cad5;try{_0x18cad5=helper['requireSeleniumWebdriver'](),_0x18cad5[_0x1bfb20(0x145)]&&(_0x18cad5[_0x1bfb20(0xe9)]=_0x18cad5[_0x1bfb20(0x145)]);}catch(_0xef1a16){return;}if(helper[_0x1bfb20(0xf2)]()){const _0x10f360={};_0x10f360['logLevel']=_0x228b7a[_0x1bfb20(0xf4)],helper[_0x1bfb20(0xf8)](_0x10f360,new Map(),new Map()),logger['info'](_0x14d70c[_0x1bfb20(0x12b)]),logger['debug'](_0x14d70c[_0x1bfb20(0x10d)]);}class _0x12eb6 extends _0x59abc7['HttpClient']{['send'](_0x5b1e34){const _0x11a8d7=_0x1bfb20;if(_0x14d70c[_0x11a8d7(0x13b)](_0x5b1e34['path'],_0x14d70c['gpzDS'])&&_0x14d70c[_0x11a8d7(0x13b)](global[_0x11a8d7(0x115)],''))try{global[_0x11a8d7(0x115)]=_0x14d70c['tSJrc'](_0x14d70c[_0x11a8d7(0x10f)](_0x14d70c[_0x11a8d7(0xf3)],global['newHubUrl']),_0x14d70c[_0x11a8d7(0x105)]),this[_0x11a8d7(0x109)]=hubAllocator['getRequestOptions'](global['newHubUrl']),logger[_0x11a8d7(0xdd)](_0x11a8d7(0x102)+global[_0x11a8d7(0x115)]),global[_0x11a8d7(0x115)]='';}catch(_0x296e10){logger[_0x11a8d7(0xd3)](_0x296e10);}return super[_0x11a8d7(0xfe)](_0x5b1e34);}}class _0xbee6ba extends _0x18cad5[_0x1bfb20(0xe9)]{['setServer'](){const _0x50dd1b=_0x1bfb20;return this[_0x50dd1b(0x101)]=helper['getHubUrl'](_0x228b7a),logger['debug']('Hub\x20url\x20set\x20to\x20'+this[_0x50dd1b(0x101)]),this;}[_0x1bfb20(0xfd)](_0xa048cc){const _0x1b29c=_0x1bfb20;let _0xcdc38a={};for(const _0x1449ad in _0xa048cc){switch(_0x1449ad){case _0x14d70c[_0x1b29c(0x116)]:case _0x14d70c[_0x1b29c(0x121)]:this[_0x1b29c(0xd5)]&&(_0xcdc38a=this[_0x1b29c(0xd5)][_0x1b29c(0x140)](this[_0x1b29c(0xd5)][_0x1b29c(0xea)])||{},this[_0x1b29c(0xd5)][_0x1b29c(0x133)](this[_0x1b29c(0xd5)][_0x1b29c(0xea)],helper[_0x1b29c(0xff)](_0xcdc38a,_0xa048cc[_0x1449ad])));break;case _0x14d70c[_0x1b29c(0x142)]:case _0x14d70c[_0x1b29c(0xfa)]:this[_0x1b29c(0xfb)]&&(_0xcdc38a=this[_0x1b29c(0xfb)]['get'](this[_0x1b29c(0xfb)][_0x1b29c(0xea)])||{},this[_0x1b29c(0xfb)]['set'](this['edgeOptions_'][_0x1b29c(0xea)],helper[_0x1b29c(0xff)](_0xcdc38a,_0xa048cc[_0x1449ad])));break;case _0x14d70c[_0x1b29c(0x143)]:case _0x14d70c[_0x1b29c(0x13f)]:this[_0x1b29c(0x136)]&&(_0xcdc38a=this[_0x1b29c(0x136)][_0x1b29c(0x140)](this[_0x1b29c(0x136)][_0x1b29c(0xea)])||{},this[_0x1b29c(0x136)][_0x1b29c(0x133)](this[_0x1b29c(0x136)][_0x1b29c(0xea)],helper[_0x1b29c(0xff)](_0xcdc38a,_0xa048cc[_0x1449ad])));break;case _0x14d70c[_0x1b29c(0x110)]:this[_0x1b29c(0xfc)]&&(_0xcdc38a=this[_0x1b29c(0xfc)][_0x1b29c(0x140)](this['safariOptions_'][_0x1b29c(0xea)])||{},this[_0x1b29c(0xfc)][_0x1b29c(0x133)](this[_0x1b29c(0xfc)][_0x1b29c(0xea)],helper[_0x1b29c(0xff)](_0xcdc38a,_0xa048cc[_0x1449ad])));break;case _0x14d70c[_0x1b29c(0x100)]:case _0x14d70c['VUgXr']:this[_0x1b29c(0xd8)]&&(_0xcdc38a=this['ieOptions_'][_0x1b29c(0x140)](this[_0x1b29c(0xd8)][_0x1b29c(0xea)])||{},this[_0x1b29c(0xd8)][_0x1b29c(0x133)](this['ieOptions_'][_0x1b29c(0xea)],helper['mergeDeep'](_0xcdc38a,_0xa048cc[_0x1449ad])));break;}}}[_0x1bfb20(0x138)](){const _0x705c38=_0x1bfb20;return logger[_0x705c38(0xdd)](_0x14d70c[_0x705c38(0xe2)]),this[_0x705c38(0xfd)](_0x228b7a[_0x705c38(0x14c)]),Object[_0x705c38(0x146)](_0x228b7a['capability'])[_0x705c38(0x144)](_0x402a32=>{const _0x294ea3=_0x705c38,_0x235f58=this['capabilities_']['get'](_0x402a32);_0x14d70c[_0x294ea3(0xda)](typeof _0x235f58,_0x14d70c[_0x294ea3(0x13e)])?this[_0x294ea3(0x12d)][_0x294ea3(0x133)](_0x402a32,helper['mergeDeep'](_0x235f58,_0x228b7a[_0x294ea3(0x14c)][_0x402a32])):this['capabilities_'][_0x294ea3(0x133)](_0x402a32,_0x228b7a[_0x294ea3(0x14c)][_0x402a32]);}),this;}[_0x1bfb20(0x106)](){const _0xa14d04=_0x1bfb20,_0x9759e2={'tXtRS':_0x14d70c[_0xa14d04(0x12a)],'KBouO':_0x14d70c['SwHKe'],'RnZUH':function(_0x3390a8,_0x5d8990,_0x53c07a){const _0x52ee74=_0xa14d04;return _0x14d70c[_0x52ee74(0xf1)](_0x3390a8,_0x5d8990,_0x53c07a);},'jnrTK':function(_0x2df734,_0x51134e,_0x3e1c0d){const _0x1f0d72=_0xa14d04;return _0x14d70c[_0x1f0d72(0x13a)](_0x2df734,_0x51134e,_0x3e1c0d);}};if(helper['isBrowserstackInfra']()){const _0x3c5371=_0x14d70c[_0xa14d04(0xeb)]['split']('|');let _0x59c3e3=0x0;while(!![]){switch(_0x3c5371[_0x59c3e3++]){case'0':this[_0xa14d04(0x148)]();continue;case'1':logger[_0xa14d04(0xdd)](_0x14d70c[_0xa14d04(0x104)]);continue;case'2':_0x14d70c[_0xa14d04(0xec)](isAccessibilityAutomationSession)&&_0x14d70c[_0xa14d04(0xe4)](setAccessibilityCapabilities,_0x228b7a);continue;case'3':if(helper[_0xa14d04(0x10e)](_0x228b7a[_0xa14d04(0x130)][_0xa14d04(0x112)]))this[_0xa14d04(0x117)]=helper['getHttpAgent'](_0x228b7a[_0xa14d04(0x130)][_0xa14d04(0x112)]);else _0x228b7a[_0xa14d04(0x130)][_0xa14d04(0x112)]&&(this['proxy_']=_0x228b7a[_0xa14d04(0x130)][_0xa14d04(0x112)],logger['debug']('Proxy\x20set\x20to\x20'+this[_0xa14d04(0x123)]));continue;case'4':this['setCapabilities']();continue;case'5':globals[_0xa14d04(0x134)](_0x14d70c[_0xa14d04(0xe3)])&&(!_0x14d70c['xXRyf'](setExtension,this,_0x228b7a)&&globals[_0xa14d04(0x125)](_0x14d70c[_0xa14d04(0xe3)],![]));continue;}break;}}const _0x2cdbb8=super[_0xa14d04(0x106)]();return _0x2cdbb8['session_'][_0xa14d04(0x118)](_0x2e3e30=>{const _0x2e7970=_0xa14d04;try{const _0x4243cd=_0x2e3e30['caps_']['get'](_0x9759e2[_0x2e7970(0x114)]);_0x4243cd?(logger[_0x2e7970(0xdd)](_0x2e7970(0xe7)+_0x4243cd),hubAllocator[_0x2e7970(0xf6)](_0x4243cd),helper[_0x2e7970(0x10b)](_0x4243cd)):logger[_0x2e7970(0xdd)](_0x9759e2['KBouO']);}catch(_0x49b578){logger['debug'](_0x2e7970(0x122)+_0x49b578);}}),_0x2cdbb8[_0xa14d04(0x119)]=0x0,_0x2cdbb8[_0xa14d04(0x118)]&&_0x2cdbb8[_0xa14d04(0x118)](_0x465a58=>{const _0x4bf091=_0xa14d04,_0x239b14=_0x14d70c[_0x4bf091(0x11b)][_0x4bf091(0x124)]('|');let _0x1a82d6=0x0;while(!![]){switch(_0x239b14[_0x1a82d6++]){case'0':_0x465a58[_0x4bf091(0x113)]=async()=>{const _0x49398e=_0x4bf091;return await _0x9759e2[_0x49398e(0xd6)](getAccessibilityResultsSummary,_0x465a58,global);};continue;case'1':helper['overrideGet'](_0x465a58,_0x228b7a);continue;case'2':_0x14d70c[_0x4bf091(0xf9)](overrideExecute,_0x465a58,_0x228b7a);continue;case'3':_0x14d70c[_0x4bf091(0x128)](overrideQuit,_0x465a58,_0x2cdbb8);continue;case'4':_0x14d70c[_0x4bf091(0x12f)](overrideTakeScreenshot,_0x465a58);continue;case'5':_0x465a58[_0x4bf091(0x13d)]=async()=>{const _0x4fc983=_0x4bf091;return await _0x9759e2[_0x4fc983(0xd4)](getAccessibilityResults,_0x465a58,global);};continue;}break;}}),_0x2cdbb8[_0xa14d04(0x113)]=async()=>{const _0x267d76=_0xa14d04;return await _0x14d70c[_0x267d76(0xf9)](getAccessibilityResultsSummary,_0x2cdbb8,global);},_0x2cdbb8[_0xa14d04(0x13d)]=async()=>{const _0x2ee2d6=_0xa14d04;return await _0x14d70c[_0x2ee2d6(0xf9)](getAccessibilityResults,_0x2cdbb8,global);},_0x14d70c[_0xa14d04(0x14b)](overrideTakeScreenshot,_0x2cdbb8),_0x14d70c[_0xa14d04(0x12f)](overrideQuit,_0x2cdbb8),helper[_0xa14d04(0x129)](_0x2cdbb8,_0x228b7a),_0x14d70c[_0xa14d04(0xee)](overrideExecute,_0x2cdbb8,_0x228b7a),helper[_0xa14d04(0xf7)](global[_0xa14d04(0x103)])&&(global[_0xa14d04(0x103)]=[]),helper['isUndefined'](global['__drivers'])&&(global[_0xa14d04(0x132)]=[]),global['__driversArray'][_0xa14d04(0xdf)](_0x2cdbb8),global[_0xa14d04(0x141)]=_0x2cdbb8,_0x14d70c[_0xa14d04(0xe0)](global['__drivers'],undefined)&&global[_0xa14d04(0x132)][_0xa14d04(0xdf)](_0x2cdbb8),_0x3f42b3&&helper['isUndefined'](_0x3f42b3[_0xa14d04(0x111)]['__driversArray'])&&(_0x3f42b3['global'][_0xa14d04(0x103)]=[]),_0x3f42b3&&_0x14d70c['XbLHv'](_0x3f42b3[_0xa14d04(0x111)]['__drivers'],undefined)&&(_0x3f42b3[_0xa14d04(0x111)][_0xa14d04(0x132)][_0xa14d04(0xdf)](_0x2cdbb8),_0x3f42b3['global'][_0xa14d04(0x103)][_0xa14d04(0xdf)](_0x2cdbb8)),_0x2cdbb8;}}return _0x18cad5[_0x1bfb20(0x145)]=_0x18cad5[_0x1bfb20(0xe9)],_0x18cad5[_0x1bfb20(0xe9)]=_0xbee6ba,_0x59abc7[_0x1bfb20(0x108)]=_0x12eb6,_0x18cad5;};function a33_0x5016(_0x32e8bc,_0x416789){const _0x5e33d0=a33_0x5e33();return a33_0x5016=function(_0x501683,_0x5a6d76){_0x501683=_0x501683-0xd2;let _0x1f895d=_0x5e33d0[_0x501683];return _0x1f895d;},a33_0x5016(_0x32e8bc,_0x416789);}module[a33_0x3820b5(0x149)][a33_0x3820b5(0xf0)]=modify;
|
|
1
|
+
const a33_0x4bb74d=a33_0x356f;(function(_0x2430e8,_0x168c05){const _0x45439f=a33_0x356f,_0x502e97=_0x2430e8();while(!![]){try{const _0x4d6d2f=-parseInt(_0x45439f(0x79))/0x1+parseInt(_0x45439f(0x7b))/0x2*(parseInt(_0x45439f(0x8f))/0x3)+-parseInt(_0x45439f(0xc9))/0x4*(parseInt(_0x45439f(0xa9))/0x5)+-parseInt(_0x45439f(0x7c))/0x6*(parseInt(_0x45439f(0x9e))/0x7)+-parseInt(_0x45439f(0x8a))/0x8+-parseInt(_0x45439f(0xa0))/0x9+parseInt(_0x45439f(0xd4))/0xa*(parseInt(_0x45439f(0x84))/0xb);if(_0x4d6d2f===_0x168c05)break;else _0x502e97['push'](_0x502e97['shift']());}catch(_0x460518){_0x502e97['push'](_0x502e97['shift']());}}}(a33_0x2d69,0x4e1c4));function a33_0x356f(_0x2145da,_0x566d01){const _0x2d697f=a33_0x2d69();return a33_0x356f=function(_0x356fc9,_0x46f2dd){_0x356fc9=_0x356fc9-0x76;let _0x3bf47d=_0x2d697f[_0x356fc9];return _0x3bf47d;},a33_0x356f(_0x2145da,_0x566d01);}const logger=require(a33_0x4bb74d(0x9d))[a33_0x4bb74d(0xa4)],helper=require(a33_0x4bb74d(0xb9)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a33_0x4bb74d(0xcb)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a33_0x4bb74d(0xc8)),globals=require('../../../helpers/globals'),{overrideExecute}=require(a33_0x4bb74d(0xdc)),modify=(_0x46b09c,_0x34ed01=null,_0x76ec97=![])=>{const _0x2d515f=a33_0x4bb74d,_0x5b7223={'wrBky':function(_0x347894,_0x5c6ab3){return _0x347894!==_0x5c6ab3;},'OYmTx':_0x2d515f(0x8c),'VxSxv':function(_0x2133fc,_0x4f0e41){return _0x2133fc+_0x4f0e41;},'shBeZ':function(_0x3d50f1,_0x5688d4){return _0x3d50f1+_0x5688d4;},'JTrjV':_0x2d515f(0xd0),'IAtok':'/wd/hub','qiitK':_0x2d515f(0x96),'vjdxN':'chromeOptions','uLtsx':_0x2d515f(0xac),'ZqjgK':'edgeOptions','YQtor':_0x2d515f(0x7f),'UwsNl':_0x2d515f(0xef),'sLGog':_0x2d515f(0x9a),'CloGc':_0x2d515f(0xca),'JkkAp':_0x2d515f(0x87),'ybuYz':function(_0x21196f,_0x43ad19){return _0x21196f===_0x43ad19;},'quVof':_0x2d515f(0xed),'TyrSM':_0x2d515f(0xcd),'gQoMy':function(_0x2818bb,_0x1d0fd7,_0x107586){return _0x2818bb(_0x1d0fd7,_0x107586);},'Kidlb':'optimalHubUrl','LbYjV':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','lBPMQ':function(_0x3545ab,_0x4e369c,_0x53133b){return _0x3545ab(_0x4e369c,_0x53133b);},'CtLoq':function(_0x5e928f,_0x5909c7){return _0x5e928f(_0x5909c7);},'EBaJD':function(_0x1d059c,_0x16db17,_0x9b6502){return _0x1d059c(_0x16db17,_0x9b6502);},'jcVlJ':'4|3|1|2|0|5','gTEft':_0x2d515f(0x80),'XAhRc':function(_0x11d560){return _0x11d560();},'ySXLY':_0x2d515f(0x78),'SZOaR':function(_0x214aec,_0x3b0611){return _0x214aec(_0x3b0611);},'JrHSg':function(_0x5bf9f3,_0x3175ca){return _0x5bf9f3(_0x3175ca);},'MbISo':function(_0x3339dd,_0x531a5f,_0x31f197){return _0x3339dd(_0x531a5f,_0x31f197);},'jCbII':function(_0x318462,_0x4e2b84){return _0x318462!==_0x4e2b84;},'rLuCt':_0x2d515f(0xc0),'ruAQK':_0x2d515f(0xa3)},_0x102f74=helper[_0x2d515f(0xc1)]();let _0x4522f6;try{_0x4522f6=helper[_0x2d515f(0xb8)](),_0x4522f6[_0x2d515f(0xc3)]&&(_0x4522f6['Builder']=_0x4522f6['originalBuilder']);}catch(_0x301f37){return;}if(helper[_0x2d515f(0xd6)]()){const _0x35e091={};_0x35e091['logLevel']=_0x46b09c[_0x2d515f(0xa1)],helper[_0x2d515f(0xcf)](_0x35e091,new Map(),new Map()),logger[_0x2d515f(0x88)](_0x5b7223[_0x2d515f(0xc2)]),logger[_0x2d515f(0x94)](_0x5b7223[_0x2d515f(0xa2)]);}class _0x2b1555 extends _0x102f74[_0x2d515f(0xc7)]{[_0x2d515f(0xbe)](_0x19436a){const _0x433940=_0x2d515f;if(_0x5b7223[_0x433940(0x77)](_0x19436a[_0x433940(0xe9)],_0x5b7223[_0x433940(0xa7)])&&_0x5b7223[_0x433940(0x77)](global[_0x433940(0xbf)],''))try{global[_0x433940(0xbf)]=_0x5b7223[_0x433940(0xea)](_0x5b7223[_0x433940(0xd1)](_0x5b7223['JTrjV'],global['newHubUrl']),_0x5b7223['IAtok']),this['options_']=hubAllocator[_0x433940(0xe8)](global[_0x433940(0xbf)]),logger[_0x433940(0x94)](_0x433940(0x8b)+global[_0x433940(0xbf)]),global[_0x433940(0xbf)]='';}catch(_0x1b4fd9){logger[_0x433940(0x92)](_0x1b4fd9);}return super[_0x433940(0xbe)](_0x19436a);}}class _0x4d52a0 extends _0x4522f6['Builder']{[_0x2d515f(0xb1)](){const _0x2288d1=_0x2d515f;return this[_0x2288d1(0xa8)]=helper[_0x2288d1(0xe5)](_0x46b09c),logger[_0x2288d1(0x94)]('Hub\x20url\x20set\x20to\x20'+this['url_']),this;}[_0x2d515f(0xb6)](_0x429890){const _0x1c22aa=_0x2d515f;let _0x59f24e={};for(const _0x21f231 in _0x429890){switch(_0x21f231){case _0x5b7223[_0x1c22aa(0xde)]:case _0x5b7223[_0x1c22aa(0xce)]:this[_0x1c22aa(0x86)]&&(_0x59f24e=this[_0x1c22aa(0x86)][_0x1c22aa(0x97)](this[_0x1c22aa(0x86)][_0x1c22aa(0x99)])||{},this['chromeOptions_'][_0x1c22aa(0xd2)](this[_0x1c22aa(0x86)][_0x1c22aa(0x99)],helper['mergeDeep'](_0x59f24e,_0x429890[_0x21f231])));break;case _0x5b7223[_0x1c22aa(0xbb)]:case _0x5b7223['ZqjgK']:this[_0x1c22aa(0xb0)]&&(_0x59f24e=this['edgeOptions_'][_0x1c22aa(0x97)](this[_0x1c22aa(0xb0)]['CAPABILITY_KEY'])||{},this['edgeOptions_'][_0x1c22aa(0xd2)](this[_0x1c22aa(0xb0)]['CAPABILITY_KEY'],helper[_0x1c22aa(0x81)](_0x59f24e,_0x429890[_0x21f231])));break;case _0x5b7223[_0x1c22aa(0xb4)]:case _0x5b7223[_0x1c22aa(0xc4)]:this[_0x1c22aa(0xda)]&&(_0x59f24e=this[_0x1c22aa(0xda)][_0x1c22aa(0x97)](this['firefoxOptions_'][_0x1c22aa(0x99)])||{},this['firefoxOptions_']['set'](this[_0x1c22aa(0xda)][_0x1c22aa(0x99)],helper[_0x1c22aa(0x81)](_0x59f24e,_0x429890[_0x21f231])));break;case _0x5b7223['sLGog']:this[_0x1c22aa(0xc6)]&&(_0x59f24e=this['safariOptions_'][_0x1c22aa(0x97)](this[_0x1c22aa(0xc6)][_0x1c22aa(0x99)])||{},this[_0x1c22aa(0xc6)]['set'](this[_0x1c22aa(0xc6)]['CAPABILITY_KEY'],helper[_0x1c22aa(0x81)](_0x59f24e,_0x429890[_0x21f231])));break;case _0x5b7223[_0x1c22aa(0x7d)]:case _0x5b7223[_0x1c22aa(0x9b)]:this[_0x1c22aa(0x98)]&&(_0x59f24e=this[_0x1c22aa(0x98)][_0x1c22aa(0x97)](this[_0x1c22aa(0x98)]['CAPABILITY_KEY'])||{},this['ieOptions_'][_0x1c22aa(0xd2)](this[_0x1c22aa(0x98)][_0x1c22aa(0x99)],helper[_0x1c22aa(0x81)](_0x59f24e,_0x429890[_0x21f231])));break;}}}['setCapabilities'](){const _0x3fc453=_0x2d515f;return logger[_0x3fc453(0x94)](_0x5b7223[_0x3fc453(0xaa)]),this[_0x3fc453(0xb6)](_0x46b09c[_0x3fc453(0xc5)]),Object[_0x3fc453(0xee)](_0x46b09c[_0x3fc453(0xc5)])[_0x3fc453(0xb5)](_0x1bf1ab=>{const _0x269535=_0x3fc453,_0x2f57e0=this['capabilities_'][_0x269535(0x97)](_0x1bf1ab);_0x5b7223[_0x269535(0xbc)](typeof _0x2f57e0,_0x5b7223[_0x269535(0xae)])?this[_0x269535(0xad)]['set'](_0x1bf1ab,helper[_0x269535(0x81)](_0x2f57e0,_0x46b09c[_0x269535(0xc5)][_0x1bf1ab])):this[_0x269535(0xad)][_0x269535(0xd2)](_0x1bf1ab,_0x46b09c[_0x269535(0xc5)][_0x1bf1ab]);}),this;}[_0x2d515f(0xab)](){const _0x3624bb=_0x2d515f,_0x5053f0={'KfSlo':_0x5b7223[_0x3624bb(0xe1)],'TyzIu':_0x5b7223['LbYjV'],'jBmnc':function(_0x1370d0,_0x209aa1,_0x3156bf){return _0x5b7223['gQoMy'](_0x1370d0,_0x209aa1,_0x3156bf);},'TcLiE':function(_0x36aaeb,_0x3207ee,_0x247277){const _0x8416f8=_0x3624bb;return _0x5b7223[_0x8416f8(0x7a)](_0x36aaeb,_0x3207ee,_0x247277);},'WHdmL':function(_0x490ce9,_0x2bf40e){return _0x5b7223['CtLoq'](_0x490ce9,_0x2bf40e);},'wIjDh':function(_0x31186e,_0x85706f,_0xf67b1c){const _0x48b3d5=_0x3624bb;return _0x5b7223[_0x48b3d5(0xeb)](_0x31186e,_0x85706f,_0xf67b1c);},'oVKuJ':function(_0x3a977e,_0x3744a5,_0x5c2e7c){const _0x3d1de6=_0x3624bb;return _0x5b7223[_0x3d1de6(0xe4)](_0x3a977e,_0x3744a5,_0x5c2e7c);}};if(helper[_0x3624bb(0xd6)]()){const _0x599757=_0x5b7223[_0x3624bb(0x85)]['split']('|');let _0x5ca429=0x0;while(!![]){switch(_0x599757[_0x5ca429++]){case'0':globals[_0x3624bb(0xd5)](_0x5b7223[_0x3624bb(0x8d)])&&(!_0x5b7223[_0x3624bb(0xeb)](setExtension,this,_0x46b09c)&&globals[_0x3624bb(0x82)](_0x5b7223[_0x3624bb(0x8d)],![]));continue;case'1':this[_0x3624bb(0x91)]();continue;case'2':if(helper[_0x3624bb(0xa5)](_0x46b09c[_0x3624bb(0xd8)][_0x3624bb(0x76)]))this[_0x3624bb(0x89)]=helper[_0x3624bb(0xdb)](_0x46b09c['proxySettings'][_0x3624bb(0x76)]);else _0x46b09c[_0x3624bb(0xd8)]['proxyUrl']&&(this['proxy_']=_0x46b09c[_0x3624bb(0xd8)]['proxyUrl'],logger[_0x3624bb(0x94)]('Proxy\x20set\x20to\x20'+this[_0x3624bb(0x83)]));continue;case'3':this[_0x3624bb(0xb1)]();continue;case'4':_0x5b7223[_0x3624bb(0xdd)](isAccessibilityAutomationSession)&&_0x5b7223[_0x3624bb(0x8e)](setAccessibilityCapabilities,_0x46b09c);continue;case'5':logger[_0x3624bb(0x94)](_0x5b7223['ySXLY']);continue;}break;}}const _0x10aa11=super[_0x3624bb(0xab)]();return _0x10aa11[_0x3624bb(0x9c)][_0x3624bb(0xcc)](_0x298266=>{const _0x292341=_0x3624bb;try{const _0x52871c=_0x298266[_0x292341(0xbd)][_0x292341(0x97)](_0x5053f0[_0x292341(0x7e)]);_0x52871c?(logger[_0x292341(0x94)](_0x292341(0xaf)+_0x52871c),hubAllocator['updateHubUrl'](_0x52871c),helper[_0x292341(0xd9)](_0x52871c)):logger[_0x292341(0x94)](_0x5053f0['TyzIu']);}catch(_0x1d66bb){logger['debug'](_0x292341(0xa6)+_0x1d66bb);}}),_0x10aa11['quitCount_']=0x0,_0x10aa11['then']&&_0x10aa11['then'](_0x416811=>{const _0x128a62=_0x3624bb,_0x36749a={'GoznH':function(_0x4b6a0f,_0x121191,_0x3220c4){const _0x518f9a=a33_0x356f;return _0x5053f0[_0x518f9a(0xb2)](_0x4b6a0f,_0x121191,_0x3220c4);}};_0x5053f0[_0x128a62(0xe6)](overrideQuit,_0x416811,_0x10aa11),_0x5053f0[_0x128a62(0xe0)](overrideTakeScreenshot,_0x416811),helper[_0x128a62(0xba)](_0x416811,_0x46b09c),_0x5053f0['wIjDh'](overrideExecute,_0x416811,_0x46b09c),_0x416811[_0x128a62(0xe3)]=async()=>{return await _0x36749a['GoznH'](getAccessibilityResultsSummary,_0x416811,global);},_0x416811[_0x128a62(0xb7)]=async()=>{return await _0x36749a['GoznH'](getAccessibilityResults,_0x416811,global);};}),_0x10aa11['getAccessibilityResultsSummary']=async()=>{const _0x1f79f2=_0x3624bb;return await _0x5053f0[_0x1f79f2(0x9f)](getAccessibilityResultsSummary,_0x10aa11,global);},_0x10aa11['getAccessibilityResults']=async()=>{const _0x36b385=_0x3624bb;return await _0x5b7223[_0x36b385(0xeb)](getAccessibilityResults,_0x10aa11,global);},_0x5b7223[_0x3624bb(0xe2)](overrideTakeScreenshot,_0x10aa11),_0x5b7223[_0x3624bb(0xe7)](overrideQuit,_0x10aa11),helper[_0x3624bb(0xba)](_0x10aa11,_0x46b09c),_0x5b7223[_0x3624bb(0xd3)](overrideExecute,_0x10aa11,_0x46b09c),helper['isUndefined'](global[_0x3624bb(0xb3)])&&(global['__driversArray']=[]),helper[_0x3624bb(0x95)](global[_0x3624bb(0xec)])&&(global[_0x3624bb(0xec)]=[]),global[_0x3624bb(0xb3)][_0x3624bb(0x90)](_0x10aa11),global['__driver']=_0x10aa11,_0x5b7223[_0x3624bb(0xdf)](global[_0x3624bb(0xec)],undefined)&&global[_0x3624bb(0xec)][_0x3624bb(0x90)](_0x10aa11),_0x34ed01&&helper['isUndefined'](_0x34ed01[_0x3624bb(0x93)][_0x3624bb(0xb3)])&&(_0x34ed01[_0x3624bb(0x93)]['__driversArray']=[]),_0x34ed01&&_0x5b7223[_0x3624bb(0xdf)](_0x34ed01[_0x3624bb(0x93)][_0x3624bb(0xec)],undefined)&&(_0x34ed01[_0x3624bb(0x93)]['__drivers'][_0x3624bb(0x90)](_0x10aa11),_0x34ed01[_0x3624bb(0x93)][_0x3624bb(0xb3)][_0x3624bb(0x90)](_0x10aa11)),_0x10aa11;}}return _0x4522f6[_0x2d515f(0xc3)]=_0x4522f6['Builder'],_0x4522f6['Builder']=_0x4d52a0,_0x102f74[_0x2d515f(0xc7)]=_0x2b1555,_0x4522f6;};module['exports'][a33_0x4bb74d(0xd7)]=modify;function a33_0x2d69(){const _0x107a9b=['get','ieOptions_','CAPABILITY_KEY','safari.options','JkkAp','session_','../../../helpers/logger','9289hkVpGS','oVKuJ','680724uWWkIZ','browserStackLogLevel','ruAQK','Modifying\x20webdriver\x20builder','winstonLogger','isPacProxy','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','OYmTx','url_','5yGgONf','TyrSM','build','ms:edgeOptions','capabilities_','quVof','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','edgeOptions_','setServer','jBmnc','__driversArray','YQtor','forEach','__setBrowserOptions','getAccessibilityResults','requireSeleniumWebdriver','../../../helpers/helper','overrideGet','uLtsx','ybuYz','caps_','send','newHubUrl','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','requireHttpClient','rLuCt','originalBuilder','UwsNl','capability','safariOptions_','HttpClient','../../../helpers/accessibility-automation/helper','2458916MrFVxh','se:ieOptions','../../../hubAllocationMethods','then','Setting\x20Browserstack\x20capabilities','vjdxN','setLogLevel','https://','shBeZ','set','MbISo','15811900mwraYM','getGlobal','isBrowserstackInfra','browserstackAgentObservability','proxySettings','storeOptimalHubUrl','firefoxOptions_','getHttpAgent','./helpers/patchHelper','XAhRc','qiitK','jCbII','WHdmL','Kidlb','SZOaR','getAccessibilityResultsSummary','EBaJD','getHubUrl','TcLiE','JrHSg','getRequestOptions','path','VxSxv','gQoMy','__drivers','object','keys','firefoxOptions','proxyUrl','wrBky','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','470051NUgkNU','lBPMQ','1706ZipiKl','426YHUcOv','CloGc','KfSlo','moz:firefoxOptions','isAccessibilityPlatform','mergeDeep','setGlobal','proxy_','11jiptUM','jcVlJ','chromeOptions_','ieOptions','info','agent_','4563600PAxJhg','New\x20hub\x20url\x20set\x20to\x20','/session','gTEft','CtLoq','1983AQGQgV','push','setCapabilities','error','global','debug','isUndefined','goog:chromeOptions'];a33_0x2d69=function(){return _0x107a9b;};return a33_0x2d69();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0x45e443=a34_0x5bc9;function a34_0x5bc9(_0x444fdc,_0x1665ca){const _0x38ad18=a34_0x38ad();return a34_0x5bc9=function(_0x5bc946,_0x4b7e14){_0x5bc946=_0x5bc946-0x11d;let _0x3e21d4=_0x38ad18[_0x5bc946];return _0x3e21d4;},a34_0x5bc9(_0x444fdc,_0x1665ca);}function a34_0x38ad(){const _0x3b1d83=['58420cmxGqE','../../../helpers/test-observability/utils','1246458kYddRj','178371LQzXhl','../../../helpers/request-spy','272652tYLbWZ','restore','2786420VOWWfq','2JdRtcS','112cMIfIO','787299qQyxYk','../../../bin/utils/constants','2843267RxXNTo','4zXScer'];a34_0x38ad=function(){return _0x3b1d83;};return a34_0x38ad();}(function(_0x5ba29b,_0xc4aac7){const _0x2a4839=a34_0x5bc9,_0x99a754=_0x5ba29b();while(!![]){try{const _0x228bf9=-parseInt(_0x2a4839(0x124))/0x1*(-parseInt(_0x2a4839(0x127))/0x2)+-parseInt(_0x2a4839(0x129))/0x3+parseInt(_0x2a4839(0x11e))/0x4*(parseInt(_0x2a4839(0x11f))/0x5)+-parseInt(_0x2a4839(0x121))/0x6+parseInt(_0x2a4839(0x11d))/0x7+-parseInt(_0x2a4839(0x128))/0x8*(-parseInt(_0x2a4839(0x122))/0x9)+-parseInt(_0x2a4839(0x126))/0xa;if(_0x228bf9===_0xc4aac7)break;else _0x99a754['push'](_0x99a754['shift']());}catch(_0x22d049){_0x99a754['push'](_0x99a754['shift']());}}}(a34_0x38ad,0x3581d));const requestSpy=require(a34_0x45e443(0x123)),constants=require(a34_0x45e443(0x12a)),{addRequestSpy}=require(a34_0x45e443(0x120));exports['mochaHooks']={'beforeAll'(){const _0x366dc6={'LnWny':function(_0x366141){return _0x366141();}},_0x27e06e='browserstack internal helper hook';_0x366dc6['LnWny'](addRequestSpy);},'afterAll'(){const _0x16b85a=a34_0x45e443,_0x2a0947='browserstack internal helper hook';this['timeout'](0xea60),requestSpy[_0x16b85a(0x125)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a35_0x234caa=a35_0xe473;(function(_0x4f6613,_0xa6464a){const _0x580acd=a35_0xe473,_0xc617f8=_0x4f6613();while(!![]){try{const _0x572806=parseInt(_0x580acd(0x1cd))/0x1+-parseInt(_0x580acd(0x1f4))/0x2*(-parseInt(_0x580acd(0x1dc))/0x3)+-parseInt(_0x580acd(0x1ee))/0x4*(parseInt(_0x580acd(0x1ba))/0x5)+-parseInt(_0x580acd(0x1db))/0x6+parseInt(_0x580acd(0x1d3))/0x7*(parseInt(_0x580acd(0x1fd))/0x8)+-parseInt(_0x580acd(0x1ea))/0x9*(-parseInt(_0x580acd(0x201))/0xa)+-parseInt(_0x580acd(0x1be))/0xb;if(_0x572806===_0xa6464a)break;else _0xc617f8['push'](_0xc617f8['shift']());}catch(_0x13baa7){_0xc617f8['push'](_0xc617f8['shift']());}}}(a35_0x2a70,0x1fca0));const {v4:uuidv4}=require('uuid'),{name,version}=require('../../../../package.json'),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require(a35_0x234caa(0x1cf)),{getPlatformVersion}=require(a35_0x234caa(0x1c1)),{shouldProcessEventForTesthub}=require(a35_0x234caa(0x1bd)),{isFunction}=require(a35_0x234caa(0x1f0)),{patchConsoleLogger}=require('../../../helpers/test-observability/utils');function a35_0x2a70(){const _0x231198=['getTestEnv','immRp','hDZGC','nlEbR','TEST_PLATFORM','rWRxq','concat','hook','9UcVmeo','markedStatus','getHookSkippedTests','state','141920ZDrsds','substring','lodash','VtYBa','fgHbj','split','23554apHYoQ','browserstack','indexOf','unknown_grid','__cloud_provider___','tvyUc','IHHuw','WXhwq','VVthd','8kQGVTo','cNmci','toJSON','getPlatform','2102630SBuNbs','emit','aoAyb','generic','qoRvi','Rtksn','pending','20DOdEHO','slice','RgeWm','../../../helpers/testhub/utils','2281026YgVdYc','_beforeEach','ouLXJ','../../../helpers/helper','forEach','getCapabilities','toISOString','hookAnalyticsId','qmqfA','rehSF','type','frSev','failed','parent','pid','198756NLCHSj','getSession','../../../helpers/test-observability/constants','LvZcs','sendPlatformDetails','string','1351189IfPakv','PqPfC','passed','mapTestHooks','jeMYF','getBrowserName','NFFNx','WFLij','1371270TMCSwp','27lfkGao','jAsHN','bs:addPlatformDetails:','clNni','MznhG','get'];a35_0x2a70=function(){return _0x231198;};return a35_0x2a70();}function a35_0xe473(_0x3b41a1,_0x4d9d0b){const _0x2a7012=a35_0x2a70();return a35_0xe473=function(_0xe4735,_0x3de4f0){_0xe4735=_0xe4735-0x1b4;let _0x55cca7=_0x2a7012[_0xe4735];return _0x55cca7;},a35_0xe473(_0x3b41a1,_0x4d9d0b);}patchConsoleLogger(),exports[a35_0x234caa(0x1e2)]=()=>{const _0x4655dc=a35_0x234caa,_0x5d0dfa={'fgHbj':_0x4655dc(0x1b6),'PqPfC':function(_0x38d3e3){return _0x38d3e3();}};return{'ci':_0x5d0dfa[_0x4655dc(0x1f2)],'key':_0x5d0dfa[_0x4655dc(0x1d4)](uuidv4),'version':version,'collector':'js-'+name};},exports['getHookDetails']=_0x23994c=>{const _0x41a707=a35_0x234caa,_0x4e54b6={};_0x4e54b6[_0x41a707(0x1d0)]=function(_0x5b66ba,_0x3aaa89){return _0x5b66ba!==_0x3aaa89;},_0x4e54b6[_0x41a707(0x1fc)]=_0x41a707(0x1d2),_0x4e54b6[_0x41a707(0x1e5)]=function(_0x57376c,_0x129c78){return _0x57376c!==_0x129c78;},_0x4e54b6['IHHuw']='hook:',_0x4e54b6[_0x41a707(0x1f1)]=function(_0x2ceef2,_0x5b7fac){return _0x2ceef2!==_0x5b7fac;},_0x4e54b6[_0x41a707(0x1e7)]=_0x41a707(0x1e9);const _0x4391fe=_0x4e54b6;if(!_0x23994c||_0x4391fe['LvZcs'](typeof _0x23994c,_0x4391fe[_0x41a707(0x1fc)]))return[null,null];if(_0x4391fe['nlEbR'](_0x23994c[_0x41a707(0x1f6)](_0x4391fe[_0x41a707(0x1fa)]),-0x1)){const _0x36d396=_0x23994c['split'](_0x4391fe['IHHuw']);return[_0x36d396[0x0][_0x41a707(0x1bb)](0x0,-0x1)[_0x41a707(0x1f3)]('\x22')[0x1],_0x36d396[0x1][_0x41a707(0x1ef)](0x1)];}else{if(_0x4391fe[_0x41a707(0x1f1)](_0x23994c[_0x41a707(0x1f6)](_0x4391fe[_0x41a707(0x1e7)]),-0x1)){const _0x21ce4c=_0x23994c[_0x41a707(0x1f3)](_0x4391fe[_0x41a707(0x1e7)]);return[_0x21ce4c[0x0][_0x41a707(0x1bb)](0x0,-0x1)[_0x41a707(0x1f3)]('\x22')[0x1],_0x23994c];}}return[null,null];},exports['getHooksForTest']=_0x17ddfe=>{const _0x1a210d=a35_0x234caa,_0x5482e={'Rtksn':function(_0x3e1053,_0x31ba99){return _0x3e1053(_0x31ba99);},'cNmci':'_beforeAll','noLpr':'_afterAll','clNni':_0x1a210d(0x1bf),'frSev':'_afterEach'};if(!_0x17ddfe||!_0x17ddfe[_0x1a210d(0x1cb)])return[];const _0x51a4ab=[];return[_0x5482e[_0x1a210d(0x1fe)],_0x5482e['noLpr'],_0x5482e[_0x1a210d(0x1df)],_0x5482e[_0x1a210d(0x1c9)]][_0x1a210d(0x1c2)](_0x3bda9f=>{const _0x3f5b02=_0x1a210d,_0x1690bc={'QlqWq':function(_0x392e59,_0x10678d){const _0x38bb5e=a35_0xe473;return _0x5482e[_0x38bb5e(0x1b8)](_0x392e59,_0x10678d);}},_0x289668=_0x17ddfe['parent'][_0x3bda9f]||[];_0x289668[_0x3f5b02(0x1c2)](_0x121bfd=>{const _0x51c0a7=_0x3f5b02;_0x121bfd[_0x51c0a7(0x1c5)]&&!_0x1690bc['QlqWq'](isInternalHook,_0x121bfd['fn'])&&_0x51a4ab['push'](_0x121bfd['hookAnalyticsId']);});}),[..._0x51a4ab,...exports['getHooksForTest'](_0x17ddfe[_0x1a210d(0x1cb)])];},exports[a35_0x234caa(0x1d6)]=_0x53d0ff=>{const _0x3c7b2a=a35_0x234caa,_0x40231e={'tvyUc':function(_0xb41a5b){return _0xb41a5b();},'qmqfA':function(_0x1438ff,_0x33f68d){return _0x1438ff===_0x33f68d;},'WFLij':'_afterEach','PzOlH':'_beforeAll','rehSF':'_afterAll','jAsHN':_0x3c7b2a(0x1bf)};if(!_0x53d0ff||!_0x53d0ff[_0x3c7b2a(0x1cb)])return;[_0x40231e['PzOlH'],_0x40231e[_0x3c7b2a(0x1c7)],_0x40231e[_0x3c7b2a(0x1dd)],_0x40231e[_0x3c7b2a(0x1da)]]['forEach'](_0x5dd76d=>{const _0x25aecd=_0x3c7b2a,_0x2ab620=_0x53d0ff[_0x25aecd(0x1cb)][_0x5dd76d]||[];_0x2ab620['forEach'](_0x578c20=>{const _0x5e5720=_0x25aecd;if(!_0x578c20[_0x5e5720(0x1c5)])_0x578c20['hookAnalyticsId']=_0x40231e[_0x5e5720(0x1f9)](uuidv4);else _0x578c20[_0x5e5720(0x1eb)]&&_0x40231e[_0x5e5720(0x1c6)](_0x5dd76d,_0x40231e[_0x5e5720(0x1da)])&&(_0x578c20[_0x5e5720(0x1c5)]=_0x40231e[_0x5e5720(0x1f9)](uuidv4),delete _0x578c20[_0x5e5720(0x1eb)]);});}),exports['mapTestHooks'](_0x53d0ff[_0x3c7b2a(0x1cb)]);},exports[a35_0x234caa(0x1d1)]=async(_0x4f6415,_0xf754cb)=>{const _0x5a5025=a35_0x234caa,_0x5ae428={'ijAhv':function(_0x4d55e9){return _0x4d55e9();},'ouLXJ':function(_0x19d02e,_0x517d5c){return _0x19d02e(_0x517d5c);},'NFFNx':'platformVersion','MznhG':function(_0x337738,_0x3f1369){return _0x337738(_0x3f1369);},'jeMYF':function(_0x45e7b9,_0x142300){return _0x45e7b9===_0x142300;},'aoAyb':_0x5a5025(0x1f5),'WXhwq':_0x5a5025(0x1f7),'immRp':_0x5a5025(0x1e6)};try{if(!_0x5ae428['ijAhv'](shouldProcessEventForTesthub))return;const _0x534fae=await _0x4f6415[_0x5a5025(0x1c3)](),_0x1e44ec=await _0x4f6415[_0x5a5025(0x1ce)](),_0x2a0c01={},_0x5e15c5=Object['fromEntries'](_0x1e44ec[_0x5a5025(0x1c3)]()['map_']),_0x350b68={'product':_0x5ae428[_0x5a5025(0x1c0)](getObservabilityLinkedProductName,_0x5e15c5),'capabilities':_0x5e15c5,'platform':_0x534fae[_0x5a5025(0x200)](),'platform_version':_0x534fae[_0x5a5025(0x1e1)](_0x5ae428[_0x5a5025(0x1d9)])?_0x534fae['get'](_0x5ae428[_0x5a5025(0x1d9)]):_0x5ae428['MznhG'](getPlatformVersion,_0x5ae428[_0x5a5025(0x1d7)](global[_0x5a5025(0x1f8)],_0x5ae428[_0x5a5025(0x1b5)])),'browser':_0x534fae[_0x5a5025(0x1d8)](),'browser_version':_0x534fae['getBrowserVersion'](),'session_id':_0x1e44ec[_0x5a5025(0x1ff)]()};global[_0x5a5025(0x1f8)]?_0x2a0c01[global[_0x5a5025(0x1f8)]]=_0x350b68:_0x2a0c01[_0x5ae428[_0x5a5025(0x1fb)]]=_0x350b68,process[_0x5a5025(0x1b4)](_0x5a5025(0x1de)+process[_0x5a5025(0x1cc)],{'timestamp':new Date()[_0x5a5025(0x1c4)](),'level':null,'message':null,'kind':_0x5ae428[_0x5a5025(0x1e3)],'http_response':_0x2a0c01,'uuid':_0xf754cb});}catch(_0x15b227){_0x5ae428[_0x5a5025(0x1e0)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x15b227);}},exports[a35_0x234caa(0x1ec)]=_0x347900=>{const _0x242717=a35_0x234caa,_0x53b93e={};_0x53b93e[_0x242717(0x1b7)]=function(_0x3509d9,_0x224a7a){return _0x3509d9!==_0x224a7a;},_0x53b93e['hJRWr']=_0x242717(0x1e9),_0x53b93e[_0x242717(0x1bc)]=_0x242717(0x1d5),_0x53b93e[_0x242717(0x1e4)]=_0x242717(0x1ca);const _0x365d69=_0x53b93e,_0x499a33=_0x347900['suites']['reduce']((_0x182431,_0x1a3b13)=>{const _0x3571ca=exports['getHookSkippedTests'](_0x1a3b13);return _0x3571ca&&(_0x182431=_0x182431['concat'](_0x3571ca)),_0x182431;},[]),_0x28f28f=_0x347900['tests']['filter'](_0x26bb9c=>{const _0x40ce6b=_0x242717,_0x1c7a85=_0x365d69[_0x40ce6b(0x1b7)](_0x26bb9c[_0x40ce6b(0x1c8)],_0x365d69['hJRWr'])&&!_0x26bb9c['markedStatus']&&_0x365d69['qoRvi'](_0x26bb9c[_0x40ce6b(0x1ed)],_0x365d69[_0x40ce6b(0x1bc)])&&_0x365d69[_0x40ce6b(0x1b7)](_0x26bb9c[_0x40ce6b(0x1ed)],_0x365d69['hDZGC'])&&!_0x26bb9c[_0x40ce6b(0x1b9)];return _0x1c7a85;});return _0x28f28f[_0x242717(0x1e8)](_0x499a33);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a36_0x34fb(){const _0x254c81=['FBqRP','then','../utils/constants','yQQck','start','4036797uqqeml','timeout','getCurrentUrl','XAqTZ','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','__skipSessionName','YUfIS','Accessibility\x20scan\x20completed\x20successfully','HdEBa','../../helpers/accessibility-automation/helper','testAnalyticsId','gBdZg','Shxsy','60890pllYMe','hddKv','\x22}}','SAVE_RESULTS','UpcNQ','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','PERFORM_SCAN','util','appium:app','dAvuf','length','performScanWithRetry','http:','Accessibility\x20results\x20saved\x20successfully','err','vtbYc','dbQlp','winstonLogger','__drivers','1169247GygIXd','SBHXr','MLqjP','beforeEach','HjXfH','GyCih','sessionNameSet__','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','VpdNW','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','executeScript',',\x22level\x22:\x20\x22','../../helpers/performance/performance-tester','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','AybMq','QVXZB','kyrfv','oBfVz','CdZkl','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','bstackA11yShouldScan','quitCount_','afterTest','../../helpers/performance/constants','../../helpers/logger','fKyRP','measureWrapper','driverCleanup','Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','state','__error_messages__','currentTest','isArray','stringify','ObservabilitySync:','end','40FaEYJx','shift','Yqaqx','sessionName','\x20-\x20','xozkW','now','initQuit','__sessionFailed','testcase','index','protocol','WQeeV','TJlhW','../../helpers/testhub/constants','xRGuJ','thTestRunUuid','hEFxQ','Failed\x20to\x20store\x20session\x20name:\x20','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','rrlhp','../../helpers/accessibility-automation/accessibilityRetryHelper','GbiIe','84PskquN','4WFvHgc','format','percyCaptureMode','../../helpers/testhub/utils','mochaHooks','join','SDK_HOOK','warn','nGLnM','LWABf','XSPHM','7glrMyv','../../helpers/globals','accessibilityScanStarted','SYNC','1246135UNFlvT','startMonitoring','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','getGlobal','TdbQa','afterEach','isAccessibilityPlatform','SLavJ','finally','setGlobal','440924oKnnCa','YzbxS','354480SJeszz','failed','RJnni','SESSION_NAME','error','pQOBV','kSezj','CQtEO','fzQTd','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','percy','2642872mjnsTx','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','env','pgPJR','__platformCaps','passed','qUwCb','../../helpers/percy/utils','Failed:\x20','debug','info','afterAll','Mocha','titlePath','VIfou','hnvTi','shouldScanTestForAccessibility','TJZIz','qrQJO','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','push','jDVPg','yqtih','session_','message','./test-observability/mochaUtils','Automate\x20test\x20case\x20execution\x20has\x20started.','mfBFU','pswKG','capabilities','browserstackTestName','browserstackSessionName'];a36_0x34fb=function(){return _0x254c81;};return a36_0x34fb();}const a36_0x1a44e5=a36_0x58cc;(function(_0x1174bf,_0x264e72){const _0x23fc7c=a36_0x58cc,_0x472ec4=_0x1174bf();while(!![]){try{const _0x38269b=parseInt(_0x23fc7c(0x22d))/0x1+-parseInt(_0x23fc7c(0x22b))/0x2+parseInt(_0x23fc7c(0x1d5))/0x3*(-parseInt(_0x23fc7c(0x211))/0x4)+parseInt(_0x23fc7c(0x26a))/0x5*(parseInt(_0x23fc7c(0x210))/0x6)+-parseInt(_0x23fc7c(0x21c))/0x7*(-parseInt(_0x23fc7c(0x238))/0x8)+parseInt(_0x23fc7c(0x25d))/0x9+-parseInt(_0x23fc7c(0x1f9))/0xa*(parseInt(_0x23fc7c(0x220))/0xb);if(_0x38269b===_0x264e72)break;else _0x472ec4['push'](_0x472ec4['shift']());}catch(_0x4e77bb){_0x472ec4['push'](_0x472ec4['shift']());}}}(a36_0x34fb,0x3ab81));function a36_0x58cc(_0xfadf1c,_0x30fa6c){const _0x34fbb0=a36_0x34fb();return a36_0x58cc=function(_0x58ccad,_0x3dce8a){_0x58ccad=_0x58ccad-0x1c9;let _0x2a02a3=_0x34fbb0[_0x58ccad];return _0x2a02a3;},a36_0x58cc(_0xfadf1c,_0x30fa6c);}const util=require(a36_0x1a44e5(0x1c9)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a36_0x1a44e5(0x266)),accessibilityRetryHelper=require(a36_0x1a44e5(0x20e)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a36_0x1a44e5(0x25a)),{percyAutoCapture}=require(a36_0x1a44e5(0x23f)),{sendPlatformDetails}=require(a36_0x1a44e5(0x251)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a36_0x1a44e5(0x1e1)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x1a44e5(0x1ec)),globals=require(a36_0x1a44e5(0x21d)),logger=require(a36_0x1a44e5(0x1ed))[a36_0x1a44e5(0x1d3)],{shouldProcessEventForTesthub}=require(a36_0x1a44e5(0x214)),testHubConstants=require(a36_0x1a44e5(0x207));exports[a36_0x1a44e5(0x215)]={'beforeAll'(){const _0x3d26b6=a36_0x1a44e5,_0x47e785={'VpdNW':function(_0x2e96bd,_0x4afc05,_0x2d2a33,_0x3d825c){return _0x2e96bd(_0x4afc05,_0x2d2a33,_0x3d825c);},'xRGuJ':_0x3d26b6(0x22e),'hEFxQ':'\x20|\x20','YzbxS':function(_0x2cc670,_0x1e68c3,_0x111ca4){return _0x2cc670(_0x1e68c3,_0x111ca4);},'dbQlp':_0x3d26b6(0x23d),'dAvuf':function(_0x576f0a){return _0x576f0a();},'HdEBa':function(_0x436f8d,_0x20dfd0,_0x338922){return _0x436f8d(_0x20dfd0,_0x338922);},'yQQck':_0x3d26b6(0x203),'RJnni':'beforeAll'};PerformanceTester[_0x3d26b6(0x221)]();const _0x41e550='browserstack internal helper hook';PerformanceTester[_0x3d26b6(0x1ef)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x465464=_0x3d26b6;global[_0x465464(0x1f3)]=[],global[_0x465464(0x201)]=![],global[_0x465464(0x1f0)]=async()=>{const _0x1193f0=_0x465464;let _0xd5c174=![];try{await global[_0x1193f0(0x1d4)][0x0][_0x1193f0(0x24f)],_0xd5c174=!![],global['__sessionFailed']?await _0x47e785[_0x1193f0(0x1dd)](markSessionStatus,global[_0x1193f0(0x1d4)][0x0],_0x47e785[_0x1193f0(0x208)],global[_0x1193f0(0x1f3)]['join'](_0x47e785[_0x1193f0(0x20a)])):await _0x47e785[_0x1193f0(0x22c)](markSessionStatus,global[_0x1193f0(0x1d4)][0x0],_0x47e785[_0x1193f0(0x1d2)]);}catch(_0x505830){logger['debug'](_0x1193f0(0x1e2)+_0x505830);}global[_0x1193f0(0x1f3)]=[],global[_0x1193f0(0x201)]=![];if(_0xd5c174)try{try{_0x47e785[_0x1193f0(0x1cb)](shouldProcessEventForTesthub)&&(global[_0x1193f0(0x1d4)][0x0]&&await _0x47e785[_0x1193f0(0x22c)](sendPlatformDetails,global[_0x1193f0(0x1d4)][0x0],this[_0x1193f0(0x1f4)]?this['currentTest'][_0x1193f0(0x267)]:null));}catch(_0x32376d){logger['debug'](_0x1193f0(0x20c)+_0x32376d);}await global['__drivers'][0x0][_0x1193f0(0x200)]();}catch(_0x1237cb){logger[_0x1193f0(0x241)](_0x1193f0(0x222)+_0x1237cb);}};},{'platform':_0x47e785[_0x3d26b6(0x265)](nestedKeyValue,global[_0x3d26b6(0x23c)],[_0x47e785[_0x3d26b6(0x25b)]]),'hookType':_0x47e785[_0x3d26b6(0x22f)]})();},'beforeEach'(_0x5b420b){const _0x37c86e=a36_0x1a44e5,_0x494d20={'qUwCb':function(_0xf3d274,_0xee9c0c){return _0xf3d274>_0xee9c0c;},'UpcNQ':_0x37c86e(0x1fd),'pgPJR':function(_0x4dac0d,_0x1709c4,_0x33f529){return _0x4dac0d(_0x1709c4,_0x33f529);},'CQtEO':_0x37c86e(0x1e9),'SLavJ':function(_0x32c242){return _0x32c242();},'rrlhp':'isAccessibilityPlatform','hBfQL':function(_0x55ca96,_0x30349f){return _0x55ca96===_0x30349f;},'ogzlR':_0x37c86e(0x1ce),'rvMvT':'https:','ZBKje':_0x37c86e(0x239),'ttSYH':_0x37c86e(0x252),'WQeeV':_0x37c86e(0x256),'kzUqP':_0x37c86e(0x203),'hnvTi':_0x37c86e(0x1d8)};globals[_0x37c86e(0x22a)](_0x494d20[_0x37c86e(0x205)],this[_0x37c86e(0x1f4)]['titlePath']()[_0x37c86e(0x216)](_0x494d20[_0x37c86e(0x26e)])),PerformanceTester[_0x37c86e(0x1ef)](PerformanceSdkEvents[_0x37c86e(0x217)],()=>{const _0x3609f2=_0x37c86e,_0x24edb6={'VIfou':function(_0x20d253){const _0x3d92e6=a36_0x58cc;return _0x494d20[_0x3d92e6(0x228)](_0x20d253);}},_0x503a88='browserstack internal helper hook';new Promise(async _0x30b450=>{const _0x3d1487=a36_0x58cc;let _0x4493fb=!![];try{_0x494d20['qUwCb'](global['__drivers'][_0x3d1487(0x1cc)],0x1)&&(await global[_0x3d1487(0x1f0)](),global[_0x3d1487(0x1d4)][_0x3d1487(0x1fa)]()),_0x494d20[_0x3d1487(0x23e)](global['__drivers'][0x0][_0x3d1487(0x1ea)],0x0)&&(_0x4493fb=![],await global[_0x3d1487(0x1f0)]());}catch(_0xd7c9b9){logger['debug'](_0x3d1487(0x222)+_0xd7c9b9);}try{Array[_0x3d1487(0x1f5)](global[_0x3d1487(0x1d4)])&&global[_0x3d1487(0x1d4)][0x0]&&(global[_0x3d1487(0x1d4)][0x0][_0x3d1487(0x257)]=this[_0x3d1487(0x1f4)]['titlePath']()['join'](_0x494d20[_0x3d1487(0x26e)])),global['browserstackSessionName']=this[_0x3d1487(0x1f4)][_0x3d1487(0x245)]()[_0x3d1487(0x216)](_0x494d20[_0x3d1487(0x26e)]);}catch(_0x439db1){logger[_0x3d1487(0x241)](_0x3d1487(0x20b)+_0x439db1);}this[_0x3d1487(0x1f4)][_0x3d1487(0x248)]=_0x494d20[_0x3d1487(0x23b)](shouldScanTestForAccessibility,this[_0x3d1487(0x1f4)]['titlePath'](),!![]),globals[_0x3d1487(0x22a)](_0x494d20[_0x3d1487(0x234)],this[_0x3d1487(0x1f4)][_0x3d1487(0x248)]),this['currentTest'][_0x3d1487(0x21e)]=!![];if(_0x494d20[_0x3d1487(0x228)](isAccessibilityAutomationSession)&&_0x4493fb&&Array[_0x3d1487(0x1f5)](global[_0x3d1487(0x1d4)])&&_0x494d20['qUwCb'](global[_0x3d1487(0x1d4)][_0x3d1487(0x1cc)],0x0)&&globals[_0x3d1487(0x224)](_0x494d20[_0x3d1487(0x20d)]))try{const _0x3b42ad=await global[_0x3d1487(0x1d4)][0x0]['session_'];if(_0x3b42ad){let _0x4c087a=!![];const _0x59bcf2=await global[_0x3d1487(0x1d4)][0x0][_0x3d1487(0x25f)]();let _0x59af24;try{_0x59af24=new URL(_0x59bcf2);}catch(_0x5b25e6){_0x4c087a=![];}_0x4c087a=_0x494d20['hBfQL'](_0x59af24['protocol'],_0x494d20['ogzlR'])||_0x494d20['hBfQL'](_0x59af24[_0x3d1487(0x204)],_0x494d20['rvMvT']),_0x4c087a&&(this[_0x3d1487(0x1f4)]['shouldScanTestForAccessibility']&&logger[_0x3d1487(0x242)](_0x494d20['ZBKje'])),this['currentTest'][_0x3d1487(0x21e)]=this[_0x3d1487(0x1f4)][_0x3d1487(0x248)],this[_0x3d1487(0x1f4)]['shouldScanTestForAccessibility']&&logger[_0x3d1487(0x242)](_0x494d20['ttSYH']);}}catch(_0x968acb){logger[_0x3d1487(0x231)](_0x3d1487(0x236)+util[_0x3d1487(0x212)](_0x968acb));}_0x494d20[_0x3d1487(0x228)](_0x30b450);})[_0x3609f2(0x259)](()=>{const _0xaab5ef=_0x3609f2;_0x24edb6[_0xaab5ef(0x246)](_0x5b420b);});},{'platform':_0x494d20[_0x37c86e(0x23b)](nestedKeyValue,global[_0x37c86e(0x23c)],[_0x494d20['kzUqP']]),'hookType':_0x494d20[_0x37c86e(0x247)]})();},'afterEach'(_0x5ab2e7){const _0xe1b942=a36_0x1a44e5,_0xce19d1={'nGLnM':_0xe1b942(0x1fd),'fKyRP':function(_0x196b8c,_0x143ac5){return _0x196b8c>_0x143ac5;},'GbiIe':function(_0x9261b0,_0x4f849a){return _0x9261b0===_0x4f849a;},'fzQTd':_0xe1b942(0x202),'vtbYc':function(_0x5853c5,_0x51ace7){return _0x5853c5>_0x51ace7;},'pMfXn':_0xe1b942(0x1ca),'Shxsy':function(_0x4a6a23,_0x4ccfc9,_0x3473ec,_0x288dd3){return _0x4a6a23(_0x4ccfc9,_0x3473ec,_0x288dd3);},'Wmbqo':_0xe1b942(0x227),'oBfVz':'bstackA11yShouldScan','ljylP':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','YUfIS':'Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','mjCYa':_0xe1b942(0x1eb),'yqtih':_0xe1b942(0x264),'GZMFn':_0xe1b942(0x1f1),'HjXfH':_0xe1b942(0x1cf),'ZyjjH':_0xe1b942(0x26f),'jDVPg':_0xe1b942(0x261),'qrQJO':function(_0x162de9){return _0x162de9();},'kyrfv':function(_0x29b14b,_0x51a050,_0x45361e){return _0x29b14b(_0x51a050,_0x45361e);},'Yqaqx':function(_0xe7dfca){return _0xe7dfca();},'wxSYV':'debug','MLqjP':function(_0x2fbbef){return _0x2fbbef();},'TJlhW':function(_0x2bd9e0,_0x5b0f0d){return _0x2bd9e0!==_0x5b0f0d;},'nrQUD':'passed','KelPl':function(_0x405b1d,_0x35af5b){return _0x405b1d+_0x35af5b;},'BWNvj':_0xe1b942(0x240),'DMxeD':_0xe1b942(0x231),'HIVLj':'Passed','QVXZB':_0xe1b942(0x242),'hddKv':_0xe1b942(0x244),'pQOBV':function(_0x336261,_0x330b0c,_0x1dca17){return _0x336261(_0x330b0c,_0x1dca17);},'LCTlm':_0xe1b942(0x203),'cBZTj':_0xe1b942(0x226)},_0x55719a='browserstack internal helper hook';this[_0xe1b942(0x25e)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0xce19d1[_0xe1b942(0x26b)]]),global[_0xe1b942(0x1fc)]=this[_0xe1b942(0x1f4)][_0xe1b942(0x245)]()['join'](_0xce19d1['nGLnM']),PerformanceTester[_0xe1b942(0x1ef)](PerformanceSdkEvents[_0xe1b942(0x217)],()=>{const _0x831221=_0xe1b942,_0x2f0e15={'GyCih':function(_0x4c4b21,_0x4a402c){const _0x10dcff=a36_0x58cc;return _0xce19d1[_0x10dcff(0x206)](_0x4c4b21,_0x4a402c);},'mfBFU':_0xce19d1['nrQUD'],'XAqTZ':function(_0xad909b,_0x324a31,_0x319a9a){return _0xce19d1['kyrfv'](_0xad909b,_0x324a31,_0x319a9a);},'TJZIz':function(_0x56b33d,_0x45ef70){return _0xce19d1['KelPl'](_0x56b33d,_0x45ef70);},'pswKG':_0xce19d1['BWNvj'],'SBHXr':_0xce19d1['DMxeD'],'CdZkl':function(_0x424b03,_0x425a26,_0x5dd8bd){return _0xce19d1['kyrfv'](_0x424b03,_0x425a26,_0x5dd8bd);},'kSezj':_0xce19d1['HIVLj'],'FBqRP':_0xce19d1[_0x831221(0x1e4)],'xozkW':function(_0x58e85d){const _0x506fc1=_0x831221;return _0xce19d1[_0x506fc1(0x24a)](_0x58e85d);}},_0xf94112=async(_0x554e95,_0x4b327f)=>{const _0x3cb6e6=_0x831221;await global[_0x3cb6e6(0x1d4)][0x0]['executeScript'](_0x3cb6e6(0x1dc)+_0x554e95+_0x3cb6e6(0x1e0)+_0x4b327f+_0x3cb6e6(0x26c));};new Promise(async _0x507d7b=>{const _0x519ddd=_0x831221,_0x43cab0={};_0x43cab0[_0x519ddd(0x21b)]=_0xce19d1[_0x519ddd(0x219)];const _0x28c21c=_0x43cab0;try{_0xce19d1[_0x519ddd(0x1ee)](global['__drivers']['length'],0x1)&&(await global[_0x519ddd(0x1f0)](),global[_0x519ddd(0x1d4)][_0x519ddd(0x1fa)](),global[_0x519ddd(0x1f3)]=[],global[_0x519ddd(0x201)]=![]);try{if(global[_0x519ddd(0x237)]&&_0xce19d1[_0x519ddd(0x20f)](global[_0x519ddd(0x213)],_0xce19d1[_0x519ddd(0x235)])&&global[_0x519ddd(0x1d4)][0x0]){const _0x3fe366=_0xce19d1['vtbYc'](global[_0x519ddd(0x255)][_0x519ddd(0x1cc)],0x0)?!!global[_0x519ddd(0x255)][0x0]['app']||!!global['capabilities'][0x0][_0xce19d1['pMfXn']]:![],_0x2c6590={};_0x2c6590['app']=_0x3fe366,await _0xce19d1[_0x519ddd(0x269)](percyAutoCapture,global['__drivers'][0x0],_0xce19d1[_0x519ddd(0x235)],_0x2c6590);}}catch(_0x216d05){logger[_0x519ddd(0x241)](_0x519ddd(0x1de)+_0x216d05);}!global[_0x519ddd(0x262)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x519ddd(0x230)],async()=>{const _0x9c66c3=_0x519ddd;await global['__drivers'][0x0][_0x9c66c3(0x1df)](_0x9c66c3(0x1e8)+JSON['stringify'](this['currentTest'][_0x9c66c3(0x245)]()[_0x9c66c3(0x216)](_0x28c21c['XSPHM']))+'}}');})(),global[_0x519ddd(0x1d4)][0x0][_0x519ddd(0x1db)]=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents['SESSION_STATUS'],async()=>{const _0x5d5be6=_0x519ddd,_0xea8489=_0x2f0e15[_0x5d5be6(0x1da)](this[_0x5d5be6(0x1f4)][_0x5d5be6(0x1f2)],_0x2f0e15[_0x5d5be6(0x253)]);_0xea8489?(global[_0x5d5be6(0x201)]=!![],global['__error_messages__'][_0x5d5be6(0x24c)](this[_0x5d5be6(0x1f4)][_0x5d5be6(0x1d0)][_0x5d5be6(0x250)]),await _0x2f0e15[_0x5d5be6(0x260)](_0xf94112,JSON[_0x5d5be6(0x1f6)](_0x2f0e15[_0x5d5be6(0x249)](_0x2f0e15[_0x5d5be6(0x254)],this[_0x5d5be6(0x1f4)]['err'][_0x5d5be6(0x250)])),_0x2f0e15[_0x5d5be6(0x1d6)])):await _0x2f0e15[_0x5d5be6(0x1e7)](_0xf94112,JSON['stringify'](_0x2f0e15[_0x5d5be6(0x233)]),_0x2f0e15[_0x5d5be6(0x258)]);})();}catch(_0x16dd77){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x16dd77);}try{if(this[_0x519ddd(0x1f4)][_0x519ddd(0x21e)]&&globals[_0x519ddd(0x224)](_0xce19d1['Wmbqo'])&&globals[_0x519ddd(0x224)](_0xce19d1[_0x519ddd(0x1e6)])){logger['info'](_0xce19d1['ljylP']);const _0x1f6050={};_0x1f6050[_0x519ddd(0x209)]=this[_0x519ddd(0x1f4)][_0x519ddd(0x267)],_0x1f6050['thBuildUuid']=process[_0x519ddd(0x23a)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']],_0x1f6050['thJwtToken']=process[_0x519ddd(0x23a)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_JWT']];const _0x4203b8=_0x1f6050;logger[_0x519ddd(0x241)](_0x519ddd(0x24b)+JSON[_0x519ddd(0x1f6)](_0x4203b8)),logger[_0x519ddd(0x241)](_0xce19d1[_0x519ddd(0x263)]);const _0x1783a1={};_0x1783a1['command']=_0xce19d1['mjCYa'];const _0xac8595=await PerformanceTester[_0x519ddd(0x1ef)](PerformanceA11yEvents[_0x519ddd(0x270)],async()=>{const _0x5acfad=_0x519ddd;return await accessibilityRetryHelper[_0x5acfad(0x1cd)](global[_0x5acfad(0x1d4)][0x0],global[_0x5acfad(0x257)]);},_0x1783a1)();_0xac8595?logger[_0x519ddd(0x241)](_0xce19d1[_0x519ddd(0x24e)]):logger[_0x519ddd(0x218)](_0xce19d1['GZMFn']);const _0x46e48e=await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x519ddd(0x26d)],async()=>{const _0x2ee788=_0x519ddd;return await accessibilityRetryHelper['saveAccessibilityResultsWithRetry'](global[_0x2ee788(0x1d4)][0x0],_0x4203b8);})();_0x46e48e?logger[_0x519ddd(0x241)](_0xce19d1[_0x519ddd(0x1d9)]):logger['warn'](_0xce19d1['ZyjjH']),logger[_0x519ddd(0x242)](_0xce19d1[_0x519ddd(0x24d)]);}}catch(_0x1f0e93){logger[_0x519ddd(0x231)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this['currentTest'][_0x519ddd(0x245)]()+'.\x20Error\x20:',_0x1f0e93);}try{try{if(_0xce19d1[_0x519ddd(0x24a)](shouldProcessEventForTesthub)){global[_0x519ddd(0x1d4)][0x0]&&await _0xce19d1[_0x519ddd(0x1e5)](sendPlatformDetails,global['__drivers'][0x0],this[_0x519ddd(0x1f4)]?this[_0x519ddd(0x1f4)]['testAnalyticsId']:null);if(_0xce19d1[_0x519ddd(0x1fb)](isBrowserstackInfra)){PerformanceTester[_0x519ddd(0x25c)](PerformanceO11yEvents[_0x519ddd(0x21f)]);const _0x527051=_0x519ddd(0x1f7)+Date[_0x519ddd(0x1ff)]();await _0xce19d1[_0x519ddd(0x1e5)](_0xf94112,JSON[_0x519ddd(0x1f6)](_0x527051),_0xce19d1['wxSYV']),PerformanceTester[_0x519ddd(0x1f8)](PerformanceO11yEvents['SYNC']);}}}catch(_0x3e8d62){logger[_0x519ddd(0x241)](_0x519ddd(0x223)+_0x3e8d62),PerformanceTester[_0x519ddd(0x1f8)](PerformanceO11yEvents['SYNC'],![],_0x3e8d62);}_0xce19d1[_0x519ddd(0x1d1)](global[_0x519ddd(0x1d4)][0x0]['quitCount_'],0x0)&&await global[_0x519ddd(0x1f0)]();}catch(_0x5393a6){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x5393a6);}_0xce19d1[_0x519ddd(0x1d7)](_0x507d7b);})['then'](()=>{const _0x52178f=_0x831221;_0x2f0e15[_0x52178f(0x1fe)](_0x5ab2e7);});},{'platform':_0xce19d1[_0xe1b942(0x232)](nestedKeyValue,global[_0xe1b942(0x23c)],[_0xce19d1['LCTlm']]),'hookType':_0xce19d1['cBZTj']})();},'afterAll'(_0x35c6c3){const _0x3760e5=a36_0x1a44e5,_0x58848f={'tgomg':function(_0x43ca0d){return _0x43ca0d();},'LWABf':function(_0x1d2823){return _0x1d2823();},'TdbQa':'Mocha','SJAKh':function(_0x1639b1,_0x495cfb,_0x497afc){return _0x1639b1(_0x495cfb,_0x497afc);},'gBdZg':_0x3760e5(0x203),'AybMq':_0x3760e5(0x243)},_0x4e65f0='browserstack internal helper hook';this[_0x3760e5(0x25e)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x58848f[_0x3760e5(0x225)]]),PerformanceTester[_0x3760e5(0x1ef)](PerformanceSdkEvents[_0x3760e5(0x217)],()=>{const _0x1fb128=_0x3760e5,_0x1d9c21={'pihDR':function(_0x216adc){const _0x568fa6=a36_0x58cc;return _0x58848f[_0x568fa6(0x21a)](_0x216adc);}};new Promise(async _0x217636=>{await global['driverCleanup'](),_0x58848f['tgomg'](_0x217636);})[_0x1fb128(0x259)]()[_0x1fb128(0x229)](()=>{_0x1d9c21['pihDR'](_0x35c6c3);});},{'platform':_0x58848f['SJAKh'](nestedKeyValue,global[_0x3760e5(0x23c)],[_0x58848f[_0x3760e5(0x268)]]),'hookType':_0x58848f[_0x3760e5(0x1e3)]})();}};
|
|
1
|
+
function a36_0x429e(){const _0x4acc02=['2347766VoQokB','end','YFSle','afterAll','vycRV','BROWSERSTACK_TESTHUB_JWT','SESSION_STATUS','warn','yUJmU','fyKMD','shouldScanTestForAccessibility','Pswhl','38085vsdkBL','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','abIcC','VXkYA','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','gIyJa','tjDHj','SYNC','executeScript','588806cnUhBy','afterTest','mochaHooks','HhNfJ','message','err','bstackA11yShouldScan','cFtji','browserstackSessionName','CHHPx','Failed\x20to\x20store\x20session\x20name:\x20','stringify','4996UBqukR','timeout','performScanWithRetry','../../helpers/performance/constants','COBko','zsnKL','RhcFh','../../helpers/testhub/utils','Automate\x20test\x20case\x20execution\x20has\x20started.','../utils/constants','Mocha','../../helpers/accessibility-automation/helper','Accessibility\x20scan\x20completed\x20successfully','pkjnA','error','__skipSessionName','pGLIw','\x20|\x20','driverCleanup','then',',\x22level\x22:\x20\x22','38816DCAAAR','Passed','browserstackTestName','protocol','JeLMN','thJwtToken','capabilities','ALaRy','../../helpers/globals','isArray','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','hQfBt','failed','11uXwbWm','FSgMC','\x20-\x20','Accessibility\x20results\x20saved\x20successfully','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','currentTest','qtaCx','fiCaK','GaZuj','testcase','__sessionFailed','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','passed','shift','beforeEach','__platformCaps','index','4874166rilXOi','EbXzA','cBzTj','ePgBJ','VYZpB','.\x20Error\x20:','env','__error_messages__','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','FTUXD','yvLgz','kFUED','TSnfG','sessionNameSet__','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','PERFORM_SCAN','length','1689TyVNWR','now','titlePath','format','LqxeW','uLaQu','oTytk','util','29834850JepfDp','MVeNY','fGoVR','../../helpers/performance/performance-tester','startMonitoring','daDKE','FDNid','NRnZU','measureWrapper','yHtyl','ObservabilitySync:','getGlobal','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','appium:app','AnhJi','afterEach','138WHFOQp','ExMUF','RgcWX','tsHIj','beforeAll','__drivers','accessibilityScanStarted','finally','thBuildUuid','debug','XGxFI','testAnalyticsId','./test-observability/mochaUtils','gdQBV','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','winstonLogger','qmgMq','noAbC','SDK_HOOK','uvvGJ','YonLT','833lDtTpx','sJMjT','Vxkmr','quitCount_','AyxFb','LjFgM','JddKQ','FWOVa','GZfmN','initQuit','join','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','info','session_','http:','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','state','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','isAccessibilityPlatform'];a36_0x429e=function(){return _0x4acc02;};return a36_0x429e();}const a36_0x48837e=a36_0x2a60;(function(_0x53648e,_0x24f2da){const _0x166012=a36_0x2a60,_0x1ad0b8=_0x53648e();while(!![]){try{const _0x1bdc4f=-parseInt(_0x166012(0x112))/0x1+-parseInt(_0x166012(0xfd))/0x2+-parseInt(_0x166012(0x162))/0x3*(-parseInt(_0x166012(0x11e))/0x4)+-parseInt(_0x166012(0x109))/0x5*(parseInt(_0x166012(0x17a))/0x6)+-parseInt(_0x166012(0xea))/0x7*(parseInt(_0x166012(0x133))/0x8)+-parseInt(_0x166012(0x151))/0x9+parseInt(_0x166012(0x16a))/0xa*(parseInt(_0x166012(0x140))/0xb);if(_0x1bdc4f===_0x24f2da)break;else _0x1ad0b8['push'](_0x1ad0b8['shift']());}catch(_0x1e15ce){_0x1ad0b8['push'](_0x1ad0b8['shift']());}}}(a36_0x429e,0x99c46));const util=require(a36_0x48837e(0x169)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a36_0x48837e(0x129)),accessibilityRetryHelper=require('../../helpers/accessibility-automation/accessibilityRetryHelper'),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a36_0x48837e(0x127)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a36_0x48837e(0xe1)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a36_0x48837e(0x16d)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x48837e(0x121)),globals=require(a36_0x48837e(0x13b)),logger=require('../../helpers/logger')[a36_0x48837e(0xe4)],{shouldProcessEventForTesthub}=require(a36_0x48837e(0x125)),testHubConstants=require('../../helpers/testhub/constants');function a36_0x2a60(_0x5b3f76,_0x3eccb8){const _0x429e52=a36_0x429e();return a36_0x2a60=function(_0x2a6015,_0x5bace5){_0x2a6015=_0x2a6015-0xdb;let _0x1c1ff4=_0x429e52[_0x2a6015];return _0x1c1ff4;},a36_0x2a60(_0x5b3f76,_0x3eccb8);}exports[a36_0x48837e(0x114)]={'beforeAll'(){const _0x17e629=a36_0x48837e,_0x5532e1={'LjFgM':function(_0x4a9ee3,_0x351781,_0x20cd3f,_0x31a4c2){return _0x4a9ee3(_0x351781,_0x20cd3f,_0x31a4c2);},'XGxFI':_0x17e629(0x13f),'abIcC':_0x17e629(0x12f),'tWCAy':function(_0x159a53,_0x4c3684,_0x592e68){return _0x159a53(_0x4c3684,_0x592e68);},'HhNfJ':_0x17e629(0x14c),'uvvGJ':function(_0x2211d5){return _0x2211d5();},'AnhJi':function(_0x45a674,_0x4a276,_0x5729f2){return _0x45a674(_0x4a276,_0x5729f2);},'sJpXm':function(_0x23960d,_0x2e7973,_0x347ba3){return _0x23960d(_0x2e7973,_0x347ba3);},'sJMjT':_0x17e629(0x150),'FWOVa':_0x17e629(0x17e)};PerformanceTester[_0x17e629(0x16e)]();const _0x383a43='browserstack internal helper hook';PerformanceTester[_0x17e629(0x172)](PerformanceSdkEvents[_0x17e629(0xe7)],()=>{global['__error_messages__']=[],global['__sessionFailed']=![],global['driverCleanup']=async()=>{const _0x10c8a6=a36_0x2a60;let _0x49f6d8=![];try{await global[_0x10c8a6(0x17f)][0x0][_0x10c8a6(0xf7)],_0x49f6d8=!![],global['__sessionFailed']?await _0x5532e1[_0x10c8a6(0xef)](markSessionStatus,global['__drivers'][0x0],_0x5532e1[_0x10c8a6(0xdf)],global[_0x10c8a6(0x158)][_0x10c8a6(0xf4)](_0x5532e1[_0x10c8a6(0x10b)])):await _0x5532e1['tWCAy'](markSessionStatus,global[_0x10c8a6(0x17f)][0x0],_0x5532e1[_0x10c8a6(0x115)]);}catch(_0x3261a6){logger[_0x10c8a6(0xde)](_0x10c8a6(0xf9)+_0x3261a6);}global[_0x10c8a6(0x158)]=[],global[_0x10c8a6(0x14a)]=![];if(_0x49f6d8)try{try{_0x5532e1[_0x10c8a6(0xe8)](shouldProcessEventForTesthub)&&(global[_0x10c8a6(0x17f)][0x0]&&await _0x5532e1[_0x10c8a6(0x178)](sendPlatformDetails,global[_0x10c8a6(0x17f)][0x0],this[_0x10c8a6(0x145)]?this['currentTest']['testAnalyticsId']:null));}catch(_0x21859b){logger[_0x10c8a6(0xde)](_0x10c8a6(0x144)+_0x21859b);}await global[_0x10c8a6(0x17f)][0x0][_0x10c8a6(0xf3)]();}catch(_0x38a326){logger[_0x10c8a6(0xde)](_0x10c8a6(0xf5)+_0x38a326);}};},{'platform':_0x5532e1['sJpXm'](nestedKeyValue,global[_0x17e629(0x14f)],[_0x5532e1[_0x17e629(0xeb)]]),'hookType':_0x5532e1[_0x17e629(0xf1)]})();},'beforeEach'(_0x16b35a){const _0x42ba4f=a36_0x48837e,_0xb8e3c2={'hQfBt':function(_0x2120a8,_0x1751df){return _0x2120a8>_0x1751df;},'daDKE':_0x42ba4f(0x142),'ZnlbB':function(_0x350c23,_0x787231,_0x4dbd60){return _0x350c23(_0x787231,_0x4dbd60);},'LIZsX':'bstackA11yShouldScan','kFUED':function(_0xca6770){return _0xca6770();},'TOffE':_0x42ba4f(0xfc),'GaZuj':function(_0x456f3e,_0xf92199){return _0x456f3e===_0xf92199;},'qtaCx':_0x42ba4f(0xf8),'gdQBV':'https:','FSgMC':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','AyxFb':_0x42ba4f(0x126),'EbXzA':function(_0x1d85f2){return _0x1d85f2();},'zsnKL':_0x42ba4f(0x135),'LqxeW':'index','fyKMD':_0x42ba4f(0x14e)};globals['setGlobal'](_0xb8e3c2[_0x42ba4f(0x123)],this[_0x42ba4f(0x145)][_0x42ba4f(0x164)]()[_0x42ba4f(0xf4)](_0xb8e3c2[_0x42ba4f(0x16f)])),PerformanceTester[_0x42ba4f(0x172)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x52aa18=_0x42ba4f,_0x457a7d={'vycRV':function(_0x4ee88b){const _0x1f2b5d=a36_0x2a60;return _0xb8e3c2[_0x1f2b5d(0x152)](_0x4ee88b);}},_0x38f294='browserstack internal helper hook';new Promise(async _0x36be3e=>{const _0x28a7d6=a36_0x2a60;let _0x19fcd6=!![];try{_0xb8e3c2[_0x28a7d6(0x13e)](global['__drivers'][_0x28a7d6(0x161)],0x1)&&(await global[_0x28a7d6(0x130)](),global[_0x28a7d6(0x17f)][_0x28a7d6(0x14d)]()),_0xb8e3c2[_0x28a7d6(0x13e)](global['__drivers'][0x0][_0x28a7d6(0xed)],0x0)&&(_0x19fcd6=![],await global[_0x28a7d6(0x130)]());}catch(_0x348f86){logger[_0x28a7d6(0xde)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x348f86);}try{Array['isArray'](global[_0x28a7d6(0x17f)])&&global['__drivers'][0x0]&&(global[_0x28a7d6(0x17f)][0x0][_0x28a7d6(0x11a)]=this[_0x28a7d6(0x145)][_0x28a7d6(0x164)]()['join'](_0xb8e3c2[_0x28a7d6(0x16f)])),global[_0x28a7d6(0x11a)]=this[_0x28a7d6(0x145)][_0x28a7d6(0x164)]()['join'](_0xb8e3c2['daDKE']);}catch(_0x54501d){logger[_0x28a7d6(0xde)](_0x28a7d6(0x11c)+_0x54501d);}this[_0x28a7d6(0x145)][_0x28a7d6(0x107)]=_0xb8e3c2['ZnlbB'](shouldScanTestForAccessibility,this[_0x28a7d6(0x145)][_0x28a7d6(0x164)](),!![]),globals['setGlobal'](_0xb8e3c2['LIZsX'],this['currentTest'][_0x28a7d6(0x107)]),this[_0x28a7d6(0x145)]['accessibilityScanStarted']=!![];if(_0xb8e3c2['kFUED'](isAccessibilityAutomationSession)&&_0x19fcd6&&Array[_0x28a7d6(0x13c)](global['__drivers'])&&_0xb8e3c2['hQfBt'](global['__drivers']['length'],0x0)&&globals[_0x28a7d6(0x175)](_0xb8e3c2['TOffE']))try{const _0x499d28=await global[_0x28a7d6(0x17f)][0x0]['session_'];if(_0x499d28){let _0x47831b=!![];const _0x4e8cc8=await global[_0x28a7d6(0x17f)][0x0]['getCurrentUrl']();let _0x54663b;try{_0x54663b=new URL(_0x4e8cc8);}catch(_0x1e2e60){_0x47831b=![];}_0x47831b=_0xb8e3c2[_0x28a7d6(0x148)](_0x54663b[_0x28a7d6(0x136)],_0xb8e3c2[_0x28a7d6(0x146)])||_0xb8e3c2['GaZuj'](_0x54663b['protocol'],_0xb8e3c2[_0x28a7d6(0xe2)]),_0x47831b&&(this['currentTest'][_0x28a7d6(0x107)]&&logger[_0x28a7d6(0xf6)](_0xb8e3c2[_0x28a7d6(0x141)])),this[_0x28a7d6(0x145)][_0x28a7d6(0xdb)]=this['currentTest'][_0x28a7d6(0x107)],this[_0x28a7d6(0x145)]['shouldScanTestForAccessibility']&&logger[_0x28a7d6(0xf6)](_0xb8e3c2[_0x28a7d6(0xee)]);}}catch(_0x52600c){logger['error']('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x28a7d6(0x165)](_0x52600c));}_0xb8e3c2[_0x28a7d6(0x15c)](_0x36be3e);})[_0x52aa18(0x131)](()=>{const _0x538def=_0x52aa18;_0x457a7d[_0x538def(0x101)](_0x16b35a);});},{'platform':_0xb8e3c2['ZnlbB'](nestedKeyValue,global['__platformCaps'],[_0xb8e3c2[_0x42ba4f(0x166)]]),'hookType':_0xb8e3c2[_0x42ba4f(0x106)]})();},'afterEach'(_0x7e806e){const _0x5bfab1=a36_0x48837e,_0x699ae={'tsHIj':function(_0x237e02,_0x37e377){return _0x237e02>_0x37e377;},'JMVQD':function(_0x341751,_0x3ecde2){return _0x341751===_0x3ecde2;},'Vxkmr':_0x5bfab1(0x149),'JddKQ':function(_0x5ed1a9,_0x2bf4c0){return _0x5ed1a9>_0x2bf4c0;},'fLvsO':_0x5bfab1(0x177),'TSnfG':function(_0x3eb257,_0x3b5f02,_0x2e36bb,_0x1ad72e){return _0x3eb257(_0x3b5f02,_0x2e36bb,_0x1ad72e);},'yUJmU':'isAccessibilityPlatform','noAbC':_0x5bfab1(0x118),'RhcFh':_0x5bfab1(0x10a),'EZNNu':'Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','uLaQu':_0x5bfab1(0x113),'gIyJa':_0x5bfab1(0x12a),'itQJZ':'Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','PWwML':_0x5bfab1(0x143),'ALaRy':_0x5bfab1(0x13d),'pGLIw':_0x5bfab1(0x10d),'Pswhl':function(_0x1c2bef){return _0x1c2bef();},'fiCaK':function(_0xd97aba,_0x4ab1ab,_0x323f37){return _0xd97aba(_0x4ab1ab,_0x323f37);},'JeLMN':function(_0x5cd115){return _0x5cd115();},'ePgBJ':_0x5bfab1(0xde),'oTytk':function(_0x433089,_0x56ee12){return _0x433089>_0x56ee12;},'VXkYA':'\x20-\x20','COBko':function(_0x3f1f43,_0x197a8f){return _0x3f1f43!==_0x197a8f;},'FTUXD':_0x5bfab1(0x14c),'VYZpB':function(_0x4930db,_0x26b738,_0x1f959a){return _0x4930db(_0x26b738,_0x1f959a);},'MVeNY':function(_0x114514,_0x2d3d95){return _0x114514+_0x2d3d95;},'LBIVb':'Failed:\x20','NRnZU':_0x5bfab1(0x12c),'kVlKS':_0x5bfab1(0x134),'cBzTj':_0x5bfab1(0xf6),'fGoVR':_0x5bfab1(0x128),'zIfQC':function(_0xb9950,_0x313d8c,_0x58a8f3){return _0xb9950(_0x313d8c,_0x58a8f3);},'JRgCx':_0x5bfab1(0x150),'CHHPx':_0x5bfab1(0x179)},_0x401f76='browserstack internal helper hook';this[_0x5bfab1(0x11f)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x699ae[_0x5bfab1(0x16c)]]),global['sessionName']=this['currentTest'][_0x5bfab1(0x164)]()[_0x5bfab1(0xf4)](_0x699ae[_0x5bfab1(0x10c)]),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x5bfab1(0xe7)],()=>{const _0x4fffb4=_0x5bfab1,_0x2996c8={'YFSle':_0x699ae['VXkYA'],'yHtyl':function(_0x110a31,_0x10962b){const _0x2c4aef=a36_0x2a60;return _0x699ae[_0x2c4aef(0x122)](_0x110a31,_0x10962b);},'GZfmN':_0x699ae[_0x4fffb4(0x15a)],'qmgMq':function(_0xc79c2c,_0x28bfaf,_0x26ca74){const _0x3aa797=_0x4fffb4;return _0x699ae[_0x3aa797(0x155)](_0xc79c2c,_0x28bfaf,_0x26ca74);},'tjDHj':function(_0x373b59,_0x11d085){const _0x7e71d8=_0x4fffb4;return _0x699ae[_0x7e71d8(0x16b)](_0x373b59,_0x11d085);},'dzNIK':_0x699ae['LBIVb'],'cFtji':_0x699ae[_0x4fffb4(0x171)],'wrbSD':_0x699ae['kVlKS'],'pJTrO':_0x699ae[_0x4fffb4(0x153)]},_0x21d58e=async(_0x4e01d2,_0x684443)=>{const _0x7c2cea=_0x4fffb4;await global['__drivers'][0x0]['executeScript'](_0x7c2cea(0xe3)+_0x4e01d2+_0x7c2cea(0x132)+_0x684443+'\x22}}');};new Promise(async _0x5b17c1=>{const _0x488a89=_0x4fffb4;try{_0x699ae[_0x488a89(0x17d)](global['__drivers'][_0x488a89(0x161)],0x1)&&(await global[_0x488a89(0x130)](),global['__drivers'][_0x488a89(0x14d)](),global['__error_messages__']=[],global[_0x488a89(0x14a)]=![]);try{if(global['percy']&&_0x699ae['JMVQD'](global['percyCaptureMode'],_0x699ae['Vxkmr'])&&global['__drivers'][0x0]){const _0x48e6a5=_0x699ae[_0x488a89(0xf0)](global[_0x488a89(0x139)][_0x488a89(0x161)],0x0)?!!global[_0x488a89(0x139)][0x0]['app']||!!global[_0x488a89(0x139)][0x0][_0x699ae['fLvsO']]:![],_0x43b305={};_0x43b305['app']=_0x48e6a5,await _0x699ae[_0x488a89(0x15d)](percyAutoCapture,global[_0x488a89(0x17f)][0x0],_0x699ae[_0x488a89(0xec)],_0x43b305);}}catch(_0x5a176b){logger['debug'](_0x488a89(0x14b)+_0x5a176b);}!global[_0x488a89(0x12d)]&&(await PerformanceTester[_0x488a89(0x172)](PerformanceAutEvents['SESSION_NAME'],async()=>{const _0x17258b=_0x488a89;await global['__drivers'][0x0][_0x17258b(0x111)](_0x17258b(0xfb)+JSON['stringify'](this['currentTest'][_0x17258b(0x164)]()[_0x17258b(0xf4)](_0x2996c8[_0x17258b(0xff)]))+'}}');})(),global[_0x488a89(0x17f)][0x0][_0x488a89(0x15e)]=!![]),await PerformanceTester[_0x488a89(0x172)](PerformanceAutEvents[_0x488a89(0x103)],async()=>{const _0x35f5d6=_0x488a89,_0x28594c=_0x2996c8[_0x35f5d6(0x173)](this['currentTest'][_0x35f5d6(0xfa)],_0x2996c8[_0x35f5d6(0xf2)]);_0x28594c?(global['__sessionFailed']=!![],global[_0x35f5d6(0x158)]['push'](this[_0x35f5d6(0x145)][_0x35f5d6(0x117)][_0x35f5d6(0x116)]),await _0x2996c8[_0x35f5d6(0xe5)](_0x21d58e,JSON['stringify'](_0x2996c8[_0x35f5d6(0x10f)](_0x2996c8['dzNIK'],this[_0x35f5d6(0x145)][_0x35f5d6(0x117)][_0x35f5d6(0x116)])),_0x2996c8[_0x35f5d6(0x119)])):await _0x2996c8[_0x35f5d6(0xe5)](_0x21d58e,JSON['stringify'](_0x2996c8['wrbSD']),_0x2996c8['pJTrO']);})();}catch(_0xbfef0c){logger[_0x488a89(0xde)](_0x488a89(0x159)+_0xbfef0c);}try{if(this[_0x488a89(0x145)][_0x488a89(0xdb)]&&globals[_0x488a89(0x175)](_0x699ae[_0x488a89(0x105)])&&globals[_0x488a89(0x175)](_0x699ae[_0x488a89(0xe6)])){logger[_0x488a89(0xf6)](_0x699ae[_0x488a89(0x124)]);const _0xae97ba={};_0xae97ba['thTestRunUuid']=this[_0x488a89(0x145)][_0x488a89(0xe0)],_0xae97ba[_0x488a89(0xdd)]=process[_0x488a89(0x157)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']],_0xae97ba[_0x488a89(0x138)]=process[_0x488a89(0x157)][testHubConstants['ENV_VAR'][_0x488a89(0x102)]];const _0x43d171=_0xae97ba;logger['debug']('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x488a89(0x11d)](_0x43d171)),logger[_0x488a89(0xde)](_0x699ae['EZNNu']);const _0xcd4186={};_0xcd4186['command']=_0x699ae[_0x488a89(0x167)];const _0x3427c1=await PerformanceTester[_0x488a89(0x172)](PerformanceA11yEvents[_0x488a89(0x160)],async()=>{const _0x52434e=_0x488a89;return await accessibilityRetryHelper[_0x52434e(0x120)](global[_0x52434e(0x17f)][0x0],global[_0x52434e(0x11a)]);},_0xcd4186)();_0x3427c1?logger[_0x488a89(0xde)](_0x699ae[_0x488a89(0x10e)]):logger['warn'](_0x699ae['itQJZ']);const _0x434cf8=await PerformanceTester[_0x488a89(0x172)](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{const _0x200792=_0x488a89;return await accessibilityRetryHelper['saveAccessibilityResultsWithRetry'](global[_0x200792(0x17f)][0x0],_0x43d171);})();_0x434cf8?logger[_0x488a89(0xde)](_0x699ae['PWwML']):logger[_0x488a89(0x104)](_0x699ae[_0x488a89(0x13a)]),logger[_0x488a89(0xf6)](_0x699ae[_0x488a89(0x12e)]);}}catch(_0x3315fd){logger[_0x488a89(0x12c)](_0x488a89(0x176)+this['currentTest'][_0x488a89(0x164)]()+_0x488a89(0x156),_0x3315fd);}try{try{if(_0x699ae[_0x488a89(0x108)](shouldProcessEventForTesthub)){global[_0x488a89(0x17f)][0x0]&&await _0x699ae[_0x488a89(0x147)](sendPlatformDetails,global[_0x488a89(0x17f)][0x0],this[_0x488a89(0x145)]?this[_0x488a89(0x145)]['testAnalyticsId']:null);if(_0x699ae[_0x488a89(0x137)](isBrowserstackInfra)){PerformanceTester['start'](PerformanceO11yEvents[_0x488a89(0x110)]);const _0x1c0bd8=_0x488a89(0x174)+Date[_0x488a89(0x163)]();await _0x699ae[_0x488a89(0x147)](_0x21d58e,JSON[_0x488a89(0x11d)](_0x1c0bd8),_0x699ae[_0x488a89(0x154)]),PerformanceTester[_0x488a89(0xfe)](PerformanceO11yEvents[_0x488a89(0x110)]);}}}catch(_0x53d005){logger[_0x488a89(0xde)](_0x488a89(0x15f)+_0x53d005),PerformanceTester[_0x488a89(0xfe)](PerformanceO11yEvents[_0x488a89(0x110)],![],_0x53d005);}_0x699ae[_0x488a89(0x168)](global[_0x488a89(0x17f)][0x0][_0x488a89(0xed)],0x0)&&await global[_0x488a89(0x130)]();}catch(_0x4baaea){logger[_0x488a89(0xde)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x4baaea);}_0x699ae['Pswhl'](_0x5b17c1);})['then'](()=>{_0x699ae['Pswhl'](_0x7e806e);});},{'platform':_0x699ae['zIfQC'](nestedKeyValue,global[_0x5bfab1(0x14f)],[_0x699ae['JRgCx']]),'hookType':_0x699ae[_0x5bfab1(0x11b)]})();},'afterAll'(_0x3dff29){const _0x3a1f94=a36_0x48837e,_0x31718f={'YonLT':function(_0x5bbe37){return _0x5bbe37();},'RgcWX':function(_0x1274d5){return _0x1274d5();},'yvLgz':_0x3a1f94(0x128),'pkjnA':function(_0x55e883,_0x37b4c8,_0x42f3d7){return _0x55e883(_0x37b4c8,_0x42f3d7);},'ExMUF':_0x3a1f94(0x150),'LegLD':_0x3a1f94(0x100)},_0x5d6d00='browserstack internal helper hook';this[_0x3a1f94(0x11f)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x31718f[_0x3a1f94(0x15b)]]),PerformanceTester[_0x3a1f94(0x172)](PerformanceSdkEvents[_0x3a1f94(0xe7)],()=>{const _0x3f2bc0=_0x3a1f94,_0x3d0c04={'FDNid':function(_0x2cc766){const _0x558272=a36_0x2a60;return _0x31718f[_0x558272(0x17c)](_0x2cc766);}};new Promise(async _0x1ab513=>{const _0x5a0b22=a36_0x2a60;await global[_0x5a0b22(0x130)](),_0x31718f[_0x5a0b22(0xe9)](_0x1ab513);})['then']()[_0x3f2bc0(0xdc)](()=>{const _0x5253e0=_0x3f2bc0;_0x3d0c04[_0x5253e0(0x170)](_0x3dff29);});},{'platform':_0x31718f[_0x3a1f94(0x12b)](nestedKeyValue,global[_0x3a1f94(0x14f)],[_0x31718f[_0x3a1f94(0x17b)]]),'hookType':_0x31718f['LegLD']})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a37_0x827007=a37_0x51fa;(function(_0x5a1e4c,_0x12b3e9){const _0x5349f9=a37_0x51fa,_0x34a5b7=_0x5a1e4c();while(!![]){try{const _0x25fb88=parseInt(_0x5349f9(0x1f1))/0x1*(-parseInt(_0x5349f9(0x1e0))/0x2)+-parseInt(_0x5349f9(0x1d1))/0x3+-parseInt(_0x5349f9(0x1bb))/0x4*(-parseInt(_0x5349f9(0x1d0))/0x5)+parseInt(_0x5349f9(0x1fa))/0x6+-parseInt(_0x5349f9(0x1bf))/0x7+parseInt(_0x5349f9(0x1f6))/0x8*(-parseInt(_0x5349f9(0x1cf))/0x9)+parseInt(_0x5349f9(0x1ec))/0xa;if(_0x25fb88===_0x12b3e9)break;else _0x34a5b7['push'](_0x34a5b7['shift']());}catch(_0x323005){_0x34a5b7['push'](_0x34a5b7['shift']());}}}(a37_0x411d,0x18e24));function a37_0x51fa(_0x5c4f82,_0x2f30da){const _0x411d79=a37_0x411d();return a37_0x51fa=function(_0x51fa25,_0x1d383a){_0x51fa25=_0x51fa25-0x1ba;let _0x1c95aa=_0x411d79[_0x51fa25];return _0x1c95aa;},a37_0x51fa(_0x5c4f82,_0x2f30da);}const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),logger=require('../../helpers/logger')[a37_0x827007(0x1e2)],{default:BrowserStackSetup}=require(a37_0x827007(0x1e4)),helper=require('../../helpers/helper'),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x38194a,_0x3e1915)=>{const _0x2dc18f=a37_0x827007,_0x14e439={'WaiHn':_0x2dc18f(0x1e8),'mfhWo':_0x2dc18f(0x1d8),'HveUx':function(_0x1ccbaf,_0x4fa0cb){return _0x1ccbaf(_0x4fa0cb);},'HkYPy':_0x2dc18f(0x1e6)};let _0x247ac7=null,_0x20a837={};const _0x144e4e=_0x3e1915[_0x2dc18f(0x1f0)](_0x10cf6c=>_0x10cf6c===_0x2dc18f(0x1d2));if(!helper[_0x2dc18f(0x1e1)](_0x38194a['config'])&&fs[_0x2dc18f(0x1ee)](path[_0x2dc18f(0x1f9)](process[_0x2dc18f(0x1c5)](),_0x38194a[_0x2dc18f(0x1e3)])))_0x247ac7=path[_0x2dc18f(0x1f9)](process[_0x2dc18f(0x1c5)](),_0x38194a['config']),_0x3e1915[_0x2dc18f(0x1dc)](_0x144e4e,0x2);else{if(fs[_0x2dc18f(0x1ee)](path['join'](process[_0x2dc18f(0x1c5)](),_0x14e439[_0x2dc18f(0x1bd)])))_0x247ac7=path[_0x2dc18f(0x1f9)](process[_0x2dc18f(0x1c5)](),_0x14e439[_0x2dc18f(0x1bd)]);else fs[_0x2dc18f(0x1ee)](path['join'](process['cwd'](),_0x14e439[_0x2dc18f(0x1e9)]))&&(_0x247ac7=path['join'](process[_0x2dc18f(0x1c5)](),_0x14e439[_0x2dc18f(0x1e9)]));}return _0x247ac7?(logger[_0x2dc18f(0x1f3)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x247ac7),_0x20a837=_0x14e439['HveUx'](require,_0x247ac7)):logger[_0x2dc18f(0x1f3)](_0x14e439[_0x2dc18f(0x1d9)]),_0x20a837;},removeExistingEnvs=_0x2a4b57=>{const _0x16136a=a37_0x827007,_0x4b4995={};_0x4b4995['PfIqn']=function(_0x2b5c8c,_0x496319){return _0x2b5c8c>_0x496319;};const _0x3168f8=_0x4b4995;let _0x17d403=_0x2a4b57[_0x16136a(0x1f0)](_0x766ad3=>_0x766ad3===_0x16136a(0x1dd));_0x3168f8[_0x16136a(0x1de)](_0x17d403,-0x1)&&_0x2a4b57['splice'](_0x17d403,0x2),_0x17d403=_0x2a4b57[_0x16136a(0x1f0)](_0x37f4cc=>_0x37f4cc==='-e'),_0x3168f8[_0x16136a(0x1de)](_0x17d403,-0x1)&&_0x2a4b57[_0x16136a(0x1dc)](_0x17d403,0x2);};function run(_0x119cd2,_0x37ae14,_0x1d787c){const _0x7566aa=a37_0x827007,_0x1f57b8={'ighDC':_0x7566aa(0x1c9),'sIUVq':function(_0x4f7bf7,_0x2e9eda){return _0x4f7bf7+_0x2e9eda;},'muWWM':_0x7566aa(0x1e5),'alPIn':function(_0x2bac6f,_0x5d3ea2,_0x479a6f){return _0x2bac6f(_0x5d3ea2,_0x479a6f);},'ICZLv':_0x7566aa(0x1d7),'ipKfE':_0x7566aa(0x1bc),'VDAGc':function(_0x1e0923,_0x1c14f7){return _0x1e0923===_0x1c14f7;},'TEfiI':'nightwatch-browserstack.json','qcacm':function(_0x10628f,_0x55f385){return _0x10628f(_0x55f385);},'ccwFr':function(_0x1e2588,_0x3dfea8,_0x1133cc,_0x304a97){return _0x1e2588(_0x3dfea8,_0x1133cc,_0x304a97);},'Dqpwf':'nightwatch.cmd','kkzxg':_0x7566aa(0x1d2),'IuDOR':_0x7566aa(0x1dd),'SEUHv':'inherit','knrsA':'close'};if(!_0x1d787c[_0x7566aa(0x1e3)])return;const _0x365058=_0x1f57b8[_0x7566aa(0x1c3)](getUserNightwatchConfigs,_0x119cd2,_0x37ae14),_0x538575={};_0x538575['start_process']=![];const _0x2065ca={};_0x2065ca[_0x7566aa(0x1c6)]=_0x1f57b8['ICZLv'],_0x2065ca[_0x7566aa(0x1c7)]=0x1bb;const _0x3c13de={};_0x3c13de[_0x7566aa(0x1fb)]=_0x538575,_0x3c13de[_0x7566aa(0x1d4)]=_0x2065ca;const _0x2d6d8b=_0x3c13de;logger[_0x7566aa(0x1f3)](_0x1f57b8[_0x7566aa(0x1da)]);const _0x46ba71={..._0x365058},_0x593a05=_0x46ba71,_0x1beea4=helper[_0x7566aa(0x1ce)](_0x1d787c[_0x7566aa(0x1e3)]),_0x3fd61f=[];_0x1d787c[_0x7566aa(0x1e3)][_0x7566aa(0x1e7)][_0x7566aa(0x1d5)]((_0x571de2,_0x4f4426)=>{const _0x33931c=_0x7566aa;_0x1beea4?_0x3fd61f[_0x33931c(0x1cd)](helper[_0x33931c(0x1d6)](_0x1d787c['config'],_0x1f57b8[_0x33931c(0x1c8)],_0x4f4426)):_0x3fd61f['push'](helper[_0x33931c(0x1f8)](_0x1d787c['config'],_0x1f57b8[_0x33931c(0x1c8)],_0x4f4426));});const _0x1a6585={},_0x23ab28=[];_0x119cd2['env']=_0x119cd2[_0x7566aa(0x1eb)]||_0x119cd2['e'];const _0x54ba7c=_0x119cd2[_0x7566aa(0x1eb)]?_0x119cd2['env'][_0x7566aa(0x1f4)]()[_0x7566aa(0x1d3)](',')[_0x7566aa(0x1c0)](_0x251742=>_0x251742[_0x7566aa(0x1f4)]())[_0x7566aa(0x1f7)](_0x3a0ffd=>_0x3a0ffd!==''):[''];_0x1f57b8[_0x7566aa(0x1ea)](_0x54ba7c['length'],0x0)&&_0x54ba7c[_0x7566aa(0x1cd)]('');_0x54ba7c[_0x7566aa(0x1d5)](_0x610242=>{_0x3fd61f['forEach'](_0x5cf4ff=>{const _0x255a14=a37_0x51fa;let _0xd79ba8=_0x1f57b8['sIUVq'](helper['getPlatformName'](_0x5cf4ff,'_'),'_'+Date[_0x255a14(0x1c2)]());_0x610242&&(_0xd79ba8+='_'+_0x610242);if(_0x610242&&(!_0x365058[_0x1f57b8[_0x255a14(0x1f2)]]||!_0x365058[_0x1f57b8[_0x255a14(0x1f2)]][_0x610242]))return;const _0x3bd70f={..._0x2d6d8b};_0x3bd70f[_0x255a14(0x1ef)]=_0x5cf4ff;const _0x3cdab4=_0x3bd70f;_0x1a6585[_0xd79ba8]=_0x610242?helper['mergeDeep'](_0x365058[_0x1f57b8[_0x255a14(0x1f2)]][_0x610242],_0x3cdab4):_0x3cdab4,_0x23ab28[_0x255a14(0x1cd)](_0xd79ba8);});});!_0x593a05[_0x7566aa(0x1e5)]&&(_0x593a05[_0x7566aa(0x1e5)]={});_0x593a05['test_settings']={..._0x593a05['test_settings'],..._0x1a6585};const _0x28a9e1=path[_0x7566aa(0x1f9)](__dirname,_0x1f57b8['TEfiI']);fs['writeFileSync'](_0x28a9e1,JSON['stringify'](_0x593a05)),_0x1f57b8['qcacm'](removeExistingEnvs,_0x37ae14);const _0x2c5b32=_0x1f57b8['ccwFr'](spawn,/^win/[_0x7566aa(0x1ca)](process[_0x7566aa(0x1c1)])?_0x1f57b8[_0x7566aa(0x1ed)]:_0x1f57b8['ighDC'],[_0x1f57b8[_0x7566aa(0x1cc)],_0x28a9e1,..._0x37ae14[_0x7566aa(0x1ba)](0x1),_0x1f57b8[_0x7566aa(0x1be)],_0x23ab28[_0x7566aa(0x1f9)](',')],{'stdio':_0x1f57b8[_0x7566aa(0x1db)]});_0x2c5b32['on'](_0x1f57b8[_0x7566aa(0x1df)],async _0x4a47d5=>{const _0x20bbfc=_0x7566aa;logger['debug'](_0x20bbfc(0x1cb)+_0x4a47d5),logger[_0x20bbfc(0x1f3)]('Deleting\x20'+_0x28a9e1),fs[_0x20bbfc(0x1f5)](_0x28a9e1);});}function a37_0x411d(){const _0x2cfd30=['IuDOR','1119972BnVmLW','map','platform','now','alPIn','exports','cwd','host','port','ighDC','nightwatch','test','child\x20process\x20exited\x20with\x20code\x20','kkzxg','push','useW3C','873XdguCp','20Xdyfif','503835AHnuyx','--config','split','selenium','forEach','modifyBrowserStackW3CCaps','hub.browserstack.com','nightwatch.json','HkYPy','ipKfE','SEUHv','splice','--env','PfIqn','knrsA','43366lexAng','isUndefined','winstonLogger','config','../../helpers/BrowserStackSetup','test_settings','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','platforms','nightwatch.conf.js','mfhWo','VDAGc','env','5344770AkzzXf','Dqpwf','existsSync','desiredCapabilities','findIndex','4BXopXu','muWWM','info','trim','unlinkSync','11976IVKwkM','filter','modifyBrowserStackCaps','join','760758BWmxax','webdriver','slice','536jcYmkt','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','WaiHn'];a37_0x411d=function(){return _0x2cfd30;};return a37_0x411d();}module[a37_0x827007(0x1c4)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38_0x532014=a38_0x56df;(function(_0x4f2386,_0x3d7b34){const _0x4b36c0=a38_0x56df,_0x4bf256=_0x4f2386();while(!![]){try{const _0x272b0b=-parseInt(_0x4b36c0(0x208))/0x1+-parseInt(_0x4b36c0(0x1d2))/0x2*(-parseInt(_0x4b36c0(0x1e5))/0x3)+parseInt(_0x4b36c0(0x20c))/0x4*(-parseInt(_0x4b36c0(0x1dd))/0x5)+-parseInt(_0x4b36c0(0x1db))/0x6*(-parseInt(_0x4b36c0(0x20a))/0x7)+-parseInt(_0x4b36c0(0x1fc))/0x8+parseInt(_0x4b36c0(0x1c3))/0x9+parseInt(_0x4b36c0(0x1d0))/0xa;if(_0x272b0b===_0x3d7b34)break;else _0x4bf256['push'](_0x4bf256['shift']());}catch(_0x28e799){_0x4bf256['push'](_0x4bf256['shift']());}}}(a38_0x5b64,0x51cdc));const util=require(a38_0x532014(0x1b8)),logger=require('../../helpers/logger')[a38_0x532014(0x1d6)],{isAccessibilityAutomationSession}=require(a38_0x532014(0x1d1)),{isUndefined,isBrowserstackInfra}=require(a38_0x532014(0x1ea)),scripts=require(a38_0x532014(0x1bc)),PerformanceTester=require(a38_0x532014(0x1b7)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x532014(0x1c6));function a38_0x56df(_0x342d57,_0x1b4a26){const _0x5b6403=a38_0x5b64();return a38_0x56df=function(_0x56dfdc,_0x4a48b7){_0x56dfdc=_0x56dfdc-0x199;let _0x210d22=_0x5b6403[_0x56dfdc];return _0x210d22;},a38_0x56df(_0x342d57,_0x1b4a26);}function a38_0x5b64(){const _0x4b5d86=['peHmG','tuWxi','playwright-chromium','wsEndpoint','accessibilityOptions','dMUvm','evaluate','browser_version','608942yuGUKf','AHtoe','364532KDJQEB','sDYfy','1028vxOUDY','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','setAccessibilityCapabilities','connectOptions','(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','dkAGX','env','NeRhW','BgfAE','BS_A11Y_JWT','BDLPr','replace','MOWSo','KwcLv','platformValidation','format','FVESf','hhjkH','includeIssueType','vUCYb','jyftX','PvXhe','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','JFCbG','accessibilityPlatform','diNEy','name','getAccessibilityResultsSummary','chrome','stringify','command','FYRnU','__workerDetails','warn','testInfo','../../helpers/performance/performance-tester','util','qRxgE','YxzEm','workerInfo','../../helpers/accessibility-automation/scripts','SGPUx','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','browserStackEvaluate','accessibilityOptions.includeIssueType.bestPractice','qhkDq','project','5535981vTIGxx','hocTR','debug','../../helpers/performance/constants','accessibilityOptions.scannerProcessingTimeout','url','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','executeScript','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','jsHDC','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','accessibilityOptions.includeIssueType.needsReview','deviceName','6094870mhDCvY','../../helpers/accessibility-automation/helper','162696Xrcvrz','ZaWPO','browserName','accessibilityOptions.wcagVersion','winstonLogger','Playwright','OfDMo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Tbwkm','42BLoOxd','currentTest','10680HwRtZt','hPvAt','use','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','PERFORM_SCAN','wcagVersion','IggjI','OqMyu','3YtIgPR','scannerProcessingTimeout','measureWrapper','sLqkA','QXXiA','../../helpers/helper','constructor','browserstack.accessibility','browser','mZbJd','Performing\x20scan\x20with\x20method:\x20','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','mWhsk','latest','illHp','pCSWO','wWiCa','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','accessibilityOptions.authToken','performScan','error','LIevi','1420112PDEELP','bstackSdkArgs','mpGts','\x20page:\x20'];a38_0x5b64=function(){return _0x4b5d86;};return a38_0x5b64();}exports[a38_0x532014(0x1bf)]=async(_0x3c45df,_0x9894e9,_0x541d3e={})=>{const _0x4ffc59=a38_0x532014,_0x99b917={};_0x99b917[_0x4ffc59(0x19b)]=_0x4ffc59(0x1fd);const _0x37560a=_0x99b917;return await _0x3c45df[_0x4ffc59(0x206)]('(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'+_0x9894e9['replace'](/arguments/g,_0x37560a['NeRhW'])+_0x4ffc59(0x1c9)+JSON[_0x4ffc59(0x1b1)](_0x541d3e)+')');},exports['browserStackExecuteDriver']=async(_0x23c736,_0x2485f1,_0x45d7e8={})=>{const _0xadc6bb=a38_0x532014,_0x18c77b={};_0x18c77b[_0xadc6bb(0x1a5)]=function(_0x5125bb,_0x461779){return _0x5125bb===_0x461779;},_0x18c77b[_0xadc6bb(0x1c1)]='WebDriver',_0x18c77b[_0xadc6bb(0x1b3)]=_0xadc6bb(0x1d7),_0x18c77b['AHtoe']='bstackSdkArgs';const _0x30dba8=_0x18c77b;if(_0x30dba8[_0xadc6bb(0x1a5)](_0x23c736[_0xadc6bb(0x1eb)][_0xadc6bb(0x1ae)],_0x30dba8[_0xadc6bb(0x1c1)]))return await _0x23c736['executeAsyncScript'](_0x2485f1,_0x45d7e8);else{if(_0x30dba8['hhjkH'](_0x23c736['constructor'][_0xadc6bb(0x1ae)],_0x30dba8['FYRnU']))return await _0x23c736[_0xadc6bb(0x1ca)](_0xadc6bb(0x210)+_0x2485f1[_0xadc6bb(0x19f)](/arguments/g,_0x30dba8[_0xadc6bb(0x209)])+_0xadc6bb(0x1e0)+JSON['stringify'](_0x45d7e8)+')');}},exports[a38_0x532014(0x20e)]=async _0x3889aa=>{const _0x5adc10=a38_0x532014,_0x3fb450={};_0x3fb450[_0x5adc10(0x1a0)]=_0x5adc10(0x1d5),_0x3fb450[_0x5adc10(0x1fe)]=_0x5adc10(0x1c7),_0x3fb450['hocTR']=_0x5adc10(0x1c0),_0x3fb450[_0x5adc10(0x1d3)]=_0x5adc10(0x1ce),_0x3fb450['JFCbG']=_0x5adc10(0x1f8),_0x3fb450[_0x5adc10(0x1e9)]='accessibilityOptions.scannerVersion';const _0x2def89=_0x3fb450;_0x3889aa[_0x5adc10(0x204)]&&(_0x3889aa[_0x5adc10(0x204)][_0x5adc10(0x1e2)]&&(_0x3889aa[_0x2def89[_0x5adc10(0x1a0)]]=_0x3889aa[_0x5adc10(0x204)][_0x5adc10(0x1e2)]),_0x3889aa['accessibilityOptions'][_0x5adc10(0x1e6)]&&(_0x3889aa[_0x2def89[_0x5adc10(0x1fe)]]=_0x3889aa[_0x5adc10(0x204)]['scannerProcessingTimeout']),_0x3889aa['accessibilityOptions'][_0x5adc10(0x1a6)]&&(_0x3889aa[_0x2def89[_0x5adc10(0x1c4)]]=_0x3889aa['accessibilityOptions']['includeIssueType']['bestPractice'],_0x3889aa[_0x2def89[_0x5adc10(0x1d3)]]=_0x3889aa[_0x5adc10(0x204)]['includeIssueType']['needsReview']));const _0x54ac4e=JSON['parse'](process['env'][_0x5adc10(0x1cb)])['scannerVersion'];_0x3889aa[_0x2def89[_0x5adc10(0x1ab)]]=process[_0x5adc10(0x19a)][_0x5adc10(0x19d)],_0x3889aa[_0x2def89['QXXiA']]=_0x54ac4e,delete _0x3889aa[_0x5adc10(0x204)];},exports['getAccessibilityResults']=async _0x5e2743=>{const _0x222fcb=a38_0x532014,_0x42f97c={};_0x42f97c['YxzEm']='No\x20accessibility\x20results\x20were\x20found.',_0x42f97c['illHp']=_0x222fcb(0x1cd);const _0x441822=_0x42f97c;if(global[_0x222fcb(0x1ac)])try{const details={'url':await _0x5e2743.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(_0x5e2743,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x5e2743,scripts.getResults);},{...details})();return res;}catch{return logger[_0x222fcb(0x1fa)](_0x441822[_0x222fcb(0x1ba)]),[];}else return logger[_0x222fcb(0x1b5)](_0x441822[_0x222fcb(0x1f3)]),[];},exports[a38_0x532014(0x1f9)]=async(_0x2fd59f,_0x35d569='')=>{const _0x304e58=a38_0x532014;logger[_0x304e58(0x1c5)](_0x304e58(0x1ef)+_0x35d569+_0x304e58(0x1ff)+_0x2fd59f);const _0x3fb3a0={'url':await _0x2fd59f[_0x304e58(0x1c8)](),'testhub_btcer_uuid':global[_0x304e58(0x1b4)]?.['currentTest']?.['id']};if(global[_0x304e58(0x1ac)])return await PerformanceTester[_0x304e58(0x1e7)](PerformanceA11yEvents[_0x304e58(0x1e1)],async()=>{const _0xc1eace=_0x304e58,_0x3af497={};_0x3af497[_0xc1eace(0x1b2)]=_0x35d569;const _0x4da946=await exports['browserStackEvaluate'](_0x2fd59f,scripts[_0xc1eace(0x1f9)],_0x3af497);return _0x4da946;},{'command':_0x35d569,..._0x3fb3a0})();},exports[a38_0x532014(0x1af)]=async _0x356c70=>{const _0x5721c9=a38_0x532014,_0x2470cb={};_0x2470cb[_0x5721c9(0x1fb)]='No\x20summaryResults\x20found.',_0x2470cb['tuWxi']=_0x5721c9(0x1aa);const _0x4b1a0c=_0x2470cb;if(global[_0x5721c9(0x1ac)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x356c70,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x356c70,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x5721c9(0x1c5)](_0x4b1a0c[_0x5721c9(0x1fb)]),{};}else return logger[_0x5721c9(0x1b5)](_0x4b1a0c[_0x5721c9(0x201)]),{};},exports[a38_0x532014(0x1a2)]=async _0x28c917=>{const _0x2fba39=a38_0x532014,_0x31af61={'KwcLv':function(_0x2d4892,_0x5bdfe3){return _0x2d4892!==_0x5bdfe3;},'diNEy':_0x2fba39(0x1f7),'peHmG':_0x2fba39(0x1b0),'Tbwkm':_0x2fba39(0x202),'PvXhe':'chromium','sLqkA':_0x2fba39(0x1f6),'jsHDC':function(_0xb483fd,_0xc2b326){return _0xb483fd(_0xc2b326);},'mWhsk':function(_0x5ce224){return _0x5ce224();},'OfDMo':function(_0x5386b8,_0x526e6d){return _0x5386b8<_0x526e6d;},'BDAPO':_0x2fba39(0x20d),'SGPUx':function(_0x5ccf1b,_0x2200a6){return _0x5ccf1b===_0x2200a6;},'HpUoA':'latest','OqMyu':function(_0x341bd9,_0x210d62){return _0x341bd9>_0x210d62;},'nVmds':_0x2fba39(0x1d9)};try{if(!_0x31af61[_0x2fba39(0x1a1)](_0x28c917[_0x2fba39(0x1cf)],''))return logger['warn'](_0x31af61[_0x2fba39(0x1ad)]),![];const _0x36479b=_0x28c917[_0x2fba39(0x1ed)];if(![_0x31af61[_0x2fba39(0x200)],_0x31af61[_0x2fba39(0x1da)],_0x31af61[_0x2fba39(0x1a9)]]['includes'](_0x36479b))return logger[_0x2fba39(0x1b5)](_0x31af61[_0x2fba39(0x1e8)]),![];const _0x56c719=_0x31af61[_0x2fba39(0x1cc)](parseInt,_0x28c917[_0x2fba39(0x207)]);!_0x31af61[_0x2fba39(0x1f1)](isBrowserstackInfra)&&(!_0x31af61[_0x2fba39(0x1d8)](_0x56c719,0x64)&&logger[_0x2fba39(0x1b5)](_0x31af61['BDAPO']));if(!(_0x31af61[_0x2fba39(0x1bd)](_0x56c719,_0x31af61['HpUoA'])||_0x31af61[_0x2fba39(0x1e4)](_0x56c719,0x5e)))return logger['warn'](_0x31af61['nVmds']),![];}catch(_0x173fb6){logger[_0x2fba39(0x1c5)](_0x2fba39(0x1be)+util[_0x2fba39(0x1a3)](_0x173fb6));}return!![];},exports['processAccessibilityCaps']=(_0x1e03c7,_0x44a60b,_0x4f5e74)=>{const _0x47de1e=a38_0x532014,_0x5b3178={'dkAGX':function(_0x241b46){return _0x241b46();},'ZcaKU':_0x47de1e(0x1ec),'dMUvm':function(_0x26ccdd,_0x5d6026){return _0x26ccdd===_0x5d6026;},'qRxgE':_0x47de1e(0x1b0),'pCSWO':_0x47de1e(0x202),'sDYfy':function(_0x56696d,_0x57037b){return _0x56696d===_0x57037b;},'krKlV':function(_0x3663cb,_0x1f4e40){return _0x3663cb===_0x1f4e40;},'hPvAt':_0x47de1e(0x1f6),'BgfAE':function(_0x525247,_0x2f8edd){return _0x525247>_0x2f8edd;},'jyftX':_0x47de1e(0x20d),'wWiCa':function(_0x376fbc,_0x258ff1){return _0x376fbc===_0x258ff1;},'BDLPr':_0x47de1e(0x1f2),'mZbJd':function(_0x5f29ba,_0x11efac){return _0x5f29ba>_0x11efac;},'vUCYb':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','tJzji':function(_0x1544fe,_0x4e2d0b){return _0x1544fe(_0x4e2d0b);},'FVESf':_0x47de1e(0x1f7),'TaAHs':function(_0x2fdda1,_0x243967){return _0x2fdda1+_0x243967;},'IggjI':function(_0x40c974,_0x2a7f58){return _0x40c974(_0x2a7f58);}};try{if(_0x5b3178[_0x47de1e(0x199)](isAccessibilityAutomationSession)){global[_0x47de1e(0x1ac)]=!![];!_0x1e03c7[_0x5b3178['ZcaKU']]&&(global['accessibilityPlatform']=![]);!(_0x5b3178[_0x47de1e(0x205)](_0x1e03c7[_0x47de1e(0x1d4)],_0x5b3178['qRxgE'])||_0x5b3178['dMUvm'](_0x1e03c7[_0x47de1e(0x1d4)],_0x5b3178[_0x47de1e(0x1f4)])||_0x5b3178[_0x47de1e(0x20b)](_0x1e03c7['browser'],_0x5b3178[_0x47de1e(0x1b9)])||_0x5b3178['krKlV'](_0x1e03c7['browser'],_0x5b3178[_0x47de1e(0x1f4)]))&&(logger[_0x47de1e(0x1b5)](_0x5b3178[_0x47de1e(0x1de)]),global[_0x47de1e(0x1ac)]=![]);!_0x5b3178[_0x47de1e(0x199)](isBrowserstackInfra)&&(!_0x5b3178[_0x47de1e(0x19c)](_0x1e03c7[_0x47de1e(0x207)],0x64)&&logger['warn'](_0x5b3178[_0x47de1e(0x1a8)]));!(_0x5b3178[_0x47de1e(0x1f5)](_0x1e03c7['browser_version'],_0x5b3178[_0x47de1e(0x19e)])||_0x5b3178[_0x47de1e(0x1ee)](_0x1e03c7['browser_version'],0x5e))&&(logger[_0x47de1e(0x1b5)](_0x5b3178[_0x47de1e(0x1a7)]),global[_0x47de1e(0x1ac)]=![]);!_0x5b3178['tJzji'](isUndefined,_0x1e03c7['deviceName'])&&(logger[_0x47de1e(0x1b5)](_0x5b3178[_0x47de1e(0x1a4)]),global['accessibilityPlatform']=![]);if(!global[_0x47de1e(0x1ac)]){_0x1e03c7[_0x5b3178['ZcaKU']]=![];const _0x5ed8d2=_0x5b3178['TaAHs'](_0x44a60b,_0x5b3178[_0x47de1e(0x1e3)](encodeURIComponent,JSON[_0x47de1e(0x1b1)](_0x1e03c7)));_0x4f5e74&&(_0x4f5e74[_0x47de1e(0x1dc)][_0x47de1e(0x1b6)][_0x47de1e(0x1c2)][_0x47de1e(0x1df)][_0x47de1e(0x20f)][_0x47de1e(0x203)]=_0x5ed8d2,_0x4f5e74[_0x47de1e(0x1bb)][_0x47de1e(0x1c2)]['use'][_0x47de1e(0x20f)][_0x47de1e(0x203)]=_0x5ed8d2);}}else global[_0x47de1e(0x1ac)]=![];}catch(_0x2d6a80){logger[_0x47de1e(0x1c5)](_0x47de1e(0x1f0)+util[_0x47de1e(0x1a3)](_0x2d6a80));}};
|
|
1
|
+
const a38_0x40a5dd=a38_0x5b17;(function(_0x57bc3a,_0x3207be){const _0x3699a3=a38_0x5b17,_0x12d704=_0x57bc3a();while(!![]){try{const _0x4a9390=parseInt(_0x3699a3(0x14e))/0x1*(parseInt(_0x3699a3(0xf2))/0x2)+parseInt(_0x3699a3(0x118))/0x3*(-parseInt(_0x3699a3(0x10f))/0x4)+parseInt(_0x3699a3(0x115))/0x5*(-parseInt(_0x3699a3(0x104))/0x6)+-parseInt(_0x3699a3(0xde))/0x7+-parseInt(_0x3699a3(0x12e))/0x8*(parseInt(_0x3699a3(0x147))/0x9)+-parseInt(_0x3699a3(0x113))/0xa+parseInt(_0x3699a3(0x10b))/0xb;if(_0x4a9390===_0x3207be)break;else _0x12d704['push'](_0x12d704['shift']());}catch(_0x7900b6){_0x12d704['push'](_0x12d704['shift']());}}}(a38_0x1024,0xef4be));function a38_0x1024(){const _0x53352d=['vZCHl','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','bQFDJ','browserName','yyphY','xaqHH','accessibilityOptions.wcagVersion','stringify','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','browser','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','deviceName','KErrj','wsEndpoint','GaQZc','warn','SdOmg','JaXne','11550304yWHsyl','chromium','jtqQG','vboix','browser_version','NzCKM','uuuyu','accessibilityOptions.includeIssueType.needsReview','Playwright','(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','RdrWx','BS_A11Y_JWT','latest','chrome','PERFORM_SCAN','error','name','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','getAccessibilityResults','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','SilEw','evaluate','url','CPcHP','needsReview','9pDEAVX','No\x20accessibility\x20results\x20were\x20found.','scannerProcessingTimeout','accessibilityOptions.authToken','bstackSdkArgs','__workerDetails','oJyfz','23AblLwO','env','util','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','kIuPk','qXUTD','ipUSx','dRePy','XNvVy','KiJFB','../../helpers/accessibility-automation/helper','3388098CKgoZU','workerInfo','qXqtH','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','gPdXF','GlOQi','../../helpers/logger','executeAsyncScript','accessibilityPlatform','accessibilityOptions.includeIssueType.bestPractice','browserStackEvaluate','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','AaEWO','lfKRt','bestPractice','replace','debug','Performing\x20scan\x20with\x20method:\x20','uFGpu','IaIJB','79874pztRjD','parse','uciiB','scannerVersion','wOikO','WebDriver','hQxJN','gEWkK','../../helpers/performance/constants','ChNzB','playwright-chromium','setAccessibilityCapabilities','fOrKB','QaACA','winstonLogger','jsOvc','project','includeIssueType','9604998JKQhzZ','uoIql','command','constructor','accessibilityOptions','connectOptions','../../helpers/accessibility-automation/scripts','49334659jATPKG','browserStackExecuteDriver','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','wXXPC','4SaoBNx','GZRop','performScan','accessibilityOptions.scannerVersion','3568460ChrkCJ','includes','5jaRwcR','currentTest','wcagVersion','1613643KTuCui','../../helpers/performance/performance-tester','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.'];a38_0x1024=function(){return _0x53352d;};return a38_0x1024();}function a38_0x5b17(_0x88e004,_0x9ca2ab){const _0x1024ba=a38_0x1024();return a38_0x5b17=function(_0x5b1711,_0x16d9b4){_0x5b1711=_0x5b1711-0xd5;let _0xf324ef=_0x1024ba[_0x5b1711];return _0xf324ef;},a38_0x5b17(_0x88e004,_0x9ca2ab);}const util=require(a38_0x40a5dd(0xd5)),logger=require(a38_0x40a5dd(0xe4))[a38_0x40a5dd(0x100)],{isAccessibilityAutomationSession}=require(a38_0x40a5dd(0xdd)),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require(a38_0x40a5dd(0x10a)),PerformanceTester=require(a38_0x40a5dd(0x119)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x40a5dd(0xfa));exports[a38_0x40a5dd(0xe8)]=async(_0x593749,_0x234c3d,_0x4b6777={})=>{const _0x10ed82=a38_0x40a5dd,_0x49ba64={};_0x49ba64['CPcHP']=_0x10ed82(0x14b);const _0x1c2ccc=_0x49ba64;return await _0x593749[_0x10ed82(0x143)]('(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'+_0x234c3d[_0x10ed82(0xed)](/arguments/g,_0x1c2ccc[_0x10ed82(0x145)])+_0x10ed82(0x123)+JSON['stringify'](_0x4b6777)+')');},exports[a38_0x40a5dd(0x10c)]=async(_0x1da1aa,_0x4b71b0,_0x28c780={})=>{const _0xe3ef0e=a38_0x40a5dd,_0x26553f={};_0x26553f[_0xe3ef0e(0xeb)]=function(_0x24c03b,_0x184bf1){return _0x24c03b===_0x184bf1;},_0x26553f[_0xe3ef0e(0xf6)]=_0xe3ef0e(0xf7),_0x26553f[_0xe3ef0e(0xd8)]=function(_0x2fda85,_0x14a85b){return _0x2fda85===_0x14a85b;},_0x26553f['vZCHl']=_0xe3ef0e(0x136),_0x26553f[_0xe3ef0e(0x110)]=_0xe3ef0e(0x14b);const _0x25eb23=_0x26553f;if(_0x25eb23['lfKRt'](_0x1da1aa['constructor']['name'],_0x25eb23[_0xe3ef0e(0xf6)]))return await _0x1da1aa[_0xe3ef0e(0xe5)](_0x4b71b0,_0x28c780);else{if(_0x25eb23['qXUTD'](_0x1da1aa[_0xe3ef0e(0x107)][_0xe3ef0e(0x13e)],_0x25eb23[_0xe3ef0e(0x11b)]))return await _0x1da1aa['executeScript'](_0xe3ef0e(0x137)+_0x4b71b0['replace'](/arguments/g,_0x25eb23['GZRop'])+_0xe3ef0e(0x141)+JSON[_0xe3ef0e(0x122)](_0x28c780)+')');}},exports[a38_0x40a5dd(0xfd)]=async _0x1a5d08=>{const _0x49d50b=a38_0x40a5dd,_0xf6a3b2={};_0xf6a3b2['uoIql']=_0x49d50b(0x121),_0xf6a3b2['jsOvc']='accessibilityOptions.scannerProcessingTimeout',_0xf6a3b2[_0x49d50b(0xe2)]=_0x49d50b(0xe7),_0xf6a3b2[_0x49d50b(0xe0)]=_0x49d50b(0x135),_0xf6a3b2[_0x49d50b(0xf8)]=_0x49d50b(0x14a),_0xf6a3b2[_0x49d50b(0xf1)]=_0x49d50b(0x112);const _0x4672ac=_0xf6a3b2;_0x1a5d08[_0x49d50b(0x108)]&&(_0x1a5d08[_0x49d50b(0x108)][_0x49d50b(0x117)]&&(_0x1a5d08[_0x4672ac[_0x49d50b(0x105)]]=_0x1a5d08[_0x49d50b(0x108)][_0x49d50b(0x117)]),_0x1a5d08['accessibilityOptions'][_0x49d50b(0x149)]&&(_0x1a5d08[_0x4672ac[_0x49d50b(0x101)]]=_0x1a5d08['accessibilityOptions']['scannerProcessingTimeout']),_0x1a5d08[_0x49d50b(0x108)]['includeIssueType']&&(_0x1a5d08[_0x4672ac['gPdXF']]=_0x1a5d08[_0x49d50b(0x108)]['includeIssueType'][_0x49d50b(0xec)],_0x1a5d08[_0x4672ac[_0x49d50b(0xe0)]]=_0x1a5d08[_0x49d50b(0x108)][_0x49d50b(0x103)][_0x49d50b(0x146)]));const _0x187dcb=JSON[_0x49d50b(0xf3)](process['env'][_0x49d50b(0x10d)])[_0x49d50b(0xf5)];_0x1a5d08[_0x4672ac[_0x49d50b(0xf8)]]=process[_0x49d50b(0x14f)][_0x49d50b(0x139)],_0x1a5d08[_0x4672ac['IaIJB']]=_0x187dcb,delete _0x1a5d08[_0x49d50b(0x108)];},exports[a38_0x40a5dd(0x140)]=async _0x1b4692=>{const _0x406e62=a38_0x40a5dd,_0x190512={};_0x190512[_0x406e62(0xd7)]=_0x406e62(0x148),_0x190512[_0x406e62(0xe3)]=_0x406e62(0xe1);const _0x481318=_0x190512;if(global['accessibilityPlatform'])try{const details={'url':await _0x1b4692.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(_0x1b4692,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x1b4692,scripts.getResults);},{...details})();return res;}catch{return logger[_0x406e62(0x13d)](_0x481318[_0x406e62(0xd7)]),[];}else return logger[_0x406e62(0x12b)](_0x481318[_0x406e62(0xe3)]),[];},exports['performScan']=async(_0xc4d4c,_0x57817b='')=>{const _0x470ac0=a38_0x40a5dd;logger[_0x470ac0(0xee)](_0x470ac0(0xef)+_0x57817b+'\x20page:\x20'+_0xc4d4c);const _0x3b4785={'url':await _0xc4d4c[_0x470ac0(0x144)](),'testhub_btcer_uuid':global[_0x470ac0(0x14c)]?.['currentTest']?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x470ac0(0x13c)],async()=>{const _0x5e6f45=_0x470ac0,_0x2af7b6={};_0x2af7b6[_0x5e6f45(0x106)]=_0x57817b;const _0x5552aa=await exports[_0x5e6f45(0xe8)](_0xc4d4c,scripts[_0x5e6f45(0x111)],_0x2af7b6);return _0x5552aa;},{'command':_0x57817b,..._0x3b4785})();},exports['getAccessibilityResultsSummary']=async _0x1ec158=>{const _0x31adcb=a38_0x40a5dd,_0x189149={};_0x189149['NzCKM']='No\x20summaryResults\x20found.',_0x189149[_0x31adcb(0x14d)]=_0x31adcb(0x126);const _0x1cc94f=_0x189149;if(global[_0x31adcb(0xe6)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1ec158,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x1ec158,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x31adcb(0xee)](_0x1cc94f[_0x31adcb(0x133)]),{};}else return logger[_0x31adcb(0x12b)](_0x1cc94f[_0x31adcb(0x14d)]),{};},exports['platformValidation']=async _0x25a9ed=>{const _0x5dbc92=a38_0x40a5dd,_0x4c47d5={'KErrj':function(_0x49d37d,_0x168363){return _0x49d37d!==_0x168363;},'bTLaT':_0x5dbc92(0x11c),'DoaSZ':_0x5dbc92(0x13b),'uFGpu':'playwright-chromium','xaqHH':_0x5dbc92(0x12f),'dRePy':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','ChNzB':function(_0x6a94ab,_0x214a56){return _0x6a94ab(_0x214a56);},'uciiB':function(_0x586e6a){return _0x586e6a();},'FoFLR':function(_0x59faed,_0x7185c){return _0x59faed<_0x7185c;},'KOALp':_0x5dbc92(0x11a),'iUhZg':function(_0x4d198c,_0xcca3f){return _0x4d198c===_0xcca3f;},'GrlCr':_0x5dbc92(0x13a),'uuuyu':function(_0x4b396e,_0x55f2b5){return _0x4b396e>_0x55f2b5;},'fOrKB':_0x5dbc92(0x125)};try{if(!_0x4c47d5[_0x5dbc92(0x128)](_0x25a9ed[_0x5dbc92(0x127)],''))return logger[_0x5dbc92(0x12b)](_0x4c47d5['bTLaT']),![];const _0x499024=_0x25a9ed[_0x5dbc92(0x124)];if(![_0x4c47d5['DoaSZ'],_0x4c47d5[_0x5dbc92(0xf0)],_0x4c47d5[_0x5dbc92(0x120)]][_0x5dbc92(0x114)](_0x499024))return logger['warn'](_0x4c47d5[_0x5dbc92(0xda)]),![];const _0x29e0b8=_0x4c47d5[_0x5dbc92(0xfb)](parseInt,_0x25a9ed['browser_version']);!_0x4c47d5[_0x5dbc92(0xf4)](isBrowserstackInfra)&&(!_0x4c47d5['FoFLR'](_0x29e0b8,0x64)&&logger[_0x5dbc92(0x12b)](_0x4c47d5['KOALp']));if(!(_0x4c47d5['iUhZg'](_0x29e0b8,_0x4c47d5['GrlCr'])||_0x4c47d5[_0x5dbc92(0x134)](_0x29e0b8,0x5e)))return logger[_0x5dbc92(0x12b)](_0x4c47d5[_0x5dbc92(0xfe)]),![];}catch(_0x12126a){logger[_0x5dbc92(0xee)](_0x5dbc92(0x13f)+util['format'](_0x12126a));}return!![];},exports['processAccessibilityCaps']=(_0x3af273,_0x193710,_0x5904bd)=>{const _0x575c76=a38_0x40a5dd,_0x3d07f0={'KiJFB':function(_0x54bc66){return _0x54bc66();},'vboix':'browserstack.accessibility','JaXne':function(_0x374ed3,_0x2cb0c2){return _0x374ed3===_0x2cb0c2;},'GaQZc':_0x575c76(0x13b),'HfCoZ':function(_0x259fff,_0x10e1a4){return _0x259fff===_0x10e1a4;},'yyphY':_0x575c76(0xfc),'SilEw':function(_0x3d54b3,_0x3fc26e){return _0x3d54b3===_0x3fc26e;},'gEWkK':_0x575c76(0xd6),'ipUSx':function(_0x1e3b58){return _0x1e3b58();},'AaEWO':function(_0x933ff,_0x1c21e9){return _0x933ff>_0x1c21e9;},'SdOmg':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','wXXPC':_0x575c76(0x13a),'QaACA':_0x575c76(0x125),'bQFDJ':function(_0x1e5848,_0x236d50){return _0x1e5848(_0x236d50);},'XNvVy':_0x575c76(0x11c),'jtqQG':function(_0x3cfe81,_0xcda8a7){return _0x3cfe81+_0xcda8a7;},'RdrWx':function(_0x5cdcc5,_0x5c04b0){return _0x5cdcc5(_0x5c04b0);}};try{if(_0x3d07f0[_0x575c76(0xdc)](isAccessibilityAutomationSession)){global[_0x575c76(0xe6)]=!![];!_0x3af273[_0x3d07f0[_0x575c76(0x131)]]&&(global[_0x575c76(0xe6)]=![]);!(_0x3d07f0[_0x575c76(0x12d)](_0x3af273[_0x575c76(0x11e)],_0x3d07f0[_0x575c76(0x12a)])||_0x3d07f0['HfCoZ'](_0x3af273[_0x575c76(0x11e)],_0x3d07f0[_0x575c76(0x11f)])||_0x3d07f0[_0x575c76(0x142)](_0x3af273[_0x575c76(0x124)],_0x3d07f0[_0x575c76(0x12a)])||_0x3d07f0[_0x575c76(0x142)](_0x3af273[_0x575c76(0x124)],_0x3d07f0[_0x575c76(0x11f)]))&&(logger[_0x575c76(0x12b)](_0x3d07f0[_0x575c76(0xf9)]),global[_0x575c76(0xe6)]=![]);!_0x3d07f0[_0x575c76(0xd9)](isBrowserstackInfra)&&(!_0x3d07f0[_0x575c76(0xea)](_0x3af273[_0x575c76(0x132)],0x64)&&logger[_0x575c76(0x12b)](_0x3d07f0[_0x575c76(0x12c)]));!(_0x3d07f0[_0x575c76(0x142)](_0x3af273[_0x575c76(0x132)],_0x3d07f0[_0x575c76(0x10e)])||_0x3d07f0['AaEWO'](_0x3af273[_0x575c76(0x132)],0x5e))&&(logger[_0x575c76(0x12b)](_0x3d07f0[_0x575c76(0xff)]),global[_0x575c76(0xe6)]=![]);!_0x3d07f0[_0x575c76(0x11d)](isUndefined,_0x3af273[_0x575c76(0x127)])&&(logger[_0x575c76(0x12b)](_0x3d07f0[_0x575c76(0xdb)]),global[_0x575c76(0xe6)]=![]);if(!global[_0x575c76(0xe6)]){_0x3af273[_0x3d07f0[_0x575c76(0x131)]]=![];const _0x436ba2=_0x3d07f0[_0x575c76(0x130)](_0x193710,_0x3d07f0[_0x575c76(0x138)](encodeURIComponent,JSON[_0x575c76(0x122)](_0x3af273)));_0x5904bd&&(_0x5904bd[_0x575c76(0x116)]['testInfo'][_0x575c76(0x102)]['use'][_0x575c76(0x109)][_0x575c76(0x129)]=_0x436ba2,_0x5904bd[_0x575c76(0xdf)][_0x575c76(0x102)]['use'][_0x575c76(0x109)][_0x575c76(0x129)]=_0x436ba2);}}else global[_0x575c76(0xe6)]=![];}catch(_0x191ead){logger['debug'](_0x575c76(0xe9)+util['format'](_0x191ead));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a39_0x39ce75=a39_0x2765;function a39_0x2765(_0x4788db,_0x350330){const _0x4be72d=a39_0x4be7();return a39_0x2765=function(_0x27658b,_0x4971d5){_0x27658b=_0x27658b-0xdb;let _0x1e48f9=_0x4be72d[_0x27658b];return _0x1e48f9;},a39_0x2765(_0x4788db,_0x350330);}(function(_0x3dcbb9,_0x439ab5){const _0x563b2e=a39_0x2765,_0x239278=_0x3dcbb9();while(!![]){try{const _0x53fe5e=-parseInt(_0x563b2e(0x115))/0x1+-parseInt(_0x563b2e(0x15d))/0x2+parseInt(_0x563b2e(0xe6))/0x3+parseInt(_0x563b2e(0x153))/0x4+-parseInt(_0x563b2e(0x11e))/0x5*(-parseInt(_0x563b2e(0x125))/0x6)+-parseInt(_0x563b2e(0x100))/0x7+parseInt(_0x563b2e(0x111))/0x8;if(_0x53fe5e===_0x439ab5)break;else _0x239278['push'](_0x239278['shift']());}catch(_0x217af8){_0x239278['push'](_0x239278['shift']());}}}(a39_0x4be7,0x5640e));const fs=require('fs'),path=require(a39_0x39ce75(0x18d)),{spawn}=require(a39_0x39ce75(0x158)),{format}=require(a39_0x39ce75(0x174)),logger=require(a39_0x39ce75(0x140))['winstonLogger'],{default:BrowserStackSetup}=require(a39_0x39ce75(0x155)),helper=require(a39_0x39ce75(0x139)),utilities=require(a39_0x39ce75(0x15f)),constants=require(a39_0x39ce75(0x16f)),{FRAMEWORKS}=require(a39_0x39ce75(0x182)),{getConfigLoaderPath}=require(a39_0x39ce75(0x13f)),{checkAccessibilityPlatformConfig}=require(a39_0x39ce75(0x12c)),{setAccessibilityCapabilities}=require(a39_0x39ce75(0x120)),{printBuildLink}=require(a39_0x39ce75(0x18b)),TestDetails=require(a39_0x39ce75(0xe9)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a39_0x39ce75(0x169)),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require(a39_0x39ce75(0x13c))['EVENTS'],CLIUtils=require(a39_0x39ce75(0x17a)),TestInfo=require(a39_0x39ce75(0x14a)),ClientTroubleShootingService=require(a39_0x39ce75(0x137)),getUserPlaywrightConfig=async(_0x5f04be,_0x5c4f16)=>{const _0x16ca6a=a39_0x39ce75,_0x5376d2={'WedLC':function(_0x106faf){return _0x106faf();},'CDCmf':function(_0x15b132,_0x44d168){return _0x15b132(_0x44d168);},'gQiwu':_0x16ca6a(0x123),'DPkqP':_0x16ca6a(0xf8)},_0x319c68=!helper['isUndefined'](_0x5f04be[_0x16ca6a(0x14c)]),_0x376d7b=_0x319c68?path[_0x16ca6a(0xea)](process[_0x16ca6a(0x16d)](),_0x5f04be[_0x16ca6a(0x14c)]):process[_0x16ca6a(0x16d)](),{resolveConfigFile:_0x2b4d6f,resolveConfigLocation:_0x165bea}=helper[_0x16ca6a(0x14b)][_0x16ca6a(0x11b)](null,_0x5376d2[_0x16ca6a(0x13b)](getConfigLoaderPath)),_0x49ff59=_0x2b4d6f?_0x5376d2['CDCmf'](_0x2b4d6f,_0x376d7b):helper[_0x16ca6a(0x132)](_0x5376d2['CDCmf'](_0x165bea,_0x376d7b),[_0x5376d2['gQiwu']]),_0x284ff5={};if(_0x319c68){const _0x3dc662=_0x5c4f16[_0x16ca6a(0x162)](_0x1aa671=>_0x1aa671===_0x16ca6a(0x12f)||_0x1aa671==='-c'||_0x1aa671['startsWith'](_0x16ca6a(0xf8)));_0x5c4f16[_0x16ca6a(0x161)](_0x3dc662,_0x5c4f16[_0x3dc662][_0x16ca6a(0x188)](_0x5376d2[_0x16ca6a(0x14d)])?0x1:0x2);}const _0xc02343={};return _0xc02343[_0x16ca6a(0x18d)]=_0x49ff59,_0xc02343[_0x16ca6a(0x14c)]=_0x284ff5,_0xc02343;},handleO11yRerun=_0x4b1d6d=>{const _0x15ea12=a39_0x39ce75,_0x58d549={};_0x58d549[_0x15ea12(0x150)]=_0x15ea12(0x17f);const _0x22fddf=_0x58d549,_0x5154bc=helper[_0x15ea12(0x141)](process[_0x15ea12(0x168)][_0x15ea12(0x15a)]);if(_0x5154bc){const _0x5dd8ae=process[_0x15ea12(0x168)][_0x15ea12(0x151)],_0x483d8b=[];if(helper[_0x15ea12(0x149)](_0x5dd8ae)&&!helper[_0x15ea12(0x10a)](_0x5dd8ae)){_0x5dd8ae[_0x15ea12(0x16b)](',')['map'](_0x2fd048=>{const _0x3edd01=_0x15ea12;_0x483d8b[_0x3edd01(0x126)]('('+_0x2fd048[_0x3edd01(0xeb)]()+')');});const _0x5f1df5='^'+_0x483d8b[_0x15ea12(0xf2)]('|')+'$';_0x4b1d6d[_0x15ea12(0x126)](_0x22fddf[_0x15ea12(0x150)],_0x5f1df5);}}},spawnOriginalProcess=_0x176acd=>{const _0x586e30=a39_0x39ce75,_0x1f18f0={'mNQGv':function(_0x46e217,_0x1312e6,_0x3d21be,_0x1fd6bb){return _0x46e217(_0x1312e6,_0x3d21be,_0x1fd6bb);},'ZvvrQ':_0x586e30(0x110),'wGaiK':_0x586e30(0x117),'VQhEO':function(_0xcb2f98,_0x7b2516){return _0xcb2f98===_0x7b2516;},'dujKw':_0x586e30(0xe7),'QgCTq':_0x586e30(0x17b)};_0x1f18f0[_0x586e30(0x166)](spawn,_0x1f18f0[_0x586e30(0xff)],[_0x1f18f0[_0x586e30(0x106)],..._0x176acd[_0x586e30(0x16a)](0x1)],{'shell':_0x1f18f0[_0x586e30(0x128)](process[_0x586e30(0x13e)],_0x1f18f0[_0x586e30(0x16c)]),'stdio':_0x1f18f0[_0x586e30(0xf7)],'cwd':process[_0x586e30(0x16d)]()});},isTestCommand=(_0x7a0f3b,_0x4f181f)=>{const _0x57146a=a39_0x39ce75,_0xec9379={};_0xec9379['XRyzv']=function(_0x4719b7,_0x31b04d){return _0x4719b7>_0x31b04d;},_0xec9379[_0x57146a(0x12b)]=function(_0x27d55f,_0x960e2e){return _0x27d55f===_0x960e2e;},_0xec9379['zlwtt']=_0x57146a(0xf1);const _0x22f61f=_0xec9379;if(_0x22f61f[_0x57146a(0x17c)](_0x4f181f['length'],0x1)&&_0x22f61f[_0x57146a(0x12b)](_0x4f181f[0x1],_0x22f61f[_0x57146a(0x148)]))return!![];return![];};async function run(_0x4e7c20,_0x2d62d9,_0x1ae167){const _0x259844=a39_0x39ce75,_0x5b76a8={'Qgcar':function(_0x338d0a,_0x1344dd){return _0x338d0a(_0x1344dd);},'nYqdo':_0x259844(0x10c),'mCxbT':function(_0x548217){return _0x548217();},'iwZYG':function(_0x9d6f7b){return _0x9d6f7b();},'aXQmi':function(_0x39872c,_0x48cb37){return _0x39872c+_0x48cb37;},'gzjkF':_0x259844(0x183),'wKDYA':_0x259844(0x16e),'DOcPB':'Error\x20in\x20getting\x20funnel\x20data\x20results','xryCX':_0x259844(0xec),'bxCfE':function(_0x566faf,_0x1544f4){return _0x566faf<_0x1544f4;},'QHWms':function(_0x2eed49,_0x433891){return _0x2eed49===_0x433891;},'eNnUw':'false','jBhaC':_0x259844(0x18a),'rWORj':function(_0x3a0188,_0x1f054a){return _0x3a0188>=_0x1f054a;},'qkXwe':function(_0xfbce11,_0x30a5b7){return _0xfbce11===_0x30a5b7;},'syVti':_0x259844(0x18c),'IHcuQ':function(_0x2dd882,_0x1ca617){return _0x2dd882!=_0x1ca617;},'nstNq':function(_0x3903fc,_0x127a38,_0x2c7785){return _0x3903fc(_0x127a38,_0x2c7785);},'sXXxl':function(_0x49ecf3,_0x46063c){return _0x49ecf3(_0x46063c);},'rgpxU':function(_0x20aa6a,_0x165480){return _0x20aa6a===_0x165480;},'yPtCo':'true','kMBZZ':function(_0xd9c618,_0x1cc8c5){return _0xd9c618(_0x1cc8c5);},'dthCM':'browserstackSetupConfig.json','bkRVu':function(_0x15aa6c,_0x30e076){return _0x15aa6c===_0x30e076;},'KBesl':'playwright-browserstack-sdk.config.cjs','Kwzsa':'playwright-browserstack-sdk.config.js','NFoZX':function(_0x56fe9a,_0x5ba082){return _0x56fe9a-_0x5ba082;},'gNIpf':function(_0x28401e,_0x113063){return _0x28401e+_0x113063;},'reJjr':_0x259844(0xe0),'SxaxH':function(_0x2c8329,_0x5c712b){return _0x2c8329>_0x5c712b;},'CvkcE':function(_0x14bb8d,_0x5de667){return _0x14bb8d+_0x5de667;},'OpHwX':function(_0x3cc204,_0x2fc68f,_0x5a84ad,_0x2bc030){return _0x3cc204(_0x2fc68f,_0x5a84ad,_0x2bc030);},'PwArX':_0x259844(0x110),'qcHod':'playwright','ykBOY':_0x259844(0xf1),'cZTIP':_0x259844(0x12f),'cJTso':'win32','EfUCU':_0x259844(0x17b),'NzsxH':_0x259844(0x119),'cJSfD':function(_0x307839,_0x2cde8a){return _0x307839|_0x2cde8a;},'FALEj':_0x259844(0xf3),'ayFrb':_0x259844(0x181),'YXYTR':function(_0x13643b,_0xb1643f,_0x51b9d5){return _0x13643b(_0xb1643f,_0x51b9d5);},'ZgoBL':function(_0x2b3f4a,_0x5860f4){return _0x2b3f4a(_0x5860f4);}};try{const _0x29450a=path[_0x259844(0xf2)](helper[_0x259844(0x144)](),_0x5b76a8[_0x259844(0x116)]);try{fs[_0x259844(0x108)](_0x29450a,_0x5b76a8[_0x259844(0xe5)](fs['constants'][_0x259844(0xfa)],fs['constants'][_0x259844(0xe1)]));}catch(_0x134204){ClientTroubleShootingService['reportDotBrowserStackFolderNotAccessibleIssue']();}}catch(_0x53848f){logger[_0x259844(0xdd)](_0x5b76a8[_0x259844(0x11d)](_0x5b76a8[_0x259844(0x15c)],_0x53848f));}try{const _0x31a568=path[_0x259844(0xf2)](helper[_0x259844(0x144)](),_0x5b76a8[_0x259844(0x116)],_0x5b76a8[_0x259844(0xf9)]);fs[_0x259844(0x147)](_0x31a568)&&fs[_0x259844(0x105)](_0x31a568);}catch(_0x39cb62){logger[_0x259844(0xdd)](_0x5b76a8['gNIpf'](_0x5b76a8[_0x259844(0x145)],_0x39cb62));}if(!_0x5b76a8['YXYTR'](isTestCommand,_0x4e7c20,_0x2d62d9)){_0x5b76a8['ZgoBL'](spawnOriginalProcess,_0x2d62d9);return;}await PerformanceTester[_0x259844(0x165)](PerformanceEvents[_0x259844(0x14f)],async()=>{const _0x2cf029=_0x259844,_0x1a9bcf={'fJfly':_0x5b76a8[_0x2cf029(0x116)],'bbDRI':_0x5b76a8[_0x2cf029(0xf9)],'ofsHd':function(_0x48a911,_0x512f80){const _0x4cdf23=_0x2cf029;return _0x5b76a8[_0x4cdf23(0x11d)](_0x48a911,_0x512f80);},'LZros':_0x5b76a8['DOcPB']};if(!_0x1ae167['config']){logger[_0x2cf029(0x10e)](_0x5b76a8['xryCX']);return;}await _0x1ae167[_0x2cf029(0xf6)](_0x4e7c20),CLIUtils[_0x2cf029(0x12d)](FRAMEWORKS[_0x2cf029(0x131)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI['getInstance']()[_0x2cf029(0xfd)](_0x1ae167['config'],_0x1ae167['configPath'],_0x1ae167[_0x2cf029(0x104)]),await BrowserstackCLI[_0x2cf029(0x179)]()[_0x2cf029(0x156)]();for(var _0x5db4c1=0x0;_0x5b76a8['bxCfE'](_0x5db4c1,constants[_0x2cf029(0x172)]['length']);_0x5db4c1++){var _0x587850=constants[_0x2cf029(0x172)][_0x5db4c1];process[_0x2cf029(0x168)][_0x587850]&&await ClientTroubleShootingService[_0x2cf029(0x109)](_0x587850);}const _0x4cadcd=BrowserstackCLI['getInstance']()[_0x2cf029(0xdf)]();!helper[_0x2cf029(0x114)](_0x4cadcd[_0x2cf029(0x167)])&&(process[_0x2cf029(0x168)]['BROWSERSTACK_AUTOMATION']=!![]);_0x5b76a8['QHWms'](_0x4cadcd[_0x2cf029(0x167)],![])&&(process[_0x2cf029(0x168)][_0x2cf029(0x14e)]=_0x5b76a8[_0x2cf029(0x11f)],_0x2d62d9=_0x2d62d9[_0x2cf029(0xef)](_0x234140=>_0x234140!=='--disable-browserstack-automation'));const _0x498969=_0x2d62d9['indexOf'](_0x5b76a8[_0x2cf029(0xdb)]);(_0x5b76a8[_0x2cf029(0x102)](_0x498969,0x0)||_0x5b76a8[_0x2cf029(0x186)](_0x4cadcd[_0x2cf029(0x17d)],![]))&&(process[_0x2cf029(0x168)][_0x2cf029(0xf0)]=_0x5b76a8[_0x2cf029(0x11f)],_0x2d62d9=_0x2d62d9[_0x2cf029(0xef)](_0x2cd80b=>_0x2cd80b!=='--disable-test-observability'));!helper[_0x2cf029(0x10a)](_0x1ae167['cliConfig'])&&_0x1ae167[_0x2cf029(0x104)][_0x2cf029(0x124)](_0x5b76a8[_0x2cf029(0x129)])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x1ae167[_0x2cf029(0x104)][_0x2cf029(0x164)](_0x5b76a8[_0x2cf029(0x129)])||!![]);_0x5b76a8[_0x2cf029(0x160)](_0x1ae167[_0x2cf029(0x14c)]['testObservability'],null)&&!helper[_0x2cf029(0x141)](process[_0x2cf029(0x168)][_0x2cf029(0xf0)])&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x2cf029(0x168)][_0x2cf029(0xf0)]||_0x1ae167[_0x2cf029(0x14c)][_0x2cf029(0x17d)]);const _0x2256b3=!helper[_0x2cf029(0x114)](process[_0x2cf029(0x168)][_0x2cf029(0xf0)]);_0x1ae167[_0x2cf029(0x14c)]['accessibilityOptions']&&(process['env'][_0x2cf029(0x185)]=JSON[_0x2cf029(0x136)](_0x1ae167[_0x2cf029(0x14c)]['accessibilityOptions']));let _0x3669f7=![];_0x1ae167[_0x2cf029(0x14c)]['accessibility']&&(_0x3669f7=!![],process[_0x2cf029(0x168)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x1ae167[_0x2cf029(0x14c)][_0x2cf029(0xf4)]);const _0x1c31ae=_0x2d62d9['concat'](),_0x1a323d=await _0x5b76a8[_0x2cf029(0x10f)](getUserPlaywrightConfig,_0x4e7c20,_0x2d62d9);if(helper[_0x2cf029(0x10a)](_0x1a323d)){_0x5b76a8['sXXxl'](spawnOriginalProcess,_0x1c31ae);return;}const _0x4f1196=_0x1a323d[_0x2cf029(0x18d)]?path[_0x2cf029(0x107)](_0x1a323d['path']):process[_0x2cf029(0x16d)]();process[_0x2cf029(0x168)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x4f1196,await PerformanceTester[_0x2cf029(0x165)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x4fc037=_0x2cf029;!BrowserstackCLI['getInstance']()[_0x4fc037(0x176)]()&&await TestHubHandler[_0x4fc037(0x134)](FRAMEWORKS[_0x4fc037(0x131)],_0x1ae167),_0x2256b3&&_0x5b76a8[_0x4fc037(0x103)](handleO11yRerun,_0x2d62d9);})();if(!BrowserstackCLI['getInstance']()[_0x2cf029(0x176)]()){let _0x33fb63=_0x5b76a8['rgpxU'](process['env'][_0x2cf029(0x171)],_0x5b76a8['yPtCo']);_0x33fb63=_0x33fb63||_0x5b76a8[_0x2cf029(0x103)](checkAccessibilityPlatformConfig,_0x1ae167[_0x2cf029(0x14c)]),process[_0x2cf029(0x168)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x33fb63,_0x33fb63&&_0x5b76a8[_0x2cf029(0xdc)](setAccessibilityCapabilities,_0x1ae167['config']);}const _0x94d022=path[_0x2cf029(0xf2)](_0x1a323d[_0x2cf029(0x18d)]?path[_0x2cf029(0x107)](_0x1a323d[_0x2cf029(0x18d)]):process[_0x2cf029(0x16d)](),_0x5b76a8['dthCM']);fs[_0x2cf029(0x177)](_0x94d022,helper[_0x2cf029(0xe4)](_0x1ae167[_0x2cf029(0x14c)])),process['env'][_0x2cf029(0x175)]=_0x94d022,helper[_0x2cf029(0xfb)]();let _0x3e679f='';_0x5b76a8[_0x2cf029(0x187)](helper[_0x2cf029(0x17e)](),constants[_0x2cf029(0x170)][_0x2cf029(0x10b)])?_0x3e679f=_0x5b76a8['KBesl']:_0x3e679f=_0x5b76a8[_0x2cf029(0x13d)];let _0x272084='';if(helper['isTypescriptProject'](_0x1a323d[_0x2cf029(0x18d)])){_0x272084='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x23622d=_0x3e679f['split']('.');_0x23622d[_0x5b76a8[_0x2cf029(0x143)](_0x23622d[_0x2cf029(0x118)],0x1)]='ts',_0x3e679f=_0x23622d[_0x2cf029(0xf2)]('.'),logger[_0x2cf029(0xdd)](_0x5b76a8[_0x2cf029(0x127)](_0x5b76a8[_0x2cf029(0xfe)],_0x3e679f));}else _0x272084=_0x2cf029(0x10d);const _0x14af14=path[_0x2cf029(0xf2)](_0x1a323d[_0x2cf029(0x18d)]?path[_0x2cf029(0x107)](_0x1a323d[_0x2cf029(0x18d)]):process[_0x2cf029(0x16d)](),_0x3e679f);let _0x56b0ee=_0x1a323d['path']?_0x1a323d[_0x2cf029(0x18d)]:'';_0x56b0ee=_0x5b76a8['SxaxH'](_0x56b0ee[_0x2cf029(0x118)],0x0)?path['resolve'](_0x56b0ee):'',process[_0x2cf029(0x168)][_0x2cf029(0xed)]=_0x56b0ee;const _0x42dc62=helper[_0x2cf029(0x152)](_0x1ae167[_0x2cf029(0x14c)]),_0x4630d0=helper['getNoProxy'](_0x1ae167[_0x2cf029(0x14c)]);logger[_0x2cf029(0xdd)](_0x2cf029(0x178)+_0x42dc62),logger[_0x2cf029(0xdd)](_0x2cf029(0xe3)+_0x4630d0);_0x42dc62&&(_0x272084=_0x5b76a8[_0x2cf029(0xde)](_0x2cf029(0x113)+_0x42dc62+_0x2cf029(0x180)+_0x4630d0+_0x2cf029(0x15e),_0x272084));helper[_0x2cf029(0x173)]({},_0x2d62d9),fs['writeFileSync'](_0x14af14,_0x272084),PerformanceTester['end'](PerformanceEvents['SDK_SETUP']);const _0x5a30a7=_0x5b76a8[_0x2cf029(0x130)](spawn,_0x5b76a8[_0x2cf029(0x13a)],[_0x5b76a8['qcHod'],_0x5b76a8[_0x2cf029(0x11a)],_0x5b76a8[_0x2cf029(0x163)],_0x5b76a8['bkRVu'](process[_0x2cf029(0x13e)],_0x5b76a8[_0x2cf029(0xe2)])?'\x22'+_0x14af14+'\x22':_0x14af14,..._0x2d62d9['slice'](0x2)],{'shell':_0x5b76a8['QHWms'](process[_0x2cf029(0x13e)],_0x5b76a8[_0x2cf029(0xe2)]),'stdio':_0x5b76a8['EfUCU'],'cwd':process['cwd'](),'env':Object[_0x2cf029(0x12a)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2cf029(0x15b)](_0x4e7c20),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1ae167[_0x2cf029(0x14c)][_0x2cf029(0x121)][_0x2cf029(0xee)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1ae167[_0x2cf029(0x14c)][_0x2cf029(0x121)][_0x2cf029(0x154)],'BROWSERSTACK_LOG_LEVEL':_0x1ae167[_0x2cf029(0x14c)][_0x2cf029(0x142)]})}),_0x3c73b5=()=>{const _0x36d8ee=_0x2cf029;try{const _0x14b327=path['join'](helper[_0x36d8ee(0x144)](),_0x1a9bcf[_0x36d8ee(0x101)],_0x1a9bcf['bbDRI']);if(fs[_0x36d8ee(0x147)](_0x14b327)){let _0x26cfad=fs[_0x36d8ee(0x189)](_0x14b327);_0x26cfad=JSON['parse'](_0x26cfad),_0x1ae167[_0x36d8ee(0x184)]=_0x26cfad,fs[_0x36d8ee(0x105)](_0x14b327);}}catch(_0x958f10){logger[_0x36d8ee(0xdd)](_0x1a9bcf['ofsHd'](_0x1a9bcf[_0x36d8ee(0x112)],_0x958f10));}};_0x5a30a7['on'](_0x5b76a8[_0x2cf029(0xe8)],async _0x3c353c=>{const _0x13eb85=_0x2cf029,_0x19fed6={};_0x19fed6[_0x13eb85(0xf5)]=_0x5b76a8[_0x13eb85(0x116)];const _0x4b1705=_0x19fed6;try{PerformanceTester['start'](PerformanceEvents['SDK_CLEANUP']),_0x5b76a8[_0x13eb85(0x159)](_0x3c73b5),await TestHubHandler[_0x13eb85(0x146)](),await ClientTroubleShootingService['reportFinalDetectionState'](),await BrowserstackCLI['getInstance']()[_0x13eb85(0x146)](),TestDetails[_0x13eb85(0x18e)](),_0x5b76a8['iwZYG'](printBuildLink),await utilities[_0x13eb85(0x138)](_0x1ae167),process[_0x13eb85(0x157)]=_0x3c353c,logger['debug'](_0x13eb85(0x135)+_0x3c353c),logger[_0x13eb85(0x122)](_0x13eb85(0x12e)+_0x14af14),fs[_0x13eb85(0x105)](_0x14af14);fs['existsSync'](_0x94d022)&&(logger[_0x13eb85(0xdd)]('Deleting\x20'+_0x94d022),fs['unlinkSync'](_0x94d022));const _0x23f418=fs[_0x13eb85(0x11c)](path[_0x13eb85(0xf2)](helper[_0x13eb85(0x144)](),_0x5b76a8[_0x13eb85(0x116)]))[_0x13eb85(0xef)](_0x6599de=>_0x6599de['startsWith']('trace_'));_0x23f418[_0x13eb85(0x133)](_0x3991d0=>{const _0x406d65=_0x13eb85;fs['unlinkSync'](path[_0x406d65(0xf2)](helper['homedir'](),_0x4b1705[_0x406d65(0xf5)],_0x3991d0));});}catch(_0x172eae){logger[_0x13eb85(0xdd)](_0x5b76a8['aXQmi'](_0x5b76a8['gzjkF'],_0x172eae));}});})();}module[a39_0x39ce75(0xfc)]=run;function a39_0x4be7(){const _0x1abf74=['isUndefined','MODULE','.browserstack','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','error','nstNq','npx','450016weOKSs','LZros','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','isFalse','252446IQtgcP','nYqdo','playwright','length','close','ykBOY','apply','readdirSync','aXQmi','5qoEpWB','eNnUw','./accessibility-helper','testContextOptions','info','resolvedConfigFile','has','457536YBunDx','push','gNIpf','VQhEO','syVti','assign','kzQgN','../../helpers/accessibility-automation/helper','setFrameworkDetail','Deleting\x20','--config','OpHwX','PLAYWRIGHT','nestedKeyValue','forEach','launchBuild','Playwright\x20process\x20exited\x20with\x20code\x20','stringify','../utils/clientTroubleshootingService','finalExecution','../../helpers/helper','PwArX','WedLC','../../helpers/performance/constants','Kwzsa','platform','./reporter/pwUtils','../../helpers/logger','isTrue','logLevel','NFoZX','homedir','ayFrb','stop','existsSync','zlwtt','validateRerunTestList','../v2/TestInfo','requirePWModule','config','DPkqP','BROWSERSTACK_AUTOMATION','SDK_PRE_INITIALIZE','iahcI','BROWSERSTACK_RERUN_TESTS','getProxyUrl','1797148wsuRjT','skipSessionName','../../helpers/BrowserStackSetup','bootstrap','exitCode','child_process','mCxbT','BROWSERSTACK_RERUN','getConfigPath','FALEj','67184MJESdr','\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();','../../helpers/utilities','IHcuQ','splice','findIndex','cZTIP','get','measureWrapper','mNQGv','browserstackAutomation','env','../../helpers/performance/performance-tester','slice','split','dujKw','cwd','pw_result.json','../utils/constants','PACKAGE_TYPE','BROWSERSTACK_TEST_ACCESSIBILITY_YML','INTERNALLY_USED_ENV_VARS','filterBrowserstackArgs','util','BROWSERSTACK_SETUP_CONFIG_PATH','isRunning','writeFileSync','Proxy\x20url\x20:\x20','getInstance','../v2/cliUtils','inherit','XRyzv','testObservability','getPackageType','--grep','\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','Error\x20in\x20deleting\x20playwright\x20results','../../helpers/test-observability/constants','Error\x20in\x20closing\x20playwright','errorMessage','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','qkXwe','bkRVu','startsWith','readFileSync','--disable-test-observability','../../helpers/test-observability/utils','automation','path','shutdown','jBhaC','kMBZZ','debug','CvkcE','getConfig','Updated\x20config\x20file\x20name\x20to\x20-\x20','W_OK','cJTso','No\x20Proxy\x20:\x20','serializeToYamlString','cJSfD','1664817zItDID','win32','NzsxH','./reporter/test-details','resolve','trim','BrowserStack\x20config\x20file\x20not\x20found.','USER_CONFIG_DETAILS_PATH','skipSessionStatus','filter','BROWSERSTACK_TEST_OBSERVABILITY','test','join','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','accessibility','qAPYP','initialize','QgCTq','--config=','wKDYA','R_OK','clearTempPWConfig','exports','setBrowserstackConfig','reJjr','ZvvrQ','3481814amYDKf','fJfly','rWORj','Qgcar','cliConfig','unlinkSync','wGaiK','dirname','accessSync','reportConflictingEnvVarIssue'];a39_0x4be7=function(){return _0x1abf74;};return a39_0x4be7();}
|
|
2
|
+
'use strict';const a39_0x3e7a08=a39_0x5a3e;function a39_0x4d6a(){const _0x1bcf63=['exports','gulkT','FnsXb','getInstance','isUndefined','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','debug','LCxGq','Deleting\x20','false','resolvedConfigFile','KOutq','playwright','Proxy\x20url\x20:\x20','win32','./reporter/pwUtils','isYarnPnP','USER_CONFIG_DETAILS_PATH','../../helpers/logger','cECBk','cbKUs','--grep','testObservability','getNoProxy','1072QPaPEe','exitCode','writeFileSync','HMYar','CwPNs','670eXIEvb','Updated\x20config\x20file\x20name\x20to\x20-\x20','launchBuild','join','skipSessionName','parse','dpzrv','SDK_PRE_INITIALIZE','accessSync','../../helpers/test-observability/constants','QQnuy','zdejV','TYEeC','constants','--config','reportFinalDetectionState','length','WOUdh','1348872uwkMkQ','readdirSync','ITbdj','reportDotBrowserStackFolderNotAccessibleIssue','TBMLm','xjQsX','BROWSERSTACK_SETUP_CONFIG_PATH','../../helpers/utilities','../../helpers/accessibility-automation/helper','NFYRt','sUtiu','splice','NCZXW','end','SDK_SETUP','bnhIj','576219jjxRRm','readFileSync','initialize','bootstrap','PLAYWRIGHT','assign','setFrameworkDetail','get','AVoUb','accessibilityOptions','concat','Error\x20in\x20deleting\x20playwright\x20results','1757668nqooiN','test','clearTempPWConfig','TCqIa','SXAxx','LQcJJ','isRunning','CANpT','278fpXcXg','indexOf','EVENTS','305685WmOaUn','isTrue','stop','inherit','measureWrapper','XFVsa','qRHcz','error','../utils/constants','cwd','SDK_POST_INITIALIZE','path','existsSync','4472kPCTFc','finalExecution','skipSessionStatus','rutmo','kDhXP','playwright-browserstack-sdk.config.js','BROWSERSTACK_TEST_ACCESSIBILITY_YML','util','playwright-browserstack-sdk.config.cjs','12PsYxiG','yarn','ziboC','MODULE','./accessibility-helper','env','filterBrowserstackArgs','BROWSERSTACK_RERUN_TESTS','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','homedir','No\x20Proxy\x20:\x20','ixLPY','platform','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','resolve','FNGPB','split','true','logLevel','36fTMEVh','../../helpers/performance/constants','unlinkSync','58410gWiSpG','\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();','iUDXO','W_OK','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','AtUWz','trim','../../helpers/helper','slice','accessibility','cliConfig','BROWSERSTACK_RERUN','peBlU','nestedKeyValue','QXeVU','oFXQN','GgxXS','setBrowserstackConfig','serializeToYamlString','JmyQJ','yMOXY','TCOUc','5201dDSQEy','testContextOptions','startsWith','winstonLogger','browserstackAutomation','yltkZ','oCZfo','jjeTy','has','chIIt','errorMessage','config','rvANd','../../helpers/testhub/testhubHandler','apply','requirePWModule','getPackageType','isTypescriptProject','.browserstack','trace_','../utils/clientTroubleshootingService','getConfig','map','WUgsC','BROWSERSTACK_AUTOMATION','configPath','pw_result.json','filter','shutdown','start','npx','KBzRc','Error\x20in\x20closing\x20playwright','isFalse','dirname','jWDXR','--config=','YgLgC','EqkLV','BROWSERSTACK_PW_CONFIG_DIR','BROWSERSTACK_TEST_OBSERVABILITY','PACKAGE_TYPE','automation','info','push','INTERNALLY_USED_ENV_VARS','getConfigPath','browserstackSetupConfig.json','SDK_CLEANUP','child_process','forEach'];a39_0x4d6a=function(){return _0x1bcf63;};return a39_0x4d6a();}(function(_0x482d0d,_0x31aa5b){const _0x454787=a39_0x5a3e,_0x429899=_0x482d0d();while(!![]){try{const _0x5b26fc=parseInt(_0x454787(0x1f0))/0x1*(parseInt(_0x454787(0x22b))/0x2)+parseInt(_0x454787(0x217))/0x3+-parseInt(_0x454787(0x207))/0x4+-parseInt(_0x454787(0x22e))/0x5*(parseInt(_0x454787(0x244))/0x6)+parseInt(_0x454787(0x1a5))/0x7*(parseInt(_0x454787(0x23b))/0x8)+parseInt(_0x454787(0x25a))/0x9*(parseInt(_0x454787(0x1f5))/0xa)+parseInt(_0x454787(0x223))/0xb*(-parseInt(_0x454787(0x257))/0xc);if(_0x5b26fc===_0x31aa5b)break;else _0x429899['push'](_0x429899['shift']());}catch(_0x2324ad){_0x429899['push'](_0x429899['shift']());}}}(a39_0x4d6a,0x3d9e8));function a39_0x5a3e(_0x3b00b0,_0x5ad592){const _0x4d6a14=a39_0x4d6a();return a39_0x5a3e=function(_0x5a3e25,_0xef12d5){_0x5a3e25=_0x5a3e25-0x190;let _0x43d676=_0x4d6a14[_0x5a3e25];return _0x43d676;},a39_0x5a3e(_0x3b00b0,_0x5ad592);}const fs=require('fs'),path=require('path'),{spawn}=require(a39_0x3e7a08(0x1d6)),{format}=require(a39_0x3e7a08(0x242)),logger=require(a39_0x3e7a08(0x1ea))[a39_0x3e7a08(0x1a8)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a39_0x3e7a08(0x196)),utilities=require(a39_0x3e7a08(0x20e)),constants=require(a39_0x3e7a08(0x236)),{FRAMEWORKS}=require(a39_0x3e7a08(0x1fe)),{getConfigLoaderPath}=require(a39_0x3e7a08(0x1e7)),{checkAccessibilityPlatformConfig}=require(a39_0x3e7a08(0x20f)),{setAccessibilityCapabilities}=require(a39_0x3e7a08(0x248)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a39_0x3e7a08(0x1b2)),PerformanceTester=require('../../helpers/performance/performance-tester'),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require(a39_0x3e7a08(0x258))[a39_0x3e7a08(0x22d)],CLIUtils=require('../v2/cliUtils'),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require(a39_0x3e7a08(0x1b9)),getUserPlaywrightConfig=async(_0x10ccb2,_0xddc5f)=>{const _0x4af120=a39_0x3e7a08,_0xed86e9={'IEbgz':function(_0x7bd5ba){return _0x7bd5ba();},'rvANd':function(_0x41cc9f,_0x126ff1){return _0x41cc9f(_0x126ff1);},'LCxGq':function(_0x32075f,_0x1c3451){return _0x32075f(_0x1c3451);},'iUDXO':_0x4af120(0x1e2),'LQcJJ':_0x4af120(0x1c9)},_0x34e4f1=!helper[_0x4af120(0x1dc)](_0x10ccb2[_0x4af120(0x1b0)]),_0x45cc21=_0x34e4f1?path[_0x4af120(0x252)](process[_0x4af120(0x237)](),_0x10ccb2[_0x4af120(0x1b0)]):process['cwd'](),{resolveConfigFile:_0x22aa57,resolveConfigLocation:_0x12a996}=helper[_0x4af120(0x1b4)][_0x4af120(0x1b3)](null,_0xed86e9['IEbgz'](getConfigLoaderPath)),_0x24901f=_0x22aa57?_0xed86e9[_0x4af120(0x1b1)](_0x22aa57,_0x45cc21):helper[_0x4af120(0x19c)](_0xed86e9[_0x4af120(0x1df)](_0x12a996,_0x45cc21),[_0xed86e9[_0x4af120(0x191)]]),_0x450b39={};if(_0x34e4f1){const _0x3f00ed=_0xddc5f['findIndex'](_0x2c4f3f=>_0x2c4f3f==='--config'||_0x2c4f3f==='-c'||_0x2c4f3f['startsWith'](_0x4af120(0x1c9)));_0xddc5f[_0x4af120(0x212)](_0x3f00ed,_0xddc5f[_0x3f00ed][_0x4af120(0x1a7)](_0xed86e9[_0x4af120(0x228)])?0x1:0x2);}const _0x4518e3={};return _0x4518e3[_0x4af120(0x239)]=_0x24901f,_0x4518e3['config']=_0x450b39,_0x4518e3;},handleO11yRerun=_0x762acd=>{const _0x5362dc=a39_0x3e7a08,_0x4bea84={};_0x4bea84[_0x5362dc(0x201)]=_0x5362dc(0x1ed);const _0x53c308=_0x4bea84,_0x5960c4=helper['isTrue'](process['env'][_0x5362dc(0x19a)]);if(_0x5960c4){const _0x503181=process['env'][_0x5362dc(0x24b)],_0x28b375=[];if(helper['validateRerunTestList'](_0x503181)&&!helper['isUndefined'](_0x503181)){_0x503181[_0x5362dc(0x254)](',')[_0x5362dc(0x1bb)](_0x1a6ba5=>{const _0x1d6876=_0x5362dc;_0x28b375[_0x1d6876(0x1d1)]('('+_0x1a6ba5[_0x1d6876(0x195)]()+')');});const _0x2e72bb='^'+_0x28b375[_0x5362dc(0x1f8)]('|')+'$';_0x762acd['push'](_0x53c308[_0x5362dc(0x201)],_0x2e72bb);}}},spawnOriginalProcess=_0x39a356=>{const _0x26d88e=a39_0x3e7a08,_0x1944f1={'jjeTy':function(_0x51f229,_0xd7a230,_0x375ba2,_0x12b5d3){return _0x51f229(_0xd7a230,_0x375ba2,_0x12b5d3);},'AtUWz':_0x26d88e(0x245),'NCZXW':'npx','oFXQN':_0x26d88e(0x1e4),'KOutq':function(_0x117073,_0x488385){return _0x117073===_0x488385;},'TBMLm':_0x26d88e(0x1e6),'CwPNs':_0x26d88e(0x231)};_0x1944f1[_0x26d88e(0x1ac)](spawn,helper[_0x26d88e(0x1e8)]()?_0x1944f1[_0x26d88e(0x194)]:_0x1944f1[_0x26d88e(0x213)],[_0x1944f1[_0x26d88e(0x19e)],..._0x39a356[_0x26d88e(0x197)](0x1)],{'shell':_0x1944f1[_0x26d88e(0x1e3)](process['platform'],_0x1944f1[_0x26d88e(0x20b)]),'stdio':_0x1944f1[_0x26d88e(0x1f4)],'cwd':process[_0x26d88e(0x237)]()});},isTestCommand=(_0x43614a,_0x4da64a)=>{const _0xaf5775=a39_0x3e7a08,_0x5ee632={};_0x5ee632[_0xaf5775(0x1f3)]=function(_0x1575ae,_0x3b131a){return _0x1575ae>_0x3b131a;},_0x5ee632['peBlU']=function(_0x3da02a,_0x5b0728){return _0x3da02a===_0x5b0728;},_0x5ee632[_0xaf5775(0x1a2)]='test';const _0xea0d39=_0x5ee632;if(_0xea0d39['HMYar'](_0x4da64a['length'],0x1)&&_0xea0d39[_0xaf5775(0x19b)](_0x4da64a[0x1],_0xea0d39[_0xaf5775(0x1a2)]))return!![];return![];};async function run(_0x2cff14,_0x494a03,_0x5dbe16){const _0x2c32fa=a39_0x3e7a08,_0x29eecb={'yMOXY':_0x2c32fa(0x1b7),'SFDSt':_0x2c32fa(0x1bf),'SaNuf':function(_0x4c1088,_0x1a3715){return _0x4c1088+_0x1a3715;},'qRHcz':'Error\x20in\x20getting\x20funnel\x20data\x20results','jWDXR':function(_0xe2b419){return _0xe2b419();},'UgCmJ':function(_0x413a05){return _0x413a05();},'yltkZ':function(_0x10cebb,_0x4cf12b){return _0x10cebb+_0x4cf12b;},'cbKUs':_0x2c32fa(0x1c5),'YgLgC':function(_0x12f70f,_0x114bda){return _0x12f70f(_0x114bda);},'ysEif':'BrowserStack\x20config\x20file\x20not\x20found.','kDhXP':function(_0x37cd50,_0x5cf673){return _0x37cd50<_0x5cf673;},'oCZfo':function(_0x2d9ca2,_0x2f47ec){return _0x2d9ca2===_0x2f47ec;},'TCqIa':_0x2c32fa(0x1e1),'ITbdj':'--disable-test-observability','wlNQF':function(_0x40584b,_0x4b7b29){return _0x40584b>=_0x4b7b29;},'SXAxx':_0x2c32fa(0x1cf),'tSjtQ':function(_0xd1832c,_0x5e10a4){return _0xd1832c!=_0x5e10a4;},'NFYRt':function(_0xe1d992,_0x47bfaf,_0x4bf9f4){return _0xe1d992(_0x47bfaf,_0x4bf9f4);},'WUgsC':function(_0x1a5291,_0x3471a2){return _0x1a5291(_0x3471a2);},'KFZPS':function(_0x3408de,_0x4598b6){return _0x3408de===_0x4598b6;},'JOlIF':_0x2c32fa(0x255),'bnhIj':function(_0x1da693,_0x312438){return _0x1da693(_0x312438);},'QQnuy':function(_0x2507d8,_0x4b73ef){return _0x2507d8(_0x4b73ef);},'ixLPY':_0x2c32fa(0x1d4),'rutmo':function(_0x3ead48,_0x585903){return _0x3ead48===_0x585903;},'dpzrv':_0x2c32fa(0x243),'EqkLV':_0x2c32fa(0x240),'KBzRc':function(_0x2fadb7,_0x36eef2){return _0x2fadb7-_0x36eef2;},'eEgDY':function(_0x2101d0,_0x4b8937){return _0x2101d0+_0x4b8937;},'KsitZ':_0x2c32fa(0x1f6),'AVoUb':function(_0x734ca7,_0x5435e9){return _0x734ca7>_0x5435e9;},'KWnnO':function(_0x13df49,_0x349f1f){return _0x13df49+_0x349f1f;},'xjQsX':function(_0x1fb111,_0x33d49f,_0x59d765,_0x21f017){return _0x1fb111(_0x33d49f,_0x59d765,_0x21f017);},'CANpT':_0x2c32fa(0x245),'TCOUc':_0x2c32fa(0x1c3),'cECBk':'playwright','ziboC':_0x2c32fa(0x224),'sUtiu':_0x2c32fa(0x203),'QXeVU':_0x2c32fa(0x1e6),'FNGPB':_0x2c32fa(0x231),'FnsXb':'close','lVDBp':function(_0x28126a,_0x1fff7a){return _0x28126a|_0x1fff7a;},'zdejV':function(_0x35b5ee,_0x587565){return _0x35b5ee+_0x587565;},'gulkT':'Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','chIIt':function(_0x384112,_0x2c14d1){return _0x384112+_0x2c14d1;},'XFVsa':_0x2c32fa(0x222)};try{const _0x2eb92c=path[_0x2c32fa(0x1f8)](helper['homedir'](),_0x29eecb['yMOXY']);try{fs[_0x2c32fa(0x1fd)](_0x2eb92c,_0x29eecb['lVDBp'](fs[_0x2c32fa(0x202)]['R_OK'],fs[_0x2c32fa(0x202)][_0x2c32fa(0x192)]));}catch(_0x3c4a52){ClientTroubleShootingService[_0x2c32fa(0x20a)]();}}catch(_0x1410ce){logger[_0x2c32fa(0x1de)](_0x29eecb[_0x2c32fa(0x200)](_0x29eecb[_0x2c32fa(0x1d9)],_0x1410ce));}try{const _0x428e89=path[_0x2c32fa(0x1f8)](helper[_0x2c32fa(0x24d)](),_0x29eecb[_0x2c32fa(0x1a3)],_0x29eecb['SFDSt']);fs[_0x2c32fa(0x23a)](_0x428e89)&&fs[_0x2c32fa(0x259)](_0x428e89);}catch(_0x2777fb){logger[_0x2c32fa(0x1de)](_0x29eecb[_0x2c32fa(0x1ae)](_0x29eecb[_0x2c32fa(0x233)],_0x2777fb));}if(!_0x29eecb[_0x2c32fa(0x210)](isTestCommand,_0x2cff14,_0x494a03)){_0x29eecb[_0x2c32fa(0x1bc)](spawnOriginalProcess,_0x494a03);return;}await PerformanceTester[_0x2c32fa(0x232)](PerformanceEvents[_0x2c32fa(0x1fc)],async()=>{const _0x45f1ec=_0x2c32fa,_0x58701d={'GgxXS':function(_0x335bf0,_0x516fe4){const _0x126e0d=a39_0x5a3e;return _0x29eecb[_0x126e0d(0x1ca)](_0x335bf0,_0x516fe4);},'WOUdh':_0x29eecb[_0x45f1ec(0x1a3)]};if(!_0x5dbe16[_0x45f1ec(0x1b0)]){logger[_0x45f1ec(0x235)](_0x29eecb['ysEif']);return;}await _0x5dbe16[_0x45f1ec(0x219)](_0x2cff14),CLIUtils[_0x45f1ec(0x21d)](FRAMEWORKS[_0x45f1ec(0x21b)],FRAMEWORKS[_0x45f1ec(0x21b)]),BrowserstackCLI[_0x45f1ec(0x1db)]()[_0x45f1ec(0x1a0)](_0x5dbe16[_0x45f1ec(0x1b0)],_0x5dbe16[_0x45f1ec(0x1be)],_0x5dbe16[_0x45f1ec(0x199)]),await BrowserstackCLI[_0x45f1ec(0x1db)]()[_0x45f1ec(0x21a)]();for(var _0x334044=0x0;_0x29eecb[_0x45f1ec(0x23f)](_0x334044,constants[_0x45f1ec(0x1d2)]['length']);_0x334044++){var _0x50b229=constants['INTERNALLY_USED_ENV_VARS'][_0x334044];process[_0x45f1ec(0x249)][_0x50b229]&&await ClientTroubleShootingService['reportConflictingEnvVarIssue'](_0x50b229);}const _0x5ccb36=BrowserstackCLI['getInstance']()[_0x45f1ec(0x1ba)]();!helper[_0x45f1ec(0x1c6)](_0x5ccb36[_0x45f1ec(0x1a9)])&&(process[_0x45f1ec(0x249)][_0x45f1ec(0x1bd)]=!![]);_0x29eecb[_0x45f1ec(0x1ab)](_0x5ccb36[_0x45f1ec(0x1a9)],![])&&(process['env'][_0x45f1ec(0x1bd)]=_0x29eecb[_0x45f1ec(0x226)],_0x494a03=_0x494a03[_0x45f1ec(0x1c0)](_0x121355=>_0x121355!=='--disable-browserstack-automation'));const _0x19aa37=_0x494a03[_0x45f1ec(0x22c)](_0x29eecb[_0x45f1ec(0x209)]);(_0x29eecb['wlNQF'](_0x19aa37,0x0)||_0x29eecb[_0x45f1ec(0x1ab)](_0x5ccb36[_0x45f1ec(0x1ee)],![]))&&(process[_0x45f1ec(0x249)][_0x45f1ec(0x1cd)]=_0x29eecb['TCqIa'],_0x494a03=_0x494a03[_0x45f1ec(0x1c0)](_0x4dc2ce=>_0x4dc2ce!=='--disable-test-observability'));!helper[_0x45f1ec(0x1dc)](_0x5dbe16[_0x45f1ec(0x199)])&&_0x5dbe16['cliConfig'][_0x45f1ec(0x1ad)](_0x29eecb[_0x45f1ec(0x227)])&&(process[_0x45f1ec(0x249)]['BROWSERSTACK_AUTOMATION']=_0x5dbe16[_0x45f1ec(0x199)][_0x45f1ec(0x21e)](_0x29eecb[_0x45f1ec(0x227)])||!![]);_0x29eecb['tSjtQ'](_0x5dbe16['config'][_0x45f1ec(0x1ee)],null)&&!helper[_0x45f1ec(0x22f)](process[_0x45f1ec(0x249)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x45f1ec(0x249)][_0x45f1ec(0x1cd)]=process['env'][_0x45f1ec(0x1cd)]||_0x5dbe16[_0x45f1ec(0x1b0)][_0x45f1ec(0x1ee)]);const _0x1e5bff=!helper['isFalse'](process[_0x45f1ec(0x249)]['BROWSERSTACK_TEST_OBSERVABILITY']);_0x5dbe16[_0x45f1ec(0x1b0)][_0x45f1ec(0x220)]&&(process[_0x45f1ec(0x249)][_0x45f1ec(0x193)]=JSON['stringify'](_0x5dbe16[_0x45f1ec(0x1b0)]['accessibilityOptions']));let _0x45808a=![];_0x5dbe16[_0x45f1ec(0x1b0)][_0x45f1ec(0x198)]&&(_0x45808a=!![],process[_0x45f1ec(0x249)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x5dbe16[_0x45f1ec(0x1b0)][_0x45f1ec(0x198)]);const _0x38adca=_0x494a03[_0x45f1ec(0x221)](),_0x56c3e7=await _0x29eecb[_0x45f1ec(0x210)](getUserPlaywrightConfig,_0x2cff14,_0x494a03);if(helper[_0x45f1ec(0x1dc)](_0x56c3e7)){_0x29eecb[_0x45f1ec(0x1bc)](spawnOriginalProcess,_0x38adca);return;}const _0x4bb785=_0x56c3e7[_0x45f1ec(0x239)]?path[_0x45f1ec(0x1c7)](_0x56c3e7['path']):process[_0x45f1ec(0x237)]();process['env'][_0x45f1ec(0x1cc)]=_0x4bb785,await PerformanceTester[_0x45f1ec(0x232)](PerformanceEvents[_0x45f1ec(0x238)],async()=>{const _0x3da14f=_0x45f1ec;!BrowserstackCLI[_0x3da14f(0x1db)]()[_0x3da14f(0x229)]()&&await TestHubHandler[_0x3da14f(0x1f7)](FRAMEWORKS['PLAYWRIGHT'],_0x5dbe16),_0x1e5bff&&_0x58701d[_0x3da14f(0x19f)](handleO11yRerun,_0x494a03);})();if(!BrowserstackCLI[_0x45f1ec(0x1db)]()[_0x45f1ec(0x229)]()){let _0x59a3a0=_0x29eecb['KFZPS'](process[_0x45f1ec(0x249)][_0x45f1ec(0x241)],_0x29eecb['JOlIF']);_0x59a3a0=_0x59a3a0||_0x29eecb[_0x45f1ec(0x216)](checkAccessibilityPlatformConfig,_0x5dbe16['config']),process[_0x45f1ec(0x249)][_0x45f1ec(0x241)]=_0x59a3a0,_0x59a3a0&&_0x29eecb[_0x45f1ec(0x1ff)](setAccessibilityCapabilities,_0x5dbe16[_0x45f1ec(0x1b0)]);}const _0x4849aa=path[_0x45f1ec(0x1f8)](_0x56c3e7[_0x45f1ec(0x239)]?path['dirname'](_0x56c3e7[_0x45f1ec(0x239)]):process[_0x45f1ec(0x237)](),_0x29eecb[_0x45f1ec(0x24f)]);fs[_0x45f1ec(0x1f2)](_0x4849aa,helper[_0x45f1ec(0x1a1)](_0x5dbe16[_0x45f1ec(0x1b0)])),process['env'][_0x45f1ec(0x20d)]=_0x4849aa,helper[_0x45f1ec(0x225)]();let _0xdbe472='';_0x29eecb[_0x45f1ec(0x23e)](helper[_0x45f1ec(0x1b5)](),constants[_0x45f1ec(0x1ce)][_0x45f1ec(0x247)])?_0xdbe472=_0x29eecb[_0x45f1ec(0x1fb)]:_0xdbe472=_0x29eecb[_0x45f1ec(0x1cb)];let _0x346acd='';if(helper[_0x45f1ec(0x1b6)](_0x56c3e7['path'])){_0x346acd=_0x45f1ec(0x251);const _0x587bf7=_0xdbe472[_0x45f1ec(0x254)]('.');_0x587bf7[_0x29eecb[_0x45f1ec(0x1c4)](_0x587bf7[_0x45f1ec(0x205)],0x1)]='ts',_0xdbe472=_0x587bf7['join']('.'),logger[_0x45f1ec(0x1de)](_0x29eecb['eEgDY'](_0x29eecb['KsitZ'],_0xdbe472));}else _0x346acd=_0x45f1ec(0x1dd);const _0x23f874=path[_0x45f1ec(0x1f8)](_0x56c3e7[_0x45f1ec(0x239)]?path[_0x45f1ec(0x1c7)](_0x56c3e7[_0x45f1ec(0x239)]):process[_0x45f1ec(0x237)](),_0xdbe472);let _0xe6a976=_0x56c3e7[_0x45f1ec(0x239)]?_0x56c3e7['path']:'';_0xe6a976=_0x29eecb[_0x45f1ec(0x21f)](_0xe6a976['length'],0x0)?path[_0x45f1ec(0x252)](_0xe6a976):'',process['env'][_0x45f1ec(0x1e9)]=_0xe6a976;const _0xd056e5=helper['getProxyUrl'](_0x5dbe16['config']),_0x3bd1b6=helper[_0x45f1ec(0x1ef)](_0x5dbe16[_0x45f1ec(0x1b0)]);logger[_0x45f1ec(0x1de)](_0x45f1ec(0x1e5)+_0xd056e5),logger[_0x45f1ec(0x1de)](_0x45f1ec(0x24e)+_0x3bd1b6);_0xd056e5&&(_0x346acd=_0x29eecb['KWnnO'](_0x45f1ec(0x24c)+_0xd056e5+'\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'+_0x3bd1b6+_0x45f1ec(0x190),_0x346acd));helper[_0x45f1ec(0x24a)]({},_0x494a03),fs[_0x45f1ec(0x1f2)](_0x23f874,_0x346acd),PerformanceTester[_0x45f1ec(0x214)](PerformanceEvents[_0x45f1ec(0x215)]);const _0x4fac14=_0x29eecb[_0x45f1ec(0x20c)](spawn,helper[_0x45f1ec(0x1e8)]()?_0x29eecb[_0x45f1ec(0x22a)]:_0x29eecb[_0x45f1ec(0x1a4)],[_0x29eecb[_0x45f1ec(0x1eb)],_0x29eecb[_0x45f1ec(0x246)],_0x29eecb[_0x45f1ec(0x211)],_0x29eecb['oCZfo'](process[_0x45f1ec(0x250)],_0x29eecb[_0x45f1ec(0x19d)])?'\x22'+_0x23f874+'\x22':_0x23f874,..._0x494a03['slice'](0x2)],{'shell':_0x29eecb[_0x45f1ec(0x1ab)](process[_0x45f1ec(0x250)],_0x29eecb[_0x45f1ec(0x19d)]),'stdio':_0x29eecb[_0x45f1ec(0x253)],'cwd':process[_0x45f1ec(0x237)](),'env':Object[_0x45f1ec(0x21c)]({},process[_0x45f1ec(0x249)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x45f1ec(0x1d3)](_0x2cff14),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x5dbe16['config'][_0x45f1ec(0x1a6)][_0x45f1ec(0x23d)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x5dbe16[_0x45f1ec(0x1b0)][_0x45f1ec(0x1a6)][_0x45f1ec(0x1f9)],'BROWSERSTACK_LOG_LEVEL':_0x5dbe16[_0x45f1ec(0x1b0)][_0x45f1ec(0x256)]})}),_0x3829b6=()=>{const _0x2251b9=_0x45f1ec;try{const _0x95354f=path[_0x2251b9(0x1f8)](helper['homedir'](),_0x29eecb[_0x2251b9(0x1a3)],_0x29eecb['SFDSt']);if(fs[_0x2251b9(0x23a)](_0x95354f)){let _0x4d7902=fs[_0x2251b9(0x218)](_0x95354f);_0x4d7902=JSON[_0x2251b9(0x1fa)](_0x4d7902),_0x5dbe16[_0x2251b9(0x1af)]=_0x4d7902,fs['unlinkSync'](_0x95354f);}}catch(_0xa26dde){logger[_0x2251b9(0x1de)](_0x29eecb['SaNuf'](_0x29eecb[_0x2251b9(0x234)],_0xa26dde));}};_0x4fac14['on'](_0x29eecb[_0x45f1ec(0x1da)],async _0x438577=>{const _0x1e052c=_0x45f1ec;try{PerformanceTester[_0x1e052c(0x1c2)](PerformanceEvents[_0x1e052c(0x1d5)]),_0x29eecb[_0x1e052c(0x1c8)](_0x3829b6),await TestHubHandler[_0x1e052c(0x230)](),await ClientTroubleShootingService[_0x1e052c(0x204)](),await BrowserstackCLI[_0x1e052c(0x1db)]()[_0x1e052c(0x230)](),TestDetails[_0x1e052c(0x1c1)](),_0x29eecb['UgCmJ'](printBuildLink),await utilities[_0x1e052c(0x23c)](_0x5dbe16),process[_0x1e052c(0x1f1)]=_0x438577,logger[_0x1e052c(0x1de)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x438577),logger[_0x1e052c(0x1d0)](_0x1e052c(0x1e0)+_0x23f874),fs[_0x1e052c(0x259)](_0x23f874);fs[_0x1e052c(0x23a)](_0x4849aa)&&(logger[_0x1e052c(0x1de)]('Deleting\x20'+_0x4849aa),fs['unlinkSync'](_0x4849aa));const _0xcf3240=fs[_0x1e052c(0x208)](path[_0x1e052c(0x1f8)](helper[_0x1e052c(0x24d)](),_0x29eecb[_0x1e052c(0x1a3)]))[_0x1e052c(0x1c0)](_0x37b74c=>_0x37b74c[_0x1e052c(0x1a7)](_0x1e052c(0x1b8)));_0xcf3240[_0x1e052c(0x1d7)](_0x546fa4=>{const _0x348ce8=_0x1e052c;fs[_0x348ce8(0x259)](path[_0x348ce8(0x1f8)](helper[_0x348ce8(0x24d)](),_0x58701d[_0x348ce8(0x206)],_0x546fa4));});}catch(_0x10df4c){logger[_0x1e052c(0x1de)](_0x29eecb[_0x1e052c(0x1aa)](_0x29eecb[_0x1e052c(0x1ec)],_0x10df4c));}});})();}module[a39_0x3e7a08(0x1d8)]=run;
|