browserstack-node-sdk 1.34.44 → 1.34.45
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/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -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/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x5e5991=a29_0x2ff6;(function(_0x573263,_0x4666d8){const _0x2172bc=a29_0x2ff6,_0x269898=_0x573263();while(!![]){try{const _0xcdc181=parseInt(_0x2172bc(0xa7))/0x1+parseInt(_0x2172bc(0x96))/0x2+-parseInt(_0x2172bc(0xc6))/0x3*(parseInt(_0x2172bc(0xae))/0x4)+-parseInt(_0x2172bc(0xa1))/0x5*(parseInt(_0x2172bc(0x98))/0x6)+-parseInt(_0x2172bc(0xf5))/0x7*(-parseInt(_0x2172bc(0xe4))/0x8)+-parseInt(_0x2172bc(0xa3))/0x9*(parseInt(_0x2172bc(0x7f))/0xa)+-parseInt(_0x2172bc(0xc9))/0xb*(-parseInt(_0x2172bc(0xaa))/0xc);if(_0xcdc181===_0x4666d8)break;else _0x269898['push'](_0x269898['shift']());}catch(_0xe03257){_0x269898['push'](_0x269898['shift']());}}}(a29_0x3430,0xa48ef));function a29_0x2ff6(_0x51913f,_0x347051){const _0x3430d3=a29_0x3430();return a29_0x2ff6=function(_0x2ff64c,_0x49dacf){_0x2ff64c=_0x2ff64c-0x7e;let _0xf39d7d=_0x3430d3[_0x2ff64c];return _0xf39d7d;},a29_0x2ff6(_0x51913f,_0x347051);}const logger=require(a29_0x5e5991(0xba))[a29_0x5e5991(0xcc)],helper=require('../../../helpers/helper'),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x5e5991(0x7e)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x5e5991(0x87)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x5e5991(0x9c)),globals=require(a29_0x5e5991(0xc0)),{overrideExecute}=require(a29_0x5e5991(0xd8)),modify=(_0x26ed3c,_0xf17c63=null,_0x2e8dfd=![])=>{const _0x2e06e0=a29_0x5e5991,_0x188234={'lyhhi':function(_0x4f422e,_0x1fa9c4){return _0x4f422e!==_0x1fa9c4;},'tpsOC':'/session','eURXj':function(_0x1371b3,_0x432aa7){return _0x1371b3+_0x432aa7;},'FTFZn':function(_0x2333f9,_0x46780d){return _0x2333f9+_0x46780d;},'mxurs':_0x2e06e0(0x9d),'QHbLt':_0x2e06e0(0x84),'SjIWD':_0x2e06e0(0xd9),'Wumkl':_0x2e06e0(0x8f),'UOPIc':_0x2e06e0(0xe5),'RhvAk':_0x2e06e0(0xbf),'nGGFD':_0x2e06e0(0xee),'qDzEN':_0x2e06e0(0xe9),'rgECA':_0x2e06e0(0x8d),'xHDcw':_0x2e06e0(0xc1),'ebwrS':'ieOptions','evwZY':function(_0x27a444,_0x3b7cdd){return _0x27a444===_0x3b7cdd;},'RckIl':_0x2e06e0(0xe0),'pBlcj':_0x2e06e0(0x90),'VXjBg':_0x2e06e0(0x82),'aWhAb':_0x2e06e0(0xcb),'LzovB':function(_0x241b48,_0x4aa23d,_0x41fa97){return _0x241b48(_0x4aa23d,_0x41fa97);},'sFTxW':'0|3|1|4|5|2','gpawb':function(_0x532306,_0x4e5bca,_0x342584){return _0x532306(_0x4e5bca,_0x342584);},'MBJjT':function(_0x41891a,_0x56a158){return _0x41891a(_0x56a158);},'oRwVb':_0x2e06e0(0x8c),'wCMdi':function(_0x346005){return _0x346005();},'QogeK':function(_0x32be72,_0x12befe){return _0x32be72(_0x12befe);},'UpScL':_0x2e06e0(0xad),'QSGiO':_0x2e06e0(0x81),'FiutF':function(_0xfa8de4,_0x1cb18e){return _0xfa8de4(_0x1cb18e);},'BDqlU':function(_0xc363d5,_0x2d19dc,_0xfa1e30){return _0xc363d5(_0x2d19dc,_0xfa1e30);},'OUdAs':_0x2e06e0(0x97),'vndou':'Modifying\x20webdriver\x20builder'},_0x207b90=helper[_0x2e06e0(0xdd)]();let _0x5b4198;try{_0x5b4198=helper[_0x2e06e0(0xdf)](),_0x5b4198[_0x2e06e0(0xb2)]&&(_0x5b4198[_0x2e06e0(0xd3)]=_0x5b4198[_0x2e06e0(0xb2)]);}catch(_0x4bce94){return;}if(helper['isBrowserstackInfra']()){const _0x6ddd64={};_0x6ddd64[_0x2e06e0(0xa8)]=_0x26ed3c[_0x2e06e0(0xab)],helper['setLogLevel'](_0x6ddd64,new Map(),new Map()),logger[_0x2e06e0(0xd0)](_0x188234['OUdAs']),logger['debug'](_0x188234[_0x2e06e0(0x95)]);}class _0x328975 extends _0x207b90[_0x2e06e0(0xb6)]{[_0x2e06e0(0xb3)](_0x2ace08){const _0x12e70f=_0x2e06e0;if(_0x188234[_0x12e70f(0xeb)](_0x2ace08[_0x12e70f(0xc8)],_0x188234['tpsOC'])&&_0x188234[_0x12e70f(0xeb)](global[_0x12e70f(0xdb)],''))try{global[_0x12e70f(0xdb)]=_0x188234['eURXj'](_0x188234[_0x12e70f(0xfa)](_0x188234[_0x12e70f(0xa0)],global[_0x12e70f(0xdb)]),_0x188234[_0x12e70f(0x86)]),this[_0x12e70f(0x99)]=hubAllocator[_0x12e70f(0x8b)](global['newHubUrl']),logger[_0x12e70f(0xb7)](_0x12e70f(0xb5)+global[_0x12e70f(0xdb)]),global[_0x12e70f(0xdb)]='';}catch(_0x56d01d){logger[_0x12e70f(0xfb)](_0x56d01d);}return super['send'](_0x2ace08);}}class _0x4c5d01 extends _0x5b4198[_0x2e06e0(0xd3)]{[_0x2e06e0(0xc4)](){const _0x4c042f=_0x2e06e0;return this[_0x4c042f(0x9e)]=helper[_0x4c042f(0xbb)](_0x26ed3c),logger[_0x4c042f(0xb7)]('Hub\x20url\x20set\x20to\x20'+this['url_']),this;}['__setBrowserOptions'](_0xef21dd){const _0x371bc9=_0x2e06e0;let _0x23feb9={};for(const _0x4d1e97 in _0xef21dd){switch(_0x4d1e97){case _0x188234['SjIWD']:case _0x188234['Wumkl']:this[_0x371bc9(0x8e)]&&(_0x23feb9=this[_0x371bc9(0x8e)]['get'](this['chromeOptions_']['CAPABILITY_KEY'])||{},this['chromeOptions_']['set'](this[_0x371bc9(0x8e)][_0x371bc9(0xcd)],helper['mergeDeep'](_0x23feb9,_0xef21dd[_0x4d1e97])));break;case _0x188234[_0x371bc9(0xa6)]:case _0x188234[_0x371bc9(0xd4)]:this[_0x371bc9(0xb1)]&&(_0x23feb9=this[_0x371bc9(0xb1)][_0x371bc9(0xf8)](this[_0x371bc9(0xb1)][_0x371bc9(0xcd)])||{},this[_0x371bc9(0xb1)][_0x371bc9(0x89)](this[_0x371bc9(0xb1)][_0x371bc9(0xcd)],helper[_0x371bc9(0xdc)](_0x23feb9,_0xef21dd[_0x4d1e97])));break;case _0x188234[_0x371bc9(0xd7)]:case _0x188234[_0x371bc9(0xf1)]:this[_0x371bc9(0x8a)]&&(_0x23feb9=this[_0x371bc9(0x8a)][_0x371bc9(0xf8)](this[_0x371bc9(0x8a)][_0x371bc9(0xcd)])||{},this[_0x371bc9(0x8a)][_0x371bc9(0x89)](this[_0x371bc9(0x8a)][_0x371bc9(0xcd)],helper['mergeDeep'](_0x23feb9,_0xef21dd[_0x4d1e97])));break;case _0x188234[_0x371bc9(0xaf)]:this['safariOptions_']&&(_0x23feb9=this['safariOptions_'][_0x371bc9(0xf8)](this['safariOptions_'][_0x371bc9(0xcd)])||{},this[_0x371bc9(0xcf)]['set'](this[_0x371bc9(0xcf)][_0x371bc9(0xcd)],helper['mergeDeep'](_0x23feb9,_0xef21dd[_0x4d1e97])));break;case _0x188234[_0x371bc9(0xed)]:case _0x188234['ebwrS']:this[_0x371bc9(0xbe)]&&(_0x23feb9=this['ieOptions_'][_0x371bc9(0xf8)](this['ieOptions_'][_0x371bc9(0xcd)])||{},this[_0x371bc9(0xbe)][_0x371bc9(0x89)](this[_0x371bc9(0xbe)][_0x371bc9(0xcd)],helper[_0x371bc9(0xdc)](_0x23feb9,_0xef21dd[_0x4d1e97])));break;}}}[_0x2e06e0(0xbc)](){const _0x57606f=_0x2e06e0;return logger[_0x57606f(0xb7)](_0x188234[_0x57606f(0xa9)]),this[_0x57606f(0x88)](_0x26ed3c['capability']),Object[_0x57606f(0x93)](_0x26ed3c[_0x57606f(0x83)])['forEach'](_0x1ca56b=>{const _0x32f2e2=_0x57606f,_0x2b1ef7=this['capabilities_'][_0x32f2e2(0xf8)](_0x1ca56b);_0x188234[_0x32f2e2(0xa4)](typeof _0x2b1ef7,_0x188234['RckIl'])?this[_0x32f2e2(0xb8)][_0x32f2e2(0x89)](_0x1ca56b,helper[_0x32f2e2(0xdc)](_0x2b1ef7,_0x26ed3c['capability'][_0x1ca56b])):this[_0x32f2e2(0xb8)]['set'](_0x1ca56b,_0x26ed3c['capability'][_0x1ca56b]);}),this;}[_0x2e06e0(0xbd)](){const _0x578731=_0x2e06e0,_0x16d080={'KiqSZ':function(_0x21223c,_0x16b7fa,_0x6d5c31){const _0x2c0ba2=a29_0x2ff6;return _0x188234[_0x2c0ba2(0xd5)](_0x21223c,_0x16b7fa,_0x6d5c31);},'aTZvf':function(_0x1262ab,_0x37709f,_0x14e1b7){const _0x4eeb27=a29_0x2ff6;return _0x188234[_0x4eeb27(0xd5)](_0x1262ab,_0x37709f,_0x14e1b7);},'QSzjB':_0x188234[_0x578731(0xd2)],'uRqsw':function(_0x79c13e,_0x27da5c,_0x1e2eab){return _0x188234['gpawb'](_0x79c13e,_0x27da5c,_0x1e2eab);},'ZJpcV':function(_0xdc9644,_0x2c7271){const _0x2cf8cd=_0x578731;return _0x188234[_0x2cf8cd(0xf6)](_0xdc9644,_0x2c7271);}};if(helper[_0x578731(0xec)]()){const _0x489207=_0x188234[_0x578731(0xf2)]['split']('|');let _0x4e2353=0x0;while(!![]){switch(_0x489207[_0x4e2353++]){case'0':_0x188234[_0x578731(0xac)](isAccessibilityAutomationSession)&&_0x188234[_0x578731(0xb4)](setAccessibilityCapabilities,_0x26ed3c);continue;case'1':logger[_0x578731(0xb7)](_0x188234[_0x578731(0xa2)]);continue;case'2':if(helper[_0x578731(0xc7)](_0x26ed3c[_0x578731(0x94)]['proxyUrl']))this['agent_']=helper[_0x578731(0xe8)](_0x26ed3c[_0x578731(0x94)][_0x578731(0x80)]);else _0x26ed3c[_0x578731(0x94)][_0x578731(0x80)]&&(this[_0x578731(0xe1)]=_0x26ed3c[_0x578731(0x94)][_0x578731(0x80)],logger[_0x578731(0xb7)](_0x578731(0xde)+this[_0x578731(0xe1)]));continue;case'3':this[_0x578731(0xbc)]();continue;case'4':globals['getGlobal'](_0x188234[_0x578731(0xef)])&&(!_0x188234[_0x578731(0xf3)](setExtension,this,_0x26ed3c)&&globals[_0x578731(0xd1)](_0x188234[_0x578731(0xef)],![]));continue;case'5':this[_0x578731(0xc4)]();continue;}break;}}const _0x498459=super[_0x578731(0xbd)]();return _0x498459[_0x578731(0x9b)][_0x578731(0xe7)](_0x6420d3=>{const _0x49e8ab=_0x578731;try{const _0x170550=_0x6420d3['caps_'][_0x49e8ab(0xf8)](_0x188234[_0x49e8ab(0xf4)]);_0x170550?(logger[_0x49e8ab(0xb7)](_0x49e8ab(0xb0)+_0x170550),hubAllocator[_0x49e8ab(0x9f)](_0x170550),helper['storeOptimalHubUrl'](_0x170550)):logger[_0x49e8ab(0xb7)](_0x188234[_0x49e8ab(0xca)]);}catch(_0x44cf60){logger[_0x49e8ab(0xb7)](_0x49e8ab(0xf0)+_0x44cf60);}}),_0x498459[_0x578731(0xda)]=0x0,_0x498459[_0x578731(0xe7)]&&_0x498459[_0x578731(0xe7)](_0x44bdab=>{const _0xd90ef4=_0x578731,_0x12c24a=_0x16d080[_0xd90ef4(0xe2)][_0xd90ef4(0xce)]('|');let _0x501dd4=0x0;while(!![]){switch(_0x12c24a[_0x501dd4++]){case'0':_0x16d080['uRqsw'](overrideQuit,_0x44bdab,_0x498459);continue;case'1':helper[_0xd90ef4(0xf7)](_0x44bdab,_0x26ed3c);continue;case'2':_0x44bdab[_0xd90ef4(0x92)]=async()=>{const _0x4017e8=_0xd90ef4;return await _0x16d080[_0x4017e8(0xf9)](getAccessibilityResults,_0x44bdab,global);};continue;case'3':_0x16d080['ZJpcV'](overrideTakeScreenshot,_0x44bdab);continue;case'4':_0x16d080[_0xd90ef4(0xa5)](overrideExecute,_0x44bdab,_0x26ed3c);continue;case'5':_0x44bdab[_0xd90ef4(0x9a)]=async()=>{return await _0x16d080['KiqSZ'](getAccessibilityResultsSummary,_0x44bdab,global);};continue;}break;}}),_0x498459['getAccessibilityResultsSummary']=async()=>{const _0xe9bd34=_0x578731;return await _0x16d080[_0xe9bd34(0xf9)](getAccessibilityResultsSummary,_0x498459,global);},_0x498459['getAccessibilityResults']=async()=>{const _0x378239=_0x578731;return await _0x188234[_0x378239(0xd5)](getAccessibilityResults,_0x498459,global);},_0x188234[_0x578731(0xb4)](overrideTakeScreenshot,_0x498459),_0x188234[_0x578731(0xe3)](overrideQuit,_0x498459),helper[_0x578731(0xf7)](_0x498459,_0x26ed3c),_0x188234[_0x578731(0xc2)](overrideExecute,_0x498459,_0x26ed3c),helper[_0x578731(0xe6)](global['__driversArray'])&&(global[_0x578731(0x85)]=[]),helper[_0x578731(0xe6)](global[_0x578731(0xea)])&&(global['__drivers']=[]),global['__driversArray'][_0x578731(0xd6)](_0x498459),global[_0x578731(0xc3)]=_0x498459,_0x188234['lyhhi'](global[_0x578731(0xea)],undefined)&&global[_0x578731(0xea)][_0x578731(0xd6)](_0x498459),_0xf17c63&&helper[_0x578731(0xe6)](_0xf17c63[_0x578731(0xc5)]['__driversArray'])&&(_0xf17c63['global'][_0x578731(0x85)]=[]),_0xf17c63&&_0x188234[_0x578731(0xeb)](_0xf17c63[_0x578731(0xc5)]['__drivers'],undefined)&&(_0xf17c63['global']['__drivers']['push'](_0x498459),_0xf17c63[_0x578731(0xc5)][_0x578731(0x85)][_0x578731(0xd6)](_0x498459)),_0x498459;}}return _0x5b4198[_0x2e06e0(0xb2)]=_0x5b4198[_0x2e06e0(0xd3)],_0x5b4198['Builder']=_0x4c5d01,_0x207b90[_0x2e06e0(0xb6)]=_0x328975,_0x5b4198;};module[a29_0x5e5991(0x91)][a29_0x5e5991(0xb9)]=modify;function a29_0x3430(){const _0x4331a7=['11EhptYJ','aWhAb','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','winstonLogger','CAPABILITY_KEY','split','safariOptions_','info','setGlobal','sFTxW','Builder','RhvAk','LzovB','push','nGGFD','./helpers/patchHelper','goog:chromeOptions','quitCount_','newHubUrl','mergeDeep','requireHttpClient','Proxy\x20set\x20to\x20','requireSeleniumWebdriver','object','proxy_','QSzjB','FiutF','8HSujAk','ms:edgeOptions','isUndefined','then','getHttpAgent','firefoxOptions','__drivers','lyhhi','isBrowserstackInfra','xHDcw','moz:firefoxOptions','QSGiO','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','qDzEN','oRwVb','gpawb','VXjBg','2252418rZoWpA','MBJjT','overrideGet','get','aTZvf','FTFZn','error','../../../hubAllocationMethods','10IjIoHt','proxyUrl','isAccessibilityPlatform','optimalHubUrl','capability','/wd/hub','__driversArray','QHbLt','../../../helpers/patchHelpers','__setBrowserOptions','set','firefoxOptions_','getRequestOptions','0|5|3|2|4|1','safari.options','chromeOptions_','chromeOptions','Setting\x20Browserstack\x20capabilities','exports','getAccessibilityResults','keys','proxySettings','vndou','1260148pjglWN','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','6129348zRcnsR','options_','getAccessibilityResultsSummary','session_','../../../helpers/accessibility-automation/helper','https://','url_','updateHubUrl','mxurs','5pagqXd','UpScL','8187597WpuhyQ','evwZY','KiqSZ','UOPIc','352829VTCBpk','logLevel','pBlcj','18459516ULOklQ','browserStackLogLevel','wCMdi','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','12ONlfjV','rgECA','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','edgeOptions_','originalBuilder','send','QogeK','New\x20hub\x20url\x20set\x20to\x20','HttpClient','debug','capabilities_','browserstackAgentObservability','../../../helpers/logger','getHubUrl','setCapabilities','build','ieOptions_','edgeOptions','../../../helpers/globals','se:ieOptions','BDqlU','__driver','setServer','global','237648AaUfPA','isPacProxy','path'];a29_0x3430=function(){return _0x4331a7;};return a29_0x3430();}
|
|
1
|
+
const a29_0x4093e4=a29_0x29ca;(function(_0x43c171,_0x2c8ec6){const _0x3e8a50=a29_0x29ca,_0x58faeb=_0x43c171();while(!![]){try{const _0x3261c9=parseInt(_0x3e8a50(0x202))/0x1*(-parseInt(_0x3e8a50(0x1b4))/0x2)+-parseInt(_0x3e8a50(0x1a8))/0x3+parseInt(_0x3e8a50(0x1db))/0x4+-parseInt(_0x3e8a50(0x1a2))/0x5*(-parseInt(_0x3e8a50(0x1a5))/0x6)+parseInt(_0x3e8a50(0x1b1))/0x7+-parseInt(_0x3e8a50(0x1c9))/0x8+parseInt(_0x3e8a50(0x20a))/0x9*(-parseInt(_0x3e8a50(0x20b))/0xa);if(_0x3261c9===_0x2c8ec6)break;else _0x58faeb['push'](_0x58faeb['shift']());}catch(_0x3cee03){_0x58faeb['push'](_0x58faeb['shift']());}}}(a29_0x12eb,0x69539));function a29_0x12eb(){const _0x4c44f6=['getAccessibilityResults','options_','tCQQl','set','4|3|0|5|1|2','lOELO','overrideGet','goog:chromeOptions','info','3304560ADRVmI','getAccessibilityResultsSummary','GitRO','url_','edgeOptions','__drivers','getHttpAgent','../../../helpers/globals','path','setCapabilities','push','CAPABILITY_KEY','Hub\x20url\x20set\x20to\x20','session_','Proxy\x20set\x20to\x20','firefoxOptions_','../../../helpers/accessibility-automation/helper','VLCjZ','2332848gJgvxf','TsUob','EcVpR','safari.options','Setting\x20Browserstack\x20capabilities','getHubUrl','yrpmP','Cfitp','chromeOptions','then','quitCount_','../../../bin/utils/constants','keys','SABoB','AmYgE','Builder','AXUfj','debug','browserstackAgentObservability','error','get','newHubUrl','rjBwM','__setBrowserOptions','opsXP','edgeOptions_','setGlobal','ms:edgeOptions','send','isUndefined','object','originalBuilder','__driversArray','isPacProxy','GWnPN','requireSeleniumWebdriver','ieOptions','build','moz:firefoxOptions','113tIhqwR','exports','chromeOptions_','ieOptions_','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','WBxAf','DOClo','HttpClient','313596QOYAoE','260ZctpRU','proxySettings','xBwkx','mergeDeep','../../../hubAllocationMethods','logLevel','New\x20hub\x20url\x20set\x20to\x20','split','OyLkW','3690035QgwCsS','isBrowserstackInfra','TTgOs','6wLJaOI','uirSW','MPlke','467526TQRYDl','optimalHubUrl','setServer','BcCId','caps_','../accessibility-automation/helper','requireHttpClient','safariOptions_','forEach','5427422MvMnCQ','proxyUrl','../../../helpers/logger','3368XaqsoG','/session','NAodN','dRcYU','capability','getRequestOptions','proxy_','UTtpm','/wd/hub','capabilities_','global','nNuFl'];a29_0x12eb=function(){return _0x4c44f6;};return a29_0x12eb();}const logger=require(a29_0x4093e4(0x1b3))['winstonLogger'],helper=require('../../../helpers/helper'),constants=require(a29_0x4093e4(0x1e6)),hubAllocator=require(a29_0x4093e4(0x20f)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a29_0x4093e4(0x1ad)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x4093e4(0x1d9)),globals=require(a29_0x4093e4(0x1d0)),{overrideExecute}=require('./helpers/patchHelper'),modify=(_0x36229f,_0x4577b6=null,_0xdf7187=![])=>{const _0x25e759=a29_0x4093e4,_0x3554bf={'BcCId':function(_0xaf2e78,_0x5c22c5){return _0xaf2e78!==_0x5c22c5;},'Cfitp':_0x25e759(0x1b5),'TsUob':function(_0x3eeb9d,_0x110480){return _0x3eeb9d!==_0x110480;},'GzYhj':function(_0x3fe271,_0x5bb13e){return _0x3fe271+_0x5bb13e;},'WBxAf':function(_0x447e2e,_0x105877){return _0x447e2e+_0x105877;},'GWZUl':'https://','XuHor':_0x25e759(0x1bc),'uirSW':_0x25e759(0x1c7),'egKTe':_0x25e759(0x1e3),'MPlke':_0x25e759(0x1f6),'TTgOs':_0x25e759(0x1cd),'jsvgE':_0x25e759(0x201),'YiGZM':'firefoxOptions','MYXme':_0x25e759(0x1de),'AmYgE':'se:ieOptions','UXRmD':_0x25e759(0x1ff),'rjBwM':function(_0x22e9a4,_0xcf92d9){return _0x22e9a4===_0xcf92d9;},'gukaP':_0x25e759(0x1f9),'tCQQl':_0x25e759(0x1df),'UTtpm':'5|2|3|0|4|1','uJXiY':function(_0x2d5c2e,_0x436be8,_0x1952ff){return _0x2d5c2e(_0x436be8,_0x1952ff);},'lOELO':function(_0x39bf10,_0x525f07){return _0x39bf10(_0x525f07);},'OyLkW':function(_0x280533,_0x157c65,_0x172389){return _0x280533(_0x157c65,_0x172389);},'SABoB':_0x25e759(0x1a9),'dRcYU':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','GWnPN':function(_0x123442,_0x4faa15,_0x4d7d6b){return _0x123442(_0x4faa15,_0x4d7d6b);},'yrpmP':function(_0x584ce6,_0x5df0bb,_0x35d1e5){return _0x584ce6(_0x5df0bb,_0x35d1e5);},'xWtDB':_0x25e759(0x1c4),'GitRO':'isAccessibilityPlatform','yfZDN':function(_0x406fe6,_0x59307,_0x2c5af3){return _0x406fe6(_0x59307,_0x2c5af3);},'EcVpR':_0x25e759(0x206),'VLCjZ':function(_0x3760dd){return _0x3760dd();},'AXUfj':function(_0x1736d2,_0x5e297b){return _0x1736d2(_0x5e297b);},'xBwkx':function(_0x3758d7,_0x414ebc,_0xc25638){return _0x3758d7(_0x414ebc,_0xc25638);},'DOClo':function(_0x3a0ced,_0x309c9f){return _0x3a0ced!==_0x309c9f;},'BqvRi':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','nNuFl':'Modifying\x20webdriver\x20builder'},_0x3db6f1=helper[_0x25e759(0x1ae)]();let _0x4de639;try{_0x4de639=helper[_0x25e759(0x1fe)](),_0x4de639[_0x25e759(0x1fa)]&&(_0x4de639['Builder']=_0x4de639[_0x25e759(0x1fa)]);}catch(_0x21d1b){return;}if(helper['isBrowserstackInfra']()){const _0x37a790={};_0x37a790[_0x25e759(0x210)]=_0x36229f['browserStackLogLevel'],helper['setLogLevel'](_0x37a790,new Map(),new Map()),logger[_0x25e759(0x1c8)](_0x3554bf['BqvRi']),logger['debug'](_0x3554bf[_0x25e759(0x1bf)]);}class _0x2e9daf extends _0x3db6f1[_0x25e759(0x209)]{[_0x25e759(0x1f7)](_0x38f3b8){const _0x14c703=_0x25e759;if(_0x3554bf[_0x14c703(0x1ab)](_0x38f3b8[_0x14c703(0x1d1)],_0x3554bf[_0x14c703(0x1e2)])&&_0x3554bf[_0x14c703(0x1dc)](global[_0x14c703(0x1f0)],''))try{global['newHubUrl']=_0x3554bf['GzYhj'](_0x3554bf[_0x14c703(0x207)](_0x3554bf['GWZUl'],global['newHubUrl']),_0x3554bf['XuHor']),this[_0x14c703(0x1c1)]=hubAllocator[_0x14c703(0x1b9)](global[_0x14c703(0x1f0)]),logger[_0x14c703(0x1ec)](_0x14c703(0x19f)+global['newHubUrl']),global[_0x14c703(0x1f0)]='';}catch(_0x16ad08){logger[_0x14c703(0x1ee)](_0x16ad08);}return super[_0x14c703(0x1f7)](_0x38f3b8);}}class _0x3abc52 extends _0x4de639['Builder']{[_0x25e759(0x1aa)](){const _0x4c3436=_0x25e759;return this['url_']=helper[_0x4c3436(0x1e0)](_0x36229f),logger[_0x4c3436(0x1ec)](_0x4c3436(0x1d5)+this[_0x4c3436(0x1cc)]),this;}[_0x25e759(0x1f2)](_0x2abe2d){const _0x14f255=_0x25e759;let _0x5a896d={};for(const _0xf6a6da in _0x2abe2d){switch(_0xf6a6da){case _0x3554bf[_0x14f255(0x1a6)]:case _0x3554bf['egKTe']:this['chromeOptions_']&&(_0x5a896d=this[_0x14f255(0x204)]['get'](this[_0x14f255(0x204)][_0x14f255(0x1d4)])||{},this[_0x14f255(0x204)][_0x14f255(0x1c3)](this[_0x14f255(0x204)]['CAPABILITY_KEY'],helper[_0x14f255(0x20e)](_0x5a896d,_0x2abe2d[_0xf6a6da])));break;case _0x3554bf[_0x14f255(0x1a7)]:case _0x3554bf[_0x14f255(0x1a4)]:this[_0x14f255(0x1f4)]&&(_0x5a896d=this['edgeOptions_']['get'](this['edgeOptions_'][_0x14f255(0x1d4)])||{},this[_0x14f255(0x1f4)][_0x14f255(0x1c3)](this[_0x14f255(0x1f4)][_0x14f255(0x1d4)],helper[_0x14f255(0x20e)](_0x5a896d,_0x2abe2d[_0xf6a6da])));break;case _0x3554bf['jsvgE']:case _0x3554bf['YiGZM']:this['firefoxOptions_']&&(_0x5a896d=this['firefoxOptions_']['get'](this[_0x14f255(0x1d8)][_0x14f255(0x1d4)])||{},this[_0x14f255(0x1d8)]['set'](this[_0x14f255(0x1d8)][_0x14f255(0x1d4)],helper[_0x14f255(0x20e)](_0x5a896d,_0x2abe2d[_0xf6a6da])));break;case _0x3554bf['MYXme']:this[_0x14f255(0x1af)]&&(_0x5a896d=this['safariOptions_'][_0x14f255(0x1ef)](this[_0x14f255(0x1af)][_0x14f255(0x1d4)])||{},this[_0x14f255(0x1af)][_0x14f255(0x1c3)](this[_0x14f255(0x1af)]['CAPABILITY_KEY'],helper[_0x14f255(0x20e)](_0x5a896d,_0x2abe2d[_0xf6a6da])));break;case _0x3554bf[_0x14f255(0x1e9)]:case _0x3554bf['UXRmD']:this[_0x14f255(0x205)]&&(_0x5a896d=this['ieOptions_']['get'](this['ieOptions_'][_0x14f255(0x1d4)])||{},this[_0x14f255(0x205)][_0x14f255(0x1c3)](this['ieOptions_'][_0x14f255(0x1d4)],helper[_0x14f255(0x20e)](_0x5a896d,_0x2abe2d[_0xf6a6da])));break;}}}['setCapabilities'](){const _0x39a87c=_0x25e759;return logger['debug'](_0x3554bf[_0x39a87c(0x1c2)]),this['__setBrowserOptions'](_0x36229f[_0x39a87c(0x1b8)]),Object[_0x39a87c(0x1e7)](_0x36229f[_0x39a87c(0x1b8)])[_0x39a87c(0x1b0)](_0x4c86d2=>{const _0x103030=_0x39a87c,_0x21ddca=this[_0x103030(0x1bd)][_0x103030(0x1ef)](_0x4c86d2);_0x3554bf[_0x103030(0x1f1)](typeof _0x21ddca,_0x3554bf['gukaP'])?this[_0x103030(0x1bd)][_0x103030(0x1c3)](_0x4c86d2,helper[_0x103030(0x20e)](_0x21ddca,_0x36229f[_0x103030(0x1b8)][_0x4c86d2])):this['capabilities_']['set'](_0x4c86d2,_0x36229f[_0x103030(0x1b8)][_0x4c86d2]);}),this;}[_0x25e759(0x200)](){const _0x54b7c0=_0x25e759,_0x36eaf0={'rbCoF':_0x3554bf[_0x54b7c0(0x1e8)],'pFkaj':_0x3554bf[_0x54b7c0(0x1b7)],'PCVNX':function(_0x231f15,_0x541123,_0x20a82f){const _0x4e083a=_0x54b7c0;return _0x3554bf[_0x4e083a(0x1a1)](_0x231f15,_0x541123,_0x20a82f);},'opsXP':function(_0x47c0e1,_0x5f04a8,_0x105dd8){const _0x37dcdb=_0x54b7c0;return _0x3554bf[_0x37dcdb(0x1fd)](_0x47c0e1,_0x5f04a8,_0x105dd8);},'NAodN':function(_0x547876,_0x46b880,_0x168016){const _0x513242=_0x54b7c0;return _0x3554bf[_0x513242(0x1e1)](_0x547876,_0x46b880,_0x168016);}};if(helper[_0x54b7c0(0x1a3)]()){const _0x2567d3=_0x3554bf['xWtDB'][_0x54b7c0(0x1a0)]('|');let _0x402fc0=0x0;while(!![]){switch(_0x2567d3[_0x402fc0++]){case'0':this[_0x54b7c0(0x1d2)]();continue;case'1':globals['getGlobal'](_0x3554bf[_0x54b7c0(0x1cb)])&&(!_0x3554bf['yfZDN'](setExtension,this,_0x36229f)&&globals[_0x54b7c0(0x1f5)](_0x3554bf['GitRO'],![]));continue;case'2':logger[_0x54b7c0(0x1ec)](_0x3554bf[_0x54b7c0(0x1dd)]);continue;case'3':this[_0x54b7c0(0x1aa)]();continue;case'4':_0x3554bf[_0x54b7c0(0x1da)](isAccessibilityAutomationSession)&&_0x3554bf[_0x54b7c0(0x1c5)](setAccessibilityCapabilities,_0x36229f);continue;case'5':if(helper[_0x54b7c0(0x1fc)](_0x36229f[_0x54b7c0(0x20c)][_0x54b7c0(0x1b2)]))this['agent_']=helper[_0x54b7c0(0x1cf)](_0x36229f[_0x54b7c0(0x20c)][_0x54b7c0(0x1b2)]);else _0x36229f[_0x54b7c0(0x20c)][_0x54b7c0(0x1b2)]&&(this[_0x54b7c0(0x1ba)]=_0x36229f[_0x54b7c0(0x20c)][_0x54b7c0(0x1b2)],logger[_0x54b7c0(0x1ec)](_0x54b7c0(0x1d7)+this[_0x54b7c0(0x1ba)]));continue;}break;}}const _0x176b8c=super[_0x54b7c0(0x200)]();return _0x176b8c[_0x54b7c0(0x1d6)]['then'](_0x13f56a=>{const _0x46e3d5=_0x54b7c0;try{const _0x3b103b=_0x13f56a[_0x46e3d5(0x1ac)][_0x46e3d5(0x1ef)](_0x36eaf0['rbCoF']);_0x3b103b?(logger['debug']('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x3b103b),hubAllocator['updateHubUrl'](_0x3b103b),helper['storeOptimalHubUrl'](_0x3b103b)):logger['debug'](_0x36eaf0['pFkaj']);}catch(_0xcfd16c){logger['debug']('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0xcfd16c);}}),_0x176b8c[_0x54b7c0(0x1e5)]=0x0,_0x176b8c[_0x54b7c0(0x1e4)]&&_0x176b8c['then'](_0x4a8ec9=>{const _0x531afe=_0x54b7c0,_0x323848=_0x3554bf[_0x531afe(0x1bb)]['split']('|');let _0x5e0bfa=0x0;while(!![]){switch(_0x323848[_0x5e0bfa++]){case'0':_0x3554bf['uJXiY'](overrideExecute,_0x4a8ec9,_0x36229f);continue;case'1':_0x4a8ec9[_0x531afe(0x1c0)]=async()=>{const _0x18aa3f=_0x531afe;return await _0x36eaf0[_0x18aa3f(0x1f3)](getAccessibilityResults,_0x4a8ec9,global);};continue;case'2':_0x3554bf['lOELO'](overrideTakeScreenshot,_0x4a8ec9);continue;case'3':helper[_0x531afe(0x1c6)](_0x4a8ec9,_0x36229f);continue;case'4':_0x4a8ec9[_0x531afe(0x1ca)]=async()=>{return await _0x36eaf0['PCVNX'](getAccessibilityResultsSummary,_0x4a8ec9,global);};continue;case'5':_0x3554bf[_0x531afe(0x1a1)](overrideQuit,_0x4a8ec9,_0x176b8c);continue;}break;}}),_0x176b8c[_0x54b7c0(0x1ca)]=async()=>{return await _0x36eaf0['PCVNX'](getAccessibilityResultsSummary,_0x176b8c,global);},_0x176b8c[_0x54b7c0(0x1c0)]=async()=>{const _0x52476b=_0x54b7c0;return await _0x36eaf0[_0x52476b(0x1b6)](getAccessibilityResults,_0x176b8c,global);},_0x3554bf[_0x54b7c0(0x1eb)](overrideTakeScreenshot,_0x176b8c),_0x3554bf[_0x54b7c0(0x1c5)](overrideQuit,_0x176b8c),helper[_0x54b7c0(0x1c6)](_0x176b8c,_0x36229f),_0x3554bf[_0x54b7c0(0x20d)](overrideExecute,_0x176b8c,_0x36229f),helper[_0x54b7c0(0x1f8)](global[_0x54b7c0(0x1fb)])&&(global['__driversArray']=[]),helper[_0x54b7c0(0x1f8)](global[_0x54b7c0(0x1ce)])&&(global['__drivers']=[]),global[_0x54b7c0(0x1fb)][_0x54b7c0(0x1d3)](_0x176b8c),global['__driver']=_0x176b8c,_0x3554bf['DOClo'](global[_0x54b7c0(0x1ce)],undefined)&&global[_0x54b7c0(0x1ce)]['push'](_0x176b8c),_0x4577b6&&helper['isUndefined'](_0x4577b6[_0x54b7c0(0x1be)]['__driversArray'])&&(_0x4577b6['global'][_0x54b7c0(0x1fb)]=[]),_0x4577b6&&_0x3554bf[_0x54b7c0(0x208)](_0x4577b6['global'][_0x54b7c0(0x1ce)],undefined)&&(_0x4577b6['global'][_0x54b7c0(0x1ce)][_0x54b7c0(0x1d3)](_0x176b8c),_0x4577b6[_0x54b7c0(0x1be)][_0x54b7c0(0x1fb)][_0x54b7c0(0x1d3)](_0x176b8c)),_0x176b8c;}}return _0x4de639[_0x25e759(0x1fa)]=_0x4de639['Builder'],_0x4de639[_0x25e759(0x1ea)]=_0x3abc52,_0x3db6f1[_0x25e759(0x209)]=_0x2e9daf,_0x4de639;};function a29_0x29ca(_0x1cda70,_0x1e4db4){const _0x12eb1d=a29_0x12eb();return a29_0x29ca=function(_0x29ca8f,_0x468dd2){_0x29ca8f=_0x29ca8f-0x19f;let _0x344785=_0x12eb1d[_0x29ca8f];return _0x344785;},a29_0x29ca(_0x1cda70,_0x1e4db4);}module[a29_0x4093e4(0x203)][a29_0x4093e4(0x1ed)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a30_0x61dc(){const _0x28aa9d=['1456287pdZRbs','LkbmJ','3228558DbQemy','369bEBeCu','462712QVcWiG','mochaHooks','127diLvbA','8382oOxCmN','../../../helpers/request-spy','4064890wjShCx','timeout','1067206PdSMSx','1078832xqMmxF','restore'];a30_0x61dc=function(){return _0x28aa9d;};return a30_0x61dc();}const a30_0x3597df=a30_0x6a21;(function(_0x32b323,_0x2eb171){const _0x37291b=a30_0x6a21,_0x255776=_0x32b323();while(!![]){try{const _0x53ee80=parseInt(_0x37291b(0xb7))/0x1*(parseInt(_0x37291b(0xaa))/0x2)+parseInt(_0x37291b(0xb1))/0x3+parseInt(_0x37291b(0xaf))/0x4+parseInt(_0x37291b(0xac))/0x5+parseInt(_0x37291b(0xb3))/0x6+parseInt(_0x37291b(0xae))/0x7+parseInt(_0x37291b(0xb5))/0x8*(-parseInt(_0x37291b(0xb4))/0x9);if(_0x53ee80===_0x2eb171)break;else _0x255776['push'](_0x255776['shift']());}catch(_0x9366ef){_0x255776['push'](_0x255776['shift']());}}}(a30_0x61dc,0x666c4));const requestSpy=require(a30_0x3597df(0xab)),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require('../../../helpers/test-observability/utils');function a30_0x6a21(_0x52c079,_0x64cac8){const _0x61dc65=a30_0x61dc();return a30_0x6a21=function(_0x6a21ce,_0x40c9b7){_0x6a21ce=_0x6a21ce-0xaa;let _0x5412f9=_0x61dc65[_0x6a21ce];return _0x5412f9;},a30_0x6a21(_0x52c079,_0x64cac8);}exports[a30_0x3597df(0xb6)]={'beforeAll'(){const _0x379c6a=a30_0x3597df,_0x1172ac={'LkbmJ':function(_0x163d31){return _0x163d31();}},_0x3f29e0='browserstack internal helper hook';_0x1172ac[_0x379c6a(0xb2)](addRequestSpy);},'afterAll'(){const _0x1d5ef8=a30_0x3597df,_0x24f16f='browserstack internal helper hook';this[_0x1d5ef8(0xad)](0xea60),requestSpy[_0x1d5ef8(0xb0)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a31_0x3cd5e1=a31_0x5d7b;function a31_0x5d7b(_0x518566,_0xa39b0b){const _0x5f5343=a31_0x5f53();return a31_0x5d7b=function(_0x5d7bdb,_0x4e19a5){_0x5d7bdb=_0x5d7bdb-0xea;let _0x4f643d=_0x5f5343[_0x5d7bdb];return _0x4f643d;},a31_0x5d7b(_0x518566,_0xa39b0b);}function a31_0x5f53(){const _0x97f51=['9HSuOWR','sendPlatformDetails','fromEntries','_beforeAll','concat','SJHDt','HIyil','indexOf','toISOString','slice','hook','10623uchTvN','PxTEG','LAmCb','sXIcl','OxuHm','bs:addPlatformDetails:','mapTestHooks','unknown_grid','split','644534mgFkEP','207949fOUBtX','eNZoN','aSqzu','RjCgJ','forEach','SJziv','passed','suites','gQIJS','type','getBrowserVersion','TEST_PLATFORM','VuLxA','winBK','markedStatus','getCapabilities','state','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','uUWeO','656NIapDC','LomdO','HWFoC','../../../helpers/helper','../../../helpers/testhub/utils','_afterEach','pid','151737lIoanc','failed','getTestEnv','xwJXP','152olOQlV','AtxOb','getPlatform','getHookSkippedTests','substring','getHookDetails','string','_beforeEach','nfMzE','parent','tGujt','filter','../../../helpers/test-observability/utils','js-','hook:','getHooksForTest','10362020WZZJTV','708iBkHcj','gZFPe','../../../helpers/test-observability/constants','ePeSa','25YEDghm','../../../../package.json','yamPE','3047350QoWHAU','hookAnalyticsId','hgbWP','BSRJt','__cloud_provider___','map_','emit','push','tests','1005234LqZRVr','KYyaD','_afterAll','ErIAr','browserstack','xaJRe','uuid'];a31_0x5f53=function(){return _0x97f51;};return a31_0x5f53();}(function(_0x5caa7c,_0x16d62d){const _0x4ec9db=a31_0x5d7b,_0x27813a=_0x5caa7c();while(!![]){try{const _0x3e4764=-parseInt(_0x4ec9db(0xee))/0x1+parseInt(_0x4ec9db(0x10a))/0x2+-parseInt(_0x4ec9db(0x125))/0x3*(-parseInt(_0x4ec9db(0x142))/0x4)+parseInt(_0x4ec9db(0x107))/0x5*(parseInt(_0x4ec9db(0x113))/0x6)+-parseInt(_0x4ec9db(0x12f))/0x7*(-parseInt(_0x4ec9db(0xf2))/0x8)+parseInt(_0x4ec9db(0x11a))/0x9*(parseInt(_0x4ec9db(0x102))/0xa)+parseInt(_0x4ec9db(0x12e))/0xb*(-parseInt(_0x4ec9db(0x103))/0xc);if(_0x3e4764===_0x16d62d)break;else _0x27813a['push'](_0x27813a['shift']());}catch(_0x1e77ae){_0x27813a['push'](_0x27813a['shift']());}}}(a31_0x5f53,0xe403a));const {v4:uuidv4}=require(a31_0x3cd5e1(0x119)),{name,version}=require(a31_0x3cd5e1(0x108)),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x3cd5e1(0xfe)),{consoleHolder}=require(a31_0x3cd5e1(0x105)),{getPlatformVersion}=require(a31_0x3cd5e1(0xea)),{shouldProcessEventForTesthub}=require(a31_0x3cd5e1(0xeb)),{isFunction}=require('lodash'),{patchConsoleLogger}=require('../../../helpers/test-observability/utils');patchConsoleLogger(),exports[a31_0x3cd5e1(0xf0)]=()=>{const _0x18b1de=a31_0x3cd5e1,_0xc645c={'OGIZu':'generic','RjCgJ':function(_0x1d08c1){return _0x1d08c1();}};return{'ci':_0xc645c['OGIZu'],'key':_0xc645c[_0x18b1de(0x132)](uuidv4),'version':version,'collector':_0x18b1de(0xff)+name};},exports[a31_0x3cd5e1(0xf7)]=_0x7dcebd=>{const _0x5fdae1=a31_0x3cd5e1,_0xc25cf6={};_0xc25cf6[_0x5fdae1(0x104)]=function(_0x412023,_0x3377b2){return _0x412023!==_0x3377b2;},_0xc25cf6[_0x5fdae1(0x116)]=_0x5fdae1(0xf8),_0xc25cf6[_0x5fdae1(0x13b)]=_0x5fdae1(0x100),_0xc25cf6[_0x5fdae1(0x106)]='hook';const _0x435cef=_0xc25cf6;if(!_0x7dcebd||_0x435cef[_0x5fdae1(0x104)](typeof _0x7dcebd,_0x435cef['ErIAr']))return[null,null];if(_0x435cef['gZFPe'](_0x7dcebd[_0x5fdae1(0x121)](_0x435cef[_0x5fdae1(0x13b)]),-0x1)){const _0x4a3b4b=_0x7dcebd['split'](_0x435cef[_0x5fdae1(0x13b)]);return[_0x4a3b4b[0x0]['slice'](0x0,-0x1)['split']('\x22')[0x1],_0x4a3b4b[0x1][_0x5fdae1(0xf6)](0x1)];}else{if(_0x435cef[_0x5fdae1(0x104)](_0x7dcebd['indexOf'](_0x435cef[_0x5fdae1(0x106)]),-0x1)){const _0x3edc51=_0x7dcebd[_0x5fdae1(0x12d)](_0x435cef[_0x5fdae1(0x106)]);return[_0x3edc51[0x0][_0x5fdae1(0x123)](0x0,-0x1)['split']('\x22')[0x1],_0x7dcebd];}}return[null,null];},exports[a31_0x3cd5e1(0x101)]=_0x617c80=>{const _0x43fea5=a31_0x3cd5e1,_0x3d8676={'tGujt':function(_0x407f63,_0x3cee34){return _0x407f63(_0x3cee34);},'SJHDt':'_beforeAll','QMrDl':_0x43fea5(0x115),'OxuHm':_0x43fea5(0xf9),'LomdO':'_afterEach'};if(!_0x617c80||!_0x617c80[_0x43fea5(0xfb)])return[];const _0xc82e34=[];return[_0x3d8676[_0x43fea5(0x11f)],_0x3d8676['QMrDl'],_0x3d8676[_0x43fea5(0x129)],_0x3d8676[_0x43fea5(0x143)]][_0x43fea5(0x133)](_0x1abc35=>{const _0x111f65=_0x43fea5,_0x5320cd=_0x617c80[_0x111f65(0xfb)][_0x1abc35]||[];_0x5320cd[_0x111f65(0x133)](_0x16d97e=>{const _0x58d977=_0x111f65;_0x16d97e[_0x58d977(0x10b)]&&!_0x3d8676[_0x58d977(0xfc)](isInternalHook,_0x16d97e['fn'])&&_0xc82e34[_0x58d977(0x111)](_0x16d97e['hookAnalyticsId']);});}),[..._0xc82e34,...exports[_0x43fea5(0x101)](_0x617c80[_0x43fea5(0xfb)])];},exports[a31_0x3cd5e1(0x12b)]=_0x5f52e9=>{const _0xfa4b92=a31_0x3cd5e1,_0x3b936f={'eNZoN':function(_0x364f4c){return _0x364f4c();},'KYyaD':function(_0x2ac556,_0x32c438){return _0x2ac556===_0x32c438;},'HIyil':_0xfa4b92(0xec),'uUWeO':_0xfa4b92(0x11d),'SJziv':'_afterAll','fUNvC':_0xfa4b92(0xf9)};if(!_0x5f52e9||!_0x5f52e9[_0xfa4b92(0xfb)])return;[_0x3b936f[_0xfa4b92(0x141)],_0x3b936f[_0xfa4b92(0x134)],_0x3b936f['fUNvC'],_0x3b936f[_0xfa4b92(0x120)]][_0xfa4b92(0x133)](_0x4a3284=>{const _0x3a9fdb=_0xfa4b92,_0x3ded73={'LAmCb':function(_0xfb1250){const _0x5f10bc=a31_0x5d7b;return _0x3b936f[_0x5f10bc(0x130)](_0xfb1250);},'yamPE':function(_0xbedc2e,_0x2c380b){const _0x1330a4=a31_0x5d7b;return _0x3b936f[_0x1330a4(0x114)](_0xbedc2e,_0x2c380b);},'winBK':_0x3b936f['HIyil']},_0x140540=_0x5f52e9['parent'][_0x4a3284]||[];_0x140540[_0x3a9fdb(0x133)](_0x55a58e=>{const _0x275767=_0x3a9fdb;if(!_0x55a58e[_0x275767(0x10b)])_0x55a58e['hookAnalyticsId']=_0x3ded73[_0x275767(0x127)](uuidv4);else _0x55a58e['markedStatus']&&_0x3ded73[_0x275767(0x109)](_0x4a3284,_0x3ded73[_0x275767(0x13c)])&&(_0x55a58e[_0x275767(0x10b)]=_0x3ded73[_0x275767(0x127)](uuidv4),delete _0x55a58e['markedStatus']);});}),exports[_0xfa4b92(0x12b)](_0x5f52e9[_0xfa4b92(0xfb)]);},exports[a31_0x3cd5e1(0x11b)]=async(_0x1ab369,_0x11e3da)=>{const _0x5f0f5a=a31_0x3cd5e1,_0x285593={'PxTEG':function(_0x36c8e8){return _0x36c8e8();},'xwJXP':function(_0xbc85be,_0x479653){return _0xbc85be(_0x479653);},'gQIJS':function(_0x50169c,_0x2121cf){return _0x50169c===_0x2121cf;},'aSqzu':_0x5f0f5a(0x117),'nfMzE':_0x5f0f5a(0x12c),'AtxOb':_0x5f0f5a(0x13a)};try{if(!_0x285593[_0x5f0f5a(0x126)](shouldProcessEventForTesthub))return;const _0x34cd91=await _0x1ab369[_0x5f0f5a(0x13e)](),_0x48f68c=await _0x1ab369['getSession'](),_0x49bf2e={},_0x5da3fe=Object[_0x5f0f5a(0x11c)](_0x48f68c[_0x5f0f5a(0x13e)]()[_0x5f0f5a(0x10f)]),_0x3af2c1={'product':_0x285593[_0x5f0f5a(0xf1)](getObservabilityLinkedProductName,_0x5da3fe),'capabilities':_0x5da3fe,'platform':_0x34cd91[_0x5f0f5a(0xf4)](),'platform_version':_0x285593[_0x5f0f5a(0xf1)](getPlatformVersion,_0x285593[_0x5f0f5a(0x137)](global['__cloud_provider___'],_0x285593[_0x5f0f5a(0x131)])),'browser':_0x34cd91['getBrowserName'](),'browser_version':_0x34cd91[_0x5f0f5a(0x139)](),'session_id':_0x48f68c['toJSON']()};global['__cloud_provider___']?_0x49bf2e[global[_0x5f0f5a(0x10e)]]=_0x3af2c1:_0x49bf2e[_0x285593[_0x5f0f5a(0xfa)]]=_0x3af2c1,process[_0x5f0f5a(0x110)](_0x5f0f5a(0x12a)+process[_0x5f0f5a(0xed)],{'timestamp':new Date()[_0x5f0f5a(0x122)](),'level':null,'message':null,'kind':_0x285593[_0x5f0f5a(0xf3)],'http_response':_0x49bf2e,'uuid':_0x11e3da});}catch(_0x25d272){_0x285593[_0x5f0f5a(0xf1)](debug,_0x5f0f5a(0x140)+_0x25d272);}},exports[a31_0x3cd5e1(0xf5)]=_0x315366=>{const _0xa29ac3=a31_0x3cd5e1,_0x112845={};_0x112845[_0xa29ac3(0x10d)]=function(_0x1407bd,_0xe6268c){return _0x1407bd!==_0xe6268c;},_0x112845['hgbWP']=_0xa29ac3(0x124),_0x112845[_0xa29ac3(0x144)]=function(_0x333ac2,_0x4ed7f0){return _0x333ac2!==_0x4ed7f0;},_0x112845[_0xa29ac3(0x118)]=_0xa29ac3(0x135),_0x112845[_0xa29ac3(0x128)]=function(_0x4fbe1f,_0x1cd161){return _0x4fbe1f!==_0x1cd161;},_0x112845['fpuxy']=_0xa29ac3(0xef);const _0x58bdbf=_0x112845,_0x265fd5=_0x315366[_0xa29ac3(0x136)]['reduce']((_0x1ce853,_0x511203)=>{const _0x5c25a2=_0xa29ac3,_0x5bfffc=exports[_0x5c25a2(0xf5)](_0x511203);return _0x5bfffc&&(_0x1ce853=_0x1ce853[_0x5c25a2(0x11e)](_0x5bfffc)),_0x1ce853;},[]),_0x1b1525=_0x315366[_0xa29ac3(0x112)][_0xa29ac3(0xfd)](_0x51394a=>{const _0x444615=_0xa29ac3,_0xb0bfa8=_0x58bdbf[_0x444615(0x10d)](_0x51394a[_0x444615(0x138)],_0x58bdbf[_0x444615(0x10c)])&&!_0x51394a[_0x444615(0x13d)]&&_0x58bdbf[_0x444615(0x144)](_0x51394a[_0x444615(0x13f)],_0x58bdbf['xaJRe'])&&_0x58bdbf[_0x444615(0x128)](_0x51394a[_0x444615(0x13f)],_0x58bdbf['fpuxy'])&&!_0x51394a['pending'];return _0xb0bfa8;});return _0x1b1525[_0xa29ac3(0x11e)](_0x265fd5);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x4c514a=a32_0x1479;(function(_0x391528,_0x2ccb0c){const _0x2acc2a=a32_0x1479,_0x58a6c7=_0x391528();while(!![]){try{const _0x5829da=parseInt(_0x2acc2a(0x25e))/0x1+parseInt(_0x2acc2a(0x21e))/0x2*(parseInt(_0x2acc2a(0x279))/0x3)+parseInt(_0x2acc2a(0x274))/0x4*(-parseInt(_0x2acc2a(0x1fc))/0x5)+parseInt(_0x2acc2a(0x231))/0x6+-parseInt(_0x2acc2a(0x284))/0x7+parseInt(_0x2acc2a(0x223))/0x8*(-parseInt(_0x2acc2a(0x1f5))/0x9)+parseInt(_0x2acc2a(0x203))/0xa;if(_0x5829da===_0x2ccb0c)break;else _0x58a6c7['push'](_0x58a6c7['shift']());}catch(_0x191a47){_0x58a6c7['push'](_0x58a6c7['shift']());}}}(a32_0x3369,0xc1911));function a32_0x1479(_0x25ab4d,_0x469e4d){const _0x33690f=a32_0x3369();return a32_0x1479=function(_0x147995,_0x17b0e3){_0x147995=_0x147995-0x1d0;let _0x57639f=_0x33690f[_0x147995];return _0x57639f;},a32_0x1479(_0x25ab4d,_0x469e4d);}const util=require(a32_0x4c514a(0x243)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x4c514a(0x278)),{percyAutoCapture}=require(a32_0x4c514a(0x266)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x4c514a(0x24f)),PerformanceTester=require(a32_0x4c514a(0x1d6)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),scripts=require(a32_0x4c514a(0x21c)),globals=require(a32_0x4c514a(0x221)),logger=require(a32_0x4c514a(0x1d5))['winstonLogger'],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a32_0x4c514a(0x214));function a32_0x3369(){const _0x152be5=['BdDDc','pIepg','QOady','cohoG','saveTestResults','startMonitoring','__skipSessionName','appium:app','ZZtCu','pfVzp','length','eNdwb','1256387GLrxPK','executeScript','YgbEk','currentTest','Failed\x20to\x20store\x20session\x20name:\x20','AZyxk','kVcma','KKUnM','../../helpers/percy/utils','SAVE_RESULTS','TKIqu','zHSsT','https:','fNvyZ','__platformCaps','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','Lizwm','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','tnfNM','shift','EUshk','MtgTo','12JDTnYS','IVHlq','SESSION_STATUS','zDPlv','../../helpers/accessibility-automation/helper','1146bLqrAl','\x20-\x20','bwqOZ','AkTLL','rZtlO','setGlobal','suFDX','percy','rBwTO','__sessionFailed','MlIWG','639415tVmpJI','TusYX','Blpby','tYOLH','TrinA','join','oUEKo','YCDrQ','percyCaptureMode','../../helpers/logger','../../helpers/performance/performance-tester','afterEach','browserstackTestName','bstackA11yShouldScan','error','SvXMO','bEzpx','rHtHN','SESSION_NAME','ENV_VAR','afterAll','MJCdE','executeAsyncScript','afterTest','BROWSERSTACK_TESTHUB_JWT','uLsrB','GAyhq','isAccessibilityPlatform','DLDig','qjVHd','PERFORM_SCAN','initQuit','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','getCurrentUrl','SYNC','titlePath','RxwJz','passed','SDK_HOOK','testAnalyticsId','2035701DarghK',',\x22level\x22:\x20\x22','bIUyw','capabilities','message','err','browserstackSessionName','2263065YbnwMQ','timeout','push','yUSnF','then','end','okePk','14938500UoYZMQ','TyvZb','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','OKBQQ','env','measureWrapper','app','cXogN','zZZtz','dMWrM','state','uNmrw','__error_messages__','Automate\x20test\x20case\x20execution\x20has\x20started.','info','thTestRunUuid','../../helpers/testhub/constants','XvXdY','isArray','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','quitCount_','fIhPB','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','NAQJq','../../helpers/accessibility-automation/scripts','\x22}}','1072PFoRSC','beforeAll','now','../../helpers/globals','iTkUI','48pfUuPp','HyHFn','VkunX','RqlyM','xeJiJ','accessibilityScanStarted','failed','beforeEach','DQhvV','thJwtToken','qclcO','sessionNameSet__','start','miHmY','3865068EVyHll','testcase','index','sessionName','MWoDY','mochaHooks','shouldScanTestForAccessibility','performScan','getGlobal','stringify','xWnSl','HbxtI','StLkX','lEJlm','gqxME','eeEpV','GshJt','debug','util','format','hgFsp','wCLxW','kRfuv','hmSeK','session_','zXQQl','http:','OMXRu','CIPeu','driverCleanup','../../helpers/helper','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','__drivers'];a32_0x3369=function(){return _0x152be5;};return a32_0x3369();}exports[a32_0x4c514a(0x236)]={'beforeAll'(){const _0x3644ea=a32_0x4c514a,_0x36bed1={'Lizwm':function(_0x3f0c1c,_0x4293d7,_0x42521f,_0x47adcf){return _0x3f0c1c(_0x4293d7,_0x42521f,_0x47adcf);},'DQhvV':_0x3644ea(0x229),'pIepg':'\x20|\x20','uLsrB':function(_0x22e19e,_0x387af9,_0x3ad316){return _0x22e19e(_0x387af9,_0x3ad316);},'suFDX':'passed','FUqnv':function(_0x245c28){return _0x245c28();},'eeEpV':'index','bwqOZ':_0x3644ea(0x21f)};PerformanceTester[_0x3644ea(0x257)]();const _0x471b40='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x3644ea(0x1f3)],()=>{const _0x33f25f=_0x3644ea,_0x30a444={'iTkUI':function(_0x179dab,_0x43725e,_0x4c1226,_0x5b7ae5){const _0x253358=a32_0x1479;return _0x36bed1[_0x253358(0x26e)](_0x179dab,_0x43725e,_0x4c1226,_0x5b7ae5);},'MtgTo':_0x36bed1[_0x33f25f(0x22b)],'IVHlq':_0x36bed1[_0x33f25f(0x253)],'cohoG':function(_0x591636,_0x5710d,_0x409eea){const _0x1679de=_0x33f25f;return _0x36bed1[_0x1679de(0x1e5)](_0x591636,_0x5710d,_0x409eea);},'Blpby':_0x36bed1[_0x33f25f(0x27f)],'tBlAm':function(_0x40ce85){return _0x36bed1['FUqnv'](_0x40ce85);},'ECKKu':function(_0xb3496b,_0x185f5e,_0x187df3){const _0x49d49a=_0x33f25f;return _0x36bed1[_0x49d49a(0x1e5)](_0xb3496b,_0x185f5e,_0x187df3);}};global[_0x33f25f(0x210)]=[],global['__sessionFailed']=![],global[_0x33f25f(0x24e)]=async()=>{const _0x2d3b06=_0x33f25f;let _0x51a87a=![];try{await global[_0x2d3b06(0x251)][0x0]['session_'],_0x51a87a=!![],global['__sessionFailed']?await _0x30a444[_0x2d3b06(0x222)](markSessionStatus,global[_0x2d3b06(0x251)][0x0],_0x30a444[_0x2d3b06(0x273)],global[_0x2d3b06(0x210)][_0x2d3b06(0x1d1)](_0x30a444[_0x2d3b06(0x275)])):await _0x30a444[_0x2d3b06(0x255)](markSessionStatus,global[_0x2d3b06(0x251)][0x0],_0x30a444[_0x2d3b06(0x286)]);}catch(_0x234030){logger[_0x2d3b06(0x242)]('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x234030);}global[_0x2d3b06(0x210)]=[],global['__sessionFailed']=![];if(_0x51a87a)try{try{_0x30a444['tBlAm'](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x30a444['ECKKu'](sendPlatformDetails,global['__drivers'][0x0],this[_0x2d3b06(0x261)]?this[_0x2d3b06(0x261)][_0x2d3b06(0x1f4)]:null));}catch(_0x330e4b){logger[_0x2d3b06(0x242)]('Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20'+_0x330e4b);}await global[_0x2d3b06(0x251)][0x0][_0x2d3b06(0x1eb)]();}catch(_0x3ad1f3){logger[_0x2d3b06(0x242)](_0x2d3b06(0x217)+_0x3ad1f3);}};},{'platform':_0x36bed1['uLsrB'](nestedKeyValue,global['__platformCaps'],[_0x36bed1[_0x3644ea(0x240)]]),'hookType':_0x36bed1[_0x3644ea(0x27b)]})();},'beforeEach'(_0xf93483){const _0x3ba2d8=a32_0x4c514a,_0x4ac746={'okePk':function(_0x1506ee,_0x5a1f5c){return _0x1506ee>_0x5a1f5c;},'rHtHN':function(_0x49cf9e,_0x1e408f){return _0x49cf9e>_0x1e408f;},'zHSsT':_0x3ba2d8(0x27a),'EHQnP':function(_0x3cb387,_0x5c7a1a,_0xbe856a){return _0x3cb387(_0x5c7a1a,_0xbe856a);},'gqxME':'bstackA11yShouldScan','XvXdY':function(_0x410f90){return _0x410f90();},'EUshk':function(_0x791be9,_0x5c65e4){return _0x791be9>_0x5c65e4;},'GAyhq':'isAccessibilityPlatform','qYjYE':function(_0xc2d1cb,_0x56380b){return _0xc2d1cb===_0x56380b;},'hngXD':_0x3ba2d8(0x24b),'QOady':function(_0x4b5ea9,_0x37a8f0){return _0x4b5ea9===_0x37a8f0;},'CIPeu':_0x3ba2d8(0x26a),'StLkX':_0x3ba2d8(0x21a),'KKUnM':_0x3ba2d8(0x211),'OKBQQ':function(_0x18c0a4){return _0x18c0a4();},'NAQJq':function(_0x1238e8){return _0x1238e8();},'cXogN':_0x3ba2d8(0x1d8),'MJCdE':function(_0x16910f,_0x21c98c,_0x39850a){return _0x16910f(_0x21c98c,_0x39850a);},'AabVL':_0x3ba2d8(0x233),'TrinA':_0x3ba2d8(0x22a)};globals[_0x3ba2d8(0x27e)](_0x4ac746[_0x3ba2d8(0x20b)],this[_0x3ba2d8(0x261)][_0x3ba2d8(0x1f0)]()['join'](_0x4ac746['zHSsT'])),PerformanceTester[_0x3ba2d8(0x209)](PerformanceSdkEvents[_0x3ba2d8(0x1f3)],()=>{const _0x172b52=_0x3ba2d8,_0xf54ab3='browserstack internal helper hook';new Promise(async _0x2f7a0a=>{const _0x51a1c3=a32_0x1479;let _0x8b307c=!![];try{_0x4ac746[_0x51a1c3(0x202)](global['__drivers'][_0x51a1c3(0x25c)],0x1)&&(await global[_0x51a1c3(0x24e)](),global[_0x51a1c3(0x251)][_0x51a1c3(0x271)]()),_0x4ac746[_0x51a1c3(0x1dd)](global[_0x51a1c3(0x251)][0x0][_0x51a1c3(0x218)],0x0)&&(_0x8b307c=![],await global[_0x51a1c3(0x24e)]());}catch(_0x27b591){logger[_0x51a1c3(0x242)](_0x51a1c3(0x217)+_0x27b591);}try{Array[_0x51a1c3(0x216)](global[_0x51a1c3(0x251)])&&global[_0x51a1c3(0x251)][0x0]&&(global['__drivers'][0x0][_0x51a1c3(0x1fb)]=this['currentTest'][_0x51a1c3(0x1f0)]()['join'](_0x4ac746[_0x51a1c3(0x269)])),global[_0x51a1c3(0x1fb)]=this[_0x51a1c3(0x261)][_0x51a1c3(0x1f0)]()[_0x51a1c3(0x1d1)](_0x4ac746[_0x51a1c3(0x269)]);}catch(_0x5d113d){logger['debug'](_0x51a1c3(0x262)+_0x5d113d);}this[_0x51a1c3(0x261)][_0x51a1c3(0x237)]=_0x4ac746['EHQnP'](shouldScanTestForAccessibility,this[_0x51a1c3(0x261)][_0x51a1c3(0x1f0)](),!![]),globals[_0x51a1c3(0x27e)](_0x4ac746[_0x51a1c3(0x23f)],this['currentTest'][_0x51a1c3(0x237)]),this[_0x51a1c3(0x261)][_0x51a1c3(0x228)]=!![];if(_0x4ac746[_0x51a1c3(0x215)](isAccessibilityAutomationSession)&&_0x8b307c&&Array['isArray'](global[_0x51a1c3(0x251)])&&_0x4ac746[_0x51a1c3(0x272)](global[_0x51a1c3(0x251)][_0x51a1c3(0x25c)],0x0)&&globals['getGlobal'](_0x4ac746[_0x51a1c3(0x1e6)]))try{const _0x17d8d5=await global[_0x51a1c3(0x251)][0x0][_0x51a1c3(0x249)];if(_0x17d8d5){let _0x589d12=!![];const _0x2b219d=await global['__drivers'][0x0][_0x51a1c3(0x1ee)]();let _0x154319;try{_0x154319=new URL(_0x2b219d);}catch(_0xb0b83a){_0x589d12=![];}_0x589d12=_0x4ac746['qYjYE'](_0x154319['protocol'],_0x4ac746['hngXD'])||_0x4ac746[_0x51a1c3(0x254)](_0x154319['protocol'],_0x4ac746[_0x51a1c3(0x24d)]),_0x589d12&&(this[_0x51a1c3(0x261)][_0x51a1c3(0x237)]&&logger[_0x51a1c3(0x212)](_0x4ac746[_0x51a1c3(0x23d)])),this[_0x51a1c3(0x261)][_0x51a1c3(0x228)]=this[_0x51a1c3(0x261)][_0x51a1c3(0x237)],this[_0x51a1c3(0x261)][_0x51a1c3(0x237)]&&logger[_0x51a1c3(0x212)](_0x4ac746[_0x51a1c3(0x265)]);}}catch(_0x3ff5bb){logger[_0x51a1c3(0x1da)](_0x51a1c3(0x26d)+util[_0x51a1c3(0x244)](_0x3ff5bb));}_0x4ac746[_0x51a1c3(0x207)](_0x2f7a0a);})[_0x172b52(0x200)](()=>{const _0x2476b2=_0x172b52;_0x4ac746[_0x2476b2(0x21b)](_0xf93483);});},{'platform':_0x4ac746[_0x3ba2d8(0x1e1)](nestedKeyValue,global[_0x3ba2d8(0x26c)],[_0x4ac746['AabVL']]),'hookType':_0x4ac746[_0x3ba2d8(0x1d0)]})();},'afterEach'(_0x41a97f){const _0x30f11a=a32_0x4c514a,_0x464b8a={'pfVzp':function(_0xbe370c){return _0xbe370c();},'HyHFn':_0x30f11a(0x27a),'hmSeK':function(_0x838b0c,_0x1969f2){return _0x838b0c!==_0x1969f2;},'TKIqu':_0x30f11a(0x1f2),'rZtlO':function(_0x224819,_0x41135d,_0xe63326){return _0x224819(_0x41135d,_0xe63326);},'RqlyM':function(_0x2bba52,_0xfc2837){return _0x2bba52+_0xfc2837;},'YCDrQ':'Failed:\x20','RNLNe':_0x30f11a(0x1da),'tYOLH':'Passed','miHmY':'info','MlIWG':function(_0x4e7f71,_0x3b5f89){return _0x4e7f71>_0x3b5f89;},'uNmrw':function(_0x2870d9,_0x2d76e5){return _0x2870d9===_0x2d76e5;},'ynmzr':_0x30f11a(0x232),'eOImB':_0x30f11a(0x259),'qjVHd':function(_0x379f70,_0x1de391,_0x4c8e8c,_0x3922bf){return _0x379f70(_0x1de391,_0x4c8e8c,_0x3922bf);},'zZZtz':_0x30f11a(0x1e7),'Lszfl':_0x30f11a(0x1d9),'aEIqT':_0x30f11a(0x26f),'hgFsp':'Performing\x20scan\x20before\x20saving\x20results','bIUyw':_0x30f11a(0x1e3),'fNvyZ':_0x30f11a(0x206),'lEJlm':function(_0x44369b){return _0x44369b();},'SvXMO':_0x30f11a(0x242),'BdDDc':function(_0x796c30){return _0x796c30();},'fIhPB':_0x30f11a(0x233),'jqEhy':_0x30f11a(0x1d7)},_0x2e24b9='browserstack internal helper hook';this['timeout'](0xfde8),global[_0x30f11a(0x234)]=this[_0x30f11a(0x261)]['titlePath']()['join'](_0x464b8a[_0x30f11a(0x224)]),PerformanceTester[_0x30f11a(0x209)](PerformanceSdkEvents[_0x30f11a(0x1f3)],()=>{const _0x4fb715=_0x30f11a,_0xd27bb4={'AkTLL':_0x464b8a[_0x4fb715(0x224)],'yUSnF':function(_0x268a68,_0x4da599){const _0x32c3f6=_0x4fb715;return _0x464b8a[_0x32c3f6(0x248)](_0x268a68,_0x4da599);},'xeJiJ':_0x464b8a[_0x4fb715(0x268)],'MWoDY':function(_0x23be4b,_0x439e9a,_0x4cba68){const _0x3fef46=_0x4fb715;return _0x464b8a[_0x3fef46(0x27d)](_0x23be4b,_0x439e9a,_0x4cba68);},'SdPbi':function(_0x339929,_0x1de4b6){const _0xf4f324=_0x4fb715;return _0x464b8a[_0xf4f324(0x226)](_0x339929,_0x1de4b6);},'rBwTO':_0x464b8a[_0x4fb715(0x1d3)],'TkRjO':_0x464b8a['RNLNe'],'HbxtI':_0x464b8a[_0x4fb715(0x287)],'xWnSl':_0x464b8a[_0x4fb715(0x230)],'tnfNM':function(_0x252b45,_0x78698f){const _0x40cbb9=_0x4fb715;return _0x464b8a[_0x40cbb9(0x283)](_0x252b45,_0x78698f);},'zrJMy':function(_0x354779,_0x5b8426){const _0x521f50=_0x4fb715;return _0x464b8a[_0x521f50(0x20f)](_0x354779,_0x5b8426);},'bEzpx':_0x464b8a['ynmzr'],'RxwJz':_0x464b8a['eOImB'],'YgbEk':function(_0x4cb2e5,_0x5a4689,_0x23bb07,_0x29bb4e){const _0x3223ec=_0x4fb715;return _0x464b8a[_0x3223ec(0x1e9)](_0x4cb2e5,_0x5a4689,_0x23bb07,_0x29bb4e);},'UvVrH':_0x464b8a[_0x4fb715(0x20c)],'kVcma':_0x464b8a['Lszfl'],'GCsiM':_0x464b8a['aEIqT'],'oUEKo':_0x464b8a[_0x4fb715(0x245)],'VkunX':_0x464b8a[_0x4fb715(0x1f7)],'TyvZb':_0x464b8a[_0x4fb715(0x26b)],'eNdwb':function(_0x564d85){const _0x55aa15=_0x4fb715;return _0x464b8a[_0x55aa15(0x23e)](_0x564d85);},'TusYX':_0x464b8a[_0x4fb715(0x1db)],'zXQQl':function(_0x14ee84,_0x3ef20f){const _0x559dab=_0x4fb715;return _0x464b8a[_0x559dab(0x283)](_0x14ee84,_0x3ef20f);},'Eprcs':function(_0x191a1d){const _0x1205f4=_0x4fb715;return _0x464b8a[_0x1205f4(0x252)](_0x191a1d);}},_0x37a877=async(_0x486d29,_0x33e3f9)=>{const _0x569581=_0x4fb715;await global[_0x569581(0x251)][0x0][_0x569581(0x25f)](_0x569581(0x1ed)+_0x486d29+_0x569581(0x1f6)+_0x33e3f9+_0x569581(0x21d));};new Promise(async _0x5ec934=>{const _0x391b87=_0x4fb715,_0x3f37={'eztAb':_0xd27bb4[_0x391b87(0x27c)],'Rldvl':function(_0x66ee7c,_0x119068){const _0x177f58=_0x391b87;return _0xd27bb4[_0x177f58(0x1ff)](_0x66ee7c,_0x119068);},'AZyxk':_0xd27bb4[_0x391b87(0x227)],'wCLxW':function(_0x394c8f,_0xd5a22a,_0x5755b1){const _0x194587=_0x391b87;return _0xd27bb4[_0x194587(0x235)](_0x394c8f,_0xd5a22a,_0x5755b1);},'OMXRu':function(_0x275807,_0x53b047){return _0xd27bb4['SdPbi'](_0x275807,_0x53b047);},'GshJt':_0xd27bb4[_0x391b87(0x281)],'DLDig':_0xd27bb4['TkRjO'],'ZZtCu':_0xd27bb4[_0x391b87(0x23c)],'imvvd':_0xd27bb4[_0x391b87(0x23b)]};try{_0xd27bb4['tnfNM'](global[_0x391b87(0x251)][_0x391b87(0x25c)],0x1)&&(await global[_0x391b87(0x24e)](),global[_0x391b87(0x251)][_0x391b87(0x271)](),global[_0x391b87(0x210)]=[],global['__sessionFailed']=![]);try{if(global[_0x391b87(0x280)]&&_0xd27bb4['zrJMy'](global[_0x391b87(0x1d4)],_0xd27bb4[_0x391b87(0x1dc)])&&global['__drivers'][0x0]){const _0x141037=_0xd27bb4[_0x391b87(0x270)](global['capabilities'][_0x391b87(0x25c)],0x0)?!!global[_0x391b87(0x1f8)][0x0][_0x391b87(0x20a)]||!!global['capabilities'][0x0][_0xd27bb4[_0x391b87(0x1f1)]]:![],_0x47cb8a={};_0x47cb8a[_0x391b87(0x20a)]=_0x141037,await _0xd27bb4[_0x391b87(0x260)](percyAutoCapture,global[_0x391b87(0x251)][0x0],_0xd27bb4[_0x391b87(0x1dc)],_0x47cb8a);}}catch(_0x25afa7){logger['debug']('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0x25afa7);}!global[_0x391b87(0x258)]&&(await PerformanceTester[_0x391b87(0x209)](PerformanceAutEvents[_0x391b87(0x1de)],async()=>{const _0x3fb02f=_0x391b87;await global['__drivers'][0x0]['executeScript'](_0x3fb02f(0x1ec)+JSON[_0x3fb02f(0x23a)](this[_0x3fb02f(0x261)][_0x3fb02f(0x1f0)]()['join'](_0x3f37['eztAb']))+'}}');})(),global[_0x391b87(0x251)][0x0][_0x391b87(0x22e)]=!![]),await PerformanceTester[_0x391b87(0x209)](PerformanceAutEvents[_0x391b87(0x276)],async()=>{const _0x4b90e4=_0x391b87,_0x1021b7=_0x3f37['Rldvl'](this[_0x4b90e4(0x261)][_0x4b90e4(0x20e)],_0x3f37[_0x4b90e4(0x263)]);_0x1021b7?(global[_0x4b90e4(0x282)]=!![],global['__error_messages__'][_0x4b90e4(0x1fe)](this[_0x4b90e4(0x261)][_0x4b90e4(0x1fa)][_0x4b90e4(0x1f9)]),await _0x3f37[_0x4b90e4(0x246)](_0x37a877,JSON[_0x4b90e4(0x23a)](_0x3f37[_0x4b90e4(0x24c)](_0x3f37[_0x4b90e4(0x241)],this[_0x4b90e4(0x261)]['err'][_0x4b90e4(0x1f9)])),_0x3f37[_0x4b90e4(0x1e8)])):await _0x3f37['wCLxW'](_0x37a877,JSON[_0x4b90e4(0x23a)](_0x3f37[_0x4b90e4(0x25a)]),_0x3f37['imvvd']);})();}catch(_0xcbd951){logger[_0x391b87(0x242)](_0x391b87(0x250)+_0xcbd951);}try{if(this[_0x391b87(0x261)]['accessibilityScanStarted']&&globals[_0x391b87(0x239)](_0xd27bb4['UvVrH'])&&globals[_0x391b87(0x239)](_0xd27bb4[_0x391b87(0x264)])){logger['info'](_0xd27bb4['GCsiM']);const _0x4779e5={};_0x4779e5[_0x391b87(0x213)]=this['currentTest'][_0x391b87(0x1f4)],_0x4779e5['thBuildUuid']=process[_0x391b87(0x208)][testHubConstants[_0x391b87(0x1df)]['BROWSERSTACK_TESTHUB_UUID']],_0x4779e5[_0x391b87(0x22c)]=process[_0x391b87(0x208)][testHubConstants[_0x391b87(0x1df)][_0x391b87(0x1e4)]];const _0xc945c8=_0x4779e5;logger['debug']('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x391b87(0x23a)](_0xc945c8)),logger[_0x391b87(0x242)](_0xd27bb4[_0x391b87(0x1d2)]);const _0x5a1b14={};_0x5a1b14['command']=_0xd27bb4[_0x391b87(0x225)],await PerformanceTester[_0x391b87(0x209)](PerformanceA11yEvents[_0x391b87(0x1ea)],async()=>{const _0x57debe=_0x391b87;logger[_0x57debe(0x242)](util[_0x57debe(0x244)](await global[_0x57debe(0x251)][0x0][_0x57debe(0x1e2)](scripts[_0x57debe(0x238)],{'method':global[_0x57debe(0x1fb)]})));},_0x5a1b14)(),await PerformanceTester[_0x391b87(0x209)](PerformanceA11yEvents[_0x391b87(0x267)],async()=>{const _0x3084f5=_0x391b87;await global[_0x3084f5(0x251)][0x0]['executeAsyncScript'](scripts[_0x3084f5(0x256)],_0xc945c8);})(),logger[_0x391b87(0x212)](_0xd27bb4[_0x391b87(0x204)]);}}catch(_0x5047ef){logger[_0x391b87(0x1da)](_0x391b87(0x205)+this[_0x391b87(0x261)][_0x391b87(0x1f0)]()+'.\x20Error\x20:',_0x5047ef);}try{try{if(_0xd27bb4[_0x391b87(0x25d)](shouldProcessEventForTesthub)){global[_0x391b87(0x251)][0x0]&&await _0xd27bb4[_0x391b87(0x235)](sendPlatformDetails,global[_0x391b87(0x251)][0x0],this['currentTest']?this['currentTest'][_0x391b87(0x1f4)]:null);if(_0xd27bb4['eNdwb'](isBrowserstackInfra)){PerformanceTester[_0x391b87(0x22f)](PerformanceO11yEvents['SYNC']);const _0x4dd820='ObservabilitySync:'+Date[_0x391b87(0x220)]();await _0xd27bb4[_0x391b87(0x235)](_0x37a877,JSON[_0x391b87(0x23a)](_0x4dd820),_0xd27bb4[_0x391b87(0x285)]),PerformanceTester['end'](PerformanceO11yEvents['SYNC']);}}}catch(_0x4f6bdf){logger[_0x391b87(0x242)]('Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20'+_0x4f6bdf),PerformanceTester[_0x391b87(0x201)](PerformanceO11yEvents[_0x391b87(0x1ef)],![],_0x4f6bdf);}_0xd27bb4[_0x391b87(0x24a)](global[_0x391b87(0x251)][0x0]['quitCount_'],0x0)&&await global[_0x391b87(0x24e)]();}catch(_0x9b274a){logger[_0x391b87(0x242)](_0x391b87(0x217)+_0x9b274a);}_0xd27bb4['Eprcs'](_0x5ec934);})['then'](()=>{const _0x393401=_0x4fb715;_0x464b8a[_0x393401(0x25b)](_0x41a97f);});},{'platform':_0x464b8a[_0x30f11a(0x27d)](nestedKeyValue,global['__platformCaps'],[_0x464b8a[_0x30f11a(0x219)]]),'hookType':_0x464b8a['jqEhy']})();},'afterAll'(_0x2b2ee4){const _0x414b3b=a32_0x4c514a,_0x5527f0={'qclcO':function(_0x57a2a2){return _0x57a2a2();},'dPmPH':function(_0x5aa52d){return _0x5aa52d();},'kRfuv':function(_0x378368,_0x1cf918,_0x9e3dc2){return _0x378368(_0x1cf918,_0x9e3dc2);},'BJLFr':_0x414b3b(0x233),'dMWrM':_0x414b3b(0x1e0)},_0x1fc179='browserstack internal helper hook';this[_0x414b3b(0x1fd)](0xfde8),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x414b3b(0x1f3)],()=>{const _0x5691ff=_0x414b3b,_0x5d0609={'zDPlv':function(_0x1480f4){const _0x4ac74f=a32_0x1479;return _0x5527f0[_0x4ac74f(0x22d)](_0x1480f4);},'HOuJc':function(_0x1e1895){return _0x5527f0['dPmPH'](_0x1e1895);}};new Promise(async _0x1a399=>{const _0x267e99=a32_0x1479;await global[_0x267e99(0x24e)](),_0x5d0609[_0x267e99(0x277)](_0x1a399);})[_0x5691ff(0x200)]()['finally'](()=>{_0x5d0609['HOuJc'](_0x2b2ee4);});},{'platform':_0x5527f0[_0x414b3b(0x247)](nestedKeyValue,global[_0x414b3b(0x26c)],[_0x5527f0['BJLFr']]),'hookType':_0x5527f0[_0x414b3b(0x20d)]})();}};
|
|
1
|
+
const a32_0x17b94c=a32_0x5cf7;function a32_0x348a(){const _0x5880d9=['LPYJM','edtBE','testAnalyticsId','1380869YXFmWZ','SAVE_RESULTS','ObservabilitySync:','isHeU','QltDi','6451758GSgjEG','env','AlrLf','shouldScanTestForAccessibility','ytYLG','6cBQyHE','sAFzV','timeout','mYXlf','1118238FGiRqt','now','startMonitoring','eWHzh','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','percy','CMUlC','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','ulGZP','oDiwW','cQeuN','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','../../helpers/percy/utils','../../helpers/performance/performance-tester','browserstackSessionName','https:','mochaHooks','__sessionFailed','vIvyd','err','initQuit','getGlobal','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','capabilities','measureWrapper','ARotp','Performing\x20scan\x20before\x20saving\x20results','thJwtToken','__platformCaps','SESSION_STATUS','message','Automate\x20test\x20case\x20execution\x20has\x20started.','Uygzz','../../helpers/testhub/constants','error','http:','currentTest','lJlxL','Znzti','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','fCcgF','join','aPkis','executeScript','titlePath','chvuX','driverCleanup','beforeEach','../../helpers/globals','oMxUy','stringify','VeFYh','failed','kjYty','__error_messages__','UMWrP','ZgPMg','sessionNameSet__','afterEach','push','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','6284685ddbXdb','MImjB','pltCJ','bdKmF','thBuildUuid','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','PERFORM_SCAN','../../helpers/logger','quitCount_','3214106aMnTML','../../helpers/accessibility-automation/helper','accessibilityScanStarted','uUdDK','end','start','passed','lCgqs','SYNC','__drivers','executeAsyncScript','xCZQY','pCdAI','RgiJL','isAccessibilityPlatform','pNKiM','format','JNehO','uKlwt','YheCH','BROWSERSTACK_TESTHUB_UUID','dkzxU','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','QxBNb','isArray','\x20-\x20','wmMCz','dQUJK','iNFQR',',\x22level\x22:\x20\x22','thTestRunUuid','index','afrtY','__skipSessionName','performScan','info','session_','then','Failed\x20to\x20store\x20session\x20name:\x20','SESSION_NAME','afterTest','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','cQEbp','wspQb','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','../../helpers/helper','testcase','DIead','SDK_HOOK','qHapN','Qlkko','iqOfw','bstackA11yShouldScan','19260512MeBCwk','KDOQi','RhmNj','4407576IyKVKp','\x22}}','shift','nALvW','HdnrX','OjQuQ','finally','setGlobal','ukfAD','GJeFk','DPosk','sessionName','length','roBcO','mhsVO','ENV_VAR','protocol','app','../../helpers/testhub/utils','Uzcsu','debug','../../helpers/accessibility-automation/scripts','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'];a32_0x348a=function(){return _0x5880d9;};return a32_0x348a();}(function(_0x2548dd,_0x9906ec){const _0xc72659=a32_0x5cf7,_0x4ff185=_0x2548dd();while(!![]){try{const _0x462f2b=parseInt(_0xc72659(0x1d3))/0x1+parseInt(_0xc72659(0x1dd))/0x2*(-parseInt(_0xc72659(0x1e1))/0x3)+-parseInt(_0xc72659(0x25f))/0x4+-parseInt(_0xc72659(0x21e))/0x5+parseInt(_0xc72659(0x1d8))/0x6+-parseInt(_0xc72659(0x227))/0x7+parseInt(_0xc72659(0x25c))/0x8;if(_0x462f2b===_0x9906ec)break;else _0x4ff185['push'](_0x4ff185['shift']());}catch(_0x4daccb){_0x4ff185['push'](_0x4ff185['shift']());}}}(a32_0x348a,0xe270b));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x17b94c(0x228)),{percyAutoCapture}=require(a32_0x17b94c(0x1ed)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x17b94c(0x254)),PerformanceTester=require(a32_0x17b94c(0x1ee)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),scripts=require(a32_0x17b94c(0x1ce)),globals=require(a32_0x17b94c(0x211)),logger=require(a32_0x17b94c(0x225))['winstonLogger'],{shouldProcessEventForTesthub}=require(a32_0x17b94c(0x1cb)),testHubConstants=require(a32_0x17b94c(0x202));function a32_0x5cf7(_0x4310c0,_0x467813){const _0x348a20=a32_0x348a();return a32_0x5cf7=function(_0x5cf7ab,_0x37bfd0){_0x5cf7ab=_0x5cf7ab-0x1c3;let _0xce8790=_0x348a20[_0x5cf7ab];return _0xce8790;},a32_0x5cf7(_0x4310c0,_0x467813);}exports[a32_0x17b94c(0x1f1)]={'beforeAll'(){const _0x3e08e9=a32_0x17b94c,_0x166dbc={'QltDi':function(_0x53e214,_0xa88eb1,_0x439251,_0x32e7fb){return _0x53e214(_0xa88eb1,_0x439251,_0x32e7fb);},'iNFQR':_0x3e08e9(0x215),'vvBjz':'\x20|\x20','DIead':function(_0x36f2e4,_0x7b2609,_0x3114b0){return _0x36f2e4(_0x7b2609,_0x3114b0);},'Gvnvr':_0x3e08e9(0x22d),'lCgqs':function(_0x1bdda4){return _0x1bdda4();},'qHapN':function(_0x3ea69a,_0x5edc15,_0x1b3773){return _0x3ea69a(_0x5edc15,_0x1b3773);},'FkkJO':'index','pltCJ':'beforeAll'};PerformanceTester[_0x3e08e9(0x1e3)]();const _0x1142cc='browserstack internal helper hook';PerformanceTester[_0x3e08e9(0x1f9)](PerformanceSdkEvents[_0x3e08e9(0x257)],()=>{const _0x234ed1=_0x3e08e9;global[_0x234ed1(0x217)]=[],global[_0x234ed1(0x1f2)]=![],global[_0x234ed1(0x20f)]=async()=>{const _0xea090a=_0x234ed1;let _0x557236=![];try{await global['__drivers'][0x0][_0xea090a(0x24b)],_0x557236=!![],global['__sessionFailed']?await _0x166dbc[_0xea090a(0x1d7)](markSessionStatus,global[_0xea090a(0x230)][0x0],_0x166dbc[_0xea090a(0x243)],global['__error_messages__'][_0xea090a(0x20a)](_0x166dbc['vvBjz'])):await _0x166dbc[_0xea090a(0x256)](markSessionStatus,global['__drivers'][0x0],_0x166dbc['Gvnvr']);}catch(_0x110f2c){logger[_0xea090a(0x1cd)]('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x110f2c);}global[_0xea090a(0x217)]=[],global[_0xea090a(0x1f2)]=![];if(_0x557236)try{try{_0x166dbc[_0xea090a(0x22e)](shouldProcessEventForTesthub)&&(global[_0xea090a(0x230)][0x0]&&await _0x166dbc[_0xea090a(0x258)](sendPlatformDetails,global[_0xea090a(0x230)][0x0],this[_0xea090a(0x205)]?this[_0xea090a(0x205)]['testAnalyticsId']:null));}catch(_0x3db1d1){logger['debug']('Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20'+_0x3db1d1);}await global[_0xea090a(0x230)][0x0][_0xea090a(0x1f5)]();}catch(_0x1bd565){logger['debug'](_0xea090a(0x208)+_0x1bd565);}};},{'platform':_0x166dbc['qHapN'](nestedKeyValue,global['__platformCaps'],[_0x166dbc['FkkJO']]),'hookType':_0x166dbc[_0x3e08e9(0x220)]})();},'beforeEach'(_0x19a776){const _0x7ef3ed=a32_0x17b94c,_0x309290={'xCZQY':function(_0x5d472a,_0x428118){return _0x5d472a>_0x428118;},'CMUlC':'\x20-\x20','OjQuQ':function(_0x51a1d5,_0x364465,_0xf3cbaa){return _0x51a1d5(_0x364465,_0xf3cbaa);},'JNehO':'bstackA11yShouldScan','HdnrX':function(_0x1a9761){return _0x1a9761();},'Uzcsu':function(_0x469ff7,_0x1bf06f){return _0x469ff7>_0x1bf06f;},'ukfAD':_0x7ef3ed(0x235),'faiav':function(_0x1fefd2,_0x54b7b3){return _0x1fefd2===_0x54b7b3;},'JlElz':_0x7ef3ed(0x204),'RgiJL':_0x7ef3ed(0x1f0),'Qlkko':_0x7ef3ed(0x223),'lJlxL':_0x7ef3ed(0x200),'LPYJM':'browserstackTestName','EcCUp':'index','oDiwW':_0x7ef3ed(0x210)};globals[_0x7ef3ed(0x266)](_0x309290[_0x7ef3ed(0x1d0)],this['currentTest'][_0x7ef3ed(0x20d)]()[_0x7ef3ed(0x20a)](_0x309290[_0x7ef3ed(0x1e7)])),PerformanceTester[_0x7ef3ed(0x1f9)](PerformanceSdkEvents[_0x7ef3ed(0x257)],()=>{const _0x2d8581=_0x7ef3ed,_0x19396e={'oMxUy':function(_0x1917dc,_0x39d66b){const _0x5e01ca=a32_0x5cf7;return _0x309290[_0x5e01ca(0x232)](_0x1917dc,_0x39d66b);},'eWHzh':_0x309290[_0x2d8581(0x1e7)],'iJUlN':function(_0x5d6ab5,_0x15b9a2,_0x4a09b9){const _0x4d482d=_0x2d8581;return _0x309290[_0x4d482d(0x264)](_0x5d6ab5,_0x15b9a2,_0x4a09b9);},'RhmNj':_0x309290[_0x2d8581(0x238)],'vIvyd':function(_0x5e7c33){const _0x1e2ade=_0x2d8581;return _0x309290[_0x1e2ade(0x263)](_0x5e7c33);},'uUdDK':function(_0xc81ef0,_0x1aa3ce){const _0x122222=_0x2d8581;return _0x309290[_0x122222(0x1cc)](_0xc81ef0,_0x1aa3ce);},'eKQCC':_0x309290[_0x2d8581(0x267)],'ZgPMg':function(_0x418d36,_0x3a40b7){return _0x309290['faiav'](_0x418d36,_0x3a40b7);},'MImjB':_0x309290['JlElz'],'dkzxU':_0x309290[_0x2d8581(0x234)],'cQEbp':_0x309290[_0x2d8581(0x259)],'pkDeD':_0x309290[_0x2d8581(0x206)]},_0x113f34='browserstack internal helper hook';new Promise(async _0x4feef0=>{const _0x52f387=_0x2d8581;let _0x4f50eb=!![];try{_0x19396e['oMxUy'](global[_0x52f387(0x230)]['length'],0x1)&&(await global[_0x52f387(0x20f)](),global['__drivers'][_0x52f387(0x261)]()),_0x19396e[_0x52f387(0x212)](global[_0x52f387(0x230)][0x0]['quitCount_'],0x0)&&(_0x4f50eb=![],await global[_0x52f387(0x20f)]());}catch(_0x2d033c){logger[_0x52f387(0x1cd)](_0x52f387(0x208)+_0x2d033c);}try{Array[_0x52f387(0x23f)](global[_0x52f387(0x230)])&&global['__drivers'][0x0]&&(global[_0x52f387(0x230)][0x0]['browserstackSessionName']=this[_0x52f387(0x205)][_0x52f387(0x20d)]()[_0x52f387(0x20a)](_0x19396e[_0x52f387(0x1e4)])),global[_0x52f387(0x1ef)]=this[_0x52f387(0x205)]['titlePath']()[_0x52f387(0x20a)](_0x19396e[_0x52f387(0x1e4)]);}catch(_0x13b076){logger[_0x52f387(0x1cd)](_0x52f387(0x24d)+_0x13b076);}this[_0x52f387(0x205)][_0x52f387(0x1db)]=_0x19396e['iJUlN'](shouldScanTestForAccessibility,this[_0x52f387(0x205)][_0x52f387(0x20d)](),!![]),globals[_0x52f387(0x266)](_0x19396e[_0x52f387(0x25e)],this['currentTest'][_0x52f387(0x1db)]),this['currentTest'][_0x52f387(0x229)]=!![];if(_0x19396e[_0x52f387(0x1f3)](isAccessibilityAutomationSession)&&_0x4f50eb&&Array[_0x52f387(0x23f)](global[_0x52f387(0x230)])&&_0x19396e[_0x52f387(0x22a)](global[_0x52f387(0x230)][_0x52f387(0x1c5)],0x0)&&globals[_0x52f387(0x1f6)](_0x19396e['eKQCC']))try{const _0x41b2ff=await global[_0x52f387(0x230)][0x0][_0x52f387(0x24b)];if(_0x41b2ff){let _0x834665=!![];const _0x3ea4b8=await global[_0x52f387(0x230)][0x0]['getCurrentUrl']();let _0x2d7b2e;try{_0x2d7b2e=new URL(_0x3ea4b8);}catch(_0x3f0475){_0x834665=![];}_0x834665=_0x19396e[_0x52f387(0x219)](_0x2d7b2e[_0x52f387(0x1c9)],_0x19396e[_0x52f387(0x21f)])||_0x19396e['ZgPMg'](_0x2d7b2e[_0x52f387(0x1c9)],_0x19396e[_0x52f387(0x23c)]),_0x834665&&(this[_0x52f387(0x205)][_0x52f387(0x1db)]&&logger[_0x52f387(0x24a)](_0x19396e[_0x52f387(0x251)])),this[_0x52f387(0x205)][_0x52f387(0x229)]=this['currentTest'][_0x52f387(0x1db)],this[_0x52f387(0x205)][_0x52f387(0x1db)]&&logger[_0x52f387(0x24a)](_0x19396e['pkDeD']);}}catch(_0x158571){logger['error'](_0x52f387(0x23d)+util[_0x52f387(0x237)](_0x158571));}_0x19396e[_0x52f387(0x1f3)](_0x4feef0);})[_0x2d8581(0x24c)](()=>{const _0x4070b=_0x2d8581;_0x19396e[_0x4070b(0x1f3)](_0x19a776);});},{'platform':_0x309290[_0x7ef3ed(0x264)](nestedKeyValue,global[_0x7ef3ed(0x1fd)],[_0x309290['EcCUp']]),'hookType':_0x309290[_0x7ef3ed(0x1ea)]})();},'afterEach'(_0x58cf40){const _0x286139=a32_0x17b94c,_0x51aa05={'uKlwt':_0x286139(0x240),'GJeFk':function(_0x1d8a68,_0x280b6c){return _0x1d8a68>_0x280b6c;},'nALvW':function(_0x1fb20f,_0x41b85b){return _0x1fb20f===_0x41b85b;},'pCdAI':_0x286139(0x255),'QxBNb':function(_0x2ca2b6,_0x3c6773){return _0x2ca2b6>_0x3c6773;},'wjkAg':'appium:app','chvuX':function(_0x57cf3c,_0x173718,_0x34612c,_0x2f2f22){return _0x57cf3c(_0x173718,_0x34612c,_0x2f2f22);},'YheCH':_0x286139(0x235),'Uygzz':_0x286139(0x25b),'bdKmF':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','kjYty':_0x286139(0x1fb),'ARotp':_0x286139(0x24f),'cPMUI':_0x286139(0x1f7),'lrsPC':function(_0x5c0163){return _0x5c0163();},'mYXlf':function(_0x21363d,_0xc46420,_0x24a2ac){return _0x21363d(_0xc46420,_0x24a2ac);},'dQUJK':function(_0x4c609f,_0x4f502d,_0x125661){return _0x4c609f(_0x4f502d,_0x125661);},'DwKON':_0x286139(0x1cd),'sAFzV':function(_0x1e4244){return _0x1e4244();},'iqOfw':function(_0x354fbd,_0x25b4b2){return _0x354fbd!==_0x25b4b2;},'eczpQ':_0x286139(0x22d),'ulGZP':function(_0x33be46,_0x3eb3bd){return _0x33be46+_0x3eb3bd;},'dtODa':'Failed:\x20','wspQb':_0x286139(0x203),'KDOQi':'Passed','fCcgF':_0x286139(0x24a),'SUVAp':function(_0x246276){return _0x246276();},'roBcO':_0x286139(0x246),'DPosk':_0x286139(0x21b)},_0x2ae160='browserstack internal helper hook';this[_0x286139(0x1df)](0xfde8),global[_0x286139(0x1c4)]=this[_0x286139(0x205)][_0x286139(0x20d)]()[_0x286139(0x20a)](_0x51aa05[_0x286139(0x239)]),PerformanceTester[_0x286139(0x1f9)](PerformanceSdkEvents[_0x286139(0x257)],()=>{const _0x4a6329=_0x286139,_0x18c5ce={'AlrLf':function(_0x210d2d,_0x4f884d){const _0x2663a1=a32_0x5cf7;return _0x51aa05[_0x2663a1(0x25a)](_0x210d2d,_0x4f884d);},'isHeU':_0x51aa05['eczpQ'],'ytYLG':function(_0x55ab85,_0x4fd48b,_0x418e04){const _0x5a35cd=a32_0x5cf7;return _0x51aa05[_0x5a35cd(0x242)](_0x55ab85,_0x4fd48b,_0x418e04);},'Znzti':function(_0x307ed0,_0x4ea864){const _0x5da25a=a32_0x5cf7;return _0x51aa05[_0x5da25a(0x1e9)](_0x307ed0,_0x4ea864);},'edtBE':_0x51aa05['dtODa'],'pNKiM':_0x51aa05[_0x4a6329(0x252)],'wmMCz':_0x51aa05[_0x4a6329(0x25d)],'cQeuN':_0x51aa05[_0x4a6329(0x209)],'UMWrP':function(_0x5e9f3e){return _0x51aa05['SUVAp'](_0x5e9f3e);}},_0x5dbda0=async(_0x45c6be,_0x28c5cc)=>{const _0x1dc209=_0x4a6329;await global['__drivers'][0x0][_0x1dc209(0x20c)](_0x1dc209(0x21d)+_0x45c6be+_0x1dc209(0x244)+_0x28c5cc+_0x1dc209(0x260));};new Promise(async _0x4a72f3=>{const _0x2bb10a=_0x4a6329,_0x5d92de={};_0x5d92de[_0x2bb10a(0x214)]=_0x51aa05[_0x2bb10a(0x239)];const _0xc48c60=_0x5d92de;try{_0x51aa05[_0x2bb10a(0x268)](global[_0x2bb10a(0x230)][_0x2bb10a(0x1c5)],0x1)&&(await global[_0x2bb10a(0x20f)](),global[_0x2bb10a(0x230)]['shift'](),global[_0x2bb10a(0x217)]=[],global['__sessionFailed']=![]);try{if(global[_0x2bb10a(0x1e6)]&&_0x51aa05[_0x2bb10a(0x262)](global['percyCaptureMode'],_0x51aa05['pCdAI'])&&global[_0x2bb10a(0x230)][0x0]){const _0x541614=_0x51aa05[_0x2bb10a(0x23e)](global[_0x2bb10a(0x1f8)][_0x2bb10a(0x1c5)],0x0)?!!global[_0x2bb10a(0x1f8)][0x0]['app']||!!global[_0x2bb10a(0x1f8)][0x0][_0x51aa05['wjkAg']]:![],_0x43cfe2={};_0x43cfe2[_0x2bb10a(0x1ca)]=_0x541614,await _0x51aa05[_0x2bb10a(0x20e)](percyAutoCapture,global[_0x2bb10a(0x230)][0x0],_0x51aa05[_0x2bb10a(0x233)],_0x43cfe2);}}catch(_0x769b4){logger[_0x2bb10a(0x1cd)](_0x2bb10a(0x1e5)+_0x769b4);}!global[_0x2bb10a(0x248)]&&(await PerformanceTester[_0x2bb10a(0x1f9)](PerformanceAutEvents[_0x2bb10a(0x24e)],async()=>{const _0x4bcda5=_0x2bb10a;await global['__drivers'][0x0]['executeScript'](_0x4bcda5(0x1e8)+JSON['stringify'](this['currentTest'][_0x4bcda5(0x20d)]()[_0x4bcda5(0x20a)](_0xc48c60['VeFYh']))+'}}');})(),global[_0x2bb10a(0x230)][0x0][_0x2bb10a(0x21a)]=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x2bb10a(0x1fe)],async()=>{const _0x72afc8=_0x2bb10a,_0x2fdca3=_0x18c5ce[_0x72afc8(0x1da)](this[_0x72afc8(0x205)]['state'],_0x18c5ce[_0x72afc8(0x1d6)]);_0x2fdca3?(global[_0x72afc8(0x1f2)]=!![],global[_0x72afc8(0x217)][_0x72afc8(0x21c)](this[_0x72afc8(0x205)][_0x72afc8(0x1f4)]['message']),await _0x18c5ce[_0x72afc8(0x1dc)](_0x5dbda0,JSON[_0x72afc8(0x213)](_0x18c5ce[_0x72afc8(0x207)](_0x18c5ce[_0x72afc8(0x1d1)],this[_0x72afc8(0x205)]['err'][_0x72afc8(0x1ff)])),_0x18c5ce[_0x72afc8(0x236)])):await _0x18c5ce['ytYLG'](_0x5dbda0,JSON[_0x72afc8(0x213)](_0x18c5ce[_0x72afc8(0x241)]),_0x18c5ce[_0x72afc8(0x1eb)]);})();}catch(_0x42f5eb){logger['debug'](_0x2bb10a(0x1cf)+_0x42f5eb);}try{if(this[_0x2bb10a(0x205)][_0x2bb10a(0x229)]&&globals[_0x2bb10a(0x1f6)](_0x51aa05[_0x2bb10a(0x23a)])&&globals[_0x2bb10a(0x1f6)](_0x51aa05[_0x2bb10a(0x201)])){logger[_0x2bb10a(0x24a)](_0x51aa05[_0x2bb10a(0x221)]);const _0x21dc20={};_0x21dc20[_0x2bb10a(0x245)]=this[_0x2bb10a(0x205)][_0x2bb10a(0x1d2)],_0x21dc20[_0x2bb10a(0x222)]=process[_0x2bb10a(0x1d9)][testHubConstants[_0x2bb10a(0x1c8)][_0x2bb10a(0x23b)]],_0x21dc20[_0x2bb10a(0x1fc)]=process[_0x2bb10a(0x1d9)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_JWT']];const _0x2e3d2a=_0x21dc20;logger[_0x2bb10a(0x1cd)](_0x2bb10a(0x253)+JSON[_0x2bb10a(0x213)](_0x2e3d2a)),logger[_0x2bb10a(0x1cd)](_0x51aa05[_0x2bb10a(0x216)]);const _0x2c9db3={};_0x2c9db3['command']=_0x51aa05[_0x2bb10a(0x1fa)],await PerformanceTester[_0x2bb10a(0x1f9)](PerformanceA11yEvents[_0x2bb10a(0x224)],async()=>{const _0x29675b=_0x2bb10a;logger[_0x29675b(0x1cd)](util['format'](await global[_0x29675b(0x230)][0x0][_0x29675b(0x231)](scripts[_0x29675b(0x249)],{'method':global[_0x29675b(0x1ef)]})));},_0x2c9db3)(),await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x2bb10a(0x1d4)],async()=>{const _0x43775f=_0x2bb10a;await global[_0x43775f(0x230)][0x0][_0x43775f(0x231)](scripts['saveTestResults'],_0x2e3d2a);})(),logger[_0x2bb10a(0x24a)](_0x51aa05['cPMUI']);}}catch(_0x6fa7e9){logger[_0x2bb10a(0x203)](_0x2bb10a(0x1ec)+this[_0x2bb10a(0x205)]['titlePath']()+'.\x20Error\x20:',_0x6fa7e9);}try{try{if(_0x51aa05['lrsPC'](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x51aa05[_0x2bb10a(0x1e0)](sendPlatformDetails,global[_0x2bb10a(0x230)][0x0],this[_0x2bb10a(0x205)]?this[_0x2bb10a(0x205)][_0x2bb10a(0x1d2)]:null);if(_0x51aa05['lrsPC'](isBrowserstackInfra)){PerformanceTester[_0x2bb10a(0x22c)](PerformanceO11yEvents['SYNC']);const _0x3137ec=_0x2bb10a(0x1d5)+Date[_0x2bb10a(0x1e2)]();await _0x51aa05[_0x2bb10a(0x242)](_0x5dbda0,JSON['stringify'](_0x3137ec),_0x51aa05['DwKON']),PerformanceTester[_0x2bb10a(0x22b)](PerformanceO11yEvents[_0x2bb10a(0x22f)]);}}}catch(_0x3f5012){logger[_0x2bb10a(0x1cd)](_0x2bb10a(0x250)+_0x3f5012),PerformanceTester[_0x2bb10a(0x22b)](PerformanceO11yEvents[_0x2bb10a(0x22f)],![],_0x3f5012);}_0x51aa05[_0x2bb10a(0x23e)](global['__drivers'][0x0][_0x2bb10a(0x226)],0x0)&&await global['driverCleanup']();}catch(_0x3f85ee){logger['debug'](_0x2bb10a(0x208)+_0x3f85ee);}_0x51aa05[_0x2bb10a(0x1de)](_0x4a72f3);})['then'](()=>{const _0x245450=_0x4a6329;_0x18c5ce[_0x245450(0x218)](_0x58cf40);});},{'platform':_0x51aa05['dQUJK'](nestedKeyValue,global[_0x286139(0x1fd)],[_0x51aa05[_0x286139(0x1c6)]]),'hookType':_0x51aa05[_0x286139(0x1c3)]})();},'afterAll'(_0x329de7){const _0x142b48=a32_0x17b94c,_0x57259d={'HCMpf':function(_0x4e2042){return _0x4e2042();},'aPkis':function(_0x5ee602,_0x2c08d6,_0x12e105){return _0x5ee602(_0x2c08d6,_0x12e105);},'afrtY':_0x142b48(0x246),'vJzks':'afterAll'},_0x49c265='browserstack internal helper hook';this['timeout'](0xfde8),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x142b48(0x257)],()=>{const _0x165e45=_0x142b48,_0xa478bf={'mhsVO':function(_0x2f2eaa){return _0x57259d['HCMpf'](_0x2f2eaa);}};new Promise(async _0x55c90c=>{const _0x2e0705=a32_0x5cf7;await global[_0x2e0705(0x20f)](),_0xa478bf[_0x2e0705(0x1c7)](_0x55c90c);})[_0x165e45(0x24c)]()[_0x165e45(0x265)](()=>{const _0x36aad6=_0x165e45;_0xa478bf[_0x36aad6(0x1c7)](_0x329de7);});},{'platform':_0x57259d[_0x142b48(0x20b)](nestedKeyValue,global[_0x142b48(0x1fd)],[_0x57259d[_0x142b48(0x247)]]),'hookType':_0x57259d['vJzks']})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x39cd3e=a33_0x1629;(function(_0xf6704,_0x4cbee6){const _0xef5d44=a33_0x1629,_0x475e60=_0xf6704();while(!![]){try{const _0x2eaa84=-parseInt(_0xef5d44(0x219))/0x1*(-parseInt(_0xef5d44(0x203))/0x2)+parseInt(_0xef5d44(0x21d))/0x3*(-parseInt(_0xef5d44(0x221))/0x4)+-parseInt(_0xef5d44(0x22b))/0x5+parseInt(_0xef5d44(0x1ed))/0x6+-parseInt(_0xef5d44(0x220))/0x7*(parseInt(_0xef5d44(0x226))/0x8)+-parseInt(_0xef5d44(0x1fe))/0x9*(-parseInt(_0xef5d44(0x212))/0xa)+-parseInt(_0xef5d44(0x200))/0xb;if(_0x2eaa84===_0x4cbee6)break;else _0x475e60['push'](_0x475e60['shift']());}catch(_0x38b465){_0x475e60['push'](_0x475e60['shift']());}}}(a33_0x4d73,0x19126));function a33_0x4d73(){const _0x2753fb=['zrUHh','host','nightwatch.conf.js','slice','nightwatch','55281EQGJxL','--env','join','scDPP','171147ZYgOXs','csOQV','nightwatch.json','7JhMzGJ','4GLLEfK','Getting\x20your\x20nightwatch\x20configs\x20from\x20','nightwatch.cmd','../../helpers/helper','exports','248008BclsxN','../../helpers/logger','ajdBD','--config','trim','675120cWioOf','winstonLogger','split','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','nightwatch-browserstack.json','unlinkSync','existsSync','inherit','mniEM','InKep','cwd','JAjDq','info','findIndex','OiacL','407286PrlVIw','NOpqs','length','../utils/constants','env','hub.browserstack.com','test','hZqJb','UpWJn','desiredCapabilities','push','selenium','hssfe','forEach','isUndefined','KfkfF','close','122238qaZxAW','CxNyn','780340XBOxVj','platform','splice','6EqjLxN','FuwZv','test_settings','now','config','JBoXp','modifyBrowserStackW3CCaps','../../helpers/BrowserStackSetup','Ypvpk','child_process','mergeDeep','saTyZ','writeFileSync','debug','gkpDt','120jlKrto','modifyBrowserStackCaps'];a33_0x4d73=function(){return _0x2753fb;};return a33_0x4d73();}function a33_0x1629(_0x44650e,_0x597f0d){const _0x4d7386=a33_0x4d73();return a33_0x1629=function(_0x162990,_0x1a3aff){_0x162990=_0x162990-0x1e6;let _0x5db44f=_0x4d7386[_0x162990];return _0x5db44f;},a33_0x1629(_0x44650e,_0x597f0d);}const fs=require('fs'),path=require('path'),{spawn}=require(a33_0x39cd3e(0x20c)),logger=require(a33_0x39cd3e(0x227))[a33_0x39cd3e(0x22c)],{default:BrowserStackSetup}=require(a33_0x39cd3e(0x20a)),helper=require(a33_0x39cd3e(0x224)),constants=require(a33_0x39cd3e(0x1f0)),getUserNightwatchConfigs=(_0x474150,_0x18fb2c)=>{const _0x4412b2=a33_0x39cd3e,_0x228443={'hZqJb':_0x4412b2(0x216),'UpWJn':_0x4412b2(0x21f),'KfkfF':function(_0x256354,_0x3b79ae){return _0x256354(_0x3b79ae);},'OiacL':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x3bb77c=null,_0x4ce071={};const _0x74b5c6=_0x18fb2c['findIndex'](_0x3adc65=>_0x3adc65===_0x4412b2(0x229));if(!helper[_0x4412b2(0x1fb)](_0x474150['config'])&&fs[_0x4412b2(0x231)](path[_0x4412b2(0x21b)](process['cwd'](),_0x474150['config'])))_0x3bb77c=path['join'](process[_0x4412b2(0x1e8)](),_0x474150['config']),_0x18fb2c[_0x4412b2(0x202)](_0x74b5c6,0x2);else{if(fs[_0x4412b2(0x231)](path[_0x4412b2(0x21b)](process[_0x4412b2(0x1e8)](),_0x228443[_0x4412b2(0x1f4)])))_0x3bb77c=path[_0x4412b2(0x21b)](process[_0x4412b2(0x1e8)](),_0x228443['hZqJb']);else fs[_0x4412b2(0x231)](path[_0x4412b2(0x21b)](process[_0x4412b2(0x1e8)](),_0x228443[_0x4412b2(0x1f5)]))&&(_0x3bb77c=path[_0x4412b2(0x21b)](process[_0x4412b2(0x1e8)](),_0x228443['UpWJn']));}return _0x3bb77c?(logger['info'](_0x4412b2(0x222)+_0x3bb77c),_0x4ce071=_0x228443[_0x4412b2(0x1fc)](require,_0x3bb77c)):logger[_0x4412b2(0x1ea)](_0x228443[_0x4412b2(0x1ec)]),_0x4ce071;},removeExistingEnvs=_0x59346b=>{const _0x295121=a33_0x39cd3e,_0x1f3c13={};_0x1f3c13[_0x295121(0x1e7)]=function(_0x1e0586,_0x244354){return _0x1e0586>_0x244354;},_0x1f3c13['bVuun']=function(_0x51993f,_0x7b44c1){return _0x51993f>_0x7b44c1;};const _0xc62ad4=_0x1f3c13;let _0x264b3a=_0x59346b[_0x295121(0x1eb)](_0x49e84c=>_0x49e84c===_0x295121(0x21a));_0xc62ad4[_0x295121(0x1e7)](_0x264b3a,-0x1)&&_0x59346b['splice'](_0x264b3a,0x2),_0x264b3a=_0x59346b[_0x295121(0x1eb)](_0x12dc18=>_0x12dc18==='-e'),_0xc62ad4['bVuun'](_0x264b3a,-0x1)&&_0x59346b['splice'](_0x264b3a,0x2);};function run(_0x1f77ac,_0x3a86ab){const _0x512f18=a33_0x39cd3e,_0x435fe4={'zrUHh':_0x512f18(0x218),'FuwZv':function(_0xdef410,_0x2adc3d){return _0xdef410+_0x2adc3d;},'hssfe':_0x512f18(0x205),'CxNyn':function(_0x39baca,_0x1409ce,_0x2ea659){return _0x39baca(_0x1409ce,_0x2ea659);},'HPTZN':_0x512f18(0x1f2),'csOQV':_0x512f18(0x22e),'Ypvpk':function(_0x32f759,_0x5cc870){return _0x32f759===_0x5cc870;},'JBoXp':_0x512f18(0x22f),'ACCjn':function(_0x5ce11b,_0x49e40d){return _0x5ce11b(_0x49e40d);},'JAjDq':function(_0x22887a,_0x4fae25,_0x27344b,_0x5eeb70){return _0x22887a(_0x4fae25,_0x27344b,_0x5eeb70);},'NOpqs':_0x512f18(0x223),'saTyZ':_0x512f18(0x229),'gkpDt':'--env','CdKHP':_0x512f18(0x232),'ajdBD':_0x512f18(0x1fd)},_0x4a1711=new BrowserStackSetup(_0x1f77ac);if(!_0x4a1711['config'])return;const _0x26b89e=_0x435fe4[_0x512f18(0x1ff)](getUserNightwatchConfigs,_0x1f77ac,_0x3a86ab),_0x369bab={};_0x369bab['start_process']=![];const _0x29a70d={};_0x29a70d[_0x512f18(0x215)]=_0x435fe4['HPTZN'],_0x29a70d['port']=0x1bb;const _0x1d9242={};_0x1d9242['webdriver']=_0x369bab,_0x1d9242[_0x512f18(0x1f8)]=_0x29a70d;const _0x41f937=_0x1d9242;logger[_0x512f18(0x1ea)](_0x435fe4[_0x512f18(0x21e)]);const _0x596f90={..._0x26b89e},_0x44d349=_0x596f90,_0x5557f3=helper['useW3C'](_0x4a1711[_0x512f18(0x207)]),_0x1d0a32=[];_0x4a1711['config']['platforms'][_0x512f18(0x1fa)]((_0x2c6da2,_0x137c84)=>{const _0x5dba55=_0x512f18;_0x5557f3?_0x1d0a32[_0x5dba55(0x1f7)](helper[_0x5dba55(0x209)](_0x4a1711[_0x5dba55(0x207)],_0x435fe4[_0x5dba55(0x214)],_0x137c84)):_0x1d0a32[_0x5dba55(0x1f7)](helper[_0x5dba55(0x213)](_0x4a1711[_0x5dba55(0x207)],_0x435fe4[_0x5dba55(0x214)],_0x137c84));});const _0xddacdb={},_0x71077c=[];_0x1f77ac[_0x512f18(0x1f1)]=_0x1f77ac['env']||_0x1f77ac['e'];const _0x1bfaaf=_0x1f77ac[_0x512f18(0x1f1)]?_0x1f77ac[_0x512f18(0x1f1)][_0x512f18(0x22a)]()[_0x512f18(0x22d)](',')['map'](_0x4ea236=>_0x4ea236[_0x512f18(0x22a)]())['filter'](_0xda288=>_0xda288!==''):[''];_0x435fe4[_0x512f18(0x20b)](_0x1bfaaf[_0x512f18(0x1ef)],0x0)&&_0x1bfaaf[_0x512f18(0x1f7)]('');_0x1bfaaf[_0x512f18(0x1fa)](_0x2677ff=>{const _0x1b4aa1=_0x512f18,_0x3cc895={'mniEM':function(_0x422053,_0x1c2159){const _0x1d1ec1=a33_0x1629;return _0x435fe4[_0x1d1ec1(0x204)](_0x422053,_0x1c2159);},'scDPP':_0x435fe4[_0x1b4aa1(0x1f9)]};_0x1d0a32[_0x1b4aa1(0x1fa)](_0x4129d8=>{const _0x2fd30c=_0x1b4aa1;let _0xaa7b8e=_0x3cc895[_0x2fd30c(0x1e6)](helper['getPlatformName'](_0x4129d8,'_'),'_'+Date[_0x2fd30c(0x206)]());_0x2677ff&&(_0xaa7b8e+='_'+_0x2677ff);if(_0x2677ff&&(!_0x26b89e[_0x3cc895['scDPP']]||!_0x26b89e[_0x3cc895[_0x2fd30c(0x21c)]][_0x2677ff]))return;const _0x15e0e1={..._0x41f937};_0x15e0e1[_0x2fd30c(0x1f6)]=_0x4129d8;const _0xb6bc12=_0x15e0e1;_0xddacdb[_0xaa7b8e]=_0x2677ff?helper[_0x2fd30c(0x20d)](_0x26b89e[_0x3cc895[_0x2fd30c(0x21c)]][_0x2677ff],_0xb6bc12):_0xb6bc12,_0x71077c[_0x2fd30c(0x1f7)](_0xaa7b8e);});});!_0x44d349['test_settings']&&(_0x44d349['test_settings']={});_0x44d349['test_settings']={..._0x44d349[_0x512f18(0x205)],..._0xddacdb};const _0x332025=path[_0x512f18(0x21b)](__dirname,_0x435fe4[_0x512f18(0x208)]);fs[_0x512f18(0x20f)](_0x332025,JSON['stringify'](_0x44d349)),_0x435fe4['ACCjn'](removeExistingEnvs,_0x3a86ab);const _0x2c42c4=_0x435fe4[_0x512f18(0x1e9)](spawn,/^win/[_0x512f18(0x1f3)](process[_0x512f18(0x201)])?_0x435fe4[_0x512f18(0x1ee)]:_0x435fe4[_0x512f18(0x214)],[_0x435fe4[_0x512f18(0x20e)],_0x332025,..._0x3a86ab[_0x512f18(0x217)](0x1),_0x435fe4[_0x512f18(0x211)],_0x71077c[_0x512f18(0x21b)](',')],{'stdio':_0x435fe4['CdKHP']});_0x2c42c4['on'](_0x435fe4[_0x512f18(0x228)],async _0x39f418=>{const _0x2e7508=_0x512f18;logger[_0x2e7508(0x210)]('child\x20process\x20exited\x20with\x20code\x20'+_0x39f418),logger[_0x2e7508(0x1ea)]('Deleting\x20'+_0x332025),fs[_0x2e7508(0x230)](_0x332025);});}module[a33_0x39cd3e(0x225)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x4c741c=a34_0xdc84;function a34_0xdc84(_0x1c9324,_0x32dbf9){const _0x2d1c04=a34_0x2d1c();return a34_0xdc84=function(_0xdc84ec,_0x32c22e){_0xdc84ec=_0xdc84ec-0x1ea;let _0x5a5b34=_0x2d1c04[_0xdc84ec];return _0x5a5b34;},a34_0xdc84(_0x1c9324,_0x32dbf9);}(function(_0x19bfe8,_0x340ca1){const _0x1371dd=a34_0xdc84,_0x1320a5=_0x19bfe8();while(!![]){try{const _0x459297=parseInt(_0x1371dd(0x1fa))/0x1+parseInt(_0x1371dd(0x22f))/0x2+parseInt(_0x1371dd(0x207))/0x3*(-parseInt(_0x1371dd(0x1f5))/0x4)+-parseInt(_0x1371dd(0x234))/0x5*(parseInt(_0x1371dd(0x1f4))/0x6)+-parseInt(_0x1371dd(0x227))/0x7+parseInt(_0x1371dd(0x22e))/0x8+-parseInt(_0x1371dd(0x20f))/0x9*(-parseInt(_0x1371dd(0x240))/0xa);if(_0x459297===_0x340ca1)break;else _0x1320a5['push'](_0x1320a5['shift']());}catch(_0x534576){_0x1320a5['push'](_0x1320a5['shift']());}}}(a34_0x2d1c,0x99f2e));const util=require('util'),logger=require(a34_0x4c741c(0x222))[a34_0x4c741c(0x1f8)],{isAccessibilityAutomationSession}=require(a34_0x4c741c(0x210)),{isUndefined}=require('../../helpers/helper'),scripts=require(a34_0x4c741c(0x213)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants');exports[a34_0x4c741c(0x24f)]=async(_0x9bb50d,_0x48635c,_0x4a1b2a={})=>{const _0x308f71=a34_0x4c741c,_0x57f3f7={};_0x57f3f7[_0x308f71(0x1f6)]=_0x308f71(0x244);const _0x352a04=_0x57f3f7;return await _0x9bb50d[_0x308f71(0x220)](_0x308f71(0x22b)+_0x48635c[_0x308f71(0x23d)](/arguments/g,_0x352a04[_0x308f71(0x1f6)])+_0x308f71(0x212)+JSON[_0x308f71(0x241)](_0x4a1b2a)+')');},exports[a34_0x4c741c(0x22d)]=async(_0x4fd0e2,_0x1e6480,_0x415711={})=>{const _0x194c4d=a34_0x4c741c,_0x54fe4d={};_0x54fe4d['PqZMZ']=function(_0x4aab03,_0x2e1bcb){return _0x4aab03===_0x2e1bcb;},_0x54fe4d[_0x194c4d(0x1eb)]=_0x194c4d(0x225),_0x54fe4d[_0x194c4d(0x1f3)]=function(_0x1270ae,_0x469906){return _0x1270ae===_0x469906;},_0x54fe4d[_0x194c4d(0x20e)]=_0x194c4d(0x21b),_0x54fe4d[_0x194c4d(0x247)]='bstackSdkArgs';const _0x1eb1a3=_0x54fe4d;if(_0x1eb1a3['PqZMZ'](_0x4fd0e2[_0x194c4d(0x255)][_0x194c4d(0x24b)],_0x1eb1a3[_0x194c4d(0x1eb)]))return await _0x4fd0e2[_0x194c4d(0x252)](_0x1e6480,_0x415711);else{if(_0x1eb1a3[_0x194c4d(0x1f3)](_0x4fd0e2['constructor'][_0x194c4d(0x24b)],_0x1eb1a3[_0x194c4d(0x20e)]))return await _0x4fd0e2[_0x194c4d(0x218)](_0x194c4d(0x1ee)+_0x1e6480[_0x194c4d(0x23d)](/arguments/g,_0x1eb1a3['Trcap'])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x194c4d(0x241)](_0x415711)+')');}},exports[a34_0x4c741c(0x237)]=async _0x2f8a79=>{const _0x5c3585=a34_0x4c741c,_0x211879={};_0x211879[_0x5c3585(0x251)]='accessibilityOptions.wcagVersion',_0x211879[_0x5c3585(0x1ec)]='accessibilityOptions.scannerProcessingTimeout',_0x211879[_0x5c3585(0x24e)]='accessibilityOptions.includeIssueType.bestPractice',_0x211879['MghIf']='accessibilityOptions.includeIssueType.needsReview',_0x211879[_0x5c3585(0x1fc)]=_0x5c3585(0x245),_0x211879[_0x5c3585(0x248)]='accessibilityOptions.scannerVersion';const _0x3381c5=_0x211879;_0x2f8a79[_0x5c3585(0x209)]&&(_0x2f8a79[_0x5c3585(0x209)]['wcagVersion']&&(_0x2f8a79[_0x3381c5[_0x5c3585(0x251)]]=_0x2f8a79[_0x5c3585(0x209)][_0x5c3585(0x246)]),_0x2f8a79[_0x5c3585(0x209)][_0x5c3585(0x24a)]&&(_0x2f8a79[_0x3381c5[_0x5c3585(0x1ec)]]=_0x2f8a79[_0x5c3585(0x209)]['scannerProcessingTimeout']),_0x2f8a79[_0x5c3585(0x209)][_0x5c3585(0x215)]&&(_0x2f8a79[_0x3381c5[_0x5c3585(0x24e)]]=_0x2f8a79[_0x5c3585(0x209)][_0x5c3585(0x215)][_0x5c3585(0x243)],_0x2f8a79[_0x3381c5[_0x5c3585(0x224)]]=_0x2f8a79['accessibilityOptions'][_0x5c3585(0x215)]['needsReview']));const _0x20bec0=JSON['parse'](process[_0x5c3585(0x1ef)][_0x5c3585(0x24c)])[_0x5c3585(0x22c)];_0x2f8a79[_0x3381c5[_0x5c3585(0x1fc)]]=process[_0x5c3585(0x1ef)][_0x5c3585(0x226)],_0x2f8a79[_0x3381c5[_0x5c3585(0x248)]]=_0x20bec0,delete _0x2f8a79[_0x5c3585(0x209)];},exports[a34_0x4c741c(0x1f9)]=async _0x4e3b9d=>{const _0x55cba9=a34_0x4c741c,_0x486a71={};_0x486a71[_0x55cba9(0x216)]=_0x55cba9(0x1f7),_0x486a71[_0x55cba9(0x205)]=_0x55cba9(0x21f);const _0x7000d8=_0x486a71;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x4e3b9d,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x4e3b9d,scripts.getResults);})();return res;}catch{return logger['error'](_0x7000d8[_0x55cba9(0x216)]),[];}else return logger[_0x55cba9(0x256)](_0x7000d8[_0x55cba9(0x205)]),[];},exports[a34_0x4c741c(0x228)]=async(_0x2f09bc,_0x686c49='')=>{const _0x5cedd0=a34_0x4c741c;if(global[_0x5cedd0(0x24d)])return await PerformanceTester[_0x5cedd0(0x200)](PerformanceA11yEvents[_0x5cedd0(0x232)],async()=>{const _0x5aaef5=_0x5cedd0,_0x6436f4={};_0x6436f4[_0x5aaef5(0x238)]=_0x686c49,await exports['browserStackEvaluate'](_0x2f09bc,scripts[_0x5aaef5(0x228)],_0x6436f4);},{'command':_0x686c49})();},exports[a34_0x4c741c(0x21e)]=async _0x1945df=>{const _0xf43733=a34_0x4c741c,_0x207e19={};_0x207e19['yJeVw']=_0xf43733(0x208),_0x207e19[_0xf43733(0x217)]=_0xf43733(0x249);const _0x1c2b46=_0x207e19;if(global[_0xf43733(0x24d)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1945df,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x1945df,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0xf43733(0x236)](_0x1c2b46[_0xf43733(0x23e)]),{};}else return logger['warn'](_0x1c2b46[_0xf43733(0x217)]),{};},exports[a34_0x4c741c(0x202)]=async _0x2c4587=>{const _0x11537d=a34_0x4c741c,_0x45040f={'MuMUO':function(_0x5d760b,_0x1dd8b1){return _0x5d760b!==_0x1dd8b1;},'OajOx':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','PVTbS':function(_0x5543d7,_0x1f8c05){return _0x5543d7===_0x1f8c05;},'ZHGmU':_0x11537d(0x230),'eODsr':function(_0x34d594,_0x4e39da){return _0x34d594===_0x4e39da;},'akREz':_0x11537d(0x23c),'FmfYT':_0x11537d(0x21d),'BwSAq':function(_0x5e6abb,_0x53a824){return _0x5e6abb(_0x53a824);},'HQzWf':function(_0x30b88e,_0x5d1bb7){return _0x30b88e===_0x5d1bb7;},'dpIZb':'latest','mIIXU':function(_0x56bb3f,_0x307a66){return _0x56bb3f>_0x307a66;},'XlAoG':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x45040f[_0x11537d(0x1f2)](_0x2c4587[_0x11537d(0x21c)],''))return logger[_0x11537d(0x256)](_0x45040f[_0x11537d(0x204)]),![];const _0x5ca48d=_0x2c4587[_0x11537d(0x23f)];if(!(_0x45040f[_0x11537d(0x23a)](_0x5ca48d,_0x45040f[_0x11537d(0x257)])||_0x45040f[_0x11537d(0x253)](_0x5ca48d,_0x45040f[_0x11537d(0x1f0)])))return logger[_0x11537d(0x256)](_0x45040f[_0x11537d(0x242)]),![];const _0x3a2934=_0x45040f[_0x11537d(0x1ff)](parseInt,_0x2c4587[_0x11537d(0x203)]);if(!(_0x45040f[_0x11537d(0x214)](_0x3a2934,_0x45040f[_0x11537d(0x221)])||_0x45040f[_0x11537d(0x250)](_0x3a2934,0x5e)))return logger[_0x11537d(0x256)](_0x45040f[_0x11537d(0x1f1)]),![];}catch(_0x545304){logger[_0x11537d(0x236)](_0x11537d(0x254)+util[_0x11537d(0x239)](_0x545304));}return!![];},exports['processAccessibilityCaps']=(_0x10e15a,_0x4901f4,_0x19ae60)=>{const _0x4cb3fc=a34_0x4c741c,_0x4ea41e={'HMaPP':function(_0x5b1456){return _0x5b1456();},'pTfMP':_0x4cb3fc(0x20d),'WHZlS':function(_0x2dc9e5,_0x765922){return _0x2dc9e5===_0x765922;},'aTRPG':_0x4cb3fc(0x230),'kfDvv':'playwright-chromium','XdEFL':_0x4cb3fc(0x21d),'YBvuG':function(_0x51f9ca,_0x3ac39a){return _0x51f9ca===_0x3ac39a;},'fcVdQ':_0x4cb3fc(0x1fb),'aXnME':function(_0x50b41b,_0xc4f86c){return _0x50b41b>_0xc4f86c;},'smliq':_0x4cb3fc(0x1ea),'RnmfP':function(_0x5d8f21,_0x157ed3){return _0x5d8f21(_0x157ed3);},'EBYbC':_0x4cb3fc(0x223),'vwMpW':function(_0x84d1bb,_0x5c21ed){return _0x84d1bb+_0x5c21ed;}};try{if(_0x4ea41e[_0x4cb3fc(0x211)](isAccessibilityAutomationSession)){global[_0x4cb3fc(0x24d)]=!![];!_0x10e15a[_0x4ea41e[_0x4cb3fc(0x231)]]&&(global[_0x4cb3fc(0x24d)]=![]);!(_0x4ea41e[_0x4cb3fc(0x21a)](_0x10e15a['browserName'],_0x4ea41e[_0x4cb3fc(0x20b)])||_0x4ea41e[_0x4cb3fc(0x21a)](_0x10e15a['browserName'],_0x4ea41e[_0x4cb3fc(0x23b)]))&&(logger[_0x4cb3fc(0x256)](_0x4ea41e[_0x4cb3fc(0x20c)]),global[_0x4cb3fc(0x24d)]=![]);!(_0x4ea41e[_0x4cb3fc(0x1fe)](_0x10e15a[_0x4cb3fc(0x203)],_0x4ea41e[_0x4cb3fc(0x1ed)])||_0x4ea41e['aXnME'](_0x10e15a[_0x4cb3fc(0x203)],0x5e))&&(logger[_0x4cb3fc(0x256)](_0x4ea41e[_0x4cb3fc(0x219)]),global['accessibilityPlatform']=![]);!_0x4ea41e[_0x4cb3fc(0x20a)](isUndefined,_0x10e15a['deviceName'])&&(logger[_0x4cb3fc(0x256)](_0x4ea41e[_0x4cb3fc(0x22a)]),global[_0x4cb3fc(0x24d)]=![]);if(!global[_0x4cb3fc(0x24d)]){_0x10e15a[_0x4ea41e[_0x4cb3fc(0x231)]]=![];const _0x16d336=_0x4ea41e[_0x4cb3fc(0x201)](_0x4901f4,_0x4ea41e['RnmfP'](encodeURIComponent,JSON[_0x4cb3fc(0x241)](_0x10e15a)));_0x19ae60&&(_0x19ae60['currentTest'][_0x4cb3fc(0x229)]['project']['use']['connectOptions'][_0x4cb3fc(0x1fd)]=_0x16d336,_0x19ae60[_0x4cb3fc(0x235)]['project']['use'][_0x4cb3fc(0x233)]['wsEndpoint']=_0x16d336);}}}catch(_0xad42f5){logger[_0x4cb3fc(0x236)](_0x4cb3fc(0x206)+util[_0x4cb3fc(0x239)](_0xad42f5));}};function a34_0x2d1c(){const _0x194251=['PVTbS','kfDvv','playwright-chromium','replace','yJeVw','browser','40wOFLps','stringify','FmfYT','bestPractice','bstackSdkArgs','accessibilityOptions.authToken','wcagVersion','Trcap','GPzzU','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','scannerProcessingTimeout','name','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','accessibilityPlatform','IxAEg','browserStackEvaluate','mIIXU','TXOzE','executeAsyncScript','eODsr','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','constructor','warn','ZHGmU','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','EwQZA','Zxptv','fcVdQ','(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','env','akREz','XlAoG','MuMUO','UpdXq','125928dMPgCy','4WZMcUO','EYMHM','No\x20accessibility\x20results\x20were\x20found.','winstonLogger','getAccessibilityResults','652268EMBuFJ','latest','UeBuF','wsEndpoint','YBvuG','BwSAq','measureWrapper','vwMpW','platformValidation','browser_version','OajOx','sqSpG','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','2266827SxoxYV','No\x20summaryResults\x20found.','accessibilityOptions','RnmfP','aTRPG','XdEFL','browserstack.accessibility','SsSyf','1369503gmxtNj','../../helpers/accessibility-automation/helper','HMaPP','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','../../helpers/accessibility-automation/scripts','HQzWf','includeIssueType','upEJI','scXuX','executeScript','smliq','WHZlS','Playwright','deviceName','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','getAccessibilityResultsSummary','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','evaluate','dpIZb','../../helpers/logger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','MghIf','WebDriver','BS_A11Y_JWT','4925298IJZMZM','performScan','testInfo','EBYbC','(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','scannerVersion','browserStackExecuteDriver','9437152fOVubE','683642hOrTkY','chrome','pTfMP','PERFORM_SCAN','connectOptions','165naUGKa','workerInfo','debug','setAccessibilityCapabilities','command','format'];a34_0x2d1c=function(){return _0x194251;};return a34_0x2d1c();}
|
|
1
|
+
const a34_0x50464e=a34_0x4c98;function a34_0x4c98(_0x1e735d,_0x408ace){const _0x2b67b3=a34_0x2b67();return a34_0x4c98=function(_0x4c9877,_0x473837){_0x4c9877=_0x4c9877-0xe4;let _0x5f5ccd=_0x2b67b3[_0x4c9877];return _0x5f5ccd;},a34_0x4c98(_0x1e735d,_0x408ace);}(function(_0x2676f0,_0x141c81){const _0x3beebb=a34_0x4c98,_0x1a0ba6=_0x2676f0();while(!![]){try{const _0x2967f6=parseInt(_0x3beebb(0xe7))/0x1*(parseInt(_0x3beebb(0x12a))/0x2)+-parseInt(_0x3beebb(0x139))/0x3+-parseInt(_0x3beebb(0x118))/0x4+parseInt(_0x3beebb(0xfb))/0x5+-parseInt(_0x3beebb(0x137))/0x6+parseInt(_0x3beebb(0x140))/0x7+parseInt(_0x3beebb(0x133))/0x8;if(_0x2967f6===_0x141c81)break;else _0x1a0ba6['push'](_0x1a0ba6['shift']());}catch(_0xe334){_0x1a0ba6['push'](_0x1a0ba6['shift']());}}}(a34_0x2b67,0x626de));const util=require(a34_0x50464e(0x119)),logger=require(a34_0x50464e(0x102))['winstonLogger'],{isAccessibilityAutomationSession}=require(a34_0x50464e(0x100)),{isUndefined}=require(a34_0x50464e(0x105)),scripts=require(a34_0x50464e(0xf9)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants');exports[a34_0x50464e(0x115)]=async(_0x48f859,_0xe46007,_0x4c7c5c={})=>{const _0x457738=a34_0x50464e,_0x2df535={};_0x2df535[_0x457738(0xec)]='bstackSdkArgs';const _0xd227d2=_0x2df535;return await _0x48f859[_0x457738(0x101)](_0x457738(0x10d)+_0xe46007[_0x457738(0x13b)](/arguments/g,_0xd227d2[_0x457738(0xec)])+_0x457738(0x132)+JSON[_0x457738(0xeb)](_0x4c7c5c)+')');},exports[a34_0x50464e(0x128)]=async(_0x34b33d,_0x5b1d3a,_0x45548c={})=>{const _0x404120=a34_0x50464e,_0x30ffdd={};_0x30ffdd[_0x404120(0x11a)]=function(_0x43110b,_0x43e0d1){return _0x43110b===_0x43e0d1;},_0x30ffdd[_0x404120(0x106)]='WebDriver',_0x30ffdd['zdvcK']=_0x404120(0xf3),_0x30ffdd['IWxkN']=_0x404120(0x144);const _0x34d0cf=_0x30ffdd;if(_0x34d0cf[_0x404120(0x11a)](_0x34b33d['constructor']['name'],_0x34d0cf[_0x404120(0x106)]))return await _0x34b33d['executeAsyncScript'](_0x5b1d3a,_0x45548c);else{if(_0x34d0cf[_0x404120(0x11a)](_0x34b33d['constructor'][_0x404120(0x11e)],_0x34d0cf['zdvcK']))return await _0x34b33d[_0x404120(0x135)](_0x404120(0x103)+_0x5b1d3a[_0x404120(0x13b)](/arguments/g,_0x34d0cf[_0x404120(0xf5)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x404120(0xeb)](_0x45548c)+')');}},exports[a34_0x50464e(0xe9)]=async _0x1e4b6c=>{const _0x896f0a=a34_0x50464e,_0x32a9ca={};_0x32a9ca[_0x896f0a(0x14a)]=_0x896f0a(0x10b),_0x32a9ca['BdmEh']=_0x896f0a(0x122),_0x32a9ca['PAALs']=_0x896f0a(0x148),_0x32a9ca['tlvMB']=_0x896f0a(0x10a),_0x32a9ca[_0x896f0a(0xf8)]=_0x896f0a(0x112),_0x32a9ca[_0x896f0a(0x14b)]=_0x896f0a(0x113);const _0x5829e9=_0x32a9ca;_0x1e4b6c[_0x896f0a(0x130)]&&(_0x1e4b6c[_0x896f0a(0x130)]['wcagVersion']&&(_0x1e4b6c[_0x5829e9[_0x896f0a(0x14a)]]=_0x1e4b6c[_0x896f0a(0x130)][_0x896f0a(0xe6)]),_0x1e4b6c['accessibilityOptions']['scannerProcessingTimeout']&&(_0x1e4b6c[_0x5829e9[_0x896f0a(0x12b)]]=_0x1e4b6c['accessibilityOptions'][_0x896f0a(0x123)]),_0x1e4b6c['accessibilityOptions']['includeIssueType']&&(_0x1e4b6c[_0x5829e9[_0x896f0a(0x142)]]=_0x1e4b6c[_0x896f0a(0x130)][_0x896f0a(0x11b)][_0x896f0a(0x117)],_0x1e4b6c[_0x5829e9[_0x896f0a(0x129)]]=_0x1e4b6c['accessibilityOptions'][_0x896f0a(0x11b)][_0x896f0a(0x127)]));const _0x166fe0=JSON[_0x896f0a(0x13c)](process[_0x896f0a(0x109)][_0x896f0a(0xf6)])['scannerVersion'];_0x1e4b6c[_0x5829e9[_0x896f0a(0xf8)]]=process[_0x896f0a(0x109)][_0x896f0a(0xfc)],_0x1e4b6c[_0x5829e9[_0x896f0a(0x14b)]]=_0x166fe0,delete _0x1e4b6c[_0x896f0a(0x130)];},exports['getAccessibilityResults']=async _0x1e8932=>{const _0x41ec4f=a34_0x50464e,_0x29fb24={};_0x29fb24[_0x41ec4f(0x126)]='No\x20accessibility\x20results\x20were\x20found.',_0x29fb24[_0x41ec4f(0x143)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x28814d=_0x29fb24;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x1e8932,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x1e8932,scripts.getResults);})();return res;}catch{return logger[_0x41ec4f(0xe5)](_0x28814d[_0x41ec4f(0x126)]),[];}else return logger[_0x41ec4f(0x13f)](_0x28814d[_0x41ec4f(0x143)]),[];},exports[a34_0x50464e(0x12e)]=async(_0x5d7863,_0x35624d='')=>{const _0x5396a5=a34_0x50464e;if(global[_0x5396a5(0x13e)])return await PerformanceTester[_0x5396a5(0x149)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x2e869d=_0x5396a5,_0x536927={};_0x536927[_0x2e869d(0x145)]=_0x35624d,await exports['browserStackEvaluate'](_0x5d7863,scripts['performScan'],_0x536927);},{'command':_0x35624d})();},exports[a34_0x50464e(0x114)]=async _0x33c8aa=>{const _0x1c3d1f=a34_0x50464e,_0x5ade3b={};_0x5ade3b[_0x1c3d1f(0x12f)]=_0x1c3d1f(0xfa),_0x5ade3b[_0x1c3d1f(0xf1)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x21f7fd=_0x5ade3b;if(global[_0x1c3d1f(0x13e)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x33c8aa,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x33c8aa,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x1c3d1f(0x108)](_0x21f7fd[_0x1c3d1f(0x12f)]),{};}else return logger[_0x1c3d1f(0x13f)](_0x21f7fd['SkXDN']),{};},exports[a34_0x50464e(0x12c)]=async _0xc0ca48=>{const _0x1b31fd=a34_0x50464e,_0x41c64c={'FzlxH':function(_0xae5699,_0x43b3f4){return _0xae5699!==_0x43b3f4;},'vrybW':_0x1b31fd(0x141),'lIWBt':function(_0x3e7f2a,_0x8b7427){return _0x3e7f2a===_0x8b7427;},'kOfUW':'chrome','XTnIf':function(_0x2f22a4,_0x17bf4b){return _0x2f22a4===_0x17bf4b;},'SPVzN':_0x1b31fd(0x134),'ZUvXj':_0x1b31fd(0x138),'WMwaF':function(_0x49e589,_0x2cf30b){return _0x49e589(_0x2cf30b);},'YKeAM':_0x1b31fd(0x107),'OAlrW':function(_0x3daf1f,_0x143dd5){return _0x3daf1f>_0x143dd5;},'jqrzM':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x41c64c[_0x1b31fd(0x10f)](_0xc0ca48['deviceName'],''))return logger[_0x1b31fd(0x13f)](_0x41c64c[_0x1b31fd(0x13d)]),![];const _0x3599d1=_0xc0ca48['browser'];if(!(_0x41c64c[_0x1b31fd(0xef)](_0x3599d1,_0x41c64c['kOfUW'])||_0x41c64c['XTnIf'](_0x3599d1,_0x41c64c['SPVzN'])))return logger[_0x1b31fd(0x13f)](_0x41c64c[_0x1b31fd(0xea)]),![];const _0x411265=_0x41c64c[_0x1b31fd(0x121)](parseInt,_0xc0ca48['browser_version']);if(!(_0x41c64c[_0x1b31fd(0xef)](_0x411265,_0x41c64c[_0x1b31fd(0xed)])||_0x41c64c[_0x1b31fd(0x10e)](_0x411265,0x5e)))return logger[_0x1b31fd(0x13f)](_0x41c64c[_0x1b31fd(0x136)]),![];}catch(_0x34bde6){logger[_0x1b31fd(0x108)](_0x1b31fd(0xfd)+util[_0x1b31fd(0x12d)](_0x34bde6));}return!![];},exports[a34_0x50464e(0x120)]=(_0x94e1d6,_0x240bdd,_0x1df730)=>{const _0x2a5c18=a34_0x50464e,_0x229520={'aTFYd':function(_0x2c477e){return _0x2c477e();},'RCTSK':_0x2a5c18(0xe8),'pTMky':function(_0x2b6f80,_0x52dd9e){return _0x2b6f80===_0x52dd9e;},'FyOOu':_0x2a5c18(0x116),'dKbjA':function(_0x3c14e7,_0x46072c){return _0x3c14e7===_0x46072c;},'BiEDR':'playwright-chromium','pOzQD':_0x2a5c18(0x138),'pKaxI':_0x2a5c18(0x107),'QLZfT':function(_0x41ca85,_0x4485c9){return _0x41ca85>_0x4485c9;},'yGORi':_0x2a5c18(0x111),'ubGTT':function(_0xe9c9a,_0x4e2ccc){return _0xe9c9a(_0x4e2ccc);},'hWMsO':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','lZUuH':function(_0x362f06,_0x5ed554){return _0x362f06+_0x5ed554;},'iCGYw':function(_0x38997f,_0x174ac4){return _0x38997f(_0x174ac4);}};try{if(_0x229520[_0x2a5c18(0x110)](isAccessibilityAutomationSession)){global[_0x2a5c18(0x13e)]=!![];!_0x94e1d6[_0x229520[_0x2a5c18(0x125)]]&&(global['accessibilityPlatform']=![]);!(_0x229520[_0x2a5c18(0x124)](_0x94e1d6[_0x2a5c18(0xf0)],_0x229520['FyOOu'])||_0x229520[_0x2a5c18(0x11f)](_0x94e1d6[_0x2a5c18(0xf0)],_0x229520[_0x2a5c18(0xfe)]))&&(logger[_0x2a5c18(0x13f)](_0x229520[_0x2a5c18(0xf7)]),global[_0x2a5c18(0x13e)]=![]);!(_0x229520['dKbjA'](_0x94e1d6[_0x2a5c18(0xee)],_0x229520[_0x2a5c18(0x147)])||_0x229520['QLZfT'](_0x94e1d6[_0x2a5c18(0xee)],0x5e))&&(logger[_0x2a5c18(0x13f)](_0x229520[_0x2a5c18(0xff)]),global[_0x2a5c18(0x13e)]=![]);!_0x229520['ubGTT'](isUndefined,_0x94e1d6[_0x2a5c18(0x131)])&&(logger[_0x2a5c18(0x13f)](_0x229520[_0x2a5c18(0x14c)]),global[_0x2a5c18(0x13e)]=![]);if(!global[_0x2a5c18(0x13e)]){_0x94e1d6[_0x229520['RCTSK']]=![];const _0x48b8f4=_0x229520[_0x2a5c18(0x10c)](_0x240bdd,_0x229520[_0x2a5c18(0x146)](encodeURIComponent,JSON[_0x2a5c18(0xeb)](_0x94e1d6)));_0x1df730&&(_0x1df730[_0x2a5c18(0x11c)][_0x2a5c18(0xf2)][_0x2a5c18(0xe4)][_0x2a5c18(0x11d)][_0x2a5c18(0xf4)]['wsEndpoint']=_0x48b8f4,_0x1df730['workerInfo'][_0x2a5c18(0xe4)]['use'][_0x2a5c18(0xf4)][_0x2a5c18(0x104)]=_0x48b8f4);}}}catch(_0x334ee7){logger['debug'](_0x2a5c18(0x13a)+util[_0x2a5c18(0x12d)](_0x334ee7));}};function a34_0x2b67(){const _0x9bcb44=['PAALs','BzJtS','bstackSdkArgs','command','iCGYw','pKaxI','accessibilityOptions.includeIssueType.bestPractice','measureWrapper','nwfMY','YCVpR','hWMsO','project','error','wcagVersion','111OZfVZN','browserstack.accessibility','setAccessibilityCapabilities','ZUvXj','stringify','NXqiV','YKeAM','browser_version','lIWBt','browserName','SkXDN','testInfo','Playwright','connectOptions','IWxkN','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','pOzQD','sAPOs','../../helpers/accessibility-automation/scripts','No\x20summaryResults\x20found.','1109410KJxhug','BS_A11Y_JWT','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','BiEDR','yGORi','../../helpers/accessibility-automation/helper','evaluate','../../helpers/logger','(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','wsEndpoint','../../helpers/helper','EYsCY','latest','debug','env','accessibilityOptions.includeIssueType.needsReview','accessibilityOptions.wcagVersion','lZUuH','(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','OAlrW','FzlxH','aTFYd','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','accessibilityOptions.authToken','accessibilityOptions.scannerVersion','getAccessibilityResultsSummary','browserStackEvaluate','chrome','bestPractice','1304464DedlcN','util','JxamM','includeIssueType','currentTest','use','name','dKbjA','processAccessibilityCaps','WMwaF','accessibilityOptions.scannerProcessingTimeout','scannerProcessingTimeout','pTMky','RCTSK','LJgPj','needsReview','browserStackExecuteDriver','tlvMB','11496SGlarP','BdmEh','platformValidation','format','performScan','MUJvY','accessibilityOptions','deviceName','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','1833304vKJmGy','playwright-chromium','executeScript','jqrzM','931530ohiTJw','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','2314413NjqhmG','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','replace','parse','vrybW','accessibilityPlatform','warn','3968545hEBUPi','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.'];a34_0x2b67=function(){return _0x9bcb44;};return a34_0x2b67();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x5dbe54=a35_0x2c13;function a35_0x2c13(_0xb489a6,_0x3e9fc1){const _0x47a199=a35_0x47a1();return a35_0x2c13=function(_0x2c1338,_0x4a08a6){_0x2c1338=_0x2c1338-0xd2;let _0x3e1eba=_0x47a199[_0x2c1338];return _0x3e1eba;},a35_0x2c13(_0xb489a6,_0x3e9fc1);}function a35_0x47a1(){const _0x32541c=['XUsYb','browserstackSetupConfig.json','inherit','PLAYWRIGHT','ZnfSj','resolve','slice','accessibilityOptions','isTrue','kgTwP','BROWSERSTACK_TEST_ACCESSIBILITY_YML','BROWSERSTACK_PW_CONFIG_DIR','QiVIW','true','path','EVENTS','assign','mpXdP','getConfigPath','wtXxV','GBtEH','platform','join','length','getProxyUrl','289526qIloki','7319150nrJkmf','BROWSERSTACK_AUTOMATION','eluDE','start','WdVxn','./reporter/pwUtils','test','../../helpers/performance/constants','debug','info','split','map','isUndefined','get','BROWSERSTACK_TEST_OBSERVABILITY','BPjwO','DUdgb','accessibility','config','--config=','launchBuild','DzUVn','6PMutOl','child_process','PACKAGE_TYPE','findIndex','MODULE','errorMessage','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','stringify','npx','vJURJ','../../helpers/accessibility-automation/helper','9ZPDkow','../../helpers/test-observability/utils','oJkKS','close','isTypescriptProject','testObservability','LkBMp','7806xXqVWe','existsSync','SDK_PRE_INITIALIZE','SDK_SETUP','Deleting\x20','12816VsFAPQ','Wjfob','VJifT','RGLuX','MIXrt','SDK_POST_INITIALIZE','eFSur','concat','end','startsWith','VMzJY','SdTNL','JfLxV','automation','nestedKeyValue','validateRerunTestList','jOhPQ','push','DUqIQ','.browserstack','xZxGo','../../helpers/logger','writeFileSync','clearTempPWConfig','hFIkZ','BylJG','sejfj','6165VwWCEi','JPpPZ','winstonLogger','ZKVWx','serializeToYamlString','eqehx','false','playwright','filter','kCSCe','util','../../helpers/helper','194380nCYISf','env','KLoEG','1351ViBoUm','skipSessionStatus','Updated\x20config\x20file\x20name\x20to\x20-\x20','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','homedir','finalExecution','ZSGSO','BROWSERSTACK_RERUN_TESTS','LxiFa','OZfTM','requirePWModule','cwd','YNAJi','SDK_CLEANUP','playwright-browserstack-sdk.config.js','dirname','9079620QfhIdw','44GmHtcs','URVIW','unlinkSync','initialize','USER_CONFIG_DETAILS_PATH','../../helpers/utilities','Playwright\x20process\x20exited\x20with\x20code\x20','isFalse','getPackageType','pw_result.json','tvpEr','win32','--disable-browserstack-automation','tvCmQ','cliConfig','has','BROWSERSTACK_RERUN','trim','BrowserStack\x20config\x20file\x20not\x20found.','argv','exitCode','parse','ylbYT','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','2151417EiKsTR','Error\x20in\x20closing\x20playwright','error'];a35_0x47a1=function(){return _0x32541c;};return a35_0x47a1();}(function(_0x4b7441,_0x3bb137){const _0xccce4a=a35_0x2c13,_0x3c3ff7=_0x4b7441();while(!![]){try{const _0x5a3f78=parseInt(_0xccce4a(0xd9))/0x1*(-parseInt(_0xccce4a(0xf0))/0x2)+-parseInt(_0xccce4a(0x15a))/0x3+parseInt(_0xccce4a(0x12e))/0x4+parseInt(_0xccce4a(0x122))/0x5*(-parseInt(_0xccce4a(0x102))/0x6)+parseInt(_0xccce4a(0x131))/0x7*(parseInt(_0xccce4a(0x107))/0x8)+-parseInt(_0xccce4a(0xfb))/0x9*(-parseInt(_0xccce4a(0xda))/0xa)+-parseInt(_0xccce4a(0x142))/0xb*(-parseInt(_0xccce4a(0x141))/0xc);if(_0x5a3f78===_0x3bb137)break;else _0x3c3ff7['push'](_0x3c3ff7['shift']());}catch(_0xdedd76){_0x3c3ff7['push'](_0x3c3ff7['shift']());}}}(a35_0x47a1,0xe22b2));const fs=require('fs'),path=require(a35_0x5dbe54(0x16b)),{spawn}=require(a35_0x5dbe54(0xf1)),{format}=require(a35_0x5dbe54(0x12c)),logger=require(a35_0x5dbe54(0x11c))[a35_0x5dbe54(0x124)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0x5dbe54(0x12d)),utilities=require(a35_0x5dbe54(0x147)),constants=require('../utils/constants'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a35_0x5dbe54(0xdf)),{checkAccessibilityPlatformConfig}=require(a35_0x5dbe54(0xfa)),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a35_0x5dbe54(0xfc)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require(a35_0x5dbe54(0xe1))[a35_0x5dbe54(0x16c)],getUserPlaywrightConfig=async(_0x15c0e8,_0x336019)=>{const _0x55477a=a35_0x5dbe54,_0x243972={'SdTNL':function(_0x49426e){return _0x49426e();},'ejnEe':function(_0x1be81d,_0x473715){return _0x1be81d(_0x473715);},'qnEua':'resolvedConfigFile','XUsYb':_0x55477a(0xed)},_0x47ef93=!helper[_0x55477a(0xe6)](_0x15c0e8[_0x55477a(0xec)]),_0x51fb58=_0x47ef93?path[_0x55477a(0x162)](process[_0x55477a(0x13c)](),_0x15c0e8['config']):process['cwd'](),{resolveConfigFile:_0x33a994,resolveConfigLocation:_0x4e17ab}=helper[_0x55477a(0x13b)]['apply'](null,_0x243972[_0x55477a(0x112)](getConfigLoaderPath)),_0x4bfc70=_0x33a994?_0x243972['ejnEe'](_0x33a994,_0x51fb58):helper[_0x55477a(0x115)](_0x243972['ejnEe'](_0x4e17ab,_0x51fb58),[_0x243972['qnEua']]),_0x5a015d={};if(_0x47ef93){const _0xd81fa0=_0x336019[_0x55477a(0xf3)](_0x2c4834=>_0x2c4834==='--config'||_0x2c4834==='-c'||_0x2c4834[_0x55477a(0x110)](_0x55477a(0xed)));_0x336019['splice'](_0xd81fa0,_0x336019[_0xd81fa0][_0x55477a(0x110)](_0x243972[_0x55477a(0x15d)])?0x1:0x2);}const _0x523d77={};return _0x523d77[_0x55477a(0x16b)]=_0x4bfc70,_0x523d77[_0x55477a(0xec)]=_0x5a015d,_0x523d77;},handleO11yRerun=_0x496c88=>{const _0x4b8444=a35_0x5dbe54,_0x2ecba7={};_0x2ecba7[_0x4b8444(0x119)]='--grep';const _0x463259=_0x2ecba7,_0x29e855=helper[_0x4b8444(0x165)](process[_0x4b8444(0x12f)][_0x4b8444(0x152)]);if(_0x29e855){const _0x1aa60e=process[_0x4b8444(0x12f)][_0x4b8444(0x138)],_0x185e20=[];if(helper[_0x4b8444(0x116)](_0x1aa60e)&&!helper[_0x4b8444(0xe6)](_0x1aa60e)){_0x1aa60e[_0x4b8444(0xe4)](',')[_0x4b8444(0xe5)](_0x3d6c30=>{const _0x30eb26=_0x4b8444;_0x185e20[_0x30eb26(0x118)]('('+_0x3d6c30[_0x30eb26(0x153)]()+')');});const _0x2eb694='^'+_0x185e20['join']('|')+'$';_0x496c88[_0x4b8444(0x118)](_0x463259['DUqIQ'],_0x2eb694);}}},spawnOriginalProcess=_0x4d91a8=>{const _0x5ab69d=a35_0x5dbe54,_0x2d58ab={'qcGPG':function(_0x346419,_0x572520,_0x2d87bf,_0x33e16b){return _0x346419(_0x572520,_0x2d87bf,_0x33e16b);},'uaDPU':_0x5ab69d(0xf8),'sHbkD':_0x5ab69d(0x129),'dACke':function(_0x41e904,_0x520148){return _0x41e904===_0x520148;},'ylbYT':_0x5ab69d(0x14d),'JPpPZ':'inherit'};_0x2d58ab['qcGPG'](spawn,_0x2d58ab['uaDPU'],[_0x2d58ab['sHbkD'],..._0x4d91a8[_0x5ab69d(0x163)](0x1)],{'shell':_0x2d58ab['dACke'](process[_0x5ab69d(0xd5)],_0x2d58ab[_0x5ab69d(0x158)]),'stdio':_0x2d58ab[_0x5ab69d(0x123)],'cwd':process['cwd']()});},isTestCommand=(_0x42a502,_0x2cc2ab)=>{const _0x583745=a35_0x5dbe54,_0x4ff926={};_0x4ff926['kCSCe']=function(_0x426eb3,_0x1e7069){return _0x426eb3>_0x1e7069;},_0x4ff926[_0x583745(0xd3)]=function(_0x31d08e,_0x2d79a7){return _0x31d08e===_0x2d79a7;},_0x4ff926[_0x583745(0x127)]=_0x583745(0xe0);const _0x4fb460=_0x4ff926;if(_0x4fb460[_0x583745(0x12b)](_0x2cc2ab[_0x583745(0xd7)],0x1)&&_0x4fb460['wtXxV'](_0x2cc2ab[0x1],_0x4fb460[_0x583745(0x127)]))return!![];return![];};async function run(_0x43f6c2,_0x4b204f){const _0x15927f=a35_0x5dbe54,_0xad156c={'mpXdP':function(_0x15370c,_0x52410d){return _0x15370c(_0x52410d);},'KLoEG':_0x15927f(0x11a),'VJifT':_0x15927f(0x14b),'vJURJ':function(_0x339e28,_0x512c0f){return _0x339e28+_0x512c0f;},'URVIW':'Error\x20in\x20getting\x20funnel\x20data\x20results','eluDE':'6|4|2|8|5|0|1|3|7|9|10','LxiFa':function(_0x181940){return _0x181940();},'AlGOk':function(_0x41c864,_0x11bdc8){return _0x41c864+_0x11bdc8;},'CPIWb':_0x15927f(0x15b),'ZKVWx':_0x15927f(0x154),'YNAJi':_0x15927f(0x114),'hFIkZ':function(_0x1c57af,_0x55671c){return _0x1c57af!=_0x55671c;},'MBaUE':function(_0x1c07a1,_0x155a08,_0x2c1aed){return _0x1c07a1(_0x155a08,_0x2c1aed);},'ZnfSj':function(_0x2dd81e,_0x50361a){return _0x2dd81e===_0x50361a;},'tvCmQ':_0x15927f(0x16a),'tvpEr':_0x15927f(0x15e),'LkBMp':function(_0x5f28e3,_0x49d576){return _0x5f28e3===_0x49d576;},'CZOwV':'playwright-browserstack-sdk.config.cjs','VMzJY':_0x15927f(0x13f),'RGLuX':function(_0x212ad4,_0x5f42ba){return _0x212ad4-_0x5f42ba;},'GBtEH':_0x15927f(0x133),'xZxGo':function(_0x496de6,_0x9df9dd){return _0x496de6>_0x9df9dd;},'AKGHa':function(_0x2dcc41,_0x2fa49e,_0x2ca779,_0x5083e8){return _0x2dcc41(_0x2fa49e,_0x2ca779,_0x5083e8);},'XPZBh':_0x15927f(0xf8),'Wjfob':'playwright','IMCmo':_0x15927f(0xe0),'Xvswr':'--config','sejfj':function(_0x514aae,_0x1e17b6){return _0x514aae===_0x1e17b6;},'BylJG':_0x15927f(0x14d),'kgTwP':_0x15927f(0x15f),'gHgkt':_0x15927f(0xfe),'JfLxV':_0x15927f(0x14e),'DUdgb':_0x15927f(0x128),'ZSGSO':'--disable-test-observability','OZfTM':function(_0x372d7d,_0x209adc){return _0x372d7d>=_0x209adc;},'BPjwO':function(_0x1b6b0a,_0xd02fa){return _0x1b6b0a+_0xd02fa;},'oJkKS':'Error\x20in\x20deleting\x20playwright\x20results','QiVIW':function(_0x295b4f,_0x1b5660,_0x597470){return _0x295b4f(_0x1b5660,_0x597470);}};!helper[_0x15927f(0x149)](process['env']['BROWSERSTACK_AUTOMATION'])&&(process[_0x15927f(0x12f)][_0x15927f(0xdb)]=!![]);process[_0x15927f(0x155)]['includes'](_0xad156c[_0x15927f(0x113)])&&(process[_0x15927f(0x12f)]['BROWSERSTACK_AUTOMATION']=_0xad156c[_0x15927f(0xea)],_0x4b204f=_0x4b204f[_0x15927f(0x12a)](_0x5521ac=>_0x5521ac!==_0x15927f(0x14e)));const _0x264169=_0x4b204f['indexOf'](_0xad156c[_0x15927f(0x137)]);_0xad156c[_0x15927f(0x13a)](_0x264169,0x0)&&(process[_0x15927f(0x12f)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0xad156c['DUdgb'],_0x4b204f=_0x4b204f[_0x15927f(0x12a)](_0x1579a1=>_0x1579a1!=='--disable-test-observability'));try{const _0x1da44c=path[_0x15927f(0xd6)](helper[_0x15927f(0x135)](),_0xad156c[_0x15927f(0x130)],_0xad156c[_0x15927f(0x109)]);fs[_0x15927f(0x103)](_0x1da44c)&&fs[_0x15927f(0x144)](_0x1da44c);}catch(_0x10e450){logger[_0x15927f(0xe2)](_0xad156c[_0x15927f(0xe9)](_0xad156c[_0x15927f(0xfd)],_0x10e450));}if(!_0xad156c[_0x15927f(0x169)](isTestCommand,_0x43f6c2,_0x4b204f)){_0xad156c[_0x15927f(0x16e)](spawnOriginalProcess,_0x4b204f);return;}const _0x292f1b=new BrowserStackSetup(_0x43f6c2,FRAMEWORKS[_0x15927f(0x160)]);await PerformanceTester['measureWrapper'](PerformanceEvents[_0x15927f(0x104)],async()=>{const _0x7c1e7b=_0x15927f,_0x4203dd={'ZUkOs':_0xad156c[_0x7c1e7b(0x130)],'fdbWF':_0xad156c[_0x7c1e7b(0x109)],'MIXrt':function(_0x524b80,_0x13ea87){return _0xad156c['vJURJ'](_0x524b80,_0x13ea87);},'DzUVn':_0xad156c[_0x7c1e7b(0x143)],'eFSur':_0xad156c[_0x7c1e7b(0xdc)],'jOhPQ':function(_0x18ad63){const _0x33ca3b=_0x7c1e7b;return _0xad156c[_0x33ca3b(0x139)](_0x18ad63);},'WdVxn':function(_0x1b8e0b,_0x42fdff){return _0xad156c['AlGOk'](_0x1b8e0b,_0x42fdff);},'PYdPf':_0xad156c['CPIWb']};if(!_0x292f1b[_0x7c1e7b(0xec)]){logger[_0x7c1e7b(0x15c)](_0xad156c[_0x7c1e7b(0x125)]);return;}await _0x292f1b[_0x7c1e7b(0x145)]();!helper[_0x7c1e7b(0xe6)](_0x292f1b[_0x7c1e7b(0x150)])&&_0x292f1b[_0x7c1e7b(0x150)][_0x7c1e7b(0x151)](_0xad156c[_0x7c1e7b(0x13d)])&&(process[_0x7c1e7b(0x12f)]['BROWSERSTACK_AUTOMATION']=_0x292f1b[_0x7c1e7b(0x150)][_0x7c1e7b(0xe7)](_0xad156c['YNAJi'])||!![]);_0xad156c[_0x7c1e7b(0x11f)](_0x292f1b[_0x7c1e7b(0xec)][_0x7c1e7b(0x100)],null)&&!helper[_0x7c1e7b(0x165)](process['env'][_0x7c1e7b(0xe8)])&&(process[_0x7c1e7b(0x12f)][_0x7c1e7b(0xe8)]=process[_0x7c1e7b(0x12f)][_0x7c1e7b(0xe8)]||_0x292f1b['config'][_0x7c1e7b(0x100)]);const _0x5f0af2=!helper[_0x7c1e7b(0x149)](process[_0x7c1e7b(0x12f)][_0x7c1e7b(0xe8)]);let _0x2ed581=![];_0x292f1b['config'][_0x7c1e7b(0xeb)]&&(_0x2ed581=!![],process[_0x7c1e7b(0x12f)][_0x7c1e7b(0x167)]=_0x292f1b[_0x7c1e7b(0xec)][_0x7c1e7b(0xeb)]);_0x292f1b[_0x7c1e7b(0xec)][_0x7c1e7b(0x164)]&&(process[_0x7c1e7b(0x12f)][_0x7c1e7b(0x134)]=JSON[_0x7c1e7b(0xf7)](_0x292f1b[_0x7c1e7b(0xec)]['accessibilityOptions']));const _0x9babd3=_0x4b204f[_0x7c1e7b(0x10e)](),_0x1145be=await _0xad156c['MBaUE'](getUserPlaywrightConfig,_0x43f6c2,_0x4b204f);if(helper['isUndefined'](_0x1145be)){_0xad156c[_0x7c1e7b(0x16e)](spawnOriginalProcess,_0x9babd3);return;}const _0x3f9db6=_0x1145be[_0x7c1e7b(0x16b)]?path[_0x7c1e7b(0x140)](_0x1145be[_0x7c1e7b(0x16b)]):process[_0x7c1e7b(0x13c)]();process[_0x7c1e7b(0x12f)][_0x7c1e7b(0x168)]=_0x3f9db6,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x7c1e7b(0x10c)],async()=>{const _0x2bdad3=_0x7c1e7b;await TestHubHandler[_0x2bdad3(0xee)](FRAMEWORKS[_0x2bdad3(0x160)],_0x292f1b),_0x5f0af2&&_0xad156c[_0x2bdad3(0x16e)](handleO11yRerun,_0x4b204f);})();let _0x35c085=_0xad156c[_0x7c1e7b(0x161)](process[_0x7c1e7b(0x12f)][_0x7c1e7b(0x167)],_0xad156c[_0x7c1e7b(0x14f)]);_0x35c085=_0x35c085||_0xad156c[_0x7c1e7b(0x16e)](checkAccessibilityPlatformConfig,_0x292f1b[_0x7c1e7b(0xec)]),process[_0x7c1e7b(0x12f)][_0x7c1e7b(0x167)]=_0x35c085;_0x35c085&&_0xad156c[_0x7c1e7b(0x16e)](setAccessibilityCapabilities,_0x292f1b[_0x7c1e7b(0xec)]);const _0x594164=path['join'](_0x1145be['path']?path['dirname'](_0x1145be[_0x7c1e7b(0x16b)]):process[_0x7c1e7b(0x13c)](),_0xad156c[_0x7c1e7b(0x14c)]);fs[_0x7c1e7b(0x11d)](_0x594164,helper[_0x7c1e7b(0x126)](_0x292f1b[_0x7c1e7b(0xec)])),process[_0x7c1e7b(0x12f)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x594164,helper[_0x7c1e7b(0x11e)]();let _0x7b890a='';_0xad156c[_0x7c1e7b(0x101)](helper[_0x7c1e7b(0x14a)](),constants[_0x7c1e7b(0xf2)][_0x7c1e7b(0xf4)])?_0x7b890a=_0xad156c['CZOwV']:_0x7b890a=_0xad156c[_0x7c1e7b(0x111)];let _0x3dd896='';if(helper[_0x7c1e7b(0xff)](_0x1145be[_0x7c1e7b(0x16b)])){_0x3dd896='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x24dc5c=_0x7b890a[_0x7c1e7b(0xe4)]('.');_0x24dc5c[_0xad156c[_0x7c1e7b(0x10a)](_0x24dc5c[_0x7c1e7b(0xd7)],0x1)]='ts',_0x7b890a=_0x24dc5c[_0x7c1e7b(0xd6)]('.'),logger[_0x7c1e7b(0xe2)](_0xad156c[_0x7c1e7b(0xf9)](_0xad156c[_0x7c1e7b(0xd4)],_0x7b890a));}else _0x3dd896=_0x7c1e7b(0x159);const _0x21f7d9=path[_0x7c1e7b(0xd6)](_0x1145be[_0x7c1e7b(0x16b)]?path[_0x7c1e7b(0x140)](_0x1145be[_0x7c1e7b(0x16b)]):process['cwd'](),_0x7b890a);let _0xc92952=_0x1145be[_0x7c1e7b(0x16b)]?_0x1145be[_0x7c1e7b(0x16b)]:'';_0xc92952=_0xad156c[_0x7c1e7b(0x11b)](_0xc92952['length'],0x0)?path[_0x7c1e7b(0x162)](_0xc92952):'',process['env'][_0x7c1e7b(0x146)]=_0xc92952;const _0x414faf=helper[_0x7c1e7b(0xd8)](_0x292f1b['config']);_0x414faf&&(_0x3dd896=_0xad156c[_0x7c1e7b(0xf9)](_0x7c1e7b(0xf6)+_0x414faf+'\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();',_0x3dd896));helper['filterBrowserstackArgs']({},_0x4b204f),fs['writeFileSync'](_0x21f7d9,_0x3dd896),PerformanceTester[_0x7c1e7b(0x10f)](PerformanceEvents[_0x7c1e7b(0x105)]);const _0xd4fdef=_0xad156c['AKGHa'](spawn,_0xad156c['XPZBh'],[_0xad156c[_0x7c1e7b(0x108)],_0xad156c['IMCmo'],_0xad156c['Xvswr'],_0x21f7d9,..._0x4b204f['slice'](0x2)],{'shell':_0xad156c[_0x7c1e7b(0x121)](process[_0x7c1e7b(0xd5)],_0xad156c[_0x7c1e7b(0x120)]),'stdio':_0xad156c[_0x7c1e7b(0x166)],'cwd':process['cwd'](),'env':Object[_0x7c1e7b(0x16d)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x7c1e7b(0xd2)](_0x43f6c2),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x292f1b[_0x7c1e7b(0xec)]['testContextOptions'][_0x7c1e7b(0x132)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x292f1b[_0x7c1e7b(0xec)]['testContextOptions']['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x292f1b['config']['logLevel']})}),_0x534d78=()=>{const _0x335d30=_0x7c1e7b;try{const _0x3a91e1=path[_0x335d30(0xd6)](helper[_0x335d30(0x135)](),_0x4203dd['ZUkOs'],_0x4203dd['fdbWF']);if(fs['existsSync'](_0x3a91e1)){let _0x1a9140=fs['readFileSync'](_0x3a91e1);_0x1a9140=JSON[_0x335d30(0x157)](_0x1a9140),_0x292f1b[_0x335d30(0xf5)]=_0x1a9140,fs['unlinkSync'](_0x3a91e1);}}catch(_0x1d6855){logger['debug'](_0x4203dd[_0x335d30(0x10b)](_0x4203dd[_0x335d30(0xef)],_0x1d6855));}};_0xd4fdef['on'](_0xad156c['gHgkt'],async _0x25fa9d=>{const _0x358670=_0x7c1e7b;try{const _0x66269a=_0x4203dd[_0x358670(0x10d)][_0x358670(0xe4)]('|');let _0x511d8f=0x0;while(!![]){switch(_0x66269a[_0x511d8f++]){case'0':process[_0x358670(0x156)]=_0x25fa9d;continue;case'1':logger[_0x358670(0xe2)](_0x358670(0x148)+_0x25fa9d);continue;case'2':await TestHubHandler['stop']();continue;case'3':logger[_0x358670(0xe3)](_0x358670(0x106)+_0x21f7d9);continue;case'4':_0x4203dd[_0x358670(0x117)](_0x534d78);continue;case'5':await utilities[_0x358670(0x136)](_0x292f1b);continue;case'6':PerformanceTester[_0x358670(0xdd)](PerformanceEvents[_0x358670(0x13e)]);continue;case'7':fs[_0x358670(0x144)](_0x21f7d9);continue;case'8':_0x4203dd[_0x358670(0x117)](printBuildLink);continue;case'9':logger[_0x358670(0xe2)](_0x358670(0x106)+_0x594164);continue;case'10':fs[_0x358670(0x144)](_0x594164);continue;}break;}}catch(_0x4b4897){logger[_0x358670(0xe2)](_0x4203dd[_0x358670(0xde)](_0x4203dd['PYdPf'],_0x4b4897));}});})();}module['exports']=run;
|
|
2
|
+
'use strict';const a35_0xae6f55=a35_0x4fc5;function a35_0x37d7(){const _0x933f73=['kzKny','Cqmeb','MnJJJ','ViBNC','SDK_CLEANUP','validateRerunTestList','has','--disable-browserstack-automation','../../helpers/helper','filter','maBAN','BROWSERSTACK_AUTOMATION','automation','22pgKlbL','tUfQQ','getPackageType','length','AhxIb','WEWvL','--config','aoZgp','true','SHYbF','QZcBE','split','logLevel','config','vlBOp','playwright-browserstack-sdk.config.js','mDyhe','concat','bGFIp','8094392SKdZMK','../../helpers/test-observability/constants','parse','../../helpers/test-observability/utils','../../helpers/performance/performance-tester','dirname','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','aqOlp','test','BROWSERSTACK_TEST_OBSERVABILITY','ARzzY','bjLsB','env','NpPJH','--disable-test-observability','accessibilityOptions','NZQUz','SDK_POST_INITIALIZE','SDK_SETUP','\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();','nfiWj','GUPFX','unlinkSync','BROWSERSTACK_TEST_ACCESSIBILITY_YML','Mtnie','SDK_PRE_INITIALIZE','BROWSERSTACK_RERUN','homedir','measureWrapper','yhGuM','JyjHy','QrFUU','findIndex','EVENTS','exitCode','winstonLogger','wdBtN','existsSync','4811230ootrzM','./reporter/pwUtils','nestedKeyValue','1253769axldOh','accessibility','testContextOptions','9yBECkm','writeFileSync','serializeToYamlString','WFElu','5jAtKLt','--grep','rapBr','HftNw','close','tusGk','MWhIw','--config=','../../helpers/BrowserStackSetup','exports','1337832hOVGAh','Error\x20in\x20closing\x20playwright','MiySb','qdnZw','CYDgG','pDUOD','cliConfig','resolvedConfigFile','isUndefined','wboVf','NhYso','../../helpers/accessibility-automation/helper','join','pw_result.json','initialize','splice','startsWith','ycvdD','6|0|5|7|2|3|9|8|10|4|1','YKfGn','PVhxS','BROWSERSTACK_RERUN_TESTS','../../helpers/performance/constants','util','npx','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Error\x20in\x20getting\x20funnel\x20data\x20results','stop','playwright','trim','HjOwo','end','map','isTrue','cwd','debug','vwrKN','browserstackSetupConfig.json','14zkamPt','Playwright\x20process\x20exited\x20with\x20code\x20','9762846tqLaSV','pXJYk','UbcVA','TEdmU','includes','push','isTypescriptProject','1276261qRPqsH','Error\x20in\x20deleting\x20playwright\x20results','slice','skipSessionStatus','getConfigPath','PLAYWRIGHT','requirePWModule','WujJT','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','skipSessionName','100791asDMPq','kVCCi','BrowserStack\x20config\x20file\x20not\x20found.','Wusvz','ulRRs','readFileSync','GnjiP','path','.browserstack','launchBuild','isFalse','getProxyUrl','testObservability','resolve'];a35_0x37d7=function(){return _0x933f73;};return a35_0x37d7();}(function(_0x589b26,_0x4bc956){const _0x4f471f=a35_0x4fc5,_0x275041=_0x589b26();while(!![]){try{const _0x445e35=-parseInt(_0x4f471f(0x1e1))/0x1*(parseInt(_0x4f471f(0x1ce))/0x2)+parseInt(_0x4f471f(0x197))/0x3+-parseInt(_0x4f471f(0x1a8))/0x4+-parseInt(_0x4f471f(0x19e))/0x5*(-parseInt(_0x4f471f(0x1d0))/0x6)+-parseInt(_0x4f471f(0x1d7))/0x7+parseInt(_0x4f471f(0x16e))/0x8*(parseInt(_0x4f471f(0x19a))/0x9)+parseInt(_0x4f471f(0x194))/0xa*(-parseInt(_0x4f471f(0x1fc))/0xb);if(_0x445e35===_0x4bc956)break;else _0x275041['push'](_0x275041['shift']());}catch(_0x4b0dd6){_0x275041['push'](_0x275041['shift']());}}}(a35_0x37d7,0xd4f6b));function a35_0x4fc5(_0x1e0765,_0x24c472){const _0x37d7c1=a35_0x37d7();return a35_0x4fc5=function(_0x4fc5c1,_0x36af3f){_0x4fc5c1=_0x4fc5c1-0x15d;let _0x541cd5=_0x37d7c1[_0x4fc5c1];return _0x541cd5;},a35_0x4fc5(_0x1e0765,_0x24c472);}const fs=require('fs'),path=require(a35_0xae6f55(0x1e8)),{spawn}=require('child_process'),{format}=require(a35_0xae6f55(0x1bf)),logger=require('../../helpers/logger')[a35_0xae6f55(0x191)],{default:BrowserStackSetup}=require(a35_0xae6f55(0x1a6)),helper=require(a35_0xae6f55(0x1f7)),utilities=require('../../helpers/utilities'),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0xae6f55(0x16f)),{getConfigLoaderPath}=require(a35_0xae6f55(0x195)),{checkAccessibilityPlatformConfig}=require(a35_0xae6f55(0x1b3)),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a35_0xae6f55(0x171)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a35_0xae6f55(0x172)),PerformanceEvents=require(a35_0xae6f55(0x1be))[a35_0xae6f55(0x18f)],getUserPlaywrightConfig=async(_0x5f019d,_0x56d465)=>{const _0x215b21=a35_0xae6f55,_0x36be1c={'ycvdD':function(_0x27fd15){return _0x27fd15();},'Mtnie':function(_0x25b774,_0x33a8f0){return _0x25b774(_0x33a8f0);},'MnJJJ':function(_0x1af325,_0x10b5c6){return _0x1af325(_0x10b5c6);},'ViBNC':_0x215b21(0x1af),'WujJT':'--config='},_0x4fa2c8=!helper[_0x215b21(0x1b0)](_0x5f019d['config']),_0x120148=_0x4fa2c8?path[_0x215b21(0x1ee)](process[_0x215b21(0x1ca)](),_0x5f019d['config']):process[_0x215b21(0x1ca)](),{resolveConfigFile:_0x3dd076,resolveConfigLocation:_0x3a5043}=helper[_0x215b21(0x1dd)]['apply'](null,_0x36be1c[_0x215b21(0x1b9)](getConfigLoaderPath)),_0x5db577=_0x3dd076?_0x36be1c[_0x215b21(0x186)](_0x3dd076,_0x120148):helper[_0x215b21(0x196)](_0x36be1c[_0x215b21(0x1f1)](_0x3a5043,_0x120148),[_0x36be1c[_0x215b21(0x1f2)]]),_0x3794c8={};if(_0x4fa2c8){const _0x2a927d=_0x56d465[_0x215b21(0x18e)](_0x21147a=>_0x21147a===_0x215b21(0x161)||_0x21147a==='-c'||_0x21147a[_0x215b21(0x1b8)](_0x215b21(0x1a5)));_0x56d465[_0x215b21(0x1b7)](_0x2a927d,_0x56d465[_0x2a927d][_0x215b21(0x1b8)](_0x36be1c[_0x215b21(0x1de)])?0x1:0x2);}const _0x4f4347={};return _0x4f4347[_0x215b21(0x1e8)]=_0x5db577,_0x4f4347[_0x215b21(0x168)]=_0x3794c8,_0x4f4347;},handleO11yRerun=_0x45bac0=>{const _0x7a74b4=a35_0xae6f55,_0x1f2a3d={};_0x1f2a3d[_0x7a74b4(0x1aa)]=_0x7a74b4(0x19f);const _0x79ebc=_0x1f2a3d,_0x2bc69b=helper[_0x7a74b4(0x1c9)](process[_0x7a74b4(0x17a)][_0x7a74b4(0x188)]);if(_0x2bc69b){const _0x41f561=process['env'][_0x7a74b4(0x1bd)],_0x10f774=[];if(helper[_0x7a74b4(0x1f4)](_0x41f561)&&!helper[_0x7a74b4(0x1b0)](_0x41f561)){_0x41f561['split'](',')[_0x7a74b4(0x1c8)](_0x1cfe8e=>{const _0x1684b8=_0x7a74b4;_0x10f774[_0x1684b8(0x1d5)]('('+_0x1cfe8e[_0x1684b8(0x1c5)]()+')');});const _0x40d82a='^'+_0x10f774[_0x7a74b4(0x1b4)]('|')+'$';_0x45bac0[_0x7a74b4(0x1d5)](_0x79ebc[_0x7a74b4(0x1aa)],_0x40d82a);}}},spawnOriginalProcess=_0x2949e2=>{const _0x2b15ca=a35_0xae6f55,_0x226deb={'GUPFX':function(_0x560080,_0x1e24aa,_0x30e619,_0x4336e0){return _0x560080(_0x1e24aa,_0x30e619,_0x4336e0);},'ZSpzz':_0x2b15ca(0x1c0),'Wusvz':_0x2b15ca(0x1c4),'maBAN':function(_0x4e1ccf,_0x503672){return _0x4e1ccf===_0x503672;},'PVhxS':'win32','TEdmU':'inherit'};_0x226deb[_0x2b15ca(0x183)](spawn,_0x226deb['ZSpzz'],[_0x226deb[_0x2b15ca(0x1e4)],..._0x2949e2[_0x2b15ca(0x1d9)](0x1)],{'shell':_0x226deb[_0x2b15ca(0x1f9)](process['platform'],_0x226deb[_0x2b15ca(0x1bc)]),'stdio':_0x226deb[_0x2b15ca(0x1d3)],'cwd':process[_0x2b15ca(0x1ca)]()});},isTestCommand=(_0xd32cd7,_0x26a9a2)=>{const _0xdeaeb3=a35_0xae6f55,_0x5bd328={};_0x5bd328[_0xdeaeb3(0x162)]=function(_0x4e8cbe,_0x47f0ae){return _0x4e8cbe>_0x47f0ae;},_0x5bd328[_0xdeaeb3(0x192)]=function(_0xb87d32,_0x4b689d){return _0xb87d32===_0x4b689d;},_0x5bd328[_0xdeaeb3(0x17e)]=_0xdeaeb3(0x176);const _0x32a3bd=_0x5bd328;if(_0x32a3bd[_0xdeaeb3(0x162)](_0x26a9a2[_0xdeaeb3(0x15e)],0x1)&&_0x32a3bd[_0xdeaeb3(0x192)](_0x26a9a2[0x1],_0x32a3bd['NZQUz']))return!![];return![];};async function run(_0x57cd05,_0x41e430){const _0x2db786=a35_0xae6f55,_0x3416ca={'GnjiP':function(_0x18ed1e,_0x19e37f){return _0x18ed1e(_0x19e37f);},'yhGuM':_0x2db786(0x1ba),'bjLsB':function(_0x5bdc5b){return _0x5bdc5b();},'rapBr':function(_0x463a8e){return _0x463a8e();},'tusGk':function(_0x3f235b,_0x17a556){return _0x3f235b+_0x17a556;},'pDUOD':_0x2db786(0x1a9),'QrFUU':_0x2db786(0x1e9),'pXJYk':_0x2db786(0x1b5),'kVCCi':_0x2db786(0x1c2),'bGFIp':_0x2db786(0x1e3),'MWhIw':_0x2db786(0x1fb),'kzKny':function(_0x52d1d9,_0xf478ab){return _0x52d1d9!=_0xf478ab;},'WFElu':function(_0xef32b3,_0x432807,_0x1794ab){return _0xef32b3(_0x432807,_0x1794ab);},'wwHBV':function(_0x1a8edc,_0x20b6e4){return _0x1a8edc(_0x20b6e4);},'qdnZw':function(_0x4165df,_0x35eae4){return _0x4165df===_0x35eae4;},'NpPJH':_0x2db786(0x163),'vlBOp':function(_0x265bc0,_0x12e2b4){return _0x265bc0(_0x12e2b4);},'aqOlp':_0x2db786(0x1cd),'JyjHy':function(_0x2e7706,_0x5deb29){return _0x2e7706===_0x5deb29;},'QZcBE':'playwright-browserstack-sdk.config.cjs','tUfQQ':_0x2db786(0x16a),'HjOwo':function(_0x135b5c,_0xdd523d){return _0x135b5c-_0xdd523d;},'MByDm':function(_0x3f64e9,_0x417a78){return _0x3f64e9+_0x417a78;},'YKfGn':'Updated\x20config\x20file\x20name\x20to\x20-\x20','bCOlS':function(_0x221ff6,_0x5d36c4){return _0x221ff6>_0x5d36c4;},'ulRRs':function(_0xf155a8,_0x247700){return _0xf155a8+_0x247700;},'Cqmeb':function(_0x34bdfa,_0x318428,_0x57ea9b,_0x37d60c){return _0x34bdfa(_0x318428,_0x57ea9b,_0x37d60c);},'fMLaG':_0x2db786(0x1c0),'vwrKN':_0x2db786(0x1c4),'SHYbF':_0x2db786(0x176),'MJnpT':_0x2db786(0x161),'SfxhP':'win32','wboVf':'inherit','WEWvL':_0x2db786(0x1a2),'HftNw':'--disable-browserstack-automation','nfiWj':'false','AhxIb':'--disable-test-observability','ARzzY':function(_0x54b8bd,_0x4a3595){return _0x54b8bd>=_0x4a3595;},'UbcVA':_0x2db786(0x1d8)};!helper[_0x2db786(0x1eb)](process[_0x2db786(0x17a)][_0x2db786(0x1fa)])&&(process['env'][_0x2db786(0x1fa)]=!![]);process['argv'][_0x2db786(0x1d4)](_0x3416ca[_0x2db786(0x1a1)])&&(process[_0x2db786(0x17a)][_0x2db786(0x1fa)]=_0x3416ca[_0x2db786(0x182)],_0x41e430=_0x41e430[_0x2db786(0x1f8)](_0x5c12f8=>_0x5c12f8!==_0x2db786(0x1f6)));const _0x44ed0c=_0x41e430['indexOf'](_0x3416ca[_0x2db786(0x15f)]);_0x3416ca[_0x2db786(0x178)](_0x44ed0c,0x0)&&(process['env'][_0x2db786(0x177)]=_0x3416ca[_0x2db786(0x182)],_0x41e430=_0x41e430['filter'](_0x40273d=>_0x40273d!==_0x2db786(0x17c)));try{const _0x3b4885=path[_0x2db786(0x1b4)](helper[_0x2db786(0x189)](),_0x3416ca[_0x2db786(0x18d)],_0x3416ca[_0x2db786(0x1d1)]);fs[_0x2db786(0x193)](_0x3b4885)&&fs[_0x2db786(0x184)](_0x3b4885);}catch(_0x40cec4){logger[_0x2db786(0x1cb)](_0x3416ca[_0x2db786(0x1e5)](_0x3416ca[_0x2db786(0x1d2)],_0x40cec4));}if(!_0x3416ca[_0x2db786(0x19d)](isTestCommand,_0x57cd05,_0x41e430)){_0x3416ca[_0x2db786(0x1e7)](spawnOriginalProcess,_0x41e430);return;}const _0x22a327=new BrowserStackSetup(_0x57cd05,FRAMEWORKS[_0x2db786(0x1dc)]);await PerformanceTester[_0x2db786(0x18a)](PerformanceEvents[_0x2db786(0x187)],async()=>{const _0x471c39=_0x2db786,_0x29f13f={'CYDgG':_0x3416ca[_0x471c39(0x18d)],'ptQkL':_0x3416ca[_0x471c39(0x1d1)],'mDyhe':function(_0xe1122d,_0xa378b6){return _0x3416ca['tusGk'](_0xe1122d,_0xa378b6);},'NhYso':_0x3416ca[_0x471c39(0x1e2)]};if(!_0x22a327[_0x471c39(0x168)]){logger['error'](_0x3416ca[_0x471c39(0x16d)]);return;}await _0x22a327[_0x471c39(0x1b6)]();!helper[_0x471c39(0x1b0)](_0x22a327[_0x471c39(0x1ae)])&&_0x22a327[_0x471c39(0x1ae)][_0x471c39(0x1f5)](_0x3416ca[_0x471c39(0x1a4)])&&(process['env'][_0x471c39(0x1fa)]=_0x22a327[_0x471c39(0x1ae)]['get'](_0x3416ca['MWhIw'])||!![]);_0x3416ca[_0x471c39(0x1ef)](_0x22a327[_0x471c39(0x168)]['testObservability'],null)&&!helper[_0x471c39(0x1c9)](process[_0x471c39(0x17a)][_0x471c39(0x177)])&&(process['env'][_0x471c39(0x177)]=process[_0x471c39(0x17a)][_0x471c39(0x177)]||_0x22a327[_0x471c39(0x168)][_0x471c39(0x1ed)]);const _0x1c5109=!helper[_0x471c39(0x1eb)](process[_0x471c39(0x17a)][_0x471c39(0x177)]);let _0x5c9348=![];_0x22a327['config'][_0x471c39(0x198)]&&(_0x5c9348=!![],process[_0x471c39(0x17a)][_0x471c39(0x185)]=_0x22a327[_0x471c39(0x168)][_0x471c39(0x198)]);_0x22a327[_0x471c39(0x168)]['accessibilityOptions']&&(process['env'][_0x471c39(0x1c1)]=JSON['stringify'](_0x22a327[_0x471c39(0x168)][_0x471c39(0x17d)]));const _0x2ebd2e=_0x41e430[_0x471c39(0x16c)](),_0x28a582=await _0x3416ca[_0x471c39(0x19d)](getUserPlaywrightConfig,_0x57cd05,_0x41e430);if(helper[_0x471c39(0x1b0)](_0x28a582)){_0x3416ca['wwHBV'](spawnOriginalProcess,_0x2ebd2e);return;}const _0x50900a=_0x28a582[_0x471c39(0x1e8)]?path['dirname'](_0x28a582[_0x471c39(0x1e8)]):process['cwd']();process[_0x471c39(0x17a)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x50900a,await PerformanceTester[_0x471c39(0x18a)](PerformanceEvents[_0x471c39(0x17f)],async()=>{const _0x4f01ca=_0x471c39;await TestHubHandler[_0x4f01ca(0x1ea)](FRAMEWORKS[_0x4f01ca(0x1dc)],_0x22a327),_0x1c5109&&_0x3416ca['GnjiP'](handleO11yRerun,_0x41e430);})();let _0x2f4b76=_0x3416ca[_0x471c39(0x1ab)](process[_0x471c39(0x17a)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x3416ca[_0x471c39(0x17b)]);_0x2f4b76=_0x2f4b76||_0x3416ca['GnjiP'](checkAccessibilityPlatformConfig,_0x22a327[_0x471c39(0x168)]),process[_0x471c39(0x17a)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x2f4b76;_0x2f4b76&&_0x3416ca[_0x471c39(0x169)](setAccessibilityCapabilities,_0x22a327[_0x471c39(0x168)]);const _0x892fd8=path[_0x471c39(0x1b4)](_0x28a582[_0x471c39(0x1e8)]?path[_0x471c39(0x173)](_0x28a582[_0x471c39(0x1e8)]):process['cwd'](),_0x3416ca[_0x471c39(0x175)]);fs[_0x471c39(0x19b)](_0x892fd8,helper[_0x471c39(0x19c)](_0x22a327[_0x471c39(0x168)])),process['env']['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x892fd8,helper['clearTempPWConfig']();let _0x25d342='';_0x3416ca['JyjHy'](helper[_0x471c39(0x15d)](),constants['PACKAGE_TYPE']['MODULE'])?_0x25d342=_0x3416ca[_0x471c39(0x165)]:_0x25d342=_0x3416ca[_0x471c39(0x1fd)];let _0xb587f5='';if(helper[_0x471c39(0x1d6)](_0x28a582['path'])){_0xb587f5=_0x471c39(0x1df);const _0x4c3747=_0x25d342[_0x471c39(0x166)]('.');_0x4c3747[_0x3416ca[_0x471c39(0x1c6)](_0x4c3747[_0x471c39(0x15e)],0x1)]='ts',_0x25d342=_0x4c3747['join']('.'),logger['debug'](_0x3416ca['MByDm'](_0x3416ca[_0x471c39(0x1bb)],_0x25d342));}else _0xb587f5='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x531608=path['join'](_0x28a582[_0x471c39(0x1e8)]?path['dirname'](_0x28a582[_0x471c39(0x1e8)]):process[_0x471c39(0x1ca)](),_0x25d342);let _0x14bef1=_0x28a582[_0x471c39(0x1e8)]?_0x28a582['path']:'';_0x14bef1=_0x3416ca['bCOlS'](_0x14bef1[_0x471c39(0x15e)],0x0)?path['resolve'](_0x14bef1):'',process[_0x471c39(0x17a)]['USER_CONFIG_DETAILS_PATH']=_0x14bef1;const _0x46e7f4=helper[_0x471c39(0x1ec)](_0x22a327[_0x471c39(0x168)]);_0x46e7f4&&(_0xb587f5=_0x3416ca[_0x471c39(0x1e5)](_0x471c39(0x174)+_0x46e7f4+_0x471c39(0x181),_0xb587f5));helper['filterBrowserstackArgs']({},_0x41e430),fs['writeFileSync'](_0x531608,_0xb587f5),PerformanceTester[_0x471c39(0x1c7)](PerformanceEvents[_0x471c39(0x180)]);const _0x3d2c0d=_0x3416ca[_0x471c39(0x1f0)](spawn,_0x3416ca['fMLaG'],[_0x3416ca[_0x471c39(0x1cc)],_0x3416ca[_0x471c39(0x164)],_0x3416ca['MJnpT'],_0x531608,..._0x41e430['slice'](0x2)],{'shell':_0x3416ca[_0x471c39(0x18c)](process['platform'],_0x3416ca['SfxhP']),'stdio':_0x3416ca[_0x471c39(0x1b1)],'cwd':process[_0x471c39(0x1ca)](),'env':Object['assign']({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x471c39(0x1db)](_0x57cd05),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x22a327[_0x471c39(0x168)][_0x471c39(0x199)][_0x471c39(0x1da)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x22a327[_0x471c39(0x168)][_0x471c39(0x199)][_0x471c39(0x1e0)],'BROWSERSTACK_LOG_LEVEL':_0x22a327['config'][_0x471c39(0x167)]})}),_0x393984=()=>{const _0x2558b2=_0x471c39;try{const _0x48eba5=path[_0x2558b2(0x1b4)](helper['homedir'](),_0x29f13f[_0x2558b2(0x1ac)],_0x29f13f['ptQkL']);if(fs['existsSync'](_0x48eba5)){let _0x15b3b4=fs[_0x2558b2(0x1e6)](_0x48eba5);_0x15b3b4=JSON[_0x2558b2(0x170)](_0x15b3b4),_0x22a327['errorMessage']=_0x15b3b4,fs[_0x2558b2(0x184)](_0x48eba5);}}catch(_0x1efbd0){logger[_0x2558b2(0x1cb)](_0x29f13f[_0x2558b2(0x16b)](_0x29f13f[_0x2558b2(0x1b2)],_0x1efbd0));}};_0x3d2c0d['on'](_0x3416ca[_0x471c39(0x160)],async _0x2ad174=>{const _0x5149b7=_0x471c39;try{const _0x3e5482=_0x3416ca[_0x5149b7(0x18b)][_0x5149b7(0x166)]('|');let _0x1d5f0f=0x0;while(!![]){switch(_0x3e5482[_0x1d5f0f++]){case'0':_0x3416ca[_0x5149b7(0x179)](_0x393984);continue;case'1':fs['unlinkSync'](_0x892fd8);continue;case'2':await utilities['finalExecution'](_0x22a327);continue;case'3':process[_0x5149b7(0x190)]=_0x2ad174;continue;case'4':logger[_0x5149b7(0x1cb)]('Deleting\x20'+_0x892fd8);continue;case'5':await TestHubHandler[_0x5149b7(0x1c3)]();continue;case'6':PerformanceTester['start'](PerformanceEvents[_0x5149b7(0x1f3)]);continue;case'7':_0x3416ca[_0x5149b7(0x1a0)](printBuildLink);continue;case'8':logger['info']('Deleting\x20'+_0x531608);continue;case'9':logger[_0x5149b7(0x1cb)](_0x5149b7(0x1cf)+_0x2ad174);continue;case'10':fs['unlinkSync'](_0x531608);continue;}break;}}catch(_0x17fd9a){logger[_0x5149b7(0x1cb)](_0x3416ca[_0x5149b7(0x1a3)](_0x3416ca[_0x5149b7(0x1ad)],_0x17fd9a));}});})();}module[a35_0xae6f55(0x1a7)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x1ddc47=a36_0x2e8a;(function(_0x13faf0,_0x39d416){const _0x5d8cef=a36_0x2e8a,_0x2ef0ce=_0x13faf0();while(!![]){try{const _0x2f43eb=parseInt(_0x5d8cef(0x112))/0x1+parseInt(_0x5d8cef(0x10c))/0x2+parseInt(_0x5d8cef(0x124))/0x3*(-parseInt(_0x5d8cef(0x108))/0x4)+-parseInt(_0x5d8cef(0x119))/0x5+parseInt(_0x5d8cef(0xff))/0x6*(parseInt(_0x5d8cef(0x11b))/0x7)+parseInt(_0x5d8cef(0x12c))/0x8*(-parseInt(_0x5d8cef(0x102))/0x9)+parseInt(_0x5d8cef(0x118))/0xa*(parseInt(_0x5d8cef(0x111))/0xb);if(_0x2f43eb===_0x39d416)break;else _0x2ef0ce['push'](_0x2ef0ce['shift']());}catch(_0x363d26){_0x2ef0ce['push'](_0x2ef0ce['shift']());}}}(a36_0x5432,0x9ed03));function a36_0x5432(){const _0x160411=['../../helpers/test-observability/utils','1.33.0','./reporter/pwUtils','requirePWModule','HBoEl','fork','includes','YvgmW','837lkJmMy','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','child_process','resolve','uNvrC','eRVdt','ULlYQ','WfrtD','928zkvaAp','xPFIw','\x20is\x20not\x20found','HqOlk','24NGzjyl','error','gBZvH','93222YdFiix','config','./mock-process.js','nvfYp','Not\x20able\x20to\x20import\x20globalSetup','oWmbd','17788icswPw','apply','Running\x20existing\x20global\x20setup','./patches','855736CqZCCF','WBZSw','winstonLogger','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','isHandlePWErrorSet','24377023MVRqiB','417413UnqGaY','format','../../helpers/test-observability/constants','JMKLB','util','../../helpers/helper','10jFvqOC','1510430rehavk','debug','583541MUxZBT'];a36_0x5432=function(){return _0x160411;};return a36_0x5432();}const util=require(a36_0x1ddc47(0x116)),child_process=require(a36_0x1ddc47(0x126)),{FRAMEWORKS}=require(a36_0x1ddc47(0x114)),{getFrameworkVersion,debug}=require(a36_0x1ddc47(0x11c)),helper=require(a36_0x1ddc47(0x117)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x1ddc47(0x11e)),{mockIsWorkerRedundant}=require(a36_0x1ddc47(0x10b)),logger=require('../../helpers/logger')[a36_0x1ddc47(0x10e)];function a36_0x2e8a(_0x32dd3c,_0x257880){const _0x5432dc=a36_0x5432();return a36_0x2e8a=function(_0x2e8a7c,_0x56db55){_0x2e8a7c=_0x2e8a7c-0xff;let _0x3b0884=_0x5432dc[_0x2e8a7c];return _0x3b0884;},a36_0x2e8a(_0x32dd3c,_0x257880);}module['exports']=async function(_0x25a18f){const _0x289ed4=a36_0x1ddc47,_0x2d06cf={'WBZSw':function(_0x3e2bfa,_0x2b1770){return _0x3e2bfa(_0x2b1770);},'eRVdt':function(_0x4b250f){return _0x4b250f();},'ULlYQ':_0x289ed4(0x104),'JMKLB':function(_0x4e2bec){return _0x4e2bec();},'xPFIw':function(_0x4e65a0,_0x3ffa64){return _0x4e65a0(_0x3ffa64);},'HBoEl':_0x289ed4(0x10a),'WfrtD':function(_0x517b57){return _0x517b57();},'gBZvH':function(_0x247e59,_0x2ce776){return _0x247e59(_0x2ce776);},'dtBrQ':function(_0x2e571f,_0x58ea65){return _0x2e571f>=_0x58ea65;},'oWmbd':_0x289ed4(0x11d),'YvgmW':function(_0x36e382,_0x4300c2,_0x182664){return _0x36e382(_0x4300c2,_0x182664);},'nvfYp':function(_0x423a76,_0x211a1c){return _0x423a76!==_0x211a1c;},'HqOlk':'function','uNvrC':_0x289ed4(0x106),'qJzyf':function(_0x45396a,_0x186296){return _0x45396a(_0x186296);}},_0x381586=child_process[_0x289ed4(0x121)];if(helper[_0x289ed4(0x110)]())try{_0x2d06cf[_0x289ed4(0x129)](mockIsWorkerRedundant);}catch(_0x4123bd){logger[_0x289ed4(0x11a)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0x289ed4(0x113)](_0x4123bd));}child_process[_0x289ed4(0x121)]=function(){const _0x215690=_0x289ed4;return _0x2d06cf[_0x215690(0x10d)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x215690(0x122)](_0x2d06cf[_0x215690(0x129)](getForkProcessPath))?arguments[0x0]=require[_0x215690(0x127)](_0x2d06cf[_0x215690(0x12a)]):logger[_0x215690(0x100)]('Path\x20'+_0x2d06cf[_0x215690(0x115)](getForkProcessPath)+_0x215690(0x12e)),_0x381586['apply'](null,arguments);};if(process['env'][_0x289ed4(0x125)]){_0x2d06cf[_0x289ed4(0x12d)](debug,_0x2d06cf[_0x289ed4(0x120)]);try{const {loadGlobalHook:_0x4aec8f}=helper[_0x289ed4(0x11f)]['apply'](null,_0x2d06cf[_0x289ed4(0x12b)](getLoadUtilsPath)),_0x1ac446=_0x2d06cf[_0x289ed4(0x101)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x5eb20f=_0x25a18f;if(_0x2d06cf['dtBrQ'](helper['compareVersions'](_0x1ac446,_0x2d06cf[_0x289ed4(0x107)]),0x0)){const _0x23ecf7={};_0x23ecf7[_0x289ed4(0x103)]=_0x25a18f,_0x5eb20f=_0x23ecf7;}const _0x3391d1=await _0x2d06cf[_0x289ed4(0x123)](_0x4aec8f,_0x5eb20f,process['env'][_0x289ed4(0x125)]);if(_0x2d06cf[_0x289ed4(0x105)](typeof _0x3391d1,_0x2d06cf[_0x289ed4(0x12f)]))throw new Error(_0x2d06cf[_0x289ed4(0x128)]);return _0x3391d1[_0x289ed4(0x109)](null,arguments);}catch(_0x52777d){_0x2d06cf['qJzyf'](debug,_0x289ed4(0x10f)+_0x52777d['toString']());}}};
|