browserstack-node-sdk 1.33.0 → 1.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/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.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/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.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/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a27_0x30c9cb=a27_0x14ce;(function(_0x3ed3d5,_0xa88d86){const _0x9cd39c=a27_0x14ce,_0x249106=_0x3ed3d5();while(!![]){try{const _0x343832=parseInt(_0x9cd39c(0xa8))/0x1+-parseInt(_0x9cd39c(0xff))/0x2*(parseInt(_0x9cd39c(0xfa))/0x3)+parseInt(_0x9cd39c(0xc3))/0x4*(-parseInt(_0x9cd39c(0xdb))/0x5)+parseInt(_0x9cd39c(0xa5))/0x6+parseInt(_0x9cd39c(0xed))/0x7*(-parseInt(_0x9cd39c(0xcb))/0x8)+-parseInt(_0x9cd39c(0xe8))/0x9*(parseInt(_0x9cd39c(0xc8))/0xa)+parseInt(_0x9cd39c(0xd9))/0xb*(parseInt(_0x9cd39c(0x9a))/0xc);if(_0x343832===_0xa88d86)break;else _0x249106['push'](_0x249106['shift']());}catch(_0x10ceff){_0x249106['push'](_0x249106['shift']());}}}(a27_0x3238,0x3396e));const logger=require(a27_0x30c9cb(0xce))[a27_0x30c9cb(0xfb)],helper=require(a27_0x30c9cb(0xa9)),constants=require(a27_0x30c9cb(0xf4)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a27_0x30c9cb(0xc7)),globals=require(a27_0x30c9cb(0xf2)),modify=(_0x4b9b33,_0x4f1481=null,_0x4edb02=![])=>{const _0x300763=a27_0x30c9cb,_0x21765d={'IQOCl':function(_0x38c12d,_0x55f949){return _0x38c12d!==_0x55f949;},'xCJMG':_0x300763(0xe3),'wvuag':function(_0x19aa53,_0x1e1f8e){return _0x19aa53!==_0x1e1f8e;},'PTrSz':function(_0x417ed4,_0x4b4a55){return _0x417ed4+_0x4b4a55;},'LhfMu':'https://','BkaPM':_0x300763(0xe7),'kqTxe':_0x300763(0xc6),'IidBr':_0x300763(0xad),'OUUMP':'ms:edgeOptions','Akvlq':_0x300763(0xa2),'IEWqi':_0x300763(0xa1),'rERIx':'firefoxOptions','tCuKq':_0x300763(0xab),'odXnF':'se:ieOptions','PzRST':_0x300763(0xee),'nzPrE':function(_0x24a58c,_0x3ccc7c){return _0x24a58c===_0x3ccc7c;},'ZrIMn':'object','pyRzM':_0x300763(0xb7),'rSHEs':function(_0x587b3a,_0x540435,_0xfa04f5){return _0x587b3a(_0x540435,_0xfa04f5);},'OTOYk':function(_0x308168,_0x422957,_0x38f520){return _0x308168(_0x422957,_0x38f520);},'PGtml':function(_0x17fe2e,_0x20e82f,_0x853d58){return _0x17fe2e(_0x20e82f,_0x853d58);},'oZQfS':function(_0x2fb1ff,_0x1b212d){return _0x2fb1ff(_0x1b212d);},'xlzjn':function(_0x2d24b0,_0x3a75b0,_0x337827){return _0x2d24b0(_0x3a75b0,_0x337827);},'XTrcA':_0x300763(0x10b),'RMfGd':_0x300763(0x10d),'lJMQv':function(_0x19ec8f,_0x22e5cc,_0x45ef1f){return _0x19ec8f(_0x22e5cc,_0x45ef1f);},'PxXlU':_0x300763(0xe2),'OYDSk':function(_0x3c6c0f){return _0x3c6c0f();},'Bgwif':_0x300763(0xd2),'ORWMF':function(_0x5d215a,_0x836bbf,_0x16e505){return _0x5d215a(_0x836bbf,_0x16e505);},'fskWQ':_0x300763(0xbc),'xprbE':function(_0x4995d1,_0x4ef9d8){return _0x4995d1(_0x4ef9d8);},'KjliR':function(_0x53542b,_0x3cf114){return _0x53542b!==_0x3cf114;},'XGfjR':_0x300763(0xf1),'MhEfP':'Modifying\x20webdriver\x20builder'},_0x13626c=helper[_0x300763(0xda)]();let _0x173b46;try{_0x173b46=helper[_0x300763(0xea)](),_0x173b46[_0x300763(0xd3)]&&(_0x173b46['Builder']=_0x173b46[_0x300763(0xd3)]);}catch(_0x192610){return;}if(helper[_0x300763(0xb0)]()){const _0x341701={};_0x341701[_0x300763(0x8d)]=_0x4b9b33[_0x300763(0x92)],helper[_0x300763(0xdf)](_0x341701,new Map(),new Map()),logger[_0x300763(0xeb)](_0x21765d[_0x300763(0x8c)]),logger[_0x300763(0xb6)](_0x21765d[_0x300763(0xec)]);}class _0x1d5887 extends _0x13626c['HttpClient']{['send'](_0x2229d0){const _0x2e3c36=_0x300763;if(_0x21765d[_0x2e3c36(0xa0)](_0x2229d0[_0x2e3c36(0xf8)],_0x21765d[_0x2e3c36(0xfe)])&&_0x21765d[_0x2e3c36(0xc0)](global[_0x2e3c36(0xb2)],''))try{global[_0x2e3c36(0xb2)]=_0x21765d[_0x2e3c36(0x103)](_0x21765d[_0x2e3c36(0x103)](_0x21765d[_0x2e3c36(0xac)],global[_0x2e3c36(0xb2)]),_0x21765d[_0x2e3c36(0x104)]),this['options_']=hubAllocator[_0x2e3c36(0x10a)](global[_0x2e3c36(0xb2)]),logger[_0x2e3c36(0xb6)](_0x2e3c36(0xfc)+global[_0x2e3c36(0xb2)]),global['newHubUrl']='';}catch(_0x37c09a){logger[_0x2e3c36(0x102)](_0x37c09a);}return super[_0x2e3c36(0xa4)](_0x2229d0);}}class _0x58617a extends _0x173b46[_0x300763(0xf0)]{['setServer'](){const _0x3fd7f7=_0x300763;return this[_0x3fd7f7(0x107)]=helper[_0x3fd7f7(0x90)](_0x4b9b33),logger[_0x3fd7f7(0xb6)](_0x3fd7f7(0xdd)+this[_0x3fd7f7(0x107)]),this;}[_0x300763(0x105)](_0x33c3e9){const _0xcf1863=_0x300763;let _0x490cd3={};for(const _0xaeef14 in _0x33c3e9){switch(_0xaeef14){case _0x21765d['kqTxe']:case _0x21765d[_0xcf1863(0xa7)]:this[_0xcf1863(0x94)]&&(_0x490cd3=this[_0xcf1863(0x94)][_0xcf1863(0xd8)](this['chromeOptions_'][_0xcf1863(0x10e)])||{},this[_0xcf1863(0x94)][_0xcf1863(0xbd)](this['chromeOptions_'][_0xcf1863(0x10e)],helper['mergeDeep'](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0x9f)]:case _0x21765d['Akvlq']:this[_0xcf1863(0xb9)]&&(_0x490cd3=this['edgeOptions_']['get'](this[_0xcf1863(0xb9)]['CAPABILITY_KEY'])||{},this[_0xcf1863(0xb9)][_0xcf1863(0xbd)](this[_0xcf1863(0xb9)][_0xcf1863(0x10e)],helper[_0xcf1863(0x95)](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0x109)]:case _0x21765d[_0xcf1863(0xcc)]:this[_0xcf1863(0xf3)]&&(_0x490cd3=this[_0xcf1863(0xf3)][_0xcf1863(0xd8)](this['firefoxOptions_'][_0xcf1863(0x10e)])||{},this[_0xcf1863(0xf3)][_0xcf1863(0xbd)](this[_0xcf1863(0xf3)]['CAPABILITY_KEY'],helper[_0xcf1863(0x95)](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0xe6)]:this[_0xcf1863(0xaa)]&&(_0x490cd3=this[_0xcf1863(0xaa)][_0xcf1863(0xd8)](this[_0xcf1863(0xaa)]['CAPABILITY_KEY'])||{},this[_0xcf1863(0xaa)]['set'](this[_0xcf1863(0xaa)][_0xcf1863(0x10e)],helper[_0xcf1863(0x95)](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0xd6)]:case _0x21765d[_0xcf1863(0xf6)]:this[_0xcf1863(0xb5)]&&(_0x490cd3=this['ieOptions_'][_0xcf1863(0xd8)](this[_0xcf1863(0xb5)][_0xcf1863(0x10e)])||{},this['ieOptions_'][_0xcf1863(0xbd)](this['ieOptions_']['CAPABILITY_KEY'],helper['mergeDeep'](_0x490cd3,_0x33c3e9[_0xaeef14])));break;}}}[_0x300763(0xd5)](){const _0x1a4abb=_0x300763,_0x3b143e={'kSfOy':function(_0x311ed6,_0xc16a44){const _0x1176c1=a27_0x14ce;return _0x21765d[_0x1176c1(0xef)](_0x311ed6,_0xc16a44);},'STzpx':_0x21765d[_0x1a4abb(0xc5)]};return logger[_0x1a4abb(0xb6)](_0x21765d[_0x1a4abb(0x9c)]),this['__setBrowserOptions'](_0x4b9b33[_0x1a4abb(0xde)]),Object[_0x1a4abb(0xf5)](_0x4b9b33[_0x1a4abb(0xde)])[_0x1a4abb(0x106)](_0x578bb7=>{const _0x36b5a2=_0x1a4abb,_0x649f02=this[_0x36b5a2(0xca)]['get'](_0x578bb7);_0x3b143e[_0x36b5a2(0xe0)](typeof _0x649f02,_0x3b143e[_0x36b5a2(0xbe)])?this[_0x36b5a2(0xca)][_0x36b5a2(0xbd)](_0x578bb7,helper[_0x36b5a2(0x95)](_0x649f02,_0x4b9b33[_0x36b5a2(0xde)][_0x578bb7])):this[_0x36b5a2(0xca)][_0x36b5a2(0xbd)](_0x578bb7,_0x4b9b33[_0x36b5a2(0xde)][_0x578bb7]);}),this;}['build'](){const _0x103bee=_0x300763,_0x305168={'JaSSW':_0x21765d[_0x103bee(0xe9)],'viOhS':_0x21765d[_0x103bee(0x108)],'VfDHN':function(_0x1ce7a4,_0x4767cf,_0x40e36a){const _0x2c9b10=_0x103bee;return _0x21765d[_0x2c9b10(0xbb)](_0x1ce7a4,_0x4767cf,_0x40e36a);}};if(helper[_0x103bee(0xb0)]()){const _0x85bdde=_0x21765d['PxXlU'][_0x103bee(0x96)]('|');let _0x365c96=0x0;while(!![]){switch(_0x85bdde[_0x365c96++]){case'0':this[_0x103bee(0x98)]();continue;case'1':_0x21765d['OYDSk'](isAccessibilityAutomationSession)&&_0x21765d[_0x103bee(0x93)](setAccessibilityCapabilities,_0x4b9b33);continue;case'2':if(helper[_0x103bee(0x91)](_0x4b9b33['proxySettings'][_0x103bee(0xb3)]))this[_0x103bee(0x9e)]=helper['getHttpAgent'](_0x4b9b33[_0x103bee(0xae)]['proxyUrl']);else _0x4b9b33[_0x103bee(0xae)][_0x103bee(0xb3)]&&(this[_0x103bee(0x8f)]=_0x4b9b33[_0x103bee(0xae)][_0x103bee(0xb3)],logger['debug'](_0x103bee(0x101)+this[_0x103bee(0x8f)]));continue;case'3':globals[_0x103bee(0xd4)](_0x21765d[_0x103bee(0xd7)])&&(!_0x21765d[_0x103bee(0xb1)](setExtension,this,_0x4b9b33)&&globals[_0x103bee(0xdc)](_0x21765d[_0x103bee(0xd7)],![]));continue;case'4':logger['debug'](_0x21765d[_0x103bee(0xc9)]);continue;case'5':this[_0x103bee(0xd5)]();continue;}break;}}const _0x24da07=super[_0x103bee(0xe4)]();return _0x24da07[_0x103bee(0xd1)][_0x103bee(0xc1)](_0x2e7e6e=>{const _0x7d1359=_0x103bee;try{const _0x19f8d4=_0x2e7e6e[_0x7d1359(0xfd)][_0x7d1359(0xd8)](_0x305168[_0x7d1359(0x10c)]);_0x19f8d4?(logger[_0x7d1359(0xb6)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x19f8d4),hubAllocator[_0x7d1359(0xaf)](_0x19f8d4),helper[_0x7d1359(0xb8)](_0x19f8d4)):logger[_0x7d1359(0xb6)](_0x305168['viOhS']);}catch(_0x3c573c){logger[_0x7d1359(0xb6)](_0x7d1359(0xcd)+_0x3c573c);}}),_0x24da07['quitCount_']=0x0,_0x24da07[_0x103bee(0xc1)]&&_0x24da07[_0x103bee(0xc1)](_0x16db10=>{const _0x2ba34a=_0x103bee,_0x5da965={'EqQML':function(_0x2df6a8,_0x1d992c,_0x4aed61){const _0x36a5b0=a27_0x14ce;return _0x21765d[_0x36a5b0(0xba)](_0x2df6a8,_0x1d992c,_0x4aed61);},'EoAEu':function(_0x2d080f,_0x14107f,_0x5f4456){const _0x16307e=a27_0x14ce;return _0x21765d[_0x16307e(0x8e)](_0x2d080f,_0x14107f,_0x5f4456);}};_0x21765d[_0x2ba34a(0xe5)](overrideQuit,_0x16db10,_0x24da07),_0x21765d[_0x2ba34a(0x93)](overrideTakeScreenshot,_0x16db10),helper[_0x2ba34a(0xf7)](_0x16db10,_0x4b9b33),helper['overrideExecute'](_0x16db10,_0x4b9b33),_0x16db10[_0x2ba34a(0x97)]=async()=>{const _0x4763e4=_0x2ba34a;return await _0x5da965[_0x4763e4(0xc4)](getAccessibilityResultsSummary,_0x16db10,global);},_0x16db10[_0x2ba34a(0xa3)]=async()=>{return await _0x5da965['EoAEu'](getAccessibilityResults,_0x16db10,global);};}),_0x24da07[_0x103bee(0x97)]=async()=>{const _0x2a7c24=_0x103bee;return await _0x305168[_0x2a7c24(0xc2)](getAccessibilityResultsSummary,_0x24da07,global);},_0x24da07[_0x103bee(0xa3)]=async()=>{return await _0x21765d['xlzjn'](getAccessibilityResults,_0x24da07,global);},_0x21765d['oZQfS'](overrideTakeScreenshot,_0x24da07),_0x21765d[_0x103bee(0xa6)](overrideQuit,_0x24da07),helper['overrideGet'](_0x24da07,_0x4b9b33),helper[_0x103bee(0x9d)](_0x24da07,_0x4b9b33),helper[_0x103bee(0xb4)](global[_0x103bee(0xf9)])&&(global[_0x103bee(0xf9)]=[]),helper[_0x103bee(0xb4)](global['__drivers'])&&(global[_0x103bee(0xe1)]=[]),global['__driversArray'][_0x103bee(0x9b)](_0x24da07),global[_0x103bee(0x100)]=_0x24da07,_0x21765d[_0x103bee(0x99)](global[_0x103bee(0xe1)],undefined)&&global['__drivers'][_0x103bee(0x9b)](_0x24da07),_0x4f1481&&helper[_0x103bee(0xb4)](_0x4f1481['global'][_0x103bee(0xf9)])&&(_0x4f1481[_0x103bee(0xd0)][_0x103bee(0xf9)]=[]),_0x4f1481&&_0x21765d['IQOCl'](_0x4f1481['global'][_0x103bee(0xe1)],undefined)&&(_0x4f1481[_0x103bee(0xd0)]['__drivers']['push'](_0x24da07),_0x4f1481[_0x103bee(0xd0)][_0x103bee(0xf9)]['push'](_0x24da07)),_0x24da07;}}return _0x173b46[_0x300763(0xd3)]=_0x173b46[_0x300763(0xf0)],_0x173b46[_0x300763(0xf0)]=_0x58617a,_0x13626c[_0x300763(0xbf)]=_0x1d5887,_0x173b46;};function a27_0x14ce(_0x2037c9,_0x5812e1){const _0x323871=a27_0x3238();return a27_0x14ce=function(_0x14cecb,_0x5067e7){_0x14cecb=_0x14cecb-0x8c;let _0x4110ec=_0x323871[_0x14cecb];return _0x4110ec;},a27_0x14ce(_0x2037c9,_0x5812e1);}function a27_0x3238(){const _0x1c121b=['rERIx','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','../../../helpers/logger','browserstackAgentObservability','global','session_','isAccessibilityPlatform','originalBuilder','getGlobal','setCapabilities','odXnF','Bgwif','get','11MVAYwR','requireHttpClient','326320ZaMdSg','setGlobal','Hub\x20url\x20set\x20to\x20','capability','setLogLevel','kSfOy','__drivers','1|0|5|2|3|4','/session','build','PGtml','tCuKq','/wd/hub','36WEbBYd','XTrcA','requireSeleniumWebdriver','info','MhEfP','7UQGRAL','ieOptions','nzPrE','Builder','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','../../../helpers/globals','firefoxOptions_','../../../bin/utils/constants','keys','PzRST','overrideGet','path','__driversArray','78765RuNoKq','winstonLogger','New\x20hub\x20url\x20set\x20to\x20','caps_','xCJMG','6agroxR','__driver','Proxy\x20set\x20to\x20','error','PTrSz','BkaPM','__setBrowserOptions','forEach','url_','RMfGd','IEWqi','getRequestOptions','optimalHubUrl','JaSSW','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','CAPABILITY_KEY','XGfjR','logLevel','OTOYk','proxy_','getHubUrl','isPacProxy','browserStackLogLevel','oZQfS','chromeOptions_','mergeDeep','split','getAccessibilityResultsSummary','setServer','KjliR','3273216JHAAdi','push','pyRzM','overrideExecute','agent_','OUUMP','IQOCl','moz:firefoxOptions','edgeOptions','getAccessibilityResults','send','2075598LfqOFy','xprbE','IidBr','226004lAkCcI','../../../helpers/helper','safariOptions_','safari.options','LhfMu','chromeOptions','proxySettings','updateHubUrl','isBrowserstackInfra','ORWMF','newHubUrl','proxyUrl','isUndefined','ieOptions_','debug','Setting\x20Browserstack\x20capabilities','storeOptimalHubUrl','edgeOptions_','rSHEs','lJMQv','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','set','STzpx','HttpClient','wvuag','then','VfDHN','4kajjcD','EqQML','ZrIMn','goog:chromeOptions','../../../helpers/accessibility-automation/helper','349540WGYmrK','fskWQ','capabilities_','2796400bZzCeS'];a27_0x3238=function(){return _0x1c121b;};return a27_0x3238();}module['exports'][a27_0x30c9cb(0xcf)]=modify;
|
|
1
|
+
const a27_0x2a9efe=a27_0x5597;function a27_0x5597(_0x435e93,_0x2a1760){const _0x3b55f1=a27_0x3b55();return a27_0x5597=function(_0x559739,_0x5e762b){_0x559739=_0x559739-0x177;let _0x378d69=_0x3b55f1[_0x559739];return _0x378d69;},a27_0x5597(_0x435e93,_0x2a1760);}function a27_0x3b55(){const _0x54d28a=['proxy_','WQxVN','moz:firefoxOptions','HttpClient','mSlYR','isBrowserstackInfra','../../../helpers/helper','getAccessibilityResults','lEQdw','proxySettings','capability','then','../../../bin/utils/constants','dIazM','vbdOP','debug','ieOptions_','getGlobal','dmgpS','__setBrowserOptions','setGlobal','VYuUc','build','315996mqLtky','storeOptimalHubUrl','overrideGet','proxyUrl','ktRNj','path','aUkHA','MqwUa','firefoxOptions_','Proxy\x20set\x20to\x20','push','se:ieOptions','3241CTxkFE','../../../hubAllocationMethods','704868bmJmwd','setLogLevel','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','BYzPd','exports','6096wSfRwV','send','HGmJp','quitCount_','__driversArray','requireHttpClient','object','kiJxv','set','2925RVgssO','vyAxD','getAccessibilityResultsSummary','mergeDeep','bmkmA','Setting\x20Browserstack\x20capabilities','isAccessibilityPlatform','safariOptions_','cpCmN','KaWkd','url_','agent_','148310zZTBlx','773658cHREfy','lfrxH','edgeOptions_','YfFqy','capabilities_','../../../helpers/logger','browserstackAgentObservability','4974xzBNmn','get','setServer','winstonLogger','GwUYk','eBfbA','BVBox','getHttpAgent','Builder','nxnxB','info','ieOptions','edgeOptions','getRequestOptions','updateHubUrl','/session','safari.options','3932210QpScch','overrideExecute','ms:edgeOptions','TXkpf','requireSeleniumWebdriver','originalBuilder','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','split','8fSpYzm','ToTJy','goog:chromeOptions','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','../../../helpers/patchHelpers','isUndefined','chromeOptions_','__drivers','gBpWj','session_','__driver','global','options_','newHubUrl','CAPABILITY_KEY','ndbDp','https://','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'];a27_0x3b55=function(){return _0x54d28a;};return a27_0x3b55();}(function(_0x459ced,_0x37d54f){const _0x156089=a27_0x5597,_0x3ba1b7=_0x459ced();while(!![]){try{const _0x4b4c30=parseInt(_0x156089(0x1aa))/0x1+parseInt(_0x156089(0x1d3))/0x2+-parseInt(_0x156089(0x1b8))/0x3+-parseInt(_0x156089(0x181))/0x4*(-parseInt(_0x156089(0x1d2))/0x5)+-parseInt(_0x156089(0x1da))/0x6*(parseInt(_0x156089(0x1b6))/0x7)+-parseInt(_0x156089(0x1bd))/0x8*(parseInt(_0x156089(0x1c6))/0x9)+parseInt(_0x156089(0x179))/0xa;if(_0x4b4c30===_0x37d54f)break;else _0x3ba1b7['push'](_0x3ba1b7['shift']());}catch(_0x51b341){_0x3ba1b7['push'](_0x3ba1b7['shift']());}}}(a27_0x3b55,0x468a9));const logger=require(a27_0x2a9efe(0x1d8))[a27_0x2a9efe(0x1dd)],helper=require(a27_0x2a9efe(0x199)),constants=require(a27_0x2a9efe(0x19f)),hubAllocator=require(a27_0x2a9efe(0x1b7)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a27_0x2a9efe(0x185)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require('../../../helpers/globals'),modify=(_0xa2755,_0x227bd7=null,_0x424e95=![])=>{const _0x85041c=a27_0x2a9efe,_0x52607e={'vyAxD':function(_0x567964,_0xadadb0){return _0x567964!==_0xadadb0;},'lEQdw':_0x85041c(0x177),'vCnJN':function(_0x8f3aa5,_0x2ba44b){return _0x8f3aa5!==_0x2ba44b;},'dIazM':function(_0x4a352e,_0x30ad37){return _0x4a352e+_0x30ad37;},'bmkmA':_0x85041c(0x191),'aXIgw':'/wd/hub','gBpWj':_0x85041c(0x183),'MqwUa':'chromeOptions','eBfbA':_0x85041c(0x17b),'IYuWD':_0x85041c(0x1e6),'ktRNj':_0x85041c(0x195),'TXkpf':'firefoxOptions','cpCmN':_0x85041c(0x178),'VYuUc':_0x85041c(0x1b5),'vbdOP':_0x85041c(0x1e5),'cuZpw':function(_0x5b12fd,_0x4813c2){return _0x5b12fd===_0x4813c2;},'kiJxv':_0x85041c(0x1c3),'ReIIN':_0x85041c(0x1cb),'KaWkd':function(_0x1dc35a,_0x533e48,_0x4189a6){return _0x1dc35a(_0x533e48,_0x4189a6);},'dmgpS':function(_0x40c817,_0x26c804,_0x4005d5){return _0x40c817(_0x26c804,_0x4005d5);},'WQxVN':function(_0x2a0800,_0x4c564e){return _0x2a0800(_0x4c564e);},'BYzPd':'optimalHubUrl','HBowE':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','OBezy':function(_0x11c210,_0xc50b69,_0x1c2f1d){return _0x11c210(_0xc50b69,_0x1c2f1d);},'mSlYR':'0|1|5|4|2|3','jkSqP':function(_0x8fc93){return _0x8fc93();},'YfFqy':function(_0x449735,_0x39889b){return _0x449735(_0x39889b);},'lfrxH':_0x85041c(0x1cc),'ndbDp':function(_0x35a164,_0x25c537,_0x5841d1){return _0x35a164(_0x25c537,_0x5841d1);},'AIWQS':_0x85041c(0x1ba),'dygPQ':_0x85041c(0x17f),'GwUYk':'Modifying\x20webdriver\x20builder'},_0x4e6194=helper[_0x85041c(0x1c2)]();let _0x1bc56f;try{_0x1bc56f=helper[_0x85041c(0x17d)](),_0x1bc56f[_0x85041c(0x17e)]&&(_0x1bc56f[_0x85041c(0x1e2)]=_0x1bc56f[_0x85041c(0x17e)]);}catch(_0x4244d7){return;}if(helper[_0x85041c(0x198)]()){const _0x1cae94={};_0x1cae94['logLevel']=_0xa2755['browserStackLogLevel'],helper[_0x85041c(0x1b9)](_0x1cae94,new Map(),new Map()),logger[_0x85041c(0x1e4)](_0x52607e['dygPQ']),logger['debug'](_0x52607e[_0x85041c(0x1de)]);}class _0x45eb41 extends _0x4e6194[_0x85041c(0x196)]{[_0x85041c(0x1be)](_0x597122){const _0x1da720=_0x85041c;if(_0x52607e['vyAxD'](_0x597122[_0x1da720(0x1af)],_0x52607e[_0x1da720(0x19b)])&&_0x52607e['vCnJN'](global['newHubUrl'],''))try{global[_0x1da720(0x18e)]=_0x52607e[_0x1da720(0x1a0)](_0x52607e[_0x1da720(0x1a0)](_0x52607e[_0x1da720(0x1ca)],global[_0x1da720(0x18e)]),_0x52607e['aXIgw']),this[_0x1da720(0x18d)]=hubAllocator[_0x1da720(0x1e7)](global[_0x1da720(0x18e)]),logger['debug']('New\x20hub\x20url\x20set\x20to\x20'+global['newHubUrl']),global[_0x1da720(0x18e)]='';}catch(_0x339d37){logger['error'](_0x339d37);}return super[_0x1da720(0x1be)](_0x597122);}}class _0x305eac extends _0x1bc56f[_0x85041c(0x1e2)]{[_0x85041c(0x1dc)](){const _0x5c0673=_0x85041c;return this[_0x5c0673(0x1d0)]=helper['getHubUrl'](_0xa2755),logger[_0x5c0673(0x1a2)]('Hub\x20url\x20set\x20to\x20'+this[_0x5c0673(0x1d0)]),this;}['__setBrowserOptions'](_0x4a1066){const _0x328788=_0x85041c;let _0x1b767c={};for(const _0x2b5de3 in _0x4a1066){switch(_0x2b5de3){case _0x52607e[_0x328788(0x189)]:case _0x52607e[_0x328788(0x1b1)]:this['chromeOptions_']&&(_0x1b767c=this[_0x328788(0x187)][_0x328788(0x1db)](this['chromeOptions_'][_0x328788(0x18f)])||{},this[_0x328788(0x187)][_0x328788(0x1c5)](this[_0x328788(0x187)][_0x328788(0x18f)],helper[_0x328788(0x1c9)](_0x1b767c,_0x4a1066[_0x2b5de3])));break;case _0x52607e[_0x328788(0x1df)]:case _0x52607e['IYuWD']:this[_0x328788(0x1d5)]&&(_0x1b767c=this[_0x328788(0x1d5)][_0x328788(0x1db)](this[_0x328788(0x1d5)][_0x328788(0x18f)])||{},this[_0x328788(0x1d5)]['set'](this[_0x328788(0x1d5)][_0x328788(0x18f)],helper[_0x328788(0x1c9)](_0x1b767c,_0x4a1066[_0x2b5de3])));break;case _0x52607e[_0x328788(0x1ae)]:case _0x52607e[_0x328788(0x17c)]:this['firefoxOptions_']&&(_0x1b767c=this['firefoxOptions_'][_0x328788(0x1db)](this[_0x328788(0x1b2)][_0x328788(0x18f)])||{},this[_0x328788(0x1b2)][_0x328788(0x1c5)](this['firefoxOptions_'][_0x328788(0x18f)],helper[_0x328788(0x1c9)](_0x1b767c,_0x4a1066[_0x2b5de3])));break;case _0x52607e[_0x328788(0x1ce)]:this['safariOptions_']&&(_0x1b767c=this[_0x328788(0x1cd)][_0x328788(0x1db)](this['safariOptions_']['CAPABILITY_KEY'])||{},this[_0x328788(0x1cd)][_0x328788(0x1c5)](this[_0x328788(0x1cd)][_0x328788(0x18f)],helper['mergeDeep'](_0x1b767c,_0x4a1066[_0x2b5de3])));break;case _0x52607e[_0x328788(0x1a8)]:case _0x52607e[_0x328788(0x1a1)]:this[_0x328788(0x1a3)]&&(_0x1b767c=this['ieOptions_']['get'](this[_0x328788(0x1a3)][_0x328788(0x18f)])||{},this['ieOptions_'][_0x328788(0x1c5)](this[_0x328788(0x1a3)][_0x328788(0x18f)],helper['mergeDeep'](_0x1b767c,_0x4a1066[_0x2b5de3])));break;}}}['setCapabilities'](){const _0x955c4d=_0x85041c,_0x179cde={'HGmJp':function(_0x37503f,_0x2d59b6){return _0x52607e['cuZpw'](_0x37503f,_0x2d59b6);},'BVBox':_0x52607e[_0x955c4d(0x1c4)]};return logger[_0x955c4d(0x1a2)](_0x52607e['ReIIN']),this[_0x955c4d(0x1a6)](_0xa2755[_0x955c4d(0x19d)]),Object['keys'](_0xa2755[_0x955c4d(0x19d)])['forEach'](_0x405877=>{const _0x3fb721=_0x955c4d,_0x998be2=this['capabilities_']['get'](_0x405877);_0x179cde[_0x3fb721(0x1bf)](typeof _0x998be2,_0x179cde[_0x3fb721(0x1e0)])?this['capabilities_'][_0x3fb721(0x1c5)](_0x405877,helper[_0x3fb721(0x1c9)](_0x998be2,_0xa2755[_0x3fb721(0x19d)][_0x405877])):this[_0x3fb721(0x1d7)][_0x3fb721(0x1c5)](_0x405877,_0xa2755['capability'][_0x405877]);}),this;}[_0x85041c(0x1a9)](){const _0x238d26=_0x85041c,_0xae8ee5={'nxnxB':_0x52607e[_0x238d26(0x1bb)],'aUkHA':_0x52607e['HBowE'],'ToTJy':function(_0x529dcc,_0x2afe18,_0xcad1ec){return _0x52607e['OBezy'](_0x529dcc,_0x2afe18,_0xcad1ec);}};if(helper[_0x238d26(0x198)]()){const _0x38a6b9=_0x52607e[_0x238d26(0x197)][_0x238d26(0x180)]('|');let _0x257827=0x0;while(!![]){switch(_0x38a6b9[_0x257827++]){case'0':_0x52607e['jkSqP'](isAccessibilityAutomationSession)&&_0x52607e[_0x238d26(0x1d6)](setAccessibilityCapabilities,_0xa2755);continue;case'1':this[_0x238d26(0x1dc)]();continue;case'2':globals[_0x238d26(0x1a4)](_0x52607e[_0x238d26(0x1d4)])&&(!_0x52607e[_0x238d26(0x190)](setExtension,this,_0xa2755)&&globals[_0x238d26(0x1a7)](_0x52607e['lfrxH'],![]));continue;case'3':logger[_0x238d26(0x1a2)](_0x52607e['AIWQS']);continue;case'4':if(helper['isPacProxy'](_0xa2755[_0x238d26(0x19c)][_0x238d26(0x1ad)]))this[_0x238d26(0x1d1)]=helper[_0x238d26(0x1e1)](_0xa2755[_0x238d26(0x19c)][_0x238d26(0x1ad)]);else _0xa2755[_0x238d26(0x19c)][_0x238d26(0x1ad)]&&(this[_0x238d26(0x193)]=_0xa2755['proxySettings']['proxyUrl'],logger[_0x238d26(0x1a2)](_0x238d26(0x1b3)+this[_0x238d26(0x193)]));continue;case'5':this['setCapabilities']();continue;}break;}}const _0xad9292=super[_0x238d26(0x1a9)]();return _0xad9292[_0x238d26(0x18a)]['then'](_0x5ccbea=>{const _0x17937d=_0x238d26;try{const _0x45d61d=_0x5ccbea['caps_'][_0x17937d(0x1db)](_0xae8ee5[_0x17937d(0x1e3)]);_0x45d61d?(logger['debug'](_0x17937d(0x192)+_0x45d61d),hubAllocator[_0x17937d(0x1e8)](_0x45d61d),helper[_0x17937d(0x1ab)](_0x45d61d)):logger['debug'](_0xae8ee5[_0x17937d(0x1b0)]);}catch(_0x118d2f){logger[_0x17937d(0x1a2)](_0x17937d(0x184)+_0x118d2f);}}),_0xad9292[_0x238d26(0x1c0)]=0x0,_0xad9292[_0x238d26(0x19e)]&&_0xad9292[_0x238d26(0x19e)](_0x9a3eb7=>{const _0xa1179c=_0x238d26,_0x2f615d={'FsqVy':function(_0x1571eb,_0x563032,_0xb416f8){const _0x2c060f=a27_0x5597;return _0x52607e[_0x2c060f(0x1cf)](_0x1571eb,_0x563032,_0xb416f8);}};_0x52607e[_0xa1179c(0x1a5)](overrideQuit,_0x9a3eb7,_0xad9292),_0x52607e[_0xa1179c(0x194)](overrideTakeScreenshot,_0x9a3eb7),helper[_0xa1179c(0x1ac)](_0x9a3eb7,_0xa2755),helper[_0xa1179c(0x17a)](_0x9a3eb7,_0xa2755),_0x9a3eb7[_0xa1179c(0x1c8)]=async()=>{const _0x591688=_0xa1179c;return await _0xae8ee5[_0x591688(0x182)](getAccessibilityResultsSummary,_0x9a3eb7,global);},_0x9a3eb7['getAccessibilityResults']=async()=>{return await _0x2f615d['FsqVy'](getAccessibilityResults,_0x9a3eb7,global);};}),_0xad9292[_0x238d26(0x1c8)]=async()=>{return await _0xae8ee5['ToTJy'](getAccessibilityResultsSummary,_0xad9292,global);},_0xad9292[_0x238d26(0x19a)]=async()=>{const _0x23611a=_0x238d26;return await _0xae8ee5[_0x23611a(0x182)](getAccessibilityResults,_0xad9292,global);},_0x52607e[_0x238d26(0x1d6)](overrideTakeScreenshot,_0xad9292),_0x52607e[_0x238d26(0x194)](overrideQuit,_0xad9292),helper[_0x238d26(0x1ac)](_0xad9292,_0xa2755),helper[_0x238d26(0x17a)](_0xad9292,_0xa2755),helper[_0x238d26(0x186)](global['__driversArray'])&&(global[_0x238d26(0x1c1)]=[]),helper['isUndefined'](global[_0x238d26(0x188)])&&(global[_0x238d26(0x188)]=[]),global[_0x238d26(0x1c1)]['push'](_0xad9292),global[_0x238d26(0x18b)]=_0xad9292,_0x52607e[_0x238d26(0x1c7)](global['__drivers'],undefined)&&global['__drivers'][_0x238d26(0x1b4)](_0xad9292),_0x227bd7&&helper[_0x238d26(0x186)](_0x227bd7[_0x238d26(0x18c)][_0x238d26(0x1c1)])&&(_0x227bd7[_0x238d26(0x18c)][_0x238d26(0x1c1)]=[]),_0x227bd7&&_0x52607e['vCnJN'](_0x227bd7[_0x238d26(0x18c)]['__drivers'],undefined)&&(_0x227bd7['global'][_0x238d26(0x188)][_0x238d26(0x1b4)](_0xad9292),_0x227bd7['global'][_0x238d26(0x1c1)]['push'](_0xad9292)),_0xad9292;}}return _0x1bc56f['originalBuilder']=_0x1bc56f[_0x85041c(0x1e2)],_0x1bc56f['Builder']=_0x305eac,_0x4e6194[_0x85041c(0x196)]=_0x45eb41,_0x1bc56f;};module[a27_0x2a9efe(0x1bc)][a27_0x2a9efe(0x1d9)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a28_0x20fa54=a28_0x4476;(function(_0x344dc5,_0x3ec5c5){const _0x13252b=a28_0x4476,_0x59214b=_0x344dc5();while(!![]){try{const _0x5a3d55=-parseInt(_0x13252b(0x164))/0x1+-parseInt(_0x13252b(0x158))/0x2*(-parseInt(_0x13252b(0x160))/0x3)+parseInt(_0x13252b(0x161))/0x4*(-parseInt(_0x13252b(0x15a))/0x5)+-parseInt(_0x13252b(0x165))/0x6*(-parseInt(_0x13252b(0x15c))/0x7)+-parseInt(_0x13252b(0x166))/0x8+parseInt(_0x13252b(0x15e))/0x9+parseInt(_0x13252b(0x15b))/0xa;if(_0x5a3d55===_0x3ec5c5)break;else _0x59214b['push'](_0x59214b['shift']());}catch(_0x4c6262){_0x59214b['push'](_0x59214b['shift']());}}}(a28_0x28ed,0xa68ba));function a28_0x4476(_0x601ea9,_0xe06d8e){const _0x28ed0f=a28_0x28ed();return a28_0x4476=function(_0x4476e4,_0x54f5e1){_0x4476e4=_0x4476e4-0x158;let _0xa8e4ca=_0x28ed0f[_0x4476e4];return _0xa8e4ca;},a28_0x4476(_0x601ea9,_0xe06d8e);}const requestSpy=require(a28_0x20fa54(0x167)),constants=require(a28_0x20fa54(0x162)),{addRequestSpy}=require(a28_0x20fa54(0x15f));function a28_0x28ed(){const _0x12d205=['5tCiLVb','9429880pbhAyp','939127pHsidm','timeout','11716524NERCEX','../../../helpers/test-observability/utils','33624zKkOfu','3571628EmMDTI','../../../bin/utils/constants','VxIer','1210064XNPbAY','42TutPhX','3818128nAcSHc','../../../helpers/request-spy','mochaHooks','14MGQAwG','restore'];a28_0x28ed=function(){return _0x12d205;};return a28_0x28ed();}exports[a28_0x20fa54(0x168)]={'beforeAll'(){const _0x382cd7=a28_0x20fa54,_0x40addf={'VxIer':function(_0x3e4944){return _0x3e4944();}},_0xc68548='browserstack internal helper hook';_0x40addf[_0x382cd7(0x163)](addRequestSpy);},'afterAll'(){const _0x17d506=a28_0x20fa54,_0x460c65='browserstack internal helper hook';this[_0x17d506(0x15d)](0xea60),requestSpy[_0x17d506(0x159)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x59cce1=a29_0x2a93;(function(_0x3ae847,_0x3d42ed){const _0x132e33=a29_0x2a93,_0x3770c3=_0x3ae847();while(!![]){try{const _0x5a38cc=-parseInt(_0x132e33(0x20c))/0x1+parseInt(_0x132e33(0x1fe))/0x2*(parseInt(_0x132e33(0x20f))/0x3)+-parseInt(_0x132e33(0x23a))/0x4+-parseInt(_0x132e33(0x218))/0x5*(parseInt(_0x132e33(0x204))/0x6)+parseInt(_0x132e33(0x241))/0x7*(-parseInt(_0x132e33(0x24d))/0x8)+parseInt(_0x132e33(0x247))/0x9*(-parseInt(_0x132e33(0x1f9))/0xa)+parseInt(_0x132e33(0x224))/0xb;if(_0x5a38cc===_0x3d42ed)break;else _0x3770c3['push'](_0x3770c3['shift']());}catch(_0x14a927){_0x3770c3['push'](_0x3770c3['shift']());}}}(a29_0x3213,0x2a6c3));function a29_0x3213(){const _0x127ebb=['pzFLZ','slice','vyKCV','getHookSkippedTests','15410890UpOErm','getHooksForTest','BMsMN','_beforeEach','browserstack','toJSON','uuYwx','generic','BpZAI','map_','emit','LZSHZ','hook:','kiEtx','../../../helpers/helper','zZOLA','pid','failed','tests','parent','string','XHZuE','627172LVfNgQ','wgIYE','AtyKD','toISOString','../../../helpers/testhub/utils','unknown_grid','syUox','2506WzdToF','hQpxy','hook','forEach','app','ueXzp','28071sHrlNL','keys','kFffa','../../utils/logPatcher','Itkpk','../../../../package.json','7112ZJXoFQ','Koavr','JEcFp','sendPlatformDetails','CDLxF','UdsKp','concat','_afterEach','passed','push','appium:app','Rcijd','1040AqcAxs','mapTestHooks','fromEntries','_beforeAll','hookAnalyticsId','33010PnincI','getTestEnv','TAkgA','state','split','getBrowserName','572532kbNzsM','QqCxt','pRXwn','lhtDZ','VccPu','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','../../../helpers/test-observability/utils','KESxX','240560YoFpCh','getPlatform','js-','18kfbKPj','__cloud_provider___','type','FoROz','bs:addPlatformDetails:','reduce','hvsXB','filter','getBrowserVersion','15oPGwDZ','HhPke','ApNJo','_afterAll','hEmdw','../../utils/logReportingAPI','automate','getCapabilities'];a29_0x3213=function(){return _0x127ebb;};return a29_0x3213();}const {v4:uuidv4}=require('uuid'),{name,version}=require(a29_0x59cce1(0x24c)),logPatcher=require(a29_0x59cce1(0x24a)),BSTestOpsPatcher=new logPatcher({}),logReportingAPI=require(a29_0x59cce1(0x21d)),BSTestOpsLogger=new logReportingAPI({}),{debug,isTestObservabilitySession,isInternalHook}=require(a29_0x59cce1(0x20a)),{consoleHolder}=require('../../../helpers/test-observability/constants'),{getPlatformVersion}=require(a29_0x59cce1(0x232)),{shouldProcessEventForTesthub}=require(a29_0x59cce1(0x23e));function a29_0x2a93(_0x101ebe,_0x3a0b89){const _0x3213b6=a29_0x3213();return a29_0x2a93=function(_0x2a93a2,_0x2c21a7){_0x2a93a2=_0x2a93a2-0x1f0;let _0x1449bc=_0x3213b6[_0x2a93a2];return _0x1449bc;},a29_0x2a93(_0x101ebe,_0x3a0b89);}console={},Object[a29_0x59cce1(0x248)](consoleHolder)['forEach'](_0x3182e5=>{console[_0x3182e5]=(..._0x4cca06)=>{BSTestOpsPatcher[_0x3182e5](..._0x4cca06);};}),exports[a29_0x59cce1(0x1ff)]=()=>{const _0x459d19=a29_0x59cce1,_0x1f8a18={'zZOLA':_0x459d19(0x22b),'KESxX':function(_0x2479ef){return _0x2479ef();}};return{'ci':_0x1f8a18[_0x459d19(0x233)],'key':_0x1f8a18[_0x459d19(0x20b)](uuidv4),'version':version,'collector':_0x459d19(0x20e)+name};},exports['getHookDetails']=_0x5029ea=>{const _0x472fc5=a29_0x59cce1,_0x19e5d5={};_0x19e5d5[_0x472fc5(0x215)]=function(_0x376223,_0x4df7bd){return _0x376223!==_0x4df7bd;},_0x19e5d5[_0x472fc5(0x205)]=_0x472fc5(0x238),_0x19e5d5[_0x472fc5(0x1f8)]=function(_0x193591,_0x52b38b){return _0x193591!==_0x52b38b;},_0x19e5d5[_0x472fc5(0x1f1)]=_0x472fc5(0x230),_0x19e5d5[_0x472fc5(0x249)]=function(_0x178e78,_0x40a5e5){return _0x178e78!==_0x40a5e5;},_0x19e5d5['uuYwx']=_0x472fc5(0x243);const _0x12abfa=_0x19e5d5;if(!_0x5029ea||_0x12abfa[_0x472fc5(0x215)](typeof _0x5029ea,_0x12abfa[_0x472fc5(0x205)]))return[null,null];if(_0x12abfa[_0x472fc5(0x1f8)](_0x5029ea['indexOf'](_0x12abfa[_0x472fc5(0x1f1)]),-0x1)){const _0x25842a=_0x5029ea[_0x472fc5(0x202)](_0x12abfa[_0x472fc5(0x1f1)]);return[_0x25842a[0x0][_0x472fc5(0x221)](0x0,-0x1)[_0x472fc5(0x202)]('\x22')[0x1],_0x25842a[0x1]['substring'](0x1)];}else{if(_0x12abfa[_0x472fc5(0x249)](_0x5029ea['indexOf'](_0x12abfa[_0x472fc5(0x22a)]),-0x1)){const _0x50a285=_0x5029ea[_0x472fc5(0x202)](_0x12abfa['uuYwx']);return[_0x50a285[0x0][_0x472fc5(0x221)](0x0,-0x1)['split']('\x22')[0x1],_0x5029ea];}}return[null,null];},exports['getHooksForTest']=_0x54e190=>{const _0x30f1cd=a29_0x59cce1,_0x736b02={'XHZuE':function(_0x8827fb,_0x380a0b){return _0x8827fb(_0x380a0b);},'ueXzp':_0x30f1cd(0x1fc),'BMsMN':_0x30f1cd(0x21b),'AtyKD':'_beforeEach','Aepiw':'_afterEach'};if(!_0x54e190||!_0x54e190[_0x30f1cd(0x237)])return[];const _0x178f07=[];return[_0x736b02[_0x30f1cd(0x246)],_0x736b02[_0x30f1cd(0x226)],_0x736b02[_0x30f1cd(0x23c)],_0x736b02['Aepiw']][_0x30f1cd(0x244)](_0x505981=>{const _0x460265=_0x30f1cd,_0x527c14=_0x54e190[_0x460265(0x237)][_0x505981]||[];_0x527c14['forEach'](_0x58975c=>{const _0x3ce25d=_0x460265;_0x58975c[_0x3ce25d(0x1fd)]&&!_0x736b02[_0x3ce25d(0x239)](isInternalHook,_0x58975c['fn'])&&_0x178f07[_0x3ce25d(0x1f6)](_0x58975c[_0x3ce25d(0x1fd)]);});}),[..._0x178f07,...exports[_0x30f1cd(0x225)](_0x54e190[_0x30f1cd(0x237)])];},exports[a29_0x59cce1(0x1fa)]=_0x572d51=>{const _0x20507f=a29_0x59cce1,_0x43e5ef={'pRXwn':function(_0x2e43ba){return _0x2e43ba();},'hEmdw':function(_0x393f15,_0x454d0b){return _0x393f15===_0x454d0b;},'Koavr':_0x20507f(0x1f4),'JEcFp':'_beforeAll','Itkpk':_0x20507f(0x21b),'FoROz':_0x20507f(0x227)};if(!_0x572d51||!_0x572d51['parent'])return;[_0x43e5ef[_0x20507f(0x24f)],_0x43e5ef[_0x20507f(0x24b)],_0x43e5ef[_0x20507f(0x212)],_0x43e5ef[_0x20507f(0x24e)]][_0x20507f(0x244)](_0x1b8ba9=>{const _0x45c80f=_0x20507f,_0x22e48a=_0x572d51[_0x45c80f(0x237)][_0x1b8ba9]||[];_0x22e48a[_0x45c80f(0x244)](_0x2c8b1c=>{const _0x40dc4e=_0x45c80f;if(!_0x2c8b1c['hookAnalyticsId'])_0x2c8b1c[_0x40dc4e(0x1fd)]=_0x43e5ef[_0x40dc4e(0x206)](uuidv4);else _0x2c8b1c['markedStatus']&&_0x43e5ef[_0x40dc4e(0x21c)](_0x1b8ba9,_0x43e5ef['Koavr'])&&(_0x2c8b1c['hookAnalyticsId']=_0x43e5ef[_0x40dc4e(0x206)](uuidv4),delete _0x2c8b1c['markedStatus']);});}),exports[_0x20507f(0x1fa)](_0x572d51[_0x20507f(0x237)]);},exports[a29_0x59cce1(0x1f0)]=async(_0x2f22d1,_0x17ae30)=>{const _0x4f53fe=a29_0x59cce1,_0x3a6fac={'wgIYE':function(_0xf028c){return _0xf028c();},'UdsKp':function(_0x512506,_0x4874e5){return _0x512506===_0x4874e5;},'HhPke':_0x4f53fe(0x228),'wCDSv':_0x4f53fe(0x1f7),'HDJle':_0x4f53fe(0x245),'vyKCV':'app-automate','syUox':_0x4f53fe(0x21e),'ApNJo':function(_0x38f35e,_0xb81612){return _0x38f35e(_0xb81612);},'LZSHZ':_0x4f53fe(0x23f),'TAkgA':'TEST_PLATFORM','lhtDZ':function(_0x1f79c9,_0x47ab72){return _0x1f79c9(_0x47ab72);}};try{if(!_0x3a6fac[_0x4f53fe(0x23b)](shouldProcessEventForTesthub))return;const _0x510c10=await _0x2f22d1[_0x4f53fe(0x21f)](),_0x4b5934=await _0x2f22d1['getSession'](),_0x7acbd5={},_0x266d35=Object[_0x4f53fe(0x1fb)](_0x4b5934['getCapabilities']()[_0x4f53fe(0x22d)]),_0x4f5143={'product':_0x3a6fac[_0x4f53fe(0x1f2)](global[_0x4f53fe(0x210)],_0x3a6fac['HhPke'])?_0x266d35[_0x3a6fac['wCDSv']]||_0x266d35[_0x3a6fac['HDJle']]?_0x3a6fac[_0x4f53fe(0x222)]:_0x3a6fac[_0x4f53fe(0x240)]:null,'capabilities':_0x266d35,'platform':_0x510c10[_0x4f53fe(0x20d)](),'platform_version':_0x3a6fac[_0x4f53fe(0x21a)](getPlatformVersion,_0x3a6fac[_0x4f53fe(0x1f2)](global[_0x4f53fe(0x210)],_0x3a6fac[_0x4f53fe(0x219)])),'browser':_0x510c10[_0x4f53fe(0x203)](),'browser_version':_0x510c10[_0x4f53fe(0x217)](),'session_id':_0x4b5934[_0x4f53fe(0x229)]()};global[_0x4f53fe(0x210)]?_0x7acbd5[global['__cloud_provider___']]=_0x4f5143:_0x7acbd5[_0x3a6fac[_0x4f53fe(0x22f)]]=_0x4f5143,process[_0x4f53fe(0x22e)](_0x4f53fe(0x213)+process[_0x4f53fe(0x234)],{'timestamp':new Date()[_0x4f53fe(0x23d)](),'level':null,'message':null,'kind':_0x3a6fac[_0x4f53fe(0x200)],'http_response':_0x7acbd5,'uuid':_0x17ae30});}catch(_0x4dacb2){_0x3a6fac[_0x4f53fe(0x207)](debug,_0x4f53fe(0x209)+_0x4dacb2);}},exports[a29_0x59cce1(0x223)]=_0x41c3c8=>{const _0x32c6ba=a29_0x59cce1,_0x4f44f2={};_0x4f44f2[_0x32c6ba(0x22c)]=function(_0x200c25,_0x12a9bc){return _0x200c25!==_0x12a9bc;},_0x4f44f2[_0x32c6ba(0x220)]=_0x32c6ba(0x243),_0x4f44f2[_0x32c6ba(0x242)]=function(_0x20e484,_0x9e8605){return _0x20e484!==_0x9e8605;},_0x4f44f2[_0x32c6ba(0x231)]=_0x32c6ba(0x1f5),_0x4f44f2[_0x32c6ba(0x208)]=_0x32c6ba(0x235);const _0xc7ff8=_0x4f44f2,_0x2ac532=_0x41c3c8['suites'][_0x32c6ba(0x214)]((_0x4af274,_0x27901d)=>{const _0x2a2cd1=_0x32c6ba,_0xfbb8cd=exports[_0x2a2cd1(0x223)](_0x27901d);return _0xfbb8cd&&(_0x4af274=_0x4af274[_0x2a2cd1(0x1f3)](_0xfbb8cd)),_0x4af274;},[]),_0xab4d1e=_0x41c3c8[_0x32c6ba(0x236)][_0x32c6ba(0x216)](_0x276d6c=>{const _0x5c1fb8=_0x32c6ba,_0xba1171=_0xc7ff8[_0x5c1fb8(0x22c)](_0x276d6c[_0x5c1fb8(0x211)],_0xc7ff8['pzFLZ'])&&!_0x276d6c['markedStatus']&&_0xc7ff8[_0x5c1fb8(0x242)](_0x276d6c[_0x5c1fb8(0x201)],_0xc7ff8[_0x5c1fb8(0x231)])&&_0xc7ff8[_0x5c1fb8(0x242)](_0x276d6c[_0x5c1fb8(0x201)],_0xc7ff8[_0x5c1fb8(0x208)])&&!_0x276d6c['pending'];return _0xba1171;});return _0xab4d1e[_0x32c6ba(0x1f3)](_0x2ac532);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a30_0xbfd3d9=a30_0x29a9;function a30_0x5204(){const _0x475c72=['executeAsyncScript','format','session_','IFYOx','xPLje','thJwtToken','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','__drivers','state','kijAC','__error_messages__','xeIdg','shouldScanTestForAccessibility','QdOBb','HNpSq','fODor','hwRGS','stopMonitoring','Failed\x20to\x20store\x20session\x20name:\x20','../../helpers/globals','testAnalyticsId','titlePath','err','message','Failed:\x20','app','__sessionFailed','failed','BROWSERSTACK_TESTHUB_JWT','4655536kvlZXw','https:','performScan','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','error','../../helpers/accessibility-automation/helper','sFgFU','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','isArray','485267omevdC','length','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','GwDju','hCkpT','BROWSERSTACK_TESTHUB_UUID','thTestRunUuid','EATWz','7EzjdOR','\x22}}','2725188zYZPiM','info','sessionNameSet__','../../helpers/accessibility-automation/scripts',',\x22level\x22:\x20\x22','KtJkO','zIPeG','stringify','../../helpers/test-observability/utils','getCurrentUrl','1663095OzPsFp','2302551LuFsCx','__skipSessionName','debug','10462mfNaDe','capabilities','timeout','driverCleanup','141wbtqCJ','777932kzwFYy','saveTestResults','EcvnU','initQuit','aeIES','\x20|\x20','quitCount_','SnITk','getGlobal','currentTest','then','jXgry','XfEmL','vaPvq','appium:app','jVSIO','mvJdc','ObservabilitySync:','MiCIv','join','RCcyu','bstackA11yShouldScan','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','uknHc','shift','dqMlE','CaelJ','ENV_VAR','isAccessibilityPlatform','zJvUN','../../helpers/percy/utils','wGIoR','../../helpers/testhub/utils','GaXjS','thBuildUuid','SHAZd','testcase','Passed','\x20-\x20','percyCaptureMode','KLmvA','edxyq','KuZkY','env','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','accessibilityScanStarted','Performing\x20scan\x20before\x20saving\x20results','browserstackSessionName','http:','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','../../helpers/helper','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','wQtII','vnUrg','.\x20Error\x20:','protocol','executeScript','../../helpers/performance-tester'];a30_0x5204=function(){return _0x475c72;};return a30_0x5204();}function a30_0x29a9(_0xc86235,_0x150926){const _0x5204c9=a30_0x5204();return a30_0x29a9=function(_0x29a954,_0x151209){_0x29a954=_0x29a954-0x9a;let _0x296c6e=_0x5204c9[_0x29a954];return _0x296c6e;},a30_0x29a9(_0xc86235,_0x150926);}(function(_0x15ba49,_0x49e769){const _0x1e7230=a30_0x29a9,_0x58f4ad=_0x15ba49();while(!![]){try{const _0x36c4f7=parseInt(_0x1e7230(0xd9))/0x1+parseInt(_0x1e7230(0xf1))/0x2*(parseInt(_0x1e7230(0xf5))/0x3)+-parseInt(_0x1e7230(0xf6))/0x4+-parseInt(_0x1e7230(0xed))/0x5+parseInt(_0x1e7230(0xe3))/0x6+-parseInt(_0x1e7230(0xe1))/0x7*(parseInt(_0x1e7230(0xd0))/0x8)+parseInt(_0x1e7230(0xee))/0x9;if(_0x36c4f7===_0x49e769)break;else _0x58f4ad['push'](_0x58f4ad['shift']());}catch(_0xdbeccc){_0x58f4ad['push'](_0x58f4ad['shift']());}}}(a30_0x5204,0x51155));const util=require('util'),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0xbfd3d9(0xd5)),{percyAutoCapture}=require(a30_0xbfd3d9(0x114)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a30_0xbfd3d9(0xab)),{isTestObservabilitySession}=require(a30_0xbfd3d9(0xeb)),PerformanceTester=require(a30_0xbfd3d9(0xb2)),scripts=require(a30_0xbfd3d9(0xe6)),globals=require(a30_0xbfd3d9(0xc6)),logger=require('../../helpers/logger')['winstonLogger'],{shouldProcessEventForTesthub}=require(a30_0xbfd3d9(0x116)),testHubConstants=require('../../helpers/testhub/constants');exports['mochaHooks']={'beforeAll'(){const _0x3ac053=a30_0xbfd3d9,_0xb7fa90={'xPLje':function(_0x2b09bd,_0x9665df,_0x28f6af,_0x2bd6b1){return _0x2b09bd(_0x9665df,_0x28f6af,_0x2bd6b1);},'GaXjS':_0x3ac053(0xce),'sFgFU':_0x3ac053(0xfb),'kijAC':function(_0x32a3bf,_0x58fa02,_0x12c479){return _0x32a3bf(_0x58fa02,_0x12c479);},'KLmvA':'passed','CaelJ':function(_0x40f5e6){return _0x40f5e6();},'TXWtP':function(_0x375c5d,_0x10e689,_0x414806){return _0x375c5d(_0x10e689,_0x414806);}};PerformanceTester['startMonitoring']();const _0x502529='browserstack internal helper hook';global[_0x3ac053(0xbd)]=[],global[_0x3ac053(0xcd)]=![],global[_0x3ac053(0xf4)]=async()=>{const _0x2c696=_0x3ac053;let _0x3a8ee1=![];try{await global['__drivers'][0x0][_0x2c696(0xb5)],_0x3a8ee1=!![],global[_0x2c696(0xcd)]?await _0xb7fa90[_0x2c696(0xb7)](markSessionStatus,global[_0x2c696(0xba)][0x0],_0xb7fa90[_0x2c696(0x9a)],global['__error_messages__'][_0x2c696(0x109)](_0xb7fa90[_0x2c696(0xd6)])):await _0xb7fa90[_0x2c696(0xbc)](markSessionStatus,global[_0x2c696(0xba)][0x0],_0xb7fa90[_0x2c696(0xa1)]);}catch(_0x5357da){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0x3a8ee1)try{try{_0xb7fa90[_0x2c696(0x110)](shouldProcessEventForTesthub)&&(global[_0x2c696(0xba)][0x0]&&await _0xb7fa90['TXWtP'](sendPlatformDetails,global['__drivers'][0x0],this[_0x2c696(0xff)]?this[_0x2c696(0xff)]['testAnalyticsId']:null));}catch{}await global[_0x2c696(0xba)][0x0][_0x2c696(0xf9)]();}catch(_0xe106ee){}};},'beforeEach'(_0x214c6d){const _0x3e2d41=a30_0xbfd3d9,_0x1fb891={'XfEmL':function(_0x292e80,_0x153216){return _0x292e80>_0x153216;},'IFYOx':function(_0x18ef96,_0x4505e5){return _0x18ef96>_0x4505e5;},'SnITk':_0x3e2d41(0x9f),'KtJkO':function(_0x5e7292,_0x541a4c,_0x4c0d25){return _0x5e7292(_0x541a4c,_0x4c0d25);},'uknHc':_0x3e2d41(0x10b),'GwDju':function(_0x52c5bd){return _0x52c5bd();},'QdOBb':function(_0xcd5a91,_0x2bf5ac){return _0xcd5a91>_0x2bf5ac;},'zJvUN':_0x3e2d41(0x112),'wGIoR':function(_0x1bcff0,_0x13aacf){return _0x1bcff0===_0x13aacf;},'pueWC':_0x3e2d41(0xa9),'QgZnn':_0x3e2d41(0xd1),'MiCIv':_0x3e2d41(0x10c),'vaPvq':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0xf18db=>{const _0x5646ac=_0x3e2d41,_0x2b4cb7='browserstack internal helper hook';let _0x5d2638=!![];try{_0x1fb891[_0x5646ac(0x102)](global[_0x5646ac(0xba)][_0x5646ac(0xda)],0x1)&&(await global[_0x5646ac(0xf4)](),global[_0x5646ac(0xba)][_0x5646ac(0x10e)]()),_0x1fb891[_0x5646ac(0xb6)](global[_0x5646ac(0xba)][0x0][_0x5646ac(0xfc)],0x0)&&(_0x5d2638=![],await global[_0x5646ac(0xf4)]());}catch{}try{Array[_0x5646ac(0xd8)](global[_0x5646ac(0xba)])&&global['__drivers'][0x0]&&(global[_0x5646ac(0xba)][0x0]['browserstackSessionName']=this[_0x5646ac(0xff)][_0x5646ac(0xc8)]()[_0x5646ac(0x109)](_0x1fb891[_0x5646ac(0xfd)])),global[_0x5646ac(0xa8)]=this[_0x5646ac(0xff)][_0x5646ac(0xc8)]()[_0x5646ac(0x109)](_0x1fb891[_0x5646ac(0xfd)]);}catch(_0x4b253d){logger[_0x5646ac(0xf0)](_0x5646ac(0xc5)+_0x4b253d);}this['currentTest'][_0x5646ac(0xbf)]=_0x1fb891[_0x5646ac(0xe8)](shouldScanTestForAccessibility,this[_0x5646ac(0xff)][_0x5646ac(0xc8)](),!![]),globals['setGlobal'](_0x1fb891[_0x5646ac(0x10d)],this[_0x5646ac(0xff)]['shouldScanTestForAccessibility']),this[_0x5646ac(0xff)]['accessibilityScanStarted']=!![];if(_0x1fb891['GwDju'](isAccessibilityAutomationSession)&&_0x5d2638&&Array[_0x5646ac(0xd8)](global[_0x5646ac(0xba)])&&_0x1fb891[_0x5646ac(0xc0)](global[_0x5646ac(0xba)]['length'],0x0)&&globals[_0x5646ac(0xfe)](_0x1fb891[_0x5646ac(0x113)]))try{const _0x1ea6bd=await global[_0x5646ac(0xba)][0x0][_0x5646ac(0xb5)];if(_0x1ea6bd){let _0x2137be=!![];const _0x186f53=await global[_0x5646ac(0xba)][0x0][_0x5646ac(0xec)]();let _0x432295;try{_0x432295=new URL(_0x186f53);}catch(_0x4e94a6){_0x2137be=![];}_0x2137be=_0x1fb891[_0x5646ac(0x115)](_0x432295[_0x5646ac(0xb0)],_0x1fb891['pueWC'])||_0x1fb891[_0x5646ac(0x115)](_0x432295[_0x5646ac(0xb0)],_0x1fb891['QgZnn']),_0x2137be&&(this['currentTest'][_0x5646ac(0xbf)]&&logger[_0x5646ac(0xe4)](_0x1fb891[_0x5646ac(0x108)])),this[_0x5646ac(0xff)][_0x5646ac(0xa6)]=this[_0x5646ac(0xff)][_0x5646ac(0xbf)],this[_0x5646ac(0xff)][_0x5646ac(0xbf)]&&logger[_0x5646ac(0xe4)](_0x1fb891[_0x5646ac(0x103)]);}}catch(_0x1175f2){logger[_0x5646ac(0xd4)](_0x5646ac(0xaa)+util[_0x5646ac(0xb4)](_0x1175f2));}_0x1fb891[_0x5646ac(0xdc)](_0xf18db);})[_0x3e2d41(0x100)](_0x214c6d);},'afterEach'(_0xca57ea){const _0x316293=a30_0xbfd3d9,_0x42592b={'EATWz':function(_0x315b52,_0x51b0d5){return _0x315b52>_0x51b0d5;},'EcvnU':function(_0x21f63f,_0xc30647){return _0x21f63f===_0xc30647;},'ZlqhF':_0x316293(0x9d),'KuZkY':function(_0x5c6b9d,_0x12b0c3){return _0x5c6b9d>_0x12b0c3;},'edxyq':_0x316293(0x104),'jVSIO':function(_0x340641,_0x56179a,_0x80bf85,_0x45e4e9){return _0x340641(_0x56179a,_0x80bf85,_0x45e4e9);},'hwRGS':_0x316293(0x9f),'zIPeG':function(_0x6fc33a,_0x3ab237){return _0x6fc33a!==_0x3ab237;},'MLwqt':'passed','aeIES':function(_0x1c9390,_0x484547,_0x1c0256){return _0x1c9390(_0x484547,_0x1c0256);},'wQtII':function(_0x4a1afe,_0x52c072){return _0x4a1afe+_0x52c072;},'hCkpT':_0x316293(0xcb),'jXgry':_0x316293(0xd4),'zXBHh':_0x316293(0x9e),'zfBEC':_0x316293(0xe4),'YhPJI':_0x316293(0x112),'fODor':_0x316293(0x10b),'mvJdc':_0x316293(0xd7),'xeIdg':_0x316293(0xa7),'SHAZd':_0x316293(0xac),'RCcyu':function(_0x254929){return _0x254929();},'LHZZQ':function(_0x5a75db,_0x1c578c,_0x2bf860){return _0x5a75db(_0x1c578c,_0x2bf860);},'vnUrg':_0x316293(0xf0),'dqMlE':function(_0x27b960,_0x1131ca){return _0x27b960>_0x1131ca;}},_0x39a84e='browserstack internal helper hook';this[_0x316293(0xf3)](0xfde8);const _0x4a3e85=async(_0x295876,_0x35baf0)=>{const _0x3d4e2e=_0x316293;await global['__drivers'][0x0][_0x3d4e2e(0xb1)](_0x3d4e2e(0xa5)+_0x295876+_0x3d4e2e(0xe7)+_0x35baf0+_0x3d4e2e(0xe2));};new Promise(async _0x23c8d0=>{const _0x4a0290=_0x316293;try{_0x42592b[_0x4a0290(0xe0)](global['__drivers'][_0x4a0290(0xda)],0x1)&&(await global[_0x4a0290(0xf4)](),global[_0x4a0290(0xba)][_0x4a0290(0x10e)](),global[_0x4a0290(0xbd)]=[],global['__sessionFailed']=![]);try{if(global['percy']&&_0x42592b[_0x4a0290(0xf8)](global[_0x4a0290(0xa0)],_0x42592b['ZlqhF'])&&global[_0x4a0290(0xba)][0x0]){const _0x248011=_0x42592b[_0x4a0290(0xa3)](global['capabilities']['length'],0x0)?!!global[_0x4a0290(0xf2)][0x0][_0x4a0290(0xcc)]||!!global['capabilities'][0x0][_0x42592b[_0x4a0290(0xa2)]]:![],_0xdfda72={};_0xdfda72[_0x4a0290(0xcc)]=_0x248011,await _0x42592b[_0x4a0290(0x105)](percyAutoCapture,global[_0x4a0290(0xba)][0x0],_0x42592b['ZlqhF'],_0xdfda72);}}catch(_0x10ca64){}!global[_0x4a0290(0xef)]&&(await global[_0x4a0290(0xba)][0x0]['executeScript'](_0x4a0290(0xd3)+JSON[_0x4a0290(0xea)](this[_0x4a0290(0xff)][_0x4a0290(0xc8)]()[_0x4a0290(0x109)](_0x42592b[_0x4a0290(0xc3)]))+'}}'),global[_0x4a0290(0xba)][0x0][_0x4a0290(0xe5)]=!![]);const _0x46cdff=_0x42592b[_0x4a0290(0xe9)](this[_0x4a0290(0xff)][_0x4a0290(0xbb)],_0x42592b['MLwqt']);_0x46cdff?(global['__sessionFailed']=!![],global[_0x4a0290(0xbd)]['push'](this['currentTest'][_0x4a0290(0xc9)]['message']),await _0x42592b[_0x4a0290(0xfa)](_0x4a3e85,JSON[_0x4a0290(0xea)](_0x42592b[_0x4a0290(0xad)](_0x42592b[_0x4a0290(0xdd)],this[_0x4a0290(0xff)][_0x4a0290(0xc9)][_0x4a0290(0xca)])),_0x42592b[_0x4a0290(0x101)])):await _0x42592b[_0x4a0290(0xfa)](_0x4a3e85,JSON[_0x4a0290(0xea)](_0x42592b['zXBHh']),_0x42592b['zfBEC']);}catch(_0x43a9b8){}try{if(this[_0x4a0290(0xff)][_0x4a0290(0xa6)]&&globals[_0x4a0290(0xfe)](_0x42592b['YhPJI'])&&globals[_0x4a0290(0xfe)](_0x42592b[_0x4a0290(0xc2)])){logger[_0x4a0290(0xe4)](_0x42592b[_0x4a0290(0x106)]);const _0x4019d0={};_0x4019d0[_0x4a0290(0xdf)]=this[_0x4a0290(0xff)][_0x4a0290(0xc7)],_0x4019d0[_0x4a0290(0x9b)]=process[_0x4a0290(0xa4)][testHubConstants[_0x4a0290(0x111)][_0x4a0290(0xde)]],_0x4019d0[_0x4a0290(0xb8)]=process['env'][testHubConstants['ENV_VAR'][_0x4a0290(0xcf)]];const _0x16715d=_0x4019d0;logger['debug'](_0x4a0290(0xdb)+JSON['stringify'](_0x16715d)),logger[_0x4a0290(0xf0)](_0x42592b[_0x4a0290(0xbe)]),logger['debug'](util[_0x4a0290(0xb4)](await global[_0x4a0290(0xba)][0x0][_0x4a0290(0xb3)](scripts[_0x4a0290(0xd2)],{'method':global[_0x4a0290(0xa8)]}))),await global[_0x4a0290(0xba)][0x0][_0x4a0290(0xb3)](scripts[_0x4a0290(0xf7)],_0x16715d),logger[_0x4a0290(0xe4)](_0x42592b[_0x4a0290(0x9c)]);}}catch(_0x48169f){logger[_0x4a0290(0xd4)](_0x4a0290(0xb9)+this['currentTest']['titlePath']()+_0x4a0290(0xaf),_0x48169f);}try{try{if(_0x42592b['RCcyu'](shouldProcessEventForTesthub)){global[_0x4a0290(0xba)][0x0]&&await _0x42592b[_0x4a0290(0xfa)](sendPlatformDetails,global[_0x4a0290(0xba)][0x0],this[_0x4a0290(0xff)]?this[_0x4a0290(0xff)]['testAnalyticsId']:null);if(_0x42592b[_0x4a0290(0x10a)](isBrowserstackInfra)){const _0x19704e=_0x4a0290(0x107)+Date['now']();await _0x42592b['LHZZQ'](_0x4a3e85,JSON[_0x4a0290(0xea)](_0x19704e),_0x42592b[_0x4a0290(0xae)]);}}}catch{}_0x42592b[_0x4a0290(0x10f)](global['__drivers'][0x0]['quitCount_'],0x0)&&await global[_0x4a0290(0xf4)]();}catch(_0x2194fc){}_0x42592b[_0x4a0290(0x10a)](_0x23c8d0);})[_0x316293(0x100)](()=>_0xca57ea());},'afterAll'(_0x241090){const _0x484f34=a30_0xbfd3d9,_0x5d51c5={'HNpSq':function(_0x402846){return _0x402846();}},_0x3c833d='browserstack internal helper hook';this[_0x484f34(0xf3)](0xfde8),new Promise(async _0x49d112=>{const _0x25a913=_0x484f34;PerformanceTester[_0x25a913(0xc4)](),await global['driverCleanup'](),_0x5d51c5[_0x25a913(0xc1)](_0x49d112);})[_0x484f34(0x100)](()=>_0x241090());}};
|
|
1
|
+
const a30_0x260c59=a30_0x478d;function a30_0x4252(){const _0x20fc63=['performScan','initQuit','getCurrentUrl','\x22}}','VRLor','TOEku','../../helpers/globals','Automate\x20test\x20case\x20execution\x20has\x20started.','then','push','QqsfH','../../helpers/logger','lmXOu','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','titlePath','toBea','BROWSERSTACK_TESTHUB_JWT','appium:app','JJKkj','RlhXk','OupcB','2080521ngNrid','ObservabilitySync:','Performing\x20scan\x20before\x20saving\x20results','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','message','winstonLogger','rjwks','./test-observability/mochaUtils','XZonL','1037200lQxmZS',',\x22level\x22:\x20\x22','executeScript','now','bHJXm','2035747oJwiyw','error','mochaHooks','startMonitoring','\x20-\x20','4bQfAyi','19662640huPVXO','../../helpers/percy/utils','quitCount_','debug','testAnalyticsId','FwQuR','eerSS','BbdqJ','EVute','saveTestResults','percy','state','browserstackSessionName','accessibilityScanStarted','failed','OGNQx','Failed\x20to\x20store\x20session\x20name:\x20','APYkg','163388IppXnr','__error_messages__','zkvDr','env','../../helpers/testhub/constants','format','testcase','Passed','capabilities','driverCleanup','join','RaMOE','ZTjoY','../../helpers/accessibility-automation/helper','hinEA','isAccessibilityPlatform','BROWSERSTACK_TESTHUB_UUID','__skipSessionName','__drivers','Failed:\x20','TmNNx','passed','ENV_VAR','percyCaptureMode','AxEqF','489297NUTgRl','KWBGi','../../helpers/testhub/utils','thBuildUuid','getGlobal','shouldScanTestForAccessibility','IzCeg','stringify','info','__sessionFailed','.\x20Error\x20:','MxtHI','4169094ILwmGi','DsHLf','length','sessionNameSet__','../../helpers/helper','https:','shift','err','gRtwb','currentTest','../../helpers/performance-tester','executeAsyncScript','stopMonitoring','app','isArray','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','EaHTk','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','qOAbv','session_'];a30_0x4252=function(){return _0x20fc63;};return a30_0x4252();}(function(_0x5c9c6a,_0x1e80e2){const _0x2cf1c4=a30_0x478d,_0x25136f=_0x5c9c6a();while(!![]){try{const _0x1a11fd=-parseInt(_0x2cf1c4(0x194))/0x1+-parseInt(_0x2cf1c4(0x17b))/0x2+-parseInt(_0x2cf1c4(0x1c9))/0x3+-parseInt(_0x2cf1c4(0x168))/0x4*(-parseInt(_0x2cf1c4(0x15e))/0x5)+-parseInt(_0x2cf1c4(0x1a0))/0x6+-parseInt(_0x2cf1c4(0x163))/0x7+parseInt(_0x2cf1c4(0x169))/0x8;if(_0x1a11fd===_0x1e80e2)break;else _0x25136f['push'](_0x25136f['shift']());}catch(_0x4db0ce){_0x25136f['push'](_0x25136f['shift']());}}}(a30_0x4252,0x6557e));function a30_0x478d(_0x24e500,_0x5785a0){const _0x425292=a30_0x4252();return a30_0x478d=function(_0x478d5b,_0x4d7976){_0x478d5b=_0x478d5b-0x15e;let _0x3c352f=_0x425292[_0x478d5b];return _0x3c352f;},a30_0x478d(_0x24e500,_0x5785a0);}const util=require('util'),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0x260c59(0x188)),{percyAutoCapture}=require(a30_0x260c59(0x16a)),{sendPlatformDetails}=require(a30_0x260c59(0x1d0)),{isBrowserstackInfra,markSessionStatus}=require(a30_0x260c59(0x1a4)),{isTestObservabilitySession}=require('../../helpers/test-observability/utils'),PerformanceTester=require(a30_0x260c59(0x1aa)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a30_0x260c59(0x1ba)),logger=require(a30_0x260c59(0x1bf))[a30_0x260c59(0x1ce)],{shouldProcessEventForTesthub}=require(a30_0x260c59(0x196)),testHubConstants=require(a30_0x260c59(0x17f));exports[a30_0x260c59(0x165)]={'beforeAll'(){const _0x2034ec=a30_0x260c59,_0x48714e={'AKElF':function(_0x1d57a2,_0x28a243,_0x25dc6e,_0x8096c8){return _0x1d57a2(_0x28a243,_0x25dc6e,_0x8096c8);},'RnYzR':_0x2034ec(0x177),'bHJXm':'\x20|\x20','AxEqF':function(_0x51e2aa,_0x53f5f5,_0x221c4a){return _0x51e2aa(_0x53f5f5,_0x221c4a);},'RaMOE':_0x2034ec(0x190),'nDaFW':function(_0x5ca133){return _0x5ca133();},'EccAx':function(_0x4cfb7b,_0x5e411b,_0x13ea84){return _0x4cfb7b(_0x5e411b,_0x13ea84);}};PerformanceTester[_0x2034ec(0x166)]();const _0x342e97='browserstack internal helper hook';global[_0x2034ec(0x17c)]=[],global[_0x2034ec(0x19d)]=![],global['driverCleanup']=async()=>{const _0x531185=_0x2034ec;let _0x2c5d88=![];try{await global[_0x531185(0x18d)][0x0][_0x531185(0x1b3)],_0x2c5d88=!![],global[_0x531185(0x19d)]?await _0x48714e['AKElF'](markSessionStatus,global[_0x531185(0x18d)][0x0],_0x48714e['RnYzR'],global['__error_messages__']['join'](_0x48714e[_0x531185(0x162)])):await _0x48714e[_0x531185(0x193)](markSessionStatus,global[_0x531185(0x18d)][0x0],_0x48714e[_0x531185(0x186)]);}catch(_0x551f54){}global[_0x531185(0x17c)]=[],global[_0x531185(0x19d)]=![];if(_0x2c5d88)try{try{_0x48714e['nDaFW'](shouldProcessEventForTesthub)&&(global[_0x531185(0x18d)][0x0]&&await _0x48714e['EccAx'](sendPlatformDetails,global[_0x531185(0x18d)][0x0],this[_0x531185(0x1a9)]?this[_0x531185(0x1a9)][_0x531185(0x16d)]:null));}catch{}await global[_0x531185(0x18d)][0x0][_0x531185(0x1b5)]();}catch(_0x79ac5e){}};},'beforeEach'(_0x394243){const _0x1b7103=a30_0x260c59,_0x936b3a={'DsHLf':function(_0x12b989,_0x4afa66){return _0x12b989>_0x4afa66;},'FwQuR':_0x1b7103(0x167),'cNbYQ':function(_0x32e95d,_0x5da3f5,_0x185d7e){return _0x32e95d(_0x5da3f5,_0x185d7e);},'EaHTk':'bstackA11yShouldScan','VRLor':function(_0x3d352d){return _0x3d352d();},'eerSS':'isAccessibilityPlatform','ksEOx':function(_0x547443,_0x560e02){return _0x547443===_0x560e02;},'BIrAf':'http:','XZonL':function(_0x528d52,_0x37855e){return _0x528d52===_0x37855e;},'lmXOu':_0x1b7103(0x1a5),'lIyxE':_0x1b7103(0x1cc),'ZTjoY':_0x1b7103(0x1bb)};new Promise(async _0x197890=>{const _0x23b22d=_0x1b7103,_0x4cd926='browserstack internal helper hook';let _0x446cc0=!![];try{_0x936b3a['DsHLf'](global[_0x23b22d(0x18d)][_0x23b22d(0x1a2)],0x1)&&(await global['driverCleanup'](),global[_0x23b22d(0x18d)][_0x23b22d(0x1a6)]()),_0x936b3a[_0x23b22d(0x1a1)](global['__drivers'][0x0][_0x23b22d(0x16b)],0x0)&&(_0x446cc0=![],await global['driverCleanup']());}catch{}try{Array['isArray'](global[_0x23b22d(0x18d)])&&global[_0x23b22d(0x18d)][0x0]&&(global[_0x23b22d(0x18d)][0x0][_0x23b22d(0x175)]=this['currentTest'][_0x23b22d(0x1c2)]()[_0x23b22d(0x185)](_0x936b3a[_0x23b22d(0x16e)])),global[_0x23b22d(0x175)]=this['currentTest'][_0x23b22d(0x1c2)]()[_0x23b22d(0x185)](_0x936b3a[_0x23b22d(0x16e)]);}catch(_0x47a691){logger[_0x23b22d(0x16c)](_0x23b22d(0x179)+_0x47a691);}this[_0x23b22d(0x1a9)]['shouldScanTestForAccessibility']=_0x936b3a['cNbYQ'](shouldScanTestForAccessibility,this['currentTest']['titlePath'](),!![]),globals['setGlobal'](_0x936b3a[_0x23b22d(0x1b0)],this[_0x23b22d(0x1a9)]['shouldScanTestForAccessibility']),this[_0x23b22d(0x1a9)]['accessibilityScanStarted']=!![];if(_0x936b3a[_0x23b22d(0x1b8)](isAccessibilityAutomationSession)&&_0x446cc0&&Array[_0x23b22d(0x1ae)](global[_0x23b22d(0x18d)])&&_0x936b3a[_0x23b22d(0x1a1)](global['__drivers'][_0x23b22d(0x1a2)],0x0)&&globals[_0x23b22d(0x198)](_0x936b3a[_0x23b22d(0x16f)]))try{const _0x5946fa=await global[_0x23b22d(0x18d)][0x0]['session_'];if(_0x5946fa){let _0xa311cd=!![];const _0x5afde6=await global[_0x23b22d(0x18d)][0x0][_0x23b22d(0x1b6)]();let _0x3503a6;try{_0x3503a6=new URL(_0x5afde6);}catch(_0x31ef62){_0xa311cd=![];}_0xa311cd=_0x936b3a['ksEOx'](_0x3503a6['protocol'],_0x936b3a['BIrAf'])||_0x936b3a[_0x23b22d(0x1d1)](_0x3503a6['protocol'],_0x936b3a[_0x23b22d(0x1c0)]),_0xa311cd&&(this[_0x23b22d(0x1a9)]['shouldScanTestForAccessibility']&&logger[_0x23b22d(0x19c)](_0x936b3a['lIyxE'])),this[_0x23b22d(0x1a9)][_0x23b22d(0x176)]=this['currentTest'][_0x23b22d(0x199)],this['currentTest'][_0x23b22d(0x199)]&&logger['info'](_0x936b3a[_0x23b22d(0x187)]);}}catch(_0x1fee70){logger[_0x23b22d(0x164)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x23b22d(0x180)](_0x1fee70));}_0x936b3a['VRLor'](_0x197890);})[_0x1b7103(0x1bc)](_0x394243);},'afterEach'(_0x3c5917){const _0x38ad9e=a30_0x260c59,_0x21ffb3={'zkvDr':function(_0x10f581,_0x50cbaf){return _0x10f581>_0x50cbaf;},'RlhXk':function(_0x374e6e,_0x44e02f){return _0x374e6e===_0x44e02f;},'TOEku':_0x38ad9e(0x181),'QiWeu':_0x38ad9e(0x1c5),'QqsfH':function(_0x3814cf,_0x254abd,_0x277a8d,_0x4ddb55){return _0x3814cf(_0x254abd,_0x277a8d,_0x4ddb55);},'SnAaV':_0x38ad9e(0x167),'TmNNx':function(_0x1a294d,_0x44967e){return _0x1a294d!==_0x44967e;},'ZGcDj':_0x38ad9e(0x190),'EVute':function(_0x2b9253,_0x1fa0b0,_0x4cee0d){return _0x2b9253(_0x1fa0b0,_0x4cee0d);},'KWBGi':function(_0x5c96c6,_0x201d8d){return _0x5c96c6+_0x201d8d;},'rjwks':_0x38ad9e(0x18e),'APYkg':_0x38ad9e(0x164),'JJKkj':_0x38ad9e(0x182),'lgARH':_0x38ad9e(0x19c),'gRtwb':_0x38ad9e(0x18a),'ltLvL':'bstackA11yShouldScan','BbdqJ':_0x38ad9e(0x1b1),'qOAbv':_0x38ad9e(0x1cb),'toBea':_0x38ad9e(0x1c1),'MxtHI':function(_0x2a55fc){return _0x2a55fc();},'cMPKc':function(_0x5a6187,_0x27ab56,_0x3bc49b){return _0x5a6187(_0x27ab56,_0x3bc49b);},'OGNQx':function(_0x167604){return _0x167604();},'hinEA':'debug','IzCeg':function(_0x55a898){return _0x55a898();}},_0x11a786='browserstack internal helper hook';this['timeout'](0xfde8);const _0xc4b5f5=async(_0xe55529,_0x207450)=>{const _0x22482a=_0x38ad9e;await global[_0x22482a(0x18d)][0x0][_0x22482a(0x160)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0xe55529+_0x22482a(0x15f)+_0x207450+_0x22482a(0x1b7));};new Promise(async _0x28eed8=>{const _0x46fb99=_0x38ad9e;try{_0x21ffb3['zkvDr'](global[_0x46fb99(0x18d)][_0x46fb99(0x1a2)],0x1)&&(await global[_0x46fb99(0x184)](),global[_0x46fb99(0x18d)]['shift'](),global[_0x46fb99(0x17c)]=[],global[_0x46fb99(0x19d)]=![]);try{if(global[_0x46fb99(0x173)]&&_0x21ffb3[_0x46fb99(0x1c7)](global[_0x46fb99(0x192)],_0x21ffb3[_0x46fb99(0x1b9)])&&global[_0x46fb99(0x18d)][0x0]){const _0x3c5d57=_0x21ffb3[_0x46fb99(0x17d)](global[_0x46fb99(0x183)][_0x46fb99(0x1a2)],0x0)?!!global[_0x46fb99(0x183)][0x0][_0x46fb99(0x1ad)]||!!global['capabilities'][0x0][_0x21ffb3['QiWeu']]:![],_0x48fca4={};_0x48fca4[_0x46fb99(0x1ad)]=_0x3c5d57,await _0x21ffb3[_0x46fb99(0x1be)](percyAutoCapture,global['__drivers'][0x0],_0x21ffb3[_0x46fb99(0x1b9)],_0x48fca4);}}catch(_0x3692d3){}!global[_0x46fb99(0x18c)]&&(await global[_0x46fb99(0x18d)][0x0][_0x46fb99(0x160)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x46fb99(0x19b)](this['currentTest']['titlePath']()[_0x46fb99(0x185)](_0x21ffb3['SnAaV']))+'}}'),global[_0x46fb99(0x18d)][0x0][_0x46fb99(0x1a3)]=!![]);const _0x410410=_0x21ffb3[_0x46fb99(0x18f)](this[_0x46fb99(0x1a9)][_0x46fb99(0x174)],_0x21ffb3['ZGcDj']);_0x410410?(global[_0x46fb99(0x19d)]=!![],global[_0x46fb99(0x17c)][_0x46fb99(0x1bd)](this['currentTest'][_0x46fb99(0x1a7)][_0x46fb99(0x1cd)]),await _0x21ffb3['EVute'](_0xc4b5f5,JSON[_0x46fb99(0x19b)](_0x21ffb3[_0x46fb99(0x195)](_0x21ffb3[_0x46fb99(0x1cf)],this[_0x46fb99(0x1a9)][_0x46fb99(0x1a7)]['message'])),_0x21ffb3[_0x46fb99(0x17a)])):await _0x21ffb3[_0x46fb99(0x171)](_0xc4b5f5,JSON[_0x46fb99(0x19b)](_0x21ffb3[_0x46fb99(0x1c6)]),_0x21ffb3['lgARH']);}catch(_0x4ddd78){}try{if(this[_0x46fb99(0x1a9)][_0x46fb99(0x176)]&&globals[_0x46fb99(0x198)](_0x21ffb3[_0x46fb99(0x1a8)])&&globals[_0x46fb99(0x198)](_0x21ffb3['ltLvL'])){logger['info'](_0x21ffb3[_0x46fb99(0x170)]);const _0x464ba9={};_0x464ba9['thTestRunUuid']=this['currentTest'][_0x46fb99(0x16d)],_0x464ba9[_0x46fb99(0x197)]=process[_0x46fb99(0x17e)][testHubConstants['ENV_VAR'][_0x46fb99(0x18b)]],_0x464ba9['thJwtToken']=process[_0x46fb99(0x17e)][testHubConstants[_0x46fb99(0x191)][_0x46fb99(0x1c4)]];const _0x1485ff=_0x464ba9;logger[_0x46fb99(0x16c)](_0x46fb99(0x1af)+JSON[_0x46fb99(0x19b)](_0x1485ff)),logger[_0x46fb99(0x16c)](_0x21ffb3[_0x46fb99(0x1b2)]),logger[_0x46fb99(0x16c)](util['format'](await global[_0x46fb99(0x18d)][0x0][_0x46fb99(0x1ab)](scripts[_0x46fb99(0x1b4)],{'method':global['browserstackSessionName']}))),await global[_0x46fb99(0x18d)][0x0][_0x46fb99(0x1ab)](scripts[_0x46fb99(0x172)],_0x1485ff),logger[_0x46fb99(0x19c)](_0x21ffb3[_0x46fb99(0x1c3)]);}}catch(_0xe2a304){logger[_0x46fb99(0x164)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x46fb99(0x1a9)][_0x46fb99(0x1c2)]()+_0x46fb99(0x19e),_0xe2a304);}try{try{if(_0x21ffb3[_0x46fb99(0x19f)](shouldProcessEventForTesthub)){global[_0x46fb99(0x18d)][0x0]&&await _0x21ffb3['cMPKc'](sendPlatformDetails,global[_0x46fb99(0x18d)][0x0],this[_0x46fb99(0x1a9)]?this[_0x46fb99(0x1a9)]['testAnalyticsId']:null);if(_0x21ffb3[_0x46fb99(0x178)](isBrowserstackInfra)){const _0x1c856b=_0x46fb99(0x1ca)+Date[_0x46fb99(0x161)]();await _0x21ffb3['EVute'](_0xc4b5f5,JSON[_0x46fb99(0x19b)](_0x1c856b),_0x21ffb3[_0x46fb99(0x189)]);}}}catch{}_0x21ffb3[_0x46fb99(0x17d)](global[_0x46fb99(0x18d)][0x0][_0x46fb99(0x16b)],0x0)&&await global[_0x46fb99(0x184)]();}catch(_0x5bdbec){}_0x21ffb3[_0x46fb99(0x19a)](_0x28eed8);})['then'](()=>_0x3c5917());},'afterAll'(_0x159ca8){const _0x17fbab={'OupcB':function(_0x34b4b5){return _0x34b4b5();}},_0x102cac='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0xf72faa=>{const _0x5b3547=a30_0x478d;PerformanceTester[_0x5b3547(0x1ac)](),await global[_0x5b3547(0x184)](),_0x17fbab[_0x5b3547(0x1c8)](_0xf72faa);})['then'](()=>_0x159ca8());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a31_0xbbfe06=a31_0x56fd;(function(_0x298491,_0x534ab6){const _0x22dca4=a31_0x56fd,_0x4db56f=_0x298491();while(!![]){try{const _0x5d6571=parseInt(_0x22dca4(0x14d))/0x1*(-parseInt(_0x22dca4(0x15f))/0x2)+parseInt(_0x22dca4(0x158))/0x3*(parseInt(_0x22dca4(0x134))/0x4)+parseInt(_0x22dca4(0x135))/0x5*(-parseInt(_0x22dca4(0x15b))/0x6)+parseInt(_0x22dca4(0x14c))/0x7*(-parseInt(_0x22dca4(0x13d))/0x8)+parseInt(_0x22dca4(0x13c))/0x9+-parseInt(_0x22dca4(0x139))/0xa*(parseInt(_0x22dca4(0x149))/0xb)+parseInt(_0x22dca4(0x130))/0xc*(parseInt(_0x22dca4(0x126))/0xd);if(_0x5d6571===_0x534ab6)break;else _0x4db56f['push'](_0x4db56f['shift']());}catch(_0x53b6f5){_0x4db56f['push'](_0x4db56f['shift']());}}}(a31_0x38dc,0x7530e));function a31_0x56fd(_0x24f8d5,_0x5eb37a){const _0x38dc2b=a31_0x38dc();return a31_0x56fd=function(_0x56fd72,_0x265317){_0x56fd72=_0x56fd72-0x115;let _0x222c89=_0x38dc2b[_0x56fd72];return _0x222c89;},a31_0x56fd(_0x24f8d5,_0x5eb37a);}const fs=require('fs'),path=require(a31_0xbbfe06(0x15d)),{spawn}=require(a31_0xbbfe06(0x141)),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a31_0xbbfe06(0x117)),helper=require(a31_0xbbfe06(0x145)),constants=require(a31_0xbbfe06(0x155)),getUserNightwatchConfigs=(_0x256538,_0x497ad2)=>{const _0x386d8a=a31_0xbbfe06,_0x16d070={'jqxCH':_0x386d8a(0x159),'zEsyE':_0x386d8a(0x148),'RAeXQ':function(_0x114e53,_0x4ec4cb){return _0x114e53(_0x4ec4cb);},'yAmQA':_0x386d8a(0x12a)};let _0x4320e9=null,_0x4f80a8={};const _0x8c9080=_0x497ad2[_0x386d8a(0x115)](_0x5e89ff=>_0x5e89ff===_0x386d8a(0x138));if(!helper[_0x386d8a(0x116)](_0x256538[_0x386d8a(0x151)])&&fs[_0x386d8a(0x119)](path[_0x386d8a(0x131)](process[_0x386d8a(0x11c)](),_0x256538[_0x386d8a(0x151)])))_0x4320e9=path[_0x386d8a(0x131)](process[_0x386d8a(0x11c)](),_0x256538[_0x386d8a(0x151)]),_0x497ad2[_0x386d8a(0x144)](_0x8c9080,0x2);else{if(fs[_0x386d8a(0x119)](path[_0x386d8a(0x131)](process[_0x386d8a(0x11c)](),_0x16d070[_0x386d8a(0x163)])))_0x4320e9=path[_0x386d8a(0x131)](process[_0x386d8a(0x11c)](),_0x16d070[_0x386d8a(0x163)]);else fs[_0x386d8a(0x119)](path[_0x386d8a(0x131)](process[_0x386d8a(0x11c)](),_0x16d070[_0x386d8a(0x14f)]))&&(_0x4320e9=path['join'](process['cwd'](),_0x16d070['zEsyE']));}return _0x4320e9?(logger[_0x386d8a(0x13e)](_0x386d8a(0x156)+_0x4320e9),_0x4f80a8=_0x16d070[_0x386d8a(0x12f)](require,_0x4320e9)):logger[_0x386d8a(0x13e)](_0x16d070['yAmQA']),_0x4f80a8;},removeExistingEnvs=_0x520f15=>{const _0x47fbed=a31_0xbbfe06,_0x320163={};_0x320163[_0x47fbed(0x123)]=function(_0x35ca46,_0x39f2da){return _0x35ca46>_0x39f2da;},_0x320163[_0x47fbed(0x11b)]=function(_0x309a46,_0x3eb7f3){return _0x309a46>_0x3eb7f3;};const _0x38921f=_0x320163;let _0xd35f0e=_0x520f15[_0x47fbed(0x115)](_0x2677dd=>_0x2677dd===_0x47fbed(0x12d));_0x38921f[_0x47fbed(0x123)](_0xd35f0e,-0x1)&&_0x520f15[_0x47fbed(0x144)](_0xd35f0e,0x2),_0xd35f0e=_0x520f15['findIndex'](_0x1351c1=>_0x1351c1==='-e'),_0x38921f[_0x47fbed(0x11b)](_0xd35f0e,-0x1)&&_0x520f15['splice'](_0xd35f0e,0x2);};function a31_0x38dc(){const _0x306166=['path','useW3C','926alLYWQ','getPlatformName','GHjJo','slice','jqxCH','push','mergeDeep','findIndex','isUndefined','../../helpers/BrowserStackSetup','IJEkt','existsSync','test_settings','ElGsx','cwd','platforms','nightwatch','start_process','zklHb','webdriver','trim','UFIbT','split','debug','42731oyGXrE','desiredCapabilities','selenium','xnIeJ','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','stringify','unlinkSync','--env','modifyBrowserStackW3CCaps','RAeXQ','7836SBCZLc','join','forEach','uIsJU','96WpRvUI','15tOnBPu','LwxgQ','modifyBrowserStackCaps','--config','20JNUCcL','exports','env','5123619tAynwp','72QPZzVJ','info','JlPKD','Deleting\x20','child_process','hub.browserstack.com','jwOez','splice','../../helpers/helper','map','pHfpg','nightwatch.json','2149081NsPesY','nightwatch.cmd','sDLoM','541919qcIfmS','1044qfvYtr','filter','zEsyE','writeFileSync','config','child\x20process\x20exited\x20with\x20code\x20','znOqc','JWgDc','../utils/constants','Getting\x20your\x20nightwatch\x20configs\x20from\x20','BQbeL','25224MOrtWg','nightwatch.conf.js','host','1733226vcoaPy','XPMQs'];a31_0x38dc=function(){return _0x306166;};return a31_0x38dc();}function run(_0x5030b6,_0x3f166f){const _0x2d70ed=a31_0xbbfe06,_0x2dd569={'XPMQs':_0x2d70ed(0x11e),'zklHb':function(_0x521f0e,_0xc83ca){return _0x521f0e+_0xc83ca;},'LwxgQ':_0x2d70ed(0x11a),'DnZDO':function(_0x38686d,_0x25f2f3,_0x27ab1c){return _0x38686d(_0x25f2f3,_0x27ab1c);},'xnIeJ':_0x2d70ed(0x142),'znOqc':'Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','uIsJU':function(_0x1913a5,_0x3be163){return _0x1913a5===_0x3be163;},'JlPKD':'nightwatch-browserstack.json','jwOez':function(_0x4d45c4,_0x5b2b41){return _0x4d45c4(_0x5b2b41);},'YcdJQ':function(_0x3be265,_0x3bc26f,_0x3fe64a,_0x4547f1){return _0x3be265(_0x3bc26f,_0x3fe64a,_0x4547f1);},'GHjJo':_0x2d70ed(0x14a),'pHfpg':'--config','NnVnB':'--env','sDLoM':'inherit','JWgDc':'close'},_0x24b8a3=new BrowserStackSetup(_0x5030b6);if(!_0x24b8a3[_0x2d70ed(0x151)])return;const _0x5ee0d4=_0x2dd569['DnZDO'](getUserNightwatchConfigs,_0x5030b6,_0x3f166f),_0x24caa5={};_0x24caa5[_0x2d70ed(0x11f)]=![];const _0x50b2ae={};_0x50b2ae[_0x2d70ed(0x15a)]=_0x2dd569[_0x2d70ed(0x129)],_0x50b2ae['port']=0x1bb;const _0x352bd6={};_0x352bd6[_0x2d70ed(0x121)]=_0x24caa5,_0x352bd6[_0x2d70ed(0x128)]=_0x50b2ae;const _0x4c5590=_0x352bd6;logger[_0x2d70ed(0x13e)](_0x2dd569[_0x2d70ed(0x153)]);const _0x1108e4={..._0x5ee0d4},_0x3005cd=_0x1108e4,_0x596b00=helper[_0x2d70ed(0x15e)](_0x24b8a3[_0x2d70ed(0x151)]),_0x39e06f=[];_0x24b8a3['config'][_0x2d70ed(0x11d)][_0x2d70ed(0x132)]((_0x38be89,_0x1513f6)=>{const _0x280d12=_0x2d70ed;_0x596b00?_0x39e06f[_0x280d12(0x164)](helper[_0x280d12(0x12e)](_0x24b8a3[_0x280d12(0x151)],_0x2dd569[_0x280d12(0x15c)],_0x1513f6)):_0x39e06f['push'](helper[_0x280d12(0x137)](_0x24b8a3[_0x280d12(0x151)],_0x2dd569[_0x280d12(0x15c)],_0x1513f6));});const _0x3495d5={},_0x1b7b92=[];_0x5030b6[_0x2d70ed(0x13b)]=_0x5030b6[_0x2d70ed(0x13b)]||_0x5030b6['e'];const _0x26d0cd=_0x5030b6[_0x2d70ed(0x13b)]?_0x5030b6[_0x2d70ed(0x13b)][_0x2d70ed(0x122)]()[_0x2d70ed(0x124)](',')[_0x2d70ed(0x146)](_0x2b4279=>_0x2b4279['trim']())[_0x2d70ed(0x14e)](_0x4cd6e1=>_0x4cd6e1!==''):[''];_0x2dd569[_0x2d70ed(0x133)](_0x26d0cd['length'],0x0)&&_0x26d0cd['push']('');_0x26d0cd[_0x2d70ed(0x132)](_0x1737e2=>{const _0x5705dc=_0x2d70ed,_0x5d43d1={'BQbeL':function(_0x4f7ec1,_0x45840e){const _0x4ae526=a31_0x56fd;return _0x2dd569[_0x4ae526(0x120)](_0x4f7ec1,_0x45840e);},'IJEkt':_0x2dd569[_0x5705dc(0x136)]};_0x39e06f[_0x5705dc(0x132)](_0xd0fe26=>{const _0x281134=_0x5705dc;let _0x5666db=_0x5d43d1[_0x281134(0x157)](helper[_0x281134(0x160)](_0xd0fe26,'_'),'_'+Date['now']());_0x1737e2&&(_0x5666db+='_'+_0x1737e2);if(_0x1737e2&&(!_0x5ee0d4[_0x5d43d1[_0x281134(0x118)]]||!_0x5ee0d4[_0x5d43d1[_0x281134(0x118)]][_0x1737e2]))return;const _0x4ced97={..._0x4c5590};_0x4ced97[_0x281134(0x127)]=_0xd0fe26;const _0x38c45d=_0x4ced97;_0x3495d5[_0x5666db]=_0x1737e2?helper[_0x281134(0x165)](_0x5ee0d4[_0x5d43d1[_0x281134(0x118)]][_0x1737e2],_0x38c45d):_0x38c45d,_0x1b7b92[_0x281134(0x164)](_0x5666db);});});!_0x3005cd['test_settings']&&(_0x3005cd[_0x2d70ed(0x11a)]={});_0x3005cd[_0x2d70ed(0x11a)]={..._0x3005cd[_0x2d70ed(0x11a)],..._0x3495d5};const _0xdc907a=path['join'](__dirname,_0x2dd569[_0x2d70ed(0x13f)]);fs[_0x2d70ed(0x150)](_0xdc907a,JSON[_0x2d70ed(0x12b)](_0x3005cd)),_0x2dd569[_0x2d70ed(0x143)](removeExistingEnvs,_0x3f166f);const _0x437060=_0x2dd569['YcdJQ'](spawn,/^win/['test'](process['platform'])?_0x2dd569[_0x2d70ed(0x161)]:_0x2dd569['XPMQs'],[_0x2dd569[_0x2d70ed(0x147)],_0xdc907a,..._0x3f166f[_0x2d70ed(0x162)](0x1),_0x2dd569['NnVnB'],_0x1b7b92[_0x2d70ed(0x131)](',')],{'stdio':_0x2dd569[_0x2d70ed(0x14b)]});_0x437060['on'](_0x2dd569[_0x2d70ed(0x154)],async _0x3cc95c=>{const _0x43d920=_0x2d70ed;logger[_0x43d920(0x125)](_0x43d920(0x152)+_0x3cc95c),logger[_0x43d920(0x13e)](_0x43d920(0x140)+_0xdc907a),fs[_0x43d920(0x12c)](_0xdc907a);});}module[a31_0xbbfe06(0x13a)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x5441(_0xed82c7,_0x53f091){const _0x5c2f75=a32_0x5c2f();return a32_0x5441=function(_0x5441e6,_0x3fefba){_0x5441e6=_0x5441e6-0x150;let _0x438e73=_0x5c2f75[_0x5441e6];return _0x438e73;},a32_0x5441(_0xed82c7,_0x53f091);}const a32_0x37bba5=a32_0x5441;(function(_0x26bef6,_0xf96f42){const _0x2ea88c=a32_0x5441,_0x1ab887=_0x26bef6();while(!![]){try{const _0x168052=parseInt(_0x2ea88c(0x156))/0x1+-parseInt(_0x2ea88c(0x19f))/0x2*(parseInt(_0x2ea88c(0x18e))/0x3)+-parseInt(_0x2ea88c(0x168))/0x4+-parseInt(_0x2ea88c(0x150))/0x5*(parseInt(_0x2ea88c(0x15a))/0x6)+-parseInt(_0x2ea88c(0x188))/0x7*(parseInt(_0x2ea88c(0x1ae))/0x8)+parseInt(_0x2ea88c(0x1b6))/0x9+parseInt(_0x2ea88c(0x18b))/0xa;if(_0x168052===_0xf96f42)break;else _0x1ab887['push'](_0x1ab887['shift']());}catch(_0x1ac721){_0x1ab887['push'](_0x1ab887['shift']());}}}(a32_0x5c2f,0x9cb64));function a32_0x5c2f(){const _0xbeaab9=['KJJcq','stringify','UkFhi','method','getAccessibilityResultsSummary','kVZuo','WebDriver','3546012cxAZyX','env','browser','warn','needsReview','malUd','BpiIS','accessibilityOptions.scannerProcessingTimeout','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','UmDar','wuPoz','error','util','accessibilityOptions.includeIssueType.needsReview','ruZfe','accessibilityOptions','connectOptions','bYNPv','Obzgw','../../helpers/accessibility-automation/scripts','OwVMe','wTiKU','URzwW','No\x20summaryResults\x20found.','winstonLogger','YDdTE','replace','No\x20accessibility\x20results\x20were\x20found.','includeIssueType','nZGoU','deviceName','processAccessibilityCaps','7FAlLfJ','debug','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','16641750gHhcFD','bstackSdkArgs','playwright-chromium','112848ZtMbqi','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','use','zwVsZ','BS_A11Y_JWT','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','VUPUN','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','accessibilityOptions.authToken','platformValidation','setAccessibilityCapabilities','accessibilityOptions.wcagVersion','zxOSS','mpHNk','currentTest','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','GCVli','34mmrlby','browserStackExecuteDriver','accessibilityPlatform','name','GFVvM','browserstack.accessibility','agqUt','SkJvt','../../helpers/helper','performScan','SaVEZ','constructor','latest','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','scannerVersion','1578072qjefkh','accessibilityOptions.includeIssueType.bestPractice','browserName','NjflI','scannerProcessingTimeout','bCScP','PmFnV','WLxEq','11540385cQXJbC','getAccessibilityResults','JMycV','browser_version','75NmTGcl','../../helpers/logger','QfBmZ','WNTwJ','ODDks','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','8171jshUaE','DrceS','DJFjP','parse','235794oKeSIs','browserStackEvaluate','wcagVersion','format','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','GpuRI','executeScript'];a32_0x5c2f=function(){return _0xbeaab9;};return a32_0x5c2f();}const util=require(a32_0x37bba5(0x174)),logger=require(a32_0x37bba5(0x151))[a32_0x37bba5(0x180)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a32_0x37bba5(0x1a7)),scripts=require(a32_0x37bba5(0x17b));exports[a32_0x37bba5(0x15b)]=async(_0x2e7f13,_0x1d1601,_0x888d6e={})=>{const _0x4de2bf=a32_0x37bba5,_0x30c031={};_0x30c031[_0x4de2bf(0x16d)]=_0x4de2bf(0x18c);const _0x19f1c3=_0x30c031;return await _0x2e7f13['evaluate']('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x1d1601[_0x4de2bf(0x182)](/arguments/g,_0x19f1c3[_0x4de2bf(0x16d)])+_0x4de2bf(0x18f)+JSON['stringify'](_0x888d6e)+')');},exports[a32_0x37bba5(0x1a0)]=async(_0x2451f8,_0x54b85a,_0x534d47={})=>{const _0x199c19=a32_0x37bba5,_0x134f25={};_0x134f25['GXrkq']=function(_0x3d4d22,_0x879f57){return _0x3d4d22===_0x879f57;},_0x134f25[_0x199c19(0x194)]=_0x199c19(0x167),_0x134f25[_0x199c19(0x19b)]=function(_0x42189a,_0x27fb7d){return _0x42189a===_0x27fb7d;},_0x134f25[_0x199c19(0x171)]='Playwright',_0x134f25['NjflI']=_0x199c19(0x18c);const _0x219acd=_0x134f25;if(_0x219acd['GXrkq'](_0x2451f8[_0x199c19(0x1aa)]['name'],_0x219acd[_0x199c19(0x194)]))return await _0x2451f8['executeAsyncScript'](_0x54b85a,_0x534d47);else{if(_0x219acd[_0x199c19(0x19b)](_0x2451f8[_0x199c19(0x1aa)][_0x199c19(0x1a2)],_0x219acd[_0x199c19(0x171)]))return await _0x2451f8[_0x199c19(0x160)](_0x199c19(0x18a)+_0x54b85a[_0x199c19(0x182)](/arguments/g,_0x219acd[_0x199c19(0x1b1)])+_0x199c19(0x193)+JSON[_0x199c19(0x162)](_0x534d47)+')');}},exports[a32_0x37bba5(0x198)]=async _0x178b58=>{const _0xcec967=a32_0x37bba5,_0x4b87be={};_0x4b87be[_0xcec967(0x1a9)]=_0xcec967(0x199),_0x4b87be[_0xcec967(0x157)]=_0xcec967(0x16f),_0x4b87be[_0xcec967(0x1a5)]=_0xcec967(0x1af),_0x4b87be['DJFjP']=_0xcec967(0x175),_0x4b87be[_0xcec967(0x16e)]=_0xcec967(0x196),_0x4b87be[_0xcec967(0x1a6)]='accessibilityOptions.scannerVersion';const _0x886375=_0x4b87be;_0x178b58[_0xcec967(0x177)]&&(_0x178b58[_0xcec967(0x177)][_0xcec967(0x15c)]&&(_0x178b58[_0x886375[_0xcec967(0x1a9)]]=_0x178b58[_0xcec967(0x177)][_0xcec967(0x15c)]),_0x178b58[_0xcec967(0x177)][_0xcec967(0x1b2)]&&(_0x178b58[_0x886375[_0xcec967(0x157)]]=_0x178b58[_0xcec967(0x177)][_0xcec967(0x1b2)]),_0x178b58[_0xcec967(0x177)]['includeIssueType']&&(_0x178b58[_0x886375['agqUt']]=_0x178b58[_0xcec967(0x177)][_0xcec967(0x184)]['bestPractice'],_0x178b58[_0x886375[_0xcec967(0x158)]]=_0x178b58[_0xcec967(0x177)]['includeIssueType'][_0xcec967(0x16c)]));const _0x227753=JSON[_0xcec967(0x159)](process[_0xcec967(0x169)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0xcec967(0x1ad)];_0x178b58[_0x886375[_0xcec967(0x16e)]]=process['env'][_0xcec967(0x192)],_0x178b58[_0x886375[_0xcec967(0x1a6)]]=_0x227753,delete _0x178b58[_0xcec967(0x177)];},exports[a32_0x37bba5(0x1b7)]=async _0x540b3c=>{const _0x5166cf=a32_0x37bba5,_0x4184f6={};_0x4184f6[_0x5166cf(0x17a)]=_0x5166cf(0x183),_0x4184f6[_0x5166cf(0x154)]=_0x5166cf(0x19d);const _0x577457=_0x4184f6;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x540b3c,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x540b3c,scripts.getResults);return res;}catch{return logger[_0x5166cf(0x173)](_0x577457['Obzgw']),[];}else return logger[_0x5166cf(0x16b)](_0x577457[_0x5166cf(0x154)]),[];},exports[a32_0x37bba5(0x1a8)]=async(_0x56ce24,_0x5f4a1='')=>{const _0x454eee=a32_0x37bba5;if(global['accessibilityPlatform']){const _0x52271a={};return _0x52271a[_0x454eee(0x164)]=_0x5f4a1,await exports[_0x454eee(0x15b)](_0x56ce24,scripts[_0x454eee(0x1a8)],_0x52271a);}},exports[a32_0x37bba5(0x165)]=async _0x57e5a8=>{const _0x11b01b=a32_0x37bba5,_0x923aa2={};_0x923aa2['PmFnV']=_0x11b01b(0x17f),_0x923aa2[_0x11b01b(0x191)]=_0x11b01b(0x15e);const _0x313177=_0x923aa2;if(global[_0x11b01b(0x1a1)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x57e5a8,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x57e5a8,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x11b01b(0x189)](_0x313177[_0x11b01b(0x1b4)]),{};}else return logger['warn'](_0x313177[_0x11b01b(0x191)]),{};},exports[a32_0x37bba5(0x197)]=async _0x15646a=>{const _0x2fb0df=a32_0x37bba5,_0x401a77={'bNrdr':function(_0x32b3e3,_0x4b10f5){return _0x32b3e3!==_0x4b10f5;},'URzwW':_0x2fb0df(0x155),'ruZfe':function(_0xf2d832,_0xe6b3c3){return _0xf2d832===_0xe6b3c3;},'bYNPv':'chrome','GpuRI':function(_0x1a0530,_0x3f1af7){return _0x1a0530===_0x3f1af7;},'BgyrF':_0x2fb0df(0x18d),'Fajgg':_0x2fb0df(0x1ac),'nZGoU':function(_0x84d5c5,_0x3e8dc5){return _0x84d5c5(_0x3e8dc5);},'zxOSS':function(_0x15c55b,_0x27cea8){return _0x15c55b===_0x27cea8;},'IizQQ':_0x2fb0df(0x1ab),'bCScP':function(_0x5d5ed7,_0x1dba27){return _0x5d5ed7>_0x1dba27;},'UkFhi':_0x2fb0df(0x195)};try{if(!_0x401a77['bNrdr'](_0x15646a[_0x2fb0df(0x186)],''))return logger[_0x2fb0df(0x16b)](_0x401a77[_0x2fb0df(0x17e)]),![];const _0x845e6d=_0x15646a[_0x2fb0df(0x16a)];if(!(_0x401a77[_0x2fb0df(0x176)](_0x845e6d,_0x401a77[_0x2fb0df(0x179)])||_0x401a77[_0x2fb0df(0x15f)](_0x845e6d,_0x401a77['BgyrF'])))return logger[_0x2fb0df(0x16b)](_0x401a77['Fajgg']),![];const _0x35b2b7=_0x401a77[_0x2fb0df(0x185)](parseInt,_0x15646a[_0x2fb0df(0x1b9)]);if(!(_0x401a77[_0x2fb0df(0x19a)](_0x35b2b7,_0x401a77['IizQQ'])||_0x401a77[_0x2fb0df(0x1b3)](_0x35b2b7,0x5e)))return logger[_0x2fb0df(0x16b)](_0x401a77[_0x2fb0df(0x163)]),![];}catch(_0x10aabc){logger[_0x2fb0df(0x189)](_0x2fb0df(0x170)+util[_0x2fb0df(0x15d)](_0x10aabc));}return!![];},exports[a32_0x37bba5(0x187)]=(_0x4e0cfb,_0x36de16,_0x12c3d8)=>{const _0x53702a=a32_0x37bba5,_0x49c205={'kVZuo':function(_0xaf342c){return _0xaf342c();},'GCVli':_0x53702a(0x1a4),'JEeRu':function(_0x48f735,_0x92c0ad){return _0x48f735===_0x92c0ad;},'JMycV':'chrome','IoTYL':function(_0x10e0c0,_0x24f289){return _0x10e0c0===_0x24f289;},'WNTwJ':_0x53702a(0x18d),'YDdTE':_0x53702a(0x1ac),'QfBmZ':function(_0x417d15,_0x308e6e){return _0x417d15===_0x308e6e;},'wTiKU':_0x53702a(0x1ab),'WLxEq':function(_0x38cc8e,_0x3588d3){return _0x38cc8e>_0x3588d3;},'wuPoz':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','KJJcq':function(_0x388e06,_0x5e857e){return _0x388e06(_0x5e857e);},'GFVvM':_0x53702a(0x155),'OwVMe':function(_0x5bf1dc,_0x2da056){return _0x5bf1dc+_0x2da056;},'DQxur':function(_0x570ec9,_0x261cc0){return _0x570ec9(_0x261cc0);}};try{if(_0x49c205[_0x53702a(0x166)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x4e0cfb[_0x49c205[_0x53702a(0x19e)]]&&(global[_0x53702a(0x1a1)]=![]);!(_0x49c205['JEeRu'](_0x4e0cfb[_0x53702a(0x1b0)],_0x49c205[_0x53702a(0x1b8)])||_0x49c205['IoTYL'](_0x4e0cfb['browserName'],_0x49c205[_0x53702a(0x153)]))&&(logger[_0x53702a(0x16b)](_0x49c205[_0x53702a(0x181)]),global[_0x53702a(0x1a1)]=![]);!(_0x49c205[_0x53702a(0x152)](_0x4e0cfb[_0x53702a(0x1b9)],_0x49c205[_0x53702a(0x17d)])||_0x49c205[_0x53702a(0x1b5)](_0x4e0cfb[_0x53702a(0x1b9)],0x5e))&&(logger[_0x53702a(0x16b)](_0x49c205[_0x53702a(0x172)]),global[_0x53702a(0x1a1)]=![]);!_0x49c205[_0x53702a(0x161)](isUndefined,_0x4e0cfb['deviceName'])&&(logger['warn'](_0x49c205[_0x53702a(0x1a3)]),global[_0x53702a(0x1a1)]=![]);if(!global[_0x53702a(0x1a1)]){_0x4e0cfb[_0x49c205['GCVli']]=![];const _0x52f040=_0x49c205[_0x53702a(0x17c)](_0x36de16,_0x49c205['DQxur'](encodeURIComponent,JSON[_0x53702a(0x162)](_0x4e0cfb)));_0x12c3d8&&(_0x12c3d8[_0x53702a(0x19c)]['testInfo']['project'][_0x53702a(0x190)][_0x53702a(0x178)]['wsEndpoint']=_0x52f040);}}}catch(_0x2ed7fc){logger[_0x53702a(0x189)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x53702a(0x15d)](_0x2ed7fc));}};
|
|
1
|
+
const a32_0x29e220=a32_0x2b3a;(function(_0x46f1e0,_0x3cc5ae){const _0x347586=a32_0x2b3a,_0x37bb8f=_0x46f1e0();while(!![]){try{const _0x560325=-parseInt(_0x347586(0x254))/0x1*(-parseInt(_0x347586(0x24c))/0x2)+-parseInt(_0x347586(0x227))/0x3*(-parseInt(_0x347586(0x241))/0x4)+-parseInt(_0x347586(0x231))/0x5*(parseInt(_0x347586(0x212))/0x6)+parseInt(_0x347586(0x203))/0x7+parseInt(_0x347586(0x215))/0x8+parseInt(_0x347586(0x245))/0x9*(parseInt(_0x347586(0x24e))/0xa)+-parseInt(_0x347586(0x204))/0xb*(parseInt(_0x347586(0x206))/0xc);if(_0x560325===_0x3cc5ae)break;else _0x37bb8f['push'](_0x37bb8f['shift']());}catch(_0x1db0c3){_0x37bb8f['push'](_0x37bb8f['shift']());}}}(a32_0x2e8b,0x44921));const util=require(a32_0x29e220(0x23d)),logger=require('../../helpers/logger')[a32_0x29e220(0x23c)],{isAccessibilityAutomationSession}=require(a32_0x29e220(0x219)),{isUndefined}=require(a32_0x29e220(0x220)),scripts=require(a32_0x29e220(0x230));exports[a32_0x29e220(0x253)]=async(_0x3df65b,_0x1c0216,_0xeae3ae={})=>{const _0x3694f0=a32_0x29e220,_0x57f384={};_0x57f384[_0x3694f0(0x23b)]='bstackSdkArgs';const _0xd662b0=_0x57f384;return await _0x3df65b['evaluate'](_0x3694f0(0x209)+_0x1c0216[_0x3694f0(0x237)](/arguments/g,_0xd662b0['FrDbl'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0xeae3ae)+')');},exports[a32_0x29e220(0x202)]=async(_0x42b4f3,_0x35da62,_0x4d9420={})=>{const _0x3a18d=a32_0x29e220,_0x4c0d40={};_0x4c0d40[_0x3a18d(0x216)]=function(_0x4fc856,_0x2475e0){return _0x4fc856===_0x2475e0;},_0x4c0d40[_0x3a18d(0x22c)]='WebDriver',_0x4c0d40[_0x3a18d(0x223)]=function(_0x4641a9,_0x33b571){return _0x4641a9===_0x33b571;},_0x4c0d40[_0x3a18d(0x224)]=_0x3a18d(0x21d),_0x4c0d40[_0x3a18d(0x20c)]='bstackSdkArgs';const _0x3df035=_0x4c0d40;if(_0x3df035[_0x3a18d(0x216)](_0x42b4f3[_0x3a18d(0x21b)][_0x3a18d(0x235)],_0x3df035['FkROG']))return await _0x42b4f3['executeAsyncScript'](_0x35da62,_0x4d9420);else{if(_0x3df035[_0x3a18d(0x223)](_0x42b4f3['constructor'][_0x3a18d(0x235)],_0x3df035['mGdfF']))return await _0x42b4f3[_0x3a18d(0x1fb)](_0x3a18d(0x24f)+_0x35da62[_0x3a18d(0x237)](/arguments/g,_0x3df035[_0x3a18d(0x20c)])+_0x3a18d(0x249)+JSON[_0x3a18d(0x225)](_0x4d9420)+')');}},exports[a32_0x29e220(0x232)]=async _0x183fda=>{const _0x3f93e6=a32_0x29e220,_0x26b1a0={};_0x26b1a0['yaAmd']='accessibilityOptions.wcagVersion',_0x26b1a0[_0x3f93e6(0x24b)]=_0x3f93e6(0x233),_0x26b1a0[_0x3f93e6(0x23a)]=_0x3f93e6(0x234),_0x26b1a0[_0x3f93e6(0x20f)]='accessibilityOptions.includeIssueType.needsReview',_0x26b1a0['HxIbD']=_0x3f93e6(0x20b),_0x26b1a0['vMcTf']=_0x3f93e6(0x217);const _0x44a217=_0x26b1a0;_0x183fda[_0x3f93e6(0x1f4)]&&(_0x183fda[_0x3f93e6(0x1f4)]['wcagVersion']&&(_0x183fda[_0x44a217[_0x3f93e6(0x23e)]]=_0x183fda[_0x3f93e6(0x1f4)]['wcagVersion']),_0x183fda[_0x3f93e6(0x1f4)][_0x3f93e6(0x20e)]&&(_0x183fda[_0x44a217[_0x3f93e6(0x24b)]]=_0x183fda[_0x3f93e6(0x1f4)]['scannerProcessingTimeout']),_0x183fda[_0x3f93e6(0x1f4)][_0x3f93e6(0x1f0)]&&(_0x183fda[_0x44a217[_0x3f93e6(0x23a)]]=_0x183fda[_0x3f93e6(0x1f4)][_0x3f93e6(0x1f0)][_0x3f93e6(0x1fe)],_0x183fda[_0x44a217[_0x3f93e6(0x20f)]]=_0x183fda['accessibilityOptions'][_0x3f93e6(0x1f0)]['needsReview']));const _0x49cfd9=JSON[_0x3f93e6(0x205)](process['env'][_0x3f93e6(0x222)])[_0x3f93e6(0x229)];_0x183fda[_0x44a217[_0x3f93e6(0x221)]]=process[_0x3f93e6(0x25a)][_0x3f93e6(0x1f9)],_0x183fda[_0x44a217[_0x3f93e6(0x23f)]]=_0x49cfd9,delete _0x183fda['accessibilityOptions'];},exports[a32_0x29e220(0x21f)]=async _0x3338a1=>{const _0x4b7e03=a32_0x29e220,_0x47bba9={};_0x47bba9[_0x4b7e03(0x22d)]=_0x4b7e03(0x1f6),_0x47bba9[_0x4b7e03(0x201)]=_0x4b7e03(0x1ff);const _0x346841=_0x47bba9;if(global[_0x4b7e03(0x248)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x3338a1,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x3338a1,scripts.getResults);return res;}catch{return logger[_0x4b7e03(0x21c)](_0x346841[_0x4b7e03(0x22d)]),[];}else return logger[_0x4b7e03(0x259)](_0x346841[_0x4b7e03(0x201)]),[];},exports[a32_0x29e220(0x200)]=async(_0x34087a,_0x10e70b='')=>{const _0x5c6d66=a32_0x29e220;if(global[_0x5c6d66(0x248)]){const _0x5f453c={};return _0x5f453c[_0x5c6d66(0x240)]=_0x10e70b,await exports[_0x5c6d66(0x253)](_0x34087a,scripts[_0x5c6d66(0x200)],_0x5f453c);}},exports[a32_0x29e220(0x218)]=async _0x36ec58=>{const _0xbe9470=a32_0x29e220,_0x447489={};_0x447489[_0xbe9470(0x1f2)]=_0xbe9470(0x213),_0x447489[_0xbe9470(0x255)]=_0xbe9470(0x22a);const _0x74fdc9=_0x447489;if(global[_0xbe9470(0x248)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x36ec58,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x36ec58,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0xbe9470(0x242)](_0x74fdc9[_0xbe9470(0x1f2)]),{};}else return logger[_0xbe9470(0x259)](_0x74fdc9[_0xbe9470(0x255)]),{};},exports[a32_0x29e220(0x214)]=async _0x4ea4db=>{const _0x5d8085=a32_0x29e220,_0x345abc={'sMPEB':function(_0x30ec63,_0x366718){return _0x30ec63!==_0x366718;},'onDvV':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','rokON':function(_0x429bfd,_0x4eb831){return _0x429bfd===_0x4eb831;},'VkSYi':_0x5d8085(0x250),'LJfEp':'playwright-chromium','QAVfj':_0x5d8085(0x251),'gkgDz':function(_0xe2a3a,_0x1dc325){return _0xe2a3a(_0x1dc325);},'bVNEH':_0x5d8085(0x239),'UDKpd':function(_0x52890b,_0x201d12){return _0x52890b>_0x201d12;},'DVOJN':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x345abc[_0x5d8085(0x207)](_0x4ea4db['deviceName'],''))return logger[_0x5d8085(0x259)](_0x345abc[_0x5d8085(0x1f8)]),![];const _0xf8142f=_0x4ea4db['browser'];if(!(_0x345abc[_0x5d8085(0x1ee)](_0xf8142f,_0x345abc[_0x5d8085(0x1f1)])||_0x345abc['rokON'](_0xf8142f,_0x345abc[_0x5d8085(0x208)])))return logger[_0x5d8085(0x259)](_0x345abc[_0x5d8085(0x228)]),![];const _0x3b0809=_0x345abc[_0x5d8085(0x246)](parseInt,_0x4ea4db[_0x5d8085(0x258)]);if(!(_0x345abc[_0x5d8085(0x1ee)](_0x3b0809,_0x345abc[_0x5d8085(0x21e)])||_0x345abc['UDKpd'](_0x3b0809,0x5e)))return logger[_0x5d8085(0x259)](_0x345abc[_0x5d8085(0x244)]),![];}catch(_0x310e7c){logger[_0x5d8085(0x242)](_0x5d8085(0x256)+util[_0x5d8085(0x24a)](_0x310e7c));}return!![];},exports[a32_0x29e220(0x1f5)]=(_0x406751,_0x506c5d,_0x57d640)=>{const _0x3a6eba=a32_0x29e220,_0x19aa4c={'xoruu':function(_0x46afe5){return _0x46afe5();},'lODXe':'browserstack.accessibility','ELYHL':function(_0x15cda6,_0x4b488e){return _0x15cda6===_0x4b488e;},'JabLJ':_0x3a6eba(0x250),'gBtGM':_0x3a6eba(0x20a),'ApjXc':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','WpmEH':function(_0xf2a156,_0xe0f527){return _0xf2a156===_0xe0f527;},'vKqwF':'latest','HxoFH':function(_0x598a80,_0x14676a){return _0x598a80>_0x14676a;},'BByDa':_0x3a6eba(0x1fa),'CFPNn':function(_0x40a439,_0x47bcb1){return _0x40a439(_0x47bcb1);},'PySMB':_0x3a6eba(0x211),'uMvgY':function(_0x1bcefc,_0x32f1b6){return _0x1bcefc+_0x32f1b6;},'QpmDS':function(_0xf8792,_0x411795){return _0xf8792(_0x411795);}};try{if(_0x19aa4c['xoruu'](isAccessibilityAutomationSession)){global[_0x3a6eba(0x248)]=!![];!_0x406751[_0x19aa4c[_0x3a6eba(0x226)]]&&(global[_0x3a6eba(0x248)]=![]);!(_0x19aa4c[_0x3a6eba(0x22e)](_0x406751['browserName'],_0x19aa4c[_0x3a6eba(0x236)])||_0x19aa4c[_0x3a6eba(0x22e)](_0x406751[_0x3a6eba(0x1ef)],_0x19aa4c[_0x3a6eba(0x252)]))&&(logger[_0x3a6eba(0x259)](_0x19aa4c[_0x3a6eba(0x21a)]),global[_0x3a6eba(0x248)]=![]);!(_0x19aa4c[_0x3a6eba(0x238)](_0x406751[_0x3a6eba(0x258)],_0x19aa4c['vKqwF'])||_0x19aa4c[_0x3a6eba(0x243)](_0x406751[_0x3a6eba(0x258)],0x5e))&&(logger[_0x3a6eba(0x259)](_0x19aa4c[_0x3a6eba(0x247)]),global[_0x3a6eba(0x248)]=![]);!_0x19aa4c[_0x3a6eba(0x257)](isUndefined,_0x406751[_0x3a6eba(0x210)])&&(logger[_0x3a6eba(0x259)](_0x19aa4c[_0x3a6eba(0x22f)]),global['accessibilityPlatform']=![]);if(!global['accessibilityPlatform']){_0x406751[_0x19aa4c['lODXe']]=![];const _0x394c19=_0x19aa4c[_0x3a6eba(0x22b)](_0x506c5d,_0x19aa4c[_0x3a6eba(0x1fc)](encodeURIComponent,JSON[_0x3a6eba(0x225)](_0x406751)));_0x57d640&&(_0x57d640['currentTest'][_0x3a6eba(0x1f7)][_0x3a6eba(0x1f3)][_0x3a6eba(0x20d)][_0x3a6eba(0x24d)][_0x3a6eba(0x1fd)]=_0x394c19);}}}catch(_0x575749){logger[_0x3a6eba(0x242)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x3a6eba(0x24a)](_0x575749));}};function a32_0x2b3a(_0x1db48c,_0x1e39ae){const _0x2e8b97=a32_0x2e8b();return a32_0x2b3a=function(_0x2b3a85,_0x4f06c1){_0x2b3a85=_0x2b3a85-0x1ee;let _0x44e645=_0x2e8b97[_0x2b3a85];return _0x44e645;},a32_0x2b3a(_0x1db48c,_0x1e39ae);}function a32_0x2e8b(){const _0x19f8a3=['accessibilityOptions.includeIssueType.bestPractice','name','JabLJ','replace','WpmEH','latest','iXDWl','FrDbl','winstonLogger','util','yaAmd','vMcTf','method','1488044ocUJvH','debug','HxoFH','DVOJN','75303kflktF','gkgDz','BByDa','accessibilityPlatform','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','format','dpcSN','2TMQZvG','connectOptions','100GOGchG','(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','chrome','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','gBtGM','browserStackEvaluate','1133kQVCec','GePKm','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','CFPNn','browser_version','warn','env','rokON','browserName','includeIssueType','VkSYi','xUvjW','project','accessibilityOptions','processAccessibilityCaps','No\x20accessibility\x20results\x20were\x20found.','testInfo','onDvV','BS_A11Y_JWT','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','executeScript','QpmDS','wsEndpoint','bestPractice','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','performScan','EEkYp','browserStackExecuteDriver','2215185RJZfIH','19921tTNYib','parse','1884kYdQDS','sMPEB','LJfEp','(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','playwright-chromium','accessibilityOptions.authToken','oyrAW','use','scannerProcessingTimeout','NViGl','deviceName','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','222btzWbo','No\x20summaryResults\x20found.','platformValidation','582320BledFm','CgCqw','accessibilityOptions.scannerVersion','getAccessibilityResultsSummary','../../helpers/accessibility-automation/helper','ApjXc','constructor','error','Playwright','bVNEH','getAccessibilityResults','../../helpers/helper','HxIbD','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','yLCXd','mGdfF','stringify','lODXe','3drECFg','QAVfj','scannerVersion','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','uMvgY','FkROG','KZIhQ','ELYHL','PySMB','../../helpers/accessibility-automation/scripts','37955ZXxFfI','setAccessibilityCapabilities','accessibilityOptions.scannerProcessingTimeout'];a32_0x2e8b=function(){return _0x19f8a3;};return a32_0x2e8b();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a33_0x8582(){const _0x157099=['includes','4556160RrQCrE','5|4|3|1|0|6|2|7','BROWSERSTACK_TEST_ACCESSIBILITY_YML','BROWSERSTACK_PW_CONFIG_DIR','NgGYw','paths','testDir','browserstackSetupConfig.json','JPqcx','EBIzU','../../helpers/test-observability/utils','isUndefined','env','LXkuC','info','markSDKSetupComplete','apply','hqhfI','fGdRW','launchBuild','pilPU','unlinkSync','../../helpers/testhub/constants','push','hCGFh','./globalSetup.js','respectGitIgnore','winstonLogger','DNEbx','AXGKq','has','CTRPP','startsWith','isFalse','../../helpers/test-observability/constants','GoWxS','stringify','OBSERVABILITY','DsByl','testObservability','length','Getting\x20your\x20playwright\x20config\x20from\x20','../../helpers/test-observability/error-handler','../../helpers/testhub/utils','getPackageType','ZtXVi','6710648CMtKTn','globalSetup','test','win32','skipSessionStatus','koCAV','66858255QHeBGR','UzUwa','skipSessionName','map','xDefa','bpnKO','BROWSERSTACK_AUTOMATION','logLevel','string','object','--disable-browserstack-automation','nHmBQ','testMatch','LNQzU','ujaXl','TczbW','indexOf','Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','ukmGT','kkpXw','Deleting\x20','EeEsN','BrowserStack\x20config\x20file\x20not\x20found.','ivTjT','OXZKo','inherit','writeFileSync','ZvCrQ','resolve','../../helpers/logger','YhIov','playwright-browserstack-sdk.config.cjs','config','testIgnore','get','./reporter/reporter.js','error','ihOIf','BqoLd','bbNOv','argv','Error\x20in\x20closing\x20playwright','Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','tbOae','yvLfB','--config','project','981671OvHhkW','parse','cliConfig','--config=','concat','slice','../../helpers/test-observability/sessionHandler','xYDNn','sxJLB','findIndex','../../helpers/helper','vZOXJ','tuIyx','BROWSERSTACK_RERUN','IvYkb','QnfMk','qBqnU','xqoWZ','false','existsSync','BROWSERSTACK_TEST_OBSERVABILITY','accessibilityOptions','SMsRl','Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','debug','8aCcrjl','szCqS','dirname','MODULE','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','--grep','pjmDj','gIiKr','util','BROWSERSTACK_SETUP_CONFIG_PATH','jiRUq','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','LYeZP','serializeToYamlString','../../helpers/testhub/testhubHandler','ZPxOt','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','wYTby','--disable-test-observability','Error\x20in\x20getting\x20funnel\x20data\x20results','iRVbg','BVLwZ','USER_CONFIG_DETAILS_PATH','250662pYTwlk','child_process','../../helpers/BrowserStackSetup','zhbQU','gYeiG','filter','TXPGx','503306ihvvDr','Xjfuy','isTrue','platform','exports','playwright','zsYSS','join','\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();','iJPJG','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','RfHyc','xUwjx','RIEXB','cTcCv','filterBrowserstackConfig','PLAYWRIGHT','./reporter/pwUtils','playwright-browserstack-sdk.config.js','readFileSync','null','errorMessage','trim','split','SDiJr','default','finalExecution','rezYb','205YlJKum','NzYGR','nestedKeyValue','requirePWModule','Jmjcb','cwd','accessibility','_internal','initialize','5748281SVOszq','../utils/constants','homedir','assign','MVSQQ','hGjBd','path','collectFilesForProject','gOroi','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file'];a33_0x8582=function(){return _0x157099;};return a33_0x8582();}const a33_0xff277f=a33_0x418b;(function(_0x1a138b,_0x4d6ef3){const _0x42fd7f=a33_0x418b,_0x36a9dd=_0x1a138b();while(!![]){try{const _0x246f5d=-parseInt(_0x42fd7f(0x218))/0x1+parseInt(_0x42fd7f(0x250))/0x2+-parseInt(_0x42fd7f(0x280))/0x3+-parseInt(_0x42fd7f(0x2ae))/0x4+-parseInt(_0x42fd7f(0x26c))/0x5*(parseInt(_0x42fd7f(0x249))/0x6)+-parseInt(_0x42fd7f(0x275))/0x7+-parseInt(_0x42fd7f(0x231))/0x8*(-parseInt(_0x42fd7f(0x1e9))/0x9);if(_0x246f5d===_0x4d6ef3)break;else _0x36a9dd['push'](_0x36a9dd['shift']());}catch(_0x152b1a){_0x36a9dd['push'](_0x36a9dd['shift']());}}}(a33_0x8582,0xec63f));function a33_0x418b(_0x17ce30,_0x5eb907){const _0x8582e0=a33_0x8582();return a33_0x418b=function(_0x418b78,_0x39d4d5){_0x418b78=_0x418b78-0x1e6;let _0x25ce4f=_0x8582e0[_0x418b78];return _0x25ce4f;},a33_0x418b(_0x17ce30,_0x5eb907);}const fs=require('fs'),path=require(a33_0xff277f(0x27b)),os=require('os'),{spawn}=require(a33_0xff277f(0x24a)),{format}=require(a33_0xff277f(0x23a)),logger=require(a33_0xff277f(0x206))[a33_0xff277f(0x29b)],{default:BrowserStackSetup}=require(a33_0xff277f(0x24b)),helper=require(a33_0xff277f(0x222)),constants=require(a33_0xff277f(0x276)),{FRAMEWORKS}=require(a33_0xff277f(0x2a2)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0xff277f(0x261)),{CrashReporter,o11yErrorHandler}=require(a33_0xff277f(0x2aa)),{getFrameworkVersion}=require(a33_0xff277f(0x28a)),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),SessionHandler=require(a33_0xff277f(0x21e)),TestHubHandler=require(a33_0xff277f(0x240)),testHubConstants=require(a33_0xff277f(0x296)),{shouldProcessEventForTesthub}=require(a33_0xff277f(0x2ab));async function requireOrImportDefaultObject(_0x32e6ba){const _0x4c61ab=a33_0xff277f,_0x8d8374={'BqoLd':function(_0x4977a5){return _0x4977a5();},'dMVQu':function(_0x59cbd1,_0x11397b){return _0x59cbd1(_0x11397b);},'vwkBG':function(_0x395b76,_0x13e306){return _0x395b76===_0x13e306;},'JPqcx':'object','tbOae':function(_0x1e5040,_0x1925a1){return _0x1e5040 in _0x1925a1;},'Xjfuy':_0x4c61ab(0x269)},{requireOrImport:_0x3d9e7d}=helper[_0x4c61ab(0x26f)]['apply'](null,_0x8d8374[_0x4c61ab(0x20f)](getTransformPath));let _0x2df7f3=await _0x8d8374['dMVQu'](_0x3d9e7d,_0x32e6ba);return _0x2df7f3&&_0x8d8374['vwkBG'](typeof _0x2df7f3,_0x8d8374[_0x4c61ab(0x288)])&&_0x8d8374[_0x4c61ab(0x214)](_0x8d8374[_0x4c61ab(0x251)],_0x2df7f3)&&(_0x2df7f3=_0x2df7f3[_0x8d8374[_0x4c61ab(0x251)]]),_0x2df7f3;}const getUserPlaywrightConfig=async(_0x2a12a5,_0x3c9f3f)=>{const _0x5bc4b2=a33_0xff277f,_0xe076fd={'ZPxOt':function(_0x4390ad){return _0x4390ad();},'BVLwZ':function(_0xe12d99,_0x23d1f5){return _0xe12d99(_0x23d1f5);},'qMHTj':function(_0x5a2c71,_0x3a3d04){return _0x5a2c71(_0x3a3d04);},'ujaXl':'resolvedConfigFile','MVSQQ':function(_0x1ecb8a,_0x3e2c91){return _0x1ecb8a(_0x3e2c91);},'LNQzU':function(_0x15321c,_0x1a29b3){return _0x15321c+_0x1a29b3;},'oeoUn':_0x5bc4b2(0x22f),'DNEbx':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','sxJLB':_0x5bc4b2(0x21b)},_0x14df9a=!helper[_0x5bc4b2(0x28b)](_0x2a12a5[_0x5bc4b2(0x209)]),_0x373942=_0x14df9a?path[_0x5bc4b2(0x205)](process['cwd'](),_0x2a12a5['config']):process['cwd'](),{resolveConfigFile:_0x30aee1,resolveConfigLocation:_0x12ed3c}=helper[_0x5bc4b2(0x26f)][_0x5bc4b2(0x290)](null,_0xe076fd[_0x5bc4b2(0x241)](getConfigLoaderPath)),_0x596c77=_0x30aee1?_0xe076fd[_0x5bc4b2(0x247)](_0x30aee1,_0x373942):helper[_0x5bc4b2(0x26e)](_0xe076fd['qMHTj'](_0x12ed3c,_0x373942),[_0xe076fd[_0x5bc4b2(0x1f7)]]);let _0xf0ee01={};if(_0x596c77){logger[_0x5bc4b2(0x28e)](_0x5bc4b2(0x2a9)+_0x596c77);try{_0xf0ee01=await _0xe076fd[_0x5bc4b2(0x279)](requireOrImportDefaultObject,_0x596c77);}catch(_0x556af6){return logger['error'](_0xe076fd[_0x5bc4b2(0x1f6)](_0xe076fd['oeoUn'],_0xe076fd['MVSQQ'](format,_0x556af6))),null;}}else logger[_0x5bc4b2(0x28e)](_0xe076fd[_0x5bc4b2(0x29c)]);if(_0x14df9a){const _0x2c090d=_0x3c9f3f[_0x5bc4b2(0x221)](_0x342d72=>_0x342d72==='--config'||_0x342d72==='-c'||_0x342d72[_0x5bc4b2(0x2a0)](_0x5bc4b2(0x21b)));_0x3c9f3f['splice'](_0x2c090d,_0x3c9f3f[_0x2c090d][_0x5bc4b2(0x2a0)](_0xe076fd[_0x5bc4b2(0x220)])?0x1:0x2);}const _0x2ba26a={};return _0x2ba26a['path']=_0x596c77,_0x2ba26a['config']=_0xf0ee01,_0x2ba26a;},setGlobalSetup=(_0x4ba346,_0x2533c0)=>{const _0x422ec0=a33_0xff277f,_0x2ca359={'gIiKr':_0x422ec0(0x2af),'EBIzU':_0x422ec0(0x27e),'hqhfI':function(_0x5460b0,_0x1196f5){return _0x5460b0+_0x1196f5;},'lTRgt':_0x422ec0(0x213),'JMvoJ':function(_0x2dd0ef,_0x59f4fd){return _0x2dd0ef(_0x59f4fd);},'iRVbg':_0x422ec0(0x299)};if(!_0x4ba346)return![];try{if(_0x4ba346[_0x422ec0(0x2af)]){let _0x5d0d85;const _0x1dc161=path[_0x422ec0(0x205)](_0x2533c0,_0x4ba346[_0x2ca359[_0x422ec0(0x239)]]);if(fs[_0x422ec0(0x22b)](_0x1dc161))_0x5d0d85=_0x1dc161;else{const _0x53e0e1={};_0x53e0e1[_0x422ec0(0x285)]=[_0x2533c0],_0x5d0d85=require[_0x422ec0(0x205)](_0x4ba346[_0x2ca359[_0x422ec0(0x239)]],_0x53e0e1);}if(!_0x5d0d85)throw new Error(_0x2ca359[_0x422ec0(0x289)]);process[_0x422ec0(0x28c)][_0x422ec0(0x25a)]=_0x5d0d85;}}catch(_0x13746c){logger[_0x422ec0(0x20d)](_0x2ca359[_0x422ec0(0x291)](_0x2ca359['lTRgt'],_0x2ca359['JMvoJ'](format,_0x13746c)));}return _0x4ba346[_0x422ec0(0x2af)]=require['resolve'](_0x2ca359[_0x422ec0(0x246)]),!![];},addReporter=_0x542477=>{const _0x5478fd=a33_0xff277f,_0x47f16b={};_0x47f16b['Jmjcb']=_0x5478fd(0x20c),_0x47f16b[_0x5478fd(0x27d)]='reporter',_0x47f16b[_0x5478fd(0x26d)]=function(_0x42c846,_0x3e4d62){return _0x42c846===_0x3e4d62;},_0x47f16b['TXPGx']=_0x5478fd(0x1f1),_0x47f16b[_0x5478fd(0x28d)]=_0x5478fd(0x1f2);const _0x2aeb8b=_0x47f16b,_0x252381=path[_0x5478fd(0x257)](__dirname,_0x2aeb8b[_0x5478fd(0x270)]),_0x4b5d89=[_0x252381];if(helper[_0x5478fd(0x28b)](_0x542477[_0x2aeb8b[_0x5478fd(0x27d)]]))_0x542477[_0x2aeb8b[_0x5478fd(0x27d)]]=[_0x4b5d89];else{if(_0x2aeb8b['NzYGR'](typeof _0x542477[_0x2aeb8b[_0x5478fd(0x27d)]],_0x2aeb8b[_0x5478fd(0x24f)]))_0x542477[_0x2aeb8b[_0x5478fd(0x27d)]]=[[_0x542477[_0x2aeb8b['gOroi']]],_0x4b5d89];else _0x2aeb8b[_0x5478fd(0x26d)](typeof _0x542477[_0x2aeb8b[_0x5478fd(0x27d)]],_0x2aeb8b[_0x5478fd(0x28d)])&&_0x542477[_0x2aeb8b['gOroi']][_0x5478fd(0x297)](_0x4b5d89);}},handleO11yRerun=_0x525781=>{const _0x5a486e=a33_0xff277f,_0xe7bf5d={};_0xe7bf5d[_0x5a486e(0x298)]=function(_0x785a32,_0xdab5fb){return _0x785a32!==_0xdab5fb;},_0xe7bf5d['ftpYI']=_0x5a486e(0x264),_0xe7bf5d[_0x5a486e(0x294)]=_0x5a486e(0x237);const _0x354e9a=_0xe7bf5d,_0x6c801a=helper[_0x5a486e(0x252)](process[_0x5a486e(0x28c)][_0x5a486e(0x225)]);if(_0x6c801a){const _0x29023b=process[_0x5a486e(0x28c)]['BROWSERSTACK_RERUN_TESTS'],_0x222fdd=[];if(_0x354e9a['hCGFh'](_0x29023b,_0x354e9a['ftpYI'])&&!helper['isUndefined'](_0x29023b)){_0x29023b[_0x5a486e(0x267)](',')[_0x5a486e(0x1ec)](_0x16b98c=>{const _0x405fd6=_0x5a486e;_0x222fdd[_0x405fd6(0x297)]('('+_0x16b98c[_0x405fd6(0x266)]()+')');});const _0x14a5a8='^'+_0x222fdd[_0x5a486e(0x257)]('|')+'$';_0x525781[_0x5a486e(0x297)](_0x354e9a[_0x5a486e(0x294)],_0x14a5a8);}}},spawnOriginalProcess=_0x422c21=>{const _0x1dfe1b=a33_0xff277f,_0x316180={'oKBGo':function(_0x5cc55a,_0x30f9eb,_0x1aacc0,_0x342ba6){return _0x5cc55a(_0x30f9eb,_0x1aacc0,_0x342ba6);},'ihOIf':'npx','vZOXJ':_0x1dfe1b(0x255),'AXGKq':function(_0x1c89fe,_0x327e36){return _0x1c89fe===_0x327e36;},'ekSwu':_0x1dfe1b(0x1e6),'jiRUq':_0x1dfe1b(0x202)};_0x316180['oKBGo'](spawn,_0x316180[_0x1dfe1b(0x20e)],[_0x316180[_0x1dfe1b(0x223)],..._0x422c21['slice'](0x1)],{'shell':_0x316180[_0x1dfe1b(0x29d)](process['platform'],_0x316180['ekSwu']),'stdio':_0x316180[_0x1dfe1b(0x23c)],'cwd':process[_0x1dfe1b(0x271)]()});},isTestCommand=(_0x560f26,_0x164057)=>{const _0x277d5f=a33_0xff277f,_0x23065c={};_0x23065c['CTRPP']=function(_0x520f80,_0x3cc992){return _0x520f80>_0x3cc992;},_0x23065c[_0x277d5f(0x200)]=function(_0x4698ac,_0x2f89f8){return _0x4698ac===_0x2f89f8;},_0x23065c[_0x277d5f(0x284)]=_0x277d5f(0x2b0);const _0x42819e=_0x23065c;if(_0x42819e[_0x277d5f(0x29f)](_0x164057[_0x277d5f(0x2a8)],0x1)&&_0x42819e['ivTjT'](_0x164057[0x1],_0x42819e[_0x277d5f(0x284)]))return!![];return![];},initO11yCrashReporter=(_0x40dac7,_0x3c9847)=>{const _0x4814bf=a33_0xff277f,_0x531c79={'TSRua':function(_0x566aa7,_0x3c318){return _0x566aa7(_0x3c318);}},_0x35bf98={'frameworkName':FRAMEWORKS[_0x4814bf(0x260)],'frameworkVersion':_0x531c79['TSRua'](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT'])};CrashReporter[_0x4814bf(0x274)](_0x35bf98,_0x40dac7,_0x3c9847);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x523390){const _0x40f963=a33_0xff277f,_0x502fb8={};_0x502fb8[_0x40f963(0x1f4)]=function(_0x3d2e4a,_0x57da64){return _0x3d2e4a>_0x57da64;},_0x502fb8[_0x40f963(0x256)]=function(_0x5eeb91,_0x3cf0e1){return _0x5eeb91===_0x3cf0e1;};const _0x253ccf=_0x502fb8;if(!_0x523390||_0x253ccf['nHmBQ'](_0x523390[_0x40f963(0x2a8)],0x1)&&_0x253ccf[_0x40f963(0x256)](_0x523390[0x0],null))return process[_0x40f963(0x28c)]['BROWSERSTACK_TEST_OBSERVABILITY']=![],![];return!![];});async function run(_0x249726,_0x5f3a17){const _0x5b0b02=a33_0xff277f,_0x5b5f14={'pjmDj':'.browserstack','RIEXB':'pw_result.json','IvYkb':function(_0xd88042,_0x4f0bf3){return _0xd88042+_0x4f0bf3;},'pNPzz':_0x5b0b02(0x245),'LYeZP':_0x5b0b02(0x281),'xDefa':function(_0x1fb2b7){return _0x1fb2b7();},'EeEsN':function(_0x155070,_0x62a55d){return _0x155070+_0x62a55d;},'zZfjF':_0x5b0b02(0x212),'RfHyc':_0x5b0b02(0x1f3),'TczbW':_0x5b0b02(0x22a),'rezYb':'--disable-test-observability','GoWxS':function(_0x3b93fa,_0x16dc62){return _0x3b93fa>=_0x16dc62;},'tuIyx':function(_0x1508de,_0x2d69f0){return _0x1508de+_0x2d69f0;},'MlXIv':'Error\x20in\x20deleting\x20playwright\x20results','UzUwa':function(_0xd71cc9,_0x42c995,_0x493a4d){return _0xd71cc9(_0x42c995,_0x493a4d);},'xqoWZ':function(_0x5a226b,_0x3a01db){return _0x5a226b(_0x3a01db);},'SMsRl':_0x5b0b02(0x1ff),'xYDNn':'automation','OXZKo':function(_0x404227,_0x3c508a){return _0x404227!=_0x3c508a;},'xUwjx':function(_0x5c2614,_0x79c1c1,_0x2b4d91){return _0x5c2614(_0x79c1c1,_0x2b4d91);},'kkpXw':_0x5b0b02(0x235),'OaPUi':function(_0x4e3873,_0x4aed4f,_0x3e4291){return _0x4e3873(_0x4aed4f,_0x3e4291);},'gYeiG':function(_0x32cb80,_0x3a3cc5){return _0x32cb80(_0x3a3cc5);},'NSoFQ':function(_0xf1bf76,_0x449b78){return _0xf1bf76(_0x449b78);},'bpnKO':function(_0x1fec1c,_0x448279){return _0x1fec1c(_0x448279);},'szCqS':function(_0x343e21,_0x4bb946){return _0x343e21===_0x4bb946;},'ukmGT':'true','CvmqE':function(_0x2f1305,_0x5d2496){return _0x2f1305(_0x5d2496);},'QnfMk':_0x5b0b02(0x287),'ZvCrQ':function(_0x1fec5c){return _0x1fec5c();},'zhbQU':'testDir','bbNOv':_0x5b0b02(0x1f5),'koCAV':'testIgnore','cTcCv':_0x5b0b02(0x1fa),'YhIov':_0x5b0b02(0x208),'yvLfB':_0x5b0b02(0x262),'qBqnU':function(_0x2d0950,_0x423de7){return _0x2d0950>_0x423de7;},'ZIWGK':function(_0x419967,_0x2256c6,_0xafd112,_0x588751){return _0x419967(_0x2256c6,_0xafd112,_0x588751);},'iJPJG':'npx','hGjBd':'playwright','SDiJr':'test','ZtXVi':_0x5b0b02(0x216),'DsByl':function(_0x49d7e6,_0x45a26e){return _0x49d7e6===_0x45a26e;},'abMLR':_0x5b0b02(0x1e6),'wYTby':_0x5b0b02(0x202),'fGdRW':'close'};!helper[_0x5b0b02(0x2a1)](process['env'][_0x5b0b02(0x1ef)])&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x1ef)]=!![]);process[_0x5b0b02(0x211)][_0x5b0b02(0x27f)](_0x5b5f14[_0x5b0b02(0x25b)])&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x1ef)]=_0x5b5f14['TczbW'],_0x5f3a17=_0x5f3a17[_0x5b0b02(0x24e)](_0x102134=>_0x102134!=='--disable-browserstack-automation'));const _0x37ca21=_0x5f3a17[_0x5b0b02(0x1f9)](_0x5b5f14[_0x5b0b02(0x26b)]);_0x5b5f14[_0x5b0b02(0x2a3)](_0x37ca21,0x0)&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]=_0x5b5f14[_0x5b0b02(0x1f8)],_0x5f3a17=_0x5f3a17[_0x5b0b02(0x24e)](_0x44f3b3=>_0x44f3b3!==_0x5b0b02(0x244)));try{const _0x362e31=path['join'](helper[_0x5b0b02(0x277)](),_0x5b5f14[_0x5b0b02(0x238)],_0x5b5f14[_0x5b0b02(0x25d)]);fs['existsSync'](_0x362e31)&&fs['unlinkSync'](_0x362e31);}catch(_0x8d7caf){logger[_0x5b0b02(0x230)](_0x5b5f14[_0x5b0b02(0x224)](_0x5b5f14['MlXIv'],_0x8d7caf));}if(!_0x5b5f14[_0x5b0b02(0x1ea)](isTestCommand,_0x249726,_0x5f3a17)){_0x5b5f14[_0x5b0b02(0x229)](spawnOriginalProcess,_0x5f3a17);return;}const _0x590f07=new BrowserStackSetup(_0x249726,FRAMEWORKS[_0x5b0b02(0x260)]);if(!_0x590f07[_0x5b0b02(0x209)]){logger[_0x5b0b02(0x20d)](_0x5b5f14[_0x5b0b02(0x22e)]);return;}await _0x590f07[_0x5b0b02(0x274)]();!helper[_0x5b0b02(0x28b)](_0x590f07[_0x5b0b02(0x21a)])&&_0x590f07[_0x5b0b02(0x21a)][_0x5b0b02(0x29e)](_0x5b5f14[_0x5b0b02(0x21f)])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x590f07[_0x5b0b02(0x21a)][_0x5b0b02(0x20b)](_0x5b5f14[_0x5b0b02(0x21f)])||!![]);_0x5b5f14[_0x5b0b02(0x201)](_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x2a7)],null)&&!helper['isTrue'](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]=process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]||_0x590f07['config'][_0x5b0b02(0x2a7)]);const _0x574ed4=!helper[_0x5b0b02(0x2a1)](process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]);let _0x192d47=![];_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x272)]&&(_0x192d47=!![],process[_0x5b0b02(0x28c)][_0x5b0b02(0x282)]=_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x272)]);_0x590f07['config'][_0x5b0b02(0x22d)]&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x242)]=JSON[_0x5b0b02(0x2a4)](_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x22d)]));const _0x16a338=_0x5f3a17[_0x5b0b02(0x21c)](),_0x3b15cb=await _0x5b5f14[_0x5b0b02(0x1ea)](getUserPlaywrightConfig,_0x249726,_0x5f3a17);if(helper['isUndefined'](_0x3b15cb)){_0x5b5f14[_0x5b0b02(0x229)](spawnOriginalProcess,_0x16a338);return;}const _0x1a701e={..._0x3b15cb[_0x5b0b02(0x209)]},_0x983703=_0x1a701e,_0x4dddac=_0x3b15cb[_0x5b0b02(0x27b)]?path[_0x5b0b02(0x233)](_0x3b15cb[_0x5b0b02(0x27b)]):process[_0x5b0b02(0x271)]();process[_0x5b0b02(0x28c)][_0x5b0b02(0x283)]=_0x4dddac;if(!_0x5b5f14[_0x5b0b02(0x25c)](setGlobalSetup,_0x983703,_0x4dddac)){_0x5b5f14[_0x5b0b02(0x229)](spawnOriginalProcess,_0x16a338);return;}const _0x3dec8e=await TestHubHandler[_0x5b0b02(0x293)](FRAMEWORKS[_0x5b0b02(0x260)],_0x590f07);_0x574ed4&&(logger[_0x5b0b02(0x28e)](_0x5b5f14[_0x5b0b02(0x1fc)]),_0x5b5f14['OaPUi'](initO11yCrashReporter,_0x983703,_0x590f07[_0x5b0b02(0x209)]),_0x5b5f14['gYeiG'](handleO11yRerun,_0x5f3a17),await _0x5b5f14['NSoFQ'](launchO11ySession,_0x3dec8e[testHubConstants[_0x5b0b02(0x2a5)]]));_0x5b5f14[_0x5b0b02(0x1ed)](shouldProcessEventForTesthub)&&_0x5b5f14[_0x5b0b02(0x1ee)](addReporter,_0x983703);let _0x3a38ee=_0x5b5f14[_0x5b0b02(0x232)](process['env'][_0x5b0b02(0x282)],_0x5b5f14[_0x5b0b02(0x1fb)]);_0x3a38ee=_0x3a38ee||_0x5b5f14[_0x5b0b02(0x229)](checkAccessibilityPlatformConfig,_0x590f07[_0x5b0b02(0x209)]),process[_0x5b0b02(0x28c)][_0x5b0b02(0x282)]=_0x3a38ee;_0x3a38ee&&_0x5b5f14['CvmqE'](setAccessibilityCapabilities,_0x590f07['config']);const _0x587c74=path['join'](_0x3b15cb[_0x5b0b02(0x27b)]?path['dirname'](_0x3b15cb[_0x5b0b02(0x27b)]):process[_0x5b0b02(0x271)](),_0x5b5f14[_0x5b0b02(0x227)]);fs[_0x5b0b02(0x203)](_0x587c74,helper[_0x5b0b02(0x23f)](_0x590f07[_0x5b0b02(0x209)])),process[_0x5b0b02(0x28c)][_0x5b0b02(0x23b)]=_0x587c74,helper['clearTempPWConfig']();if(helper[_0x5b0b02(0x252)](process[_0x5b0b02(0x28c)]['BROWSERSTACK_AUTOMATION'])){let _0x2d39b6=[];try{const _0x104ffd=helper[_0x5b0b02(0x26f)][_0x5b0b02(0x290)](null,_0x5b5f14[_0x5b0b02(0x204)](getProjectUtilsPath)),_0x245dc8={};_0x245dc8[_0x5b0b02(0x29a)]=!![],_0x245dc8[_0x5b0b02(0x286)]='',_0x245dc8[_0x5b0b02(0x1f5)]='',_0x245dc8[_0x5b0b02(0x20a)]='';const _0x487b8c={};_0x487b8c['respectGitIgnore']=!![];const _0x47fb53={};_0x47fb53[_0x5b0b02(0x217)]=_0x245dc8,_0x47fb53[_0x5b0b02(0x273)]=_0x487b8c;let _0x6bff35=_0x47fb53;_0x983703[_0x5b5f14['zhbQU']]&&(_0x6bff35['project'][_0x5b5f14[_0x5b0b02(0x24c)]]=_0x983703[_0x5b5f14['zhbQU']]),_0x983703[_0x5b5f14[_0x5b0b02(0x210)]]&&(_0x6bff35[_0x5b0b02(0x217)][_0x5b5f14[_0x5b0b02(0x210)]]=_0x983703[_0x5b5f14['bbNOv']]),_0x983703[_0x5b5f14['koCAV']]&&(_0x6bff35[_0x5b0b02(0x217)][_0x5b5f14[_0x5b0b02(0x1e8)]]=_0x983703[_0x5b5f14[_0x5b0b02(0x1e8)]]),_0x6bff35=Object[_0x5b0b02(0x278)](_0x6bff35,_0x6bff35['project']),_0x2d39b6=await _0x104ffd[_0x5b0b02(0x27c)](_0x6bff35);}catch(_0x45fa87){logger[_0x5b0b02(0x230)](_0x5b5f14[_0x5b0b02(0x224)](_0x5b5f14[_0x5b0b02(0x25e)],_0x5b5f14[_0x5b0b02(0x24d)](format,_0x45fa87)));}}let _0x23e6e0='';_0x5b5f14[_0x5b0b02(0x232)](helper[_0x5b0b02(0x2ac)](),constants['PACKAGE_TYPE'][_0x5b0b02(0x234)])?_0x23e6e0=_0x5b5f14[_0x5b0b02(0x207)]:_0x23e6e0=_0x5b5f14[_0x5b0b02(0x215)];const _0x2c0e4f=path[_0x5b0b02(0x257)](_0x3b15cb[_0x5b0b02(0x27b)]?path[_0x5b0b02(0x233)](_0x3b15cb[_0x5b0b02(0x27b)]):process['cwd'](),_0x23e6e0);let _0x2e987a=_0x3b15cb[_0x5b0b02(0x27b)]?_0x3b15cb[_0x5b0b02(0x27b)]:'';_0x2e987a=_0x5b5f14[_0x5b0b02(0x228)](_0x2e987a[_0x5b0b02(0x2a8)],0x0)?path[_0x5b0b02(0x205)](_0x2e987a):'',process[_0x5b0b02(0x28c)][_0x5b0b02(0x248)]=_0x2e987a;let _0x46a272=_0x5b0b02(0x23d);const _0x57d3b6=helper['getProxyUrl'](_0x590f07[_0x5b0b02(0x209)]);_0x57d3b6&&(_0x46a272=_0x5b5f14[_0x5b0b02(0x1fe)](_0x5b0b02(0x236)+_0x57d3b6+_0x5b0b02(0x258),_0x46a272));helper[_0x5b0b02(0x25f)]({},_0x5f3a17),fs[_0x5b0b02(0x203)](_0x2c0e4f,_0x46a272),helper[_0x5b0b02(0x28f)]();const _0x5cea32=_0x5b5f14['ZIWGK'](spawn,_0x5b5f14[_0x5b0b02(0x259)],[_0x5b5f14[_0x5b0b02(0x27a)],_0x5b5f14[_0x5b0b02(0x268)],_0x5b5f14[_0x5b0b02(0x2ad)],_0x2c0e4f,..._0x5f3a17[_0x5b0b02(0x21d)](0x2)],{'shell':_0x5b5f14[_0x5b0b02(0x2a6)](process[_0x5b0b02(0x253)],_0x5b5f14['abMLR']),'stdio':_0x5b5f14[_0x5b0b02(0x243)],'cwd':process[_0x5b0b02(0x271)](),'env':Object[_0x5b0b02(0x278)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x249726),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x590f07[_0x5b0b02(0x209)]['testContextOptions'][_0x5b0b02(0x1e7)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x590f07['config']['testContextOptions'][_0x5b0b02(0x1eb)],'BROWSERSTACK_LOG_LEVEL':_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x1f0)]})}),_0x18fa16=()=>{const _0x450c9f=_0x5b0b02;try{const _0xa3ec2e=path[_0x450c9f(0x257)](helper[_0x450c9f(0x277)](),_0x5b5f14[_0x450c9f(0x238)],_0x5b5f14[_0x450c9f(0x25d)]);if(fs[_0x450c9f(0x22b)](_0xa3ec2e)){let _0x56d0f5=fs[_0x450c9f(0x263)](_0xa3ec2e);_0x56d0f5=JSON[_0x450c9f(0x219)](_0x56d0f5),_0x590f07[_0x450c9f(0x265)]=_0x56d0f5,fs[_0x450c9f(0x295)](_0xa3ec2e);}}catch(_0x25ef41){logger['debug'](_0x5b5f14[_0x450c9f(0x226)](_0x5b5f14['pNPzz'],_0x25ef41));}};_0x5cea32['on'](_0x5b5f14[_0x5b0b02(0x292)],async _0x26cafd=>{const _0x59b85e=_0x5b0b02;try{const _0x35e9d5=_0x5b5f14[_0x59b85e(0x23e)][_0x59b85e(0x267)]('|');let _0x1a56d2=0x0;while(!![]){switch(_0x35e9d5[_0x1a56d2++]){case'0':logger[_0x59b85e(0x28e)]('Deleting\x20'+_0x2c0e4f);continue;case'1':logger[_0x59b85e(0x230)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x26cafd);continue;case'2':logger[_0x59b85e(0x230)](_0x59b85e(0x1fd)+_0x587c74);continue;case'3':process['exitCode']=_0x26cafd;continue;case'4':await helper[_0x59b85e(0x26a)](_0x590f07);continue;case'5':_0x5b5f14[_0x59b85e(0x1ed)](_0x18fa16);continue;case'6':fs['unlinkSync'](_0x2c0e4f);continue;case'7':fs[_0x59b85e(0x295)](_0x587c74);continue;}break;}}catch(_0x16f794){logger['debug'](_0x5b5f14[_0x59b85e(0x1fe)](_0x5b5f14['zZfjF'],_0x16f794));}});}module[a33_0xff277f(0x254)]=run;
|
|
2
|
+
'use strict';const a33_0x311b17=a33_0x131c;(function(_0x5e5cd4,_0xe0a436){const _0x3d7b49=a33_0x131c,_0x3486ac=_0x5e5cd4();while(!![]){try{const _0x249e71=-parseInt(_0x3d7b49(0x16f))/0x1*(parseInt(_0x3d7b49(0x159))/0x2)+parseInt(_0x3d7b49(0x156))/0x3+parseInt(_0x3d7b49(0x1ec))/0x4*(-parseInt(_0x3d7b49(0x1cd))/0x5)+parseInt(_0x3d7b49(0x1d7))/0x6+-parseInt(_0x3d7b49(0x13f))/0x7*(-parseInt(_0x3d7b49(0x1c5))/0x8)+-parseInt(_0x3d7b49(0x178))/0x9*(parseInt(_0x3d7b49(0x19f))/0xa)+parseInt(_0x3d7b49(0x1ae))/0xb*(parseInt(_0x3d7b49(0x13a))/0xc);if(_0x249e71===_0xe0a436)break;else _0x3486ac['push'](_0x3486ac['shift']());}catch(_0x5402b3){_0x3486ac['push'](_0x3486ac['shift']());}}}(a33_0x2935,0x487b2));function a33_0x131c(_0x16356e,_0x12779c){const _0x293528=a33_0x2935();return a33_0x131c=function(_0x131c91,_0x319d47){_0x131c91=_0x131c91-0x12c;let _0x112bef=_0x293528[_0x131c91];return _0x112bef;},a33_0x131c(_0x16356e,_0x12779c);}const fs=require('fs'),path=require(a33_0x311b17(0x19e)),os=require('os'),{spawn}=require(a33_0x311b17(0x1df)),{format}=require('util'),logger=require(a33_0x311b17(0x168))['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x311b17(0x16c)),helper=require(a33_0x311b17(0x1f0)),constants=require(a33_0x311b17(0x1ee)),{FRAMEWORKS}=require(a33_0x311b17(0x1dc)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter,o11yErrorHandler}=require(a33_0x311b17(0x15f)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require(a33_0x311b17(0x19c)),{setAccessibilityCapabilities}=require(a33_0x311b17(0x1a6)),SessionHandler=require(a33_0x311b17(0x146)),TestHubHandler=require(a33_0x311b17(0x1ed)),testHubConstants=require('../../helpers/testhub/constants'),{shouldProcessEventForTesthub}=require(a33_0x311b17(0x150));function a33_0x2935(){const _0x34c115=['path','16150iGYZMK','--grep','aJZQo','BrowserStack\x20config\x20file\x20not\x20found.','cUInH','YQREF','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','./accessibility-helper','pcXOH','ZwuIr','automation','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','BROWSERSTACK_PW_CONFIG_DIR','pcfVb','cliConfig','1274625JSPpui','nestedKeyValue','epJdz','env','cBlSw','JKskx','isUndefined','QeTvA','apply','LuRUq','BBYVd','--disable-test-observability','DlOph','indexOf','finalExecution','Error\x20in\x20deleting\x20playwright\x20results','qScdD','eZiOW','testContextOptions','playwright-browserstack-sdk.config.cjs','config','gYLVy','isFalse','2888MEPSzZ','AoBCJ','lvviL','resolvedConfigFile','testObservability','WKQyq','BROWSERSTACK_SETUP_CONFIG_PATH','BROWSERSTACK_AUTOMATION','1359290bOVJjG','gsEaf','UOKXB','testDir','FIiEn','aSIXR','join','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','EAJNX','testIgnore','395202McNupZ','launchBuild','qvvdC','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','getConfigPath','../../helpers/test-observability/constants','Axnav','CROBo','child_process','collectFilesForProject','OBSERVABILITY','requirePWModule','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','GUHzg','GYxqo','VMxJt','gdgxO','Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','BROWSERSTACK_TEST_OBSERVABILITY','length','rGmST','4ivkZXp','../../helpers/testhub/testhubHandler','../utils/constants','./globalSetup.js','../../helpers/helper','get','dirname','close','lHcSD','homedir','UHsBF','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','goqLo','inherit','filterBrowserstackConfig','mTfFr','exitCode','push','splice','false','yHxwG','test','isTrue','doWfR','accessibilityOptions','cwd','60CDxZZF','error','Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','logLevel','Getting\x20your\x20playwright\x20config\x20from\x20','7147iQoiLN','--disable-browserstack-automation','parse','resolve','win32','./reporter/reporter.js','eoFkC','../../helpers/test-observability/sessionHandler','platform','info','default','CQVEj','uhptJ','yCXfT','dxnbn','IGjfG','RLXLc','../../helpers/testhub/utils','TSUVa','gOBAc','filter','unlinkSync','yDcos','445398sMQvAV','globalSetup','2|6|1|5|0|3|7|4','215896TkeKqx','hUMER','accessibility','bzAuG','SCelP','bYMWi','../../helpers/test-observability/error-handler','NgiBL','slice','respectGitIgnore','EspsQ','readFileSync','JTgro','has','clearTempPWConfig','../../helpers/logger','concat','serializeToYamlString','initialize','../../helpers/BrowserStackSetup','testMatch','VewNa','3orAdWN','includes','null','debug','jlhDi','map','LOICe','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','PgIbl','1503HratDc','Pnswy','getProxyUrl','dxDhs','reporter','EgrKK','skipSessionStatus','xlyTL','USER_CONFIG_DETAILS_PATH','Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','exports','skipSessionName','existsSync','playwright','eJmTp','Deleting\x20','rtllj','stringify','pw_result.json','trim','BROWSERSTACK_TEST_ACCESSIBILITY_YML','Error\x20in\x20getting\x20funnel\x20data\x20results','Playwright\x20process\x20exited\x20with\x20code\x20','split','true','--config=','sSkuE','project','PLAYWRIGHT','rPDZJ','assign','writeFileSync','startsWith','ytVRb','argv','zGYvA','../../helpers/accessibility-automation/helper','BROWSERSTACK_RERUN_TESTS'];a33_0x2935=function(){return _0x34c115;};return a33_0x2935();}async function requireOrImportDefaultObject(_0x3579f6){const _0x1dee69=a33_0x311b17,_0xf569dd={'VMxJt':function(_0x4c410a){return _0x4c410a();},'gYLVy':function(_0x56815d,_0x1e13ad){return _0x56815d(_0x1e13ad);},'dxDhs':function(_0x333ee2,_0x1cb550){return _0x333ee2===_0x1cb550;},'ysZYS':'object','doWfR':function(_0x406596,_0x1d1e01){return _0x406596 in _0x1d1e01;},'ytVRb':_0x1dee69(0x149)},{requireOrImport:_0x5120dd}=helper['requirePWModule'][_0x1dee69(0x1b6)](null,_0xf569dd[_0x1dee69(0x1e6)](getTransformPath));let _0x109338=await _0xf569dd[_0x1dee69(0x1c3)](_0x5120dd,_0x3579f6);return _0x109338&&_0xf569dd[_0x1dee69(0x17b)](typeof _0x109338,_0xf569dd['ysZYS'])&&_0xf569dd[_0x1dee69(0x137)](_0xf569dd[_0x1dee69(0x199)],_0x109338)&&(_0x109338=_0x109338[_0xf569dd['ytVRb']]),_0x109338;}const getUserPlaywrightConfig=async(_0x499a02,_0xc4d176)=>{const _0x139e13=a33_0x311b17,_0x31dc93={'gOBAc':function(_0x46a746){return _0x46a746();},'CROBo':function(_0x499b28,_0x5e3263){return _0x499b28(_0x5e3263);},'fFlKU':function(_0x5421e5,_0x11fcd2){return _0x5421e5(_0x11fcd2);},'lHcSD':_0x139e13(0x1c8),'ueeFZ':function(_0x566c24,_0x45207f){return _0x566c24+_0x45207f;},'epJdz':_0x139e13(0x181),'gdgxO':function(_0x2e835b,_0x41c27b){return _0x2e835b(_0x41c27b);},'gsEaf':_0x139e13(0x1d4),'pcXOH':_0x139e13(0x191)},_0x3a08d9=!helper['isUndefined'](_0x499a02[_0x139e13(0x1c2)]),_0x1d6e97=_0x3a08d9?path[_0x139e13(0x142)](process[_0x139e13(0x139)](),_0x499a02[_0x139e13(0x1c2)]):process[_0x139e13(0x139)](),{resolveConfigFile:_0x3136aa,resolveConfigLocation:_0x6e046}=helper[_0x139e13(0x1e2)][_0x139e13(0x1b6)](null,_0x31dc93[_0x139e13(0x152)](getConfigLoaderPath)),_0x2c3bdc=_0x3136aa?_0x31dc93[_0x139e13(0x1de)](_0x3136aa,_0x1d6e97):helper[_0x139e13(0x1af)](_0x31dc93['fFlKU'](_0x6e046,_0x1d6e97),[_0x31dc93[_0x139e13(0x1f4)]]);let _0x4f8b06={};if(_0x2c3bdc){logger[_0x139e13(0x148)](_0x139e13(0x13e)+_0x2c3bdc);try{_0x4f8b06=await _0x31dc93['fFlKU'](requireOrImportDefaultObject,_0x2c3bdc);}catch(_0x365492){return logger[_0x139e13(0x13b)](_0x31dc93['ueeFZ'](_0x31dc93[_0x139e13(0x1b0)],_0x31dc93[_0x139e13(0x1e7)](format,_0x365492))),null;}}else logger['info'](_0x31dc93[_0x139e13(0x1ce)]);if(_0x3a08d9){const _0x2f840c=_0xc4d176['findIndex'](_0x3075a7=>_0x3075a7==='--config'||_0x3075a7==='-c'||_0x3075a7[_0x139e13(0x198)]('--config='));_0xc4d176[_0x139e13(0x132)](_0x2f840c,_0xc4d176[_0x2f840c]['startsWith'](_0x31dc93[_0x139e13(0x1a7)])?0x1:0x2);}const _0x153812={};return _0x153812[_0x139e13(0x19e)]=_0x2c3bdc,_0x153812[_0x139e13(0x1c2)]=_0x4f8b06,_0x153812;},setGlobalSetup=(_0x160aa8,_0x46173a)=>{const _0xd2c694=a33_0x311b17,_0x546ed3={'LOICe':_0xd2c694(0x157),'UHsBF':_0xd2c694(0x1f7),'cBlSw':function(_0x4e1e3f,_0x1361e2){return _0x4e1e3f+_0x1361e2;},'XiOml':_0xd2c694(0x1e8),'eoFkC':function(_0x47c6ae,_0x2247a6){return _0x47c6ae(_0x2247a6);},'qScdD':_0xd2c694(0x1ef)};if(!_0x160aa8)return![];try{if(_0x160aa8[_0xd2c694(0x157)]){let _0x412014;const _0x58b6bb=path[_0xd2c694(0x142)](_0x46173a,_0x160aa8[_0x546ed3[_0xd2c694(0x175)]]);if(fs['existsSync'](_0x58b6bb))_0x412014=_0x58b6bb;else{const _0x565754={};_0x565754['paths']=[_0x46173a],_0x412014=require[_0xd2c694(0x142)](_0x160aa8[_0x546ed3['LOICe']],_0x565754);}if(!_0x412014)throw new Error(_0x546ed3[_0xd2c694(0x1f6)]);process[_0xd2c694(0x1b1)][_0xd2c694(0x1da)]=_0x412014;}}catch(_0x494103){logger[_0xd2c694(0x13b)](_0x546ed3[_0xd2c694(0x1b2)](_0x546ed3['XiOml'],_0x546ed3[_0xd2c694(0x145)](format,_0x494103)));}return _0x160aa8['globalSetup']=require[_0xd2c694(0x142)](_0x546ed3[_0xd2c694(0x1be)]),!![];},addReporter=_0x498a87=>{const _0x423fe0=a33_0x311b17,_0x4d7791={};_0x4d7791['AoBCJ']=_0x423fe0(0x144),_0x4d7791['LuRUq']=_0x423fe0(0x17c),_0x4d7791[_0x423fe0(0x151)]=function(_0x5de115,_0x54f998){return _0x5de115===_0x54f998;},_0x4d7791[_0x423fe0(0x14d)]='string',_0x4d7791[_0x423fe0(0x1eb)]=function(_0x12c4cb,_0x3a5c70){return _0x12c4cb===_0x3a5c70;},_0x4d7791[_0x423fe0(0x14f)]='object';const _0x5e7374=_0x4d7791,_0x15cf73=path['join'](__dirname,_0x5e7374[_0x423fe0(0x1c6)]),_0xbc1994=[_0x15cf73];if(helper[_0x423fe0(0x1b4)](_0x498a87[_0x5e7374[_0x423fe0(0x1b7)]]))_0x498a87[_0x5e7374[_0x423fe0(0x1b7)]]=[_0xbc1994];else{if(_0x5e7374[_0x423fe0(0x151)](typeof _0x498a87[_0x5e7374[_0x423fe0(0x1b7)]],_0x5e7374[_0x423fe0(0x14d)]))_0x498a87[_0x5e7374[_0x423fe0(0x1b7)]]=[[_0x498a87[_0x5e7374['LuRUq']]],_0xbc1994];else _0x5e7374[_0x423fe0(0x1eb)](typeof _0x498a87[_0x5e7374[_0x423fe0(0x1b7)]],_0x5e7374[_0x423fe0(0x14f)])&&_0x498a87[_0x5e7374[_0x423fe0(0x1b7)]][_0x423fe0(0x131)](_0xbc1994);}},handleO11yRerun=_0x4254b4=>{const _0x535a95=a33_0x311b17,_0x191bb9={};_0x191bb9[_0x535a95(0x1a3)]=function(_0x10c702,_0x5be66e){return _0x10c702!==_0x5be66e;},_0x191bb9['yCXfT']=_0x535a95(0x171),_0x191bb9[_0x535a95(0x177)]=_0x535a95(0x1a0);const _0x2bd48f=_0x191bb9,_0x4016b5=helper[_0x535a95(0x136)](process['env']['BROWSERSTACK_RERUN']);if(_0x4016b5){const _0x4a9bd4=process[_0x535a95(0x1b1)][_0x535a95(0x19d)],_0x351aaf=[];if(_0x2bd48f[_0x535a95(0x1a3)](_0x4a9bd4,_0x2bd48f[_0x535a95(0x14c)])&&!helper[_0x535a95(0x1b4)](_0x4a9bd4)){_0x4a9bd4[_0x535a95(0x18f)](',')[_0x535a95(0x174)](_0x403448=>{const _0x4c5d9d=_0x535a95;_0x351aaf[_0x4c5d9d(0x131)]('('+_0x403448[_0x4c5d9d(0x18b)]()+')');});const _0x1322e7='^'+_0x351aaf[_0x535a95(0x1d3)]('|')+'$';_0x4254b4['push'](_0x2bd48f[_0x535a95(0x177)],_0x1322e7);}}},spawnOriginalProcess=_0x298485=>{const _0x4cb5dc=a33_0x311b17,_0x22898d={'eZiOW':function(_0x266c9e,_0x477ab7,_0x550449,_0x2da4b7){return _0x266c9e(_0x477ab7,_0x550449,_0x2da4b7);},'IGjfG':'npx','bzAuG':_0x4cb5dc(0x185),'Axnav':function(_0x5a0d9d,_0xd7a3e9){return _0x5a0d9d===_0xd7a3e9;},'NgiBL':_0x4cb5dc(0x143),'qvvdC':_0x4cb5dc(0x12d)};_0x22898d[_0x4cb5dc(0x1bf)](spawn,_0x22898d[_0x4cb5dc(0x14e)],[_0x22898d[_0x4cb5dc(0x15c)],..._0x298485[_0x4cb5dc(0x161)](0x1)],{'shell':_0x22898d[_0x4cb5dc(0x1dd)](process[_0x4cb5dc(0x147)],_0x22898d[_0x4cb5dc(0x160)]),'stdio':_0x22898d[_0x4cb5dc(0x1d9)],'cwd':process[_0x4cb5dc(0x139)]()});},isTestCommand=(_0x364fd2,_0x115883)=>{const _0x4b3024=a33_0x311b17,_0x1ece03={};_0x1ece03['rPDZJ']=function(_0x342b5b,_0x5ea9c3){return _0x342b5b>_0x5ea9c3;},_0x1ece03[_0x4b3024(0x15a)]=function(_0x30bb51,_0x3a9aeb){return _0x30bb51===_0x3a9aeb;},_0x1ece03[_0x4b3024(0x1b8)]=_0x4b3024(0x135);const _0x3cee22=_0x1ece03;if(_0x3cee22[_0x4b3024(0x195)](_0x115883[_0x4b3024(0x1ea)],0x1)&&_0x3cee22[_0x4b3024(0x15a)](_0x115883[0x1],_0x3cee22['BBYVd']))return!![];return![];},initO11yCrashReporter=(_0x31a93a,_0x5585bf)=>{const _0x3f11d5=a33_0x311b17,_0x195e38={'NlAia':function(_0x34bbc9,_0xd571b8){return _0x34bbc9(_0xd571b8);}},_0x5cd3a1={'frameworkName':FRAMEWORKS[_0x3f11d5(0x194)],'frameworkVersion':_0x195e38['NlAia'](getFrameworkVersion,FRAMEWORKS[_0x3f11d5(0x194)])};CrashReporter[_0x3f11d5(0x16b)](_0x5cd3a1,_0x31a93a,_0x5585bf);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x2748d2){const _0x525bf2=a33_0x311b17,_0x8b348b={};_0x8b348b[_0x525bf2(0x12c)]=function(_0x3686ea,_0x556d50){return _0x3686ea>_0x556d50;},_0x8b348b['nwdWR']=function(_0x3a3baf,_0x59862c){return _0x3a3baf===_0x59862c;};const _0x3a8e68=_0x8b348b;if(!_0x2748d2||_0x3a8e68[_0x525bf2(0x12c)](_0x2748d2['length'],0x1)&&_0x3a8e68['nwdWR'](_0x2748d2[0x0],null))return process[_0x525bf2(0x1b1)][_0x525bf2(0x1e9)]=![],![];return!![];});async function run(_0x5e6ca5,_0x50278b){const _0x2e58fb=a33_0x311b17,_0x5d8da7={'lvviL':'.browserstack','UOKXB':_0x2e58fb(0x18a),'EspsQ':function(_0x3c96ac,_0x4bf8ee){return _0x3c96ac+_0x4bf8ee;},'dkJjB':_0x2e58fb(0x18d),'mTfFr':_0x2e58fb(0x158),'eJmTp':function(_0xdc0075){return _0xdc0075();},'EAJNX':function(_0x378569,_0xebada){return _0x378569+_0xebada;},'zGYvA':'Error\x20in\x20closing\x20playwright','YQREF':_0x2e58fb(0x140),'pcfVb':_0x2e58fb(0x133),'cfkEO':_0x2e58fb(0x1b9),'FIiEn':function(_0x174693,_0x531d52){return _0x174693>=_0x531d52;},'KhkzJ':function(_0x26f22f,_0x1715f4){return _0x26f22f+_0x1715f4;},'xlyTL':_0x2e58fb(0x1bd),'GYxqo':function(_0xe364a7,_0x407c9b,_0x1080f6){return _0xe364a7(_0x407c9b,_0x1080f6);},'aSIXR':function(_0x4543fd,_0x264bfd){return _0x4543fd(_0x264bfd);},'WKQyq':_0x2e58fb(0x1a2),'Wqpet':_0x2e58fb(0x1a9),'QeTvA':function(_0x2fb035,_0x4716ee){return _0x2fb035!=_0x4716ee;},'yDcos':function(_0x41fd63,_0x5d5f8b,_0x26199e){return _0x41fd63(_0x5d5f8b,_0x26199e);},'EgrKK':function(_0x4309ec,_0x4065bb){return _0x4309ec(_0x4065bb);},'CQVEj':_0x2e58fb(0x176),'ZwuIr':function(_0x57beba,_0x4e2f40,_0x3cbfa9){return _0x57beba(_0x4e2f40,_0x3cbfa9);},'sSkuE':function(_0x1432aa,_0x34f2bc){return _0x1432aa===_0x34f2bc;},'Pnswy':_0x2e58fb(0x190),'DlOph':function(_0x3f2346,_0x4e6710){return _0x3f2346(_0x4e6710);},'rtllj':'browserstackSetupConfig.json','bhDkM':function(_0x54553c){return _0x54553c();},'JTgro':_0x2e58fb(0x1d0),'bYMWi':_0x2e58fb(0x16d),'SCelP':_0x2e58fb(0x1d6),'daRbL':function(_0x486267,_0x27108d){return _0x486267+_0x27108d;},'angMp':_0x2e58fb(0x13c),'ZlXps':_0x2e58fb(0x1c1),'QlAOl':'playwright-browserstack-sdk.config.js','aJZQo':function(_0x160df4,_0x2fe7b0){return _0x160df4>_0x2fe7b0;},'JKskx':function(_0x4ac2b6,_0x5ea346){return _0x4ac2b6+_0x5ea346;},'uhptJ':function(_0x26c067,_0x39951c,_0x1de918,_0x25e7cf){return _0x26c067(_0x39951c,_0x1de918,_0x25e7cf);},'yHxwG':'npx','pxvoG':_0x2e58fb(0x185),'VewNa':_0x2e58fb(0x135),'RfRmF':'--config','GUHzg':_0x2e58fb(0x143),'BgiTi':_0x2e58fb(0x12d),'jlhDi':_0x2e58fb(0x1f3)};!helper[_0x2e58fb(0x1c4)](process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1cc)])&&(process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1cc)]=!![]);process[_0x2e58fb(0x19a)][_0x2e58fb(0x170)](_0x5d8da7[_0x2e58fb(0x1a4)])&&(process[_0x2e58fb(0x1b1)]['BROWSERSTACK_AUTOMATION']=_0x5d8da7[_0x2e58fb(0x1ac)],_0x50278b=_0x50278b[_0x2e58fb(0x153)](_0x3cde2b=>_0x3cde2b!==_0x2e58fb(0x140)));const _0x37164c=_0x50278b[_0x2e58fb(0x1bb)](_0x5d8da7['cfkEO']);_0x5d8da7[_0x2e58fb(0x1d1)](_0x37164c,0x0)&&(process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1e9)]=_0x5d8da7[_0x2e58fb(0x1ac)],_0x50278b=_0x50278b[_0x2e58fb(0x153)](_0x47381b=>_0x47381b!==_0x2e58fb(0x1b9)));try{const _0x47dd25=path[_0x2e58fb(0x1d3)](helper[_0x2e58fb(0x1f5)](),_0x5d8da7[_0x2e58fb(0x1c7)],_0x5d8da7[_0x2e58fb(0x1cf)]);fs[_0x2e58fb(0x184)](_0x47dd25)&&fs[_0x2e58fb(0x154)](_0x47dd25);}catch(_0x5d4469){logger[_0x2e58fb(0x172)](_0x5d8da7['KhkzJ'](_0x5d8da7[_0x2e58fb(0x17f)],_0x5d4469));}if(!_0x5d8da7[_0x2e58fb(0x1e5)](isTestCommand,_0x5e6ca5,_0x50278b)){_0x5d8da7[_0x2e58fb(0x1d2)](spawnOriginalProcess,_0x50278b);return;}const _0x41f8b2=new BrowserStackSetup(_0x5e6ca5,FRAMEWORKS[_0x2e58fb(0x194)]);if(!_0x41f8b2['config']){logger[_0x2e58fb(0x13b)](_0x5d8da7[_0x2e58fb(0x1ca)]);return;}await _0x41f8b2[_0x2e58fb(0x16b)]();!helper[_0x2e58fb(0x1b4)](_0x41f8b2[_0x2e58fb(0x1ad)])&&_0x41f8b2['cliConfig'][_0x2e58fb(0x166)](_0x5d8da7['Wqpet'])&&(process['env'][_0x2e58fb(0x1cc)]=_0x41f8b2['cliConfig'][_0x2e58fb(0x1f1)](_0x5d8da7['Wqpet'])||!![]);_0x5d8da7[_0x2e58fb(0x1b5)](_0x41f8b2[_0x2e58fb(0x1c2)]['testObservability'],null)&&!helper[_0x2e58fb(0x136)](process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1e9)])&&(process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1e9)]=process[_0x2e58fb(0x1b1)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x41f8b2[_0x2e58fb(0x1c2)][_0x2e58fb(0x1c9)]);const _0x16615e=!helper['isFalse'](process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1e9)]);let _0xed9ea4=![];_0x41f8b2[_0x2e58fb(0x1c2)]['accessibility']&&(_0xed9ea4=!![],process['env'][_0x2e58fb(0x18c)]=_0x41f8b2[_0x2e58fb(0x1c2)][_0x2e58fb(0x15b)]);_0x41f8b2[_0x2e58fb(0x1c2)][_0x2e58fb(0x138)]&&(process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1e3)]=JSON[_0x2e58fb(0x189)](_0x41f8b2[_0x2e58fb(0x1c2)]['accessibilityOptions']));const _0x4e9d5f=_0x50278b[_0x2e58fb(0x169)](),_0x2c220a=await _0x5d8da7[_0x2e58fb(0x155)](getUserPlaywrightConfig,_0x5e6ca5,_0x50278b);if(helper[_0x2e58fb(0x1b4)](_0x2c220a)){_0x5d8da7[_0x2e58fb(0x1d2)](spawnOriginalProcess,_0x4e9d5f);return;}const _0x30cc05={..._0x2c220a['config']},_0x4ee05b=_0x30cc05,_0x11f4c0=_0x2c220a[_0x2e58fb(0x19e)]?path['dirname'](_0x2c220a[_0x2e58fb(0x19e)]):process[_0x2e58fb(0x139)]();process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1ab)]=_0x11f4c0;if(!_0x5d8da7[_0x2e58fb(0x155)](setGlobalSetup,_0x4ee05b,_0x11f4c0)){_0x5d8da7[_0x2e58fb(0x17d)](spawnOriginalProcess,_0x4e9d5f);return;}const _0x506b3b=await TestHubHandler[_0x2e58fb(0x1d8)](FRAMEWORKS['PLAYWRIGHT'],_0x41f8b2);_0x16615e&&(logger['info'](_0x5d8da7[_0x2e58fb(0x14a)]),_0x5d8da7[_0x2e58fb(0x1a8)](initO11yCrashReporter,_0x4ee05b,_0x41f8b2[_0x2e58fb(0x1c2)]),_0x5d8da7['aSIXR'](handleO11yRerun,_0x50278b),await _0x5d8da7[_0x2e58fb(0x17d)](launchO11ySession,_0x506b3b[testHubConstants[_0x2e58fb(0x1e1)]]));_0x5d8da7[_0x2e58fb(0x186)](shouldProcessEventForTesthub)&&_0x5d8da7['EgrKK'](addReporter,_0x4ee05b);let _0x149dd5=_0x5d8da7[_0x2e58fb(0x192)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x5d8da7[_0x2e58fb(0x179)]);_0x149dd5=_0x149dd5||_0x5d8da7[_0x2e58fb(0x1d2)](checkAccessibilityPlatformConfig,_0x41f8b2[_0x2e58fb(0x1c2)]),process['env'][_0x2e58fb(0x18c)]=_0x149dd5;_0x149dd5&&_0x5d8da7[_0x2e58fb(0x1ba)](setAccessibilityCapabilities,_0x41f8b2[_0x2e58fb(0x1c2)]);const _0x265702=path[_0x2e58fb(0x1d3)](_0x2c220a[_0x2e58fb(0x19e)]?path[_0x2e58fb(0x1f2)](_0x2c220a['path']):process['cwd'](),_0x5d8da7[_0x2e58fb(0x188)]);fs[_0x2e58fb(0x197)](_0x265702,helper[_0x2e58fb(0x16a)](_0x41f8b2[_0x2e58fb(0x1c2)])),process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1cb)]=_0x265702,helper[_0x2e58fb(0x167)]();if(helper[_0x2e58fb(0x136)](process['env']['BROWSERSTACK_AUTOMATION'])){let _0x1daa0c=[];try{const _0xfa35b3=helper[_0x2e58fb(0x1e2)]['apply'](null,_0x5d8da7['bhDkM'](getProjectUtilsPath)),_0x35e70a={};_0x35e70a[_0x2e58fb(0x162)]=!![],_0x35e70a[_0x2e58fb(0x1d0)]='',_0x35e70a[_0x2e58fb(0x16d)]='',_0x35e70a['testIgnore']='';const _0x14bdc7={};_0x14bdc7[_0x2e58fb(0x162)]=!![];const _0x3ebec9={};_0x3ebec9[_0x2e58fb(0x193)]=_0x35e70a,_0x3ebec9['_internal']=_0x14bdc7;let _0xe41ee9=_0x3ebec9;_0x4ee05b[_0x5d8da7[_0x2e58fb(0x165)]]&&(_0xe41ee9[_0x2e58fb(0x193)][_0x5d8da7[_0x2e58fb(0x165)]]=_0x4ee05b[_0x5d8da7['JTgro']]),_0x4ee05b[_0x5d8da7[_0x2e58fb(0x15e)]]&&(_0xe41ee9[_0x2e58fb(0x193)][_0x5d8da7[_0x2e58fb(0x15e)]]=_0x4ee05b[_0x5d8da7['bYMWi']]),_0x4ee05b[_0x5d8da7[_0x2e58fb(0x15d)]]&&(_0xe41ee9[_0x2e58fb(0x193)][_0x5d8da7[_0x2e58fb(0x15d)]]=_0x4ee05b[_0x5d8da7[_0x2e58fb(0x15d)]]),_0xe41ee9=Object[_0x2e58fb(0x196)](_0xe41ee9,_0xe41ee9[_0x2e58fb(0x193)]),_0x1daa0c=await _0xfa35b3[_0x2e58fb(0x1e0)](_0xe41ee9);}catch(_0x37e3f2){logger[_0x2e58fb(0x172)](_0x5d8da7['daRbL'](_0x5d8da7['angMp'],_0x5d8da7[_0x2e58fb(0x17d)](format,_0x37e3f2)));}}let _0x1aa0cf='';_0x5d8da7[_0x2e58fb(0x192)](helper['getPackageType'](),constants['PACKAGE_TYPE']['MODULE'])?_0x1aa0cf=_0x5d8da7['ZlXps']:_0x1aa0cf=_0x5d8da7['QlAOl'];const _0x5e2f49=path[_0x2e58fb(0x1d3)](_0x2c220a[_0x2e58fb(0x19e)]?path[_0x2e58fb(0x1f2)](_0x2c220a['path']):process['cwd'](),_0x1aa0cf);let _0xb620dd=_0x2c220a[_0x2e58fb(0x19e)]?_0x2c220a[_0x2e58fb(0x19e)]:'';_0xb620dd=_0x5d8da7[_0x2e58fb(0x1a1)](_0xb620dd[_0x2e58fb(0x1ea)],0x0)?path[_0x2e58fb(0x142)](_0xb620dd):'',process[_0x2e58fb(0x1b1)][_0x2e58fb(0x180)]=_0xb620dd;let _0x172b76=_0x2e58fb(0x1aa);const _0xd9efe3=helper[_0x2e58fb(0x17a)](_0x41f8b2['config']);_0xd9efe3&&(_0x172b76=_0x5d8da7[_0x2e58fb(0x1b3)](_0x2e58fb(0x1a5)+_0xd9efe3+'\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();',_0x172b76));helper[_0x2e58fb(0x12e)]({},_0x50278b),fs[_0x2e58fb(0x197)](_0x5e2f49,_0x172b76),helper['markSDKSetupComplete']();const _0x234f21=_0x5d8da7[_0x2e58fb(0x14b)](spawn,_0x5d8da7[_0x2e58fb(0x134)],[_0x5d8da7['pxvoG'],_0x5d8da7[_0x2e58fb(0x16e)],_0x5d8da7['RfRmF'],_0x5e2f49,..._0x50278b[_0x2e58fb(0x161)](0x2)],{'shell':_0x5d8da7['sSkuE'](process[_0x2e58fb(0x147)],_0x5d8da7[_0x2e58fb(0x1e4)]),'stdio':_0x5d8da7['BgiTi'],'cwd':process[_0x2e58fb(0x139)](),'env':Object[_0x2e58fb(0x196)]({},process[_0x2e58fb(0x1b1)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2e58fb(0x1db)](_0x5e6ca5),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x41f8b2[_0x2e58fb(0x1c2)]['testContextOptions'][_0x2e58fb(0x17e)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x41f8b2['config'][_0x2e58fb(0x1c0)][_0x2e58fb(0x183)],'BROWSERSTACK_LOG_LEVEL':_0x41f8b2[_0x2e58fb(0x1c2)][_0x2e58fb(0x13d)]})}),_0x4410e2=()=>{const _0x390ea6=_0x2e58fb;try{const _0x30bb3d=path[_0x390ea6(0x1d3)](helper[_0x390ea6(0x1f5)](),_0x5d8da7[_0x390ea6(0x1c7)],_0x5d8da7[_0x390ea6(0x1cf)]);if(fs[_0x390ea6(0x184)](_0x30bb3d)){let _0x3bff1a=fs[_0x390ea6(0x164)](_0x30bb3d);_0x3bff1a=JSON[_0x390ea6(0x141)](_0x3bff1a),_0x41f8b2['errorMessage']=_0x3bff1a,fs[_0x390ea6(0x154)](_0x30bb3d);}}catch(_0x90b22a){logger[_0x390ea6(0x172)](_0x5d8da7[_0x390ea6(0x163)](_0x5d8da7['dkJjB'],_0x90b22a));}};_0x234f21['on'](_0x5d8da7[_0x2e58fb(0x173)],async _0x48078d=>{const _0x5a5964=_0x2e58fb;try{const _0x2009ca=_0x5d8da7[_0x5a5964(0x12f)]['split']('|');let _0x58d22f=0x0;while(!![]){switch(_0x2009ca[_0x58d22f++]){case'0':logger['info']('Deleting\x20'+_0x5e2f49);continue;case'1':process[_0x5a5964(0x130)]=_0x48078d;continue;case'2':_0x5d8da7[_0x5a5964(0x186)](_0x4410e2);continue;case'3':fs[_0x5a5964(0x154)](_0x5e2f49);continue;case'4':fs[_0x5a5964(0x154)](_0x265702);continue;case'5':logger[_0x5a5964(0x172)](_0x5a5964(0x18e)+_0x48078d);continue;case'6':await helper[_0x5a5964(0x1bc)](_0x41f8b2);continue;case'7':logger[_0x5a5964(0x172)](_0x5a5964(0x187)+_0x265702);continue;}break;}}catch(_0x587428){logger[_0x5a5964(0x172)](_0x5d8da7[_0x5a5964(0x1d5)](_0x5d8da7[_0x5a5964(0x19b)],_0x587428));}});}module[a33_0x311b17(0x182)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a34_0x595c(){const _0x5a895f=['winstonLogger','787488joydpj','apply','1912724FWsYeJ','khBGH','jJWnQ','Running\x20existing\x20global\x20setup','973EJYyAF','1.33.0','toString','Dqpmv','WAgqe','requirePWModule','./reporter/pwUtils','Not\x20able\x20to\x20import\x20globalSetup','../../helpers/logger','LXRpe','fork','error','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','2483940vyDkDB','34IGXcXb','compareVersions','4581468ndZTTw','SVsyZ','736332ayvaIV','../../helpers/test-observability/utils','7syvEHK','8SkvZyT','function','AVbNy','KwlpD','fwHzP','env','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','Call\x20to\x20child\x20fork\x20with\x20args\x20','137160WWcgWu','Path\x20','JHXrD'];a34_0x595c=function(){return _0x5a895f;};return a34_0x595c();}const a34_0xab2672=a34_0x5290;function a34_0x5290(_0x5e5717,_0x470359){const _0x595c58=a34_0x595c();return a34_0x5290=function(_0x5290ae,_0x8c2f31){_0x5290ae=_0x5290ae-0xc2;let _0x5690df=_0x595c58[_0x5290ae];return _0x5690df;},a34_0x5290(_0x5e5717,_0x470359);}(function(_0x31c55a,_0x41911a){const _0xd43efb=a34_0x5290,_0x2f59e2=_0x31c55a();while(!![]){try{const _0x306d89=parseInt(_0xd43efb(0xdf))/0x1*(parseInt(_0xd43efb(0xc6))/0x2)+-parseInt(_0xd43efb(0xd9))/0x3+parseInt(_0xd43efb(0xdb))/0x4+-parseInt(_0xd43efb(0xc5))/0x5+parseInt(_0xd43efb(0xca))/0x6*(parseInt(_0xd43efb(0xcc))/0x7)+parseInt(_0xd43efb(0xcd))/0x8*(parseInt(_0xd43efb(0xc8))/0x9)+parseInt(_0xd43efb(0xd5))/0xa;if(_0x306d89===_0x41911a)break;else _0x2f59e2['push'](_0x2f59e2['shift']());}catch(_0x337a6d){_0x2f59e2['push'](_0x2f59e2['shift']());}}}(a34_0x595c,0x5d000));const child_process=require('child_process'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a34_0xab2672(0xcb)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a34_0xab2672(0xe5)),logger=require(a34_0xab2672(0xe7))[a34_0xab2672(0xd8)];module['exports']=async function(_0x269994){const _0x5f3429=a34_0xab2672,_0x53a5d4={'fwHzP':function(_0x318290,_0x46dfde){return _0x318290(_0x46dfde);},'JHXrD':function(_0x3cf21c){return _0x3cf21c();},'WAgqe':'./mock-process.js','vjvdH':_0x5f3429(0xde),'khBGH':function(_0x140d82){return _0x140d82();},'jJWnQ':function(_0x41842,_0x8cade2){return _0x41842(_0x8cade2);},'LXRpe':function(_0x2869e9,_0x3a7cdf){return _0x2869e9>=_0x3a7cdf;},'AVbNy':_0x5f3429(0xe0),'SVsyZ':function(_0x4dbd5f,_0x4d860e,_0x5b2002){return _0x4dbd5f(_0x4d860e,_0x5b2002);},'OVXqB':function(_0x3ab682,_0x5a7f80){return _0x3ab682!==_0x5a7f80;},'Dqpmv':_0x5f3429(0xce),'KwlpD':_0x5f3429(0xe6)},_0x3496fd=child_process[_0x5f3429(0xc2)];child_process[_0x5f3429(0xc2)]=function(){const _0x3e9601=_0x5f3429;return _0x53a5d4[_0x3e9601(0xd1)](debug,_0x3e9601(0xd4)+arguments[0x0]),arguments[0x0]['includes'](_0x53a5d4[_0x3e9601(0xd7)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x53a5d4[_0x3e9601(0xe3)]):logger[_0x3e9601(0xc3)](_0x3e9601(0xd6)+_0x53a5d4['JHXrD'](getForkProcessPath)+'\x20is\x20not\x20found'),_0x3496fd[_0x3e9601(0xda)](null,arguments);};if(process[_0x5f3429(0xd2)][_0x5f3429(0xc4)]){_0x53a5d4[_0x5f3429(0xd1)](debug,_0x53a5d4['vjvdH']);try{const {loadGlobalHook:_0x32500a}=helper[_0x5f3429(0xe4)][_0x5f3429(0xda)](null,_0x53a5d4[_0x5f3429(0xdc)](getLoadUtilsPath)),_0x10ae7e=_0x53a5d4['jJWnQ'](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x4b0015=_0x269994;if(_0x53a5d4[_0x5f3429(0xe8)](helper[_0x5f3429(0xc7)](_0x10ae7e,_0x53a5d4[_0x5f3429(0xcf)]),0x0)){const _0x13856e={};_0x13856e['config']=_0x269994,_0x4b0015=_0x13856e;}const _0x56022e=await _0x53a5d4[_0x5f3429(0xc9)](_0x32500a,_0x4b0015,process[_0x5f3429(0xd2)][_0x5f3429(0xc4)]);if(_0x53a5d4['OVXqB'](typeof _0x56022e,_0x53a5d4[_0x5f3429(0xe2)]))throw new Error(_0x53a5d4[_0x5f3429(0xd0)]);return _0x56022e['apply'](null,arguments);}catch(_0x1597ac){_0x53a5d4[_0x5f3429(0xdd)](debug,_0x5f3429(0xd3)+_0x1597ac[_0x5f3429(0xe1)]());}}};
|