browserstack-node-sdk 1.36.4 → 1.36.6
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/generated/sdk-messages-accessibility_grpc_pb.d.ts +1 -0
- package/generated/sdk-messages-accessibility_grpc_pb.js +1 -0
- package/generated/sdk-messages-accessibility_pb.d.ts +279 -0
- package/generated/sdk-messages-accessibility_pb.js +2186 -0
- package/generated/sdk-messages-ai_grpc_pb.d.ts +1 -0
- package/generated/sdk-messages-ai_grpc_pb.js +1 -0
- package/generated/sdk-messages-ai_pb.d.ts +217 -0
- package/generated/sdk-messages-ai_pb.js +1650 -0
- package/generated/sdk-messages-observability_grpc_pb.d.ts +1 -0
- package/generated/sdk-messages-observability_grpc_pb.js +1 -0
- package/generated/sdk-messages-observability_pb.d.ts +178 -0
- package/generated/sdk-messages-observability_pb.js +1377 -0
- package/generated/sdk-messages-percy_grpc_pb.d.ts +1 -0
- package/generated/sdk-messages-percy_grpc_pb.js +1 -0
- package/generated/sdk-messages-percy_pb.d.ts +37 -0
- package/generated/sdk-messages-percy_pb.js +266 -0
- package/generated/sdk-messages-testhub_grpc_pb.d.ts +1 -0
- package/generated/sdk-messages-testhub_grpc_pb.js +1 -0
- package/generated/sdk-messages-testhub_pb.d.ts +39 -0
- package/generated/sdk-messages-testhub_pb.js +290 -0
- package/generated/sdk-messages_grpc_pb.d.ts +1 -0
- package/generated/sdk-messages_grpc_pb.js +1 -0
- package/generated/sdk-messages_pb.d.ts +1105 -0
- package/generated/sdk-messages_pb.js +8580 -0
- package/generated/sdk_grpc_pb.d.ts +113 -0
- package/generated/sdk_grpc_pb.js +609 -0
- package/generated/sdk_pb.d.ts +9 -0
- package/generated/sdk_pb.js +31 -0
- package/package.json +7 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -0
- package/src/bin/v2/browserstackCLI.js +1 -0
- package/src/bin/v2/cliUtils.js +1 -0
- package/src/bin/v2/customTagManager.js +1 -0
- package/src/bin/v2/eventDispatcher.js +1 -0
- package/src/bin/v2/framework/automationFramework.js +1 -0
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -0
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -0
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -0
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -0
- package/src/bin/v2/framework/testFramework.js +1 -0
- package/src/bin/v2/grpcClient.js +1 -0
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -0
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -0
- package/src/bin/v2/instances/trackedContext.js +1 -0
- package/src/bin/v2/instances/trackedInstance.js +1 -0
- package/src/bin/v2/modules/accessibilityModule.js +1 -0
- package/src/bin/v2/modules/baseModule.js +1 -0
- package/src/bin/v2/modules/observabilityModule.js +1 -0
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -0
- package/src/bin/v2/modules/testhubModule.js +1 -0
- package/src/bin/v2/state/automationFrameworkState.js +1 -0
- package/src/bin/v2/state/hookState.js +1 -0
- package/src/bin/v2/state/testFrameworkState.js +1 -0
- package/src/bin/v2/uploadAttachmentsManager.js +1 -0
- 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/classLogger.js +1 -0
- 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/test-orchestration/fail-fast/fileHelper.js +1 -0
- package/src/helpers/test-orchestration/fail-fast/jest.js +1 -0
- package/src/helpers/test-orchestration/fail-fast/requestUtils.js +1 -0
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x34956f=a29_0x43d0;(function(_0x1620d5,_0x540749){const _0x168828=a29_0x43d0,_0x372389=_0x1620d5();while(!![]){try{const _0x113f14=parseInt(_0x168828(0x12e))/0x1+parseInt(_0x168828(0x137))/0x2*(-parseInt(_0x168828(0xeb))/0x3)+-parseInt(_0x168828(0x159))/0x4+parseInt(_0x168828(0x10e))/0x5+parseInt(_0x168828(0x11e))/0x6+parseInt(_0x168828(0x102))/0x7*(parseInt(_0x168828(0x118))/0x8)+parseInt(_0x168828(0x111))/0x9*(parseInt(_0x168828(0xf8))/0xa);if(_0x113f14===_0x540749)break;else _0x372389['push'](_0x372389['shift']());}catch(_0x1d5948){_0x372389['push'](_0x372389['shift']());}}}(a29_0x415f,0xf0080));const logger=require('../../../helpers/logger')[a29_0x34956f(0xfe)],helper=require('../../../helpers/helper'),constants=require(a29_0x34956f(0x115)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x34956f(0xe7)),{setAccessibilityCapabilities,setExtension}=require(a29_0x34956f(0xf4)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a29_0x34956f(0x135)),{overrideExecute}=require(a29_0x34956f(0x101)),modify=(_0x10920a,_0x2038cd=null,_0xa4f0fe=![])=>{const _0x5b3b0e=a29_0x34956f,_0x5d25c2={'sEGpz':function(_0xbedc2d,_0x4b34d2){return _0xbedc2d!==_0x4b34d2;},'Cfcuv':_0x5b3b0e(0x119),'Rldve':function(_0x5a3a90,_0x10c943){return _0x5a3a90+_0x10c943;},'ZYLxq':function(_0x3743ac,_0x3556a1){return _0x3743ac+_0x3556a1;},'DfDQv':'https://','KHfDC':_0x5b3b0e(0x10b),'ZWBkN':_0x5b3b0e(0x13d),'mQsZO':_0x5b3b0e(0xf2),'KWFYF':_0x5b3b0e(0xf0),'kBtPb':_0x5b3b0e(0x149),'cwPIv':_0x5b3b0e(0x116),'veWwP':'firefoxOptions','FopzL':_0x5b3b0e(0xf7),'KAZdP':_0x5b3b0e(0xe4),'ucRpf':_0x5b3b0e(0x14d),'SRhbL':function(_0x58164a,_0x140b45){return _0x58164a===_0x140b45;},'IVDNB':_0x5b3b0e(0xe2),'NJOOd':_0x5b3b0e(0x104),'FwbCE':function(_0x2210dc,_0x2ec045,_0x5209a4){return _0x2210dc(_0x2ec045,_0x5209a4);},'YGnfx':function(_0x36c74b,_0x3641af,_0x177969){return _0x36c74b(_0x3641af,_0x177969);},'VHmmT':_0x5b3b0e(0x11a),'rESnm':_0x5b3b0e(0xf6),'frXGH':function(_0x5dd842,_0x13fc2c){return _0x5dd842(_0x13fc2c);},'ExVhD':_0x5b3b0e(0x150),'IAIVR':_0x5b3b0e(0x132),'TMCZR':function(_0x2b5cdf,_0x1c288d,_0x45496d){return _0x2b5cdf(_0x1c288d,_0x45496d);},'KdonS':_0x5b3b0e(0x13e),'yoNoT':function(_0x15bf39){return _0x15bf39();},'hIqNL':function(_0x4cffcf,_0x4b6e21){return _0x4cffcf(_0x4b6e21);},'zfCMO':function(_0x4b88a0,_0x373beb){return _0x4b88a0(_0x373beb);},'Rnkif':function(_0x3e5323,_0x1cec7f){return _0x3e5323!==_0x1cec7f;},'KHtHK':_0x5b3b0e(0x10d),'Qdmns':_0x5b3b0e(0xde)},_0x3b17c6=helper[_0x5b3b0e(0xe0)]();let _0x5c43e6;try{_0x5c43e6=helper[_0x5b3b0e(0x152)](),_0x5c43e6[_0x5b3b0e(0x129)]&&(_0x5c43e6[_0x5b3b0e(0x105)]=_0x5c43e6[_0x5b3b0e(0x129)]);}catch(_0x1fd713){return;}if(helper[_0x5b3b0e(0x124)]()){const _0x55fc7f={};_0x55fc7f['logLevel']=_0x10920a[_0x5b3b0e(0xe8)],helper['setLogLevel'](_0x55fc7f,new Map(),new Map()),logger[_0x5b3b0e(0x130)](_0x5d25c2[_0x5b3b0e(0x143)]),logger['debug'](_0x5d25c2['Qdmns']);}class _0x5791c3 extends _0x3b17c6[_0x5b3b0e(0x11b)]{[_0x5b3b0e(0x103)](_0x4224c7){const _0x25574b=_0x5b3b0e;if(_0x5d25c2[_0x25574b(0xed)](_0x4224c7[_0x25574b(0x12d)],_0x5d25c2[_0x25574b(0x134)])&&_0x5d25c2[_0x25574b(0xed)](global['newHubUrl'],''))try{global[_0x25574b(0x11c)]=_0x5d25c2[_0x25574b(0x128)](_0x5d25c2[_0x25574b(0x14a)](_0x5d25c2['DfDQv'],global['newHubUrl']),_0x5d25c2[_0x25574b(0x157)]),this[_0x25574b(0xe1)]=hubAllocator['getRequestOptions'](global[_0x25574b(0x11c)]),logger['debug'](_0x25574b(0x13b)+global[_0x25574b(0x11c)]),global[_0x25574b(0x11c)]='';}catch(_0x3a5b67){logger[_0x25574b(0x136)](_0x3a5b67);}return super[_0x25574b(0x103)](_0x4224c7);}}class _0x1a5fc3 extends _0x5c43e6[_0x5b3b0e(0x105)]{[_0x5b3b0e(0x153)](){const _0x1c0d80=_0x5b3b0e;return this[_0x1c0d80(0x14b)]=helper['getHubUrl'](_0x10920a),logger['debug'](_0x1c0d80(0x15c)+this[_0x1c0d80(0x14b)]),this;}['__setBrowserOptions'](_0x56e2ec){const _0x440c50=_0x5b3b0e;let _0x51229c={};for(const _0x1448ed in _0x56e2ec){switch(_0x1448ed){case _0x5d25c2[_0x440c50(0x12b)]:case _0x5d25c2[_0x440c50(0x13a)]:this[_0x440c50(0x14f)]&&(_0x51229c=this[_0x440c50(0x14f)][_0x440c50(0x110)](this['chromeOptions_']['CAPABILITY_KEY'])||{},this['chromeOptions_'][_0x440c50(0x12f)](this[_0x440c50(0x14f)][_0x440c50(0xfd)],helper[_0x440c50(0x145)](_0x51229c,_0x56e2ec[_0x1448ed])));break;case _0x5d25c2[_0x440c50(0x144)]:case _0x5d25c2[_0x440c50(0x158)]:this[_0x440c50(0x151)]&&(_0x51229c=this['edgeOptions_'][_0x440c50(0x110)](this['edgeOptions_'][_0x440c50(0xfd)])||{},this[_0x440c50(0x151)][_0x440c50(0x12f)](this['edgeOptions_'][_0x440c50(0xfd)],helper['mergeDeep'](_0x51229c,_0x56e2ec[_0x1448ed])));break;case _0x5d25c2[_0x440c50(0x133)]:case _0x5d25c2[_0x440c50(0x155)]:this['firefoxOptions_']&&(_0x51229c=this[_0x440c50(0x146)][_0x440c50(0x110)](this['firefoxOptions_']['CAPABILITY_KEY'])||{},this[_0x440c50(0x146)]['set'](this[_0x440c50(0x146)]['CAPABILITY_KEY'],helper[_0x440c50(0x145)](_0x51229c,_0x56e2ec[_0x1448ed])));break;case _0x5d25c2[_0x440c50(0x122)]:this[_0x440c50(0x121)]&&(_0x51229c=this[_0x440c50(0x121)][_0x440c50(0x110)](this[_0x440c50(0x121)][_0x440c50(0xfd)])||{},this[_0x440c50(0x121)][_0x440c50(0x12f)](this[_0x440c50(0x121)][_0x440c50(0xfd)],helper[_0x440c50(0x145)](_0x51229c,_0x56e2ec[_0x1448ed])));break;case _0x5d25c2['KAZdP']:case _0x5d25c2[_0x440c50(0xe9)]:this['ieOptions_']&&(_0x51229c=this[_0x440c50(0x12a)]['get'](this['ieOptions_'][_0x440c50(0xfd)])||{},this[_0x440c50(0x12a)][_0x440c50(0x12f)](this[_0x440c50(0x12a)][_0x440c50(0xfd)],helper['mergeDeep'](_0x51229c,_0x56e2ec[_0x1448ed])));break;}}}['setCapabilities'](){const _0x396cbd=_0x5b3b0e;return logger[_0x396cbd(0x106)](_0x5d25c2['NJOOd']),this[_0x396cbd(0xfa)](_0x10920a[_0x396cbd(0x112)]),Object[_0x396cbd(0x108)](_0x10920a['capability'])[_0x396cbd(0x131)](_0x30ce4b=>{const _0x341c8e=_0x396cbd,_0x30615e=this[_0x341c8e(0x15b)][_0x341c8e(0x110)](_0x30ce4b);_0x5d25c2[_0x341c8e(0x13c)](typeof _0x30615e,_0x5d25c2[_0x341c8e(0x120)])?this[_0x341c8e(0x15b)][_0x341c8e(0x12f)](_0x30ce4b,helper[_0x341c8e(0x145)](_0x30615e,_0x10920a[_0x341c8e(0x112)][_0x30ce4b])):this['capabilities_']['set'](_0x30ce4b,_0x10920a[_0x341c8e(0x112)][_0x30ce4b]);}),this;}['build'](){const _0x1fecf7=_0x5b3b0e,_0x268716={'CEMev':_0x5d25c2[_0x1fecf7(0x142)],'WiSGP':_0x5d25c2[_0x1fecf7(0x109)],'YCblt':function(_0x19b59d,_0x5a29a2,_0x3fb48e){const _0x21ff86=_0x1fecf7;return _0x5d25c2[_0x21ff86(0x139)](_0x19b59d,_0x5a29a2,_0x3fb48e);},'RmNrX':function(_0x5be650,_0x422422){const _0x36f9fb=_0x1fecf7;return _0x5d25c2[_0x36f9fb(0xff)](_0x5be650,_0x422422);},'rcRym':function(_0x2b32df,_0x268d89,_0x472541){const _0x26ca6b=_0x1fecf7;return _0x5d25c2[_0x26ca6b(0xec)](_0x2b32df,_0x268d89,_0x472541);}};if(helper[_0x1fecf7(0x124)]()){const _0x10d0f8=_0x5d25c2['ExVhD'][_0x1fecf7(0x14c)]('|');let _0x574cb7=0x0;while(!![]){switch(_0x10d0f8[_0x574cb7++]){case'0':globals[_0x1fecf7(0xf5)](_0x5d25c2[_0x1fecf7(0xf9)])&&(!_0x5d25c2[_0x1fecf7(0x140)](setExtension,this,_0x10920a)&&globals[_0x1fecf7(0xe5)](_0x5d25c2[_0x1fecf7(0xf9)],![]));continue;case'1':this[_0x1fecf7(0x153)]();continue;case'2':logger[_0x1fecf7(0x106)](_0x5d25c2[_0x1fecf7(0x10a)]);continue;case'3':this['setCapabilities']();continue;case'4':if(helper[_0x1fecf7(0xdf)](_0x10920a[_0x1fecf7(0x125)][_0x1fecf7(0xef)]))this[_0x1fecf7(0x13f)]=helper[_0x1fecf7(0x10f)](_0x10920a[_0x1fecf7(0x125)]['proxyUrl']);else _0x10920a[_0x1fecf7(0x125)][_0x1fecf7(0xef)]&&(this['proxy_']=_0x10920a[_0x1fecf7(0x125)][_0x1fecf7(0xef)],logger[_0x1fecf7(0x106)]('Proxy\x20set\x20to\x20'+this[_0x1fecf7(0x127)]));continue;case'5':_0x5d25c2[_0x1fecf7(0x141)](isAccessibilityAutomationSession)&&_0x5d25c2[_0x1fecf7(0xff)](setAccessibilityCapabilities,_0x10920a);continue;}break;}}const _0x4c6333=super[_0x1fecf7(0x147)]();return _0x4c6333[_0x1fecf7(0xfc)]['then'](_0x225574=>{const _0x5ea036=_0x1fecf7;try{const _0x522b51=_0x225574[_0x5ea036(0x126)][_0x5ea036(0x110)](_0x268716[_0x5ea036(0x10c)]);_0x522b51?(logger[_0x5ea036(0x106)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x522b51),hubAllocator[_0x5ea036(0x138)](_0x522b51),helper[_0x5ea036(0xee)](_0x522b51)):logger['debug'](_0x268716[_0x5ea036(0x15a)]);}catch(_0x5294e0){logger[_0x5ea036(0x106)](_0x5ea036(0xe3)+_0x5294e0);}}),_0x4c6333[_0x1fecf7(0xea)]=0x0,_0x4c6333[_0x1fecf7(0xfb)]&&_0x4c6333[_0x1fecf7(0xfb)](_0x281486=>{const _0xf22bcd=_0x1fecf7,_0x12e9de={'LYhej':function(_0x678f1b,_0x4eabd4,_0xbb2a28){const _0x2b2eac=a29_0x43d0;return _0x268716[_0x2b2eac(0x148)](_0x678f1b,_0x4eabd4,_0xbb2a28);}};_0x268716[_0xf22bcd(0x148)](overrideQuit,_0x281486,_0x4c6333),_0x268716[_0xf22bcd(0x100)](overrideTakeScreenshot,_0x281486),helper[_0xf22bcd(0x12c)](_0x281486,_0x10920a),_0x268716[_0xf22bcd(0x11d)](overrideExecute,_0x281486,_0x10920a),_0x281486[_0xf22bcd(0x117)]=async()=>{const _0x5800e2=_0xf22bcd;return await _0x268716[_0x5800e2(0x148)](getAccessibilityResultsSummary,_0x281486,global);},_0x281486['getAccessibilityResults']=async()=>{const _0x3e2a12=_0xf22bcd;return await _0x12e9de[_0x3e2a12(0x123)](getAccessibilityResults,_0x281486,global);};}),_0x4c6333[_0x1fecf7(0x117)]=async()=>{const _0x46e832=_0x1fecf7;return await _0x5d25c2[_0x46e832(0x139)](getAccessibilityResultsSummary,_0x4c6333,global);},_0x4c6333[_0x1fecf7(0xf1)]=async()=>{return await _0x5d25c2['YGnfx'](getAccessibilityResults,_0x4c6333,global);},_0x5d25c2[_0x1fecf7(0x156)](overrideTakeScreenshot,_0x4c6333),_0x5d25c2[_0x1fecf7(0x114)](overrideQuit,_0x4c6333),helper[_0x1fecf7(0x12c)](_0x4c6333,_0x10920a),_0x5d25c2['YGnfx'](overrideExecute,_0x4c6333,_0x10920a),helper[_0x1fecf7(0x107)](global[_0x1fecf7(0xf3)])&&(global[_0x1fecf7(0xf3)]=[]),helper[_0x1fecf7(0x107)](global[_0x1fecf7(0x11f)])&&(global[_0x1fecf7(0x11f)]=[]),global[_0x1fecf7(0xf3)][_0x1fecf7(0xe6)](_0x4c6333),global['__driver']=_0x4c6333,_0x5d25c2[_0x1fecf7(0xed)](global['__drivers'],undefined)&&global[_0x1fecf7(0x11f)]['push'](_0x4c6333),_0x2038cd&&helper[_0x1fecf7(0x107)](_0x2038cd[_0x1fecf7(0x113)][_0x1fecf7(0xf3)])&&(_0x2038cd[_0x1fecf7(0x113)][_0x1fecf7(0xf3)]=[]),_0x2038cd&&_0x5d25c2[_0x1fecf7(0x14e)](_0x2038cd[_0x1fecf7(0x113)]['__drivers'],undefined)&&(_0x2038cd[_0x1fecf7(0x113)][_0x1fecf7(0x11f)][_0x1fecf7(0xe6)](_0x4c6333),_0x2038cd[_0x1fecf7(0x113)]['__driversArray']['push'](_0x4c6333)),_0x4c6333;}}return _0x5c43e6[_0x5b3b0e(0x129)]=_0x5c43e6['Builder'],_0x5c43e6[_0x5b3b0e(0x105)]=_0x1a5fc3,_0x3b17c6[_0x5b3b0e(0x11b)]=_0x5791c3,_0x5c43e6;};function a29_0x43d0(_0x513e8e,_0x4914e7){const _0x415fe7=a29_0x415f();return a29_0x43d0=function(_0x43d047,_0x3518d6){_0x43d047=_0x43d047-0xde;let _0x4d67d7=_0x415fe7[_0x43d047];return _0x4d67d7;},a29_0x43d0(_0x513e8e,_0x4914e7);}function a29_0x415f(){const _0x3a162d=['../../../bin/utils/constants','moz:firefoxOptions','getAccessibilityResultsSummary','8IcuZmR','/session','optimalHubUrl','HttpClient','newHubUrl','rcRym','3585090xItxDB','__drivers','IVDNB','safariOptions_','FopzL','LYhej','isBrowserstackInfra','proxySettings','caps_','proxy_','Rldve','originalBuilder','ieOptions_','ZWBkN','overrideGet','path','567415UcNBVy','set','info','forEach','isAccessibilityPlatform','cwPIv','Cfcuv','../../../helpers/globals','error','111254SjPUYi','updateHubUrl','FwbCE','mQsZO','New\x20hub\x20url\x20set\x20to\x20','SRhbL','goog:chromeOptions','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','agent_','TMCZR','yoNoT','VHmmT','KHtHK','KWFYF','mergeDeep','firefoxOptions_','build','YCblt','edgeOptions','ZYLxq','url_','split','ieOptions','Rnkif','chromeOptions_','5|1|3|4|0|2','edgeOptions_','requireSeleniumWebdriver','setServer','exports','veWwP','hIqNL','KHfDC','kBtPb','2261988gMLzfn','WiSGP','capabilities_','Hub\x20url\x20set\x20to\x20','Modifying\x20webdriver\x20builder','isPacProxy','requireHttpClient','options_','object','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','se:ieOptions','setGlobal','push','../../../helpers/patchHelpers','browserStackLogLevel','ucRpf','quitCount_','69RuVJjr','YGnfx','sEGpz','storeOptimalHubUrl','proxyUrl','ms:edgeOptions','getAccessibilityResults','chromeOptions','__driversArray','../accessibility-automation/helper','getGlobal','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','safari.options','66510GQnWCQ','IAIVR','__setBrowserOptions','then','session_','CAPABILITY_KEY','winstonLogger','frXGH','RmNrX','./helpers/patchHelper','11173953SpICvm','send','Setting\x20Browserstack\x20capabilities','Builder','debug','isUndefined','keys','rESnm','KdonS','/wd/hub','CEMev','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','301130xsmgOI','getHttpAgent','get','9zJEDFS','capability','global','zfCMO'];a29_0x415f=function(){return _0x3a162d;};return a29_0x415f();}module[a29_0x34956f(0x154)]['browserstackAgentObservability']=modify;
|
|
1
|
+
const a29_0x54f698=a29_0x1167;(function(_0x5976e,_0x5b03d6){const _0x1a77c7=a29_0x1167,_0x581551=_0x5976e();while(!![]){try{const _0x2bcb7d=parseInt(_0x1a77c7(0x1ba))/0x1*(parseInt(_0x1a77c7(0x1bc))/0x2)+-parseInt(_0x1a77c7(0x20b))/0x3+parseInt(_0x1a77c7(0x1a4))/0x4+-parseInt(_0x1a77c7(0x1ae))/0x5*(parseInt(_0x1a77c7(0x1f7))/0x6)+-parseInt(_0x1a77c7(0x1cc))/0x7*(parseInt(_0x1a77c7(0x210))/0x8)+parseInt(_0x1a77c7(0x1a6))/0x9*(-parseInt(_0x1a77c7(0x1a2))/0xa)+parseInt(_0x1a77c7(0x205))/0xb;if(_0x2bcb7d===_0x5b03d6)break;else _0x581551['push'](_0x581551['shift']());}catch(_0x235fb7){_0x581551['push'](_0x581551['shift']());}}}(a29_0x1901,0xe547a));function a29_0x1167(_0x1e919a,_0xae24b2){const _0x190196=a29_0x1901();return a29_0x1167=function(_0x11675f,_0x4d5a01){_0x11675f=_0x11675f-0x19f;let _0x32384c=_0x190196[_0x11675f];return _0x32384c;},a29_0x1167(_0x1e919a,_0xae24b2);}const logger=require(a29_0x54f698(0x1a0))[a29_0x54f698(0x1b2)],helper=require(a29_0x54f698(0x1fe)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x54f698(0x19f)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x54f698(0x1b5)),{setAccessibilityCapabilities,setExtension}=require(a29_0x54f698(0x1bd)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x54f698(0x1cd)),globals=require(a29_0x54f698(0x214)),{overrideExecute}=require(a29_0x54f698(0x206)),modify=(_0x3de05a,_0x1518c9=null,_0x197e7b=![])=>{const _0x45b723=a29_0x54f698,_0x10b295={'pZskO':function(_0x428122,_0xba32b8){return _0x428122!==_0xba32b8;},'yRgxQ':_0x45b723(0x1a3),'uERwu':function(_0x1f4b38,_0xef15aa){return _0x1f4b38!==_0xef15aa;},'ylWlw':function(_0x32766f,_0x671322){return _0x32766f+_0x671322;},'XjPlX':_0x45b723(0x1e0),'KunPS':_0x45b723(0x1ed),'fGCQV':_0x45b723(0x1ce),'HNcSj':_0x45b723(0x1f4),'FUGeQ':_0x45b723(0x1b0),'iBxse':'edgeOptions','nfDHl':_0x45b723(0x1d1),'ZmOrS':_0x45b723(0x204),'QOsAp':_0x45b723(0x1cb),'VVvfy':'se:ieOptions','idEKr':_0x45b723(0x215),'cAVVp':function(_0x2a809f,_0x91979f){return _0x2a809f===_0x91979f;},'NUUjs':_0x45b723(0x216),'aTFVq':_0x45b723(0x1bb),'RtaML':'optimalHubUrl','zdUhC':_0x45b723(0x208),'dvHSP':_0x45b723(0x1c0),'AdLcw':function(_0xb3bb66,_0x40360f){return _0xb3bb66(_0x40360f);},'eiTVE':function(_0x42969f,_0x203136,_0x2c6b7a){return _0x42969f(_0x203136,_0x2c6b7a);},'IxnkQ':function(_0x5d3094,_0xd9ee24,_0x3d01c5){return _0x5d3094(_0xd9ee24,_0x3d01c5);},'CzolT':function(_0x361dab,_0x243ebf,_0x2c4668){return _0x361dab(_0x243ebf,_0x2c4668);},'UcwsB':function(_0x1095ab,_0x130636,_0x2b7733){return _0x1095ab(_0x130636,_0x2b7733);},'SBXxG':'4|3|5|1|2|0','QHsAs':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','aqBgl':'isAccessibilityPlatform','lihMa':function(_0x7404ad){return _0x7404ad();},'hGxqk':function(_0x3a8395,_0x482b62){return _0x3a8395(_0x482b62);},'WADJt':function(_0x5c31e9,_0x58f140){return _0x5c31e9(_0x58f140);},'XRiOD':function(_0x28eb0b,_0x342785){return _0x28eb0b(_0x342785);},'bamrE':function(_0x11f21d,_0x2e2afb){return _0x11f21d!==_0x2e2afb;},'cfzol':_0x45b723(0x1c7),'gfNTA':_0x45b723(0x1ad)},_0x395ca7=helper['requireHttpClient']();let _0x123b2f;try{_0x123b2f=helper['requireSeleniumWebdriver'](),_0x123b2f[_0x45b723(0x1e9)]&&(_0x123b2f[_0x45b723(0x1b8)]=_0x123b2f[_0x45b723(0x1e9)]);}catch(_0x101893){return;}if(helper['isBrowserstackInfra']()){const _0x2c3458={};_0x2c3458[_0x45b723(0x1bf)]=_0x3de05a[_0x45b723(0x1eb)],helper[_0x45b723(0x1db)](_0x2c3458,new Map(),new Map()),logger[_0x45b723(0x1fa)](_0x10b295[_0x45b723(0x1b1)]),logger[_0x45b723(0x1e2)](_0x10b295[_0x45b723(0x1a7)]);}class _0x1beb76 extends _0x395ca7['HttpClient']{[_0x45b723(0x1d0)](_0x544b1d){const _0x2a9e6e=_0x45b723;if(_0x10b295['pZskO'](_0x544b1d[_0x2a9e6e(0x20c)],_0x10b295[_0x2a9e6e(0x1e3)])&&_0x10b295[_0x2a9e6e(0x1c3)](global[_0x2a9e6e(0x1fb)],''))try{global[_0x2a9e6e(0x1fb)]=_0x10b295[_0x2a9e6e(0x1f2)](_0x10b295[_0x2a9e6e(0x1f2)](_0x10b295['XjPlX'],global[_0x2a9e6e(0x1fb)]),_0x10b295[_0x2a9e6e(0x1be)]),this[_0x2a9e6e(0x1c5)]=hubAllocator['getRequestOptions'](global[_0x2a9e6e(0x1fb)]),logger[_0x2a9e6e(0x1e2)](_0x2a9e6e(0x1ff)+global[_0x2a9e6e(0x1fb)]),global[_0x2a9e6e(0x1fb)]='';}catch(_0x43d03e){logger['error'](_0x43d03e);}return super[_0x2a9e6e(0x1d0)](_0x544b1d);}}class _0x4779a4 extends _0x123b2f[_0x45b723(0x1b8)]{['setServer'](){const _0x3ec1ef=_0x45b723;return this['url_']=helper[_0x3ec1ef(0x1de)](_0x3de05a),logger[_0x3ec1ef(0x1e2)](_0x3ec1ef(0x1d5)+this[_0x3ec1ef(0x1ab)]),this;}[_0x45b723(0x1df)](_0x52b89d){const _0x47a570=_0x45b723;let _0x4cb411={};for(const _0x571057 in _0x52b89d){switch(_0x571057){case _0x10b295[_0x47a570(0x1c8)]:case _0x10b295[_0x47a570(0x1aa)]:this[_0x47a570(0x1c2)]&&(_0x4cb411=this[_0x47a570(0x1c2)][_0x47a570(0x1d7)](this[_0x47a570(0x1c2)]['CAPABILITY_KEY'])||{},this['chromeOptions_'][_0x47a570(0x1fd)](this[_0x47a570(0x1c2)]['CAPABILITY_KEY'],helper[_0x47a570(0x20e)](_0x4cb411,_0x52b89d[_0x571057])));break;case _0x10b295[_0x47a570(0x1d9)]:case _0x10b295[_0x47a570(0x1b6)]:this['edgeOptions_']&&(_0x4cb411=this[_0x47a570(0x1c1)][_0x47a570(0x1d7)](this[_0x47a570(0x1c1)][_0x47a570(0x1af)])||{},this[_0x47a570(0x1c1)][_0x47a570(0x1fd)](this['edgeOptions_'][_0x47a570(0x1af)],helper['mergeDeep'](_0x4cb411,_0x52b89d[_0x571057])));break;case _0x10b295[_0x47a570(0x1b9)]:case _0x10b295['ZmOrS']:this[_0x47a570(0x207)]&&(_0x4cb411=this[_0x47a570(0x207)][_0x47a570(0x1d7)](this[_0x47a570(0x207)][_0x47a570(0x1af)])||{},this[_0x47a570(0x207)]['set'](this[_0x47a570(0x207)][_0x47a570(0x1af)],helper['mergeDeep'](_0x4cb411,_0x52b89d[_0x571057])));break;case _0x10b295[_0x47a570(0x1d4)]:this[_0x47a570(0x1a9)]&&(_0x4cb411=this[_0x47a570(0x1a9)]['get'](this[_0x47a570(0x1a9)][_0x47a570(0x1af)])||{},this['safariOptions_'][_0x47a570(0x1fd)](this['safariOptions_'][_0x47a570(0x1af)],helper[_0x47a570(0x20e)](_0x4cb411,_0x52b89d[_0x571057])));break;case _0x10b295[_0x47a570(0x1e1)]:case _0x10b295['idEKr']:this['ieOptions_']&&(_0x4cb411=this[_0x47a570(0x211)]['get'](this['ieOptions_'][_0x47a570(0x1af)])||{},this[_0x47a570(0x211)][_0x47a570(0x1fd)](this['ieOptions_'][_0x47a570(0x1af)],helper['mergeDeep'](_0x4cb411,_0x52b89d[_0x571057])));break;}}}[_0x45b723(0x202)](){const _0x23e1a4=_0x45b723,_0x5116a8={'ljnoS':function(_0x41d7b8,_0xf05384){const _0x4bb3de=a29_0x1167;return _0x10b295[_0x4bb3de(0x1dd)](_0x41d7b8,_0xf05384);},'hREtI':_0x10b295['NUUjs']};return logger[_0x23e1a4(0x1e2)](_0x10b295['aTFVq']),this['__setBrowserOptions'](_0x3de05a['capability']),Object[_0x23e1a4(0x217)](_0x3de05a[_0x23e1a4(0x20a)])[_0x23e1a4(0x1dc)](_0x1ab17b=>{const _0xcacb77=_0x23e1a4,_0x1b45bb=this[_0xcacb77(0x1f6)][_0xcacb77(0x1d7)](_0x1ab17b);_0x5116a8[_0xcacb77(0x1cf)](typeof _0x1b45bb,_0x5116a8[_0xcacb77(0x1da)])?this[_0xcacb77(0x1f6)][_0xcacb77(0x1fd)](_0x1ab17b,helper[_0xcacb77(0x20e)](_0x1b45bb,_0x3de05a[_0xcacb77(0x20a)][_0x1ab17b])):this[_0xcacb77(0x1f6)]['set'](_0x1ab17b,_0x3de05a[_0xcacb77(0x20a)][_0x1ab17b]);}),this;}['build'](){const _0x518d89=_0x45b723,_0x28c60b={'PtLIU':function(_0x3ef206,_0x4ddbe0,_0x52ed56){const _0x4ea21d=a29_0x1167;return _0x10b295[_0x4ea21d(0x1b7)](_0x3ef206,_0x4ddbe0,_0x52ed56);},'HmYTt':function(_0x3724ee,_0xf4b6aa,_0x40457a){return _0x10b295['UcwsB'](_0x3724ee,_0xf4b6aa,_0x40457a);}};if(helper[_0x518d89(0x203)]()){const _0x219140=_0x10b295['SBXxG'][_0x518d89(0x1e7)]('|');let _0x5940b5=0x0;while(!![]){switch(_0x219140[_0x5940b5++]){case'0':logger[_0x518d89(0x1e2)](_0x10b295['QHsAs']);continue;case'1':if(helper[_0x518d89(0x1ef)](_0x3de05a[_0x518d89(0x1d2)][_0x518d89(0x213)]))this['agent_']=helper[_0x518d89(0x20d)](_0x3de05a[_0x518d89(0x1d2)][_0x518d89(0x213)]);else _0x3de05a[_0x518d89(0x1d2)]['proxyUrl']&&(this[_0x518d89(0x1a8)]=_0x3de05a[_0x518d89(0x1d2)]['proxyUrl'],logger[_0x518d89(0x1e2)](_0x518d89(0x1e6)+this[_0x518d89(0x1a8)]));continue;case'2':globals[_0x518d89(0x1d8)](_0x10b295[_0x518d89(0x1e4)])&&(!_0x10b295[_0x518d89(0x1f5)](setExtension,this,_0x3de05a)&&globals[_0x518d89(0x1b3)](_0x10b295['aqBgl'],![]));continue;case'3':this['setServer']();continue;case'4':_0x10b295[_0x518d89(0x1e8)](isAccessibilityAutomationSession)&&_0x10b295[_0x518d89(0x1fc)](setAccessibilityCapabilities,_0x3de05a);continue;case'5':this['setCapabilities']();continue;}break;}}const _0x65aa6=super[_0x518d89(0x1f3)]();return _0x65aa6[_0x518d89(0x1d6)][_0x518d89(0x200)](_0x479275=>{const _0x42332d=_0x518d89;try{const _0x381e5b=_0x479275[_0x42332d(0x1c6)]['get'](_0x10b295[_0x42332d(0x218)]);_0x381e5b?(logger[_0x42332d(0x1e2)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x381e5b),hubAllocator['updateHubUrl'](_0x381e5b),helper[_0x42332d(0x1b4)](_0x381e5b)):logger[_0x42332d(0x1e2)](_0x10b295['zdUhC']);}catch(_0xcef9){logger[_0x42332d(0x1e2)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0xcef9);}}),_0x65aa6['quitCount_']=0x0,_0x65aa6['then']&&_0x65aa6[_0x518d89(0x200)](_0x98e967=>{const _0x3f633b=_0x518d89,_0x2879ac=_0x10b295[_0x3f633b(0x212)]['split']('|');let _0x2e989d=0x0;while(!![]){switch(_0x2879ac[_0x2e989d++]){case'0':_0x98e967['getAccessibilityResults']=async()=>{const _0x62a0ec=_0x3f633b;return await _0x28c60b[_0x62a0ec(0x1c9)](getAccessibilityResults,_0x98e967,global);};continue;case'1':_0x10b295[_0x3f633b(0x1ca)](overrideTakeScreenshot,_0x98e967);continue;case'2':_0x98e967['getAccessibilityResultsSummary']=async()=>{const _0x43453c=_0x3f633b;return await _0x28c60b[_0x43453c(0x1d3)](getAccessibilityResultsSummary,_0x98e967,global);};continue;case'3':_0x10b295[_0x3f633b(0x209)](overrideExecute,_0x98e967,_0x3de05a);continue;case'4':_0x10b295[_0x3f633b(0x209)](overrideQuit,_0x98e967,_0x65aa6);continue;case'5':helper[_0x3f633b(0x1ac)](_0x98e967,_0x3de05a);continue;}break;}}),_0x65aa6[_0x518d89(0x1ea)]=async()=>{const _0x4fa145=_0x518d89;return await _0x10b295[_0x4fa145(0x1f5)](getAccessibilityResultsSummary,_0x65aa6,global);},_0x65aa6['getAccessibilityResults']=async()=>{const _0x44891b=_0x518d89;return await _0x28c60b[_0x44891b(0x1c9)](getAccessibilityResults,_0x65aa6,global);},_0x10b295[_0x518d89(0x1c4)](overrideTakeScreenshot,_0x65aa6),_0x10b295[_0x518d89(0x20f)](overrideQuit,_0x65aa6),helper[_0x518d89(0x1ac)](_0x65aa6,_0x3de05a),_0x10b295[_0x518d89(0x209)](overrideExecute,_0x65aa6,_0x3de05a),helper['isUndefined'](global[_0x518d89(0x1a1)])&&(global[_0x518d89(0x1a1)]=[]),helper[_0x518d89(0x1ee)](global[_0x518d89(0x1f1)])&&(global[_0x518d89(0x1f1)]=[]),global['__driversArray'][_0x518d89(0x1a5)](_0x65aa6),global[_0x518d89(0x1f0)]=_0x65aa6,_0x10b295[_0x518d89(0x1f9)](global[_0x518d89(0x1f1)],undefined)&&global[_0x518d89(0x1f1)][_0x518d89(0x1a5)](_0x65aa6),_0x1518c9&&helper[_0x518d89(0x1ee)](_0x1518c9[_0x518d89(0x1f8)]['__driversArray'])&&(_0x1518c9['global']['__driversArray']=[]),_0x1518c9&&_0x10b295[_0x518d89(0x1f9)](_0x1518c9[_0x518d89(0x1f8)][_0x518d89(0x1f1)],undefined)&&(_0x1518c9[_0x518d89(0x1f8)]['__drivers'][_0x518d89(0x1a5)](_0x65aa6),_0x1518c9['global'][_0x518d89(0x1a1)][_0x518d89(0x1a5)](_0x65aa6)),_0x65aa6;}}return _0x123b2f['originalBuilder']=_0x123b2f['Builder'],_0x123b2f[_0x45b723(0x1b8)]=_0x4779a4,_0x395ca7[_0x45b723(0x1ec)]=_0x1beb76,_0x123b2f;};module[a29_0x54f698(0x201)][a29_0x54f698(0x1e5)]=modify;function a29_0x1901(){const _0x449e25=['../../../helpers/helper','New\x20hub\x20url\x20set\x20to\x20','then','exports','setCapabilities','isBrowserstackInfra','firefoxOptions','19112533lxYdrc','./helpers/patchHelper','firefoxOptions_','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','eiTVE','capability','1289982XEckJU','path','getHttpAgent','mergeDeep','XRiOD','5704AWhwro','ieOptions_','dvHSP','proxyUrl','../../../helpers/globals','ieOptions','object','keys','RtaML','../../../hubAllocationMethods','../../../helpers/logger','__driversArray','19550MUOAYZ','/session','5096400RBtKWv','push','4770dBSpZc','gfNTA','proxy_','safariOptions_','HNcSj','url_','overrideGet','Modifying\x20webdriver\x20builder','65uCHBsd','CAPABILITY_KEY','ms:edgeOptions','cfzol','winstonLogger','setGlobal','storeOptimalHubUrl','../../../helpers/patchHelpers','iBxse','CzolT','Builder','nfDHl','630719cMjXrA','Setting\x20Browserstack\x20capabilities','4NoaiWN','../accessibility-automation/helper','KunPS','logLevel','4|1|5|3|2|0','edgeOptions_','chromeOptions_','uERwu','WADJt','options_','caps_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','fGCQV','HmYTt','AdLcw','safari.options','14588kVmSuv','../../../helpers/accessibility-automation/helper','goog:chromeOptions','ljnoS','send','moz:firefoxOptions','proxySettings','PtLIU','QOsAp','Hub\x20url\x20set\x20to\x20','session_','get','getGlobal','FUGeQ','hREtI','setLogLevel','forEach','cAVVp','getHubUrl','__setBrowserOptions','https://','VVvfy','debug','yRgxQ','aqBgl','browserstackAgentObservability','Proxy\x20set\x20to\x20','split','lihMa','originalBuilder','getAccessibilityResultsSummary','browserStackLogLevel','HttpClient','/wd/hub','isUndefined','isPacProxy','__driver','__drivers','ylWlw','build','chromeOptions','IxnkQ','capabilities_','176250zmbezo','global','bamrE','info','newHubUrl','hGxqk','set'];a29_0x1901=function(){return _0x449e25;};return a29_0x1901();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a30_0x5c94(){const _0x9d6f83=['943390cldFDp','133624fqWGpQ','84ewxBvB','27719WUyKyn','../../../helpers/test-observability/utils','65667BTrKIo','24972717eHZlfQ','zWFSp','260gjLhur','103224YgLgRy','81rhkJea','50LDNuBT','6647020Dhwntv','restore'];a30_0x5c94=function(){return _0x9d6f83;};return a30_0x5c94();}const a30_0x581304=a30_0x4b94;(function(_0xaf142f,_0x4d5bfb){const _0x36a22f=a30_0x4b94,_0x173ce0=_0xaf142f();while(!![]){try{const _0x4c2095=-parseInt(_0x36a22f(0x1de))/0x1*(-parseInt(_0x36a22f(0x1d8))/0x2)+parseInt(_0x36a22f(0x1e0))/0x3*(parseInt(_0x36a22f(0x1e3))/0x4)+parseInt(_0x36a22f(0x1db))/0x5+parseInt(_0x36a22f(0x1e4))/0x6*(parseInt(_0x36a22f(0x1dd))/0x7)+-parseInt(_0x36a22f(0x1dc))/0x8*(parseInt(_0x36a22f(0x1e5))/0x9)+parseInt(_0x36a22f(0x1d9))/0xa+-parseInt(_0x36a22f(0x1e1))/0xb;if(_0x4c2095===_0x4d5bfb)break;else _0x173ce0['push'](_0x173ce0['shift']());}catch(_0x5bf622){_0x173ce0['push'](_0x173ce0['shift']());}}}(a30_0x5c94,0xb8546));function a30_0x4b94(_0x58f63f,_0x5a4f9e){const _0x5c94f8=a30_0x5c94();return a30_0x4b94=function(_0x4b9451,_0x246ddb){_0x4b9451=_0x4b9451-0x1d8;let _0x596ed0=_0x5c94f8[_0x4b9451];return _0x596ed0;},a30_0x4b94(_0x58f63f,_0x5a4f9e);}const requestSpy=require('../../../helpers/request-spy'),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require(a30_0x581304(0x1df));exports['mochaHooks']={'beforeAll'(){const _0x37f4b4=a30_0x581304,_0x473af4={'zWFSp':function(_0x160ec3){return _0x160ec3();}},_0x2fc131='browserstack internal helper hook';_0x473af4[_0x37f4b4(0x1e2)](addRequestSpy);},'afterAll'(){const _0x5bbc62=a30_0x581304,_0x50e943='browserstack internal helper hook';this['timeout'](0xea60),requestSpy[_0x5bbc62(0x1da)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a31_0x50c0(_0x3a7607,_0x53a343){const _0x51fa6e=a31_0x51fa();return a31_0x50c0=function(_0x50c095,_0x4ebf57){_0x50c095=_0x50c095-0x169;let _0x47a5c2=_0x51fa6e[_0x50c095];return _0x47a5c2;},a31_0x50c0(_0x3a7607,_0x53a343);}function a31_0x51fa(){const _0x1378d5=['filter','ePnLk','6443372CYlddm','JLEgj','getHooksForTest','slice','../../../helpers/test-observability/utils','state','SMMXa','get','markedStatus','ygSPo','getBrowserVersion','Bxmtv','type','iTBLd','TOEAA','getPlatform','_afterAll','cGUlF','../../../helpers/testhub/utils','push','__cloud_provider___','6LrqSXs','bs:addPlatformDetails:','hook','fqzHX','3867995dCKYnX','substring','_beforeAll','pid','hQaDr','../../../../package.json','unknown_grid','hookAnalyticsId','hQTQC','generic','indexOf','getCapabilities','concat','TLgUs','tests','VvPjX','getBrowserName','passed','712962COUnsy','mapTestHooks','pending','XdcUM','forEach','1105693SANQbi','fuswt','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','hTlbg','GdIRm','uuid','259lFANYW','../../utils/logPatcher','2vdZqUl','KDqPu','GDrpA','kdVbS','PnyQN','wxiAw','string','onOlv','emit','getHookDetails','map_','getSession','../../../helpers/test-observability/constants','ugegV','browserstack','_afterEach','suites','TEST_PLATFORM','parent','failed','RQrMb','split','PJzlR','hook:','21013340wXUKiQ','95432bxWOrn','grNvz','js-','3191469cMMYEc','platformVersion','_beforeEach','zjTkf','getHookSkippedTests'];a31_0x51fa=function(){return _0x1378d5;};return a31_0x51fa();}const a31_0x3ac212=a31_0x50c0;(function(_0x429cf9,_0xb052d2){const _0x2470f0=a31_0x50c0,_0x44c588=_0x429cf9();while(!![]){try{const _0x52d030=-parseInt(_0x2470f0(0x17f))/0x1+-parseInt(_0x2470f0(0x187))/0x2*(-parseInt(_0x2470f0(0x1a3))/0x3)+-parseInt(_0x2470f0(0x1aa))/0x4+parseInt(_0x2470f0(0x1c3))/0x5*(parseInt(_0x2470f0(0x1bf))/0x6)+-parseInt(_0x2470f0(0x185))/0x7*(parseInt(_0x2470f0(0x1a0))/0x8)+parseInt(_0x2470f0(0x17a))/0x9+parseInt(_0x2470f0(0x19f))/0xa;if(_0x52d030===_0xb052d2)break;else _0x44c588['push'](_0x44c588['shift']());}catch(_0x4b71b0){_0x44c588['push'](_0x44c588['shift']());}}}(a31_0x51fa,0xd1fa1));const {v4:uuidv4}=require(a31_0x3ac212(0x184)),{name,version}=require(a31_0x3ac212(0x16d)),logPatcher=require(a31_0x3ac212(0x186)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x3ac212(0x1ae)),{consoleHolder}=require(a31_0x3ac212(0x193)),{getPlatformVersion}=require('../../../helpers/helper'),{shouldProcessEventForTesthub}=require(a31_0x3ac212(0x1bc)),{isFunction}=require('lodash'),{patchConsoleLogger}=require('../../../helpers/test-observability/utils');patchConsoleLogger(),exports['getTestEnv']=()=>{const _0x3ddb37=a31_0x3ac212,_0x705386={'PJzlR':_0x3ddb37(0x171),'NaRFB':function(_0x280578){return _0x280578();}};return{'ci':_0x705386[_0x3ddb37(0x19d)],'key':_0x705386['NaRFB'](uuidv4),'version':version,'collector':_0x3ddb37(0x1a2)+name};},exports[a31_0x3ac212(0x190)]=_0x520ce3=>{const _0x12749f=a31_0x3ac212,_0x4195cd={};_0x4195cd[_0x12749f(0x18c)]=function(_0x1b370b,_0x3a115c){return _0x1b370b!==_0x3a115c;},_0x4195cd[_0x12749f(0x1b7)]=_0x12749f(0x18d),_0x4195cd[_0x12749f(0x1c2)]=_0x12749f(0x19e),_0x4195cd[_0x12749f(0x188)]=_0x12749f(0x1c1);const _0x2c6943=_0x4195cd;if(!_0x520ce3||_0x2c6943[_0x12749f(0x18c)](typeof _0x520ce3,_0x2c6943[_0x12749f(0x1b7)]))return[null,null];if(_0x2c6943[_0x12749f(0x18c)](_0x520ce3[_0x12749f(0x172)](_0x2c6943['fqzHX']),-0x1)){const _0x4a9f01=_0x520ce3[_0x12749f(0x19c)](_0x2c6943['fqzHX']);return[_0x4a9f01[0x0][_0x12749f(0x1ad)](0x0,-0x1)[_0x12749f(0x19c)]('\x22')[0x1],_0x4a9f01[0x1][_0x12749f(0x169)](0x1)];}else{if(_0x2c6943[_0x12749f(0x18c)](_0x520ce3['indexOf'](_0x2c6943[_0x12749f(0x188)]),-0x1)){const _0x2adc85=_0x520ce3['split'](_0x2c6943[_0x12749f(0x188)]);return[_0x2adc85[0x0]['slice'](0x0,-0x1)['split']('\x22')[0x1],_0x520ce3];}}return[null,null];},exports[a31_0x3ac212(0x1ac)]=_0x59ac83=>{const _0x3ad6d2=a31_0x3ac212,_0x38bd39={'PnyQN':function(_0x4b6269,_0x282db4){return _0x4b6269(_0x282db4);},'GdIRm':_0x3ad6d2(0x16a),'TOEAA':_0x3ad6d2(0x1ba),'GDrpA':'_beforeEach','SMMXa':_0x3ad6d2(0x196)};if(!_0x59ac83||!_0x59ac83[_0x3ad6d2(0x199)])return[];const _0x29e037=[];return[_0x38bd39[_0x3ad6d2(0x183)],_0x38bd39[_0x3ad6d2(0x1b8)],_0x38bd39[_0x3ad6d2(0x189)],_0x38bd39[_0x3ad6d2(0x1b0)]][_0x3ad6d2(0x17e)](_0x2a8fec=>{const _0xe076b9={'ygSPo':function(_0x1a437c,_0x54651f){const _0x2eabd7=a31_0x50c0;return _0x38bd39[_0x2eabd7(0x18b)](_0x1a437c,_0x54651f);}},_0x50cece=_0x59ac83['parent'][_0x2a8fec]||[];_0x50cece['forEach'](_0x40e855=>{const _0x2a34d5=a31_0x50c0;_0x40e855[_0x2a34d5(0x16f)]&&!_0xe076b9[_0x2a34d5(0x1b3)](isInternalHook,_0x40e855['fn'])&&_0x29e037[_0x2a34d5(0x1bd)](_0x40e855['hookAnalyticsId']);});}),[..._0x29e037,...exports['getHooksForTest'](_0x59ac83[_0x3ad6d2(0x199)])];},exports[a31_0x3ac212(0x17b)]=_0x5c0017=>{const _0x5f46f6=a31_0x3ac212,_0x12d7ed={'hTlbg':function(_0x50d278){return _0x50d278();},'dbZEp':function(_0x4b5d0f,_0x37924e){return _0x4b5d0f===_0x37924e;},'fuswt':'_afterEach','cGUlF':function(_0x5f0741){return _0x5f0741();},'ePnLk':_0x5f46f6(0x16a),'uzQOo':_0x5f46f6(0x1ba),'grNvz':_0x5f46f6(0x1a5)};if(!_0x5c0017||!_0x5c0017['parent'])return;[_0x12d7ed[_0x5f46f6(0x1a9)],_0x12d7ed['uzQOo'],_0x12d7ed[_0x5f46f6(0x1a1)],_0x12d7ed[_0x5f46f6(0x180)]]['forEach'](_0x43be11=>{const _0xb6017f=_0x5f46f6,_0x58f08e=_0x5c0017[_0xb6017f(0x199)][_0x43be11]||[];_0x58f08e[_0xb6017f(0x17e)](_0x2fe829=>{const _0x55bd91=_0xb6017f;if(!_0x2fe829[_0x55bd91(0x16f)])_0x2fe829['hookAnalyticsId']=_0x12d7ed[_0x55bd91(0x182)](uuidv4);else _0x2fe829['markedStatus']&&_0x12d7ed['dbZEp'](_0x43be11,_0x12d7ed[_0x55bd91(0x180)])&&(_0x2fe829[_0x55bd91(0x16f)]=_0x12d7ed[_0x55bd91(0x1bb)](uuidv4),delete _0x2fe829[_0x55bd91(0x1b2)]);});}),exports[_0x5f46f6(0x17b)](_0x5c0017['parent']);},exports['sendPlatformDetails']=async(_0x64993e,_0x1c20c1)=>{const _0x3e3066=a31_0x3ac212,_0x4d96bb={'onOlv':function(_0x377c9c){return _0x377c9c();},'VvPjX':function(_0x3e9470,_0x53a886){return _0x3e9470(_0x53a886);},'zjTkf':_0x3e3066(0x1a4),'Bxmtv':function(_0xc0d352,_0x1fc236){return _0xc0d352===_0x1fc236;},'CdMzW':_0x3e3066(0x195),'JLEgj':_0x3e3066(0x16e),'TLgUs':_0x3e3066(0x198),'hQaDr':function(_0x3631b5,_0x3943cf){return _0x3631b5(_0x3943cf);}};try{if(!_0x4d96bb[_0x3e3066(0x18e)](shouldProcessEventForTesthub))return;const _0x44cfc7=await _0x64993e[_0x3e3066(0x173)](),_0x1e7145=await _0x64993e[_0x3e3066(0x192)](),_0x12dd20={},_0x1dc4ff=Object['fromEntries'](_0x1e7145[_0x3e3066(0x173)]()[_0x3e3066(0x191)]),_0x49bd0c={'product':_0x4d96bb[_0x3e3066(0x177)](getObservabilityLinkedProductName,_0x1dc4ff),'capabilities':_0x1dc4ff,'platform':_0x44cfc7[_0x3e3066(0x1b9)](),'platform_version':_0x44cfc7[_0x3e3066(0x1b1)](_0x4d96bb['zjTkf'])?_0x44cfc7['get'](_0x4d96bb[_0x3e3066(0x1a6)]):_0x4d96bb[_0x3e3066(0x177)](getPlatformVersion,_0x4d96bb[_0x3e3066(0x1b5)](global[_0x3e3066(0x1be)],_0x4d96bb['CdMzW'])),'browser':_0x44cfc7[_0x3e3066(0x178)](),'browser_version':_0x44cfc7[_0x3e3066(0x1b4)](),'session_id':_0x1e7145['toJSON']()};global[_0x3e3066(0x1be)]?_0x12dd20[global['__cloud_provider___']]=_0x49bd0c:_0x12dd20[_0x4d96bb[_0x3e3066(0x1ab)]]=_0x49bd0c,process[_0x3e3066(0x18f)](_0x3e3066(0x1c0)+process[_0x3e3066(0x16b)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x4d96bb[_0x3e3066(0x175)],'http_response':_0x12dd20,'uuid':_0x1c20c1});}catch(_0x23bc4d){_0x4d96bb[_0x3e3066(0x16c)](debug,_0x3e3066(0x181)+_0x23bc4d);}},exports[a31_0x3ac212(0x1a7)]=_0x12b7d2=>{const _0x2a8e68=a31_0x3ac212,_0x469801={};_0x469801[_0x2a8e68(0x19b)]=function(_0x4fb8a5,_0x5f20ae){return _0x4fb8a5!==_0x5f20ae;},_0x469801[_0x2a8e68(0x18a)]='hook',_0x469801[_0x2a8e68(0x194)]=function(_0x2d67a1,_0x4f1d5f){return _0x2d67a1!==_0x4f1d5f;},_0x469801['XdcUM']=_0x2a8e68(0x179),_0x469801[_0x2a8e68(0x170)]=_0x2a8e68(0x19a);const _0x5a36f0=_0x469801,_0x3832f8=_0x12b7d2[_0x2a8e68(0x197)]['reduce']((_0x4c484b,_0x368649)=>{const _0x13c4d5=_0x2a8e68,_0x182e85=exports['getHookSkippedTests'](_0x368649);return _0x182e85&&(_0x4c484b=_0x4c484b[_0x13c4d5(0x174)](_0x182e85)),_0x4c484b;},[]),_0x5ea250=_0x12b7d2[_0x2a8e68(0x176)][_0x2a8e68(0x1a8)](_0x23d24b=>{const _0x13a942=_0x2a8e68,_0x1aadba=_0x5a36f0[_0x13a942(0x19b)](_0x23d24b[_0x13a942(0x1b6)],_0x5a36f0['kdVbS'])&&!_0x23d24b['markedStatus']&&_0x5a36f0['ugegV'](_0x23d24b[_0x13a942(0x1af)],_0x5a36f0[_0x13a942(0x17d)])&&_0x5a36f0['RQrMb'](_0x23d24b[_0x13a942(0x1af)],_0x5a36f0['hQTQC'])&&!_0x23d24b[_0x13a942(0x17c)];return _0x1aadba;});return _0x5ea250[_0x2a8e68(0x174)](_0x3832f8);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x434436=a32_0x4282;(function(_0x24cc30,_0x1d416a){const _0x228de4=a32_0x4282,_0x5b7ca9=_0x24cc30();while(!![]){try{const _0x2fdeef=parseInt(_0x228de4(0x1ab))/0x1+-parseInt(_0x228de4(0x18e))/0x2+parseInt(_0x228de4(0x19a))/0x3*(-parseInt(_0x228de4(0x18f))/0x4)+-parseInt(_0x228de4(0x1af))/0x5*(parseInt(_0x228de4(0x15c))/0x6)+-parseInt(_0x228de4(0x18c))/0x7+-parseInt(_0x228de4(0x17c))/0x8+-parseInt(_0x228de4(0x148))/0x9*(-parseInt(_0x228de4(0x1a3))/0xa);if(_0x2fdeef===_0x1d416a)break;else _0x5b7ca9['push'](_0x5b7ca9['shift']());}catch(_0x4f17b4){_0x5b7ca9['push'](_0x5b7ca9['shift']());}}}(a32_0xc572,0x57ee8));const util=require(a32_0x434436(0x1c3)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x434436(0x19b)),{percyAutoCapture}=require(a32_0x434436(0x183)),{sendPlatformDetails}=require(a32_0x434436(0x195)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x434436(0x17e)),PerformanceTester=require(a32_0x434436(0x17b)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a32_0x434436(0x1ba)),scripts=require(a32_0x434436(0x15f)),globals=require('../../helpers/globals'),logger=require(a32_0x434436(0x18b))[a32_0x434436(0x191)],{shouldProcessEventForTesthub}=require(a32_0x434436(0x159)),testHubConstants=require(a32_0x434436(0x173));function a32_0x4282(_0x42199d,_0x4a6b78){const _0xc57202=a32_0xc572();return a32_0x4282=function(_0x4282fb,_0x23b657){_0x4282fb=_0x4282fb-0x12f;let _0x4dbc47=_0xc57202[_0x4282fb];return _0x4dbc47;},a32_0x4282(_0x42199d,_0x4a6b78);}function a32_0xc572(){const _0x1cbdd2=['zXKsU','HbMyL','mvlTq','browserstackSessionName','kgoPy','SYNC','https:','testAnalyticsId','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','accessibilityScanStarted','GIlqr','RWDEE','lkuRM','quitCount_','zwCqu','tDOds','initQuit','setGlobal','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','JnMcb','afterEach','command','debug','thJwtToken','app','info','env','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','OCXVQ','afterAll','9487566fjIvQS','performScan','kdKuB','end','mochaHooks','GkrkT','VvSGH','timeout','fyqUM','stringify','getCurrentUrl','protocol','ywovL','rZsVk','__error_messages__','executeScript','BROWSERSTACK_TESTHUB_JWT','../../helpers/testhub/utils','mQYwA','gcGCp','1458918UNUJmG','\x22}}','DdJhw','../../helpers/accessibility-automation/scripts','MnLEn','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','motXW','pBbDS','__drivers','Failed:\x20','now','passed','shift','YfOkT','XJHLh','beforeAll','afterTest','message','capabilities','ObservabilitySync:','shouldScanTestForAccessibility','ZODdD','jEXFx','../../helpers/testhub/constants','browserstackTestName','\x20-\x20','Passed','xhTIB','yuIoG','percy','PnKrK','../../helpers/performance/performance-tester','734536CNEvQr','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','../../helpers/helper','isAccessibilityPlatform','zEFuQ','qitkG','error','../../helpers/percy/utils','kAShp','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','__platformCaps','ENV_VAR','bstackA11yShouldScan','index','getGlobal','../../helpers/logger','4340581jJmPju','GRZNs','685496KGhPtj','1644TwXPOc','OtuTM','winstonLogger','Bfjww','MgSvY','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','./test-observability/mochaUtils','sessionNameSet__','yhHSc','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','zBFYS','4317dStxjM','../../helpers/accessibility-automation/helper','LtXpD','then','CYgXX','join','startMonitoring','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','Performing\x20scan\x20before\x20saving\x20results','20qIqooy','yYlZv','isArray','beforeEach','GONOH','Automate\x20test\x20case\x20execution\x20has\x20started.','SDK_HOOK','duClp','384203KJyGZu','format','measureWrapper','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','10RwtLLw','OEVch','executeAsyncScript','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','dZLMs','titlePath','BROWSERSTACK_TESTHUB_UUID','kpXYV',',\x22level\x22:\x20\x22','mWYIe','session_','../../helpers/performance/constants','oQZsp','saveTestResults','zBDzr','vcafH','xSxww','FIUaZ','eQmMj','tCoDc','util','SAVE_RESULTS','qBKQw','driverCleanup','currentTest','OuENb','dkDon','PPNQH','testcase','uiFnp','Failed\x20to\x20store\x20session\x20name:\x20','znokI','length','SESSION_STATUS','__sessionFailed','KCKRh','\x20|\x20','err'];a32_0xc572=function(){return _0x1cbdd2;};return a32_0xc572();}exports[a32_0x434436(0x14c)]={'beforeAll'(){const _0x182b3e=a32_0x434436,_0x3265d4={'GkrkT':function(_0xe9b1fd,_0x48de25,_0x4e30ca,_0x39483b){return _0xe9b1fd(_0x48de25,_0x4e30ca,_0x39483b);},'znokI':'failed','xhTIB':_0x182b3e(0x1d3),'oQZsp':function(_0x5cb419,_0x563ce9,_0x411c2b){return _0x5cb419(_0x563ce9,_0x411c2b);},'MgSvY':'passed','XFyVt':function(_0x246bcd){return _0x246bcd();},'ivrVC':function(_0x3de95f,_0x244df2,_0x3049df){return _0x3de95f(_0x244df2,_0x3049df);},'oKcvf':_0x182b3e(0x189),'ayWSG':_0x182b3e(0x16b)};PerformanceTester[_0x182b3e(0x1a0)]();const _0x2236d3='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x182b3e(0x1a9)],()=>{const _0x5e1846=_0x182b3e;global['__error_messages__']=[],global[_0x5e1846(0x1d1)]=![],global['driverCleanup']=async()=>{const _0x3c7050=_0x5e1846;let _0x1fa47e=![];try{await global[_0x3c7050(0x164)][0x0][_0x3c7050(0x1b9)],_0x1fa47e=!![],global['__sessionFailed']?await _0x3265d4[_0x3c7050(0x14d)](markSessionStatus,global[_0x3c7050(0x164)][0x0],_0x3265d4[_0x3c7050(0x1ce)],global[_0x3c7050(0x156)]['join'](_0x3265d4[_0x3c7050(0x177)])):await _0x3265d4[_0x3c7050(0x1bb)](markSessionStatus,global[_0x3c7050(0x164)][0x0],_0x3265d4[_0x3c7050(0x193)]);}catch(_0x439734){logger['debug'](_0x3c7050(0x194)+_0x439734);}global[_0x3c7050(0x156)]=[],global[_0x3c7050(0x1d1)]=![];if(_0x1fa47e)try{try{_0x3265d4['XFyVt'](shouldProcessEventForTesthub)&&(global[_0x3c7050(0x164)][0x0]&&await _0x3265d4['ivrVC'](sendPlatformDetails,global[_0x3c7050(0x164)][0x0],this['currentTest']?this['currentTest'][_0x3c7050(0x131)]:null));}catch(_0x3cfc1c){logger['debug'](_0x3c7050(0x198)+_0x3cfc1c);}await global['__drivers'][0x0][_0x3c7050(0x13a)]();}catch(_0x2c337d){logger[_0x3c7050(0x140)](_0x3c7050(0x145)+_0x2c337d);}};},{'platform':_0x3265d4['ivrVC'](nestedKeyValue,global[_0x182b3e(0x186)],[_0x3265d4['oKcvf']]),'hookType':_0x3265d4['ayWSG']})();},'beforeEach'(_0xce3747){const _0x1c856e=a32_0x434436,_0x2cef61={'JnMcb':function(_0x1fc7a4){return _0x1fc7a4();},'pBbDS':function(_0x4d4288,_0x965b3d){return _0x4d4288>_0x965b3d;},'aIRMF':_0x1c856e(0x175),'fyqUM':function(_0x2ccd32,_0x273482,_0x151611){return _0x2ccd32(_0x273482,_0x151611);},'vcafH':_0x1c856e(0x188),'mWYIe':function(_0x3191aa,_0x59f4b0){return _0x3191aa>_0x59f4b0;},'eQmMj':_0x1c856e(0x17f),'yuIoG':function(_0x4d0eb7,_0x5a90bb){return _0x4d0eb7===_0x5a90bb;},'uiFnp':'http:','GRZNs':_0x1c856e(0x130),'maWaw':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','uhfZp':_0x1c856e(0x1a8),'qitkG':_0x1c856e(0x174),'OtuTM':_0x1c856e(0x189),'jEXFx':_0x1c856e(0x1a6)};globals[_0x1c856e(0x13b)](_0x2cef61[_0x1c856e(0x181)],this[_0x1c856e(0x1c7)][_0x1c856e(0x1b4)]()[_0x1c856e(0x19f)](_0x2cef61['aIRMF'])),PerformanceTester[_0x1c856e(0x1ad)](PerformanceSdkEvents[_0x1c856e(0x1a9)],()=>{const _0x26d2a5=_0x1c856e,_0x222e5d={'LtXpD':function(_0x295a66,_0x160f85){const _0x279362=a32_0x4282;return _0x2cef61[_0x279362(0x163)](_0x295a66,_0x160f85);},'IjMNa':_0x2cef61['aIRMF'],'CYgXX':function(_0xa9795c,_0x34c6a9,_0xfc636){const _0x4bba1c=a32_0x4282;return _0x2cef61[_0x4bba1c(0x150)](_0xa9795c,_0x34c6a9,_0xfc636);},'lkuRM':_0x2cef61[_0x26d2a5(0x1be)],'XJHLh':function(_0x45a759){const _0x219e7a=_0x26d2a5;return _0x2cef61[_0x219e7a(0x13d)](_0x45a759);},'cuGlN':function(_0x35acb6,_0x4910e1){const _0x1a03ca=_0x26d2a5;return _0x2cef61[_0x1a03ca(0x1b8)](_0x35acb6,_0x4910e1);},'mQYwA':_0x2cef61[_0x26d2a5(0x1c1)],'OCXVQ':function(_0x57a791,_0x24bbf3){const _0x5ecaa7=_0x26d2a5;return _0x2cef61[_0x5ecaa7(0x178)](_0x57a791,_0x24bbf3);},'zBDzr':_0x2cef61[_0x26d2a5(0x1cc)],'CojyP':_0x2cef61[_0x26d2a5(0x18d)],'icDJT':_0x2cef61['maWaw'],'YfOkT':_0x2cef61['uhfZp'],'dkDon':function(_0x318dc4){const _0x2e3a61=_0x26d2a5;return _0x2cef61[_0x2e3a61(0x13d)](_0x318dc4);}},_0x29bbf9='browserstack internal helper hook';new Promise(async _0x11ac42=>{const _0x3174d4=_0x26d2a5;let _0x2c7ef8=!![];try{_0x222e5d[_0x3174d4(0x19c)](global[_0x3174d4(0x164)]['length'],0x1)&&(await global[_0x3174d4(0x1c6)](),global[_0x3174d4(0x164)][_0x3174d4(0x168)]()),_0x222e5d[_0x3174d4(0x19c)](global[_0x3174d4(0x164)][0x0][_0x3174d4(0x137)],0x0)&&(_0x2c7ef8=![],await global[_0x3174d4(0x1c6)]());}catch(_0x199f86){logger['debug'](_0x3174d4(0x145)+_0x199f86);}try{Array['isArray'](global[_0x3174d4(0x164)])&&global[_0x3174d4(0x164)][0x0]&&(global[_0x3174d4(0x164)][0x0]['browserstackSessionName']=this[_0x3174d4(0x1c7)][_0x3174d4(0x1b4)]()[_0x3174d4(0x19f)](_0x222e5d['IjMNa'])),global[_0x3174d4(0x1d8)]=this[_0x3174d4(0x1c7)][_0x3174d4(0x1b4)]()[_0x3174d4(0x19f)](_0x222e5d['IjMNa']);}catch(_0x388658){logger[_0x3174d4(0x140)](_0x3174d4(0x1cd)+_0x388658);}this[_0x3174d4(0x1c7)]['shouldScanTestForAccessibility']=_0x222e5d[_0x3174d4(0x19e)](shouldScanTestForAccessibility,this[_0x3174d4(0x1c7)][_0x3174d4(0x1b4)](),!![]),globals[_0x3174d4(0x13b)](_0x222e5d[_0x3174d4(0x136)],this[_0x3174d4(0x1c7)][_0x3174d4(0x170)]),this[_0x3174d4(0x1c7)][_0x3174d4(0x133)]=!![];if(_0x222e5d[_0x3174d4(0x16a)](isAccessibilityAutomationSession)&&_0x2c7ef8&&Array[_0x3174d4(0x1a5)](global['__drivers'])&&_0x222e5d['cuGlN'](global[_0x3174d4(0x164)][_0x3174d4(0x1cf)],0x0)&&globals['getGlobal'](_0x222e5d[_0x3174d4(0x15a)]))try{const _0x44254d=await global['__drivers'][0x0][_0x3174d4(0x1b9)];if(_0x44254d){let _0x13b10c=!![];const _0x4f393f=await global[_0x3174d4(0x164)][0x0][_0x3174d4(0x152)]();let _0x414a9d;try{_0x414a9d=new URL(_0x4f393f);}catch(_0xf11378){_0x13b10c=![];}_0x13b10c=_0x222e5d[_0x3174d4(0x146)](_0x414a9d[_0x3174d4(0x153)],_0x222e5d[_0x3174d4(0x1bd)])||_0x222e5d[_0x3174d4(0x146)](_0x414a9d[_0x3174d4(0x153)],_0x222e5d['CojyP']),_0x13b10c&&(this['currentTest'][_0x3174d4(0x170)]&&logger['info'](_0x222e5d['icDJT'])),this['currentTest'][_0x3174d4(0x133)]=this[_0x3174d4(0x1c7)][_0x3174d4(0x170)],this[_0x3174d4(0x1c7)][_0x3174d4(0x170)]&&logger[_0x3174d4(0x143)](_0x222e5d[_0x3174d4(0x169)]);}}catch(_0x17bd39){logger[_0x3174d4(0x182)](_0x3174d4(0x132)+util[_0x3174d4(0x1ac)](_0x17bd39));}_0x222e5d[_0x3174d4(0x1c9)](_0x11ac42);})[_0x26d2a5(0x19d)](()=>{const _0x1f0e88=_0x26d2a5;_0x2cef61[_0x1f0e88(0x13d)](_0xce3747);});},{'platform':_0x2cef61[_0x1c856e(0x150)](nestedKeyValue,global['__platformCaps'],[_0x2cef61[_0x1c856e(0x190)]]),'hookType':_0x2cef61[_0x1c856e(0x172)]})();},'afterEach'(_0x414f9b){const _0xc93ad1=a32_0x434436,_0x304908={'OuENb':function(_0xa872c8){return _0xa872c8();},'ywovL':_0xc93ad1(0x175),'gcGCp':function(_0x485cb5,_0x44df7a){return _0x485cb5!==_0x44df7a;},'XAngf':_0xc93ad1(0x167),'PltAo':function(_0x369c68,_0x5cf320,_0x392c2f){return _0x369c68(_0x5cf320,_0x392c2f);},'VvSGH':function(_0x12b3aa,_0x187162){return _0x12b3aa+_0x187162;},'rZsVk':_0xc93ad1(0x165),'lHntC':'error','KCKRh':_0xc93ad1(0x176),'qBKQw':_0xc93ad1(0x143),'nBQEB':function(_0x595842,_0x27308a){return _0x595842>_0x27308a;},'roayY':function(_0x5198c9,_0x19e0d2){return _0x5198c9===_0x19e0d2;},'RWDEE':_0xc93ad1(0x1cb),'ajrgi':'appium:app','YmZYA':function(_0x1d471a,_0x384804,_0x4c85ce,_0x1a3d5f){return _0x1d471a(_0x384804,_0x4c85ce,_0x1a3d5f);},'qXNCa':'isAccessibilityPlatform','tCoDc':'bstackA11yShouldScan','GONOH':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','yYlZv':_0xc93ad1(0x1a2),'GIlqr':_0xc93ad1(0x16c),'zBFYS':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','kdKuB':_0xc93ad1(0x140),'lIxBs':function(_0x5b3037,_0x2a1c3e){return _0x5b3037>_0x2a1c3e;},'kpXYV':function(_0x3d3133,_0x183dce,_0x5552db){return _0x3d3133(_0x183dce,_0x5552db);},'Huyir':_0xc93ad1(0x189),'UmZoy':_0xc93ad1(0x13e)},_0x154a7f='browserstack internal helper hook';this[_0xc93ad1(0x14f)](0xfde8),global['sessionName']=this[_0xc93ad1(0x1c7)][_0xc93ad1(0x1b4)]()[_0xc93ad1(0x19f)](_0x304908[_0xc93ad1(0x154)]),PerformanceTester[_0xc93ad1(0x1ad)](PerformanceSdkEvents[_0xc93ad1(0x1a9)],()=>{const _0x3f3d91=_0xc93ad1,_0x2b39d6={'VPtCu':_0x304908['ywovL'],'motXW':function(_0x1c8fd7,_0x54c748){const _0x5eedc5=a32_0x4282;return _0x304908[_0x5eedc5(0x15b)](_0x1c8fd7,_0x54c748);},'PnKrK':_0x304908['XAngf'],'zXKsU':function(_0x4fa039,_0x2be80d,_0x217270){return _0x304908['PltAo'](_0x4fa039,_0x2be80d,_0x217270);},'ZODdD':function(_0x266c00,_0x43640a){const _0xcbac03=a32_0x4282;return _0x304908[_0xcbac03(0x14e)](_0x266c00,_0x43640a);},'yhHSc':_0x304908[_0x3f3d91(0x155)],'kAShp':_0x304908['lHntC'],'QvLOs':_0x304908[_0x3f3d91(0x1d2)],'PPNQH':_0x304908[_0x3f3d91(0x1c5)],'zwCqu':function(_0x4a8289,_0x191a21){return _0x304908['nBQEB'](_0x4a8289,_0x191a21);},'yaBBD':function(_0x4b117d,_0x491a83){return _0x304908['roayY'](_0x4b117d,_0x491a83);},'MnLEn':_0x304908[_0x3f3d91(0x135)],'Bfjww':_0x304908['ajrgi'],'tDOds':function(_0x5eeda5,_0xb9e176,_0x46874a,_0x3b73bd){return _0x304908['YmZYA'](_0x5eeda5,_0xb9e176,_0x46874a,_0x3b73bd);},'xSxww':_0x304908['qXNCa'],'duClp':_0x304908[_0x3f3d91(0x1c2)],'kgoPy':_0x304908[_0x3f3d91(0x1a7)],'mvlTq':_0x304908[_0x3f3d91(0x1a4)],'qUcXW':_0x304908[_0x3f3d91(0x134)],'zEFuQ':_0x304908[_0x3f3d91(0x199)],'FIUaZ':function(_0x1951a2){return _0x304908['OuENb'](_0x1951a2);},'dZLMs':_0x304908[_0x3f3d91(0x14a)],'HbMyL':function(_0x452393,_0x1bb545){return _0x304908['lIxBs'](_0x452393,_0x1bb545);}},_0x441936=async(_0x5da140,_0x282aa1)=>{const _0x122573=_0x3f3d91;await global[_0x122573(0x164)][0x0][_0x122573(0x157)](_0x122573(0x161)+_0x5da140+_0x122573(0x1b7)+_0x282aa1+_0x122573(0x15d));};new Promise(async _0x1909fa=>{const _0x3d2966=_0x3f3d91;try{_0x2b39d6['zwCqu'](global['__drivers'][_0x3d2966(0x1cf)],0x1)&&(await global['driverCleanup'](),global['__drivers']['shift'](),global[_0x3d2966(0x156)]=[],global[_0x3d2966(0x1d1)]=![]);try{if(global[_0x3d2966(0x179)]&&_0x2b39d6['yaBBD'](global['percyCaptureMode'],_0x2b39d6[_0x3d2966(0x160)])&&global[_0x3d2966(0x164)][0x0]){const _0x43637c=_0x2b39d6[_0x3d2966(0x138)](global[_0x3d2966(0x16e)]['length'],0x0)?!!global[_0x3d2966(0x16e)][0x0]['app']||!!global[_0x3d2966(0x16e)][0x0][_0x2b39d6[_0x3d2966(0x192)]]:![],_0x3c0fd4={};_0x3c0fd4[_0x3d2966(0x142)]=_0x43637c,await _0x2b39d6[_0x3d2966(0x139)](percyAutoCapture,global[_0x3d2966(0x164)][0x0],_0x2b39d6[_0x3d2966(0x160)],_0x3c0fd4);}}catch(_0x23a3c2){logger[_0x3d2966(0x140)](_0x3d2966(0x185)+_0x23a3c2);}!global['__skipSessionName']&&(await PerformanceTester[_0x3d2966(0x1ad)](PerformanceAutEvents['SESSION_NAME'],async()=>{const _0x41d921=_0x3d2966;await global['__drivers'][0x0][_0x41d921(0x157)](_0x41d921(0x1b2)+JSON[_0x41d921(0x151)](this[_0x41d921(0x1c7)]['titlePath']()[_0x41d921(0x19f)](_0x2b39d6['VPtCu']))+'}}');})(),global['__drivers'][0x0][_0x3d2966(0x196)]=!![]),await PerformanceTester[_0x3d2966(0x1ad)](PerformanceAutEvents[_0x3d2966(0x1d0)],async()=>{const _0x245ed5=_0x3d2966,_0x425529=_0x2b39d6[_0x245ed5(0x162)](this['currentTest']['state'],_0x2b39d6[_0x245ed5(0x17a)]);_0x425529?(global[_0x245ed5(0x1d1)]=!![],global[_0x245ed5(0x156)]['push'](this[_0x245ed5(0x1c7)][_0x245ed5(0x1d4)][_0x245ed5(0x16d)]),await _0x2b39d6['zXKsU'](_0x441936,JSON[_0x245ed5(0x151)](_0x2b39d6[_0x245ed5(0x171)](_0x2b39d6[_0x245ed5(0x197)],this[_0x245ed5(0x1c7)]['err'][_0x245ed5(0x16d)])),_0x2b39d6[_0x245ed5(0x184)])):await _0x2b39d6[_0x245ed5(0x1d5)](_0x441936,JSON['stringify'](_0x2b39d6['QvLOs']),_0x2b39d6[_0x245ed5(0x1ca)]);})();}catch(_0x827954){logger[_0x3d2966(0x140)](_0x3d2966(0x1ae)+_0x827954);}try{if(this['currentTest'][_0x3d2966(0x133)]&&globals[_0x3d2966(0x18a)](_0x2b39d6[_0x3d2966(0x1bf)])&&globals[_0x3d2966(0x18a)](_0x2b39d6[_0x3d2966(0x1aa)])){logger['info'](_0x2b39d6[_0x3d2966(0x1d9)]);const _0x1d4413={};_0x1d4413['thTestRunUuid']=this['currentTest'][_0x3d2966(0x131)],_0x1d4413['thBuildUuid']=process[_0x3d2966(0x144)][testHubConstants[_0x3d2966(0x187)][_0x3d2966(0x1b5)]],_0x1d4413[_0x3d2966(0x141)]=process[_0x3d2966(0x144)][testHubConstants['ENV_VAR'][_0x3d2966(0x158)]];const _0x43db10=_0x1d4413;logger[_0x3d2966(0x140)](_0x3d2966(0x17d)+JSON['stringify'](_0x43db10)),logger[_0x3d2966(0x140)](_0x2b39d6[_0x3d2966(0x1d7)]);const _0xd4b034={};_0xd4b034[_0x3d2966(0x13f)]=_0x2b39d6['qUcXW'],await PerformanceTester[_0x3d2966(0x1ad)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x2a37c4=_0x3d2966;logger[_0x2a37c4(0x140)](util[_0x2a37c4(0x1ac)](await global[_0x2a37c4(0x164)][0x0][_0x2a37c4(0x1b1)](scripts[_0x2a37c4(0x149)],{'method':global[_0x2a37c4(0x1d8)]})));},_0xd4b034)(),await PerformanceTester[_0x3d2966(0x1ad)](PerformanceA11yEvents[_0x3d2966(0x1c4)],async()=>{const _0x15b824=_0x3d2966;await global[_0x15b824(0x164)][0x0]['executeAsyncScript'](scripts[_0x15b824(0x1bc)],_0x43db10);})(),logger['info'](_0x2b39d6[_0x3d2966(0x180)]);}}catch(_0x3158ec){logger[_0x3d2966(0x182)](_0x3d2966(0x13c)+this['currentTest']['titlePath']()+'.\x20Error\x20:',_0x3158ec);}try{try{if(_0x2b39d6['FIUaZ'](shouldProcessEventForTesthub)){global[_0x3d2966(0x164)][0x0]&&await _0x2b39d6[_0x3d2966(0x1d5)](sendPlatformDetails,global[_0x3d2966(0x164)][0x0],this[_0x3d2966(0x1c7)]?this['currentTest']['testAnalyticsId']:null);if(_0x2b39d6[_0x3d2966(0x1c0)](isBrowserstackInfra)){PerformanceTester['start'](PerformanceO11yEvents[_0x3d2966(0x12f)]);const _0xf0021a=_0x3d2966(0x16f)+Date[_0x3d2966(0x166)]();await _0x2b39d6['zXKsU'](_0x441936,JSON[_0x3d2966(0x151)](_0xf0021a),_0x2b39d6[_0x3d2966(0x1b3)]),PerformanceTester[_0x3d2966(0x14b)](PerformanceO11yEvents[_0x3d2966(0x12f)]);}}}catch(_0x1e9652){logger[_0x3d2966(0x140)](_0x3d2966(0x1a1)+_0x1e9652),PerformanceTester[_0x3d2966(0x14b)](PerformanceO11yEvents[_0x3d2966(0x12f)],![],_0x1e9652);}_0x2b39d6[_0x3d2966(0x1d6)](global[_0x3d2966(0x164)][0x0][_0x3d2966(0x137)],0x0)&&await global[_0x3d2966(0x1c6)]();}catch(_0x361b47){logger[_0x3d2966(0x140)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x361b47);}_0x2b39d6[_0x3d2966(0x1c0)](_0x1909fa);})[_0x3f3d91(0x19d)](()=>{const _0xce853b=_0x3f3d91;_0x304908[_0xce853b(0x1c8)](_0x414f9b);});},{'platform':_0x304908[_0xc93ad1(0x1b6)](nestedKeyValue,global[_0xc93ad1(0x186)],[_0x304908['Huyir']]),'hookType':_0x304908['UmZoy']})();},'afterAll'(_0x570679){const _0x3870b2=a32_0x434436,_0x4f940f={'OEVch':function(_0x3c072e){return _0x3c072e();},'DdJhw':function(_0x476ff1,_0x304503,_0x35bd84){return _0x476ff1(_0x304503,_0x35bd84);},'FKnIr':_0x3870b2(0x189),'hElTP':_0x3870b2(0x147)},_0x19555='browserstack internal helper hook';this['timeout'](0xfde8),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x3870b2(0x1a9)],()=>{const _0x379ac5=_0x3870b2;new Promise(async _0x11cb6e=>{const _0x13cdb7=a32_0x4282;await global['driverCleanup'](),_0x4f940f[_0x13cdb7(0x1b0)](_0x11cb6e);})[_0x379ac5(0x19d)]()['finally'](()=>{const _0x5b47c5=_0x379ac5;_0x4f940f[_0x5b47c5(0x1b0)](_0x570679);});},{'platform':_0x4f940f[_0x3870b2(0x15e)](nestedKeyValue,global[_0x3870b2(0x186)],[_0x4f940f['FKnIr']]),'hookType':_0x4f940f['hElTP']})();}};
|
|
1
|
+
const a32_0x1c6d01=a32_0x410c;function a32_0x410c(_0x48bede,_0x4b9bcb){const _0x5b79b0=a32_0x5b79();return a32_0x410c=function(_0x410cfc,_0x213202){_0x410cfc=_0x410cfc-0xb7;let _0x4498a8=_0x5b79b0[_0x410cfc];return _0x4498a8;},a32_0x410c(_0x48bede,_0x4b9bcb);}(function(_0x4d106b,_0x2906dd){const _0x24c6c9=a32_0x410c,_0x2099c0=_0x4d106b();while(!![]){try{const _0x4618f9=-parseInt(_0x24c6c9(0x161))/0x1*(parseInt(_0x24c6c9(0xfb))/0x2)+-parseInt(_0x24c6c9(0x154))/0x3*(-parseInt(_0x24c6c9(0x174))/0x4)+parseInt(_0x24c6c9(0xd3))/0x5*(parseInt(_0x24c6c9(0xee))/0x6)+parseInt(_0x24c6c9(0xca))/0x7+-parseInt(_0x24c6c9(0x15a))/0x8+parseInt(_0x24c6c9(0xb9))/0x9*(-parseInt(_0x24c6c9(0x13e))/0xa)+-parseInt(_0x24c6c9(0x136))/0xb*(-parseInt(_0x24c6c9(0x16e))/0xc);if(_0x4618f9===_0x2906dd)break;else _0x2099c0['push'](_0x2099c0['shift']());}catch(_0x5a1f20){_0x2099c0['push'](_0x2099c0['shift']());}}}(a32_0x5b79,0x3d53b));const util=require(a32_0x1c6d01(0x10b)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x1c6d01(0x12d)),{percyAutoCapture}=require(a32_0x1c6d01(0x16c)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x1c6d01(0x139)),PerformanceTester=require(a32_0x1c6d01(0xc9)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a32_0x1c6d01(0xcf)),scripts=require(a32_0x1c6d01(0x100)),globals=require(a32_0x1c6d01(0x171)),logger=require(a32_0x1c6d01(0xdb))[a32_0x1c6d01(0x143)],{shouldProcessEventForTesthub}=require(a32_0x1c6d01(0x146)),testHubConstants=require(a32_0x1c6d01(0xd6));exports[a32_0x1c6d01(0xf9)]={'beforeAll'(){const _0x2062ec=a32_0x1c6d01,_0x446e45={'bZxAN':function(_0x46cd65,_0x5041a7,_0x476871,_0x5b6d8e){return _0x46cd65(_0x5041a7,_0x476871,_0x5b6d8e);},'TBWPE':'failed','FfFLU':_0x2062ec(0xc5),'LHRFS':function(_0x5893ae,_0x34962e,_0x3c0d1d){return _0x5893ae(_0x34962e,_0x3c0d1d);},'tbuvH':_0x2062ec(0x138),'IxqiB':function(_0x32619c){return _0x32619c();},'fPufj':_0x2062ec(0xd4),'rzkCV':_0x2062ec(0x145)};PerformanceTester['startMonitoring']();const _0x40c5c0='browserstack internal helper hook';PerformanceTester[_0x2062ec(0x14b)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x12a82d=_0x2062ec,_0xfe392f={'CFtef':function(_0x34969f,_0x541384,_0x44078a,_0x2ab0cb){const _0x3b1051=a32_0x410c;return _0x446e45[_0x3b1051(0x165)](_0x34969f,_0x541384,_0x44078a,_0x2ab0cb);},'GdnPi':_0x446e45[_0x12a82d(0xe9)],'HVqHf':_0x446e45[_0x12a82d(0xf2)],'CNMhr':function(_0x4a29f6,_0x52cac6,_0x43fe32){const _0xf1e365=_0x12a82d;return _0x446e45[_0xf1e365(0xea)](_0x4a29f6,_0x52cac6,_0x43fe32);},'ycJyh':_0x446e45['tbuvH'],'EodKZ':function(_0x47db9a){const _0x31bbbf=_0x12a82d;return _0x446e45[_0x31bbbf(0x13a)](_0x47db9a);}};global['__error_messages__']=[],global['__sessionFailed']=![],global[_0x12a82d(0x148)]=async()=>{const _0x3459ef=_0x12a82d;let _0x37e23f=![];try{await global[_0x3459ef(0x11f)][0x0]['session_'],_0x37e23f=!![],global[_0x3459ef(0xe5)]?await _0xfe392f[_0x3459ef(0xf0)](markSessionStatus,global[_0x3459ef(0x11f)][0x0],_0xfe392f[_0x3459ef(0xff)],global[_0x3459ef(0x12f)][_0x3459ef(0xc7)](_0xfe392f[_0x3459ef(0x16a)])):await _0xfe392f['CNMhr'](markSessionStatus,global['__drivers'][0x0],_0xfe392f[_0x3459ef(0x119)]);}catch(_0x198461){logger[_0x3459ef(0x15b)](_0x3459ef(0x121)+_0x198461);}global[_0x3459ef(0x12f)]=[],global[_0x3459ef(0xe5)]=![];if(_0x37e23f)try{try{_0xfe392f[_0x3459ef(0x162)](shouldProcessEventForTesthub)&&(global[_0x3459ef(0x11f)][0x0]&&await _0xfe392f[_0x3459ef(0xe2)](sendPlatformDetails,global['__drivers'][0x0],this[_0x3459ef(0x140)]?this['currentTest'][_0x3459ef(0x12a)]:null));}catch(_0x312143){logger[_0x3459ef(0x15b)](_0x3459ef(0x132)+_0x312143);}await global[_0x3459ef(0x11f)][0x0][_0x3459ef(0x164)]();}catch(_0x12d6eb){logger[_0x3459ef(0x15b)](_0x3459ef(0x172)+_0x12d6eb);}};},{'platform':_0x446e45['LHRFS'](nestedKeyValue,global[_0x2062ec(0xf1)],[_0x446e45[_0x2062ec(0x16f)]]),'hookType':_0x446e45['rzkCV']})();},'beforeEach'(_0x386465){const _0x5440d9=a32_0x1c6d01,_0x4b6b51={'FDFyR':function(_0x26405c,_0xca168d){return _0x26405c>_0xca168d;},'DUTEl':function(_0x3e7a85,_0x5667f7){return _0x3e7a85>_0x5667f7;},'uoIAX':_0x5440d9(0x126),'TIvmg':function(_0x5c9295,_0x1dcc8f,_0x566908){return _0x5c9295(_0x1dcc8f,_0x566908);},'vTQOc':_0x5440d9(0x13b),'cTugB':function(_0x51c47f){return _0x51c47f();},'Chrrg':_0x5440d9(0x10f),'NCSqD':function(_0x2b7ed6,_0xed21b4){return _0x2b7ed6===_0xed21b4;},'GZznK':_0x5440d9(0x167),'PRsCR':_0x5440d9(0x103),'GXcol':_0x5440d9(0x150),'Ehbyf':'Automate\x20test\x20case\x20execution\x20has\x20started.','XAtuu':'browserstackTestName','hLFDU':_0x5440d9(0xd4),'XiFCq':_0x5440d9(0x133)};globals[_0x5440d9(0xf7)](_0x4b6b51[_0x5440d9(0x169)],this[_0x5440d9(0x140)][_0x5440d9(0xf6)]()[_0x5440d9(0xc7)](_0x4b6b51['uoIAX'])),PerformanceTester[_0x5440d9(0x14b)](PerformanceSdkEvents[_0x5440d9(0x10d)],()=>{const _0x1c60c0=_0x5440d9,_0x2e343b={'cnUJe':function(_0x4254bd,_0x2ada42){const _0x2e466a=a32_0x410c;return _0x4b6b51[_0x2e466a(0x137)](_0x4254bd,_0x2ada42);},'dXEIa':function(_0x303e8b,_0x26c300){const _0x52667e=a32_0x410c;return _0x4b6b51[_0x52667e(0x130)](_0x303e8b,_0x26c300);},'QJFCL':_0x4b6b51[_0x1c60c0(0x11a)],'tXwnx':function(_0x2bda5d,_0x405344,_0x5b4190){return _0x4b6b51['TIvmg'](_0x2bda5d,_0x405344,_0x5b4190);},'viVYy':_0x4b6b51['vTQOc'],'TbyaD':function(_0x1b1697){const _0x5c9079=_0x1c60c0;return _0x4b6b51[_0x5c9079(0x131)](_0x1b1697);},'MHLFe':_0x4b6b51[_0x1c60c0(0x173)],'wjbMh':function(_0x5ef016,_0x37e15c){const _0xff4cc0=_0x1c60c0;return _0x4b6b51[_0xff4cc0(0x135)](_0x5ef016,_0x37e15c);},'UJbEt':_0x4b6b51[_0x1c60c0(0x116)],'WjPfQ':_0x4b6b51[_0x1c60c0(0xd8)],'EVfWj':_0x4b6b51[_0x1c60c0(0x13f)],'qSkOz':_0x4b6b51[_0x1c60c0(0xef)]},_0x5b166d='browserstack internal helper hook';new Promise(async _0x55060d=>{const _0x41aec8=_0x1c60c0;let _0x197981=!![];try{_0x2e343b[_0x41aec8(0x117)](global[_0x41aec8(0x11f)]['length'],0x1)&&(await global[_0x41aec8(0x148)](),global['__drivers'][_0x41aec8(0xd9)]()),_0x2e343b[_0x41aec8(0x15c)](global[_0x41aec8(0x11f)][0x0]['quitCount_'],0x0)&&(_0x197981=![],await global['driverCleanup']());}catch(_0x103347){logger[_0x41aec8(0x15b)](_0x41aec8(0x172)+_0x103347);}try{Array[_0x41aec8(0xce)](global[_0x41aec8(0x11f)])&&global['__drivers'][0x0]&&(global['__drivers'][0x0][_0x41aec8(0x13d)]=this[_0x41aec8(0x140)][_0x41aec8(0xf6)]()[_0x41aec8(0xc7)](_0x2e343b[_0x41aec8(0xfc)])),global['browserstackSessionName']=this['currentTest'][_0x41aec8(0xf6)]()[_0x41aec8(0xc7)](_0x2e343b['QJFCL']);}catch(_0x2e8f15){logger[_0x41aec8(0x15b)](_0x41aec8(0xcc)+_0x2e8f15);}this['currentTest']['shouldScanTestForAccessibility']=_0x2e343b['tXwnx'](shouldScanTestForAccessibility,this[_0x41aec8(0x140)][_0x41aec8(0xf6)](),!![]),globals['setGlobal'](_0x2e343b[_0x41aec8(0x141)],this[_0x41aec8(0x140)][_0x41aec8(0xc4)]),this[_0x41aec8(0x140)]['accessibilityScanStarted']=!![];if(_0x2e343b[_0x41aec8(0x176)](isAccessibilityAutomationSession)&&_0x197981&&Array[_0x41aec8(0xce)](global['__drivers'])&&_0x2e343b[_0x41aec8(0x15c)](global['__drivers'][_0x41aec8(0xbd)],0x0)&&globals[_0x41aec8(0xda)](_0x2e343b['MHLFe']))try{const _0x4ae374=await global[_0x41aec8(0x11f)][0x0]['session_'];if(_0x4ae374){let _0x496fbc=!![];const _0x244d82=await global['__drivers'][0x0][_0x41aec8(0xdc)]();let _0x5cb46d;try{_0x5cb46d=new URL(_0x244d82);}catch(_0x243c47){_0x496fbc=![];}_0x496fbc=_0x2e343b[_0x41aec8(0xd0)](_0x5cb46d[_0x41aec8(0xdf)],_0x2e343b[_0x41aec8(0x10e)])||_0x2e343b[_0x41aec8(0xd0)](_0x5cb46d['protocol'],_0x2e343b['WjPfQ']),_0x496fbc&&(this['currentTest'][_0x41aec8(0xc4)]&&logger[_0x41aec8(0x16b)](_0x2e343b[_0x41aec8(0xfd)])),this[_0x41aec8(0x140)][_0x41aec8(0xbe)]=this[_0x41aec8(0x140)][_0x41aec8(0xc4)],this[_0x41aec8(0x140)][_0x41aec8(0xc4)]&&logger['info'](_0x2e343b[_0x41aec8(0x134)]);}}catch(_0xdd6ef4){logger[_0x41aec8(0x179)](_0x41aec8(0x128)+util[_0x41aec8(0x129)](_0xdd6ef4));}_0x2e343b[_0x41aec8(0x176)](_0x55060d);})[_0x1c60c0(0x15d)](()=>{_0x2e343b['TbyaD'](_0x386465);});},{'platform':_0x4b6b51[_0x5440d9(0xed)](nestedKeyValue,global[_0x5440d9(0xf1)],[_0x4b6b51[_0x5440d9(0x14a)]]),'hookType':_0x4b6b51[_0x5440d9(0xc3)]})();},'afterEach'(_0x1ada4e){const _0x3b1ca4=a32_0x1c6d01,_0x2d2bcd={'ehaFO':function(_0xf19405){return _0xf19405();},'uZAWm':_0x3b1ca4(0x126),'jNZoy':function(_0x321362,_0x28ff5a){return _0x321362!==_0x28ff5a;},'HLINK':_0x3b1ca4(0x138),'IglHJ':function(_0x1210a7,_0x3ef391,_0x1e5fac){return _0x1210a7(_0x3ef391,_0x1e5fac);},'tzVoa':function(_0x3f0940,_0x4a4fc2){return _0x3f0940+_0x4a4fc2;},'JfUTu':_0x3b1ca4(0xc0),'ggYzt':'error','UpjCL':_0x3b1ca4(0xdd),'QuMQq':_0x3b1ca4(0x16b),'wKjsx':function(_0x5e9d95,_0x3638){return _0x5e9d95>_0x3638;},'yeopH':function(_0xb5c9c5,_0x4f204c){return _0xb5c9c5===_0x4f204c;},'Jvdgz':_0x3b1ca4(0x11c),'vZaWL':'appium:app','VRfsL':function(_0x57e455,_0x35ff1e,_0x3e1702,_0x563622){return _0x57e455(_0x35ff1e,_0x3e1702,_0x563622);},'eYsui':'isAccessibilityPlatform','qQUlP':'bstackA11yShouldScan','ypqeJ':_0x3b1ca4(0x13c),'kqfcT':_0x3b1ca4(0xd5),'rUvYs':_0x3b1ca4(0xb8),'xmBQQ':_0x3b1ca4(0x120),'rLBxT':function(_0xdb767){return _0xdb767();},'ccIev':_0x3b1ca4(0x15b),'Onntg':function(_0x461688,_0x557044){return _0x461688>_0x557044;},'OazBW':function(_0x2b089){return _0x2b089();},'mtDxY':function(_0x5f576c,_0x1db7d7,_0x5660a2){return _0x5f576c(_0x1db7d7,_0x5660a2);},'UgRqh':_0x3b1ca4(0xd4),'ZAjMq':'afterEach'},_0x5a2353='browserstack internal helper hook';this[_0x3b1ca4(0x159)](0xfde8),global[_0x3b1ca4(0xbc)]=this[_0x3b1ca4(0x140)][_0x3b1ca4(0xf6)]()[_0x3b1ca4(0xc7)](_0x2d2bcd['uZAWm']),PerformanceTester[_0x3b1ca4(0x14b)](PerformanceSdkEvents[_0x3b1ca4(0x10d)],()=>{const _0x40bb2f=_0x3b1ca4,_0x9984e2={'GejUo':_0x2d2bcd[_0x40bb2f(0x114)],'IJPXg':function(_0x39b475,_0xaee66){const _0x43552f=_0x40bb2f;return _0x2d2bcd[_0x43552f(0x144)](_0x39b475,_0xaee66);},'wLVSl':_0x2d2bcd[_0x40bb2f(0xf8)],'DquYa':function(_0x3c9328,_0x15f308,_0x5ba583){const _0x40c167=_0x40bb2f;return _0x2d2bcd[_0x40c167(0x113)](_0x3c9328,_0x15f308,_0x5ba583);},'vVanK':function(_0x52ef60,_0x2731c4){const _0x14e398=_0x40bb2f;return _0x2d2bcd[_0x14e398(0x104)](_0x52ef60,_0x2731c4);},'FETOc':_0x2d2bcd['JfUTu'],'NPmRZ':_0x2d2bcd[_0x40bb2f(0x157)],'XdiXI':_0x2d2bcd['UpjCL'],'ghlhU':_0x2d2bcd['QuMQq'],'LlUsp':function(_0xcce242,_0x5f4d9f){const _0x405f8e=_0x40bb2f;return _0x2d2bcd[_0x405f8e(0x123)](_0xcce242,_0x5f4d9f);},'aAAbD':function(_0x208dd2,_0x5eb071){const _0x5c73a0=_0x40bb2f;return _0x2d2bcd[_0x5c73a0(0x10c)](_0x208dd2,_0x5eb071);},'QqLwV':_0x2d2bcd[_0x40bb2f(0x107)],'MYpPo':_0x2d2bcd[_0x40bb2f(0x112)],'SUARO':function(_0x475d22,_0x45eaf0,_0x2dcb08,_0x457361){return _0x2d2bcd['VRfsL'](_0x475d22,_0x45eaf0,_0x2dcb08,_0x457361);},'lrsuF':_0x2d2bcd['eYsui'],'omtKi':_0x2d2bcd[_0x40bb2f(0x109)],'yXUNC':_0x2d2bcd[_0x40bb2f(0x12e)],'QxXce':_0x2d2bcd['kqfcT'],'GtJfi':_0x2d2bcd[_0x40bb2f(0x158)],'HIreP':_0x2d2bcd[_0x40bb2f(0x125)],'jxdBt':function(_0x19b47e){return _0x2d2bcd['rLBxT'](_0x19b47e);},'gdHpf':_0x2d2bcd[_0x40bb2f(0xcb)],'SFKnG':function(_0x88bbbf,_0x3e316a){const _0x3923ff=_0x40bb2f;return _0x2d2bcd[_0x3923ff(0xf5)](_0x88bbbf,_0x3e316a);},'IuLuc':function(_0x4ccc80){const _0x566081=_0x40bb2f;return _0x2d2bcd[_0x566081(0x177)](_0x4ccc80);}},_0x520384=async(_0x21f34c,_0x176168)=>{const _0x31a6f0=_0x40bb2f;await global[_0x31a6f0(0x11f)][0x0]['executeScript'](_0x31a6f0(0xe3)+_0x21f34c+_0x31a6f0(0x15e)+_0x176168+'\x22}}');};new Promise(async _0x52e6fe=>{const _0x1e5e3b=_0x40bb2f,_0x2a590a={'NODzw':function(_0x408d35,_0xd18656){const _0x2716f3=a32_0x410c;return _0x9984e2[_0x2716f3(0x12c)](_0x408d35,_0xd18656);},'OjUdF':_0x9984e2[_0x1e5e3b(0x147)],'OWDry':function(_0x4c020b,_0x3e53a4,_0x1ca70c){const _0x457428=_0x1e5e3b;return _0x9984e2[_0x457428(0xec)](_0x4c020b,_0x3e53a4,_0x1ca70c);},'WdMjg':function(_0x4d6b97,_0x5c4839){const _0x39499c=_0x1e5e3b;return _0x9984e2[_0x39499c(0x14f)](_0x4d6b97,_0x5c4839);},'uOzwB':_0x9984e2['FETOc'],'XMQwD':_0x9984e2[_0x1e5e3b(0x11d)],'LRFfL':function(_0x8ec7a5,_0x55a7fc,_0x42f51f){const _0x104f4e=_0x1e5e3b;return _0x9984e2[_0x104f4e(0xec)](_0x8ec7a5,_0x55a7fc,_0x42f51f);},'PDRcz':_0x9984e2['XdiXI'],'fOgJQ':_0x9984e2['ghlhU']};try{_0x9984e2['LlUsp'](global[_0x1e5e3b(0x11f)]['length'],0x1)&&(await global[_0x1e5e3b(0x148)](),global[_0x1e5e3b(0x11f)][_0x1e5e3b(0xd9)](),global[_0x1e5e3b(0x12f)]=[],global['__sessionFailed']=![]);try{if(global['percy']&&_0x9984e2['aAAbD'](global[_0x1e5e3b(0x14e)],_0x9984e2[_0x1e5e3b(0x102)])&&global[_0x1e5e3b(0x11f)][0x0]){const _0x8f5b77=_0x9984e2[_0x1e5e3b(0x10a)](global['capabilities'][_0x1e5e3b(0xbd)],0x0)?!!global[_0x1e5e3b(0x11e)][0x0]['app']||!!global[_0x1e5e3b(0x11e)][0x0][_0x9984e2[_0x1e5e3b(0xeb)]]:![],_0x150f2e={};_0x150f2e[_0x1e5e3b(0x153)]=_0x8f5b77,await _0x9984e2['SUARO'](percyAutoCapture,global[_0x1e5e3b(0x11f)][0x0],_0x9984e2[_0x1e5e3b(0x102)],_0x150f2e);}}catch(_0x3c3bae){logger['debug'](_0x1e5e3b(0xf4)+_0x3c3bae);}!global[_0x1e5e3b(0xf3)]&&(await PerformanceTester[_0x1e5e3b(0x14b)](PerformanceAutEvents[_0x1e5e3b(0x118)],async()=>{const _0x539a35=_0x1e5e3b;await global[_0x539a35(0x11f)][0x0]['executeScript'](_0x539a35(0xd7)+JSON[_0x539a35(0x106)](this[_0x539a35(0x140)][_0x539a35(0xf6)]()[_0x539a35(0xc7)](_0x9984e2[_0x539a35(0xe0)]))+'}}');})(),global['__drivers'][0x0]['sessionNameSet__']=!![]),await PerformanceTester[_0x1e5e3b(0x14b)](PerformanceAutEvents['SESSION_STATUS'],async()=>{const _0x38c64d=_0x1e5e3b,_0x14cd01=_0x2a590a[_0x38c64d(0x175)](this['currentTest'][_0x38c64d(0x124)],_0x2a590a[_0x38c64d(0x11b)]);_0x14cd01?(global['__sessionFailed']=!![],global[_0x38c64d(0x12f)]['push'](this[_0x38c64d(0x140)][_0x38c64d(0x122)]['message']),await _0x2a590a[_0x38c64d(0xb7)](_0x520384,JSON[_0x38c64d(0x106)](_0x2a590a[_0x38c64d(0x178)](_0x2a590a['uOzwB'],this[_0x38c64d(0x140)][_0x38c64d(0x122)][_0x38c64d(0x155)])),_0x2a590a[_0x38c64d(0x14c)])):await _0x2a590a[_0x38c64d(0x111)](_0x520384,JSON['stringify'](_0x2a590a['PDRcz']),_0x2a590a[_0x38c64d(0xbb)]);})();}catch(_0x31d2aa){logger[_0x1e5e3b(0x15b)](_0x1e5e3b(0x110)+_0x31d2aa);}try{if(this['currentTest'][_0x1e5e3b(0xbe)]&&globals[_0x1e5e3b(0xda)](_0x9984e2[_0x1e5e3b(0xd2)])&&globals[_0x1e5e3b(0xda)](_0x9984e2[_0x1e5e3b(0xe1)])){logger[_0x1e5e3b(0x16b)](_0x9984e2[_0x1e5e3b(0x170)]);const _0x330a2={};_0x330a2[_0x1e5e3b(0xfe)]=this[_0x1e5e3b(0x140)][_0x1e5e3b(0x12a)],_0x330a2[_0x1e5e3b(0xfa)]=process[_0x1e5e3b(0xde)][testHubConstants['ENV_VAR'][_0x1e5e3b(0x142)]],_0x330a2[_0x1e5e3b(0x14d)]=process['env'][testHubConstants[_0x1e5e3b(0x166)]['BROWSERSTACK_TESTHUB_JWT']];const _0xb1fd9c=_0x330a2;logger['debug'](_0x1e5e3b(0xc6)+JSON[_0x1e5e3b(0x106)](_0xb1fd9c)),logger[_0x1e5e3b(0x15b)](_0x9984e2[_0x1e5e3b(0x16d)]);const _0x5f093b={};_0x5f093b[_0x1e5e3b(0xe7)]=_0x9984e2['GtJfi'],await PerformanceTester[_0x1e5e3b(0x14b)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x767c44=_0x1e5e3b;logger[_0x767c44(0x15b)](util[_0x767c44(0x129)](await global[_0x767c44(0x11f)][0x0][_0x767c44(0x160)](scripts[_0x767c44(0x149)],{'method':global[_0x767c44(0x13d)]})));},_0x5f093b)(),await PerformanceTester[_0x1e5e3b(0x14b)](PerformanceA11yEvents[_0x1e5e3b(0xcd)],async()=>{const _0x1b61f6=_0x1e5e3b;await global[_0x1b61f6(0x11f)][0x0][_0x1b61f6(0x160)](scripts[_0x1b61f6(0x105)],_0xb1fd9c);})(),logger[_0x1e5e3b(0x16b)](_0x9984e2[_0x1e5e3b(0x115)]);}}catch(_0x202f29){logger[_0x1e5e3b(0x179)](_0x1e5e3b(0xbf)+this['currentTest'][_0x1e5e3b(0xf6)]()+_0x1e5e3b(0xc1),_0x202f29);}try{try{if(_0x9984e2[_0x1e5e3b(0x108)](shouldProcessEventForTesthub)){global[_0x1e5e3b(0x11f)][0x0]&&await _0x9984e2[_0x1e5e3b(0xec)](sendPlatformDetails,global['__drivers'][0x0],this[_0x1e5e3b(0x140)]?this[_0x1e5e3b(0x140)][_0x1e5e3b(0x12a)]:null);if(_0x9984e2[_0x1e5e3b(0x108)](isBrowserstackInfra)){PerformanceTester['start'](PerformanceO11yEvents['SYNC']);const _0x2e9510=_0x1e5e3b(0xd1)+Date[_0x1e5e3b(0x163)]();await _0x9984e2[_0x1e5e3b(0xec)](_0x520384,JSON[_0x1e5e3b(0x106)](_0x2e9510),_0x9984e2[_0x1e5e3b(0x127)]),PerformanceTester[_0x1e5e3b(0x101)](PerformanceO11yEvents[_0x1e5e3b(0x12b)]);}}}catch(_0x414502){logger[_0x1e5e3b(0x15b)]('Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20'+_0x414502),PerformanceTester[_0x1e5e3b(0x101)](PerformanceO11yEvents[_0x1e5e3b(0x12b)],![],_0x414502);}_0x9984e2[_0x1e5e3b(0xe4)](global[_0x1e5e3b(0x11f)][0x0][_0x1e5e3b(0x151)],0x0)&&await global[_0x1e5e3b(0x148)]();}catch(_0x2486e7){logger[_0x1e5e3b(0x15b)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x2486e7);}_0x9984e2[_0x1e5e3b(0x168)](_0x52e6fe);})[_0x40bb2f(0x15d)](()=>{const _0x4fec87=_0x40bb2f;_0x2d2bcd[_0x4fec87(0xba)](_0x1ada4e);});},{'platform':_0x2d2bcd[_0x3b1ca4(0xe6)](nestedKeyValue,global[_0x3b1ca4(0xf1)],[_0x2d2bcd['UgRqh']]),'hookType':_0x2d2bcd[_0x3b1ca4(0x156)]})();},'afterAll'(_0x10bf80){const _0x5d10bf=a32_0x1c6d01,_0x3cd4f5={'ljyYU':function(_0x44b9a6){return _0x44b9a6();},'AjYKz':function(_0x3b05c1){return _0x3b05c1();},'VsovB':function(_0xe4f8a9,_0x4d0d55,_0x18b1a6){return _0xe4f8a9(_0x4d0d55,_0x18b1a6);},'qSssK':_0x5d10bf(0xd4),'lYyvs':'afterAll'},_0x5ba037='browserstack internal helper hook';this[_0x5d10bf(0x159)](0xfde8),PerformanceTester[_0x5d10bf(0x14b)](PerformanceSdkEvents[_0x5d10bf(0x10d)],()=>{const _0x924172=_0x5d10bf;new Promise(async _0x36df28=>{await global['driverCleanup'](),_0x3cd4f5['ljyYU'](_0x36df28);})[_0x924172(0x15d)]()[_0x924172(0x15f)](()=>{const _0x3cd9a9=_0x924172;_0x3cd4f5[_0x3cd9a9(0xc2)](_0x10bf80);});},{'platform':_0x3cd4f5[_0x5d10bf(0xc8)](nestedKeyValue,global[_0x5d10bf(0xf1)],[_0x3cd4f5[_0x5d10bf(0x152)]]),'hookType':_0x3cd4f5[_0x5d10bf(0xe8)]})();}};function a32_0x5b79(){const _0x1cbb6a=['debug','dXEIa','then',',\x22level\x22:\x20\x22','finally','executeAsyncScript','7099clqdqR','EodKZ','now','initQuit','bZxAN','ENV_VAR','http:','IuLuc','XAtuu','HVqHf','info','../../helpers/percy/utils','QxXce','1099296GVwYCg','fPufj','yXUNC','../../helpers/globals','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','Chrrg','4XhExrL','NODzw','TbyaD','OazBW','WdMjg','error','OWDry','afterTest','27099ABVggJ','ehaFO','fOgJQ','sessionName','length','accessibilityScanStarted','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','Failed:\x20','.\x20Error\x20:','AjYKz','XiFCq','shouldScanTestForAccessibility','\x20|\x20','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','join','VsovB','../../helpers/performance/performance-tester','75761eEPOwe','ccIev','Failed\x20to\x20store\x20session\x20name:\x20','SAVE_RESULTS','isArray','../../helpers/performance/constants','wjbMh','ObservabilitySync:','lrsuF','40ixzGbf','index','Performing\x20scan\x20before\x20saving\x20results','../../helpers/testhub/constants','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','PRsCR','shift','getGlobal','../../helpers/logger','getCurrentUrl','Passed','env','protocol','GejUo','omtKi','CNMhr','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','SFKnG','__sessionFailed','mtDxY','command','lYyvs','TBWPE','LHRFS','MYpPo','DquYa','TIvmg','242226acVNzO','Ehbyf','CFtef','__platformCaps','FfFLU','__skipSessionName','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','Onntg','titlePath','setGlobal','HLINK','mochaHooks','thBuildUuid','18raepaV','QJFCL','EVfWj','thTestRunUuid','GdnPi','../../helpers/accessibility-automation/scripts','end','QqLwV','https:','tzVoa','saveTestResults','stringify','Jvdgz','jxdBt','qQUlP','LlUsp','util','yeopH','SDK_HOOK','UJbEt','isAccessibilityPlatform','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','LRFfL','vZaWL','IglHJ','uZAWm','HIreP','GZznK','cnUJe','SESSION_NAME','ycJyh','uoIAX','OjUdF','testcase','NPmRZ','capabilities','__drivers','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','err','wKjsx','state','xmBQQ','\x20-\x20','gdHpf','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','format','testAnalyticsId','SYNC','IJPXg','../../helpers/accessibility-automation/helper','ypqeJ','__error_messages__','DUTEl','cTugB','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','beforeEach','qSkOz','NCSqD','44TEoYfX','FDFyR','passed','../../helpers/helper','IxqiB','bstackA11yShouldScan','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','browserstackSessionName','10fOCQmF','GXcol','currentTest','viVYy','BROWSERSTACK_TESTHUB_UUID','winstonLogger','jNZoy','beforeAll','../../helpers/testhub/utils','wLVSl','driverCleanup','performScan','hLFDU','measureWrapper','XMQwD','thJwtToken','percyCaptureMode','vVanK','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','quitCount_','qSssK','app','209991nPiwxh','message','ZAjMq','ggYzt','rUvYs','timeout','3616984heHiTk'];a32_0x5b79=function(){return _0x1cbb6a;};return a32_0x5b79();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x3cabff=a33_0x462d;function a33_0x462d(_0x3749ab,_0x292500){const _0x4df2e4=a33_0x4df2();return a33_0x462d=function(_0x462dac,_0x38328e){_0x462dac=_0x462dac-0x197;let _0x58149b=_0x4df2e4[_0x462dac];return _0x58149b;},a33_0x462d(_0x3749ab,_0x292500);}(function(_0x4cfc69,_0x5e7bf6){const _0x3b7d9b=a33_0x462d,_0x197315=_0x4cfc69();while(!![]){try{const _0x5c8770=parseInt(_0x3b7d9b(0x1b6))/0x1+parseInt(_0x3b7d9b(0x1a2))/0x2+parseInt(_0x3b7d9b(0x1c6))/0x3*(-parseInt(_0x3b7d9b(0x1b2))/0x4)+-parseInt(_0x3b7d9b(0x1d6))/0x5*(parseInt(_0x3b7d9b(0x1d0))/0x6)+parseInt(_0x3b7d9b(0x1b7))/0x7+-parseInt(_0x3b7d9b(0x1c3))/0x8+parseInt(_0x3b7d9b(0x1a5))/0x9;if(_0x5c8770===_0x5e7bf6)break;else _0x197315['push'](_0x197315['shift']());}catch(_0x2faa80){_0x197315['push'](_0x197315['shift']());}}}(a33_0x4df2,0xa1484));function a33_0x4df2(){const _0x2c1114=['hub.browserstack.com','mOrKO','--env','UYZiE','../../helpers/helper','uAlPD','inherit','push','splice','YKgtF','1896496TLnBTw','URiAB','FVRGa','3664575NCQryA','nightwatch.conf.js','iWRQf','info','host','env','child\x20process\x20exited\x20with\x20code\x20','--config','findIndex','Ztohd','isUndefined','nightwatch.json','ukyrn','4qABkLJ','nightwatch.cmd','XkKkP','sYzdr','335684eTuvfS','7205051ijFOhb','../../helpers/BrowserStackSetup','VbGMQ','cwd','child_process','length','../../helpers/logger','platform','Getting\x20your\x20nightwatch\x20configs\x20from\x20','debug','map','config','9384280vhfVyt','unlinkSync','test_settings','47991UuYwnH','mergeDeep','NGJwU','jQeVH','now','close','trim','test','wvUfY','GHFVE','6pLdtBW','getPlatformName','PjIhA','../utils/constants','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','slice','4353780XRqZjP','useW3C','fSeHe','join','existsSync','writeFileSync','ctFYl'];a33_0x4df2=function(){return _0x2c1114;};return a33_0x4df2();}const fs=require('fs'),path=require('path'),{spawn}=require(a33_0x3cabff(0x1bb)),logger=require(a33_0x3cabff(0x1bd))['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x3cabff(0x1b8)),helper=require(a33_0x3cabff(0x19c)),constants=require(a33_0x3cabff(0x1d3)),getUserNightwatchConfigs=(_0x53217a,_0x56a607)=>{const _0x595da9=a33_0x3cabff,_0x734bb4={'jQeVH':_0x595da9(0x1a6),'uAlPD':_0x595da9(0x1b0),'iWRQf':function(_0x3c879a,_0x3c1ea4){return _0x3c879a(_0x3c1ea4);},'fSeHe':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x1dd3b1=null,_0x4f5ae1={};const _0x4ac0e3=_0x56a607['findIndex'](_0x8884a1=>_0x8884a1===_0x595da9(0x1ac));if(!helper[_0x595da9(0x1af)](_0x53217a[_0x595da9(0x1c2)])&&fs['existsSync'](path[_0x595da9(0x1d9)](process['cwd'](),_0x53217a[_0x595da9(0x1c2)])))_0x1dd3b1=path[_0x595da9(0x1d9)](process[_0x595da9(0x1ba)](),_0x53217a['config']),_0x56a607[_0x595da9(0x1a0)](_0x4ac0e3,0x2);else{if(fs[_0x595da9(0x1da)](path[_0x595da9(0x1d9)](process[_0x595da9(0x1ba)](),_0x734bb4['jQeVH'])))_0x1dd3b1=path[_0x595da9(0x1d9)](process[_0x595da9(0x1ba)](),_0x734bb4[_0x595da9(0x1c9)]);else fs['existsSync'](path['join'](process['cwd'](),_0x734bb4[_0x595da9(0x19d)]))&&(_0x1dd3b1=path[_0x595da9(0x1d9)](process[_0x595da9(0x1ba)](),_0x734bb4[_0x595da9(0x19d)]));}return _0x1dd3b1?(logger[_0x595da9(0x1a8)](_0x595da9(0x1bf)+_0x1dd3b1),_0x4f5ae1=_0x734bb4[_0x595da9(0x1a7)](require,_0x1dd3b1)):logger[_0x595da9(0x1a8)](_0x734bb4[_0x595da9(0x1d8)]),_0x4f5ae1;},removeExistingEnvs=_0x267ac9=>{const _0x315d76=a33_0x3cabff,_0x18b2cd={};_0x18b2cd['CwUDI']=function(_0x138dd1,_0x2638e9){return _0x138dd1>_0x2638e9;},_0x18b2cd[_0x315d76(0x1b9)]=function(_0x2484b7,_0x39cb6f){return _0x2484b7>_0x39cb6f;};const _0xd162fe=_0x18b2cd;let _0x2bdb21=_0x267ac9[_0x315d76(0x1ad)](_0x2899d6=>_0x2899d6==='--env');_0xd162fe['CwUDI'](_0x2bdb21,-0x1)&&_0x267ac9[_0x315d76(0x1a0)](_0x2bdb21,0x2),_0x2bdb21=_0x267ac9[_0x315d76(0x1ad)](_0x454a72=>_0x454a72==='-e'),_0xd162fe['VbGMQ'](_0x2bdb21,-0x1)&&_0x267ac9[_0x315d76(0x1a0)](_0x2bdb21,0x2);};function run(_0x20a6ff,_0x4fd4f0,_0x18e0f3){const _0x878c46=a33_0x3cabff,_0x7b1ab3={'URiAB':'nightwatch','XkKkP':function(_0x4ae30f,_0x37e523){return _0x4ae30f+_0x37e523;},'wvUfY':_0x878c46(0x1c5),'mOrKO':function(_0x47b758,_0x38018c,_0x153f38){return _0x47b758(_0x38018c,_0x153f38);},'ctFYl':_0x878c46(0x198),'YKgtF':_0x878c46(0x1d4),'Ztohd':function(_0x5a9284,_0x16d567){return _0x5a9284===_0x16d567;},'PjIhA':'nightwatch-browserstack.json','sYzdr':function(_0x5d1118,_0x1ce7b1){return _0x5d1118(_0x1ce7b1);},'NGJwU':function(_0x922435,_0x4e606d,_0x310180,_0x191087){return _0x922435(_0x4e606d,_0x310180,_0x191087);},'rpCxT':_0x878c46(0x1b3),'FVRGa':_0x878c46(0x1ac),'JMLkh':_0x878c46(0x19a),'ukyrn':_0x878c46(0x19e),'DIExl':_0x878c46(0x1cb)};if(!_0x18e0f3[_0x878c46(0x1c2)])return;const _0x3a8508=_0x7b1ab3[_0x878c46(0x199)](getUserNightwatchConfigs,_0x20a6ff,_0x4fd4f0),_0x2cf2e1={};_0x2cf2e1['start_process']=![];const _0x4f10a3={};_0x4f10a3[_0x878c46(0x1a9)]=_0x7b1ab3[_0x878c46(0x197)],_0x4f10a3['port']=0x1bb;const _0x4c0bd1={};_0x4c0bd1['webdriver']=_0x2cf2e1,_0x4c0bd1['selenium']=_0x4f10a3;const _0xfa33db=_0x4c0bd1;logger[_0x878c46(0x1a8)](_0x7b1ab3[_0x878c46(0x1a1)]);const _0x31f84c={..._0x3a8508},_0x2e0bdb=_0x31f84c,_0x7610bd=helper[_0x878c46(0x1d7)](_0x18e0f3['config']),_0x4b36d5=[];_0x18e0f3[_0x878c46(0x1c2)]['platforms']['forEach']((_0xff10f6,_0x48cef5)=>{const _0x367ff4=_0x878c46;_0x7610bd?_0x4b36d5['push'](helper['modifyBrowserStackW3CCaps'](_0x18e0f3['config'],_0x7b1ab3['URiAB'],_0x48cef5)):_0x4b36d5[_0x367ff4(0x19f)](helper['modifyBrowserStackCaps'](_0x18e0f3[_0x367ff4(0x1c2)],_0x7b1ab3[_0x367ff4(0x1a3)],_0x48cef5));});const _0x1289a3={},_0x3d72ef=[];_0x20a6ff[_0x878c46(0x1aa)]=_0x20a6ff[_0x878c46(0x1aa)]||_0x20a6ff['e'];const _0x1f48ad=_0x20a6ff[_0x878c46(0x1aa)]?_0x20a6ff[_0x878c46(0x1aa)][_0x878c46(0x1cc)]()['split'](',')[_0x878c46(0x1c1)](_0xcc4d9e=>_0xcc4d9e[_0x878c46(0x1cc)]())['filter'](_0x537db3=>_0x537db3!==''):[''];_0x7b1ab3[_0x878c46(0x1ae)](_0x1f48ad[_0x878c46(0x1bc)],0x0)&&_0x1f48ad[_0x878c46(0x19f)]('');_0x1f48ad['forEach'](_0x58b3df=>{const _0x4c0dee=_0x878c46,_0x4af9df={'GHFVE':function(_0x340463,_0x21381d){const _0x191261=a33_0x462d;return _0x7b1ab3[_0x191261(0x1b4)](_0x340463,_0x21381d);},'UYZiE':_0x7b1ab3[_0x4c0dee(0x1ce)]};_0x4b36d5['forEach'](_0x430e62=>{const _0x2d1953=_0x4c0dee;let _0x1905a4=_0x4af9df[_0x2d1953(0x1cf)](helper[_0x2d1953(0x1d1)](_0x430e62,'_'),'_'+Date[_0x2d1953(0x1ca)]());_0x58b3df&&(_0x1905a4+='_'+_0x58b3df);if(_0x58b3df&&(!_0x3a8508[_0x4af9df[_0x2d1953(0x19b)]]||!_0x3a8508[_0x4af9df[_0x2d1953(0x19b)]][_0x58b3df]))return;const _0x4b3017={..._0xfa33db};_0x4b3017['desiredCapabilities']=_0x430e62;const _0xb6bc67=_0x4b3017;_0x1289a3[_0x1905a4]=_0x58b3df?helper[_0x2d1953(0x1c7)](_0x3a8508[_0x4af9df['UYZiE']][_0x58b3df],_0xb6bc67):_0xb6bc67,_0x3d72ef['push'](_0x1905a4);});});!_0x2e0bdb[_0x878c46(0x1c5)]&&(_0x2e0bdb[_0x878c46(0x1c5)]={});_0x2e0bdb['test_settings']={..._0x2e0bdb['test_settings'],..._0x1289a3};const _0x533438=path[_0x878c46(0x1d9)](__dirname,_0x7b1ab3[_0x878c46(0x1d2)]);fs[_0x878c46(0x1db)](_0x533438,JSON['stringify'](_0x2e0bdb)),_0x7b1ab3[_0x878c46(0x1b5)](removeExistingEnvs,_0x4fd4f0);const _0x2124c7=_0x7b1ab3[_0x878c46(0x1c8)](spawn,/^win/[_0x878c46(0x1cd)](process[_0x878c46(0x1be)])?_0x7b1ab3['rpCxT']:_0x7b1ab3['URiAB'],[_0x7b1ab3[_0x878c46(0x1a4)],_0x533438,..._0x4fd4f0[_0x878c46(0x1d5)](0x1),_0x7b1ab3['JMLkh'],_0x3d72ef['join'](',')],{'stdio':_0x7b1ab3[_0x878c46(0x1b1)]});_0x2124c7['on'](_0x7b1ab3['DIExl'],async _0x4a375b=>{const _0x2eab5c=_0x878c46;logger[_0x2eab5c(0x1c0)](_0x2eab5c(0x1ab)+_0x4a375b),logger[_0x2eab5c(0x1a8)]('Deleting\x20'+_0x533438),fs[_0x2eab5c(0x1c4)](_0x533438);});}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x322fa4=a34_0x2df6;function a34_0x2df6(_0xe16077,_0x4721cf){const _0x44f6f7=a34_0x44f6();return a34_0x2df6=function(_0x2df6bb,_0x497174){_0x2df6bb=_0x2df6bb-0x193;let _0x2756ea=_0x44f6f7[_0x2df6bb];return _0x2756ea;},a34_0x2df6(_0xe16077,_0x4721cf);}(function(_0x107d20,_0x85b4f7){const _0x3ea453=a34_0x2df6,_0x6afb5=_0x107d20();while(!![]){try{const _0x429fa0=-parseInt(_0x3ea453(0x199))/0x1*(-parseInt(_0x3ea453(0x1c1))/0x2)+parseInt(_0x3ea453(0x1dd))/0x3+parseInt(_0x3ea453(0x1e4))/0x4+-parseInt(_0x3ea453(0x1ce))/0x5+parseInt(_0x3ea453(0x1eb))/0x6+-parseInt(_0x3ea453(0x1d4))/0x7*(-parseInt(_0x3ea453(0x1c8))/0x8)+parseInt(_0x3ea453(0x1e5))/0x9*(-parseInt(_0x3ea453(0x1d9))/0xa);if(_0x429fa0===_0x85b4f7)break;else _0x6afb5['push'](_0x6afb5['shift']());}catch(_0x30eb00){_0x6afb5['push'](_0x6afb5['shift']());}}}(a34_0x44f6,0x75b09));function a34_0x44f6(){const _0x2f3b33=['accessibilityOptions.wcagVersion','accessibilityOptions','scannerProcessingTimeout','icFux','No\x20accessibility\x20results\x20were\x20found.','pOepm','accessibilityOptions.includeIssueType.needsReview','playwright-chromium','wsEndpoint','yOGVc','siCJP','(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','cGwmB','executeAsyncScript','browserstack.accessibility','stringify','workerInfo','../../helpers/logger','gyxFa','3350coWIYT','uAjhc','accessibilityOptions.scannerVersion','erlli','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','STjSQ','esDRJ','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','deviceName','SXydK','executeScript','elAEZ','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','YPxDr','YDMoo','IFRLR','testInfo','YJgCg','pzcwT','format','iWaMT','includeIssueType','scannerVersion','setAccessibilityCapabilities','UMbQn','connectOptions','browser','anchZ','browserStackEvaluate','needsReview','wEZUo','evaluate','debug','BS_A11Y_JWT','processAccessibilityCaps','accessibilityOptions.authToken','Cpwsz','accessibilityOptions.includeIssueType.bestPractice','rLRDp','WebDriver','74UhnIgR','../../helpers/performance/constants','browserName','constructor','replace','pilEG','use','888aGWwfg','../../helpers/accessibility-automation/helper','bestPractice','ZMIsO','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','name','3558945ymjgaY','Iksen','winstonLogger','chrome','util','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','47306tiXCdx','YuHtN','../../helpers/performance/performance-tester','../../helpers/helper','project','10GGZkMS','currentTest','browser_version','ZDogH','2844708rjhqeU','ceTOT','env','accessibilityPlatform','CwXcV','getAccessibilityResults','performScan','617008DmBCHO','8789481vMxagF','latest','MLuHH','OgToE','yifwm','browserStackExecuteDriver','1163274lvGbuC','OnuHk','warn'];a34_0x44f6=function(){return _0x2f3b33;};return a34_0x44f6();}const util=require(a34_0x322fa4(0x1d2)),logger=require(a34_0x322fa4(0x197))[a34_0x322fa4(0x1d0)],{isAccessibilityAutomationSession}=require(a34_0x322fa4(0x1c9)),{isUndefined}=require(a34_0x322fa4(0x1d7)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a34_0x322fa4(0x1d6)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x322fa4(0x1c2));exports[a34_0x322fa4(0x1b5)]=async(_0x28f84d,_0x26faf1,_0x3433ed={})=>{const _0x4b2ed3=a34_0x322fa4,_0x2219eb={};_0x2219eb[_0x4b2ed3(0x19c)]='bstackSdkArgs';const _0x2b39ef=_0x2219eb;return await _0x28f84d[_0x4b2ed3(0x1b8)]('(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'+_0x26faf1[_0x4b2ed3(0x1c5)](/arguments/g,_0x2b39ef['erlli'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0x3433ed)+')');},exports[a34_0x322fa4(0x1ea)]=async(_0x2752e6,_0x2d4e34,_0x7e0655={})=>{const _0x39bc0d=a34_0x322fa4,_0x3af5e3={};_0x3af5e3[_0x39bc0d(0x1bf)]=function(_0x3f8bd8,_0xce6d0){return _0x3f8bd8===_0xce6d0;},_0x3af5e3[_0x39bc0d(0x1a8)]=_0x39bc0d(0x1c0),_0x3af5e3[_0x39bc0d(0x1bd)]='Playwright',_0x3af5e3[_0x39bc0d(0x1fa)]='bstackSdkArgs';const _0x30295a=_0x3af5e3;if(_0x30295a['rLRDp'](_0x2752e6[_0x39bc0d(0x1c4)][_0x39bc0d(0x1cd)],_0x30295a[_0x39bc0d(0x1a8)]))return await _0x2752e6[_0x39bc0d(0x193)](_0x2d4e34,_0x7e0655);else{if(_0x30295a[_0x39bc0d(0x1bf)](_0x2752e6[_0x39bc0d(0x1c4)][_0x39bc0d(0x1cd)],_0x30295a[_0x39bc0d(0x1bd)]))return await _0x2752e6[_0x39bc0d(0x1a3)](_0x39bc0d(0x1f9)+_0x2d4e34[_0x39bc0d(0x1c5)](/arguments/g,_0x30295a[_0x39bc0d(0x1fa)])+_0x39bc0d(0x1a0)+JSON[_0x39bc0d(0x195)](_0x7e0655)+')');}},exports[a34_0x322fa4(0x1b0)]=async _0x52f680=>{const _0x377a33=a34_0x322fa4,_0x174d6c={};_0x174d6c[_0x377a33(0x1d5)]=_0x377a33(0x1ee),_0x174d6c['ceTOT']='accessibilityOptions.scannerProcessingTimeout',_0x174d6c[_0x377a33(0x1b7)]=_0x377a33(0x1be),_0x174d6c[_0x377a33(0x1a4)]=_0x377a33(0x1f4),_0x174d6c[_0x377a33(0x19a)]=_0x377a33(0x1bc),_0x174d6c[_0x377a33(0x1aa)]=_0x377a33(0x19b);const _0x24384f=_0x174d6c;_0x52f680['accessibilityOptions']&&(_0x52f680['accessibilityOptions']['wcagVersion']&&(_0x52f680[_0x24384f[_0x377a33(0x1d5)]]=_0x52f680['accessibilityOptions']['wcagVersion']),_0x52f680[_0x377a33(0x1ef)]['scannerProcessingTimeout']&&(_0x52f680[_0x24384f[_0x377a33(0x1de)]]=_0x52f680[_0x377a33(0x1ef)][_0x377a33(0x1f0)]),_0x52f680['accessibilityOptions'][_0x377a33(0x1ae)]&&(_0x52f680[_0x24384f['wEZUo']]=_0x52f680[_0x377a33(0x1ef)][_0x377a33(0x1ae)][_0x377a33(0x1ca)],_0x52f680[_0x24384f[_0x377a33(0x1a4)]]=_0x52f680[_0x377a33(0x1ef)][_0x377a33(0x1ae)][_0x377a33(0x1b6)]));const _0x17bf83=JSON['parse'](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x377a33(0x1af)];_0x52f680[_0x24384f[_0x377a33(0x19a)]]=process[_0x377a33(0x1df)][_0x377a33(0x1ba)],_0x52f680[_0x24384f['YJgCg']]=_0x17bf83,delete _0x52f680['accessibilityOptions'];},exports[a34_0x322fa4(0x1e2)]=async _0x85e69e=>{const _0x2f4b9d=a34_0x322fa4,_0x1a5f47={};_0x1a5f47[_0x2f4b9d(0x1ec)]=_0x2f4b9d(0x1f2),_0x1a5f47[_0x2f4b9d(0x1ab)]=_0x2f4b9d(0x19d);const _0x47116c=_0x1a5f47;if(global[_0x2f4b9d(0x1e0)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x85e69e,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x85e69e,scripts.getResults);})();return res;}catch{return logger['error'](_0x47116c[_0x2f4b9d(0x1ec)]),[];}else return logger[_0x2f4b9d(0x1ed)](_0x47116c[_0x2f4b9d(0x1ab)]),[];},exports[a34_0x322fa4(0x1e3)]=async(_0x33b668,_0x46efa1='')=>{if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x49c5da=a34_0x2df6,_0x4c9d4a={};_0x4c9d4a['command']=_0x46efa1,await exports[_0x49c5da(0x1b5)](_0x33b668,scripts['performScan'],_0x4c9d4a);},{'command':_0x46efa1})();},exports['getAccessibilityResultsSummary']=async _0x5d4f61=>{const _0x5e5242=a34_0x322fa4,_0x281367={};_0x281367[_0x5e5242(0x1dc)]='No\x20summaryResults\x20found.',_0x281367[_0x5e5242(0x1e1)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x48b0b6=_0x281367;if(global[_0x5e5242(0x1e0)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x5d4f61,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x5d4f61,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x5e5242(0x1b9)](_0x48b0b6['ZDogH']),{};}else return logger[_0x5e5242(0x1ed)](_0x48b0b6[_0x5e5242(0x1e1)]),{};},exports['platformValidation']=async _0x322d0f=>{const _0x58eaa4=a34_0x322fa4,_0x10015a={'iWaMT':function(_0x7fc0bb,_0xfba61d){return _0x7fc0bb!==_0xfba61d;},'yOGVc':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','YDMoo':function(_0x3f00ef,_0x4c92b8){return _0x3f00ef===_0x4c92b8;},'pRUjt':_0x58eaa4(0x1d1),'hQAEw':_0x58eaa4(0x1f5),'icFux':_0x58eaa4(0x1d3),'esDRJ':function(_0x27ea77,_0x138369){return _0x27ea77(_0x138369);},'ZMIsO':_0x58eaa4(0x1e6),'YPxDr':function(_0x48ae15,_0x19c524){return _0x48ae15>_0x19c524;},'pOepm':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x10015a[_0x58eaa4(0x1ad)](_0x322d0f[_0x58eaa4(0x1a1)],''))return logger[_0x58eaa4(0x1ed)](_0x10015a[_0x58eaa4(0x1f7)]),![];const _0x7c6322=_0x322d0f[_0x58eaa4(0x1b3)];if(!(_0x10015a[_0x58eaa4(0x1a7)](_0x7c6322,_0x10015a['pRUjt'])||_0x10015a[_0x58eaa4(0x1a7)](_0x7c6322,_0x10015a['hQAEw'])))return logger[_0x58eaa4(0x1ed)](_0x10015a[_0x58eaa4(0x1f1)]),![];const _0x23b791=_0x10015a[_0x58eaa4(0x19f)](parseInt,_0x322d0f['browser_version']);if(!(_0x10015a['YDMoo'](_0x23b791,_0x10015a[_0x58eaa4(0x1cb)])||_0x10015a[_0x58eaa4(0x1a6)](_0x23b791,0x5e)))return logger[_0x58eaa4(0x1ed)](_0x10015a[_0x58eaa4(0x1f3)]),![];}catch(_0x34da66){logger[_0x58eaa4(0x1b9)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x58eaa4(0x1ac)](_0x34da66));}return!![];},exports[a34_0x322fa4(0x1bb)]=(_0x14c9ad,_0x36f3ad,_0x1c9076)=>{const _0xa0168c=a34_0x322fa4,_0x356e3f={'MLuHH':function(_0x3ee260){return _0x3ee260();},'STjSQ':_0xa0168c(0x194),'pilEG':function(_0x477897,_0x15a039){return _0x477897===_0x15a039;},'Iksen':_0xa0168c(0x1d1),'siCJP':_0xa0168c(0x1f5),'UMbQn':_0xa0168c(0x1d3),'SXydK':_0xa0168c(0x1e6),'yifwm':function(_0x5cb768,_0xfb78c6){return _0x5cb768>_0xfb78c6;},'anchZ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','OgToE':function(_0x127f0f,_0x3d541){return _0x127f0f(_0x3d541);},'gyxFa':_0xa0168c(0x1a5),'IKouz':function(_0xb88d8,_0x3ef2fe){return _0xb88d8+_0x3ef2fe;}};try{if(_0x356e3f[_0xa0168c(0x1e7)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x14c9ad[_0x356e3f[_0xa0168c(0x19e)]]&&(global[_0xa0168c(0x1e0)]=![]);!(_0x356e3f[_0xa0168c(0x1c6)](_0x14c9ad[_0xa0168c(0x1c3)],_0x356e3f[_0xa0168c(0x1cf)])||_0x356e3f[_0xa0168c(0x1c6)](_0x14c9ad[_0xa0168c(0x1c3)],_0x356e3f[_0xa0168c(0x1f8)]))&&(logger[_0xa0168c(0x1ed)](_0x356e3f[_0xa0168c(0x1b1)]),global[_0xa0168c(0x1e0)]=![]);!(_0x356e3f['pilEG'](_0x14c9ad[_0xa0168c(0x1db)],_0x356e3f[_0xa0168c(0x1a2)])||_0x356e3f[_0xa0168c(0x1e9)](_0x14c9ad['browser_version'],0x5e))&&(logger[_0xa0168c(0x1ed)](_0x356e3f[_0xa0168c(0x1b4)]),global[_0xa0168c(0x1e0)]=![]);!_0x356e3f[_0xa0168c(0x1e8)](isUndefined,_0x14c9ad['deviceName'])&&(logger['warn'](_0x356e3f[_0xa0168c(0x198)]),global[_0xa0168c(0x1e0)]=![]);if(!global['accessibilityPlatform']){_0x14c9ad[_0x356e3f[_0xa0168c(0x19e)]]=![];const _0x416ed6=_0x356e3f['IKouz'](_0x36f3ad,_0x356e3f[_0xa0168c(0x1e8)](encodeURIComponent,JSON[_0xa0168c(0x195)](_0x14c9ad)));_0x1c9076&&(_0x1c9076[_0xa0168c(0x1da)][_0xa0168c(0x1a9)][_0xa0168c(0x1d8)]['use'][_0xa0168c(0x1b2)]['wsEndpoint']=_0x416ed6,_0x1c9076[_0xa0168c(0x196)][_0xa0168c(0x1d8)][_0xa0168c(0x1c7)]['connectOptions'][_0xa0168c(0x1f6)]=_0x416ed6);}}}catch(_0x410f5f){logger[_0xa0168c(0x1b9)](_0xa0168c(0x1cc)+util[_0xa0168c(0x1ac)](_0x410f5f));}};
|
|
1
|
+
function a34_0x410d(){const _0x4b8f60=['getAccessibilityResultsSummary','setAccessibilityCapabilities','105078JGoJbb','env','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','accessibilityOptions.includeIssueType.needsReview','parse','command','constructor','wcagVersion','VztaX','190cQzyqj','../../helpers/accessibility-automation/scripts','../../helpers/helper','12SKJpGM','deviceName','chrome','1396449KcIrAP','No\x20summaryResults\x20found.','ezweV','executeScript','connectOptions','evaluate','FkbuV','KZFGn','No\x20accessibility\x20results\x20were\x20found.','UqVWH','IHsLt','needsReview','error','296582PFoMha','scannerProcessingTimeout','stringify','ihKmu','UveEE','IpLiQ','hmgHN','267AGWodV','hrJnE','ZeOTA','../../helpers/logger','accessibilityPlatform','browserStackEvaluate','aFEay','bhbtu','executeAsyncScript','9885cdaGEt','oLPeP','platformValidation','currentTest','9836TLVxJh','3650512oRhsaU','includeIssueType','performScan','TGCOI','CWfnK','../../helpers/accessibility-automation/helper','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','LkUNj','winstonLogger','(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','DGMqv','accessibilityOptions.includeIssueType.bestPractice','measureWrapper','pBgTn','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','4979387wTzDjc','format','getAccessibilityResults','wTUFN','browserstack.accessibility','106tLhMZH','accessibilityOptions.scannerProcessingTimeout','warn','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','accessibilityOptions.wcagVersion','name','browser_version','use','accessibilityOptions.scannerVersion','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','PERFORM_SCAN','RTunb','../../helpers/performance/performance-tester','PpqBe','wsEndpoint','Playwright','(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','ucQZc','XjwhO','latest','processAccessibilityCaps','BS_A11Y_JWT','bstackSdkArgs','debug','agyKb','lbnXx','workerInfo','browserName','LUSXL','../../helpers/performance/constants','NzTOQ','LYmdo','gSrpA','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Performing\x20scan\x20with\x20method:\x20','browser','bestPractice','Udpmz','LckYi','\x20page:\x20','EKlLm','aGtSo','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','accessibilityOptions','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','20UrchhU','replace','util'];a34_0x410d=function(){return _0x4b8f60;};return a34_0x410d();}const a34_0x5466ca=a34_0x1c2e;(function(_0x59007a,_0x4f75d9){const _0x4087d7=a34_0x1c2e,_0x17fa82=_0x59007a();while(!![]){try{const _0xdd6c81=-parseInt(_0x4087d7(0x125))/0x1*(-parseInt(_0x4087d7(0x13e))/0x2)+parseInt(_0x4087d7(0x11c))/0x3*(-parseInt(_0x4087d7(0x129))/0x4)+-parseInt(_0x4087d7(0x102))/0x5*(-parseInt(_0x4087d7(0x170))/0x6)+-parseInt(_0x4087d7(0x139))/0x7+parseInt(_0x4087d7(0x12a))/0x8+parseInt(_0x4087d7(0x108))/0x9*(-parseInt(_0x4087d7(0x16b))/0xa)+parseInt(_0x4087d7(0x115))/0xb*(parseInt(_0x4087d7(0x105))/0xc);if(_0xdd6c81===_0x4f75d9)break;else _0x17fa82['push'](_0x17fa82['shift']());}catch(_0x3f6089){_0x17fa82['push'](_0x17fa82['shift']());}}}(a34_0x410d,0x69821));function a34_0x1c2e(_0x378373,_0x42e421){const _0x410d8c=a34_0x410d();return a34_0x1c2e=function(_0x1c2e0f,_0x31780d){_0x1c2e0f=_0x1c2e0f-0xfe;let _0x5bd9f9=_0x410d8c[_0x1c2e0f];return _0x5bd9f9;},a34_0x1c2e(_0x378373,_0x42e421);}const util=require(a34_0x5466ca(0x16d)),logger=require(a34_0x5466ca(0x11f))[a34_0x5466ca(0x132)],{isAccessibilityAutomationSession}=require(a34_0x5466ca(0x12f)),{isUndefined}=require(a34_0x5466ca(0x104)),scripts=require(a34_0x5466ca(0x103)),PerformanceTester=require(a34_0x5466ca(0x14a)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x5466ca(0x15b));exports['browserStackEvaluate']=async(_0x2f5cd9,_0x2e029c,_0x43466e={})=>{const _0x320fa1=a34_0x5466ca,_0x4ea41e={};_0x4ea41e[_0x320fa1(0x122)]='bstackSdkArgs';const _0x1c2bc3=_0x4ea41e;return await _0x2f5cd9[_0x320fa1(0x10d)](_0x320fa1(0x14e)+_0x2e029c[_0x320fa1(0x16c)](/arguments/g,_0x1c2bc3[_0x320fa1(0x122)])+_0x320fa1(0x168)+JSON[_0x320fa1(0x117)](_0x43466e)+')');},exports['browserStackExecuteDriver']=async(_0x5c6ab8,_0x232c62,_0x2d5fea={})=>{const _0x4eb127=a34_0x5466ca,_0x1f4a8b={};_0x1f4a8b[_0x4eb127(0x15c)]=function(_0x3d20c8,_0x10b43e){return _0x3d20c8===_0x10b43e;},_0x1f4a8b[_0x4eb127(0x118)]='WebDriver',_0x1f4a8b[_0x4eb127(0x11e)]=function(_0x3ef67d,_0x43a789){return _0x3ef67d===_0x43a789;},_0x1f4a8b['aGtSo']=_0x4eb127(0x14d),_0x1f4a8b[_0x4eb127(0x157)]=_0x4eb127(0x154);const _0x3d20ce=_0x1f4a8b;if(_0x3d20ce[_0x4eb127(0x15c)](_0x5c6ab8[_0x4eb127(0xff)]['name'],_0x3d20ce[_0x4eb127(0x118)]))return await _0x5c6ab8[_0x4eb127(0x124)](_0x232c62,_0x2d5fea);else{if(_0x3d20ce['ZeOTA'](_0x5c6ab8[_0x4eb127(0xff)][_0x4eb127(0x143)],_0x3d20ce[_0x4eb127(0x167)]))return await _0x5c6ab8[_0x4eb127(0x10b)](_0x4eb127(0x133)+_0x232c62[_0x4eb127(0x16c)](/arguments/g,_0x3d20ce[_0x4eb127(0x157)])+_0x4eb127(0x130)+JSON[_0x4eb127(0x117)](_0x2d5fea)+')');}},exports[a34_0x5466ca(0x16f)]=async _0x161cf0=>{const _0x4286dc=a34_0x5466ca,_0x31863e={};_0x31863e[_0x4286dc(0x156)]=_0x4286dc(0x142),_0x31863e['ujWpx']=_0x4286dc(0x13f),_0x31863e['pBgTn']=_0x4286dc(0x135),_0x31863e[_0x4286dc(0x11a)]=_0x4286dc(0x173),_0x31863e['hrJnE']='accessibilityOptions.authToken',_0x31863e['oLPeP']=_0x4286dc(0x146);const _0x2c42d0=_0x31863e;_0x161cf0[_0x4286dc(0x169)]&&(_0x161cf0[_0x4286dc(0x169)][_0x4286dc(0x100)]&&(_0x161cf0[_0x2c42d0['agyKb']]=_0x161cf0[_0x4286dc(0x169)][_0x4286dc(0x100)]),_0x161cf0[_0x4286dc(0x169)][_0x4286dc(0x116)]&&(_0x161cf0[_0x2c42d0['ujWpx']]=_0x161cf0['accessibilityOptions']['scannerProcessingTimeout']),_0x161cf0[_0x4286dc(0x169)]['includeIssueType']&&(_0x161cf0[_0x2c42d0[_0x4286dc(0x137)]]=_0x161cf0[_0x4286dc(0x169)][_0x4286dc(0x12b)][_0x4286dc(0x162)],_0x161cf0[_0x2c42d0[_0x4286dc(0x11a)]]=_0x161cf0[_0x4286dc(0x169)]['includeIssueType'][_0x4286dc(0x113)]));const _0x536e61=JSON[_0x4286dc(0x174)](process['env'][_0x4286dc(0x138)])['scannerVersion'];_0x161cf0[_0x2c42d0[_0x4286dc(0x11d)]]=process[_0x4286dc(0x171)][_0x4286dc(0x153)],_0x161cf0[_0x2c42d0[_0x4286dc(0x126)]]=_0x536e61,delete _0x161cf0[_0x4286dc(0x169)];},exports[a34_0x5466ca(0x13b)]=async _0x3cddbd=>{const _0x452555=a34_0x5466ca,_0x5d94d9={};_0x5d94d9[_0x452555(0x163)]=_0x452555(0x110),_0x5d94d9[_0x452555(0x10e)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x3114d0=_0x5d94d9;if(global[_0x452555(0x120)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x3cddbd,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x3cddbd,scripts.getResults);})();return res;}catch{return logger[_0x452555(0x114)](_0x3114d0[_0x452555(0x163)]),[];}else return logger['warn'](_0x3114d0[_0x452555(0x10e)]),[];},exports[a34_0x5466ca(0x12c)]=async(_0x357566,_0x5dbb4e='')=>{const _0x32d82e=a34_0x5466ca;logger[_0x32d82e(0x155)](_0x32d82e(0x160)+_0x5dbb4e+_0x32d82e(0x165)+_0x357566);if(global[_0x32d82e(0x120)])return await PerformanceTester[_0x32d82e(0x136)](PerformanceA11yEvents[_0x32d82e(0x148)],async()=>{const _0x43b129=_0x32d82e,_0x14728b={};_0x14728b[_0x43b129(0xfe)]=_0x5dbb4e,await exports[_0x43b129(0x121)](_0x357566,scripts['performScan'],_0x14728b);},{'command':_0x5dbb4e})();},exports[a34_0x5466ca(0x16e)]=async _0x4474e9=>{const _0xdaf517=a34_0x5466ca,_0x590099={};_0x590099[_0xdaf517(0x10a)]=_0xdaf517(0x109),_0x590099[_0xdaf517(0x111)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x33c44d=_0x590099;if(global[_0xdaf517(0x120)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4474e9,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x4474e9,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0xdaf517(0x155)](_0x33c44d['ezweV']),{};}else return logger['warn'](_0x33c44d[_0xdaf517(0x111)]),{};},exports[a34_0x5466ca(0x127)]=async _0x221539=>{const _0x480e9c=a34_0x5466ca,_0x57495d={'DGMqv':function(_0x55803a,_0x371929){return _0x55803a!==_0x371929;},'vHHTo':_0x480e9c(0x141),'LckYi':function(_0x117006,_0x3adf69){return _0x117006===_0x3adf69;},'EKlLm':_0x480e9c(0x107),'XjwhO':'playwright-chromium','xwQgD':_0x480e9c(0x147),'elSWs':function(_0x2a6937,_0x12a60b){return _0x2a6937(_0x12a60b);},'xhABR':function(_0x3692af,_0x563105){return _0x3692af===_0x563105;},'LUSXL':_0x480e9c(0x151),'VztaX':function(_0x4a50e0,_0x16d04a){return _0x4a50e0>_0x16d04a;},'PpqBe':_0x480e9c(0x15f)};try{if(!_0x57495d[_0x480e9c(0x134)](_0x221539[_0x480e9c(0x106)],''))return logger[_0x480e9c(0x140)](_0x57495d['vHHTo']),![];const _0x28302c=_0x221539[_0x480e9c(0x161)];if(!(_0x57495d[_0x480e9c(0x164)](_0x28302c,_0x57495d[_0x480e9c(0x166)])||_0x57495d[_0x480e9c(0x164)](_0x28302c,_0x57495d[_0x480e9c(0x150)])))return logger[_0x480e9c(0x140)](_0x57495d['xwQgD']),![];const _0x176ee8=_0x57495d['elSWs'](parseInt,_0x221539[_0x480e9c(0x144)]);if(!(_0x57495d['xhABR'](_0x176ee8,_0x57495d[_0x480e9c(0x15a)])||_0x57495d[_0x480e9c(0x101)](_0x176ee8,0x5e)))return logger['warn'](_0x57495d[_0x480e9c(0x14b)]),![];}catch(_0x80685){logger['debug'](_0x480e9c(0x16a)+util[_0x480e9c(0x13a)](_0x80685));}return!![];},exports[a34_0x5466ca(0x152)]=(_0x584721,_0x31e55b,_0x5b8708)=>{const _0x5ab21a=a34_0x5466ca,_0x2a973c={'LYmdo':function(_0x321a0b){return _0x321a0b();},'TGCOI':_0x5ab21a(0x13d),'UveEE':function(_0xd558fa,_0x3d7f30){return _0xd558fa===_0x3d7f30;},'CWfnK':'chrome','wTUFN':'playwright-chromium','gSrpA':function(_0x501c75,_0x1bd71c){return _0x501c75===_0x1bd71c;},'bhbtu':_0x5ab21a(0x147),'IHsLt':'latest','hmgHN':function(_0x15c5d2,_0x5ed1e6){return _0x15c5d2>_0x5ed1e6;},'RTunb':_0x5ab21a(0x15f),'ucQZc':function(_0x16f7d7,_0x346973){return _0x16f7d7(_0x346973);},'LkUNj':_0x5ab21a(0x141),'KZFGn':function(_0x1524ba,_0x3f4e70){return _0x1524ba+_0x3f4e70;}};try{if(_0x2a973c[_0x5ab21a(0x15d)](isAccessibilityAutomationSession)){global[_0x5ab21a(0x120)]=!![];!_0x584721[_0x2a973c[_0x5ab21a(0x12d)]]&&(global[_0x5ab21a(0x120)]=![]);!(_0x2a973c[_0x5ab21a(0x119)](_0x584721[_0x5ab21a(0x159)],_0x2a973c[_0x5ab21a(0x12e)])||_0x2a973c['UveEE'](_0x584721[_0x5ab21a(0x159)],_0x2a973c[_0x5ab21a(0x13c)])||_0x2a973c[_0x5ab21a(0x15e)](_0x584721[_0x5ab21a(0x161)],_0x2a973c[_0x5ab21a(0x12e)])||_0x2a973c['gSrpA'](_0x584721['browser'],_0x2a973c['wTUFN']))&&(logger[_0x5ab21a(0x140)](_0x2a973c[_0x5ab21a(0x123)]),global[_0x5ab21a(0x120)]=![]);!(_0x2a973c[_0x5ab21a(0x119)](_0x584721[_0x5ab21a(0x144)],_0x2a973c[_0x5ab21a(0x112)])||_0x2a973c[_0x5ab21a(0x11b)](_0x584721[_0x5ab21a(0x144)],0x5e))&&(logger[_0x5ab21a(0x140)](_0x2a973c[_0x5ab21a(0x149)]),global[_0x5ab21a(0x120)]=![]);!_0x2a973c[_0x5ab21a(0x14f)](isUndefined,_0x584721[_0x5ab21a(0x106)])&&(logger[_0x5ab21a(0x140)](_0x2a973c[_0x5ab21a(0x131)]),global[_0x5ab21a(0x120)]=![]);if(!global[_0x5ab21a(0x120)]){_0x584721[_0x2a973c['TGCOI']]=![];const _0x25a4bf=_0x2a973c[_0x5ab21a(0x10f)](_0x31e55b,_0x2a973c[_0x5ab21a(0x14f)](encodeURIComponent,JSON[_0x5ab21a(0x117)](_0x584721)));_0x5b8708&&(_0x5b8708[_0x5ab21a(0x128)]['testInfo']['project'][_0x5ab21a(0x145)]['connectOptions']['wsEndpoint']=_0x25a4bf,_0x5b8708[_0x5ab21a(0x158)]['project'][_0x5ab21a(0x145)][_0x5ab21a(0x10c)][_0x5ab21a(0x14c)]=_0x25a4bf);}}else global['accessibilityPlatform']=![];}catch(_0x2e837f){logger[_0x5ab21a(0x155)](_0x5ab21a(0x172)+util[_0x5ab21a(0x13a)](_0x2e837f));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x58d052=a35_0x4a4a;(function(_0x258b47,_0xd74344){const _0x2eee5a=a35_0x4a4a,_0x5086e6=_0x258b47();while(!![]){try{const _0x106c47=-parseInt(_0x2eee5a(0x13a))/0x1*(-parseInt(_0x2eee5a(0xf1))/0x2)+-parseInt(_0x2eee5a(0x109))/0x3*(-parseInt(_0x2eee5a(0xe6))/0x4)+parseInt(_0x2eee5a(0x143))/0x5*(-parseInt(_0x2eee5a(0x11b))/0x6)+-parseInt(_0x2eee5a(0x128))/0x7*(-parseInt(_0x2eee5a(0xc9))/0x8)+-parseInt(_0x2eee5a(0x152))/0x9*(-parseInt(_0x2eee5a(0x10a))/0xa)+parseInt(_0x2eee5a(0x159))/0xb+-parseInt(_0x2eee5a(0x121))/0xc;if(_0x106c47===_0xd74344)break;else _0x5086e6['push'](_0x5086e6['shift']());}catch(_0x524b4f){_0x5086e6['push'](_0x5086e6['shift']());}}}(a35_0x2d7e,0x3c92f));const fs=require('fs'),path=require(a35_0x58d052(0xed)),{spawn}=require('child_process'),{format}=require(a35_0x58d052(0x137)),logger=require(a35_0x58d052(0x12f))['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x58d052(0xfe)),helper=require('../../helpers/helper'),utilities=require(a35_0x58d052(0xe0)),constants=require(a35_0x58d052(0x102)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a35_0x58d052(0x10e)),{checkAccessibilityPlatformConfig}=require(a35_0x58d052(0x129)),{setAccessibilityCapabilities}=require(a35_0x58d052(0xdc)),{printBuildLink}=require(a35_0x58d052(0xf5)),TestDetails=require(a35_0x58d052(0x119)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a35_0x58d052(0xfa)),PerformanceEvents=require(a35_0x58d052(0x147))[a35_0x58d052(0x13d)],getUserPlaywrightConfig=async(_0x44735a,_0x35eefd)=>{const _0x5bb082=a35_0x58d052,_0x1aadca={'tZAwc':function(_0x693cb9){return _0x693cb9();},'PHpTy':function(_0x165acc,_0x3e0fac){return _0x165acc(_0x3e0fac);},'TqNqs':function(_0x3a4805,_0x49e758){return _0x3a4805(_0x49e758);},'utnUE':_0x5bb082(0xf8),'kYhHZ':_0x5bb082(0x110)},_0x37869e=!helper[_0x5bb082(0xeb)](_0x44735a[_0x5bb082(0x139)]),_0x219c25=_0x37869e?path[_0x5bb082(0xd0)](process['cwd'](),_0x44735a[_0x5bb082(0x139)]):process[_0x5bb082(0x105)](),{resolveConfigFile:_0x609d1e,resolveConfigLocation:_0x1943cc}=helper[_0x5bb082(0xc7)][_0x5bb082(0xf6)](null,_0x1aadca[_0x5bb082(0x12d)](getConfigLoaderPath)),_0x3ab995=_0x609d1e?_0x1aadca['PHpTy'](_0x609d1e,_0x219c25):helper[_0x5bb082(0xf0)](_0x1aadca[_0x5bb082(0xd8)](_0x1943cc,_0x219c25),[_0x1aadca['utnUE']]),_0xb655a8={};if(_0x37869e){const _0x119c68=_0x35eefd['findIndex'](_0x2b0259=>_0x2b0259===_0x5bb082(0xf7)||_0x2b0259==='-c'||_0x2b0259[_0x5bb082(0xe7)]('--config='));_0x35eefd[_0x5bb082(0xce)](_0x119c68,_0x35eefd[_0x119c68]['startsWith'](_0x1aadca[_0x5bb082(0xca)])?0x1:0x2);}const _0x2499f1={};return _0x2499f1[_0x5bb082(0xed)]=_0x3ab995,_0x2499f1[_0x5bb082(0x139)]=_0xb655a8,_0x2499f1;},handleO11yRerun=_0xc31d25=>{const _0x573a79=a35_0x58d052,_0xf027a={};_0xf027a[_0x573a79(0x14f)]=_0x573a79(0x14b);const _0x450882=_0xf027a,_0x489484=helper[_0x573a79(0xfd)](process['env'][_0x573a79(0x15b)]);if(_0x489484){const _0x9a392e=process[_0x573a79(0x150)][_0x573a79(0xfc)],_0x1420f6=[];if(helper['validateRerunTestList'](_0x9a392e)&&!helper[_0x573a79(0xeb)](_0x9a392e)){_0x9a392e[_0x573a79(0x12a)](',')[_0x573a79(0xc8)](_0x2e5159=>{const _0x1ea4b9=_0x573a79;_0x1420f6['push']('('+_0x2e5159[_0x1ea4b9(0x130)]()+')');});const _0x5e503e='^'+_0x1420f6[_0x573a79(0xe3)]('|')+'$';_0xc31d25[_0x573a79(0x13e)](_0x450882['pKHdv'],_0x5e503e);}}},spawnOriginalProcess=_0x33774f=>{const _0x2d3215=a35_0x58d052,_0x26463a={'XMkLt':function(_0x46dfc9,_0xcdef72,_0x13890e,_0x239b3f){return _0x46dfc9(_0xcdef72,_0x13890e,_0x239b3f);},'twWhr':_0x2d3215(0xd9),'VsCrL':_0x2d3215(0x135),'lcPrc':function(_0x1181f7,_0x549038){return _0x1181f7===_0x549038;},'NdFvT':_0x2d3215(0x108),'POcZv':_0x2d3215(0x14c)};_0x26463a['XMkLt'](spawn,_0x26463a['twWhr'],[_0x26463a[_0x2d3215(0xe9)],..._0x33774f['slice'](0x1)],{'shell':_0x26463a[_0x2d3215(0xd4)](process['platform'],_0x26463a[_0x2d3215(0xfb)]),'stdio':_0x26463a[_0x2d3215(0x158)],'cwd':process[_0x2d3215(0x105)]()});},isTestCommand=(_0x23d254,_0x4dc164)=>{const _0x4bd11f=a35_0x58d052,_0x34e66f={};_0x34e66f[_0x4bd11f(0x148)]=function(_0x3bd9e2,_0x3f72d0){return _0x3bd9e2>_0x3f72d0;},_0x34e66f[_0x4bd11f(0x153)]=function(_0x43d620,_0x566beb){return _0x43d620===_0x566beb;},_0x34e66f[_0x4bd11f(0xd6)]=_0x4bd11f(0xdf);const _0x44465a=_0x34e66f;if(_0x44465a[_0x4bd11f(0x148)](_0x4dc164[_0x4bd11f(0xe1)],0x1)&&_0x44465a[_0x4bd11f(0x153)](_0x4dc164[0x1],_0x44465a[_0x4bd11f(0xd6)]))return!![];return![];};async function run(_0x15c288,_0x32d090,_0x2e32bd){const _0x341ffe=a35_0x58d052,_0x5010d5={'AVtQK':_0x341ffe(0xf2),'sXijE':_0x341ffe(0x14d),'UPTvl':function(_0x55dc66,_0x41cad5){return _0x55dc66+_0x41cad5;},'nDlXk':_0x341ffe(0x15c),'oUUSn':function(_0x3639a1){return _0x3639a1();},'mYGee':function(_0x20d5b7){return _0x20d5b7();},'YJaOa':function(_0x54f9cc,_0x565de8){return _0x54f9cc+_0x565de8;},'UOejf':'Error\x20in\x20closing\x20playwright','gSpMV':function(_0x8b428,_0x35f2c4){return _0x8b428(_0x35f2c4);},'SlHfp':_0x341ffe(0xd2),'DEwxx':_0x341ffe(0x13c),'uccPw':function(_0x1a4798,_0x339d4e){return _0x1a4798!=_0x339d4e;},'XEhGq':function(_0x3982f3,_0x264070,_0x987321){return _0x3982f3(_0x264070,_0x987321);},'cPfzl':function(_0x64bf5,_0x1b1e4a){return _0x64bf5===_0x1b1e4a;},'SiCXD':'true','exLJg':function(_0x379291,_0x43e632){return _0x379291(_0x43e632);},'RHLYi':function(_0x4eb0ab,_0x230c52){return _0x4eb0ab(_0x230c52);},'NRpKu':_0x341ffe(0xcd),'mIjJJ':_0x341ffe(0x106),'pBIXw':_0x341ffe(0x11c),'qxVvM':function(_0xd93251,_0x40ddf4){return _0xd93251-_0x40ddf4;},'byKRD':function(_0x3edf4e,_0x20e5d0){return _0x3edf4e+_0x20e5d0;},'HRKyV':_0x341ffe(0xef),'fgUMQ':function(_0x5e80e3,_0x557071){return _0x5e80e3>_0x557071;},'UEags':function(_0x2f2170,_0x26c577,_0x31d3d7,_0x300787){return _0x2f2170(_0x26c577,_0x31d3d7,_0x300787);},'njWiP':'npx','kaDlX':_0x341ffe(0x135),'gAUqo':_0x341ffe(0xdf),'cuBRZ':_0x341ffe(0xf7),'HweCj':'win32','Dscat':_0x341ffe(0x14c),'NxziX':_0x341ffe(0xcc),'aLmvz':function(_0xabab32,_0xd35d2f){return _0xabab32+_0xd35d2f;},'tuvVA':_0x341ffe(0x115),'najNg':function(_0x2063d5,_0x3ba8d8,_0x182f99){return _0x2063d5(_0x3ba8d8,_0x182f99);},'XFajw':function(_0x2ff167,_0x345d75){return _0x2ff167(_0x345d75);}};try{const _0x54167e=path[_0x341ffe(0xe3)](helper['homedir'](),_0x5010d5[_0x341ffe(0x132)],_0x5010d5[_0x341ffe(0x118)]);fs[_0x341ffe(0x126)](_0x54167e)&&fs['unlinkSync'](_0x54167e);}catch(_0x1bdf22){logger[_0x341ffe(0x13f)](_0x5010d5[_0x341ffe(0x11e)](_0x5010d5[_0x341ffe(0x133)],_0x1bdf22));}if(!_0x5010d5[_0x341ffe(0x14e)](isTestCommand,_0x15c288,_0x32d090)){_0x5010d5[_0x341ffe(0x138)](spawnOriginalProcess,_0x32d090);return;}await PerformanceTester[_0x341ffe(0x134)](PerformanceEvents[_0x341ffe(0xea)],async()=>{const _0xf647bd=_0x341ffe,_0x5989f={'TpTEV':function(_0x54a411,_0x7af2){return _0x5010d5['gSpMV'](_0x54a411,_0x7af2);}};if(!_0x2e32bd[_0xf647bd(0x139)]){logger['error'](_0x5010d5[_0xf647bd(0xd1)]);return;}await _0x2e32bd[_0xf647bd(0xe4)](_0x15c288);!helper[_0xf647bd(0xeb)](_0x2e32bd[_0xf647bd(0xff)])&&_0x2e32bd[_0xf647bd(0xff)][_0xf647bd(0x123)](_0x5010d5[_0xf647bd(0x112)])&&(process[_0xf647bd(0x150)][_0xf647bd(0x101)]=_0x2e32bd[_0xf647bd(0xff)][_0xf647bd(0x141)](_0x5010d5['DEwxx'])||!![]);_0x5010d5['uccPw'](_0x2e32bd[_0xf647bd(0x139)][_0xf647bd(0x117)],null)&&!helper[_0xf647bd(0xfd)](process[_0xf647bd(0x150)][_0xf647bd(0xe5)])&&(process[_0xf647bd(0x150)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0xf647bd(0x150)][_0xf647bd(0xe5)]||_0x2e32bd['config']['testObservability']);const _0x2bbd00=!helper[_0xf647bd(0x10c)](process[_0xf647bd(0x150)][_0xf647bd(0xe5)]);_0x2e32bd[_0xf647bd(0x139)][_0xf647bd(0xd7)]&&(process[_0xf647bd(0x150)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0xf647bd(0x127)](_0x2e32bd['config'][_0xf647bd(0xd7)]));await PerformanceTester[_0xf647bd(0x134)](PerformanceEvents[_0xf647bd(0xcb)],async()=>{const _0x43ae59=_0xf647bd;await TestHubHandler[_0x43ae59(0x13b)](FRAMEWORKS[_0x43ae59(0x151)],_0x2e32bd),_0x2bbd00&&_0x5989f['TpTEV'](handleO11yRerun,_0x32d090);})();let _0x496bb1=![];_0x2e32bd[_0xf647bd(0x139)][_0xf647bd(0xf9)]&&(_0x496bb1=!![],process[_0xf647bd(0x150)][_0xf647bd(0x136)]=_0x2e32bd['config']['accessibility']);const _0x4f89a6=_0x32d090[_0xf647bd(0x145)](),_0x18ce78=await _0x5010d5[_0xf647bd(0x15a)](getUserPlaywrightConfig,_0x15c288,_0x32d090);if(helper[_0xf647bd(0xeb)](_0x18ce78)){_0x5010d5[_0xf647bd(0x14a)](spawnOriginalProcess,_0x4f89a6);return;}const _0x4243fa=_0x18ce78[_0xf647bd(0xed)]?path[_0xf647bd(0x11a)](_0x18ce78['path']):process[_0xf647bd(0x105)]();process[_0xf647bd(0x150)][_0xf647bd(0x157)]=_0x4243fa;let _0x10ae98=_0x5010d5[_0xf647bd(0x104)](process[_0xf647bd(0x150)][_0xf647bd(0x136)],_0x5010d5[_0xf647bd(0xf3)]);_0x10ae98=_0x10ae98||_0x5010d5[_0xf647bd(0xe2)](checkAccessibilityPlatformConfig,_0x2e32bd['config']),process[_0xf647bd(0x150)][_0xf647bd(0x136)]=_0x10ae98;_0x10ae98&&_0x5010d5['RHLYi'](setAccessibilityCapabilities,_0x2e32bd[_0xf647bd(0x139)]);const _0x277cb2=path['join'](_0x18ce78[_0xf647bd(0xed)]?path[_0xf647bd(0x11a)](_0x18ce78[_0xf647bd(0xed)]):process[_0xf647bd(0x105)](),_0x5010d5['NRpKu']);fs[_0xf647bd(0x15e)](_0x277cb2,helper[_0xf647bd(0x156)](_0x2e32bd[_0xf647bd(0x139)])),process[_0xf647bd(0x150)][_0xf647bd(0x11f)]=_0x277cb2,helper[_0xf647bd(0x11d)]();let _0x121195='';_0x5010d5[_0xf647bd(0x104)](helper['getPackageType'](),constants['PACKAGE_TYPE']['MODULE'])?_0x121195=_0x5010d5[_0xf647bd(0x122)]:_0x121195=_0x5010d5[_0xf647bd(0x107)];let _0x60ba82='';if(helper[_0xf647bd(0x142)](_0x18ce78[_0xf647bd(0xed)])){_0x60ba82=_0xf647bd(0xf4);const _0x59ec31=_0x121195[_0xf647bd(0x12a)]('.');_0x59ec31[_0x5010d5[_0xf647bd(0xda)](_0x59ec31[_0xf647bd(0xe1)],0x1)]='ts',_0x121195=_0x59ec31[_0xf647bd(0xe3)]('.'),logger['debug'](_0x5010d5['byKRD'](_0x5010d5[_0xf647bd(0xde)],_0x121195));}else _0x60ba82='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x110988=path['join'](_0x18ce78[_0xf647bd(0xed)]?path[_0xf647bd(0x11a)](_0x18ce78[_0xf647bd(0xed)]):process[_0xf647bd(0x105)](),_0x121195);let _0x54d5c1=_0x18ce78[_0xf647bd(0xed)]?_0x18ce78['path']:'';_0x54d5c1=_0x5010d5[_0xf647bd(0xc6)](_0x54d5c1[_0xf647bd(0xe1)],0x0)?path[_0xf647bd(0xd0)](_0x54d5c1):'',process[_0xf647bd(0x150)]['USER_CONFIG_DETAILS_PATH']=_0x54d5c1;const _0x51de55=helper['getProxyUrl'](_0x2e32bd[_0xf647bd(0x139)]);_0x51de55&&(_0x60ba82=_0x5010d5[_0xf647bd(0x12c)](_0xf647bd(0x146)+_0x51de55+'\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();',_0x60ba82));helper['filterBrowserstackArgs']({},_0x32d090),fs[_0xf647bd(0x15e)](_0x110988,_0x60ba82),PerformanceTester[_0xf647bd(0x12b)](PerformanceEvents['SDK_SETUP']);const _0x20e931=_0x5010d5['UEags'](spawn,_0x5010d5[_0xf647bd(0x103)],[_0x5010d5[_0xf647bd(0x149)],_0x5010d5[_0xf647bd(0x120)],_0x5010d5['cuBRZ'],_0x110988,..._0x32d090[_0xf647bd(0x15d)](0x2)],{'shell':_0x5010d5[_0xf647bd(0x104)](process[_0xf647bd(0x10f)],_0x5010d5[_0xf647bd(0x155)]),'stdio':_0x5010d5[_0xf647bd(0x125)],'cwd':process['cwd'](),'env':Object[_0xf647bd(0x131)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0xf647bd(0xdd)](_0x15c288),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x2e32bd[_0xf647bd(0x139)][_0xf647bd(0x114)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x2e32bd[_0xf647bd(0x139)][_0xf647bd(0x114)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x2e32bd[_0xf647bd(0x139)]['logLevel']})}),_0x7cffd5=()=>{const _0x5782bf=_0xf647bd;try{const _0x46baeb=path[_0x5782bf(0xe3)](helper['homedir'](),_0x5010d5[_0x5782bf(0x132)],_0x5010d5[_0x5782bf(0x118)]);if(fs[_0x5782bf(0x126)](_0x46baeb)){let _0x1d7c68=fs[_0x5782bf(0x144)](_0x46baeb);_0x1d7c68=JSON['parse'](_0x1d7c68),_0x2e32bd['errorMessage']=_0x1d7c68,fs[_0x5782bf(0xec)](_0x46baeb);}}catch(_0x280386){logger[_0x5782bf(0x13f)](_0x5010d5[_0x5782bf(0xd5)](_0x5010d5[_0x5782bf(0x15f)],_0x280386));}};_0x20e931['on'](_0x5010d5[_0xf647bd(0xd3)],async _0x1a0e0e=>{const _0x49e9e4=_0xf647bd,_0x337453={};_0x337453[_0x49e9e4(0x113)]=_0x5010d5[_0x49e9e4(0x132)];const _0x7ea02c=_0x337453;try{PerformanceTester[_0x49e9e4(0xcf)](PerformanceEvents[_0x49e9e4(0x10d)]),_0x5010d5[_0x49e9e4(0x100)](_0x7cffd5),await TestHubHandler[_0x49e9e4(0x10b)](),TestDetails[_0x49e9e4(0xee)](),_0x5010d5[_0x49e9e4(0xdb)](printBuildLink),await utilities['finalExecution'](_0x2e32bd),process[_0x49e9e4(0x12e)]=_0x1a0e0e,logger[_0x49e9e4(0x13f)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x1a0e0e),logger[_0x49e9e4(0xe8)](_0x49e9e4(0x116)+_0x110988),fs[_0x49e9e4(0xec)](_0x110988);fs[_0x49e9e4(0x126)](_0x277cb2)&&(logger[_0x49e9e4(0x13f)]('Deleting\x20'+_0x277cb2),fs['unlinkSync'](_0x277cb2));const _0x427d4e=fs['readdirSync'](path[_0x49e9e4(0xe3)](helper['homedir'](),_0x5010d5[_0x49e9e4(0x132)]))[_0x49e9e4(0x140)](_0x560d8d=>_0x560d8d[_0x49e9e4(0xe7)]('trace_'));_0x427d4e['forEach'](_0x15bc5e=>{const _0x4c6924=_0x49e9e4;fs['unlinkSync'](path['join'](helper[_0x4c6924(0x124)](),_0x7ea02c[_0x4c6924(0x113)],_0x15bc5e));});}catch(_0x4b622e){logger['debug'](_0x5010d5[_0x49e9e4(0x111)](_0x5010d5[_0x49e9e4(0x154)],_0x4b622e));}});})();}function a35_0x4a4a(_0xab966,_0xb45ddd){const _0x2d7e13=a35_0x2d7e();return a35_0x4a4a=function(_0x4a4a25,_0x5f3e5f){_0x4a4a25=_0x4a4a25-0xc6;let _0x131568=_0x2d7e13[_0x4a4a25];return _0x131568;},a35_0x4a4a(_0xab966,_0xb45ddd);}function a35_0x2d7e(){const _0x273138=['./reporter/test-details','dirname','266676HeLxwW','playwright-browserstack-sdk.config.js','clearTempPWConfig','aLmvz','BROWSERSTACK_SETUP_CONFIG_PATH','gAUqo','16309860glDQWA','mIjJJ','has','homedir','Dscat','existsSync','stringify','1270486eLXnYJ','../../helpers/accessibility-automation/helper','split','end','byKRD','tZAwc','exitCode','../../helpers/logger','trim','assign','AVtQK','tuvVA','measureWrapper','playwright','BROWSERSTACK_TEST_ACCESSIBILITY_YML','util','XFajw','config','288287vPKcLm','launchBuild','automation','EVENTS','push','debug','filter','get','isTypescriptProject','20loqHBp','readFileSync','concat','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','../../helpers/performance/constants','GtxHm','kaDlX','gSpMV','--grep','inherit','pw_result.json','najNg','pKHdv','env','PLAYWRIGHT','200529jLrMBm','ecczI','UOejf','HweCj','serializeToYamlString','BROWSERSTACK_PW_CONFIG_DIR','POcZv','5220160HQrUls','XEhGq','BROWSERSTACK_RERUN','Error\x20in\x20getting\x20funnel\x20data\x20results','slice','writeFileSync','nDlXk','fgUMQ','requirePWModule','map','8GfduxQ','kYhHZ','SDK_POST_INITIALIZE','close','browserstackSetupConfig.json','splice','start','resolve','SlHfp','BrowserStack\x20config\x20file\x20not\x20found.','NxziX','lcPrc','UPTvl','YAGHE','accessibilityOptions','TqNqs','npx','qxVvM','mYGee','./accessibility-helper','getConfigPath','HRKyV','test','../../helpers/utilities','length','exLJg','join','initialize','BROWSERSTACK_TEST_OBSERVABILITY','45092EnEMbp','startsWith','info','VsCrL','SDK_PRE_INITIALIZE','isUndefined','unlinkSync','path','shutdown','Updated\x20config\x20file\x20name\x20to\x20-\x20','nestedKeyValue','2QWdmSC','.browserstack','SiCXD','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','../../helpers/test-observability/utils','apply','--config','resolvedConfigFile','accessibility','../../helpers/performance/performance-tester','NdFvT','BROWSERSTACK_RERUN_TESTS','isTrue','../../helpers/BrowserStackSetup','cliConfig','oUUSn','BROWSERSTACK_AUTOMATION','../utils/constants','njWiP','cPfzl','cwd','playwright-browserstack-sdk.config.cjs','pBIXw','win32','117IuuMRk','180ERngVt','stop','isFalse','SDK_CLEANUP','./reporter/pwUtils','platform','--config=','YJaOa','DEwxx','ArBBs','testContextOptions','Error\x20in\x20deleting\x20playwright\x20results','Deleting\x20','testObservability','sXijE'];a35_0x2d7e=function(){return _0x273138;};return a35_0x2d7e();}module['exports']=run;
|
|
2
|
+
'use strict';const a35_0x76e1ca=a35_0x1c66;(function(_0x1f8db7,_0x54ed9f){const _0x453062=a35_0x1c66,_0x5e617f=_0x1f8db7();while(!![]){try{const _0x5f40c1=-parseInt(_0x453062(0x1e9))/0x1*(parseInt(_0x453062(0x15a))/0x2)+-parseInt(_0x453062(0x189))/0x3*(-parseInt(_0x453062(0x17b))/0x4)+parseInt(_0x453062(0x1d6))/0x5*(-parseInt(_0x453062(0x1a0))/0x6)+-parseInt(_0x453062(0x198))/0x7+parseInt(_0x453062(0x166))/0x8*(-parseInt(_0x453062(0x1a9))/0x9)+parseInt(_0x453062(0x1b0))/0xa+parseInt(_0x453062(0x168))/0xb;if(_0x5f40c1===_0x54ed9f)break;else _0x5e617f['push'](_0x5e617f['shift']());}catch(_0x5cd8b1){_0x5e617f['push'](_0x5e617f['shift']());}}}(a35_0x2285,0xf3763));function a35_0x2285(){const _0x5a6ff2=['PIjos','vPFfA','--disable-browserstack-automation','split','.browserstack','config','aeMxo','12591957DGSfby','\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();','BROWSERSTACK_SETUP_CONFIG_PATH','win32','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','QKkMS','exports','USER_CONFIG_DETAILS_PATH','796302KCePqd','cliConfig','BROWSERSTACK_RERUN','readFileSync','launchBuild','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','../../helpers/helper','BROWSERSTACK_AUTOMATION','puwVU','144xZrNZA','writeFileSync','accessibility','qcLHw','push','./accessibility-helper','../../helpers/accessibility-automation/helper','17283120IxhTHt','../v2/cliUtils','--grep','shutdown','shCbx','skipSessionName','existsSync','homedir','playwright-browserstack-sdk.config.js','splice','kGroP','Playwright\x20process\x20exited\x20with\x20code\x20','NFaaA','npx','automation','Ynttl','yJcly','xPYZW','KzHDg','MODULE','filter','UFeeI','wriSW','joupw','has','winstonLogger','Iufkv','test','debug','mKhtx','BROWSERSTACK_RERUN_TESTS','PLAYWRIGHT','platform','BrowserStack\x20config\x20file\x20not\x20found.','browserstackAutomation','AvkCo','startsWith','BXubg','45DMSuht','BROWSERSTACK_PW_CONFIG_DIR','WOHyd','ybVJC','aKnFQ','join','Updated\x20config\x20file\x20name\x20to\x20-\x20','../../helpers/test-observability/constants','UNpcs','errorMessage','Deleting\x20','getInstance','setFrameworkDetail','../../helpers/test-observability/utils','logLevel','clearTempPWConfig','SuPMs','unlinkSync','QxAOE','13OSItOK','QjNJT','assign','OkrFQ','NHMiY','YKbTq','cTGzg','accessibilityOptions','../../helpers/logger','aWHAM','filterBrowserstackArgs','Error\x20in\x20getting\x20funnel\x20data\x20results','SDK_SETUP','../../helpers/performance/performance-tester','uiOHz','getPackageType','OcoIs','env','serializeToYamlString','exitCode','resolve','../v2/TestInfo','SDK_PRE_INITIALIZE','resolvedConfigFile','map','--config=','EJzYH','getProxyUrl','eyQXT','866lMyVqP','XIxUv','length','apply','testContextOptions','measureWrapper','child_process','../v2/browserstackCLI','Error\x20in\x20closing\x20playwright','ujUMk','./reporter/test-details','requirePWModule','108552NKQahX','isTypescriptProject','17459739nNfjgo','../../helpers/utilities','--config','JhOgj','testObservability','info','../utils/constants','PACKAGE_TYPE','qDgvD','isTrue','BROWSERSTACK_TEST_ACCESSIBILITY_YML','getConfig','forEach','../../helpers/testhub/testhubHandler','BROWSERSTACK_TEST_OBSERVABILITY','isUndefined','path','readdirSync','pw_result.json','17516MoLUSI','xPduJ','--disable-test-observability','findIndex','nestedKeyValue','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','skipSessionStatus','cwd','SDK_CLEANUP','playwright-browserstack-sdk.config.cjs','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','browserstackSetupConfig.json','setBrowserstackConfig','playwright','615Wogmsy','isRunning','start','inherit','bootstrap','OutvJ','MKsfi','slice'];a35_0x2285=function(){return _0x5a6ff2;};return a35_0x2285();}function a35_0x1c66(_0x484bd5,_0x490883){const _0x22853a=a35_0x2285();return a35_0x1c66=function(_0x1c6633,_0x2ee917){_0x1c6633=_0x1c6633-0x13e;let _0x25bb52=_0x22853a[_0x1c6633];return _0x25bb52;},a35_0x1c66(_0x484bd5,_0x490883);}const fs=require('fs'),path=require(a35_0x76e1ca(0x178)),{spawn}=require(a35_0x76e1ca(0x160)),{format}=require('util'),logger=require(a35_0x76e1ca(0x145))[a35_0x76e1ca(0x1c9)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0x76e1ca(0x1a6)),utilities=require(a35_0x76e1ca(0x169)),constants=require(a35_0x76e1ca(0x16e)),{FRAMEWORKS}=require(a35_0x76e1ca(0x1dd)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a35_0x76e1ca(0x1af)),{setAccessibilityCapabilities}=require(a35_0x76e1ca(0x1ae)),{printBuildLink}=require(a35_0x76e1ca(0x1e3)),TestDetails=require(a35_0x76e1ca(0x164)),TestHubHandler=require(a35_0x76e1ca(0x175)),PerformanceTester=require(a35_0x76e1ca(0x14a)),BrowserstackCLI=require(a35_0x76e1ca(0x161)),PerformanceEvents=require('../../helpers/performance/constants')['EVENTS'],CLIUtils=require(a35_0x76e1ca(0x1b1)),TestInfo=require(a35_0x76e1ca(0x152)),getUserPlaywrightConfig=async(_0x19cf7a,_0xdca49)=>{const _0x5d0ef7=a35_0x76e1ca,_0x5f03a8={'PihnA':function(_0x345f74){return _0x345f74();},'PIjos':function(_0x542564,_0x3ad47b){return _0x542564(_0x3ad47b);},'KDYRo':_0x5d0ef7(0x154),'OkrFQ':_0x5d0ef7(0x156)},_0x1863db=!helper[_0x5d0ef7(0x177)](_0x19cf7a['config']),_0xb8d839=_0x1863db?path[_0x5d0ef7(0x151)](process[_0x5d0ef7(0x182)](),_0x19cf7a['config']):process[_0x5d0ef7(0x182)](),{resolveConfigFile:_0x1c68a5,resolveConfigLocation:_0x458841}=helper[_0x5d0ef7(0x165)][_0x5d0ef7(0x15d)](null,_0x5f03a8['PihnA'](getConfigLoaderPath)),_0x4cef71=_0x1c68a5?_0x5f03a8['PIjos'](_0x1c68a5,_0xb8d839):helper[_0x5d0ef7(0x17f)](_0x5f03a8[_0x5d0ef7(0x191)](_0x458841,_0xb8d839),[_0x5f03a8['KDYRo']]),_0x4fb832={};if(_0x1863db){const _0x2a36ce=_0xdca49[_0x5d0ef7(0x17e)](_0x245c6d=>_0x245c6d===_0x5d0ef7(0x16a)||_0x245c6d==='-c'||_0x245c6d[_0x5d0ef7(0x1d4)](_0x5d0ef7(0x156)));_0xdca49[_0x5d0ef7(0x1b9)](_0x2a36ce,_0xdca49[_0x2a36ce][_0x5d0ef7(0x1d4)](_0x5f03a8[_0x5d0ef7(0x140)])?0x1:0x2);}const _0x2b37f7={};return _0x2b37f7[_0x5d0ef7(0x178)]=_0x4cef71,_0x2b37f7[_0x5d0ef7(0x196)]=_0x4fb832,_0x2b37f7;},handleO11yRerun=_0x27c6e9=>{const _0x3c3e1b=a35_0x76e1ca,_0x23afe7={};_0x23afe7['mKhtx']=_0x3c3e1b(0x1b2);const _0x209ebb=_0x23afe7,_0x128823=helper[_0x3c3e1b(0x171)](process[_0x3c3e1b(0x14e)][_0x3c3e1b(0x1a2)]);if(_0x128823){const _0x43ba05=process['env'][_0x3c3e1b(0x1ce)],_0xfa5525=[];if(helper['validateRerunTestList'](_0x43ba05)&&!helper[_0x3c3e1b(0x177)](_0x43ba05)){_0x43ba05[_0x3c3e1b(0x194)](',')[_0x3c3e1b(0x155)](_0x345743=>{const _0x2d62a1=_0x3c3e1b;_0xfa5525[_0x2d62a1(0x1ad)]('('+_0x345743['trim']()+')');});const _0x593576='^'+_0xfa5525[_0x3c3e1b(0x1db)]('|')+'$';_0x27c6e9['push'](_0x209ebb[_0x3c3e1b(0x1cd)],_0x593576);}}},spawnOriginalProcess=_0x7d7e1b=>{const _0x35d8c6=a35_0x76e1ca,_0x564f1a={'aWHAM':function(_0x2d6870,_0x3e907e,_0xd9e5f5,_0x36b361){return _0x2d6870(_0x3e907e,_0xd9e5f5,_0x36b361);},'OutvJ':'npx','QjNJT':_0x35d8c6(0x188),'NFaaA':function(_0x3f3b43,_0x5bb228){return _0x3f3b43===_0x5bb228;},'uiOHz':'win32','eyQXT':_0x35d8c6(0x18c)};_0x564f1a[_0x35d8c6(0x146)](spawn,_0x564f1a[_0x35d8c6(0x18e)],[_0x564f1a[_0x35d8c6(0x13e)],..._0x7d7e1b[_0x35d8c6(0x190)](0x1)],{'shell':_0x564f1a[_0x35d8c6(0x1bc)](process[_0x35d8c6(0x1d0)],_0x564f1a[_0x35d8c6(0x14b)]),'stdio':_0x564f1a[_0x35d8c6(0x159)],'cwd':process[_0x35d8c6(0x182)]()});},isTestCommand=(_0x205ddd,_0x49c408)=>{const _0x174a64=a35_0x76e1ca,_0x5aa84a={};_0x5aa84a[_0x174a64(0x157)]=function(_0x39dbe9,_0x45ff62){return _0x39dbe9>_0x45ff62;},_0x5aa84a['yJcly']=function(_0x28f7b6,_0x17a2f8){return _0x28f7b6===_0x17a2f8;},_0x5aa84a['joupw']='test';const _0x16773d=_0x5aa84a;if(_0x16773d[_0x174a64(0x157)](_0x49c408[_0x174a64(0x15c)],0x1)&&_0x16773d[_0x174a64(0x1c0)](_0x49c408[0x1],_0x16773d[_0x174a64(0x1c7)]))return!![];return![];};async function run(_0x34d230,_0x512960,_0x548e1a){const _0x3f4680=a35_0x76e1ca,_0x165f96={'QKkMS':function(_0x4b9a3a,_0x553458){return _0x4b9a3a(_0x553458);},'vPFfA':_0x3f4680(0x195),'Ynttl':_0x3f4680(0x17a),'UNpcs':function(_0x4b6e90,_0x16fde8){return _0x4b6e90+_0x16fde8;},'wriSW':_0x3f4680(0x148),'KzHDg':function(_0x4ea6c0){return _0x4ea6c0();},'kGroP':function(_0x1d9bfd){return _0x1d9bfd();},'Iufkv':_0x3f4680(0x162),'aKnFQ':_0x3f4680(0x1d1),'aeMxo':function(_0x12d4b0,_0x382288){return _0x12d4b0===_0x382288;},'NHMiY':'false','gpGSj':_0x3f4680(0x17d),'shCbx':function(_0x432c0e,_0x3dcf30){return _0x432c0e>=_0x3dcf30;},'qcLHw':function(_0x367eb4,_0x2460a5){return _0x367eb4===_0x2460a5;},'BXubg':_0x3f4680(0x1be),'OcoIs':function(_0x17f80a,_0x49200d){return _0x17f80a!=_0x49200d;},'XIxUv':function(_0x39f38c,_0x1a2912,_0x4b88e1){return _0x39f38c(_0x1a2912,_0x4b88e1);},'qDgvD':function(_0xd550fb,_0x1e40d){return _0xd550fb===_0x1e40d;},'iMdDF':'true','JhOgj':function(_0x1f6dab,_0x31317c){return _0x1f6dab(_0x31317c);},'WOHyd':_0x3f4680(0x186),'rgXdz':function(_0x38130a,_0x259401){return _0x38130a===_0x259401;},'YKbTq':_0x3f4680(0x184),'ujUMk':_0x3f4680(0x1b8),'FIOGL':function(_0x180e4f,_0x40dca5){return _0x180e4f-_0x40dca5;},'MKsfi':function(_0x4d4f90,_0x257d6b){return _0x4d4f90+_0x257d6b;},'cTGzg':_0x3f4680(0x1dc),'UFeeI':function(_0x16e8de,_0x538d19){return _0x16e8de>_0x538d19;},'mWePe':function(_0x16cd0f,_0x41d888,_0x463a13,_0x470e21){return _0x16cd0f(_0x41d888,_0x463a13,_0x470e21);},'puwVU':_0x3f4680(0x1bd),'QxAOE':_0x3f4680(0x188),'ApVit':_0x3f4680(0x1cb),'ybVJC':_0x3f4680(0x16a),'cvUNF':_0x3f4680(0x19b),'SuPMs':_0x3f4680(0x18c),'AvkCo':'close','xPduJ':'Error\x20in\x20deleting\x20playwright\x20results'};try{const _0x59b928=path['join'](helper[_0x3f4680(0x1b7)](),_0x165f96[_0x3f4680(0x192)],_0x165f96[_0x3f4680(0x1bf)]);fs[_0x3f4680(0x1b6)](_0x59b928)&&fs[_0x3f4680(0x1e7)](_0x59b928);}catch(_0x40d6a5){logger['debug'](_0x165f96[_0x3f4680(0x18f)](_0x165f96[_0x3f4680(0x17c)],_0x40d6a5));}if(!_0x165f96[_0x3f4680(0x15b)](isTestCommand,_0x34d230,_0x512960)){_0x165f96[_0x3f4680(0x16b)](spawnOriginalProcess,_0x512960);return;}await PerformanceTester[_0x3f4680(0x15f)](PerformanceEvents[_0x3f4680(0x153)],async()=>{const _0x274fd7=_0x3f4680;if(!_0x548e1a['config']){logger['error'](_0x165f96[_0x274fd7(0x1da)]);return;}await _0x548e1a['initialize'](_0x34d230),CLIUtils[_0x274fd7(0x1e2)](FRAMEWORKS[_0x274fd7(0x1cf)],FRAMEWORKS[_0x274fd7(0x1cf)]),BrowserstackCLI[_0x274fd7(0x1e1)]()[_0x274fd7(0x187)](_0x548e1a['config']),await BrowserstackCLI[_0x274fd7(0x1e1)]()[_0x274fd7(0x18d)]();const _0x32a126=BrowserstackCLI[_0x274fd7(0x1e1)]()[_0x274fd7(0x173)]();!helper['isFalse'](_0x32a126[_0x274fd7(0x1d2)])&&(process['env']['BROWSERSTACK_AUTOMATION']=!![]);_0x165f96[_0x274fd7(0x197)](_0x32a126[_0x274fd7(0x1d2)],![])&&(process[_0x274fd7(0x14e)][_0x274fd7(0x1a7)]=_0x165f96[_0x274fd7(0x141)],_0x512960=_0x512960['filter'](_0x157426=>_0x157426!==_0x274fd7(0x193)));const _0x33e36a=_0x512960['indexOf'](_0x165f96['gpGSj']);(_0x165f96[_0x274fd7(0x1b4)](_0x33e36a,0x0)||_0x165f96[_0x274fd7(0x1ac)](_0x32a126['testObservability'],![]))&&(process['env'][_0x274fd7(0x176)]=_0x165f96[_0x274fd7(0x141)],_0x512960=_0x512960['filter'](_0x4690f9=>_0x4690f9!==_0x274fd7(0x17d)));!helper[_0x274fd7(0x177)](_0x548e1a[_0x274fd7(0x1a1)])&&_0x548e1a['cliConfig'][_0x274fd7(0x1c8)](_0x165f96['BXubg'])&&(process['env'][_0x274fd7(0x1a7)]=_0x548e1a['cliConfig']['get'](_0x165f96[_0x274fd7(0x1d5)])||!![]);_0x165f96[_0x274fd7(0x14d)](_0x548e1a[_0x274fd7(0x196)][_0x274fd7(0x16c)],null)&&!helper[_0x274fd7(0x171)](process[_0x274fd7(0x14e)][_0x274fd7(0x176)])&&(process[_0x274fd7(0x14e)][_0x274fd7(0x176)]=process[_0x274fd7(0x14e)][_0x274fd7(0x176)]||_0x548e1a[_0x274fd7(0x196)]['testObservability']);const _0x12f657=!helper['isFalse'](process[_0x274fd7(0x14e)]['BROWSERSTACK_TEST_OBSERVABILITY']);_0x548e1a[_0x274fd7(0x196)][_0x274fd7(0x144)]&&(process[_0x274fd7(0x14e)][_0x274fd7(0x19c)]=JSON['stringify'](_0x548e1a[_0x274fd7(0x196)]['accessibilityOptions']));let _0x30b38f=![];_0x548e1a['config'][_0x274fd7(0x1ab)]&&(_0x30b38f=!![],process[_0x274fd7(0x14e)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x548e1a[_0x274fd7(0x196)][_0x274fd7(0x1ab)]);const _0x455077=_0x512960['concat'](),_0xc8a293=await _0x165f96[_0x274fd7(0x15b)](getUserPlaywrightConfig,_0x34d230,_0x512960);if(helper[_0x274fd7(0x177)](_0xc8a293)){_0x165f96[_0x274fd7(0x19d)](spawnOriginalProcess,_0x455077);return;}const _0x5e4198=_0xc8a293[_0x274fd7(0x178)]?path['dirname'](_0xc8a293['path']):process[_0x274fd7(0x182)]();process[_0x274fd7(0x14e)][_0x274fd7(0x1d7)]=_0x5e4198,await PerformanceTester[_0x274fd7(0x15f)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x1946c8=_0x274fd7;!BrowserstackCLI[_0x1946c8(0x1e1)]()['isRunning']()&&await TestHubHandler[_0x1946c8(0x1a4)](FRAMEWORKS[_0x1946c8(0x1cf)],_0x548e1a),_0x12f657&&_0x165f96[_0x1946c8(0x19d)](handleO11yRerun,_0x512960);})();if(!BrowserstackCLI[_0x274fd7(0x1e1)]()[_0x274fd7(0x18a)]()){let _0x32295f=_0x165f96[_0x274fd7(0x170)](process['env'][_0x274fd7(0x172)],_0x165f96['iMdDF']);_0x32295f=_0x32295f||_0x165f96[_0x274fd7(0x16b)](checkAccessibilityPlatformConfig,_0x548e1a[_0x274fd7(0x196)]),process[_0x274fd7(0x14e)][_0x274fd7(0x172)]=_0x32295f,_0x32295f&&_0x165f96['JhOgj'](setAccessibilityCapabilities,_0x548e1a['config']);}const _0x2fffd8=path[_0x274fd7(0x1db)](_0xc8a293[_0x274fd7(0x178)]?path['dirname'](_0xc8a293[_0x274fd7(0x178)]):process[_0x274fd7(0x182)](),_0x165f96[_0x274fd7(0x1d8)]);fs['writeFileSync'](_0x2fffd8,helper[_0x274fd7(0x14f)](_0x548e1a['config'])),process[_0x274fd7(0x14e)][_0x274fd7(0x19a)]=_0x2fffd8,helper[_0x274fd7(0x1e5)]();let _0xa3b176='';_0x165f96['rgXdz'](helper[_0x274fd7(0x14c)](),constants[_0x274fd7(0x16f)][_0x274fd7(0x1c3)])?_0xa3b176=_0x165f96[_0x274fd7(0x142)]:_0xa3b176=_0x165f96[_0x274fd7(0x163)];let _0x28993f='';if(helper[_0x274fd7(0x167)](_0xc8a293[_0x274fd7(0x178)])){_0x28993f=_0x274fd7(0x180);const _0xfd599a=_0xa3b176[_0x274fd7(0x194)]('.');_0xfd599a[_0x165f96['FIOGL'](_0xfd599a[_0x274fd7(0x15c)],0x1)]='ts',_0xa3b176=_0xfd599a[_0x274fd7(0x1db)]('.'),logger[_0x274fd7(0x1cc)](_0x165f96[_0x274fd7(0x18f)](_0x165f96[_0x274fd7(0x143)],_0xa3b176));}else _0x28993f=_0x274fd7(0x1a5);const _0x91b09=path[_0x274fd7(0x1db)](_0xc8a293[_0x274fd7(0x178)]?path['dirname'](_0xc8a293[_0x274fd7(0x178)]):process[_0x274fd7(0x182)](),_0xa3b176);let _0x7fac2b=_0xc8a293['path']?_0xc8a293[_0x274fd7(0x178)]:'';_0x7fac2b=_0x165f96[_0x274fd7(0x1c5)](_0x7fac2b[_0x274fd7(0x15c)],0x0)?path[_0x274fd7(0x151)](_0x7fac2b):'',process[_0x274fd7(0x14e)][_0x274fd7(0x19f)]=_0x7fac2b;const _0x847eaf=helper[_0x274fd7(0x158)](_0x548e1a[_0x274fd7(0x196)]);_0x847eaf&&(_0x28993f=_0x165f96[_0x274fd7(0x1de)](_0x274fd7(0x185)+_0x847eaf+_0x274fd7(0x199),_0x28993f));helper[_0x274fd7(0x147)]({},_0x512960),fs[_0x274fd7(0x1aa)](_0x91b09,_0x28993f),PerformanceTester['end'](PerformanceEvents[_0x274fd7(0x149)]);const _0x5711d3=_0x165f96['mWePe'](spawn,_0x165f96[_0x274fd7(0x1a8)],[_0x165f96[_0x274fd7(0x1e8)],_0x165f96['ApVit'],_0x165f96[_0x274fd7(0x1d9)],_0x91b09,..._0x512960[_0x274fd7(0x190)](0x2)],{'shell':_0x165f96[_0x274fd7(0x1ac)](process['platform'],_0x165f96['cvUNF']),'stdio':_0x165f96[_0x274fd7(0x1e6)],'cwd':process[_0x274fd7(0x182)](),'env':Object[_0x274fd7(0x13f)]({},process[_0x274fd7(0x14e)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x34d230),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x548e1a[_0x274fd7(0x196)]['testContextOptions'][_0x274fd7(0x181)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x548e1a['config'][_0x274fd7(0x15e)][_0x274fd7(0x1b5)],'BROWSERSTACK_LOG_LEVEL':_0x548e1a[_0x274fd7(0x196)][_0x274fd7(0x1e4)]})}),_0x5824db=()=>{const _0x2d6e47=_0x274fd7;try{const _0x9ea5b2=path[_0x2d6e47(0x1db)](helper[_0x2d6e47(0x1b7)](),_0x165f96[_0x2d6e47(0x192)],_0x165f96[_0x2d6e47(0x1bf)]);if(fs[_0x2d6e47(0x1b6)](_0x9ea5b2)){let _0x1abc2e=fs[_0x2d6e47(0x1a3)](_0x9ea5b2);_0x1abc2e=JSON['parse'](_0x1abc2e),_0x548e1a[_0x2d6e47(0x1df)]=_0x1abc2e,fs[_0x2d6e47(0x1e7)](_0x9ea5b2);}}catch(_0x4e3eb9){logger[_0x2d6e47(0x1cc)](_0x165f96[_0x2d6e47(0x1de)](_0x165f96[_0x2d6e47(0x1c6)],_0x4e3eb9));}};_0x5711d3['on'](_0x165f96[_0x274fd7(0x1d3)],async _0x5856e3=>{const _0x2c3178=_0x274fd7,_0x3e0a18={};_0x3e0a18[_0x2c3178(0x1c1)]=_0x165f96[_0x2c3178(0x192)];const _0x115254=_0x3e0a18;try{PerformanceTester[_0x2c3178(0x18b)](PerformanceEvents[_0x2c3178(0x183)]),_0x165f96[_0x2c3178(0x1c2)](_0x5824db);!BrowserstackCLI[_0x2c3178(0x1e1)]()[_0x2c3178(0x18a)]()&&await TestHubHandler['stop']();await BrowserstackCLI[_0x2c3178(0x1e1)]()['stop'](),TestDetails[_0x2c3178(0x1b3)](),_0x165f96[_0x2c3178(0x1ba)](printBuildLink),await utilities['finalExecution'](_0x548e1a),process[_0x2c3178(0x150)]=_0x5856e3,logger['debug'](_0x2c3178(0x1bb)+_0x5856e3),logger[_0x2c3178(0x16d)]('Deleting\x20'+_0x91b09),fs['unlinkSync'](_0x91b09);fs[_0x2c3178(0x1b6)](_0x2fffd8)&&(logger[_0x2c3178(0x1cc)](_0x2c3178(0x1e0)+_0x2fffd8),fs[_0x2c3178(0x1e7)](_0x2fffd8));const _0x5b2746=fs[_0x2c3178(0x179)](path[_0x2c3178(0x1db)](helper[_0x2c3178(0x1b7)](),_0x165f96['vPFfA']))[_0x2c3178(0x1c4)](_0x4ccb18=>_0x4ccb18[_0x2c3178(0x1d4)]('trace_'));_0x5b2746[_0x2c3178(0x174)](_0x5ce59a=>{const _0x337683=_0x2c3178;fs[_0x337683(0x1e7)](path['join'](helper['homedir'](),_0x115254[_0x337683(0x1c1)],_0x5ce59a));});}catch(_0x592b04){logger['debug'](_0x165f96[_0x2c3178(0x1de)](_0x165f96[_0x2c3178(0x1ca)],_0x592b04));}});})();}module[a35_0x76e1ca(0x19e)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a36_0x4172(){const _0x4fd8b0=['Running\x20existing\x20global\x20setup','2331288nMhnSf','72egYGFS','3491634honpXr','isHandlePWErrorSet','Not\x20able\x20to\x20import\x20globalSetup','apply','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','AynTO','./mock-process.js','FpETC','exports','includes','4245905hHJwri','resolve','../../helpers/test-observability/constants','nkTox','edSyE','11510650ZdfUaO','config','tArpf','./reporter/pwUtils','env','winstonLogger','LJExZ','requirePWModule','util','95fCIqoD','sOQKu','2413818NPtKKd','Path\x20','\x20is\x20not\x20found','sVtuc','688849dwScBL','toString','WFzoa','1.33.0','6878XClgDl','error','debug','rcjWa','compareVersions','cTPrh','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','4jisMCS','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'];a36_0x4172=function(){return _0x4fd8b0;};return a36_0x4172();}const a36_0x24752c=a36_0x274a;(function(_0x202ebe,_0x1a2091){const _0xb8afc9=a36_0x274a,_0x18adf5=_0x202ebe();while(!![]){try{const _0x1506cd=parseInt(_0xb8afc9(0x157))/0x1*(parseInt(_0xb8afc9(0x161))/0x2)+parseInt(_0xb8afc9(0x13f))/0x3+-parseInt(_0xb8afc9(0x168))/0x4*(parseInt(_0xb8afc9(0x149))/0x5)+-parseInt(_0xb8afc9(0x16b))/0x6+parseInt(_0xb8afc9(0x15d))/0x7*(-parseInt(_0xb8afc9(0x16c))/0x8)+parseInt(_0xb8afc9(0x159))/0x9+parseInt(_0xb8afc9(0x14e))/0xa;if(_0x1506cd===_0x1a2091)break;else _0x18adf5['push'](_0x18adf5['shift']());}catch(_0x4f02c8){_0x18adf5['push'](_0x18adf5['shift']());}}}(a36_0x4172,0xc001a));function a36_0x274a(_0x33bda2,_0x2d56c6){const _0x4172b2=a36_0x4172();return a36_0x274a=function(_0x274a36,_0x46eee2){_0x274a36=_0x274a36-0x13f;let _0x1f4d32=_0x4172b2[_0x274a36];return _0x1f4d32;},a36_0x274a(_0x33bda2,_0x2d56c6);}const util=require(a36_0x24752c(0x156)),child_process=require('child_process'),{FRAMEWORKS}=require(a36_0x24752c(0x14b)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x24752c(0x151)),{mockIsWorkerRedundant}=require('./patches'),logger=require('../../helpers/logger')[a36_0x24752c(0x153)];module[a36_0x24752c(0x147)]=async function(_0x51b91b){const _0x108fab=a36_0x24752c,_0x38f979={'AynTO':function(_0x51ef7a,_0x28418d){return _0x51ef7a(_0x28418d);},'nkTox':function(_0xbb9bf8){return _0xbb9bf8();},'FpETC':_0x108fab(0x145),'edSyE':function(_0x113fbb){return _0x113fbb();},'sVtuc':function(_0x11841b,_0x407b20){return _0x11841b(_0x407b20);},'rcjWa':_0x108fab(0x16a),'sOQKu':function(_0x59d579,_0x5500b9){return _0x59d579(_0x5500b9);},'LJExZ':function(_0x4206f6,_0x2501bf){return _0x4206f6>=_0x2501bf;},'tArpf':_0x108fab(0x160),'YWUaK':function(_0x479b5c,_0x59899e,_0x1bb888){return _0x479b5c(_0x59899e,_0x1bb888);},'cTPrh':function(_0x59ce65,_0x103bb8){return _0x59ce65!==_0x103bb8;},'TskIv':'function','WFzoa':_0x108fab(0x141)},_0x8b4f8f=child_process['fork'];if(helper[_0x108fab(0x140)]())try{_0x38f979['edSyE'](mockIsWorkerRedundant);}catch(_0x620c28){logger[_0x108fab(0x163)](_0x108fab(0x167)+util['format'](_0x620c28));}child_process['fork']=function(){const _0x42376f=_0x108fab;return _0x38f979[_0x42376f(0x144)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x42376f(0x148)](_0x38f979['nkTox'](getForkProcessPath))?arguments[0x0]=require[_0x42376f(0x14a)](_0x38f979[_0x42376f(0x146)]):logger[_0x42376f(0x162)](_0x42376f(0x15a)+_0x38f979[_0x42376f(0x14c)](getForkProcessPath)+_0x42376f(0x15b)),_0x8b4f8f[_0x42376f(0x142)](null,arguments);};if(process['env'][_0x108fab(0x143)]){_0x38f979[_0x108fab(0x15c)](debug,_0x38f979[_0x108fab(0x164)]);try{const {loadGlobalHook:_0x31f60d}=helper[_0x108fab(0x155)][_0x108fab(0x142)](null,_0x38f979[_0x108fab(0x14d)](getLoadUtilsPath)),_0x4abd0f=_0x38f979[_0x108fab(0x158)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x121b2a=_0x51b91b;if(_0x38f979[_0x108fab(0x154)](helper[_0x108fab(0x165)](_0x4abd0f,_0x38f979[_0x108fab(0x150)]),0x0)){const _0x274af6={};_0x274af6[_0x108fab(0x14f)]=_0x51b91b,_0x121b2a=_0x274af6;}const _0x5cfb00=await _0x38f979['YWUaK'](_0x31f60d,_0x121b2a,process[_0x108fab(0x152)][_0x108fab(0x143)]);if(_0x38f979[_0x108fab(0x166)](typeof _0x5cfb00,_0x38f979['TskIv']))throw new Error(_0x38f979[_0x108fab(0x15f)]);return _0x5cfb00['apply'](null,arguments);}catch(_0x9e8a17){_0x38f979[_0x108fab(0x158)](debug,_0x108fab(0x169)+_0x9e8a17[_0x108fab(0x15e)]());}}};
|