browserstack-node-sdk 1.36.2 → 1.36.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -7
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/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/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/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
- package/generated/sdk-messages-accessibility_grpc_pb.d.ts +0 -1
- package/generated/sdk-messages-accessibility_grpc_pb.js +0 -1
- package/generated/sdk-messages-accessibility_pb.d.ts +0 -279
- package/generated/sdk-messages-accessibility_pb.js +0 -2186
- package/generated/sdk-messages-ai_grpc_pb.d.ts +0 -1
- package/generated/sdk-messages-ai_grpc_pb.js +0 -1
- package/generated/sdk-messages-ai_pb.d.ts +0 -217
- package/generated/sdk-messages-ai_pb.js +0 -1650
- package/generated/sdk-messages-observability_grpc_pb.d.ts +0 -1
- package/generated/sdk-messages-observability_grpc_pb.js +0 -1
- package/generated/sdk-messages-observability_pb.d.ts +0 -178
- package/generated/sdk-messages-observability_pb.js +0 -1377
- package/generated/sdk-messages-percy_grpc_pb.d.ts +0 -1
- package/generated/sdk-messages-percy_grpc_pb.js +0 -1
- package/generated/sdk-messages-percy_pb.d.ts +0 -37
- package/generated/sdk-messages-percy_pb.js +0 -266
- package/generated/sdk-messages-testhub_grpc_pb.d.ts +0 -1
- package/generated/sdk-messages-testhub_grpc_pb.js +0 -1
- package/generated/sdk-messages-testhub_pb.d.ts +0 -39
- package/generated/sdk-messages-testhub_pb.js +0 -290
- package/generated/sdk-messages_grpc_pb.d.ts +0 -1
- package/generated/sdk-messages_grpc_pb.js +0 -1
- package/generated/sdk-messages_pb.d.ts +0 -1105
- package/generated/sdk-messages_pb.js +0 -8580
- package/generated/sdk_grpc_pb.d.ts +0 -113
- package/generated/sdk_grpc_pb.js +0 -609
- package/generated/sdk_pb.d.ts +0 -9
- package/generated/sdk_pb.js +0 -31
- package/src/bin/v2/TestInfo.js +0 -1
- package/src/bin/v2/browserstackCLI.js +0 -1
- package/src/bin/v2/cliUtils.js +0 -1
- package/src/bin/v2/customTagManager.js +0 -1
- package/src/bin/v2/eventDispatcher.js +0 -1
- package/src/bin/v2/framework/automationFramework.js +0 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +0 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +0 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +0 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +0 -1
- package/src/bin/v2/framework/testFramework.js +0 -1
- package/src/bin/v2/grpcClient.js +0 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +0 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +0 -1
- package/src/bin/v2/instances/trackedContext.js +0 -1
- package/src/bin/v2/instances/trackedInstance.js +0 -1
- package/src/bin/v2/modules/accessibilityModule.js +0 -1
- package/src/bin/v2/modules/baseModule.js +0 -1
- package/src/bin/v2/modules/observabilityModule.js +0 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +0 -1
- package/src/bin/v2/modules/testhubModule.js +0 -1
- package/src/bin/v2/state/automationFrameworkState.js +0 -1
- package/src/bin/v2/state/hookState.js +0 -1
- package/src/bin/v2/state/testFrameworkState.js +0 -1
- package/src/bin/v2/uploadAttachmentsManager.js +0 -1
- package/src/helpers/classLogger.js +0 -1
- package/src/helpers/test-orchestration/fail-fast/fileHelper.js +0 -1
- package/src/helpers/test-orchestration/fail-fast/jest.js +0 -1
- package/src/helpers/test-orchestration/fail-fast/requestUtils.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x2428b7=a29_0x5105;(function(_0x5f56a4,_0x59a953){const _0x2650c6=a29_0x5105,_0x5c8bba=_0x5f56a4();while(!![]){try{const _0x5ad693=parseInt(_0x2650c6(0x1dd))/0x1*(parseInt(_0x2650c6(0x1dc))/0x2)+parseInt(_0x2650c6(0x19b))/0x3*(-parseInt(_0x2650c6(0x1aa))/0x4)+-parseInt(_0x2650c6(0x1bb))/0x5*(-parseInt(_0x2650c6(0x1e2))/0x6)+-parseInt(_0x2650c6(0x191))/0x7+parseInt(_0x2650c6(0x186))/0x8*(parseInt(_0x2650c6(0x1cd))/0x9)+parseInt(_0x2650c6(0x171))/0xa+-parseInt(_0x2650c6(0x19a))/0xb;if(_0x5ad693===_0x59a953)break;else _0x5c8bba['push'](_0x5c8bba['shift']());}catch(_0x87264c){_0x5c8bba['push'](_0x5c8bba['shift']());}}}(a29_0x5424,0x529ad));function a29_0x5424(){const _0xb41003=['logLevel','capabilities_','setLogLevel','../accessibility-automation/helper','koxzo','safariOptions_','668454hfGMiM','1tPaCyx','CAPABILITY_KEY','getGlobal','lLGAm','Modifying\x20webdriver\x20builder','6LhggUI','wsLNQ','edgeOptions','gkvtF','optimalHubUrl','aCUbm','capability','YuapH','PHREM','4135990xoaHDj','Wqizj','uyvWl','MFxWZ','get','Setting\x20Browserstack\x20capabilities','Proxy\x20set\x20to\x20','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','then','proxy_','ieOptions','WjcTs','getAccessibilityResultsSummary','HttpClient','../../../hubAllocationMethods','push','global','split','edgeOptions_','getAccessibilityResults','getHubUrl','3440XDJSMg','quitCount_','firefoxOptions','/wd/hub','ms:edgeOptions','JvECg','mergeDeep','YbVdz','Builder','yzFit','hUMHL','2197741lIODLm','sAjMr','https://','./helpers/patchHelper','setServer','object','/session','send','newHubUrl','9866725wIzRBo','16350eqAfmb','isUndefined','LjInU','sRYSs','isPacProxy','chromeOptions_','JKpjr','Fdlyz','set','__setBrowserOptions','YQEeY','XgTGe','caps_','setGlobal','../../../helpers/patchHelpers','20kPntoL','proxyUrl','HRaqT','Uoyuf','../../../bin/utils/constants','proxySettings','session_','requireHttpClient','tkUlV','chromeOptions','VrpNs','../../../helpers/globals','firefoxOptions_','browserstackAgentObservability','YjjPO','ATYfa','originalBuilder','1980655POvUQe','nazUl','KyLLF','storeOptimalHubUrl','TksPs','options_','Hub\x20url\x20set\x20to\x20','overrideGet','keys','CwdJR','__driversArray','__drivers','winstonLogger','browserStackLogLevel','setCapabilities','ieOptions_','path','debug','9054exjXBd','url_','exports','safari.options','isBrowserstackInfra','updateHubUrl','QYPve','info','goog:chromeOptions'];a29_0x5424=function(){return _0xb41003;};return a29_0x5424();}function a29_0x5105(_0x4ecdff,_0x5a64d3){const _0x5424ca=a29_0x5424();return a29_0x5105=function(_0x51056c,_0x1205e7){_0x51056c=_0x51056c-0x171;let _0x38e81f=_0x5424ca[_0x51056c];return _0x38e81f;},a29_0x5105(_0x4ecdff,_0x5a64d3);}const logger=require('../../../helpers/logger')[a29_0x2428b7(0x1c7)],helper=require('../../../helpers/helper'),constants=require(a29_0x2428b7(0x1ae)),hubAllocator=require(a29_0x2428b7(0x17f)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x2428b7(0x1a9)),{setAccessibilityCapabilities,setExtension}=require(a29_0x2428b7(0x1d9)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a29_0x2428b7(0x1b5)),{overrideExecute}=require(a29_0x2428b7(0x194)),modify=(_0x3d2ef7,_0x27c9c4=null,_0x1f22d4=![])=>{const _0x269f35=a29_0x2428b7,_0x337f0f={'Uoyuf':function(_0x30a7a1,_0x44a132){return _0x30a7a1!==_0x44a132;},'TksPs':_0x269f35(0x197),'CwdJR':function(_0xa00a30,_0x41ae43){return _0xa00a30+_0x41ae43;},'YbVdz':function(_0x401963,_0x437564){return _0x401963+_0x437564;},'JvECg':_0x269f35(0x193),'VrpNs':_0x269f35(0x189),'LjInU':_0x269f35(0x1d5),'XgTGe':_0x269f35(0x1b3),'sAjMr':_0x269f35(0x18a),'iKgIo':_0x269f35(0x1e4),'PHREM':'moz:firefoxOptions','YuapH':_0x269f35(0x188),'YjjPO':_0x269f35(0x1d0),'aCUbm':'se:ieOptions','WjcTs':_0x269f35(0x17b),'ATYfa':function(_0x5b7bf6,_0x464227){return _0x5b7bf6===_0x464227;},'gAvEu':_0x269f35(0x196),'OlyQs':_0x269f35(0x176),'BvJQW':_0x269f35(0x1e6),'hUMHL':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','tkUlV':function(_0x9fe287,_0x47c38c,_0x330fbc){return _0x9fe287(_0x47c38c,_0x330fbc);},'koxzo':function(_0x380118,_0x5d6a55,_0x222584){return _0x380118(_0x5d6a55,_0x222584);},'sRYSs':function(_0x3038d6,_0x913439){return _0x3038d6(_0x913439);},'TAyvD':function(_0x342096,_0x25d39e,_0x5c0c3f){return _0x342096(_0x25d39e,_0x5c0c3f);},'KyLLF':'1|4|2|0|5|3','yzFit':function(_0x2e157b){return _0x2e157b();},'kahoC':function(_0x29cea4,_0x12ff38){return _0x29cea4(_0x12ff38);},'lLGAm':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','MFxWZ':'isAccessibilityPlatform','YQEeY':function(_0x2c9e91,_0x2e4160){return _0x2c9e91(_0x2e4160);},'HRaqT':function(_0x2031b6,_0x88eb18){return _0x2031b6(_0x88eb18);},'gkvtF':function(_0x52f249,_0x3750e6,_0x4c9038){return _0x52f249(_0x3750e6,_0x4c9038);},'nazUl':function(_0x14596b,_0x45a6e5){return _0x14596b!==_0x45a6e5;},'lXfnh':_0x269f35(0x178),'QYPve':_0x269f35(0x1e1)},_0x3185e8=helper[_0x269f35(0x1b1)]();let _0x385ddd;try{_0x385ddd=helper['requireSeleniumWebdriver'](),_0x385ddd[_0x269f35(0x1ba)]&&(_0x385ddd['Builder']=_0x385ddd[_0x269f35(0x1ba)]);}catch(_0x4cbbce){return;}if(helper[_0x269f35(0x1d1)]()){const _0x88b4b8={};_0x88b4b8[_0x269f35(0x1d6)]=_0x3d2ef7[_0x269f35(0x1c8)],helper[_0x269f35(0x1d8)](_0x88b4b8,new Map(),new Map()),logger[_0x269f35(0x1d4)](_0x337f0f['lXfnh']),logger[_0x269f35(0x1cc)](_0x337f0f[_0x269f35(0x1d3)]);}class _0x56d763 extends _0x3185e8[_0x269f35(0x17e)]{[_0x269f35(0x198)](_0x4bfbce){const _0x2c89c6=_0x269f35;if(_0x337f0f[_0x2c89c6(0x1ad)](_0x4bfbce[_0x2c89c6(0x1cb)],_0x337f0f[_0x2c89c6(0x1bf)])&&_0x337f0f[_0x2c89c6(0x1ad)](global[_0x2c89c6(0x199)],''))try{global[_0x2c89c6(0x199)]=_0x337f0f[_0x2c89c6(0x1c4)](_0x337f0f[_0x2c89c6(0x18d)](_0x337f0f[_0x2c89c6(0x18b)],global[_0x2c89c6(0x199)]),_0x337f0f[_0x2c89c6(0x1b4)]),this[_0x2c89c6(0x1c0)]=hubAllocator['getRequestOptions'](global[_0x2c89c6(0x199)]),logger[_0x2c89c6(0x1cc)]('New\x20hub\x20url\x20set\x20to\x20'+global['newHubUrl']),global[_0x2c89c6(0x199)]='';}catch(_0x1ddfa3){logger['error'](_0x1ddfa3);}return super['send'](_0x4bfbce);}}class _0x26812e extends _0x385ddd[_0x269f35(0x18e)]{[_0x269f35(0x195)](){const _0x1fcc81=_0x269f35;return this[_0x1fcc81(0x1ce)]=helper[_0x1fcc81(0x185)](_0x3d2ef7),logger[_0x1fcc81(0x1cc)](_0x1fcc81(0x1c1)+this['url_']),this;}['__setBrowserOptions'](_0x116320){const _0x5d1e72=_0x269f35;let _0x2466b6={};for(const _0x453880 in _0x116320){switch(_0x453880){case _0x337f0f[_0x5d1e72(0x19d)]:case _0x337f0f[_0x5d1e72(0x1a6)]:this[_0x5d1e72(0x1a0)]&&(_0x2466b6=this['chromeOptions_'][_0x5d1e72(0x175)](this[_0x5d1e72(0x1a0)]['CAPABILITY_KEY'])||{},this['chromeOptions_'][_0x5d1e72(0x1a3)](this[_0x5d1e72(0x1a0)][_0x5d1e72(0x1de)],helper[_0x5d1e72(0x18c)](_0x2466b6,_0x116320[_0x453880])));break;case _0x337f0f[_0x5d1e72(0x192)]:case _0x337f0f['iKgIo']:this['edgeOptions_']&&(_0x2466b6=this[_0x5d1e72(0x183)]['get'](this[_0x5d1e72(0x183)][_0x5d1e72(0x1de)])||{},this['edgeOptions_'][_0x5d1e72(0x1a3)](this[_0x5d1e72(0x183)]['CAPABILITY_KEY'],helper[_0x5d1e72(0x18c)](_0x2466b6,_0x116320[_0x453880])));break;case _0x337f0f[_0x5d1e72(0x1ea)]:case _0x337f0f[_0x5d1e72(0x1e9)]:this[_0x5d1e72(0x1b6)]&&(_0x2466b6=this[_0x5d1e72(0x1b6)]['get'](this[_0x5d1e72(0x1b6)][_0x5d1e72(0x1de)])||{},this[_0x5d1e72(0x1b6)][_0x5d1e72(0x1a3)](this['firefoxOptions_']['CAPABILITY_KEY'],helper[_0x5d1e72(0x18c)](_0x2466b6,_0x116320[_0x453880])));break;case _0x337f0f[_0x5d1e72(0x1b8)]:this[_0x5d1e72(0x1db)]&&(_0x2466b6=this[_0x5d1e72(0x1db)]['get'](this[_0x5d1e72(0x1db)][_0x5d1e72(0x1de)])||{},this[_0x5d1e72(0x1db)][_0x5d1e72(0x1a3)](this['safariOptions_'][_0x5d1e72(0x1de)],helper[_0x5d1e72(0x18c)](_0x2466b6,_0x116320[_0x453880])));break;case _0x337f0f[_0x5d1e72(0x1e7)]:case _0x337f0f[_0x5d1e72(0x17c)]:this['ieOptions_']&&(_0x2466b6=this[_0x5d1e72(0x1ca)][_0x5d1e72(0x175)](this[_0x5d1e72(0x1ca)][_0x5d1e72(0x1de)])||{},this[_0x5d1e72(0x1ca)][_0x5d1e72(0x1a3)](this[_0x5d1e72(0x1ca)]['CAPABILITY_KEY'],helper[_0x5d1e72(0x18c)](_0x2466b6,_0x116320[_0x453880])));break;}}}[_0x269f35(0x1c9)](){const _0x5318bc=_0x269f35,_0x503f1a={'Fdlyz':function(_0x41b444,_0x30ab9d){const _0x63a8a5=a29_0x5105;return _0x337f0f[_0x63a8a5(0x1b9)](_0x41b444,_0x30ab9d);},'JKpjr':_0x337f0f['gAvEu']};return logger[_0x5318bc(0x1cc)](_0x337f0f['OlyQs']),this[_0x5318bc(0x1a4)](_0x3d2ef7[_0x5318bc(0x1e8)]),Object[_0x5318bc(0x1c3)](_0x3d2ef7[_0x5318bc(0x1e8)])['forEach'](_0xcd88a=>{const _0x243594=_0x5318bc,_0x54ad46=this[_0x243594(0x1d7)][_0x243594(0x175)](_0xcd88a);_0x503f1a[_0x243594(0x1a2)](typeof _0x54ad46,_0x503f1a[_0x243594(0x1a1)])?this[_0x243594(0x1d7)][_0x243594(0x1a3)](_0xcd88a,helper[_0x243594(0x18c)](_0x54ad46,_0x3d2ef7[_0x243594(0x1e8)][_0xcd88a])):this[_0x243594(0x1d7)]['set'](_0xcd88a,_0x3d2ef7[_0x243594(0x1e8)][_0xcd88a]);}),this;}['build'](){const _0x4f0b28=_0x269f35,_0x10c364={'uyvWl':function(_0xf477d6,_0x1448df,_0x2baf76){const _0x5bb33f=a29_0x5105;return _0x337f0f[_0x5bb33f(0x1b2)](_0xf477d6,_0x1448df,_0x2baf76);},'wsLNQ':function(_0xd82716,_0x43918a,_0x3e0d44){return _0x337f0f['tkUlV'](_0xd82716,_0x43918a,_0x3e0d44);}};if(helper[_0x4f0b28(0x1d1)]()){const _0x3c7d13=_0x337f0f[_0x4f0b28(0x1bd)][_0x4f0b28(0x182)]('|');let _0x50d8f5=0x0;while(!![]){switch(_0x3c7d13[_0x50d8f5++]){case'0':if(helper[_0x4f0b28(0x19f)](_0x3d2ef7[_0x4f0b28(0x1af)][_0x4f0b28(0x1ab)]))this['agent_']=helper['getHttpAgent'](_0x3d2ef7['proxySettings'][_0x4f0b28(0x1ab)]);else _0x3d2ef7[_0x4f0b28(0x1af)]['proxyUrl']&&(this[_0x4f0b28(0x17a)]=_0x3d2ef7[_0x4f0b28(0x1af)][_0x4f0b28(0x1ab)],logger[_0x4f0b28(0x1cc)](_0x4f0b28(0x177)+this[_0x4f0b28(0x17a)]));continue;case'1':_0x337f0f[_0x4f0b28(0x18f)](isAccessibilityAutomationSession)&&_0x337f0f['kahoC'](setAccessibilityCapabilities,_0x3d2ef7);continue;case'2':this[_0x4f0b28(0x1c9)]();continue;case'3':logger[_0x4f0b28(0x1cc)](_0x337f0f[_0x4f0b28(0x1e0)]);continue;case'4':this[_0x4f0b28(0x195)]();continue;case'5':globals[_0x4f0b28(0x1df)](_0x337f0f[_0x4f0b28(0x174)])&&(!_0x337f0f[_0x4f0b28(0x1b2)](setExtension,this,_0x3d2ef7)&&globals[_0x4f0b28(0x1a8)](_0x337f0f['MFxWZ'],![]));continue;}break;}}const _0x105a9a=super['build']();return _0x105a9a[_0x4f0b28(0x1b0)][_0x4f0b28(0x179)](_0x1259e8=>{const _0x42a890=_0x4f0b28;try{const _0x132dcc=_0x1259e8[_0x42a890(0x1a7)][_0x42a890(0x175)](_0x337f0f['BvJQW']);_0x132dcc?(logger[_0x42a890(0x1cc)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x132dcc),hubAllocator[_0x42a890(0x1d2)](_0x132dcc),helper[_0x42a890(0x1be)](_0x132dcc)):logger['debug'](_0x337f0f[_0x42a890(0x190)]);}catch(_0x6b67bb){logger[_0x42a890(0x1cc)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x6b67bb);}}),_0x105a9a[_0x4f0b28(0x187)]=0x0,_0x105a9a['then']&&_0x105a9a[_0x4f0b28(0x179)](_0x360aef=>{const _0x3ea7e4=_0x4f0b28,_0x95b031={'Wqizj':function(_0x518a00,_0x458603,_0x2d3539){return _0x337f0f['tkUlV'](_0x518a00,_0x458603,_0x2d3539);}};_0x337f0f[_0x3ea7e4(0x1da)](overrideQuit,_0x360aef,_0x105a9a),_0x337f0f[_0x3ea7e4(0x19e)](overrideTakeScreenshot,_0x360aef),helper['overrideGet'](_0x360aef,_0x3d2ef7),_0x337f0f['TAyvD'](overrideExecute,_0x360aef,_0x3d2ef7),_0x360aef['getAccessibilityResultsSummary']=async()=>{const _0x4d794e=_0x3ea7e4;return await _0x95b031[_0x4d794e(0x172)](getAccessibilityResultsSummary,_0x360aef,global);},_0x360aef['getAccessibilityResults']=async()=>{const _0x25c8d1=_0x3ea7e4;return await _0x10c364[_0x25c8d1(0x173)](getAccessibilityResults,_0x360aef,global);};}),_0x105a9a[_0x4f0b28(0x17d)]=async()=>{const _0x215fcb=_0x4f0b28;return await _0x337f0f[_0x215fcb(0x1b2)](getAccessibilityResultsSummary,_0x105a9a,global);},_0x105a9a[_0x4f0b28(0x184)]=async()=>{const _0x4a499d=_0x4f0b28;return await _0x10c364[_0x4a499d(0x1e3)](getAccessibilityResults,_0x105a9a,global);},_0x337f0f[_0x4f0b28(0x1a5)](overrideTakeScreenshot,_0x105a9a),_0x337f0f[_0x4f0b28(0x1ac)](overrideQuit,_0x105a9a),helper[_0x4f0b28(0x1c2)](_0x105a9a,_0x3d2ef7),_0x337f0f[_0x4f0b28(0x1e5)](overrideExecute,_0x105a9a,_0x3d2ef7),helper[_0x4f0b28(0x19c)](global[_0x4f0b28(0x1c5)])&&(global[_0x4f0b28(0x1c5)]=[]),helper[_0x4f0b28(0x19c)](global[_0x4f0b28(0x1c6)])&&(global['__drivers']=[]),global['__driversArray'][_0x4f0b28(0x180)](_0x105a9a),global['__driver']=_0x105a9a,_0x337f0f['Uoyuf'](global[_0x4f0b28(0x1c6)],undefined)&&global[_0x4f0b28(0x1c6)][_0x4f0b28(0x180)](_0x105a9a),_0x27c9c4&&helper[_0x4f0b28(0x19c)](_0x27c9c4[_0x4f0b28(0x181)][_0x4f0b28(0x1c5)])&&(_0x27c9c4[_0x4f0b28(0x181)]['__driversArray']=[]),_0x27c9c4&&_0x337f0f[_0x4f0b28(0x1bc)](_0x27c9c4[_0x4f0b28(0x181)][_0x4f0b28(0x1c6)],undefined)&&(_0x27c9c4[_0x4f0b28(0x181)][_0x4f0b28(0x1c6)]['push'](_0x105a9a),_0x27c9c4[_0x4f0b28(0x181)][_0x4f0b28(0x1c5)]['push'](_0x105a9a)),_0x105a9a;}}return _0x385ddd[_0x269f35(0x1ba)]=_0x385ddd[_0x269f35(0x18e)],_0x385ddd['Builder']=_0x26812e,_0x3185e8[_0x269f35(0x17e)]=_0x56d763,_0x385ddd;};module[a29_0x2428b7(0x1cf)][a29_0x2428b7(0x1b7)]=modify;
|
|
1
|
+
const a29_0x28d8b3=a29_0x1c09;(function(_0x16156b,_0x3c9039){const _0x227655=a29_0x1c09,_0x24a524=_0x16156b();while(!![]){try{const _0x5616ca=parseInt(_0x227655(0x185))/0x1*(parseInt(_0x227655(0x169))/0x2)+parseInt(_0x227655(0x186))/0x3*(parseInt(_0x227655(0x18e))/0x4)+-parseInt(_0x227655(0x1a6))/0x5+-parseInt(_0x227655(0x170))/0x6*(-parseInt(_0x227655(0x194))/0x7)+parseInt(_0x227655(0x1ad))/0x8*(parseInt(_0x227655(0x176))/0x9)+-parseInt(_0x227655(0x1a7))/0xa+-parseInt(_0x227655(0x182))/0xb;if(_0x5616ca===_0x3c9039)break;else _0x24a524['push'](_0x24a524['shift']());}catch(_0x52b886){_0x24a524['push'](_0x24a524['shift']());}}}(a29_0x1fee,0xbcd8b));const logger=require(a29_0x28d8b3(0x1ac))[a29_0x28d8b3(0x1ba)],helper=require(a29_0x28d8b3(0x193)),constants=require(a29_0x28d8b3(0x17e)),hubAllocator=require(a29_0x28d8b3(0x183)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a29_0x28d8b3(0x181)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x28d8b3(0x15e)),globals=require(a29_0x28d8b3(0x17f)),{overrideExecute}=require(a29_0x28d8b3(0x15a)),modify=(_0x2d7315,_0x2a5912=null,_0xc5655d=![])=>{const _0x51b5db=a29_0x28d8b3,_0x28413e={'PEchv':function(_0x419fcc,_0x155915){return _0x419fcc!==_0x155915;},'cCwnR':_0x51b5db(0x15f),'lngDg':function(_0x4c1070,_0x24123e){return _0x4c1070+_0x24123e;},'WXBXH':_0x51b5db(0x198),'IWrPQ':_0x51b5db(0x1c3),'tfIlA':_0x51b5db(0x18d),'slMBd':_0x51b5db(0x188),'PvbDE':_0x51b5db(0x159),'YusfV':_0x51b5db(0x19c),'RxTzH':_0x51b5db(0x168),'VUvVv':_0x51b5db(0x1c1),'CMHRE':_0x51b5db(0x197),'zWBTL':'se:ieOptions','cMUvM':'ieOptions','MLSyK':function(_0x15354d,_0x277cd4){return _0x15354d===_0x277cd4;},'LyEjB':'object','iEoTD':_0x51b5db(0x191),'AMXQs':_0x51b5db(0x1c8),'xgxBo':_0x51b5db(0x153),'SgiWR':_0x51b5db(0x189),'xDXMx':function(_0x23295d,_0x3084c4,_0xdac4a9){return _0x23295d(_0x3084c4,_0xdac4a9);},'AwigN':function(_0x2b8396,_0x495f4a){return _0x2b8396(_0x495f4a);},'GaXjf':function(_0x5d2c0d,_0x5771e2,_0x2741c0){return _0x5d2c0d(_0x5771e2,_0x2741c0);},'gcduT':_0x51b5db(0x16e),'gyrxQ':_0x51b5db(0x17a),'WaXGz':function(_0x50eb00){return _0x50eb00();},'MQLVJ':function(_0x42441f,_0x117f0b){return _0x42441f(_0x117f0b);},'xcJrk':_0x51b5db(0x195),'fvYim':function(_0x557866,_0x471ecb){return _0x557866(_0x471ecb);},'iOTWG':function(_0x49dcb9,_0x32a06d){return _0x49dcb9(_0x32a06d);},'JiHWZ':function(_0x341990,_0xc166d){return _0x341990!==_0xc166d;},'JnIgX':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','uuTvM':'Modifying\x20webdriver\x20builder'},_0x57b99a=helper[_0x51b5db(0x1c5)]();let _0x59bfd0;try{_0x59bfd0=helper['requireSeleniumWebdriver'](),_0x59bfd0['originalBuilder']&&(_0x59bfd0[_0x51b5db(0x1ab)]=_0x59bfd0['originalBuilder']);}catch(_0x1cc600){return;}if(helper[_0x51b5db(0x178)]()){const _0x408ae0={};_0x408ae0[_0x51b5db(0x1a2)]=_0x2d7315['browserStackLogLevel'],helper['setLogLevel'](_0x408ae0,new Map(),new Map()),logger['info'](_0x28413e[_0x51b5db(0x1a9)]),logger[_0x51b5db(0x1b0)](_0x28413e[_0x51b5db(0x1c6)]);}class _0x2e4c8b extends _0x57b99a[_0x51b5db(0x157)]{[_0x51b5db(0x187)](_0x16fbdb){const _0x230302=_0x51b5db;if(_0x28413e[_0x230302(0x1b3)](_0x16fbdb[_0x230302(0x1aa)],_0x28413e[_0x230302(0x165)])&&_0x28413e[_0x230302(0x1b3)](global[_0x230302(0x16b)],''))try{global[_0x230302(0x16b)]=_0x28413e['lngDg'](_0x28413e[_0x230302(0x18c)](_0x28413e['WXBXH'],global[_0x230302(0x16b)]),_0x28413e[_0x230302(0x1ae)]),this[_0x230302(0x18a)]=hubAllocator[_0x230302(0x17b)](global['newHubUrl']),logger[_0x230302(0x1b0)](_0x230302(0x164)+global[_0x230302(0x16b)]),global[_0x230302(0x16b)]='';}catch(_0xc9f89b){logger[_0x230302(0x1c7)](_0xc9f89b);}return super[_0x230302(0x187)](_0x16fbdb);}}class _0x371109 extends _0x59bfd0['Builder']{[_0x51b5db(0x1b7)](){const _0xc01b28=_0x51b5db;return this['url_']=helper[_0xc01b28(0x15d)](_0x2d7315),logger[_0xc01b28(0x1b0)](_0xc01b28(0x163)+this[_0xc01b28(0x196)]),this;}[_0x51b5db(0x1c4)](_0x395b65){const _0x17c1a9=_0x51b5db;let _0x4417c0={};for(const _0xa3b6ea in _0x395b65){switch(_0xa3b6ea){case _0x28413e[_0x17c1a9(0x192)]:case _0x28413e[_0x17c1a9(0x172)]:this[_0x17c1a9(0x160)]&&(_0x4417c0=this[_0x17c1a9(0x160)][_0x17c1a9(0x17c)](this['chromeOptions_'][_0x17c1a9(0x1b6)])||{},this['chromeOptions_'][_0x17c1a9(0x161)](this[_0x17c1a9(0x160)]['CAPABILITY_KEY'],helper[_0x17c1a9(0x16a)](_0x4417c0,_0x395b65[_0xa3b6ea])));break;case _0x28413e[_0x17c1a9(0x1a3)]:case _0x28413e[_0x17c1a9(0x19b)]:this[_0x17c1a9(0x18f)]&&(_0x4417c0=this['edgeOptions_']['get'](this[_0x17c1a9(0x18f)]['CAPABILITY_KEY'])||{},this[_0x17c1a9(0x18f)]['set'](this[_0x17c1a9(0x18f)]['CAPABILITY_KEY'],helper[_0x17c1a9(0x16a)](_0x4417c0,_0x395b65[_0xa3b6ea])));break;case _0x28413e['RxTzH']:case _0x28413e[_0x17c1a9(0x155)]:this[_0x17c1a9(0x1b5)]&&(_0x4417c0=this[_0x17c1a9(0x1b5)][_0x17c1a9(0x17c)](this[_0x17c1a9(0x1b5)]['CAPABILITY_KEY'])||{},this['firefoxOptions_'][_0x17c1a9(0x161)](this[_0x17c1a9(0x1b5)][_0x17c1a9(0x1b6)],helper[_0x17c1a9(0x16a)](_0x4417c0,_0x395b65[_0xa3b6ea])));break;case _0x28413e[_0x17c1a9(0x1b4)]:this[_0x17c1a9(0x167)]&&(_0x4417c0=this[_0x17c1a9(0x167)]['get'](this[_0x17c1a9(0x167)]['CAPABILITY_KEY'])||{},this[_0x17c1a9(0x167)][_0x17c1a9(0x161)](this['safariOptions_'][_0x17c1a9(0x1b6)],helper[_0x17c1a9(0x16a)](_0x4417c0,_0x395b65[_0xa3b6ea])));break;case _0x28413e[_0x17c1a9(0x177)]:case _0x28413e[_0x17c1a9(0x1c9)]:this['ieOptions_']&&(_0x4417c0=this['ieOptions_'][_0x17c1a9(0x17c)](this[_0x17c1a9(0x19f)][_0x17c1a9(0x1b6)])||{},this[_0x17c1a9(0x19f)]['set'](this[_0x17c1a9(0x19f)][_0x17c1a9(0x1b6)],helper['mergeDeep'](_0x4417c0,_0x395b65[_0xa3b6ea])));break;}}}[_0x51b5db(0x184)](){const _0x5b81f2=_0x51b5db;return logger[_0x5b81f2(0x1b0)](_0x28413e['iEoTD']),this[_0x5b81f2(0x1c4)](_0x2d7315[_0x5b81f2(0x16c)]),Object['keys'](_0x2d7315[_0x5b81f2(0x16c)])[_0x5b81f2(0x15c)](_0x4176b6=>{const _0x4099e9=_0x5b81f2,_0x3ae3d8=this['capabilities_'][_0x4099e9(0x17c)](_0x4176b6);_0x28413e[_0x4099e9(0x1bd)](typeof _0x3ae3d8,_0x28413e[_0x4099e9(0x1a0)])?this[_0x4099e9(0x16f)][_0x4099e9(0x161)](_0x4176b6,helper[_0x4099e9(0x16a)](_0x3ae3d8,_0x2d7315[_0x4099e9(0x16c)][_0x4176b6])):this[_0x4099e9(0x16f)][_0x4099e9(0x161)](_0x4176b6,_0x2d7315[_0x4099e9(0x16c)][_0x4176b6]);}),this;}[_0x51b5db(0x173)](){const _0x3c38ae=_0x51b5db,_0x401949={'TRrBY':function(_0x3440a6,_0x1b4b3f,_0x5ec6ed){return _0x28413e['xDXMx'](_0x3440a6,_0x1b4b3f,_0x5ec6ed);}};if(helper[_0x3c38ae(0x178)]()){const _0x4638f4=_0x28413e['gcduT'][_0x3c38ae(0x1af)]('|');let _0x42d333=0x0;while(!![]){switch(_0x4638f4[_0x42d333++]){case'0':globals['getGlobal'](_0x28413e[_0x3c38ae(0x174)])&&(!_0x28413e[_0x3c38ae(0x175)](setExtension,this,_0x2d7315)&&globals[_0x3c38ae(0x171)](_0x28413e[_0x3c38ae(0x174)],![]));continue;case'1':if(helper[_0x3c38ae(0x162)](_0x2d7315['proxySettings'][_0x3c38ae(0x16d)]))this['agent_']=helper[_0x3c38ae(0x166)](_0x2d7315[_0x3c38ae(0x17d)]['proxyUrl']);else _0x2d7315[_0x3c38ae(0x17d)][_0x3c38ae(0x16d)]&&(this[_0x3c38ae(0x1bc)]=_0x2d7315['proxySettings'][_0x3c38ae(0x16d)],logger[_0x3c38ae(0x1b0)]('Proxy\x20set\x20to\x20'+this['proxy_']));continue;case'2':_0x28413e[_0x3c38ae(0x1a4)](isAccessibilityAutomationSession)&&_0x28413e[_0x3c38ae(0x1bb)](setAccessibilityCapabilities,_0x2d7315);continue;case'3':this[_0x3c38ae(0x184)]();continue;case'4':logger['debug'](_0x28413e[_0x3c38ae(0x1b9)]);continue;case'5':this[_0x3c38ae(0x1b7)]();continue;}break;}}const _0x156ad8=super['build']();return _0x156ad8['session_'][_0x3c38ae(0x1a5)](_0x1c6a8a=>{const _0x51d13f=_0x3c38ae;try{const _0x9fbb27=_0x1c6a8a[_0x51d13f(0x19d)][_0x51d13f(0x17c)](_0x28413e[_0x51d13f(0x180)]);_0x9fbb27?(logger['debug'](_0x51d13f(0x1c2)+_0x9fbb27),hubAllocator[_0x51d13f(0x1cb)](_0x9fbb27),helper[_0x51d13f(0x156)](_0x9fbb27)):logger[_0x51d13f(0x1b0)](_0x28413e[_0x51d13f(0x199)]);}catch(_0x43f309){logger['debug'](_0x51d13f(0x19a)+_0x43f309);}}),_0x156ad8[_0x3c38ae(0x19e)]=0x0,_0x156ad8[_0x3c38ae(0x1a5)]&&_0x156ad8[_0x3c38ae(0x1a5)](_0x307926=>{const _0x385fb5=_0x3c38ae,_0x1b7397=_0x28413e[_0x385fb5(0x1c0)][_0x385fb5(0x1af)]('|');let _0x4c3850=0x0;while(!![]){switch(_0x1b7397[_0x4c3850++]){case'0':_0x28413e[_0x385fb5(0x175)](overrideQuit,_0x307926,_0x156ad8);continue;case'1':_0x307926[_0x385fb5(0x1b1)]=async()=>{const _0x59ba67=_0x385fb5;return await _0x401949[_0x59ba67(0x1b8)](getAccessibilityResults,_0x307926,global);};continue;case'2':_0x307926[_0x385fb5(0x1ca)]=async()=>{const _0x38bfd1=_0x385fb5;return await _0x401949[_0x38bfd1(0x1b8)](getAccessibilityResultsSummary,_0x307926,global);};continue;case'3':_0x28413e[_0x385fb5(0x1a8)](overrideTakeScreenshot,_0x307926);continue;case'4':helper['overrideGet'](_0x307926,_0x2d7315);continue;case'5':_0x28413e[_0x385fb5(0x175)](overrideExecute,_0x307926,_0x2d7315);continue;}break;}}),_0x156ad8['getAccessibilityResultsSummary']=async()=>{const _0x6cea8d=_0x3c38ae;return await _0x401949[_0x6cea8d(0x1b8)](getAccessibilityResultsSummary,_0x156ad8,global);},_0x156ad8['getAccessibilityResults']=async()=>{return await _0x28413e['GaXjf'](getAccessibilityResults,_0x156ad8,global);},_0x28413e[_0x3c38ae(0x1b2)](overrideTakeScreenshot,_0x156ad8),_0x28413e[_0x3c38ae(0x190)](overrideQuit,_0x156ad8),helper['overrideGet'](_0x156ad8,_0x2d7315),_0x28413e[_0x3c38ae(0x175)](overrideExecute,_0x156ad8,_0x2d7315),helper['isUndefined'](global[_0x3c38ae(0x154)])&&(global['__driversArray']=[]),helper[_0x3c38ae(0x18b)](global[_0x3c38ae(0x158)])&&(global[_0x3c38ae(0x158)]=[]),global[_0x3c38ae(0x154)][_0x3c38ae(0x1be)](_0x156ad8),global[_0x3c38ae(0x1bf)]=_0x156ad8,_0x28413e[_0x3c38ae(0x1b3)](global[_0x3c38ae(0x158)],undefined)&&global['__drivers']['push'](_0x156ad8),_0x2a5912&&helper['isUndefined'](_0x2a5912[_0x3c38ae(0x1a1)]['__driversArray'])&&(_0x2a5912[_0x3c38ae(0x1a1)][_0x3c38ae(0x154)]=[]),_0x2a5912&&_0x28413e[_0x3c38ae(0x179)](_0x2a5912['global'][_0x3c38ae(0x158)],undefined)&&(_0x2a5912[_0x3c38ae(0x1a1)][_0x3c38ae(0x158)][_0x3c38ae(0x1be)](_0x156ad8),_0x2a5912[_0x3c38ae(0x1a1)][_0x3c38ae(0x154)]['push'](_0x156ad8)),_0x156ad8;}}return _0x59bfd0['originalBuilder']=_0x59bfd0[_0x51b5db(0x1ab)],_0x59bfd0[_0x51b5db(0x1ab)]=_0x371109,_0x57b99a['HttpClient']=_0x2e4c8b,_0x59bfd0;};function a29_0x1c09(_0x420b80,_0x15e467){const _0x1fee61=a29_0x1fee();return a29_0x1c09=function(_0x1c094e,_0xfdb027){_0x1c094e=_0x1c094e-0x153;let _0x36c6f3=_0x1fee61[_0x1c094e];return _0x36c6f3;},a29_0x1c09(_0x420b80,_0x15e467);}module['exports'][a29_0x28d8b3(0x15b)]=modify;function a29_0x1fee(){const _0x267eae=['chromeOptions_','set','isPacProxy','Hub\x20url\x20set\x20to\x20','New\x20hub\x20url\x20set\x20to\x20','cCwnR','getHttpAgent','safariOptions_','moz:firefoxOptions','31852rQdcMp','mergeDeep','newHubUrl','capability','proxyUrl','2|5|3|1|0|4','capabilities_','6QrUOOZ','setGlobal','slMBd','build','gyrxQ','xDXMx','18cifuOW','zWBTL','isBrowserstackInfra','JiHWZ','isAccessibilityPlatform','getRequestOptions','get','proxySettings','../../../bin/utils/constants','../../../helpers/globals','AMXQs','../accessibility-automation/helper','15930640mbWjFP','../../../hubAllocationMethods','setCapabilities','82nlDmib','45YaEjrZ','send','chromeOptions','0|3|4|5|2|1','options_','isUndefined','lngDg','goog:chromeOptions','397092HllenJ','edgeOptions_','iOTWG','Setting\x20Browserstack\x20capabilities','tfIlA','../../../helpers/helper','806428ATIdDz','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','url_','safari.options','https://','xgxBo','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','YusfV','edgeOptions','caps_','quitCount_','ieOptions_','LyEjB','global','logLevel','PvbDE','WaXGz','then','1287645ugftly','4336950LVszIr','AwigN','JnIgX','path','Builder','../../../helpers/logger','10992KEBCQB','IWrPQ','split','debug','getAccessibilityResults','fvYim','PEchv','CMHRE','firefoxOptions_','CAPABILITY_KEY','setServer','TRrBY','xcJrk','winstonLogger','MQLVJ','proxy_','MLSyK','push','__driver','SgiWR','firefoxOptions','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','/wd/hub','__setBrowserOptions','requireHttpClient','uuTvM','error','optimalHubUrl','cMUvM','getAccessibilityResultsSummary','updateHubUrl','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','__driversArray','VUvVv','storeOptimalHubUrl','HttpClient','__drivers','ms:edgeOptions','./helpers/patchHelper','browserstackAgentObservability','forEach','getHubUrl','../../../helpers/accessibility-automation/helper','/session'];a29_0x1fee=function(){return _0x267eae;};return a29_0x1fee();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a30_0x5afb37=a30_0x43bc;(function(_0x43b481,_0x28f5d3){const _0x287da3=a30_0x43bc,_0x2b3e64=_0x43b481();while(!![]){try{const _0x5868d0=parseInt(_0x287da3(0x14c))/0x1*(-parseInt(_0x287da3(0x157))/0x2)+parseInt(_0x287da3(0x152))/0x3+parseInt(_0x287da3(0x154))/0x4+parseInt(_0x287da3(0x156))/0x5+parseInt(_0x287da3(0x14d))/0x6*(-parseInt(_0x287da3(0x155))/0x7)+-parseInt(_0x287da3(0x153))/0x8*(parseInt(_0x287da3(0x14f))/0x9)+parseInt(_0x287da3(0x150))/0xa;if(_0x5868d0===_0x28f5d3)break;else _0x2b3e64['push'](_0x2b3e64['shift']());}catch(_0x26967a){_0x2b3e64['push'](_0x2b3e64['shift']());}}}(a30_0x3486,0x43d7c));const requestSpy=require(a30_0x5afb37(0x159)),constants=require(a30_0x5afb37(0x14b)),{addRequestSpy}=require('../../../helpers/test-observability/utils');function a30_0x3486(){const _0x4ddbb0=['739956IDLlxK','timeout','../../../helpers/request-spy','../../../bin/utils/constants','1mTzvpG','102oGLOjP','mochaHooks','24498KZDIFw','5092760eTaRDt','yvdIU','902655QqMhMS','1344gDQacI','919100NssMNB','81564ejfVML','1316530lbQiEU'];a30_0x3486=function(){return _0x4ddbb0;};return a30_0x3486();}function a30_0x43bc(_0x4fc683,_0x1d409b){const _0x348647=a30_0x3486();return a30_0x43bc=function(_0x43bc75,_0xff4517){_0x43bc75=_0x43bc75-0x14b;let _0x26b0f8=_0x348647[_0x43bc75];return _0x26b0f8;},a30_0x43bc(_0x4fc683,_0x1d409b);}exports[a30_0x5afb37(0x14e)]={'beforeAll'(){const _0x563438=a30_0x5afb37,_0x51ef36={'yvdIU':function(_0x533ce5){return _0x533ce5();}},_0x4cd116='browserstack internal helper hook';_0x51ef36[_0x563438(0x151)](addRequestSpy);},'afterAll'(){const _0x5d2487=a30_0x5afb37,_0xeb0304='browserstack internal helper hook';this[_0x5d2487(0x158)](0xea60),requestSpy['restore']();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a31_0x4c05f0=a31_0x41ee;function a31_0xc4c3(){const _0x27d5b0=['950368FVGPlp','6oWxPNf','../../../../package.json','../../../helpers/helper','hook:','failed','10029537yDZwAF','UabjJ','lpbrM','state','tRuPy','MvoTW','_beforeAll','markedStatus','indexOf','RCyxp','uuid','getBrowserName','toISOString','30fAjGOX','dcoYF','_afterEach','generic','slice','3934010LQwsPB','HOBBF','uilMA','lodash','filter','__cloud_provider___','mapTestHooks','CmVOc','yzFop','reduce','push','JDFPB','getSession','map_','tests','concat','wJZHj','EOOFD','gcjtw','pid','forEach','ozDOb','getTestEnv','sjGww','qbPOs','6195693LTLRAZ','MNIro','TEST_PLATFORM','getCapabilities','../../../helpers/test-observability/utils','TORuS','platformVersion','getHooksForTest','przAA','getBrowserVersion','jkLij','unknown_grid','hook','suites','eXcnQ','_afterAll','getHookDetails','toJSON','get','getHookSkippedTests','9KuVjdC','hKXsW','split','UgvJz','hookAnalyticsId','2900948XWRBIb','_beforeEach','rAHIE','1315952zogNeI','parent','WyyZB','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','moOmq','../../../helpers/testhub/utils','mIPij','22696Swjwcd','browserstack','Rhatn','QCrVA','bs:addPlatformDetails:','emit'];a31_0xc4c3=function(){return _0x27d5b0;};return a31_0xc4c3();}function a31_0x41ee(_0xa92a13,_0x2c6cfd){const _0xc4c3a6=a31_0xc4c3();return a31_0x41ee=function(_0x41ee3c,_0x5e9c22){_0x41ee3c=_0x41ee3c-0x80;let _0x49185a=_0xc4c3a6[_0x41ee3c];return _0x49185a;},a31_0x41ee(_0xa92a13,_0x2c6cfd);}(function(_0x33d61d,_0x3a808e){const _0x58fe81=a31_0x41ee,_0x4893f3=_0x33d61d();while(!![]){try{const _0x1e8328=-parseInt(_0x58fe81(0xd6))/0x1+-parseInt(_0x58fe81(0xd3))/0x2+-parseInt(_0x58fe81(0xce))/0x3*(parseInt(_0x58fe81(0x83))/0x4)+-parseInt(_0x58fe81(0xa1))/0x5+parseInt(_0x58fe81(0x8a))/0x6*(parseInt(_0x58fe81(0xba))/0x7)+parseInt(_0x58fe81(0x89))/0x8+-parseInt(_0x58fe81(0x8f))/0x9*(-parseInt(_0x58fe81(0x9c))/0xa);if(_0x1e8328===_0x3a808e)break;else _0x4893f3['push'](_0x4893f3['shift']());}catch(_0x1f7dec){_0x4893f3['push'](_0x4893f3['shift']());}}}(a31_0xc4c3,0xbda78));const {v4:uuidv4}=require(a31_0x4c05f0(0x99)),{name,version}=require(a31_0x4c05f0(0x8b)),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x4c05f0(0xbe)),{consoleHolder}=require('../../../helpers/test-observability/constants'),{getPlatformVersion}=require(a31_0x4c05f0(0x8c)),{shouldProcessEventForTesthub}=require(a31_0x4c05f0(0x81)),{isFunction}=require(a31_0x4c05f0(0xa4)),{patchConsoleLogger}=require(a31_0x4c05f0(0xbe));patchConsoleLogger(),exports[a31_0x4c05f0(0xb7)]=()=>{const _0x1c9ae1=a31_0x4c05f0,_0x1b4f9f={'jkLij':_0x1c9ae1(0x9f),'EOOFD':function(_0x49c024){return _0x49c024();}};return{'ci':_0x1b4f9f[_0x1c9ae1(0xc4)],'key':_0x1b4f9f[_0x1c9ae1(0xb2)](uuidv4),'version':version,'collector':'js-'+name};},exports[a31_0x4c05f0(0xca)]=_0x35965f=>{const _0x17493a=a31_0x4c05f0,_0x32834b={};_0x32834b[_0x17493a(0x82)]=function(_0x325594,_0x2c536d){return _0x325594!==_0x2c536d;},_0x32834b[_0x17493a(0x98)]='string',_0x32834b[_0x17493a(0x85)]=function(_0xf1ca1f,_0x2732ff){return _0xf1ca1f!==_0x2732ff;},_0x32834b['MvoTW']=_0x17493a(0x8d),_0x32834b[_0x17493a(0x93)]=function(_0x3e5773,_0x46218a){return _0x3e5773!==_0x46218a;},_0x32834b['przAA']=_0x17493a(0xc6);const _0x164b64=_0x32834b;if(!_0x35965f||_0x164b64[_0x17493a(0x82)](typeof _0x35965f,_0x164b64[_0x17493a(0x98)]))return[null,null];if(_0x164b64[_0x17493a(0x85)](_0x35965f[_0x17493a(0x97)](_0x164b64['MvoTW']),-0x1)){const _0x1f621c=_0x35965f[_0x17493a(0xd0)](_0x164b64[_0x17493a(0x94)]);return[_0x1f621c[0x0][_0x17493a(0xa0)](0x0,-0x1)[_0x17493a(0xd0)]('\x22')[0x1],_0x1f621c[0x1]['substring'](0x1)];}else{if(_0x164b64[_0x17493a(0x93)](_0x35965f[_0x17493a(0x97)](_0x164b64['przAA']),-0x1)){const _0x2cf330=_0x35965f['split'](_0x164b64[_0x17493a(0xc2)]);return[_0x2cf330[0x0][_0x17493a(0xa0)](0x0,-0x1)[_0x17493a(0xd0)]('\x22')[0x1],_0x35965f];}}return[null,null];},exports['getHooksForTest']=_0x3c5f6c=>{const _0x557447=a31_0x4c05f0,_0x53184e={'UgvJz':function(_0x4c28ee,_0x51c89c){return _0x4c28ee(_0x51c89c);},'JDFPB':'_beforeAll','rAHIE':_0x557447(0xc9),'mjsva':_0x557447(0xd4),'UabjJ':_0x557447(0x9e)};if(!_0x3c5f6c||!_0x3c5f6c[_0x557447(0xd7)])return[];const _0x26606f=[];return[_0x53184e[_0x557447(0xac)],_0x53184e[_0x557447(0xd5)],_0x53184e['mjsva'],_0x53184e[_0x557447(0x90)]]['forEach'](_0x20f2a5=>{const _0x24385c=_0x557447,_0x48ea64=_0x3c5f6c['parent'][_0x20f2a5]||[];_0x48ea64[_0x24385c(0xb5)](_0xa13beb=>{const _0x1723e2=_0x24385c;_0xa13beb[_0x1723e2(0xd2)]&&!_0x53184e[_0x1723e2(0xd1)](isInternalHook,_0xa13beb['fn'])&&_0x26606f[_0x1723e2(0xab)](_0xa13beb[_0x1723e2(0xd2)]);});}),[..._0x26606f,...exports[_0x557447(0xc1)](_0x3c5f6c[_0x557447(0xd7)])];},exports[a31_0x4c05f0(0xa7)]=_0x29c53f=>{const _0x2920bf=a31_0x4c05f0,_0x2ff1cc={'dcoYF':function(_0x3a2674){return _0x3a2674();},'qbPOs':function(_0x41b645,_0x50f189){return _0x41b645===_0x50f189;},'yzFop':_0x2920bf(0x9e),'MNIro':_0x2920bf(0x95),'moOmq':_0x2920bf(0xc9),'eyIRA':'_beforeEach'};if(!_0x29c53f||!_0x29c53f[_0x2920bf(0xd7)])return;[_0x2ff1cc[_0x2920bf(0xbb)],_0x2ff1cc[_0x2920bf(0x80)],_0x2ff1cc['eyIRA'],_0x2ff1cc['yzFop']]['forEach'](_0x9cc525=>{const _0x10ac4b=_0x2920bf,_0x66e1fe={'eXcnQ':function(_0x21c42a){const _0x354e02=a31_0x41ee;return _0x2ff1cc[_0x354e02(0x9d)](_0x21c42a);},'wJZHj':function(_0x6f98ed,_0x495ad0){const _0x58343e=a31_0x41ee;return _0x2ff1cc[_0x58343e(0xb9)](_0x6f98ed,_0x495ad0);},'TORuS':_0x2ff1cc[_0x10ac4b(0xa9)],'OXars':function(_0x172aab){return _0x2ff1cc['dcoYF'](_0x172aab);}},_0x28d27f=_0x29c53f[_0x10ac4b(0xd7)][_0x9cc525]||[];_0x28d27f[_0x10ac4b(0xb5)](_0x2ef5c6=>{const _0x14eead=_0x10ac4b;if(!_0x2ef5c6[_0x14eead(0xd2)])_0x2ef5c6[_0x14eead(0xd2)]=_0x66e1fe[_0x14eead(0xc8)](uuidv4);else _0x2ef5c6[_0x14eead(0x96)]&&_0x66e1fe[_0x14eead(0xb1)](_0x9cc525,_0x66e1fe[_0x14eead(0xbf)])&&(_0x2ef5c6['hookAnalyticsId']=_0x66e1fe['OXars'](uuidv4),delete _0x2ef5c6[_0x14eead(0x96)]);});}),exports[_0x2920bf(0xa7)](_0x29c53f[_0x2920bf(0xd7)]);},exports['sendPlatformDetails']=async(_0x2754ad,_0x457b59)=>{const _0xfc057f=a31_0x4c05f0,_0x3017b1={'sjGww':function(_0x4b729e){return _0x4b729e();},'uilMA':function(_0x3ee776,_0x232aee){return _0x3ee776(_0x232aee);},'lpbrM':_0xfc057f(0xc0),'CmVOc':function(_0x3f4f8c,_0x483a60){return _0x3f4f8c===_0x483a60;},'HOBBF':_0xfc057f(0x84),'gcjtw':_0xfc057f(0xc5),'ozDOb':_0xfc057f(0xbc)};try{if(!_0x3017b1[_0xfc057f(0xb8)](shouldProcessEventForTesthub))return;const _0xe1cbf0=await _0x2754ad['getCapabilities'](),_0x16082b=await _0x2754ad[_0xfc057f(0xad)](),_0x52a7e6={},_0xe76e49=Object['fromEntries'](_0x16082b[_0xfc057f(0xbd)]()[_0xfc057f(0xae)]),_0x3d4953={'product':_0x3017b1['uilMA'](getObservabilityLinkedProductName,_0xe76e49),'capabilities':_0xe76e49,'platform':_0xe1cbf0['getPlatform'](),'platform_version':_0xe1cbf0[_0xfc057f(0xcc)](_0x3017b1['lpbrM'])?_0xe1cbf0['get'](_0x3017b1[_0xfc057f(0x91)]):_0x3017b1[_0xfc057f(0xa3)](getPlatformVersion,_0x3017b1[_0xfc057f(0xa8)](global[_0xfc057f(0xa6)],_0x3017b1[_0xfc057f(0xa2)])),'browser':_0xe1cbf0[_0xfc057f(0x9a)](),'browser_version':_0xe1cbf0[_0xfc057f(0xc3)](),'session_id':_0x16082b[_0xfc057f(0xcb)]()};global[_0xfc057f(0xa6)]?_0x52a7e6[global[_0xfc057f(0xa6)]]=_0x3d4953:_0x52a7e6[_0x3017b1[_0xfc057f(0xb3)]]=_0x3d4953,process[_0xfc057f(0x88)](_0xfc057f(0x87)+process[_0xfc057f(0xb4)],{'timestamp':new Date()[_0xfc057f(0x9b)](),'level':null,'message':null,'kind':_0x3017b1[_0xfc057f(0xb6)],'http_response':_0x52a7e6,'uuid':_0x457b59});}catch(_0x428a65){_0x3017b1['uilMA'](debug,_0xfc057f(0xd9)+_0x428a65);}},exports[a31_0x4c05f0(0xcd)]=_0x1a26fe=>{const _0x3d1949=a31_0x4c05f0,_0x3349f5={};_0x3349f5[_0x3d1949(0xd8)]=function(_0x3d10c8,_0x45108d){return _0x3d10c8!==_0x45108d;},_0x3349f5['EuamX']='hook',_0x3349f5['hKXsW']='passed',_0x3349f5['QCrVA']=_0x3d1949(0x8e);const _0x2ea18c=_0x3349f5,_0x5e626f=_0x1a26fe[_0x3d1949(0xc7)][_0x3d1949(0xaa)]((_0x2283fb,_0x177688)=>{const _0x354b3=_0x3d1949,_0x3d4636=exports[_0x354b3(0xcd)](_0x177688);return _0x3d4636&&(_0x2283fb=_0x2283fb[_0x354b3(0xb0)](_0x3d4636)),_0x2283fb;},[]),_0x567fd9=_0x1a26fe[_0x3d1949(0xaf)][_0x3d1949(0xa5)](_0x38d095=>{const _0x3f46d2=_0x3d1949,_0x3f60c0=_0x2ea18c[_0x3f46d2(0xd8)](_0x38d095['type'],_0x2ea18c['EuamX'])&&!_0x38d095[_0x3f46d2(0x96)]&&_0x2ea18c[_0x3f46d2(0xd8)](_0x38d095['state'],_0x2ea18c[_0x3f46d2(0xcf)])&&_0x2ea18c[_0x3f46d2(0xd8)](_0x38d095[_0x3f46d2(0x92)],_0x2ea18c[_0x3f46d2(0x86)])&&!_0x38d095['pending'];return _0x3f60c0;});return _0x567fd9[_0x3d1949(0xb0)](_0x5e626f);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x2b8c(_0x3b9f60,_0x202ada){const _0x4669e=a32_0x4669();return a32_0x2b8c=function(_0x2b8c33,_0x2a6389){_0x2b8c33=_0x2b8c33-0x15b;let _0x34b978=_0x4669e[_0x2b8c33];return _0x34b978;},a32_0x2b8c(_0x3b9f60,_0x202ada);}function a32_0x4669(){const _0x5c7df7=['message','KHdoY','info','SESSION_NAME','TWvmJ','__platformCaps','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','session_','lALil','http:','lPdYL','grMND','3203025nBcAvo','.\x20Error\x20:','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','quitCount_','495422KewTzr','__error_messages__','ppAho','6ceLLgd','shift','lmoGj','testcase','isAccessibilityPlatform','app','tRHRD','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20',',\x22level\x22:\x20\x22','SdAqF','MNOVp','afterEach','start','then','end','bJjtU','join','PychG','YvUAu','KiiMO','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','xRWYW','UHvSD','PERFORM_SCAN','passed','browserstackSessionName','BCxwr','initQuit','\x22}}','JuHgM','24376fWBBMd','chXjj','vZQMn','WnWtD','beforeAll','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','winstonLogger','zCSVM','startMonitoring','accessibilityScanStarted','thTestRunUuid','MgLjV','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','sessionNameSet__','../../helpers/performance/performance-tester','isArray','3771112jNGjHl','dvMMn','__skipSessionName','Passed','env','PAwnd','../../helpers/globals','JpOYu','../../helpers/helper','Failed:\x20','MxSFA','state','titlePath','GzCWm','TumrH','getGlobal','__drivers','format','index','573279QaISIr','yqkSm','currentTest','debug','https:','util','XhTjt','afterAll','failed','XUhXJ','TZOfq','finally','getCurrentUrl','command','iFXul','../../helpers/logger','TdNac','setGlobal','stringify','AVHqW','xIoaA','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','testAnalyticsId','xYEnJ','__sessionFailed','capabilities','executeScript','PNyvz','percy','SDK_HOOK','GBcdY','jSkQH','sessionName','HeUNA','XwkLy','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','ANEAs','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','percyCaptureMode','../../helpers/percy/utils','appium:app','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','XDlSD','iXppR','EuKLH','xRwkr','SYNC','shouldScanTestForAccessibility','protocol','bstackA11yShouldScan','oBiBC','oegfC','../../helpers/testhub/utils','SpYzj','timeout','6cSyzin','beforeEach','DltSW','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','error','27224200QgxHnl','12048127taVvze','ditHt','KCuPA','lUvgZ','../../helpers/testhub/constants','driverCleanup','ENV_VAR','SlNHQ','BROWSERSTACK_TESTHUB_UUID','afterTest','DvjNi','Qklzw','gVUUh','\x20-\x20','length','IbrDQ','measureWrapper','2178guxPaf','gOaWh','./test-observability/mochaUtils','EDIuc','browserstackTestName','BIkVv','Kfpcp','SAVE_RESULTS','Performing\x20scan\x20before\x20saving\x20results','omhTO','err','RrELb','hThNa'];a32_0x4669=function(){return _0x5c7df7;};return a32_0x4669();}const a32_0x3e087e=a32_0x2b8c;(function(_0x313a8a,_0x87d0f8){const _0x42410f=a32_0x2b8c,_0xcefc88=_0x313a8a();while(!![]){try{const _0x69bb08=parseInt(_0x42410f(0x16d))/0x1+parseInt(_0x42410f(0x1d8))/0x2*(parseInt(_0x42410f(0x1db))/0x3)+parseInt(_0x42410f(0x209))/0x4+parseInt(_0x42410f(0x1d4))/0x5+parseInt(_0x42410f(0x1a4))/0x6*(parseInt(_0x42410f(0x1aa))/0x7)+parseInt(_0x42410f(0x1f9))/0x8*(-parseInt(_0x42410f(0x1bb))/0x9)+-parseInt(_0x42410f(0x1a9))/0xa;if(_0x69bb08===_0x87d0f8)break;else _0xcefc88['push'](_0xcefc88['shift']());}catch(_0x2d0b36){_0xcefc88['push'](_0xcefc88['shift']());}}}(a32_0x4669,0xdf02b));const util=require(a32_0x3e087e(0x172)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a32_0x3e087e(0x194)),{sendPlatformDetails}=require(a32_0x3e087e(0x1bd)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x3e087e(0x162)),PerformanceTester=require(a32_0x3e087e(0x207)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x3e087e(0x160)),logger=require(a32_0x3e087e(0x17c))[a32_0x3e087e(0x1ff)],{shouldProcessEventForTesthub}=require(a32_0x3e087e(0x1a1)),testHubConstants=require(a32_0x3e087e(0x1ae));exports['mochaHooks']={'beforeAll'(){const _0x9beba2=a32_0x3e087e,_0x1482be={'jbYsP':function(_0x29c7a4,_0x302ab2,_0x158a9a,_0x252442){return _0x29c7a4(_0x302ab2,_0x158a9a,_0x252442);},'jNLkH':_0x9beba2(0x175),'PNyvz':'\x20|\x20','avymi':function(_0x14879d,_0x438028,_0x332ed3){return _0x14879d(_0x438028,_0x332ed3);},'gsiVq':'passed','SpYzj':function(_0x4f7a1c){return _0x4f7a1c();},'mOyaT':'index','tqQJE':_0x9beba2(0x1fd)};PerformanceTester[_0x9beba2(0x201)]();const _0x45b150='browserstack internal helper hook';PerformanceTester[_0x9beba2(0x1ba)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x174a07=_0x9beba2,_0x596c7d={'TWvmJ':function(_0x71c6a6,_0x3dde09,_0xb99f1c,_0x33b488){return _0x1482be['jbYsP'](_0x71c6a6,_0x3dde09,_0xb99f1c,_0x33b488);},'GBcdY':_0x1482be['jNLkH'],'ppAho':_0x1482be[_0x174a07(0x188)],'EuKLH':function(_0x328450,_0x1801c5,_0x2765ea){return _0x1482be['avymi'](_0x328450,_0x1801c5,_0x2765ea);},'xRwkr':_0x1482be['gsiVq'],'WBEUH':function(_0x395a70){const _0x35cc7a=_0x174a07;return _0x1482be[_0x35cc7a(0x1a2)](_0x395a70);}};global[_0x174a07(0x1d9)]=[],global['__sessionFailed']=![],global[_0x174a07(0x1af)]=async()=>{const _0x1dcc71=_0x174a07;let _0x3a5386=![];try{await global[_0x1dcc71(0x16a)][0x0][_0x1dcc71(0x1cf)],_0x3a5386=!![],global[_0x1dcc71(0x185)]?await _0x596c7d[_0x1dcc71(0x1cc)](markSessionStatus,global[_0x1dcc71(0x16a)][0x0],_0x596c7d[_0x1dcc71(0x18b)],global[_0x1dcc71(0x1d9)]['join'](_0x596c7d[_0x1dcc71(0x1da)])):await _0x596c7d[_0x1dcc71(0x199)](markSessionStatus,global[_0x1dcc71(0x16a)][0x0],_0x596c7d[_0x1dcc71(0x19a)]);}catch(_0x2848ed){logger[_0x1dcc71(0x170)](_0x1dcc71(0x196)+_0x2848ed);}global[_0x1dcc71(0x1d9)]=[],global[_0x1dcc71(0x185)]=![];if(_0x3a5386)try{try{_0x596c7d['WBEUH'](shouldProcessEventForTesthub)&&(global[_0x1dcc71(0x16a)][0x0]&&await _0x596c7d[_0x1dcc71(0x199)](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this[_0x1dcc71(0x16f)][_0x1dcc71(0x183)]:null));}catch(_0xc94b63){logger[_0x1dcc71(0x170)](_0x1dcc71(0x1ce)+_0xc94b63);}await global[_0x1dcc71(0x16a)][0x0][_0x1dcc71(0x1f6)]();}catch(_0x35341e){logger[_0x1dcc71(0x170)](_0x1dcc71(0x182)+_0x35341e);}};},{'platform':_0x1482be['avymi'](nestedKeyValue,global[_0x9beba2(0x1cd)],[_0x1482be['mOyaT']]),'hookType':_0x1482be['tqQJE']})();},'beforeEach'(_0x17aebe){const _0x3b538c=a32_0x3e087e,_0x535bff={'gOaWh':function(_0x9e0d40,_0x16443a){return _0x9e0d40>_0x16443a;},'chXjj':_0x3b538c(0x1b7),'JuHgM':function(_0x2e4691,_0x51d3d4,_0x691a3b){return _0x2e4691(_0x51d3d4,_0x691a3b);},'fnLem':_0x3b538c(0x19e),'bJjtU':function(_0x16ae0d){return _0x16ae0d();},'bFPrv':function(_0xd198c4,_0x10720c){return _0xd198c4>_0x10720c;},'TZOfq':'isAccessibilityPlatform','xIoaA':function(_0x2b36fa,_0x4ddf8a){return _0x2b36fa===_0x4ddf8a;},'eWpDr':_0x3b538c(0x1d1),'EDIuc':_0x3b538c(0x171),'SlNHQ':_0x3b538c(0x192),'SdAqF':'Automate\x20test\x20case\x20execution\x20has\x20started.','gSXqe':_0x3b538c(0x1bf),'PAwnd':function(_0x4d5ff5,_0x33ecd1,_0x2084c0){return _0x4d5ff5(_0x33ecd1,_0x2084c0);},'MNOVp':_0x3b538c(0x16c),'TumrH':_0x3b538c(0x1a5)};globals[_0x3b538c(0x17e)](_0x535bff['gSXqe'],this[_0x3b538c(0x16f)][_0x3b538c(0x166)]()[_0x3b538c(0x1eb)](_0x535bff[_0x3b538c(0x1fa)])),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x3b538c(0x18a)],()=>{const _0x22a636=_0x3b538c,_0x8cde89='browserstack internal helper hook';new Promise(async _0x2781a8=>{const _0x4cd4cf=a32_0x2b8c;let _0x44fdf0=!![];try{_0x535bff[_0x4cd4cf(0x1bc)](global[_0x4cd4cf(0x16a)][_0x4cd4cf(0x1b8)],0x1)&&(await global[_0x4cd4cf(0x1af)](),global[_0x4cd4cf(0x16a)][_0x4cd4cf(0x1dc)]()),_0x535bff[_0x4cd4cf(0x1bc)](global[_0x4cd4cf(0x16a)][0x0][_0x4cd4cf(0x1d7)],0x0)&&(_0x44fdf0=![],await global['driverCleanup']());}catch(_0x33fe60){logger['debug'](_0x4cd4cf(0x182)+_0x33fe60);}try{Array[_0x4cd4cf(0x208)](global[_0x4cd4cf(0x16a)])&&global[_0x4cd4cf(0x16a)][0x0]&&(global[_0x4cd4cf(0x16a)][0x0][_0x4cd4cf(0x1f4)]=this[_0x4cd4cf(0x16f)]['titlePath']()['join'](_0x535bff[_0x4cd4cf(0x1fa)])),global[_0x4cd4cf(0x1f4)]=this[_0x4cd4cf(0x16f)]['titlePath']()[_0x4cd4cf(0x1eb)](_0x535bff[_0x4cd4cf(0x1fa)]);}catch(_0x18ba20){logger[_0x4cd4cf(0x170)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x18ba20);}this[_0x4cd4cf(0x16f)][_0x4cd4cf(0x19c)]=_0x535bff[_0x4cd4cf(0x1f8)](shouldScanTestForAccessibility,this['currentTest']['titlePath'](),!![]),globals[_0x4cd4cf(0x17e)](_0x535bff['fnLem'],this['currentTest']['shouldScanTestForAccessibility']),this['currentTest'][_0x4cd4cf(0x202)]=!![];if(_0x535bff[_0x4cd4cf(0x1ea)](isAccessibilityAutomationSession)&&_0x44fdf0&&Array[_0x4cd4cf(0x208)](global[_0x4cd4cf(0x16a)])&&_0x535bff['bFPrv'](global['__drivers']['length'],0x0)&&globals['getGlobal'](_0x535bff[_0x4cd4cf(0x177)]))try{const _0x3b209c=await global[_0x4cd4cf(0x16a)][0x0][_0x4cd4cf(0x1cf)];if(_0x3b209c){let _0x49b9e5=!![];const _0x40afe1=await global[_0x4cd4cf(0x16a)][0x0][_0x4cd4cf(0x179)]();let _0x511217;try{_0x511217=new URL(_0x40afe1);}catch(_0x5f13f4){_0x49b9e5=![];}_0x49b9e5=_0x535bff[_0x4cd4cf(0x181)](_0x511217[_0x4cd4cf(0x19d)],_0x535bff['eWpDr'])||_0x535bff[_0x4cd4cf(0x181)](_0x511217[_0x4cd4cf(0x19d)],_0x535bff[_0x4cd4cf(0x1be)]),_0x49b9e5&&(this[_0x4cd4cf(0x16f)][_0x4cd4cf(0x19c)]&&logger['info'](_0x535bff[_0x4cd4cf(0x1b1)])),this['currentTest'][_0x4cd4cf(0x202)]=this['currentTest'][_0x4cd4cf(0x19c)],this['currentTest']['shouldScanTestForAccessibility']&&logger[_0x4cd4cf(0x1ca)](_0x535bff[_0x4cd4cf(0x1e4)]);}}catch(_0x415c25){logger['error'](_0x4cd4cf(0x1ef)+util['format'](_0x415c25));}_0x535bff[_0x4cd4cf(0x1ea)](_0x2781a8);})[_0x22a636(0x1e8)](()=>{const _0x320d7c=_0x22a636;_0x535bff[_0x320d7c(0x1ea)](_0x17aebe);});},{'platform':_0x535bff[_0x3b538c(0x15f)](nestedKeyValue,global[_0x3b538c(0x1cd)],[_0x535bff[_0x3b538c(0x1e5)]]),'hookType':_0x535bff[_0x3b538c(0x168)]})();},'afterEach'(_0x347bc1){const _0x445481=a32_0x3e087e,_0x1aa9fd={'iFXul':function(_0x38894c){return _0x38894c();},'WnWtD':_0x445481(0x1b7),'YwJXj':function(_0x503bad,_0x1e8554){return _0x503bad!==_0x1e8554;},'BIkVv':_0x445481(0x1f3),'DltSW':function(_0x579db1,_0x26edb7,_0x2682ec){return _0x579db1(_0x26edb7,_0x2682ec);},'EfAsh':function(_0x496dd4,_0x525e8d){return _0x496dd4+_0x525e8d;},'DaLxj':_0x445481(0x163),'ikvNW':_0x445481(0x1a8),'lmoGj':_0x445481(0x15d),'lUvgZ':_0x445481(0x1ca),'ogghZ':function(_0x2f7d55,_0x15434f){return _0x2f7d55>_0x15434f;},'ditHt':function(_0xd41fb4,_0x16a5ec){return _0xd41fb4===_0x16a5ec;},'UHvSD':_0x445481(0x1de),'KSXdO':_0x445481(0x195),'hThNa':function(_0x1b84be,_0x267400,_0x181467,_0x1fa4dc){return _0x1b84be(_0x267400,_0x181467,_0x1fa4dc);},'wJGXg':_0x445481(0x1df),'UYHUB':'bstackA11yShouldScan','SpzJo':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','xRWYW':_0x445481(0x1c3),'jSkQH':_0x445481(0x1b3),'omhTO':_0x445481(0x1fe),'lALil':function(_0x3fdff8){return _0x3fdff8();},'JpOYu':function(_0x5f0cd5){return _0x5f0cd5();},'Ihzxi':function(_0x488070,_0x13dc07,_0x358ba4){return _0x488070(_0x13dc07,_0x358ba4);},'RgFzu':_0x445481(0x170),'XwkLy':function(_0xb45956,_0x5164e1){return _0xb45956>_0x5164e1;},'XhTjt':function(_0x404a5f,_0x121a3c,_0xf68c3b){return _0x404a5f(_0x121a3c,_0xf68c3b);},'gVUUh':_0x445481(0x16c),'oBiBC':_0x445481(0x1e6)},_0x2bb133='browserstack internal helper hook';this['timeout'](0xfde8),global[_0x445481(0x18d)]=this[_0x445481(0x16f)][_0x445481(0x166)]()[_0x445481(0x1eb)](_0x1aa9fd[_0x445481(0x1fc)]),PerformanceTester[_0x445481(0x1ba)](PerformanceSdkEvents[_0x445481(0x18a)],()=>{const _0x264398=_0x445481,_0x132e27={'AglXO':_0x1aa9fd[_0x264398(0x1fc)],'vZQMn':function(_0x45cda9,_0xa6c805){return _0x1aa9fd['YwJXj'](_0x45cda9,_0xa6c805);},'mSyjD':_0x1aa9fd[_0x264398(0x1c0)],'MYqce':function(_0x31b571,_0x1e9dd5,_0x24453b){return _0x1aa9fd['DltSW'](_0x31b571,_0x1e9dd5,_0x24453b);},'eVIEb':function(_0x365840,_0xd92dcb){return _0x1aa9fd['EfAsh'](_0x365840,_0xd92dcb);},'TiOmB':_0x1aa9fd['DaLxj'],'XUhXJ':_0x1aa9fd['ikvNW'],'xYEnJ':_0x1aa9fd[_0x264398(0x1dd)],'vApyO':_0x1aa9fd[_0x264398(0x1ad)],'oegfC':function(_0x571ae4,_0x3743e3){return _0x1aa9fd['ogghZ'](_0x571ae4,_0x3743e3);},'JWzUD':function(_0x2a1571,_0x327b46){const _0x5e41c4=_0x264398;return _0x1aa9fd[_0x5e41c4(0x1ab)](_0x2a1571,_0x327b46);},'KCuPA':_0x1aa9fd[_0x264398(0x1f1)],'HeUNA':_0x1aa9fd['KSXdO'],'Qklzw':function(_0x40264a,_0x5b66da,_0x1b7bca,_0x4ac54c){const _0xb2e1ab=_0x264398;return _0x1aa9fd[_0xb2e1ab(0x1c7)](_0x40264a,_0x5b66da,_0x1b7bca,_0x4ac54c);},'KHdoY':_0x1aa9fd['wJGXg'],'MgLjV':_0x1aa9fd['UYHUB'],'ANEAs':_0x1aa9fd['SpzJo'],'yJOWY':_0x1aa9fd[_0x264398(0x1f0)],'DvjNi':_0x1aa9fd[_0x264398(0x18c)],'GzCWm':_0x1aa9fd[_0x264398(0x1c4)],'MxSFA':function(_0xbfc30){const _0x1d1267=_0x264398;return _0x1aa9fd[_0x1d1267(0x1d0)](_0xbfc30);},'dvMMn':function(_0x55da00,_0x127e11,_0x5c8452){const _0x2a2ca5=_0x264398;return _0x1aa9fd[_0x2a2ca5(0x1a6)](_0x55da00,_0x127e11,_0x5c8452);},'iXppR':function(_0x5dfbce){const _0x27c9ee=_0x264398;return _0x1aa9fd[_0x27c9ee(0x161)](_0x5dfbce);},'IbrDQ':function(_0x3a2ee8,_0x288ce8,_0x153d0b){return _0x1aa9fd['Ihzxi'](_0x3a2ee8,_0x288ce8,_0x153d0b);},'YvUAu':_0x1aa9fd['RgFzu'],'PychG':function(_0xaf161a,_0x232953){const _0x1125d2=_0x264398;return _0x1aa9fd[_0x1125d2(0x18f)](_0xaf161a,_0x232953);}},_0x4de80d=async(_0x23a48e,_0x359a51)=>{const _0x3f6b5a=_0x264398;await global[_0x3f6b5a(0x16a)][0x0][_0x3f6b5a(0x187)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x23a48e+_0x3f6b5a(0x1e3)+_0x359a51+_0x3f6b5a(0x1f7));};new Promise(async _0x2d2dec=>{const _0x4a5b7c=_0x264398,_0x3eba5a={'WfpZi':function(_0x23e774,_0x4fb243){const _0x1e248f=a32_0x2b8c;return _0x132e27[_0x1e248f(0x1fb)](_0x23e774,_0x4fb243);},'lPdYL':_0x132e27['mSyjD'],'RrELb':function(_0x6b358d,_0x430671,_0x5d8018){return _0x132e27['MYqce'](_0x6b358d,_0x430671,_0x5d8018);},'grMND':function(_0x12cce0,_0x54cc33){return _0x132e27['eVIEb'](_0x12cce0,_0x54cc33);},'hdRTH':_0x132e27['TiOmB'],'AVHqW':_0x132e27[_0x4a5b7c(0x176)],'XDlSD':_0x132e27[_0x4a5b7c(0x184)],'Kfpcp':_0x132e27['vApyO']};try{_0x132e27[_0x4a5b7c(0x1a0)](global[_0x4a5b7c(0x16a)][_0x4a5b7c(0x1b8)],0x1)&&(await global[_0x4a5b7c(0x1af)](),global['__drivers'][_0x4a5b7c(0x1dc)](),global[_0x4a5b7c(0x1d9)]=[],global[_0x4a5b7c(0x185)]=![]);try{if(global[_0x4a5b7c(0x189)]&&_0x132e27['JWzUD'](global[_0x4a5b7c(0x193)],_0x132e27[_0x4a5b7c(0x1ac)])&&global[_0x4a5b7c(0x16a)][0x0]){const _0x19d85b=_0x132e27[_0x4a5b7c(0x1a0)](global[_0x4a5b7c(0x186)][_0x4a5b7c(0x1b8)],0x0)?!!global['capabilities'][0x0][_0x4a5b7c(0x1e0)]||!!global['capabilities'][0x0][_0x132e27[_0x4a5b7c(0x18e)]]:![],_0x2f36e7={};_0x2f36e7['app']=_0x19d85b,await _0x132e27[_0x4a5b7c(0x1b5)](percyAutoCapture,global[_0x4a5b7c(0x16a)][0x0],_0x132e27[_0x4a5b7c(0x1ac)],_0x2f36e7);}}catch(_0x4f0c33){logger['debug'](_0x4a5b7c(0x1d6)+_0x4f0c33);}!global[_0x4a5b7c(0x15c)]&&(await PerformanceTester[_0x4a5b7c(0x1ba)](PerformanceAutEvents[_0x4a5b7c(0x1cb)],async()=>{const _0x2b1237=_0x4a5b7c;await global[_0x2b1237(0x16a)][0x0]['executeScript'](_0x2b1237(0x1e2)+JSON[_0x2b1237(0x17f)](this[_0x2b1237(0x16f)][_0x2b1237(0x166)]()[_0x2b1237(0x1eb)](_0x132e27['AglXO']))+'}}');})(),global[_0x4a5b7c(0x16a)][0x0][_0x4a5b7c(0x206)]=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents['SESSION_STATUS'],async()=>{const _0x1b17ea=_0x4a5b7c,_0x4384c7=_0x3eba5a['WfpZi'](this[_0x1b17ea(0x16f)][_0x1b17ea(0x165)],_0x3eba5a[_0x1b17ea(0x1d2)]);_0x4384c7?(global[_0x1b17ea(0x185)]=!![],global[_0x1b17ea(0x1d9)]['push'](this[_0x1b17ea(0x16f)][_0x1b17ea(0x1c5)][_0x1b17ea(0x1c8)]),await _0x3eba5a[_0x1b17ea(0x1c6)](_0x4de80d,JSON[_0x1b17ea(0x17f)](_0x3eba5a[_0x1b17ea(0x1d3)](_0x3eba5a['hdRTH'],this['currentTest']['err'][_0x1b17ea(0x1c8)])),_0x3eba5a[_0x1b17ea(0x180)])):await _0x3eba5a[_0x1b17ea(0x1c6)](_0x4de80d,JSON[_0x1b17ea(0x17f)](_0x3eba5a[_0x1b17ea(0x197)]),_0x3eba5a[_0x1b17ea(0x1c1)]);})();}catch(_0x2b0351){logger[_0x4a5b7c(0x170)](_0x4a5b7c(0x190)+_0x2b0351);}try{if(this[_0x4a5b7c(0x16f)][_0x4a5b7c(0x202)]&&globals[_0x4a5b7c(0x169)](_0x132e27[_0x4a5b7c(0x1c9)])&&globals[_0x4a5b7c(0x169)](_0x132e27[_0x4a5b7c(0x204)])){logger[_0x4a5b7c(0x1ca)](_0x132e27[_0x4a5b7c(0x191)]);const _0x169e77={};_0x169e77[_0x4a5b7c(0x203)]=this[_0x4a5b7c(0x16f)][_0x4a5b7c(0x183)],_0x169e77['thBuildUuid']=process[_0x4a5b7c(0x15e)][testHubConstants[_0x4a5b7c(0x1b0)][_0x4a5b7c(0x1b2)]],_0x169e77['thJwtToken']=process[_0x4a5b7c(0x15e)][testHubConstants[_0x4a5b7c(0x1b0)]['BROWSERSTACK_TESTHUB_JWT']];const _0x118a3d=_0x169e77;logger[_0x4a5b7c(0x170)](_0x4a5b7c(0x205)+JSON[_0x4a5b7c(0x17f)](_0x118a3d)),logger[_0x4a5b7c(0x170)](_0x132e27['yJOWY']);const _0x171b10={};_0x171b10[_0x4a5b7c(0x17a)]=_0x132e27[_0x4a5b7c(0x1b4)],await PerformanceTester[_0x4a5b7c(0x1ba)](PerformanceA11yEvents[_0x4a5b7c(0x1f2)],async()=>{const _0x3de627=_0x4a5b7c;logger['debug'](util[_0x3de627(0x16b)](await global[_0x3de627(0x16a)][0x0]['executeAsyncScript'](scripts['performScan'],{'method':global[_0x3de627(0x1f4)]})));},_0x171b10)(),await PerformanceTester[_0x4a5b7c(0x1ba)](PerformanceA11yEvents[_0x4a5b7c(0x1c2)],async()=>{const _0x3520f3=_0x4a5b7c;await global[_0x3520f3(0x16a)][0x0]['executeAsyncScript'](scripts['saveTestResults'],_0x118a3d);})(),logger[_0x4a5b7c(0x1ca)](_0x132e27[_0x4a5b7c(0x167)]);}}catch(_0x3927d0){logger['error']('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this['currentTest'][_0x4a5b7c(0x166)]()+_0x4a5b7c(0x1d5),_0x3927d0);}try{try{if(_0x132e27[_0x4a5b7c(0x164)](shouldProcessEventForTesthub)){global[_0x4a5b7c(0x16a)][0x0]&&await _0x132e27[_0x4a5b7c(0x15b)](sendPlatformDetails,global['__drivers'][0x0],this[_0x4a5b7c(0x16f)]?this[_0x4a5b7c(0x16f)][_0x4a5b7c(0x183)]:null);if(_0x132e27[_0x4a5b7c(0x198)](isBrowserstackInfra)){PerformanceTester[_0x4a5b7c(0x1e7)](PerformanceO11yEvents[_0x4a5b7c(0x19b)]);const _0x21ea60='ObservabilitySync:'+Date['now']();await _0x132e27[_0x4a5b7c(0x1b9)](_0x4de80d,JSON[_0x4a5b7c(0x17f)](_0x21ea60),_0x132e27[_0x4a5b7c(0x1ed)]),PerformanceTester[_0x4a5b7c(0x1e9)](PerformanceO11yEvents[_0x4a5b7c(0x19b)]);}}}catch(_0x2a766d){logger['debug'](_0x4a5b7c(0x1a7)+_0x2a766d),PerformanceTester[_0x4a5b7c(0x1e9)](PerformanceO11yEvents['SYNC'],![],_0x2a766d);}_0x132e27[_0x4a5b7c(0x1ec)](global[_0x4a5b7c(0x16a)][0x0][_0x4a5b7c(0x1d7)],0x0)&&await global['driverCleanup']();}catch(_0x18f85c){logger[_0x4a5b7c(0x170)](_0x4a5b7c(0x182)+_0x18f85c);}_0x132e27['iXppR'](_0x2d2dec);})[_0x264398(0x1e8)](()=>{const _0x3e90f8=_0x264398;_0x1aa9fd[_0x3e90f8(0x17b)](_0x347bc1);});},{'platform':_0x1aa9fd[_0x445481(0x173)](nestedKeyValue,global[_0x445481(0x1cd)],[_0x1aa9fd[_0x445481(0x1b6)]]),'hookType':_0x1aa9fd[_0x445481(0x19f)]})();},'afterAll'(_0xaceab9){const _0x5a950f=a32_0x3e087e,_0x23d8af={'BCxwr':function(_0xa57e4b){return _0xa57e4b();},'tRHRD':function(_0x183e00){return _0x183e00();},'TdNac':function(_0x464be3,_0x2d71a7,_0x2a8c1b){return _0x464be3(_0x2d71a7,_0x2a8c1b);},'zCSVM':_0x5a950f(0x16c),'yqkSm':_0x5a950f(0x174)},_0x30da3e='browserstack internal helper hook';this[_0x5a950f(0x1a3)](0xfde8),PerformanceTester[_0x5a950f(0x1ba)](PerformanceSdkEvents[_0x5a950f(0x18a)],()=>{const _0x501bee=_0x5a950f,_0x5ea908={'KiiMO':function(_0x11c8d3){const _0x1b50ab=a32_0x2b8c;return _0x23d8af[_0x1b50ab(0x1e1)](_0x11c8d3);}};new Promise(async _0x4dab81=>{const _0x55257b=a32_0x2b8c;await global[_0x55257b(0x1af)](),_0x23d8af[_0x55257b(0x1f5)](_0x4dab81);})[_0x501bee(0x1e8)]()[_0x501bee(0x178)](()=>{const _0x48ab57=_0x501bee;_0x5ea908[_0x48ab57(0x1ee)](_0xaceab9);});},{'platform':_0x23d8af[_0x5a950f(0x17d)](nestedKeyValue,global[_0x5a950f(0x1cd)],[_0x23d8af[_0x5a950f(0x200)]]),'hookType':_0x23d8af[_0x5a950f(0x16e)]})();}};
|
|
1
|
+
const a32_0x10dbb6=a32_0x66ed;function a32_0x36f8(){const _0x21e0f3=['performScan','../../helpers/accessibility-automation/scripts','PLNQS','xxwvh','currentTest','error','browserstackSessionName','beforeAll','RctFu','../../helpers/performance/constants','../../helpers/globals','BMAFc','kRRcc','SAVE_RESULTS','1928900HvcYpn','APqpO','gXMfy','../../helpers/helper','end','protocol','getCurrentUrl','MWbMt','getGlobal','Failed\x20to\x20store\x20session\x20name:\x20','FyfJG','UhFXJ','cgshN','setGlobal','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','Pugww','PSniR','__error_messages__','\x22}}','BROWSERSTACK_TESTHUB_JWT','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','Ywvbk','join','ltuhH','NmMra','IuwsO','measureWrapper','yhqPi','accessibilityScanStarted','IfJmc','16482257LbDWYe','Failed:\x20','gwoeZ','percy','percyCaptureMode','../../helpers/testhub/constants','winstonLogger','NtPLr','quitCount_','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','kCMbv','debug','1076016qQsCXc','__platformCaps','util','shouldScanTestForAccessibility','./test-observability/mochaUtils','JSAbj','3FtsqiP','mochaHooks','\x20-\x20','LjSnJ','FDEbq','thBuildUuid','ENV_VAR','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','SESSION_STATUS','SESSION_NAME','isArray','https:','shift','ZVBZM','SDK_HOOK','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','initQuit','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','cQYgD','5StJjow','BROWSERSTACK_TESTHUB_UUID','timeout','info','IFVDS','env','kqKMg','Pjxbp','../../helpers/performance/performance-tester','zFPaj','isAccessibilityPlatform','../../helpers/testhub/utils','pDflL','format','ObservabilitySync:',',\x22level\x22:\x20\x22','message','testcase','browserstackTestName','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','ABVPt','push','PERFORM_SCAN','UsyXJ','181112nikAXQ','dpNGY','7NpQtZW','beforeEach','hDSfO','tXSyn','scHRB','exqwN','VrWyX','TNJyv','vreMe','Performing\x20scan\x20before\x20saving\x20results','CUYjt','ncOyQ','QjPFg','xgLCy','afterTest','afterAll','stringify','UzMKj','.\x20Error\x20:','thTestRunUuid','index','bmhsg','sessionNameSet__','executeAsyncScript','SYNC','mBpCJ','HstHy','err','GoXMr','FAjwK','then','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','__sessionFailed','length','Automate\x20test\x20case\x20execution\x20has\x20started.','yreyt','knKoc','app','session_','tiNCH','sessionName','OEcew','wJbsO','GOJMz','../../helpers/percy/utils','../../helpers/accessibility-automation/helper','XZsNg','vCGfI','jyDlN','../../helpers/logger','__drivers','Jawxr','testAnalyticsId','wFhRj','10JArENe','342435BYYtOx','titlePath','gwPkp','fTjyq','yHVgH','bstackA11yShouldScan','saveTestResults','startMonitoring','16342RNpkHY','cejBM','rVfmJ','qJKWx','7208127LEYsKq','YdKsB','finally','driverCleanup','lPpeR','capabilities'];a32_0x36f8=function(){return _0x21e0f3;};return a32_0x36f8();}(function(_0x13413a,_0x14649a){const _0x54ff3f=a32_0x66ed,_0x11988f=_0x13413a();while(!![]){try{const _0x374fa9=parseInt(_0x54ff3f(0x164))/0x1+parseInt(_0x54ff3f(0x16c))/0x2*(parseInt(_0x54ff3f(0x1b4))/0x3)+parseInt(_0x54ff3f(0x184))/0x4*(-parseInt(_0x54ff3f(0x1c7))/0x5)+-parseInt(_0x54ff3f(0x1ae))/0x6+-parseInt(_0x54ff3f(0x12d))/0x7*(-parseInt(_0x54ff3f(0x12b))/0x8)+parseInt(_0x54ff3f(0x170))/0x9*(-parseInt(_0x54ff3f(0x163))/0xa)+parseInt(_0x54ff3f(0x1a2))/0xb;if(_0x374fa9===_0x14649a)break;else _0x11988f['push'](_0x11988f['shift']());}catch(_0x242e39){_0x11988f['push'](_0x11988f['shift']());}}}(a32_0x36f8,0x63e50));function a32_0x66ed(_0x1ba2d0,_0x5be317){const _0x36f8be=a32_0x36f8();return a32_0x66ed=function(_0x66ed1a,_0x50fb76){_0x66ed1a=_0x66ed1a-0x115;let _0x430eed=_0x36f8be[_0x66ed1a];return _0x430eed;},a32_0x66ed(_0x1ba2d0,_0x5be317);}const util=require(a32_0x10dbb6(0x1b0)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x10dbb6(0x15a)),{percyAutoCapture}=require(a32_0x10dbb6(0x159)),{sendPlatformDetails}=require(a32_0x10dbb6(0x1b2)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x10dbb6(0x187)),PerformanceTester=require(a32_0x10dbb6(0x11b)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a32_0x10dbb6(0x17f)),scripts=require(a32_0x10dbb6(0x177)),globals=require(a32_0x10dbb6(0x180)),logger=require(a32_0x10dbb6(0x15e))[a32_0x10dbb6(0x1a8)],{shouldProcessEventForTesthub}=require(a32_0x10dbb6(0x11e)),testHubConstants=require(a32_0x10dbb6(0x1a7));exports[a32_0x10dbb6(0x1b5)]={'beforeAll'(){const _0xfd53a1=a32_0x10dbb6,_0x4e3b6d={'FyfJG':function(_0x16ef96,_0x480a29,_0x3d374a,_0x21c44a){return _0x16ef96(_0x480a29,_0x3d374a,_0x21c44a);},'NtPLr':'failed','IFVDS':'\x20|\x20','Pugww':function(_0x49fc2d,_0x4960c2,_0x11a3cf){return _0x49fc2d(_0x4960c2,_0x11a3cf);},'FAjwK':'passed','HzTdY':function(_0x1e5b99){return _0x1e5b99();},'yHVgH':function(_0x52d4ab,_0x3d0513,_0xf854c5){return _0x52d4ab(_0x3d0513,_0xf854c5);},'VCKfL':_0xfd53a1(0x141),'ieJSX':_0xfd53a1(0x17d)};PerformanceTester[_0xfd53a1(0x16b)]();const _0x260e8f='browserstack internal helper hook';PerformanceTester[_0xfd53a1(0x19e)](PerformanceSdkEvents[_0xfd53a1(0x1c2)],()=>{const _0x57492f=_0xfd53a1,_0xd80426={'lPpeR':function(_0xcb87b4,_0xbe683b,_0x584678,_0x1fe164){const _0x5a75ef=a32_0x66ed;return _0x4e3b6d[_0x5a75ef(0x18e)](_0xcb87b4,_0xbe683b,_0x584678,_0x1fe164);},'IuwsO':_0x4e3b6d[_0x57492f(0x1a9)],'Ywvbk':_0x4e3b6d[_0x57492f(0x117)],'rVfmJ':function(_0x262dda,_0x205473,_0x5ed65a){const _0x22f250=_0x57492f;return _0x4e3b6d[_0x22f250(0x193)](_0x262dda,_0x205473,_0x5ed65a);},'JSAbj':_0x4e3b6d[_0x57492f(0x14a)],'kqKMg':function(_0x2bb8a1){return _0x4e3b6d['HzTdY'](_0x2bb8a1);}};global['__error_messages__']=[],global[_0x57492f(0x14d)]=![],global['driverCleanup']=async()=>{const _0x483b11=_0x57492f;let _0x374732=![];try{await global[_0x483b11(0x15f)][0x0][_0x483b11(0x153)],_0x374732=!![],global[_0x483b11(0x14d)]?await _0xd80426[_0x483b11(0x174)](markSessionStatus,global[_0x483b11(0x15f)][0x0],_0xd80426[_0x483b11(0x19d)],global['__error_messages__']['join'](_0xd80426[_0x483b11(0x199)])):await _0xd80426[_0x483b11(0x16e)](markSessionStatus,global[_0x483b11(0x15f)][0x0],_0xd80426[_0x483b11(0x1b3)]);}catch(_0x4bc05d){logger['debug'](_0x483b11(0x1bb)+_0x4bc05d);}global[_0x483b11(0x195)]=[],global[_0x483b11(0x14d)]=![];if(_0x374732)try{try{_0xd80426[_0x483b11(0x119)](shouldProcessEventForTesthub)&&(global[_0x483b11(0x15f)][0x0]&&await _0xd80426[_0x483b11(0x16e)](sendPlatformDetails,global[_0x483b11(0x15f)][0x0],this['currentTest']?this[_0x483b11(0x17a)][_0x483b11(0x161)]:null));}catch(_0x4c742d){logger['debug'](_0x483b11(0x1c5)+_0x4c742d);}await global['__drivers'][0x0][_0x483b11(0x1c4)]();}catch(_0x36b4ca){logger[_0x483b11(0x1ad)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x36b4ca);}};},{'platform':_0x4e3b6d[_0xfd53a1(0x168)](nestedKeyValue,global[_0xfd53a1(0x1af)],[_0x4e3b6d['VCKfL']]),'hookType':_0x4e3b6d['ieJSX']})();},'beforeEach'(_0x452ade){const _0x236d5d=a32_0x10dbb6,_0x3ce0fd={'XZsNg':function(_0x5b8f3b,_0x1aafce){return _0x5b8f3b>_0x1aafce;},'gwoeZ':function(_0x2e0ec2,_0xe7e4bd){return _0x2e0ec2>_0xe7e4bd;},'yreyt':'\x20-\x20','UzMKj':function(_0x59f981,_0xdaa1b8,_0x24d823){return _0x59f981(_0xdaa1b8,_0x24d823);},'beOXo':_0x236d5d(0x169),'ltuhH':function(_0x1af7d0){return _0x1af7d0();},'cfEjM':function(_0xd07789,_0x244d22){return _0xd07789>_0x244d22;},'kRRcc':_0x236d5d(0x11d),'xxwvh':function(_0x13723f,_0x46d2ac){return _0x13723f===_0x46d2ac;},'hDSfO':'http:','PSniR':function(_0x1edda7,_0x336b6c){return _0x1edda7===_0x336b6c;},'FDEbq':_0x236d5d(0x1bf),'mBpCJ':_0x236d5d(0x1c3),'cJOId':_0x236d5d(0x14f),'fJljP':_0x236d5d(0x125),'MWbMt':function(_0x47855a,_0x49d420,_0xe7fab4){return _0x47855a(_0x49d420,_0xe7fab4);},'Mvapx':_0x236d5d(0x141),'yhqPi':_0x236d5d(0x12e)};globals[_0x236d5d(0x191)](_0x3ce0fd['fJljP'],this[_0x236d5d(0x17a)]['titlePath']()[_0x236d5d(0x19a)](_0x3ce0fd[_0x236d5d(0x150)])),PerformanceTester[_0x236d5d(0x19e)](PerformanceSdkEvents[_0x236d5d(0x1c2)],()=>{const _0x1d2c7c=_0x236d5d,_0x3ba423='browserstack internal helper hook';new Promise(async _0x30f120=>{const _0x580619=a32_0x66ed;let _0x1c6ac3=!![];try{_0x3ce0fd[_0x580619(0x15b)](global[_0x580619(0x15f)][_0x580619(0x14e)],0x1)&&(await global[_0x580619(0x173)](),global[_0x580619(0x15f)][_0x580619(0x1c0)]()),_0x3ce0fd[_0x580619(0x1a4)](global['__drivers'][0x0][_0x580619(0x1aa)],0x0)&&(_0x1c6ac3=![],await global['driverCleanup']());}catch(_0x2f64b0){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x2f64b0);}try{Array[_0x580619(0x1be)](global[_0x580619(0x15f)])&&global['__drivers'][0x0]&&(global[_0x580619(0x15f)][0x0][_0x580619(0x17c)]=this[_0x580619(0x17a)][_0x580619(0x165)]()[_0x580619(0x19a)](_0x3ce0fd[_0x580619(0x150)])),global[_0x580619(0x17c)]=this[_0x580619(0x17a)][_0x580619(0x165)]()[_0x580619(0x19a)](_0x3ce0fd['yreyt']);}catch(_0x1ca09f){logger[_0x580619(0x1ad)](_0x580619(0x18d)+_0x1ca09f);}this[_0x580619(0x17a)]['shouldScanTestForAccessibility']=_0x3ce0fd[_0x580619(0x13e)](shouldScanTestForAccessibility,this['currentTest'][_0x580619(0x165)](),!![]),globals['setGlobal'](_0x3ce0fd['beOXo'],this['currentTest']['shouldScanTestForAccessibility']),this[_0x580619(0x17a)][_0x580619(0x1a0)]=!![];if(_0x3ce0fd[_0x580619(0x19b)](isAccessibilityAutomationSession)&&_0x1c6ac3&&Array[_0x580619(0x1be)](global[_0x580619(0x15f)])&&_0x3ce0fd['cfEjM'](global[_0x580619(0x15f)]['length'],0x0)&&globals[_0x580619(0x18c)](_0x3ce0fd[_0x580619(0x182)]))try{const _0x1726d9=await global[_0x580619(0x15f)][0x0][_0x580619(0x153)];if(_0x1726d9){let _0x287720=!![];const _0x5925c4=await global['__drivers'][0x0][_0x580619(0x18a)]();let _0x5aedb3;try{_0x5aedb3=new URL(_0x5925c4);}catch(_0x1cbdba){_0x287720=![];}_0x287720=_0x3ce0fd[_0x580619(0x179)](_0x5aedb3[_0x580619(0x189)],_0x3ce0fd[_0x580619(0x12f)])||_0x3ce0fd[_0x580619(0x194)](_0x5aedb3[_0x580619(0x189)],_0x3ce0fd[_0x580619(0x1b8)]),_0x287720&&(this[_0x580619(0x17a)][_0x580619(0x1b1)]&&logger[_0x580619(0x116)](_0x3ce0fd[_0x580619(0x146)])),this[_0x580619(0x17a)][_0x580619(0x1a0)]=this['currentTest']['shouldScanTestForAccessibility'],this['currentTest'][_0x580619(0x1b1)]&&logger[_0x580619(0x116)](_0x3ce0fd['cJOId']);}}catch(_0x1e1fa8){logger[_0x580619(0x17b)](_0x580619(0x192)+util[_0x580619(0x120)](_0x1e1fa8));}_0x3ce0fd[_0x580619(0x19b)](_0x30f120);})[_0x1d2c7c(0x14b)](()=>{_0x3ce0fd['ltuhH'](_0x452ade);});},{'platform':_0x3ce0fd[_0x236d5d(0x18b)](nestedKeyValue,global['__platformCaps'],[_0x3ce0fd['Mvapx']]),'hookType':_0x3ce0fd[_0x236d5d(0x19f)]})();},'afterEach'(_0x6e5b2a){const _0x17c026=a32_0x10dbb6,_0x1b756={'Jawxr':function(_0x3e1b3a){return _0x3e1b3a();},'YdKsB':_0x17c026(0x1b6),'gXMfy':function(_0x484a1c,_0x23a4f1){return _0x484a1c!==_0x23a4f1;},'kCMbv':'passed','zFPaj':function(_0x126e01,_0x3ee74d,_0x4fb4ee){return _0x126e01(_0x3ee74d,_0x4fb4ee);},'ncOyQ':function(_0x4f3be3,_0x3866ab){return _0x4f3be3+_0x3866ab;},'HlhqF':_0x17c026(0x1a3),'xgLCy':_0x17c026(0x17b),'GOJMz':'Passed','qJKWx':_0x17c026(0x116),'tXSyn':function(_0x546b18,_0x3dbd2c){return _0x546b18>_0x3dbd2c;},'LjSnJ':function(_0x5113c6,_0x48d16a){return _0x5113c6===_0x48d16a;},'scHRB':_0x17c026(0x124),'tnNYl':'appium:app','VrWyX':function(_0x2d2540,_0x3bed67,_0x95792a,_0x523140){return _0x2d2540(_0x3bed67,_0x95792a,_0x523140);},'ABVPt':_0x17c026(0x11d),'lawmn':'bstackA11yShouldScan','NbxWA':_0x17c026(0x198),'XBaAs':_0x17c026(0x136),'fTjyq':_0x17c026(0x13b),'JDggn':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','UhFXJ':function(_0x5cee28){return _0x5cee28();},'cgshN':function(_0x1b171c,_0x9467ad,_0xd8cf46){return _0x1b171c(_0x9467ad,_0xd8cf46);},'ZVBZM':function(_0x58f149){return _0x58f149();},'vCGfI':function(_0x2b2da4,_0x198533,_0x2a707f){return _0x2b2da4(_0x198533,_0x2a707f);},'APqpO':_0x17c026(0x1ad),'jyDlN':function(_0x53a448,_0x1fb808){return _0x53a448>_0x1fb808;},'qTSDv':_0x17c026(0x141),'Pjxbp':'afterEach'},_0x363e5e='browserstack internal helper hook';this[_0x17c026(0x115)](0xfde8),global[_0x17c026(0x155)]=this[_0x17c026(0x17a)][_0x17c026(0x165)]()[_0x17c026(0x19a)](_0x1b756[_0x17c026(0x171)]),PerformanceTester[_0x17c026(0x19e)](PerformanceSdkEvents[_0x17c026(0x1c2)],()=>{const _0xa81615=_0x17c026,_0x24e36b={'cQYgD':_0x1b756[_0xa81615(0x171)],'UsyXJ':function(_0xd54c19,_0x312784){const _0x51fbba=_0xa81615;return _0x1b756[_0x51fbba(0x186)](_0xd54c19,_0x312784);},'NmMra':_0x1b756[_0xa81615(0x1ac)],'TNJyv':function(_0x57f298,_0x49571d,_0x5e9b4b){return _0x1b756['zFPaj'](_0x57f298,_0x49571d,_0x5e9b4b);},'wJbsO':function(_0x4c069a,_0x2f9f2b){const _0x4564ee=_0xa81615;return _0x1b756[_0x4564ee(0x138)](_0x4c069a,_0x2f9f2b);},'QpBay':_0x1b756['HlhqF'],'cngRJ':_0x1b756[_0xa81615(0x13a)],'OEcew':function(_0x29ca69,_0x6c9fee,_0x2da01c){const _0x2518f4=_0xa81615;return _0x1b756[_0x2518f4(0x11c)](_0x29ca69,_0x6c9fee,_0x2da01c);},'vAspB':_0x1b756[_0xa81615(0x158)],'vreMe':_0x1b756[_0xa81615(0x16f)],'RctFu':function(_0x2580c5,_0x483683){const _0x3c0792=_0xa81615;return _0x1b756[_0x3c0792(0x130)](_0x2580c5,_0x483683);},'dpNGY':function(_0x345c5b,_0x23a417){const _0x54e0a4=_0xa81615;return _0x1b756[_0x54e0a4(0x1b7)](_0x345c5b,_0x23a417);},'wFhRj':_0x1b756[_0xa81615(0x131)],'IfJmc':function(_0x3566ae,_0x2aa3a5){const _0x1f00f=_0xa81615;return _0x1b756[_0x1f00f(0x130)](_0x3566ae,_0x2aa3a5);},'GoXMr':_0x1b756['tnNYl'],'CUYjt':function(_0x336ad0,_0x581c3a,_0x2f0dbe,_0x513a5e){const _0x4b75b0=_0xa81615;return _0x1b756[_0x4b75b0(0x133)](_0x336ad0,_0x581c3a,_0x2f0dbe,_0x513a5e);},'knKoc':_0x1b756[_0xa81615(0x127)],'gwPkp':_0x1b756['lawmn'],'BMAFc':_0x1b756['NbxWA'],'NhmMU':_0x1b756['XBaAs'],'LAvpr':_0x1b756[_0xa81615(0x167)],'exqwN':_0x1b756['JDggn'],'ObsYP':function(_0x234c58){const _0x16aa56=_0xa81615;return _0x1b756[_0x16aa56(0x18f)](_0x234c58);},'PLNQS':function(_0x15b9eb,_0x39c2fa,_0x1f7317){const _0x38c1cc=_0xa81615;return _0x1b756[_0x38c1cc(0x190)](_0x15b9eb,_0x39c2fa,_0x1f7317);},'HstHy':function(_0x2570a5){const _0x4febd1=_0xa81615;return _0x1b756[_0x4febd1(0x1c1)](_0x2570a5);},'pDflL':function(_0x2243ae,_0x3ecb61,_0x35c831){const _0x2f2122=_0xa81615;return _0x1b756[_0x2f2122(0x15c)](_0x2243ae,_0x3ecb61,_0x35c831);},'QjPFg':_0x1b756[_0xa81615(0x185)],'yWyHI':function(_0x39278c,_0x1e2b4b){const _0x448cb6=_0xa81615;return _0x1b756[_0x448cb6(0x15d)](_0x39278c,_0x1e2b4b);}},_0x2aa68b=async(_0x1a5c64,_0x4244f4)=>{const _0x504f77=_0xa81615;await global[_0x504f77(0x15f)][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x1a5c64+_0x504f77(0x122)+_0x4244f4+_0x504f77(0x196));};new Promise(async _0x416dbf=>{const _0x3d992c=_0xa81615;try{_0x24e36b[_0x3d992c(0x17e)](global['__drivers']['length'],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x3d992c(0x1c0)](),global[_0x3d992c(0x195)]=[],global['__sessionFailed']=![]);try{if(global[_0x3d992c(0x1a5)]&&_0x24e36b[_0x3d992c(0x12c)](global[_0x3d992c(0x1a6)],_0x24e36b[_0x3d992c(0x162)])&&global[_0x3d992c(0x15f)][0x0]){const _0x50b1f4=_0x24e36b[_0x3d992c(0x1a1)](global[_0x3d992c(0x175)][_0x3d992c(0x14e)],0x0)?!!global[_0x3d992c(0x175)][0x0][_0x3d992c(0x152)]||!!global['capabilities'][0x0][_0x24e36b[_0x3d992c(0x149)]]:![],_0x3f971c={};_0x3f971c['app']=_0x50b1f4,await _0x24e36b[_0x3d992c(0x137)](percyAutoCapture,global[_0x3d992c(0x15f)][0x0],_0x24e36b['wFhRj'],_0x3f971c);}}catch(_0x458444){logger[_0x3d992c(0x1ad)]('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0x458444);}!global['__skipSessionName']&&(await PerformanceTester[_0x3d992c(0x19e)](PerformanceAutEvents[_0x3d992c(0x1bd)],async()=>{const _0x51e869=_0x3d992c;await global[_0x51e869(0x15f)][0x0]['executeScript'](_0x51e869(0x126)+JSON[_0x51e869(0x13d)](this[_0x51e869(0x17a)][_0x51e869(0x165)]()['join'](_0x24e36b[_0x51e869(0x1c6)]))+'}}');})(),global[_0x3d992c(0x15f)][0x0][_0x3d992c(0x143)]=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x3d992c(0x1bc)],async()=>{const _0x7646e0=_0x3d992c,_0x57a595=_0x24e36b[_0x7646e0(0x12a)](this[_0x7646e0(0x17a)]['state'],_0x24e36b[_0x7646e0(0x19c)]);_0x57a595?(global[_0x7646e0(0x14d)]=!![],global[_0x7646e0(0x195)][_0x7646e0(0x128)](this[_0x7646e0(0x17a)][_0x7646e0(0x148)][_0x7646e0(0x123)]),await _0x24e36b[_0x7646e0(0x134)](_0x2aa68b,JSON['stringify'](_0x24e36b[_0x7646e0(0x157)](_0x24e36b['QpBay'],this[_0x7646e0(0x17a)]['err'][_0x7646e0(0x123)])),_0x24e36b['cngRJ'])):await _0x24e36b[_0x7646e0(0x156)](_0x2aa68b,JSON['stringify'](_0x24e36b['vAspB']),_0x24e36b[_0x7646e0(0x135)]);})();}catch(_0x4009ec){logger[_0x3d992c(0x1ad)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x4009ec);}try{if(this[_0x3d992c(0x17a)][_0x3d992c(0x1a0)]&&globals[_0x3d992c(0x18c)](_0x24e36b[_0x3d992c(0x151)])&&globals[_0x3d992c(0x18c)](_0x24e36b[_0x3d992c(0x166)])){logger['info'](_0x24e36b[_0x3d992c(0x181)]);const _0x3e45cf={};_0x3e45cf[_0x3d992c(0x140)]=this[_0x3d992c(0x17a)]['testAnalyticsId'],_0x3e45cf[_0x3d992c(0x1b9)]=process[_0x3d992c(0x118)][testHubConstants[_0x3d992c(0x1ba)][_0x3d992c(0x1c8)]],_0x3e45cf['thJwtToken']=process['env'][testHubConstants['ENV_VAR'][_0x3d992c(0x197)]];const _0x1f2cbd=_0x3e45cf;logger[_0x3d992c(0x1ad)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON['stringify'](_0x1f2cbd)),logger['debug'](_0x24e36b['NhmMU']);const _0x31860f={};_0x31860f['command']=_0x24e36b['LAvpr'],await PerformanceTester[_0x3d992c(0x19e)](PerformanceA11yEvents[_0x3d992c(0x129)],async()=>{const _0x2bbbc4=_0x3d992c;logger['debug'](util[_0x2bbbc4(0x120)](await global[_0x2bbbc4(0x15f)][0x0][_0x2bbbc4(0x144)](scripts[_0x2bbbc4(0x176)],{'method':global[_0x2bbbc4(0x17c)]})));},_0x31860f)(),await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x3d992c(0x183)],async()=>{const _0x37e21c=_0x3d992c;await global[_0x37e21c(0x15f)][0x0][_0x37e21c(0x144)](scripts[_0x37e21c(0x16a)],_0x1f2cbd);})(),logger[_0x3d992c(0x116)](_0x24e36b[_0x3d992c(0x132)]);}}catch(_0x4f23e4){logger[_0x3d992c(0x17b)](_0x3d992c(0x14c)+this[_0x3d992c(0x17a)]['titlePath']()+_0x3d992c(0x13f),_0x4f23e4);}try{try{if(_0x24e36b['ObsYP'](shouldProcessEventForTesthub)){global[_0x3d992c(0x15f)][0x0]&&await _0x24e36b[_0x3d992c(0x178)](sendPlatformDetails,global[_0x3d992c(0x15f)][0x0],this[_0x3d992c(0x17a)]?this[_0x3d992c(0x17a)][_0x3d992c(0x161)]:null);if(_0x24e36b[_0x3d992c(0x147)](isBrowserstackInfra)){PerformanceTester['start'](PerformanceO11yEvents[_0x3d992c(0x145)]);const _0x516217=_0x3d992c(0x121)+Date['now']();await _0x24e36b[_0x3d992c(0x11f)](_0x2aa68b,JSON[_0x3d992c(0x13d)](_0x516217),_0x24e36b[_0x3d992c(0x139)]),PerformanceTester[_0x3d992c(0x188)](PerformanceO11yEvents[_0x3d992c(0x145)]);}}}catch(_0x22db6b){logger[_0x3d992c(0x1ad)](_0x3d992c(0x1ab)+_0x22db6b),PerformanceTester[_0x3d992c(0x188)](PerformanceO11yEvents[_0x3d992c(0x145)],![],_0x22db6b);}_0x24e36b['yWyHI'](global[_0x3d992c(0x15f)][0x0][_0x3d992c(0x1aa)],0x0)&&await global['driverCleanup']();}catch(_0x18c884){logger[_0x3d992c(0x1ad)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x18c884);}_0x24e36b[_0x3d992c(0x147)](_0x416dbf);})[_0xa81615(0x14b)](()=>{const _0x1480de=_0xa81615;_0x1b756[_0x1480de(0x160)](_0x6e5b2a);});},{'platform':_0x1b756[_0x17c026(0x190)](nestedKeyValue,global[_0x17c026(0x1af)],[_0x1b756['qTSDv']]),'hookType':_0x1b756[_0x17c026(0x11a)]})();},'afterAll'(_0x18efea){const _0x312b80=a32_0x10dbb6,_0x33a9c5={'tiNCH':function(_0x13bd33){return _0x13bd33();},'mBgiM':function(_0x2d6920){return _0x2d6920();},'cejBM':function(_0x3fde11,_0xcab045,_0x3e9492){return _0x3fde11(_0xcab045,_0x3e9492);},'HqQyg':_0x312b80(0x141),'bmhsg':_0x312b80(0x13c)},_0x2d36fa='browserstack internal helper hook';this[_0x312b80(0x115)](0xfde8),PerformanceTester[_0x312b80(0x19e)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x245c4e=_0x312b80;new Promise(async _0xb26915=>{const _0x1aa8bf=a32_0x66ed;await global[_0x1aa8bf(0x173)](),_0x33a9c5[_0x1aa8bf(0x154)](_0xb26915);})[_0x245c4e(0x14b)]()[_0x245c4e(0x172)](()=>{_0x33a9c5['mBgiM'](_0x18efea);});},{'platform':_0x33a9c5[_0x312b80(0x16d)](nestedKeyValue,global[_0x312b80(0x1af)],[_0x33a9c5['HqQyg']]),'hookType':_0x33a9c5[_0x312b80(0x142)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x49d69f=a33_0x41c3;function a33_0x9d0d(){const _0x2bf652=['desiredCapabilities','LvJyf','test_settings','selenium','75EUZrpV','filter','trim','env','Getting\x20your\x20nightwatch\x20configs\x20from\x20','port','nightwatch.cmd','123052WupUnv','platforms','120NycOXd','useW3C','cwd','--env','2793OXbUUI','platform','wGbVi','isUndefined','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','findIndex','join','forEach','sOXsw','64750ZMBlRy','../../helpers/logger','slice','getPlatformName','host','config','modifyBrowserStackW3CCaps','writeFileSync','../utils/constants','child_process','../../helpers/helper','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','length','qYjBo','info','nightwatch.conf.js','close','54PCLPiU','inherit','splice','ZWiZc','RQGZt','xwjCr','Deleting\x20','nightwatch','webdriver','existsSync','KAwDO','--config','lFiSi','BlzLR','now','exports','push','unlinkSync','nightwatch.json','384410LgJlnO','oSChh','lUWln','631120CssXys','6238143cANuFc','anOyy','viPvX','../../helpers/BrowserStackSetup','64HtJrNF','debug','1440048HyhVDN','LvKlJ','hub.browserstack.com','zBusw','143miyBgY'];a33_0x9d0d=function(){return _0x2bf652;};return a33_0x9d0d();}(function(_0x44218b,_0x6ad075){const _0x4c20fc=a33_0x41c3,_0x37a8c5=_0x44218b();while(!![]){try{const _0xc60f6b=parseInt(_0x4c20fc(0x1b3))/0x1*(parseInt(_0x4c20fc(0x180))/0x2)+-parseInt(_0x4c20fc(0x1a6))/0x3*(parseInt(_0x4c20fc(0x1ad))/0x4)+parseInt(_0x4c20fc(0x16f))/0x5*(-parseInt(_0x4c20fc(0x1af))/0x6)+parseInt(_0x4c20fc(0x196))/0x7*(-parseInt(_0x4c20fc(0x19b))/0x8)+parseInt(_0x4c20fc(0x197))/0x9+-parseInt(_0x4c20fc(0x193))/0xa+-parseInt(_0x4c20fc(0x1a1))/0xb*(-parseInt(_0x4c20fc(0x19d))/0xc);if(_0xc60f6b===_0x6ad075)break;else _0x37a8c5['push'](_0x37a8c5['shift']());}catch(_0x4e11b0){_0x37a8c5['push'](_0x37a8c5['shift']());}}}(a33_0x9d0d,0x8407a));const fs=require('fs'),path=require('path'),{spawn}=require(a33_0x49d69f(0x178)),logger=require(a33_0x49d69f(0x170))['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x49d69f(0x19a)),helper=require(a33_0x49d69f(0x179)),constants=require(a33_0x49d69f(0x177)),getUserNightwatchConfigs=(_0x1b7733,_0x586c1d)=>{const _0x3a57eb=a33_0x49d69f,_0x1c17b4={'qYjBo':_0x3a57eb(0x17e),'lUWln':_0x3a57eb(0x192),'ZWiZc':function(_0x4b925c,_0x4f64e8){return _0x4b925c(_0x4f64e8);},'eEdsj':_0x3a57eb(0x1b7)};let _0x3c05e8=null,_0xe8fcd={};const _0x105590=_0x586c1d[_0x3a57eb(0x1b8)](_0x5285d1=>_0x5285d1===_0x3a57eb(0x18b));if(!helper[_0x3a57eb(0x1b6)](_0x1b7733[_0x3a57eb(0x174)])&&fs[_0x3a57eb(0x189)](path[_0x3a57eb(0x1b9)](process[_0x3a57eb(0x1b1)](),_0x1b7733['config'])))_0x3c05e8=path[_0x3a57eb(0x1b9)](process['cwd'](),_0x1b7733['config']),_0x586c1d[_0x3a57eb(0x182)](_0x105590,0x2);else{if(fs['existsSync'](path['join'](process[_0x3a57eb(0x1b1)](),_0x1c17b4[_0x3a57eb(0x17c)])))_0x3c05e8=path['join'](process['cwd'](),_0x1c17b4[_0x3a57eb(0x17c)]);else fs[_0x3a57eb(0x189)](path[_0x3a57eb(0x1b9)](process[_0x3a57eb(0x1b1)](),_0x1c17b4['lUWln']))&&(_0x3c05e8=path['join'](process['cwd'](),_0x1c17b4[_0x3a57eb(0x195)]));}return _0x3c05e8?(logger[_0x3a57eb(0x17d)](_0x3a57eb(0x1aa)+_0x3c05e8),_0xe8fcd=_0x1c17b4[_0x3a57eb(0x183)](require,_0x3c05e8)):logger[_0x3a57eb(0x17d)](_0x1c17b4['eEdsj']),_0xe8fcd;},removeExistingEnvs=_0x10feb8=>{const _0x311758=a33_0x49d69f,_0x314ad1={};_0x314ad1[_0x311758(0x18c)]=function(_0x40fcba,_0x51eac4){return _0x40fcba>_0x51eac4;},_0x314ad1[_0x311758(0x16e)]=function(_0x55bdbd,_0x53cce7){return _0x55bdbd>_0x53cce7;};const _0x16becd=_0x314ad1;let _0x158826=_0x10feb8[_0x311758(0x1b8)](_0x28753b=>_0x28753b===_0x311758(0x1b2));_0x16becd['lFiSi'](_0x158826,-0x1)&&_0x10feb8[_0x311758(0x182)](_0x158826,0x2),_0x158826=_0x10feb8[_0x311758(0x1b8)](_0x342d22=>_0x342d22==='-e'),_0x16becd[_0x311758(0x16e)](_0x158826,-0x1)&&_0x10feb8[_0x311758(0x182)](_0x158826,0x2);};function run(_0x5cef41,_0x2884c6,_0x16cc15){const _0x1b3c6e=a33_0x49d69f,_0x31c514={'LvJyf':_0x1b3c6e(0x187),'xwjCr':function(_0x317ecf,_0x5337b3){return _0x317ecf+_0x5337b3;},'LvKlJ':_0x1b3c6e(0x1a4),'BlzLR':function(_0x1d384a,_0x45614d,_0x2df241){return _0x1d384a(_0x45614d,_0x2df241);},'RQGZt':_0x1b3c6e(0x19f),'wGbVi':_0x1b3c6e(0x17a),'oSChh':function(_0x7c2b9d,_0x17b66e){return _0x7c2b9d===_0x17b66e;},'viPvX':'nightwatch-browserstack.json','GLKpX':function(_0x1a5352,_0x3c2644){return _0x1a5352(_0x3c2644);},'CKsEn':function(_0x837222,_0x4acb5a,_0x3a986b,_0x3405d8){return _0x837222(_0x4acb5a,_0x3a986b,_0x3405d8);},'uzwHf':_0x1b3c6e(0x1ac),'KAwDO':_0x1b3c6e(0x18b),'anOyy':'--env','zBusw':_0x1b3c6e(0x181),'HjbVw':_0x1b3c6e(0x17f)};if(!_0x16cc15[_0x1b3c6e(0x174)])return;const _0x51b4c4=_0x31c514[_0x1b3c6e(0x18d)](getUserNightwatchConfigs,_0x5cef41,_0x2884c6),_0x20f375={};_0x20f375['start_process']=![];const _0x550faa={};_0x550faa[_0x1b3c6e(0x173)]=_0x31c514[_0x1b3c6e(0x184)],_0x550faa[_0x1b3c6e(0x1ab)]=0x1bb;const _0x28daa1={};_0x28daa1[_0x1b3c6e(0x188)]=_0x20f375,_0x28daa1[_0x1b3c6e(0x1a5)]=_0x550faa;const _0x188528=_0x28daa1;logger[_0x1b3c6e(0x17d)](_0x31c514[_0x1b3c6e(0x1b5)]);const _0x249e5f={..._0x51b4c4},_0xa9d493=_0x249e5f,_0x368435=helper[_0x1b3c6e(0x1b0)](_0x16cc15[_0x1b3c6e(0x174)]),_0x1a33b2=[];_0x16cc15['config'][_0x1b3c6e(0x1ae)][_0x1b3c6e(0x16d)]((_0x112870,_0x5d6a9e)=>{const _0x385fb5=_0x1b3c6e;_0x368435?_0x1a33b2[_0x385fb5(0x190)](helper[_0x385fb5(0x175)](_0x16cc15[_0x385fb5(0x174)],_0x31c514[_0x385fb5(0x1a3)],_0x5d6a9e)):_0x1a33b2[_0x385fb5(0x190)](helper['modifyBrowserStackCaps'](_0x16cc15['config'],_0x31c514['LvJyf'],_0x5d6a9e));});const _0x2bdfbb={},_0x4fee44=[];_0x5cef41['env']=_0x5cef41[_0x1b3c6e(0x1a9)]||_0x5cef41['e'];const _0x36ddb5=_0x5cef41[_0x1b3c6e(0x1a9)]?_0x5cef41[_0x1b3c6e(0x1a9)][_0x1b3c6e(0x1a8)]()['split'](',')['map'](_0x219eb8=>_0x219eb8[_0x1b3c6e(0x1a8)]())[_0x1b3c6e(0x1a7)](_0x3929e4=>_0x3929e4!==''):[''];_0x31c514[_0x1b3c6e(0x194)](_0x36ddb5[_0x1b3c6e(0x17b)],0x0)&&_0x36ddb5[_0x1b3c6e(0x190)]('');_0x36ddb5[_0x1b3c6e(0x16d)](_0x36d17a=>{const _0x2543fb=_0x1b3c6e;_0x1a33b2[_0x2543fb(0x16d)](_0x401177=>{const _0x3a742c=_0x2543fb;let _0xb48c21=_0x31c514[_0x3a742c(0x185)](helper[_0x3a742c(0x172)](_0x401177,'_'),'_'+Date[_0x3a742c(0x18e)]());_0x36d17a&&(_0xb48c21+='_'+_0x36d17a);if(_0x36d17a&&(!_0x51b4c4[_0x31c514[_0x3a742c(0x19e)]]||!_0x51b4c4[_0x31c514[_0x3a742c(0x19e)]][_0x36d17a]))return;const _0x2721f6={..._0x188528};_0x2721f6[_0x3a742c(0x1a2)]=_0x401177;const _0x406f30=_0x2721f6;_0x2bdfbb[_0xb48c21]=_0x36d17a?helper['mergeDeep'](_0x51b4c4[_0x31c514[_0x3a742c(0x19e)]][_0x36d17a],_0x406f30):_0x406f30,_0x4fee44[_0x3a742c(0x190)](_0xb48c21);});});!_0xa9d493[_0x1b3c6e(0x1a4)]&&(_0xa9d493[_0x1b3c6e(0x1a4)]={});_0xa9d493[_0x1b3c6e(0x1a4)]={..._0xa9d493[_0x1b3c6e(0x1a4)],..._0x2bdfbb};const _0x307be7=path['join'](__dirname,_0x31c514[_0x1b3c6e(0x199)]);fs[_0x1b3c6e(0x176)](_0x307be7,JSON['stringify'](_0xa9d493)),_0x31c514['GLKpX'](removeExistingEnvs,_0x2884c6);const _0xbf09e7=_0x31c514['CKsEn'](spawn,/^win/['test'](process[_0x1b3c6e(0x1b4)])?_0x31c514['uzwHf']:_0x31c514[_0x1b3c6e(0x1a3)],[_0x31c514[_0x1b3c6e(0x18a)],_0x307be7,..._0x2884c6[_0x1b3c6e(0x171)](0x1),_0x31c514[_0x1b3c6e(0x198)],_0x4fee44[_0x1b3c6e(0x1b9)](',')],{'stdio':_0x31c514[_0x1b3c6e(0x1a0)]});_0xbf09e7['on'](_0x31c514['HjbVw'],async _0x114762=>{const _0x1c7ff3=_0x1b3c6e;logger[_0x1c7ff3(0x19c)]('child\x20process\x20exited\x20with\x20code\x20'+_0x114762),logger[_0x1c7ff3(0x17d)](_0x1c7ff3(0x186)+_0x307be7),fs[_0x1c7ff3(0x191)](_0x307be7);});}function a33_0x41c3(_0x44039e,_0x2a203a){const _0x9d0d85=a33_0x9d0d();return a33_0x41c3=function(_0x41c3ff,_0xff0a2b){_0x41c3ff=_0x41c3ff-0x16d;let _0x1ac8d4=_0x9d0d85[_0x41c3ff];return _0x1ac8d4;},a33_0x41c3(_0x44039e,_0x2a203a);}module[a33_0x49d69f(0x18f)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a34_0x51fd(_0x484be1,_0x5969d5){const _0x3cf55c=a34_0x3cf5();return a34_0x51fd=function(_0x51fd19,_0x20a068){_0x51fd19=_0x51fd19-0xeb;let _0x8f2235=_0x3cf55c[_0x51fd19];return _0x8f2235;},a34_0x51fd(_0x484be1,_0x5969d5);}const a34_0x4bec28=a34_0x51fd;(function(_0x3ac549,_0x382c77){const _0x515176=a34_0x51fd,_0x507203=_0x3ac549();while(!![]){try{const _0x1cc345=parseInt(_0x515176(0x150))/0x1*(-parseInt(_0x515176(0x116))/0x2)+-parseInt(_0x515176(0x11e))/0x3*(-parseInt(_0x515176(0x134))/0x4)+-parseInt(_0x515176(0x127))/0x5+parseInt(_0x515176(0x148))/0x6*(parseInt(_0x515176(0xef))/0x7)+parseInt(_0x515176(0x12b))/0x8+parseInt(_0x515176(0x139))/0x9+parseInt(_0x515176(0x155))/0xa*(-parseInt(_0x515176(0xeb))/0xb);if(_0x1cc345===_0x382c77)break;else _0x507203['push'](_0x507203['shift']());}catch(_0x1e3df7){_0x507203['push'](_0x507203['shift']());}}}(a34_0x3cf5,0x7d3b5));const util=require(a34_0x4bec28(0x136)),logger=require('../../helpers/logger')[a34_0x4bec28(0x11d)],{isAccessibilityAutomationSession}=require(a34_0x4bec28(0x14c)),{isUndefined}=require('../../helpers/helper'),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a34_0x4bec28(0xf1)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x4bec28(0x130));exports[a34_0x4bec28(0x14f)]=async(_0xe1b1bb,_0x5cb862,_0x4847e1={})=>{const _0x12b4e7=a34_0x4bec28,_0x2ef251={};_0x2ef251[_0x12b4e7(0x10d)]=_0x12b4e7(0x11c);const _0x182e3c=_0x2ef251;return await _0xe1b1bb[_0x12b4e7(0x124)](_0x12b4e7(0xf5)+_0x5cb862[_0x12b4e7(0x115)](/arguments/g,_0x182e3c[_0x12b4e7(0x10d)])+_0x12b4e7(0x13b)+JSON[_0x12b4e7(0x158)](_0x4847e1)+')');},exports[a34_0x4bec28(0xfd)]=async(_0x2964d5,_0x1d1fa1,_0x2f464b={})=>{const _0x11bfb1=a34_0x4bec28,_0x1bc37a={};_0x1bc37a[_0x11bfb1(0x10e)]=function(_0x4a5629,_0x2d91b8){return _0x4a5629===_0x2d91b8;},_0x1bc37a['qZEGC']=_0x11bfb1(0x118),_0x1bc37a[_0x11bfb1(0x100)]=_0x11bfb1(0x106),_0x1bc37a[_0x11bfb1(0xed)]='bstackSdkArgs';const _0x31a25a=_0x1bc37a;if(_0x31a25a[_0x11bfb1(0x10e)](_0x2964d5[_0x11bfb1(0x123)]['name'],_0x31a25a[_0x11bfb1(0x11b)]))return await _0x2964d5[_0x11bfb1(0x109)](_0x1d1fa1,_0x2f464b);else{if(_0x31a25a[_0x11bfb1(0x10e)](_0x2964d5[_0x11bfb1(0x123)][_0x11bfb1(0x12f)],_0x31a25a[_0x11bfb1(0x100)]))return await _0x2964d5['executeScript'](_0x11bfb1(0x121)+_0x1d1fa1[_0x11bfb1(0x115)](/arguments/g,_0x31a25a[_0x11bfb1(0xed)])+_0x11bfb1(0x138)+JSON[_0x11bfb1(0x158)](_0x2f464b)+')');}},exports['setAccessibilityCapabilities']=async _0x32721a=>{const _0x564b90=a34_0x4bec28,_0x4241b8={};_0x4241b8[_0x564b90(0x13a)]=_0x564b90(0x143),_0x4241b8[_0x564b90(0xfe)]='accessibilityOptions.scannerProcessingTimeout',_0x4241b8[_0x564b90(0x156)]=_0x564b90(0x149),_0x4241b8[_0x564b90(0x157)]=_0x564b90(0x14a),_0x4241b8['unJrb']=_0x564b90(0x117),_0x4241b8[_0x564b90(0x14b)]=_0x564b90(0xff);const _0x3a267f=_0x4241b8;_0x32721a[_0x564b90(0x144)]&&(_0x32721a[_0x564b90(0x144)]['wcagVersion']&&(_0x32721a[_0x3a267f[_0x564b90(0x13a)]]=_0x32721a[_0x564b90(0x144)][_0x564b90(0x132)]),_0x32721a[_0x564b90(0x144)]['scannerProcessingTimeout']&&(_0x32721a[_0x3a267f[_0x564b90(0xfe)]]=_0x32721a[_0x564b90(0x144)][_0x564b90(0x11a)]),_0x32721a['accessibilityOptions'][_0x564b90(0x104)]&&(_0x32721a[_0x3a267f[_0x564b90(0x156)]]=_0x32721a[_0x564b90(0x144)]['includeIssueType'][_0x564b90(0x125)],_0x32721a[_0x3a267f['pjKMG']]=_0x32721a[_0x564b90(0x144)][_0x564b90(0x104)]['needsReview']));const _0x1d651e=JSON[_0x564b90(0x12a)](process[_0x564b90(0x13c)][_0x564b90(0x147)])[_0x564b90(0x128)];_0x32721a[_0x3a267f[_0x564b90(0x119)]]=process[_0x564b90(0x13c)][_0x564b90(0x107)],_0x32721a[_0x3a267f[_0x564b90(0x14b)]]=_0x1d651e,delete _0x32721a[_0x564b90(0x144)];},exports[a34_0x4bec28(0x11f)]=async _0x314103=>{const _0x2c8ebc=a34_0x4bec28,_0x546021={};_0x546021[_0x2c8ebc(0xfb)]=_0x2c8ebc(0x154),_0x546021[_0x2c8ebc(0x10f)]=_0x2c8ebc(0x14d);const _0x5143ce=_0x546021;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x314103,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x314103,scripts.getResults);})();return res;}catch{return logger['error'](_0x5143ce[_0x2c8ebc(0xfb)]),[];}else return logger['warn'](_0x5143ce[_0x2c8ebc(0x10f)]),[];},exports['performScan']=async(_0x451e96,_0x1b1d16='')=>{const _0x25ac61=a34_0x4bec28;logger['debug'](_0x25ac61(0x131)+_0x1b1d16+_0x25ac61(0xf8)+_0x451e96);if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x25ac61(0x12d)],async()=>{const _0x409ed6=_0x25ac61,_0x5d4d58={};_0x5d4d58[_0x409ed6(0x13d)]=_0x1b1d16,await exports[_0x409ed6(0x14f)](_0x451e96,scripts['performScan'],_0x5d4d58);},{'command':_0x1b1d16})();},exports[a34_0x4bec28(0x146)]=async _0x1b299c=>{const _0xa149f6=a34_0x4bec28,_0xeaa439={};_0xeaa439['veZnV']='No\x20summaryResults\x20found.',_0xeaa439[_0xa149f6(0x114)]=_0xa149f6(0x113);const _0x3d5fdc=_0xeaa439;if(global[_0xa149f6(0x108)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1b299c,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x1b299c,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0xa149f6(0x135)](_0x3d5fdc[_0xa149f6(0x126)]),{};}else return logger[_0xa149f6(0x142)](_0x3d5fdc[_0xa149f6(0x114)]),{};},exports[a34_0x4bec28(0x14e)]=async _0x32718a=>{const _0x5a0a67=a34_0x4bec28,_0x5e9789={'SlKSH':function(_0x5b0f64,_0x20214d){return _0x5b0f64!==_0x20214d;},'ZGJFG':_0x5a0a67(0xec),'YbQbl':function(_0x528ed2,_0xff473){return _0x528ed2===_0xff473;},'URoNG':'chrome','CIIIT':function(_0x320729,_0x10578d){return _0x320729===_0x10578d;},'AtmRk':'playwright-chromium','rtHRG':_0x5a0a67(0x102),'IYkdR':function(_0x37accc,_0x2e1ea4){return _0x37accc(_0x2e1ea4);},'WXfUz':_0x5a0a67(0x112),'yFaUy':function(_0x25a4a8,_0x236711){return _0x25a4a8>_0x236711;},'HCEIJ':_0x5a0a67(0xf7)};try{if(!_0x5e9789[_0x5a0a67(0x101)](_0x32718a[_0x5a0a67(0xf3)],''))return logger[_0x5a0a67(0x142)](_0x5e9789[_0x5a0a67(0xfc)]),![];const _0x39483f=_0x32718a['browser'];if(!(_0x5e9789['YbQbl'](_0x39483f,_0x5e9789[_0x5a0a67(0x10b)])||_0x5e9789[_0x5a0a67(0x10c)](_0x39483f,_0x5e9789[_0x5a0a67(0x137)])))return logger[_0x5a0a67(0x142)](_0x5e9789['rtHRG']),![];const _0x4c5168=_0x5e9789[_0x5a0a67(0x12e)](parseInt,_0x32718a[_0x5a0a67(0x145)]);if(!(_0x5e9789[_0x5a0a67(0x10c)](_0x4c5168,_0x5e9789[_0x5a0a67(0xf9)])||_0x5e9789['yFaUy'](_0x4c5168,0x5e)))return logger[_0x5a0a67(0x142)](_0x5e9789[_0x5a0a67(0x151)]),![];}catch(_0xf7f689){logger[_0x5a0a67(0x135)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x5a0a67(0x105)](_0xf7f689));}return!![];},exports[a34_0x4bec28(0xf0)]=(_0x246970,_0x2bf12b,_0xfd8073)=>{const _0x4f228d=a34_0x4bec28,_0x8e6f4f={'WoaMj':function(_0x4f12ae){return _0x4f12ae();},'hJChg':_0x4f228d(0x13f),'OeuTQ':function(_0x26dfe3,_0x2480e2){return _0x26dfe3===_0x2480e2;},'lSwuc':_0x4f228d(0x10a),'ECOJQ':'playwright-chromium','FshNG':function(_0x48c0c2,_0x2b7b9f){return _0x48c0c2===_0x2b7b9f;},'TtcHn':function(_0x3af6ec,_0x2b6344){return _0x3af6ec===_0x2b6344;},'oheBW':_0x4f228d(0x102),'ZsDvd':function(_0x8b1423,_0x5d0f07){return _0x8b1423===_0x5d0f07;},'ACgFX':'latest','nikvt':function(_0x5f5769,_0x2d9ee3){return _0x5f5769>_0x2d9ee3;},'sLkUm':_0x4f228d(0xf7),'HTxnN':function(_0x2e4d04,_0x9df60c){return _0x2e4d04(_0x9df60c);},'wFoAc':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','aUevH':function(_0x17f033,_0x190cea){return _0x17f033+_0x190cea;}};try{if(_0x8e6f4f[_0x4f228d(0x12c)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x246970[_0x8e6f4f['hJChg']]&&(global['accessibilityPlatform']=![]);!(_0x8e6f4f[_0x4f228d(0xf6)](_0x246970[_0x4f228d(0xf2)],_0x8e6f4f[_0x4f228d(0x129)])||_0x8e6f4f[_0x4f228d(0xf6)](_0x246970[_0x4f228d(0xf2)],_0x8e6f4f[_0x4f228d(0xf4)])||_0x8e6f4f['FshNG'](_0x246970[_0x4f228d(0x110)],_0x8e6f4f['lSwuc'])||_0x8e6f4f['TtcHn'](_0x246970[_0x4f228d(0x110)],_0x8e6f4f[_0x4f228d(0xf4)]))&&(logger['warn'](_0x8e6f4f[_0x4f228d(0xee)]),global[_0x4f228d(0x108)]=![]);!(_0x8e6f4f[_0x4f228d(0x153)](_0x246970[_0x4f228d(0x145)],_0x8e6f4f[_0x4f228d(0x122)])||_0x8e6f4f[_0x4f228d(0x140)](_0x246970[_0x4f228d(0x145)],0x5e))&&(logger['warn'](_0x8e6f4f['sLkUm']),global[_0x4f228d(0x108)]=![]);!_0x8e6f4f[_0x4f228d(0x13e)](isUndefined,_0x246970[_0x4f228d(0xf3)])&&(logger[_0x4f228d(0x142)](_0x8e6f4f[_0x4f228d(0x141)]),global[_0x4f228d(0x108)]=![]);if(!global[_0x4f228d(0x108)]){_0x246970[_0x8e6f4f['hJChg']]=![];const _0x50a4cb=_0x8e6f4f[_0x4f228d(0x120)](_0x2bf12b,_0x8e6f4f[_0x4f228d(0x13e)](encodeURIComponent,JSON[_0x4f228d(0x158)](_0x246970)));_0xfd8073&&(_0xfd8073['currentTest'][_0x4f228d(0x103)][_0x4f228d(0xfa)][_0x4f228d(0x133)]['connectOptions']['wsEndpoint']=_0x50a4cb,_0xfd8073[_0x4f228d(0x111)][_0x4f228d(0xfa)][_0x4f228d(0x133)][_0x4f228d(0x152)][_0x4f228d(0x159)]=_0x50a4cb);}}else global[_0x4f228d(0x108)]=![];}catch(_0x39f72a){logger[_0x4f228d(0x135)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util['format'](_0x39f72a));}};function a34_0x3cf5(){const _0x4a1901=['browser','workerInfo','latest','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','YOpsm','replace','10KPSIhD','accessibilityOptions.authToken','WebDriver','unJrb','scannerProcessingTimeout','qZEGC','bstackSdkArgs','winstonLogger','2262BEOEMD','getAccessibilityResults','aUevH','(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','ACgFX','constructor','evaluate','bestPractice','veZnV','76125YmWpxi','scannerVersion','lSwuc','parse','4638832wsHaDf','WoaMj','PERFORM_SCAN','IYkdR','name','../../helpers/performance/constants','Performing\x20scan\x20with\x20method:\x20','wcagVersion','use','4172joaQXU','debug','util','AtmRk','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','8447553IYQtnN','NZgKZ','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','env','command','HTxnN','browserstack.accessibility','nikvt','wFoAc','warn','accessibilityOptions.wcagVersion','accessibilityOptions','browser_version','getAccessibilityResultsSummary','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','6rEOMlo','accessibilityOptions.includeIssueType.bestPractice','accessibilityOptions.includeIssueType.needsReview','zfXCE','../../helpers/accessibility-automation/helper','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','platformValidation','browserStackEvaluate','62699gclVaP','HCEIJ','connectOptions','ZsDvd','No\x20accessibility\x20results\x20were\x20found.','1460AqapvZ','hCRZS','pjKMG','stringify','wsEndpoint','151778mbVJjM','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','xrYqO','oheBW','3858988GpSUfy','processAccessibilityCaps','../../helpers/performance/performance-tester','browserName','deviceName','ECOJQ','(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','OeuTQ','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','\x20page:\x20','WXfUz','project','DDaYU','ZGJFG','browserStackExecuteDriver','vKHhF','accessibilityOptions.scannerVersion','suQwq','SlKSH','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','testInfo','includeIssueType','format','Playwright','BS_A11Y_JWT','accessibilityPlatform','executeAsyncScript','chrome','URoNG','CIIIT','LSGtr','DOfyq','JwKes'];a34_0x3cf5=function(){return _0x4a1901;};return a34_0x3cf5();}
|
|
1
|
+
const a34_0x2be243=a34_0x1d16;(function(_0x35ec13,_0x26f0bf){const _0x3b9337=a34_0x1d16,_0x19e838=_0x35ec13();while(!![]){try{const _0x40f492=-parseInt(_0x3b9337(0x95))/0x1*(parseInt(_0x3b9337(0xc5))/0x2)+-parseInt(_0x3b9337(0xcf))/0x3*(-parseInt(_0x3b9337(0xeb))/0x4)+-parseInt(_0x3b9337(0xa5))/0x5+parseInt(_0x3b9337(0xec))/0x6+parseInt(_0x3b9337(0xd5))/0x7*(-parseInt(_0x3b9337(0x101))/0x8)+parseInt(_0x3b9337(0xbc))/0x9*(parseInt(_0x3b9337(0xe5))/0xa)+-parseInt(_0x3b9337(0xc1))/0xb*(-parseInt(_0x3b9337(0x100))/0xc);if(_0x40f492===_0x26f0bf)break;else _0x19e838['push'](_0x19e838['shift']());}catch(_0x546ee2){_0x19e838['push'](_0x19e838['shift']());}}}(a34_0x41ab,0xe0fa3));function a34_0x1d16(_0x575906,_0x1ee174){const _0x41abe7=a34_0x41ab();return a34_0x1d16=function(_0x1d1694,_0x4bce28){_0x1d1694=_0x1d1694-0x93;let _0x51d53c=_0x41abe7[_0x1d1694];return _0x51d53c;},a34_0x1d16(_0x575906,_0x1ee174);}const util=require(a34_0x2be243(0xa7)),logger=require('../../helpers/logger')[a34_0x2be243(0xa3)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a34_0x2be243(0x98)),scripts=require(a34_0x2be243(0xac)),PerformanceTester=require(a34_0x2be243(0xcd)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x2be243(0xab));exports[a34_0x2be243(0x9b)]=async(_0x24b2b3,_0x231495,_0x375c15={})=>{const _0x252939=a34_0x2be243,_0x24ac38={};_0x24ac38[_0x252939(0xc3)]=_0x252939(0xef);const _0x1ea77c=_0x24ac38;return await _0x24b2b3['evaluate']('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x231495[_0x252939(0xa4)](/arguments/g,_0x1ea77c['ocJAc'])+_0x252939(0xb8)+JSON[_0x252939(0xf8)](_0x375c15)+')');},exports['browserStackExecuteDriver']=async(_0x490c5f,_0x19e719,_0x2b76ae={})=>{const _0x203cee=a34_0x2be243,_0x560e69={};_0x560e69[_0x203cee(0x9e)]=function(_0x1ba3ac,_0x2e819a){return _0x1ba3ac===_0x2e819a;},_0x560e69[_0x203cee(0x94)]=_0x203cee(0xbd),_0x560e69[_0x203cee(0xf5)]=_0x203cee(0xaf),_0x560e69[_0x203cee(0xbb)]=_0x203cee(0xef);const _0x50372a=_0x560e69;if(_0x50372a[_0x203cee(0x9e)](_0x490c5f[_0x203cee(0xee)][_0x203cee(0xed)],_0x50372a[_0x203cee(0x94)]))return await _0x490c5f[_0x203cee(0xfb)](_0x19e719,_0x2b76ae);else{if(_0x50372a[_0x203cee(0x9e)](_0x490c5f[_0x203cee(0xee)][_0x203cee(0xed)],_0x50372a[_0x203cee(0xf5)]))return await _0x490c5f[_0x203cee(0xd9)]('(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'+_0x19e719[_0x203cee(0xa4)](/arguments/g,_0x50372a[_0x203cee(0xbb)])+_0x203cee(0xf0)+JSON[_0x203cee(0xf8)](_0x2b76ae)+')');}},exports[a34_0x2be243(0x9d)]=async _0x519c5d=>{const _0x1c3f2c=a34_0x2be243,_0x5de065={};_0x5de065[_0x1c3f2c(0xcb)]='accessibilityOptions.wcagVersion',_0x5de065['JLlhu']=_0x1c3f2c(0xbe),_0x5de065[_0x1c3f2c(0xc2)]=_0x1c3f2c(0xf6),_0x5de065[_0x1c3f2c(0xae)]='accessibilityOptions.includeIssueType.needsReview',_0x5de065[_0x1c3f2c(0xfe)]=_0x1c3f2c(0xa8),_0x5de065['uDNxm']=_0x1c3f2c(0xaa);const _0x53c5fb=_0x5de065;_0x519c5d['accessibilityOptions']&&(_0x519c5d['accessibilityOptions'][_0x1c3f2c(0xba)]&&(_0x519c5d[_0x53c5fb[_0x1c3f2c(0xcb)]]=_0x519c5d[_0x1c3f2c(0xb2)][_0x1c3f2c(0xba)]),_0x519c5d[_0x1c3f2c(0xb2)][_0x1c3f2c(0xe1)]&&(_0x519c5d[_0x53c5fb['JLlhu']]=_0x519c5d[_0x1c3f2c(0xb2)][_0x1c3f2c(0xe1)]),_0x519c5d[_0x1c3f2c(0xb2)][_0x1c3f2c(0xea)]&&(_0x519c5d[_0x53c5fb['ZNohb']]=_0x519c5d[_0x1c3f2c(0xb2)][_0x1c3f2c(0xea)][_0x1c3f2c(0xe3)],_0x519c5d[_0x53c5fb[_0x1c3f2c(0xae)]]=_0x519c5d['accessibilityOptions'][_0x1c3f2c(0xea)][_0x1c3f2c(0xd4)]));const _0xa08e7f=JSON[_0x1c3f2c(0xda)](process[_0x1c3f2c(0x97)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])['scannerVersion'];_0x519c5d[_0x53c5fb[_0x1c3f2c(0xfe)]]=process[_0x1c3f2c(0x97)][_0x1c3f2c(0xfc)],_0x519c5d[_0x53c5fb[_0x1c3f2c(0xd8)]]=_0xa08e7f,delete _0x519c5d[_0x1c3f2c(0xb2)];},exports[a34_0x2be243(0xc7)]=async _0x3c1026=>{const _0x2811e1=a34_0x2be243,_0x526908={};_0x526908[_0x2811e1(0xa6)]=_0x2811e1(0xe0),_0x526908['RmwVK']=_0x2811e1(0xde);const _0x269cad=_0x526908;if(global[_0x2811e1(0x93)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x3c1026,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x3c1026,scripts.getResults);})();return res;}catch{return logger[_0x2811e1(0xcc)](_0x269cad[_0x2811e1(0xa6)]),[];}else return logger['warn'](_0x269cad[_0x2811e1(0xdd)]),[];},exports['performScan']=async(_0x3d5417,_0x3eecf8='')=>{const _0x1edce8=a34_0x2be243;if(global[_0x1edce8(0x93)])return await PerformanceTester[_0x1edce8(0xf4)](PerformanceA11yEvents[_0x1edce8(0xdf)],async()=>{const _0x23fe47=_0x1edce8,_0xb43eed={};_0xb43eed[_0x23fe47(0xd1)]=_0x3eecf8,await exports[_0x23fe47(0x9b)](_0x3d5417,scripts['performScan'],_0xb43eed);},{'command':_0x3eecf8})();},exports[a34_0x2be243(0x9f)]=async _0x51e14e=>{const _0x29e09c=a34_0x2be243,_0x5de808={};_0x5de808['MkHgp']=_0x29e09c(0xf3),_0x5de808[_0x29e09c(0x99)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x54ef17=_0x5de808;if(global[_0x29e09c(0x93)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x51e14e,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x51e14e,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x29e09c(0xca)](_0x54ef17[_0x29e09c(0xb4)]),{};}else return logger[_0x29e09c(0xd7)](_0x54ef17[_0x29e09c(0x99)]),{};},exports['platformValidation']=async _0x1d12f6=>{const _0x5f0438=a34_0x2be243,_0x28f545={'ZnRdS':function(_0x1741b3,_0x4b6870){return _0x1741b3!==_0x4b6870;},'EjQGz':_0x5f0438(0x9a),'xaILY':function(_0xff2f5b,_0x459e49){return _0xff2f5b===_0x459e49;},'ATjRT':_0x5f0438(0xf2),'mrrUR':_0x5f0438(0xe8),'lmzoi':_0x5f0438(0xd0),'koYZx':function(_0x1ccb3b,_0x35d872){return _0x1ccb3b(_0x35d872);},'JJGJx':_0x5f0438(0xa2),'EbqqB':function(_0x5824aa,_0x380fbc){return _0x5824aa>_0x380fbc;},'mavQh':_0x5f0438(0xc8)};try{if(!_0x28f545[_0x5f0438(0x9c)](_0x1d12f6[_0x5f0438(0xf1)],''))return logger[_0x5f0438(0xd7)](_0x28f545[_0x5f0438(0xc0)]),![];const _0x7d75f1=_0x1d12f6[_0x5f0438(0xf7)];if(!(_0x28f545[_0x5f0438(0xa1)](_0x7d75f1,_0x28f545[_0x5f0438(0xfa)])||_0x28f545['xaILY'](_0x7d75f1,_0x28f545[_0x5f0438(0xff)])))return logger[_0x5f0438(0xd7)](_0x28f545[_0x5f0438(0xb1)]),![];const _0x312d08=_0x28f545[_0x5f0438(0xb7)](parseInt,_0x1d12f6[_0x5f0438(0xb0)]);if(!(_0x28f545[_0x5f0438(0xa1)](_0x312d08,_0x28f545['JJGJx'])||_0x28f545[_0x5f0438(0xce)](_0x312d08,0x5e)))return logger[_0x5f0438(0xd7)](_0x28f545[_0x5f0438(0xad)]),![];}catch(_0x1a6faa){logger['debug'](_0x5f0438(0xb3)+util['format'](_0x1a6faa));}return!![];},exports[a34_0x2be243(0xbf)]=(_0x332382,_0x2cd3ad,_0x4c6cd9)=>{const _0x43af69=a34_0x2be243,_0x431b4f={'MpQNG':function(_0x22a20e){return _0x22a20e();},'kDsMh':_0x43af69(0xe4),'SXPot':function(_0x26e452,_0x1802c6){return _0x26e452===_0x1802c6;},'dnWBR':_0x43af69(0xf2),'AVvZH':_0x43af69(0xe8),'pzcFT':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','IrOwJ':function(_0x37c0e,_0x559fe2){return _0x37c0e===_0x559fe2;},'MOgWF':_0x43af69(0xa2),'qBakH':function(_0x404d00,_0x58196f){return _0x404d00>_0x58196f;},'MwACn':_0x43af69(0xc8),'PBBbo':function(_0x33b10e,_0x5b08df){return _0x33b10e(_0x5b08df);},'RkZhk':_0x43af69(0x9a),'FJzYK':function(_0x430288,_0x4123e2){return _0x430288+_0x4123e2;},'ptjTR':function(_0x12004c,_0x1b6b94){return _0x12004c(_0x1b6b94);}};try{if(_0x431b4f['MpQNG'](isAccessibilityAutomationSession)){global[_0x43af69(0x93)]=!![];!_0x332382[_0x431b4f[_0x43af69(0xe6)]]&&(global[_0x43af69(0x93)]=![]);!(_0x431b4f[_0x43af69(0xd2)](_0x332382['browserName'],_0x431b4f[_0x43af69(0x96)])||_0x431b4f[_0x43af69(0xd2)](_0x332382['browserName'],_0x431b4f[_0x43af69(0xd6)]))&&(logger[_0x43af69(0xd7)](_0x431b4f['pzcFT']),global[_0x43af69(0x93)]=![]);!(_0x431b4f[_0x43af69(0xdc)](_0x332382[_0x43af69(0xb0)],_0x431b4f[_0x43af69(0xd3)])||_0x431b4f[_0x43af69(0xf9)](_0x332382['browser_version'],0x5e))&&(logger[_0x43af69(0xd7)](_0x431b4f[_0x43af69(0xc9)]),global[_0x43af69(0x93)]=![]);!_0x431b4f[_0x43af69(0xb6)](isUndefined,_0x332382['deviceName'])&&(logger['warn'](_0x431b4f[_0x43af69(0xa0)]),global[_0x43af69(0x93)]=![]);if(!global['accessibilityPlatform']){_0x332382[_0x431b4f[_0x43af69(0xe6)]]=![];const _0x142427=_0x431b4f[_0x43af69(0xc4)](_0x2cd3ad,_0x431b4f[_0x43af69(0xe2)](encodeURIComponent,JSON['stringify'](_0x332382)));_0x4c6cd9&&(_0x4c6cd9[_0x43af69(0xb5)][_0x43af69(0xfd)][_0x43af69(0xc6)][_0x43af69(0xdb)]['connectOptions']['wsEndpoint']=_0x142427,_0x4c6cd9[_0x43af69(0xe7)][_0x43af69(0xc6)][_0x43af69(0xdb)]['connectOptions'][_0x43af69(0xb9)]=_0x142427);}}}catch(_0x5b629b){logger[_0x43af69(0xca)](_0x43af69(0xa9)+util[_0x43af69(0xe9)](_0x5b629b));}};function a34_0x41ab(){const _0x598223=['AVvZH','warn','uDNxm','executeScript','parse','use','IrOwJ','RmwVK','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','PERFORM_SCAN','No\x20accessibility\x20results\x20were\x20found.','scannerProcessingTimeout','ptjTR','bestPractice','browserstack.accessibility','160SBWKSQ','kDsMh','workerInfo','playwright-chromium','format','includeIssueType','4BvPNmW','5337324acCPnJ','name','constructor','bstackSdkArgs','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','deviceName','chrome','No\x20summaryResults\x20found.','measureWrapper','NQYxn','accessibilityOptions.includeIssueType.bestPractice','browser','stringify','qBakH','ATjRT','executeAsyncScript','BS_A11Y_JWT','testInfo','edLTm','mrrUR','24zILSMs','14272136OmXHRL','accessibilityPlatform','YROvl','146HRuhId','dnWBR','env','../../helpers/helper','STxwi','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','browserStackEvaluate','ZnRdS','setAccessibilityCapabilities','qJecG','getAccessibilityResultsSummary','RkZhk','xaILY','latest','winstonLogger','replace','6906495EfyCIp','DaJzE','util','accessibilityOptions.authToken','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','accessibilityOptions.scannerVersion','../../helpers/performance/constants','../../helpers/accessibility-automation/scripts','mavQh','SEomd','Playwright','browser_version','lmzoi','accessibilityOptions','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','MkHgp','currentTest','PBBbo','koYZx','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','wsEndpoint','wcagVersion','kYHNY','668403Rjqoba','WebDriver','accessibilityOptions.scannerProcessingTimeout','processAccessibilityCaps','EjQGz','8827467qyMptl','ZNohb','ocJAc','FJzYK','3896ZzYBer','project','getAccessibilityResults','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','MwACn','debug','nuUlc','error','../../helpers/performance/performance-tester','EbqqB','2065233rYYFGk','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','command','SXPot','MOgWF','needsReview','7sgnZiM'];a34_0x41ab=function(){return _0x598223;};return a34_0x41ab();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a35_0x7b2b(_0x12cf02,_0x5db380){const _0x1fdadf=a35_0x1fda();return a35_0x7b2b=function(_0x7b2b93,_0x3e366d){_0x7b2b93=_0x7b2b93-0x64;let _0x49b788=_0x1fdadf[_0x7b2b93];return _0x49b788;},a35_0x7b2b(_0x12cf02,_0x5db380);}const a35_0x3cf6cc=a35_0x7b2b;(function(_0x4cece8,_0x1c72b2){const _0x503058=a35_0x7b2b,_0x41a0ee=_0x4cece8();while(!![]){try{const _0x3644c1=-parseInt(_0x503058(0xd3))/0x1*(parseInt(_0x503058(0xe2))/0x2)+-parseInt(_0x503058(0xb4))/0x3+parseInt(_0x503058(0x111))/0x4+-parseInt(_0x503058(0x6f))/0x5*(-parseInt(_0x503058(0x73))/0x6)+parseInt(_0x503058(0xc6))/0x7+parseInt(_0x503058(0xdf))/0x8*(parseInt(_0x503058(0x8d))/0x9)+-parseInt(_0x503058(0xdd))/0xa;if(_0x3644c1===_0x1c72b2)break;else _0x41a0ee['push'](_0x41a0ee['shift']());}catch(_0x1dd053){_0x41a0ee['push'](_0x41a0ee['shift']());}}}(a35_0x1fda,0x79ca3));const fs=require('fs'),path=require(a35_0x3cf6cc(0xd1)),{spawn}=require(a35_0x3cf6cc(0xa4)),{format}=require(a35_0x3cf6cc(0xaa)),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x3cf6cc(0x6d)),helper=require(a35_0x3cf6cc(0x86)),utilities=require(a35_0x3cf6cc(0x88)),constants=require(a35_0x3cf6cc(0x67)),{FRAMEWORKS}=require(a35_0x3cf6cc(0xfc)),{getConfigLoaderPath}=require(a35_0x3cf6cc(0xa1)),{checkAccessibilityPlatformConfig}=require(a35_0x3cf6cc(0xeb)),{setAccessibilityCapabilities}=require(a35_0x3cf6cc(0xf6)),{printBuildLink}=require(a35_0x3cf6cc(0xad)),TestDetails=require(a35_0x3cf6cc(0xed)),TestHubHandler=require(a35_0x3cf6cc(0xab)),PerformanceTester=require('../../helpers/performance/performance-tester'),BrowserstackCLI=require(a35_0x3cf6cc(0xe4)),PerformanceEvents=require('../../helpers/performance/constants')[a35_0x3cf6cc(0xd7)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a35_0x3cf6cc(0xcc)),getUserPlaywrightConfig=async(_0x2f5531,_0x14d86b)=>{const _0x5a8204=a35_0x3cf6cc,_0x2d7066={'DfATy':function(_0x105387){return _0x105387();},'MaQkF':function(_0x298112,_0x285070){return _0x298112(_0x285070);},'zysvB':_0x5a8204(0xbf),'SEWvV':_0x5a8204(0x8a)},_0xec5d08=!helper[_0x5a8204(0x74)](_0x2f5531[_0x5a8204(0x90)]),_0x29a69e=_0xec5d08?path[_0x5a8204(0xdc)](process[_0x5a8204(0x6a)](),_0x2f5531[_0x5a8204(0x90)]):process['cwd'](),{resolveConfigFile:_0x150607,resolveConfigLocation:_0x2722cd}=helper[_0x5a8204(0xe5)]['apply'](null,_0x2d7066[_0x5a8204(0x7a)](getConfigLoaderPath)),_0x1d0021=_0x150607?_0x2d7066[_0x5a8204(0x8b)](_0x150607,_0x29a69e):helper[_0x5a8204(0x106)](_0x2d7066['MaQkF'](_0x2722cd,_0x29a69e),[_0x2d7066[_0x5a8204(0xfd)]]),_0x42f56c={};if(_0xec5d08){const _0x5ef91f=_0x14d86b[_0x5a8204(0xc0)](_0x2f4c4e=>_0x2f4c4e===_0x5a8204(0x10f)||_0x2f4c4e==='-c'||_0x2f4c4e[_0x5a8204(0x103)](_0x5a8204(0x8a)));_0x14d86b[_0x5a8204(0xbe)](_0x5ef91f,_0x14d86b[_0x5ef91f]['startsWith'](_0x2d7066[_0x5a8204(0xa9)])?0x1:0x2);}const _0xe2e954={};return _0xe2e954[_0x5a8204(0xd1)]=_0x1d0021,_0xe2e954['config']=_0x42f56c,_0xe2e954;},handleO11yRerun=_0x3f0990=>{const _0x3ff46f=a35_0x3cf6cc,_0x2c7d49={};_0x2c7d49[_0x3ff46f(0xc3)]=_0x3ff46f(0x8f);const _0x4a8ba6=_0x2c7d49,_0x573e71=helper[_0x3ff46f(0x71)](process[_0x3ff46f(0xf4)][_0x3ff46f(0x7d)]);if(_0x573e71){const _0x1b24d7=process[_0x3ff46f(0xf4)]['BROWSERSTACK_RERUN_TESTS'],_0x1cdc1b=[];if(helper[_0x3ff46f(0xe3)](_0x1b24d7)&&!helper[_0x3ff46f(0x74)](_0x1b24d7)){_0x1b24d7[_0x3ff46f(0xb5)](',')[_0x3ff46f(0xf1)](_0x42d795=>{const _0x43d6d8=_0x3ff46f;_0x1cdc1b['push']('('+_0x42d795[_0x43d6d8(0x7f)]()+')');});const _0x5ceac2='^'+_0x1cdc1b[_0x3ff46f(0x89)]('|')+'$';_0x3f0990[_0x3ff46f(0x91)](_0x4a8ba6[_0x3ff46f(0xc3)],_0x5ceac2);}}},spawnOriginalProcess=_0x799bcc=>{const _0x454a84=a35_0x3cf6cc,_0x330f5f={'IbCQu':function(_0x35dce0,_0x4b8f84,_0xc0d9b3,_0x6a056c){return _0x35dce0(_0x4b8f84,_0xc0d9b3,_0x6a056c);},'Islsz':_0x454a84(0x98),'BpZpG':'playwright','ihQie':function(_0x5643a4,_0x76638a){return _0x5643a4===_0x76638a;},'TvRqu':'win32','HqGBM':_0x454a84(0xb7)};_0x330f5f['IbCQu'](spawn,_0x330f5f[_0x454a84(0x95)],[_0x330f5f[_0x454a84(0x101)],..._0x799bcc[_0x454a84(0xa7)](0x1)],{'shell':_0x330f5f[_0x454a84(0xdb)](process['platform'],_0x330f5f[_0x454a84(0x97)]),'stdio':_0x330f5f[_0x454a84(0xee)],'cwd':process['cwd']()});},isTestCommand=(_0x2836ea,_0x22f7a8)=>{const _0x39cf68=a35_0x3cf6cc,_0x355623={};_0x355623[_0x39cf68(0x92)]=function(_0x4f557a,_0x3ea20d){return _0x4f557a>_0x3ea20d;},_0x355623[_0x39cf68(0xb6)]=function(_0x4fa356,_0x48950b){return _0x4fa356===_0x48950b;},_0x355623[_0x39cf68(0xcd)]=_0x39cf68(0xf9);const _0x53a87f=_0x355623;if(_0x53a87f[_0x39cf68(0x92)](_0x22f7a8['length'],0x1)&&_0x53a87f[_0x39cf68(0xb6)](_0x22f7a8[0x1],_0x53a87f[_0x39cf68(0xcd)]))return!![];return![];};function a35_0x1fda(){const _0x393d87=['splice','resolvedConfigFile','findIndex','DtYGR','\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();','eZYaZ','length','pTOXQ','5251274ermshX','homedir','SHkWi','bdqja','BLLHH','YvgcO','../v2/TestInfo','DRrxF','serializeToYamlString','HTTVa','ZkjLc','path','indexOf','708259hvcsew','VjeYA','getConfig','snftV','EVENTS','logLevel','win32','BROWSERSTACK_SETUP_CONFIG_PATH','ihQie','resolve','6658170EMSSpc','OpxID','8EcrOOt','error','PSSLn','2SBsesj','validateRerunTestList','../v2/browserstackCLI','requirePWModule','filterBrowserstackArgs','BrowserStack\x20config\x20file\x20not\x20found.','gnpkh','playwright-browserstack-sdk.config.cjs','Deleting\x20','../../helpers/accessibility-automation/helper','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','./reporter/test-details','HqGBM','isTypescriptProject','fVjjb','map','BROWSERSTACK_PW_CONFIG_DIR','start','env','info','./accessibility-helper','SDK_CLEANUP','testObservability','test','IfHXp','isRunning','../../helpers/test-observability/constants','zysvB','AbDkV','ZDOdF','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','BpZpG','PLAYWRIGHT','startsWith','launchBuild','true','nestedKeyValue','playwright-browserstack-sdk.config.js','dKepn','end','BROWSERSTACK_TEST_OBSERVABILITY','clearTempPWConfig','forEach','initialize','vnlgX','--config','--disable-test-observability','3614888zELFvS','getProxyUrl','getPackageType','browserstackAutomation','accessibilityOptions','IzQCq','../utils/constants','existsSync','browserstackSetupConfig.json','cwd','iWtog','TFxtb','../../helpers/BrowserStackSetup','trace_','117775NLQHPB','--disable-browserstack-automation','isTrue','Okorn','90TfuCIG','isUndefined','dirname','USER_CONFIG_DETAILS_PATH','accessibility','bCGtX','getInstance','DfATy','skipSessionName','writeFileSync','BROWSERSTACK_RERUN','cliConfig','trim','debug','VZgjz','MODULE','has','Error\x20in\x20closing\x20playwright','TFjUN','../../helpers/helper','setBrowserstackConfig','../../helpers/utilities','join','--config=','MaQkF','BROWSERSTACK_TEST_ACCESSIBILITY_YML','6827913zPULTe','testContextOptions','--grep','config','push','FjVbN','jCUds','Ljmib','Islsz','BROWSERSTACK_AUTOMATION','TvRqu','npx','exports','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','mqUGH','Error\x20in\x20deleting\x20playwright\x20results','XdUqY','exitCode','nRpDi','getConfigPath','./reporter/pwUtils','PACKAGE_TYPE','isFalse','child_process','stop','Error\x20in\x20getting\x20funnel\x20data\x20results','slice','SDK_POST_INITIALIZE','SEWvV','util','../../helpers/testhub/testhubHandler','edoVh','../../helpers/test-observability/utils','YcFkw','unlinkSync','Playwright\x20process\x20exited\x20with\x20code\x20','filter','measureWrapper','KTuzu','2678877xKktWs','split','JErTW','inherit','assign','bootstrap','SDMuh','pw_result.json','SDK_SETUP','errorMessage'];a35_0x1fda=function(){return _0x393d87;};return a35_0x1fda();}async function run(_0x16d0e8,_0x1f0734,_0x1c364b){const _0x35a6e6=a35_0x3cf6cc,_0x22433c={'SDMuh':'.browserstack','ZDOdF':_0x35a6e6(0xbb),'nRpDi':function(_0x49a6c1,_0xeaf342){return _0x49a6c1+_0xeaf342;},'mQjBt':_0x35a6e6(0xa6),'edoVh':function(_0x469460){return _0x469460();},'utxZk':_0x35a6e6(0x84),'fVjjb':function(_0x576156,_0x1beddf){return _0x576156(_0x1beddf);},'IzQCq':_0x35a6e6(0xe7),'bdqja':function(_0xd4bad,_0x5f9994){return _0xd4bad===_0x5f9994;},'KTuzu':'false','pTOXQ':'--disable-test-observability','Okorn':function(_0xef341c,_0x395300){return _0xef341c>=_0x395300;},'vnlgX':function(_0x31c405,_0x2d86e1){return _0x31c405===_0x2d86e1;},'Ljmib':'automation','YcFkw':function(_0x39224b,_0x29fd13){return _0x39224b!=_0x29fd13;},'OpxID':function(_0x3b6d6b,_0x3afef6,_0xbffb7a){return _0x3b6d6b(_0x3afef6,_0xbffb7a);},'iWtog':function(_0x15e4b8,_0x19a0c2){return _0x15e4b8(_0x19a0c2);},'DtYGR':_0x35a6e6(0x105),'vuYGe':function(_0x64daf9,_0x3894ba){return _0x64daf9(_0x3894ba);},'VjeYA':_0x35a6e6(0x69),'IfHXp':function(_0xe445a0,_0xcf8a98){return _0xe445a0===_0xcf8a98;},'YvgcO':_0x35a6e6(0xe9),'SHkWi':_0x35a6e6(0x107),'nBiNR':function(_0x217b8a,_0x5ab2d3){return _0x217b8a-_0x5ab2d3;},'mqUGH':function(_0x3eae4e,_0x1c1cbe){return _0x3eae4e+_0x1c1cbe;},'PSSLn':'Updated\x20config\x20file\x20name\x20to\x20-\x20','TFxtb':function(_0x237b3f,_0x375b80){return _0x237b3f>_0x375b80;},'gnpkh':function(_0x12a3d7,_0x450b9b){return _0x12a3d7+_0x450b9b;},'HTTVa':function(_0x12c18b,_0x495090,_0x5b0475,_0x21d3a3){return _0x12c18b(_0x495090,_0x5b0475,_0x21d3a3);},'AbDkV':_0x35a6e6(0x98),'XdUqY':'playwright','qlvtl':_0x35a6e6(0xf9),'BLLHH':_0x35a6e6(0x10f),'TFjUN':function(_0x13df0a,_0x50e89f){return _0x13df0a===_0x50e89f;},'dKepn':_0x35a6e6(0xd9),'jCUds':_0x35a6e6(0xb7),'ZkjLc':'close','snftV':_0x35a6e6(0x9c),'VZgjz':function(_0x39d708,_0xd82577){return _0x39d708(_0xd82577);}};try{const _0x1eff5f=path[_0x35a6e6(0x89)](helper[_0x35a6e6(0xc7)](),_0x22433c[_0x35a6e6(0xba)],_0x22433c[_0x35a6e6(0xff)]);fs[_0x35a6e6(0x68)](_0x1eff5f)&&fs[_0x35a6e6(0xaf)](_0x1eff5f);}catch(_0x1de070){logger[_0x35a6e6(0x80)](_0x22433c[_0x35a6e6(0xe8)](_0x22433c[_0x35a6e6(0xd6)],_0x1de070));}if(!_0x22433c[_0x35a6e6(0xde)](isTestCommand,_0x16d0e8,_0x1f0734)){_0x22433c[_0x35a6e6(0x81)](spawnOriginalProcess,_0x1f0734);return;}await PerformanceTester[_0x35a6e6(0xb2)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x12a7c1=_0x35a6e6,_0x29f1e9={'NYRhY':function(_0x5af32b,_0x4f6656){return _0x22433c['fVjjb'](_0x5af32b,_0x4f6656);}};if(!_0x1c364b[_0x12a7c1(0x90)]){logger[_0x12a7c1(0xe0)](_0x22433c[_0x12a7c1(0x66)]);return;}await _0x1c364b[_0x12a7c1(0x10d)](_0x16d0e8),CLIUtils['setFrameworkDetail'](FRAMEWORKS[_0x12a7c1(0x102)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI[_0x12a7c1(0x79)]()[_0x12a7c1(0x87)](_0x1c364b[_0x12a7c1(0x90)]),await BrowserstackCLI[_0x12a7c1(0x79)]()[_0x12a7c1(0xb9)]();const _0x1a2dcf=BrowserstackCLI[_0x12a7c1(0x79)]()[_0x12a7c1(0xd5)]();!helper[_0x12a7c1(0xa3)](_0x1a2dcf[_0x12a7c1(0x64)])&&(process[_0x12a7c1(0xf4)]['BROWSERSTACK_AUTOMATION']=!![]);_0x22433c[_0x12a7c1(0xc9)](_0x1a2dcf[_0x12a7c1(0x64)],![])&&(process[_0x12a7c1(0xf4)][_0x12a7c1(0x96)]=_0x22433c[_0x12a7c1(0xb3)],_0x1f0734=_0x1f0734['filter'](_0x3d415f=>_0x3d415f!==_0x12a7c1(0x70)));const _0x4baba3=_0x1f0734[_0x12a7c1(0xd2)](_0x22433c[_0x12a7c1(0xc5)]);(_0x22433c[_0x12a7c1(0x72)](_0x4baba3,0x0)||_0x22433c[_0x12a7c1(0x10e)](_0x1a2dcf['testObservability'],![]))&&(process[_0x12a7c1(0xf4)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x22433c['KTuzu'],_0x1f0734=_0x1f0734['filter'](_0x4f1ce9=>_0x4f1ce9!==_0x12a7c1(0x110)));!helper[_0x12a7c1(0x74)](_0x1c364b['cliConfig'])&&_0x1c364b[_0x12a7c1(0x7e)][_0x12a7c1(0x83)](_0x22433c['Ljmib'])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x1c364b[_0x12a7c1(0x7e)]['get'](_0x22433c[_0x12a7c1(0x94)])||!![]);_0x22433c[_0x12a7c1(0xae)](_0x1c364b[_0x12a7c1(0x90)]['testObservability'],null)&&!helper[_0x12a7c1(0x71)](process[_0x12a7c1(0xf4)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x12a7c1(0xf4)][_0x12a7c1(0x10a)]=process[_0x12a7c1(0xf4)][_0x12a7c1(0x10a)]||_0x1c364b['config'][_0x12a7c1(0xf8)]);const _0x30fe08=!helper[_0x12a7c1(0xa3)](process[_0x12a7c1(0xf4)][_0x12a7c1(0x10a)]);_0x1c364b[_0x12a7c1(0x90)][_0x12a7c1(0x65)]&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x1c364b[_0x12a7c1(0x90)][_0x12a7c1(0x65)]));let _0x12bad9=![];_0x1c364b['config'][_0x12a7c1(0x77)]&&(_0x12bad9=!![],process[_0x12a7c1(0xf4)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x1c364b[_0x12a7c1(0x90)][_0x12a7c1(0x77)]);const _0x30c3fd=_0x1f0734['concat'](),_0x5ea94a=await _0x22433c[_0x12a7c1(0xde)](getUserPlaywrightConfig,_0x16d0e8,_0x1f0734);if(helper['isUndefined'](_0x5ea94a)){_0x22433c[_0x12a7c1(0x6b)](spawnOriginalProcess,_0x30c3fd);return;}const _0x5b673f=_0x5ea94a[_0x12a7c1(0xd1)]?path[_0x12a7c1(0x75)](_0x5ea94a[_0x12a7c1(0xd1)]):process['cwd']();process['env'][_0x12a7c1(0xf2)]=_0x5b673f,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x12a7c1(0xa8)],async()=>{const _0x5f3f41=_0x12a7c1;!BrowserstackCLI['getInstance']()[_0x5f3f41(0xfb)]()&&await TestHubHandler[_0x5f3f41(0x104)](FRAMEWORKS['PLAYWRIGHT'],_0x1c364b),_0x30fe08&&_0x29f1e9['NYRhY'](handleO11yRerun,_0x1f0734);})();if(!BrowserstackCLI['getInstance']()[_0x12a7c1(0xfb)]()){let _0x10c60b=_0x22433c[_0x12a7c1(0xc9)](process[_0x12a7c1(0xf4)][_0x12a7c1(0x8c)],_0x22433c[_0x12a7c1(0xc1)]);_0x10c60b=_0x10c60b||_0x22433c[_0x12a7c1(0xf0)](checkAccessibilityPlatformConfig,_0x1c364b[_0x12a7c1(0x90)]),process[_0x12a7c1(0xf4)][_0x12a7c1(0x8c)]=_0x10c60b,_0x10c60b&&_0x22433c['vuYGe'](setAccessibilityCapabilities,_0x1c364b[_0x12a7c1(0x90)]);}const _0x40d246=path[_0x12a7c1(0x89)](_0x5ea94a[_0x12a7c1(0xd1)]?path[_0x12a7c1(0x75)](_0x5ea94a[_0x12a7c1(0xd1)]):process['cwd'](),_0x22433c[_0x12a7c1(0xd4)]);fs[_0x12a7c1(0x7c)](_0x40d246,helper[_0x12a7c1(0xce)](_0x1c364b[_0x12a7c1(0x90)])),process[_0x12a7c1(0xf4)][_0x12a7c1(0xda)]=_0x40d246,helper[_0x12a7c1(0x10b)]();let _0x3b117e='';_0x22433c[_0x12a7c1(0xfa)](helper[_0x12a7c1(0x113)](),constants[_0x12a7c1(0xa2)][_0x12a7c1(0x82)])?_0x3b117e=_0x22433c[_0x12a7c1(0xcb)]:_0x3b117e=_0x22433c[_0x12a7c1(0xc8)];let _0x5161a5='';if(helper[_0x12a7c1(0xef)](_0x5ea94a[_0x12a7c1(0xd1)])){_0x5161a5=_0x12a7c1(0xec);const _0x354107=_0x3b117e[_0x12a7c1(0xb5)]('.');_0x354107[_0x22433c['nBiNR'](_0x354107['length'],0x1)]='ts',_0x3b117e=_0x354107['join']('.'),logger[_0x12a7c1(0x80)](_0x22433c[_0x12a7c1(0x9b)](_0x22433c[_0x12a7c1(0xe1)],_0x3b117e));}else _0x5161a5=_0x12a7c1(0x100);const _0x4b32fa=path[_0x12a7c1(0x89)](_0x5ea94a['path']?path['dirname'](_0x5ea94a[_0x12a7c1(0xd1)]):process[_0x12a7c1(0x6a)](),_0x3b117e);let _0x1c3ef1=_0x5ea94a[_0x12a7c1(0xd1)]?_0x5ea94a['path']:'';_0x1c3ef1=_0x22433c[_0x12a7c1(0x6c)](_0x1c3ef1[_0x12a7c1(0xc4)],0x0)?path[_0x12a7c1(0xdc)](_0x1c3ef1):'',process['env'][_0x12a7c1(0x76)]=_0x1c3ef1;const _0x2214fb=helper[_0x12a7c1(0x112)](_0x1c364b['config']);_0x2214fb&&(_0x5161a5=_0x22433c[_0x12a7c1(0xe8)](_0x12a7c1(0x9a)+_0x2214fb+_0x12a7c1(0xc2),_0x5161a5));helper[_0x12a7c1(0xe6)]({},_0x1f0734),fs['writeFileSync'](_0x4b32fa,_0x5161a5),PerformanceTester[_0x12a7c1(0x109)](PerformanceEvents[_0x12a7c1(0xbc)]);const _0x33f7d2=_0x22433c[_0x12a7c1(0xcf)](spawn,_0x22433c[_0x12a7c1(0xfe)],[_0x22433c[_0x12a7c1(0x9d)],_0x22433c['qlvtl'],_0x22433c[_0x12a7c1(0xca)],_0x4b32fa,..._0x1f0734[_0x12a7c1(0xa7)](0x2)],{'shell':_0x22433c[_0x12a7c1(0x85)](process['platform'],_0x22433c[_0x12a7c1(0x108)]),'stdio':_0x22433c[_0x12a7c1(0x93)],'cwd':process[_0x12a7c1(0x6a)](),'env':Object[_0x12a7c1(0xb8)]({},process[_0x12a7c1(0xf4)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x12a7c1(0xa0)](_0x16d0e8),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1c364b[_0x12a7c1(0x90)][_0x12a7c1(0x8e)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1c364b[_0x12a7c1(0x90)][_0x12a7c1(0x8e)][_0x12a7c1(0x7b)],'BROWSERSTACK_LOG_LEVEL':_0x1c364b['config'][_0x12a7c1(0xd8)]})}),_0x5f0bd4=()=>{const _0x59f615=_0x12a7c1;try{const _0x25c9d3=path['join'](helper['homedir'](),_0x22433c[_0x59f615(0xba)],_0x22433c[_0x59f615(0xff)]);if(fs[_0x59f615(0x68)](_0x25c9d3)){let _0x435360=fs['readFileSync'](_0x25c9d3);_0x435360=JSON['parse'](_0x435360),_0x1c364b[_0x59f615(0xbd)]=_0x435360,fs[_0x59f615(0xaf)](_0x25c9d3);}}catch(_0x455d61){logger[_0x59f615(0x80)](_0x22433c[_0x59f615(0x9f)](_0x22433c['mQjBt'],_0x455d61));}};_0x33f7d2['on'](_0x22433c[_0x12a7c1(0xd0)],async _0x44068f=>{const _0xc787cd=_0x12a7c1,_0x445a75={};_0x445a75[_0xc787cd(0x78)]=_0x22433c['SDMuh'];const _0x43ed51=_0x445a75;try{PerformanceTester[_0xc787cd(0xf3)](PerformanceEvents[_0xc787cd(0xf7)]),_0x22433c[_0xc787cd(0xac)](_0x5f0bd4);!BrowserstackCLI[_0xc787cd(0x79)]()['isRunning']()&&await TestHubHandler[_0xc787cd(0xa5)]();await BrowserstackCLI[_0xc787cd(0x79)]()[_0xc787cd(0xa5)](),TestDetails['shutdown'](),_0x22433c[_0xc787cd(0xac)](printBuildLink),await utilities['finalExecution'](_0x1c364b),process[_0xc787cd(0x9e)]=_0x44068f,logger[_0xc787cd(0x80)](_0xc787cd(0xb0)+_0x44068f),logger[_0xc787cd(0xf5)](_0xc787cd(0xea)+_0x4b32fa),fs[_0xc787cd(0xaf)](_0x4b32fa);fs[_0xc787cd(0x68)](_0x40d246)&&(logger[_0xc787cd(0x80)](_0xc787cd(0xea)+_0x40d246),fs[_0xc787cd(0xaf)](_0x40d246));const _0x450417=fs['readdirSync'](path[_0xc787cd(0x89)](helper['homedir'](),_0x22433c[_0xc787cd(0xba)]))[_0xc787cd(0xb1)](_0xddc0fd=>_0xddc0fd[_0xc787cd(0x103)](_0xc787cd(0x6e)));_0x450417[_0xc787cd(0x10c)](_0x5bef09=>{const _0xeaa1e5=_0xc787cd;fs[_0xeaa1e5(0xaf)](path[_0xeaa1e5(0x89)](helper[_0xeaa1e5(0xc7)](),_0x43ed51['bCGtX'],_0x5bef09));});}catch(_0x2fdd34){logger[_0xc787cd(0x80)](_0x22433c[_0xc787cd(0x9f)](_0x22433c['utxZk'],_0x2fdd34));}});})();}module[a35_0x3cf6cc(0x99)]=run;
|
|
2
|
+
'use strict';const a35_0x47135e=a35_0x3041;function a35_0x3041(_0x3815aa,_0x5a609a){const _0x913ba1=a35_0x913b();return a35_0x3041=function(_0x30414b,_0x56ed09){_0x30414b=_0x30414b-0x169;let _0x470c36=_0x913ba1[_0x30414b];return _0x470c36;},a35_0x3041(_0x3815aa,_0x5a609a);}(function(_0x332b30,_0xf1ce29){const _0x2b84e8=a35_0x3041,_0x30b9b6=_0x332b30();while(!![]){try{const _0x4127a8=-parseInt(_0x2b84e8(0x175))/0x1*(-parseInt(_0x2b84e8(0x1cf))/0x2)+-parseInt(_0x2b84e8(0x185))/0x3+parseInt(_0x2b84e8(0x196))/0x4*(-parseInt(_0x2b84e8(0x1d5))/0x5)+parseInt(_0x2b84e8(0x1a4))/0x6+-parseInt(_0x2b84e8(0x1aa))/0x7+-parseInt(_0x2b84e8(0x1ef))/0x8*(-parseInt(_0x2b84e8(0x189))/0x9)+-parseInt(_0x2b84e8(0x1ec))/0xa;if(_0x4127a8===_0xf1ce29)break;else _0x30b9b6['push'](_0x30b9b6['shift']());}catch(_0x12cc8a){_0x30b9b6['push'](_0x30b9b6['shift']());}}}(a35_0x913b,0xc4d61));const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x47135e(0x16c)),{format}=require(a35_0x47135e(0x178)),logger=require(a35_0x47135e(0x19e))[a35_0x47135e(0x18c)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),utilities=require('../../helpers/utilities'),constants=require(a35_0x47135e(0x16e)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a35_0x47135e(0x1b0)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a35_0x47135e(0x1e9)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a35_0x47135e(0x1de)),PerformanceEvents=require(a35_0x47135e(0x1a9))['EVENTS'],getUserPlaywrightConfig=async(_0x36ed0f,_0x117b27)=>{const _0x1709ec=a35_0x47135e,_0x5af9cf={'qJqjf':function(_0x55bfc7){return _0x55bfc7();},'Higjm':function(_0x522773,_0x59c96c){return _0x522773(_0x59c96c);},'kFGTF':function(_0x37b45a,_0x29bd08){return _0x37b45a(_0x29bd08);},'ckajs':'resolvedConfigFile','gxoml':_0x1709ec(0x1ac)},_0x2e5365=!helper[_0x1709ec(0x16a)](_0x36ed0f[_0x1709ec(0x1ba)]),_0x424de3=_0x2e5365?path[_0x1709ec(0x1ea)](process[_0x1709ec(0x1fd)](),_0x36ed0f['config']):process['cwd'](),{resolveConfigFile:_0x4df96d,resolveConfigLocation:_0x1577c6}=helper[_0x1709ec(0x1d6)]['apply'](null,_0x5af9cf[_0x1709ec(0x1ae)](getConfigLoaderPath)),_0x246cc8=_0x4df96d?_0x5af9cf[_0x1709ec(0x1e8)](_0x4df96d,_0x424de3):helper[_0x1709ec(0x194)](_0x5af9cf[_0x1709ec(0x177)](_0x1577c6,_0x424de3),[_0x5af9cf[_0x1709ec(0x1ab)]]),_0xf446dd={};if(_0x2e5365){const _0x17be26=_0x117b27[_0x1709ec(0x1a2)](_0x27f013=>_0x27f013===_0x1709ec(0x1a6)||_0x27f013==='-c'||_0x27f013[_0x1709ec(0x1d3)](_0x1709ec(0x1ac)));_0x117b27[_0x1709ec(0x199)](_0x17be26,_0x117b27[_0x17be26][_0x1709ec(0x1d3)](_0x5af9cf[_0x1709ec(0x184)])?0x1:0x2);}const _0x577477={};return _0x577477['path']=_0x246cc8,_0x577477[_0x1709ec(0x1ba)]=_0xf446dd,_0x577477;},handleO11yRerun=_0x3654bb=>{const _0x555d67=a35_0x47135e,_0xfd7ace={};_0xfd7ace[_0x555d67(0x1d2)]=_0x555d67(0x18d);const _0x24c7ec=_0xfd7ace,_0x52147b=helper['isTrue'](process[_0x555d67(0x1bf)][_0x555d67(0x18b)]);if(_0x52147b){const _0xd64f2e=process[_0x555d67(0x1bf)]['BROWSERSTACK_RERUN_TESTS'],_0x190287=[];if(helper['validateRerunTestList'](_0xd64f2e)&&!helper[_0x555d67(0x16a)](_0xd64f2e)){_0xd64f2e[_0x555d67(0x190)](',')[_0x555d67(0x17f)](_0x44b923=>{const _0x92b26e=_0x555d67;_0x190287[_0x92b26e(0x1d0)]('('+_0x44b923['trim']()+')');});const _0x26356d='^'+_0x190287['join']('|')+'$';_0x3654bb[_0x555d67(0x1d0)](_0x24c7ec[_0x555d67(0x1d2)],_0x26356d);}}},spawnOriginalProcess=_0x510858=>{const _0x22ad75=a35_0x47135e,_0x4a1778={'VfHbW':function(_0x1795f0,_0x3f7c86,_0x4dae7a,_0x3a9d05){return _0x1795f0(_0x3f7c86,_0x4dae7a,_0x3a9d05);},'zyZHK':_0x22ad75(0x179),'UzBmH':_0x22ad75(0x18f),'zDRqC':function(_0x867c7d,_0x2e31c8){return _0x867c7d===_0x2e31c8;},'pxZgO':_0x22ad75(0x19f),'YqERd':'inherit'};_0x4a1778[_0x22ad75(0x1b5)](spawn,_0x4a1778[_0x22ad75(0x1da)],[_0x4a1778[_0x22ad75(0x17b)],..._0x510858['slice'](0x1)],{'shell':_0x4a1778[_0x22ad75(0x1c0)](process[_0x22ad75(0x1ca)],_0x4a1778[_0x22ad75(0x1bc)]),'stdio':_0x4a1778[_0x22ad75(0x1e5)],'cwd':process['cwd']()});},isTestCommand=(_0x466fc5,_0x155ebf)=>{const _0x418fdc=a35_0x47135e,_0x11927b={};_0x11927b[_0x418fdc(0x1a7)]=function(_0x13adc5,_0x4c6b3b){return _0x13adc5>_0x4c6b3b;},_0x11927b[_0x418fdc(0x1cb)]=function(_0xd1cb90,_0xcc5d3e){return _0xd1cb90===_0xcc5d3e;},_0x11927b[_0x418fdc(0x201)]=_0x418fdc(0x200);const _0x1b1afa=_0x11927b;if(_0x1b1afa[_0x418fdc(0x1a7)](_0x155ebf[_0x418fdc(0x1cc)],0x1)&&_0x1b1afa[_0x418fdc(0x1cb)](_0x155ebf[0x1],_0x1b1afa[_0x418fdc(0x201)]))return!![];return![];};async function run(_0x56f9e7,_0x30b90e,_0x2419c3){const _0x15e144=a35_0x47135e,_0x5e14e7={'gXjLk':function(_0x477d14,_0xe29859){return _0x477d14(_0xe29859);},'fVBMK':function(_0x2f36fe){return _0x2f36fe();},'sEYLO':_0x15e144(0x1fe),'ESfsE':function(_0x481a0f,_0x1faa5){return _0x481a0f+_0x1faa5;},'wxbwu':_0x15e144(0x1f9),'TAuVH':_0x15e144(0x1b7),'cioWm':_0x15e144(0x19a),'dJuCV':'BrowserStack\x20config\x20file\x20not\x20found.','ikEIU':'automation','oVdqZ':function(_0x11c821,_0x389757){return _0x11c821!=_0x389757;},'zncyD':function(_0x338129,_0x229d39,_0x35a675){return _0x338129(_0x229d39,_0x35a675);},'XKHXM':function(_0x4ad383,_0x2d63e9){return _0x4ad383===_0x2d63e9;},'ilBQy':_0x15e144(0x182),'IsDiA':'browserstackSetupConfig.json','cBuIR':function(_0x91afa1,_0x365016){return _0x91afa1===_0x365016;},'GDDmX':_0x15e144(0x169),'CQkHo':_0x15e144(0x1c4),'HUMWO':function(_0x51b40d,_0x2c2978){return _0x51b40d-_0x2c2978;},'CHIoS':function(_0x44e61f,_0x23ded0){return _0x44e61f+_0x23ded0;},'wbStb':'Updated\x20config\x20file\x20name\x20to\x20-\x20','RoxUe':function(_0x4a1e83,_0x4d1d94){return _0x4a1e83>_0x4d1d94;},'mwWXp':function(_0x2747e7,_0x5841e9){return _0x2747e7+_0x5841e9;},'BBHin':function(_0x5d433a,_0x1531e9,_0x16694f,_0x38bfb9){return _0x5d433a(_0x1531e9,_0x16694f,_0x38bfb9);},'zirDl':_0x15e144(0x179),'RQpRy':_0x15e144(0x18f),'VRLDd':_0x15e144(0x200),'dbZeT':_0x15e144(0x1a6),'frHQf':function(_0x53e043,_0x81c76a){return _0x53e043===_0x81c76a;},'gzMqj':_0x15e144(0x19f),'Ukbmr':_0x15e144(0x1ed),'UKVNH':_0x15e144(0x1e6),'LhnkT':'Error\x20in\x20deleting\x20playwright\x20results','LZqDZ':function(_0x318626,_0x413fa2,_0x17fb90){return _0x318626(_0x413fa2,_0x17fb90);}};try{const _0x2e1396=path[_0x15e144(0x1a8)](helper[_0x15e144(0x19d)](),_0x5e14e7[_0x15e144(0x191)],_0x5e14e7['TAuVH']);fs[_0x15e144(0x1ad)](_0x2e1396)&&fs[_0x15e144(0x1eb)](_0x2e1396);}catch(_0x1df69f){logger[_0x15e144(0x186)](_0x5e14e7[_0x15e144(0x1ce)](_0x5e14e7[_0x15e144(0x1ee)],_0x1df69f));}if(!_0x5e14e7[_0x15e144(0x1b2)](isTestCommand,_0x56f9e7,_0x30b90e)){_0x5e14e7[_0x15e144(0x173)](spawnOriginalProcess,_0x30b90e);return;}await PerformanceTester[_0x15e144(0x1a5)](PerformanceEvents[_0x15e144(0x1dd)],async()=>{const _0x3b3a95=_0x15e144,_0x5a0557={'txbJc':_0x5e14e7[_0x3b3a95(0x191)],'WIFnB':_0x5e14e7['TAuVH'],'CkZBf':function(_0x4dc5a3,_0x39185c){const _0x1429ed=_0x3b3a95;return _0x5e14e7[_0x1429ed(0x1af)](_0x4dc5a3,_0x39185c);},'cHcDB':_0x5e14e7['cioWm']};if(!_0x2419c3[_0x3b3a95(0x1ba)]){logger[_0x3b3a95(0x1e4)](_0x5e14e7[_0x3b3a95(0x1e7)]);return;}await _0x2419c3[_0x3b3a95(0x1b6)](_0x56f9e7);!helper[_0x3b3a95(0x16a)](_0x2419c3[_0x3b3a95(0x1df)])&&_0x2419c3[_0x3b3a95(0x1df)][_0x3b3a95(0x1b8)](_0x5e14e7[_0x3b3a95(0x1ff)])&&(process[_0x3b3a95(0x1bf)][_0x3b3a95(0x17e)]=_0x2419c3['cliConfig'][_0x3b3a95(0x1b9)](_0x5e14e7[_0x3b3a95(0x1ff)])||!![]);_0x5e14e7['oVdqZ'](_0x2419c3[_0x3b3a95(0x1ba)][_0x3b3a95(0x1c7)],null)&&!helper[_0x3b3a95(0x1d9)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process['env'][_0x3b3a95(0x1f2)]=process[_0x3b3a95(0x1bf)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x2419c3[_0x3b3a95(0x1ba)][_0x3b3a95(0x1c7)]);const _0x47b772=!helper[_0x3b3a95(0x1fc)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY']);_0x2419c3[_0x3b3a95(0x1ba)][_0x3b3a95(0x1f7)]&&(process[_0x3b3a95(0x1bf)][_0x3b3a95(0x193)]=JSON[_0x3b3a95(0x188)](_0x2419c3[_0x3b3a95(0x1ba)]['accessibilityOptions']));await PerformanceTester[_0x3b3a95(0x1a5)](PerformanceEvents[_0x3b3a95(0x1cd)],async()=>{const _0x3d2e72=_0x3b3a95;await TestHubHandler[_0x3d2e72(0x17c)](FRAMEWORKS[_0x3d2e72(0x19c)],_0x2419c3),_0x47b772&&_0x5e14e7[_0x3d2e72(0x173)](handleO11yRerun,_0x30b90e);})();let _0x5839fc=![];_0x2419c3[_0x3b3a95(0x1ba)][_0x3b3a95(0x1b4)]&&(_0x5839fc=!![],process[_0x3b3a95(0x1bf)][_0x3b3a95(0x183)]=_0x2419c3[_0x3b3a95(0x1ba)][_0x3b3a95(0x1b4)]);const _0xbe77ac=_0x30b90e[_0x3b3a95(0x197)](),_0x10757b=await _0x5e14e7[_0x3b3a95(0x1db)](getUserPlaywrightConfig,_0x56f9e7,_0x30b90e);if(helper[_0x3b3a95(0x16a)](_0x10757b)){_0x5e14e7[_0x3b3a95(0x173)](spawnOriginalProcess,_0xbe77ac);return;}const _0x497241=_0x10757b[_0x3b3a95(0x1f3)]?path['dirname'](_0x10757b[_0x3b3a95(0x1f3)]):process['cwd']();process[_0x3b3a95(0x1bf)][_0x3b3a95(0x1be)]=_0x497241;let _0x342fbf=_0x5e14e7[_0x3b3a95(0x172)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x5e14e7[_0x3b3a95(0x1b3)]);_0x342fbf=_0x342fbf||_0x5e14e7[_0x3b3a95(0x173)](checkAccessibilityPlatformConfig,_0x2419c3[_0x3b3a95(0x1ba)]),process[_0x3b3a95(0x1bf)][_0x3b3a95(0x183)]=_0x342fbf;_0x342fbf&&_0x5e14e7[_0x3b3a95(0x173)](setAccessibilityCapabilities,_0x2419c3[_0x3b3a95(0x1ba)]);const _0x1524f8=path[_0x3b3a95(0x1a8)](_0x10757b['path']?path[_0x3b3a95(0x18e)](_0x10757b[_0x3b3a95(0x1f3)]):process[_0x3b3a95(0x1fd)](),_0x5e14e7[_0x3b3a95(0x1f5)]);fs[_0x3b3a95(0x187)](_0x1524f8,helper['serializeToYamlString'](_0x2419c3[_0x3b3a95(0x1ba)])),process[_0x3b3a95(0x1bf)][_0x3b3a95(0x195)]=_0x1524f8,helper['clearTempPWConfig']();let _0x55825f='';_0x5e14e7[_0x3b3a95(0x1c3)](helper[_0x3b3a95(0x181)](),constants[_0x3b3a95(0x1e3)]['MODULE'])?_0x55825f=_0x5e14e7[_0x3b3a95(0x170)]:_0x55825f=_0x5e14e7[_0x3b3a95(0x1e1)];let _0x13250c='';if(helper['isTypescriptProject'](_0x10757b['path'])){_0x13250c=_0x3b3a95(0x174);const _0x3d6da4=_0x55825f[_0x3b3a95(0x190)]('.');_0x3d6da4[_0x5e14e7[_0x3b3a95(0x1d8)](_0x3d6da4[_0x3b3a95(0x1cc)],0x1)]='ts',_0x55825f=_0x3d6da4[_0x3b3a95(0x1a8)]('.'),logger[_0x3b3a95(0x186)](_0x5e14e7[_0x3b3a95(0x1ce)](_0x5e14e7[_0x3b3a95(0x1a0)],_0x55825f));}else _0x13250c=_0x3b3a95(0x1e0);const _0x9eaa03=path[_0x3b3a95(0x1a8)](_0x10757b[_0x3b3a95(0x1f3)]?path[_0x3b3a95(0x18e)](_0x10757b[_0x3b3a95(0x1f3)]):process[_0x3b3a95(0x1fd)](),_0x55825f);let _0x421005=_0x10757b[_0x3b3a95(0x1f3)]?_0x10757b['path']:'';_0x421005=_0x5e14e7[_0x3b3a95(0x16b)](_0x421005[_0x3b3a95(0x1cc)],0x0)?path['resolve'](_0x421005):'',process['env'][_0x3b3a95(0x1f4)]=_0x421005;const _0x3f4e8b=helper[_0x3b3a95(0x1f0)](_0x2419c3[_0x3b3a95(0x1ba)]);_0x3f4e8b&&(_0x13250c=_0x5e14e7['mwWXp'](_0x3b3a95(0x1b1)+_0x3f4e8b+_0x3b3a95(0x1f6),_0x13250c));helper[_0x3b3a95(0x1bb)]({},_0x30b90e),fs[_0x3b3a95(0x187)](_0x9eaa03,_0x13250c),PerformanceTester[_0x3b3a95(0x1fa)](PerformanceEvents[_0x3b3a95(0x1dc)]);const _0x1a04d3=_0x5e14e7[_0x3b3a95(0x1a3)](spawn,_0x5e14e7[_0x3b3a95(0x1c5)],[_0x5e14e7['RQpRy'],_0x5e14e7[_0x3b3a95(0x1f8)],_0x5e14e7[_0x3b3a95(0x1c8)],_0x9eaa03,..._0x30b90e[_0x3b3a95(0x16d)](0x2)],{'shell':_0x5e14e7[_0x3b3a95(0x1d4)](process[_0x3b3a95(0x1ca)],_0x5e14e7[_0x3b3a95(0x1f1)]),'stdio':_0x5e14e7[_0x3b3a95(0x1fb)],'cwd':process[_0x3b3a95(0x1fd)](),'env':Object[_0x3b3a95(0x198)]({},process[_0x3b3a95(0x1bf)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x56f9e7),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x2419c3[_0x3b3a95(0x1ba)]['testContextOptions'][_0x3b3a95(0x171)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x2419c3[_0x3b3a95(0x1ba)]['testContextOptions']['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x2419c3[_0x3b3a95(0x1ba)][_0x3b3a95(0x192)]})}),_0x340379=()=>{const _0x904166=_0x3b3a95;try{const _0x5b148c=path[_0x904166(0x1a8)](helper['homedir'](),_0x5a0557[_0x904166(0x176)],_0x5a0557[_0x904166(0x1e2)]);if(fs[_0x904166(0x1ad)](_0x5b148c)){let _0x559677=fs[_0x904166(0x180)](_0x5b148c);_0x559677=JSON[_0x904166(0x18a)](_0x559677),_0x2419c3['errorMessage']=_0x559677,fs[_0x904166(0x1eb)](_0x5b148c);}}catch(_0x2f5a19){logger[_0x904166(0x186)](_0x5a0557[_0x904166(0x1c1)](_0x5a0557[_0x904166(0x1a1)],_0x2f5a19));}};_0x1a04d3['on'](_0x5e14e7[_0x3b3a95(0x1d1)],async _0x3e543c=>{const _0x73c03e=_0x3b3a95;try{PerformanceTester[_0x73c03e(0x19b)](PerformanceEvents['SDK_CLEANUP']),_0x5e14e7['fVBMK'](_0x340379),await TestHubHandler['stop'](),TestDetails[_0x73c03e(0x1c9)](),_0x5e14e7['fVBMK'](printBuildLink),await utilities['finalExecution'](_0x2419c3),process[_0x73c03e(0x1bd)]=_0x3e543c,logger[_0x73c03e(0x186)](_0x73c03e(0x1d7)+_0x3e543c),logger[_0x73c03e(0x1c2)]('Deleting\x20'+_0x9eaa03),fs[_0x73c03e(0x1eb)](_0x9eaa03);fs[_0x73c03e(0x1ad)](_0x1524f8)&&(logger['debug']('Deleting\x20'+_0x1524f8),fs[_0x73c03e(0x1eb)](_0x1524f8));const _0x2721e3=fs[_0x73c03e(0x17d)](path[_0x73c03e(0x1a8)](helper[_0x73c03e(0x19d)](),_0x5e14e7[_0x73c03e(0x191)]))[_0x73c03e(0x16f)](_0x9569c7=>_0x9569c7[_0x73c03e(0x1d3)](_0x73c03e(0x17a)));_0x2721e3[_0x73c03e(0x1c6)](_0x3b17b0=>{const _0x265a75=_0x73c03e;fs[_0x265a75(0x1eb)](path[_0x265a75(0x1a8)](helper[_0x265a75(0x19d)](),_0x5a0557[_0x265a75(0x176)],_0x3b17b0));});}catch(_0x469b17){logger[_0x73c03e(0x186)](_0x5e14e7[_0x73c03e(0x1af)](_0x5e14e7['wxbwu'],_0x469b17));}});})();}module['exports']=run;function a35_0x913b(){const _0x5f0635=['config','filterBrowserstackArgs','pxZgO','exitCode','BROWSERSTACK_PW_CONFIG_DIR','env','zDRqC','CkZBf','info','cBuIR','playwright-browserstack-sdk.config.js','zirDl','forEach','testObservability','dbZeT','shutdown','platform','KRhQb','length','SDK_POST_INITIALIZE','CHIoS','14RPUTkX','push','UKVNH','SxwSg','startsWith','frHQf','2517580cKoOfN','requirePWModule','Playwright\x20process\x20exited\x20with\x20code\x20','HUMWO','isTrue','zyZHK','zncyD','SDK_SETUP','SDK_PRE_INITIALIZE','../../helpers/performance/performance-tester','cliConfig','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','CQkHo','WIFnB','PACKAGE_TYPE','error','YqERd','close','dJuCV','Higjm','./reporter/test-details','resolve','unlinkSync','12562090ZGfkwv','inherit','LhnkT','2552KECEwx','getProxyUrl','gzMqj','BROWSERSTACK_TEST_OBSERVABILITY','path','USER_CONFIG_DETAILS_PATH','IsDiA','\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();','accessibilityOptions','VRLDd','Error\x20in\x20closing\x20playwright','end','Ukbmr','isFalse','cwd','.browserstack','ikEIU','test','ZLohT','playwright-browserstack-sdk.config.cjs','isUndefined','RoxUe','child_process','slice','../utils/constants','filter','GDDmX','skipSessionStatus','XKHXM','gXjLk','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','160712DEvmxW','txbJc','kFGTF','util','npx','trace_','UzBmH','launchBuild','readdirSync','BROWSERSTACK_AUTOMATION','map','readFileSync','getPackageType','true','BROWSERSTACK_TEST_ACCESSIBILITY_YML','gxoml','315873vrYxsA','debug','writeFileSync','stringify','31851hIoLGX','parse','BROWSERSTACK_RERUN','winstonLogger','--grep','dirname','playwright','split','sEYLO','logLevel','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','nestedKeyValue','BROWSERSTACK_SETUP_CONFIG_PATH','4WYRQBJ','concat','assign','splice','Error\x20in\x20getting\x20funnel\x20data\x20results','start','PLAYWRIGHT','homedir','../../helpers/logger','win32','wbStb','cHcDB','findIndex','BBHin','9267780SyVEtb','measureWrapper','--config','IjIIl','join','../../helpers/performance/constants','7891086gXauQs','ckajs','--config=','existsSync','qJqjf','ESfsE','./accessibility-helper','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','LZqDZ','ilBQy','accessibility','VfHbW','initialize','pw_result.json','has','get'];a35_0x913b=function(){return _0x5f0635;};return a35_0x913b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a36_0xc392(_0xed6f4b,_0x2c3e56){const _0x413a3f=a36_0x413a();return a36_0xc392=function(_0xc3920b,_0x6b20ff){_0xc3920b=_0xc3920b-0xb6;let _0x4afa53=_0x413a3f[_0xc3920b];return _0x4afa53;},a36_0xc392(_0xed6f4b,_0x2c3e56);}function a36_0x413a(){const _0x123d70=['PLAYWRIGHT','env','../../helpers/logger','../../helpers/test-observability/utils','winstonLogger','1153638QIAuLq','1469388EilvnG','498100CExOyl','toString','fork','1.33.0','format','plUDf','43735vIMord','requirePWModule','Call\x20to\x20child\x20fork\x20with\x20args\x20','2144254AoFPcM','kSbhA','1124LLQyxp','8kQOWeO','debug','Not\x20able\x20to\x20import\x20globalSetup','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','wDvZm','POiTf','lAZGZ','util','apply','child_process','error','851436lAYoKS','qnMQz','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','UWgQt','Ljxxp','resolve','config','./mock-process.js','Running\x20existing\x20global\x20setup','./patches','9790PQlsWA','EHPzL','includes','IOrZL','2AtKukG'];a36_0x413a=function(){return _0x123d70;};return a36_0x413a();}const a36_0x537738=a36_0xc392;(function(_0x3d1645,_0x4c3643){const _0x12b7a6=a36_0xc392,_0x226dcc=_0x3d1645();while(!![]){try{const _0x26938b=-parseInt(_0x12b7a6(0xd0))/0x1+parseInt(_0x12b7a6(0xc2))/0x2*(-parseInt(_0x12b7a6(0xc9))/0x3)+-parseInt(_0x12b7a6(0xd5))/0x4*(-parseInt(_0x12b7a6(0xbe))/0x5)+-parseInt(_0x12b7a6(0xc8))/0x6+parseInt(_0x12b7a6(0xd3))/0x7+-parseInt(_0x12b7a6(0xd6))/0x8*(-parseInt(_0x12b7a6(0xe1))/0x9)+parseInt(_0x12b7a6(0xca))/0xa;if(_0x26938b===_0x4c3643)break;else _0x226dcc['push'](_0x226dcc['shift']());}catch(_0x2ece11){_0x226dcc['push'](_0x226dcc['shift']());}}}(a36_0x413a,0x432ba));const util=require(a36_0x537738(0xdd)),child_process=require(a36_0x537738(0xdf)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a36_0x537738(0xc6)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a36_0x537738(0xbd)),logger=require(a36_0x537738(0xc5))[a36_0x537738(0xc7)];module['exports']=async function(_0x23be37){const _0x394b1d=a36_0x537738,_0x11bd0c={'Ljxxp':function(_0x4a55d7,_0x459bde){return _0x4a55d7(_0x459bde);},'kSbhA':function(_0x2f97a9){return _0x2f97a9();},'qnMQz':_0x394b1d(0xbb),'lAZGZ':function(_0x31c73d){return _0x31c73d();},'SqYKj':_0x394b1d(0xbc),'hTEej':function(_0x4a8de2,_0x4f31df){return _0x4a8de2>=_0x4f31df;},'plUDf':_0x394b1d(0xcd),'wDvZm':function(_0xbccc4a,_0x4477d9,_0x5c78c5){return _0xbccc4a(_0x4477d9,_0x5c78c5);},'UWgQt':function(_0x195bee,_0x219952){return _0x195bee!==_0x219952;},'POiTf':'function','EHPzL':_0x394b1d(0xd8),'IOrZL':function(_0x5077aa,_0x848f53){return _0x5077aa(_0x848f53);}},_0x4cac4b=child_process[_0x394b1d(0xcc)];if(helper['isHandlePWErrorSet']())try{_0x11bd0c[_0x394b1d(0xdc)](mockIsWorkerRedundant);}catch(_0x8f2f9c){logger[_0x394b1d(0xd7)](_0x394b1d(0xd9)+util[_0x394b1d(0xce)](_0x8f2f9c));}child_process['fork']=function(){const _0x927fc7=_0x394b1d;return _0x11bd0c[_0x927fc7(0xb8)](debug,_0x927fc7(0xd2)+arguments[0x0]),arguments[0x0][_0x927fc7(0xc0)](_0x11bd0c[_0x927fc7(0xd4)](getForkProcessPath))?arguments[0x0]=require[_0x927fc7(0xb9)](_0x11bd0c[_0x927fc7(0xe2)]):logger[_0x927fc7(0xe0)]('Path\x20'+_0x11bd0c[_0x927fc7(0xdc)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x4cac4b[_0x927fc7(0xde)](null,arguments);};if(process[_0x394b1d(0xc4)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x11bd0c[_0x394b1d(0xb8)](debug,_0x11bd0c['SqYKj']);try{const {loadGlobalHook:_0x2254e3}=helper[_0x394b1d(0xd1)][_0x394b1d(0xde)](null,_0x11bd0c[_0x394b1d(0xd4)](getLoadUtilsPath)),_0x1fc531=_0x11bd0c[_0x394b1d(0xb8)](getFrameworkVersion,FRAMEWORKS[_0x394b1d(0xc3)]);let _0x100d1f=_0x23be37;if(_0x11bd0c['hTEej'](helper['compareVersions'](_0x1fc531,_0x11bd0c[_0x394b1d(0xcf)]),0x0)){const _0x4beb12={};_0x4beb12[_0x394b1d(0xba)]=_0x23be37,_0x100d1f=_0x4beb12;}const _0x1164cd=await _0x11bd0c[_0x394b1d(0xda)](_0x2254e3,_0x100d1f,process['env']['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x11bd0c[_0x394b1d(0xb7)](typeof _0x1164cd,_0x11bd0c[_0x394b1d(0xdb)]))throw new Error(_0x11bd0c[_0x394b1d(0xbf)]);return _0x1164cd[_0x394b1d(0xde)](null,arguments);}catch(_0x3ef6f5){_0x11bd0c[_0x394b1d(0xc1)](debug,_0x394b1d(0xb6)+_0x3ef6f5[_0x394b1d(0xcb)]());}}};
|