browserstack-node-sdk 1.34.49 → 1.34.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +3 -3
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -0
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x42633c=a29_0x377f;(function(_0x147df2,_0x348652){const _0x4d0983=a29_0x377f,_0x369238=_0x147df2();while(!![]){try{const _0xcda59a=-parseInt(_0x4d0983(0x212))/0x1+-parseInt(_0x4d0983(0x242))/0x2*(-parseInt(_0x4d0983(0x1ec))/0x3)+parseInt(_0x4d0983(0x23e))/0x4+parseInt(_0x4d0983(0x1ef))/0x5+-parseInt(_0x4d0983(0x22d))/0x6*(-parseInt(_0x4d0983(0x225))/0x7)+-parseInt(_0x4d0983(0x203))/0x8*(-parseInt(_0x4d0983(0x23c))/0x9)+parseInt(_0x4d0983(0x239))/0xa*(-parseInt(_0x4d0983(0x1f4))/0xb);if(_0xcda59a===_0x348652)break;else _0x369238['push'](_0x369238['shift']());}catch(_0xccfcde){_0x369238['push'](_0x369238['shift']());}}}(a29_0x113e,0xa63b2));const logger=require(a29_0x42633c(0x20e))['winstonLogger'],helper=require(a29_0x42633c(0x24a)),constants=require(a29_0x42633c(0x222)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x42633c(0x215)),{setAccessibilityCapabilities,setExtension}=require(a29_0x42633c(0x23a)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x42633c(0x1f6)),globals=require(a29_0x42633c(0x221)),{overrideExecute}=require(a29_0x42633c(0x25f)),modify=(_0xcb42bd,_0x17cc15=null,_0x28e8c5=![])=>{const _0x504047=a29_0x42633c,_0x32ab48={'EZwuo':function(_0x4f096c,_0x3e4ded){return _0x4f096c!==_0x3e4ded;},'LAQPx':_0x504047(0x25c),'ufgly':function(_0x59cfb8,_0x475726){return _0x59cfb8!==_0x475726;},'BWwqb':function(_0x42d342,_0x50eb57){return _0x42d342+_0x50eb57;},'XtvGl':_0x504047(0x234),'yORVP':'/wd/hub','xnFGe':_0x504047(0x25d),'SUxgd':_0x504047(0x23f),'gxgcq':'ms:edgeOptions','uNdfB':_0x504047(0x1ee),'wNqrl':_0x504047(0x206),'jonGz':_0x504047(0x25b),'waiVf':_0x504047(0x247),'PPIFE':'se:ieOptions','sEQKu':'ieOptions','NkJyp':function(_0x414aeb,_0x348d50){return _0x414aeb===_0x348d50;},'VOqbZ':_0x504047(0x248),'xShmb':_0x504047(0x244),'xqfUo':function(_0x29ccb9,_0x52267b,_0x226f93){return _0x29ccb9(_0x52267b,_0x226f93);},'bBCKG':function(_0x564bf2,_0x468527){return _0x564bf2(_0x468527);},'IEuHK':function(_0x39d024,_0x1c795,_0x134791){return _0x39d024(_0x1c795,_0x134791);},'LFQFr':_0x504047(0x230),'WPDzT':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','fnzqw':function(_0xfb5dd1,_0x4bb6a4,_0x530558){return _0xfb5dd1(_0x4bb6a4,_0x530558);},'WmgNs':'3|0|2|5|1|4','IEsot':_0x504047(0x255),'JwQyT':function(_0x2ab206,_0x4c4d18,_0x2fa74d){return _0x2ab206(_0x4c4d18,_0x2fa74d);},'tbtGb':function(_0x5e6805){return _0x5e6805();},'iXqqM':function(_0xebd04f,_0x3e2872){return _0xebd04f(_0x3e2872);},'hFqNr':_0x504047(0x20c),'ErTNe':function(_0x550698,_0x37f04d){return _0x550698(_0x37f04d);},'MtWyK':function(_0x22b926,_0x4dd298){return _0x22b926(_0x4dd298);},'LinBq':function(_0xac9db5,_0x10ebe3){return _0xac9db5!==_0x10ebe3;},'UoePk':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','FxRne':_0x504047(0x210)},_0x3ce1eb=helper[_0x504047(0x216)]();let _0x7756d6;try{_0x7756d6=helper['requireSeleniumWebdriver'](),_0x7756d6[_0x504047(0x256)]&&(_0x7756d6[_0x504047(0x245)]=_0x7756d6[_0x504047(0x256)]);}catch(_0x5e9c55){return;}if(helper[_0x504047(0x20f)]()){const _0x3c576f={};_0x3c576f[_0x504047(0x25a)]=_0xcb42bd[_0x504047(0x23b)],helper['setLogLevel'](_0x3c576f,new Map(),new Map()),logger['info'](_0x32ab48[_0x504047(0x261)]),logger['debug'](_0x32ab48[_0x504047(0x21d)]);}class _0x2ebd27 extends _0x3ce1eb[_0x504047(0x20a)]{[_0x504047(0x231)](_0x117b87){const _0x2ddfa7=_0x504047;if(_0x32ab48[_0x2ddfa7(0x238)](_0x117b87[_0x2ddfa7(0x236)],_0x32ab48[_0x2ddfa7(0x213)])&&_0x32ab48[_0x2ddfa7(0x202)](global['newHubUrl'],''))try{global[_0x2ddfa7(0x1f9)]=_0x32ab48[_0x2ddfa7(0x1f1)](_0x32ab48['BWwqb'](_0x32ab48[_0x2ddfa7(0x22b)],global[_0x2ddfa7(0x1f9)]),_0x32ab48[_0x2ddfa7(0x204)]),this['options_']=hubAllocator[_0x2ddfa7(0x23d)](global[_0x2ddfa7(0x1f9)]),logger['debug'](_0x2ddfa7(0x22a)+global[_0x2ddfa7(0x1f9)]),global[_0x2ddfa7(0x1f9)]='';}catch(_0x2d608d){logger[_0x2ddfa7(0x1fb)](_0x2d608d);}return super[_0x2ddfa7(0x231)](_0x117b87);}}class _0x59ec7a extends _0x7756d6[_0x504047(0x245)]{[_0x504047(0x22c)](){const _0x5154fe=_0x504047;return this[_0x5154fe(0x240)]=helper[_0x5154fe(0x1fa)](_0xcb42bd),logger[_0x5154fe(0x258)](_0x5154fe(0x1fe)+this['url_']),this;}[_0x504047(0x209)](_0x6a855b){const _0xba84f3=_0x504047;let _0x297eb0={};for(const _0x40d797 in _0x6a855b){switch(_0x40d797){case _0x32ab48[_0xba84f3(0x235)]:case _0x32ab48['SUxgd']:this[_0xba84f3(0x226)]&&(_0x297eb0=this[_0xba84f3(0x226)]['get'](this[_0xba84f3(0x226)]['CAPABILITY_KEY'])||{},this[_0xba84f3(0x226)][_0xba84f3(0x233)](this[_0xba84f3(0x226)]['CAPABILITY_KEY'],helper[_0xba84f3(0x264)](_0x297eb0,_0x6a855b[_0x40d797])));break;case _0x32ab48[_0xba84f3(0x243)]:case _0x32ab48[_0xba84f3(0x1f7)]:this[_0xba84f3(0x21c)]&&(_0x297eb0=this[_0xba84f3(0x21c)][_0xba84f3(0x21a)](this[_0xba84f3(0x21c)][_0xba84f3(0x20b)])||{},this[_0xba84f3(0x21c)][_0xba84f3(0x233)](this[_0xba84f3(0x21c)][_0xba84f3(0x20b)],helper[_0xba84f3(0x264)](_0x297eb0,_0x6a855b[_0x40d797])));break;case _0x32ab48['wNqrl']:case _0x32ab48[_0xba84f3(0x22f)]:this[_0xba84f3(0x260)]&&(_0x297eb0=this['firefoxOptions_'][_0xba84f3(0x21a)](this[_0xba84f3(0x260)][_0xba84f3(0x20b)])||{},this['firefoxOptions_'][_0xba84f3(0x233)](this[_0xba84f3(0x260)][_0xba84f3(0x20b)],helper[_0xba84f3(0x264)](_0x297eb0,_0x6a855b[_0x40d797])));break;case _0x32ab48['waiVf']:this['safariOptions_']&&(_0x297eb0=this[_0xba84f3(0x207)][_0xba84f3(0x21a)](this['safariOptions_'][_0xba84f3(0x20b)])||{},this[_0xba84f3(0x207)]['set'](this[_0xba84f3(0x207)][_0xba84f3(0x20b)],helper[_0xba84f3(0x264)](_0x297eb0,_0x6a855b[_0x40d797])));break;case _0x32ab48[_0xba84f3(0x1ff)]:case _0x32ab48['sEQKu']:this[_0xba84f3(0x208)]&&(_0x297eb0=this[_0xba84f3(0x208)][_0xba84f3(0x21a)](this[_0xba84f3(0x208)]['CAPABILITY_KEY'])||{},this[_0xba84f3(0x208)][_0xba84f3(0x233)](this[_0xba84f3(0x208)][_0xba84f3(0x20b)],helper[_0xba84f3(0x264)](_0x297eb0,_0x6a855b[_0x40d797])));break;}}}[_0x504047(0x1f5)](){const _0x25fcdc=_0x504047,_0xe618b={'kugnm':function(_0x3206e4,_0x1e79c2){return _0x32ab48['NkJyp'](_0x3206e4,_0x1e79c2);},'JPvNn':_0x32ab48[_0x25fcdc(0x1f3)]};return logger[_0x25fcdc(0x258)](_0x32ab48[_0x25fcdc(0x246)]),this[_0x25fcdc(0x209)](_0xcb42bd[_0x25fcdc(0x229)]),Object[_0x25fcdc(0x21f)](_0xcb42bd[_0x25fcdc(0x229)])['forEach'](_0x292348=>{const _0x3277e1=_0x25fcdc,_0x7b988d=this[_0x3277e1(0x24f)]['get'](_0x292348);_0xe618b[_0x3277e1(0x24d)](typeof _0x7b988d,_0xe618b['JPvNn'])?this[_0x3277e1(0x24f)][_0x3277e1(0x233)](_0x292348,helper[_0x3277e1(0x264)](_0x7b988d,_0xcb42bd[_0x3277e1(0x229)][_0x292348])):this['capabilities_']['set'](_0x292348,_0xcb42bd['capability'][_0x292348]);}),this;}['build'](){const _0x389a39=_0x504047,_0x1d2bc8={'sYunk':_0x32ab48[_0x389a39(0x217)],'pYIpl':_0x32ab48[_0x389a39(0x214)],'QcMUq':function(_0x5dedc9,_0x134376,_0x4a253d){return _0x32ab48['fnzqw'](_0x5dedc9,_0x134376,_0x4a253d);},'FKmHr':function(_0x4df820,_0x3ef2be,_0x1ef2b5){const _0x40d803=_0x389a39;return _0x32ab48[_0x40d803(0x259)](_0x4df820,_0x3ef2be,_0x1ef2b5);}};if(helper[_0x389a39(0x20f)]()){const _0x1906c0=_0x32ab48[_0x389a39(0x263)][_0x389a39(0x223)]('|');let _0x3c6b51=0x0;while(!![]){switch(_0x1906c0[_0x3c6b51++]){case'0':this['setServer']();continue;case'1':globals['getGlobal'](_0x32ab48[_0x389a39(0x219)])&&(!_0x32ab48[_0x389a39(0x21b)](setExtension,this,_0xcb42bd)&&globals[_0x389a39(0x228)](_0x32ab48[_0x389a39(0x219)],![]));continue;case'2':this['setCapabilities']();continue;case'3':_0x32ab48['tbtGb'](isAccessibilityAutomationSession)&&_0x32ab48[_0x389a39(0x232)](setAccessibilityCapabilities,_0xcb42bd);continue;case'4':logger[_0x389a39(0x258)](_0x32ab48['hFqNr']);continue;case'5':if(helper['isPacProxy'](_0xcb42bd[_0x389a39(0x201)]['proxyUrl']))this[_0x389a39(0x224)]=helper[_0x389a39(0x253)](_0xcb42bd[_0x389a39(0x201)][_0x389a39(0x251)]);else _0xcb42bd['proxySettings']['proxyUrl']&&(this[_0x389a39(0x250)]=_0xcb42bd[_0x389a39(0x201)]['proxyUrl'],logger['debug'](_0x389a39(0x1f2)+this[_0x389a39(0x250)]));continue;}break;}}const _0x10d983=super[_0x389a39(0x241)]();return _0x10d983[_0x389a39(0x254)][_0x389a39(0x220)](_0x4cdb00=>{const _0x221b34=_0x389a39;try{const _0x5001ce=_0x4cdb00[_0x221b34(0x1fd)]['get'](_0x1d2bc8['sYunk']);_0x5001ce?(logger['debug'](_0x221b34(0x211)+_0x5001ce),hubAllocator[_0x221b34(0x218)](_0x5001ce),helper[_0x221b34(0x205)](_0x5001ce)):logger[_0x221b34(0x258)](_0x1d2bc8[_0x221b34(0x1fc)]);}catch(_0x477d35){logger['debug'](_0x221b34(0x200)+_0x477d35);}}),_0x10d983[_0x389a39(0x237)]=0x0,_0x10d983[_0x389a39(0x220)]&&_0x10d983['then'](_0x3148e1=>{const _0x2e87b3=_0x389a39,_0xe9ac01={'dFUsY':function(_0x27bfc1,_0x23dd7c,_0x50e0d9){return _0x32ab48['xqfUo'](_0x27bfc1,_0x23dd7c,_0x50e0d9);},'EAZup':function(_0x5318f3,_0x1a1d1f,_0x11c445){const _0x46d806=a29_0x377f;return _0x32ab48[_0x46d806(0x257)](_0x5318f3,_0x1a1d1f,_0x11c445);}};_0x32ab48['xqfUo'](overrideQuit,_0x3148e1,_0x10d983),_0x32ab48[_0x2e87b3(0x1f8)](overrideTakeScreenshot,_0x3148e1),helper[_0x2e87b3(0x1ed)](_0x3148e1,_0xcb42bd),_0x32ab48[_0x2e87b3(0x259)](overrideExecute,_0x3148e1,_0xcb42bd),_0x3148e1[_0x2e87b3(0x1eb)]=async()=>{return await _0xe9ac01['dFUsY'](getAccessibilityResultsSummary,_0x3148e1,global);},_0x3148e1[_0x2e87b3(0x22e)]=async()=>{const _0x138e61=_0x2e87b3;return await _0xe9ac01[_0x138e61(0x24e)](getAccessibilityResults,_0x3148e1,global);};}),_0x10d983[_0x389a39(0x1eb)]=async()=>{return await _0x1d2bc8['QcMUq'](getAccessibilityResultsSummary,_0x10d983,global);},_0x10d983[_0x389a39(0x22e)]=async()=>{const _0x5e8ebf=_0x389a39;return await _0x1d2bc8[_0x5e8ebf(0x227)](getAccessibilityResults,_0x10d983,global);},_0x32ab48['ErTNe'](overrideTakeScreenshot,_0x10d983),_0x32ab48[_0x389a39(0x21e)](overrideQuit,_0x10d983),helper['overrideGet'](_0x10d983,_0xcb42bd),_0x32ab48['IEuHK'](overrideExecute,_0x10d983,_0xcb42bd),helper[_0x389a39(0x24b)](global[_0x389a39(0x1f0)])&&(global[_0x389a39(0x1f0)]=[]),helper[_0x389a39(0x24b)](global[_0x389a39(0x262)])&&(global['__drivers']=[]),global[_0x389a39(0x1f0)][_0x389a39(0x249)](_0x10d983),global[_0x389a39(0x20d)]=_0x10d983,_0x32ab48[_0x389a39(0x25e)](global['__drivers'],undefined)&&global['__drivers'][_0x389a39(0x249)](_0x10d983),_0x17cc15&&helper[_0x389a39(0x24b)](_0x17cc15[_0x389a39(0x252)][_0x389a39(0x1f0)])&&(_0x17cc15[_0x389a39(0x252)][_0x389a39(0x1f0)]=[]),_0x17cc15&&_0x32ab48['LinBq'](_0x17cc15[_0x389a39(0x252)]['__drivers'],undefined)&&(_0x17cc15['global'][_0x389a39(0x262)][_0x389a39(0x249)](_0x10d983),_0x17cc15[_0x389a39(0x252)][_0x389a39(0x1f0)]['push'](_0x10d983)),_0x10d983;}}return _0x7756d6[_0x504047(0x256)]=_0x7756d6['Builder'],_0x7756d6[_0x504047(0x245)]=_0x59ec7a,_0x3ce1eb[_0x504047(0x20a)]=_0x2ebd27,_0x7756d6;};function a29_0x377f(_0xbd2941,_0x1108c2){const _0x113edf=a29_0x113e();return a29_0x377f=function(_0x377fd5,_0x12af0d){_0x377fd5=_0x377fd5-0x1eb;let _0x2d640a=_0x113edf[_0x377fd5];return _0x2d640a;},a29_0x377f(_0xbd2941,_0x1108c2);}function a29_0x113e(){const _0x1910f0=['6492070lqBujj','__driversArray','BWwqb','Proxy\x20set\x20to\x20','VOqbZ','1870EqGtUG','setCapabilities','../../../helpers/accessibility-automation/helper','uNdfB','bBCKG','newHubUrl','getHubUrl','error','pYIpl','caps_','Hub\x20url\x20set\x20to\x20','PPIFE','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','proxySettings','ufgly','2320XsKRkL','yORVP','storeOptimalHubUrl','moz:firefoxOptions','safariOptions_','ieOptions_','__setBrowserOptions','HttpClient','CAPABILITY_KEY','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','__driver','../../../helpers/logger','isBrowserstackInfra','Modifying\x20webdriver\x20builder','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','474000KOtiow','LAQPx','WPDzT','../../../helpers/patchHelpers','requireHttpClient','LFQFr','updateHubUrl','IEsot','get','JwQyT','edgeOptions_','FxRne','MtWyK','keys','then','../../../helpers/globals','../../../bin/utils/constants','split','agent_','21DnBpvg','chromeOptions_','FKmHr','setGlobal','capability','New\x20hub\x20url\x20set\x20to\x20','XtvGl','setServer','2464122XMqsFK','getAccessibilityResults','jonGz','optimalHubUrl','send','iXqqM','set','https://','xnFGe','path','quitCount_','EZwuo','174640lLGCrw','../accessibility-automation/helper','browserStackLogLevel','4446UtBLVc','getRequestOptions','393312hibjxS','chromeOptions','url_','build','2703398DHSukH','gxgcq','Setting\x20Browserstack\x20capabilities','Builder','xShmb','safari.options','object','push','../../../helpers/helper','isUndefined','exports','kugnm','EAZup','capabilities_','proxy_','proxyUrl','global','getHttpAgent','session_','isAccessibilityPlatform','originalBuilder','xqfUo','debug','IEuHK','logLevel','firefoxOptions','/session','goog:chromeOptions','LinBq','./helpers/patchHelper','firefoxOptions_','UoePk','__drivers','WmgNs','mergeDeep','getAccessibilityResultsSummary','3ARZibD','overrideGet','edgeOptions'];a29_0x113e=function(){return _0x1910f0;};return a29_0x113e();}module[a29_0x42633c(0x24c)]['browserstackAgentObservability']=modify;
|
|
1
|
+
const a29_0x57aff1=a29_0x53b3;(function(_0x117d70,_0x22f33e){const _0x418dea=a29_0x53b3,_0x1e0724=_0x117d70();while(!![]){try{const _0x4729f9=-parseInt(_0x418dea(0x131))/0x1*(parseInt(_0x418dea(0x161))/0x2)+-parseInt(_0x418dea(0x17b))/0x3*(-parseInt(_0x418dea(0x19d))/0x4)+-parseInt(_0x418dea(0x171))/0x5+parseInt(_0x418dea(0x168))/0x6+-parseInt(_0x418dea(0x19f))/0x7*(parseInt(_0x418dea(0x13b))/0x8)+parseInt(_0x418dea(0x1aa))/0x9+parseInt(_0x418dea(0x163))/0xa*(parseInt(_0x418dea(0x194))/0xb);if(_0x4729f9===_0x22f33e)break;else _0x1e0724['push'](_0x1e0724['shift']());}catch(_0x42ae7b){_0x1e0724['push'](_0x1e0724['shift']());}}}(a29_0x534d,0xf158e));function a29_0x53b3(_0x3e866d,_0x2a3172){const _0x534dec=a29_0x534d();return a29_0x53b3=function(_0x53b372,_0x2c7838){_0x53b372=_0x53b372-0x130;let _0x90b212=_0x534dec[_0x53b372];return _0x90b212;},a29_0x53b3(_0x3e866d,_0x2a3172);}function a29_0x534d(){const _0x2fc7a6=['edgeOptions_','setCapabilities','mergeDeep','setGlobal','../../../helpers/patchHelpers','AZHGc','1174604BUFwpX','chromeOptions_','21BnUMra','Modifying\x20webdriver\x20builder','getHttpAgent','LqwaO','xOKns','chromeOptions','GSLcc','hEFKu','proxyUrl','__driversArray','RQHin','2412126wcEGLR','jRHaH','aDHys','storeOptimalHubUrl','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','error','../../../helpers/helper','13561RQLWAf','__setBrowserOptions','bLyNw','abyWk','FLmgr','isUndefined','Ceqvg','setLogLevel','RlnNy','push','4045704zZrheg','getRequestOptions','CKEFD','forEach','originalBuilder','FdNgN','isAccessibilityPlatform','opKNn','get','HttpClient','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','/session','edgeOptions','BvVzV','proxy_','../../../helpers/globals','Proxy\x20set\x20to\x20','getHubUrl','firefoxOptions_','newHubUrl','session_','global','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','0|1|4|3|2|5','getAccessibilityResults','then','capabilities_','exports','faOoE','../accessibility-automation/helper','info','firefoxOptions','mWjoF','https://','../../../hubAllocationMethods','isPacProxy','Setting\x20Browserstack\x20capabilities','OBGUI','178rawnNV','ieOptions_','10UnXpDH','yteJJ','url_','build','capability','2949570syZRDj','ms:edgeOptions','debug','setServer','options_','./helpers/patchHelper','send','isBrowserstackInfra','mDUWI','9501845PAgprH','quitCount_','CAPABILITY_KEY','itUar','__driver','goog:chromeOptions','New\x20hub\x20url\x20set\x20to\x20','Builder','ETSvR','otooi','3lcdodD','requireSeleniumWebdriver','safariOptions_','Tkbzr','se:ieOptions','getGlobal','QzFRy','safari.options','moz:firefoxOptions','agent_','ieOptions','Hub\x20url\x20set\x20to\x20','winstonLogger','ZiRrF','uxYCa','getAccessibilityResultsSummary','keys','fGYaY','caps_','set','../../../helpers/logger','uNsoH','../../../helpers/accessibility-automation/helper','updateHubUrl','__drivers','50157085NrOSpc','lTbKB','DoNvB'];a29_0x534d=function(){return _0x2fc7a6;};return a29_0x534d();}const logger=require(a29_0x57aff1(0x18f))[a29_0x57aff1(0x187)],helper=require(a29_0x57aff1(0x130)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x57aff1(0x15d)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x57aff1(0x19b)),{setAccessibilityCapabilities,setExtension}=require(a29_0x57aff1(0x158)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x57aff1(0x191)),globals=require(a29_0x57aff1(0x14a)),{overrideExecute}=require(a29_0x57aff1(0x16d)),modify=(_0x11535f,_0xaf6eb9=null,_0x5dc658=![])=>{const _0x1b93c8=a29_0x57aff1,_0x23a30d={'QzFRy':function(_0xce48a9,_0x295fb0){return _0xce48a9!==_0x295fb0;},'DoNvB':_0x1b93c8(0x146),'hEFKu':function(_0x35b813,_0x269df7){return _0x35b813+_0x269df7;},'mWjoF':function(_0x372079,_0x1c4339){return _0x372079+_0x1c4339;},'Tkbzr':_0x1b93c8(0x15c),'fGYaY':'/wd/hub','itUar':_0x1b93c8(0x176),'lTbKB':_0x1b93c8(0x1a4),'GNHGq':_0x1b93c8(0x169),'VRodq':_0x1b93c8(0x147),'xOKns':_0x1b93c8(0x183),'yteJJ':_0x1b93c8(0x15a),'uNsoH':_0x1b93c8(0x182),'EWYSL':_0x1b93c8(0x17f),'otooi':_0x1b93c8(0x185),'UnWbr':function(_0x259084,_0xbd0b4){return _0x259084===_0xbd0b4;},'Ceqvg':'object','GSLcc':_0x1b93c8(0x15f),'abyWk':'optimalHubUrl','opKNn':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','qVQSJ':function(_0x34e955,_0x460fee,_0x41ff11){return _0x34e955(_0x460fee,_0x41ff11);},'RlnNy':function(_0x3ae798,_0x1567a1,_0x273deb){return _0x3ae798(_0x1567a1,_0x273deb);},'jRHaH':function(_0x54f2eb,_0x269b2b){return _0x54f2eb(_0x269b2b);},'mDUWI':function(_0x41779b,_0x35524b,_0x2a6074){return _0x41779b(_0x35524b,_0x2a6074);},'uxYCa':function(_0x4abcf1,_0x3f2748,_0x4f3548){return _0x4abcf1(_0x3f2748,_0x4f3548);},'RQHin':function(_0x5b635f,_0x271873,_0x332c15){return _0x5b635f(_0x271873,_0x332c15);},'FdNgN':_0x1b93c8(0x152),'aDHys':function(_0x9a06af){return _0x9a06af();},'CKEFD':_0x1b93c8(0x141),'ETSvR':function(_0x15b7d0,_0x13137e,_0x4c775f){return _0x15b7d0(_0x13137e,_0x4c775f);},'faOoE':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','OBGUI':function(_0x105b19,_0x45446f){return _0x105b19(_0x45446f);},'AZHGc':function(_0x4f4ab7,_0x558d03){return _0x4f4ab7(_0x558d03);},'bLyNw':function(_0x1b1978,_0x5b770b){return _0x1b1978!==_0x5b770b;},'ZKhWM':_0x1b93c8(0x1ae),'lffBw':_0x1b93c8(0x1a0)},_0x23882e=helper['requireHttpClient']();let _0x3e809e;try{_0x3e809e=helper[_0x1b93c8(0x17c)](),_0x3e809e[_0x1b93c8(0x13f)]&&(_0x3e809e[_0x1b93c8(0x178)]=_0x3e809e[_0x1b93c8(0x13f)]);}catch(_0x2f9aa6){return;}if(helper['isBrowserstackInfra']()){const _0x88df3f={};_0x88df3f['logLevel']=_0x11535f['browserStackLogLevel'],helper[_0x1b93c8(0x138)](_0x88df3f,new Map(),new Map()),logger[_0x1b93c8(0x159)](_0x23a30d['ZKhWM']),logger[_0x1b93c8(0x16a)](_0x23a30d['lffBw']);}class _0x402c4c extends _0x23882e[_0x1b93c8(0x144)]{[_0x1b93c8(0x16e)](_0xc282a2){const _0x1a100a=_0x1b93c8;if(_0x23a30d[_0x1a100a(0x181)](_0xc282a2['path'],_0x23a30d[_0x1a100a(0x196)])&&_0x23a30d[_0x1a100a(0x181)](global[_0x1a100a(0x14e)],''))try{global[_0x1a100a(0x14e)]=_0x23a30d[_0x1a100a(0x1a6)](_0x23a30d[_0x1a100a(0x15b)](_0x23a30d[_0x1a100a(0x17e)],global[_0x1a100a(0x14e)]),_0x23a30d[_0x1a100a(0x18c)]),this[_0x1a100a(0x16c)]=hubAllocator[_0x1a100a(0x13c)](global['newHubUrl']),logger[_0x1a100a(0x16a)](_0x1a100a(0x177)+global[_0x1a100a(0x14e)]),global[_0x1a100a(0x14e)]='';}catch(_0x1998af){logger[_0x1a100a(0x1af)](_0x1998af);}return super[_0x1a100a(0x16e)](_0xc282a2);}}class _0x190ba4 extends _0x3e809e['Builder']{[_0x1b93c8(0x16b)](){const _0x8f1992=_0x1b93c8;return this[_0x8f1992(0x165)]=helper[_0x8f1992(0x14c)](_0x11535f),logger[_0x8f1992(0x16a)](_0x8f1992(0x186)+this[_0x8f1992(0x165)]),this;}[_0x1b93c8(0x132)](_0x3d4ec9){const _0x4a0ebe=_0x1b93c8;let _0x1b8d67={};for(const _0x1984c8 in _0x3d4ec9){switch(_0x1984c8){case _0x23a30d[_0x4a0ebe(0x174)]:case _0x23a30d[_0x4a0ebe(0x195)]:this[_0x4a0ebe(0x19e)]&&(_0x1b8d67=this[_0x4a0ebe(0x19e)][_0x4a0ebe(0x143)](this[_0x4a0ebe(0x19e)]['CAPABILITY_KEY'])||{},this['chromeOptions_']['set'](this[_0x4a0ebe(0x19e)][_0x4a0ebe(0x173)],helper[_0x4a0ebe(0x199)](_0x1b8d67,_0x3d4ec9[_0x1984c8])));break;case _0x23a30d['GNHGq']:case _0x23a30d['VRodq']:this['edgeOptions_']&&(_0x1b8d67=this[_0x4a0ebe(0x197)][_0x4a0ebe(0x143)](this[_0x4a0ebe(0x197)][_0x4a0ebe(0x173)])||{},this[_0x4a0ebe(0x197)][_0x4a0ebe(0x18e)](this['edgeOptions_'][_0x4a0ebe(0x173)],helper['mergeDeep'](_0x1b8d67,_0x3d4ec9[_0x1984c8])));break;case _0x23a30d[_0x4a0ebe(0x1a3)]:case _0x23a30d[_0x4a0ebe(0x164)]:this[_0x4a0ebe(0x14d)]&&(_0x1b8d67=this[_0x4a0ebe(0x14d)][_0x4a0ebe(0x143)](this[_0x4a0ebe(0x14d)][_0x4a0ebe(0x173)])||{},this[_0x4a0ebe(0x14d)]['set'](this[_0x4a0ebe(0x14d)]['CAPABILITY_KEY'],helper[_0x4a0ebe(0x199)](_0x1b8d67,_0x3d4ec9[_0x1984c8])));break;case _0x23a30d[_0x4a0ebe(0x190)]:this[_0x4a0ebe(0x17d)]&&(_0x1b8d67=this[_0x4a0ebe(0x17d)][_0x4a0ebe(0x143)](this[_0x4a0ebe(0x17d)][_0x4a0ebe(0x173)])||{},this['safariOptions_'][_0x4a0ebe(0x18e)](this['safariOptions_'][_0x4a0ebe(0x173)],helper[_0x4a0ebe(0x199)](_0x1b8d67,_0x3d4ec9[_0x1984c8])));break;case _0x23a30d['EWYSL']:case _0x23a30d[_0x4a0ebe(0x17a)]:this[_0x4a0ebe(0x162)]&&(_0x1b8d67=this['ieOptions_'][_0x4a0ebe(0x143)](this[_0x4a0ebe(0x162)]['CAPABILITY_KEY'])||{},this[_0x4a0ebe(0x162)][_0x4a0ebe(0x18e)](this['ieOptions_'][_0x4a0ebe(0x173)],helper['mergeDeep'](_0x1b8d67,_0x3d4ec9[_0x1984c8])));break;}}}[_0x1b93c8(0x198)](){const _0x50ead8=_0x1b93c8,_0xc7d380={'ZiRrF':function(_0x2aedd7,_0x4898a6){return _0x23a30d['UnWbr'](_0x2aedd7,_0x4898a6);},'LqwaO':_0x23a30d[_0x50ead8(0x137)]};return logger[_0x50ead8(0x16a)](_0x23a30d[_0x50ead8(0x1a5)]),this['__setBrowserOptions'](_0x11535f[_0x50ead8(0x167)]),Object[_0x50ead8(0x18b)](_0x11535f[_0x50ead8(0x167)])[_0x50ead8(0x13e)](_0xfb1c2d=>{const _0x3d6845=_0x50ead8,_0x2a3c38=this['capabilities_']['get'](_0xfb1c2d);_0xc7d380[_0x3d6845(0x188)](typeof _0x2a3c38,_0xc7d380[_0x3d6845(0x1a2)])?this[_0x3d6845(0x155)][_0x3d6845(0x18e)](_0xfb1c2d,helper[_0x3d6845(0x199)](_0x2a3c38,_0x11535f['capability'][_0xfb1c2d])):this[_0x3d6845(0x155)][_0x3d6845(0x18e)](_0xfb1c2d,_0x11535f[_0x3d6845(0x167)][_0xfb1c2d]);}),this;}[_0x1b93c8(0x166)](){const _0x5a68ff=_0x1b93c8,_0x237cae={'FLmgr':function(_0x47111b,_0x1d7021,_0x861edc){const _0x24e654=a29_0x53b3;return _0x23a30d[_0x24e654(0x189)](_0x47111b,_0x1d7021,_0x861edc);},'gksAS':function(_0x51b92c,_0xdea278,_0x535b57){const _0x463e4e=a29_0x53b3;return _0x23a30d[_0x463e4e(0x1a9)](_0x51b92c,_0xdea278,_0x535b57);}};if(helper[_0x5a68ff(0x16f)]()){const _0x9653be=_0x23a30d[_0x5a68ff(0x140)]['split']('|');let _0x1fcd88=0x0;while(!![]){switch(_0x9653be[_0x1fcd88++]){case'0':_0x23a30d[_0x5a68ff(0x1ac)](isAccessibilityAutomationSession)&&_0x23a30d['jRHaH'](setAccessibilityCapabilities,_0x11535f);continue;case'1':this['setServer']();continue;case'2':globals[_0x5a68ff(0x180)](_0x23a30d['CKEFD'])&&(!_0x23a30d[_0x5a68ff(0x179)](setExtension,this,_0x11535f)&&globals[_0x5a68ff(0x19a)](_0x23a30d[_0x5a68ff(0x13d)],![]));continue;case'3':if(helper[_0x5a68ff(0x15e)](_0x11535f['proxySettings'][_0x5a68ff(0x1a7)]))this[_0x5a68ff(0x184)]=helper[_0x5a68ff(0x1a1)](_0x11535f['proxySettings']['proxyUrl']);else _0x11535f['proxySettings']['proxyUrl']&&(this[_0x5a68ff(0x149)]=_0x11535f['proxySettings'][_0x5a68ff(0x1a7)],logger[_0x5a68ff(0x16a)](_0x5a68ff(0x14b)+this[_0x5a68ff(0x149)]));continue;case'4':this['setCapabilities']();continue;case'5':logger[_0x5a68ff(0x16a)](_0x23a30d[_0x5a68ff(0x157)]);continue;}break;}}const _0xb5d978=super[_0x5a68ff(0x166)]();return _0xb5d978[_0x5a68ff(0x14f)][_0x5a68ff(0x154)](_0x1a7c52=>{const _0x5ce855=_0x5a68ff;try{const _0x2554d3=_0x1a7c52[_0x5ce855(0x18d)]['get'](_0x23a30d[_0x5ce855(0x134)]);_0x2554d3?(logger[_0x5ce855(0x16a)](_0x5ce855(0x151)+_0x2554d3),hubAllocator[_0x5ce855(0x192)](_0x2554d3),helper[_0x5ce855(0x1ad)](_0x2554d3)):logger[_0x5ce855(0x16a)](_0x23a30d[_0x5ce855(0x142)]);}catch(_0x3f862a){logger[_0x5ce855(0x16a)](_0x5ce855(0x145)+_0x3f862a);}}),_0xb5d978[_0x5a68ff(0x172)]=0x0,_0xb5d978[_0x5a68ff(0x154)]&&_0xb5d978[_0x5a68ff(0x154)](_0x22d285=>{const _0x55f483=_0x5a68ff,_0x275d7c={'BvVzV':function(_0x3a4e49,_0x3d4dd5,_0x1063d3){return _0x23a30d['qVQSJ'](_0x3a4e49,_0x3d4dd5,_0x1063d3);}};_0x23a30d[_0x55f483(0x139)](overrideQuit,_0x22d285,_0xb5d978),_0x23a30d[_0x55f483(0x1ab)](overrideTakeScreenshot,_0x22d285),helper['overrideGet'](_0x22d285,_0x11535f),_0x23a30d[_0x55f483(0x170)](overrideExecute,_0x22d285,_0x11535f),_0x22d285[_0x55f483(0x18a)]=async()=>{const _0x8b0f9c=_0x55f483;return await _0x275d7c[_0x8b0f9c(0x148)](getAccessibilityResultsSummary,_0x22d285,global);},_0x22d285['getAccessibilityResults']=async()=>{const _0x156c99=_0x55f483;return await _0x237cae[_0x156c99(0x135)](getAccessibilityResults,_0x22d285,global);};}),_0xb5d978[_0x5a68ff(0x18a)]=async()=>{const _0x4db1e2=_0x5a68ff;return await _0x237cae[_0x4db1e2(0x135)](getAccessibilityResultsSummary,_0xb5d978,global);},_0xb5d978[_0x5a68ff(0x153)]=async()=>{return await _0x237cae['gksAS'](getAccessibilityResults,_0xb5d978,global);},_0x23a30d[_0x5a68ff(0x160)](overrideTakeScreenshot,_0xb5d978),_0x23a30d[_0x5a68ff(0x19c)](overrideQuit,_0xb5d978),helper['overrideGet'](_0xb5d978,_0x11535f),_0x23a30d[_0x5a68ff(0x170)](overrideExecute,_0xb5d978,_0x11535f),helper[_0x5a68ff(0x136)](global[_0x5a68ff(0x1a8)])&&(global[_0x5a68ff(0x1a8)]=[]),helper[_0x5a68ff(0x136)](global['__drivers'])&&(global[_0x5a68ff(0x193)]=[]),global[_0x5a68ff(0x1a8)][_0x5a68ff(0x13a)](_0xb5d978),global[_0x5a68ff(0x175)]=_0xb5d978,_0x23a30d[_0x5a68ff(0x133)](global['__drivers'],undefined)&&global[_0x5a68ff(0x193)][_0x5a68ff(0x13a)](_0xb5d978),_0xaf6eb9&&helper[_0x5a68ff(0x136)](_0xaf6eb9[_0x5a68ff(0x150)]['__driversArray'])&&(_0xaf6eb9[_0x5a68ff(0x150)][_0x5a68ff(0x1a8)]=[]),_0xaf6eb9&&_0x23a30d[_0x5a68ff(0x133)](_0xaf6eb9[_0x5a68ff(0x150)]['__drivers'],undefined)&&(_0xaf6eb9[_0x5a68ff(0x150)]['__drivers']['push'](_0xb5d978),_0xaf6eb9['global'][_0x5a68ff(0x1a8)]['push'](_0xb5d978)),_0xb5d978;}}return _0x3e809e[_0x1b93c8(0x13f)]=_0x3e809e[_0x1b93c8(0x178)],_0x3e809e[_0x1b93c8(0x178)]=_0x190ba4,_0x23882e['HttpClient']=_0x402c4c,_0x3e809e;};module[a29_0x57aff1(0x156)]['browserstackAgentObservability']=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a30_0x129604=a30_0x2775;(function(_0xd4d1f1,_0x404510){const _0x362272=a30_0x2775,_0x1f6676=_0xd4d1f1();while(!![]){try{const _0x2c8a87=parseInt(_0x362272(0xba))/0x1*(parseInt(_0x362272(0xb6))/0x2)+-parseInt(_0x362272(0xbc))/0x3*(-parseInt(_0x362272(0xb8))/0x4)+parseInt(_0x362272(0xbb))/0x5*(-parseInt(_0x362272(0xbe))/0x6)+parseInt(_0x362272(0xb4))/0x7*(-parseInt(_0x362272(0xc0))/0x8)+-parseInt(_0x362272(0xc1))/0x9+parseInt(_0x362272(0xbf))/0xa*(parseInt(_0x362272(0xb5))/0xb)+parseInt(_0x362272(0xc2))/0xc;if(_0x2c8a87===_0x404510)break;else _0x1f6676['push'](_0x1f6676['shift']());}catch(_0x129147){_0x1f6676['push'](_0x1f6676['shift']());}}}(a30_0x1841,0xc612b));function a30_0x2775(_0x5e9503,_0x20dabf){const _0x1841d7=a30_0x1841();return a30_0x2775=function(_0x277574,_0x4d9c9d){_0x277574=_0x277574-0xb4;let _0x36de69=_0x1841d7[_0x277574];return _0x36de69;},a30_0x2775(_0x5e9503,_0x20dabf);}const requestSpy=require('../../../helpers/request-spy'),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require(a30_0x129604(0xb7));exports['mochaHooks']={'beforeAll'(){const _0x8a870f=a30_0x129604,_0x80ea2f={'bjeyB':function(_0x17145d){return _0x17145d();}},_0x27ecc4='browserstack internal helper hook';_0x80ea2f[_0x8a870f(0xb9)](addRequestSpy);},'afterAll'(){const _0x562e3c=a30_0x129604,_0x3bccbf='browserstack internal helper hook';this['timeout'](0xea60),requestSpy[_0x562e3c(0xbd)]();}};function a30_0x1841(){const _0x50e33f=['../../../helpers/test-observability/utils','4veLgTy','bjeyB','21546DJyjWZ','7690CHJLpF','2760981mMAGVM','restore','3228bhXTXD','223670FIGUPt','1481344sULLDy','5998995mZGFmK','1847064CXqyGy','14xvDBhz','671pqASvm','22qdwvyO'];a30_0x1841=function(){return _0x50e33f;};return a30_0x1841();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a31_0x35e8(){const _0x262b21=['hookAnalyticsId','bfxEY','pid','state','hTNfu','LmXyr','getBrowserVersion','1346043mUXsnO','getBrowserName','browserstack','_afterEach','6585120hIfGja','dLPSq','getHookSkippedTests','KkfTO','../../utils/logPatcher','hook:','../../../helpers/testhub/utils','fromEntries','getCapabilities','hPsfD','platformVersion','indexOf','sendPlatformDetails','1216502qoIYtR','neese','slice','split','toISOString','BiqXN','EaDJL','kEtnO','hook','__cloud_provider___','4VPGrFC','filter','emit','passed','BAcjT','_beforeAll','RGqCr','mGmfe','forEach','toJSON','TEST_PLATFORM','338517CLZMlX','markedStatus','kxzUd','XAdzF','../../../../package.json','YKfor','oMnkV','739967JyAbLP','substring','../../../helpers/helper','zUNqa','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','fifCT','6843114DYLigZ','5998244ggLPBs','generic','../../../helpers/test-observability/utils','ZihCA','ZFTLN','reduce','concat','parent','get','getPlatform','failed','getSession','YSjUa','js-','mapTestHooks','8uuDJVc','5EorHbV','_afterAll','_beforeEach','wUwkf','eZxxq','bJvuF','suites'];a31_0x35e8=function(){return _0x262b21;};return a31_0x35e8();}const a31_0x149d5e=a31_0x2f54;function a31_0x2f54(_0x5840ea,_0x23a602){const _0x35e894=a31_0x35e8();return a31_0x2f54=function(_0x2f54b7,_0x1cebc9){_0x2f54b7=_0x2f54b7-0xa5;let _0x483c02=_0x35e894[_0x2f54b7];return _0x483c02;},a31_0x2f54(_0x5840ea,_0x23a602);}(function(_0x23f23,_0x1b4a77){const _0x1e237a=a31_0x2f54,_0x284c64=_0x23f23();while(!![]){try{const _0x29586d=parseInt(_0x1e237a(0xc9))/0x1+-parseInt(_0x1e237a(0xad))/0x2+-parseInt(_0x1e237a(0xee))/0x3*(parseInt(_0x1e237a(0xb7))/0x4)+-parseInt(_0x1e237a(0xe0))/0x5*(-parseInt(_0x1e237a(0xcf))/0x6)+-parseInt(_0x1e237a(0xd0))/0x7+parseInt(_0x1e237a(0xdf))/0x8*(-parseInt(_0x1e237a(0xc2))/0x9)+parseInt(_0x1e237a(0xf2))/0xa;if(_0x29586d===_0x1b4a77)break;else _0x284c64['push'](_0x284c64['shift']());}catch(_0x3f5551){_0x284c64['push'](_0x284c64['shift']());}}}(a31_0x35e8,0x8f729));const {v4:uuidv4}=require('uuid'),{name,version}=require(a31_0x149d5e(0xc6)),logPatcher=require(a31_0x149d5e(0xf6)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x149d5e(0xd2)),{consoleHolder}=require('../../../helpers/test-observability/constants'),{getPlatformVersion}=require(a31_0x149d5e(0xcb)),{shouldProcessEventForTesthub}=require(a31_0x149d5e(0xa6)),{isFunction}=require('lodash'),{patchConsoleLogger}=require(a31_0x149d5e(0xd2));patchConsoleLogger(),exports['getTestEnv']=()=>{const _0x3c8aef=a31_0x149d5e,_0x408cff={'fifCT':_0x3c8aef(0xd1),'ZihCA':function(_0x21f2f7){return _0x21f2f7();}};return{'ci':_0x408cff[_0x3c8aef(0xce)],'key':_0x408cff[_0x3c8aef(0xd3)](uuidv4),'version':version,'collector':_0x3c8aef(0xdd)+name};},exports['getHookDetails']=_0x1ee43c=>{const _0x1005bc=a31_0x149d5e,_0x588ff0={};_0x588ff0[_0x1005bc(0xc7)]=function(_0x25cc61,_0x461147){return _0x25cc61!==_0x461147;},_0x588ff0[_0x1005bc(0xb3)]='string',_0x588ff0[_0x1005bc(0xbb)]=_0x1005bc(0xa5),_0x588ff0['hTNfu']=_0x1005bc(0xb5);const _0x446dfc=_0x588ff0;if(!_0x1ee43c||_0x446dfc[_0x1005bc(0xc7)](typeof _0x1ee43c,_0x446dfc[_0x1005bc(0xb3)]))return[null,null];if(_0x446dfc[_0x1005bc(0xc7)](_0x1ee43c[_0x1005bc(0xab)](_0x446dfc['BAcjT']),-0x1)){const _0x4737c4=_0x1ee43c[_0x1005bc(0xb0)](_0x446dfc[_0x1005bc(0xbb)]);return[_0x4737c4[0x0][_0x1005bc(0xaf)](0x0,-0x1)[_0x1005bc(0xb0)]('\x22')[0x1],_0x4737c4[0x1][_0x1005bc(0xca)](0x1)];}else{if(_0x446dfc[_0x1005bc(0xc7)](_0x1ee43c[_0x1005bc(0xab)](_0x446dfc[_0x1005bc(0xeb)]),-0x1)){const _0x1474c6=_0x1ee43c[_0x1005bc(0xb0)](_0x446dfc[_0x1005bc(0xeb)]);return[_0x1474c6[0x0]['slice'](0x0,-0x1)[_0x1005bc(0xb0)]('\x22')[0x1],_0x1ee43c];}}return[null,null];},exports['getHooksForTest']=_0x1d2a27=>{const _0xc21d78=a31_0x149d5e,_0x1b7678={'YSjUa':function(_0x3cc8ed,_0x159cdf){return _0x3cc8ed(_0x159cdf);},'dLPSq':'_beforeAll','SWqkt':_0xc21d78(0xe1),'pcJCd':_0xc21d78(0xe2),'hPsfD':_0xc21d78(0xf1)};if(!_0x1d2a27||!_0x1d2a27[_0xc21d78(0xd7)])return[];const _0xfd80b5=[];return[_0x1b7678[_0xc21d78(0xf3)],_0x1b7678['SWqkt'],_0x1b7678['pcJCd'],_0x1b7678[_0xc21d78(0xa9)]][_0xc21d78(0xbf)](_0x332ac6=>{const _0x11877c=_0xc21d78,_0x3a3555={'kxzUd':function(_0x5d2d38,_0x5ad903){const _0x52a4ed=a31_0x2f54;return _0x1b7678[_0x52a4ed(0xdc)](_0x5d2d38,_0x5ad903);}},_0x17178e=_0x1d2a27[_0x11877c(0xd7)][_0x332ac6]||[];_0x17178e['forEach'](_0x1f24a4=>{const _0x3c1aa9=_0x11877c;_0x1f24a4[_0x3c1aa9(0xe7)]&&!_0x3a3555[_0x3c1aa9(0xc4)](isInternalHook,_0x1f24a4['fn'])&&_0xfd80b5['push'](_0x1f24a4[_0x3c1aa9(0xe7)]);});}),[..._0xfd80b5,...exports['getHooksForTest'](_0x1d2a27[_0xc21d78(0xd7)])];},exports[a31_0x149d5e(0xde)]=_0x10d85e=>{const _0x18acb4=a31_0x149d5e,_0x73d0d={'wUwkf':function(_0x12a834){return _0x12a834();},'bAkHY':function(_0x3d8f5b,_0x3dd963){return _0x3d8f5b===_0x3dd963;},'XAdzF':_0x18acb4(0xf1),'uNYTi':_0x18acb4(0xbc),'oMnkV':_0x18acb4(0xe1),'AJHYz':_0x18acb4(0xe2)};if(!_0x10d85e||!_0x10d85e[_0x18acb4(0xd7)])return;[_0x73d0d['uNYTi'],_0x73d0d[_0x18acb4(0xc8)],_0x73d0d['AJHYz'],_0x73d0d[_0x18acb4(0xc5)]]['forEach'](_0x420782=>{const _0x10ca9c=_0x18acb4,_0x64a1da={'DcXkG':function(_0x23596c){const _0x54fdbb=a31_0x2f54;return _0x73d0d[_0x54fdbb(0xe3)](_0x23596c);},'bVUHY':function(_0x2906ae,_0x4f046d){return _0x73d0d['bAkHY'](_0x2906ae,_0x4f046d);},'ZFTLN':_0x73d0d[_0x10ca9c(0xc5)],'neese':function(_0x22b055){const _0x347f4e=_0x10ca9c;return _0x73d0d[_0x347f4e(0xe3)](_0x22b055);}},_0x921bbc=_0x10d85e['parent'][_0x420782]||[];_0x921bbc['forEach'](_0x46bde6=>{const _0x5aca1b=_0x10ca9c;if(!_0x46bde6['hookAnalyticsId'])_0x46bde6['hookAnalyticsId']=_0x64a1da['DcXkG'](uuidv4);else _0x46bde6[_0x5aca1b(0xc3)]&&_0x64a1da['bVUHY'](_0x420782,_0x64a1da[_0x5aca1b(0xd4)])&&(_0x46bde6[_0x5aca1b(0xe7)]=_0x64a1da[_0x5aca1b(0xae)](uuidv4),delete _0x46bde6[_0x5aca1b(0xc3)]);});}),exports[_0x18acb4(0xde)](_0x10d85e[_0x18acb4(0xd7)]);},exports[a31_0x149d5e(0xac)]=async(_0x1a5694,_0x4252ed)=>{const _0x309452=a31_0x149d5e,_0x26091b={'kEtnO':function(_0x396240){return _0x396240();},'RGqCr':function(_0x439dfc,_0x577796){return _0x439dfc(_0x577796);},'MeiXD':_0x309452(0xaa),'BiqXN':function(_0x43c51e,_0x16ef43){return _0x43c51e===_0x16ef43;},'bfxEY':_0x309452(0xf0),'zUNqa':'unknown_grid','eZxxq':_0x309452(0xc1)};try{if(!_0x26091b[_0x309452(0xb4)](shouldProcessEventForTesthub))return;const _0x42e9c8=await _0x1a5694[_0x309452(0xa8)](),_0x4d6842=await _0x1a5694[_0x309452(0xdb)](),_0x20fa80={},_0x286548=Object[_0x309452(0xa7)](_0x4d6842['getCapabilities']()['map_']),_0x327d14={'product':_0x26091b[_0x309452(0xbd)](getObservabilityLinkedProductName,_0x286548),'capabilities':_0x286548,'platform':_0x42e9c8[_0x309452(0xd9)](),'platform_version':_0x42e9c8[_0x309452(0xd8)](_0x26091b['MeiXD'])?_0x42e9c8[_0x309452(0xd8)](_0x26091b['MeiXD']):_0x26091b[_0x309452(0xbd)](getPlatformVersion,_0x26091b[_0x309452(0xb2)](global[_0x309452(0xb6)],_0x26091b[_0x309452(0xe8)])),'browser':_0x42e9c8[_0x309452(0xef)](),'browser_version':_0x42e9c8[_0x309452(0xed)](),'session_id':_0x4d6842[_0x309452(0xc0)]()};global['__cloud_provider___']?_0x20fa80[global[_0x309452(0xb6)]]=_0x327d14:_0x20fa80[_0x26091b[_0x309452(0xcc)]]=_0x327d14,process[_0x309452(0xb9)]('bs:addPlatformDetails:'+process[_0x309452(0xe9)],{'timestamp':new Date()[_0x309452(0xb1)](),'level':null,'message':null,'kind':_0x26091b[_0x309452(0xe4)],'http_response':_0x20fa80,'uuid':_0x4252ed});}catch(_0x1cb183){_0x26091b[_0x309452(0xbd)](debug,_0x309452(0xcd)+_0x1cb183);}},exports[a31_0x149d5e(0xf4)]=_0x3f228a=>{const _0x26d420=a31_0x149d5e,_0x14aeb2={};_0x14aeb2['bJvuF']=function(_0x2fca7e,_0x572b9f){return _0x2fca7e!==_0x572b9f;},_0x14aeb2[_0x26d420(0xec)]=_0x26d420(0xb5),_0x14aeb2[_0x26d420(0xbe)]=_0x26d420(0xba),_0x14aeb2[_0x26d420(0xf5)]=_0x26d420(0xda);const _0x5b0f1d=_0x14aeb2,_0x5b5b16=_0x3f228a[_0x26d420(0xe6)][_0x26d420(0xd5)]((_0x33b89e,_0x5c6e67)=>{const _0x53e2e2=_0x26d420,_0x4c2e8b=exports[_0x53e2e2(0xf4)](_0x5c6e67);return _0x4c2e8b&&(_0x33b89e=_0x33b89e[_0x53e2e2(0xd6)](_0x4c2e8b)),_0x33b89e;},[]),_0x4dccfc=_0x3f228a['tests'][_0x26d420(0xb8)](_0x3b7107=>{const _0x526fa1=_0x26d420,_0x360e97=_0x5b0f1d['bJvuF'](_0x3b7107['type'],_0x5b0f1d[_0x526fa1(0xec)])&&!_0x3b7107[_0x526fa1(0xc3)]&&_0x5b0f1d[_0x526fa1(0xe5)](_0x3b7107[_0x526fa1(0xea)],_0x5b0f1d[_0x526fa1(0xbe)])&&_0x5b0f1d['bJvuF'](_0x3b7107[_0x526fa1(0xea)],_0x5b0f1d[_0x526fa1(0xf5)])&&!_0x3b7107['pending'];return _0x360e97;});return _0x4dccfc[_0x26d420(0xd6)](_0x5b5b16);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x46a430=a32_0x1c92;function a32_0x1c92(_0x31c95d,_0x1c9769){const _0x5434cd=a32_0x5434();return a32_0x1c92=function(_0x1c92d2,_0x42ce99){_0x1c92d2=_0x1c92d2-0x1d0;let _0x448873=_0x5434cd[_0x1c92d2];return _0x448873;},a32_0x1c92(_0x31c95d,_0x1c9769);}(function(_0x149876,_0x225663){const _0x2ce49b=a32_0x1c92,_0x16d702=_0x149876();while(!![]){try{const _0x23edbd=parseInt(_0x2ce49b(0x1e4))/0x1+-parseInt(_0x2ce49b(0x1ef))/0x2+-parseInt(_0x2ce49b(0x225))/0x3+parseInt(_0x2ce49b(0x1d6))/0x4*(parseInt(_0x2ce49b(0x270))/0x5)+parseInt(_0x2ce49b(0x264))/0x6*(-parseInt(_0x2ce49b(0x20a))/0x7)+parseInt(_0x2ce49b(0x211))/0x8+parseInt(_0x2ce49b(0x271))/0x9;if(_0x23edbd===_0x225663)break;else _0x16d702['push'](_0x16d702['shift']());}catch(_0x3cb72f){_0x16d702['push'](_0x16d702['shift']());}}}(a32_0x5434,0x83500));const util=require(a32_0x46a430(0x239)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x46a430(0x1fe)),{percyAutoCapture}=require(a32_0x46a430(0x26e)),{sendPlatformDetails}=require(a32_0x46a430(0x1fa)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x46a430(0x21c)),PerformanceTester=require(a32_0x46a430(0x24c)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a32_0x46a430(0x1e0)),scripts=require(a32_0x46a430(0x215)),globals=require(a32_0x46a430(0x1e6)),logger=require(a32_0x46a430(0x259))['winstonLogger'],{shouldProcessEventForTesthub}=require(a32_0x46a430(0x21a)),testHubConstants=require(a32_0x46a430(0x240));exports['mochaHooks']={'beforeAll'(){const _0x474a46=a32_0x46a430,_0x415518={'zGMKv':function(_0x546e42,_0x4a9dc9,_0x2e6a41,_0x346b35){return _0x546e42(_0x4a9dc9,_0x2e6a41,_0x346b35);},'muxhz':'failed','EtAAq':_0x474a46(0x23c),'xykyx':function(_0x270db2,_0x209335,_0x52a509){return _0x270db2(_0x209335,_0x52a509);},'MFWGG':_0x474a46(0x20f),'KDlVC':function(_0x49d4cd){return _0x49d4cd();},'GpoFZ':'index','Fifri':_0x474a46(0x250)};PerformanceTester[_0x474a46(0x230)]();const _0x322dd2='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x474a46(0x1e9)],()=>{const _0x29c6c8=_0x474a46;global[_0x29c6c8(0x26d)]=[],global['__sessionFailed']=![],global['driverCleanup']=async()=>{const _0x4fd1ec=_0x29c6c8;let _0x1a8d96=![];try{await global[_0x4fd1ec(0x23a)][0x0]['session_'],_0x1a8d96=!![],global['__sessionFailed']?await _0x415518[_0x4fd1ec(0x253)](markSessionStatus,global['__drivers'][0x0],_0x415518['muxhz'],global[_0x4fd1ec(0x26d)][_0x4fd1ec(0x24e)](_0x415518[_0x4fd1ec(0x208)])):await _0x415518[_0x4fd1ec(0x20d)](markSessionStatus,global['__drivers'][0x0],_0x415518['MFWGG']);}catch(_0x516ffb){logger[_0x4fd1ec(0x244)]('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x516ffb);}global[_0x4fd1ec(0x26d)]=[],global['__sessionFailed']=![];if(_0x1a8d96)try{try{_0x415518[_0x4fd1ec(0x1df)](shouldProcessEventForTesthub)&&(global[_0x4fd1ec(0x23a)][0x0]&&await _0x415518['xykyx'](sendPlatformDetails,global[_0x4fd1ec(0x23a)][0x0],this['currentTest']?this['currentTest'][_0x4fd1ec(0x1e2)]:null));}catch(_0x44c6e7){logger[_0x4fd1ec(0x244)]('Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20'+_0x44c6e7);}await global[_0x4fd1ec(0x23a)][0x0][_0x4fd1ec(0x233)]();}catch(_0x4e55f5){logger[_0x4fd1ec(0x244)](_0x4fd1ec(0x260)+_0x4e55f5);}};},{'platform':_0x415518['xykyx'](nestedKeyValue,global[_0x474a46(0x1fd)],[_0x415518[_0x474a46(0x25c)]]),'hookType':_0x415518['Fifri']})();},'beforeEach'(_0x19a9ec){const _0x260a43=a32_0x46a430,_0x3dc960={'kkLef':function(_0x41bcd0,_0x501e8e){return _0x41bcd0>_0x501e8e;},'YaXSB':function(_0x1b4eda,_0x1a2bd2){return _0x1b4eda>_0x1a2bd2;},'cMhHD':_0x260a43(0x24a),'ENJOe':function(_0x337af3,_0x3dc2ce,_0x188404){return _0x337af3(_0x3dc2ce,_0x188404);},'aFcIg':_0x260a43(0x201),'vZPBI':function(_0x58b959){return _0x58b959();},'btLhG':function(_0x391949,_0x272a69){return _0x391949>_0x272a69;},'XRAqi':_0x260a43(0x22b),'QkoXb':function(_0x3197c1,_0x3e6c9c){return _0x3197c1===_0x3e6c9c;},'kxQnr':_0x260a43(0x1f3),'muqRx':function(_0x361434,_0x2f80cb){return _0x361434===_0x2f80cb;},'NqCej':'https:','LVtIL':_0x260a43(0x1f2),'AGgCS':_0x260a43(0x1d8),'zErqB':'browserstackTestName','MDIiA':function(_0x534ba5,_0x35ca74,_0x21b55d){return _0x534ba5(_0x35ca74,_0x21b55d);},'HXbJv':_0x260a43(0x21e),'PHgMw':_0x260a43(0x1f6)};globals[_0x260a43(0x23f)](_0x3dc960[_0x260a43(0x1f0)],this[_0x260a43(0x23d)][_0x260a43(0x1e3)]()['join'](_0x3dc960['cMhHD'])),PerformanceTester[_0x260a43(0x229)](PerformanceSdkEvents[_0x260a43(0x1e9)],()=>{const _0x160087='browserstack internal helper hook';new Promise(async _0x4c9cc3=>{const _0x5a11ea=a32_0x1c92;let _0x67a42d=!![];try{_0x3dc960[_0x5a11ea(0x20b)](global[_0x5a11ea(0x23a)][_0x5a11ea(0x227)],0x1)&&(await global[_0x5a11ea(0x268)](),global[_0x5a11ea(0x23a)]['shift']()),_0x3dc960[_0x5a11ea(0x234)](global['__drivers'][0x0]['quitCount_'],0x0)&&(_0x67a42d=![],await global['driverCleanup']());}catch(_0xb9b972){logger['debug'](_0x5a11ea(0x260)+_0xb9b972);}try{Array['isArray'](global[_0x5a11ea(0x23a)])&&global[_0x5a11ea(0x23a)][0x0]&&(global[_0x5a11ea(0x23a)][0x0][_0x5a11ea(0x213)]=this[_0x5a11ea(0x23d)][_0x5a11ea(0x1e3)]()['join'](_0x3dc960['cMhHD'])),global[_0x5a11ea(0x213)]=this[_0x5a11ea(0x23d)][_0x5a11ea(0x1e3)]()[_0x5a11ea(0x24e)](_0x3dc960[_0x5a11ea(0x1e5)]);}catch(_0x2c08b6){logger['debug'](_0x5a11ea(0x25b)+_0x2c08b6);}this[_0x5a11ea(0x23d)]['shouldScanTestForAccessibility']=_0x3dc960[_0x5a11ea(0x24d)](shouldScanTestForAccessibility,this['currentTest'][_0x5a11ea(0x1e3)](),!![]),globals[_0x5a11ea(0x23f)](_0x3dc960[_0x5a11ea(0x204)],this[_0x5a11ea(0x23d)][_0x5a11ea(0x217)]),this[_0x5a11ea(0x23d)][_0x5a11ea(0x200)]=!![];if(_0x3dc960['vZPBI'](isAccessibilityAutomationSession)&&_0x67a42d&&Array[_0x5a11ea(0x25e)](global[_0x5a11ea(0x23a)])&&_0x3dc960[_0x5a11ea(0x1f4)](global[_0x5a11ea(0x23a)][_0x5a11ea(0x227)],0x0)&&globals[_0x5a11ea(0x202)](_0x3dc960[_0x5a11ea(0x249)]))try{const _0x580b03=await global[_0x5a11ea(0x23a)][0x0][_0x5a11ea(0x1d0)];if(_0x580b03){let _0x1ac62f=!![];const _0xf8c3fd=await global[_0x5a11ea(0x23a)][0x0][_0x5a11ea(0x269)]();let _0x2c4685;try{_0x2c4685=new URL(_0xf8c3fd);}catch(_0x402827){_0x1ac62f=![];}_0x1ac62f=_0x3dc960[_0x5a11ea(0x1f7)](_0x2c4685['protocol'],_0x3dc960['kxQnr'])||_0x3dc960[_0x5a11ea(0x205)](_0x2c4685['protocol'],_0x3dc960['NqCej']),_0x1ac62f&&(this['currentTest']['shouldScanTestForAccessibility']&&logger[_0x5a11ea(0x1e1)](_0x3dc960[_0x5a11ea(0x23b)])),this[_0x5a11ea(0x23d)][_0x5a11ea(0x200)]=this['currentTest'][_0x5a11ea(0x217)],this[_0x5a11ea(0x23d)][_0x5a11ea(0x217)]&&logger[_0x5a11ea(0x1e1)](_0x3dc960[_0x5a11ea(0x243)]);}}catch(_0xc3ae87){logger[_0x5a11ea(0x252)](_0x5a11ea(0x1eb)+util['format'](_0xc3ae87));}_0x3dc960[_0x5a11ea(0x26b)](_0x4c9cc3);})['then'](()=>{const _0x50582e=a32_0x1c92;_0x3dc960[_0x50582e(0x26b)](_0x19a9ec);});},{'platform':_0x3dc960[_0x260a43(0x247)](nestedKeyValue,global[_0x260a43(0x1fd)],[_0x3dc960[_0x260a43(0x257)]]),'hookType':_0x3dc960[_0x260a43(0x1de)]})();},'afterEach'(_0x46fca7){const _0x2642df=a32_0x46a430,_0x46a74f={'ZQLoC':'\x20-\x20','ZoGXY':function(_0xa4c44a,_0x5c4ac1){return _0xa4c44a!==_0x5c4ac1;},'WFbnE':_0x2642df(0x20f),'rqhxq':function(_0x1aee2d,_0x3d5df5,_0x41d5a8){return _0x1aee2d(_0x3d5df5,_0x41d5a8);},'uCsTL':function(_0x479f36,_0x2edaec){return _0x479f36+_0x2edaec;},'xqvkF':_0x2642df(0x1d2),'CqvGT':_0x2642df(0x252),'ElvwS':'Passed','oxCrB':'info','bnJMa':function(_0x1f3562,_0x17ef5c){return _0x1f3562>_0x17ef5c;},'Ovcuj':function(_0x54680c,_0xaec002){return _0x54680c===_0xaec002;},'iqWzK':_0x2642df(0x222),'YaJMN':_0x2642df(0x258),'xknuu':function(_0x5945a6,_0x1ea760,_0x1b00ab,_0x336b80){return _0x5945a6(_0x1ea760,_0x1b00ab,_0x336b80);},'VXPOF':_0x2642df(0x22b),'WSZLf':_0x2642df(0x201),'wIAlD':_0x2642df(0x272),'aIZgC':_0x2642df(0x266),'FMoud':_0x2642df(0x241),'fEpaw':_0x2642df(0x1f8),'CFoEb':function(_0x378776){return _0x378776();},'CIcQf':function(_0x5553d2,_0x3d4e81,_0x7f8da8){return _0x5553d2(_0x3d4e81,_0x7f8da8);},'fgOwq':function(_0x1b5a51){return _0x1b5a51();},'kdVCe':_0x2642df(0x244),'OllUa':function(_0x3e7238,_0x25b31d,_0x586260){return _0x3e7238(_0x25b31d,_0x586260);},'EHvEi':_0x2642df(0x21e),'XHUnO':_0x2642df(0x235)},_0x4e5273='browserstack internal helper hook';this[_0x2642df(0x1ea)](0xfde8),global['sessionName']=this[_0x2642df(0x23d)]['titlePath']()['join'](_0x46a74f[_0x2642df(0x267)]),PerformanceTester[_0x2642df(0x229)](PerformanceSdkEvents[_0x2642df(0x1e9)],()=>{const _0x222769={'yXDuG':function(_0xa0e437){const _0x12b9fa=a32_0x1c92;return _0x46a74f[_0x12b9fa(0x1d3)](_0xa0e437);}},_0x29c209=async(_0x23e2d4,_0x3a16d5)=>{const _0x1b626d=a32_0x1c92;await global[_0x1b626d(0x23a)][0x0]['executeScript'](_0x1b626d(0x20e)+_0x23e2d4+_0x1b626d(0x256)+_0x3a16d5+_0x1b626d(0x254));};new Promise(async _0x3ff9b4=>{const _0x155113=a32_0x1c92,_0x16202f={'nVegL':_0x46a74f[_0x155113(0x267)],'kkAAt':function(_0x2f40fa,_0x2388f0){const _0x162652=_0x155113;return _0x46a74f[_0x162652(0x218)](_0x2f40fa,_0x2388f0);},'lDpXF':_0x46a74f[_0x155113(0x1d9)],'cgfam':function(_0x4d4ce5,_0x28acdd,_0x202d71){return _0x46a74f['rqhxq'](_0x4d4ce5,_0x28acdd,_0x202d71);},'IhNzF':function(_0x22ce3a,_0x45fa6d){const _0x496da8=_0x155113;return _0x46a74f[_0x496da8(0x1ff)](_0x22ce3a,_0x45fa6d);},'LDvUv':_0x46a74f[_0x155113(0x1f5)],'RSJGU':_0x46a74f['CqvGT'],'owZMQ':function(_0x2e705a,_0x4ad035,_0x8b4ce3){const _0xcd5258=_0x155113;return _0x46a74f[_0xcd5258(0x1f9)](_0x2e705a,_0x4ad035,_0x8b4ce3);},'ZDOEU':_0x46a74f[_0x155113(0x216)],'KvsxK':_0x46a74f[_0x155113(0x228)]};try{_0x46a74f[_0x155113(0x237)](global['__drivers']['length'],0x1)&&(await global[_0x155113(0x268)](),global['__drivers'][_0x155113(0x242)](),global[_0x155113(0x26d)]=[],global[_0x155113(0x207)]=![]);try{if(global[_0x155113(0x26c)]&&_0x46a74f[_0x155113(0x22e)](global[_0x155113(0x212)],_0x46a74f['iqWzK'])&&global[_0x155113(0x23a)][0x0]){const _0x58a867=_0x46a74f[_0x155113(0x237)](global[_0x155113(0x209)]['length'],0x0)?!!global[_0x155113(0x209)][0x0][_0x155113(0x1fc)]||!!global[_0x155113(0x209)][0x0][_0x46a74f[_0x155113(0x21d)]]:![],_0x23daa1={};_0x23daa1['app']=_0x58a867,await _0x46a74f[_0x155113(0x251)](percyAutoCapture,global[_0x155113(0x23a)][0x0],_0x46a74f[_0x155113(0x21b)],_0x23daa1);}}catch(_0x327659){logger[_0x155113(0x244)](_0x155113(0x220)+_0x327659);}!global[_0x155113(0x25d)]&&(await PerformanceTester[_0x155113(0x229)](PerformanceAutEvents['SESSION_NAME'],async()=>{const _0x652d7f=_0x155113;await global[_0x652d7f(0x23a)][0x0]['executeScript'](_0x652d7f(0x232)+JSON[_0x652d7f(0x255)](this[_0x652d7f(0x23d)][_0x652d7f(0x1e3)]()[_0x652d7f(0x24e)](_0x16202f[_0x652d7f(0x22a)]))+'}}');})(),global[_0x155113(0x23a)][0x0][_0x155113(0x265)]=!![]),await PerformanceTester[_0x155113(0x229)](PerformanceAutEvents['SESSION_STATUS'],async()=>{const _0x20a5ce=_0x155113,_0x9f0152=_0x16202f[_0x20a5ce(0x210)](this[_0x20a5ce(0x23d)][_0x20a5ce(0x221)],_0x16202f['lDpXF']);_0x9f0152?(global['__sessionFailed']=!![],global[_0x20a5ce(0x26d)][_0x20a5ce(0x231)](this[_0x20a5ce(0x23d)][_0x20a5ce(0x26a)][_0x20a5ce(0x261)]),await _0x16202f['cgfam'](_0x29c209,JSON[_0x20a5ce(0x255)](_0x16202f[_0x20a5ce(0x1d4)](_0x16202f[_0x20a5ce(0x22c)],this[_0x20a5ce(0x23d)][_0x20a5ce(0x26a)][_0x20a5ce(0x261)])),_0x16202f[_0x20a5ce(0x1db)])):await _0x16202f[_0x20a5ce(0x1d1)](_0x29c209,JSON[_0x20a5ce(0x255)](_0x16202f[_0x20a5ce(0x219)]),_0x16202f[_0x20a5ce(0x22f)]);})();}catch(_0x4dfce1){logger[_0x155113(0x244)](_0x155113(0x245)+_0x4dfce1);}try{if(this[_0x155113(0x23d)]['accessibilityScanStarted']&&globals[_0x155113(0x202)](_0x46a74f[_0x155113(0x1d7)])&&globals[_0x155113(0x202)](_0x46a74f[_0x155113(0x1f1)])){logger[_0x155113(0x1e1)](_0x46a74f[_0x155113(0x236)]);const _0x1b3d7c={};_0x1b3d7c[_0x155113(0x1ec)]=this['currentTest'][_0x155113(0x1e2)],_0x1b3d7c[_0x155113(0x262)]=process[_0x155113(0x1e7)][testHubConstants[_0x155113(0x22d)][_0x155113(0x1d5)]],_0x1b3d7c[_0x155113(0x21f)]=process[_0x155113(0x1e7)][testHubConstants[_0x155113(0x22d)][_0x155113(0x1dd)]];const _0x715e5a=_0x1b3d7c;logger[_0x155113(0x244)](_0x155113(0x263)+JSON[_0x155113(0x255)](_0x715e5a)),logger[_0x155113(0x244)](_0x46a74f[_0x155113(0x1dc)]);const _0x4e17d1={};_0x4e17d1[_0x155113(0x23e)]=_0x46a74f['FMoud'],await PerformanceTester[_0x155113(0x229)](PerformanceA11yEvents[_0x155113(0x26f)],async()=>{const _0xc8dd61=_0x155113;logger[_0xc8dd61(0x244)](util['format'](await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0xc8dd61(0x214)],{'method':global[_0xc8dd61(0x213)]})));},_0x4e17d1)(),await PerformanceTester[_0x155113(0x229)](PerformanceA11yEvents[_0x155113(0x248)],async()=>{const _0x3250fd=_0x155113;await global[_0x3250fd(0x23a)][0x0][_0x3250fd(0x238)](scripts[_0x3250fd(0x246)],_0x715e5a);})(),logger[_0x155113(0x1e1)](_0x46a74f[_0x155113(0x1da)]);}}catch(_0x45e82a){logger[_0x155113(0x252)](_0x155113(0x24f)+this['currentTest'][_0x155113(0x1e3)]()+'.\x20Error\x20:',_0x45e82a);}try{try{if(_0x46a74f[_0x155113(0x224)](shouldProcessEventForTesthub)){global[_0x155113(0x23a)][0x0]&&await _0x46a74f['CIcQf'](sendPlatformDetails,global[_0x155113(0x23a)][0x0],this[_0x155113(0x23d)]?this[_0x155113(0x23d)]['testAnalyticsId']:null);if(_0x46a74f[_0x155113(0x1d3)](isBrowserstackInfra)){PerformanceTester[_0x155113(0x1ee)](PerformanceO11yEvents['SYNC']);const _0x24d0d5='ObservabilitySync:'+Date[_0x155113(0x25f)]();await _0x46a74f[_0x155113(0x25a)](_0x29c209,JSON[_0x155113(0x255)](_0x24d0d5),_0x46a74f['kdVCe']),PerformanceTester[_0x155113(0x1fb)](PerformanceO11yEvents['SYNC']);}}}catch(_0x4dd861){logger[_0x155113(0x244)]('Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20'+_0x4dd861),PerformanceTester[_0x155113(0x1fb)](PerformanceO11yEvents[_0x155113(0x1e8)],![],_0x4dd861);}_0x46a74f['bnJMa'](global[_0x155113(0x23a)][0x0][_0x155113(0x226)],0x0)&&await global[_0x155113(0x268)]();}catch(_0x327485){logger[_0x155113(0x244)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x327485);}_0x46a74f[_0x155113(0x1d3)](_0x3ff9b4);})['then'](()=>{const _0x2a044f=a32_0x1c92;_0x222769[_0x2a044f(0x20c)](_0x46fca7);});},{'platform':_0x46a74f['OllUa'](nestedKeyValue,global[_0x2642df(0x1fd)],[_0x46a74f[_0x2642df(0x223)]]),'hookType':_0x46a74f[_0x2642df(0x206)]})();},'afterAll'(_0x278f2b){const _0xc1d150=a32_0x46a430,_0x207206={'pyKiV':function(_0x2a9c3a){return _0x2a9c3a();},'rsiUA':function(_0x56d7e9,_0x45bc45,_0x508e06){return _0x56d7e9(_0x45bc45,_0x508e06);},'uobyA':_0xc1d150(0x21e),'xuQhE':'afterAll'},_0x10803c='browserstack internal helper hook';this[_0xc1d150(0x1ea)](0xfde8),PerformanceTester[_0xc1d150(0x229)](PerformanceSdkEvents[_0xc1d150(0x1e9)],()=>{const _0x49e3c5=_0xc1d150,_0x32e286={'CARtK':function(_0x50454e){return _0x207206['pyKiV'](_0x50454e);}};new Promise(async _0x35e905=>{const _0x4661a0=a32_0x1c92;await global[_0x4661a0(0x268)](),_0x32e286['CARtK'](_0x35e905);})[_0x49e3c5(0x203)]()['finally'](()=>{const _0x3bcac0=_0x49e3c5;_0x207206[_0x3bcac0(0x1ed)](_0x278f2b);});},{'platform':_0x207206['rsiUA'](nestedKeyValue,global[_0xc1d150(0x1fd)],[_0x207206[_0xc1d150(0x24b)]]),'hookType':_0x207206['xuQhE']})();}};function a32_0x5434(){const _0x4cbed9=['Failed\x20to\x20store\x20session\x20name:\x20','GpoFZ','__skipSessionName','isArray','now','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','message','thBuildUuid','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','5192526psRihv','sessionNameSet__','Performing\x20scan\x20before\x20saving\x20results','ZQLoC','driverCleanup','getCurrentUrl','err','vZPBI','percy','__error_messages__','../../helpers/percy/utils','PERFORM_SCAN','669935oNuvVf','5188752KzDhgi','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','session_','owZMQ','Failed:\x20','fgOwq','IhNzF','BROWSERSTACK_TESTHUB_UUID','32toUBoX','VXPOF','Automate\x20test\x20case\x20execution\x20has\x20started.','WFbnE','fEpaw','RSJGU','aIZgC','BROWSERSTACK_TESTHUB_JWT','PHgMw','KDlVC','../../helpers/performance/constants','info','testAnalyticsId','titlePath','380651BIoISU','cMhHD','../../helpers/globals','env','SYNC','SDK_HOOK','timeout','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','thTestRunUuid','pyKiV','start','2067038DULvIH','zErqB','WSZLf','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','http:','btLhG','xqvkF','beforeEach','QkoXb','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','rqhxq','./test-observability/mochaUtils','end','app','__platformCaps','../../helpers/accessibility-automation/helper','uCsTL','accessibilityScanStarted','bstackA11yShouldScan','getGlobal','then','aFcIg','muqRx','XHUnO','__sessionFailed','EtAAq','capabilities','7YfwHRG','kkLef','yXDuG','xykyx','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','passed','kkAAt','7480536fpGaWF','percyCaptureMode','browserstackSessionName','performScan','../../helpers/accessibility-automation/scripts','ElvwS','shouldScanTestForAccessibility','ZoGXY','ZDOEU','../../helpers/testhub/utils','iqWzK','../../helpers/helper','YaJMN','index','thJwtToken','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','state','testcase','EHvEi','CFoEb','1582038NFZGpM','quitCount_','length','oxCrB','measureWrapper','nVegL','isAccessibilityPlatform','LDvUv','ENV_VAR','Ovcuj','KvsxK','startMonitoring','push','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','initQuit','YaXSB','afterEach','wIAlD','bnJMa','executeAsyncScript','util','__drivers','LVtIL','\x20|\x20','currentTest','command','setGlobal','../../helpers/testhub/constants','afterTest','shift','AGgCS','debug','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','saveTestResults','MDIiA','SAVE_RESULTS','XRAqi','\x20-\x20','uobyA','../../helpers/performance/performance-tester','ENJOe','join','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','beforeAll','xknuu','error','zGMKv','\x22}}','stringify',',\x22level\x22:\x20\x22','HXbJv','appium:app','../../helpers/logger','CIcQf'];a32_0x5434=function(){return _0x4cbed9;};return a32_0x5434();}
|
|
1
|
+
const a32_0x21bb23=a32_0x10ae;(function(_0x3ab081,_0x3be998){const _0x175b34=a32_0x10ae,_0x16d1c9=_0x3ab081();while(!![]){try{const _0x3b5243=-parseInt(_0x175b34(0x106))/0x1*(parseInt(_0x175b34(0x151))/0x2)+parseInt(_0x175b34(0x12a))/0x3*(parseInt(_0x175b34(0x167))/0x4)+parseInt(_0x175b34(0x133))/0x5+parseInt(_0x175b34(0x190))/0x6*(parseInt(_0x175b34(0x120))/0x7)+-parseInt(_0x175b34(0x141))/0x8*(parseInt(_0x175b34(0x16d))/0x9)+-parseInt(_0x175b34(0x14e))/0xa*(-parseInt(_0x175b34(0x176))/0xb)+-parseInt(_0x175b34(0x139))/0xc;if(_0x3b5243===_0x3be998)break;else _0x16d1c9['push'](_0x16d1c9['shift']());}catch(_0x2dd908){_0x16d1c9['push'](_0x16d1c9['shift']());}}}(a32_0x39e8,0xd77d2));function a32_0x10ae(_0x7905bc,_0x17af5a){const _0x39e875=a32_0x39e8();return a32_0x10ae=function(_0x10ae26,_0x44a1e7){_0x10ae26=_0x10ae26-0xe4;let _0x38c5d1=_0x39e875[_0x10ae26];return _0x38c5d1;},a32_0x10ae(_0x7905bc,_0x17af5a);}function a32_0x39e8(){const _0x1bb350=['VCsqp','LCXCH','afterTest','debug','VKAXF','RejLQ','__error_messages__','currentTest','SAVE_RESULTS','MOkxf','GezTc','fCvHi','WImbf','FTLga','accessibilityScanStarted','util','bstackA11yShouldScan','KlaAZ','SYNC','geYUU','setGlobal','mVAim','JlOhh','titlePath','NPPZy','\x20-\x20','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','browserstackSessionName','end','isAccessibilityPlatform','jIJza','../../helpers/globals','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','app','command','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','ErkJt','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','percyCaptureMode','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20',',\x22level\x22:\x20\x22','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','ThGoH','__platformCaps','607BtNZNh','measureWrapper','testcase','testAnalyticsId','kPuUi','protocol','__sessionFailed','jLJzk','KORGG','OgYqk','SDK_HOOK','cXZZc','quitCount_','sZrMh','SESSION_STATUS','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','message','KLedH','push','../../helpers/logger','AAXex','sessionNameSet__','hZgSb','zJswo','\x20|\x20','length','38108vBCLco','NYohF','err','rGmIb','MbKki','Failed:\x20','ObservabilitySync:','kRFED','TLKdj','http:','268572fQMUjv','browserstackTestName','./test-observability/mochaUtils','getGlobal','then','../../helpers/percy/utils','ntxia','error','Tvzhy','7249975nlnFwN','BROWSERSTACK_TESTHUB_JWT','Jciht','TWdew','BROWSERSTACK_TESTHUB_UUID','MTIQP','17238096VMPiNo','isArray','failed','ukrGa','xHujb','env','executeScript','vAinY','7486696cZQOPN','aApvW','GgGvM','Automate\x20test\x20case\x20execution\x20has\x20started.','https:','shift','HDuDj','shouldScanTestForAccessibility','driverCleanup','ENV_VAR','format','tNxIK','\x22}}','17506050DcSdmu','__skipSessionName','join','4638FvFruE','capabilities','thTestRunUuid','UubGf','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','sXPsy','winstonLogger','MYpHS','mdtVW','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','OLfph','txOVN','oWKUX','beforeEach','bwUPd','beforeAll','XUlTa','.\x20Error\x20:','LEyrO','nXyyX','passed','state','32dVdqgg','pVtdu','executeAsyncScript','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','saveTestResults','XJOXJ','9OdZylK','fZule','../../helpers/helper','thJwtToken','KBNKt','info','JhQZn','Lrduu','MWHoq','11UlkIVR','../../helpers/accessibility-automation/helper','performScan','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','index','Failed\x20to\x20store\x20session\x20name:\x20','sessionName','zkryj','Performing\x20scan\x20before\x20saving\x20results','start','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','afterAll','../../helpers/testhub/constants','GeroJ','Passed','EjHBu','ihpCT','BGtSB','stringify','session_','__drivers','lTmWB','TIKQJ','HErHK','AGZwP','timeout','822Bvyihm'];a32_0x39e8=function(){return _0x1bb350;};return a32_0x39e8();}const util=require(a32_0x21bb23(0xe9)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x21bb23(0x177)),{percyAutoCapture}=require(a32_0x21bb23(0x12f)),{sendPlatformDetails}=require(a32_0x21bb23(0x12c)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x21bb23(0x16f)),PerformanceTester=require('../../helpers/performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x21bb23(0xf9)),logger=require(a32_0x21bb23(0x119))[a32_0x21bb23(0x157)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a32_0x21bb23(0x182));exports['mochaHooks']={'beforeAll'(){const _0x46b0e3=a32_0x21bb23,_0x1c6495={'jLJzk':function(_0x552139,_0x727b9e,_0x4761fe,_0x569d6b){return _0x552139(_0x727b9e,_0x4761fe,_0x569d6b);},'nXyyX':_0x46b0e3(0x13b),'HDuDj':_0x46b0e3(0x11e),'ntxia':function(_0x4bdbdf,_0x55ebc0,_0x22cf82){return _0x4bdbdf(_0x55ebc0,_0x22cf82);},'jzMjE':_0x46b0e3(0x165),'zJswo':function(_0x19cb84){return _0x19cb84();},'ihpCT':function(_0x112f13,_0x507b24,_0x2854b0){return _0x112f13(_0x507b24,_0x2854b0);},'mVAim':'index','lTmWB':_0x46b0e3(0x160)};PerformanceTester['startMonitoring']();const _0x5ef411='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x46b0e3(0x110)],()=>{const _0x4ca104=_0x46b0e3;global[_0x4ca104(0x197)]=[],global[_0x4ca104(0x10c)]=![],global[_0x4ca104(0x149)]=async()=>{const _0x4d5b22=_0x4ca104;let _0x3aab25=![];try{await global[_0x4d5b22(0x18a)][0x0][_0x4d5b22(0x189)],_0x3aab25=!![],global[_0x4d5b22(0x10c)]?await _0x1c6495[_0x4d5b22(0x10d)](markSessionStatus,global[_0x4d5b22(0x18a)][0x0],_0x1c6495[_0x4d5b22(0x164)],global['__error_messages__'][_0x4d5b22(0x150)](_0x1c6495[_0x4d5b22(0x147)])):await _0x1c6495[_0x4d5b22(0x130)](markSessionStatus,global['__drivers'][0x0],_0x1c6495['jzMjE']);}catch(_0x8dbdd){logger[_0x4d5b22(0x194)](_0x4d5b22(0x101)+_0x8dbdd);}global[_0x4d5b22(0x197)]=[],global['__sessionFailed']=![];if(_0x3aab25)try{try{_0x1c6495[_0x4d5b22(0x11d)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x1c6495[_0x4d5b22(0x186)](sendPlatformDetails,global[_0x4d5b22(0x18a)][0x0],this[_0x4d5b22(0x198)]?this[_0x4d5b22(0x198)][_0x4d5b22(0x109)]:null));}catch(_0x3e386b){logger[_0x4d5b22(0x194)](_0x4d5b22(0x155)+_0x3e386b);}await global[_0x4d5b22(0x18a)][0x0]['initQuit']();}catch(_0x38b7e7){logger[_0x4d5b22(0x194)](_0x4d5b22(0x103)+_0x38b7e7);}};},{'platform':_0x1c6495[_0x46b0e3(0x186)](nestedKeyValue,global[_0x46b0e3(0x105)],[_0x1c6495[_0x46b0e3(0xef)]]),'hookType':_0x1c6495[_0x46b0e3(0x18b)]})();},'beforeEach'(_0x2d403f){const _0x3bbfa6=a32_0x21bb23,_0x176815={'Tvzhy':function(_0x32fa8a,_0x61f7d4){return _0x32fa8a>_0x61f7d4;},'RejLQ':function(_0x298b00,_0x5963a1){return _0x298b00>_0x5963a1;},'KORGG':_0x3bbfa6(0xf3),'KLedH':function(_0x239bc3,_0x382fd6,_0x50e144){return _0x239bc3(_0x382fd6,_0x50e144);},'GgGvM':_0x3bbfa6(0xea),'FTLga':function(_0x3254a9){return _0x3254a9();},'HErHK':function(_0x337485,_0x353c89){return _0x337485>_0x353c89;},'OgYqk':_0x3bbfa6(0xf7),'ErkJt':function(_0x25dd26,_0x1f11ad){return _0x25dd26===_0x1f11ad;},'UubGf':_0x3bbfa6(0x129),'VWIJY':_0x3bbfa6(0x145),'yvHrh':_0x3bbfa6(0x115),'XJOXJ':_0x3bbfa6(0x144),'mdtVW':function(_0x1b6120){return _0x1b6120();},'WImbf':_0x3bbfa6(0x12b),'VKAXF':_0x3bbfa6(0x17a),'QkJDX':_0x3bbfa6(0x15e)};globals[_0x3bbfa6(0xee)](_0x176815[_0x3bbfa6(0xe6)],this[_0x3bbfa6(0x198)][_0x3bbfa6(0xf1)]()['join'](_0x176815[_0x3bbfa6(0x10e)])),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x3bbfa6(0x110)],()=>{const _0x31b3d1=_0x3bbfa6,_0x33661d={'jIAwQ':function(_0x1c8bf2,_0x742c01){const _0x40cfcc=a32_0x10ae;return _0x176815[_0x40cfcc(0x132)](_0x1c8bf2,_0x742c01);},'oWKUX':function(_0x58a9d0,_0x15ee66){const _0x1f4c48=a32_0x10ae;return _0x176815[_0x1f4c48(0x196)](_0x58a9d0,_0x15ee66);},'sXPsy':_0x176815['KORGG'],'KlaAZ':function(_0x257531,_0xe6afb1,_0xba78af){const _0x40788e=a32_0x10ae;return _0x176815[_0x40788e(0x117)](_0x257531,_0xe6afb1,_0xba78af);},'hJBMh':_0x176815[_0x31b3d1(0x143)],'OurRk':function(_0x251f0c){const _0x49bbe2=_0x31b3d1;return _0x176815[_0x49bbe2(0xe7)](_0x251f0c);},'TWdew':function(_0x16d19f,_0x2b341e){const _0x48e4dd=_0x31b3d1;return _0x176815[_0x48e4dd(0x18d)](_0x16d19f,_0x2b341e);},'hZgSb':_0x176815[_0x31b3d1(0x10f)],'MOkxf':function(_0x238eb5,_0x1fe4f4){const _0x1d22d8=_0x31b3d1;return _0x176815[_0x1d22d8(0xfe)](_0x238eb5,_0x1fe4f4);},'zkryj':_0x176815[_0x31b3d1(0x154)],'MbKki':function(_0x2868e4,_0x31d8ad){const _0x459d11=_0x31b3d1;return _0x176815[_0x459d11(0xfe)](_0x2868e4,_0x31d8ad);},'KBNKt':_0x176815['VWIJY'],'JhQZn':_0x176815['yvHrh'],'GezTc':_0x176815[_0x31b3d1(0x16c)],'MTIQP':function(_0x16912d){const _0x1bf97f=_0x31b3d1;return _0x176815[_0x1bf97f(0x159)](_0x16912d);},'MYpHS':function(_0x7301bb){const _0x4793fc=_0x31b3d1;return _0x176815[_0x4793fc(0x159)](_0x7301bb);}},_0x253bdb='browserstack internal helper hook';new Promise(async _0x34c3e0=>{const _0x579406=_0x31b3d1;let _0x3c5898=!![];try{_0x33661d['jIAwQ'](global['__drivers'][_0x579406(0x11f)],0x1)&&(await global[_0x579406(0x149)](),global[_0x579406(0x18a)][_0x579406(0x146)]()),_0x33661d[_0x579406(0x15d)](global[_0x579406(0x18a)][0x0]['quitCount_'],0x0)&&(_0x3c5898=![],await global[_0x579406(0x149)]());}catch(_0x296238){logger[_0x579406(0x194)](_0x579406(0x103)+_0x296238);}try{Array[_0x579406(0x13a)](global[_0x579406(0x18a)])&&global[_0x579406(0x18a)][0x0]&&(global[_0x579406(0x18a)][0x0][_0x579406(0xf5)]=this['currentTest'][_0x579406(0xf1)]()[_0x579406(0x150)](_0x33661d['sXPsy'])),global[_0x579406(0xf5)]=this['currentTest'][_0x579406(0xf1)]()[_0x579406(0x150)](_0x33661d[_0x579406(0x156)]);}catch(_0x48ad90){logger[_0x579406(0x194)](_0x579406(0x17b)+_0x48ad90);}this[_0x579406(0x198)][_0x579406(0x148)]=_0x33661d[_0x579406(0xeb)](shouldScanTestForAccessibility,this[_0x579406(0x198)][_0x579406(0xf1)](),!![]),globals[_0x579406(0xee)](_0x33661d['hJBMh'],this[_0x579406(0x198)][_0x579406(0x148)]),this[_0x579406(0x198)]['accessibilityScanStarted']=!![];if(_0x33661d['OurRk'](isAccessibilityAutomationSession)&&_0x3c5898&&Array[_0x579406(0x13a)](global[_0x579406(0x18a)])&&_0x33661d[_0x579406(0x136)](global[_0x579406(0x18a)]['length'],0x0)&&globals[_0x579406(0x12d)](_0x33661d[_0x579406(0x11c)]))try{const _0x3d1867=await global[_0x579406(0x18a)][0x0][_0x579406(0x189)];if(_0x3d1867){let _0xf51fa9=!![];const _0x243453=await global[_0x579406(0x18a)][0x0]['getCurrentUrl']();let _0x323c50;try{_0x323c50=new URL(_0x243453);}catch(_0x173fba){_0xf51fa9=![];}_0xf51fa9=_0x33661d[_0x579406(0x19a)](_0x323c50[_0x579406(0x10b)],_0x33661d[_0x579406(0x17d)])||_0x33661d[_0x579406(0x124)](_0x323c50[_0x579406(0x10b)],_0x33661d[_0x579406(0x171)]),_0xf51fa9&&(this[_0x579406(0x198)]['shouldScanTestForAccessibility']&&logger[_0x579406(0x172)](_0x33661d[_0x579406(0x173)])),this[_0x579406(0x198)]['accessibilityScanStarted']=this['currentTest'][_0x579406(0x148)],this[_0x579406(0x198)][_0x579406(0x148)]&&logger[_0x579406(0x172)](_0x33661d[_0x579406(0xe4)]);}}catch(_0x407965){logger['error'](_0x579406(0x16a)+util[_0x579406(0x14b)](_0x407965));}_0x33661d[_0x579406(0x138)](_0x34c3e0);})['then'](()=>{const _0x3cef3d=_0x31b3d1;_0x33661d[_0x3cef3d(0x158)](_0x2d403f);});},{'platform':_0x176815[_0x3bbfa6(0x117)](nestedKeyValue,global['__platformCaps'],[_0x176815[_0x3bbfa6(0x195)]]),'hookType':_0x176815['QkJDX']})();},'afterEach'(_0x2aa5ba){const _0x3f620a=a32_0x21bb23,_0x303ef9={'AAXex':function(_0x28e2c3,_0x45f17e){return _0x28e2c3!==_0x45f17e;},'kPuUi':_0x3f620a(0x165),'kRFED':function(_0x4ca65c,_0x4eeacc,_0x4f0c46){return _0x4ca65c(_0x4eeacc,_0x4f0c46);},'xpZJP':function(_0x55fe0f,_0x155c18){return _0x55fe0f+_0x155c18;},'JlOhh':_0x3f620a(0x125),'NYohF':_0x3f620a(0x131),'Lrduu':_0x3f620a(0x184),'OLfph':'info','TIKQJ':function(_0x3f3e34,_0x54260c){return _0x3f3e34>_0x54260c;},'xhxBN':function(_0x230c7,_0x4bef46){return _0x230c7===_0x4bef46;},'VCsqp':_0x3f620a(0x108),'Jciht':function(_0x41b5db,_0x220fb4){return _0x41b5db>_0x220fb4;},'vAinY':'appium:app','tNxIK':function(_0x53e08a,_0x156199,_0x26ea07,_0x30a251){return _0x53e08a(_0x156199,_0x26ea07,_0x30a251);},'fZule':_0x3f620a(0xf7),'jIJza':'bstackA11yShouldScan','txOVN':_0x3f620a(0x179),'pVtdu':_0x3f620a(0x17e),'bwUPd':_0x3f620a(0x193),'XUlTa':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','sZrMh':function(_0x251c87){return _0x251c87();},'BGtSB':function(_0x19e46e,_0x1be337,_0x1146c3){return _0x19e46e(_0x1be337,_0x1146c3);},'WghEQ':_0x3f620a(0x194),'rGmIb':function(_0x5d29bb,_0x4ad46b){return _0x5d29bb>_0x4ad46b;},'TLKdj':'\x20-\x20','NPPZy':function(_0x288512,_0x2bc6eb,_0x46329a){return _0x288512(_0x2bc6eb,_0x46329a);},'MWHoq':_0x3f620a(0x17a),'ukrGa':'afterEach'},_0x42454b='browserstack internal helper hook';this[_0x3f620a(0x18f)](0xfde8),global[_0x3f620a(0x17c)]=this['currentTest'][_0x3f620a(0xf1)]()[_0x3f620a(0x150)](_0x303ef9[_0x3f620a(0x128)]),PerformanceTester[_0x3f620a(0x107)](PerformanceSdkEvents[_0x3f620a(0x110)],()=>{const _0x4535ab=_0x3f620a,_0x360b19={};_0x360b19[_0x4535ab(0x185)]=_0x303ef9['TLKdj'];const _0x14dc86=_0x360b19,_0xc9ad23=async(_0x118270,_0x5f3fcb)=>{const _0x27144f=_0x4535ab;await global[_0x27144f(0x18a)][0x0][_0x27144f(0x13f)](_0x27144f(0xf4)+_0x118270+_0x27144f(0x102)+_0x5f3fcb+_0x27144f(0x14d));};new Promise(async _0x18afe1=>{const _0x5344dd=_0x4535ab,_0x37e0f4={'GXmso':function(_0x2aad73,_0x3313ea){const _0x2913b5=a32_0x10ae;return _0x303ef9[_0x2913b5(0x11a)](_0x2aad73,_0x3313ea);},'KVbeA':_0x303ef9[_0x5344dd(0x10a)],'fCvHi':function(_0x221d11,_0x15423e,_0x2e9816){return _0x303ef9['kRFED'](_0x221d11,_0x15423e,_0x2e9816);},'mvRjs':function(_0x18a312,_0x59f943){return _0x303ef9['xpZJP'](_0x18a312,_0x59f943);},'xHujb':_0x303ef9[_0x5344dd(0xf0)],'LCXCH':_0x303ef9[_0x5344dd(0x121)],'cXZZc':function(_0xc99328,_0x3f3c0e,_0x4080e1){const _0x2df4e0=_0x5344dd;return _0x303ef9[_0x2df4e0(0x127)](_0xc99328,_0x3f3c0e,_0x4080e1);},'yMMUm':_0x303ef9[_0x5344dd(0x174)],'AGZwP':_0x303ef9[_0x5344dd(0x15b)]};try{_0x303ef9[_0x5344dd(0x18c)](global[_0x5344dd(0x18a)][_0x5344dd(0x11f)],0x1)&&(await global[_0x5344dd(0x149)](),global[_0x5344dd(0x18a)][_0x5344dd(0x146)](),global[_0x5344dd(0x197)]=[],global[_0x5344dd(0x10c)]=![]);try{if(global['percy']&&_0x303ef9['xhxBN'](global[_0x5344dd(0x100)],_0x303ef9['VCsqp'])&&global['__drivers'][0x0]){const _0x24dae=_0x303ef9[_0x5344dd(0x135)](global[_0x5344dd(0x152)][_0x5344dd(0x11f)],0x0)?!!global[_0x5344dd(0x152)][0x0][_0x5344dd(0xfb)]||!!global['capabilities'][0x0][_0x303ef9[_0x5344dd(0x140)]]:![],_0x17bf5b={};_0x17bf5b[_0x5344dd(0xfb)]=_0x24dae,await _0x303ef9[_0x5344dd(0x14c)](percyAutoCapture,global['__drivers'][0x0],_0x303ef9[_0x5344dd(0x191)],_0x17bf5b);}}catch(_0x537b70){logger[_0x5344dd(0x194)](_0x5344dd(0xff)+_0x537b70);}!global[_0x5344dd(0x14f)]&&(await PerformanceTester[_0x5344dd(0x107)](PerformanceAutEvents['SESSION_NAME'],async()=>{const _0x15a62c=_0x5344dd;await global['__drivers'][0x0][_0x15a62c(0x13f)](_0x15a62c(0x180)+JSON['stringify'](this[_0x15a62c(0x198)]['titlePath']()[_0x15a62c(0x150)](_0x14dc86[_0x15a62c(0x185)]))+'}}');})(),global[_0x5344dd(0x18a)][0x0][_0x5344dd(0x11b)]=!![]),await PerformanceTester[_0x5344dd(0x107)](PerformanceAutEvents[_0x5344dd(0x114)],async()=>{const _0x168ac5=_0x5344dd,_0x54d600=_0x37e0f4['GXmso'](this[_0x168ac5(0x198)][_0x168ac5(0x166)],_0x37e0f4['KVbeA']);_0x54d600?(global[_0x168ac5(0x10c)]=!![],global['__error_messages__'][_0x168ac5(0x118)](this['currentTest'][_0x168ac5(0x122)][_0x168ac5(0x116)]),await _0x37e0f4[_0x168ac5(0xe5)](_0xc9ad23,JSON[_0x168ac5(0x188)](_0x37e0f4['mvRjs'](_0x37e0f4[_0x168ac5(0x13d)],this[_0x168ac5(0x198)][_0x168ac5(0x122)][_0x168ac5(0x116)])),_0x37e0f4[_0x168ac5(0x192)])):await _0x37e0f4[_0x168ac5(0x111)](_0xc9ad23,JSON[_0x168ac5(0x188)](_0x37e0f4['yMMUm']),_0x37e0f4[_0x168ac5(0x18e)]);})();}catch(_0x173c17){logger[_0x5344dd(0x194)](_0x5344dd(0x15a)+_0x173c17);}try{if(this[_0x5344dd(0x198)][_0x5344dd(0xe8)]&&globals[_0x5344dd(0x12d)](_0x303ef9[_0x5344dd(0x16e)])&&globals[_0x5344dd(0x12d)](_0x303ef9[_0x5344dd(0xf8)])){logger[_0x5344dd(0x172)](_0x303ef9[_0x5344dd(0x15c)]);const _0x4a59be={};_0x4a59be[_0x5344dd(0x153)]=this[_0x5344dd(0x198)][_0x5344dd(0x109)],_0x4a59be['thBuildUuid']=process['env'][testHubConstants[_0x5344dd(0x14a)][_0x5344dd(0x137)]],_0x4a59be[_0x5344dd(0x170)]=process[_0x5344dd(0x13e)][testHubConstants[_0x5344dd(0x14a)][_0x5344dd(0x134)]];const _0x30ce0a=_0x4a59be;logger[_0x5344dd(0x194)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON['stringify'](_0x30ce0a)),logger[_0x5344dd(0x194)](_0x303ef9[_0x5344dd(0x168)]);const _0x42458d={};_0x42458d[_0x5344dd(0xfc)]=_0x303ef9[_0x5344dd(0x15f)],await PerformanceTester[_0x5344dd(0x107)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x2b2310=_0x5344dd;logger[_0x2b2310(0x194)](util[_0x2b2310(0x14b)](await global[_0x2b2310(0x18a)][0x0][_0x2b2310(0x169)](scripts[_0x2b2310(0x178)],{'method':global[_0x2b2310(0xf5)]})));},_0x42458d)(),await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x5344dd(0x199)],async()=>{const _0x4f6f5a=_0x5344dd;await global[_0x4f6f5a(0x18a)][0x0][_0x4f6f5a(0x169)](scripts[_0x4f6f5a(0x16b)],_0x30ce0a);})(),logger[_0x5344dd(0x172)](_0x303ef9[_0x5344dd(0x161)]);}}catch(_0x1aa85a){logger[_0x5344dd(0x131)](_0x5344dd(0xfd)+this[_0x5344dd(0x198)][_0x5344dd(0xf1)]()+_0x5344dd(0x162),_0x1aa85a);}try{try{if(_0x303ef9[_0x5344dd(0x113)](shouldProcessEventForTesthub)){global[_0x5344dd(0x18a)][0x0]&&await _0x303ef9[_0x5344dd(0x187)](sendPlatformDetails,global[_0x5344dd(0x18a)][0x0],this[_0x5344dd(0x198)]?this[_0x5344dd(0x198)][_0x5344dd(0x109)]:null);if(_0x303ef9[_0x5344dd(0x113)](isBrowserstackInfra)){PerformanceTester[_0x5344dd(0x17f)](PerformanceO11yEvents[_0x5344dd(0xec)]);const _0x4df571=_0x5344dd(0x126)+Date['now']();await _0x303ef9[_0x5344dd(0x127)](_0xc9ad23,JSON[_0x5344dd(0x188)](_0x4df571),_0x303ef9['WghEQ']),PerformanceTester[_0x5344dd(0xf6)](PerformanceO11yEvents[_0x5344dd(0xec)]);}}}catch(_0x43abb7){logger[_0x5344dd(0x194)](_0x5344dd(0xfa)+_0x43abb7),PerformanceTester[_0x5344dd(0xf6)](PerformanceO11yEvents[_0x5344dd(0xec)],![],_0x43abb7);}_0x303ef9[_0x5344dd(0x123)](global[_0x5344dd(0x18a)][0x0][_0x5344dd(0x112)],0x0)&&await global['driverCleanup']();}catch(_0x17b34d){logger[_0x5344dd(0x194)](_0x5344dd(0x103)+_0x17b34d);}_0x303ef9[_0x5344dd(0x113)](_0x18afe1);})['then'](()=>{const _0x3d68c1=_0x4535ab;_0x303ef9[_0x3d68c1(0x113)](_0x2aa5ba);});},{'platform':_0x303ef9[_0x3f620a(0xf2)](nestedKeyValue,global[_0x3f620a(0x105)],[_0x303ef9[_0x3f620a(0x175)]]),'hookType':_0x303ef9[_0x3f620a(0x13c)]})();},'afterAll'(_0x1bbb11){const _0x40d06a=a32_0x21bb23,_0x2f2a53={'GeroJ':function(_0x1ff8b3){return _0x1ff8b3();},'LEyrO':function(_0x13c8a2){return _0x13c8a2();},'ThGoH':function(_0x45bbed,_0x45101e,_0x27e795){return _0x45bbed(_0x45101e,_0x27e795);},'Icvxh':_0x40d06a(0x17a),'geYUU':_0x40d06a(0x181)},_0x1bdd6e='browserstack internal helper hook';this[_0x40d06a(0x18f)](0xfde8),PerformanceTester[_0x40d06a(0x107)](PerformanceSdkEvents[_0x40d06a(0x110)],()=>{const _0x2591ad=_0x40d06a,_0x33ca61={'aApvW':function(_0x53d07d){const _0x30721b=a32_0x10ae;return _0x2f2a53[_0x30721b(0x163)](_0x53d07d);}};new Promise(async _0x545a13=>{const _0x382577=a32_0x10ae;await global[_0x382577(0x149)](),_0x33ca61[_0x382577(0x142)](_0x545a13);})[_0x2591ad(0x12e)]()['finally'](()=>{const _0x2b6961=_0x2591ad;_0x2f2a53[_0x2b6961(0x183)](_0x1bbb11);});},{'platform':_0x2f2a53[_0x40d06a(0x104)](nestedKeyValue,global[_0x40d06a(0x105)],[_0x2f2a53['Icvxh']]),'hookType':_0x2f2a53[_0x40d06a(0xed)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x5470d2=a33_0x1703;(function(_0x2b9db5,_0x428634){const _0x1aa8b9=a33_0x1703,_0x5601b3=_0x2b9db5();while(!![]){try{const _0x2a2cfa=-parseInt(_0x1aa8b9(0x1fd))/0x1*(-parseInt(_0x1aa8b9(0x219))/0x2)+-parseInt(_0x1aa8b9(0x1e8))/0x3*(-parseInt(_0x1aa8b9(0x220))/0x4)+-parseInt(_0x1aa8b9(0x1f8))/0x5+-parseInt(_0x1aa8b9(0x1e1))/0x6+-parseInt(_0x1aa8b9(0x1ed))/0x7+parseInt(_0x1aa8b9(0x1de))/0x8*(parseInt(_0x1aa8b9(0x1dd))/0x9)+parseInt(_0x1aa8b9(0x1d9))/0xa;if(_0x2a2cfa===_0x428634)break;else _0x5601b3['push'](_0x5601b3['shift']());}catch(_0x1c827a){_0x5601b3['push'](_0x5601b3['shift']());}}}(a33_0x448c,0x6a418));function a33_0x1703(_0xf8438,_0x1a0846){const _0x448c95=a33_0x448c();return a33_0x1703=function(_0x17033a,_0x4e2510){_0x17033a=_0x17033a-0x1d4;let _0x1090c8=_0x448c95[_0x17033a];return _0x1090c8;},a33_0x1703(_0xf8438,_0x1a0846);}const fs=require('fs'),path=require('path'),{spawn}=require(a33_0x5470d2(0x1f7)),logger=require(a33_0x5470d2(0x1fb))[a33_0x5470d2(0x1ee)],{default:BrowserStackSetup}=require(a33_0x5470d2(0x1e4)),helper=require(a33_0x5470d2(0x1f1)),constants=require(a33_0x5470d2(0x1f4)),getUserNightwatchConfigs=(_0x3d4134,_0x27708e)=>{const _0x18f9d0=a33_0x5470d2,_0x473b73={'dNBpq':_0x18f9d0(0x205),'mbvcd':_0x18f9d0(0x1e0),'eMepY':function(_0x2ca347,_0x21a893){return _0x2ca347(_0x21a893);},'UMCoE':_0x18f9d0(0x1ef)};let _0xc99c=null,_0x13b01b={};const _0x5c6163=_0x27708e[_0x18f9d0(0x1db)](_0x3682fe=>_0x3682fe===_0x18f9d0(0x21c));if(!helper[_0x18f9d0(0x1fa)](_0x3d4134[_0x18f9d0(0x1fc)])&&fs[_0x18f9d0(0x20e)](path['join'](process[_0x18f9d0(0x20a)](),_0x3d4134['config'])))_0xc99c=path[_0x18f9d0(0x207)](process[_0x18f9d0(0x20a)](),_0x3d4134[_0x18f9d0(0x1fc)]),_0x27708e['splice'](_0x5c6163,0x2);else{if(fs[_0x18f9d0(0x20e)](path[_0x18f9d0(0x207)](process[_0x18f9d0(0x20a)](),_0x473b73[_0x18f9d0(0x221)])))_0xc99c=path[_0x18f9d0(0x207)](process['cwd'](),_0x473b73[_0x18f9d0(0x221)]);else fs[_0x18f9d0(0x20e)](path[_0x18f9d0(0x207)](process[_0x18f9d0(0x20a)](),_0x473b73[_0x18f9d0(0x1e7)]))&&(_0xc99c=path[_0x18f9d0(0x207)](process[_0x18f9d0(0x20a)](),_0x473b73['mbvcd']));}return _0xc99c?(logger[_0x18f9d0(0x215)](_0x18f9d0(0x206)+_0xc99c),_0x13b01b=_0x473b73[_0x18f9d0(0x209)](require,_0xc99c)):logger['info'](_0x473b73['UMCoE']),_0x13b01b;},removeExistingEnvs=_0x166743=>{const _0x198951=a33_0x5470d2,_0x39756f={};_0x39756f[_0x198951(0x217)]=function(_0x4b5849,_0x4168a6){return _0x4b5849>_0x4168a6;},_0x39756f['aLpye']=function(_0x3753ee,_0x2b65ae){return _0x3753ee>_0x2b65ae;};const _0x53378f=_0x39756f;let _0x137c43=_0x166743[_0x198951(0x1db)](_0x5d3706=>_0x5d3706===_0x198951(0x1eb));_0x53378f[_0x198951(0x217)](_0x137c43,-0x1)&&_0x166743[_0x198951(0x203)](_0x137c43,0x2),_0x137c43=_0x166743[_0x198951(0x1db)](_0x37c9bf=>_0x37c9bf==='-e'),_0x53378f[_0x198951(0x20b)](_0x137c43,-0x1)&&_0x166743['splice'](_0x137c43,0x2);};function run(_0xbed486,_0x14c349){const _0x20814d=a33_0x5470d2,_0x139668={'bJvoe':_0x20814d(0x1ec),'XXgIZ':function(_0xdcd0c3,_0x5bb409){return _0xdcd0c3+_0x5bb409;},'AuNFV':_0x20814d(0x210),'QbsAq':function(_0x691814,_0x4eca80,_0x1c6ff4){return _0x691814(_0x4eca80,_0x1c6ff4);},'eJYvQ':_0x20814d(0x211),'ghXyY':_0x20814d(0x213),'yBpYJ':function(_0x5c30d5,_0x1227ce){return _0x5c30d5===_0x1227ce;},'EudLk':_0x20814d(0x20d),'gCaiU':function(_0x1385a4,_0x51c12b){return _0x1385a4(_0x51c12b);},'zKBxi':function(_0x49eab7,_0x249958,_0x26914c,_0x3de656){return _0x49eab7(_0x249958,_0x26914c,_0x3de656);},'BJiki':'nightwatch.cmd','eQIuj':_0x20814d(0x21c),'DaGmy':'--env','uqIuc':_0x20814d(0x21d),'jLZtd':_0x20814d(0x1da)},_0x519d83=new BrowserStackSetup(_0xbed486);if(!_0x519d83[_0x20814d(0x1fc)])return;const _0x9cd4f6=_0x139668[_0x20814d(0x1f2)](getUserNightwatchConfigs,_0xbed486,_0x14c349),_0x19ece2={};_0x19ece2[_0x20814d(0x1df)]=![];const _0x5a3a45={};_0x5a3a45['host']=_0x139668[_0x20814d(0x1e2)],_0x5a3a45[_0x20814d(0x1ea)]=0x1bb;const _0x383835={};_0x383835['webdriver']=_0x19ece2,_0x383835[_0x20814d(0x1fe)]=_0x5a3a45;const _0xdd5564=_0x383835;logger[_0x20814d(0x215)](_0x139668['ghXyY']);const _0x16405c={..._0x9cd4f6},_0x396ddb=_0x16405c,_0x217efe=helper[_0x20814d(0x1d5)](_0x519d83[_0x20814d(0x1fc)]),_0x1dcf99=[];_0x519d83[_0x20814d(0x1fc)][_0x20814d(0x1e9)]['forEach']((_0x34bcdd,_0x405124)=>{const _0x1557c2=_0x20814d;_0x217efe?_0x1dcf99[_0x1557c2(0x218)](helper['modifyBrowserStackW3CCaps'](_0x519d83[_0x1557c2(0x1fc)],_0x139668[_0x1557c2(0x214)],_0x405124)):_0x1dcf99[_0x1557c2(0x218)](helper['modifyBrowserStackCaps'](_0x519d83[_0x1557c2(0x1fc)],_0x139668[_0x1557c2(0x214)],_0x405124));});const _0x335ccb={},_0x4bcd12=[];_0xbed486[_0x20814d(0x1e6)]=_0xbed486[_0x20814d(0x1e6)]||_0xbed486['e'];const _0x5da4b3=_0xbed486['env']?_0xbed486[_0x20814d(0x1e6)][_0x20814d(0x1e3)]()['split'](',')[_0x20814d(0x204)](_0x459f49=>_0x459f49[_0x20814d(0x1e3)]())[_0x20814d(0x1d6)](_0x1dd40d=>_0x1dd40d!==''):[''];_0x139668[_0x20814d(0x1f5)](_0x5da4b3[_0x20814d(0x21e)],0x0)&&_0x5da4b3['push']('');_0x5da4b3[_0x20814d(0x1f6)](_0x3adf71=>{const _0x2cc692=_0x20814d;_0x1dcf99[_0x2cc692(0x1f6)](_0x171dc1=>{const _0x3892c0=_0x2cc692;let _0x414e85=_0x139668[_0x3892c0(0x200)](helper[_0x3892c0(0x1d7)](_0x171dc1,'_'),'_'+Date[_0x3892c0(0x208)]());_0x3adf71&&(_0x414e85+='_'+_0x3adf71);if(_0x3adf71&&(!_0x9cd4f6[_0x139668['AuNFV']]||!_0x9cd4f6[_0x139668[_0x3892c0(0x202)]][_0x3adf71]))return;const _0xe005d7={..._0xdd5564};_0xe005d7[_0x3892c0(0x1d4)]=_0x171dc1;const _0x19019f=_0xe005d7;_0x335ccb[_0x414e85]=_0x3adf71?helper[_0x3892c0(0x1dc)](_0x9cd4f6[_0x139668[_0x3892c0(0x202)]][_0x3adf71],_0x19019f):_0x19019f,_0x4bcd12[_0x3892c0(0x218)](_0x414e85);});});!_0x396ddb[_0x20814d(0x210)]&&(_0x396ddb[_0x20814d(0x210)]={});_0x396ddb[_0x20814d(0x210)]={..._0x396ddb[_0x20814d(0x210)],..._0x335ccb};const _0x597ec2=path['join'](__dirname,_0x139668[_0x20814d(0x1f0)]);fs[_0x20814d(0x1d8)](_0x597ec2,JSON[_0x20814d(0x212)](_0x396ddb)),_0x139668[_0x20814d(0x21f)](removeExistingEnvs,_0x14c349);const _0x2f6552=_0x139668['zKBxi'](spawn,/^win/[_0x20814d(0x1e5)](process['platform'])?_0x139668[_0x20814d(0x20c)]:_0x139668[_0x20814d(0x214)],[_0x139668[_0x20814d(0x1f9)],_0x597ec2,..._0x14c349[_0x20814d(0x20f)](0x1),_0x139668[_0x20814d(0x1f3)],_0x4bcd12['join'](',')],{'stdio':_0x139668[_0x20814d(0x21a)]});_0x2f6552['on'](_0x139668[_0x20814d(0x1ff)],async _0x56e11c=>{const _0x31066e=_0x20814d;logger[_0x31066e(0x216)](_0x31066e(0x21b)+_0x56e11c),logger['info']('Deleting\x20'+_0x597ec2),fs[_0x31066e(0x201)](_0x597ec2);});}module['exports']=run;function a33_0x448c(){const _0x5cb852=['map','nightwatch.conf.js','Getting\x20your\x20nightwatch\x20configs\x20from\x20','join','now','eMepY','cwd','aLpye','BJiki','nightwatch-browserstack.json','existsSync','slice','test_settings','hub.browserstack.com','stringify','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','bJvoe','info','debug','WpVAS','push','558UywFPs','uqIuc','child\x20process\x20exited\x20with\x20code\x20','--config','inherit','length','gCaiU','260AcZTXS','dNBpq','desiredCapabilities','useW3C','filter','getPlatformName','writeFileSync','2766690jFEqfi','close','findIndex','mergeDeep','9eBhVZj','1390776QyzkZw','start_process','nightwatch.json','4657290XMajcx','eJYvQ','trim','../../helpers/BrowserStackSetup','test','env','mbvcd','31947NPtMvX','platforms','port','--env','nightwatch','606144lzTPJJ','winstonLogger','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','EudLk','../../helpers/helper','QbsAq','DaGmy','../utils/constants','yBpYJ','forEach','child_process','1858505bBlLXE','eQIuj','isUndefined','../../helpers/logger','config','1889Ioidsq','selenium','jLZtd','XXgIZ','unlinkSync','AuNFV','splice'];a33_0x448c=function(){return _0x5cb852;};return a33_0x448c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a34_0x578b(){const _0x4c3abc=['browserStackEvaluate','qdSEi','accessibilityOptions.wcagVersion','SWVmQ','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','BS_A11Y_JWT','FywDX','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','PERFORM_SCAN','accessibilityOptions.scannerProcessingTimeout','SGxmL','util','format','evaluate','browserStackExecuteDriver','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','67941Xlnyir','../../helpers/performance/constants','chrome','12oSafUB','No\x20summaryResults\x20found.','constructor','jaIHE','connectOptions','okuyd','accessibilityOptions.includeIssueType.bestPractice','playwright-chromium','measureWrapper','project','rdzOA','browserName','344qCboth','accessibilityPlatform','18691717TBNhZB','wcagVersion','../../helpers/logger','setAccessibilityCapabilities','debug','nlCYi','needsReview','bestPractice','Playwright','Ldknn','accessibilityOptions.includeIssueType.needsReview','UXlxY','browser_version','winstonLogger','eyhDG','executeAsyncScript','HOxKS','(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','KVetg','performScan','cXETk','zyYGd','pvmUw','workerInfo','WqfLE','processAccessibilityCaps','accessibilityOptions.scannerVersion','scannerProcessingTimeout','getAccessibilityResultsSummary','lqARS','stringify','32366gOxtZq','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','3599085idhfFD','xxKyY','browserstack.accessibility','LHpZQ','1286138awvfRI','replace','2807940YyDtug','8UKdLIB','8ZvhyRO','siyFX','fHgJw','platformValidation','CuUxz','../../helpers/performance/performance-tester','hYemp','parse','warn','(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','../../helpers/accessibility-automation/scripts','accessibilityOptions.authToken','accessibilityOptions','env','includeIssueType','browser','qzgDr','../../helpers/helper','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','use','meobR','irfDK','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','1487470RwraMy','bstackSdkArgs','wsEndpoint','deviceName','PxVpJ','name','latest','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','OzjXs','aAoMl','IdoDl','scannerVersion','tbULz'];a34_0x578b=function(){return _0x4c3abc;};return a34_0x578b();}const a34_0x2df118=a34_0x3814;(function(_0x4c0e96,_0x203925){const _0x4a3aa5=a34_0x3814,_0x1a852f=_0x4c0e96();while(!![]){try{const _0x37d21a=parseInt(_0x4a3aa5(0x217))/0x1*(-parseInt(_0x4a3aa5(0x20e))/0x2)+-parseInt(_0x4a3aa5(0x210))/0x3+parseInt(_0x4a3aa5(0x218))/0x4*(parseInt(_0x4a3aa5(0x1c1))/0x5)+-parseInt(_0x4a3aa5(0x1e1))/0x6*(parseInt(_0x4a3aa5(0x214))/0x7)+-parseInt(_0x4a3aa5(0x1ed))/0x8*(-parseInt(_0x4a3aa5(0x1de))/0x9)+-parseInt(_0x4a3aa5(0x216))/0xa+parseInt(_0x4a3aa5(0x1ef))/0xb;if(_0x37d21a===_0x203925)break;else _0x1a852f['push'](_0x1a852f['shift']());}catch(_0x3d7647){_0x1a852f['push'](_0x1a852f['shift']());}}}(a34_0x578b,0x9c98d));const util=require(a34_0x2df118(0x1d9)),logger=require(a34_0x2df118(0x1f1))[a34_0x2df118(0x1fc)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a34_0x2df118(0x229)),scripts=require(a34_0x2df118(0x222)),PerformanceTester=require(a34_0x2df118(0x21d)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x2df118(0x1df));function a34_0x3814(_0x401219,_0x1ab251){const _0x578bc4=a34_0x578b();return a34_0x3814=function(_0x3814bd,_0xac3a76){_0x3814bd=_0x3814bd-0x1bc;let _0x1b4741=_0x578bc4[_0x3814bd];return _0x1b4741;},a34_0x3814(_0x401219,_0x1ab251);}exports['browserStackEvaluate']=async(_0x486b5e,_0x1c1419,_0x3ec688={})=>{const _0x3f7dad=a34_0x2df118,_0x35be5b={};_0x35be5b[_0x3f7dad(0x21a)]='bstackSdkArgs';const _0x25e1eb=_0x35be5b;return await _0x486b5e[_0x3f7dad(0x1db)](_0x3f7dad(0x200)+_0x1c1419[_0x3f7dad(0x215)](/arguments/g,_0x25e1eb['fHgJw'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x3f7dad(0x20d)](_0x3ec688)+')');},exports[a34_0x2df118(0x1dc)]=async(_0x58184f,_0x508415,_0x46491e={})=>{const _0x1760f8=a34_0x2df118,_0x9df4f8={};_0x9df4f8[_0x1760f8(0x1bf)]=function(_0x16774f,_0x1b01d8){return _0x16774f===_0x1b01d8;},_0x9df4f8[_0x1760f8(0x20c)]='WebDriver',_0x9df4f8[_0x1760f8(0x1ff)]=_0x1760f8(0x1f7),_0x9df4f8[_0x1760f8(0x211)]=_0x1760f8(0x1c2);const _0x7cace8=_0x9df4f8;if(_0x7cace8[_0x1760f8(0x1bf)](_0x58184f['constructor'][_0x1760f8(0x1c6)],_0x7cace8[_0x1760f8(0x20c)]))return await _0x58184f[_0x1760f8(0x1fe)](_0x508415,_0x46491e);else{if(_0x7cace8[_0x1760f8(0x1bf)](_0x58184f[_0x1760f8(0x1e3)][_0x1760f8(0x1c6)],_0x7cace8[_0x1760f8(0x1ff)]))return await _0x58184f['executeScript'](_0x1760f8(0x221)+_0x508415[_0x1760f8(0x215)](/arguments/g,_0x7cace8[_0x1760f8(0x211)])+_0x1760f8(0x1d2)+JSON[_0x1760f8(0x20d)](_0x46491e)+')');}},exports[a34_0x2df118(0x1f2)]=async _0x2e7638=>{const _0x6c421=a34_0x2df118,_0x6bb0b3={};_0x6bb0b3[_0x6c421(0x203)]=_0x6c421(0x1d0),_0x6bb0b3[_0x6c421(0x1fa)]=_0x6c421(0x1d7),_0x6bb0b3['aAoMl']=_0x6c421(0x1e7),_0x6bb0b3[_0x6c421(0x207)]=_0x6c421(0x1f9),_0x6bb0b3[_0x6c421(0x21c)]=_0x6c421(0x223),_0x6bb0b3[_0x6c421(0x1cf)]=_0x6c421(0x209);const _0x1ef4be=_0x6bb0b3;_0x2e7638[_0x6c421(0x224)]&&(_0x2e7638[_0x6c421(0x224)][_0x6c421(0x1f0)]&&(_0x2e7638[_0x1ef4be[_0x6c421(0x203)]]=_0x2e7638['accessibilityOptions'][_0x6c421(0x1f0)]),_0x2e7638['accessibilityOptions'][_0x6c421(0x20a)]&&(_0x2e7638[_0x1ef4be[_0x6c421(0x1fa)]]=_0x2e7638[_0x6c421(0x224)][_0x6c421(0x20a)]),_0x2e7638[_0x6c421(0x224)][_0x6c421(0x226)]&&(_0x2e7638[_0x1ef4be[_0x6c421(0x1ca)]]=_0x2e7638[_0x6c421(0x224)][_0x6c421(0x226)][_0x6c421(0x1f6)],_0x2e7638[_0x1ef4be[_0x6c421(0x207)]]=_0x2e7638[_0x6c421(0x224)][_0x6c421(0x226)][_0x6c421(0x1f5)]));const _0x3e5ba9=JSON[_0x6c421(0x21f)](process[_0x6c421(0x225)][_0x6c421(0x1c0)])[_0x6c421(0x1cc)];_0x2e7638[_0x1ef4be[_0x6c421(0x21c)]]=process['env'][_0x6c421(0x1d3)],_0x2e7638[_0x1ef4be['qdSEi']]=_0x3e5ba9,delete _0x2e7638[_0x6c421(0x224)];},exports['getAccessibilityResults']=async _0x33f2a0=>{const _0x451fe1=a34_0x2df118,_0x14b47b={};_0x14b47b[_0x451fe1(0x1e6)]='No\x20accessibility\x20results\x20were\x20found.',_0x14b47b['FywDX']='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x3a58d6=_0x14b47b;if(global[_0x451fe1(0x1ee)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x33f2a0,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x33f2a0,scripts.getResults);})();return res;}catch{return logger['error'](_0x3a58d6['okuyd']),[];}else return logger['warn'](_0x3a58d6[_0x451fe1(0x1d4)]),[];},exports[a34_0x2df118(0x202)]=async(_0x398c5a,_0x1b34a7='')=>{const _0x184894=a34_0x2df118;if(global[_0x184894(0x1ee)])return await PerformanceTester[_0x184894(0x1e9)](PerformanceA11yEvents[_0x184894(0x1d6)],async()=>{const _0x356446=_0x184894,_0xc78b8c={};_0xc78b8c['command']=_0x1b34a7,await exports[_0x356446(0x1ce)](_0x398c5a,scripts[_0x356446(0x202)],_0xc78b8c);},{'command':_0x1b34a7})();},exports[a34_0x2df118(0x20b)]=async _0x168b5e=>{const _0x510c0e=a34_0x2df118,_0x245946={};_0x245946[_0x510c0e(0x1d1)]=_0x510c0e(0x1e2),_0x245946[_0x510c0e(0x219)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x1b16ba=_0x245946;if(global[_0x510c0e(0x1ee)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x168b5e,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x168b5e,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x510c0e(0x1f3)](_0x1b16ba['SWVmQ']),{};}else return logger['warn'](_0x1b16ba[_0x510c0e(0x219)]),{};},exports[a34_0x2df118(0x21b)]=async _0x4d29b3=>{const _0x1a99fb=a34_0x2df118,_0x3eccee={'tbULz':function(_0x4e56a0,_0x97064f){return _0x4e56a0!==_0x97064f;},'Ldknn':_0x1a99fb(0x1c8),'cPRCZ':function(_0x3a9039,_0x6a704){return _0x3a9039===_0x6a704;},'iTuwO':_0x1a99fb(0x1e0),'hYemp':function(_0x343e60,_0x16134e){return _0x343e60===_0x16134e;},'nlCYi':_0x1a99fb(0x1e8),'qzgDr':_0x1a99fb(0x1dd),'zyYGd':function(_0x74a8da,_0x548e5d){return _0x74a8da(_0x548e5d);},'jaIHE':_0x1a99fb(0x1c7),'eyhDG':function(_0xc5c756,_0x5ce2b6){return _0xc5c756>_0x5ce2b6;},'SGxmL':_0x1a99fb(0x20f)};try{if(!_0x3eccee[_0x1a99fb(0x1cd)](_0x4d29b3['deviceName'],''))return logger[_0x1a99fb(0x220)](_0x3eccee[_0x1a99fb(0x1f8)]),![];const _0x31028b=_0x4d29b3[_0x1a99fb(0x227)];if(!(_0x3eccee['cPRCZ'](_0x31028b,_0x3eccee['iTuwO'])||_0x3eccee[_0x1a99fb(0x21e)](_0x31028b,_0x3eccee[_0x1a99fb(0x1f4)])))return logger[_0x1a99fb(0x220)](_0x3eccee[_0x1a99fb(0x228)]),![];const _0x8600d0=_0x3eccee[_0x1a99fb(0x204)](parseInt,_0x4d29b3[_0x1a99fb(0x1fb)]);if(!(_0x3eccee[_0x1a99fb(0x21e)](_0x8600d0,_0x3eccee[_0x1a99fb(0x1e4)])||_0x3eccee[_0x1a99fb(0x1fd)](_0x8600d0,0x5e)))return logger[_0x1a99fb(0x220)](_0x3eccee[_0x1a99fb(0x1d8)]),![];}catch(_0x45c3f0){logger[_0x1a99fb(0x1f3)](_0x1a99fb(0x1bc)+util[_0x1a99fb(0x1da)](_0x45c3f0));}return!![];},exports[a34_0x2df118(0x208)]=(_0x139c87,_0x5310e8,_0x5911d8)=>{const _0x5d1825=a34_0x2df118,_0x12c0ba={'meobR':function(_0x5fd023){return _0x5fd023();},'OzjXs':_0x5d1825(0x212),'pvmUw':function(_0x334c8f,_0x5234a9){return _0x334c8f===_0x5234a9;},'NobRt':'chrome','ytnXa':function(_0x2ce125,_0x187703){return _0x2ce125===_0x187703;},'hxSxx':'playwright-chromium','KVetg':_0x5d1825(0x1dd),'vxnYc':_0x5d1825(0x1c7),'LHpZQ':function(_0x157728,_0x22d46b){return _0x157728>_0x22d46b;},'FsQkJ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','LqjrR':function(_0xb4101b,_0xc8bab7){return _0xb4101b(_0xc8bab7);},'PxVpJ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','IdoDl':function(_0x478284,_0x2ca202){return _0x478284+_0x2ca202;},'rdzOA':function(_0xa5a90f,_0x2b1805){return _0xa5a90f(_0x2b1805);}};try{if(_0x12c0ba[_0x5d1825(0x1be)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x139c87[_0x12c0ba[_0x5d1825(0x1c9)]]&&(global[_0x5d1825(0x1ee)]=![]);!(_0x12c0ba[_0x5d1825(0x205)](_0x139c87[_0x5d1825(0x1ec)],_0x12c0ba['NobRt'])||_0x12c0ba['ytnXa'](_0x139c87['browserName'],_0x12c0ba['hxSxx']))&&(logger[_0x5d1825(0x220)](_0x12c0ba[_0x5d1825(0x201)]),global[_0x5d1825(0x1ee)]=![]);!(_0x12c0ba['pvmUw'](_0x139c87[_0x5d1825(0x1fb)],_0x12c0ba['vxnYc'])||_0x12c0ba[_0x5d1825(0x213)](_0x139c87['browser_version'],0x5e))&&(logger[_0x5d1825(0x220)](_0x12c0ba['FsQkJ']),global[_0x5d1825(0x1ee)]=![]);!_0x12c0ba['LqjrR'](isUndefined,_0x139c87[_0x5d1825(0x1c4)])&&(logger[_0x5d1825(0x220)](_0x12c0ba[_0x5d1825(0x1c5)]),global[_0x5d1825(0x1ee)]=![]);if(!global[_0x5d1825(0x1ee)]){_0x139c87[_0x12c0ba['OzjXs']]=![];const _0x38acc6=_0x12c0ba[_0x5d1825(0x1cb)](_0x5310e8,_0x12c0ba[_0x5d1825(0x1eb)](encodeURIComponent,JSON[_0x5d1825(0x20d)](_0x139c87)));_0x5911d8&&(_0x5911d8['currentTest']['testInfo'][_0x5d1825(0x1ea)][_0x5d1825(0x1bd)][_0x5d1825(0x1e5)][_0x5d1825(0x1c3)]=_0x38acc6,_0x5911d8[_0x5d1825(0x206)][_0x5d1825(0x1ea)][_0x5d1825(0x1bd)][_0x5d1825(0x1e5)][_0x5d1825(0x1c3)]=_0x38acc6);}}}catch(_0x40d42c){logger[_0x5d1825(0x1f3)](_0x5d1825(0x1d5)+util[_0x5d1825(0x1da)](_0x40d42c));}};
|
|
1
|
+
const a34_0x22e85a=a34_0x142b;function a34_0x142b(_0x5f2957,_0x4fa2df){const _0xfa5e68=a34_0xfa5e();return a34_0x142b=function(_0x142be0,_0x5e3adb){_0x142be0=_0x142be0-0x15b;let _0x9f7888=_0xfa5e68[_0x142be0];return _0x9f7888;},a34_0x142b(_0x5f2957,_0x4fa2df);}(function(_0x2e7ee9,_0x58f511){const _0x4f1bdd=a34_0x142b,_0x2abb80=_0x2e7ee9();while(!![]){try{const _0x541035=parseInt(_0x4f1bdd(0x1a4))/0x1+-parseInt(_0x4f1bdd(0x1a9))/0x2*(parseInt(_0x4f1bdd(0x1be))/0x3)+parseInt(_0x4f1bdd(0x16e))/0x4+parseInt(_0x4f1bdd(0x174))/0x5*(parseInt(_0x4f1bdd(0x185))/0x6)+-parseInt(_0x4f1bdd(0x160))/0x7+-parseInt(_0x4f1bdd(0x1b6))/0x8+-parseInt(_0x4f1bdd(0x19f))/0x9;if(_0x541035===_0x58f511)break;else _0x2abb80['push'](_0x2abb80['shift']());}catch(_0x237a45){_0x2abb80['push'](_0x2abb80['shift']());}}}(a34_0xfa5e,0x4c7ee));const util=require(a34_0x22e85a(0x1ab)),logger=require(a34_0x22e85a(0x195))['winstonLogger'],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a34_0x22e85a(0x16d)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a34_0x22e85a(0x1b9)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x22e85a(0x17c));exports[a34_0x22e85a(0x180)]=async(_0xf4cacc,_0x35120a,_0xf6e43b={})=>{const _0x4800d1=a34_0x22e85a,_0x4fd7a6={};_0x4fd7a6[_0x4800d1(0x1a1)]=_0x4800d1(0x1bd);const _0x56904b=_0x4fd7a6;return await _0xf4cacc[_0x4800d1(0x18c)]('(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'+_0x35120a[_0x4800d1(0x16b)](/arguments/g,_0x56904b[_0x4800d1(0x1a1)])+_0x4800d1(0x1b1)+JSON['stringify'](_0xf6e43b)+')');},exports[a34_0x22e85a(0x1ba)]=async(_0x4bc631,_0x281239,_0x1c470b={})=>{const _0x4c98b8=a34_0x22e85a,_0x3a1aae={};_0x3a1aae['byRDB']=function(_0x51f5c0,_0x42f61c){return _0x51f5c0===_0x42f61c;},_0x3a1aae[_0x4c98b8(0x18b)]=_0x4c98b8(0x181),_0x3a1aae['QrSuW']=function(_0x3cb674,_0x4a2600){return _0x3cb674===_0x4a2600;},_0x3a1aae[_0x4c98b8(0x15b)]='Playwright',_0x3a1aae[_0x4c98b8(0x17f)]=_0x4c98b8(0x1bd);const _0x448d7a=_0x3a1aae;if(_0x448d7a['byRDB'](_0x4bc631[_0x4c98b8(0x188)][_0x4c98b8(0x189)],_0x448d7a[_0x4c98b8(0x18b)]))return await _0x4bc631[_0x4c98b8(0x1ac)](_0x281239,_0x1c470b);else{if(_0x448d7a['QrSuW'](_0x4bc631[_0x4c98b8(0x188)]['name'],_0x448d7a['pRDPK']))return await _0x4bc631[_0x4c98b8(0x17a)](_0x4c98b8(0x190)+_0x281239['replace'](/arguments/g,_0x448d7a['HNueX'])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x4c98b8(0x176)](_0x1c470b)+')');}},exports[a34_0x22e85a(0x17d)]=async _0x1f77c5=>{const _0x5ce075=a34_0x22e85a,_0x257d68={};_0x257d68[_0x5ce075(0x16c)]='accessibilityOptions.wcagVersion',_0x257d68[_0x5ce075(0x1ae)]=_0x5ce075(0x161),_0x257d68[_0x5ce075(0x168)]=_0x5ce075(0x16f),_0x257d68[_0x5ce075(0x192)]=_0x5ce075(0x1a8),_0x257d68['jTlam']=_0x5ce075(0x199),_0x257d68['jGOwr']=_0x5ce075(0x1b5);const _0x49a627=_0x257d68;_0x1f77c5[_0x5ce075(0x184)]&&(_0x1f77c5[_0x5ce075(0x184)][_0x5ce075(0x1b0)]&&(_0x1f77c5[_0x49a627['ryppG']]=_0x1f77c5[_0x5ce075(0x184)]['wcagVersion']),_0x1f77c5[_0x5ce075(0x184)][_0x5ce075(0x169)]&&(_0x1f77c5[_0x49a627[_0x5ce075(0x1ae)]]=_0x1f77c5[_0x5ce075(0x184)][_0x5ce075(0x169)]),_0x1f77c5[_0x5ce075(0x184)][_0x5ce075(0x194)]&&(_0x1f77c5[_0x49a627[_0x5ce075(0x168)]]=_0x1f77c5[_0x5ce075(0x184)][_0x5ce075(0x194)][_0x5ce075(0x15e)],_0x1f77c5[_0x49a627[_0x5ce075(0x192)]]=_0x1f77c5['accessibilityOptions']['includeIssueType'][_0x5ce075(0x171)]));const _0x26714e=JSON[_0x5ce075(0x182)](process['env'][_0x5ce075(0x1aa)])[_0x5ce075(0x170)];_0x1f77c5[_0x49a627[_0x5ce075(0x167)]]=process['env'][_0x5ce075(0x183)],_0x1f77c5[_0x49a627[_0x5ce075(0x1b2)]]=_0x26714e,delete _0x1f77c5[_0x5ce075(0x184)];},exports[a34_0x22e85a(0x17e)]=async _0x4ea432=>{const _0x1ab23f=a34_0x22e85a,_0x504c99={};_0x504c99[_0x1ab23f(0x18d)]=_0x1ab23f(0x187),_0x504c99[_0x1ab23f(0x191)]=_0x1ab23f(0x1af);const _0x2939b4=_0x504c99;if(global[_0x1ab23f(0x1a0)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x4ea432,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x4ea432,scripts.getResults);})();return res;}catch{return logger[_0x1ab23f(0x175)](_0x2939b4[_0x1ab23f(0x18d)]),[];}else return logger[_0x1ab23f(0x18e)](_0x2939b4[_0x1ab23f(0x191)]),[];},exports[a34_0x22e85a(0x1a2)]=async(_0x2af247,_0x2cfbef='')=>{const _0x4de533=a34_0x22e85a;if(global[_0x4de533(0x1a0)])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x4de533(0x179)],async()=>{const _0x444a45=_0x4de533,_0x186725={};_0x186725['command']=_0x2cfbef,await exports['browserStackEvaluate'](_0x2af247,scripts[_0x444a45(0x1a2)],_0x186725);},{'command':_0x2cfbef})();},exports[a34_0x22e85a(0x1a3)]=async _0x20f5e5=>{const _0x2a7f11=a34_0x22e85a,_0x14378a={};_0x14378a[_0x2a7f11(0x1b3)]=_0x2a7f11(0x1bc),_0x14378a[_0x2a7f11(0x1bf)]=_0x2a7f11(0x193);const _0xa396c4=_0x14378a;if(global['accessibilityPlatform'])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x20f5e5,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x20f5e5,scripts.getResultsSummary);})();return summaryResults;}catch{return logger['debug'](_0xa396c4[_0x2a7f11(0x1b3)]),{};}else return logger[_0x2a7f11(0x18e)](_0xa396c4[_0x2a7f11(0x1bf)]),{};},exports['platformValidation']=async _0x119b66=>{const _0xf23599=a34_0x22e85a,_0x526714={'lESdY':function(_0x378e48,_0x1dc863){return _0x378e48!==_0x1dc863;},'PsNuW':_0xf23599(0x16a),'tJMzC':function(_0x20d2f4,_0x5c6a6a){return _0x20d2f4===_0x5c6a6a;},'ZwfXD':_0xf23599(0x17b),'kmEeY':function(_0x165a8b,_0x4b5522){return _0x165a8b===_0x4b5522;},'RGZiz':_0xf23599(0x18f),'bnKap':_0xf23599(0x1c1),'caMlf':function(_0x20c691,_0x2f1705){return _0x20c691(_0x2f1705);},'uqSee':function(_0x4b2735,_0x59d942){return _0x4b2735===_0x59d942;},'XxlLx':_0xf23599(0x15f),'QoGzd':function(_0x5caeff,_0x1e8663){return _0x5caeff>_0x1e8663;},'mKXwx':_0xf23599(0x15d)};try{if(!_0x526714[_0xf23599(0x178)](_0x119b66['deviceName'],''))return logger[_0xf23599(0x18e)](_0x526714['PsNuW']),![];const _0x4ae1bb=_0x119b66[_0xf23599(0x173)];if(!(_0x526714[_0xf23599(0x15c)](_0x4ae1bb,_0x526714[_0xf23599(0x162)])||_0x526714[_0xf23599(0x1a5)](_0x4ae1bb,_0x526714['RGZiz'])))return logger[_0xf23599(0x18e)](_0x526714[_0xf23599(0x196)]),![];const _0x188fc9=_0x526714['caMlf'](parseInt,_0x119b66[_0xf23599(0x1a7)]);if(!(_0x526714[_0xf23599(0x1ad)](_0x188fc9,_0x526714['XxlLx'])||_0x526714['QoGzd'](_0x188fc9,0x5e)))return logger['warn'](_0x526714['mKXwx']),![];}catch(_0x13684f){logger['debug'](_0xf23599(0x19a)+util[_0xf23599(0x19b)](_0x13684f));}return!![];},exports[a34_0x22e85a(0x172)]=(_0x3c634e,_0x45a343,_0x5dd28e)=>{const _0x4824c6=a34_0x22e85a,_0x5d7af9={'WQLIC':function(_0x4af29e){return _0x4af29e();},'LyFLw':_0x4824c6(0x186),'RteZQ':function(_0x39cf97,_0x41b200){return _0x39cf97===_0x41b200;},'HNTcM':_0x4824c6(0x17b),'hFwFq':function(_0x2b46a6,_0x1f3f76){return _0x2b46a6===_0x1f3f76;},'dYLUH':_0x4824c6(0x18f),'Lrhoe':_0x4824c6(0x1c1),'MXvfc':'latest','csKmd':function(_0x128ddb,_0x3d6f03){return _0x128ddb>_0x3d6f03;},'YvnhO':_0x4824c6(0x15d),'ZMfIB':function(_0x38e30c,_0x5c3dbc){return _0x38e30c(_0x5c3dbc);},'wlPDO':_0x4824c6(0x16a),'SOrQs':function(_0x87e4d7,_0x2e863a){return _0x87e4d7+_0x2e863a;},'FPULQ':function(_0x53e5c0,_0x1465d1){return _0x53e5c0(_0x1465d1);}};try{if(_0x5d7af9[_0x4824c6(0x18a)](isAccessibilityAutomationSession)){global[_0x4824c6(0x1a0)]=!![];!_0x3c634e[_0x5d7af9['LyFLw']]&&(global[_0x4824c6(0x1a0)]=![]);!(_0x5d7af9[_0x4824c6(0x1b8)](_0x3c634e['browserName'],_0x5d7af9[_0x4824c6(0x198)])||_0x5d7af9[_0x4824c6(0x1c0)](_0x3c634e[_0x4824c6(0x164)],_0x5d7af9['dYLUH']))&&(logger[_0x4824c6(0x18e)](_0x5d7af9[_0x4824c6(0x19e)]),global[_0x4824c6(0x1a0)]=![]);!(_0x5d7af9['hFwFq'](_0x3c634e[_0x4824c6(0x1a7)],_0x5d7af9['MXvfc'])||_0x5d7af9[_0x4824c6(0x1b7)](_0x3c634e[_0x4824c6(0x1a7)],0x5e))&&(logger[_0x4824c6(0x18e)](_0x5d7af9[_0x4824c6(0x1bb)]),global[_0x4824c6(0x1a0)]=![]);!_0x5d7af9[_0x4824c6(0x19c)](isUndefined,_0x3c634e['deviceName'])&&(logger[_0x4824c6(0x18e)](_0x5d7af9['wlPDO']),global['accessibilityPlatform']=![]);if(!global[_0x4824c6(0x1a0)]){_0x3c634e[_0x5d7af9['LyFLw']]=![];const _0x1b9e24=_0x5d7af9['SOrQs'](_0x45a343,_0x5d7af9[_0x4824c6(0x163)](encodeURIComponent,JSON['stringify'](_0x3c634e)));_0x5dd28e&&(_0x5dd28e[_0x4824c6(0x1b4)][_0x4824c6(0x19d)][_0x4824c6(0x1a6)]['use'][_0x4824c6(0x166)][_0x4824c6(0x165)]=_0x1b9e24,_0x5dd28e['workerInfo'][_0x4824c6(0x1a6)][_0x4824c6(0x177)][_0x4824c6(0x166)][_0x4824c6(0x165)]=_0x1b9e24);}}}catch(_0x3e2b51){logger['debug'](_0x4824c6(0x197)+util['format'](_0x3e2b51));}};function a34_0xfa5e(){const _0x1d18fb=['WebDriver','parse','BS_A11Y_JWT','accessibilityOptions','1083306isNCPW','browserstack.accessibility','No\x20accessibility\x20results\x20were\x20found.','constructor','name','WQLIC','omZgj','evaluate','yVfJW','warn','playwright-chromium','(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','twyQk','YfjOG','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','includeIssueType','../../helpers/logger','bnKap','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','HNTcM','accessibilityOptions.authToken','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','format','ZMfIB','testInfo','Lrhoe','2472669MZGleF','accessibilityPlatform','WzFAZ','performScan','getAccessibilityResultsSummary','182323Tclrbz','kmEeY','project','browser_version','accessibilityOptions.includeIssueType.needsReview','6ySsfMQ','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','util','executeAsyncScript','uqSee','rAjBT','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','wcagVersion','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','jGOwr','PeBxQ','currentTest','accessibilityOptions.scannerVersion','2587880LaEeZZ','csKmd','RteZQ','../../helpers/performance/performance-tester','browserStackExecuteDriver','YvnhO','No\x20summaryResults\x20found.','bstackSdkArgs','298719GGhogb','VDHSZ','hFwFq','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','pRDPK','tJMzC','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','bestPractice','latest','140938oaAXEs','accessibilityOptions.scannerProcessingTimeout','ZwfXD','FPULQ','browserName','wsEndpoint','connectOptions','jTlam','cXrGE','scannerProcessingTimeout','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','replace','ryppG','../../helpers/helper','2025716KsZDnd','accessibilityOptions.includeIssueType.bestPractice','scannerVersion','needsReview','processAccessibilityCaps','browser','15QdvVjC','error','stringify','use','lESdY','PERFORM_SCAN','executeScript','chrome','../../helpers/performance/constants','setAccessibilityCapabilities','getAccessibilityResults','HNueX','browserStackEvaluate'];a34_0xfa5e=function(){return _0x1d18fb;};return a34_0xfa5e();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x48ceb2=a35_0x4849;(function(_0xbfdcc2,_0x554041){const _0x4ef1fa=a35_0x4849,_0x16538c=_0xbfdcc2();while(!![]){try{const _0x3d8aa3=parseInt(_0x4ef1fa(0x223))/0x1*(-parseInt(_0x4ef1fa(0x1d4))/0x2)+-parseInt(_0x4ef1fa(0x191))/0x3+-parseInt(_0x4ef1fa(0x1ea))/0x4+-parseInt(_0x4ef1fa(0x1d8))/0x5+parseInt(_0x4ef1fa(0x1d9))/0x6*(parseInt(_0x4ef1fa(0x1b1))/0x7)+-parseInt(_0x4ef1fa(0x1db))/0x8*(parseInt(_0x4ef1fa(0x1b6))/0x9)+parseInt(_0x4ef1fa(0x21e))/0xa;if(_0x3d8aa3===_0x554041)break;else _0x16538c['push'](_0x16538c['shift']());}catch(_0x4f7ecd){_0x16538c['push'](_0x16538c['shift']());}}}(a35_0x10fc,0x280aa));function a35_0x4849(_0x5c80ad,_0x106c67){const _0x10fc64=a35_0x10fc();return a35_0x4849=function(_0x48495a,_0x138624){_0x48495a=_0x48495a-0x184;let _0x23c7d2=_0x10fc64[_0x48495a];return _0x23c7d2;},a35_0x4849(_0x5c80ad,_0x106c67);}function a35_0x10fc(){const _0x49251b=['VLHrw','true','VHRMf','testContextOptions','nUJER','BROWSERSTACK_AUTOMATION','config','QZydy','mfbea','eWVCR','cwd','testObservability','CEuoc','BROWSERSTACK_TEST_OBSERVABILITY','assign','isTypescriptProject','startsWith','readdirSync','../../helpers/performance/constants','argv','playwright','OPRcu','OpcFJ','--disable-test-observability','path','.browserstack','playwright-browserstack-sdk.config.js','SDK_PRE_INITIALIZE','QJznT','dzSTf','QceoZ','aVshR','vlThe','winstonLogger','PLAYWRIGHT','unlinkSync','CYDvS','start','stop','XDsAz','indexOf','../../helpers/BrowserStackSetup','jcmYy','stringify','get','10514230YylmXy','initialize','TgksS','NHaLj','map','51IjCoFr','homedir','YlnaS','BROWSERSTACK_PW_CONFIG_DIR','isFalse','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','nestedKeyValue','trace_','WSYxi','parse','accessibilityOptions','dirname','YXiUB','resolvedConfigFile','./reporter/pwUtils','false','writeFileSync','ELISF','join','XWtzp','JtMLu','apply','serializeToYamlString','713559oCxZaI','oAkSH','--config=','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','Error\x20in\x20closing\x20playwright','SDK_POST_INITIALIZE','DmgOd','split','SDK_CLEANUP','browserstackSetupConfig.json','splice','CGWOL','LwGAv','resolve','MODULE','findIndex','UICUn','filterBrowserstackArgs','GXKKY','../../helpers/helper','BROWSERSTACK_RERUN','YwwxU','drWJe','hLXHc','omfLJ','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','--disable-browserstack-automation','rDYgD','Qawdr','BROWSERSTACK_SETUP_CONFIG_PATH','skipSessionName','fGfnB','49uREWaj','./reporter/test-details','wHDjo','env','Error\x20in\x20getting\x20funnel\x20data\x20results','1432764TJFDZc','clearTempPWConfig','win32','Updated\x20config\x20file\x20name\x20to\x20-\x20','ImDJF','RnAnE','measureWrapper','child_process','isTrue','RYeck','PACKAGE_TYPE','UZVNL','../../helpers/performance/performance-tester','Deleting\x20','push','getProxyUrl','../../helpers/test-observability/constants','WcxxX','Error\x20in\x20deleting\x20playwright\x20results','isUndefined','skipSessionStatus','test','requirePWModule','debug','Playwright\x20process\x20exited\x20with\x20code\x20','finalExecution','existsSync','YAowe','cliConfig','logLevel','10786kqciVd','close','getConfigPath','../../helpers/utilities','971855BJAsvL','36444VWXCbt','errorMessage','8AwhmeJ','exitCode','Carka','launchBuild','--grep','npx','BrowserStack\x20config\x20file\x20not\x20found.','../../helpers/logger','filter','util','BROWSERSTACK_RERUN_TESTS','end','trim','\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();','--config','253872ERqSFZ','inherit','BROWSERSTACK_TEST_ACCESSIBILITY_YML','iuydQ','slice','length','../../helpers/testhub/testhubHandler'];a35_0x10fc=function(){return _0x49251b;};return a35_0x10fc();}const fs=require('fs'),path=require(a35_0x48ceb2(0x209)),{spawn}=require(a35_0x48ceb2(0x1bd)),{format}=require(a35_0x48ceb2(0x1e4)),logger=require(a35_0x48ceb2(0x1e2))[a35_0x48ceb2(0x212)],{default:BrowserStackSetup}=require(a35_0x48ceb2(0x21a)),helper=require(a35_0x48ceb2(0x1a4)),utilities=require(a35_0x48ceb2(0x1d7)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0x48ceb2(0x1c6)),{getConfigLoaderPath}=require(a35_0x48ceb2(0x188)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a35_0x48ceb2(0x1b2)),TestHubHandler=require(a35_0x48ceb2(0x1f0)),PerformanceTester=require(a35_0x48ceb2(0x1c2)),PerformanceEvents=require(a35_0x48ceb2(0x203))['EVENTS'],getUserPlaywrightConfig=async(_0x159f81,_0x36b26f)=>{const _0x3b8d1f=a35_0x48ceb2,_0x4c23fc={'UZVNL':function(_0x3b1a96){return _0x3b1a96();},'dpcJW':function(_0x2b7cfb,_0x19167c){return _0x2b7cfb(_0x19167c);},'CYDvS':function(_0x27ac52,_0x620049){return _0x27ac52(_0x620049);},'eWVCR':_0x3b8d1f(0x187),'CEuoc':'--config='},_0x1e8c17=!helper[_0x3b8d1f(0x1c9)](_0x159f81['config']),_0x510ca8=_0x1e8c17?path[_0x3b8d1f(0x19e)](process[_0x3b8d1f(0x1fb)](),_0x159f81['config']):process[_0x3b8d1f(0x1fb)](),{resolveConfigFile:_0x2a4d8b,resolveConfigLocation:_0x3bc60d}=helper[_0x3b8d1f(0x1cc)][_0x3b8d1f(0x18f)](null,_0x4c23fc[_0x3b8d1f(0x1c1)](getConfigLoaderPath)),_0x23cf87=_0x2a4d8b?_0x4c23fc['dpcJW'](_0x2a4d8b,_0x510ca8):helper[_0x3b8d1f(0x229)](_0x4c23fc[_0x3b8d1f(0x215)](_0x3bc60d,_0x510ca8),[_0x4c23fc[_0x3b8d1f(0x1fa)]]),_0x5583a2={};if(_0x1e8c17){const _0x42d382=_0x36b26f[_0x3b8d1f(0x1a0)](_0x4ef06d=>_0x4ef06d===_0x3b8d1f(0x1e9)||_0x4ef06d==='-c'||_0x4ef06d['startsWith'](_0x3b8d1f(0x193)));_0x36b26f[_0x3b8d1f(0x19b)](_0x42d382,_0x36b26f[_0x42d382][_0x3b8d1f(0x201)](_0x4c23fc[_0x3b8d1f(0x1fd)])?0x1:0x2);}const _0x17747a={};return _0x17747a[_0x3b8d1f(0x209)]=_0x23cf87,_0x17747a[_0x3b8d1f(0x1f7)]=_0x5583a2,_0x17747a;},handleO11yRerun=_0x351154=>{const _0x26b15b=a35_0x48ceb2,_0xf567d4={};_0xf567d4['dzSTf']=_0x26b15b(0x1df);const _0x2f2005=_0xf567d4,_0x43377c=helper[_0x26b15b(0x1be)](process['env'][_0x26b15b(0x1a5)]);if(_0x43377c){const _0x3c9a0b=process[_0x26b15b(0x1b4)][_0x26b15b(0x1e5)],_0x216460=[];if(helper['validateRerunTestList'](_0x3c9a0b)&&!helper[_0x26b15b(0x1c9)](_0x3c9a0b)){_0x3c9a0b[_0x26b15b(0x198)](',')[_0x26b15b(0x222)](_0x5d4bcb=>{const _0x3ec6e0=_0x26b15b;_0x216460[_0x3ec6e0(0x1c4)]('('+_0x5d4bcb[_0x3ec6e0(0x1e7)]()+')');});const _0xb65de3='^'+_0x216460[_0x26b15b(0x18c)]('|')+'$';_0x351154[_0x26b15b(0x1c4)](_0x2f2005[_0x26b15b(0x20e)],_0xb65de3);}}},spawnOriginalProcess=_0x51df6f=>{const _0x3574df=a35_0x48ceb2,_0x1b88d4={'JnHYC':function(_0x1efc29,_0x1fa013,_0x2b1fd3,_0x5d2c7f){return _0x1efc29(_0x1fa013,_0x2b1fd3,_0x5d2c7f);},'iuydQ':'npx','TgksS':'playwright','YwwxU':function(_0x228c9a,_0x1f2c4f){return _0x228c9a===_0x1f2c4f;},'Qawdr':_0x3574df(0x1b8),'XIVQZ':_0x3574df(0x1eb)};_0x1b88d4['JnHYC'](spawn,_0x1b88d4[_0x3574df(0x1ed)],[_0x1b88d4[_0x3574df(0x220)],..._0x51df6f[_0x3574df(0x1ee)](0x1)],{'shell':_0x1b88d4[_0x3574df(0x1a6)](process['platform'],_0x1b88d4[_0x3574df(0x1ad)]),'stdio':_0x1b88d4['XIVQZ'],'cwd':process['cwd']()});},isTestCommand=(_0x11ae48,_0x19e4e7)=>{const _0x313992=a35_0x48ceb2,_0x58e669={};_0x58e669[_0x313992(0x1bf)]=function(_0x128c60,_0x929f1f){return _0x128c60>_0x929f1f;},_0x58e669[_0x313992(0x1b0)]=function(_0x2e81ab,_0x245f93){return _0x2e81ab===_0x245f93;},_0x58e669[_0x313992(0x1ac)]='test';const _0xc61d68=_0x58e669;if(_0xc61d68[_0x313992(0x1bf)](_0x19e4e7[_0x313992(0x1ef)],0x1)&&_0xc61d68[_0x313992(0x1b0)](_0x19e4e7[0x1],_0xc61d68[_0x313992(0x1ac)]))return!![];return![];};async function run(_0x243171,_0x5cc69e){const _0x20dd83=a35_0x48ceb2,_0x3adeb7={'drWJe':_0x20dd83(0x20a),'hLXHc':'pw_result.json','QceoZ':function(_0x3e130a,_0x33b89d){return _0x3e130a+_0x33b89d;},'XWtzp':_0x20dd83(0x1b5),'gNJTV':function(_0x158819,_0x31e32d){return _0x158819(_0x31e32d);},'vlThe':function(_0x5daecc){return _0x5daecc();},'Carka':function(_0x41bed9,_0x40dab3){return _0x41bed9+_0x40dab3;},'XoLup':_0x20dd83(0x195),'wYJPX':_0x20dd83(0x1e1),'WcxxX':'automation','dBizL':function(_0x100108,_0x136e7e){return _0x100108!=_0x136e7e;},'CGWOL':function(_0x3b98ba,_0x1a97e4,_0x1ca5b1){return _0x3b98ba(_0x1a97e4,_0x1ca5b1);},'OPRcu':function(_0x367f46,_0xcae74b){return _0x367f46(_0xcae74b);},'ImDJF':function(_0x3a26de,_0x42c687){return _0x3a26de===_0x42c687;},'QZydy':_0x20dd83(0x1f2),'DmgOd':_0x20dd83(0x19a),'VHRMf':function(_0x380441,_0x963899){return _0x380441===_0x963899;},'VLHrw':'playwright-browserstack-sdk.config.cjs','kLsEr':_0x20dd83(0x20b),'ZTSAw':function(_0x5c23fa,_0x54ac80){return _0x5c23fa-_0x54ac80;},'OpcFJ':function(_0x54574b,_0x9e7fcd){return _0x54574b+_0x9e7fcd;},'oAkSH':_0x20dd83(0x1b9),'GXKKY':function(_0x49df4c,_0x37414d){return _0x49df4c>_0x37414d;},'NHaLj':function(_0x2ad4ec,_0x2befce,_0x47d76d,_0x5900f1){return _0x2ad4ec(_0x2befce,_0x47d76d,_0x5900f1);},'omfLJ':_0x20dd83(0x1e0),'nUJER':_0x20dd83(0x205),'QJznT':_0x20dd83(0x1cb),'XDsAz':'--config','wHDjo':_0x20dd83(0x1b8),'LwGAv':_0x20dd83(0x1eb),'mfbea':_0x20dd83(0x1d5),'rxUeE':_0x20dd83(0x1ab),'aVshR':_0x20dd83(0x189),'ELISF':'--disable-test-observability','UICUn':function(_0x120c94,_0x2af416){return _0x120c94>=_0x2af416;},'YAowe':_0x20dd83(0x1c8),'YlnaS':function(_0x5f28d6,_0x3ed357){return _0x5f28d6(_0x3ed357);}};!helper[_0x20dd83(0x227)](process['env']['BROWSERSTACK_AUTOMATION'])&&(process[_0x20dd83(0x1b4)][_0x20dd83(0x1f6)]=!![]);process[_0x20dd83(0x204)]['includes'](_0x3adeb7['rxUeE'])&&(process[_0x20dd83(0x1b4)]['BROWSERSTACK_AUTOMATION']=_0x3adeb7[_0x20dd83(0x210)],_0x5cc69e=_0x5cc69e[_0x20dd83(0x1e3)](_0x14caef=>_0x14caef!==_0x20dd83(0x1ab)));const _0x2ba8ac=_0x5cc69e[_0x20dd83(0x219)](_0x3adeb7[_0x20dd83(0x18b)]);_0x3adeb7[_0x20dd83(0x1a1)](_0x2ba8ac,0x0)&&(process[_0x20dd83(0x1b4)][_0x20dd83(0x1fe)]=_0x3adeb7[_0x20dd83(0x210)],_0x5cc69e=_0x5cc69e['filter'](_0x50d96e=>_0x50d96e!==_0x20dd83(0x208)));try{const _0x3167f6=path[_0x20dd83(0x18c)](helper[_0x20dd83(0x224)](),_0x3adeb7[_0x20dd83(0x1a7)],_0x3adeb7[_0x20dd83(0x1a8)]);fs[_0x20dd83(0x1d0)](_0x3167f6)&&fs[_0x20dd83(0x214)](_0x3167f6);}catch(_0xe5bd7a){logger['debug'](_0x3adeb7[_0x20dd83(0x1dd)](_0x3adeb7[_0x20dd83(0x1d1)],_0xe5bd7a));}if(!_0x3adeb7[_0x20dd83(0x19c)](isTestCommand,_0x243171,_0x5cc69e)){_0x3adeb7[_0x20dd83(0x225)](spawnOriginalProcess,_0x5cc69e);return;}const _0x34c2fa=new BrowserStackSetup(_0x243171,FRAMEWORKS['PLAYWRIGHT']);await PerformanceTester[_0x20dd83(0x1bc)](PerformanceEvents[_0x20dd83(0x20c)],async()=>{const _0x517f66=_0x20dd83,_0x53fea0={'JMPDB':function(_0x526673,_0x460b3d){return _0x3adeb7['gNJTV'](_0x526673,_0x460b3d);},'WSYxi':_0x3adeb7[_0x517f66(0x1a7)],'JtMLu':function(_0x1e61ea){const _0x4eb341=_0x517f66;return _0x3adeb7[_0x4eb341(0x211)](_0x1e61ea);},'jcmYy':function(_0x115911){const _0x1099db=_0x517f66;return _0x3adeb7[_0x1099db(0x211)](_0x115911);},'YXiUB':function(_0x3b0364,_0x2bd111){const _0x2d4f9f=_0x517f66;return _0x3adeb7[_0x2d4f9f(0x1dd)](_0x3b0364,_0x2bd111);},'xCwPU':_0x3adeb7['XoLup']};if(!_0x34c2fa[_0x517f66(0x1f7)]){logger['error'](_0x3adeb7['wYJPX']);return;}await _0x34c2fa[_0x517f66(0x21f)]();!helper[_0x517f66(0x1c9)](_0x34c2fa['cliConfig'])&&_0x34c2fa[_0x517f66(0x1d2)]['has'](_0x3adeb7[_0x517f66(0x1c7)])&&(process[_0x517f66(0x1b4)]['BROWSERSTACK_AUTOMATION']=_0x34c2fa['cliConfig'][_0x517f66(0x21d)](_0x3adeb7[_0x517f66(0x1c7)])||!![]);_0x3adeb7['dBizL'](_0x34c2fa[_0x517f66(0x1f7)][_0x517f66(0x1fc)],null)&&!helper[_0x517f66(0x1be)](process[_0x517f66(0x1b4)][_0x517f66(0x1fe)])&&(process['env'][_0x517f66(0x1fe)]=process[_0x517f66(0x1b4)][_0x517f66(0x1fe)]||_0x34c2fa[_0x517f66(0x1f7)][_0x517f66(0x1fc)]);const _0x13ba38=!helper[_0x517f66(0x227)](process[_0x517f66(0x1b4)]['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x47bf20=![];_0x34c2fa[_0x517f66(0x1f7)]['accessibility']&&(_0x47bf20=!![],process[_0x517f66(0x1b4)][_0x517f66(0x1ec)]=_0x34c2fa[_0x517f66(0x1f7)]['accessibility']);_0x34c2fa['config'][_0x517f66(0x184)]&&(process[_0x517f66(0x1b4)][_0x517f66(0x228)]=JSON[_0x517f66(0x21c)](_0x34c2fa[_0x517f66(0x1f7)]['accessibilityOptions']));const _0x15341a=_0x5cc69e['concat'](),_0x2af729=await _0x3adeb7[_0x517f66(0x19c)](getUserPlaywrightConfig,_0x243171,_0x5cc69e);if(helper[_0x517f66(0x1c9)](_0x2af729)){_0x3adeb7['OPRcu'](spawnOriginalProcess,_0x15341a);return;}const _0x6e12b0=_0x2af729['path']?path['dirname'](_0x2af729[_0x517f66(0x209)]):process[_0x517f66(0x1fb)]();process[_0x517f66(0x1b4)][_0x517f66(0x226)]=_0x6e12b0,await PerformanceTester[_0x517f66(0x1bc)](PerformanceEvents[_0x517f66(0x196)],async()=>{const _0x2be3f9=_0x517f66;await TestHubHandler[_0x2be3f9(0x1de)](FRAMEWORKS[_0x2be3f9(0x213)],_0x34c2fa),_0x13ba38&&_0x53fea0['JMPDB'](handleO11yRerun,_0x5cc69e);})();let _0x38df4d=_0x3adeb7[_0x517f66(0x1ba)](process['env'][_0x517f66(0x1ec)],_0x3adeb7[_0x517f66(0x1f8)]);_0x38df4d=_0x38df4d||_0x3adeb7['OPRcu'](checkAccessibilityPlatformConfig,_0x34c2fa[_0x517f66(0x1f7)]),process[_0x517f66(0x1b4)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x38df4d;_0x38df4d&&_0x3adeb7[_0x517f66(0x206)](setAccessibilityCapabilities,_0x34c2fa['config']);const _0x3f2de6=path[_0x517f66(0x18c)](_0x2af729[_0x517f66(0x209)]?path[_0x517f66(0x185)](_0x2af729[_0x517f66(0x209)]):process['cwd'](),_0x3adeb7[_0x517f66(0x197)]);fs['writeFileSync'](_0x3f2de6,helper[_0x517f66(0x190)](_0x34c2fa[_0x517f66(0x1f7)])),process[_0x517f66(0x1b4)][_0x517f66(0x1ae)]=_0x3f2de6,helper[_0x517f66(0x1b7)]();let _0x4e37ff='';_0x3adeb7[_0x517f66(0x1f3)](helper['getPackageType'](),constants[_0x517f66(0x1c0)][_0x517f66(0x19f)])?_0x4e37ff=_0x3adeb7[_0x517f66(0x1f1)]:_0x4e37ff=_0x3adeb7['kLsEr'];let _0x21ba08='';if(helper[_0x517f66(0x200)](_0x2af729[_0x517f66(0x209)])){_0x21ba08='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0xdd850a=_0x4e37ff[_0x517f66(0x198)]('.');_0xdd850a[_0x3adeb7['ZTSAw'](_0xdd850a['length'],0x1)]='ts',_0x4e37ff=_0xdd850a[_0x517f66(0x18c)]('.'),logger[_0x517f66(0x1cd)](_0x3adeb7[_0x517f66(0x207)](_0x3adeb7[_0x517f66(0x192)],_0x4e37ff));}else _0x21ba08=_0x517f66(0x1aa);const _0x1d23f5=path[_0x517f66(0x18c)](_0x2af729[_0x517f66(0x209)]?path[_0x517f66(0x185)](_0x2af729[_0x517f66(0x209)]):process[_0x517f66(0x1fb)](),_0x4e37ff);let _0x4cd632=_0x2af729[_0x517f66(0x209)]?_0x2af729[_0x517f66(0x209)]:'';_0x4cd632=_0x3adeb7[_0x517f66(0x1a3)](_0x4cd632[_0x517f66(0x1ef)],0x0)?path[_0x517f66(0x19e)](_0x4cd632):'',process[_0x517f66(0x1b4)]['USER_CONFIG_DETAILS_PATH']=_0x4cd632;const _0x2e4cfa=helper[_0x517f66(0x1c5)](_0x34c2fa[_0x517f66(0x1f7)]);_0x2e4cfa&&(_0x21ba08=_0x3adeb7[_0x517f66(0x20f)](_0x517f66(0x194)+_0x2e4cfa+_0x517f66(0x1e8),_0x21ba08));helper[_0x517f66(0x1a2)]({},_0x5cc69e),fs[_0x517f66(0x18a)](_0x1d23f5,_0x21ba08),PerformanceTester[_0x517f66(0x1e6)](PerformanceEvents['SDK_SETUP']);const _0xb8b7a6=_0x3adeb7[_0x517f66(0x221)](spawn,_0x3adeb7[_0x517f66(0x1a9)],[_0x3adeb7[_0x517f66(0x1f5)],_0x3adeb7[_0x517f66(0x20d)],_0x3adeb7[_0x517f66(0x218)],_0x1d23f5,..._0x5cc69e['slice'](0x2)],{'shell':_0x3adeb7[_0x517f66(0x1f3)](process['platform'],_0x3adeb7[_0x517f66(0x1b3)]),'stdio':_0x3adeb7[_0x517f66(0x19d)],'cwd':process[_0x517f66(0x1fb)](),'env':Object[_0x517f66(0x1ff)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x517f66(0x1d6)](_0x243171),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x34c2fa[_0x517f66(0x1f7)][_0x517f66(0x1f4)][_0x517f66(0x1ca)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x34c2fa[_0x517f66(0x1f7)][_0x517f66(0x1f4)][_0x517f66(0x1af)],'BROWSERSTACK_LOG_LEVEL':_0x34c2fa[_0x517f66(0x1f7)][_0x517f66(0x1d3)]})}),_0x20d6f9=()=>{const _0x562f08=_0x517f66;try{const _0x3206b3=path['join'](helper[_0x562f08(0x224)](),_0x3adeb7['drWJe'],_0x3adeb7[_0x562f08(0x1a8)]);if(fs[_0x562f08(0x1d0)](_0x3206b3)){let _0x28d8b9=fs['readFileSync'](_0x3206b3);_0x28d8b9=JSON[_0x562f08(0x22c)](_0x28d8b9),_0x34c2fa[_0x562f08(0x1da)]=_0x28d8b9,fs[_0x562f08(0x214)](_0x3206b3);}}catch(_0x261970){logger[_0x562f08(0x1cd)](_0x3adeb7['QceoZ'](_0x3adeb7[_0x562f08(0x18d)],_0x261970));}};_0xb8b7a6['on'](_0x3adeb7[_0x517f66(0x1f9)],async _0x38337c=>{const _0x1c774e=_0x517f66,_0xb2ffbe={};_0xb2ffbe[_0x1c774e(0x1bb)]=_0x53fea0[_0x1c774e(0x22b)];const _0x5aaa14=_0xb2ffbe;try{PerformanceTester[_0x1c774e(0x216)](PerformanceEvents[_0x1c774e(0x199)]),_0x53fea0[_0x1c774e(0x18e)](_0x20d6f9),await TestHubHandler[_0x1c774e(0x217)](),TestDetails['shutdown'](),_0x53fea0[_0x1c774e(0x21b)](printBuildLink),await utilities[_0x1c774e(0x1cf)](_0x34c2fa),process[_0x1c774e(0x1dc)]=_0x38337c,logger[_0x1c774e(0x1cd)](_0x1c774e(0x1ce)+_0x38337c),logger['info']('Deleting\x20'+_0x1d23f5),fs[_0x1c774e(0x214)](_0x1d23f5);fs[_0x1c774e(0x1d0)](_0x3f2de6)&&(logger[_0x1c774e(0x1cd)](_0x1c774e(0x1c3)+_0x3f2de6),fs[_0x1c774e(0x214)](_0x3f2de6));const _0x4a804e=fs[_0x1c774e(0x202)](path[_0x1c774e(0x18c)](helper[_0x1c774e(0x224)](),_0x53fea0[_0x1c774e(0x22b)]))[_0x1c774e(0x1e3)](_0x3d32e1=>_0x3d32e1[_0x1c774e(0x201)](_0x1c774e(0x22a)));_0x4a804e['forEach'](_0x498e3b=>{const _0x36c6c5=_0x1c774e;fs[_0x36c6c5(0x214)](path[_0x36c6c5(0x18c)](helper['homedir'](),_0x5aaa14[_0x36c6c5(0x1bb)],_0x498e3b));});}catch(_0x240209){logger[_0x1c774e(0x1cd)](_0x53fea0[_0x1c774e(0x186)](_0x53fea0['xCwPU'],_0x240209));}});})();}module['exports']=run;
|
|
2
|
+
'use strict';function a35_0x4f33(){const _0x57e48e=['XdCWB','Playwright\x20process\x20exited\x20with\x20code\x20','debug','NuPkY','5748xHqNjA','XOsYL','dCvyD','automation','CkGIK','FMSqb','push','emfXD','requirePWModule','false','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','path','QwHZa','BROWSERSTACK_AUTOMATION','testObservability','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','ebsHi','MODULE','../../helpers/performance/performance-tester','argv','nntPj','playwright-browserstack-sdk.config.cjs','PACKAGE_TYPE','441727vooxDV','cHDZT','apply','config','win32','playwright','BROWSERSTACK_RERUN_TESTS','9mytHGG','filter','skipSessionStatus','ecWvz','VOALH','BrowserStack\x20config\x20file\x20not\x20found.','PxchD','trim','clearTempPWConfig','jnyQH','scWgB','BvMLM','../../helpers/accessibility-automation/helper','UZAto','8418824yNFlbw','ARScK','../../helpers/performance/constants','313XMTcoH','trace_','./reporter/test-details','../../helpers/testhub/testhubHandler','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','1398YIQWQK','BROWSERSTACK_TEST_OBSERVABILITY','--config','RLBPV','measureWrapper','exports','EVENTS','./accessibility-helper','BqgNo','./reporter/pwUtils','inherit','util','Updated\x20config\x20file\x20name\x20to\x20-\x20','AbLLR','BHlKb','aBCjG','\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();','USER_CONFIG_DETAILS_PATH','concat','4633550NsCalY','--config=','testContextOptions','73028KcbJeq','platform','errorMessage','--grep','validateRerunTestList','SDK_PRE_INITIALIZE','Error\x20in\x20closing\x20playwright','eZxxe','../../helpers/helper','XpFyx','CdOHj','../../helpers/logger','has','cwd','../utils/constants','winstonLogger','lItQW','nestedKeyValue','initialize','BROWSERSTACK_PW_CONFIG_DIR','PLAYWRIGHT','hHhvA','split','bqEwE','getConfigPath','OuuYK','PCKFs','resolvedConfigFile','135nzLqUf','browserstackSetupConfig.json','splice','EIuNV','existsSync','true','Deleting\x20','ltWZq','resolve','Error\x20in\x20getting\x20funnel\x20data\x20results','stringify','accessibilityOptions','../../helpers/utilities','accessibility','start','startsWith','unlinkSync','readdirSync','../../helpers/BrowserStackSetup','dpYoy','uClHv','env','qQguA','findIndex','writeFileSync','UtBpc','isTrue','launchBuild','logLevel','LbHpK','error','XFZvW','filterBrowserstackArgs','Acini','slice','exitCode','BROWSERSTACK_TEST_ACCESSIBILITY_YML','bugTU','length','skipSessionName','iWoNi','SDK_POST_INITIALIZE','shutdown','join','Hgqsd','RxlBR','vkeQJ','isUndefined','PDMwW','getProxyUrl','VgZFp','pw_result.json','test','XYRYM','get','cliConfig','5306WRTlpO','getPackageType','3025797lbuDgQ','EYItU','homedir','jDBli','dirname','npx','--disable-browserstack-automation','pVFTR','204SpPJQg','--disable-test-observability','ngAKM','lVxgh','MKJiS','isFalse','DLWyA','readFileSync','close'];a35_0x4f33=function(){return _0x57e48e;};return a35_0x4f33();}const a35_0x5dfc7c=a35_0x532a;(function(_0x326d2c,_0x422779){const _0xaea502=a35_0x532a,_0x3573b9=_0x326d2c();while(!![]){try{const _0x3fbfda=parseInt(_0xaea502(0x193))/0x1*(parseInt(_0xaea502(0x198))/0x2)+parseInt(_0xaea502(0x14f))/0x3+parseInt(_0xaea502(0x1ae))/0x4*(-parseInt(_0xaea502(0x115))/0x5)+-parseInt(_0xaea502(0x164))/0x6*(-parseInt(_0xaea502(0x14d))/0x7)+-parseInt(_0xaea502(0x190))/0x8+parseInt(_0xaea502(0x182))/0x9*(-parseInt(_0xaea502(0x1ab))/0xa)+-parseInt(_0xaea502(0x17b))/0xb*(-parseInt(_0xaea502(0x157))/0xc);if(_0x3fbfda===_0x422779)break;else _0x3573b9['push'](_0x3573b9['shift']());}catch(_0x1da3da){_0x3573b9['push'](_0x3573b9['shift']());}}}(a35_0x4f33,0x99374));const fs=require('fs'),path=require(a35_0x5dfc7c(0x16f)),{spawn}=require('child_process'),{format}=require(a35_0x5dfc7c(0x1a3)),logger=require(a35_0x5dfc7c(0x1b9))[a35_0x5dfc7c(0x1bd)],{default:BrowserStackSetup}=require(a35_0x5dfc7c(0x127)),helper=require(a35_0x5dfc7c(0x1b6)),utilities=require(a35_0x5dfc7c(0x121)),constants=require(a35_0x5dfc7c(0x1bc)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a35_0x5dfc7c(0x1a1)),{checkAccessibilityPlatformConfig}=require(a35_0x5dfc7c(0x18e)),{setAccessibilityCapabilities}=require(a35_0x5dfc7c(0x19f)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a35_0x5dfc7c(0x195)),TestHubHandler=require(a35_0x5dfc7c(0x196)),PerformanceTester=require(a35_0x5dfc7c(0x176)),PerformanceEvents=require(a35_0x5dfc7c(0x192))[a35_0x5dfc7c(0x19e)],getUserPlaywrightConfig=async(_0x5d63ed,_0x49ec06)=>{const _0xddd368=a35_0x5dfc7c,_0x3a1cb8={'bqEwE':function(_0x9ffe9){return _0x9ffe9();},'pVFTR':function(_0x1af214,_0x243408){return _0x1af214(_0x243408);},'iWoNi':function(_0x19d27a,_0x185f66){return _0x19d27a(_0x185f66);},'RxlBR':_0xddd368(0x114),'RLBPV':'--config='},_0x49d54d=!helper[_0xddd368(0x144)](_0x5d63ed[_0xddd368(0x17e)]),_0x552cdd=_0x49d54d?path['resolve'](process[_0xddd368(0x1bb)](),_0x5d63ed[_0xddd368(0x17e)]):process[_0xddd368(0x1bb)](),{resolveConfigFile:_0x4c81fd,resolveConfigLocation:_0x2ce14c}=helper[_0xddd368(0x16c)][_0xddd368(0x17d)](null,_0x3a1cb8[_0xddd368(0x110)](getConfigLoaderPath)),_0x42beb6=_0x4c81fd?_0x3a1cb8[_0xddd368(0x156)](_0x4c81fd,_0x552cdd):helper[_0xddd368(0x1bf)](_0x3a1cb8[_0xddd368(0x13d)](_0x2ce14c,_0x552cdd),[_0x3a1cb8[_0xddd368(0x142)]]),_0x4d3951={};if(_0x49d54d){const _0x13a15e=_0x49ec06[_0xddd368(0x12c)](_0x48c8d0=>_0x48c8d0===_0xddd368(0x19a)||_0x48c8d0==='-c'||_0x48c8d0[_0xddd368(0x124)](_0xddd368(0x1ac)));_0x49ec06[_0xddd368(0x117)](_0x13a15e,_0x49ec06[_0x13a15e][_0xddd368(0x124)](_0x3a1cb8[_0xddd368(0x19b)])?0x1:0x2);}const _0x28a8e6={};return _0x28a8e6['path']=_0x42beb6,_0x28a8e6['config']=_0x4d3951,_0x28a8e6;},handleO11yRerun=_0x38fbbe=>{const _0x371bc9=a35_0x5dfc7c,_0x9f9615={};_0x9f9615[_0x371bc9(0x11c)]=_0x371bc9(0x1b1);const _0x21a77c=_0x9f9615,_0x974151=helper[_0x371bc9(0x12f)](process[_0x371bc9(0x12a)]['BROWSERSTACK_RERUN']);if(_0x974151){const _0xf5466a=process['env'][_0x371bc9(0x181)],_0x4b4846=[];if(helper[_0x371bc9(0x1b2)](_0xf5466a)&&!helper[_0x371bc9(0x144)](_0xf5466a)){_0xf5466a[_0x371bc9(0x10f)](',')['map'](_0x5afaae=>{const _0x1a01b5=_0x371bc9;_0x4b4846[_0x1a01b5(0x16a)]('('+_0x5afaae[_0x1a01b5(0x189)]()+')');});const _0x5b6eac='^'+_0x4b4846[_0x371bc9(0x140)]('|')+'$';_0x38fbbe['push'](_0x21a77c[_0x371bc9(0x11c)],_0x5b6eac);}}},spawnOriginalProcess=_0x35e8a1=>{const _0x14120e=a35_0x5dfc7c,_0x53a258={'BqgNo':function(_0x2fe665,_0x419119,_0x4063f8,_0x11b678){return _0x2fe665(_0x419119,_0x4063f8,_0x11b678);},'WQhnz':_0x14120e(0x154),'CdOHj':_0x14120e(0x180),'RZbiT':function(_0x3ea3c7,_0x1a2f33){return _0x3ea3c7===_0x1a2f33;},'lVxgh':_0x14120e(0x17f),'dpYoy':_0x14120e(0x1a2)};_0x53a258[_0x14120e(0x1a0)](spawn,_0x53a258['WQhnz'],[_0x53a258[_0x14120e(0x1b8)],..._0x35e8a1[_0x14120e(0x137)](0x1)],{'shell':_0x53a258['RZbiT'](process[_0x14120e(0x1af)],_0x53a258[_0x14120e(0x15a)]),'stdio':_0x53a258[_0x14120e(0x128)],'cwd':process['cwd']()});},isTestCommand=(_0x43fc71,_0x319c22)=>{const _0x34d2aa=a35_0x5dfc7c,_0x871ea6={};_0x871ea6[_0x34d2aa(0x163)]=function(_0x5edfb5,_0x567c63){return _0x5edfb5>_0x567c63;},_0x871ea6[_0x34d2aa(0x12b)]=function(_0x1d0ac9,_0x555e24){return _0x1d0ac9===_0x555e24;},_0x871ea6['BHlKb']=_0x34d2aa(0x149);const _0x593437=_0x871ea6;if(_0x593437['NuPkY'](_0x319c22[_0x34d2aa(0x13b)],0x1)&&_0x593437['qQguA'](_0x319c22[0x1],_0x593437[_0x34d2aa(0x1a6)]))return!![];return![];};function a35_0x532a(_0x2b41ab,_0x8f48be){const _0x4f33d4=a35_0x4f33();return a35_0x532a=function(_0x532aa3,_0x3de0d6){_0x532aa3=_0x532aa3-0x10b;let _0x524527=_0x4f33d4[_0x532aa3];return _0x524527;},a35_0x532a(_0x2b41ab,_0x8f48be);}async function run(_0x4f69d3,_0x472f76){const _0x2fd661=a35_0x5dfc7c,_0x276adf={'AbLLR':function(_0x5d7d4e,_0x3c30df){return _0x5d7d4e(_0x3c30df);},'QwHZa':'.browserstack','vkeQJ':_0x2fd661(0x148),'XpFyx':function(_0x283666,_0x343709){return _0x283666+_0x343709;},'CkGIK':_0x2fd661(0x11e),'emfXD':function(_0x1ae6d5){return _0x1ae6d5();},'XOsYL':function(_0x12a376){return _0x12a376();},'XdCWB':function(_0xc05d12,_0x454c7e){return _0xc05d12+_0x454c7e;},'Acini':_0x2fd661(0x1b4),'PDMwW':_0x2fd661(0x187),'DLWyA':_0x2fd661(0x167),'ecWvz':function(_0xbdbcbc,_0x3d7cc5){return _0xbdbcbc!=_0x3d7cc5;},'ARScK':function(_0xe38236,_0xec9dbd,_0x42f0c8){return _0xe38236(_0xec9dbd,_0x42f0c8);},'YTiCl':function(_0x55fc13,_0x5eeb43){return _0x55fc13(_0x5eeb43);},'scWgB':function(_0x490fd5,_0x47d4f9){return _0x490fd5===_0x47d4f9;},'SfbCM':_0x2fd661(0x11a),'XFZvW':function(_0x21a618,_0x57a8b9){return _0x21a618(_0x57a8b9);},'jDBli':_0x2fd661(0x116),'LbHpK':function(_0xea92f0,_0x4e7291){return _0xea92f0===_0x4e7291;},'cHDZT':_0x2fd661(0x179),'UtBpc':'playwright-browserstack-sdk.config.js','XYRYM':function(_0x2aaff1,_0x2c5175){return _0x2aaff1-_0x2c5175;},'VgZFp':_0x2fd661(0x1a4),'REOEs':function(_0x5dac93,_0x2eb8c6){return _0x5dac93>_0x2eb8c6;},'aBCjG':function(_0x2fe9f1,_0x49dff8){return _0x2fe9f1+_0x49dff8;},'sVUui':function(_0x558445,_0x53c331,_0x5e84ae,_0x40510f){return _0x558445(_0x53c331,_0x5e84ae,_0x40510f);},'bugTU':_0x2fd661(0x154),'OuuYK':'playwright','BvMLM':'test','VOALH':_0x2fd661(0x19a),'lItQW':_0x2fd661(0x17f),'hHhvA':'inherit','nntPj':_0x2fd661(0x15f),'wfAHj':'--disable-browserstack-automation','PxchD':_0x2fd661(0x16d),'ngAKM':'--disable-test-observability','PCKFs':function(_0x18fd12,_0x200297){return _0x18fd12>=_0x200297;},'EYItU':function(_0x26558f,_0x509e12){return _0x26558f+_0x509e12;},'uClHv':'Error\x20in\x20deleting\x20playwright\x20results','jnyQH':function(_0x5c8efa,_0x5888de){return _0x5c8efa(_0x5888de);}};!helper[_0x2fd661(0x15c)](process[_0x2fd661(0x12a)][_0x2fd661(0x171)])&&(process[_0x2fd661(0x12a)]['BROWSERSTACK_AUTOMATION']=!![]);process[_0x2fd661(0x177)]['includes'](_0x276adf['wfAHj'])&&(process['env'][_0x2fd661(0x171)]=_0x276adf['PxchD'],_0x472f76=_0x472f76[_0x2fd661(0x183)](_0x47fee8=>_0x47fee8!==_0x2fd661(0x155)));const _0x1ce2b3=_0x472f76['indexOf'](_0x276adf[_0x2fd661(0x159)]);_0x276adf[_0x2fd661(0x113)](_0x1ce2b3,0x0)&&(process[_0x2fd661(0x12a)][_0x2fd661(0x199)]=_0x276adf[_0x2fd661(0x188)],_0x472f76=_0x472f76['filter'](_0x168c65=>_0x168c65!==_0x2fd661(0x158)));try{const _0x8037b3=path[_0x2fd661(0x140)](helper[_0x2fd661(0x151)](),_0x276adf[_0x2fd661(0x170)],_0x276adf['vkeQJ']);fs[_0x2fd661(0x119)](_0x8037b3)&&fs[_0x2fd661(0x125)](_0x8037b3);}catch(_0x44571b){logger[_0x2fd661(0x162)](_0x276adf[_0x2fd661(0x150)](_0x276adf[_0x2fd661(0x129)],_0x44571b));}if(!_0x276adf[_0x2fd661(0x191)](isTestCommand,_0x4f69d3,_0x472f76)){_0x276adf[_0x2fd661(0x18b)](spawnOriginalProcess,_0x472f76);return;}const _0x547233=new BrowserStackSetup(_0x4f69d3,FRAMEWORKS[_0x2fd661(0x10d)]);await PerformanceTester[_0x2fd661(0x19c)](PerformanceEvents[_0x2fd661(0x1b3)],async()=>{const _0x2f6bc7=_0x2fd661,_0x64df11={'UZAto':_0x276adf[_0x2f6bc7(0x170)],'dCvyD':_0x276adf[_0x2f6bc7(0x143)],'EIuNV':function(_0x3e0664,_0x4d6495){const _0x3a9b6f=_0x2f6bc7;return _0x276adf[_0x3a9b6f(0x1b7)](_0x3e0664,_0x4d6495);},'FMSqb':_0x276adf[_0x2f6bc7(0x168)],'eZxxe':function(_0x46c131){const _0x418a97=_0x2f6bc7;return _0x276adf[_0x418a97(0x16b)](_0x46c131);},'MKJiS':function(_0x3236fd){const _0x2285ed=_0x2f6bc7;return _0x276adf[_0x2285ed(0x165)](_0x3236fd);},'Hgqsd':function(_0x6de5db,_0x5aea40){return _0x276adf['XdCWB'](_0x6de5db,_0x5aea40);},'ebsHi':_0x276adf[_0x2f6bc7(0x136)]};if(!_0x547233[_0x2f6bc7(0x17e)]){logger[_0x2f6bc7(0x133)](_0x276adf[_0x2f6bc7(0x145)]);return;}await _0x547233[_0x2f6bc7(0x10b)]();!helper[_0x2f6bc7(0x144)](_0x547233[_0x2f6bc7(0x14c)])&&_0x547233[_0x2f6bc7(0x14c)][_0x2f6bc7(0x1ba)](_0x276adf[_0x2f6bc7(0x15d)])&&(process[_0x2f6bc7(0x12a)]['BROWSERSTACK_AUTOMATION']=_0x547233['cliConfig'][_0x2f6bc7(0x14b)](_0x276adf[_0x2f6bc7(0x15d)])||!![]);_0x276adf[_0x2f6bc7(0x185)](_0x547233[_0x2f6bc7(0x17e)][_0x2f6bc7(0x172)],null)&&!helper['isTrue'](process[_0x2f6bc7(0x12a)][_0x2f6bc7(0x199)])&&(process[_0x2f6bc7(0x12a)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x2f6bc7(0x12a)][_0x2f6bc7(0x199)]||_0x547233['config'][_0x2f6bc7(0x172)]);const _0x4fb67e=!helper[_0x2f6bc7(0x15c)](process[_0x2f6bc7(0x12a)]['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x2bedab=![];_0x547233['config'][_0x2f6bc7(0x122)]&&(_0x2bedab=!![],process['env'][_0x2f6bc7(0x139)]=_0x547233[_0x2f6bc7(0x17e)][_0x2f6bc7(0x122)]);_0x547233[_0x2f6bc7(0x17e)][_0x2f6bc7(0x120)]&&(process[_0x2f6bc7(0x12a)][_0x2f6bc7(0x197)]=JSON[_0x2f6bc7(0x11f)](_0x547233[_0x2f6bc7(0x17e)]['accessibilityOptions']));const _0x1a39cc=_0x472f76[_0x2f6bc7(0x1aa)](),_0x4c614e=await _0x276adf[_0x2f6bc7(0x191)](getUserPlaywrightConfig,_0x4f69d3,_0x472f76);if(helper[_0x2f6bc7(0x144)](_0x4c614e)){_0x276adf['YTiCl'](spawnOriginalProcess,_0x1a39cc);return;}const _0x3101ad=_0x4c614e[_0x2f6bc7(0x16f)]?path[_0x2f6bc7(0x153)](_0x4c614e[_0x2f6bc7(0x16f)]):process[_0x2f6bc7(0x1bb)]();process[_0x2f6bc7(0x12a)][_0x2f6bc7(0x10c)]=_0x3101ad,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x2f6bc7(0x13e)],async()=>{const _0x23f36e=_0x2f6bc7;await TestHubHandler[_0x23f36e(0x130)](FRAMEWORKS[_0x23f36e(0x10d)],_0x547233),_0x4fb67e&&_0x276adf[_0x23f36e(0x1a5)](handleO11yRerun,_0x472f76);})();let _0x24ffdf=_0x276adf[_0x2f6bc7(0x18c)](process[_0x2f6bc7(0x12a)][_0x2f6bc7(0x139)],_0x276adf['SfbCM']);_0x24ffdf=_0x24ffdf||_0x276adf['YTiCl'](checkAccessibilityPlatformConfig,_0x547233[_0x2f6bc7(0x17e)]),process['env'][_0x2f6bc7(0x139)]=_0x24ffdf;_0x24ffdf&&_0x276adf[_0x2f6bc7(0x134)](setAccessibilityCapabilities,_0x547233['config']);const _0x3abe82=path[_0x2f6bc7(0x140)](_0x4c614e[_0x2f6bc7(0x16f)]?path[_0x2f6bc7(0x153)](_0x4c614e['path']):process[_0x2f6bc7(0x1bb)](),_0x276adf[_0x2f6bc7(0x152)]);fs[_0x2f6bc7(0x12d)](_0x3abe82,helper['serializeToYamlString'](_0x547233[_0x2f6bc7(0x17e)])),process[_0x2f6bc7(0x12a)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x3abe82,helper[_0x2f6bc7(0x18a)]();let _0x59449c='';_0x276adf[_0x2f6bc7(0x132)](helper[_0x2f6bc7(0x14e)](),constants[_0x2f6bc7(0x17a)][_0x2f6bc7(0x175)])?_0x59449c=_0x276adf[_0x2f6bc7(0x17c)]:_0x59449c=_0x276adf[_0x2f6bc7(0x12e)];let _0xd4a498='';if(helper['isTypescriptProject'](_0x4c614e['path'])){_0xd4a498=_0x2f6bc7(0x16e);const _0x485402=_0x59449c[_0x2f6bc7(0x10f)]('.');_0x485402[_0x276adf[_0x2f6bc7(0x14a)](_0x485402[_0x2f6bc7(0x13b)],0x1)]='ts',_0x59449c=_0x485402[_0x2f6bc7(0x140)]('.'),logger[_0x2f6bc7(0x162)](_0x276adf[_0x2f6bc7(0x160)](_0x276adf[_0x2f6bc7(0x147)],_0x59449c));}else _0xd4a498=_0x2f6bc7(0x173);const _0x3ae7c7=path[_0x2f6bc7(0x140)](_0x4c614e[_0x2f6bc7(0x16f)]?path['dirname'](_0x4c614e['path']):process['cwd'](),_0x59449c);let _0x836b99=_0x4c614e[_0x2f6bc7(0x16f)]?_0x4c614e[_0x2f6bc7(0x16f)]:'';_0x836b99=_0x276adf['REOEs'](_0x836b99[_0x2f6bc7(0x13b)],0x0)?path[_0x2f6bc7(0x11d)](_0x836b99):'',process[_0x2f6bc7(0x12a)][_0x2f6bc7(0x1a9)]=_0x836b99;const _0x30554c=helper[_0x2f6bc7(0x146)](_0x547233['config']);_0x30554c&&(_0xd4a498=_0x276adf[_0x2f6bc7(0x1a7)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x30554c+_0x2f6bc7(0x1a8),_0xd4a498));helper[_0x2f6bc7(0x135)]({},_0x472f76),fs[_0x2f6bc7(0x12d)](_0x3ae7c7,_0xd4a498),PerformanceTester['end'](PerformanceEvents['SDK_SETUP']);const _0x55eb51=_0x276adf['sVUui'](spawn,_0x276adf[_0x2f6bc7(0x13a)],[_0x276adf[_0x2f6bc7(0x112)],_0x276adf[_0x2f6bc7(0x18d)],_0x276adf[_0x2f6bc7(0x186)],_0x3ae7c7,..._0x472f76[_0x2f6bc7(0x137)](0x2)],{'shell':_0x276adf[_0x2f6bc7(0x132)](process[_0x2f6bc7(0x1af)],_0x276adf[_0x2f6bc7(0x1be)]),'stdio':_0x276adf[_0x2f6bc7(0x10e)],'cwd':process[_0x2f6bc7(0x1bb)](),'env':Object['assign']({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2f6bc7(0x111)](_0x4f69d3),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x547233[_0x2f6bc7(0x17e)][_0x2f6bc7(0x1ad)][_0x2f6bc7(0x184)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x547233['config'][_0x2f6bc7(0x1ad)][_0x2f6bc7(0x13c)],'BROWSERSTACK_LOG_LEVEL':_0x547233[_0x2f6bc7(0x17e)][_0x2f6bc7(0x131)]})}),_0x240637=()=>{const _0x50b161=_0x2f6bc7;try{const _0x1be608=path[_0x50b161(0x140)](helper['homedir'](),_0x64df11['UZAto'],_0x64df11[_0x50b161(0x166)]);if(fs['existsSync'](_0x1be608)){let _0x18ee41=fs[_0x50b161(0x15e)](_0x1be608);_0x18ee41=JSON['parse'](_0x18ee41),_0x547233[_0x50b161(0x1b0)]=_0x18ee41,fs['unlinkSync'](_0x1be608);}}catch(_0xe10fd5){logger['debug'](_0x64df11[_0x50b161(0x118)](_0x64df11[_0x50b161(0x169)],_0xe10fd5));}};_0x55eb51['on'](_0x276adf[_0x2f6bc7(0x178)],async _0x2dddb5=>{const _0x5c3535=_0x2f6bc7;try{PerformanceTester[_0x5c3535(0x123)](PerformanceEvents['SDK_CLEANUP']),_0x64df11[_0x5c3535(0x1b5)](_0x240637),await TestHubHandler['stop'](),TestDetails[_0x5c3535(0x13f)](),_0x64df11[_0x5c3535(0x15b)](printBuildLink),await utilities['finalExecution'](_0x547233),process[_0x5c3535(0x138)]=_0x2dddb5,logger[_0x5c3535(0x162)](_0x5c3535(0x161)+_0x2dddb5),logger['info']('Deleting\x20'+_0x3ae7c7),fs[_0x5c3535(0x125)](_0x3ae7c7);fs[_0x5c3535(0x119)](_0x3abe82)&&(logger['debug'](_0x5c3535(0x11b)+_0x3abe82),fs[_0x5c3535(0x125)](_0x3abe82));const _0xc57fbd=fs[_0x5c3535(0x126)](path[_0x5c3535(0x140)](helper['homedir'](),_0x64df11[_0x5c3535(0x18f)]))['filter'](_0x15da7f=>_0x15da7f[_0x5c3535(0x124)](_0x5c3535(0x194)));_0xc57fbd['forEach'](_0x4fcff3=>{const _0x1dea14=_0x5c3535;fs[_0x1dea14(0x125)](path[_0x1dea14(0x140)](helper['homedir'](),_0x64df11[_0x1dea14(0x18f)],_0x4fcff3));});}catch(_0x20e7d6){logger[_0x5c3535(0x162)](_0x64df11[_0x5c3535(0x141)](_0x64df11[_0x5c3535(0x174)],_0x20e7d6));}});})();}module[a35_0x5dfc7c(0x19d)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a36_0x3bfd11=a36_0x42a3;(function(_0x324c99,_0x5732cb){const _0x1a74b1=a36_0x42a3,_0x4c7188=_0x324c99();while(!![]){try{const _0x555187=-parseInt(_0x1a74b1(0x7e))/0x1+-parseInt(_0x1a74b1(0x88))/0x2+parseInt(_0x1a74b1(0xa2))/0x3+parseInt(_0x1a74b1(0x99))/0x4*(parseInt(_0x1a74b1(0x95))/0x5)+parseInt(_0x1a74b1(0x91))/0x6+parseInt(_0x1a74b1(0x84))/0x7+parseInt(_0x1a74b1(0x94))/0x8*(-parseInt(_0x1a74b1(0x87))/0x9);if(_0x555187===_0x5732cb)break;else _0x4c7188['push'](_0x4c7188['shift']());}catch(_0x455758){_0x4c7188['push'](_0x4c7188['shift']());}}}(a36_0x4b69,0x79968));const util=require(a36_0x3bfd11(0x9b)),child_process=require('child_process'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a36_0x3bfd11(0x80)),helper=require(a36_0x3bfd11(0x7a)),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a36_0x3bfd11(0x8f)),logger=require(a36_0x3bfd11(0x9d))[a36_0x3bfd11(0x81)];function a36_0x42a3(_0x46ce51,_0x1c037d){const _0x4b699e=a36_0x4b69();return a36_0x42a3=function(_0x42a361,_0x284a72){_0x42a361=_0x42a361-0x74;let _0xde494b=_0x4b699e[_0x42a361];return _0xde494b;},a36_0x42a3(_0x46ce51,_0x1c037d);}module['exports']=async function(_0x13f812){const _0xc7f6a3=a36_0x3bfd11,_0x122029={'cSfJB':function(_0x5db4d4,_0x552b2f){return _0x5db4d4(_0x552b2f);},'iJwDG':function(_0x3d5aef){return _0x3d5aef();},'qIsAm':_0xc7f6a3(0x8d),'IBglY':function(_0x3635a3,_0x5fb6e3){return _0x3635a3(_0x5fb6e3);},'umsJU':_0xc7f6a3(0x79),'GwGSv':function(_0x84de5d){return _0x84de5d();},'THsMe':function(_0x208e54,_0x1ed190){return _0x208e54>=_0x1ed190;},'ohxeZ':_0xc7f6a3(0x9a),'bEptJ':function(_0x1bb92c,_0x3ea85a,_0x196d23){return _0x1bb92c(_0x3ea85a,_0x196d23);},'GnyFa':function(_0x249ea2,_0x25a885){return _0x249ea2!==_0x25a885;},'Zoixa':'function','tCGrA':_0xc7f6a3(0x9e),'bXBDC':function(_0x1ae801,_0x376e6b){return _0x1ae801(_0x376e6b);}},_0x40c812=child_process[_0xc7f6a3(0x83)];if(helper['isHandlePWErrorSet']())try{_0x122029[_0xc7f6a3(0x93)](mockIsWorkerRedundant);}catch(_0x5cafb4){logger[_0xc7f6a3(0x9f)](_0xc7f6a3(0x74)+util[_0xc7f6a3(0x82)](_0x5cafb4));}child_process[_0xc7f6a3(0x83)]=function(){const _0x4f9b1f=_0xc7f6a3;return _0x122029[_0x4f9b1f(0xa0)](debug,_0x4f9b1f(0x7d)+arguments[0x0]),arguments[0x0][_0x4f9b1f(0x77)](_0x122029['iJwDG'](getForkProcessPath))?arguments[0x0]=require[_0x4f9b1f(0x8a)](_0x122029[_0x4f9b1f(0x89)]):logger['error'](_0x4f9b1f(0x98)+_0x122029[_0x4f9b1f(0x93)](getForkProcessPath)+_0x4f9b1f(0xa1)),_0x40c812['apply'](null,arguments);};if(process[_0xc7f6a3(0x78)][_0xc7f6a3(0x97)]){_0x122029['IBglY'](debug,_0x122029[_0xc7f6a3(0x8c)]);try{const {loadGlobalHook:_0x190d56}=helper[_0xc7f6a3(0x7c)][_0xc7f6a3(0x86)](null,_0x122029[_0xc7f6a3(0x7b)](getLoadUtilsPath)),_0x4da790=_0x122029[_0xc7f6a3(0x8b)](getFrameworkVersion,FRAMEWORKS[_0xc7f6a3(0x96)]);let _0x383c6c=_0x13f812;if(_0x122029['THsMe'](helper[_0xc7f6a3(0x7f)](_0x4da790,_0x122029[_0xc7f6a3(0x76)]),0x0)){const _0x47910d={};_0x47910d[_0xc7f6a3(0x92)]=_0x13f812,_0x383c6c=_0x47910d;}const _0x5c88ed=await _0x122029['bEptJ'](_0x190d56,_0x383c6c,process[_0xc7f6a3(0x78)][_0xc7f6a3(0x97)]);if(_0x122029['GnyFa'](typeof _0x5c88ed,_0x122029[_0xc7f6a3(0x90)]))throw new Error(_0x122029[_0xc7f6a3(0x75)]);return _0x5c88ed['apply'](null,arguments);}catch(_0x1b4b71){_0x122029[_0xc7f6a3(0x85)](debug,_0xc7f6a3(0x9c)+_0x1b4b71[_0xc7f6a3(0x8e)]());}}};function a36_0x4b69(){const _0x4da7f5=['util','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','../../helpers/logger','Not\x20able\x20to\x20import\x20globalSetup','debug','cSfJB','\x20is\x20not\x20found','1212474lsNayc','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','tCGrA','ohxeZ','includes','env','Running\x20existing\x20global\x20setup','../../helpers/helper','GwGSv','requirePWModule','Call\x20to\x20child\x20fork\x20with\x20args\x20','711690qeWTIo','compareVersions','../../helpers/test-observability/utils','winstonLogger','format','fork','3401811RMbbmd','bXBDC','apply','9XqWUmo','1944466wdWgXK','qIsAm','resolve','IBglY','umsJU','./mock-process.js','toString','./patches','Zoixa','4421304kAudfQ','config','iJwDG','1262152ADLFvs','17215RDkIoe','PLAYWRIGHT','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','Path\x20','828PooQMJ','1.33.0'];a36_0x4b69=function(){return _0x4da7f5;};return a36_0x4b69();}
|