browserstack-node-sdk 1.34.25 → 1.34.27
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/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/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/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/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-tester.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_0x1566bc=a29_0x3683;(function(_0x18d157,_0x7c19a9){const _0x27d4e7=a29_0x3683,_0x138990=_0x18d157();while(!![]){try{const _0x5111f7=-parseInt(_0x27d4e7(0x10e))/0x1+-parseInt(_0x27d4e7(0xde))/0x2+-parseInt(_0x27d4e7(0x102))/0x3+parseInt(_0x27d4e7(0xbd))/0x4+-parseInt(_0x27d4e7(0xf9))/0x5*(-parseInt(_0x27d4e7(0xbc))/0x6)+parseInt(_0x27d4e7(0xff))/0x7+parseInt(_0x27d4e7(0xab))/0x8;if(_0x5111f7===_0x7c19a9)break;else _0x138990['push'](_0x138990['shift']());}catch(_0x3c3402){_0x138990['push'](_0x138990['shift']());}}}(a29_0x363f,0x7b420));const logger=require(a29_0x1566bc(0xfe))[a29_0x1566bc(0xd1)],helper=require(a29_0x1566bc(0x109)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x1566bc(0xd0)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x1566bc(0xda)),{setAccessibilityCapabilities,setExtension}=require(a29_0x1566bc(0xf1)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a29_0x1566bc(0xaa)),{overrideExecute}=require(a29_0x1566bc(0xc1)),modify=(_0x531d28,_0x4ccf46=null,_0x505ef7=![])=>{const _0x1e82c2=a29_0x1566bc,_0x4e4eea={'qVRcO':function(_0x350770,_0xf7d4f4){return _0x350770!==_0xf7d4f4;},'olbCz':_0x1e82c2(0xf7),'osFYA':function(_0x4323b6,_0xf1d909){return _0x4323b6!==_0xf1d909;},'cJSvD':function(_0xbdc817,_0x4c4e10){return _0xbdc817+_0x4c4e10;},'AoFPA':function(_0x322227,_0x1ff0b8){return _0x322227+_0x1ff0b8;},'JpncJ':_0x1e82c2(0xed),'wKhxq':_0x1e82c2(0xf0),'lslVF':_0x1e82c2(0xf5),'oMoMf':_0x1e82c2(0xcb),'IWdJs':_0x1e82c2(0xca),'IdsWg':_0x1e82c2(0xb1),'aOjNR':'moz:firefoxOptions','lHoSB':_0x1e82c2(0x107),'OAMOF':_0x1e82c2(0x97),'xgGxH':_0x1e82c2(0xec),'wfHcD':_0x1e82c2(0xd6),'cGxlD':function(_0x1ec4e3,_0x1acd44){return _0x1ec4e3===_0x1acd44;},'HXTxN':_0x1e82c2(0xe6),'KTNHO':'Setting\x20Browserstack\x20capabilities','aRBgV':_0x1e82c2(0x106),'arJIo':_0x1e82c2(0xf2),'IkbsV':'3|0|1|5|2|4','dlzPV':function(_0x587e6c,_0x11341c){return _0x587e6c(_0x11341c);},'YKnYJ':function(_0x334a52,_0x21b8dc,_0x377675){return _0x334a52(_0x21b8dc,_0x377675);},'nkLGW':function(_0x39d5e2,_0x1cd1b1,_0xfe2fc3){return _0x39d5e2(_0x1cd1b1,_0xfe2fc3);},'kOlpB':function(_0x42fb42,_0x19e21f,_0x34f3ee){return _0x42fb42(_0x19e21f,_0x34f3ee);},'uhcXg':'3|4|2|5|1|0','UCTMx':_0x1e82c2(0xb4),'EQVXs':_0x1e82c2(0xe7),'zhTEx':function(_0x2d02d4,_0x178b33,_0x1afd7c){return _0x2d02d4(_0x178b33,_0x1afd7c);},'eKski':function(_0x48beee){return _0x48beee();},'LvThE':function(_0x292514,_0x4fd771){return _0x292514(_0x4fd771);},'rIoxP':function(_0x99b9bc,_0x4414f0){return _0x99b9bc!==_0x4414f0;},'mpqKM':_0x1e82c2(0xc0),'HhIdz':'Modifying\x20webdriver\x20builder'},_0x4a595b=helper[_0x1e82c2(0xb3)]();let _0x4122ba;try{_0x4122ba=helper['requireSeleniumWebdriver'](),_0x4122ba[_0x1e82c2(0xcc)]&&(_0x4122ba[_0x1e82c2(0xdf)]=_0x4122ba[_0x1e82c2(0xcc)]);}catch(_0x48bde6){return;}if(helper['isBrowserstackInfra']()){const _0x5724c8={};_0x5724c8[_0x1e82c2(0xfd)]=_0x531d28[_0x1e82c2(0xc7)],helper['setLogLevel'](_0x5724c8,new Map(),new Map()),logger[_0x1e82c2(0xe1)](_0x4e4eea[_0x1e82c2(0xc9)]),logger['debug'](_0x4e4eea[_0x1e82c2(0xe5)]);}class _0x557018 extends _0x4a595b[_0x1e82c2(0xa7)]{['send'](_0x451ee5){const _0x42dfef=_0x1e82c2;if(_0x4e4eea['qVRcO'](_0x451ee5['path'],_0x4e4eea[_0x42dfef(0xc4)])&&_0x4e4eea[_0x42dfef(0xb7)](global[_0x42dfef(0xa4)],''))try{global[_0x42dfef(0xa4)]=_0x4e4eea[_0x42dfef(0x9e)](_0x4e4eea[_0x42dfef(0xc2)](_0x4e4eea[_0x42dfef(0xef)],global[_0x42dfef(0xa4)]),_0x4e4eea[_0x42dfef(0xbb)]),this['options_']=hubAllocator['getRequestOptions'](global[_0x42dfef(0xa4)]),logger[_0x42dfef(0x9c)](_0x42dfef(0xc6)+global[_0x42dfef(0xa4)]),global['newHubUrl']='';}catch(_0x221c44){logger[_0x42dfef(0x104)](_0x221c44);}return super[_0x42dfef(0xb5)](_0x451ee5);}}class _0x2cf686 extends _0x4122ba[_0x1e82c2(0xdf)]{[_0x1e82c2(0xe4)](){const _0x5b139c=_0x1e82c2;return this[_0x5b139c(0x100)]=helper[_0x5b139c(0xce)](_0x531d28),logger[_0x5b139c(0x9c)](_0x5b139c(0xa1)+this[_0x5b139c(0x100)]),this;}[_0x1e82c2(0xe3)](_0x2e4005){const _0x40bb83=_0x1e82c2;let _0x9caacc={};for(const _0x421b4f in _0x2e4005){switch(_0x421b4f){case _0x4e4eea[_0x40bb83(0xd5)]:case _0x4e4eea[_0x40bb83(0x105)]:this[_0x40bb83(0xc8)]&&(_0x9caacc=this['chromeOptions_'][_0x40bb83(0xd7)](this[_0x40bb83(0xc8)][_0x40bb83(0xaf)])||{},this[_0x40bb83(0xc8)][_0x40bb83(0xf3)](this[_0x40bb83(0xc8)][_0x40bb83(0xaf)],helper[_0x40bb83(0x9f)](_0x9caacc,_0x2e4005[_0x421b4f])));break;case _0x4e4eea[_0x40bb83(0xd4)]:case _0x4e4eea[_0x40bb83(0xc5)]:this[_0x40bb83(0xa2)]&&(_0x9caacc=this[_0x40bb83(0xa2)][_0x40bb83(0xd7)](this[_0x40bb83(0xa2)][_0x40bb83(0xaf)])||{},this[_0x40bb83(0xa2)][_0x40bb83(0xf3)](this[_0x40bb83(0xa2)][_0x40bb83(0xaf)],helper[_0x40bb83(0x9f)](_0x9caacc,_0x2e4005[_0x421b4f])));break;case _0x4e4eea['aOjNR']:case _0x4e4eea[_0x40bb83(0xdc)]:this['firefoxOptions_']&&(_0x9caacc=this['firefoxOptions_'][_0x40bb83(0xd7)](this[_0x40bb83(0xb9)][_0x40bb83(0xaf)])||{},this['firefoxOptions_'][_0x40bb83(0xf3)](this[_0x40bb83(0xb9)][_0x40bb83(0xaf)],helper['mergeDeep'](_0x9caacc,_0x2e4005[_0x421b4f])));break;case _0x4e4eea['OAMOF']:this[_0x40bb83(0x95)]&&(_0x9caacc=this['safariOptions_'][_0x40bb83(0xd7)](this['safariOptions_']['CAPABILITY_KEY'])||{},this[_0x40bb83(0x95)][_0x40bb83(0xf3)](this[_0x40bb83(0x95)][_0x40bb83(0xaf)],helper[_0x40bb83(0x9f)](_0x9caacc,_0x2e4005[_0x421b4f])));break;case _0x4e4eea[_0x40bb83(0xc3)]:case _0x4e4eea[_0x40bb83(0xa9)]:this[_0x40bb83(0xfb)]&&(_0x9caacc=this[_0x40bb83(0xfb)][_0x40bb83(0xd7)](this[_0x40bb83(0xfb)][_0x40bb83(0xaf)])||{},this[_0x40bb83(0xfb)]['set'](this[_0x40bb83(0xfb)][_0x40bb83(0xaf)],helper[_0x40bb83(0x9f)](_0x9caacc,_0x2e4005[_0x421b4f])));break;}}}[_0x1e82c2(0xbe)](){const _0x3251b6=_0x1e82c2,_0x5ebafc={'ulOGu':function(_0x2e611b,_0x3d2cd0){const _0x14401b=a29_0x3683;return _0x4e4eea[_0x14401b(0x9b)](_0x2e611b,_0x3d2cd0);},'SkBjD':_0x4e4eea[_0x3251b6(0xee)]};return logger[_0x3251b6(0x9c)](_0x4e4eea[_0x3251b6(0xac)]),this[_0x3251b6(0xe3)](_0x531d28[_0x3251b6(0xdd)]),Object[_0x3251b6(0x10c)](_0x531d28[_0x3251b6(0xdd)])[_0x3251b6(0xfa)](_0x472ed8=>{const _0x39f894=_0x3251b6,_0x3c1515=this[_0x39f894(0xa3)][_0x39f894(0xd7)](_0x472ed8);_0x5ebafc[_0x39f894(0x94)](typeof _0x3c1515,_0x5ebafc[_0x39f894(0xad)])?this[_0x39f894(0xa3)][_0x39f894(0xf3)](_0x472ed8,helper[_0x39f894(0x9f)](_0x3c1515,_0x531d28[_0x39f894(0xdd)][_0x472ed8])):this[_0x39f894(0xa3)][_0x39f894(0xf3)](_0x472ed8,_0x531d28[_0x39f894(0xdd)][_0x472ed8]);}),this;}[_0x1e82c2(0x93)](){const _0x452e6b=_0x1e82c2,_0x272f4b={'fncVu':function(_0xb538e,_0x143946,_0xcd3844){const _0x358b1f=a29_0x3683;return _0x4e4eea[_0x358b1f(0xe9)](_0xb538e,_0x143946,_0xcd3844);}};if(helper['isBrowserstackInfra']()){const _0x4e6eb3=_0x4e4eea[_0x452e6b(0xba)][_0x452e6b(0x92)]('|');let _0x2b9e4f=0x0;while(!![]){switch(_0x4e6eb3[_0x2b9e4f++]){case'0':logger[_0x452e6b(0x9c)](_0x4e4eea[_0x452e6b(0xa0)]);continue;case'1':globals[_0x452e6b(0xf4)](_0x4e4eea['EQVXs'])&&(!_0x4e4eea[_0x452e6b(0xe2)](setExtension,this,_0x531d28)&&globals[_0x452e6b(0xa8)](_0x4e4eea[_0x452e6b(0x10d)],![]));continue;case'2':this[_0x452e6b(0xbe)]();continue;case'3':_0x4e4eea[_0x452e6b(0x10a)](isAccessibilityAutomationSession)&&_0x4e4eea[_0x452e6b(0xb2)](setAccessibilityCapabilities,_0x531d28);continue;case'4':this[_0x452e6b(0xe4)]();continue;case'5':if(helper[_0x452e6b(0xfc)](_0x531d28['proxySettings'][_0x452e6b(0xd9)]))this[_0x452e6b(0xbf)]=helper[_0x452e6b(0xd2)](_0x531d28[_0x452e6b(0xf6)]['proxyUrl']);else _0x531d28[_0x452e6b(0xf6)][_0x452e6b(0xd9)]&&(this['proxy_']=_0x531d28[_0x452e6b(0xf6)][_0x452e6b(0xd9)],logger['debug']('Proxy\x20set\x20to\x20'+this[_0x452e6b(0x96)]));continue;}break;}}const _0x39ec9e=super[_0x452e6b(0x93)]();return _0x39ec9e[_0x452e6b(0xb0)][_0x452e6b(0xf8)](_0x263f4b=>{const _0x39b0ea=_0x452e6b;try{const _0x4ef3fb=_0x263f4b[_0x39b0ea(0xae)][_0x39b0ea(0xd7)](_0x4e4eea['aRBgV']);_0x4ef3fb?(logger['debug'](_0x39b0ea(0xcf)+_0x4ef3fb),hubAllocator[_0x39b0ea(0x108)](_0x4ef3fb),helper[_0x39b0ea(0xe0)](_0x4ef3fb)):logger[_0x39b0ea(0x9c)](_0x4e4eea[_0x39b0ea(0x10b)]);}catch(_0x47f4db){logger[_0x39b0ea(0x9c)](_0x39b0ea(0xe8)+_0x47f4db);}}),_0x39ec9e['quitCount_']=0x0,_0x39ec9e[_0x452e6b(0xf8)]&&_0x39ec9e[_0x452e6b(0xf8)](_0x5e616a=>{const _0x168be4=_0x452e6b,_0x53a36b=_0x4e4eea[_0x168be4(0x9a)]['split']('|');let _0x360f92=0x0;while(!![]){switch(_0x53a36b[_0x360f92++]){case'0':_0x4e4eea[_0x168be4(0x9d)](overrideTakeScreenshot,_0x5e616a);continue;case'1':helper[_0x168be4(0x91)](_0x5e616a,_0x531d28);continue;case'2':_0x5e616a[_0x168be4(0xd8)]=async()=>{return await _0x272f4b['fncVu'](getAccessibilityResultsSummary,_0x5e616a,global);};continue;case'3':_0x4e4eea[_0x168be4(0x103)](overrideQuit,_0x5e616a,_0x39ec9e);continue;case'4':_0x5e616a['getAccessibilityResults']=async()=>{const _0x2dcd4e=_0x168be4;return await _0x272f4b[_0x2dcd4e(0xb6)](getAccessibilityResults,_0x5e616a,global);};continue;case'5':_0x4e4eea[_0x168be4(0x103)](overrideExecute,_0x5e616a,_0x531d28);continue;}break;}}),_0x39ec9e[_0x452e6b(0xd8)]=async()=>{const _0x19bb60=_0x452e6b;return await _0x4e4eea[_0x19bb60(0xea)](getAccessibilityResultsSummary,_0x39ec9e,global);},_0x39ec9e[_0x452e6b(0xd3)]=async()=>{return await _0x272f4b['fncVu'](getAccessibilityResults,_0x39ec9e,global);},_0x4e4eea[_0x452e6b(0x9d)](overrideTakeScreenshot,_0x39ec9e),_0x4e4eea['dlzPV'](overrideQuit,_0x39ec9e),helper[_0x452e6b(0x91)](_0x39ec9e,_0x531d28),_0x4e4eea[_0x452e6b(0xe2)](overrideExecute,_0x39ec9e,_0x531d28),helper[_0x452e6b(0x101)](global[_0x452e6b(0xeb)])&&(global[_0x452e6b(0xeb)]=[]),helper['isUndefined'](global[_0x452e6b(0x98)])&&(global['__drivers']=[]),global['__driversArray']['push'](_0x39ec9e),global[_0x452e6b(0xdb)]=_0x39ec9e,_0x4e4eea[_0x452e6b(0xb8)](global[_0x452e6b(0x98)],undefined)&&global['__drivers'][_0x452e6b(0xcd)](_0x39ec9e),_0x4ccf46&&helper[_0x452e6b(0x101)](_0x4ccf46[_0x452e6b(0x99)]['__driversArray'])&&(_0x4ccf46['global'][_0x452e6b(0xeb)]=[]),_0x4ccf46&&_0x4e4eea[_0x452e6b(0xa6)](_0x4ccf46[_0x452e6b(0x99)][_0x452e6b(0x98)],undefined)&&(_0x4ccf46['global'][_0x452e6b(0x98)]['push'](_0x39ec9e),_0x4ccf46['global'][_0x452e6b(0xeb)][_0x452e6b(0xcd)](_0x39ec9e)),_0x39ec9e;}}return _0x4122ba[_0x1e82c2(0xcc)]=_0x4122ba[_0x1e82c2(0xdf)],_0x4122ba[_0x1e82c2(0xdf)]=_0x2cf686,_0x4a595b['HttpClient']=_0x557018,_0x4122ba;};function a29_0x3683(_0x5449cb,_0x167476){const _0x363ff0=a29_0x363f();return a29_0x3683=function(_0x368310,_0xdd7576){_0x368310=_0x368310-0x91;let _0x54d67a=_0x363ff0[_0x368310];return _0x54d67a;},a29_0x3683(_0x5449cb,_0x167476);}module['exports'][a29_0x1566bc(0xa5)]=modify;function a29_0x363f(){const _0x392619=['chromeOptions','originalBuilder','push','getHubUrl','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','../../../hubAllocationMethods','winstonLogger','getHttpAgent','getAccessibilityResults','IWdJs','lslVF','ieOptions','get','getAccessibilityResultsSummary','proxyUrl','../../../helpers/patchHelpers','__driver','lHoSB','capability','969640nafSMf','Builder','storeOptimalHubUrl','info','zhTEx','__setBrowserOptions','setServer','HhIdz','object','isAccessibilityPlatform','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','kOlpB','nkLGW','__driversArray','se:ieOptions','https://','HXTxN','JpncJ','/wd/hub','../accessibility-automation/helper','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','set','getGlobal','goog:chromeOptions','proxySettings','/session','then','5WkdZmF','forEach','ieOptions_','isPacProxy','logLevel','../../../helpers/logger','1435224fqiHeH','url_','isUndefined','2965770hjVKYx','YKnYJ','error','oMoMf','optimalHubUrl','firefoxOptions','updateHubUrl','../../../helpers/helper','eKski','arJIo','keys','EQVXs','369050uyecnr','overrideGet','split','build','ulOGu','safariOptions_','proxy_','safari.options','__drivers','global','IkbsV','cGxlD','debug','dlzPV','cJSvD','mergeDeep','UCTMx','Hub\x20url\x20set\x20to\x20','edgeOptions_','capabilities_','newHubUrl','browserstackAgentObservability','rIoxP','HttpClient','setGlobal','wfHcD','../../../helpers/globals','9862600QYLebv','KTNHO','SkBjD','caps_','CAPABILITY_KEY','session_','edgeOptions','LvThE','requireHttpClient','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','send','fncVu','osFYA','qVRcO','firefoxOptions_','uhcXg','wKhxq','1435542BmcWas','2680840WyKKCV','setCapabilities','agent_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','./helpers/patchHelper','AoFPA','xgGxH','olbCz','IdsWg','New\x20hub\x20url\x20set\x20to\x20','browserStackLogLevel','chromeOptions_','mpqKM','ms:edgeOptions'];a29_0x363f=function(){return _0x392619;};return a29_0x363f();}
|
|
1
|
+
const a29_0x41475a=a29_0x58d2;function a29_0x5768(){const _0x3b1e8a=['../../../hubAllocationMethods','goog:chromeOptions','keys','New\x20hub\x20url\x20set\x20to\x20','newHubUrl','se:ieOptions','chromeOptions_','storeOptimalHubUrl','../accessibility-automation/helper','optimalHubUrl','ENUEK','FZjNp','523425NgDLSK','get','ViGzC','rBeYJ','aYZmW','zDKHX','__driversArray','1|3|4|0|2|5','getRequestOptions','getHttpAgent','1971yFPGca','2316AltdVz','CAPABILITY_KEY','kjlQs','EdQiX','FwoBg','info','wdbZX','set','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','../../../helpers/helper','638255KlVLpy','caps_','wpMWA','object','VgFtY','SKBvK','split','send','/session','ieOptions_','setCapabilities','cJIzs','overrideGet','build','firefoxOptions','setServer','PRmxQ','315qEkhyF','firefoxOptions_','FPTOI','requireHttpClient','/wd/hub','../../../helpers/globals','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','Setting\x20Browserstack\x20capabilities','url_','edgeOptions_','./helpers/patchHelper','options_','mergeDeep','winstonLogger','forEach','548528vtUwWP','edgeOptions','capabilities_','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','imfeI','dCuhd','cuZyb','then','kEPvm','global','oGSrA','getGlobal','safariOptions_','398616dKmCeI','aJKUq','exports','proxyUrl','browserstackAgentObservability','AxNrg','MVErT','XdeFk','browserStackLogLevel','safari.options','isAccessibilityPlatform','setGlobal','https://','__driver','../../../helpers/accessibility-automation/helper','push','logLevel','updateHubUrl','mMUsE','18NKuolN','getAccessibilityResultsSummary','Modifying\x20webdriver\x20builder','1776900sVszBn','proxySettings','originalBuilder','EgNDp','__setBrowserOptions','capability','hZRRG','pTauB','79386uLBtNQ','isUndefined','debug','requireSeleniumWebdriver','WwsOd','MmOGQ','erqVO','setLogLevel','__drivers','uKhFM','Builder','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','path','ABdBj','HttpClient','error','isBrowserstackInfra'];a29_0x5768=function(){return _0x3b1e8a;};return a29_0x5768();}(function(_0x300992,_0x4b2eea){const _0x4cf7be=a29_0x58d2,_0x196344=_0x300992();while(!![]){try{const _0x1f7376=parseInt(_0x4cf7be(0x1eb))/0x1+-parseInt(_0x4cf7be(0x1f6))/0x2*(parseInt(_0x4cf7be(0x1f5))/0x3)+-parseInt(_0x4cf7be(0x221))/0x4+parseInt(_0x4cf7be(0x201))/0x5+-parseInt(_0x4cf7be(0x24c))/0x6*(-parseInt(_0x4cf7be(0x212))/0x7)+-parseInt(_0x4cf7be(0x22e))/0x8+parseInt(_0x4cf7be(0x241))/0x9*(parseInt(_0x4cf7be(0x244))/0xa);if(_0x1f7376===_0x4b2eea)break;else _0x196344['push'](_0x196344['shift']());}catch(_0x4f13cb){_0x196344['push'](_0x196344['shift']());}}}(a29_0x5768,0x9fb06));const logger=require('../../../helpers/logger')[a29_0x41475a(0x21f)],helper=require(a29_0x41475a(0x200)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x41475a(0x1df)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a29_0x41475a(0x1e7)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x41475a(0x23c)),globals=require(a29_0x41475a(0x217)),{overrideExecute}=require(a29_0x41475a(0x21c)),modify=(_0x4bf7a0,_0x125dd1=null,_0x1d4de3=![])=>{const _0x1eb0e8=a29_0x41475a,_0x4d524d={'BqzNk':function(_0x8c56c,_0x23cfd7){return _0x8c56c!==_0x23cfd7;},'ABdBj':_0x1eb0e8(0x209),'wdbZX':function(_0x4aae39,_0x56a1f6){return _0x4aae39!==_0x56a1f6;},'AxNrg':function(_0x253b8f,_0x32a4f7){return _0x253b8f+_0x32a4f7;},'kEPvm':function(_0x2e45f3,_0x43d93b){return _0x2e45f3+_0x43d93b;},'eYKDg':_0x1eb0e8(0x23a),'ykbjj':_0x1eb0e8(0x216),'rBeYJ':_0x1eb0e8(0x1e0),'EdQiX':'chromeOptions','oGSrA':'ms:edgeOptions','uKhFM':_0x1eb0e8(0x222),'DIdEA':'moz:firefoxOptions','aYZmW':_0x1eb0e8(0x20f),'ViGzC':_0x1eb0e8(0x237),'XdeFk':_0x1eb0e8(0x1e4),'erqVO':'ieOptions','FZjNp':function(_0x37613d,_0x4510f6){return _0x37613d===_0x4510f6;},'wpMWA':_0x1eb0e8(0x204),'EgNDp':_0x1eb0e8(0x219),'hZRRG':_0x1eb0e8(0x1e8),'aJKUq':_0x1eb0e8(0x224),'MVErT':function(_0x1d5e45,_0x58c67e,_0x13f43a){return _0x1d5e45(_0x58c67e,_0x13f43a);},'pTauB':function(_0x5ea525,_0x1d6dcf){return _0x5ea525(_0x1d6dcf);},'WwsOd':function(_0x52cf81,_0x489cec,_0x2e934c){return _0x52cf81(_0x489cec,_0x2e934c);},'FPTOI':_0x1eb0e8(0x1f2),'FwoBg':function(_0x4ce12c){return _0x4ce12c();},'kjlQs':_0x1eb0e8(0x238),'ENUEK':_0x1eb0e8(0x1fe),'zDKHX':function(_0x5cdcb4,_0x1770e3){return _0x5cdcb4!==_0x1770e3;},'VgFtY':_0x1eb0e8(0x1d9),'cuZyb':_0x1eb0e8(0x243)},_0x1bfbfc=helper[_0x1eb0e8(0x215)]();let _0x23b89f;try{_0x23b89f=helper[_0x1eb0e8(0x24f)](),_0x23b89f['originalBuilder']&&(_0x23b89f[_0x1eb0e8(0x1d8)]=_0x23b89f[_0x1eb0e8(0x246)]);}catch(_0xf6ba8){return;}if(helper[_0x1eb0e8(0x1de)]()){const _0xd430ce={};_0xd430ce[_0x1eb0e8(0x23e)]=_0x4bf7a0[_0x1eb0e8(0x236)],helper[_0x1eb0e8(0x1d5)](_0xd430ce,new Map(),new Map()),logger[_0x1eb0e8(0x1fb)](_0x4d524d[_0x1eb0e8(0x205)]),logger['debug'](_0x4d524d[_0x1eb0e8(0x227)]);}class _0x262cf8 extends _0x1bfbfc[_0x1eb0e8(0x1dc)]{[_0x1eb0e8(0x208)](_0x3b6852){const _0x5b4f2b=_0x1eb0e8;if(_0x4d524d['BqzNk'](_0x3b6852[_0x5b4f2b(0x1da)],_0x4d524d[_0x5b4f2b(0x1db)])&&_0x4d524d[_0x5b4f2b(0x1fc)](global[_0x5b4f2b(0x1e3)],''))try{global[_0x5b4f2b(0x1e3)]=_0x4d524d[_0x5b4f2b(0x233)](_0x4d524d[_0x5b4f2b(0x229)](_0x4d524d['eYKDg'],global[_0x5b4f2b(0x1e3)]),_0x4d524d['ykbjj']),this[_0x5b4f2b(0x21d)]=hubAllocator[_0x5b4f2b(0x1f3)](global[_0x5b4f2b(0x1e3)]),logger['debug'](_0x5b4f2b(0x1e2)+global[_0x5b4f2b(0x1e3)]),global[_0x5b4f2b(0x1e3)]='';}catch(_0x312b7f){logger[_0x5b4f2b(0x1dd)](_0x312b7f);}return super[_0x5b4f2b(0x208)](_0x3b6852);}}class _0x5e7542 extends _0x23b89f[_0x1eb0e8(0x1d8)]{['setServer'](){const _0x4d4a87=_0x1eb0e8;return this['url_']=helper['getHubUrl'](_0x4bf7a0),logger[_0x4d4a87(0x24e)]('Hub\x20url\x20set\x20to\x20'+this[_0x4d4a87(0x21a)]),this;}[_0x1eb0e8(0x248)](_0x5f0072){const _0x12ebdd=_0x1eb0e8;let _0x25b11d={};for(const _0x515596 in _0x5f0072){switch(_0x515596){case _0x4d524d[_0x12ebdd(0x1ee)]:case _0x4d524d[_0x12ebdd(0x1f9)]:this[_0x12ebdd(0x1e5)]&&(_0x25b11d=this[_0x12ebdd(0x1e5)][_0x12ebdd(0x1ec)](this[_0x12ebdd(0x1e5)][_0x12ebdd(0x1f7)])||{},this['chromeOptions_']['set'](this[_0x12ebdd(0x1e5)][_0x12ebdd(0x1f7)],helper[_0x12ebdd(0x21e)](_0x25b11d,_0x5f0072[_0x515596])));break;case _0x4d524d[_0x12ebdd(0x22b)]:case _0x4d524d[_0x12ebdd(0x1d7)]:this['edgeOptions_']&&(_0x25b11d=this[_0x12ebdd(0x21b)][_0x12ebdd(0x1ec)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x12ebdd(0x21b)][_0x12ebdd(0x1fd)](this['edgeOptions_'][_0x12ebdd(0x1f7)],helper[_0x12ebdd(0x21e)](_0x25b11d,_0x5f0072[_0x515596])));break;case _0x4d524d['DIdEA']:case _0x4d524d[_0x12ebdd(0x1ef)]:this['firefoxOptions_']&&(_0x25b11d=this[_0x12ebdd(0x213)][_0x12ebdd(0x1ec)](this[_0x12ebdd(0x213)]['CAPABILITY_KEY'])||{},this[_0x12ebdd(0x213)][_0x12ebdd(0x1fd)](this[_0x12ebdd(0x213)][_0x12ebdd(0x1f7)],helper[_0x12ebdd(0x21e)](_0x25b11d,_0x5f0072[_0x515596])));break;case _0x4d524d[_0x12ebdd(0x1ed)]:this[_0x12ebdd(0x22d)]&&(_0x25b11d=this[_0x12ebdd(0x22d)][_0x12ebdd(0x1ec)](this[_0x12ebdd(0x22d)][_0x12ebdd(0x1f7)])||{},this['safariOptions_'][_0x12ebdd(0x1fd)](this[_0x12ebdd(0x22d)]['CAPABILITY_KEY'],helper[_0x12ebdd(0x21e)](_0x25b11d,_0x5f0072[_0x515596])));break;case _0x4d524d[_0x12ebdd(0x235)]:case _0x4d524d[_0x12ebdd(0x252)]:this[_0x12ebdd(0x20a)]&&(_0x25b11d=this[_0x12ebdd(0x20a)]['get'](this[_0x12ebdd(0x20a)][_0x12ebdd(0x1f7)])||{},this[_0x12ebdd(0x20a)]['set'](this[_0x12ebdd(0x20a)][_0x12ebdd(0x1f7)],helper['mergeDeep'](_0x25b11d,_0x5f0072[_0x515596])));break;}}}[_0x1eb0e8(0x20b)](){const _0x199abf=_0x1eb0e8,_0x4f9cd1={'PRmxQ':function(_0x977883,_0x48dccf){const _0x5e1843=a29_0x58d2;return _0x4d524d[_0x5e1843(0x1ea)](_0x977883,_0x48dccf);},'mMUsE':_0x4d524d[_0x199abf(0x203)]};return logger[_0x199abf(0x24e)](_0x4d524d[_0x199abf(0x247)]),this[_0x199abf(0x248)](_0x4bf7a0[_0x199abf(0x249)]),Object[_0x199abf(0x1e1)](_0x4bf7a0[_0x199abf(0x249)])[_0x199abf(0x220)](_0x16c8ed=>{const _0x4a4afe=_0x199abf,_0x35ee74=this[_0x4a4afe(0x223)][_0x4a4afe(0x1ec)](_0x16c8ed);_0x4f9cd1[_0x4a4afe(0x211)](typeof _0x35ee74,_0x4f9cd1[_0x4a4afe(0x240)])?this[_0x4a4afe(0x223)][_0x4a4afe(0x1fd)](_0x16c8ed,helper[_0x4a4afe(0x21e)](_0x35ee74,_0x4bf7a0[_0x4a4afe(0x249)][_0x16c8ed])):this['capabilities_'][_0x4a4afe(0x1fd)](_0x16c8ed,_0x4bf7a0[_0x4a4afe(0x249)][_0x16c8ed]);}),this;}[_0x1eb0e8(0x20e)](){const _0x7bfde2=_0x1eb0e8,_0x5b9767={'dCuhd':function(_0xd6d51c,_0x193709,_0x332fa3){const _0x3c58ab=a29_0x58d2;return _0x4d524d[_0x3c58ab(0x234)](_0xd6d51c,_0x193709,_0x332fa3);},'MmOGQ':function(_0x212f1d,_0x14ad65,_0x76a5bd){const _0x4bdc39=a29_0x58d2;return _0x4d524d[_0x4bdc39(0x234)](_0x212f1d,_0x14ad65,_0x76a5bd);},'cJIzs':function(_0x5d997f,_0x30f44e){return _0x4d524d['pTauB'](_0x5d997f,_0x30f44e);},'SKBvK':function(_0x4b677e,_0x803630,_0x37fb44){const _0x3f2c15=a29_0x58d2;return _0x4d524d[_0x3f2c15(0x250)](_0x4b677e,_0x803630,_0x37fb44);}};if(helper[_0x7bfde2(0x1de)]()){const _0xe12f54=_0x4d524d[_0x7bfde2(0x214)][_0x7bfde2(0x207)]('|');let _0x4ef731=0x0;while(!![]){switch(_0xe12f54[_0x4ef731++]){case'0':if(helper['isPacProxy'](_0x4bf7a0[_0x7bfde2(0x245)]['proxyUrl']))this['agent_']=helper[_0x7bfde2(0x1f4)](_0x4bf7a0[_0x7bfde2(0x245)][_0x7bfde2(0x231)]);else _0x4bf7a0[_0x7bfde2(0x245)][_0x7bfde2(0x231)]&&(this['proxy_']=_0x4bf7a0[_0x7bfde2(0x245)][_0x7bfde2(0x231)],logger[_0x7bfde2(0x24e)]('Proxy\x20set\x20to\x20'+this['proxy_']));continue;case'1':_0x4d524d[_0x7bfde2(0x1fa)](isAccessibilityAutomationSession)&&_0x4d524d[_0x7bfde2(0x24b)](setAccessibilityCapabilities,_0x4bf7a0);continue;case'2':globals[_0x7bfde2(0x22c)](_0x4d524d[_0x7bfde2(0x1f8)])&&(!_0x4d524d['MVErT'](setExtension,this,_0x4bf7a0)&&globals[_0x7bfde2(0x239)](_0x4d524d[_0x7bfde2(0x1f8)],![]));continue;case'3':this[_0x7bfde2(0x210)]();continue;case'4':this[_0x7bfde2(0x20b)]();continue;case'5':logger[_0x7bfde2(0x24e)](_0x4d524d[_0x7bfde2(0x1e9)]);continue;}break;}}const _0x255303=super[_0x7bfde2(0x20e)]();return _0x255303['session_'][_0x7bfde2(0x228)](_0x58b8f4=>{const _0x176cd3=_0x7bfde2;try{const _0x2257ca=_0x58b8f4[_0x176cd3(0x202)][_0x176cd3(0x1ec)](_0x4d524d[_0x176cd3(0x24a)]);_0x2257ca?(logger[_0x176cd3(0x24e)](_0x176cd3(0x218)+_0x2257ca),hubAllocator[_0x176cd3(0x23f)](_0x2257ca),helper[_0x176cd3(0x1e6)](_0x2257ca)):logger['debug'](_0x4d524d[_0x176cd3(0x22f)]);}catch(_0x75422f){logger[_0x176cd3(0x24e)](_0x176cd3(0x1ff)+_0x75422f);}}),_0x255303['quitCount_']=0x0,_0x255303['then']&&_0x255303['then'](_0x97a630=>{const _0x5ec096=_0x7bfde2,_0x2ef6c7={'imfeI':function(_0x4f5881,_0x64981,_0x4497a4){const _0x29c5da=a29_0x58d2;return _0x5b9767[_0x29c5da(0x226)](_0x4f5881,_0x64981,_0x4497a4);}};_0x5b9767[_0x5ec096(0x251)](overrideQuit,_0x97a630,_0x255303),_0x5b9767[_0x5ec096(0x20c)](overrideTakeScreenshot,_0x97a630),helper[_0x5ec096(0x20d)](_0x97a630,_0x4bf7a0),_0x5b9767[_0x5ec096(0x206)](overrideExecute,_0x97a630,_0x4bf7a0),_0x97a630[_0x5ec096(0x242)]=async()=>{const _0x10a508=_0x5ec096;return await _0x2ef6c7[_0x10a508(0x225)](getAccessibilityResultsSummary,_0x97a630,global);},_0x97a630['getAccessibilityResults']=async()=>{const _0x466bc7=_0x5ec096;return await _0x5b9767[_0x466bc7(0x226)](getAccessibilityResults,_0x97a630,global);};}),_0x255303['getAccessibilityResultsSummary']=async()=>{const _0x595c6a=_0x7bfde2;return await _0x4d524d[_0x595c6a(0x234)](getAccessibilityResultsSummary,_0x255303,global);},_0x255303['getAccessibilityResults']=async()=>{const _0x1696a6=_0x7bfde2;return await _0x4d524d[_0x1696a6(0x234)](getAccessibilityResults,_0x255303,global);},_0x4d524d[_0x7bfde2(0x24b)](overrideTakeScreenshot,_0x255303),_0x4d524d[_0x7bfde2(0x24b)](overrideQuit,_0x255303),helper[_0x7bfde2(0x20d)](_0x255303,_0x4bf7a0),_0x4d524d[_0x7bfde2(0x250)](overrideExecute,_0x255303,_0x4bf7a0),helper[_0x7bfde2(0x24d)](global[_0x7bfde2(0x1f1)])&&(global['__driversArray']=[]),helper[_0x7bfde2(0x24d)](global['__drivers'])&&(global[_0x7bfde2(0x1d6)]=[]),global[_0x7bfde2(0x1f1)][_0x7bfde2(0x23d)](_0x255303),global[_0x7bfde2(0x23b)]=_0x255303,_0x4d524d[_0x7bfde2(0x1fc)](global['__drivers'],undefined)&&global['__drivers'][_0x7bfde2(0x23d)](_0x255303),_0x125dd1&&helper['isUndefined'](_0x125dd1['global'][_0x7bfde2(0x1f1)])&&(_0x125dd1['global'][_0x7bfde2(0x1f1)]=[]),_0x125dd1&&_0x4d524d[_0x7bfde2(0x1f0)](_0x125dd1[_0x7bfde2(0x22a)]['__drivers'],undefined)&&(_0x125dd1[_0x7bfde2(0x22a)][_0x7bfde2(0x1d6)][_0x7bfde2(0x23d)](_0x255303),_0x125dd1[_0x7bfde2(0x22a)][_0x7bfde2(0x1f1)]['push'](_0x255303)),_0x255303;}}return _0x23b89f[_0x1eb0e8(0x246)]=_0x23b89f[_0x1eb0e8(0x1d8)],_0x23b89f['Builder']=_0x5e7542,_0x1bfbfc[_0x1eb0e8(0x1dc)]=_0x262cf8,_0x23b89f;};function a29_0x58d2(_0x3de3dd,_0x33a3c5){const _0x57682b=a29_0x5768();return a29_0x58d2=function(_0x58d253,_0x972c01){_0x58d253=_0x58d253-0x1d5;let _0x45da30=_0x57682b[_0x58d253];return _0x45da30;},a29_0x58d2(_0x3de3dd,_0x33a3c5);}module[a29_0x41475a(0x230)][a29_0x41475a(0x232)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a30_0x377d(_0xd6ffc5,_0x3422cd){const _0x44f923=a30_0x44f9();return a30_0x377d=function(_0x377d7b,_0x3ebf1d){_0x377d7b=_0x377d7b-0xac;let _0xda18dc=_0x44f923[_0x377d7b];return _0xda18dc;},a30_0x377d(_0xd6ffc5,_0x3422cd);}const a30_0x468a79=a30_0x377d;(function(_0x2624c3,_0x166308){const _0x3270ee=a30_0x377d,_0x2b7b34=_0x2624c3();while(!![]){try{const _0x5316f6=parseInt(_0x3270ee(0xac))/0x1*(-parseInt(_0x3270ee(0xaf))/0x2)+parseInt(_0x3270ee(0xae))/0x3*(parseInt(_0x3270ee(0xb5))/0x4)+parseInt(_0x3270ee(0xb3))/0x5+parseInt(_0x3270ee(0xb4))/0x6+-parseInt(_0x3270ee(0xb8))/0x7+parseInt(_0x3270ee(0xb0))/0x8+-parseInt(_0x3270ee(0xad))/0x9;if(_0x5316f6===_0x166308)break;else _0x2b7b34['push'](_0x2b7b34['shift']());}catch(_0xc38cdc){_0x2b7b34['push'](_0x2b7b34['shift']());}}}(a30_0x44f9,0xa6580));function a30_0x44f9(){const _0xf12608=['288120boJlAi','1813488kmhMWy','../../../helpers/request-spy','../../../helpers/test-observability/utils','4092431kcndCt','2tnsesN','16497189IewWuk','9IWWCcu','424194svrqoS','6385104KVkerq','../../../bin/utils/constants','cUdZC','6584590PffZrx'];a30_0x44f9=function(){return _0xf12608;};return a30_0x44f9();}const requestSpy=require(a30_0x468a79(0xb6)),constants=require(a30_0x468a79(0xb1)),{addRequestSpy}=require(a30_0x468a79(0xb7));exports['mochaHooks']={'beforeAll'(){const _0x1b992c=a30_0x468a79,_0xda13af={'cUdZC':function(_0x36178b){return _0x36178b();}},_0x51611b='browserstack internal helper hook';_0xda13af[_0x1b992c(0xb2)](addRequestSpy);},'afterAll'(){const _0x315344='browserstack internal helper hook';this['timeout'](0xea60),requestSpy['restore']();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a31_0x9ed390=a31_0x2f14;function a31_0x2f14(_0x5acc96,_0x1a5b62){const _0xb59e92=a31_0xb59e();return a31_0x2f14=function(_0x2f1454,_0x14d84e){_0x2f1454=_0x2f1454-0x14e;let _0x40b81b=_0xb59e92[_0x2f1454];return _0x40b81b;},a31_0x2f14(_0x5acc96,_0x1a5b62);}function a31_0xb59e(){const _0x1fde55=['867954nYSXGL','bs:addPlatformDetails:','387937qzbXJl','passed','TbZYZ','getBrowserName','WAByv','browserstack','3282CMmJiH','emit','DXiJf','type','4360993FATEtJ','BsuNw','TXKrh','markedStatus','map_','rVQzY','_beforeAll','getCapabilities','IcQcK','getHookDetails','PLMkK','lodash','MYEGB','fromEntries','substring','slice','getSession','sendPlatformDetails','6325CWIkBp','hook:','getBrowserVersion','concat','2636192KxPpvk','mapTestHooks','../../../helpers/helper','DrVqA','xTvpK','Xkvdo','reduce','TEST_PLATFORM','zlPfF','iNomu','IfAIj','unknown_grid','SOVTJ','nXGMN','FRjpi','_beforeEach','getHooksForTest','GqjzY','getHookSkippedTests','suites','ndtMi','indexOf','nteTa','ojUcj','_afterEach','generic','string','split','_afterAll','cbwPi','filter','toJSON','failed','5927584TzNScm','state','35931020AevRzH','9wLNtmE','__cloud_provider___','NRxOx','VTRGf','cfQnQ','../../../helpers/testhub/utils','parent','xXyAn','tests','3cJKKij','../../../../package.json','Srfoa','hookAnalyticsId','hook','forEach'];a31_0xb59e=function(){return _0x1fde55;};return a31_0xb59e();}(function(_0x4eb3ef,_0x4b7654){const _0x263ef5=a31_0x2f14,_0x5b3da4=_0x4eb3ef();while(!![]){try{const _0x3da246=parseInt(_0x263ef5(0x160))/0x1+-parseInt(_0x263ef5(0x15e))/0x2*(parseInt(_0x263ef5(0x158))/0x3)+-parseInt(_0x263ef5(0x180))/0x4+parseInt(_0x263ef5(0x17c))/0x5*(-parseInt(_0x263ef5(0x166))/0x6)+-parseInt(_0x263ef5(0x16a))/0x7+-parseInt(_0x263ef5(0x1a1))/0x8+-parseInt(_0x263ef5(0x14f))/0x9*(-parseInt(_0x263ef5(0x14e))/0xa);if(_0x3da246===_0x4b7654)break;else _0x5b3da4['push'](_0x5b3da4['shift']());}catch(_0x10d144){_0x5b3da4['push'](_0x5b3da4['shift']());}}}(a31_0xb59e,0xcb270));const {v4:uuidv4}=require('uuid'),{name,version}=require(a31_0x9ed390(0x159)),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require('../../../helpers/test-observability/constants'),{getPlatformVersion}=require(a31_0x9ed390(0x182)),{shouldProcessEventForTesthub}=require(a31_0x9ed390(0x154)),{isFunction}=require(a31_0x9ed390(0x175)),{patchConsoleLogger}=require('../../../helpers/test-observability/utils');patchConsoleLogger(),exports['getTestEnv']=()=>{const _0x2bdde8=a31_0x9ed390,_0x55a8de={'Xkvdo':_0x2bdde8(0x199),'FhluD':function(_0x52beae){return _0x52beae();}};return{'ci':_0x55a8de[_0x2bdde8(0x185)],'key':_0x55a8de['FhluD'](uuidv4),'version':version,'collector':'js-'+name};},exports[a31_0x9ed390(0x173)]=_0x37da76=>{const _0x2198e6=a31_0x9ed390,_0x10d38c={};_0x10d38c[_0x2198e6(0x18c)]=function(_0xc829ef,_0x29279e){return _0xc829ef!==_0x29279e;},_0x10d38c[_0x2198e6(0x16c)]=_0x2198e6(0x19a),_0x10d38c[_0x2198e6(0x153)]=function(_0x35c48b,_0x32b66e){return _0x35c48b!==_0x32b66e;},_0x10d38c[_0x2198e6(0x151)]=_0x2198e6(0x17d),_0x10d38c['ndtMi']=function(_0x27ec84,_0x4ecc5c){return _0x27ec84!==_0x4ecc5c;},_0x10d38c[_0x2198e6(0x18e)]=_0x2198e6(0x15c);const _0x5bf0a9=_0x10d38c;if(!_0x37da76||_0x5bf0a9[_0x2198e6(0x18c)](typeof _0x37da76,_0x5bf0a9['TXKrh']))return[null,null];if(_0x5bf0a9[_0x2198e6(0x153)](_0x37da76[_0x2198e6(0x195)](_0x5bf0a9[_0x2198e6(0x151)]),-0x1)){const _0x22b34e=_0x37da76['split'](_0x5bf0a9['NRxOx']);return[_0x22b34e[0x0][_0x2198e6(0x179)](0x0,-0x1)[_0x2198e6(0x19b)]('\x22')[0x1],_0x22b34e[0x1][_0x2198e6(0x178)](0x1)];}else{if(_0x5bf0a9[_0x2198e6(0x194)](_0x37da76[_0x2198e6(0x195)](_0x5bf0a9[_0x2198e6(0x18e)]),-0x1)){const _0x3c30fc=_0x37da76[_0x2198e6(0x19b)](_0x5bf0a9['FRjpi']);return[_0x3c30fc[0x0]['slice'](0x0,-0x1)[_0x2198e6(0x19b)]('\x22')[0x1],_0x37da76];}}return[null,null];},exports[a31_0x9ed390(0x190)]=_0xe5ffca=>{const _0x412047=a31_0x9ed390,_0x17046a={'PLMkK':function(_0x3f49fe,_0x327e5f){return _0x3f49fe(_0x327e5f);},'nXGMN':'_beforeAll','iNomu':_0x412047(0x19c),'xTvpK':'_beforeEach','zlPfF':_0x412047(0x198)};if(!_0xe5ffca||!_0xe5ffca['parent'])return[];const _0x364bf4=[];return[_0x17046a[_0x412047(0x18d)],_0x17046a[_0x412047(0x189)],_0x17046a[_0x412047(0x184)],_0x17046a[_0x412047(0x188)]][_0x412047(0x15d)](_0x243599=>{const _0x1fd438=_0x412047,_0x3259a0={'VOFgq':function(_0x5d4704,_0x33dd99){const _0x384f59=a31_0x2f14;return _0x17046a[_0x384f59(0x174)](_0x5d4704,_0x33dd99);}},_0x56dea3=_0xe5ffca[_0x1fd438(0x155)][_0x243599]||[];_0x56dea3['forEach'](_0x27acda=>{const _0x312ddf=_0x1fd438;_0x27acda['hookAnalyticsId']&&!_0x3259a0['VOFgq'](isInternalHook,_0x27acda['fn'])&&_0x364bf4['push'](_0x27acda[_0x312ddf(0x15b)]);});}),[..._0x364bf4,...exports[_0x412047(0x190)](_0xe5ffca[_0x412047(0x155)])];},exports[a31_0x9ed390(0x181)]=_0x217504=>{const _0x4abb62=a31_0x9ed390,_0x1a1ecd={'VpQiA':function(_0x4b1c9d){return _0x4b1c9d();},'BsuNw':function(_0x21997f,_0x187522){return _0x21997f===_0x187522;},'ojUcj':_0x4abb62(0x198),'Srfoa':_0x4abb62(0x170),'rVQzY':'_afterAll','MPyiA':_0x4abb62(0x18f)};if(!_0x217504||!_0x217504['parent'])return;[_0x1a1ecd[_0x4abb62(0x15a)],_0x1a1ecd[_0x4abb62(0x16f)],_0x1a1ecd['MPyiA'],_0x1a1ecd[_0x4abb62(0x197)]]['forEach'](_0x3f6636=>{const _0x4a82f2=_0x4abb62,_0x286a4a={'WAByv':function(_0x1b964f){return _0x1a1ecd['VpQiA'](_0x1b964f);},'DXiJf':function(_0x580311,_0x301bc4){const _0x6e0edb=a31_0x2f14;return _0x1a1ecd[_0x6e0edb(0x16b)](_0x580311,_0x301bc4);},'IcQcK':_0x1a1ecd[_0x4a82f2(0x197)]},_0x3dda89=_0x217504[_0x4a82f2(0x155)][_0x3f6636]||[];_0x3dda89['forEach'](_0x233701=>{const _0x292033=_0x4a82f2;if(!_0x233701['hookAnalyticsId'])_0x233701[_0x292033(0x15b)]=_0x286a4a[_0x292033(0x164)](uuidv4);else _0x233701['markedStatus']&&_0x286a4a[_0x292033(0x168)](_0x3f6636,_0x286a4a[_0x292033(0x172)])&&(_0x233701[_0x292033(0x15b)]=_0x286a4a[_0x292033(0x164)](uuidv4),delete _0x233701[_0x292033(0x16d)]);});}),exports[_0x4abb62(0x181)](_0x217504[_0x4abb62(0x155)]);},exports[a31_0x9ed390(0x17b)]=async(_0xc56eb8,_0x43d3b9)=>{const _0x31ea24=a31_0x9ed390,_0x2690f1={'FUItf':function(_0x97cefd){return _0x97cefd();},'GqjzY':function(_0x520a37,_0x4660fb){return _0x520a37(_0x4660fb);},'nzyYJ':function(_0x1755af,_0x3810bb){return _0x1755af(_0x3810bb);},'TbZYZ':function(_0x592986,_0xc87b11){return _0x592986===_0xc87b11;},'VTRGf':_0x31ea24(0x165),'vIxcc':_0x31ea24(0x18b),'cbwPi':_0x31ea24(0x187),'xXyAn':function(_0x50269d,_0x3cb497){return _0x50269d(_0x3cb497);}};try{if(!_0x2690f1['FUItf'](shouldProcessEventForTesthub))return;const _0x5a12b2=await _0xc56eb8[_0x31ea24(0x171)](),_0x4da2c0=await _0xc56eb8[_0x31ea24(0x17a)](),_0x96dcc={},_0x56cd85=Object[_0x31ea24(0x177)](_0x4da2c0[_0x31ea24(0x171)]()[_0x31ea24(0x16e)]),_0x1a53da={'product':_0x2690f1[_0x31ea24(0x191)](getObservabilityLinkedProductName,_0x56cd85),'capabilities':_0x56cd85,'platform':_0x5a12b2['getPlatform'](),'platform_version':_0x2690f1['nzyYJ'](getPlatformVersion,_0x2690f1[_0x31ea24(0x162)](global[_0x31ea24(0x150)],_0x2690f1[_0x31ea24(0x152)])),'browser':_0x5a12b2[_0x31ea24(0x163)](),'browser_version':_0x5a12b2[_0x31ea24(0x17e)](),'session_id':_0x4da2c0[_0x31ea24(0x19f)]()};global[_0x31ea24(0x150)]?_0x96dcc[global[_0x31ea24(0x150)]]=_0x1a53da:_0x96dcc[_0x2690f1['vIxcc']]=_0x1a53da,process[_0x31ea24(0x167)](_0x31ea24(0x15f)+process['pid'],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x2690f1[_0x31ea24(0x19d)],'http_response':_0x96dcc,'uuid':_0x43d3b9});}catch(_0x11816b){_0x2690f1[_0x31ea24(0x156)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x11816b);}},exports[a31_0x9ed390(0x192)]=_0x1ddb62=>{const _0x429310=a31_0x9ed390,_0x5f0b01={};_0x5f0b01[_0x429310(0x18a)]=function(_0x2f6460,_0x5497c0){return _0x2f6460!==_0x5497c0;},_0x5f0b01[_0x429310(0x196)]=_0x429310(0x15c),_0x5f0b01[_0x429310(0x176)]=_0x429310(0x161),_0x5f0b01[_0x429310(0x183)]=_0x429310(0x1a0);const _0x3a166a=_0x5f0b01,_0x1f5a5a=_0x1ddb62[_0x429310(0x193)][_0x429310(0x186)]((_0x47a026,_0x40e2db)=>{const _0x275fcf=_0x429310,_0x150c9a=exports[_0x275fcf(0x192)](_0x40e2db);return _0x150c9a&&(_0x47a026=_0x47a026[_0x275fcf(0x17f)](_0x150c9a)),_0x47a026;},[]),_0x518a59=_0x1ddb62[_0x429310(0x157)][_0x429310(0x19e)](_0x331003=>{const _0x1a608d=_0x429310,_0x351f17=_0x3a166a[_0x1a608d(0x18a)](_0x331003[_0x1a608d(0x169)],_0x3a166a[_0x1a608d(0x196)])&&!_0x331003[_0x1a608d(0x16d)]&&_0x3a166a['IfAIj'](_0x331003['state'],_0x3a166a['MYEGB'])&&_0x3a166a[_0x1a608d(0x18a)](_0x331003[_0x1a608d(0x1a2)],_0x3a166a['DrVqA'])&&!_0x331003['pending'];return _0x351f17;});return _0x518a59[_0x429310(0x17f)](_0x1f5a5a);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x1145f1=a32_0x4962;function a32_0x4962(_0x127226,_0x4d7c26){const _0x4c7b67=a32_0x4c7b();return a32_0x4962=function(_0x49627a,_0x33f002){_0x49627a=_0x49627a-0x19f;let _0x1978eb=_0x4c7b67[_0x49627a];return _0x1978eb;},a32_0x4962(_0x127226,_0x4d7c26);}(function(_0x232ce2,_0x1bc094){const _0x37c7b6=a32_0x4962,_0x59dec3=_0x232ce2();while(!![]){try{const _0x500fce=-parseInt(_0x37c7b6(0x208))/0x1*(parseInt(_0x37c7b6(0x201))/0x2)+parseInt(_0x37c7b6(0x1ae))/0x3*(-parseInt(_0x37c7b6(0x1d3))/0x4)+parseInt(_0x37c7b6(0x1de))/0x5+parseInt(_0x37c7b6(0x1c7))/0x6+parseInt(_0x37c7b6(0x206))/0x7+-parseInt(_0x37c7b6(0x1c5))/0x8*(parseInt(_0x37c7b6(0x1f9))/0x9)+parseInt(_0x37c7b6(0x1ad))/0xa*(parseInt(_0x37c7b6(0x1b4))/0xb);if(_0x500fce===_0x1bc094)break;else _0x59dec3['push'](_0x59dec3['shift']());}catch(_0x219867){_0x59dec3['push'](_0x59dec3['shift']());}}}(a32_0x4c7b,0x9f61a));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a32_0x1145f1(0x1b6)),{sendPlatformDetails}=require(a32_0x1145f1(0x203)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x1145f1(0x1cd)),PerformanceTester=require(a32_0x1145f1(0x1fb)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x1145f1(0x1f6)),logger=require('../../helpers/logger')[a32_0x1145f1(0x218)],{shouldProcessEventForTesthub}=require(a32_0x1145f1(0x1a3)),testHubConstants=require(a32_0x1145f1(0x1b3));function a32_0x4c7b(){const _0x9de3d7=['Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','Cdihp','shift','dcRVZ','bfyhO','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','shouldScanTestForAccessibility','Automate\x20test\x20case\x20execution\x20has\x20started.','IgenJ','info','LWwBg','TUFAA','ddFMt','YHvJU',',\x22level\x22:\x20\x22','thBuildUuid','WmtIF','https:','timeout','capabilities','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','QVPhb','../../helpers/globals','HMwmD','appium:app','189OfNrCX','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','../../helpers/performance-tester','getGlobal','NyTro','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','sessionNameSet__','__error_messages__','41618DsEyBc','accessibilityScanStarted','./test-observability/mochaUtils','state','isArray','422562hnnTpI','EDZfn','1CcVKvO','join','stringify','thTestRunUuid','executeAsyncScript','\x22}}','YEbym','thJwtToken','bPDGu','ObservabilitySync:','error','titlePath','isAccessibilityPlatform','QSqkI','AnqDP','\x20|\x20','winstonLogger','pwgZh','debug','quitCount_','http:','ENV_VAR','../../helpers/testhub/utils','startMonitoring','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','.\x20Error\x20:','qjoQh','PdoWo','KactA','Failed\x20to\x20store\x20session\x20name:\x20','XlxHs','testAnalyticsId','518120PgiGAq','2360409FurqCx','__drivers','BROWSERSTACK_TESTHUB_UUID','performScan','Nfntq','../../helpers/testhub/constants','132jYvwOn','Failed:\x20','../../helpers/percy/utils','Uuajv','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','__sessionFailed','app','cxGnT','OnhQx','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','XxYOB','OCmnp','YMJUO','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','Performing\x20scan\x20before\x20saving\x20results','format','mWVpK','61368hhrkQT','currentTest','4855794BmIUdj','Passed','YhSxR','then','GIAYM','env','../../helpers/helper','passed','push','\x20-\x20','mochaHooks','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','4QegjDh','percyCaptureMode','message','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','AiKSR','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','length','driverCleanup','percy','err','executeScript','650600jHRoBm'];a32_0x4c7b=function(){return _0x9de3d7;};return a32_0x4c7b();}exports[a32_0x1145f1(0x1d1)]={'beforeAll'(){const _0x438ddf=a32_0x1145f1,_0xaee44e={'TUFAA':function(_0x4a1c34,_0x14d4f2,_0x5db1a4,_0x4b35be){return _0x4a1c34(_0x14d4f2,_0x5db1a4,_0x4b35be);},'eRjkM':'failed','YMJUO':_0x438ddf(0x217),'PdoWo':function(_0x523e8b,_0x14eeec,_0x30e918){return _0x523e8b(_0x14eeec,_0x30e918);},'NBGhH':_0x438ddf(0x1ce),'ZIjOB':function(_0x251d02){return _0x251d02();},'CZDtj':function(_0x57fde3,_0xcd41,_0x34a4b8){return _0x57fde3(_0xcd41,_0x34a4b8);}};PerformanceTester[_0x438ddf(0x1a4)]();const _0x32801d='browserstack internal helper hook';global[_0x438ddf(0x200)]=[],global[_0x438ddf(0x1b9)]=![],global['driverCleanup']=async()=>{const _0xeacc1c=_0x438ddf;let _0x25d64b=![];try{await global[_0xeacc1c(0x1af)][0x0]['session_'],_0x25d64b=!![],global[_0xeacc1c(0x1b9)]?await _0xaee44e[_0xeacc1c(0x1eb)](markSessionStatus,global[_0xeacc1c(0x1af)][0x0],_0xaee44e['eRjkM'],global[_0xeacc1c(0x200)][_0xeacc1c(0x209)](_0xaee44e[_0xeacc1c(0x1c0)])):await _0xaee44e[_0xeacc1c(0x1a8)](markSessionStatus,global[_0xeacc1c(0x1af)][0x0],_0xaee44e['NBGhH']);}catch(_0x2f2d1d){logger[_0xeacc1c(0x19f)](_0xeacc1c(0x1b8)+_0x2f2d1d);}global[_0xeacc1c(0x200)]=[],global['__sessionFailed']=![];if(_0x25d64b)try{try{_0xaee44e['ZIjOB'](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0xaee44e['CZDtj'](sendPlatformDetails,global['__drivers'][0x0],this[_0xeacc1c(0x1c6)]?this['currentTest'][_0xeacc1c(0x1ac)]:null));}catch(_0x2ab09d){logger['debug'](_0xeacc1c(0x1a5)+_0x2ab09d);}await global[_0xeacc1c(0x1af)][0x0]['initQuit']();}catch(_0x37996d){logger[_0xeacc1c(0x19f)](_0xeacc1c(0x1fe)+_0x37996d);}};},'beforeEach'(_0x219fb2){const _0x2b48a6=a32_0x1145f1,_0x50bac1={'Uuajv':function(_0x441892,_0x35d030){return _0x441892>_0x35d030;},'cxGnT':function(_0x733483,_0x212c64){return _0x733483>_0x212c64;},'AnqDP':_0x2b48a6(0x1d0),'OCmnp':function(_0x2b1f10,_0x4816aa,_0x22c554){return _0x2b1f10(_0x4816aa,_0x22c554);},'Nfntq':'bstackA11yShouldScan','pwgZh':function(_0x52bcba){return _0x52bcba();},'EDZfn':_0x2b48a6(0x214),'Cdihp':function(_0x269847,_0x55d481){return _0x269847===_0x55d481;},'qjoQh':_0x2b48a6(0x1a1),'LWwBg':function(_0x25b1c5,_0x3b343e){return _0x25b1c5===_0x3b343e;},'mVOoP':_0x2b48a6(0x1f1),'mJReT':_0x2b48a6(0x1e5),'QSqkI':_0x2b48a6(0x1e7)};new Promise(async _0x4d867b=>{const _0x597c45=_0x2b48a6,_0x8a63ee='browserstack internal helper hook';let _0x385749=!![];try{_0x50bac1[_0x597c45(0x1b7)](global[_0x597c45(0x1af)][_0x597c45(0x1d9)],0x1)&&(await global[_0x597c45(0x1da)](),global['__drivers'][_0x597c45(0x1e2)]()),_0x50bac1[_0x597c45(0x1bb)](global['__drivers'][0x0][_0x597c45(0x1a0)],0x0)&&(_0x385749=![],await global[_0x597c45(0x1da)]());}catch(_0x485109){logger[_0x597c45(0x19f)](_0x597c45(0x1fe)+_0x485109);}try{Array[_0x597c45(0x205)](global[_0x597c45(0x1af)])&&global['__drivers'][0x0]&&(global[_0x597c45(0x1af)][0x0]['browserstackSessionName']=this[_0x597c45(0x1c6)]['titlePath']()[_0x597c45(0x209)](_0x50bac1['AnqDP'])),global['browserstackSessionName']=this[_0x597c45(0x1c6)]['titlePath']()[_0x597c45(0x209)](_0x50bac1[_0x597c45(0x216)]);}catch(_0x5f15f4){logger[_0x597c45(0x19f)](_0x597c45(0x1aa)+_0x5f15f4);}this[_0x597c45(0x1c6)][_0x597c45(0x1e6)]=_0x50bac1[_0x597c45(0x1bf)](shouldScanTestForAccessibility,this[_0x597c45(0x1c6)]['titlePath'](),!![]),globals['setGlobal'](_0x50bac1[_0x597c45(0x1b2)],this['currentTest']['shouldScanTestForAccessibility']),this[_0x597c45(0x1c6)][_0x597c45(0x202)]=!![];if(_0x50bac1[_0x597c45(0x219)](isAccessibilityAutomationSession)&&_0x385749&&Array['isArray'](global[_0x597c45(0x1af)])&&_0x50bac1[_0x597c45(0x1bb)](global['__drivers'][_0x597c45(0x1d9)],0x0)&&globals[_0x597c45(0x1fc)](_0x50bac1[_0x597c45(0x207)]))try{const _0x4628d7=await global[_0x597c45(0x1af)][0x0]['session_'];if(_0x4628d7){let _0x3047b1=!![];const _0x3ef50b=await global[_0x597c45(0x1af)][0x0]['getCurrentUrl']();let _0x3db415;try{_0x3db415=new URL(_0x3ef50b);}catch(_0x3f4f79){_0x3047b1=![];}_0x3047b1=_0x50bac1[_0x597c45(0x1e1)](_0x3db415['protocol'],_0x50bac1[_0x597c45(0x1a7)])||_0x50bac1[_0x597c45(0x1ea)](_0x3db415['protocol'],_0x50bac1['mVOoP']),_0x3047b1&&(this['currentTest'][_0x597c45(0x1e6)]&&logger[_0x597c45(0x1e9)](_0x50bac1['mJReT'])),this[_0x597c45(0x1c6)][_0x597c45(0x202)]=this['currentTest'][_0x597c45(0x1e6)],this[_0x597c45(0x1c6)][_0x597c45(0x1e6)]&&logger[_0x597c45(0x1e9)](_0x50bac1[_0x597c45(0x215)]);}}catch(_0x49da0a){logger[_0x597c45(0x212)](_0x597c45(0x1df)+util[_0x597c45(0x1c3)](_0x49da0a));}_0x50bac1[_0x597c45(0x219)](_0x4d867b);})['then'](_0x219fb2);},'afterEach'(_0x498f25){const _0x36223b=a32_0x1145f1,_0xbef991={'AiKSR':function(_0x15b4ad,_0x595f09){return _0x15b4ad>_0x595f09;},'XxYOB':function(_0x5928a3,_0x4bfb20){return _0x5928a3===_0x4bfb20;},'OnhQx':'testcase','KactA':function(_0x42c3d0,_0x35e57e){return _0x42c3d0>_0x35e57e;},'rThqp':_0x36223b(0x1f8),'WmtIF':function(_0x4e05b9,_0x35ecd6,_0x53824d,_0x1265a8){return _0x4e05b9(_0x35ecd6,_0x53824d,_0x1265a8);},'ddFMt':'\x20-\x20','AhQyn':function(_0x480400,_0x128c66){return _0x480400!==_0x128c66;},'NyTro':_0x36223b(0x1ce),'QVPhb':function(_0x580551,_0xa9c07c,_0x52f156){return _0x580551(_0xa9c07c,_0x52f156);},'XlxHs':function(_0x5d4011,_0x58a5e1){return _0x5d4011+_0x58a5e1;},'GIAYM':_0x36223b(0x1b5),'YEbym':_0x36223b(0x212),'dcRVZ':function(_0x1264fc,_0x471201,_0x2562fe){return _0x1264fc(_0x471201,_0x2562fe);},'DvxgW':_0x36223b(0x1c8),'LrDRm':_0x36223b(0x1e9),'RvmFY':_0x36223b(0x214),'bfyhO':'bstackA11yShouldScan','IgenJ':_0x36223b(0x1f4),'YHvJU':_0x36223b(0x1c2),'HMwmD':_0x36223b(0x1e0),'mWVpK':function(_0x3466b3){return _0x3466b3();},'xrOXo':function(_0x27d008){return _0x27d008();},'YhSxR':_0x36223b(0x19f),'bPDGu':function(_0x304f5c){return _0x304f5c();}},_0x9f42cd='browserstack internal helper hook';this['timeout'](0xfde8);const _0x5d14a3=async(_0x3616cf,_0x160161)=>{const _0x393414=_0x36223b;await global[_0x393414(0x1af)][0x0][_0x393414(0x1dd)](_0x393414(0x1fa)+_0x3616cf+_0x393414(0x1ee)+_0x160161+_0x393414(0x20d));};new Promise(async _0x24263c=>{const _0x428916=_0x36223b;try{_0xbef991[_0x428916(0x1d7)](global[_0x428916(0x1af)]['length'],0x1)&&(await global[_0x428916(0x1da)](),global['__drivers']['shift'](),global[_0x428916(0x200)]=[],global[_0x428916(0x1b9)]=![]);try{if(global[_0x428916(0x1db)]&&_0xbef991[_0x428916(0x1be)](global[_0x428916(0x1d4)],_0xbef991['OnhQx'])&&global['__drivers'][0x0]){const _0x160a40=_0xbef991['KactA'](global['capabilities'][_0x428916(0x1d9)],0x0)?!!global['capabilities'][0x0][_0x428916(0x1ba)]||!!global[_0x428916(0x1f3)][0x0][_0xbef991['rThqp']]:![],_0x1684f4={};_0x1684f4[_0x428916(0x1ba)]=_0x160a40,await _0xbef991[_0x428916(0x1f0)](percyAutoCapture,global[_0x428916(0x1af)][0x0],_0xbef991[_0x428916(0x1bc)],_0x1684f4);}}catch(_0xb42682){logger[_0x428916(0x19f)](_0x428916(0x1bd)+_0xb42682);}!global['__skipSessionName']&&(await global['__drivers'][0x0][_0x428916(0x1dd)](_0x428916(0x1d8)+JSON['stringify'](this[_0x428916(0x1c6)][_0x428916(0x213)]()[_0x428916(0x209)](_0xbef991[_0x428916(0x1ec)]))+'}}'),global[_0x428916(0x1af)][0x0][_0x428916(0x1ff)]=!![]);const _0x26af4b=_0xbef991['AhQyn'](this[_0x428916(0x1c6)][_0x428916(0x204)],_0xbef991[_0x428916(0x1fd)]);_0x26af4b?(global[_0x428916(0x1b9)]=!![],global[_0x428916(0x200)][_0x428916(0x1cf)](this[_0x428916(0x1c6)]['err'][_0x428916(0x1d5)]),await _0xbef991['QVPhb'](_0x5d14a3,JSON[_0x428916(0x20a)](_0xbef991[_0x428916(0x1ab)](_0xbef991[_0x428916(0x1cb)],this[_0x428916(0x1c6)][_0x428916(0x1dc)]['message'])),_0xbef991[_0x428916(0x20e)])):await _0xbef991['dcRVZ'](_0x5d14a3,JSON[_0x428916(0x20a)](_0xbef991['DvxgW']),_0xbef991['LrDRm']);}catch(_0x6bc911){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x6bc911);}try{if(this[_0x428916(0x1c6)][_0x428916(0x202)]&&globals[_0x428916(0x1fc)](_0xbef991['RvmFY'])&&globals[_0x428916(0x1fc)](_0xbef991[_0x428916(0x1e4)])){logger[_0x428916(0x1e9)](_0xbef991[_0x428916(0x1e8)]);const _0x5c4802={};_0x5c4802[_0x428916(0x20b)]=this['currentTest'][_0x428916(0x1ac)],_0x5c4802[_0x428916(0x1ef)]=process['env'][testHubConstants[_0x428916(0x1a2)][_0x428916(0x1b0)]],_0x5c4802[_0x428916(0x20f)]=process[_0x428916(0x1cc)][testHubConstants[_0x428916(0x1a2)]['BROWSERSTACK_TESTHUB_JWT']];const _0x4a64a8=_0x5c4802;logger[_0x428916(0x19f)](_0x428916(0x1d2)+JSON[_0x428916(0x20a)](_0x4a64a8)),logger[_0x428916(0x19f)](_0xbef991[_0x428916(0x1ed)]),logger[_0x428916(0x19f)](util[_0x428916(0x1c3)](await global[_0x428916(0x1af)][0x0][_0x428916(0x20c)](scripts[_0x428916(0x1b1)],{'method':global['browserstackSessionName']}))),await global[_0x428916(0x1af)][0x0][_0x428916(0x20c)](scripts['saveTestResults'],_0x4a64a8),logger[_0x428916(0x1e9)](_0xbef991[_0x428916(0x1f7)]);}}catch(_0x527a98){logger[_0x428916(0x212)](_0x428916(0x1c1)+this[_0x428916(0x1c6)][_0x428916(0x213)]()+_0x428916(0x1a6),_0x527a98);}try{try{if(_0xbef991[_0x428916(0x1c4)](shouldProcessEventForTesthub)){global[_0x428916(0x1af)][0x0]&&await _0xbef991[_0x428916(0x1f5)](sendPlatformDetails,global[_0x428916(0x1af)][0x0],this[_0x428916(0x1c6)]?this['currentTest'][_0x428916(0x1ac)]:null);if(_0xbef991['xrOXo'](isBrowserstackInfra)){const _0x5c2ea4=_0x428916(0x211)+Date['now']();await _0xbef991[_0x428916(0x1e3)](_0x5d14a3,JSON[_0x428916(0x20a)](_0x5c2ea4),_0xbef991[_0x428916(0x1c9)]);}}}catch(_0x3d1cae){logger[_0x428916(0x19f)](_0x428916(0x1d6)+_0x3d1cae);}_0xbef991[_0x428916(0x1a9)](global[_0x428916(0x1af)][0x0]['quitCount_'],0x0)&&await global['driverCleanup']();}catch(_0x203d5f){logger[_0x428916(0x19f)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x203d5f);}_0xbef991[_0x428916(0x210)](_0x24263c);})[_0x36223b(0x1ca)](()=>_0x498f25());},'afterAll'(_0x13d21f){const _0x1c706d=a32_0x1145f1,_0x21c999={'LyBME':function(_0x279667){return _0x279667();}},_0xb5f78c='browserstack internal helper hook';this[_0x1c706d(0x1f2)](0xfde8),new Promise(async _0x19288a=>{const _0x98f411=_0x1c706d;PerformanceTester['stopMonitoring'](),await global[_0x98f411(0x1da)](),_0x21c999['LyBME'](_0x19288a);})[_0x1c706d(0x1ca)](()=>_0x13d21f());}};
|
|
1
|
+
const a32_0x2f0e10=a32_0xbdfc;function a32_0x1bca(){const _0x37d70a=['saveTestResults','../../helpers/testhub/constants','21zfPuJV','performScan','Performing\x20scan\x20before\x20saving\x20results','error','currentTest','gjEzf','shift','browserstackSessionName','__error_messages__','\x20|\x20','11440890KoRKyp','testAnalyticsId','cQCph','thJwtToken','5671398WhHsEV','capabilities','\x22}}','../../helpers/testhub/utils','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','yzStV','HpjhU','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','../../helpers/accessibility-automation/scripts','nNWKT','MCJrx','titlePath','OAmil','\x20-\x20','../../helpers/accessibility-automation/helper','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','PbZyz','isArray','app','err','failed','AlksP','../../helpers/percy/utils','XmKXD','isAccessibilityPlatform','44WXINVZ','WwiWO','https:','shouldScanTestForAccessibility','testcase','info','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','message',',\x22level\x22:\x20\x22','driverCleanup','9lyqZTs','state','iYjZi','5bOiBju','executeScript','XAwPW','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','dNaOx','climo','1268704lhfzfN','aROPz','__sessionFailed','MTVNY','accessibilityScanStarted','quitCount_','stopMonitoring','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','env','Passed','timeout','UgnyA','uudxE','format','../../helpers/logger','getCurrentUrl','BROWSERSTACK_TESTHUB_UUID','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','nPOfX','debug','thTestRunUuid','.\x20Error\x20:','KnSIV','sdCfd','now','percyCaptureMode','push','510148bIfDMG','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','__drivers','ENV_VAR','sessionNameSet__','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','startMonitoring','executeAsyncScript','1599048nGoZPa','10888992HqrReO','nzBht','join','session_','passed','protocol','bstackA11yShouldScan','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','then','nfBmy','stringify','XGlik','getGlobal','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','winstonLogger','initQuit','ZdtdA','BROWSERSTACK_TESTHUB_JWT','3104556OhgOvz','../../helpers/globals','NDmCt','ztJTK','Failed:\x20','ObservabilitySync:','PwKIa','MjyRx','length','Failed\x20to\x20store\x20session\x20name:\x20','VqgUw','http:','4vFkZLb','util'];a32_0x1bca=function(){return _0x37d70a;};return a32_0x1bca();}function a32_0xbdfc(_0x5e9208,_0x1e57e5){const _0x1bca15=a32_0x1bca();return a32_0xbdfc=function(_0xbdfc5c,_0x278bcd){_0xbdfc5c=_0xbdfc5c-0x129;let _0xab3314=_0x1bca15[_0xbdfc5c];return _0xab3314;},a32_0xbdfc(_0x5e9208,_0x1e57e5);}(function(_0x485c03,_0x5b1cce){const _0x541899=a32_0xbdfc,_0x1a6e31=_0x485c03();while(!![]){try{const _0x362a35=-parseInt(_0x541899(0x156))/0x1*(parseInt(_0x541899(0x17e))/0x2)+parseInt(_0x541899(0x132))/0x3*(parseInt(_0x541899(0x15e))/0x4)+-parseInt(_0x541899(0x135))/0x5*(parseInt(_0x541899(0x190))/0x6)+parseInt(_0x541899(0x182))/0x7*(parseInt(_0x541899(0x13b))/0x8)+-parseInt(_0x541899(0x15f))/0x9+parseInt(_0x541899(0x18c))/0xa+-parseInt(_0x541899(0x1a9))/0xb*(-parseInt(_0x541899(0x172))/0xc);if(_0x362a35===_0x5b1cce)break;else _0x1a6e31['push'](_0x1a6e31['shift']());}catch(_0x21039d){_0x1a6e31['push'](_0x1a6e31['shift']());}}}(a32_0x1bca,0xa5aae));const util=require(a32_0x2f0e10(0x17f)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x2f0e10(0x19e)),{percyAutoCapture}=require(a32_0x2f0e10(0x1a6)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require('../../helpers/performance-tester'),scripts=require(a32_0x2f0e10(0x198)),globals=require(a32_0x2f0e10(0x173)),logger=require(a32_0x2f0e10(0x149))[a32_0x2f0e10(0x16e)],{shouldProcessEventForTesthub}=require(a32_0x2f0e10(0x193)),testHubConstants=require(a32_0x2f0e10(0x181));exports['mochaHooks']={'beforeAll'(){const _0x45b81d=a32_0x2f0e10,_0x428242={'XmKXD':function(_0x1cf182,_0x2cf064,_0x59da5c,_0x14b9b7){return _0x1cf182(_0x2cf064,_0x59da5c,_0x14b9b7);},'AlksP':_0x45b81d(0x1a4),'HpjhU':_0x45b81d(0x18b),'nzBht':function(_0x10a568,_0x41fe32,_0x3f11c6){return _0x10a568(_0x41fe32,_0x3f11c6);},'ZqPLz':_0x45b81d(0x163),'OAmil':function(_0x2e84ff){return _0x2e84ff();}};PerformanceTester[_0x45b81d(0x15c)]();const _0xb6d092='browserstack internal helper hook';global['__error_messages__']=[],global[_0x45b81d(0x13d)]=![],global[_0x45b81d(0x131)]=async()=>{const _0x1b0100=_0x45b81d;let _0xfc988=![];try{await global[_0x1b0100(0x158)][0x0][_0x1b0100(0x162)],_0xfc988=!![],global[_0x1b0100(0x13d)]?await _0x428242[_0x1b0100(0x1a7)](markSessionStatus,global[_0x1b0100(0x158)][0x0],_0x428242[_0x1b0100(0x1a5)],global[_0x1b0100(0x18a)][_0x1b0100(0x161)](_0x428242[_0x1b0100(0x196)])):await _0x428242[_0x1b0100(0x160)](markSessionStatus,global['__drivers'][0x0],_0x428242['ZqPLz']);}catch(_0xf68213){logger['debug'](_0x1b0100(0x157)+_0xf68213);}global['__error_messages__']=[],global[_0x1b0100(0x13d)]=![];if(_0xfc988)try{try{_0x428242[_0x1b0100(0x19c)](shouldProcessEventForTesthub)&&(global[_0x1b0100(0x158)][0x0]&&await _0x428242[_0x1b0100(0x160)](sendPlatformDetails,global['__drivers'][0x0],this[_0x1b0100(0x186)]?this[_0x1b0100(0x186)][_0x1b0100(0x18d)]:null));}catch(_0x2cc973){logger[_0x1b0100(0x14e)](_0x1b0100(0x16d)+_0x2cc973);}await global[_0x1b0100(0x158)][0x0][_0x1b0100(0x16f)]();}catch(_0x4ecf18){logger[_0x1b0100(0x14e)](_0x1b0100(0x16c)+_0x4ecf18);}};},'beforeEach'(_0x52bb67){const _0x4aa1a7=a32_0x2f0e10,_0xa3a28c={'XGlik':function(_0x5e644d,_0x42a6b9){return _0x5e644d>_0x42a6b9;},'CTYTd':function(_0x280cc3,_0x263a88){return _0x280cc3>_0x263a88;},'climo':_0x4aa1a7(0x19d),'MTVNY':function(_0x42c640,_0x350275,_0x462610){return _0x42c640(_0x350275,_0x462610);},'PbZyz':_0x4aa1a7(0x165),'WwiWO':function(_0x1cd8e7){return _0x1cd8e7();},'SCFCY':_0x4aa1a7(0x1a8),'nfBmy':function(_0x1eef80,_0x368923){return _0x1eef80===_0x368923;},'uudxE':_0x4aa1a7(0x17d),'MjyRx':_0x4aa1a7(0x12a),'aROPz':_0x4aa1a7(0x166),'NDmCt':'Automate\x20test\x20case\x20execution\x20has\x20started.','ZdtdA':function(_0x20d0fd){return _0x20d0fd();}};new Promise(async _0x47d16d=>{const _0x3e6366=_0x4aa1a7,_0x3229da='browserstack internal helper hook';let _0x47168c=!![];try{_0xa3a28c[_0x3e6366(0x16a)](global[_0x3e6366(0x158)][_0x3e6366(0x17a)],0x1)&&(await global[_0x3e6366(0x131)](),global[_0x3e6366(0x158)][_0x3e6366(0x188)]()),_0xa3a28c['CTYTd'](global[_0x3e6366(0x158)][0x0]['quitCount_'],0x0)&&(_0x47168c=![],await global['driverCleanup']());}catch(_0x11a23a){logger['debug'](_0x3e6366(0x16c)+_0x11a23a);}try{Array[_0x3e6366(0x1a1)](global['__drivers'])&&global[_0x3e6366(0x158)][0x0]&&(global[_0x3e6366(0x158)][0x0][_0x3e6366(0x189)]=this['currentTest']['titlePath']()[_0x3e6366(0x161)](_0xa3a28c[_0x3e6366(0x13a)])),global['browserstackSessionName']=this[_0x3e6366(0x186)][_0x3e6366(0x19b)]()[_0x3e6366(0x161)](_0xa3a28c[_0x3e6366(0x13a)]);}catch(_0x5e0eb8){logger[_0x3e6366(0x14e)](_0x3e6366(0x17b)+_0x5e0eb8);}this[_0x3e6366(0x186)]['shouldScanTestForAccessibility']=_0xa3a28c[_0x3e6366(0x13e)](shouldScanTestForAccessibility,this[_0x3e6366(0x186)][_0x3e6366(0x19b)](),!![]),globals['setGlobal'](_0xa3a28c[_0x3e6366(0x1a0)],this[_0x3e6366(0x186)]['shouldScanTestForAccessibility']),this[_0x3e6366(0x186)][_0x3e6366(0x13f)]=!![];if(_0xa3a28c[_0x3e6366(0x129)](isAccessibilityAutomationSession)&&_0x47168c&&Array[_0x3e6366(0x1a1)](global[_0x3e6366(0x158)])&&_0xa3a28c['CTYTd'](global[_0x3e6366(0x158)][_0x3e6366(0x17a)],0x0)&&globals[_0x3e6366(0x16b)](_0xa3a28c['SCFCY']))try{const _0x9d9b2c=await global['__drivers'][0x0][_0x3e6366(0x162)];if(_0x9d9b2c){let _0x13d298=!![];const _0x206ab4=await global['__drivers'][0x0][_0x3e6366(0x14a)]();let _0x6bea87;try{_0x6bea87=new URL(_0x206ab4);}catch(_0x9234f5){_0x13d298=![];}_0x13d298=_0xa3a28c[_0x3e6366(0x168)](_0x6bea87[_0x3e6366(0x164)],_0xa3a28c[_0x3e6366(0x147)])||_0xa3a28c[_0x3e6366(0x168)](_0x6bea87[_0x3e6366(0x164)],_0xa3a28c[_0x3e6366(0x179)]),_0x13d298&&(this[_0x3e6366(0x186)]['shouldScanTestForAccessibility']&&logger[_0x3e6366(0x12d)](_0xa3a28c[_0x3e6366(0x13c)])),this['currentTest'][_0x3e6366(0x13f)]=this[_0x3e6366(0x186)][_0x3e6366(0x12b)],this[_0x3e6366(0x186)]['shouldScanTestForAccessibility']&&logger[_0x3e6366(0x12d)](_0xa3a28c[_0x3e6366(0x174)]);}}catch(_0x2ef3ef){logger[_0x3e6366(0x185)](_0x3e6366(0x14c)+util[_0x3e6366(0x148)](_0x2ef3ef));}_0xa3a28c[_0x3e6366(0x170)](_0x47d16d);})[_0x4aa1a7(0x167)](_0x52bb67);},'afterEach'(_0x229754){const _0x1937d3=a32_0x2f0e10,_0x231a10={'XAwPW':function(_0x2b2609,_0x39a2f3){return _0x2b2609>_0x39a2f3;},'YutVY':function(_0x20768a,_0x22539d){return _0x20768a===_0x22539d;},'UgnyA':_0x1937d3(0x12c),'MOlDC':'appium:app','verth':function(_0xe6274b,_0x3b1964,_0xfa66d2,_0x48bb72){return _0xe6274b(_0x3b1964,_0xfa66d2,_0x48bb72);},'gjEzf':_0x1937d3(0x19d),'OLZHt':function(_0x46defe,_0x23d443){return _0x46defe!==_0x23d443;},'sdCfd':_0x1937d3(0x163),'cQCph':function(_0x55868c,_0x1155c1,_0x96e328){return _0x55868c(_0x1155c1,_0x96e328);},'iYjZi':function(_0x4630be,_0x1325a7){return _0x4630be+_0x1325a7;},'VqgUw':_0x1937d3(0x176),'PlzZH':_0x1937d3(0x185),'KnSIV':_0x1937d3(0x144),'dNaOx':_0x1937d3(0x12d),'GzAfx':_0x1937d3(0x1a8),'ztJTK':_0x1937d3(0x165),'nPOfX':_0x1937d3(0x19f),'iYUjp':_0x1937d3(0x184),'PwKIa':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','nNWKT':function(_0x354dae){return _0x354dae();},'cEOUq':function(_0x3db9dc,_0x46856c,_0x5c30d8){return _0x3db9dc(_0x46856c,_0x5c30d8);},'MCJrx':function(_0x30ef5f,_0x29e8e8,_0x2f2321){return _0x30ef5f(_0x29e8e8,_0x2f2321);},'PHZvX':_0x1937d3(0x14e)},_0x2f467b='browserstack internal helper hook';this[_0x1937d3(0x145)](0xfde8);const _0x5da143=async(_0xe34da0,_0x374ee5)=>{const _0x11b3df=_0x1937d3;await global[_0x11b3df(0x158)][0x0][_0x11b3df(0x136)](_0x11b3df(0x15b)+_0xe34da0+_0x11b3df(0x130)+_0x374ee5+_0x11b3df(0x192));};new Promise(async _0x5c6ed8=>{const _0x1d3507=_0x1937d3;try{_0x231a10[_0x1d3507(0x137)](global['__drivers'][_0x1d3507(0x17a)],0x1)&&(await global[_0x1d3507(0x131)](),global[_0x1d3507(0x158)][_0x1d3507(0x188)](),global[_0x1d3507(0x18a)]=[],global[_0x1d3507(0x13d)]=![]);try{if(global['percy']&&_0x231a10['YutVY'](global[_0x1d3507(0x154)],_0x231a10[_0x1d3507(0x146)])&&global[_0x1d3507(0x158)][0x0]){const _0x3bdc99=_0x231a10[_0x1d3507(0x137)](global[_0x1d3507(0x191)][_0x1d3507(0x17a)],0x0)?!!global['capabilities'][0x0][_0x1d3507(0x1a2)]||!!global[_0x1d3507(0x191)][0x0][_0x231a10['MOlDC']]:![],_0x5a9456={};_0x5a9456[_0x1d3507(0x1a2)]=_0x3bdc99,await _0x231a10['verth'](percyAutoCapture,global[_0x1d3507(0x158)][0x0],_0x231a10[_0x1d3507(0x146)],_0x5a9456);}}catch(_0x3ce96a){logger[_0x1d3507(0x14e)](_0x1d3507(0x138)+_0x3ce96a);}!global['__skipSessionName']&&(await global[_0x1d3507(0x158)][0x0][_0x1d3507(0x136)](_0x1d3507(0x194)+JSON[_0x1d3507(0x169)](this[_0x1d3507(0x186)][_0x1d3507(0x19b)]()[_0x1d3507(0x161)](_0x231a10[_0x1d3507(0x187)]))+'}}'),global[_0x1d3507(0x158)][0x0][_0x1d3507(0x15a)]=!![]);const _0x491e6b=_0x231a10['OLZHt'](this[_0x1d3507(0x186)][_0x1d3507(0x133)],_0x231a10[_0x1d3507(0x152)]);_0x491e6b?(global[_0x1d3507(0x13d)]=!![],global['__error_messages__'][_0x1d3507(0x155)](this['currentTest'][_0x1d3507(0x1a3)][_0x1d3507(0x12f)]),await _0x231a10[_0x1d3507(0x18e)](_0x5da143,JSON[_0x1d3507(0x169)](_0x231a10[_0x1d3507(0x134)](_0x231a10[_0x1d3507(0x17c)],this['currentTest'][_0x1d3507(0x1a3)][_0x1d3507(0x12f)])),_0x231a10['PlzZH'])):await _0x231a10[_0x1d3507(0x18e)](_0x5da143,JSON[_0x1d3507(0x169)](_0x231a10[_0x1d3507(0x151)]),_0x231a10[_0x1d3507(0x139)]);}catch(_0x3c79be){logger[_0x1d3507(0x14e)](_0x1d3507(0x142)+_0x3c79be);}try{if(this[_0x1d3507(0x186)][_0x1d3507(0x13f)]&&globals[_0x1d3507(0x16b)](_0x231a10['GzAfx'])&&globals[_0x1d3507(0x16b)](_0x231a10[_0x1d3507(0x175)])){logger[_0x1d3507(0x12d)](_0x231a10[_0x1d3507(0x14d)]);const _0x2bd073={};_0x2bd073[_0x1d3507(0x14f)]=this['currentTest']['testAnalyticsId'],_0x2bd073['thBuildUuid']=process[_0x1d3507(0x143)][testHubConstants[_0x1d3507(0x159)][_0x1d3507(0x14b)]],_0x2bd073[_0x1d3507(0x18f)]=process[_0x1d3507(0x143)][testHubConstants[_0x1d3507(0x159)][_0x1d3507(0x171)]];const _0x345799=_0x2bd073;logger[_0x1d3507(0x14e)](_0x1d3507(0x197)+JSON[_0x1d3507(0x169)](_0x345799)),logger[_0x1d3507(0x14e)](_0x231a10['iYUjp']),logger['debug'](util[_0x1d3507(0x148)](await global[_0x1d3507(0x158)][0x0][_0x1d3507(0x15d)](scripts[_0x1d3507(0x183)],{'method':global['browserstackSessionName']}))),await global[_0x1d3507(0x158)][0x0][_0x1d3507(0x15d)](scripts[_0x1d3507(0x180)],_0x345799),logger['info'](_0x231a10[_0x1d3507(0x178)]);}}catch(_0x20546d){logger[_0x1d3507(0x185)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x1d3507(0x186)][_0x1d3507(0x19b)]()+_0x1d3507(0x150),_0x20546d);}try{try{if(_0x231a10[_0x1d3507(0x199)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x231a10['cEOUq'](sendPlatformDetails,global[_0x1d3507(0x158)][0x0],this[_0x1d3507(0x186)]?this[_0x1d3507(0x186)][_0x1d3507(0x18d)]:null);if(_0x231a10[_0x1d3507(0x199)](isBrowserstackInfra)){const _0x2cea8d=_0x1d3507(0x177)+Date[_0x1d3507(0x153)]();await _0x231a10[_0x1d3507(0x19a)](_0x5da143,JSON['stringify'](_0x2cea8d),_0x231a10['PHZvX']);}}}catch(_0x199e46){logger['debug'](_0x1d3507(0x12e)+_0x199e46);}_0x231a10[_0x1d3507(0x137)](global[_0x1d3507(0x158)][0x0][_0x1d3507(0x140)],0x0)&&await global[_0x1d3507(0x131)]();}catch(_0x5cf736){logger[_0x1d3507(0x14e)](_0x1d3507(0x16c)+_0x5cf736);}_0x231a10[_0x1d3507(0x199)](_0x5c6ed8);})['then'](()=>_0x229754());},'afterAll'(_0x40a48a){const _0x42293d={'yzStV':function(_0x2d7ff4){return _0x2d7ff4();}},_0x36f999='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x1f3fe9=>{const _0x3d871d=a32_0xbdfc;PerformanceTester[_0x3d871d(0x141)](),await global[_0x3d871d(0x131)](),_0x42293d[_0x3d871d(0x195)](_0x1f3fe9);})['then'](()=>_0x40a48a());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x44e14b=a33_0x4fd7;(function(_0x245c4d,_0x393a61){const _0x2b7577=a33_0x4fd7,_0x41563c=_0x245c4d();while(!![]){try{const _0x436299=parseInt(_0x2b7577(0x1fe))/0x1*(-parseInt(_0x2b7577(0x1e3))/0x2)+parseInt(_0x2b7577(0x1f7))/0x3+parseInt(_0x2b7577(0x20d))/0x4+parseInt(_0x2b7577(0x1d8))/0x5+-parseInt(_0x2b7577(0x1e0))/0x6+parseInt(_0x2b7577(0x1d5))/0x7+-parseInt(_0x2b7577(0x213))/0x8*(-parseInt(_0x2b7577(0x1d1))/0x9);if(_0x436299===_0x393a61)break;else _0x41563c['push'](_0x41563c['shift']());}catch(_0x120aab){_0x41563c['push'](_0x41563c['shift']());}}}(a33_0x3edf,0xd582c));const fs=require('fs'),path=require(a33_0x44e14b(0x1d3)),{spawn}=require(a33_0x44e14b(0x1ff)),logger=require(a33_0x44e14b(0x20a))[a33_0x44e14b(0x201)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0x44e14b(0x1f3)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x4d144a,_0x297298)=>{const _0x3443d9=a33_0x44e14b,_0x5ce28c={'oNfhI':'nightwatch.conf.js','evDZZ':_0x3443d9(0x20e),'XSHbb':function(_0x3e4f14,_0x45631e){return _0x3e4f14(_0x45631e);},'TajAf':_0x3443d9(0x210)};let _0x4ad108=null,_0x1da8a7={};const _0x387cec=_0x297298[_0x3443d9(0x1eb)](_0x568b2e=>_0x568b2e==='--config');if(!helper[_0x3443d9(0x1d4)](_0x4d144a[_0x3443d9(0x1e2)])&&fs[_0x3443d9(0x205)](path[_0x3443d9(0x1f0)](process[_0x3443d9(0x214)](),_0x4d144a[_0x3443d9(0x1e2)])))_0x4ad108=path[_0x3443d9(0x1f0)](process['cwd'](),_0x4d144a['config']),_0x297298['splice'](_0x387cec,0x2);else{if(fs[_0x3443d9(0x205)](path[_0x3443d9(0x1f0)](process[_0x3443d9(0x214)](),_0x5ce28c[_0x3443d9(0x1de)])))_0x4ad108=path[_0x3443d9(0x1f0)](process['cwd'](),_0x5ce28c[_0x3443d9(0x1de)]);else fs['existsSync'](path[_0x3443d9(0x1f0)](process[_0x3443d9(0x214)](),_0x5ce28c[_0x3443d9(0x1ec)]))&&(_0x4ad108=path[_0x3443d9(0x1f0)](process[_0x3443d9(0x214)](),_0x5ce28c['evDZZ']));}return _0x4ad108?(logger[_0x3443d9(0x219)](_0x3443d9(0x1ef)+_0x4ad108),_0x1da8a7=_0x5ce28c[_0x3443d9(0x1ee)](require,_0x4ad108)):logger[_0x3443d9(0x219)](_0x5ce28c['TajAf']),_0x1da8a7;},removeExistingEnvs=_0x1f071d=>{const _0x43a2c4=a33_0x44e14b,_0x2e6beb={};_0x2e6beb[_0x43a2c4(0x1f4)]=function(_0x37ec08,_0x5aed39){return _0x37ec08>_0x5aed39;};const _0x3ce9ad=_0x2e6beb;let _0x530d86=_0x1f071d['findIndex'](_0x8c1f78=>_0x8c1f78==='--env');_0x3ce9ad[_0x43a2c4(0x1f4)](_0x530d86,-0x1)&&_0x1f071d['splice'](_0x530d86,0x2),_0x530d86=_0x1f071d[_0x43a2c4(0x1eb)](_0x420f86=>_0x420f86==='-e'),_0x3ce9ad['TEALq'](_0x530d86,-0x1)&&_0x1f071d[_0x43a2c4(0x218)](_0x530d86,0x2);};function a33_0x4fd7(_0x3bf83b,_0x37dd6b){const _0x3edf01=a33_0x3edf();return a33_0x4fd7=function(_0x4fd7cb,_0x27ac84){_0x4fd7cb=_0x4fd7cb-0x1d1;let _0x204936=_0x3edf01[_0x4fd7cb];return _0x204936;},a33_0x4fd7(_0x3bf83b,_0x37dd6b);}function run(_0x13e313,_0xe8f2a4){const _0x1b6e9c=a33_0x44e14b,_0x470e05={'aefxD':_0x1b6e9c(0x207),'INxAJ':function(_0x32c183,_0x377bd6){return _0x32c183+_0x377bd6;},'ZJhFs':_0x1b6e9c(0x21c),'IUsmS':function(_0x10f655,_0x580b9a,_0x593854){return _0x10f655(_0x580b9a,_0x593854);},'lCEzA':_0x1b6e9c(0x21b),'eHktU':_0x1b6e9c(0x1e9),'yTVLx':function(_0x146bb1,_0x4b7ec7){return _0x146bb1===_0x4b7ec7;},'oHzXh':_0x1b6e9c(0x204),'UEkyt':function(_0x42af62,_0x10790f){return _0x42af62(_0x10790f);},'hOAxw':function(_0x30bff7,_0x38b5d1,_0x1ea144,_0x2e4585){return _0x30bff7(_0x38b5d1,_0x1ea144,_0x2e4585);},'vYdoj':_0x1b6e9c(0x1fc),'DIIej':_0x1b6e9c(0x202),'enOKw':_0x1b6e9c(0x1e1),'sUoNL':'inherit','qamkR':_0x1b6e9c(0x1dd)},_0x2d14f7=new BrowserStackSetup(_0x13e313);if(!_0x2d14f7[_0x1b6e9c(0x1e2)])return;const _0x3b544d=_0x470e05[_0x1b6e9c(0x200)](getUserNightwatchConfigs,_0x13e313,_0xe8f2a4),_0xa2a4db={};_0xa2a4db[_0x1b6e9c(0x206)]=![];const _0x1e04c1={};_0x1e04c1[_0x1b6e9c(0x216)]=_0x470e05['lCEzA'],_0x1e04c1[_0x1b6e9c(0x20b)]=0x1bb;const _0xf93741={};_0xf93741['webdriver']=_0xa2a4db,_0xf93741[_0x1b6e9c(0x212)]=_0x1e04c1;const _0x541a23=_0xf93741;logger[_0x1b6e9c(0x219)](_0x470e05[_0x1b6e9c(0x1f2)]);const _0x346ca3={..._0x3b544d},_0x218ba8=_0x346ca3,_0x23156a=helper['useW3C'](_0x2d14f7[_0x1b6e9c(0x1e2)]),_0x479142=[];_0x2d14f7[_0x1b6e9c(0x1e2)][_0x1b6e9c(0x217)][_0x1b6e9c(0x1ed)]((_0x5ad24f,_0x12a47c)=>{const _0x5e7419=_0x1b6e9c;_0x23156a?_0x479142[_0x5e7419(0x1f9)](helper[_0x5e7419(0x1d9)](_0x2d14f7[_0x5e7419(0x1e2)],_0x470e05[_0x5e7419(0x1f6)],_0x12a47c)):_0x479142[_0x5e7419(0x1f9)](helper[_0x5e7419(0x1f1)](_0x2d14f7[_0x5e7419(0x1e2)],_0x470e05[_0x5e7419(0x1f6)],_0x12a47c));});const _0x55bfc6={},_0x13832d=[];_0x13e313[_0x1b6e9c(0x21a)]=_0x13e313[_0x1b6e9c(0x21a)]||_0x13e313['e'];const _0x16b7d7=_0x13e313['env']?_0x13e313[_0x1b6e9c(0x21a)][_0x1b6e9c(0x1f5)]()[_0x1b6e9c(0x1e5)](',')['map'](_0x31d66b=>_0x31d66b[_0x1b6e9c(0x1f5)]())[_0x1b6e9c(0x1fa)](_0x17cb14=>_0x17cb14!==''):[''];_0x470e05[_0x1b6e9c(0x1db)](_0x16b7d7[_0x1b6e9c(0x1df)],0x0)&&_0x16b7d7[_0x1b6e9c(0x1f9)]('');_0x16b7d7['forEach'](_0x2c5766=>{const _0x3be30d=_0x1b6e9c;_0x479142[_0x3be30d(0x1ed)](_0x559127=>{const _0x324605=_0x3be30d;let _0x1d1aae=_0x470e05[_0x324605(0x20c)](helper['getPlatformName'](_0x559127,'_'),'_'+Date[_0x324605(0x1d7)]());_0x2c5766&&(_0x1d1aae+='_'+_0x2c5766);if(_0x2c5766&&(!_0x3b544d[_0x470e05['ZJhFs']]||!_0x3b544d[_0x470e05[_0x324605(0x208)]][_0x2c5766]))return;const _0x4e0fd3={..._0x541a23};_0x4e0fd3[_0x324605(0x1d2)]=_0x559127;const _0x3b910d=_0x4e0fd3;_0x55bfc6[_0x1d1aae]=_0x2c5766?helper[_0x324605(0x209)](_0x3b544d[_0x470e05[_0x324605(0x208)]][_0x2c5766],_0x3b910d):_0x3b910d,_0x13832d[_0x324605(0x1f9)](_0x1d1aae);});});!_0x218ba8[_0x1b6e9c(0x21c)]&&(_0x218ba8[_0x1b6e9c(0x21c)]={});_0x218ba8['test_settings']={..._0x218ba8[_0x1b6e9c(0x21c)],..._0x55bfc6};const _0x3a7d13=path[_0x1b6e9c(0x1f0)](__dirname,_0x470e05[_0x1b6e9c(0x1e6)]);fs[_0x1b6e9c(0x1d6)](_0x3a7d13,JSON[_0x1b6e9c(0x203)](_0x218ba8)),_0x470e05['UEkyt'](removeExistingEnvs,_0xe8f2a4);const _0x35902d=_0x470e05[_0x1b6e9c(0x211)](spawn,/^win/['test'](process[_0x1b6e9c(0x1fb)])?_0x470e05[_0x1b6e9c(0x215)]:_0x470e05['aefxD'],[_0x470e05[_0x1b6e9c(0x1dc)],_0x3a7d13,..._0xe8f2a4[_0x1b6e9c(0x1da)](0x1),_0x470e05[_0x1b6e9c(0x1fd)],_0x13832d[_0x1b6e9c(0x1f0)](',')],{'stdio':_0x470e05[_0x1b6e9c(0x1e7)]});_0x35902d['on'](_0x470e05[_0x1b6e9c(0x1e8)],async _0x4dba82=>{const _0x39c3f0=_0x1b6e9c;logger[_0x39c3f0(0x1e4)]('child\x20process\x20exited\x20with\x20code\x20'+_0x4dba82),logger[_0x39c3f0(0x219)](_0x39c3f0(0x20f)+_0x3a7d13),fs[_0x39c3f0(0x1ea)](_0x3a7d13);});}function a33_0x3edf(){const _0x177da4=['child_process','IUsmS','winstonLogger','--config','stringify','nightwatch-browserstack.json','existsSync','start_process','nightwatch','ZJhFs','mergeDeep','../../helpers/logger','port','INxAJ','1076968zDfKjD','nightwatch.json','Deleting\x20','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','hOAxw','selenium','8zkpaaV','cwd','vYdoj','host','platforms','splice','info','env','hub.browserstack.com','test_settings','2910870jhFHdz','desiredCapabilities','path','isUndefined','3637550hbFLvn','writeFileSync','now','7407270VGFcGb','modifyBrowserStackW3CCaps','slice','yTVLx','DIIej','close','oNfhI','length','8316126itqKOX','--env','config','55030ZeBbgl','debug','split','oHzXh','sUoNL','qamkR','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','unlinkSync','findIndex','evDZZ','forEach','XSHbb','Getting\x20your\x20nightwatch\x20configs\x20from\x20','join','modifyBrowserStackCaps','eHktU','../../helpers/helper','TEALq','trim','aefxD','3457785WWXvtS','exports','push','filter','platform','nightwatch.cmd','enOKw','54UJLYdD'];a33_0x3edf=function(){return _0x177da4;};return a33_0x3edf();}module[a33_0x44e14b(0x1f8)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x4d7a24=a34_0x48ed;(function(_0x47d145,_0x20a744){const _0x4763f3=a34_0x48ed,_0x2c962a=_0x47d145();while(!![]){try{const _0x523886=parseInt(_0x4763f3(0x19f))/0x1+parseInt(_0x4763f3(0x17f))/0x2+-parseInt(_0x4763f3(0x14a))/0x3+parseInt(_0x4763f3(0x1a8))/0x4+-parseInt(_0x4763f3(0x165))/0x5+parseInt(_0x4763f3(0x155))/0x6*(parseInt(_0x4763f3(0x153))/0x7)+-parseInt(_0x4763f3(0x172))/0x8;if(_0x523886===_0x20a744)break;else _0x2c962a['push'](_0x2c962a['shift']());}catch(_0x5998f2){_0x2c962a['push'](_0x2c962a['shift']());}}}(a34_0x4498,0xbd17d));function a34_0x4498(){const _0x25c410=['JUUIg','currentTest','No\x20summaryResults\x20found.','replace','uGThi','Rcslg','debug','accessibilityOptions.includeIssueType.needsReview','deviceName','testInfo','project','accessibilityOptions.authToken','Playwright','iLEve','../../helpers/accessibility-automation/helper','PdbbB','WebDriver','UinOR','IIUKI','latest','1457860XAZFhr','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','bstackSdkArgs','playwright-chromium','BdThs','fMWqd','method','BS_A11Y_JWT','getAccessibilityResultsSummary','1704248npkqsP','browserStackExecuteDriver','wcagVersion','performScan','VIWJB','connectOptions','No\x20accessibility\x20results\x20were\x20found.','chrome','QrmWy','WefQR','HaGan','pSZKy','1215687doyIbZ','GjAXs','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','use','bestPractice','browser_version','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','mkFGQ','bDIZt','224omAnFJ','processAccessibilityCaps','228384LEPldY','qqAiz','mPlJr','scannerProcessingTimeout','env','accessibilityOptions','../../helpers/logger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','parse','XNzkh','browserstack.accessibility','kejzN','getAccessibilityResults','evaluate','accessibilityOptions.wcagVersion','browser','697215ymwlvP','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','accessibilityOptions.scannerProcessingTimeout','(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','browserName','util','yScRN','scannerVersion','executeAsyncScript','BFsbT','hwgvd','dgkJq','YWYmJ','15473496bpPSDf','RdUIR','warn','uMLFr','name','ovHIL','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','includeIssueType','eEodx','accessibilityPlatform','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','format','302828AbIJNO','browserStackEvaluate','lmSGQ','rDCMj','constructor','(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','wsEndpoint','dblJt','hCBlq','accessibilityOptions.scannerVersion','VCBeX','bzcTk'];a34_0x4498=function(){return _0x25c410;};return a34_0x4498();}function a34_0x48ed(_0x4ed093,_0x2992d2){const _0x449842=a34_0x4498();return a34_0x48ed=function(_0x48ed5b,_0x420ef8){_0x48ed5b=_0x48ed5b-0x148;let _0x1ed19d=_0x449842[_0x48ed5b];return _0x1ed19d;},a34_0x48ed(_0x4ed093,_0x2992d2);}const util=require(a34_0x4d7a24(0x16a)),logger=require(a34_0x4d7a24(0x15b))['winstonLogger'],{isAccessibilityAutomationSession}=require(a34_0x4d7a24(0x199)),{isUndefined}=require('../../helpers/helper'),scripts=require('../../helpers/accessibility-automation/scripts');exports[a34_0x4d7a24(0x180)]=async(_0x4bf0d5,_0x55e40d,_0x165c03={})=>{const _0x5dc1f6=a34_0x4d7a24,_0x4dff38={};_0x4dff38[_0x5dc1f6(0x18f)]=_0x5dc1f6(0x1a1);const _0x80ae9a=_0x4dff38;return await _0x4bf0d5[_0x5dc1f6(0x162)](_0x5dc1f6(0x184)+_0x55e40d[_0x5dc1f6(0x18e)](/arguments/g,_0x80ae9a['uGThi'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0x165c03)+')');},exports[a34_0x4d7a24(0x1a9)]=async(_0x28c832,_0x29985f,_0x19251c={})=>{const _0x36421f=a34_0x4d7a24,_0x11f419={};_0x11f419[_0x36421f(0x152)]=function(_0x41949b,_0x1b7847){return _0x41949b===_0x1b7847;},_0x11f419[_0x36421f(0x16e)]=_0x36421f(0x19b),_0x11f419['piNKe']=_0x36421f(0x197),_0x11f419[_0x36421f(0x1b0)]=_0x36421f(0x1a1);const _0x2eaeea=_0x11f419;if(_0x2eaeea[_0x36421f(0x152)](_0x28c832['constructor'][_0x36421f(0x176)],_0x2eaeea[_0x36421f(0x16e)]))return await _0x28c832[_0x36421f(0x16d)](_0x29985f,_0x19251c);else{if(_0x2eaeea[_0x36421f(0x152)](_0x28c832[_0x36421f(0x183)][_0x36421f(0x176)],_0x2eaeea['piNKe']))return await _0x28c832['executeScript'](_0x36421f(0x168)+_0x29985f[_0x36421f(0x18e)](/arguments/g,_0x2eaeea['QrmWy'])+_0x36421f(0x166)+JSON['stringify'](_0x19251c)+')');}},exports['setAccessibilityCapabilities']=async _0xb383be=>{const _0x127f01=a34_0x4d7a24,_0x4425de={};_0x4425de[_0x127f01(0x173)]=_0x127f01(0x163),_0x4425de[_0x127f01(0x18a)]=_0x127f01(0x167),_0x4425de[_0x127f01(0x19d)]='accessibilityOptions.includeIssueType.bestPractice',_0x4425de['mkFGQ']=_0x127f01(0x192),_0x4425de[_0x127f01(0x1b1)]=_0x127f01(0x196),_0x4425de[_0x127f01(0x16b)]=_0x127f01(0x188);const _0x157a50=_0x4425de;_0xb383be[_0x127f01(0x15a)]&&(_0xb383be['accessibilityOptions'][_0x127f01(0x1aa)]&&(_0xb383be[_0x157a50[_0x127f01(0x173)]]=_0xb383be['accessibilityOptions'][_0x127f01(0x1aa)]),_0xb383be[_0x127f01(0x15a)][_0x127f01(0x158)]&&(_0xb383be[_0x157a50[_0x127f01(0x18a)]]=_0xb383be['accessibilityOptions'][_0x127f01(0x158)]),_0xb383be['accessibilityOptions'][_0x127f01(0x179)]&&(_0xb383be[_0x157a50[_0x127f01(0x19d)]]=_0xb383be[_0x127f01(0x15a)]['includeIssueType'][_0x127f01(0x14e)],_0xb383be[_0x157a50[_0x127f01(0x151)]]=_0xb383be[_0x127f01(0x15a)][_0x127f01(0x179)]['needsReview']));const _0x45afe7=JSON[_0x127f01(0x15d)](process[_0x127f01(0x159)][_0x127f01(0x150)])[_0x127f01(0x16c)];_0xb383be[_0x157a50[_0x127f01(0x1b1)]]=process[_0x127f01(0x159)][_0x127f01(0x1a6)],_0xb383be[_0x157a50[_0x127f01(0x16b)]]=_0x45afe7,delete _0xb383be[_0x127f01(0x15a)];},exports[a34_0x4d7a24(0x161)]=async _0x39d3fd=>{const _0x255796=a34_0x4d7a24,_0x5bd861={};_0x5bd861[_0x255796(0x189)]=_0x255796(0x1ae),_0x5bd861[_0x255796(0x177)]=_0x255796(0x17d);const _0x5964d3=_0x5bd861;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x39d3fd,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x39d3fd,scripts.getResults);return res;}catch{return logger['error'](_0x5964d3[_0x255796(0x189)]),[];}else return logger[_0x255796(0x174)](_0x5964d3[_0x255796(0x177)]),[];},exports[a34_0x4d7a24(0x1ab)]=async(_0x17aba1,_0x3453d3='')=>{const _0x2b3cb1=a34_0x4d7a24;if(global[_0x2b3cb1(0x17b)]){const _0x1fc95a={};return _0x1fc95a[_0x2b3cb1(0x1a5)]=_0x3453d3,await exports[_0x2b3cb1(0x180)](_0x17aba1,scripts[_0x2b3cb1(0x1ab)],_0x1fc95a);}},exports[a34_0x4d7a24(0x1a7)]=async _0x24ede3=>{const _0x5dc430=a34_0x4d7a24,_0xd8b4c7={};_0xd8b4c7['dgkJq']=_0x5dc430(0x18d),_0xd8b4c7[_0x5dc430(0x182)]=_0x5dc430(0x1a0);const _0x167804=_0xd8b4c7;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x24ede3,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x24ede3,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x5dc430(0x191)](_0x167804[_0x5dc430(0x170)]),{};}else return logger[_0x5dc430(0x174)](_0x167804['rDCMj']),{};},exports['platformValidation']=async _0x39cc8a=>{const _0x10e92=a34_0x4d7a24,_0x35c3d2={'UinOR':function(_0x39187e,_0x383fc6){return _0x39187e!==_0x383fc6;},'VIWJB':_0x10e92(0x17c),'eEodx':function(_0x42b933,_0x244229){return _0x42b933===_0x244229;},'uMLFr':_0x10e92(0x1af),'hCBlq':function(_0x19bf5c,_0x2cedf0){return _0x19bf5c===_0x2cedf0;},'wLtNl':_0x10e92(0x1a2),'pURnx':_0x10e92(0x178),'BdThs':function(_0x54f94c,_0x5841bf){return _0x54f94c(_0x5841bf);},'iLEve':function(_0x6058bd,_0x4a0d70){return _0x6058bd===_0x4a0d70;},'XNzkh':_0x10e92(0x19e),'mPlJr':function(_0x36062d,_0x1caa39){return _0x36062d>_0x1caa39;},'pSZKy':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x35c3d2[_0x10e92(0x19c)](_0x39cc8a['deviceName'],''))return logger['warn'](_0x35c3d2[_0x10e92(0x1ac)]),![];const _0x5f3e40=_0x39cc8a[_0x10e92(0x164)];if(!(_0x35c3d2[_0x10e92(0x17a)](_0x5f3e40,_0x35c3d2[_0x10e92(0x175)])||_0x35c3d2[_0x10e92(0x187)](_0x5f3e40,_0x35c3d2['wLtNl'])))return logger[_0x10e92(0x174)](_0x35c3d2['pURnx']),![];const _0x41d5b=_0x35c3d2[_0x10e92(0x1a3)](parseInt,_0x39cc8a[_0x10e92(0x14f)]);if(!(_0x35c3d2[_0x10e92(0x198)](_0x41d5b,_0x35c3d2[_0x10e92(0x15e)])||_0x35c3d2[_0x10e92(0x157)](_0x41d5b,0x5e)))return logger[_0x10e92(0x174)](_0x35c3d2[_0x10e92(0x149)]),![];}catch(_0x2ae535){logger[_0x10e92(0x191)](_0x10e92(0x14c)+util[_0x10e92(0x17e)](_0x2ae535));}return!![];},exports[a34_0x4d7a24(0x154)]=(_0x529d3a,_0x56bc7a,_0x15884d)=>{const _0x146656=a34_0x4d7a24,_0x3b6a19={'HaGan':function(_0x1a7dbf){return _0x1a7dbf();},'Rkokh':_0x146656(0x15f),'qqAiz':function(_0x3acf66,_0x13eba6){return _0x3acf66===_0x13eba6;},'hwgvd':'chrome','xPbwm':function(_0x2acefe,_0x465923){return _0x2acefe===_0x465923;},'JUUIg':_0x146656(0x1a2),'lmSGQ':_0x146656(0x178),'ADPnG':function(_0x17cb2c,_0x24f3b3){return _0x17cb2c===_0x24f3b3;},'Rcslg':_0x146656(0x19e),'YWYmJ':function(_0x172016,_0x25f586){return _0x172016>_0x25f586;},'fMWqd':_0x146656(0x15c),'GjAXs':function(_0x19802d,_0x1153a3){return _0x19802d(_0x1153a3);},'kejzN':_0x146656(0x17c),'dblJt':function(_0x44f52e,_0x1c3202){return _0x44f52e+_0x1c3202;},'PdbbB':function(_0x400dde,_0x7b90fa){return _0x400dde(_0x7b90fa);}};try{if(_0x3b6a19[_0x146656(0x148)](isAccessibilityAutomationSession)){global[_0x146656(0x17b)]=!![];!_0x529d3a[_0x3b6a19['Rkokh']]&&(global[_0x146656(0x17b)]=![]);!(_0x3b6a19[_0x146656(0x156)](_0x529d3a['browserName'],_0x3b6a19[_0x146656(0x16f)])||_0x3b6a19['xPbwm'](_0x529d3a[_0x146656(0x169)],_0x3b6a19[_0x146656(0x18b)]))&&(logger['warn'](_0x3b6a19[_0x146656(0x181)]),global[_0x146656(0x17b)]=![]);!(_0x3b6a19['ADPnG'](_0x529d3a[_0x146656(0x14f)],_0x3b6a19[_0x146656(0x190)])||_0x3b6a19[_0x146656(0x171)](_0x529d3a[_0x146656(0x14f)],0x5e))&&(logger[_0x146656(0x174)](_0x3b6a19[_0x146656(0x1a4)]),global[_0x146656(0x17b)]=![]);!_0x3b6a19[_0x146656(0x14b)](isUndefined,_0x529d3a[_0x146656(0x193)])&&(logger[_0x146656(0x174)](_0x3b6a19[_0x146656(0x160)]),global[_0x146656(0x17b)]=![]);if(!global['accessibilityPlatform']){_0x529d3a[_0x3b6a19['Rkokh']]=![];const _0x257b2a=_0x3b6a19[_0x146656(0x186)](_0x56bc7a,_0x3b6a19[_0x146656(0x19a)](encodeURIComponent,JSON['stringify'](_0x529d3a)));_0x15884d&&(_0x15884d[_0x146656(0x18c)][_0x146656(0x194)][_0x146656(0x195)]['use'][_0x146656(0x1ad)][_0x146656(0x185)]=_0x257b2a,_0x15884d['workerInfo']['project'][_0x146656(0x14d)][_0x146656(0x1ad)][_0x146656(0x185)]=_0x257b2a);}}}catch(_0x2cd565){logger[_0x146656(0x191)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util['format'](_0x2cd565));}};
|
|
1
|
+
const a34_0x40c274=a34_0x1586;(function(_0x3bdea4,_0x5a1e30){const _0x2dbac9=a34_0x1586,_0x3bbd19=_0x3bdea4();while(!![]){try{const _0x368514=parseInt(_0x2dbac9(0x75))/0x1+-parseInt(_0x2dbac9(0x85))/0x2+parseInt(_0x2dbac9(0x6e))/0x3*(parseInt(_0x2dbac9(0xbb))/0x4)+-parseInt(_0x2dbac9(0x8f))/0x5*(-parseInt(_0x2dbac9(0x86))/0x6)+-parseInt(_0x2dbac9(0x6f))/0x7*(parseInt(_0x2dbac9(0x8d))/0x8)+parseInt(_0x2dbac9(0x6d))/0x9+parseInt(_0x2dbac9(0x84))/0xa*(parseInt(_0x2dbac9(0xa5))/0xb);if(_0x368514===_0x5a1e30)break;else _0x3bbd19['push'](_0x3bbd19['shift']());}catch(_0x21f01e){_0x3bbd19['push'](_0x3bbd19['shift']());}}}(a34_0x2b32,0x2bce5));const util=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a34_0x40c274(0x6c)),scripts=require('../../helpers/accessibility-automation/scripts');exports[a34_0x40c274(0x7c)]=async(_0x4ba149,_0xd44456,_0x38a43f={})=>{const _0x1c7d6e=a34_0x40c274,_0xd4474f={};_0xd4474f['hAJaR']='bstackSdkArgs';const _0x4a5ceb=_0xd4474f;return await _0x4ba149[_0x1c7d6e(0xc6)]('(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'+_0xd44456[_0x1c7d6e(0xc0)](/arguments/g,_0x4a5ceb[_0x1c7d6e(0x92)])+_0x1c7d6e(0x96)+JSON[_0x1c7d6e(0xbe)](_0x38a43f)+')');},exports[a34_0x40c274(0xb3)]=async(_0xb5b998,_0x42df22,_0x4dafa4={})=>{const _0x521364=a34_0x40c274,_0xcf70a8={};_0xcf70a8[_0x521364(0xb0)]=function(_0x4b437b,_0x1d89d2){return _0x4b437b===_0x1d89d2;},_0xcf70a8[_0x521364(0x66)]=_0x521364(0x9d),_0xcf70a8[_0x521364(0x87)]=function(_0xd1e256,_0xcd3dd6){return _0xd1e256===_0xcd3dd6;},_0xcf70a8[_0x521364(0xab)]=_0x521364(0x79),_0xcf70a8[_0x521364(0x9c)]=_0x521364(0xc3);const _0x2a89c1=_0xcf70a8;if(_0x2a89c1[_0x521364(0xb0)](_0xb5b998[_0x521364(0xb8)][_0x521364(0xa9)],_0x2a89c1[_0x521364(0x66)]))return await _0xb5b998[_0x521364(0x73)](_0x42df22,_0x4dafa4);else{if(_0x2a89c1[_0x521364(0x87)](_0xb5b998[_0x521364(0xb8)][_0x521364(0xa9)],_0x2a89c1['TMucT']))return await _0xb5b998[_0x521364(0x72)](_0x521364(0xa4)+_0x42df22[_0x521364(0xc0)](/arguments/g,_0x2a89c1['CaVFp'])+_0x521364(0xa7)+JSON[_0x521364(0xbe)](_0x4dafa4)+')');}},exports[a34_0x40c274(0xb6)]=async _0x2cc19f=>{const _0x37d1fa=a34_0x40c274,_0x5d277e={};_0x5d277e[_0x37d1fa(0x80)]='accessibilityOptions.wcagVersion',_0x5d277e[_0x37d1fa(0xc5)]='accessibilityOptions.scannerProcessingTimeout',_0x5d277e['njsVR']=_0x37d1fa(0xb7),_0x5d277e[_0x37d1fa(0xa2)]=_0x37d1fa(0xac),_0x5d277e[_0x37d1fa(0xb5)]=_0x37d1fa(0xa8),_0x5d277e[_0x37d1fa(0xc8)]=_0x37d1fa(0xbc);const _0xf77b6b=_0x5d277e;_0x2cc19f[_0x37d1fa(0xb4)]&&(_0x2cc19f[_0x37d1fa(0xb4)][_0x37d1fa(0x91)]&&(_0x2cc19f[_0xf77b6b[_0x37d1fa(0x80)]]=_0x2cc19f['accessibilityOptions'][_0x37d1fa(0x91)]),_0x2cc19f['accessibilityOptions'][_0x37d1fa(0x97)]&&(_0x2cc19f[_0xf77b6b[_0x37d1fa(0xc5)]]=_0x2cc19f[_0x37d1fa(0xb4)]['scannerProcessingTimeout']),_0x2cc19f[_0x37d1fa(0xb4)][_0x37d1fa(0x99)]&&(_0x2cc19f[_0xf77b6b['njsVR']]=_0x2cc19f[_0x37d1fa(0xb4)]['includeIssueType'][_0x37d1fa(0x7f)],_0x2cc19f[_0xf77b6b[_0x37d1fa(0xa2)]]=_0x2cc19f[_0x37d1fa(0xb4)][_0x37d1fa(0x99)]['needsReview']));const _0x1b41cd=JSON[_0x37d1fa(0xa0)](process[_0x37d1fa(0xb1)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x37d1fa(0x67)];_0x2cc19f[_0xf77b6b[_0x37d1fa(0xb5)]]=process[_0x37d1fa(0xb1)][_0x37d1fa(0x7e)],_0x2cc19f[_0xf77b6b[_0x37d1fa(0xc8)]]=_0x1b41cd,delete _0x2cc19f[_0x37d1fa(0xb4)];},exports[a34_0x40c274(0xa6)]=async _0x466eef=>{const _0x2ecc0a=a34_0x40c274,_0xaaf81e={};_0xaaf81e[_0x2ecc0a(0x8b)]='No\x20accessibility\x20results\x20were\x20found.',_0xaaf81e[_0x2ecc0a(0xbd)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x559788=_0xaaf81e;if(global[_0x2ecc0a(0x83)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x466eef,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x466eef,scripts.getResults);return res;}catch{return logger['error'](_0x559788[_0x2ecc0a(0x8b)]),[];}else return logger[_0x2ecc0a(0xa1)](_0x559788['AHNzx']),[];},exports['performScan']=async(_0x4aea82,_0x31c8d3='')=>{const _0x3d93c8=a34_0x40c274;if(global[_0x3d93c8(0x83)]){const _0x29838d={};return _0x29838d[_0x3d93c8(0xad)]=_0x31c8d3,await exports['browserStackEvaluate'](_0x4aea82,scripts[_0x3d93c8(0xc2)],_0x29838d);}},exports[a34_0x40c274(0x98)]=async _0x19aa67=>{const _0x1c83f4=a34_0x40c274,_0x10e18b={};_0x10e18b['rEgEl']=_0x1c83f4(0x9a),_0x10e18b['lvjdq']=_0x1c83f4(0xc1);const _0x47d4c9=_0x10e18b;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x19aa67,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x19aa67,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x1c83f4(0xa3)](_0x47d4c9[_0x1c83f4(0x6b)]),{};}else return logger['warn'](_0x47d4c9['lvjdq']),{};},exports['platformValidation']=async _0x524256=>{const _0x3e05d0=a34_0x40c274,_0x3147fd={'pkhNB':function(_0x18a128,_0xec9374){return _0x18a128!==_0xec9374;},'mjpEn':_0x3e05d0(0x70),'jBYWt':function(_0x55d3ad,_0x493d9a){return _0x55d3ad===_0x493d9a;},'LYCko':_0x3e05d0(0x7b),'rPGsL':function(_0x363b49,_0x12f0f4){return _0x363b49===_0x12f0f4;},'xGIvs':_0x3e05d0(0x76),'AIHXw':_0x3e05d0(0xc4),'rwoXC':function(_0x58b67b,_0x2f1434){return _0x58b67b(_0x2f1434);},'GhUgo':_0x3e05d0(0x71),'raMtl':function(_0x3afd1c,_0xdf2632){return _0x3afd1c>_0xdf2632;},'ODMWG':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x3147fd['pkhNB'](_0x524256[_0x3e05d0(0xaf)],''))return logger['warn'](_0x3147fd[_0x3e05d0(0x9f)]),![];const _0x1c4beb=_0x524256['browser'];if(!(_0x3147fd[_0x3e05d0(0x78)](_0x1c4beb,_0x3147fd['LYCko'])||_0x3147fd[_0x3e05d0(0x6a)](_0x1c4beb,_0x3147fd['xGIvs'])))return logger[_0x3e05d0(0xa1)](_0x3147fd[_0x3e05d0(0xae)]),![];const _0x4eba17=_0x3147fd[_0x3e05d0(0x9e)](parseInt,_0x524256[_0x3e05d0(0x8c)]);if(!(_0x3147fd[_0x3e05d0(0x78)](_0x4eba17,_0x3147fd[_0x3e05d0(0x90)])||_0x3147fd[_0x3e05d0(0x89)](_0x4eba17,0x5e)))return logger[_0x3e05d0(0xa1)](_0x3147fd[_0x3e05d0(0xb2)]),![];}catch(_0x57f4e1){logger[_0x3e05d0(0xa3)](_0x3e05d0(0x9b)+util['format'](_0x57f4e1));}return!![];},exports['processAccessibilityCaps']=(_0x12184d,_0x4866cd,_0x2aaf34)=>{const _0x4adc34=a34_0x40c274,_0x2f548e={'VIEkw':function(_0x7eadd1){return _0x7eadd1();},'CSsnZ':'browserstack.accessibility','HAtlC':function(_0x14b5e7,_0x5e2ca5){return _0x14b5e7===_0x5e2ca5;},'sjCXw':_0x4adc34(0x7b),'wiJtu':'playwright-chromium','EiMkk':_0x4adc34(0xc4),'sCqoF':_0x4adc34(0x71),'sLvBd':function(_0x2bf3,_0xde46eb){return _0x2bf3>_0xde46eb;},'DXoeq':_0x4adc34(0x77),'wwqQw':function(_0x432fea,_0x1d2357){return _0x432fea(_0x1d2357);},'jarOh':_0x4adc34(0x70),'QTMAP':function(_0x32a920,_0x47367a){return _0x32a920+_0x47367a;}};try{if(_0x2f548e[_0x4adc34(0x69)](isAccessibilityAutomationSession)){global[_0x4adc34(0x83)]=!![];!_0x12184d[_0x2f548e[_0x4adc34(0x95)]]&&(global['accessibilityPlatform']=![]);!(_0x2f548e[_0x4adc34(0x81)](_0x12184d[_0x4adc34(0x7a)],_0x2f548e[_0x4adc34(0xc7)])||_0x2f548e['HAtlC'](_0x12184d[_0x4adc34(0x7a)],_0x2f548e[_0x4adc34(0x88)]))&&(logger[_0x4adc34(0xa1)](_0x2f548e[_0x4adc34(0xb9)]),global['accessibilityPlatform']=![]);!(_0x2f548e[_0x4adc34(0x81)](_0x12184d[_0x4adc34(0x8c)],_0x2f548e[_0x4adc34(0x8a)])||_0x2f548e[_0x4adc34(0x68)](_0x12184d[_0x4adc34(0x8c)],0x5e))&&(logger['warn'](_0x2f548e[_0x4adc34(0xaa)]),global['accessibilityPlatform']=![]);!_0x2f548e['wwqQw'](isUndefined,_0x12184d[_0x4adc34(0xaf)])&&(logger[_0x4adc34(0xa1)](_0x2f548e[_0x4adc34(0x93)]),global[_0x4adc34(0x83)]=![]);if(!global[_0x4adc34(0x83)]){_0x12184d[_0x2f548e[_0x4adc34(0x95)]]=![];const _0x266f5d=_0x2f548e[_0x4adc34(0x82)](_0x4866cd,_0x2f548e['wwqQw'](encodeURIComponent,JSON[_0x4adc34(0xbe)](_0x12184d)));_0x2aaf34&&(_0x2aaf34[_0x4adc34(0x74)]['testInfo'][_0x4adc34(0x94)][_0x4adc34(0x8e)]['connectOptions'][_0x4adc34(0xba)]=_0x266f5d,_0x2aaf34[_0x4adc34(0xbf)]['project'][_0x4adc34(0x8e)]['connectOptions'][_0x4adc34(0xba)]=_0x266f5d);}}}catch(_0x2ef694){logger['debug']('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x4adc34(0x7d)](_0x2ef694));}};function a34_0x1586(_0xf62fdf,_0x49c991){const _0x2b32ef=a34_0x2b32();return a34_0x1586=function(_0x1586ed,_0x397ed6){_0x1586ed=_0x1586ed-0x66;let _0xbbf93f=_0x2b32ef[_0x1586ed];return _0xbbf93f;},a34_0x1586(_0xf62fdf,_0x49c991);}function a34_0x2b32(){const _0x141df2=['executeScript','executeAsyncScript','currentTest','38122gPsdoO','playwright-chromium','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','jBYWt','Playwright','browserName','chrome','browserStackEvaluate','format','BS_A11Y_JWT','bestPractice','vBpDi','HAtlC','QTMAP','accessibilityPlatform','30JFbhIp','195572cMGwpY','186CqvhGT','wEWIT','wiJtu','raMtl','sCqoF','iJzkp','browser_version','2085992HSYVth','use','3190lKAZNu','GhUgo','wcagVersion','hAJaR','jarOh','project','CSsnZ','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','scannerProcessingTimeout','getAccessibilityResultsSummary','includeIssueType','No\x20summaryResults\x20found.','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','CaVFp','WebDriver','rwoXC','mjpEn','parse','warn','pmgQe','debug','(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','860673mJTmhQ','getAccessibilityResults','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','accessibilityOptions.authToken','name','DXoeq','TMucT','accessibilityOptions.includeIssueType.needsReview','method','AIHXw','deviceName','VIOoN','env','ODMWG','browserStackExecuteDriver','accessibilityOptions','goUtS','setAccessibilityCapabilities','accessibilityOptions.includeIssueType.bestPractice','constructor','EiMkk','wsEndpoint','2096vYxmye','accessibilityOptions.scannerVersion','AHNzx','stringify','workerInfo','replace','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','performScan','bstackSdkArgs','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','UoLcl','evaluate','sjCXw','oViKN','ztdjP','scannerVersion','sLvBd','VIEkw','rPGsL','rEgEl','../../helpers/helper','71667PcMLIW','1359HsPZzC','7WpKeLO','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','latest'];a34_0x2b32=function(){return _0x141df2;};return a34_0x2b32();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x1cdbd7=a35_0xd4dc;(function(_0x1fb349,_0x59166f){const _0x41c5f3=a35_0xd4dc,_0x505624=_0x1fb349();while(!![]){try{const _0x160c89=parseInt(_0x41c5f3(0x24f))/0x1*(parseInt(_0x41c5f3(0x249))/0x2)+-parseInt(_0x41c5f3(0x20b))/0x3+parseInt(_0x41c5f3(0x1d7))/0x4+parseInt(_0x41c5f3(0x204))/0x5+parseInt(_0x41c5f3(0x1b6))/0x6+-parseInt(_0x41c5f3(0x1dc))/0x7+-parseInt(_0x41c5f3(0x25c))/0x8;if(_0x160c89===_0x59166f)break;else _0x505624['push'](_0x505624['shift']());}catch(_0x4bb54c){_0x505624['push'](_0x505624['shift']());}}}(a35_0x49fc,0x6f174));function a35_0xd4dc(_0x37b2c4,_0x579a75){const _0x49fc0d=a35_0x49fc();return a35_0xd4dc=function(_0xd4dcd9,_0x58e4f3){_0xd4dcd9=_0xd4dcd9-0x1b6;let _0x26c91b=_0x49fc0d[_0xd4dcd9];return _0x26c91b;},a35_0xd4dc(_0x37b2c4,_0x579a75);}function a35_0x49fc(){const _0x4b5cf2=['nrURh','pw_result.json','--config','testObservability','false','isQeV','concat','npx','../../helpers/test-observability/constants','--disable-browserstack-automation','findIndex','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','../../helpers/BrowserStackSetup','VNFUY','vrEeC','filterBrowserstackArgs','../utils/constants','OFlom','resolvedConfigFile','SCeNI','config','join','get','QgsDB','serializeToYamlString','child_process','initialize','2607925mRCBog','.browserstack','isTypescriptProject','stringify','push','MjDKO','../../helpers/test-observability/error-handler','692889czFiKr','GfweL','homedir','./reporter/pwUtils','requirePWModule','finalExecution','JagJR','parse','clearTempPWConfig','--config=','inherit','EcREW','playwright-browserstack-sdk.config.js','pXNdY','BROWSERSTACK_RERUN_TESTS','getPackageType','HzVdM','Deleting\x20','BrowserStack\x20config\x20file\x20not\x20found.','../../helpers/logger','getConfigPath','EmYIv','winstonLogger','ntqtU','existsSync','startsWith','playwright-browserstack-sdk.config.cjs','testContextOptions','--disable-test-observability','platform','assign','ZJzNx','launchBuild','readFileSync','UiFbG','nestedKeyValue','filter','true','has','./accessibility-helper','DhrqA','slice','isTrue','TTvkw','includes','dirname','stop','isFalse','FGGCq','USER_CONFIG_DETAILS_PATH','4|3|5|7|8|2|0|1|6','--grep','unlinkSync','RXRvx','info','gUAXY','EMYWN','HpAFs','split','win32','TiMSJ','MHXMV','58uhlaKD','NqhOq','PpOKP','QyjMv','BROWSERSTACK_AUTOMATION','test','23398NmDCQv','null','Playwright\x20process\x20exited\x20with\x20code\x20','accessibilityOptions','oxGpt','bHgQu','browserstackSetupConfig.json','Error\x20in\x20deleting\x20playwright\x20results','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','BROWSERSTACK_SETUP_CONFIG_PATH','cliConfig','map','PydaN','12970736NYPNvR','4595940jzarFZ','cwd','MmDua','writeFileSync','YQaNc','skipSessionName','accessibility','path','debug','JAAKJ','../../helpers/accessibility-automation/helper','skipSessionStatus','playwright','resolve','OwBao','../../helpers/utilities','NsqFr','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','WYrSq','hJOCr','PLAYWRIGHT','Error\x20in\x20closing\x20playwright','automation','argv','PACKAGE_TYPE','../../helpers/testhub/utils','Sjxoo','JivFV','BROWSERSTACK_TEST_ACCESSIBILITY_YML','../../helpers/helper','indexOf','length','Updated\x20config\x20file\x20name\x20to\x20-\x20','2600324OBvIGA','env','RXeGD','RljFP','isUndefined','2162055tmvNBh','ISWDX','Error\x20in\x20getting\x20funnel\x20data\x20results','MStTc','close','exports','BROWSERSTACK_TEST_OBSERVABILITY','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','apply','bIpjD','markSDKSetupComplete','hKGUa','errorMessage'];a35_0x49fc=function(){return _0x4b5cf2;};return a35_0x49fc();}const fs=require('fs'),path=require(a35_0x1cdbd7(0x1bd)),{spawn}=require(a35_0x1cdbd7(0x202)),{format}=require('util'),logger=require(a35_0x1cdbd7(0x21e))[a35_0x1cdbd7(0x221)],{default:BrowserStackSetup}=require(a35_0x1cdbd7(0x1f5)),helper=require(a35_0x1cdbd7(0x1d3)),utilities=require(a35_0x1cdbd7(0x1c5)),constants=require(a35_0x1cdbd7(0x1f9)),{FRAMEWORKS}=require(a35_0x1cdbd7(0x1f1)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x1cdbd7(0x20e)),{CrashReporter}=require(a35_0x1cdbd7(0x20a)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{checkAccessibilityPlatformConfig}=require(a35_0x1cdbd7(0x1c0)),{setAccessibilityCapabilities}=require(a35_0x1cdbd7(0x232)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x1cdbd7(0x1cf)),getUserPlaywrightConfig=async(_0x388b4d,_0xe56b03)=>{const _0x43fa5a=a35_0x1cdbd7,_0x22b0e0={'UiFbG':function(_0x3a8929){return _0x3a8929();},'TiMSJ':function(_0x353db7,_0x376e14){return _0x353db7(_0x376e14);},'ONeOI':_0x43fa5a(0x1fb),'MmDua':_0x43fa5a(0x214)},_0x3c698c=!helper['isUndefined'](_0x388b4d[_0x43fa5a(0x1fd)]),_0x58d0d3=_0x3c698c?path[_0x43fa5a(0x1c3)](process['cwd'](),_0x388b4d[_0x43fa5a(0x1fd)]):process[_0x43fa5a(0x1b7)](),{resolveConfigFile:_0x3531cf,resolveConfigLocation:_0x592d48}=helper[_0x43fa5a(0x20f)][_0x43fa5a(0x1e4)](null,_0x22b0e0[_0x43fa5a(0x22d)](getConfigLoaderPath)),_0x126207=_0x3531cf?_0x22b0e0[_0x43fa5a(0x247)](_0x3531cf,_0x58d0d3):helper[_0x43fa5a(0x22e)](_0x22b0e0[_0x43fa5a(0x247)](_0x592d48,_0x58d0d3),[_0x22b0e0['ONeOI']]),_0x586b69={};if(_0x3c698c){const _0x409e9d=_0xe56b03[_0x43fa5a(0x1f3)](_0x1925f5=>_0x1925f5===_0x43fa5a(0x1eb)||_0x1925f5==='-c'||_0x1925f5[_0x43fa5a(0x224)](_0x43fa5a(0x214)));_0xe56b03['splice'](_0x409e9d,_0xe56b03[_0x409e9d][_0x43fa5a(0x224)](_0x22b0e0[_0x43fa5a(0x1b8)])?0x1:0x2);}const _0x22e85b={};return _0x22e85b[_0x43fa5a(0x1bd)]=_0x126207,_0x22e85b[_0x43fa5a(0x1fd)]=_0x586b69,_0x22e85b;},handleO11yRerun=_0x47fde8=>{const _0x30e02a=a35_0x1cdbd7,_0x15e2cc={};_0x15e2cc['wctto']=function(_0x22b718,_0xd82096){return _0x22b718!==_0xd82096;},_0x15e2cc[_0x30e02a(0x222)]=_0x30e02a(0x250),_0x15e2cc[_0x30e02a(0x220)]=_0x30e02a(0x23e);const _0x395203=_0x15e2cc,_0x3d3a7a=helper[_0x30e02a(0x235)](process[_0x30e02a(0x1d8)]['BROWSERSTACK_RERUN']);if(_0x3d3a7a){const _0x32bc10=process[_0x30e02a(0x1d8)][_0x30e02a(0x219)],_0x38135c=[];if(_0x395203['wctto'](_0x32bc10,_0x395203[_0x30e02a(0x222)])&&!helper[_0x30e02a(0x1db)](_0x32bc10)){_0x32bc10[_0x30e02a(0x245)](',')[_0x30e02a(0x25a)](_0x5f0f6a=>{const _0x224ca3=_0x30e02a;_0x38135c[_0x224ca3(0x208)]('('+_0x5f0f6a['trim']()+')');});const _0xc8ebab='^'+_0x38135c[_0x30e02a(0x1fe)]('|')+'$';_0x47fde8['push'](_0x395203['EmYIv'],_0xc8ebab);}}},spawnOriginalProcess=_0x3a420a=>{const _0x4ece28=a35_0x1cdbd7,_0x196eb2={'JAAKJ':function(_0x3571bc,_0x593965,_0x28a258,_0x4f8e82){return _0x3571bc(_0x593965,_0x28a258,_0x4f8e82);},'QgsDB':'npx','bHgQu':_0x4ece28(0x1c2),'ZJzNx':function(_0x3f0074,_0x5ad32a){return _0x3f0074===_0x5ad32a;},'pXNdY':'win32','hOnLh':_0x4ece28(0x215)};_0x196eb2[_0x4ece28(0x1bf)](spawn,_0x196eb2[_0x4ece28(0x200)],[_0x196eb2[_0x4ece28(0x254)],..._0x3a420a[_0x4ece28(0x234)](0x1)],{'shell':_0x196eb2[_0x4ece28(0x22a)](process[_0x4ece28(0x228)],_0x196eb2[_0x4ece28(0x218)]),'stdio':_0x196eb2['hOnLh'],'cwd':process[_0x4ece28(0x1b7)]()});},isTestCommand=(_0x2fb2f7,_0x4eef8e)=>{const _0x1f2baf=a35_0x1cdbd7,_0x56a142={};_0x56a142[_0x1f2baf(0x1f7)]=function(_0x3272e4,_0x4ffd21){return _0x3272e4>_0x4ffd21;},_0x56a142[_0x1f2baf(0x236)]=function(_0x52cc9d,_0x13c929){return _0x52cc9d===_0x13c929;},_0x56a142[_0x1f2baf(0x233)]=_0x1f2baf(0x24e);const _0xdf4dc9=_0x56a142;if(_0xdf4dc9[_0x1f2baf(0x1f7)](_0x4eef8e['length'],0x1)&&_0xdf4dc9[_0x1f2baf(0x236)](_0x4eef8e[0x1],_0xdf4dc9['DhrqA']))return!![];return![];};async function run(_0x1b4422,_0x2b8688){const _0x407053=a35_0x1cdbd7,_0x1db360={'gUAXY':_0x407053(0x205),'PpOKP':_0x407053(0x1ea),'wZvNH':function(_0x2459b3,_0x1c3b8a){return _0x2459b3+_0x1c3b8a;},'hKGUa':_0x407053(0x1de),'YQaNc':_0x407053(0x23d),'QaXIx':function(_0x31c1e4){return _0x31c1e4();},'NsqFr':function(_0x1104b7,_0x3af544){return _0x1104b7+_0x3af544;},'bIpjD':_0x407053(0x1cb),'PTgHl':_0x407053(0x1f2),'OwBao':_0x407053(0x1ed),'JivFV':_0x407053(0x227),'PydaN':function(_0x5408bf,_0x268e26){return _0x5408bf>=_0x268e26;},'WYrSq':_0x407053(0x256),'EMYWN':function(_0x5c4ea2,_0xfdcab6,_0x1dfeed){return _0x5c4ea2(_0xfdcab6,_0x1dfeed);},'hJOCr':function(_0x1b9443,_0x35fb62){return _0x1b9443(_0x35fb62);},'EcREW':_0x407053(0x21d),'Sjxoo':_0x407053(0x1cc),'RXRvx':function(_0x5094a7,_0x18e633){return _0x5094a7!=_0x18e633;},'MHXMV':function(_0xe18fcc,_0x302ddd,_0x422777){return _0xe18fcc(_0x302ddd,_0x422777);},'JagJR':function(_0x3f1045,_0x15cae8){return _0x3f1045(_0x15cae8);},'MStTc':function(_0x3d329f,_0xfc00b6){return _0x3d329f===_0xfc00b6;},'NqhOq':_0x407053(0x230),'isQeV':function(_0xd478b2,_0x30fc32){return _0xd478b2(_0x30fc32);},'nrURh':function(_0x7a99fd,_0x436bc3){return _0x7a99fd(_0x436bc3);},'QyjMv':_0x407053(0x255),'HpAFs':_0x407053(0x225),'HzVdM':_0x407053(0x217),'RljFP':function(_0x570324,_0x3bdf25){return _0x570324-_0x3bdf25;},'FGGCq':function(_0xd63281,_0x3c4e80){return _0xd63281+_0x3c4e80;},'SCeNI':_0x407053(0x1d6),'HlGfA':function(_0x59b371,_0x3ba683){return _0x59b371>_0x3ba683;},'RXeGD':function(_0xb2e893,_0x256802){return _0xb2e893+_0x256802;},'MjDKO':function(_0xcda377,_0x35e1ed,_0x106c2c,_0x57345e){return _0xcda377(_0x35e1ed,_0x106c2c,_0x57345e);},'VNFUY':_0x407053(0x1f0),'OGzgh':'playwright','qRNrM':_0x407053(0x24e),'GfweL':'--config','oxGpt':_0x407053(0x246),'ISWDX':'inherit','OFlom':_0x407053(0x1e0)};!helper[_0x407053(0x23a)](process[_0x407053(0x1d8)][_0x407053(0x24d)])&&(process[_0x407053(0x1d8)][_0x407053(0x24d)]=!![]);process[_0x407053(0x1cd)][_0x407053(0x237)](_0x1db360['PTgHl'])&&(process[_0x407053(0x1d8)][_0x407053(0x24d)]=_0x1db360[_0x407053(0x1c4)],_0x2b8688=_0x2b8688[_0x407053(0x22f)](_0x14e487=>_0x14e487!==_0x407053(0x1f2)));const _0x391d19=_0x2b8688[_0x407053(0x1d4)](_0x1db360[_0x407053(0x1d1)]);_0x1db360[_0x407053(0x25b)](_0x391d19,0x0)&&(process[_0x407053(0x1d8)][_0x407053(0x1e2)]=_0x1db360[_0x407053(0x1c4)],_0x2b8688=_0x2b8688[_0x407053(0x22f)](_0x90e98a=>_0x90e98a!==_0x407053(0x227)));try{const _0x307da5=path[_0x407053(0x1fe)](helper[_0x407053(0x20d)](),_0x1db360['gUAXY'],_0x1db360[_0x407053(0x24b)]);fs[_0x407053(0x223)](_0x307da5)&&fs['unlinkSync'](_0x307da5);}catch(_0xa25184){logger[_0x407053(0x1be)](_0x1db360[_0x407053(0x1c6)](_0x1db360[_0x407053(0x1c8)],_0xa25184));}if(!_0x1db360[_0x407053(0x243)](isTestCommand,_0x1b4422,_0x2b8688)){_0x1db360[_0x407053(0x1c9)](spawnOriginalProcess,_0x2b8688);return;}const _0x477bec=new BrowserStackSetup(_0x1b4422,FRAMEWORKS[_0x407053(0x1ca)]);if(!_0x477bec[_0x407053(0x1fd)]){logger['error'](_0x1db360[_0x407053(0x216)]);return;}await _0x477bec[_0x407053(0x203)]();!helper[_0x407053(0x1db)](_0x477bec[_0x407053(0x259)])&&_0x477bec['cliConfig'][_0x407053(0x231)](_0x1db360['Sjxoo'])&&(process['env'][_0x407053(0x24d)]=_0x477bec[_0x407053(0x259)][_0x407053(0x1ff)](_0x1db360[_0x407053(0x1d0)])||!![]);_0x1db360[_0x407053(0x240)](_0x477bec[_0x407053(0x1fd)]['testObservability'],null)&&!helper[_0x407053(0x235)](process[_0x407053(0x1d8)][_0x407053(0x1e2)])&&(process[_0x407053(0x1d8)]['BROWSERSTACK_TEST_OBSERVABILITY']=process['env']['BROWSERSTACK_TEST_OBSERVABILITY']||_0x477bec[_0x407053(0x1fd)][_0x407053(0x1ec)]);const _0x1e3701=!helper[_0x407053(0x23a)](process['env'][_0x407053(0x1e2)]);let _0x5617d2=![];_0x477bec[_0x407053(0x1fd)][_0x407053(0x1bc)]&&(_0x5617d2=!![],process[_0x407053(0x1d8)][_0x407053(0x1d2)]=_0x477bec[_0x407053(0x1fd)][_0x407053(0x1bc)]);_0x477bec[_0x407053(0x1fd)][_0x407053(0x252)]&&(process['env'][_0x407053(0x257)]=JSON[_0x407053(0x207)](_0x477bec[_0x407053(0x1fd)]['accessibilityOptions']));const _0x455ed3=_0x2b8688[_0x407053(0x1ef)](),_0x3bd7c6=await _0x1db360[_0x407053(0x248)](getUserPlaywrightConfig,_0x1b4422,_0x2b8688);if(helper[_0x407053(0x1db)](_0x3bd7c6)){_0x1db360['JagJR'](spawnOriginalProcess,_0x455ed3);return;}const _0xaf3a6d=_0x3bd7c6[_0x407053(0x1bd)]?path[_0x407053(0x238)](_0x3bd7c6['path']):process[_0x407053(0x1b7)]();process[_0x407053(0x1d8)]['BROWSERSTACK_PW_CONFIG_DIR']=_0xaf3a6d,await TestHubHandler[_0x407053(0x22b)](FRAMEWORKS[_0x407053(0x1ca)],_0x477bec);_0x1e3701&&_0x1db360[_0x407053(0x211)](handleO11yRerun,_0x2b8688);let _0x35b81c=_0x1db360['MStTc'](process[_0x407053(0x1d8)][_0x407053(0x1d2)],_0x1db360[_0x407053(0x24a)]);_0x35b81c=_0x35b81c||_0x1db360[_0x407053(0x1ee)](checkAccessibilityPlatformConfig,_0x477bec['config']),process['env'][_0x407053(0x1d2)]=_0x35b81c;_0x35b81c&&_0x1db360[_0x407053(0x1e9)](setAccessibilityCapabilities,_0x477bec[_0x407053(0x1fd)]);const _0x13533c=path['join'](_0x3bd7c6['path']?path[_0x407053(0x238)](_0x3bd7c6[_0x407053(0x1bd)]):process[_0x407053(0x1b7)](),_0x1db360[_0x407053(0x24c)]);fs[_0x407053(0x1b9)](_0x13533c,helper[_0x407053(0x201)](_0x477bec[_0x407053(0x1fd)])),process[_0x407053(0x1d8)][_0x407053(0x258)]=_0x13533c,helper[_0x407053(0x213)]();let _0x14969a='';_0x1db360[_0x407053(0x1df)](helper[_0x407053(0x21a)](),constants[_0x407053(0x1ce)]['MODULE'])?_0x14969a=_0x1db360[_0x407053(0x244)]:_0x14969a=_0x1db360[_0x407053(0x21b)];let _0x41181a='';if(helper[_0x407053(0x206)](_0x3bd7c6[_0x407053(0x1bd)])){_0x41181a=_0x407053(0x1e3);const _0x582866=_0x14969a[_0x407053(0x245)]('.');_0x582866[_0x1db360[_0x407053(0x1da)](_0x582866[_0x407053(0x1d5)],0x1)]='ts',_0x14969a=_0x582866[_0x407053(0x1fe)]('.'),logger[_0x407053(0x1be)](_0x1db360[_0x407053(0x23b)](_0x1db360[_0x407053(0x1fc)],_0x14969a));}else _0x41181a=_0x407053(0x1c7);const _0x3350f0=path[_0x407053(0x1fe)](_0x3bd7c6[_0x407053(0x1bd)]?path[_0x407053(0x238)](_0x3bd7c6[_0x407053(0x1bd)]):process[_0x407053(0x1b7)](),_0x14969a);let _0x467275=_0x3bd7c6['path']?_0x3bd7c6[_0x407053(0x1bd)]:'';_0x467275=_0x1db360['HlGfA'](_0x467275[_0x407053(0x1d5)],0x0)?path[_0x407053(0x1c3)](_0x467275):'',process[_0x407053(0x1d8)][_0x407053(0x23c)]=_0x467275;const _0x3eacfa=helper['getProxyUrl'](_0x477bec[_0x407053(0x1fd)]);_0x3eacfa&&(_0x41181a=_0x1db360[_0x407053(0x1d9)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x3eacfa+_0x407053(0x1f4),_0x41181a));helper[_0x407053(0x1f8)]({},_0x2b8688),fs[_0x407053(0x1b9)](_0x3350f0,_0x41181a),helper[_0x407053(0x1e6)]();const _0xfffa3b=_0x1db360[_0x407053(0x209)](spawn,_0x1db360[_0x407053(0x1f6)],[_0x1db360['OGzgh'],_0x1db360['qRNrM'],_0x1db360[_0x407053(0x20c)],_0x3350f0,..._0x2b8688[_0x407053(0x234)](0x2)],{'shell':_0x1db360[_0x407053(0x1df)](process[_0x407053(0x228)],_0x1db360[_0x407053(0x253)]),'stdio':_0x1db360[_0x407053(0x1dd)],'cwd':process[_0x407053(0x1b7)](),'env':Object[_0x407053(0x229)]({},process[_0x407053(0x1d8)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x407053(0x21f)](_0x1b4422),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x477bec['config']['testContextOptions'][_0x407053(0x1c1)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x477bec[_0x407053(0x1fd)][_0x407053(0x226)][_0x407053(0x1bb)],'BROWSERSTACK_LOG_LEVEL':_0x477bec['config']['logLevel']})}),_0x4e7e6b=()=>{const _0x4f7a61=_0x407053;try{const _0x4afc4d=path['join'](helper[_0x4f7a61(0x20d)](),_0x1db360[_0x4f7a61(0x242)],_0x1db360['PpOKP']);if(fs[_0x4f7a61(0x223)](_0x4afc4d)){let _0x53e93a=fs[_0x4f7a61(0x22c)](_0x4afc4d);_0x53e93a=JSON[_0x4f7a61(0x212)](_0x53e93a),_0x477bec[_0x4f7a61(0x1e8)]=_0x53e93a,fs[_0x4f7a61(0x23f)](_0x4afc4d);}}catch(_0x163fd5){logger['debug'](_0x1db360['wZvNH'](_0x1db360[_0x4f7a61(0x1e7)],_0x163fd5));}};_0xfffa3b['on'](_0x1db360[_0x407053(0x1fa)],async _0xf6f5c4=>{const _0x446d78=_0x407053;try{const _0x2fd277=_0x1db360[_0x446d78(0x1ba)][_0x446d78(0x245)]('|');let _0x4d8e85=0x0;while(!![]){switch(_0x2fd277[_0x4d8e85++]){case'0':fs['unlinkSync'](_0x3350f0);continue;case'1':logger[_0x446d78(0x1be)](_0x446d78(0x21c)+_0x13533c);continue;case'2':logger[_0x446d78(0x241)](_0x446d78(0x21c)+_0x3350f0);continue;case'3':await TestHubHandler[_0x446d78(0x239)]();continue;case'4':_0x1db360['QaXIx'](_0x4e7e6b);continue;case'5':await utilities[_0x446d78(0x210)](_0x477bec);continue;case'6':fs[_0x446d78(0x23f)](_0x13533c);continue;case'7':process['exitCode']=_0xf6f5c4;continue;case'8':logger[_0x446d78(0x1be)](_0x446d78(0x251)+_0xf6f5c4);continue;}break;}}catch(_0x3294e6){logger[_0x446d78(0x1be)](_0x1db360[_0x446d78(0x1c6)](_0x1db360[_0x446d78(0x1e5)],_0x3294e6));}});}module[a35_0x1cdbd7(0x1e1)]=run;
|
|
2
|
+
'use strict';function a35_0x3d5d(_0x87f29d,_0x4f11d7){const _0x88eb73=a35_0x88eb();return a35_0x3d5d=function(_0x3d5d70,_0x506a77){_0x3d5d70=_0x3d5d70-0x10d;let _0x4dfa56=_0x88eb73[_0x3d5d70];return _0x4dfa56;},a35_0x3d5d(_0x87f29d,_0x4f11d7);}const a35_0x330c14=a35_0x3d5d;(function(_0x96981d,_0x549b8c){const _0x27ccb9=a35_0x3d5d,_0x1262ab=_0x96981d();while(!![]){try{const _0x533ac1=parseInt(_0x27ccb9(0x166))/0x1*(-parseInt(_0x27ccb9(0x137))/0x2)+-parseInt(_0x27ccb9(0x132))/0x3+-parseInt(_0x27ccb9(0x18e))/0x4+-parseInt(_0x27ccb9(0x116))/0x5*(parseInt(_0x27ccb9(0x18b))/0x6)+parseInt(_0x27ccb9(0x170))/0x7+parseInt(_0x27ccb9(0x1af))/0x8+parseInt(_0x27ccb9(0x163))/0x9;if(_0x533ac1===_0x549b8c)break;else _0x1262ab['push'](_0x1262ab['shift']());}catch(_0x16ba4d){_0x1262ab['push'](_0x1262ab['shift']());}}}(a35_0x88eb,0x71df3));const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x330c14(0x157)),{format}=require(a35_0x330c14(0x1b3)),logger=require(a35_0x330c14(0x15f))[a35_0x330c14(0x140)],{default:BrowserStackSetup}=require(a35_0x330c14(0x1a3)),helper=require(a35_0x330c14(0x14d)),utilities=require('../../helpers/utilities'),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0x330c14(0x151)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x330c14(0x1a0)),{CrashReporter}=require(a35_0x330c14(0x194)),{getFrameworkVersion}=require(a35_0x330c14(0x18f)),{checkAccessibilityPlatformConfig}=require(a35_0x330c14(0x18c)),{setAccessibilityCapabilities}=require(a35_0x330c14(0x1a2)),TestHubHandler=require(a35_0x330c14(0x138)),{shouldProcessEventForTesthub}=require(a35_0x330c14(0x13d)),getUserPlaywrightConfig=async(_0x3d154c,_0x3c8572)=>{const _0x492b11=a35_0x330c14,_0x287106={'emBDy':function(_0x409765){return _0x409765();},'WYhpY':function(_0x20c5b5,_0x2ddd16){return _0x20c5b5(_0x2ddd16);},'sLuJu':function(_0xe02d39,_0x596f50){return _0xe02d39(_0x596f50);},'BGzMT':_0x492b11(0x133),'wCcpK':_0x492b11(0x143)},_0x2192c2=!helper['isUndefined'](_0x3d154c[_0x492b11(0x12e)]),_0x1157f3=_0x2192c2?path[_0x492b11(0x136)](process[_0x492b11(0x174)](),_0x3d154c[_0x492b11(0x12e)]):process[_0x492b11(0x174)](),{resolveConfigFile:_0x33bef8,resolveConfigLocation:_0x56b37d}=helper[_0x492b11(0x16e)][_0x492b11(0x12c)](null,_0x287106[_0x492b11(0x150)](getConfigLoaderPath)),_0x89d9ec=_0x33bef8?_0x287106[_0x492b11(0x17a)](_0x33bef8,_0x1157f3):helper[_0x492b11(0x162)](_0x287106[_0x492b11(0x122)](_0x56b37d,_0x1157f3),[_0x287106[_0x492b11(0x13f)]]),_0x375d8d={};if(_0x2192c2){const _0x294fde=_0x3c8572[_0x492b11(0x15c)](_0x17c20a=>_0x17c20a===_0x492b11(0x11f)||_0x17c20a==='-c'||_0x17c20a[_0x492b11(0x12b)](_0x492b11(0x143)));_0x3c8572[_0x492b11(0x1a9)](_0x294fde,_0x3c8572[_0x294fde][_0x492b11(0x12b)](_0x287106[_0x492b11(0x14e)])?0x1:0x2);}const _0x346598={};return _0x346598[_0x492b11(0x188)]=_0x89d9ec,_0x346598['config']=_0x375d8d,_0x346598;},handleO11yRerun=_0x405317=>{const _0x5742bd=a35_0x330c14,_0x275829={};_0x275829[_0x5742bd(0x15d)]=function(_0xa55f08,_0xd4e0ee){return _0xa55f08!==_0xd4e0ee;},_0x275829['DgYjw']=_0x5742bd(0x197),_0x275829[_0x5742bd(0x160)]='--grep';const _0x55a378=_0x275829,_0x4c1add=helper[_0x5742bd(0x17f)](process[_0x5742bd(0x16c)][_0x5742bd(0x173)]);if(_0x4c1add){const _0xa64796=process['env'][_0x5742bd(0x1b0)],_0x57f2a4=[];if(_0x55a378[_0x5742bd(0x15d)](_0xa64796,_0x55a378[_0x5742bd(0x15e)])&&!helper['isUndefined'](_0xa64796)){_0xa64796[_0x5742bd(0x10d)](',')[_0x5742bd(0x155)](_0x3f98db=>{const _0x5c3d36=_0x5742bd;_0x57f2a4[_0x5c3d36(0x180)]('('+_0x3f98db['trim']()+')');});const _0x33b55c='^'+_0x57f2a4[_0x5742bd(0x193)]('|')+'$';_0x405317['push'](_0x55a378['Dkbdr'],_0x33b55c);}}},spawnOriginalProcess=_0x2e38d0=>{const _0x42afa6=a35_0x330c14,_0x916ebc={'MmnwV':function(_0x17c777,_0xe3aff8,_0x5de025,_0x42484b){return _0x17c777(_0xe3aff8,_0x5de025,_0x42484b);},'pEsTf':_0x42afa6(0x152),'GMMfN':_0x42afa6(0x18d),'EoJfO':function(_0x4bfe8c,_0xea0f5e){return _0x4bfe8c===_0xea0f5e;},'rCflT':_0x42afa6(0x127),'nOcYq':_0x42afa6(0x190)};_0x916ebc['MmnwV'](spawn,_0x916ebc[_0x42afa6(0x16d)],[_0x916ebc['GMMfN'],..._0x2e38d0[_0x42afa6(0x19b)](0x1)],{'shell':_0x916ebc[_0x42afa6(0x19d)](process[_0x42afa6(0x1a8)],_0x916ebc['rCflT']),'stdio':_0x916ebc[_0x42afa6(0x118)],'cwd':process[_0x42afa6(0x174)]()});},isTestCommand=(_0x1d1dd4,_0x27a26d)=>{const _0x18bfc8=a35_0x330c14,_0x1790da={};_0x1790da['ViMrC']=function(_0x3e7b6e,_0x28b38f){return _0x3e7b6e>_0x28b38f;},_0x1790da[_0x18bfc8(0x158)]=function(_0x3a4987,_0x5563f7){return _0x3a4987===_0x5563f7;},_0x1790da[_0x18bfc8(0x177)]=_0x18bfc8(0x1ad);const _0x471665=_0x1790da;if(_0x471665[_0x18bfc8(0x195)](_0x27a26d[_0x18bfc8(0x15b)],0x1)&&_0x471665[_0x18bfc8(0x158)](_0x27a26d[0x1],_0x471665['IjfWp']))return!![];return![];};async function run(_0x3666e3,_0x2ac19a){const _0x4fffdf=a35_0x330c14,_0xfefdb={'BypjY':_0x4fffdf(0x146),'zKBjr':_0x4fffdf(0x14c),'qWbFu':function(_0xfdc5c1,_0xa98593){return _0xfdc5c1+_0xa98593;},'IaBNP':_0x4fffdf(0x135),'jbhFP':_0x4fffdf(0x168),'HDtoJ':function(_0x4a89c1){return _0x4a89c1();},'EaDaV':'Error\x20in\x20closing\x20playwright','dVTBD':_0x4fffdf(0x184),'GuqoO':'false','YnoZW':'--disable-test-observability','dghFC':function(_0x30190b,_0x5a6f3f){return _0x30190b>=_0x5a6f3f;},'lsEyk':function(_0x18325c,_0x3fceaa){return _0x18325c+_0x3fceaa;},'eUILE':_0x4fffdf(0x178),'oCpVs':function(_0x253f01,_0x8eeac1,_0x5c330e){return _0x253f01(_0x8eeac1,_0x5c330e);},'Gpmrn':function(_0x48a0b8,_0x1d753a){return _0x48a0b8(_0x1d753a);},'ikpKw':_0x4fffdf(0x19f),'hOKyd':_0x4fffdf(0x142),'ZMNND':function(_0x279adb,_0x800f1){return _0x279adb!=_0x800f1;},'WErkV':function(_0x5eb339,_0x126e9a,_0x4a04d8){return _0x5eb339(_0x126e9a,_0x4a04d8);},'oiBqn':function(_0x297448,_0x48d219){return _0x297448(_0x48d219);},'jqLmP':function(_0x49f761,_0xc2d72f){return _0x49f761===_0xc2d72f;},'lPcNX':_0x4fffdf(0x124),'jQuop':function(_0x224f80,_0x54f64f){return _0x224f80(_0x54f64f);},'pxFLK':_0x4fffdf(0x119),'TRmBg':function(_0x19b0c3,_0x3b0d0c){return _0x19b0c3===_0x3b0d0c;},'UuOPc':_0x4fffdf(0x171),'AYmMp':_0x4fffdf(0x14a),'vncRH':function(_0x488492,_0x22e970){return _0x488492-_0x22e970;},'aDRfF':_0x4fffdf(0x191),'ZUsgc':function(_0x155a97,_0x4b1387){return _0x155a97>_0x4b1387;},'czjoM':function(_0x3750e1,_0x1c84dc){return _0x3750e1+_0x1c84dc;},'VjjCo':function(_0xe15d02,_0x2132dd,_0x35a736,_0x4efc3b){return _0xe15d02(_0x2132dd,_0x35a736,_0x4efc3b);},'iypgI':'npx','AuZme':_0x4fffdf(0x18d),'YVutT':_0x4fffdf(0x1ad),'fGQfq':_0x4fffdf(0x11f),'ZvUWk':function(_0x5749f9,_0x4c9e69){return _0x5749f9===_0x4c9e69;},'fxwAp':_0x4fffdf(0x127),'tCfUQ':_0x4fffdf(0x190),'CIZqD':_0x4fffdf(0x1ae)};!helper[_0x4fffdf(0x111)](process[_0x4fffdf(0x16c)][_0x4fffdf(0x125)])&&(process[_0x4fffdf(0x16c)]['BROWSERSTACK_AUTOMATION']=!![]);process['argv'][_0x4fffdf(0x16b)](_0xfefdb[_0x4fffdf(0x16f)])&&(process[_0x4fffdf(0x16c)]['BROWSERSTACK_AUTOMATION']=_0xfefdb['GuqoO'],_0x2ac19a=_0x2ac19a[_0x4fffdf(0x1aa)](_0xbc260a=>_0xbc260a!==_0x4fffdf(0x184)));const _0xdaa8b8=_0x2ac19a[_0x4fffdf(0x134)](_0xfefdb['YnoZW']);_0xfefdb[_0x4fffdf(0x17c)](_0xdaa8b8,0x0)&&(process[_0x4fffdf(0x16c)][_0x4fffdf(0x12a)]=_0xfefdb[_0x4fffdf(0x182)],_0x2ac19a=_0x2ac19a['filter'](_0x159b85=>_0x159b85!==_0x4fffdf(0x120)));try{const _0xd20abe=path['join'](helper['homedir'](),_0xfefdb[_0x4fffdf(0x129)],_0xfefdb[_0x4fffdf(0x147)]);fs[_0x4fffdf(0x11d)](_0xd20abe)&&fs[_0x4fffdf(0x126)](_0xd20abe);}catch(_0x49ba9e){logger[_0x4fffdf(0x1b1)](_0xfefdb[_0x4fffdf(0x11b)](_0xfefdb[_0x4fffdf(0x192)],_0x49ba9e));}if(!_0xfefdb[_0x4fffdf(0x14f)](isTestCommand,_0x3666e3,_0x2ac19a)){_0xfefdb[_0x4fffdf(0x164)](spawnOriginalProcess,_0x2ac19a);return;}const _0x505709=new BrowserStackSetup(_0x3666e3,FRAMEWORKS['PLAYWRIGHT']);if(!_0x505709[_0x4fffdf(0x12e)]){logger[_0x4fffdf(0x199)](_0xfefdb[_0x4fffdf(0x10f)]);return;}await _0x505709[_0x4fffdf(0x156)]();!helper[_0x4fffdf(0x145)](_0x505709['cliConfig'])&&_0x505709['cliConfig'][_0x4fffdf(0x189)](_0xfefdb[_0x4fffdf(0x183)])&&(process[_0x4fffdf(0x16c)]['BROWSERSTACK_AUTOMATION']=_0x505709[_0x4fffdf(0x121)][_0x4fffdf(0x176)](_0xfefdb[_0x4fffdf(0x183)])||!![]);_0xfefdb['ZMNND'](_0x505709[_0x4fffdf(0x12e)][_0x4fffdf(0x13c)],null)&&!helper[_0x4fffdf(0x17f)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x4fffdf(0x16c)]['BROWSERSTACK_TEST_OBSERVABILITY']=process['env'][_0x4fffdf(0x12a)]||_0x505709[_0x4fffdf(0x12e)]['testObservability']);const _0x336db2=!helper[_0x4fffdf(0x111)](process[_0x4fffdf(0x16c)][_0x4fffdf(0x12a)]);let _0x1d8dba=![];_0x505709[_0x4fffdf(0x12e)][_0x4fffdf(0x196)]&&(_0x1d8dba=!![],process[_0x4fffdf(0x16c)][_0x4fffdf(0x175)]=_0x505709[_0x4fffdf(0x12e)][_0x4fffdf(0x196)]);_0x505709['config'][_0x4fffdf(0x159)]&&(process[_0x4fffdf(0x16c)][_0x4fffdf(0x169)]=JSON[_0x4fffdf(0x13b)](_0x505709['config'][_0x4fffdf(0x159)]));const _0x4340ba=_0x2ac19a[_0x4fffdf(0x130)](),_0x175d42=await _0xfefdb['WErkV'](getUserPlaywrightConfig,_0x3666e3,_0x2ac19a);if(helper[_0x4fffdf(0x145)](_0x175d42)){_0xfefdb[_0x4fffdf(0x164)](spawnOriginalProcess,_0x4340ba);return;}const _0x24b276=_0x175d42['path']?path['dirname'](_0x175d42[_0x4fffdf(0x188)]):process['cwd']();process[_0x4fffdf(0x16c)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x24b276,await TestHubHandler[_0x4fffdf(0x1a6)](FRAMEWORKS[_0x4fffdf(0x153)],_0x505709);_0x336db2&&_0xfefdb[_0x4fffdf(0x16a)](handleO11yRerun,_0x2ac19a);let _0x24d6a2=_0xfefdb[_0x4fffdf(0x1a5)](process[_0x4fffdf(0x16c)][_0x4fffdf(0x175)],_0xfefdb[_0x4fffdf(0x149)]);_0x24d6a2=_0x24d6a2||_0xfefdb[_0x4fffdf(0x1ab)](checkAccessibilityPlatformConfig,_0x505709['config']),process[_0x4fffdf(0x16c)][_0x4fffdf(0x175)]=_0x24d6a2;_0x24d6a2&&_0xfefdb[_0x4fffdf(0x1ab)](setAccessibilityCapabilities,_0x505709[_0x4fffdf(0x12e)]);const _0x1020a3=path['join'](_0x175d42[_0x4fffdf(0x188)]?path[_0x4fffdf(0x114)](_0x175d42[_0x4fffdf(0x188)]):process[_0x4fffdf(0x174)](),_0xfefdb[_0x4fffdf(0x17d)]);fs[_0x4fffdf(0x167)](_0x1020a3,helper[_0x4fffdf(0x1b4)](_0x505709[_0x4fffdf(0x12e)])),process['env'][_0x4fffdf(0x19a)]=_0x1020a3,helper[_0x4fffdf(0x165)]();let _0x74ada0='';_0xfefdb[_0x4fffdf(0x161)](helper[_0x4fffdf(0x172)](),constants[_0x4fffdf(0x11a)][_0x4fffdf(0x186)])?_0x74ada0=_0xfefdb[_0x4fffdf(0x13a)]:_0x74ada0=_0xfefdb['AYmMp'];let _0x4c45d2='';if(helper[_0x4fffdf(0x19c)](_0x175d42['path'])){_0x4c45d2='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x64855a=_0x74ada0[_0x4fffdf(0x10d)]('.');_0x64855a[_0xfefdb[_0x4fffdf(0x1b2)](_0x64855a[_0x4fffdf(0x15b)],0x1)]='ts',_0x74ada0=_0x64855a['join']('.'),logger[_0x4fffdf(0x1b1)](_0xfefdb[_0x4fffdf(0x12f)](_0xfefdb[_0x4fffdf(0x185)],_0x74ada0));}else _0x4c45d2=_0x4fffdf(0x1a1);const _0x3ac760=path['join'](_0x175d42['path']?path['dirname'](_0x175d42[_0x4fffdf(0x188)]):process[_0x4fffdf(0x174)](),_0x74ada0);let _0x47d1e2=_0x175d42[_0x4fffdf(0x188)]?_0x175d42[_0x4fffdf(0x188)]:'';_0x47d1e2=_0xfefdb[_0x4fffdf(0x12d)](_0x47d1e2['length'],0x0)?path[_0x4fffdf(0x136)](_0x47d1e2):'',process[_0x4fffdf(0x16c)]['USER_CONFIG_DETAILS_PATH']=_0x47d1e2;const _0x3bc3b8=helper['getProxyUrl'](_0x505709[_0x4fffdf(0x12e)]);_0x3bc3b8&&(_0x4c45d2=_0xfefdb[_0x4fffdf(0x11c)](_0x4fffdf(0x19e)+_0x3bc3b8+_0x4fffdf(0x11e),_0x4c45d2));helper[_0x4fffdf(0x123)]({},_0x2ac19a),fs[_0x4fffdf(0x167)](_0x3ac760,_0x4c45d2),helper['markSDKSetupComplete']();const _0x4f2f0b=_0xfefdb[_0x4fffdf(0x154)](spawn,_0xfefdb[_0x4fffdf(0x1ac)],[_0xfefdb[_0x4fffdf(0x115)],_0xfefdb[_0x4fffdf(0x1a7)],_0xfefdb[_0x4fffdf(0x131)],_0x3ac760,..._0x2ac19a['slice'](0x2)],{'shell':_0xfefdb[_0x4fffdf(0x187)](process[_0x4fffdf(0x1a8)],_0xfefdb[_0x4fffdf(0x181)]),'stdio':_0xfefdb['tCfUQ'],'cwd':process[_0x4fffdf(0x174)](),'env':Object[_0x4fffdf(0x110)]({},process[_0x4fffdf(0x16c)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x4fffdf(0x148)](_0x3666e3),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x505709[_0x4fffdf(0x12e)]['testContextOptions'][_0x4fffdf(0x179)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x505709[_0x4fffdf(0x12e)][_0x4fffdf(0x14b)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x505709['config'][_0x4fffdf(0x13e)]})}),_0x3b5da4=()=>{const _0xcf5032=_0x4fffdf;try{const _0x27f036=path['join'](helper[_0xcf5032(0x128)](),_0xfefdb[_0xcf5032(0x129)],_0xfefdb[_0xcf5032(0x147)]);if(fs[_0xcf5032(0x11d)](_0x27f036)){let _0x3861fa=fs['readFileSync'](_0x27f036);_0x3861fa=JSON[_0xcf5032(0x112)](_0x3861fa),_0x505709[_0xcf5032(0x141)]=_0x3861fa,fs['unlinkSync'](_0x27f036);}}catch(_0x5d6328){logger[_0xcf5032(0x1b1)](_0xfefdb[_0xcf5032(0x12f)](_0xfefdb['IaBNP'],_0x5d6328));}};_0x4f2f0b['on'](_0xfefdb[_0x4fffdf(0x144)],async _0x392673=>{const _0x5368a6=_0x4fffdf;try{const _0x26b0d5=_0xfefdb[_0x5368a6(0x198)][_0x5368a6(0x10d)]('|');let _0x51f2b9=0x0;while(!![]){switch(_0x26b0d5[_0x51f2b9++]){case'0':await utilities[_0x5368a6(0x10e)](_0x505709);continue;case'1':process[_0x5368a6(0x18a)]=_0x392673;continue;case'2':logger[_0x5368a6(0x1b1)](_0x5368a6(0x17b)+_0x392673);continue;case'3':await TestHubHandler[_0x5368a6(0x1a4)]();continue;case'4':logger['debug'](_0x5368a6(0x113)+_0x1020a3);continue;case'5':_0xfefdb[_0x5368a6(0x117)](_0x3b5da4);continue;case'6':logger[_0x5368a6(0x17e)](_0x5368a6(0x113)+_0x3ac760);continue;case'7':fs[_0x5368a6(0x126)](_0x1020a3);continue;case'8':fs[_0x5368a6(0x126)](_0x3ac760);continue;}break;}}catch(_0x2845d0){logger['debug'](_0xfefdb[_0x5368a6(0x12f)](_0xfefdb[_0x5368a6(0x15a)],_0x2845d0));}});}module[a35_0x330c14(0x139)]=run;function a35_0x88eb(){const _0x536b4c=['2361640MmRECW','BROWSERSTACK_RERUN_TESTS','debug','vncRH','util','serializeToYamlString','split','finalExecution','ikpKw','assign','isFalse','parse','Deleting\x20','dirname','AuZme','50WmWIGd','HDtoJ','nOcYq','browserstackSetupConfig.json','PACKAGE_TYPE','lsEyk','czjoM','existsSync','\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','--disable-test-observability','cliConfig','sLuJu','filterBrowserstackArgs','true','BROWSERSTACK_AUTOMATION','unlinkSync','win32','homedir','BypjY','BROWSERSTACK_TEST_OBSERVABILITY','startsWith','apply','ZUsgc','config','qWbFu','concat','fGQfq','192060vmIfka','resolvedConfigFile','indexOf','Error\x20in\x20getting\x20funnel\x20data\x20results','resolve','2wvBaHh','../../helpers/testhub/testhubHandler','exports','UuOPc','stringify','testObservability','../../helpers/testhub/utils','logLevel','BGzMT','winstonLogger','errorMessage','automation','--config=','CIZqD','isUndefined','.browserstack','zKBjr','getConfigPath','lPcNX','playwright-browserstack-sdk.config.js','testContextOptions','pw_result.json','../../helpers/helper','wCcpK','oCpVs','emBDy','../../helpers/test-observability/constants','npx','PLAYWRIGHT','VjjCo','map','initialize','child_process','zFifd','accessibilityOptions','EaDaV','length','findIndex','BiiiG','DgYjw','../../helpers/logger','Dkbdr','TRmBg','nestedKeyValue','10080720ZwMkPx','Gpmrn','clearTempPWConfig','573571kvEIZC','writeFileSync','5|3|0|1|2|6|8|4|7','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','oiBqn','includes','env','pEsTf','requirePWModule','dVTBD','3636773YhOwND','playwright-browserstack-sdk.config.cjs','getPackageType','BROWSERSTACK_RERUN','cwd','BROWSERSTACK_TEST_ACCESSIBILITY_YML','get','IjfWp','Error\x20in\x20deleting\x20playwright\x20results','skipSessionStatus','WYhpY','Playwright\x20process\x20exited\x20with\x20code\x20','dghFC','pxFLK','info','isTrue','push','fxwAp','GuqoO','hOKyd','--disable-browserstack-automation','aDRfF','MODULE','ZvUWk','path','has','exitCode','108714PHbEdk','../../helpers/accessibility-automation/helper','playwright','2598496fMUFyR','../../helpers/test-observability/utils','inherit','Updated\x20config\x20file\x20name\x20to\x20-\x20','eUILE','join','../../helpers/test-observability/error-handler','ViMrC','accessibility','null','jbhFP','error','BROWSERSTACK_SETUP_CONFIG_PATH','slice','isTypescriptProject','EoJfO','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','BrowserStack\x20config\x20file\x20not\x20found.','./reporter/pwUtils','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','./accessibility-helper','../../helpers/BrowserStackSetup','stop','jqLmP','launchBuild','YVutT','platform','splice','filter','jQuop','iypgI','test','close'];a35_0x88eb=function(){return _0x536b4c;};return a35_0x88eb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x3e7e99=a36_0x49e9;(function(_0x216fd8,_0x43042d){const _0x3d5e6c=a36_0x49e9,_0x2611be=_0x216fd8();while(!![]){try{const _0x425eeb=parseInt(_0x3d5e6c(0x160))/0x1+parseInt(_0x3d5e6c(0x174))/0x2*(parseInt(_0x3d5e6c(0x180))/0x3)+parseInt(_0x3d5e6c(0x162))/0x4*(-parseInt(_0x3d5e6c(0x168))/0x5)+-parseInt(_0x3d5e6c(0x16e))/0x6*(parseInt(_0x3d5e6c(0x16f))/0x7)+-parseInt(_0x3d5e6c(0x15e))/0x8*(parseInt(_0x3d5e6c(0x171))/0x9)+-parseInt(_0x3d5e6c(0x172))/0xa*(parseInt(_0x3d5e6c(0x17c))/0xb)+parseInt(_0x3d5e6c(0x178))/0xc;if(_0x425eeb===_0x43042d)break;else _0x2611be['push'](_0x2611be['shift']());}catch(_0x223192){_0x2611be['push'](_0x2611be['shift']());}}}(a36_0x4d8c,0xdb0b4));function a36_0x49e9(_0x329446,_0x1b3dc0){const _0x4d8c46=a36_0x4d8c();return a36_0x49e9=function(_0x49e980,_0x1339e5){_0x49e980=_0x49e980-0x150;let _0x1b1f07=_0x4d8c46[_0x49e980];return _0x1b1f07;},a36_0x49e9(_0x329446,_0x1b3dc0);}const util=require(a36_0x3e7e99(0x164)),child_process=require(a36_0x3e7e99(0x169)),{FRAMEWORKS}=require(a36_0x3e7e99(0x154)),{getFrameworkVersion,debug}=require(a36_0x3e7e99(0x15a)),helper=require(a36_0x3e7e99(0x158)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x3e7e99(0x175)),{mockIsWorkerRedundant}=require(a36_0x3e7e99(0x17a)),logger=require(a36_0x3e7e99(0x179))[a36_0x3e7e99(0x156)];function a36_0x4d8c(){const _0x45eba0=['Path\x20','5FOaixv','child_process','BJEXw','./mock-process.js','jgyqX','1.33.0','42EPoRsz','852173jPAHgA','Call\x20to\x20child\x20fork\x20with\x20args\x20','597942HITUcw','10pCxANH','pqPNi','14ZodVcu','./reporter/pwUtils','ZjYEk','format','33270924FdGMuX','../../helpers/logger','./patches','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','18710461aNMrtc','includes','Not\x20able\x20to\x20import\x20globalSetup','apply','421098PNsxNY','fork','GBjkW','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','function','../../helpers/test-observability/constants','cEjxE','winstonLogger','requirePWModule','../../helpers/helper','PLAYWRIGHT','../../helpers/test-observability/utils','vMoXh','isHandlePWErrorSet','config','88lZjtjE','debug','1658738RgtKgd','env','4930924sXxpQQ','vZGlD','util','error','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'];a36_0x4d8c=function(){return _0x45eba0;};return a36_0x4d8c();}module['exports']=async function(_0xf04324){const _0x3f5e60=a36_0x3e7e99,_0x45d688={'pqPNi':function(_0x3e8d26,_0xea0c67){return _0x3e8d26(_0xea0c67);},'BJEXw':function(_0x450559){return _0x450559();},'fSTJn':_0x3f5e60(0x16b),'eyocT':'Running\x20existing\x20global\x20setup','jgyqX':function(_0x23cf4a){return _0x23cf4a();},'vZGlD':function(_0x4efaa5,_0x2e4311){return _0x4efaa5>=_0x2e4311;},'ZjYEk':_0x3f5e60(0x16d),'FqJBG':function(_0xe0da9a,_0x1a109c,_0x4dc20d){return _0xe0da9a(_0x1a109c,_0x4dc20d);},'cEjxE':function(_0x338b04,_0x56930c){return _0x338b04!==_0x56930c;},'VVgQY':_0x3f5e60(0x153),'GBjkW':_0x3f5e60(0x17e),'vMoXh':function(_0x348eca,_0x57d99e){return _0x348eca(_0x57d99e);}},_0x178e5a=child_process[_0x3f5e60(0x150)];if(helper[_0x3f5e60(0x15c)]())try{_0x45d688[_0x3f5e60(0x16a)](mockIsWorkerRedundant);}catch(_0x3ee53){logger[_0x3f5e60(0x15f)](_0x3f5e60(0x166)+util[_0x3f5e60(0x177)](_0x3ee53));}child_process[_0x3f5e60(0x150)]=function(){const _0x12472f=_0x3f5e60;return _0x45d688[_0x12472f(0x173)](debug,_0x12472f(0x170)+arguments[0x0]),arguments[0x0][_0x12472f(0x17d)](_0x45d688[_0x12472f(0x16a)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x45d688['fSTJn']):logger[_0x12472f(0x165)](_0x12472f(0x167)+_0x45d688[_0x12472f(0x16a)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x178e5a[_0x12472f(0x17f)](null,arguments);};if(process[_0x3f5e60(0x161)][_0x3f5e60(0x17b)]){_0x45d688['pqPNi'](debug,_0x45d688['eyocT']);try{const {loadGlobalHook:_0x180bd0}=helper[_0x3f5e60(0x157)][_0x3f5e60(0x17f)](null,_0x45d688[_0x3f5e60(0x16c)](getLoadUtilsPath)),_0x246947=_0x45d688[_0x3f5e60(0x173)](getFrameworkVersion,FRAMEWORKS[_0x3f5e60(0x159)]);let _0x3c6bfe=_0xf04324;if(_0x45d688[_0x3f5e60(0x163)](helper['compareVersions'](_0x246947,_0x45d688[_0x3f5e60(0x176)]),0x0)){const _0xb77e57={};_0xb77e57[_0x3f5e60(0x15d)]=_0xf04324,_0x3c6bfe=_0xb77e57;}const _0x5bf752=await _0x45d688['FqJBG'](_0x180bd0,_0x3c6bfe,process[_0x3f5e60(0x161)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x45d688[_0x3f5e60(0x155)](typeof _0x5bf752,_0x45d688['VVgQY']))throw new Error(_0x45d688[_0x3f5e60(0x151)]);return _0x5bf752[_0x3f5e60(0x17f)](null,arguments);}catch(_0xed87a1){_0x45d688[_0x3f5e60(0x15b)](debug,_0x3f5e60(0x152)+_0xed87a1['toString']());}}};
|