browserstack-node-sdk 1.34.55 → 1.34.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a29_0xc46e(){const _0x5099b3=['safariOptions_','edgeOptions_','agent_','setGlobal','10VWVygp','126576gWcgDY','Modifying\x20webdriver\x20builder','ieOptions_','Gkams','keys','__drivers','send','capabilities_','overrideGet','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','NVbpN','logLevel','goog:chromeOptions','object','firefoxOptions','adPef','/session','PHHmw','hCICA','CAPABILITY_KEY','firefoxOptions_','UTxmh','uYvpR','QbXuz','proxyUrl','176xdqIHG','Hub\x20url\x20set\x20to\x20','../../../helpers/globals','browserstackAgentObservability','requireSeleniumWebdriver','3203022lOyZAu','browserStackLogLevel','updateHubUrl','safari.options','54474OfaLdg','tOcTP','2|3|0|1|5|4','then','Oxukd','requireHttpClient','Ulubx','../../../bin/utils/constants','../../../helpers/logger','qOMoQ','set','czxrd','options_','ms:edgeOptions','Tfsvq','Builder','DkIRG','PfJUM','build','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','path','winstonLogger','isUndefined','getAccessibilityResults','mergeDeep','OBPsu','optimalHubUrl','WBcgv','error','setLogLevel','SDsSL','proxySettings','sblaV','debug','Otjfr','quitCount_','exports','getAccessibilityResultsSummary','voUdk','caps_','Proxy\x20set\x20to\x20','__driversArray','isBrowserstackInfra','newHubUrl','push','getRequestOptions','0|2|4|3|5|1','forEach','global','Setting\x20Browserstack\x20capabilities','HttpClient','session_','isPacProxy','ieOptions','EjZgg','4633344KQQNrd','chromeOptions_','url_','AoSmF','split','get','moz:firefoxOptions','pEHuJ','/wd/hub','isAccessibilityPlatform','../../../helpers/patchHelpers','capability','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','AZvjF','proxy_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','se:ieOptions','__driver','originalBuilder','setCapabilities','edgeOptions','636236iqXBvq','chromeOptions','storeOptimalHubUrl','23443416jxiqVn','2495146RBSFRY'];a29_0xc46e=function(){return _0x5099b3;};return a29_0xc46e();}function a29_0x1ab3(_0x40318a,_0x3d6e62){const _0xc46e76=a29_0xc46e();return a29_0x1ab3=function(_0x1ab353,_0x4c4fa2){_0x1ab353=_0x1ab353-0x101;let _0x30d70f=_0xc46e76[_0x1ab353];return _0x30d70f;},a29_0x1ab3(_0x40318a,_0x3d6e62);}const a29_0x53e7f4=a29_0x1ab3;(function(_0x5a22c9,_0x2cc0f5){const _0x1a4dca=a29_0x1ab3,_0x4704bb=_0x5a22c9();while(!![]){try{const _0xaeb2bd=-parseInt(_0x1a4dca(0x110))/0x1+parseInt(_0x1a4dca(0x10a))/0x2+parseInt(_0x1a4dca(0x169))/0x3+-parseInt(_0x1a4dca(0x106))/0x4+-parseInt(_0x1a4dca(0x10f))/0x5*(-parseInt(_0x1a4dca(0x12e))/0x6)+parseInt(_0x1a4dca(0x132))/0x7*(-parseInt(_0x1a4dca(0x129))/0x8)+-parseInt(_0x1a4dca(0x109))/0x9;if(_0xaeb2bd===_0x2cc0f5)break;else _0x4704bb['push'](_0x4704bb['shift']());}catch(_0x46854a){_0x4704bb['push'](_0x4704bb['shift']());}}}(a29_0xc46e,0xc2d50));const logger=require(a29_0x53e7f4(0x13a))[a29_0x53e7f4(0x147)],helper=require('../../../helpers/helper'),constants=require(a29_0x53e7f4(0x139)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x53e7f4(0x173)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a29_0x53e7f4(0x12b)),{overrideExecute}=require('./helpers/patchHelper'),modify=(_0x1c9873,_0x4959a8=null,_0x22cc26=![])=>{const _0x55e63e=a29_0x53e7f4,_0x33dbfc={'Gkams':function(_0x1f79b5,_0x566a20){return _0x1f79b5!==_0x566a20;},'Ulubx':_0x55e63e(0x120),'AZvjF':function(_0x451297,_0x3548fb){return _0x451297+_0x3548fb;},'Oxukd':function(_0x334b22,_0x55a6de){return _0x334b22+_0x55a6de;},'ESgUs':'https://','KREsV':_0x55e63e(0x171),'qOMoQ':_0x55e63e(0x11c),'OBPsu':_0x55e63e(0x107),'adPef':_0x55e63e(0x13f),'PHHmw':_0x55e63e(0x105),'Yjaxw':_0x55e63e(0x16f),'uYvpR':_0x55e63e(0x11e),'WBcgv':_0x55e63e(0x131),'vEWht':_0x55e63e(0x101),'czxrd':_0x55e63e(0x167),'Tfsvq':function(_0x1694a9,_0x44ee65){return _0x1694a9===_0x44ee65;},'uswNm':_0x55e63e(0x11d),'pEHuJ':_0x55e63e(0x163),'dfNyF':_0x55e63e(0x14c),'EjZgg':_0x55e63e(0x145),'Otjfr':_0x55e63e(0x160),'hCICA':function(_0x178c3e,_0x563e4e,_0x5dda50){return _0x178c3e(_0x563e4e,_0x5dda50);},'DkIRG':function(_0x4ac069,_0x32f2ea){return _0x4ac069(_0x32f2ea);},'SDsSL':function(_0x38c71d,_0x1e443c,_0xa10c3){return _0x38c71d(_0x1e443c,_0xa10c3);},'xIxUv':function(_0x585996,_0xb8fa5b,_0x7f35ce){return _0x585996(_0xb8fa5b,_0x7f35ce);},'PfJUM':function(_0x29c435,_0x501746,_0x538d41){return _0x29c435(_0x501746,_0x538d41);},'QbXuz':_0x55e63e(0x134),'egXiJ':function(_0x3f64ba){return _0x3f64ba();},'voUdk':_0x55e63e(0x119),'AoSmF':_0x55e63e(0x172),'UVShz':function(_0x30a2ce,_0x4c3406,_0x26434a){return _0x30a2ce(_0x4c3406,_0x26434a);},'UTxmh':_0x55e63e(0x178),'tOcTP':_0x55e63e(0x111)},_0x37d806=helper[_0x55e63e(0x137)]();let _0x1c3de6;try{_0x1c3de6=helper[_0x55e63e(0x12d)](),_0x1c3de6[_0x55e63e(0x103)]&&(_0x1c3de6[_0x55e63e(0x141)]=_0x1c3de6['originalBuilder']);}catch(_0xa91f3e){return;}if(helper[_0x55e63e(0x15c)]()){const _0x48e453={};_0x48e453[_0x55e63e(0x11b)]=_0x1c9873[_0x55e63e(0x12f)],helper[_0x55e63e(0x14f)](_0x48e453,new Map(),new Map()),logger['info'](_0x33dbfc[_0x55e63e(0x125)]),logger[_0x55e63e(0x153)](_0x33dbfc[_0x55e63e(0x133)]);}class _0x200777 extends _0x37d806[_0x55e63e(0x164)]{[_0x55e63e(0x116)](_0x2f253f){const _0x1d399e=_0x55e63e;if(_0x33dbfc[_0x1d399e(0x113)](_0x2f253f[_0x1d399e(0x146)],_0x33dbfc[_0x1d399e(0x138)])&&_0x33dbfc['Gkams'](global['newHubUrl'],''))try{global[_0x1d399e(0x15d)]=_0x33dbfc[_0x1d399e(0x176)](_0x33dbfc[_0x1d399e(0x136)](_0x33dbfc['ESgUs'],global['newHubUrl']),_0x33dbfc['KREsV']),this[_0x1d399e(0x13e)]=hubAllocator[_0x1d399e(0x15f)](global[_0x1d399e(0x15d)]),logger[_0x1d399e(0x153)]('New\x20hub\x20url\x20set\x20to\x20'+global[_0x1d399e(0x15d)]),global[_0x1d399e(0x15d)]='';}catch(_0x41f9b0){logger[_0x1d399e(0x14e)](_0x41f9b0);}return super[_0x1d399e(0x116)](_0x2f253f);}}class _0x49823a extends _0x1c3de6[_0x55e63e(0x141)]{['setServer'](){const _0x346ff3=_0x55e63e;return this['url_']=helper['getHubUrl'](_0x1c9873),logger[_0x346ff3(0x153)](_0x346ff3(0x12a)+this[_0x346ff3(0x16b)]),this;}['__setBrowserOptions'](_0x135df5){const _0x4db49e=_0x55e63e;let _0x18c901={};for(const _0x2d6f4 in _0x135df5){switch(_0x2d6f4){case _0x33dbfc[_0x4db49e(0x13b)]:case _0x33dbfc[_0x4db49e(0x14b)]:this[_0x4db49e(0x16a)]&&(_0x18c901=this[_0x4db49e(0x16a)][_0x4db49e(0x16e)](this[_0x4db49e(0x16a)][_0x4db49e(0x123)])||{},this['chromeOptions_'][_0x4db49e(0x13c)](this[_0x4db49e(0x16a)][_0x4db49e(0x123)],helper[_0x4db49e(0x14a)](_0x18c901,_0x135df5[_0x2d6f4])));break;case _0x33dbfc[_0x4db49e(0x11f)]:case _0x33dbfc[_0x4db49e(0x121)]:this[_0x4db49e(0x10c)]&&(_0x18c901=this[_0x4db49e(0x10c)][_0x4db49e(0x16e)](this[_0x4db49e(0x10c)]['CAPABILITY_KEY'])||{},this[_0x4db49e(0x10c)][_0x4db49e(0x13c)](this[_0x4db49e(0x10c)][_0x4db49e(0x123)],helper[_0x4db49e(0x14a)](_0x18c901,_0x135df5[_0x2d6f4])));break;case _0x33dbfc['Yjaxw']:case _0x33dbfc[_0x4db49e(0x126)]:this['firefoxOptions_']&&(_0x18c901=this[_0x4db49e(0x124)][_0x4db49e(0x16e)](this[_0x4db49e(0x124)]['CAPABILITY_KEY'])||{},this['firefoxOptions_'][_0x4db49e(0x13c)](this[_0x4db49e(0x124)][_0x4db49e(0x123)],helper['mergeDeep'](_0x18c901,_0x135df5[_0x2d6f4])));break;case _0x33dbfc[_0x4db49e(0x14d)]:this[_0x4db49e(0x10b)]&&(_0x18c901=this[_0x4db49e(0x10b)][_0x4db49e(0x16e)](this['safariOptions_'][_0x4db49e(0x123)])||{},this[_0x4db49e(0x10b)]['set'](this[_0x4db49e(0x10b)][_0x4db49e(0x123)],helper[_0x4db49e(0x14a)](_0x18c901,_0x135df5[_0x2d6f4])));break;case _0x33dbfc['vEWht']:case _0x33dbfc[_0x4db49e(0x13d)]:this['ieOptions_']&&(_0x18c901=this[_0x4db49e(0x112)][_0x4db49e(0x16e)](this[_0x4db49e(0x112)]['CAPABILITY_KEY'])||{},this[_0x4db49e(0x112)][_0x4db49e(0x13c)](this[_0x4db49e(0x112)][_0x4db49e(0x123)],helper['mergeDeep'](_0x18c901,_0x135df5[_0x2d6f4])));break;}}}['setCapabilities'](){const _0x52c2d6=_0x55e63e;return logger[_0x52c2d6(0x153)](_0x33dbfc[_0x52c2d6(0x170)]),this['__setBrowserOptions'](_0x1c9873[_0x52c2d6(0x174)]),Object[_0x52c2d6(0x114)](_0x1c9873[_0x52c2d6(0x174)])[_0x52c2d6(0x161)](_0x49855b=>{const _0x3267ab=_0x52c2d6,_0x159145=this[_0x3267ab(0x117)][_0x3267ab(0x16e)](_0x49855b);_0x33dbfc[_0x3267ab(0x140)](typeof _0x159145,_0x33dbfc['uswNm'])?this[_0x3267ab(0x117)][_0x3267ab(0x13c)](_0x49855b,helper[_0x3267ab(0x14a)](_0x159145,_0x1c9873[_0x3267ab(0x174)][_0x49855b])):this[_0x3267ab(0x117)][_0x3267ab(0x13c)](_0x49855b,_0x1c9873[_0x3267ab(0x174)][_0x49855b]);}),this;}[_0x55e63e(0x144)](){const _0x5b6177=_0x55e63e,_0x36c96b={'NVbpN':function(_0x551d8f,_0x70ac56,_0x2fea5c){const _0xec6b89=a29_0x1ab3;return _0x33dbfc[_0xec6b89(0x122)](_0x551d8f,_0x70ac56,_0x2fea5c);},'ChBPC':function(_0x56a596,_0x153504,_0x3f404b){return _0x33dbfc['xIxUv'](_0x56a596,_0x153504,_0x3f404b);},'sblaV':function(_0x5109b1,_0x34f82c,_0x35ee5e){const _0x84f1b7=a29_0x1ab3;return _0x33dbfc[_0x84f1b7(0x143)](_0x5109b1,_0x34f82c,_0x35ee5e);}};if(helper['isBrowserstackInfra']()){const _0xd7c4d5=_0x33dbfc[_0x5b6177(0x127)][_0x5b6177(0x16d)]('|');let _0x965c7b=0x0;while(!![]){switch(_0xd7c4d5[_0x965c7b++]){case'0':this[_0x5b6177(0x104)]();continue;case'1':if(helper[_0x5b6177(0x166)](_0x1c9873[_0x5b6177(0x151)][_0x5b6177(0x128)]))this[_0x5b6177(0x10d)]=helper['getHttpAgent'](_0x1c9873['proxySettings'][_0x5b6177(0x128)]);else _0x1c9873[_0x5b6177(0x151)]['proxyUrl']&&(this[_0x5b6177(0x177)]=_0x1c9873[_0x5b6177(0x151)]['proxyUrl'],logger[_0x5b6177(0x153)](_0x5b6177(0x15a)+this['proxy_']));continue;case'2':_0x33dbfc['egXiJ'](isAccessibilityAutomationSession)&&_0x33dbfc['DkIRG'](setAccessibilityCapabilities,_0x1c9873);continue;case'3':this['setServer']();continue;case'4':logger[_0x5b6177(0x153)](_0x33dbfc[_0x5b6177(0x158)]);continue;case'5':globals['getGlobal'](_0x33dbfc[_0x5b6177(0x16c)])&&(!_0x33dbfc['UVShz'](setExtension,this,_0x1c9873)&&globals[_0x5b6177(0x10e)](_0x33dbfc[_0x5b6177(0x16c)],![]));continue;}break;}}const _0x26baeb=super['build']();return _0x26baeb[_0x5b6177(0x165)][_0x5b6177(0x135)](_0x18db9f=>{const _0x2ee572=_0x5b6177;try{const _0x45e986=_0x18db9f[_0x2ee572(0x159)][_0x2ee572(0x16e)](_0x33dbfc['dfNyF']);_0x45e986?(logger[_0x2ee572(0x153)](_0x2ee572(0x175)+_0x45e986),hubAllocator[_0x2ee572(0x130)](_0x45e986),helper[_0x2ee572(0x108)](_0x45e986)):logger[_0x2ee572(0x153)](_0x33dbfc[_0x2ee572(0x168)]);}catch(_0x2472ff){logger['debug']('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x2472ff);}}),_0x26baeb[_0x5b6177(0x155)]=0x0,_0x26baeb['then']&&_0x26baeb[_0x5b6177(0x135)](_0x3ad55f=>{const _0x1a3757=_0x5b6177,_0x485a50=_0x33dbfc[_0x1a3757(0x154)][_0x1a3757(0x16d)]('|');let _0xcad1e0=0x0;while(!![]){switch(_0x485a50[_0xcad1e0++]){case'0':_0x33dbfc[_0x1a3757(0x122)](overrideQuit,_0x3ad55f,_0x26baeb);continue;case'1':_0x3ad55f[_0x1a3757(0x149)]=async()=>{return await _0x36c96b['ChBPC'](getAccessibilityResults,_0x3ad55f,global);};continue;case'2':_0x33dbfc['DkIRG'](overrideTakeScreenshot,_0x3ad55f);continue;case'3':_0x33dbfc[_0x1a3757(0x122)](overrideExecute,_0x3ad55f,_0x1c9873);continue;case'4':helper[_0x1a3757(0x118)](_0x3ad55f,_0x1c9873);continue;case'5':_0x3ad55f[_0x1a3757(0x157)]=async()=>{const _0x39863d=_0x1a3757;return await _0x36c96b[_0x39863d(0x11a)](getAccessibilityResultsSummary,_0x3ad55f,global);};continue;}break;}}),_0x26baeb[_0x5b6177(0x157)]=async()=>{const _0x27e86e=_0x5b6177;return await _0x33dbfc[_0x27e86e(0x150)](getAccessibilityResultsSummary,_0x26baeb,global);},_0x26baeb[_0x5b6177(0x149)]=async()=>{const _0x5a45eb=_0x5b6177;return await _0x36c96b[_0x5a45eb(0x152)](getAccessibilityResults,_0x26baeb,global);},_0x33dbfc[_0x5b6177(0x142)](overrideTakeScreenshot,_0x26baeb),_0x33dbfc[_0x5b6177(0x142)](overrideQuit,_0x26baeb),helper['overrideGet'](_0x26baeb,_0x1c9873),_0x33dbfc[_0x5b6177(0x150)](overrideExecute,_0x26baeb,_0x1c9873),helper[_0x5b6177(0x148)](global[_0x5b6177(0x15b)])&&(global[_0x5b6177(0x15b)]=[]),helper[_0x5b6177(0x148)](global[_0x5b6177(0x115)])&&(global[_0x5b6177(0x115)]=[]),global['__driversArray']['push'](_0x26baeb),global[_0x5b6177(0x102)]=_0x26baeb,_0x33dbfc[_0x5b6177(0x113)](global[_0x5b6177(0x115)],undefined)&&global[_0x5b6177(0x115)][_0x5b6177(0x15e)](_0x26baeb),_0x4959a8&&helper['isUndefined'](_0x4959a8['global'][_0x5b6177(0x15b)])&&(_0x4959a8[_0x5b6177(0x162)][_0x5b6177(0x15b)]=[]),_0x4959a8&&_0x33dbfc['Gkams'](_0x4959a8[_0x5b6177(0x162)][_0x5b6177(0x115)],undefined)&&(_0x4959a8[_0x5b6177(0x162)]['__drivers'][_0x5b6177(0x15e)](_0x26baeb),_0x4959a8['global']['__driversArray']['push'](_0x26baeb)),_0x26baeb;}}return _0x1c3de6[_0x55e63e(0x103)]=_0x1c3de6['Builder'],_0x1c3de6[_0x55e63e(0x141)]=_0x49823a,_0x37d806['HttpClient']=_0x200777,_0x1c3de6;};module[a29_0x53e7f4(0x156)][a29_0x53e7f4(0x12c)]=modify;
|
|
1
|
+
const a29_0x172272=a29_0x9bdb;function a29_0x9bdb(_0x5b16f0,_0x2fc2d5){const _0x55605c=a29_0x5560();return a29_0x9bdb=function(_0x9bdb2a,_0x2bdedf){_0x9bdb2a=_0x9bdb2a-0x144;let _0x1d314e=_0x55605c[_0x9bdb2a];return _0x1d314e;},a29_0x9bdb(_0x5b16f0,_0x2fc2d5);}function a29_0x5560(){const _0x4763cd=['agent_','se:ieOptions','caps_','info','safari.options','ieOptions_','Modifying\x20webdriver\x20builder','set','26005NSHTJE','VKPnJ','object','EYtwC','getAccessibilityResults','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','getAccessibilityResultsSummary','isPacProxy','New\x20hub\x20url\x20set\x20to\x20','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','mergeDeep','RFJIM','../../../helpers/helper','./helpers/patchHelper','requireSeleniumWebdriver','CAPABILITY_KEY','KcZzN','NeetK','https://','url_','setGlobal','Builder','LmGeA','then','1090194qzQDSi','getHttpAgent','originalBuilder','Setting\x20Browserstack\x20capabilities','error','capability','Hnyof','aHqOm','overrideGet','BvDTr','safariOptions_','9965OfKtbm','debug','get','jPHSh','6EgThov','128lUZfcZ','196zofoLT','firefoxOptions_','goog:chromeOptions','send','COcyo','browserstackAgentObservability','khpOf','isUndefined','../../../hubAllocationMethods','UGcDP','DDYKn','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','chromeOptions','FioQn','options_','proxyUrl','proxy_','../../../helpers/logger','0|1|5|4|3|2','setCapabilities','browserStackLogLevel','isAccessibilityPlatform','storeOptimalHubUrl','edgeOptions_','RgXiJ','BUOlX','newHubUrl','../../../bin/utils/constants','peTXS','Hub\x20url\x20set\x20to\x20','chromeOptions_','session_','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','setLogLevel','winstonLogger','/wd/hub','OQgPi','JUgsn','310aIuhwA','getRequestOptions','logLevel','../../../helpers/patchHelpers','NyBXG','keys','push','forEach','../../../helpers/globals','requireHttpClient','XCNYK','OyMwS','__setBrowserOptions','proxySettings','fZYHB','__driversArray','capabilities_','dABUP','optimalHubUrl','24876dyoefZ','__driver','isBrowserstackInfra','HttpClient','Proxy\x20set\x20to\x20','/session','232761AhKmcc','__drivers','edgeOptions','2130942QfvYsp','build','setServer','NwHVA','getGlobal','146218KbCPrH','global','../../../helpers/accessibility-automation/helper','ZTEqH','UUvUw'];a29_0x5560=function(){return _0x4763cd;};return a29_0x5560();}(function(_0x4cfe41,_0x437287){const _0x4df718=a29_0x9bdb,_0x8039db=_0x4cfe41();while(!![]){try{const _0x3e548d=-parseInt(_0x4df718(0x1a5))/0x1+parseInt(_0x4df718(0x1ad))/0x2*(parseInt(_0x4df718(0x164))/0x3)+parseInt(_0x4df718(0x166))/0x4*(-parseInt(_0x4df718(0x160))/0x5)+parseInt(_0x4df718(0x155))/0x6+parseInt(_0x4df718(0x1ba))/0x7*(parseInt(_0x4df718(0x165))/0x8)+-parseInt(_0x4df718(0x19f))/0x9*(parseInt(_0x4df718(0x18c))/0xa)+parseInt(_0x4df718(0x1a8))/0xb;if(_0x3e548d===_0x437287)break;else _0x8039db['push'](_0x8039db['shift']());}catch(_0x3b59e5){_0x8039db['push'](_0x8039db['shift']());}}}(a29_0x5560,0x28471));const logger=require(a29_0x172272(0x177))[a29_0x172272(0x188)],helper=require(a29_0x172272(0x149)),constants=require(a29_0x172272(0x181)),hubAllocator=require(a29_0x172272(0x16e)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x172272(0x18f)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x172272(0x1af)),globals=require(a29_0x172272(0x194)),{overrideExecute}=require(a29_0x172272(0x14a)),modify=(_0x2e91ed,_0x4d618b=null,_0xe323f0=![])=>{const _0x245d3c=a29_0x172272,_0x294911={'COcyo':function(_0x280aad,_0x1a4fcf){return _0x280aad!==_0x1a4fcf;},'Phges':_0x245d3c(0x1a4),'qwVFo':function(_0x25cb04,_0x26a3a7){return _0x25cb04!==_0x26a3a7;},'FioQn':function(_0x5df298,_0xfb5e5a){return _0x5df298+_0xfb5e5a;},'xgeYg':_0x245d3c(0x14f),'NwHVA':_0x245d3c(0x189),'fZYHB':_0x245d3c(0x168),'UGcDP':_0x245d3c(0x172),'peTXS':'ms:edgeOptions','dtENl':_0x245d3c(0x1a7),'RgXiJ':'moz:firefoxOptions','EYtwC':'firefoxOptions','eZunj':_0x245d3c(0x1b6),'VKPnJ':_0x245d3c(0x1b3),'cLYez':'ieOptions','DDYKn':function(_0x31f7cb,_0xe07193){return _0x31f7cb===_0xe07193;},'NeetK':_0x245d3c(0x1bc),'RFJIM':_0x245d3c(0x158),'NrjsW':_0x245d3c(0x19e),'bJIBP':_0x245d3c(0x171),'OyMwS':function(_0x242ea1,_0x4ae5f7,_0x1b04c1){return _0x242ea1(_0x4ae5f7,_0x1b04c1);},'BvDTr':function(_0x65ff8f,_0x1220b5,_0x2365fe){return _0x65ff8f(_0x1220b5,_0x2365fe);},'UUvUw':function(_0x30fb01,_0xb3f6f9){return _0x30fb01(_0xb3f6f9);},'XCNYK':function(_0x16c130,_0xab71ca,_0x427af6){return _0x16c130(_0xab71ca,_0x427af6);},'khpOf':_0x245d3c(0x178),'dABUP':function(_0x4012aa){return _0x4012aa();},'Hnyof':function(_0x20fef4,_0x45fac0){return _0x20fef4(_0x45fac0);},'ZTEqH':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','OQgPi':_0x245d3c(0x17b),'aHqOm':function(_0x398153,_0x56b9ef,_0x116543){return _0x398153(_0x56b9ef,_0x116543);},'NyBXG':function(_0x228c5f,_0xd9990){return _0x228c5f(_0xd9990);},'JUgsn':function(_0x170053,_0x4b5796){return _0x170053!==_0x4b5796;},'BUOlX':function(_0x58a9c7,_0x47e940){return _0x58a9c7!==_0x47e940;},'KcZzN':_0x245d3c(0x1bf),'imvyA':_0x245d3c(0x1b8)},_0xa143f4=helper[_0x245d3c(0x195)]();let _0x53c32c;try{_0x53c32c=helper[_0x245d3c(0x14b)](),_0x53c32c['originalBuilder']&&(_0x53c32c[_0x245d3c(0x152)]=_0x53c32c[_0x245d3c(0x157)]);}catch(_0x44067f){return;}if(helper[_0x245d3c(0x1a1)]()){const _0x369206={};_0x369206[_0x245d3c(0x18e)]=_0x2e91ed[_0x245d3c(0x17a)],helper[_0x245d3c(0x187)](_0x369206,new Map(),new Map()),logger[_0x245d3c(0x1b5)](_0x294911[_0x245d3c(0x14d)]),logger[_0x245d3c(0x161)](_0x294911['imvyA']);}class _0xbe0a28 extends _0xa143f4[_0x245d3c(0x1a2)]{[_0x245d3c(0x169)](_0x3090d0){const _0x4917f1=_0x245d3c;if(_0x294911[_0x4917f1(0x16a)](_0x3090d0['path'],_0x294911['Phges'])&&_0x294911['qwVFo'](global[_0x4917f1(0x180)],''))try{global[_0x4917f1(0x180)]=_0x294911[_0x4917f1(0x173)](_0x294911[_0x4917f1(0x173)](_0x294911['xgeYg'],global[_0x4917f1(0x180)]),_0x294911[_0x4917f1(0x1ab)]),this[_0x4917f1(0x174)]=hubAllocator[_0x4917f1(0x18d)](global[_0x4917f1(0x180)]),logger['debug'](_0x4917f1(0x145)+global[_0x4917f1(0x180)]),global[_0x4917f1(0x180)]='';}catch(_0x2b1818){logger[_0x4917f1(0x159)](_0x2b1818);}return super['send'](_0x3090d0);}}class _0x219b09 extends _0x53c32c['Builder']{[_0x245d3c(0x1aa)](){const _0x48ab80=_0x245d3c;return this[_0x48ab80(0x150)]=helper['getHubUrl'](_0x2e91ed),logger[_0x48ab80(0x161)](_0x48ab80(0x183)+this['url_']),this;}[_0x245d3c(0x198)](_0x2e7b74){const _0x1f8723=_0x245d3c;let _0x2574fb={};for(const _0x2b596d in _0x2e7b74){switch(_0x2b596d){case _0x294911[_0x1f8723(0x19a)]:case _0x294911[_0x1f8723(0x16f)]:this[_0x1f8723(0x184)]&&(_0x2574fb=this[_0x1f8723(0x184)][_0x1f8723(0x162)](this[_0x1f8723(0x184)]['CAPABILITY_KEY'])||{},this['chromeOptions_'][_0x1f8723(0x1b9)](this[_0x1f8723(0x184)][_0x1f8723(0x14c)],helper[_0x1f8723(0x147)](_0x2574fb,_0x2e7b74[_0x2b596d])));break;case _0x294911[_0x1f8723(0x182)]:case _0x294911['dtENl']:this[_0x1f8723(0x17d)]&&(_0x2574fb=this[_0x1f8723(0x17d)]['get'](this[_0x1f8723(0x17d)][_0x1f8723(0x14c)])||{},this[_0x1f8723(0x17d)][_0x1f8723(0x1b9)](this[_0x1f8723(0x17d)][_0x1f8723(0x14c)],helper[_0x1f8723(0x147)](_0x2574fb,_0x2e7b74[_0x2b596d])));break;case _0x294911[_0x1f8723(0x17e)]:case _0x294911[_0x1f8723(0x1bd)]:this[_0x1f8723(0x167)]&&(_0x2574fb=this[_0x1f8723(0x167)][_0x1f8723(0x162)](this[_0x1f8723(0x167)][_0x1f8723(0x14c)])||{},this[_0x1f8723(0x167)][_0x1f8723(0x1b9)](this[_0x1f8723(0x167)][_0x1f8723(0x14c)],helper['mergeDeep'](_0x2574fb,_0x2e7b74[_0x2b596d])));break;case _0x294911['eZunj']:this[_0x1f8723(0x15f)]&&(_0x2574fb=this['safariOptions_'][_0x1f8723(0x162)](this[_0x1f8723(0x15f)][_0x1f8723(0x14c)])||{},this['safariOptions_'][_0x1f8723(0x1b9)](this[_0x1f8723(0x15f)][_0x1f8723(0x14c)],helper['mergeDeep'](_0x2574fb,_0x2e7b74[_0x2b596d])));break;case _0x294911[_0x1f8723(0x1bb)]:case _0x294911['cLYez']:this[_0x1f8723(0x1b7)]&&(_0x2574fb=this['ieOptions_'][_0x1f8723(0x162)](this['ieOptions_']['CAPABILITY_KEY'])||{},this[_0x1f8723(0x1b7)][_0x1f8723(0x1b9)](this[_0x1f8723(0x1b7)][_0x1f8723(0x14c)],helper[_0x1f8723(0x147)](_0x2574fb,_0x2e7b74[_0x2b596d])));break;}}}[_0x245d3c(0x179)](){const _0x1f843b=_0x245d3c;return logger[_0x1f843b(0x161)](_0x294911[_0x1f843b(0x148)]),this[_0x1f843b(0x198)](_0x2e91ed[_0x1f843b(0x15a)]),Object[_0x1f843b(0x191)](_0x2e91ed[_0x1f843b(0x15a)])[_0x1f843b(0x193)](_0x388f74=>{const _0x24b25d=_0x1f843b,_0x3e533c=this[_0x24b25d(0x19c)][_0x24b25d(0x162)](_0x388f74);_0x294911[_0x24b25d(0x170)](typeof _0x3e533c,_0x294911[_0x24b25d(0x14e)])?this[_0x24b25d(0x19c)]['set'](_0x388f74,helper['mergeDeep'](_0x3e533c,_0x2e91ed[_0x24b25d(0x15a)][_0x388f74])):this[_0x24b25d(0x19c)]['set'](_0x388f74,_0x2e91ed[_0x24b25d(0x15a)][_0x388f74]);}),this;}[_0x245d3c(0x1a9)](){const _0x29cd4e=_0x245d3c;if(helper[_0x29cd4e(0x1a1)]()){const _0x47bcbc=_0x294911[_0x29cd4e(0x16c)]['split']('|');let _0x350a5a=0x0;while(!![]){switch(_0x47bcbc[_0x350a5a++]){case'0':_0x294911[_0x29cd4e(0x19d)](isAccessibilityAutomationSession)&&_0x294911[_0x29cd4e(0x15b)](setAccessibilityCapabilities,_0x2e91ed);continue;case'1':this[_0x29cd4e(0x1aa)]();continue;case'2':logger[_0x29cd4e(0x161)](_0x294911[_0x29cd4e(0x1b0)]);continue;case'3':globals[_0x29cd4e(0x1ac)](_0x294911[_0x29cd4e(0x18a)])&&(!_0x294911[_0x29cd4e(0x15c)](setExtension,this,_0x2e91ed)&&globals[_0x29cd4e(0x151)](_0x294911['OQgPi'],![]));continue;case'4':if(helper[_0x29cd4e(0x144)](_0x2e91ed['proxySettings'][_0x29cd4e(0x175)]))this[_0x29cd4e(0x1b2)]=helper[_0x29cd4e(0x156)](_0x2e91ed[_0x29cd4e(0x199)][_0x29cd4e(0x175)]);else _0x2e91ed[_0x29cd4e(0x199)][_0x29cd4e(0x175)]&&(this[_0x29cd4e(0x176)]=_0x2e91ed[_0x29cd4e(0x199)][_0x29cd4e(0x175)],logger['debug'](_0x29cd4e(0x1a3)+this[_0x29cd4e(0x176)]));continue;case'5':this['setCapabilities']();continue;}break;}}const _0x432818=super[_0x29cd4e(0x1a9)]();return _0x432818[_0x29cd4e(0x185)]['then'](_0x97e363=>{const _0x47c974=_0x29cd4e;try{const _0x5de083=_0x97e363[_0x47c974(0x1b4)][_0x47c974(0x162)](_0x294911['NrjsW']);_0x5de083?(logger[_0x47c974(0x161)](_0x47c974(0x186)+_0x5de083),hubAllocator['updateHubUrl'](_0x5de083),helper[_0x47c974(0x17c)](_0x5de083)):logger[_0x47c974(0x161)](_0x294911['bJIBP']);}catch(_0x4ff8ac){logger['debug'](_0x47c974(0x146)+_0x4ff8ac);}}),_0x432818['quitCount_']=0x0,_0x432818[_0x29cd4e(0x154)]&&_0x432818[_0x29cd4e(0x154)](_0x32ad76=>{const _0x1d29a9=_0x29cd4e,_0x55ef10={'LmGeA':function(_0xf93ff4,_0x95b03,_0x227cfa){return _0x294911['OyMwS'](_0xf93ff4,_0x95b03,_0x227cfa);},'jPHSh':function(_0x37cdfd,_0x59cbe6,_0x101dae){const _0x4b6d8d=a29_0x9bdb;return _0x294911[_0x4b6d8d(0x15e)](_0x37cdfd,_0x59cbe6,_0x101dae);}};_0x294911[_0x1d29a9(0x197)](overrideQuit,_0x32ad76,_0x432818),_0x294911[_0x1d29a9(0x1b1)](overrideTakeScreenshot,_0x32ad76),helper['overrideGet'](_0x32ad76,_0x2e91ed),_0x294911[_0x1d29a9(0x15e)](overrideExecute,_0x32ad76,_0x2e91ed),_0x32ad76['getAccessibilityResultsSummary']=async()=>{const _0x151913=_0x1d29a9;return await _0x55ef10[_0x151913(0x153)](getAccessibilityResultsSummary,_0x32ad76,global);},_0x32ad76[_0x1d29a9(0x1be)]=async()=>{const _0xb26918=_0x1d29a9;return await _0x55ef10[_0xb26918(0x163)](getAccessibilityResults,_0x32ad76,global);};}),_0x432818[_0x29cd4e(0x1c0)]=async()=>{const _0x438f3f=_0x29cd4e;return await _0x294911[_0x438f3f(0x196)](getAccessibilityResultsSummary,_0x432818,global);},_0x432818[_0x29cd4e(0x1be)]=async()=>{return await _0x294911['OyMwS'](getAccessibilityResults,_0x432818,global);},_0x294911[_0x29cd4e(0x1b1)](overrideTakeScreenshot,_0x432818),_0x294911[_0x29cd4e(0x190)](overrideQuit,_0x432818),helper[_0x29cd4e(0x15d)](_0x432818,_0x2e91ed),_0x294911[_0x29cd4e(0x15e)](overrideExecute,_0x432818,_0x2e91ed),helper[_0x29cd4e(0x16d)](global[_0x29cd4e(0x19b)])&&(global[_0x29cd4e(0x19b)]=[]),helper['isUndefined'](global[_0x29cd4e(0x1a6)])&&(global['__drivers']=[]),global[_0x29cd4e(0x19b)][_0x29cd4e(0x192)](_0x432818),global[_0x29cd4e(0x1a0)]=_0x432818,_0x294911[_0x29cd4e(0x18b)](global['__drivers'],undefined)&&global['__drivers'][_0x29cd4e(0x192)](_0x432818),_0x4d618b&&helper[_0x29cd4e(0x16d)](_0x4d618b[_0x29cd4e(0x1ae)]['__driversArray'])&&(_0x4d618b['global'][_0x29cd4e(0x19b)]=[]),_0x4d618b&&_0x294911[_0x29cd4e(0x17f)](_0x4d618b[_0x29cd4e(0x1ae)][_0x29cd4e(0x1a6)],undefined)&&(_0x4d618b[_0x29cd4e(0x1ae)][_0x29cd4e(0x1a6)][_0x29cd4e(0x192)](_0x432818),_0x4d618b[_0x29cd4e(0x1ae)][_0x29cd4e(0x19b)]['push'](_0x432818)),_0x432818;}}return _0x53c32c[_0x245d3c(0x157)]=_0x53c32c['Builder'],_0x53c32c['Builder']=_0x219b09,_0xa143f4['HttpClient']=_0xbe0a28,_0x53c32c;};module['exports'][a29_0x172272(0x16b)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a30_0x25c1(_0x2ba2a0,_0x614fb3){const _0x1226bc=a30_0x1226();return a30_0x25c1=function(_0x25c144,_0x4a3667){_0x25c144=_0x25c144-0x109;let _0x1daf7d=_0x1226bc[_0x25c144];return _0x1daf7d;},a30_0x25c1(_0x2ba2a0,_0x614fb3);}const a30_0x407c3e=a30_0x25c1;(function(_0x5ce2b7,_0xffde2b){const _0xd7d449=a30_0x25c1,_0x452023=_0x5ce2b7();while(!![]){try{const _0x5c1e52=-parseInt(_0xd7d449(0x10b))/0x1+-parseInt(_0xd7d449(0x10e))/0x2+-parseInt(_0xd7d449(0x111))/0x3+parseInt(_0xd7d449(0x10f))/0x4+parseInt(_0xd7d449(0x10d))/0x5+parseInt(_0xd7d449(0x113))/0x6+-parseInt(_0xd7d449(0x109))/0x7*(-parseInt(_0xd7d449(0x110))/0x8);if(_0x5c1e52===_0xffde2b)break;else _0x452023['push'](_0x452023['shift']());}catch(_0x3b7701){_0x452023['push'](_0x452023['shift']());}}}(a30_0x1226,0x4534a));const requestSpy=require(a30_0x407c3e(0x115)),constants=require(a30_0x407c3e(0x10c)),{addRequestSpy}=require(a30_0x407c3e(0x114));exports[a30_0x407c3e(0x112)]={'beforeAll'(){const _0xaf5342=a30_0x407c3e,_0x3ac5fa={'CPebs':function(_0x46acd0){return _0x46acd0();}},_0x23ba18='browserstack internal helper hook';_0x3ac5fa[_0xaf5342(0x116)](addRequestSpy);},'afterAll'(){const _0x375e9c=a30_0x407c3e,_0x3aa91d='browserstack internal helper hook';this[_0x375e9c(0x10a)](0xea60),requestSpy[_0x375e9c(0x117)]();}};function a30_0x1226(){const _0x3e9717=['1459120rdjuLd','891006BVQlXy','898512alJTqd','40NfSaQo','1188423OFnEWT','mochaHooks','249696mTwieY','../../../helpers/test-observability/utils','../../../helpers/request-spy','CPebs','restore','1007671WCdAbr','timeout','152723dRNmrI','../../../bin/utils/constants'];a30_0x1226=function(){return _0x3e9717;};return a30_0x1226();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a31_0x4427(){const _0x34b229=['nPIfg','getBrowserName','LoYTy','string','CyfzD','toJSON','slice','GGZdn','28701LPdMhR','concat','lodash','getPlatform','1784965rUDmyD','52876CiecnP','aRxVJ','_beforeEach','4KjRDRw','obutc','_beforeAll','parent','WSMpn','toISOString','hookAnalyticsId','52146SrmtWW','rTEIf','getHookSkippedTests','zvlmO','PGDtd','passed','wsmaY','platformVersion','failed','56gCBfaw','gblAm','iLCOd','WPCKV','getHooksForTest','hook:','1217099YpLDGO','hook','getCapabilities','state','101211NtuzcA','zClwR','getHookDetails','60lOGxbS','PqNcc','qaCog','Uurxf','fXguy','1984oWLyeC','JtjRP','tests','push','get','reduce','../../../helpers/test-observability/utils','120910iyGMWN','../../../helpers/test-observability/constants','generic','emit','mapTestHooks','693Jndaid','umnAL','unknown_grid','ZFEJR','SAHuE','aWsUK','split','IeZCW','bs:addPlatformDetails:','irkoR','__cloud_provider___','vYgSs','pid','markedStatus','forEach','uuid','YFekI','_afterAll','8jrvzjE','browserstack','../../../helpers/testhub/utils','indexOf','TEST_PLATFORM','suites','../../../helpers/helper','filter','getSession','jEbde','SmrIH'];a31_0x4427=function(){return _0x34b229;};return a31_0x4427();}const a31_0x13e08c=a31_0x23f6;(function(_0x5f3761,_0x24c00d){const _0x1b1225=a31_0x23f6,_0x3076a1=_0x5f3761();while(!![]){try{const _0x127b5a=parseInt(_0x1b1225(0xe0))/0x1*(-parseInt(_0x1b1225(0xc8))/0x2)+parseInt(_0x1b1225(0xfd))/0x3*(-parseInt(_0x1b1225(0xe3))/0x4)+-parseInt(_0x1b1225(0xdf))/0x5+parseInt(_0x1b1225(0xea))/0x6*(-parseInt(_0x1b1225(0xf3))/0x7)+-parseInt(_0x1b1225(0x105))/0x8*(-parseInt(_0x1b1225(0xdb))/0x9)+-parseInt(_0x1b1225(0x10c))/0xa*(-parseInt(_0x1b1225(0x111))/0xb)+-parseInt(_0x1b1225(0x100))/0xc*(parseInt(_0x1b1225(0xf9))/0xd);if(_0x127b5a===_0x24c00d)break;else _0x3076a1['push'](_0x3076a1['shift']());}catch(_0x1bcda2){_0x3076a1['push'](_0x3076a1['shift']());}}}(a31_0x4427,0x64c38));function a31_0x23f6(_0xf634e8,_0x409c25){const _0x442752=a31_0x4427();return a31_0x23f6=function(_0x23f6d6,_0x9e033f){_0x23f6d6=_0x23f6d6-0xc1;let _0x43c19b=_0x442752[_0x23f6d6];return _0x43c19b;},a31_0x23f6(_0xf634e8,_0x409c25);}const {v4:uuidv4}=require(a31_0x13e08c(0xc5)),{name,version}=require('../../../../package.json'),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x13e08c(0x10b)),{consoleHolder}=require(a31_0x13e08c(0x10d)),{getPlatformVersion}=require(a31_0x13e08c(0xce)),{shouldProcessEventForTesthub}=require(a31_0x13e08c(0xca)),{isFunction}=require(a31_0x13e08c(0xdd)),{patchConsoleLogger}=require(a31_0x13e08c(0x10b));patchConsoleLogger(),exports['getTestEnv']=()=>{const _0x5641d0=a31_0x13e08c,_0x416f97={'ZFEJR':_0x5641d0(0x10e),'PqNcc':function(_0x20d3ff){return _0x20d3ff();}};return{'ci':_0x416f97[_0x5641d0(0x114)],'key':_0x416f97[_0x5641d0(0x101)](uuidv4),'version':version,'collector':'js-'+name};},exports[a31_0x13e08c(0xff)]=_0x26aaae=>{const _0x2ce564=a31_0x13e08c,_0x1ed6ba={};_0x1ed6ba[_0x2ce564(0xe7)]=function(_0x248915,_0x37415b){return _0x248915!==_0x37415b;},_0x1ed6ba['BXhlM']=_0x2ce564(0xd6),_0x1ed6ba[_0x2ce564(0x102)]=_0x2ce564(0xf8),_0x1ed6ba[_0x2ce564(0x116)]=function(_0x294246,_0x50243b){return _0x294246!==_0x50243b;},_0x1ed6ba[_0x2ce564(0xda)]=_0x2ce564(0xfa);const _0x42fed9=_0x1ed6ba;if(!_0x26aaae||_0x42fed9[_0x2ce564(0xe7)](typeof _0x26aaae,_0x42fed9['BXhlM']))return[null,null];if(_0x42fed9[_0x2ce564(0xe7)](_0x26aaae[_0x2ce564(0xcb)](_0x42fed9['qaCog']),-0x1)){const _0x4e7c77=_0x26aaae[_0x2ce564(0x117)](_0x42fed9[_0x2ce564(0x102)]);return[_0x4e7c77[0x0][_0x2ce564(0xd9)](0x0,-0x1)['split']('\x22')[0x1],_0x4e7c77[0x1]['substring'](0x1)];}else{if(_0x42fed9[_0x2ce564(0x116)](_0x26aaae[_0x2ce564(0xcb)](_0x42fed9['GGZdn']),-0x1)){const _0x182e17=_0x26aaae[_0x2ce564(0x117)](_0x42fed9[_0x2ce564(0xda)]);return[_0x182e17[0x0]['slice'](0x0,-0x1)['split']('\x22')[0x1],_0x26aaae];}}return[null,null];},exports[a31_0x13e08c(0xf7)]=_0x3cfc7f=>{const _0x31a168=a31_0x13e08c,_0x47f378={'cAfLK':function(_0x5cec1f,_0x32b05d){return _0x5cec1f(_0x32b05d);},'irkoR':'_beforeAll','Uurxf':'_afterAll','ItaqP':'_beforeEach','WnQmI':'_afterEach'};if(!_0x3cfc7f||!_0x3cfc7f['parent'])return[];const _0x414512=[];return[_0x47f378[_0x31a168(0x11a)],_0x47f378[_0x31a168(0x103)],_0x47f378['ItaqP'],_0x47f378['WnQmI']]['forEach'](_0x4144c5=>{const _0x445b7f=_0x31a168,_0x224100={'WPCKV':function(_0x3c4e8c,_0x4d1c0b){return _0x47f378['cAfLK'](_0x3c4e8c,_0x4d1c0b);}},_0x5e3bd1=_0x3cfc7f[_0x445b7f(0xe6)][_0x4144c5]||[];_0x5e3bd1[_0x445b7f(0xc4)](_0x456613=>{const _0x1a92e1=_0x445b7f;_0x456613['hookAnalyticsId']&&!_0x224100[_0x1a92e1(0xf6)](isInternalHook,_0x456613['fn'])&&_0x414512[_0x1a92e1(0x108)](_0x456613[_0x1a92e1(0xe9)]);});}),[..._0x414512,...exports['getHooksForTest'](_0x3cfc7f[_0x31a168(0xe6)])];},exports[a31_0x13e08c(0x110)]=_0x1f60a9=>{const _0x177cf7=a31_0x13e08c,_0xf347b3={'wsmaY':function(_0x2ecbb0){return _0x2ecbb0();},'PGDtd':function(_0x279fbb,_0x726804){return _0x279fbb===_0x726804;},'umnAL':'_afterEach','aRxVJ':_0x177cf7(0xe5),'IeZCW':_0x177cf7(0xc7),'iLCOd':_0x177cf7(0xe2)};if(!_0x1f60a9||!_0x1f60a9[_0x177cf7(0xe6)])return;[_0xf347b3[_0x177cf7(0xe1)],_0xf347b3[_0x177cf7(0x118)],_0xf347b3[_0x177cf7(0xf5)],_0xf347b3[_0x177cf7(0x112)]][_0x177cf7(0xc4)](_0x428289=>{const _0x6c930a=_0x177cf7,_0x1581bd={'fXguy':function(_0x97ef76){const _0x16ea9f=a31_0x23f6;return _0xf347b3[_0x16ea9f(0xf0)](_0x97ef76);},'obutc':function(_0x304e57,_0x3f3e80){const _0x3e367c=a31_0x23f6;return _0xf347b3[_0x3e367c(0xee)](_0x304e57,_0x3f3e80);},'LoYTy':_0xf347b3[_0x6c930a(0x112)]},_0x207064=_0x1f60a9[_0x6c930a(0xe6)][_0x428289]||[];_0x207064['forEach'](_0x1e5bc7=>{const _0x58c274=_0x6c930a;if(!_0x1e5bc7[_0x58c274(0xe9)])_0x1e5bc7[_0x58c274(0xe9)]=_0x1581bd[_0x58c274(0x104)](uuidv4);else _0x1e5bc7[_0x58c274(0xc3)]&&_0x1581bd[_0x58c274(0xe4)](_0x428289,_0x1581bd[_0x58c274(0xd5)])&&(_0x1e5bc7[_0x58c274(0xe9)]=_0x1581bd[_0x58c274(0x104)](uuidv4),delete _0x1e5bc7[_0x58c274(0xc3)]);});}),exports[_0x177cf7(0x110)](_0x1f60a9['parent']);},exports['sendPlatformDetails']=async(_0xd40d5d,_0x4576c0)=>{const _0x5b53fa=a31_0x13e08c,_0x2de163={'YFekI':function(_0x231c60){return _0x231c60();},'JtjRP':function(_0x1a92e4,_0x45f3a3){return _0x1a92e4(_0x45f3a3);},'rTEIf':_0x5b53fa(0xf1),'SAHuE':function(_0x486ae7,_0x3624fc){return _0x486ae7(_0x3624fc);},'nPIfg':function(_0x2f55b5,_0x227d19){return _0x2f55b5===_0x227d19;},'gblAm':_0x5b53fa(0xc9),'SmrIH':_0x5b53fa(0x113),'cRVbc':_0x5b53fa(0xcc)};try{if(!_0x2de163[_0x5b53fa(0xc6)](shouldProcessEventForTesthub))return;const _0x15b800=await _0xd40d5d[_0x5b53fa(0xfb)](),_0x4b723d=await _0xd40d5d[_0x5b53fa(0xd0)](),_0x35c5e6={},_0x15ff6a=Object['fromEntries'](_0x4b723d[_0x5b53fa(0xfb)]()['map_']),_0x5c37f7={'product':_0x2de163[_0x5b53fa(0x106)](getObservabilityLinkedProductName,_0x15ff6a),'capabilities':_0x15ff6a,'platform':_0x15b800[_0x5b53fa(0xde)](),'platform_version':_0x15b800[_0x5b53fa(0x109)](_0x2de163[_0x5b53fa(0xeb)])?_0x15b800['get'](_0x2de163[_0x5b53fa(0xeb)]):_0x2de163['SAHuE'](getPlatformVersion,_0x2de163[_0x5b53fa(0xd3)](global[_0x5b53fa(0x11b)],_0x2de163[_0x5b53fa(0xf4)])),'browser':_0x15b800[_0x5b53fa(0xd4)](),'browser_version':_0x15b800['getBrowserVersion'](),'session_id':_0x4b723d[_0x5b53fa(0xd8)]()};global[_0x5b53fa(0x11b)]?_0x35c5e6[global['__cloud_provider___']]=_0x5c37f7:_0x35c5e6[_0x2de163[_0x5b53fa(0xd2)]]=_0x5c37f7,process[_0x5b53fa(0x10f)](_0x5b53fa(0x119)+process[_0x5b53fa(0xc2)],{'timestamp':new Date()[_0x5b53fa(0xe8)](),'level':null,'message':null,'kind':_0x2de163['cRVbc'],'http_response':_0x35c5e6,'uuid':_0x4576c0});}catch(_0x4cea7c){_0x2de163[_0x5b53fa(0x115)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x4cea7c);}},exports[a31_0x13e08c(0xec)]=_0x172631=>{const _0xb8e3f0=a31_0x13e08c,_0x43edfe={};_0x43edfe['CyfzD']=function(_0x30103b,_0x4cf801){return _0x30103b!==_0x4cf801;},_0x43edfe[_0xb8e3f0(0xd1)]=_0xb8e3f0(0xfa),_0x43edfe[_0xb8e3f0(0xc1)]=function(_0xd9f8fe,_0x15e6d9){return _0xd9f8fe!==_0x15e6d9;},_0x43edfe[_0xb8e3f0(0xed)]=_0xb8e3f0(0xef),_0x43edfe[_0xb8e3f0(0xfe)]=_0xb8e3f0(0xf2);const _0x4d1b64=_0x43edfe,_0x2fb8d4=_0x172631[_0xb8e3f0(0xcd)][_0xb8e3f0(0x10a)]((_0x46eff0,_0x23519b)=>{const _0x35d744=_0xb8e3f0,_0x5df7a1=exports['getHookSkippedTests'](_0x23519b);return _0x5df7a1&&(_0x46eff0=_0x46eff0[_0x35d744(0xdc)](_0x5df7a1)),_0x46eff0;},[]),_0x1afd7d=_0x172631[_0xb8e3f0(0x107)][_0xb8e3f0(0xcf)](_0x11466f=>{const _0x2a77c5=_0xb8e3f0,_0x3a5d2e=_0x4d1b64[_0x2a77c5(0xd7)](_0x11466f['type'],_0x4d1b64[_0x2a77c5(0xd1)])&&!_0x11466f[_0x2a77c5(0xc3)]&&_0x4d1b64[_0x2a77c5(0xc1)](_0x11466f['state'],_0x4d1b64[_0x2a77c5(0xed)])&&_0x4d1b64['vYgSs'](_0x11466f[_0x2a77c5(0xfc)],_0x4d1b64[_0x2a77c5(0xfe)])&&!_0x11466f['pending'];return _0x3a5d2e;});return _0x1afd7d[_0xb8e3f0(0xdc)](_0x2fb8d4);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x3fbd23=a32_0x1e0d;function a32_0x1e0d(_0x511e30,_0x244994){const _0x29485b=a32_0x2948();return a32_0x1e0d=function(_0x1e0da8,_0x1f9a91){_0x1e0da8=_0x1e0da8-0x12a;let _0x475be7=_0x29485b[_0x1e0da8];return _0x475be7;},a32_0x1e0d(_0x511e30,_0x244994);}(function(_0x54ea50,_0x337e12){const _0x408ec0=a32_0x1e0d,_0x1b2a21=_0x54ea50();while(!![]){try{const _0x588b4d=-parseInt(_0x408ec0(0x19f))/0x1+-parseInt(_0x408ec0(0x158))/0x2+-parseInt(_0x408ec0(0x1c6))/0x3+-parseInt(_0x408ec0(0x18a))/0x4*(-parseInt(_0x408ec0(0x14b))/0x5)+parseInt(_0x408ec0(0x174))/0x6+parseInt(_0x408ec0(0x19b))/0x7*(parseInt(_0x408ec0(0x12d))/0x8)+parseInt(_0x408ec0(0x151))/0x9;if(_0x588b4d===_0x337e12)break;else _0x1b2a21['push'](_0x1b2a21['shift']());}catch(_0x2afb3c){_0x1b2a21['push'](_0x1b2a21['shift']());}}}(a32_0x2948,0x56d8b));const util=require(a32_0x3fbd23(0x18e)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x3fbd23(0x132)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x3fbd23(0x14d)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x3fbd23(0x1ac)),PerformanceTester=require(a32_0x3fbd23(0x12a)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),scripts=require(a32_0x3fbd23(0x1c3)),globals=require(a32_0x3fbd23(0x1d7)),logger=require(a32_0x3fbd23(0x139))[a32_0x3fbd23(0x171)],{shouldProcessEventForTesthub}=require(a32_0x3fbd23(0x1ad)),testHubConstants=require(a32_0x3fbd23(0x18c));function a32_0x2948(){const _0xe50a1a=['browserstackSessionName','index','631956LNPuiL','error','bstackA11yShouldScan','UsZXa','kOHKG','BROWSERSTACK_TESTHUB_UUID','afterEach','capabilities','avvlm','nUnTR','thBuildUuid','testcase','isArray','__platformCaps','__skipSessionName','protocol','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','end','wEFOg','FfoHV','info','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','8492Icjfsr','wtehM','../../helpers/testhub/constants','appium:app','util','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','RRyzb','.\x20Error\x20:','sGcEi','AQiNh','executeScript','dRFZX','debug','finally','WatdH','QcoPd','1811453MHLQWT','driverCleanup','hzoLr','elcQp','479008hnRELu','FxNsK','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','Passed','mWjEw','__error_messages__','MlYMH','eZpJU','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','sessionNameSet__','shift','bezbY','../../helpers/helper','../../helpers/testhub/utils','tyxEa','measureWrapper','setGlobal','\x22}}','currentTest','UGYHm','yTlCB','http:','passed','ZjGpC','PERFORM_SCAN','afterTest','getGlobal','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','iNWWs','TNPJZ','timeout','OjXNh','zjPgT','testAnalyticsId','accessibilityScanStarted','../../helpers/accessibility-automation/scripts','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','command','1294434OInhlb','join','beforeAll','hKEBE','Failed\x20to\x20store\x20session\x20name:\x20','shouldScanTestForAccessibility','yAbhD','tBvOG','Failed:\x20','__sessionFailed','WBbis','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','err','getCurrentUrl','executeAsyncScript','FNnaW','VYYZE','../../helpers/globals','SjNOL','../../helpers/performance/performance-tester','rWHmb','aCjOT','8xQcIWc','crPbm','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','BROWSERSTACK_TESTHUB_JWT','__drivers','../../helpers/accessibility-automation/helper','qlKfb','saveTestResults','length','LHPIZ','thTestRunUuid','Performing\x20scan\x20before\x20saving\x20results','../../helpers/logger','percy','Automate\x20test\x20case\x20execution\x20has\x20started.','SDK_HOOK','format','isAccessibilityPlatform','SYNC','IFlPM','cIRbV','SESSION_NAME','browserstackTestName','XKPRK','thJwtToken','ObservabilitySync:','WRTBk','mochaHooks','jidjG','KhsRg','360jcGVhx','dGflg','./test-observability/mochaUtils','VEwne','SAVE_RESULTS','session_','9167616towcaV','sessionName','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','quitCount_','ROwYF','start','app','538752tydoUO','SukGC','beforeEach','UZmWY','Iezde','push','FumSi','pJJUx','performScan','message','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','ywIPJ','env','now','cirEU','ofYvX','stringify','BdgAF','\x20-\x20','initQuit','TFaVH','percyCaptureMode','titlePath','ZpgJY','OSwco','winstonLogger'];a32_0x2948=function(){return _0xe50a1a;};return a32_0x2948();}exports[a32_0x3fbd23(0x148)]={'beforeAll'(){const _0x40343a=a32_0x3fbd23,_0x301b94={'avvlm':function(_0x204b66,_0x3b9c38,_0x5ec2a5,_0x4dc117){return _0x204b66(_0x3b9c38,_0x5ec2a5,_0x4dc117);},'BWYQB':'failed','RVWSL':'\x20|\x20','dGflg':function(_0x29a672,_0x177bca,_0x14f90c){return _0x29a672(_0x177bca,_0x14f90c);},'AQiNh':'passed','jidjG':function(_0x129145){return _0x129145();},'FxNsK':function(_0x5d0359,_0x5e1f0c,_0x2127d9){return _0x5d0359(_0x5e1f0c,_0x2127d9);},'bZMGF':_0x40343a(0x173),'Iezde':_0x40343a(0x1c8)};PerformanceTester['startMonitoring']();const _0x564cb7='browserstack internal helper hook';PerformanceTester[_0x40343a(0x1af)](PerformanceSdkEvents[_0x40343a(0x13c)],()=>{const _0x26491c=_0x40343a;global['__error_messages__']=[],global[_0x26491c(0x1cf)]=![],global[_0x26491c(0x19c)]=async()=>{const _0x1fdbd1=_0x26491c;let _0x6f104e=![];try{await global[_0x1fdbd1(0x131)][0x0][_0x1fdbd1(0x150)],_0x6f104e=!![],global[_0x1fdbd1(0x1cf)]?await _0x301b94[_0x1fdbd1(0x17c)](markSessionStatus,global['__drivers'][0x0],_0x301b94['BWYQB'],global['__error_messages__'][_0x1fdbd1(0x1c7)](_0x301b94['RVWSL'])):await _0x301b94[_0x1fdbd1(0x14c)](markSessionStatus,global[_0x1fdbd1(0x131)][0x0],_0x301b94[_0x1fdbd1(0x194)]);}catch(_0x5ae9f3){logger[_0x1fdbd1(0x197)](_0x1fdbd1(0x153)+_0x5ae9f3);}global['__error_messages__']=[],global[_0x1fdbd1(0x1cf)]=![];if(_0x6f104e)try{try{_0x301b94[_0x1fdbd1(0x149)](shouldProcessEventForTesthub)&&(global[_0x1fdbd1(0x131)][0x0]&&await _0x301b94[_0x1fdbd1(0x14c)](sendPlatformDetails,global[_0x1fdbd1(0x131)][0x0],this[_0x1fdbd1(0x1b2)]?this[_0x1fdbd1(0x1b2)][_0x1fdbd1(0x1c1)]:null));}catch(_0x1d809c){logger[_0x1fdbd1(0x197)](_0x1fdbd1(0x18f)+_0x1d809c);}await global['__drivers'][0x0][_0x1fdbd1(0x16b)]();}catch(_0x59284e){logger[_0x1fdbd1(0x197)](_0x1fdbd1(0x184)+_0x59284e);}};},{'platform':_0x301b94[_0x40343a(0x1a0)](nestedKeyValue,global[_0x40343a(0x181)],[_0x301b94['bZMGF']]),'hookType':_0x301b94[_0x40343a(0x15c)]})();},'beforeEach'(_0x1ccca6){const _0x33da29=a32_0x3fbd23,_0x58cc84={'UgmtD':function(_0x587809){return _0x587809();},'yTlCB':function(_0x86fbeb,_0x3c04d3){return _0x86fbeb>_0x3c04d3;},'OjXNh':_0x33da29(0x16a),'wSZKE':function(_0x245a7b,_0x117619,_0x31ad42){return _0x245a7b(_0x117619,_0x31ad42);},'QcoPd':_0x33da29(0x176),'tyxEa':_0x33da29(0x13e),'SukGC':function(_0x534997,_0x1ad641){return _0x534997===_0x1ad641;},'hzoLr':_0x33da29(0x1b5),'eZpJU':'https:','oSdCg':_0x33da29(0x189),'KhsRg':_0x33da29(0x13b),'fqBWT':_0x33da29(0x143),'TFaVH':_0x33da29(0x173),'IFlPM':_0x33da29(0x15a)};globals['setGlobal'](_0x58cc84['fqBWT'],this[_0x33da29(0x1b2)][_0x33da29(0x16e)]()[_0x33da29(0x1c7)](_0x58cc84['OjXNh'])),PerformanceTester[_0x33da29(0x1af)](PerformanceSdkEvents[_0x33da29(0x13c)],()=>{const _0x46adf7=_0x33da29,_0x4863fe={'UGYHm':function(_0x452379,_0x89d5e7){const _0x8b5758=a32_0x1e0d;return _0x58cc84[_0x8b5758(0x1b4)](_0x452379,_0x89d5e7);},'RuMPY':_0x58cc84[_0x46adf7(0x1bf)],'AppQY':function(_0x56f3bb,_0x3810bc,_0x101ccc){return _0x58cc84['wSZKE'](_0x56f3bb,_0x3810bc,_0x101ccc);},'NgqxT':_0x58cc84[_0x46adf7(0x19a)],'RRyzb':function(_0x3a19a0){return _0x58cc84['UgmtD'](_0x3a19a0);},'IifSi':function(_0x581292,_0x5f292d){const _0x25fcbb=_0x46adf7;return _0x58cc84[_0x25fcbb(0x1b4)](_0x581292,_0x5f292d);},'XKPRK':_0x58cc84[_0x46adf7(0x1ae)],'bezbY':function(_0xe2f477,_0x4356b1){const _0x17d79e=_0x46adf7;return _0x58cc84[_0x17d79e(0x159)](_0xe2f477,_0x4356b1);},'FumSi':_0x58cc84[_0x46adf7(0x19d)],'zjPgT':_0x58cc84[_0x46adf7(0x1a6)],'EiAET':_0x58cc84['oSdCg'],'PGahx':_0x58cc84[_0x46adf7(0x14a)]},_0x30b5bc='browserstack internal helper hook';new Promise(async _0x3ca681=>{const _0x3ab79d=_0x46adf7;let _0x578621=!![];try{_0x4863fe[_0x3ab79d(0x1b3)](global['__drivers'][_0x3ab79d(0x135)],0x1)&&(await global[_0x3ab79d(0x19c)](),global[_0x3ab79d(0x131)][_0x3ab79d(0x1aa)]()),_0x4863fe[_0x3ab79d(0x1b3)](global['__drivers'][0x0][_0x3ab79d(0x154)],0x0)&&(_0x578621=![],await global[_0x3ab79d(0x19c)]());}catch(_0x55020a){logger[_0x3ab79d(0x197)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x55020a);}try{Array[_0x3ab79d(0x180)](global[_0x3ab79d(0x131)])&&global[_0x3ab79d(0x131)][0x0]&&(global[_0x3ab79d(0x131)][0x0][_0x3ab79d(0x172)]=this[_0x3ab79d(0x1b2)][_0x3ab79d(0x16e)]()['join'](_0x4863fe['RuMPY'])),global[_0x3ab79d(0x172)]=this[_0x3ab79d(0x1b2)][_0x3ab79d(0x16e)]()[_0x3ab79d(0x1c7)](_0x4863fe['RuMPY']);}catch(_0x55188f){logger[_0x3ab79d(0x197)](_0x3ab79d(0x1ca)+_0x55188f);}this[_0x3ab79d(0x1b2)][_0x3ab79d(0x1cb)]=_0x4863fe['AppQY'](shouldScanTestForAccessibility,this[_0x3ab79d(0x1b2)]['titlePath'](),!![]),globals[_0x3ab79d(0x1b0)](_0x4863fe['NgqxT'],this[_0x3ab79d(0x1b2)]['shouldScanTestForAccessibility']),this[_0x3ab79d(0x1b2)][_0x3ab79d(0x1c2)]=!![];if(_0x4863fe[_0x3ab79d(0x191)](isAccessibilityAutomationSession)&&_0x578621&&Array[_0x3ab79d(0x180)](global[_0x3ab79d(0x131)])&&_0x4863fe['IifSi'](global[_0x3ab79d(0x131)][_0x3ab79d(0x135)],0x0)&&globals['getGlobal'](_0x4863fe[_0x3ab79d(0x144)]))try{const _0x34b5ec=await global[_0x3ab79d(0x131)][0x0][_0x3ab79d(0x150)];if(_0x34b5ec){let _0x31f11b=!![];const _0x19c838=await global[_0x3ab79d(0x131)][0x0][_0x3ab79d(0x1d3)]();let _0x45b8ae;try{_0x45b8ae=new URL(_0x19c838);}catch(_0x4f31a1){_0x31f11b=![];}_0x31f11b=_0x4863fe[_0x3ab79d(0x1ab)](_0x45b8ae[_0x3ab79d(0x183)],_0x4863fe[_0x3ab79d(0x15e)])||_0x4863fe[_0x3ab79d(0x1ab)](_0x45b8ae[_0x3ab79d(0x183)],_0x4863fe[_0x3ab79d(0x1c0)]),_0x31f11b&&(this[_0x3ab79d(0x1b2)]['shouldScanTestForAccessibility']&&logger[_0x3ab79d(0x188)](_0x4863fe['EiAET'])),this['currentTest'][_0x3ab79d(0x1c2)]=this[_0x3ab79d(0x1b2)]['shouldScanTestForAccessibility'],this['currentTest'][_0x3ab79d(0x1cb)]&&logger[_0x3ab79d(0x188)](_0x4863fe['PGahx']);}}catch(_0xf78c40){logger['error'](_0x3ab79d(0x1d1)+util[_0x3ab79d(0x13d)](_0xf78c40));}_0x4863fe[_0x3ab79d(0x191)](_0x3ca681);})['then'](()=>{_0x58cc84['UgmtD'](_0x1ccca6);});},{'platform':_0x58cc84['wSZKE'](nestedKeyValue,global[_0x33da29(0x181)],[_0x58cc84[_0x33da29(0x16c)]]),'hookType':_0x58cc84[_0x33da29(0x140)]})();},'afterEach'(_0x5a55d8){const _0x591455=a32_0x3fbd23,_0x52e5b5={'LGeYX':function(_0x4abda6,_0x1ff234){return _0x4abda6>_0x1ff234;},'UsZXa':function(_0x28e3db,_0x57ba1f){return _0x28e3db===_0x57ba1f;},'wtehM':_0x591455(0x17f),'FNnaW':function(_0x2e889d,_0x443692){return _0x2e889d>_0x443692;},'mWjEw':_0x591455(0x18d),'pJJUx':function(_0x2d5743,_0x17cab2,_0xd87c6,_0x549063){return _0x2d5743(_0x17cab2,_0xd87c6,_0x549063);},'nUnTR':'isAccessibilityPlatform','UUuyv':'bstackA11yShouldScan','ywIPJ':_0x591455(0x1a1),'SjNOL':_0x591455(0x138),'xrcxI':_0x591455(0x1b9),'ofYvX':_0x591455(0x1a8),'UZmWY':function(_0x13a980){return _0x13a980();},'wEFOg':function(_0x2c64a4,_0x43db1b,_0x45a1bf){return _0x2c64a4(_0x43db1b,_0x45a1bf);},'cirEU':_0x591455(0x197),'dRFZX':function(_0x3d434e,_0x35210c){return _0x3d434e>_0x35210c;},'sGcEi':_0x591455(0x16a),'FfoHV':function(_0x5bf9ce,_0x3cf71a){return _0x5bf9ce!==_0x3cf71a;},'tBvOG':_0x591455(0x1b6),'yAbhD':function(_0x1cd4d1,_0xbc340d){return _0x1cd4d1+_0xbc340d;},'hKEBE':_0x591455(0x1ce),'crPbm':_0x591455(0x175),'cIRbV':_0x591455(0x1a2),'ZjGpC':_0x591455(0x188),'ZpgJY':'index','kOHKG':_0x591455(0x17a)},_0x34a3af='browserstack internal helper hook';this[_0x591455(0x1be)](0xfde8),global[_0x591455(0x152)]=this[_0x591455(0x1b2)][_0x591455(0x16e)]()[_0x591455(0x1c7)](_0x52e5b5['sGcEi']),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x591455(0x13c)],()=>{const _0x54ac19=_0x591455,_0x2b76b9={'iNWWs':_0x52e5b5[_0x54ac19(0x193)],'rWHmb':function(_0x51088d,_0xae0e15){const _0x1f4636=_0x54ac19;return _0x52e5b5[_0x1f4636(0x187)](_0x51088d,_0xae0e15);},'elcQp':_0x52e5b5[_0x54ac19(0x1cd)],'VYYZE':function(_0x24678e,_0x2f4fa8,_0xd928e1){const _0x1647c0=_0x54ac19;return _0x52e5b5[_0x1647c0(0x186)](_0x24678e,_0x2f4fa8,_0xd928e1);},'WBbis':function(_0x4d6ed4,_0x69d065){const _0xa9e1c6=_0x54ac19;return _0x52e5b5[_0xa9e1c6(0x1cc)](_0x4d6ed4,_0x69d065);},'qlKfb':_0x52e5b5[_0x54ac19(0x1c9)],'MTvUs':_0x52e5b5[_0x54ac19(0x12e)],'ROwYF':function(_0x5557aa,_0x2c41bc,_0x23b222){const _0x3bc61f=_0x54ac19;return _0x52e5b5[_0x3bc61f(0x186)](_0x5557aa,_0x2c41bc,_0x23b222);},'MlYMH':_0x52e5b5[_0x54ac19(0x141)],'BdgAF':_0x52e5b5[_0x54ac19(0x1b7)],'WatdH':function(_0x2516e2){const _0x49645d=_0x54ac19;return _0x52e5b5[_0x49645d(0x15b)](_0x2516e2);}},_0x29703a=async(_0x17dd42,_0x5bcc72)=>{const _0x34d5b1=_0x54ac19;await global[_0x34d5b1(0x131)][0x0][_0x34d5b1(0x195)](_0x34d5b1(0x12f)+_0x17dd42+',\x22level\x22:\x20\x22'+_0x5bcc72+_0x34d5b1(0x1b1));};new Promise(async _0x544305=>{const _0x3f3274=_0x54ac19;try{_0x52e5b5['LGeYX'](global[_0x3f3274(0x131)][_0x3f3274(0x135)],0x1)&&(await global[_0x3f3274(0x19c)](),global['__drivers'][_0x3f3274(0x1aa)](),global[_0x3f3274(0x1a4)]=[],global['__sessionFailed']=![]);try{if(global[_0x3f3274(0x13a)]&&_0x52e5b5[_0x3f3274(0x177)](global[_0x3f3274(0x16d)],_0x52e5b5[_0x3f3274(0x18b)])&&global['__drivers'][0x0]){const _0x32edc1=_0x52e5b5[_0x3f3274(0x1d5)](global[_0x3f3274(0x17b)][_0x3f3274(0x135)],0x0)?!!global[_0x3f3274(0x17b)][0x0][_0x3f3274(0x157)]||!!global[_0x3f3274(0x17b)][0x0][_0x52e5b5[_0x3f3274(0x1a3)]]:![],_0x56640b={};_0x56640b[_0x3f3274(0x157)]=_0x32edc1,await _0x52e5b5[_0x3f3274(0x15f)](percyAutoCapture,global[_0x3f3274(0x131)][0x0],_0x52e5b5[_0x3f3274(0x18b)],_0x56640b);}}catch(_0xab1962){logger[_0x3f3274(0x197)](_0x3f3274(0x162)+_0xab1962);}!global[_0x3f3274(0x182)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x3f3274(0x142)],async()=>{const _0x19526e=_0x3f3274;await global['__drivers'][0x0][_0x19526e(0x195)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x19526e(0x168)](this[_0x19526e(0x1b2)][_0x19526e(0x16e)]()['join'](_0x2b76b9[_0x19526e(0x1bc)]))+'}}');})(),global[_0x3f3274(0x131)][0x0][_0x3f3274(0x1a9)]=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents['SESSION_STATUS'],async()=>{const _0xfa86dc=_0x3f3274,_0x2c568e=_0x2b76b9[_0xfa86dc(0x12b)](this[_0xfa86dc(0x1b2)]['state'],_0x2b76b9[_0xfa86dc(0x19e)]);_0x2c568e?(global[_0xfa86dc(0x1cf)]=!![],global[_0xfa86dc(0x1a4)][_0xfa86dc(0x15d)](this[_0xfa86dc(0x1b2)][_0xfa86dc(0x1d2)][_0xfa86dc(0x161)]),await _0x2b76b9[_0xfa86dc(0x1d6)](_0x29703a,JSON['stringify'](_0x2b76b9[_0xfa86dc(0x1d0)](_0x2b76b9[_0xfa86dc(0x133)],this[_0xfa86dc(0x1b2)][_0xfa86dc(0x1d2)]['message'])),_0x2b76b9['MTvUs'])):await _0x2b76b9[_0xfa86dc(0x155)](_0x29703a,JSON[_0xfa86dc(0x168)](_0x2b76b9[_0xfa86dc(0x1a5)]),_0x2b76b9[_0xfa86dc(0x169)]);})();}catch(_0x14ff36){logger[_0x3f3274(0x197)](_0x3f3274(0x190)+_0x14ff36);}try{if(this[_0x3f3274(0x1b2)][_0x3f3274(0x1c2)]&&globals[_0x3f3274(0x1ba)](_0x52e5b5[_0x3f3274(0x17d)])&&globals[_0x3f3274(0x1ba)](_0x52e5b5['UUuyv'])){logger['info'](_0x52e5b5[_0x3f3274(0x163)]);const _0x40cd13={};_0x40cd13[_0x3f3274(0x137)]=this[_0x3f3274(0x1b2)]['testAnalyticsId'],_0x40cd13[_0x3f3274(0x17e)]=process[_0x3f3274(0x164)][testHubConstants['ENV_VAR'][_0x3f3274(0x179)]],_0x40cd13[_0x3f3274(0x145)]=process[_0x3f3274(0x164)][testHubConstants['ENV_VAR'][_0x3f3274(0x130)]];const _0x237117=_0x40cd13;logger[_0x3f3274(0x197)](_0x3f3274(0x1c4)+JSON[_0x3f3274(0x168)](_0x237117)),logger[_0x3f3274(0x197)](_0x52e5b5[_0x3f3274(0x1d8)]);const _0x588ea9={};_0x588ea9[_0x3f3274(0x1c5)]=_0x52e5b5['xrcxI'],await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x3f3274(0x1b8)],async()=>{const _0x1f6511=_0x3f3274;logger[_0x1f6511(0x197)](util['format'](await global[_0x1f6511(0x131)][0x0][_0x1f6511(0x1d4)](scripts[_0x1f6511(0x160)],{'method':global['browserstackSessionName']})));},_0x588ea9)(),await PerformanceTester[_0x3f3274(0x1af)](PerformanceA11yEvents[_0x3f3274(0x14f)],async()=>{const _0x454c1d=_0x3f3274;await global[_0x454c1d(0x131)][0x0][_0x454c1d(0x1d4)](scripts[_0x454c1d(0x134)],_0x237117);})(),logger[_0x3f3274(0x188)](_0x52e5b5[_0x3f3274(0x167)]);}}catch(_0x4be007){logger[_0x3f3274(0x175)](_0x3f3274(0x1bb)+this[_0x3f3274(0x1b2)][_0x3f3274(0x16e)]()+_0x3f3274(0x192),_0x4be007);}try{try{if(_0x52e5b5[_0x3f3274(0x15b)](shouldProcessEventForTesthub)){global[_0x3f3274(0x131)][0x0]&&await _0x52e5b5[_0x3f3274(0x186)](sendPlatformDetails,global['__drivers'][0x0],this[_0x3f3274(0x1b2)]?this[_0x3f3274(0x1b2)][_0x3f3274(0x1c1)]:null);if(_0x52e5b5[_0x3f3274(0x15b)](isBrowserstackInfra)){PerformanceTester[_0x3f3274(0x156)](PerformanceO11yEvents[_0x3f3274(0x13f)]);const _0x141882=_0x3f3274(0x146)+Date[_0x3f3274(0x165)]();await _0x52e5b5[_0x3f3274(0x186)](_0x29703a,JSON[_0x3f3274(0x168)](_0x141882),_0x52e5b5[_0x3f3274(0x166)]),PerformanceTester[_0x3f3274(0x185)](PerformanceO11yEvents['SYNC']);}}}catch(_0x56d961){logger['debug'](_0x3f3274(0x1a7)+_0x56d961),PerformanceTester[_0x3f3274(0x185)](PerformanceO11yEvents['SYNC'],![],_0x56d961);}_0x52e5b5[_0x3f3274(0x196)](global[_0x3f3274(0x131)][0x0][_0x3f3274(0x154)],0x0)&&await global['driverCleanup']();}catch(_0x2accfd){logger[_0x3f3274(0x197)](_0x3f3274(0x184)+_0x2accfd);}_0x52e5b5['UZmWY'](_0x544305);})['then'](()=>{const _0x46756d=_0x54ac19;_0x2b76b9[_0x46756d(0x199)](_0x5a55d8);});},{'platform':_0x52e5b5[_0x591455(0x186)](nestedKeyValue,global[_0x591455(0x181)],[_0x52e5b5[_0x591455(0x16f)]]),'hookType':_0x52e5b5[_0x591455(0x178)]})();},'afterAll'(_0x5ef006){const _0x5effd0=a32_0x3fbd23,_0x2e0836={'aCjOT':function(_0x3308f4){return _0x3308f4();},'LHPIZ':function(_0x1c08ad){return _0x1c08ad();},'WRTBk':function(_0x102b90,_0x5cf89f,_0x466d4f){return _0x102b90(_0x5cf89f,_0x466d4f);},'VEwne':_0x5effd0(0x173),'OSwco':'afterAll'},_0x398ccf='browserstack internal helper hook';this[_0x5effd0(0x1be)](0xfde8),PerformanceTester[_0x5effd0(0x1af)](PerformanceSdkEvents[_0x5effd0(0x13c)],()=>{const _0x4a6df9=_0x5effd0,_0x2641d3={'TNPJZ':function(_0x12f34f){const _0x4ee820=a32_0x1e0d;return _0x2e0836[_0x4ee820(0x136)](_0x12f34f);}};new Promise(async _0x4f9a83=>{const _0x17e372=a32_0x1e0d;await global[_0x17e372(0x19c)](),_0x2641d3[_0x17e372(0x1bd)](_0x4f9a83);})['then']()[_0x4a6df9(0x198)](()=>{const _0x2cffb0=_0x4a6df9;_0x2e0836[_0x2cffb0(0x12c)](_0x5ef006);});},{'platform':_0x2e0836[_0x5effd0(0x147)](nestedKeyValue,global['__platformCaps'],[_0x2e0836[_0x5effd0(0x14e)]]),'hookType':_0x2e0836[_0x5effd0(0x170)]})();}};
|
|
1
|
+
const a32_0x6cfb7c=a32_0x3fcc;(function(_0x40826b,_0x28d974){const _0x43642d=a32_0x3fcc,_0x110121=_0x40826b();while(!![]){try{const _0x568788=parseInt(_0x43642d(0x16c))/0x1*(parseInt(_0x43642d(0x197))/0x2)+-parseInt(_0x43642d(0x181))/0x3+parseInt(_0x43642d(0x12a))/0x4*(-parseInt(_0x43642d(0x1b9))/0x5)+parseInt(_0x43642d(0x162))/0x6+parseInt(_0x43642d(0x159))/0x7+-parseInt(_0x43642d(0x179))/0x8+parseInt(_0x43642d(0x188))/0x9;if(_0x568788===_0x28d974)break;else _0x110121['push'](_0x110121['shift']());}catch(_0x4d7eca){_0x110121['push'](_0x110121['shift']());}}}(a32_0x2c94,0x8fee5));const util=require(a32_0x6cfb7c(0x191)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x6cfb7c(0x16e)),{percyAutoCapture}=require(a32_0x6cfb7c(0x182)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a32_0x6cfb7c(0x19f)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),scripts=require(a32_0x6cfb7c(0x1ae)),globals=require(a32_0x6cfb7c(0x164)),logger=require('../../helpers/logger')[a32_0x6cfb7c(0x16a)],{shouldProcessEventForTesthub}=require(a32_0x6cfb7c(0x1aa)),testHubConstants=require(a32_0x6cfb7c(0x18c));exports[a32_0x6cfb7c(0x1ab)]={'beforeAll'(){const _0x1b1b8d=a32_0x6cfb7c,_0x16eb96={'XdSHY':function(_0x43c4a5,_0x29500b,_0x23e2a4,_0x56209e){return _0x43c4a5(_0x29500b,_0x23e2a4,_0x56209e);},'jVpcH':_0x1b1b8d(0x1bc),'BeFnz':_0x1b1b8d(0x132),'raheD':function(_0x2fd828,_0x47b7f7,_0xc2c281){return _0x2fd828(_0x47b7f7,_0xc2c281);},'JCPCB':_0x1b1b8d(0x194),'wKFAP':function(_0x445832){return _0x445832();},'ObrZh':'index','cHUMZ':_0x1b1b8d(0x15b)};PerformanceTester['startMonitoring']();const _0x127b3c='browserstack internal helper hook';PerformanceTester[_0x1b1b8d(0x13e)](PerformanceSdkEvents[_0x1b1b8d(0x15f)],()=>{const _0x2e6c7a=_0x1b1b8d;global[_0x2e6c7a(0x18e)]=[],global[_0x2e6c7a(0x17a)]=![],global['driverCleanup']=async()=>{const _0x174d02=_0x2e6c7a;let _0x5687e6=![];try{await global[_0x174d02(0x1c2)][0x0][_0x174d02(0x157)],_0x5687e6=!![],global[_0x174d02(0x17a)]?await _0x16eb96[_0x174d02(0x1b5)](markSessionStatus,global['__drivers'][0x0],_0x16eb96[_0x174d02(0x155)],global[_0x174d02(0x18e)][_0x174d02(0x171)](_0x16eb96[_0x174d02(0x149)])):await _0x16eb96[_0x174d02(0x183)](markSessionStatus,global[_0x174d02(0x1c2)][0x0],_0x16eb96[_0x174d02(0x15a)]);}catch(_0x5a85a7){logger[_0x174d02(0x184)](_0x174d02(0x199)+_0x5a85a7);}global['__error_messages__']=[],global[_0x174d02(0x17a)]=![];if(_0x5687e6)try{try{_0x16eb96['wKFAP'](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x16eb96[_0x174d02(0x183)](sendPlatformDetails,global['__drivers'][0x0],this[_0x174d02(0x192)]?this['currentTest']['testAnalyticsId']:null));}catch(_0x1ff0bd){logger[_0x174d02(0x184)](_0x174d02(0x165)+_0x1ff0bd);}await global[_0x174d02(0x1c2)][0x0][_0x174d02(0x18a)]();}catch(_0x48221a){logger[_0x174d02(0x184)](_0x174d02(0x1b4)+_0x48221a);}};},{'platform':_0x16eb96[_0x1b1b8d(0x183)](nestedKeyValue,global[_0x1b1b8d(0x136)],[_0x16eb96['ObrZh']]),'hookType':_0x16eb96[_0x1b1b8d(0x1b0)]})();},'beforeEach'(_0xa551e5){const _0x230d21=a32_0x6cfb7c,_0x17e654={'ZfbBE':function(_0x421c54,_0x4ab432){return _0x421c54>_0x4ab432;},'mXVmZ':function(_0x2969c1,_0x439f43){return _0x2969c1>_0x439f43;},'oDpeB':_0x230d21(0x168),'cKRTp':function(_0x5aca0b,_0x2faa03,_0xf770f9){return _0x5aca0b(_0x2faa03,_0xf770f9);},'oLdPj':_0x230d21(0x1c3),'shScA':function(_0x54af24){return _0x54af24();},'qormg':function(_0x5e4f85,_0x330c1a){return _0x5e4f85>_0x330c1a;},'HjowX':_0x230d21(0x17f),'zroyT':function(_0x1d5c05,_0x134b9b){return _0x1d5c05===_0x134b9b;},'oYRZB':_0x230d21(0x14e),'qLSDr':function(_0x524027,_0x48f016){return _0x524027===_0x48f016;},'qJfck':_0x230d21(0x123),'wIBus':_0x230d21(0x13c),'zrjbS':_0x230d21(0x137),'tShjV':function(_0x21d788){return _0x21d788();},'KBkGF':_0x230d21(0x12c),'vIvUr':_0x230d21(0x19c),'HFnTk':_0x230d21(0x190)};globals[_0x230d21(0x1a4)](_0x17e654[_0x230d21(0x18d)],this['currentTest'][_0x230d21(0x13d)]()['join'](_0x17e654['oDpeB'])),PerformanceTester[_0x230d21(0x13e)](PerformanceSdkEvents[_0x230d21(0x15f)],()=>{const _0x959eed=_0x230d21,_0x6c8d64='browserstack internal helper hook';new Promise(async _0x54efdb=>{const _0x1a4aaf=a32_0x3fcc;let _0x1c093a=!![];try{_0x17e654['ZfbBE'](global[_0x1a4aaf(0x1c2)][_0x1a4aaf(0x14c)],0x1)&&(await global[_0x1a4aaf(0x18f)](),global[_0x1a4aaf(0x1c2)][_0x1a4aaf(0x11f)]()),_0x17e654[_0x1a4aaf(0x1a3)](global[_0x1a4aaf(0x1c2)][0x0][_0x1a4aaf(0x17d)],0x0)&&(_0x1c093a=![],await global[_0x1a4aaf(0x18f)]());}catch(_0x5a1e86){logger[_0x1a4aaf(0x184)](_0x1a4aaf(0x1b4)+_0x5a1e86);}try{Array[_0x1a4aaf(0x1c4)](global[_0x1a4aaf(0x1c2)])&&global[_0x1a4aaf(0x1c2)][0x0]&&(global['__drivers'][0x0]['browserstackSessionName']=this[_0x1a4aaf(0x192)][_0x1a4aaf(0x13d)]()[_0x1a4aaf(0x171)](_0x17e654[_0x1a4aaf(0x152)])),global['browserstackSessionName']=this[_0x1a4aaf(0x192)][_0x1a4aaf(0x13d)]()[_0x1a4aaf(0x171)](_0x17e654[_0x1a4aaf(0x152)]);}catch(_0x2e501e){logger['debug'](_0x1a4aaf(0x141)+_0x2e501e);}this[_0x1a4aaf(0x192)][_0x1a4aaf(0x186)]=_0x17e654['cKRTp'](shouldScanTestForAccessibility,this[_0x1a4aaf(0x192)]['titlePath'](),!![]),globals[_0x1a4aaf(0x1a4)](_0x17e654[_0x1a4aaf(0x16f)],this[_0x1a4aaf(0x192)]['shouldScanTestForAccessibility']),this[_0x1a4aaf(0x192)][_0x1a4aaf(0x178)]=!![];if(_0x17e654[_0x1a4aaf(0x193)](isAccessibilityAutomationSession)&&_0x1c093a&&Array[_0x1a4aaf(0x1c4)](global[_0x1a4aaf(0x1c2)])&&_0x17e654[_0x1a4aaf(0x126)](global[_0x1a4aaf(0x1c2)][_0x1a4aaf(0x14c)],0x0)&&globals[_0x1a4aaf(0x161)](_0x17e654[_0x1a4aaf(0x144)]))try{const _0x3a689d=await global['__drivers'][0x0][_0x1a4aaf(0x157)];if(_0x3a689d){let _0x156774=!![];const _0x28bbc7=await global[_0x1a4aaf(0x1c2)][0x0]['getCurrentUrl']();let _0xfbc951;try{_0xfbc951=new URL(_0x28bbc7);}catch(_0x487bcd){_0x156774=![];}_0x156774=_0x17e654['zroyT'](_0xfbc951[_0x1a4aaf(0x15c)],_0x17e654[_0x1a4aaf(0x145)])||_0x17e654[_0x1a4aaf(0x1a9)](_0xfbc951[_0x1a4aaf(0x15c)],_0x17e654[_0x1a4aaf(0x12b)]),_0x156774&&(this[_0x1a4aaf(0x192)][_0x1a4aaf(0x186)]&&logger['info'](_0x17e654['wIBus'])),this['currentTest'][_0x1a4aaf(0x178)]=this[_0x1a4aaf(0x192)][_0x1a4aaf(0x186)],this[_0x1a4aaf(0x192)][_0x1a4aaf(0x186)]&&logger[_0x1a4aaf(0x19b)](_0x17e654[_0x1a4aaf(0x1bf)]);}}catch(_0x39709e){logger[_0x1a4aaf(0x12f)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util['format'](_0x39709e));}_0x17e654[_0x1a4aaf(0x139)](_0x54efdb);})[_0x959eed(0x1af)](()=>{_0x17e654['shScA'](_0xa551e5);});},{'platform':_0x17e654['cKRTp'](nestedKeyValue,global[_0x230d21(0x136)],[_0x17e654[_0x230d21(0x1a1)]]),'hookType':_0x17e654[_0x230d21(0x14a)]})();},'afterEach'(_0x1fbd51){const _0x30c4e3=a32_0x6cfb7c,_0x1f9c37={'xtRpL':function(_0x2b53b2,_0x129354){return _0x2b53b2!==_0x129354;},'PLjbn':_0x30c4e3(0x194),'fDfMM':function(_0x3662c8,_0x2da85d,_0x4491e0){return _0x3662c8(_0x2da85d,_0x4491e0);},'lItdO':function(_0x481989,_0x146d51){return _0x481989+_0x146d51;},'iGvri':_0x30c4e3(0x195),'juxqb':_0x30c4e3(0x12f),'qPhQw':function(_0x597b26,_0x223546,_0x25d353){return _0x597b26(_0x223546,_0x25d353);},'sQBsq':_0x30c4e3(0x140),'oggIA':_0x30c4e3(0x19b),'pMfbe':function(_0x43da58,_0x1ea4c5){return _0x43da58>_0x1ea4c5;},'vYpWF':function(_0x128f64,_0x3c0523){return _0x128f64===_0x3c0523;},'hHdjE':_0x30c4e3(0x17e),'FzhrR':function(_0xcf7f71,_0x5130e1){return _0xcf7f71>_0x5130e1;},'IwckO':_0x30c4e3(0x166),'QRrJt':function(_0xe64154,_0x56c135,_0x5aad5e,_0x2240e1){return _0xe64154(_0x56c135,_0x5aad5e,_0x2240e1);},'AkruO':_0x30c4e3(0x17f),'XhHGj':_0x30c4e3(0x1c3),'AWGVx':_0x30c4e3(0x1a2),'BHnOz':'Performing\x20scan\x20before\x20saving\x20results','vPXdF':'afterTest','RkFrC':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','IKRVT':function(_0x1704f3){return _0x1704f3();},'BHmoG':function(_0x47507d,_0x24aec6,_0x5c6318){return _0x47507d(_0x24aec6,_0x5c6318);},'UpwYd':function(_0x5a91c6){return _0x5a91c6();},'jDXdW':_0x30c4e3(0x184),'litDH':function(_0x1d5ff3,_0x31f686){return _0x1d5ff3>_0x31f686;},'NrRqG':function(_0x470312){return _0x470312();},'yRBlr':function(_0x9cdc50){return _0x9cdc50();},'UkTRp':_0x30c4e3(0x168),'BpmAT':_0x30c4e3(0x19c),'CZxRq':_0x30c4e3(0x14d)},_0x583778='browserstack internal helper hook';this[_0x30c4e3(0x130)](0xfde8),global[_0x30c4e3(0x17b)]=this['currentTest'][_0x30c4e3(0x13d)]()[_0x30c4e3(0x171)](_0x1f9c37[_0x30c4e3(0x198)]),PerformanceTester[_0x30c4e3(0x13e)](PerformanceSdkEvents[_0x30c4e3(0x15f)],()=>{const _0x5f2a91=_0x30c4e3,_0x26391b={};_0x26391b[_0x5f2a91(0x1b6)]=_0x1f9c37['UkTRp'];const _0x4b245a=_0x26391b,_0x1dc1fc=async(_0x68fcc4,_0x37cd6f)=>{const _0x2090ed=_0x5f2a91;await global[_0x2090ed(0x1c2)][0x0][_0x2090ed(0x189)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x68fcc4+_0x2090ed(0x17c)+_0x37cd6f+'\x22}}');};new Promise(async _0x1fcedc=>{const _0x2fdeea=_0x5f2a91,_0xaa0083={'RaBfI':function(_0x6506ba,_0x38d991){return _0x1f9c37['xtRpL'](_0x6506ba,_0x38d991);},'PRuWR':_0x1f9c37[_0x2fdeea(0x156)],'kqmfK':function(_0x24c9b8,_0x782f70,_0x352a84){return _0x1f9c37['fDfMM'](_0x24c9b8,_0x782f70,_0x352a84);},'rdOUb':function(_0x33f319,_0x5b9ab6){const _0x11f0aa=_0x2fdeea;return _0x1f9c37[_0x11f0aa(0x1ba)](_0x33f319,_0x5b9ab6);},'GIDKn':_0x1f9c37[_0x2fdeea(0x151)],'KRwKL':_0x1f9c37[_0x2fdeea(0x124)],'TqLaa':function(_0x372dde,_0x15a880,_0x4c6bdd){const _0x2d5e3c=_0x2fdeea;return _0x1f9c37[_0x2d5e3c(0x138)](_0x372dde,_0x15a880,_0x4c6bdd);},'sAlaE':_0x1f9c37['sQBsq'],'GPFMp':_0x1f9c37[_0x2fdeea(0x19a)]};try{_0x1f9c37[_0x2fdeea(0x14b)](global[_0x2fdeea(0x1c2)][_0x2fdeea(0x14c)],0x1)&&(await global[_0x2fdeea(0x18f)](),global[_0x2fdeea(0x1c2)][_0x2fdeea(0x11f)](),global['__error_messages__']=[],global['__sessionFailed']=![]);try{if(global['percy']&&_0x1f9c37[_0x2fdeea(0x135)](global['percyCaptureMode'],_0x1f9c37[_0x2fdeea(0x148)])&&global[_0x2fdeea(0x1c2)][0x0]){const _0x7c2336=_0x1f9c37[_0x2fdeea(0x16b)](global[_0x2fdeea(0x1be)][_0x2fdeea(0x14c)],0x0)?!!global[_0x2fdeea(0x1be)][0x0][_0x2fdeea(0x1c1)]||!!global[_0x2fdeea(0x1be)][0x0][_0x1f9c37[_0x2fdeea(0x176)]]:![],_0x1a874f={};_0x1a874f[_0x2fdeea(0x1c1)]=_0x7c2336,await _0x1f9c37[_0x2fdeea(0x19d)](percyAutoCapture,global[_0x2fdeea(0x1c2)][0x0],_0x1f9c37[_0x2fdeea(0x148)],_0x1a874f);}}catch(_0x59a468){logger[_0x2fdeea(0x184)](_0x2fdeea(0x1b2)+_0x59a468);}!global[_0x2fdeea(0x12e)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x2fdeea(0x143)],async()=>{const _0x511913=_0x2fdeea;await global[_0x511913(0x1c2)][0x0][_0x511913(0x189)](_0x511913(0x121)+JSON[_0x511913(0x1a5)](this[_0x511913(0x192)][_0x511913(0x13d)]()[_0x511913(0x171)](_0x4b245a[_0x511913(0x1b6)]))+'}}');})(),global['__drivers'][0x0][_0x2fdeea(0x19e)]=!![]),await PerformanceTester[_0x2fdeea(0x13e)](PerformanceAutEvents[_0x2fdeea(0x177)],async()=>{const _0x3d41d0=_0x2fdeea,_0x35e9bb=_0xaa0083[_0x3d41d0(0x180)](this['currentTest'][_0x3d41d0(0x1a0)],_0xaa0083[_0x3d41d0(0x1c0)]);_0x35e9bb?(global[_0x3d41d0(0x17a)]=!![],global[_0x3d41d0(0x18e)][_0x3d41d0(0x133)](this[_0x3d41d0(0x192)][_0x3d41d0(0x153)]['message']),await _0xaa0083[_0x3d41d0(0x172)](_0x1dc1fc,JSON[_0x3d41d0(0x1a5)](_0xaa0083[_0x3d41d0(0x150)](_0xaa0083[_0x3d41d0(0x13b)],this[_0x3d41d0(0x192)]['err'][_0x3d41d0(0x175)])),_0xaa0083[_0x3d41d0(0x14f)])):await _0xaa0083[_0x3d41d0(0x1a8)](_0x1dc1fc,JSON['stringify'](_0xaa0083[_0x3d41d0(0x1bb)]),_0xaa0083['GPFMp']);})();}catch(_0x3015b1){logger[_0x2fdeea(0x184)](_0x2fdeea(0x15e)+_0x3015b1);}try{if(this['currentTest'][_0x2fdeea(0x178)]&&globals[_0x2fdeea(0x161)](_0x1f9c37[_0x2fdeea(0x1ad)])&&globals[_0x2fdeea(0x161)](_0x1f9c37[_0x2fdeea(0x187)])){logger[_0x2fdeea(0x19b)](_0x1f9c37[_0x2fdeea(0x131)]);const _0x34761c={};_0x34761c[_0x2fdeea(0x160)]=this[_0x2fdeea(0x192)][_0x2fdeea(0x12d)],_0x34761c[_0x2fdeea(0x169)]=process['env'][testHubConstants[_0x2fdeea(0x154)][_0x2fdeea(0x127)]],_0x34761c[_0x2fdeea(0x163)]=process[_0x2fdeea(0x1b3)][testHubConstants[_0x2fdeea(0x154)]['BROWSERSTACK_TESTHUB_JWT']];const _0x5680a0=_0x34761c;logger[_0x2fdeea(0x184)](_0x2fdeea(0x15d)+JSON[_0x2fdeea(0x1a5)](_0x5680a0)),logger['debug'](_0x1f9c37[_0x2fdeea(0x1a7)]);const _0x3edcf9={};_0x3edcf9[_0x2fdeea(0x142)]=_0x1f9c37[_0x2fdeea(0x185)],await PerformanceTester['measureWrapper'](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x1e96c5=_0x2fdeea;logger[_0x1e96c5(0x184)](util[_0x1e96c5(0x170)](await global[_0x1e96c5(0x1c2)][0x0][_0x1e96c5(0x146)](scripts[_0x1e96c5(0x18b)],{'method':global['browserstackSessionName']})));},_0x3edcf9)(),await PerformanceTester[_0x2fdeea(0x13e)](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{const _0x563252=_0x2fdeea;await global[_0x563252(0x1c2)][0x0][_0x563252(0x146)](scripts[_0x563252(0x173)],_0x5680a0);})(),logger[_0x2fdeea(0x19b)](_0x1f9c37[_0x2fdeea(0x122)]);}}catch(_0x4d8b0e){logger['error'](_0x2fdeea(0x13f)+this['currentTest'][_0x2fdeea(0x13d)]()+_0x2fdeea(0x13a),_0x4d8b0e);}try{try{if(_0x1f9c37[_0x2fdeea(0x1b8)](shouldProcessEventForTesthub)){global[_0x2fdeea(0x1c2)][0x0]&&await _0x1f9c37['BHmoG'](sendPlatformDetails,global[_0x2fdeea(0x1c2)][0x0],this[_0x2fdeea(0x192)]?this[_0x2fdeea(0x192)]['testAnalyticsId']:null);if(_0x1f9c37[_0x2fdeea(0x174)](isBrowserstackInfra)){PerformanceTester['start'](PerformanceO11yEvents[_0x2fdeea(0x1bd)]);const _0x32d6f6=_0x2fdeea(0x134)+Date[_0x2fdeea(0x1b1)]();await _0x1f9c37['BHmoG'](_0x1dc1fc,JSON[_0x2fdeea(0x1a5)](_0x32d6f6),_0x1f9c37[_0x2fdeea(0x1ac)]),PerformanceTester[_0x2fdeea(0x1b7)](PerformanceO11yEvents[_0x2fdeea(0x1bd)]);}}}catch(_0x59117d){logger[_0x2fdeea(0x184)](_0x2fdeea(0x158)+_0x59117d),PerformanceTester[_0x2fdeea(0x1b7)](PerformanceO11yEvents['SYNC'],![],_0x59117d);}_0x1f9c37[_0x2fdeea(0x129)](global[_0x2fdeea(0x1c2)][0x0][_0x2fdeea(0x17d)],0x0)&&await global[_0x2fdeea(0x18f)]();}catch(_0xf49b88){logger['debug'](_0x2fdeea(0x1b4)+_0xf49b88);}_0x1f9c37['NrRqG'](_0x1fcedc);})['then'](()=>{const _0x21739c=_0x5f2a91;_0x1f9c37[_0x21739c(0x128)](_0x1fbd51);});},{'platform':_0x1f9c37[_0x30c4e3(0x196)](nestedKeyValue,global['__platformCaps'],[_0x1f9c37[_0x30c4e3(0x125)]]),'hookType':_0x1f9c37[_0x30c4e3(0x120)]})();},'afterAll'(_0x178da4){const _0x5f59d3=a32_0x6cfb7c,_0x2bf912={'jcIFN':function(_0x4236a7){return _0x4236a7();},'jkZjX':function(_0x1de038){return _0x1de038();},'BlIyj':function(_0x80ddac,_0x5069ef,_0x27b31c){return _0x80ddac(_0x5069ef,_0x27b31c);},'LheaS':_0x5f59d3(0x19c),'vXWIT':'afterAll'},_0x1bee8e='browserstack internal helper hook';this[_0x5f59d3(0x130)](0xfde8),PerformanceTester[_0x5f59d3(0x13e)](PerformanceSdkEvents[_0x5f59d3(0x15f)],()=>{const _0x4fcba8=_0x5f59d3,_0x18ee7e={'GGvYS':function(_0x58af7a){const _0x5bd8e4=a32_0x3fcc;return _0x2bf912[_0x5bd8e4(0x147)](_0x58af7a);}};new Promise(async _0x43da64=>{const _0x157818=a32_0x3fcc;await global[_0x157818(0x18f)](),_0x2bf912['jcIFN'](_0x43da64);})[_0x4fcba8(0x1af)]()[_0x4fcba8(0x167)](()=>{const _0x4453a9=_0x4fcba8;_0x18ee7e[_0x4453a9(0x16d)](_0x178da4);});},{'platform':_0x2bf912['BlIyj'](nestedKeyValue,global[_0x5f59d3(0x136)],[_0x2bf912['LheaS']]),'hookType':_0x2bf912[_0x5f59d3(0x1a6)]})();}};function a32_0x3fcc(_0x411e01,_0x2e2653){const _0x2c94de=a32_0x2c94();return a32_0x3fcc=function(_0x3fcc4f,_0x4b14ad){_0x3fcc4f=_0x3fcc4f-0x11f;let _0x1183e5=_0x2c94de[_0x3fcc4f];return _0x1183e5;},a32_0x3fcc(_0x411e01,_0x2e2653);}function a32_0x2c94(){const _0x3cdb0e=['afterEach','http:','KRwKL','rdOUb','iGvri','oDpeB','err','ENV_VAR','jVpcH','PLjbn','session_','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','936439IJrMUK','JCPCB','beforeAll','protocol','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','SDK_HOOK','thTestRunUuid','getGlobal','5478150XBYLpT','thJwtToken','../../helpers/globals','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','appium:app','finally','\x20-\x20','thBuildUuid','winstonLogger','FzhrR','821yQkrmI','GGvYS','../../helpers/accessibility-automation/helper','oLdPj','format','join','kqmfK','saveTestResults','UpwYd','message','IwckO','SESSION_STATUS','accessibilityScanStarted','6760032QNXDEx','__sessionFailed','sessionName',',\x22level\x22:\x20\x22','quitCount_','testcase','isAccessibilityPlatform','RaBfI','1368843keUUfr','../../helpers/percy/utils','raheD','debug','vPXdF','shouldScanTestForAccessibility','XhHGj','7537761tIZzEc','executeScript','initQuit','performScan','../../helpers/testhub/constants','KBkGF','__error_messages__','driverCleanup','beforeEach','util','currentTest','shScA','passed','Failed:\x20','BHmoG','2734rVawWn','UkTRp','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','oggIA','info','index','QRrJt','sessionNameSet__','../../helpers/performance/performance-tester','state','vIvUr','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','mXVmZ','setGlobal','stringify','vXWIT','BHnOz','TqLaa','qLSDr','../../helpers/testhub/utils','mochaHooks','jDXdW','AkruO','../../helpers/accessibility-automation/scripts','then','cHUMZ','now','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','env','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','XdSHY','FWJfk','end','IKRVT','1345ZDQKJy','lItdO','sAlaE','failed','SYNC','capabilities','zrjbS','PRuWR','app','__drivers','bstackA11yShouldScan','isArray','shift','CZxRq','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','RkFrC','https:','juxqb','BpmAT','qormg','BROWSERSTACK_TESTHUB_UUID','yRBlr','litDH','16592Laoyqf','qJfck','browserstackTestName','testAnalyticsId','__skipSessionName','error','timeout','AWGVx','\x20|\x20','push','ObservabilitySync:','vYpWF','__platformCaps','Automate\x20test\x20case\x20execution\x20has\x20started.','qPhQw','tShjV','.\x20Error\x20:','GIDKn','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','titlePath','measureWrapper','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','Passed','Failed\x20to\x20store\x20session\x20name:\x20','command','SESSION_NAME','HjowX','oYRZB','executeAsyncScript','jkZjX','hHdjE','BeFnz','HFnTk','pMfbe','length'];a32_0x2c94=function(){return _0x3cdb0e;};return a32_0x2c94();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x4795bd=a33_0x1d83;(function(_0x5cd472,_0x32c04d){const _0x1bf92a=a33_0x1d83,_0x168f60=_0x5cd472();while(!![]){try{const _0x168e4a=parseInt(_0x1bf92a(0x141))/0x1*(-parseInt(_0x1bf92a(0x166))/0x2)+parseInt(_0x1bf92a(0x178))/0x3*(parseInt(_0x1bf92a(0x16a))/0x4)+parseInt(_0x1bf92a(0x16f))/0x5*(parseInt(_0x1bf92a(0x15f))/0x6)+parseInt(_0x1bf92a(0x156))/0x7*(parseInt(_0x1bf92a(0x13b))/0x8)+-parseInt(_0x1bf92a(0x168))/0x9*(parseInt(_0x1bf92a(0x182))/0xa)+parseInt(_0x1bf92a(0x174))/0xb+-parseInt(_0x1bf92a(0x162))/0xc;if(_0x168e4a===_0x32c04d)break;else _0x168f60['push'](_0x168f60['shift']());}catch(_0x146be2){_0x168f60['push'](_0x168f60['shift']());}}}(a33_0x877e,0x3caec));function a33_0x877e(){const _0x16a30d=['winstonLogger','filter','20694jUsQOh','webdriver','child\x20process\x20exited\x20with\x20code\x20','3291060UNDeRE','--env','inherit','writeFileSync','150utbXOK','findIndex','53451JsfMUr','env','20frZKEf','RJBXR','now','PczRd','nightwatch','155mYuhxw','OtzJB','DnzlT','Getting\x20your\x20nightwatch\x20configs\x20from\x20','splice','5275941xBxTwl','isUndefined','hIHhv','zDDnq','279753uTWFZd','exports','platform','info','getPlatformName','../utils/constants','yTPOR','length','stringify','zYyJx','310fyMIYF','hub.browserstack.com','3824JJLyUG','iMOrN','existsSync','start_process','../../helpers/logger','forEach','5281txJLGW','VKPSE','mergeDeep','cwd','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','nightwatch-browserstack.json','modifyBrowserStackW3CCaps','join','split','LGAXw','test_settings','close','../../helpers/helper','FslEl','desiredCapabilities','test','xosxb','nightwatch.conf.js','slice','map','push','735NCTTgl','config','Deleting\x20','--config','modifyBrowserStackCaps','qTcJX','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack'];a33_0x877e=function(){return _0x16a30d;};return a33_0x877e();}function a33_0x1d83(_0xf0f668,_0x3bdad8){const _0x877e83=a33_0x877e();return a33_0x1d83=function(_0x1d8386,_0x5dcd79){_0x1d8386=_0x1d8386-0x13a;let _0x158427=_0x877e83[_0x1d8386];return _0x158427;},a33_0x1d83(_0xf0f668,_0x3bdad8);}const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),logger=require(a33_0x4795bd(0x13f))[a33_0x4795bd(0x15d)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0x4795bd(0x14d)),constants=require(a33_0x4795bd(0x17d)),getUserNightwatchConfigs=(_0x584ddb,_0x446108)=>{const _0x282cdf=a33_0x4795bd,_0x5ca4d6={'sHfCU':_0x282cdf(0x152),'PczRd':'nightwatch.json','vlMOC':function(_0x2d38f0,_0x4974ba){return _0x2d38f0(_0x4974ba);},'LGAXw':_0x282cdf(0x145)};let _0x3661dc=null,_0x4722cc={};const _0x44aa45=_0x446108['findIndex'](_0x547b18=>_0x547b18===_0x282cdf(0x159));if(!helper[_0x282cdf(0x175)](_0x584ddb[_0x282cdf(0x157)])&&fs['existsSync'](path[_0x282cdf(0x148)](process[_0x282cdf(0x144)](),_0x584ddb[_0x282cdf(0x157)])))_0x3661dc=path[_0x282cdf(0x148)](process[_0x282cdf(0x144)](),_0x584ddb[_0x282cdf(0x157)]),_0x446108['splice'](_0x44aa45,0x2);else{if(fs[_0x282cdf(0x13d)](path['join'](process['cwd'](),_0x5ca4d6['sHfCU'])))_0x3661dc=path[_0x282cdf(0x148)](process['cwd'](),_0x5ca4d6['sHfCU']);else fs['existsSync'](path['join'](process[_0x282cdf(0x144)](),_0x5ca4d6[_0x282cdf(0x16d)]))&&(_0x3661dc=path[_0x282cdf(0x148)](process[_0x282cdf(0x144)](),_0x5ca4d6[_0x282cdf(0x16d)]));}return _0x3661dc?(logger['info'](_0x282cdf(0x172)+_0x3661dc),_0x4722cc=_0x5ca4d6['vlMOC'](require,_0x3661dc)):logger[_0x282cdf(0x17b)](_0x5ca4d6[_0x282cdf(0x14a)]),_0x4722cc;},removeExistingEnvs=_0x53ae05=>{const _0x379f9e=a33_0x4795bd,_0x7ccfd4={};_0x7ccfd4[_0x379f9e(0x176)]=function(_0x6ac46b,_0x3824d6){return _0x6ac46b>_0x3824d6;};const _0x3e8ac2=_0x7ccfd4;let _0x2e3867=_0x53ae05[_0x379f9e(0x167)](_0xfda515=>_0xfda515===_0x379f9e(0x163));_0x3e8ac2[_0x379f9e(0x176)](_0x2e3867,-0x1)&&_0x53ae05[_0x379f9e(0x173)](_0x2e3867,0x2),_0x2e3867=_0x53ae05[_0x379f9e(0x167)](_0x30790f=>_0x30790f==='-e'),_0x3e8ac2[_0x379f9e(0x176)](_0x2e3867,-0x1)&&_0x53ae05[_0x379f9e(0x173)](_0x2e3867,0x2);};function run(_0x5490ff,_0x34576d){const _0xb81e1b=a33_0x4795bd,_0x47b5a9={'yTPOR':_0xb81e1b(0x16e),'yDcrx':function(_0x473f83,_0x2e555e){return _0x473f83+_0x2e555e;},'DnzlT':'test_settings','VKPSE':function(_0x3be0a8,_0x5ca038,_0x41157a){return _0x3be0a8(_0x5ca038,_0x41157a);},'RJBXR':_0xb81e1b(0x13a),'iMOrN':_0xb81e1b(0x15c),'XGFAj':function(_0x5a22f8,_0x7e6420){return _0x5a22f8===_0x7e6420;},'OtzJB':_0xb81e1b(0x146),'XJemt':function(_0xdde833,_0x5bd78e){return _0xdde833(_0x5bd78e);},'JTPPe':function(_0x64d7a,_0x55f681,_0x38f969,_0x450a6b){return _0x64d7a(_0x55f681,_0x38f969,_0x450a6b);},'FslEl':'nightwatch.cmd','xosxb':_0xb81e1b(0x159),'zYyJx':'--env','cJBcS':_0xb81e1b(0x164),'zDDnq':_0xb81e1b(0x14c)},_0x518b00=new BrowserStackSetup(_0x5490ff);if(!_0x518b00[_0xb81e1b(0x157)])return;const _0x5791d4=_0x47b5a9[_0xb81e1b(0x142)](getUserNightwatchConfigs,_0x5490ff,_0x34576d),_0x3dd0df={};_0x3dd0df[_0xb81e1b(0x13e)]=![];const _0x33c007={};_0x33c007['host']=_0x47b5a9[_0xb81e1b(0x16b)],_0x33c007['port']=0x1bb;const _0x1afc6a={};_0x1afc6a[_0xb81e1b(0x160)]=_0x3dd0df,_0x1afc6a['selenium']=_0x33c007;const _0x5477c7=_0x1afc6a;logger['info'](_0x47b5a9[_0xb81e1b(0x13c)]);const _0x16338e={..._0x5791d4},_0x9ff4c3=_0x16338e,_0x124abd=helper['useW3C'](_0x518b00[_0xb81e1b(0x157)]),_0xd7bb0a=[];_0x518b00[_0xb81e1b(0x157)]['platforms']['forEach']((_0x4776b9,_0x1cd199)=>{const _0x3d393e=_0xb81e1b;_0x124abd?_0xd7bb0a[_0x3d393e(0x155)](helper[_0x3d393e(0x147)](_0x518b00[_0x3d393e(0x157)],_0x47b5a9[_0x3d393e(0x17e)],_0x1cd199)):_0xd7bb0a[_0x3d393e(0x155)](helper[_0x3d393e(0x15a)](_0x518b00[_0x3d393e(0x157)],_0x47b5a9['yTPOR'],_0x1cd199));});const _0xe1715={},_0x3b3d38=[];_0x5490ff[_0xb81e1b(0x169)]=_0x5490ff['env']||_0x5490ff['e'];const _0x6e60c9=_0x5490ff[_0xb81e1b(0x169)]?_0x5490ff['env']['trim']()[_0xb81e1b(0x149)](',')[_0xb81e1b(0x154)](_0x11dc87=>_0x11dc87['trim']())[_0xb81e1b(0x15e)](_0x549dd1=>_0x549dd1!==''):[''];_0x47b5a9['XGFAj'](_0x6e60c9[_0xb81e1b(0x17f)],0x0)&&_0x6e60c9[_0xb81e1b(0x155)]('');_0x6e60c9[_0xb81e1b(0x140)](_0x3cb9c2=>{const _0x31b731=_0xb81e1b,_0x127d8c={'KIWCu':function(_0x204811,_0x530be1){return _0x47b5a9['yDcrx'](_0x204811,_0x530be1);},'qTcJX':_0x47b5a9[_0x31b731(0x171)]};_0xd7bb0a[_0x31b731(0x140)](_0x2e3a7d=>{const _0x4be89f=_0x31b731;let _0x7eb832=_0x127d8c['KIWCu'](helper[_0x4be89f(0x17c)](_0x2e3a7d,'_'),'_'+Date[_0x4be89f(0x16c)]());_0x3cb9c2&&(_0x7eb832+='_'+_0x3cb9c2);if(_0x3cb9c2&&(!_0x5791d4[_0x127d8c[_0x4be89f(0x15b)]]||!_0x5791d4[_0x127d8c[_0x4be89f(0x15b)]][_0x3cb9c2]))return;const _0x538435={..._0x5477c7};_0x538435[_0x4be89f(0x14f)]=_0x2e3a7d;const _0x28329f=_0x538435;_0xe1715[_0x7eb832]=_0x3cb9c2?helper[_0x4be89f(0x143)](_0x5791d4[_0x127d8c['qTcJX']][_0x3cb9c2],_0x28329f):_0x28329f,_0x3b3d38[_0x4be89f(0x155)](_0x7eb832);});});!_0x9ff4c3['test_settings']&&(_0x9ff4c3[_0xb81e1b(0x14b)]={});_0x9ff4c3[_0xb81e1b(0x14b)]={..._0x9ff4c3[_0xb81e1b(0x14b)],..._0xe1715};const _0x4565ca=path['join'](__dirname,_0x47b5a9[_0xb81e1b(0x170)]);fs[_0xb81e1b(0x165)](_0x4565ca,JSON[_0xb81e1b(0x180)](_0x9ff4c3)),_0x47b5a9['XJemt'](removeExistingEnvs,_0x34576d);const _0x52f351=_0x47b5a9['JTPPe'](spawn,/^win/[_0xb81e1b(0x150)](process[_0xb81e1b(0x17a)])?_0x47b5a9[_0xb81e1b(0x14e)]:_0x47b5a9[_0xb81e1b(0x17e)],[_0x47b5a9[_0xb81e1b(0x151)],_0x4565ca,..._0x34576d[_0xb81e1b(0x153)](0x1),_0x47b5a9[_0xb81e1b(0x181)],_0x3b3d38[_0xb81e1b(0x148)](',')],{'stdio':_0x47b5a9['cJBcS']});_0x52f351['on'](_0x47b5a9[_0xb81e1b(0x177)],async _0x56e968=>{const _0x1f44a1=_0xb81e1b;logger['debug'](_0x1f44a1(0x161)+_0x56e968),logger[_0x1f44a1(0x17b)](_0x1f44a1(0x158)+_0x4565ca),fs['unlinkSync'](_0x4565ca);});}module[a33_0x4795bd(0x179)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x2205d2=a34_0x5610;function a34_0x5610(_0x1029ae,_0x16ce28){const _0xfcb6c4=a34_0xfcb6();return a34_0x5610=function(_0x561063,_0x59a10a){_0x561063=_0x561063-0x76;let _0x38fb3d=_0xfcb6c4[_0x561063];return _0x38fb3d;},a34_0x5610(_0x1029ae,_0x16ce28);}function a34_0xfcb6(){const _0x2ba91e=['setAccessibilityCapabilities','accessibilityPlatform','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','OARoO','cMvzt','207796pQKula','needsReview','../../helpers/logger','WofGq','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','qYUPX','18bLwbKl','../../helpers/accessibility-automation/scripts','jvmWV','measureWrapper','browserstack.accessibility','66YijLCD','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','project','qshXK','xTZul','392322JVkexP','orqXy','performScan','3117726EvvgRV','browser','playwright-chromium','browser_version','scannerVersion','name','No\x20accessibility\x20results\x20were\x20found.','RXjJG','UNKvX','kWCNo','platformValidation','dvMby','EfvRA','bestPractice','147219yryXxD','includeIssueType','26tpWPOt','VdVnY','QbFQY','accessibilityOptions.scannerVersion','viFdP','warn','wsEndpoint','browserStackExecuteDriver','No\x20summaryResults\x20found.','accessibilityOptions.includeIssueType.bestPractice','stringify','env','thCOf','gCgGe','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','CUYrs','22tBUmhZ','BS_A11Y_JWT','accessibilityOptions.includeIssueType.needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','FyXJI','chrome','use','deviceName','parse','accessibilityOptions.scannerProcessingTimeout','IOQNg','27890MqdDBO','4748424fHWLBh','FkOgh','accessibilityOptions','scannerProcessingTimeout','constructor','AkjRx','getAccessibilityResultsSummary','XVYmR','khKMf','CUSHX','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','executeAsyncScript','tpeto','processAccessibilityCaps','hLIpm','../../helpers/performance/performance-tester','OkyMp','accessibilityOptions.authToken','latest','gYkgh','wcagVersion','error','browserName','../../helpers/performance/constants','vglWd','currentTest','replace','testInfo','3729mzZdlr','../../helpers/accessibility-automation/helper','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','kttiQ','format','12989268RMHIOr','WebDriver','browserStackEvaluate','5BOmVdC'];a34_0xfcb6=function(){return _0x2ba91e;};return a34_0xfcb6();}(function(_0x19deaa,_0x4ca732){const _0x1a048c=a34_0x5610,_0x2951d6=_0x19deaa();while(!![]){try{const _0x5aa66b=parseInt(_0x1a048c(0xd1))/0x1*(parseInt(_0x1a048c(0x78))/0x2)+parseInt(_0x1a048c(0xbb))/0x3*(parseInt(_0x1a048c(0xaf))/0x4)+-parseInt(_0x1a048c(0xa9))/0x5*(-parseInt(_0x1a048c(0xc3))/0x6)+-parseInt(_0x1a048c(0xc0))/0x7+parseInt(_0x1a048c(0x84))/0x8*(-parseInt(_0x1a048c(0xb6))/0x9)+parseInt(_0x1a048c(0x83))/0xa*(parseInt(_0x1a048c(0xa1))/0xb)+parseInt(_0x1a048c(0xa6))/0xc*(-parseInt(_0x1a048c(0xd3))/0xd);if(_0x5aa66b===_0x4ca732)break;else _0x2951d6['push'](_0x2951d6['shift']());}catch(_0x423805){_0x2951d6['push'](_0x2951d6['shift']());}}}(a34_0xfcb6,0xc8095));const util=require('util'),logger=require(a34_0x2205d2(0xb1))['winstonLogger'],{isAccessibilityAutomationSession}=require(a34_0x2205d2(0xa2)),{isUndefined}=require('../../helpers/helper'),scripts=require(a34_0x2205d2(0xb7)),PerformanceTester=require(a34_0x2205d2(0x94)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x2205d2(0x9c));exports[a34_0x2205d2(0xa8)]=async(_0x1964b9,_0x2240e8,_0x50c00c={})=>{const _0x3ae53f=a34_0x2205d2,_0x350db7={};_0x350db7[_0x3ae53f(0xc1)]='bstackSdkArgs';const _0x17d6a4=_0x350db7;return await _0x1964b9['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'+_0x2240e8['replace'](/arguments/g,_0x17d6a4['orqXy'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x3ae53f(0xdd)](_0x50c00c)+')');},exports[a34_0x2205d2(0xda)]=async(_0x5c2f4e,_0x4e302c,_0x10706b={})=>{const _0x42d4e2=a34_0x2205d2,_0x318d25={};_0x318d25['gCgGe']=function(_0x486643,_0x5a8fe4){return _0x486643===_0x5a8fe4;},_0x318d25[_0x42d4e2(0x77)]=_0x42d4e2(0xa7),_0x318d25[_0x42d4e2(0x89)]='Playwright',_0x318d25['QbFQY']='bstackSdkArgs';const _0x5b6c34=_0x318d25;if(_0x5b6c34[_0x42d4e2(0xe0)](_0x5c2f4e[_0x42d4e2(0x88)][_0x42d4e2(0xc8)],_0x5b6c34['CUYrs']))return await _0x5c2f4e[_0x42d4e2(0x90)](_0x4e302c,_0x10706b);else{if(_0x5b6c34['gCgGe'](_0x5c2f4e[_0x42d4e2(0x88)][_0x42d4e2(0xc8)],_0x5b6c34[_0x42d4e2(0x89)]))return await _0x5c2f4e['executeScript'](_0x42d4e2(0x8f)+_0x4e302c[_0x42d4e2(0x9f)](/arguments/g,_0x5b6c34[_0x42d4e2(0xd5)])+_0x42d4e2(0xac)+JSON[_0x42d4e2(0xdd)](_0x10706b)+')');}},exports[a34_0x2205d2(0xaa)]=async _0x5985a1=>{const _0x22753=a34_0x2205d2,_0x3eb37a={};_0x3eb37a[_0x22753(0x9d)]='accessibilityOptions.wcagVersion',_0x3eb37a['cMvzt']=_0x22753(0x81),_0x3eb37a['UNKvX']=_0x22753(0xdc),_0x3eb37a['ZNXGv']=_0x22753(0x7a),_0x3eb37a[_0x22753(0x82)]=_0x22753(0x96),_0x3eb37a[_0x22753(0xd4)]=_0x22753(0xd6);const _0x3c0855=_0x3eb37a;_0x5985a1['accessibilityOptions']&&(_0x5985a1['accessibilityOptions']['wcagVersion']&&(_0x5985a1[_0x3c0855[_0x22753(0x9d)]]=_0x5985a1[_0x22753(0x86)][_0x22753(0x99)]),_0x5985a1[_0x22753(0x86)]['scannerProcessingTimeout']&&(_0x5985a1[_0x3c0855[_0x22753(0xae)]]=_0x5985a1['accessibilityOptions'][_0x22753(0x87)]),_0x5985a1['accessibilityOptions']['includeIssueType']&&(_0x5985a1[_0x3c0855[_0x22753(0xcb)]]=_0x5985a1[_0x22753(0x86)][_0x22753(0xd2)][_0x22753(0xd0)],_0x5985a1[_0x3c0855['ZNXGv']]=_0x5985a1[_0x22753(0x86)][_0x22753(0xd2)][_0x22753(0xb0)]));const _0x3ef6fa=JSON[_0x22753(0x80)](process[_0x22753(0xde)][_0x22753(0xa3)])[_0x22753(0xc7)];_0x5985a1[_0x3c0855[_0x22753(0x82)]]=process[_0x22753(0xde)][_0x22753(0x79)],_0x5985a1[_0x3c0855[_0x22753(0xd4)]]=_0x3ef6fa,delete _0x5985a1[_0x22753(0x86)];},exports['getAccessibilityResults']=async _0x2cbad2=>{const _0x2a45c6=a34_0x2205d2,_0x39105a={};_0x39105a[_0x2a45c6(0xb5)]=_0x2a45c6(0xc9),_0x39105a['XaXBJ']=_0x2a45c6(0xb4);const _0x37e09f=_0x39105a;if(global[_0x2a45c6(0xab)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x2cbad2,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x2cbad2,scripts.getResults);})();return res;}catch{return logger[_0x2a45c6(0x9a)](_0x37e09f['qYUPX']),[];}else return logger[_0x2a45c6(0xd8)](_0x37e09f['XaXBJ']),[];},exports[a34_0x2205d2(0xc2)]=async(_0x473dcb,_0x1f9d45='')=>{const _0x330e71=a34_0x2205d2;if(global['accessibilityPlatform'])return await PerformanceTester[_0x330e71(0xb9)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0xe74f54=_0x330e71,_0x468d6c={};_0x468d6c['command']=_0x1f9d45,await exports[_0xe74f54(0xa8)](_0x473dcb,scripts['performScan'],_0x468d6c);},{'command':_0x1f9d45})();},exports[a34_0x2205d2(0x8a)]=async _0x1d12e6=>{const _0x3c14d1=a34_0x2205d2,_0x579b8d={};_0x579b8d['khKMf']=_0x3c14d1(0xdb),_0x579b8d[_0x3c14d1(0x93)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x49e50c=_0x579b8d;if(global[_0x3c14d1(0xab)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1d12e6,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x1d12e6,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x3c14d1(0x8e)](_0x49e50c[_0x3c14d1(0x8c)]),{};}else return logger[_0x3c14d1(0xd8)](_0x49e50c[_0x3c14d1(0x93)]),{};},exports[a34_0x2205d2(0xcd)]=async _0x13972f=>{const _0x5d52f0=a34_0x2205d2,_0x2c9456={'NqNjY':function(_0x95ac35,_0x2de48f){return _0x95ac35!==_0x2de48f;},'FkOgh':_0x5d52f0(0x7b),'RXjJG':function(_0x39cb07,_0x3a74f3){return _0x39cb07===_0x3a74f3;},'thCOf':_0x5d52f0(0x7d),'kWCNo':function(_0x532590,_0x4b39cf){return _0x532590===_0x4b39cf;},'viFdP':_0x5d52f0(0xc5),'dvMby':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','WofGq':function(_0x420020,_0xedd13b){return _0x420020(_0xedd13b);},'OARoO':function(_0x42ae12,_0x55d669){return _0x42ae12===_0x55d669;},'FyXJI':'latest','KpYbH':function(_0x5905a9,_0x595d9b){return _0x5905a9>_0x595d9b;},'kttiQ':_0x5d52f0(0xb3)};try{if(!_0x2c9456['NqNjY'](_0x13972f[_0x5d52f0(0x7f)],''))return logger[_0x5d52f0(0xd8)](_0x2c9456[_0x5d52f0(0x85)]),![];const _0x47f3b0=_0x13972f[_0x5d52f0(0xc4)];if(!(_0x2c9456[_0x5d52f0(0xca)](_0x47f3b0,_0x2c9456[_0x5d52f0(0xdf)])||_0x2c9456[_0x5d52f0(0xcc)](_0x47f3b0,_0x2c9456[_0x5d52f0(0xd7)])))return logger[_0x5d52f0(0xd8)](_0x2c9456[_0x5d52f0(0xce)]),![];const _0x1492d3=_0x2c9456[_0x5d52f0(0xb2)](parseInt,_0x13972f[_0x5d52f0(0xc6)]);if(!(_0x2c9456[_0x5d52f0(0xad)](_0x1492d3,_0x2c9456[_0x5d52f0(0x7c)])||_0x2c9456['KpYbH'](_0x1492d3,0x5e)))return logger[_0x5d52f0(0xd8)](_0x2c9456[_0x5d52f0(0xa4)]),![];}catch(_0x4da474){logger['debug']('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util['format'](_0x4da474));}return!![];},exports[a34_0x2205d2(0x92)]=(_0x18b111,_0x5d0579,_0x199520)=>{const _0x38a2f7=a34_0x2205d2,_0x1112cc={'XVYmR':function(_0x4b6b7c){return _0x4b6b7c();},'tpeto':_0x38a2f7(0xba),'jvmWV':function(_0xa4b927,_0x12a60d){return _0xa4b927===_0x12a60d;},'dUjXK':_0x38a2f7(0x7d),'qshXK':'playwright-chromium','gYkgh':_0x38a2f7(0xbc),'OkyMp':_0x38a2f7(0x97),'CUSHX':function(_0x2f7e59,_0x157633){return _0x2f7e59>_0x157633;},'EfvRA':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','GJGUY':function(_0x43f43f,_0x236358){return _0x43f43f(_0x236358);},'hFABY':_0x38a2f7(0x7b),'hYNAU':function(_0x40c0d2,_0x42e8df){return _0x40c0d2+_0x42e8df;},'xTZul':function(_0x2dd751,_0x175e75){return _0x2dd751(_0x175e75);}};try{if(_0x1112cc[_0x38a2f7(0x8b)](isAccessibilityAutomationSession)){global[_0x38a2f7(0xab)]=!![];!_0x18b111[_0x1112cc[_0x38a2f7(0x91)]]&&(global[_0x38a2f7(0xab)]=![]);!(_0x1112cc['jvmWV'](_0x18b111[_0x38a2f7(0x9b)],_0x1112cc['dUjXK'])||_0x1112cc[_0x38a2f7(0xb8)](_0x18b111[_0x38a2f7(0x9b)],_0x1112cc[_0x38a2f7(0xbe)]))&&(logger[_0x38a2f7(0xd8)](_0x1112cc[_0x38a2f7(0x98)]),global[_0x38a2f7(0xab)]=![]);!(_0x1112cc['jvmWV'](_0x18b111[_0x38a2f7(0xc6)],_0x1112cc[_0x38a2f7(0x95)])||_0x1112cc[_0x38a2f7(0x8d)](_0x18b111[_0x38a2f7(0xc6)],0x5e))&&(logger[_0x38a2f7(0xd8)](_0x1112cc[_0x38a2f7(0xcf)]),global[_0x38a2f7(0xab)]=![]);!_0x1112cc['GJGUY'](isUndefined,_0x18b111['deviceName'])&&(logger[_0x38a2f7(0xd8)](_0x1112cc['hFABY']),global[_0x38a2f7(0xab)]=![]);if(!global[_0x38a2f7(0xab)]){_0x18b111[_0x1112cc[_0x38a2f7(0x91)]]=![];const _0x2d3437=_0x1112cc['hYNAU'](_0x5d0579,_0x1112cc[_0x38a2f7(0xbf)](encodeURIComponent,JSON[_0x38a2f7(0xdd)](_0x18b111)));_0x199520&&(_0x199520[_0x38a2f7(0x9e)][_0x38a2f7(0xa0)][_0x38a2f7(0xbd)]['use']['connectOptions'][_0x38a2f7(0xd9)]=_0x2d3437,_0x199520['workerInfo'][_0x38a2f7(0xbd)][_0x38a2f7(0x7e)]['connectOptions'][_0x38a2f7(0xd9)]=_0x2d3437);}}}catch(_0x1583f0){logger[_0x38a2f7(0x8e)](_0x38a2f7(0x76)+util[_0x38a2f7(0xa5)](_0x1583f0));}};
|
|
1
|
+
const a34_0x2828c8=a34_0x1afb;(function(_0x127476,_0x581e9a){const _0x21a5eb=a34_0x1afb,_0x18fa67=_0x127476();while(!![]){try{const _0x550b1a=parseInt(_0x21a5eb(0xbc))/0x1+-parseInt(_0x21a5eb(0xd1))/0x2*(parseInt(_0x21a5eb(0xa6))/0x3)+-parseInt(_0x21a5eb(0xd8))/0x4*(-parseInt(_0x21a5eb(0xcf))/0x5)+-parseInt(_0x21a5eb(0xbf))/0x6+parseInt(_0x21a5eb(0xae))/0x7*(parseInt(_0x21a5eb(0xc3))/0x8)+parseInt(_0x21a5eb(0xbb))/0x9*(-parseInt(_0x21a5eb(0xd6))/0xa)+parseInt(_0x21a5eb(0x89))/0xb;if(_0x550b1a===_0x581e9a)break;else _0x18fa67['push'](_0x18fa67['shift']());}catch(_0x34c0b7){_0x18fa67['push'](_0x18fa67['shift']());}}}(a34_0x60bc,0xd385c));function a34_0x1afb(_0x402831,_0x47ac99){const _0x60bc3b=a34_0x60bc();return a34_0x1afb=function(_0x1afb11,_0x568314){_0x1afb11=_0x1afb11-0x7b;let _0x1ed365=_0x60bc3b[_0x1afb11];return _0x1ed365;},a34_0x1afb(_0x402831,_0x47ac99);}const util=require('util'),logger=require(a34_0x2828c8(0x83))[a34_0x2828c8(0xc8)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require('../../helpers/helper'),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a34_0x2828c8(0xe0)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x2828c8(0x90));exports[a34_0x2828c8(0xcd)]=async(_0x121016,_0x521feb,_0x3fd454={})=>{const _0x372ea4=a34_0x2828c8,_0x431a5f={};_0x431a5f['zFgEJ']=_0x372ea4(0x8b);const _0xb75e76=_0x431a5f;return await _0x121016[_0x372ea4(0x82)]('(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'+_0x521feb[_0x372ea4(0x8c)](/arguments/g,_0xb75e76[_0x372ea4(0xd2)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0x3fd454)+')');},exports[a34_0x2828c8(0xaf)]=async(_0x3bef66,_0x55d87a,_0x9d953c={})=>{const _0x562a38=a34_0x2828c8,_0x3364d1={};_0x3364d1['Mjvmm']=function(_0x3c56a1,_0x28d7e1){return _0x3c56a1===_0x28d7e1;},_0x3364d1[_0x562a38(0x93)]=_0x562a38(0xd0),_0x3364d1[_0x562a38(0x9a)]=_0x562a38(0xb5),_0x3364d1['srFaz']=_0x562a38(0x8b);const _0x598170=_0x3364d1;if(_0x598170['Mjvmm'](_0x3bef66['constructor'][_0x562a38(0xa8)],_0x598170[_0x562a38(0x93)]))return await _0x3bef66[_0x562a38(0xce)](_0x55d87a,_0x9d953c);else{if(_0x598170[_0x562a38(0x9f)](_0x3bef66[_0x562a38(0xb8)][_0x562a38(0xa8)],_0x598170[_0x562a38(0x9a)]))return await _0x3bef66['executeScript'](_0x562a38(0xac)+_0x55d87a[_0x562a38(0x8c)](/arguments/g,_0x598170[_0x562a38(0xaa)])+_0x562a38(0x8e)+JSON['stringify'](_0x9d953c)+')');}},exports[a34_0x2828c8(0x8a)]=async _0x1229ec=>{const _0x17335e=a34_0x2828c8,_0x149c1d={};_0x149c1d['DQpCi']='accessibilityOptions.wcagVersion',_0x149c1d[_0x17335e(0xe4)]=_0x17335e(0xc9),_0x149c1d[_0x17335e(0xe3)]='accessibilityOptions.includeIssueType.bestPractice',_0x149c1d['qHPRj']=_0x17335e(0x94),_0x149c1d[_0x17335e(0xba)]=_0x17335e(0x9c),_0x149c1d[_0x17335e(0xd3)]='accessibilityOptions.scannerVersion';const _0x48eb8c=_0x149c1d;_0x1229ec[_0x17335e(0xdd)]&&(_0x1229ec[_0x17335e(0xdd)][_0x17335e(0x9d)]&&(_0x1229ec[_0x48eb8c[_0x17335e(0x85)]]=_0x1229ec[_0x17335e(0xdd)][_0x17335e(0x9d)]),_0x1229ec[_0x17335e(0xdd)][_0x17335e(0xb2)]&&(_0x1229ec[_0x48eb8c[_0x17335e(0xe4)]]=_0x1229ec['accessibilityOptions'][_0x17335e(0xb2)]),_0x1229ec['accessibilityOptions'][_0x17335e(0x86)]&&(_0x1229ec[_0x48eb8c[_0x17335e(0xe3)]]=_0x1229ec[_0x17335e(0xdd)][_0x17335e(0x86)][_0x17335e(0xc4)],_0x1229ec[_0x48eb8c[_0x17335e(0xde)]]=_0x1229ec['accessibilityOptions'][_0x17335e(0x86)][_0x17335e(0xb3)]));const _0x3511dd=JSON[_0x17335e(0xe2)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x17335e(0xdb)];_0x1229ec[_0x48eb8c['rRrPq']]=process[_0x17335e(0xc0)][_0x17335e(0x95)],_0x1229ec[_0x48eb8c[_0x17335e(0xd3)]]=_0x3511dd,delete _0x1229ec[_0x17335e(0xdd)];},exports[a34_0x2828c8(0xe1)]=async _0x46db75=>{const _0x59edad=a34_0x2828c8,_0x412c9c={};_0x412c9c['qesGf']=_0x59edad(0xdc),_0x412c9c[_0x59edad(0x84)]=_0x59edad(0xca);const _0x3634=_0x412c9c;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x46db75,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x46db75,scripts.getResults);})();return res;}catch{return logger[_0x59edad(0xb4)](_0x3634['qesGf']),[];}else return logger[_0x59edad(0xb7)](_0x3634[_0x59edad(0x84)]),[];},exports['performScan']=async(_0x5281d1,_0x346647='')=>{const _0x479207=a34_0x2828c8;if(global[_0x479207(0x88)])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x479207(0xa9)],async()=>{const _0x2ab182=_0x479207,_0x55919f={};_0x55919f[_0x2ab182(0xa0)]=_0x346647,await exports[_0x2ab182(0xcd)](_0x5281d1,scripts['performScan'],_0x55919f);},{'command':_0x346647})();},exports['getAccessibilityResultsSummary']=async _0x25baf3=>{const _0x410f8e=a34_0x2828c8,_0x5facb8={};_0x5facb8[_0x410f8e(0xda)]=_0x410f8e(0x92),_0x5facb8[_0x410f8e(0xa2)]=_0x410f8e(0xcb);const _0x15e5b6=_0x5facb8;if(global[_0x410f8e(0x88)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x25baf3,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x25baf3,scripts.getResultsSummary);})();return summaryResults;}catch{return logger['debug'](_0x15e5b6['xmYNk']),{};}else return logger['warn'](_0x15e5b6['mwYYp']),{};},exports['platformValidation']=async _0x2c99fa=>{const _0x39efcd=a34_0x2828c8,_0x4c7ca8={'zVsXd':function(_0x4bef3b,_0x2aeb61){return _0x4bef3b!==_0x2aeb61;},'BhQFv':_0x39efcd(0x81),'YdcqL':function(_0x3b2dc7,_0x54c814){return _0x3b2dc7===_0x54c814;},'KUGmV':_0x39efcd(0xe5),'huwkr':_0x39efcd(0xad),'fqWQc':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','XKfTz':function(_0x18b110,_0x3ecbe3){return _0x18b110(_0x3ecbe3);},'XDLVZ':function(_0x516376,_0x4b2af6){return _0x516376===_0x4b2af6;},'PzrjX':'latest','mFeql':function(_0x3e1fdb,_0xce0b29){return _0x3e1fdb>_0xce0b29;},'dEycr':_0x39efcd(0xc2)};try{if(!_0x4c7ca8[_0x39efcd(0xbd)](_0x2c99fa['deviceName'],''))return logger[_0x39efcd(0xb7)](_0x4c7ca8[_0x39efcd(0x97)]),![];const _0x2e84cd=_0x2c99fa[_0x39efcd(0xd9)];if(!(_0x4c7ca8[_0x39efcd(0xc1)](_0x2e84cd,_0x4c7ca8[_0x39efcd(0xb6)])||_0x4c7ca8[_0x39efcd(0xc1)](_0x2e84cd,_0x4c7ca8['huwkr'])))return logger['warn'](_0x4c7ca8[_0x39efcd(0xcc)]),![];const _0x5d1c02=_0x4c7ca8[_0x39efcd(0x9b)](parseInt,_0x2c99fa[_0x39efcd(0x99)]);if(!(_0x4c7ca8[_0x39efcd(0xb9)](_0x5d1c02,_0x4c7ca8['PzrjX'])||_0x4c7ca8[_0x39efcd(0xd7)](_0x5d1c02,0x5e)))return logger[_0x39efcd(0xb7)](_0x4c7ca8['dEycr']),![];}catch(_0x3861e6){logger[_0x39efcd(0xa1)](_0x39efcd(0xa3)+util[_0x39efcd(0x8d)](_0x3861e6));}return!![];},exports[a34_0x2828c8(0x7b)]=(_0x3b583d,_0x3761a9,_0x140c9a)=>{const _0x3fd539=a34_0x2828c8,_0x47a7bf={'ufvdR':function(_0x3e0ee3){return _0x3e0ee3();},'ktwmC':'browserstack.accessibility','GvIYy':function(_0x294393,_0x5a6b57){return _0x294393===_0x5a6b57;},'YfEfX':_0x3fd539(0xe5),'PQnRU':function(_0x43b49d,_0x1b96c6){return _0x43b49d===_0x1b96c6;},'UbDwR':'playwright-chromium','DOAfH':_0x3fd539(0xd4),'WUWyx':function(_0x50a8e9,_0x52b5c6){return _0x50a8e9===_0x52b5c6;},'ikEgQ':'latest','NOwrj':function(_0x56adb1,_0x595ffd){return _0x56adb1>_0x595ffd;},'dZrvk':_0x3fd539(0xc2),'enodu':function(_0x2ac5bf,_0x4b9115){return _0x2ac5bf(_0x4b9115);},'TUAQs':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','RLWQv':function(_0x222757,_0x1a2497){return _0x222757+_0x1a2497;}};try{if(_0x47a7bf[_0x3fd539(0xbe)](isAccessibilityAutomationSession)){global[_0x3fd539(0x88)]=!![];!_0x3b583d[_0x47a7bf['ktwmC']]&&(global[_0x3fd539(0x88)]=![]);!(_0x47a7bf[_0x3fd539(0x96)](_0x3b583d['browserName'],_0x47a7bf[_0x3fd539(0x8f)])||_0x47a7bf[_0x3fd539(0x9e)](_0x3b583d[_0x3fd539(0x87)],_0x47a7bf[_0x3fd539(0x7d)]))&&(logger['warn'](_0x47a7bf[_0x3fd539(0xb0)]),global[_0x3fd539(0x88)]=![]);!(_0x47a7bf[_0x3fd539(0xa5)](_0x3b583d[_0x3fd539(0x99)],_0x47a7bf[_0x3fd539(0xb1)])||_0x47a7bf[_0x3fd539(0xa4)](_0x3b583d['browser_version'],0x5e))&&(logger[_0x3fd539(0xb7)](_0x47a7bf[_0x3fd539(0xd5)]),global[_0x3fd539(0x88)]=![]);!_0x47a7bf[_0x3fd539(0x7f)](isUndefined,_0x3b583d[_0x3fd539(0xc5)])&&(logger[_0x3fd539(0xb7)](_0x47a7bf[_0x3fd539(0x98)]),global['accessibilityPlatform']=![]);if(!global[_0x3fd539(0x88)]){_0x3b583d[_0x47a7bf[_0x3fd539(0x7e)]]=![];const _0x2fbbe1=_0x47a7bf[_0x3fd539(0xc7)](_0x3761a9,_0x47a7bf[_0x3fd539(0x7f)](encodeURIComponent,JSON[_0x3fd539(0xdf)](_0x3b583d)));_0x140c9a&&(_0x140c9a[_0x3fd539(0xc6)]['testInfo'][_0x3fd539(0xab)]['use'][_0x3fd539(0x7c)][_0x3fd539(0x80)]=_0x2fbbe1,_0x140c9a[_0x3fd539(0xa7)][_0x3fd539(0xab)]['use'][_0x3fd539(0x7c)][_0x3fd539(0x80)]=_0x2fbbe1);}}}catch(_0x16d204){logger['debug'](_0x3fd539(0x91)+util[_0x3fd539(0x8d)](_0x16d204));}};function a34_0x60bc(){const _0x389167=['name','PERFORM_SCAN','srFaz','project','(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','playwright-chromium','7omdmaG','browserStackExecuteDriver','DOAfH','ikEgQ','scannerProcessingTimeout','needsReview','error','Playwright','KUGmV','warn','constructor','XDLVZ','rRrPq','50751VOkCUC','838281VZaLNT','zVsXd','ufvdR','9846588aUrAJN','env','YdcqL','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','1397096ssxJlm','bestPractice','deviceName','currentTest','RLWQv','winstonLogger','accessibilityOptions.scannerProcessingTimeout','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','fqWQc','browserStackEvaluate','executeAsyncScript','25UOQMKJ','WebDriver','1238iicTvW','zFgEJ','QsJOV','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','dZrvk','310cnPvvo','mFeql','1173036npAsGk','browser','xmYNk','scannerVersion','No\x20accessibility\x20results\x20were\x20found.','accessibilityOptions','qHPRj','stringify','../../helpers/performance/performance-tester','getAccessibilityResults','parse','dWpby','aBzCn','chrome','processAccessibilityCaps','connectOptions','UbDwR','ktwmC','enodu','wsEndpoint','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','evaluate','../../helpers/logger','zvtmZ','DQpCi','includeIssueType','browserName','accessibilityPlatform','7837797wHalzx','setAccessibilityCapabilities','bstackSdkArgs','replace','format','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','YfEfX','../../helpers/performance/constants','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','No\x20summaryResults\x20found.','PsJHr','accessibilityOptions.includeIssueType.needsReview','BS_A11Y_JWT','GvIYy','BhQFv','TUAQs','browser_version','APcqG','XKfTz','accessibilityOptions.authToken','wcagVersion','PQnRU','Mjvmm','command','debug','mwYYp','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','NOwrj','WUWyx','2469nECclo','workerInfo'];a34_0x60bc=function(){return _0x389167;};return a34_0x60bc();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x17e81e=a35_0x463c;(function(_0x3b1292,_0x1a6acf){const _0x18dcac=a35_0x463c,_0x17a406=_0x3b1292();while(!![]){try{const _0x333c3b=-parseInt(_0x18dcac(0x143))/0x1+-parseInt(_0x18dcac(0x160))/0x2*(parseInt(_0x18dcac(0xe0))/0x3)+-parseInt(_0x18dcac(0x162))/0x4*(parseInt(_0x18dcac(0x154))/0x5)+-parseInt(_0x18dcac(0x103))/0x6*(-parseInt(_0x18dcac(0x121))/0x7)+-parseInt(_0x18dcac(0xbf))/0x8+parseInt(_0x18dcac(0x14c))/0x9+parseInt(_0x18dcac(0x147))/0xa*(parseInt(_0x18dcac(0xdc))/0xb);if(_0x333c3b===_0x1a6acf)break;else _0x17a406['push'](_0x17a406['shift']());}catch(_0x4bbfea){_0x17a406['push'](_0x17a406['shift']());}}}(a35_0x6868,0x20dc5));const fs=require('fs'),path=require(a35_0x17e81e(0xd7)),{spawn}=require('child_process'),{format}=require(a35_0x17e81e(0xbc)),logger=require(a35_0x17e81e(0x158))[a35_0x17e81e(0x14a)],{default:BrowserStackSetup}=require(a35_0x17e81e(0x10f)),helper=require(a35_0x17e81e(0x108)),utilities=require(a35_0x17e81e(0x106)),constants=require(a35_0x17e81e(0x129)),{FRAMEWORKS}=require(a35_0x17e81e(0xbe)),{getConfigLoaderPath}=require(a35_0x17e81e(0xef)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a35_0x17e81e(0x130)),{printBuildLink}=require(a35_0x17e81e(0x124)),TestDetails=require(a35_0x17e81e(0x113)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a35_0x17e81e(0x136)),PerformanceEvents=require('../../helpers/performance/constants')[a35_0x17e81e(0x15d)],getUserPlaywrightConfig=async(_0x491368,_0x363b61)=>{const _0x3ae0bc=a35_0x17e81e,_0x19e84b={'ZnPaJ':function(_0x8f4bee){return _0x8f4bee();},'DJcKZ':function(_0x54eb46,_0x339935){return _0x54eb46(_0x339935);},'sqbGM':function(_0x199cdb,_0x35d40e){return _0x199cdb(_0x35d40e);},'MhXlS':_0x3ae0bc(0x148),'AtLCf':_0x3ae0bc(0x152)},_0x510043=!helper[_0x3ae0bc(0x149)](_0x491368['config']),_0xde4d94=_0x510043?path[_0x3ae0bc(0x134)](process[_0x3ae0bc(0x14e)](),_0x491368[_0x3ae0bc(0x10b)]):process[_0x3ae0bc(0x14e)](),{resolveConfigFile:_0x21c5e9,resolveConfigLocation:_0x22fbc4}=helper['requirePWModule'][_0x3ae0bc(0x146)](null,_0x19e84b[_0x3ae0bc(0x117)](getConfigLoaderPath)),_0x5e2eae=_0x21c5e9?_0x19e84b[_0x3ae0bc(0x10e)](_0x21c5e9,_0xde4d94):helper[_0x3ae0bc(0xea)](_0x19e84b[_0x3ae0bc(0x168)](_0x22fbc4,_0xde4d94),[_0x19e84b[_0x3ae0bc(0x107)]]),_0x6614b6={};if(_0x510043){const _0x2f1167=_0x363b61['findIndex'](_0x590a0e=>_0x590a0e===_0x3ae0bc(0xda)||_0x590a0e==='-c'||_0x590a0e[_0x3ae0bc(0x112)](_0x3ae0bc(0x152)));_0x363b61[_0x3ae0bc(0x105)](_0x2f1167,_0x363b61[_0x2f1167][_0x3ae0bc(0x112)](_0x19e84b[_0x3ae0bc(0x104)])?0x1:0x2);}const _0x3004cb={};return _0x3004cb[_0x3ae0bc(0xd7)]=_0x5e2eae,_0x3004cb[_0x3ae0bc(0x10b)]=_0x6614b6,_0x3004cb;},handleO11yRerun=_0x673f8a=>{const _0x79da50=a35_0x17e81e,_0x55d0da={};_0x55d0da[_0x79da50(0x11b)]=_0x79da50(0x126);const _0x242e50=_0x55d0da,_0x2193b0=helper['isTrue'](process[_0x79da50(0xe2)][_0x79da50(0x16c)]);if(_0x2193b0){const _0x341f34=process['env'][_0x79da50(0x15f)],_0x3df9f8=[];if(helper['validateRerunTestList'](_0x341f34)&&!helper[_0x79da50(0x149)](_0x341f34)){_0x341f34[_0x79da50(0x14d)](',')[_0x79da50(0xf3)](_0x2c7002=>{const _0x1bc17e=_0x79da50;_0x3df9f8[_0x1bc17e(0x101)]('('+_0x2c7002['trim']()+')');});const _0x4a7530='^'+_0x3df9f8[_0x79da50(0x159)]('|')+'$';_0x673f8a['push'](_0x242e50['weTwf'],_0x4a7530);}}},spawnOriginalProcess=_0x7ad4d6=>{const _0x2aa558=a35_0x17e81e,_0x45c8ee={'naQWr':function(_0x31bfff,_0x2dfe51,_0x5da4b5,_0x435f3f){return _0x31bfff(_0x2dfe51,_0x5da4b5,_0x435f3f);},'NUHVy':_0x2aa558(0x157),'COLVV':'playwright','RIwok':function(_0x53ca3f,_0x23196f){return _0x53ca3f===_0x23196f;},'SBgse':'win32','pmRyZ':_0x2aa558(0x150)};_0x45c8ee[_0x2aa558(0xcd)](spawn,_0x45c8ee['NUHVy'],[_0x45c8ee[_0x2aa558(0xe8)],..._0x7ad4d6[_0x2aa558(0x11f)](0x1)],{'shell':_0x45c8ee[_0x2aa558(0x135)](process[_0x2aa558(0xcb)],_0x45c8ee[_0x2aa558(0x127)]),'stdio':_0x45c8ee['pmRyZ'],'cwd':process['cwd']()});},isTestCommand=(_0x37c9b7,_0x4844ab)=>{const _0x1a9b42=a35_0x17e81e,_0x2a8674={};_0x2a8674[_0x1a9b42(0x12f)]=function(_0xaca0f9,_0x1bf801){return _0xaca0f9>_0x1bf801;},_0x2a8674[_0x1a9b42(0x122)]=function(_0xc5459f,_0x23fa01){return _0xc5459f===_0x23fa01;},_0x2a8674[_0x1a9b42(0xdf)]='test';const _0x183fa9=_0x2a8674;if(_0x183fa9[_0x1a9b42(0x12f)](_0x4844ab[_0x1a9b42(0xf5)],0x1)&&_0x183fa9[_0x1a9b42(0x122)](_0x4844ab[0x1],_0x183fa9['KxxIb']))return!![];return![];};async function run(_0x24dcca,_0x13df51){const _0x525056=a35_0x17e81e,_0x5d3909={'SZZHh':_0x525056(0x164),'tmzwy':'pw_result.json','xEXNX':function(_0x4514ce,_0x5b3f0a){return _0x4514ce+_0x5b3f0a;},'LVuCU':_0x525056(0xc9),'AGJnU':function(_0x22ba3d){return _0x22ba3d();},'FICqc':function(_0x5eec77){return _0x5eec77();},'sznaX':function(_0x153dc6,_0x53bf81){return _0x153dc6+_0x53bf81;},'HGqAc':_0x525056(0xd0),'UyjiE':function(_0x48ba66,_0x259c97){return _0x48ba66(_0x259c97);},'iESXv':_0x525056(0xd8),'WpZIX':_0x525056(0xfb),'SQdrT':function(_0x47ac43,_0x1f47a4){return _0x47ac43!=_0x1f47a4;},'dPOll':function(_0x17d24f,_0x564c2c,_0x29b38a){return _0x17d24f(_0x564c2c,_0x29b38a);},'LHkfx':function(_0x45d497,_0x44c66e){return _0x45d497===_0x44c66e;},'RRnte':'true','wBtkF':function(_0x379ba0,_0x40bf78){return _0x379ba0(_0x40bf78);},'qUsQr':'browserstackSetupConfig.json','nLYGz':_0x525056(0x13e),'AyRMQ':_0x525056(0x15c),'jzuOI':function(_0x5c7d29,_0x43e4dc){return _0x5c7d29-_0x43e4dc;},'rwPQC':function(_0x6142c3,_0x200697){return _0x6142c3+_0x200697;},'RmmeQ':'Updated\x20config\x20file\x20name\x20to\x20-\x20','KIaTu':function(_0x59da28,_0x46b142){return _0x59da28>_0x46b142;},'ZPsfW':function(_0x446043,_0x5c3778,_0x4a35b7,_0x4b1bcc){return _0x446043(_0x5c3778,_0x4a35b7,_0x4b1bcc);},'KWaVR':'npx','jBMKu':'playwright','yZNrY':_0x525056(0x13d),'OcsjF':'--config','uqgvL':_0x525056(0xde),'SrKoT':_0x525056(0x150),'QSmbo':_0x525056(0xe3),'kpWwP':_0x525056(0x11c),'CaiWI':_0x525056(0xe7),'VjFqT':_0x525056(0x128),'DNjbi':function(_0x11f8ee,_0x1fee44){return _0x11f8ee>=_0x1fee44;},'CRGuP':'Error\x20in\x20deleting\x20playwright\x20results','DsMxZ':function(_0x1a2370,_0x13cf56,_0xc5f0c7){return _0x1a2370(_0x13cf56,_0xc5f0c7);},'TUpdZ':function(_0x507b66,_0x27eb1e){return _0x507b66(_0x27eb1e);}};!helper[_0x525056(0xbd)](process[_0x525056(0xe2)][_0x525056(0x10a)])&&(process[_0x525056(0xe2)]['BROWSERSTACK_AUTOMATION']=!![]);process[_0x525056(0x15e)][_0x525056(0xd6)](_0x5d3909[_0x525056(0xc5)])&&(process[_0x525056(0xe2)][_0x525056(0x10a)]=_0x5d3909[_0x525056(0x153)],_0x13df51=_0x13df51[_0x525056(0xe6)](_0x147aa4=>_0x147aa4!=='--disable-browserstack-automation'));const _0x571a4a=_0x13df51[_0x525056(0xf1)](_0x5d3909[_0x525056(0xcc)]);_0x5d3909[_0x525056(0xe5)](_0x571a4a,0x0)&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=_0x5d3909['CaiWI'],_0x13df51=_0x13df51[_0x525056(0xe6)](_0x402f80=>_0x402f80!==_0x525056(0x128)));try{const _0x3ec7a9=path['join'](helper['homedir'](),_0x5d3909['SZZHh'],_0x5d3909[_0x525056(0x155)]);fs[_0x525056(0x11a)](_0x3ec7a9)&&fs['unlinkSync'](_0x3ec7a9);}catch(_0x1f79e8){logger['debug'](_0x5d3909[_0x525056(0x16d)](_0x5d3909[_0x525056(0x151)],_0x1f79e8));}if(!_0x5d3909['DsMxZ'](isTestCommand,_0x24dcca,_0x13df51)){_0x5d3909[_0x525056(0x165)](spawnOriginalProcess,_0x13df51);return;}const _0x25fe3c=new BrowserStackSetup(_0x24dcca,FRAMEWORKS[_0x525056(0x10d)]);await PerformanceTester[_0x525056(0x140)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x5d045f=_0x525056,_0x157b3a={'PbHoB':function(_0x510420,_0x39be22){const _0x26e280=a35_0x463c;return _0x5d3909[_0x26e280(0xed)](_0x510420,_0x39be22);}};if(!_0x25fe3c[_0x5d045f(0x10b)]){logger[_0x5d045f(0x163)](_0x5d3909[_0x5d045f(0x11d)]);return;}await _0x25fe3c[_0x5d045f(0x16b)]();!helper[_0x5d045f(0x149)](_0x25fe3c[_0x5d045f(0xfe)])&&_0x25fe3c[_0x5d045f(0xfe)][_0x5d045f(0x132)](_0x5d3909[_0x5d045f(0xeb)])&&(process[_0x5d045f(0xe2)][_0x5d045f(0x10a)]=_0x25fe3c['cliConfig'][_0x5d045f(0xd2)](_0x5d3909['WpZIX'])||!![]);_0x5d3909[_0x5d045f(0x14f)](_0x25fe3c[_0x5d045f(0x10b)][_0x5d045f(0x119)],null)&&!helper[_0x5d045f(0xf9)](process[_0x5d045f(0xe2)][_0x5d045f(0xd4)])&&(process[_0x5d045f(0xe2)][_0x5d045f(0xd4)]=process[_0x5d045f(0xe2)][_0x5d045f(0xd4)]||_0x25fe3c['config'][_0x5d045f(0x119)]);const _0x168bce=!helper[_0x5d045f(0xbd)](process[_0x5d045f(0xe2)][_0x5d045f(0xd4)]);let _0x16fa02=![];_0x25fe3c[_0x5d045f(0x10b)][_0x5d045f(0x111)]&&(_0x16fa02=!![],process[_0x5d045f(0xe2)][_0x5d045f(0xdd)]=_0x25fe3c[_0x5d045f(0x10b)][_0x5d045f(0x111)]);_0x25fe3c[_0x5d045f(0x10b)][_0x5d045f(0xe9)]&&(process['env'][_0x5d045f(0xc4)]=JSON[_0x5d045f(0x144)](_0x25fe3c['config']['accessibilityOptions']));const _0x50a30d=_0x13df51[_0x5d045f(0x10c)](),_0x31e37a=await _0x5d3909[_0x5d045f(0x12c)](getUserPlaywrightConfig,_0x24dcca,_0x13df51);if(helper[_0x5d045f(0x149)](_0x31e37a)){_0x5d3909[_0x5d045f(0xed)](spawnOriginalProcess,_0x50a30d);return;}const _0x37f565=_0x31e37a[_0x5d045f(0xd7)]?path['dirname'](_0x31e37a[_0x5d045f(0xd7)]):process[_0x5d045f(0x14e)]();process[_0x5d045f(0xe2)][_0x5d045f(0x13b)]=_0x37f565,await PerformanceTester[_0x5d045f(0x140)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x66805a=_0x5d045f;await TestHubHandler[_0x66805a(0x139)](FRAMEWORKS['PLAYWRIGHT'],_0x25fe3c),_0x168bce&&_0x157b3a[_0x66805a(0x13a)](handleO11yRerun,_0x13df51);})();let _0x17067f=_0x5d3909[_0x5d045f(0xd1)](process[_0x5d045f(0xe2)][_0x5d045f(0xdd)],_0x5d3909[_0x5d045f(0x161)]);_0x17067f=_0x17067f||_0x5d3909[_0x5d045f(0xed)](checkAccessibilityPlatformConfig,_0x25fe3c[_0x5d045f(0x10b)]),process[_0x5d045f(0xe2)][_0x5d045f(0xdd)]=_0x17067f;_0x17067f&&_0x5d3909[_0x5d045f(0x131)](setAccessibilityCapabilities,_0x25fe3c[_0x5d045f(0x10b)]);const _0x2e9294=path[_0x5d045f(0x159)](_0x31e37a[_0x5d045f(0xd7)]?path[_0x5d045f(0x13f)](_0x31e37a['path']):process[_0x5d045f(0x14e)](),_0x5d3909[_0x5d045f(0xee)]);fs[_0x5d045f(0x114)](_0x2e9294,helper[_0x5d045f(0xd9)](_0x25fe3c[_0x5d045f(0x10b)])),process[_0x5d045f(0xe2)][_0x5d045f(0x15b)]=_0x2e9294,helper[_0x5d045f(0x11e)]();let _0x15c16e='';_0x5d3909[_0x5d045f(0xd1)](helper[_0x5d045f(0xf8)](),constants[_0x5d045f(0xf7)][_0x5d045f(0x138)])?_0x15c16e=_0x5d3909[_0x5d045f(0xc7)]:_0x15c16e=_0x5d3909[_0x5d045f(0xec)];let _0x3eb56f='';if(helper[_0x5d045f(0x110)](_0x31e37a['path'])){_0x3eb56f=_0x5d045f(0x12e);const _0x3e6d3b=_0x15c16e[_0x5d045f(0x14d)]('.');_0x3e6d3b[_0x5d3909[_0x5d045f(0xd5)](_0x3e6d3b[_0x5d045f(0xf5)],0x1)]='ts',_0x15c16e=_0x3e6d3b['join']('.'),logger[_0x5d045f(0x14b)](_0x5d3909['rwPQC'](_0x5d3909[_0x5d045f(0xe4)],_0x15c16e));}else _0x3eb56f=_0x5d045f(0xfd);const _0x6d79a=path[_0x5d045f(0x159)](_0x31e37a[_0x5d045f(0xd7)]?path[_0x5d045f(0x13f)](_0x31e37a['path']):process[_0x5d045f(0x14e)](),_0x15c16e);let _0x146c2c=_0x31e37a['path']?_0x31e37a[_0x5d045f(0xd7)]:'';_0x146c2c=_0x5d3909[_0x5d045f(0xf4)](_0x146c2c['length'],0x0)?path[_0x5d045f(0x134)](_0x146c2c):'',process[_0x5d045f(0xe2)][_0x5d045f(0xfa)]=_0x146c2c;const _0x5eb740=helper[_0x5d045f(0x166)](_0x25fe3c[_0x5d045f(0x10b)]);_0x5eb740&&(_0x3eb56f=_0x5d3909[_0x5d045f(0x16d)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x5eb740+'\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();',_0x3eb56f));helper[_0x5d045f(0x12a)]({},_0x13df51),fs[_0x5d045f(0x114)](_0x6d79a,_0x3eb56f),PerformanceTester[_0x5d045f(0xca)](PerformanceEvents[_0x5d045f(0xdb)]);const _0x2463e6=_0x5d3909[_0x5d045f(0xe1)](spawn,_0x5d3909[_0x5d045f(0xd3)],[_0x5d3909[_0x5d045f(0xff)],_0x5d3909[_0x5d045f(0xf2)],_0x5d3909['OcsjF'],_0x6d79a,..._0x13df51[_0x5d045f(0x11f)](0x2)],{'shell':_0x5d3909[_0x5d045f(0xd1)](process[_0x5d045f(0xcb)],_0x5d3909[_0x5d045f(0x120)]),'stdio':_0x5d3909[_0x5d045f(0x102)],'cwd':process[_0x5d045f(0x14e)](),'env':Object[_0x5d045f(0x167)]({},process[_0x5d045f(0xe2)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x5d045f(0xc2)](_0x24dcca),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x25fe3c[_0x5d045f(0x10b)][_0x5d045f(0xf6)][_0x5d045f(0xfc)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x25fe3c['config'][_0x5d045f(0xf6)][_0x5d045f(0xc1)],'BROWSERSTACK_LOG_LEVEL':_0x25fe3c[_0x5d045f(0x10b)][_0x5d045f(0xf0)]})}),_0x45322f=()=>{const _0x30ed56=_0x5d045f;try{const _0x5a634c=path[_0x30ed56(0x159)](helper[_0x30ed56(0x109)](),_0x5d3909[_0x30ed56(0x15a)],_0x5d3909[_0x30ed56(0x155)]);if(fs['existsSync'](_0x5a634c)){let _0x2c93a2=fs[_0x30ed56(0x12b)](_0x5a634c);_0x2c93a2=JSON[_0x30ed56(0x169)](_0x2c93a2),_0x25fe3c[_0x30ed56(0x123)]=_0x2c93a2,fs[_0x30ed56(0x137)](_0x5a634c);}}catch(_0x3511e1){logger[_0x30ed56(0x14b)](_0x5d3909['xEXNX'](_0x5d3909[_0x30ed56(0xcf)],_0x3511e1));}};_0x2463e6['on'](_0x5d3909[_0x5d045f(0x100)],async _0x5591ec=>{const _0x1f9f04=_0x5d045f,_0x2a3c91={};_0x2a3c91[_0x1f9f04(0x141)]=_0x5d3909[_0x1f9f04(0x15a)];const _0x46c478=_0x2a3c91;try{PerformanceTester[_0x1f9f04(0xc8)](PerformanceEvents[_0x1f9f04(0x156)]),_0x5d3909[_0x1f9f04(0x115)](_0x45322f),await TestHubHandler[_0x1f9f04(0xc3)](),TestDetails[_0x1f9f04(0x142)](),_0x5d3909[_0x1f9f04(0x116)](printBuildLink),await utilities[_0x1f9f04(0xc6)](_0x25fe3c),process[_0x1f9f04(0x133)]=_0x5591ec,logger[_0x1f9f04(0x14b)](_0x1f9f04(0x118)+_0x5591ec),logger[_0x1f9f04(0x16a)](_0x1f9f04(0xc0)+_0x6d79a),fs[_0x1f9f04(0x137)](_0x6d79a);fs[_0x1f9f04(0x11a)](_0x2e9294)&&(logger[_0x1f9f04(0x14b)](_0x1f9f04(0xc0)+_0x2e9294),fs[_0x1f9f04(0x137)](_0x2e9294));const _0xd47ff7=fs[_0x1f9f04(0x145)](path[_0x1f9f04(0x159)](helper[_0x1f9f04(0x109)](),_0x5d3909[_0x1f9f04(0x15a)]))[_0x1f9f04(0xe6)](_0x5b64c9=>_0x5b64c9[_0x1f9f04(0x112)](_0x1f9f04(0x13c)));_0xd47ff7[_0x1f9f04(0x12d)](_0x2443b2=>{const _0x3f257a=_0x1f9f04;fs[_0x3f257a(0x137)](path[_0x3f257a(0x159)](helper[_0x3f257a(0x109)](),_0x46c478[_0x3f257a(0x141)],_0x2443b2));});}catch(_0x1fff00){logger['debug'](_0x5d3909[_0x1f9f04(0x16d)](_0x5d3909[_0x1f9f04(0x125)],_0x1fff00));}});})();}function a35_0x463c(_0x542f1c,_0x520c5f){const _0x686892=a35_0x6868();return a35_0x463c=function(_0x463cd0,_0x2500cc){_0x463cd0=_0x463cd0-0xbc;let _0x1711ef=_0x686892[_0x463cd0];return _0x1711ef;},a35_0x463c(_0x542f1c,_0x520c5f);}module[a35_0x17e81e(0xce)]=run;function a35_0x6868(){const _0x35b4fb=['isUndefined','winstonLogger','debug','2057544HOzMUb','split','cwd','SQdrT','inherit','CRGuP','--config=','CaiWI','330vQtVlR','tmzwy','SDK_CLEANUP','npx','../../helpers/logger','join','SZZHh','BROWSERSTACK_SETUP_CONFIG_PATH','playwright-browserstack-sdk.config.js','EVENTS','argv','BROWSERSTACK_RERUN_TESTS','64qvTXxQ','RRnte','7372kHmbmd','error','.browserstack','TUpdZ','getProxyUrl','assign','sqbGM','parse','info','initialize','BROWSERSTACK_RERUN','sznaX','util','isFalse','../../helpers/test-observability/constants','1473792RZUocW','Deleting\x20','skipSessionName','getConfigPath','stop','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','kpWwP','finalExecution','nLYGz','start','Error\x20in\x20getting\x20funnel\x20data\x20results','end','platform','VjFqT','naQWr','exports','LVuCU','Error\x20in\x20closing\x20playwright','LHkfx','get','KWaVR','BROWSERSTACK_TEST_OBSERVABILITY','jzuOI','includes','path','BrowserStack\x20config\x20file\x20not\x20found.','serializeToYamlString','--config','SDK_SETUP','1663211ZXLOJT','BROWSERSTACK_TEST_ACCESSIBILITY_YML','win32','KxxIb','20568TgvHHe','ZPsfW','env','close','RmmeQ','DNjbi','filter','false','COLVV','accessibilityOptions','nestedKeyValue','WpZIX','AyRMQ','UyjiE','qUsQr','./reporter/pwUtils','logLevel','indexOf','yZNrY','map','KIaTu','length','testContextOptions','PACKAGE_TYPE','getPackageType','isTrue','USER_CONFIG_DETAILS_PATH','automation','skipSessionStatus','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','cliConfig','jBMKu','QSmbo','push','SrKoT','6BpcGRk','AtLCf','splice','../../helpers/utilities','MhXlS','../../helpers/helper','homedir','BROWSERSTACK_AUTOMATION','config','concat','PLAYWRIGHT','DJcKZ','../../helpers/BrowserStackSetup','isTypescriptProject','accessibility','startsWith','./reporter/test-details','writeFileSync','AGJnU','FICqc','ZnPaJ','Playwright\x20process\x20exited\x20with\x20code\x20','testObservability','existsSync','weTwf','--disable-browserstack-automation','iESXv','clearTempPWConfig','slice','uqgvL','226961nTgdmn','JEQRF','errorMessage','../../helpers/test-observability/utils','HGqAc','--grep','SBgse','--disable-test-observability','../utils/constants','filterBrowserstackArgs','readFileSync','dPOll','forEach','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','fGosd','./accessibility-helper','wBtkF','has','exitCode','resolve','RIwok','../../helpers/performance/performance-tester','unlinkSync','MODULE','launchBuild','PbHoB','BROWSERSTACK_PW_CONFIG_DIR','trace_','test','playwright-browserstack-sdk.config.cjs','dirname','measureWrapper','KSeTb','shutdown','205992dMCOhv','stringify','readdirSync','apply','40idyghI','resolvedConfigFile'];a35_0x6868=function(){return _0x35b4fb;};return a35_0x6868();}
|
|
2
|
+
'use strict';const a35_0x4eacd6=a35_0x2aac;(function(_0x107d2a,_0x4a05b0){const _0x28ade0=a35_0x2aac,_0x52b963=_0x107d2a();while(!![]){try{const _0x3727b2=-parseInt(_0x28ade0(0xe6))/0x1+parseInt(_0x28ade0(0xd9))/0x2+parseInt(_0x28ade0(0x10b))/0x3+-parseInt(_0x28ade0(0xea))/0x4*(-parseInt(_0x28ade0(0xdd))/0x5)+-parseInt(_0x28ade0(0x120))/0x6*(parseInt(_0x28ade0(0x124))/0x7)+parseInt(_0x28ade0(0x9f))/0x8*(parseInt(_0x28ade0(0x13a))/0x9)+parseInt(_0x28ade0(0x108))/0xa*(-parseInt(_0x28ade0(0xf2))/0xb);if(_0x3727b2===_0x4a05b0)break;else _0x52b963['push'](_0x52b963['shift']());}catch(_0x48c6c0){_0x52b963['push'](_0x52b963['shift']());}}}(a35_0x426f,0xb6998));const fs=require('fs'),path=require(a35_0x4eacd6(0x125)),{spawn}=require(a35_0x4eacd6(0xb3)),{format}=require(a35_0x4eacd6(0x121)),logger=require('../../helpers/logger')[a35_0x4eacd6(0xce)],{default:BrowserStackSetup}=require(a35_0x4eacd6(0xf6)),helper=require(a35_0x4eacd6(0xa0)),utilities=require(a35_0x4eacd6(0xac)),constants=require(a35_0x4eacd6(0xe1)),{FRAMEWORKS}=require(a35_0x4eacd6(0x104)),{getConfigLoaderPath}=require(a35_0x4eacd6(0xf8)),{checkAccessibilityPlatformConfig}=require(a35_0x4eacd6(0xf3)),{setAccessibilityCapabilities}=require(a35_0x4eacd6(0x12e)),{printBuildLink}=require(a35_0x4eacd6(0xdf)),TestDetails=require(a35_0x4eacd6(0xa6)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a35_0x4eacd6(0x118)),PerformanceEvents=require(a35_0x4eacd6(0x11e))[a35_0x4eacd6(0xab)],getUserPlaywrightConfig=async(_0x943b63,_0x4205f3)=>{const _0x2c2a40=a35_0x4eacd6,_0x58a0dc={'wGsoC':function(_0x295041){return _0x295041();},'vFUJX':function(_0xfbd0e3,_0x4da6e1){return _0xfbd0e3(_0x4da6e1);},'qAJNq':_0x2c2a40(0x114),'zzVbp':_0x2c2a40(0x11a)},_0x56d652=!helper[_0x2c2a40(0xb4)](_0x943b63[_0x2c2a40(0x11d)]),_0x211526=_0x56d652?path[_0x2c2a40(0xb6)](process[_0x2c2a40(0xc7)](),_0x943b63[_0x2c2a40(0x11d)]):process[_0x2c2a40(0xc7)](),{resolveConfigFile:_0x2ce81e,resolveConfigLocation:_0x2a5595}=helper[_0x2c2a40(0x119)][_0x2c2a40(0xef)](null,_0x58a0dc[_0x2c2a40(0xd1)](getConfigLoaderPath)),_0x3a9e18=_0x2ce81e?_0x58a0dc[_0x2c2a40(0x10a)](_0x2ce81e,_0x211526):helper[_0x2c2a40(0x9c)](_0x58a0dc[_0x2c2a40(0x10a)](_0x2a5595,_0x211526),[_0x58a0dc['qAJNq']]),_0x128da2={};if(_0x56d652){const _0x538608=_0x4205f3[_0x2c2a40(0xb9)](_0x12afe6=>_0x12afe6===_0x2c2a40(0x9d)||_0x12afe6==='-c'||_0x12afe6[_0x2c2a40(0x99)](_0x2c2a40(0x11a)));_0x4205f3[_0x2c2a40(0xa1)](_0x538608,_0x4205f3[_0x538608][_0x2c2a40(0x99)](_0x58a0dc[_0x2c2a40(0x103)])?0x1:0x2);}const _0x11fc3c={};return _0x11fc3c[_0x2c2a40(0x125)]=_0x3a9e18,_0x11fc3c[_0x2c2a40(0x11d)]=_0x128da2,_0x11fc3c;},handleO11yRerun=_0x1dd691=>{const _0x5ac5b0=a35_0x4eacd6,_0x600368={};_0x600368[_0x5ac5b0(0x11f)]=_0x5ac5b0(0xcb);const _0x3bfe37=_0x600368,_0x1de813=helper['isTrue'](process['env'][_0x5ac5b0(0x111)]);if(_0x1de813){const _0x43cc05=process[_0x5ac5b0(0x10c)][_0x5ac5b0(0x13f)],_0x4e87c8=[];if(helper[_0x5ac5b0(0xf1)](_0x43cc05)&&!helper[_0x5ac5b0(0xb4)](_0x43cc05)){_0x43cc05[_0x5ac5b0(0x12b)](',')[_0x5ac5b0(0x12c)](_0x3b845c=>{const _0x9fdb6b=_0x5ac5b0;_0x4e87c8[_0x9fdb6b(0xf5)]('('+_0x3b845c[_0x9fdb6b(0xb0)]()+')');});const _0x21404e='^'+_0x4e87c8[_0x5ac5b0(0xbb)]('|')+'$';_0x1dd691[_0x5ac5b0(0xf5)](_0x3bfe37['dWdHB'],_0x21404e);}}},spawnOriginalProcess=_0x45dde3=>{const _0x303221=a35_0x4eacd6,_0x2ad3e9={'MLhgU':function(_0x861c37,_0x285036,_0x1147dd,_0x36b9b0){return _0x861c37(_0x285036,_0x1147dd,_0x36b9b0);},'UuDEP':'npx','wYWlh':_0x303221(0xbf),'xdvlQ':function(_0x50a48f,_0x13c246){return _0x50a48f===_0x13c246;},'xqgjh':_0x303221(0x134),'PEBgq':'inherit'};_0x2ad3e9[_0x303221(0x12f)](spawn,_0x2ad3e9[_0x303221(0xfc)],[_0x2ad3e9[_0x303221(0xa8)],..._0x45dde3[_0x303221(0x101)](0x1)],{'shell':_0x2ad3e9[_0x303221(0x113)](process[_0x303221(0x100)],_0x2ad3e9[_0x303221(0xd2)]),'stdio':_0x2ad3e9['PEBgq'],'cwd':process[_0x303221(0xc7)]()});},isTestCommand=(_0x4ef049,_0x31365d)=>{const _0x35f9d9=a35_0x4eacd6,_0x5459da={};_0x5459da[_0x35f9d9(0x115)]=function(_0x293ddc,_0x13b9f7){return _0x293ddc>_0x13b9f7;},_0x5459da['BCFiS']=function(_0x1352fb,_0x4fbdda){return _0x1352fb===_0x4fbdda;},_0x5459da[_0x35f9d9(0xdb)]=_0x35f9d9(0x127);const _0x5ed91c=_0x5459da;if(_0x5ed91c[_0x35f9d9(0x115)](_0x31365d['length'],0x1)&&_0x5ed91c[_0x35f9d9(0xc1)](_0x31365d[0x1],_0x5ed91c[_0x35f9d9(0xdb)]))return!![];return![];};function a35_0x2aac(_0xaacf94,_0x286499){const _0x426f2d=a35_0x426f();return a35_0x2aac=function(_0x2aac12,_0x78afbb){_0x2aac12=_0x2aac12-0x99;let _0x1cefde=_0x426f2d[_0x2aac12];return _0x1cefde;},a35_0x2aac(_0xaacf94,_0x286499);}function a35_0x426f(){const _0x4d6527=['exports','djisl','AMaQw','wWDyb','2630392LYNedd','true','tQyjB','pw_result.json','59825ADBmHG','OACHR','../../helpers/test-observability/utils','CKyRP','../utils/constants','getProxyUrl','argv','browserstackSetupConfig.json','clearTempPWConfig','157224mnNRlH','parse','NEkCx','BROWSERSTACK_TEST_ACCESSIBILITY_YML','216QIfKza','cliConfig','PACKAGE_TYPE','end','FACcT','apply','debug','validateRerunTestList','440Norbwu','../../helpers/accessibility-automation/helper','stop','push','../../helpers/BrowserStackSetup','concat','./reporter/pwUtils','Error\x20in\x20getting\x20funnel\x20data\x20results','skipSessionStatus','Playwright\x20process\x20exited\x20with\x20code\x20','UuDEP','--disable-test-observability','qOSnI','unlinkSync','platform','slice','BROWSERSTACK_TEST_OBSERVABILITY','zzVbp','../../helpers/test-observability/constants','BROWSERSTACK_SETUP_CONFIG_PATH','IzBeF','isTrue','433880oTkLhu','indexOf','vFUJX','1570452qqteKK','env','qhekg','hvqPr','QsGmd','initialize','BROWSERSTACK_RERUN','accessibilityOptions','xdvlQ','resolvedConfigFile','iUTLg','XoLat','lyEaa','../../helpers/performance/performance-tester','requirePWModule','--config=','close','noppC','config','../../helpers/performance/constants','dWdHB','1577886mTtPTZ','util','aQLuQ','PLAYWRIGHT','28OKpYNB','path','writeFileSync','test','kRUyX','SDK_POST_INITIALIZE','bmseA','split','map','false','./accessibility-helper','MLhgU','errorMessage','accessibility','PCUlo','measureWrapper','win32','fMCGo','lSxKT','getPackageType','start','error','5435127vtVzCi','assign','readdirSync','automation','homedir','BROWSERSTACK_RERUN_TESTS','NoqqJ','Deleting\x20','length','\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();','startsWith','iMLAV','testObservability','nestedKeyValue','--config','Updated\x20config\x20file\x20name\x20to\x20-\x20','16XgAMzV','../../helpers/helper','splice','dirname','YCzCe','SDK_SETUP','ZEgRg','./reporter/test-details','MODULE','wYWlh','aSBRi','filterBrowserstackArgs','EVENTS','../../helpers/utilities','eCliZ','SDK_CLEANUP','--disable-browserstack-automation','trim','HMwUx','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','child_process','isUndefined','launchBuild','resolve','BROWSERSTACK_AUTOMATION','USER_CONFIG_DETAILS_PATH','findIndex','Error\x20in\x20closing\x20playwright','join','playwright-browserstack-sdk.config.cjs','testContextOptions','isTypescriptProject','playwright','nnNoh','BCFiS','.browserstack','existsSync','MTTQc','qudgZ','YmjUm','cwd','bqXdF','stringify','has','--grep','EgSOp','fIDaQ','winstonLogger','vfuCr','XYSit','wGsoC','xqgjh','GMISB','filter'];a35_0x426f=function(){return _0x4d6527;};return a35_0x426f();}async function run(_0x2d9912,_0x4f3eb1){const _0x5d3c0c=a35_0x4eacd6,_0x3baf04={'ZEgRg':function(_0x1df7d0,_0x3d32ba){return _0x1df7d0(_0x3d32ba);},'iMLAV':_0x5d3c0c(0xc2),'noppC':_0x5d3c0c(0xdc),'wWDyb':function(_0x453da2,_0x603b86){return _0x453da2+_0x603b86;},'WYgvG':_0x5d3c0c(0xf9),'CKyRP':function(_0x5ea4c9){return _0x5ea4c9();},'nnNoh':_0x5d3c0c(0xba),'TDgkZ':'BrowserStack\x20config\x20file\x20not\x20found.','bmseA':_0x5d3c0c(0x13d),'OACHR':function(_0x2acdfa,_0xb7e635){return _0x2acdfa!=_0xb7e635;},'LsyFr':function(_0x922848,_0x177619,_0x1d1084){return _0x922848(_0x177619,_0x1d1084);},'qudgZ':function(_0x156914,_0x2f61f8){return _0x156914(_0x2f61f8);},'lyEaa':function(_0x23f911,_0x43a8aa){return _0x23f911===_0x43a8aa;},'fMCGo':_0x5d3c0c(0xda),'XYSit':function(_0xf8efb4,_0x1f4edd){return _0xf8efb4(_0x1f4edd);},'GMISB':_0x5d3c0c(0xe4),'EgSOp':function(_0x2b7013,_0x2e62d9){return _0x2b7013===_0x2e62d9;},'fIDaQ':_0x5d3c0c(0xbc),'NoqqJ':'playwright-browserstack-sdk.config.js','vfuCr':function(_0x277805,_0x4e967c){return _0x277805-_0x4e967c;},'iKSEl':_0x5d3c0c(0x9e),'PCUlo':function(_0x4ac9bb,_0x1d1471){return _0x4ac9bb>_0x1d1471;},'YmjUm':function(_0x446bcb,_0x5ff7e2){return _0x446bcb+_0x5ff7e2;},'qOSnI':function(_0x4cc089,_0x4d4343,_0x3c66fe,_0xc40f6e){return _0x4cc089(_0x4d4343,_0x3c66fe,_0xc40f6e);},'LdrtT':'npx','AMaQw':'playwright','eCliZ':_0x5d3c0c(0x127),'aQLuQ':_0x5d3c0c(0x9d),'XoLat':_0x5d3c0c(0x134),'kRUyX':'inherit','aSBRi':_0x5d3c0c(0x11b),'hvqPr':'--disable-browserstack-automation','FACcT':_0x5d3c0c(0x12d),'qhekg':_0x5d3c0c(0xfd),'HMwUx':function(_0x1fcc01,_0x556039){return _0x1fcc01>=_0x556039;},'djisl':function(_0x1f30bb,_0x1fdad6){return _0x1f30bb+_0x1fdad6;},'IzBeF':'Error\x20in\x20deleting\x20playwright\x20results','YyXGA':function(_0x378703,_0x569200,_0x3422b5){return _0x378703(_0x569200,_0x3422b5);},'YCzCe':function(_0x4147df,_0x38437c){return _0x4147df(_0x38437c);}};!helper['isFalse'](process[_0x5d3c0c(0x10c)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x5d3c0c(0x10c)][_0x5d3c0c(0xb7)]=!![]);process[_0x5d3c0c(0xe3)]['includes'](_0x3baf04[_0x5d3c0c(0x10e)])&&(process[_0x5d3c0c(0x10c)][_0x5d3c0c(0xb7)]=_0x3baf04[_0x5d3c0c(0xee)],_0x4f3eb1=_0x4f3eb1['filter'](_0x4266a1=>_0x4266a1!==_0x5d3c0c(0xaf)));const _0x2f9343=_0x4f3eb1[_0x5d3c0c(0x109)](_0x3baf04[_0x5d3c0c(0x10d)]);_0x3baf04[_0x5d3c0c(0xb1)](_0x2f9343,0x0)&&(process[_0x5d3c0c(0x10c)][_0x5d3c0c(0x102)]=_0x3baf04[_0x5d3c0c(0xee)],_0x4f3eb1=_0x4f3eb1['filter'](_0x4c3537=>_0x4c3537!==_0x5d3c0c(0xfd)));try{const _0x1eba50=path[_0x5d3c0c(0xbb)](helper[_0x5d3c0c(0x13e)](),_0x3baf04[_0x5d3c0c(0x9a)],_0x3baf04[_0x5d3c0c(0x11c)]);fs[_0x5d3c0c(0xc3)](_0x1eba50)&&fs[_0x5d3c0c(0xff)](_0x1eba50);}catch(_0x17e48f){logger[_0x5d3c0c(0xf0)](_0x3baf04[_0x5d3c0c(0xd6)](_0x3baf04[_0x5d3c0c(0x106)],_0x17e48f));}if(!_0x3baf04['YyXGA'](isTestCommand,_0x2d9912,_0x4f3eb1)){_0x3baf04[_0x5d3c0c(0xa3)](spawnOriginalProcess,_0x4f3eb1);return;}const _0x336d26=new BrowserStackSetup(_0x2d9912,FRAMEWORKS[_0x5d3c0c(0x123)]);await PerformanceTester[_0x5d3c0c(0x133)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x3bfcf2=_0x5d3c0c,_0x86688f={'QsGmd':_0x3baf04['iMLAV'],'lSxKT':_0x3baf04[_0x3bfcf2(0x11c)],'qCjkU':function(_0x27a792,_0x3b49ab){return _0x3baf04['wWDyb'](_0x27a792,_0x3b49ab);},'MTTQc':_0x3baf04['WYgvG'],'bqXdF':function(_0x1af389){const _0x1789a8=_0x3bfcf2;return _0x3baf04[_0x1789a8(0xe0)](_0x1af389);},'ZgOyN':function(_0x4b2f79,_0x5eccd7){return _0x3baf04['wWDyb'](_0x4b2f79,_0x5eccd7);},'NEkCx':_0x3baf04[_0x3bfcf2(0xc0)]};if(!_0x336d26[_0x3bfcf2(0x11d)]){logger[_0x3bfcf2(0x139)](_0x3baf04['TDgkZ']);return;}await _0x336d26[_0x3bfcf2(0x110)]();!helper[_0x3bfcf2(0xb4)](_0x336d26[_0x3bfcf2(0xeb)])&&_0x336d26[_0x3bfcf2(0xeb)][_0x3bfcf2(0xca)](_0x3baf04[_0x3bfcf2(0x12a)])&&(process[_0x3bfcf2(0x10c)][_0x3bfcf2(0xb7)]=_0x336d26[_0x3bfcf2(0xeb)]['get'](_0x3baf04['bmseA'])||!![]);_0x3baf04[_0x3bfcf2(0xde)](_0x336d26[_0x3bfcf2(0x11d)][_0x3bfcf2(0x9b)],null)&&!helper[_0x3bfcf2(0x107)](process[_0x3bfcf2(0x10c)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x3bfcf2(0x10c)][_0x3bfcf2(0x102)]=process[_0x3bfcf2(0x10c)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x336d26[_0x3bfcf2(0x11d)][_0x3bfcf2(0x9b)]);const _0x21c6b3=!helper['isFalse'](process[_0x3bfcf2(0x10c)][_0x3bfcf2(0x102)]);let _0x3bad6a=![];_0x336d26[_0x3bfcf2(0x11d)][_0x3bfcf2(0x131)]&&(_0x3bad6a=!![],process[_0x3bfcf2(0x10c)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x336d26['config'][_0x3bfcf2(0x131)]);_0x336d26['config'][_0x3bfcf2(0x112)]&&(process[_0x3bfcf2(0x10c)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x3bfcf2(0xc9)](_0x336d26[_0x3bfcf2(0x11d)][_0x3bfcf2(0x112)]));const _0x1c8550=_0x4f3eb1[_0x3bfcf2(0xf7)](),_0x3a0bd0=await _0x3baf04['LsyFr'](getUserPlaywrightConfig,_0x2d9912,_0x4f3eb1);if(helper[_0x3bfcf2(0xb4)](_0x3a0bd0)){_0x3baf04[_0x3bfcf2(0xc5)](spawnOriginalProcess,_0x1c8550);return;}const _0x475b57=_0x3a0bd0['path']?path[_0x3bfcf2(0xa2)](_0x3a0bd0[_0x3bfcf2(0x125)]):process[_0x3bfcf2(0xc7)]();process[_0x3bfcf2(0x10c)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x475b57,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x3bfcf2(0x129)],async()=>{const _0x3e4a7b=_0x3bfcf2;await TestHubHandler[_0x3e4a7b(0xb5)](FRAMEWORKS[_0x3e4a7b(0x123)],_0x336d26),_0x21c6b3&&_0x3baf04[_0x3e4a7b(0xa5)](handleO11yRerun,_0x4f3eb1);})();let _0x28e1b9=_0x3baf04[_0x3bfcf2(0x117)](process[_0x3bfcf2(0x10c)][_0x3bfcf2(0xe9)],_0x3baf04[_0x3bfcf2(0x135)]);_0x28e1b9=_0x28e1b9||_0x3baf04[_0x3bfcf2(0xd0)](checkAccessibilityPlatformConfig,_0x336d26[_0x3bfcf2(0x11d)]),process[_0x3bfcf2(0x10c)][_0x3bfcf2(0xe9)]=_0x28e1b9;_0x28e1b9&&_0x3baf04['XYSit'](setAccessibilityCapabilities,_0x336d26[_0x3bfcf2(0x11d)]);const _0x10a838=path[_0x3bfcf2(0xbb)](_0x3a0bd0[_0x3bfcf2(0x125)]?path[_0x3bfcf2(0xa2)](_0x3a0bd0['path']):process[_0x3bfcf2(0xc7)](),_0x3baf04[_0x3bfcf2(0xd3)]);fs[_0x3bfcf2(0x126)](_0x10a838,helper['serializeToYamlString'](_0x336d26[_0x3bfcf2(0x11d)])),process[_0x3bfcf2(0x10c)][_0x3bfcf2(0x105)]=_0x10a838,helper[_0x3bfcf2(0xe5)]();let _0xc1f001='';_0x3baf04[_0x3bfcf2(0xcc)](helper[_0x3bfcf2(0x137)](),constants[_0x3bfcf2(0xec)][_0x3bfcf2(0xa7)])?_0xc1f001=_0x3baf04[_0x3bfcf2(0xcd)]:_0xc1f001=_0x3baf04[_0x3bfcf2(0x140)];let _0x300047='';if(helper[_0x3bfcf2(0xbe)](_0x3a0bd0[_0x3bfcf2(0x125)])){_0x300047='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x249e04=_0xc1f001['split']('.');_0x249e04[_0x3baf04[_0x3bfcf2(0xcf)](_0x249e04[_0x3bfcf2(0x142)],0x1)]='ts',_0xc1f001=_0x249e04[_0x3bfcf2(0xbb)]('.'),logger[_0x3bfcf2(0xf0)](_0x3baf04[_0x3bfcf2(0xd8)](_0x3baf04['iKSEl'],_0xc1f001));}else _0x300047=_0x3bfcf2(0xb2);const _0x209653=path[_0x3bfcf2(0xbb)](_0x3a0bd0['path']?path[_0x3bfcf2(0xa2)](_0x3a0bd0[_0x3bfcf2(0x125)]):process[_0x3bfcf2(0xc7)](),_0xc1f001);let _0x4d2e25=_0x3a0bd0[_0x3bfcf2(0x125)]?_0x3a0bd0[_0x3bfcf2(0x125)]:'';_0x4d2e25=_0x3baf04[_0x3bfcf2(0x132)](_0x4d2e25[_0x3bfcf2(0x142)],0x0)?path[_0x3bfcf2(0xb6)](_0x4d2e25):'',process[_0x3bfcf2(0x10c)][_0x3bfcf2(0xb8)]=_0x4d2e25;const _0x2e5d0=helper[_0x3bfcf2(0xe2)](_0x336d26['config']);_0x2e5d0&&(_0x300047=_0x3baf04[_0x3bfcf2(0xc6)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x2e5d0+_0x3bfcf2(0x143),_0x300047));helper[_0x3bfcf2(0xaa)]({},_0x4f3eb1),fs[_0x3bfcf2(0x126)](_0x209653,_0x300047),PerformanceTester[_0x3bfcf2(0xed)](PerformanceEvents[_0x3bfcf2(0xa4)]);const _0x30f67b=_0x3baf04[_0x3bfcf2(0xfe)](spawn,_0x3baf04['LdrtT'],[_0x3baf04[_0x3bfcf2(0xd7)],_0x3baf04[_0x3bfcf2(0xad)],_0x3baf04[_0x3bfcf2(0x122)],_0x209653,..._0x4f3eb1[_0x3bfcf2(0x101)](0x2)],{'shell':_0x3baf04[_0x3bfcf2(0xcc)](process[_0x3bfcf2(0x100)],_0x3baf04[_0x3bfcf2(0x116)]),'stdio':_0x3baf04[_0x3bfcf2(0x128)],'cwd':process['cwd'](),'env':Object[_0x3bfcf2(0x13b)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x2d9912),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x336d26[_0x3bfcf2(0x11d)][_0x3bfcf2(0xbd)][_0x3bfcf2(0xfa)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x336d26['config'][_0x3bfcf2(0xbd)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x336d26[_0x3bfcf2(0x11d)]['logLevel']})}),_0x49d5ed=()=>{const _0x5e7469=_0x3bfcf2;try{const _0x30d7b8=path[_0x5e7469(0xbb)](helper[_0x5e7469(0x13e)](),_0x86688f['QsGmd'],_0x86688f[_0x5e7469(0x136)]);if(fs[_0x5e7469(0xc3)](_0x30d7b8)){let _0x4b4c8f=fs['readFileSync'](_0x30d7b8);_0x4b4c8f=JSON[_0x5e7469(0xe7)](_0x4b4c8f),_0x336d26[_0x5e7469(0x130)]=_0x4b4c8f,fs[_0x5e7469(0xff)](_0x30d7b8);}}catch(_0x354d81){logger[_0x5e7469(0xf0)](_0x86688f['qCjkU'](_0x86688f[_0x5e7469(0xc4)],_0x354d81));}};_0x30f67b['on'](_0x3baf04[_0x3bfcf2(0xa9)],async _0x14f13f=>{const _0x6759d3=_0x3bfcf2,_0xb5889f={};_0xb5889f['koHeY']=_0x86688f[_0x6759d3(0x10f)];const _0x248f72=_0xb5889f;try{PerformanceTester[_0x6759d3(0x138)](PerformanceEvents[_0x6759d3(0xae)]),_0x86688f['bqXdF'](_0x49d5ed),await TestHubHandler[_0x6759d3(0xf4)](),TestDetails['shutdown'](),_0x86688f[_0x6759d3(0xc8)](printBuildLink),await utilities['finalExecution'](_0x336d26),process['exitCode']=_0x14f13f,logger[_0x6759d3(0xf0)](_0x6759d3(0xfb)+_0x14f13f),logger['info']('Deleting\x20'+_0x209653),fs[_0x6759d3(0xff)](_0x209653);fs[_0x6759d3(0xc3)](_0x10a838)&&(logger['debug'](_0x6759d3(0x141)+_0x10a838),fs[_0x6759d3(0xff)](_0x10a838));const _0x1f1cd7=fs[_0x6759d3(0x13c)](path[_0x6759d3(0xbb)](helper['homedir'](),_0x86688f['QsGmd']))[_0x6759d3(0xd4)](_0x5ec375=>_0x5ec375[_0x6759d3(0x99)]('trace_'));_0x1f1cd7['forEach'](_0x2193ab=>{const _0x152bec=_0x6759d3;fs[_0x152bec(0xff)](path['join'](helper[_0x152bec(0x13e)](),_0x248f72['koHeY'],_0x2193ab));});}catch(_0x1ca6e0){logger[_0x6759d3(0xf0)](_0x86688f['ZgOyN'](_0x86688f[_0x6759d3(0xe8)],_0x1ca6e0));}});})();}module[a35_0x4eacd6(0xd5)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a36_0x1385(_0x2d97c5,_0xe43e94){const _0x59b06d=a36_0x59b0();return a36_0x1385=function(_0x1385ee,_0x1b70c9){_0x1385ee=_0x1385ee-0x153;let _0x4f58ec=_0x59b06d[_0x1385ee];return _0x4f58ec;},a36_0x1385(_0x2d97c5,_0xe43e94);}const a36_0x383bd2=a36_0x1385;(function(_0x5a6067,_0x309c60){const _0x9ef502=a36_0x1385,_0x3fc471=_0x5a6067();while(!![]){try{const _0x12e109=-parseInt(_0x9ef502(0x15e))/0x1*(parseInt(_0x9ef502(0x175))/0x2)+parseInt(_0x9ef502(0x16c))/0x3+-parseInt(_0x9ef502(0x174))/0x4*(parseInt(_0x9ef502(0x154))/0x5)+-parseInt(_0x9ef502(0x157))/0x6+parseInt(_0x9ef502(0x159))/0x7+-parseInt(_0x9ef502(0x15d))/0x8*(-parseInt(_0x9ef502(0x164))/0x9)+-parseInt(_0x9ef502(0x16d))/0xa;if(_0x12e109===_0x309c60)break;else _0x3fc471['push'](_0x3fc471['shift']());}catch(_0x19f8c7){_0x3fc471['push'](_0x3fc471['shift']());}}}(a36_0x59b0,0xa6d53));function a36_0x59b0(){const _0x2aef6b=['Call\x20to\x20child\x20fork\x20with\x20args\x20','util','../../helpers/test-observability/utils','./mock-process.js','oAVoT','5unIcOc','wkQpG','./patches','214266YeBEKc','VpnuF','8214997hrUZmR','child_process','1.33.0','requirePWModule','104ZGHpgV','881917qedmPk','Path\x20','zcwVg','PRUWe','Not\x20able\x20to\x20import\x20globalSetup','fork','909198iHjUAS','PLAYWRIGHT','env','Running\x20existing\x20global\x20setup','QHFTv','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','resolve','tbIEi','1291782IZgtzm','5646530Cxmlgr','includes','config','compareVersions','\x20is\x20not\x20found','apply','nyNXb','3007292guSwES','2dOxAfm','isHandlePWErrorSet','./reporter/pwUtils','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','../../helpers/helper','format'];a36_0x59b0=function(){return _0x2aef6b;};return a36_0x59b0();}const util=require(a36_0x383bd2(0x17c)),child_process=require(a36_0x383bd2(0x15a)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a36_0x383bd2(0x17d)),helper=require(a36_0x383bd2(0x179)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x383bd2(0x177)),{mockIsWorkerRedundant}=require(a36_0x383bd2(0x156)),logger=require('../../helpers/logger')['winstonLogger'];module['exports']=async function(_0x164cf2){const _0x2d4fac=a36_0x383bd2,_0x33849a={'zcwVg':function(_0x48b711,_0x423b5e){return _0x48b711(_0x423b5e);},'nyNXb':function(_0x28e664){return _0x28e664();},'oAVoT':_0x2d4fac(0x17e),'QHFTv':_0x2d4fac(0x167),'QCldl':function(_0x23fa3c,_0x12ddc6){return _0x23fa3c(_0x12ddc6);},'brJay':function(_0x57f4d4,_0x5e7fc5){return _0x57f4d4>=_0x5e7fc5;},'tbIEi':_0x2d4fac(0x15b),'wkQpG':function(_0x141890,_0x3d113e,_0x48787d){return _0x141890(_0x3d113e,_0x48787d);},'tzuGb':function(_0xd987cb,_0x10daeb){return _0xd987cb!==_0x10daeb;},'PRUWe':'function','VpnuF':_0x2d4fac(0x162)},_0x205bc6=child_process[_0x2d4fac(0x163)];if(helper[_0x2d4fac(0x176)]())try{_0x33849a['nyNXb'](mockIsWorkerRedundant);}catch(_0x1bcbfe){logger['debug'](_0x2d4fac(0x169)+util[_0x2d4fac(0x17a)](_0x1bcbfe));}child_process[_0x2d4fac(0x163)]=function(){const _0x4ca82e=_0x2d4fac;return _0x33849a['zcwVg'](debug,_0x4ca82e(0x17b)+arguments[0x0]),arguments[0x0][_0x4ca82e(0x16e)](_0x33849a[_0x4ca82e(0x173)](getForkProcessPath))?arguments[0x0]=require[_0x4ca82e(0x16a)](_0x33849a[_0x4ca82e(0x153)]):logger['error'](_0x4ca82e(0x15f)+_0x33849a[_0x4ca82e(0x173)](getForkProcessPath)+_0x4ca82e(0x171)),_0x205bc6[_0x4ca82e(0x172)](null,arguments);};if(process[_0x2d4fac(0x166)][_0x2d4fac(0x178)]){_0x33849a[_0x2d4fac(0x160)](debug,_0x33849a[_0x2d4fac(0x168)]);try{const {loadGlobalHook:_0x160ad2}=helper[_0x2d4fac(0x15c)][_0x2d4fac(0x172)](null,_0x33849a[_0x2d4fac(0x173)](getLoadUtilsPath)),_0x2d81f7=_0x33849a['QCldl'](getFrameworkVersion,FRAMEWORKS[_0x2d4fac(0x165)]);let _0xeb7da2=_0x164cf2;if(_0x33849a['brJay'](helper[_0x2d4fac(0x170)](_0x2d81f7,_0x33849a[_0x2d4fac(0x16b)]),0x0)){const _0x30b165={};_0x30b165[_0x2d4fac(0x16f)]=_0x164cf2,_0xeb7da2=_0x30b165;}const _0x48a3e6=await _0x33849a[_0x2d4fac(0x155)](_0x160ad2,_0xeb7da2,process[_0x2d4fac(0x166)][_0x2d4fac(0x178)]);if(_0x33849a['tzuGb'](typeof _0x48a3e6,_0x33849a[_0x2d4fac(0x161)]))throw new Error(_0x33849a[_0x2d4fac(0x158)]);return _0x48a3e6[_0x2d4fac(0x172)](null,arguments);}catch(_0x306317){_0x33849a['QCldl'](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x306317['toString']());}}};
|