browserstack-node-sdk 1.34.15 → 1.34.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a29_0x4198(_0x168832,_0x88e5e5){const _0xfdf6b4=a29_0xfdf6();return a29_0x4198=function(_0x4198c7,_0x1a419b){_0x4198c7=_0x4198c7-0x110;let _0x54532c=_0xfdf6b4[_0x4198c7];return _0x54532c;},a29_0x4198(_0x168832,_0x88e5e5);}const a29_0x54736c=a29_0x4198;function a29_0xfdf6(){const _0x19dce9=['MkPfE','getAccessibilityResultsSummary','4viMqKd','__drivers','proxyUrl','../../../helpers/globals','error','send','ZnFvd','isUndefined','176aQAhWp','OATAc','capabilities_','Builder','se:ieOptions','./helpers/patchHelper','TyDhk','/session','keys','getHttpAgent','debug','isBrowserstackInfra','RqWKj','path','__setBrowserOptions','Modifying\x20webdriver\x20builder','NjhIP','newHubUrl','caps_','mergeDeep','hNejJ','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','getAccessibilityResults','build','AUJNy','session_','push','isAccessibilityPlatform','proxy_','onwUy','global','../../../helpers/logger','GcgpY','../../../helpers/patchHelpers','KGows','browserStackLogLevel','530851hsnHwQ','50528HiCKKY','../../../bin/utils/constants','exports','getRequestOptions','browserstackAgentObservability','EMdgW','firefoxOptions_','storeOptimalHubUrl','HttpClient','forEach','JaWMg','../../../hubAllocationMethods','setServer','72FMWkPn','setGlobal','../accessibility-automation/helper','CAPABILITY_KEY','210UEbQEs','url_','Hhumr','chromeOptions','capability','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','yZtyN','split','quitCount_','edgeOptions_','setLogLevel','kRKzc','overrideGet','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','Setting\x20Browserstack\x20capabilities','Hub\x20url\x20set\x20to\x20','ieOptions_','proxySettings','safari.options','chromeOptions_','getGlobal','4|2|0|5|1|3','get','aPSdH','options_','ZdbfT','/wd/hub','1058676XjSyMk','__driver','safariOptions_','2997756VFGVUR','setCapabilities','fdmZV','yOQXC','requireHttpClient','isPacProxy','70ahOqfG','Atldm','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','then','uCrrf','updateHubUrl','120816iruxjd','__driversArray','ms:edgeOptions','moz:firefoxOptions','SyCHT','nNCEC','getHubUrl','RZFMc','set','LEtgw','originalBuilder','TqXBn','1288255komRiL','577768CYkQvb'];a29_0xfdf6=function(){return _0x19dce9;};return a29_0xfdf6();}(function(_0x58f78f,_0x58ae07){const _0x35759f=a29_0x4198,_0x3e7837=_0x58f78f();while(!![]){try{const _0x42c80d=parseInt(_0x35759f(0x15e))/0x1+-parseInt(_0x35759f(0x15f))/0x2*(-parseInt(_0x35759f(0x16c))/0x3)+parseInt(_0x35759f(0x132))/0x4*(-parseInt(_0x35759f(0x12e))/0x5)+parseInt(_0x35759f(0x116))/0x6+parseInt(_0x35759f(0x11c))/0x7*(parseInt(_0x35759f(0x12f))/0x8)+-parseInt(_0x35759f(0x122))/0x9*(parseInt(_0x35759f(0x170))/0xa)+parseInt(_0x35759f(0x13a))/0xb*(-parseInt(_0x35759f(0x113))/0xc);if(_0x42c80d===_0x58ae07)break;else _0x3e7837['push'](_0x3e7837['shift']());}catch(_0x1ddfb7){_0x3e7837['push'](_0x3e7837['shift']());}}}(a29_0xfdf6,0x6395c));const logger=require(a29_0x54736c(0x159))['winstonLogger'],helper=require('../../../helpers/helper'),constants=require(a29_0x54736c(0x160)),hubAllocator=require(a29_0x54736c(0x16a)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x54736c(0x15b)),{setAccessibilityCapabilities,setExtension}=require(a29_0x54736c(0x16e)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a29_0x54736c(0x135)),{overrideExecute}=require(a29_0x54736c(0x13f)),modify=(_0x67ca6e,_0x4f56ae=null,_0x4e9bf8=![])=>{const _0xab2728=a29_0x54736c,_0x105196={'MOpVX':function(_0x1a3b07,_0xcb50cb){return _0x1a3b07!==_0xcb50cb;},'mLRkG':_0xab2728(0x141),'yOQXC':function(_0x4a5593,_0x1c0d22){return _0x4a5593!==_0x1c0d22;},'LEtgw':function(_0x56ff5d,_0x883f53){return _0x56ff5d+_0x883f53;},'yZtyN':function(_0x59fdc5,_0x8a4cdb){return _0x59fdc5+_0x8a4cdb;},'kRKzc':'https://','nqNCs':_0xab2728(0x112),'TUmZK':'goog:chromeOptions','qxvKG':_0xab2728(0x173),'FWtkW':_0xab2728(0x124),'SyCHT':'edgeOptions','aPSdH':_0xab2728(0x125),'ZdbfT':'firefoxOptions','ScJCT':_0xab2728(0x182),'WIiRV':_0xab2728(0x13e),'AUJNy':'ieOptions','dGQLq':function(_0x4d4f9e,_0x3f9d9c){return _0x4d4f9e===_0x3f9d9c;},'MkPfE':'object','uCrrf':_0xab2728(0x17e),'MUYdn':'optimalHubUrl','RZFMc':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','RqWKj':function(_0x1eeef0,_0x1e6b79,_0x140de6){return _0x1eeef0(_0x1e6b79,_0x140de6);},'TqXBn':function(_0x2034aa,_0x447975){return _0x2034aa(_0x447975);},'NjhIP':function(_0x466e9b,_0x729976,_0xd1890b){return _0x466e9b(_0x729976,_0xd1890b);},'nNCEC':_0xab2728(0x185),'onwUy':_0xab2728(0x155),'QYiNv':function(_0x4f5fee,_0xcc619a,_0x106099){return _0x4f5fee(_0xcc619a,_0x106099);},'TyDhk':_0xab2728(0x175),'ZnFvd':function(_0x1f122c){return _0x1f122c();},'EMdgW':function(_0x29d952,_0x49443a){return _0x29d952(_0x49443a);},'hNejJ':function(_0x54226c,_0x2fbc5b){return _0x54226c(_0x2fbc5b);},'Atldm':function(_0x3c614f,_0x2e1505){return _0x3c614f(_0x2e1505);},'fdmZV':function(_0x1aa690,_0x1c2ae7,_0x3bea13){return _0x1aa690(_0x1c2ae7,_0x3bea13);},'qOMHw':function(_0x5a8eac,_0x2e51a1){return _0x5a8eac!==_0x2e51a1;},'bKhYw':_0xab2728(0x14f),'JaWMg':_0xab2728(0x149)},_0x383be9=helper[_0xab2728(0x11a)]();let _0x508e6c;try{_0x508e6c=helper['requireSeleniumWebdriver'](),_0x508e6c['originalBuilder']&&(_0x508e6c[_0xab2728(0x13d)]=_0x508e6c[_0xab2728(0x12c)]);}catch(_0x565f14){return;}if(helper[_0xab2728(0x145)]()){const _0x35e5a7={};_0x35e5a7['logLevel']=_0x67ca6e[_0xab2728(0x15d)],helper[_0xab2728(0x17a)](_0x35e5a7,new Map(),new Map()),logger['info'](_0x105196['bKhYw']),logger[_0xab2728(0x144)](_0x105196[_0xab2728(0x169)]);}class _0x1a55e0 extends _0x383be9['HttpClient']{[_0xab2728(0x137)](_0x12d80f){const _0x1b4aa0=_0xab2728;if(_0x105196['MOpVX'](_0x12d80f[_0x1b4aa0(0x147)],_0x105196['mLRkG'])&&_0x105196[_0x1b4aa0(0x119)](global[_0x1b4aa0(0x14b)],''))try{global[_0x1b4aa0(0x14b)]=_0x105196[_0x1b4aa0(0x12b)](_0x105196[_0x1b4aa0(0x176)](_0x105196[_0x1b4aa0(0x17b)],global[_0x1b4aa0(0x14b)]),_0x105196['nqNCs']),this[_0x1b4aa0(0x110)]=hubAllocator[_0x1b4aa0(0x162)](global[_0x1b4aa0(0x14b)]),logger[_0x1b4aa0(0x144)]('New\x20hub\x20url\x20set\x20to\x20'+global['newHubUrl']),global[_0x1b4aa0(0x14b)]='';}catch(_0x35fd83){logger[_0x1b4aa0(0x136)](_0x35fd83);}return super[_0x1b4aa0(0x137)](_0x12d80f);}}class _0x2c4e76 extends _0x508e6c[_0xab2728(0x13d)]{['setServer'](){const _0x77903d=_0xab2728;return this[_0x77903d(0x171)]=helper[_0x77903d(0x128)](_0x67ca6e),logger[_0x77903d(0x144)](_0x77903d(0x17f)+this[_0x77903d(0x171)]),this;}[_0xab2728(0x148)](_0x3fa865){const _0x45086d=_0xab2728;let _0xdbcae3={};for(const _0x4d7ff7 in _0x3fa865){switch(_0x4d7ff7){case _0x105196['TUmZK']:case _0x105196['qxvKG']:this[_0x45086d(0x183)]&&(_0xdbcae3=this[_0x45086d(0x183)][_0x45086d(0x186)](this[_0x45086d(0x183)][_0x45086d(0x16f)])||{},this[_0x45086d(0x183)][_0x45086d(0x12a)](this['chromeOptions_']['CAPABILITY_KEY'],helper[_0x45086d(0x14d)](_0xdbcae3,_0x3fa865[_0x4d7ff7])));break;case _0x105196['FWtkW']:case _0x105196[_0x45086d(0x126)]:this['edgeOptions_']&&(_0xdbcae3=this['edgeOptions_'][_0x45086d(0x186)](this['edgeOptions_'][_0x45086d(0x16f)])||{},this['edgeOptions_'][_0x45086d(0x12a)](this[_0x45086d(0x179)][_0x45086d(0x16f)],helper[_0x45086d(0x14d)](_0xdbcae3,_0x3fa865[_0x4d7ff7])));break;case _0x105196[_0x45086d(0x187)]:case _0x105196[_0x45086d(0x111)]:this[_0x45086d(0x165)]&&(_0xdbcae3=this['firefoxOptions_']['get'](this[_0x45086d(0x165)][_0x45086d(0x16f)])||{},this[_0x45086d(0x165)][_0x45086d(0x12a)](this['firefoxOptions_'][_0x45086d(0x16f)],helper[_0x45086d(0x14d)](_0xdbcae3,_0x3fa865[_0x4d7ff7])));break;case _0x105196['ScJCT']:this[_0x45086d(0x115)]&&(_0xdbcae3=this[_0x45086d(0x115)]['get'](this[_0x45086d(0x115)]['CAPABILITY_KEY'])||{},this['safariOptions_']['set'](this[_0x45086d(0x115)]['CAPABILITY_KEY'],helper[_0x45086d(0x14d)](_0xdbcae3,_0x3fa865[_0x4d7ff7])));break;case _0x105196['WIiRV']:case _0x105196[_0x45086d(0x152)]:this[_0x45086d(0x180)]&&(_0xdbcae3=this[_0x45086d(0x180)][_0x45086d(0x186)](this[_0x45086d(0x180)]['CAPABILITY_KEY'])||{},this[_0x45086d(0x180)]['set'](this[_0x45086d(0x180)]['CAPABILITY_KEY'],helper[_0x45086d(0x14d)](_0xdbcae3,_0x3fa865[_0x4d7ff7])));break;}}}['setCapabilities'](){const _0xf2c756=_0xab2728;return logger[_0xf2c756(0x144)](_0x105196[_0xf2c756(0x120)]),this[_0xf2c756(0x148)](_0x67ca6e[_0xf2c756(0x174)]),Object[_0xf2c756(0x142)](_0x67ca6e['capability'])[_0xf2c756(0x168)](_0x16392a=>{const _0x3c1120=_0xf2c756,_0x254062=this[_0x3c1120(0x13c)][_0x3c1120(0x186)](_0x16392a);_0x105196['dGQLq'](typeof _0x254062,_0x105196[_0x3c1120(0x130)])?this['capabilities_'][_0x3c1120(0x12a)](_0x16392a,helper['mergeDeep'](_0x254062,_0x67ca6e[_0x3c1120(0x174)][_0x16392a])):this[_0x3c1120(0x13c)][_0x3c1120(0x12a)](_0x16392a,_0x67ca6e[_0x3c1120(0x174)][_0x16392a]);}),this;}[_0xab2728(0x151)](){const _0x2267f1=_0xab2728,_0x35f7fe={'GcgpY':function(_0x1ec6a4,_0x1f2cb2,_0x239da9){const _0x2b5717=a29_0x4198;return _0x105196[_0x2b5717(0x146)](_0x1ec6a4,_0x1f2cb2,_0x239da9);},'KGows':function(_0x1a7f0e,_0x1aa942){const _0x3f326b=a29_0x4198;return _0x105196[_0x3f326b(0x12d)](_0x1a7f0e,_0x1aa942);},'Apsvu':function(_0x5b31ee,_0x7cd017,_0x1cb692){const _0x2d8d07=a29_0x4198;return _0x105196[_0x2d8d07(0x14a)](_0x5b31ee,_0x7cd017,_0x1cb692);},'OATAc':function(_0x18791c,_0x1d1fc1,_0x3c186e){const _0x3bbffe=a29_0x4198;return _0x105196[_0x3bbffe(0x146)](_0x18791c,_0x1d1fc1,_0x3c186e);}};if(helper['isBrowserstackInfra']()){const _0x4652c4=_0x105196[_0x2267f1(0x127)][_0x2267f1(0x177)]('|');let _0x5b55e6=0x0;while(!![]){switch(_0x4652c4[_0x5b55e6++]){case'0':this[_0x2267f1(0x117)]();continue;case'1':globals[_0x2267f1(0x184)](_0x105196[_0x2267f1(0x157)])&&(!_0x105196['QYiNv'](setExtension,this,_0x67ca6e)&&globals[_0x2267f1(0x16d)](_0x105196[_0x2267f1(0x157)],![]));continue;case'2':this[_0x2267f1(0x16b)]();continue;case'3':logger['debug'](_0x105196[_0x2267f1(0x140)]);continue;case'4':_0x105196[_0x2267f1(0x138)](isAccessibilityAutomationSession)&&_0x105196[_0x2267f1(0x164)](setAccessibilityCapabilities,_0x67ca6e);continue;case'5':if(helper[_0x2267f1(0x11b)](_0x67ca6e[_0x2267f1(0x181)][_0x2267f1(0x134)]))this['agent_']=helper[_0x2267f1(0x143)](_0x67ca6e[_0x2267f1(0x181)]['proxyUrl']);else _0x67ca6e[_0x2267f1(0x181)][_0x2267f1(0x134)]&&(this['proxy_']=_0x67ca6e[_0x2267f1(0x181)][_0x2267f1(0x134)],logger[_0x2267f1(0x144)]('Proxy\x20set\x20to\x20'+this[_0x2267f1(0x156)]));continue;}break;}}const _0x19427b=super[_0x2267f1(0x151)]();return _0x19427b[_0x2267f1(0x153)][_0x2267f1(0x11f)](_0x2cdf4f=>{const _0x2e15c2=_0x2267f1;try{const _0x219934=_0x2cdf4f[_0x2e15c2(0x14c)][_0x2e15c2(0x186)](_0x105196['MUYdn']);_0x219934?(logger[_0x2e15c2(0x144)](_0x2e15c2(0x11e)+_0x219934),hubAllocator[_0x2e15c2(0x121)](_0x219934),helper[_0x2e15c2(0x166)](_0x219934)):logger['debug'](_0x105196[_0x2e15c2(0x129)]);}catch(_0x5bbcd7){logger[_0x2e15c2(0x144)](_0x2e15c2(0x17d)+_0x5bbcd7);}}),_0x19427b[_0x2267f1(0x178)]=0x0,_0x19427b[_0x2267f1(0x11f)]&&_0x19427b[_0x2267f1(0x11f)](_0xfb434c=>{const _0xc9d458=_0x2267f1,_0x28a688={'Hhumr':function(_0x413941,_0x30a9ff,_0x56c70a){const _0x423be4=a29_0x4198;return _0x35f7fe[_0x423be4(0x15a)](_0x413941,_0x30a9ff,_0x56c70a);}};_0x35f7fe[_0xc9d458(0x15a)](overrideQuit,_0xfb434c,_0x19427b),_0x35f7fe[_0xc9d458(0x15c)](overrideTakeScreenshot,_0xfb434c),helper[_0xc9d458(0x17c)](_0xfb434c,_0x67ca6e),_0x35f7fe['Apsvu'](overrideExecute,_0xfb434c,_0x67ca6e),_0xfb434c['getAccessibilityResultsSummary']=async()=>{const _0x344f34=_0xc9d458;return await _0x28a688[_0x344f34(0x172)](getAccessibilityResultsSummary,_0xfb434c,global);},_0xfb434c[_0xc9d458(0x150)]=async()=>{return await _0x35f7fe['GcgpY'](getAccessibilityResults,_0xfb434c,global);};}),_0x19427b[_0x2267f1(0x131)]=async()=>{const _0x3db06d=_0x2267f1;return await _0x35f7fe[_0x3db06d(0x13b)](getAccessibilityResultsSummary,_0x19427b,global);},_0x19427b[_0x2267f1(0x150)]=async()=>{const _0x23038d=_0x2267f1;return await _0x105196[_0x23038d(0x146)](getAccessibilityResults,_0x19427b,global);},_0x105196[_0x2267f1(0x14e)](overrideTakeScreenshot,_0x19427b),_0x105196[_0x2267f1(0x11d)](overrideQuit,_0x19427b),helper[_0x2267f1(0x17c)](_0x19427b,_0x67ca6e),_0x105196[_0x2267f1(0x118)](overrideExecute,_0x19427b,_0x67ca6e),helper[_0x2267f1(0x139)](global['__driversArray'])&&(global[_0x2267f1(0x123)]=[]),helper['isUndefined'](global[_0x2267f1(0x133)])&&(global[_0x2267f1(0x133)]=[]),global[_0x2267f1(0x123)][_0x2267f1(0x154)](_0x19427b),global[_0x2267f1(0x114)]=_0x19427b,_0x105196[_0x2267f1(0x119)](global[_0x2267f1(0x133)],undefined)&&global[_0x2267f1(0x133)][_0x2267f1(0x154)](_0x19427b),_0x4f56ae&&helper['isUndefined'](_0x4f56ae[_0x2267f1(0x158)][_0x2267f1(0x123)])&&(_0x4f56ae[_0x2267f1(0x158)]['__driversArray']=[]),_0x4f56ae&&_0x105196['qOMHw'](_0x4f56ae[_0x2267f1(0x158)][_0x2267f1(0x133)],undefined)&&(_0x4f56ae[_0x2267f1(0x158)]['__drivers'][_0x2267f1(0x154)](_0x19427b),_0x4f56ae['global'][_0x2267f1(0x123)][_0x2267f1(0x154)](_0x19427b)),_0x19427b;}}return _0x508e6c[_0xab2728(0x12c)]=_0x508e6c[_0xab2728(0x13d)],_0x508e6c[_0xab2728(0x13d)]=_0x2c4e76,_0x383be9[_0xab2728(0x167)]=_0x1a55e0,_0x508e6c;};module[a29_0x54736c(0x161)][a29_0x54736c(0x163)]=modify;
|
|
1
|
+
function a29_0x944c(){const _0xf1b485=['qSYoI','getAccessibilityResults','Hub\x20url\x20set\x20to\x20','295120SBOaNw','EefNw','winstonLogger','__drivers','setCapabilities','../../../helpers/globals','Cmopi','HttpClient','firefoxOptions_','1|3|0|4|2|5','proxyUrl','622350BbxPkX','setLogLevel','goog:chromeOptions','isAccessibilityPlatform','optimalHubUrl','peLYF','__driver','send','newHubUrl','object','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','TIIIG','UamhO','getHubUrl','1535886HDySIF','proxySettings','1228086NynXws','browserStackLogLevel','aeUwe','push','logLevel','set','../../../helpers/accessibility-automation/helper','proxy_','IEARu','capabilities_','debug','whCSF','GnCGR','mOblG','MYygw','233404yboEhI','chromeOptions_','storeOptimalHubUrl','https://','1322hKvZmE','get','TNgTv','agent_','then','mergeDeep','reHrH','caps_','isUndefined','20VmSGqG','yaHci','chromeOptions','CAPABILITY_KEY','tgVZF','Proxy\x20set\x20to\x20','getHttpAgent','SVQaa','error','/wd/hub','getGlobal','firefoxOptions','2|3|4|1|0|5','safariOptions_','keys','capability','BHvpJ','ieOptions_','../../../helpers/patchHelpers','ms:edgeOptions','fUPVI','Modifying\x20webdriver\x20builder','3297432KdLiKP','__driversArray','requireSeleniumWebdriver','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','New\x20hub\x20url\x20set\x20to\x20','../accessibility-automation/helper','getAccessibilityResultsSummary','edgeOptions_','hhbgQ','url_','cDaej','split','__setBrowserOptions','ieOptions','iTATy','setServer','noXac','build','QJqoG','Builder','moz:firefoxOptions','gpCDl','jQyMx','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','requireHttpClient','/session','global','HwcrR','session_','quitCount_','isBrowserstackInfra','../../../helpers/logger','getRequestOptions','overrideGet','forEach','18ENlMGm','ofxbW','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','455UnnZht','dDozq','originalBuilder','BfmTv','sVmwR'];a29_0x944c=function(){return _0xf1b485;};return a29_0x944c();}function a29_0xa596(_0x199105,_0x9e0235){const _0x944c4e=a29_0x944c();return a29_0xa596=function(_0xa596ee,_0x71425b){_0xa596ee=_0xa596ee-0x17e;let _0x2d4a98=_0x944c4e[_0xa596ee];return _0x2d4a98;},a29_0xa596(_0x199105,_0x9e0235);}const a29_0x3dab3b=a29_0xa596;(function(_0x3e8ad8,_0x5e7c55){const _0x5269e=a29_0xa596,_0x26d02b=_0x3e8ad8();while(!![]){try{const _0xa90a85=parseInt(_0x5269e(0x19c))/0x1*(parseInt(_0x5269e(0x1d2))/0x2)+parseInt(_0x5269e(0x199))/0x3*(-parseInt(_0x5269e(0x1ce))/0x4)+parseInt(_0x5269e(0x1af))/0x5+parseInt(_0x5269e(0x1bd))/0x6+parseInt(_0x5269e(0x1a4))/0x7+-parseInt(_0x5269e(0x1f1))/0x8+parseInt(_0x5269e(0x1bf))/0x9*(parseInt(_0x5269e(0x1db))/0xa);if(_0xa90a85===_0x5e7c55)break;else _0x26d02b['push'](_0x26d02b['shift']());}catch(_0x3980af){_0x26d02b['push'](_0x26d02b['shift']());}}}(a29_0x944c,0x39205));const logger=require(a29_0x3dab3b(0x195))[a29_0x3dab3b(0x1a6)],helper=require('../../../helpers/helper'),constants=require('../../../bin/utils/constants'),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x3dab3b(0x1ed)),{setAccessibilityCapabilities,setExtension}=require(a29_0x3dab3b(0x1f6)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x3dab3b(0x1c5)),globals=require(a29_0x3dab3b(0x1a9)),{overrideExecute}=require('./helpers/patchHelper'),modify=(_0x587f27,_0x276f56=null,_0x50a2e7=![])=>{const _0x321173=a29_0x3dab3b,_0x422bc9={'UamhO':function(_0x527324,_0x36bafc){return _0x527324!==_0x36bafc;},'hhbgQ':_0x321173(0x18f),'AGpkH':function(_0x243106,_0x4a435c){return _0x243106+_0x4a435c;},'MYygw':function(_0x2157d2,_0x11bb95){return _0x2157d2+_0x11bb95;},'bPrRJ':_0x321173(0x1d1),'ROnBl':_0x321173(0x1e4),'mOblG':_0x321173(0x1b1),'HwcrR':_0x321173(0x1dd),'fUPVI':_0x321173(0x1ee),'IEARu':'edgeOptions','fXJgd':_0x321173(0x18a),'whCSF':_0x321173(0x1e6),'QJqoG':'safari.options','sVmwR':'se:ieOptions','reHrH':_0x321173(0x183),'dDozq':function(_0x279b45,_0xf8cf6f){return _0x279b45===_0xf8cf6f;},'noXac':_0x321173(0x1b8),'AUJNL':'Setting\x20Browserstack\x20capabilities','SVQaa':_0x321173(0x1b3),'peLYF':_0x321173(0x19b),'jQyMx':function(_0x1b61b9,_0x547c80,_0x1591f6){return _0x1b61b9(_0x547c80,_0x1591f6);},'BHvpJ':function(_0x136d7b,_0x268c24,_0x1679eb){return _0x136d7b(_0x268c24,_0x1679eb);},'yaHci':function(_0x1aa034,_0x3a17dd,_0x2f28cb){return _0x1aa034(_0x3a17dd,_0x2f28cb);},'nwZIz':_0x321173(0x1ad),'GnCGR':function(_0x2c2b4c,_0x915c0d){return _0x2c2b4c(_0x915c0d);},'tgVZF':_0x321173(0x1e7),'BfmTv':_0x321173(0x1b2),'aeUwe':function(_0x355a26){return _0x355a26();},'TIIIG':_0x321173(0x1b9),'agJcJ':function(_0x2c2322,_0x49530c){return _0x2c2322(_0x49530c);},'HAnCd':function(_0x3bae73,_0x2956e4){return _0x3bae73!==_0x2956e4;},'iTATy':function(_0x23367f,_0x268c54){return _0x23367f!==_0x268c54;},'Cmopi':_0x321173(0x1f4),'qSYoI':_0x321173(0x1f0)},_0x4aa451=helper[_0x321173(0x18e)]();let _0x5b8769;try{_0x5b8769=helper[_0x321173(0x1f3)](),_0x5b8769[_0x321173(0x19e)]&&(_0x5b8769[_0x321173(0x189)]=_0x5b8769[_0x321173(0x19e)]);}catch(_0x1255ce){return;}if(helper['isBrowserstackInfra']()){const _0x5714b2={};_0x5714b2[_0x321173(0x1c3)]=_0x587f27[_0x321173(0x1c0)],helper[_0x321173(0x1b0)](_0x5714b2,new Map(),new Map()),logger['info'](_0x422bc9[_0x321173(0x1aa)]),logger[_0x321173(0x1c9)](_0x422bc9[_0x321173(0x1a1)]);}class _0x17073e extends _0x4aa451[_0x321173(0x1ab)]{['send'](_0x348944){const _0x54db08=_0x321173;if(_0x422bc9[_0x54db08(0x1bb)](_0x348944['path'],_0x422bc9[_0x54db08(0x17e)])&&_0x422bc9[_0x54db08(0x1bb)](global[_0x54db08(0x1b7)],''))try{global[_0x54db08(0x1b7)]=_0x422bc9['AGpkH'](_0x422bc9[_0x54db08(0x1cd)](_0x422bc9['bPrRJ'],global[_0x54db08(0x1b7)]),_0x422bc9['ROnBl']),this['options_']=hubAllocator[_0x54db08(0x196)](global[_0x54db08(0x1b7)]),logger[_0x54db08(0x1c9)](_0x54db08(0x1f5)+global['newHubUrl']),global[_0x54db08(0x1b7)]='';}catch(_0x2159ec){logger[_0x54db08(0x1e3)](_0x2159ec);}return super[_0x54db08(0x1b6)](_0x348944);}}class _0x1daefa extends _0x5b8769[_0x321173(0x189)]{[_0x321173(0x185)](){const _0x40e984=_0x321173;return this[_0x40e984(0x17f)]=helper[_0x40e984(0x1bc)](_0x587f27),logger['debug'](_0x40e984(0x1a3)+this[_0x40e984(0x17f)]),this;}[_0x321173(0x182)](_0x6fd2d1){const _0x5549fc=_0x321173;let _0x2569d0={};for(const _0x4a09fe in _0x6fd2d1){switch(_0x4a09fe){case _0x422bc9[_0x5549fc(0x1cc)]:case _0x422bc9[_0x5549fc(0x191)]:this[_0x5549fc(0x1cf)]&&(_0x2569d0=this[_0x5549fc(0x1cf)][_0x5549fc(0x1d3)](this[_0x5549fc(0x1cf)][_0x5549fc(0x1de)])||{},this[_0x5549fc(0x1cf)]['set'](this[_0x5549fc(0x1cf)][_0x5549fc(0x1de)],helper[_0x5549fc(0x1d7)](_0x2569d0,_0x6fd2d1[_0x4a09fe])));break;case _0x422bc9[_0x5549fc(0x1ef)]:case _0x422bc9[_0x5549fc(0x1c7)]:this[_0x5549fc(0x1f8)]&&(_0x2569d0=this[_0x5549fc(0x1f8)][_0x5549fc(0x1d3)](this[_0x5549fc(0x1f8)][_0x5549fc(0x1de)])||{},this[_0x5549fc(0x1f8)][_0x5549fc(0x1c4)](this[_0x5549fc(0x1f8)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x2569d0,_0x6fd2d1[_0x4a09fe])));break;case _0x422bc9['fXJgd']:case _0x422bc9[_0x5549fc(0x1ca)]:this['firefoxOptions_']&&(_0x2569d0=this[_0x5549fc(0x1ac)][_0x5549fc(0x1d3)](this['firefoxOptions_'][_0x5549fc(0x1de)])||{},this[_0x5549fc(0x1ac)][_0x5549fc(0x1c4)](this[_0x5549fc(0x1ac)]['CAPABILITY_KEY'],helper[_0x5549fc(0x1d7)](_0x2569d0,_0x6fd2d1[_0x4a09fe])));break;case _0x422bc9[_0x5549fc(0x188)]:this[_0x5549fc(0x1e8)]&&(_0x2569d0=this[_0x5549fc(0x1e8)][_0x5549fc(0x1d3)](this['safariOptions_'][_0x5549fc(0x1de)])||{},this['safariOptions_']['set'](this[_0x5549fc(0x1e8)][_0x5549fc(0x1de)],helper[_0x5549fc(0x1d7)](_0x2569d0,_0x6fd2d1[_0x4a09fe])));break;case _0x422bc9[_0x5549fc(0x1a0)]:case _0x422bc9[_0x5549fc(0x1d8)]:this[_0x5549fc(0x1ec)]&&(_0x2569d0=this['ieOptions_'][_0x5549fc(0x1d3)](this[_0x5549fc(0x1ec)][_0x5549fc(0x1de)])||{},this['ieOptions_'][_0x5549fc(0x1c4)](this['ieOptions_'][_0x5549fc(0x1de)],helper[_0x5549fc(0x1d7)](_0x2569d0,_0x6fd2d1[_0x4a09fe])));break;}}}[_0x321173(0x1a8)](){const _0x2f3379=_0x321173,_0x16e328={'TNgTv':function(_0xa609db,_0x46c4c2){const _0x5862b9=a29_0xa596;return _0x422bc9[_0x5862b9(0x19d)](_0xa609db,_0x46c4c2);},'kPUym':_0x422bc9[_0x2f3379(0x186)]};return logger['debug'](_0x422bc9['AUJNL']),this[_0x2f3379(0x182)](_0x587f27[_0x2f3379(0x1ea)]),Object[_0x2f3379(0x1e9)](_0x587f27[_0x2f3379(0x1ea)])[_0x2f3379(0x198)](_0x203c42=>{const _0x5a918b=_0x2f3379,_0x47e1d4=this[_0x5a918b(0x1c8)][_0x5a918b(0x1d3)](_0x203c42);_0x16e328[_0x5a918b(0x1d4)](typeof _0x47e1d4,_0x16e328['kPUym'])?this[_0x5a918b(0x1c8)]['set'](_0x203c42,helper[_0x5a918b(0x1d7)](_0x47e1d4,_0x587f27[_0x5a918b(0x1ea)][_0x203c42])):this[_0x5a918b(0x1c8)]['set'](_0x203c42,_0x587f27['capability'][_0x203c42]);}),this;}['build'](){const _0x467bf1=_0x321173,_0xb0c8df={'Rsmad':function(_0x3638c6,_0x264a43,_0x53c908){const _0x521c70=a29_0xa596;return _0x422bc9[_0x521c70(0x1eb)](_0x3638c6,_0x264a43,_0x53c908);},'cDaej':function(_0x243593,_0x38d2ad,_0x51099f){const _0x38196e=a29_0xa596;return _0x422bc9[_0x38196e(0x1dc)](_0x243593,_0x38d2ad,_0x51099f);},'EefNw':_0x422bc9['nwZIz'],'ofxbW':function(_0x438db4,_0x5f9132,_0x2f33ea){const _0x46ed99=a29_0xa596;return _0x422bc9[_0x46ed99(0x1dc)](_0x438db4,_0x5f9132,_0x2f33ea);},'gpCDl':function(_0x456012,_0x3e6dce){const _0x1ec918=a29_0xa596;return _0x422bc9[_0x1ec918(0x1cb)](_0x456012,_0x3e6dce);}};if(helper[_0x467bf1(0x194)]()){const _0xf385ad=_0x422bc9[_0x467bf1(0x1df)][_0x467bf1(0x181)]('|');let _0x53f383=0x0;while(!![]){switch(_0xf385ad[_0x53f383++]){case'0':globals[_0x467bf1(0x1e5)](_0x422bc9[_0x467bf1(0x19f)])&&(!_0x422bc9[_0x467bf1(0x18c)](setExtension,this,_0x587f27)&&globals['setGlobal'](_0x422bc9[_0x467bf1(0x19f)],![]));continue;case'1':if(helper['isPacProxy'](_0x587f27[_0x467bf1(0x1be)][_0x467bf1(0x1ae)]))this[_0x467bf1(0x1d5)]=helper[_0x467bf1(0x1e1)](_0x587f27['proxySettings'][_0x467bf1(0x1ae)]);else _0x587f27[_0x467bf1(0x1be)][_0x467bf1(0x1ae)]&&(this[_0x467bf1(0x1c6)]=_0x587f27[_0x467bf1(0x1be)][_0x467bf1(0x1ae)],logger['debug'](_0x467bf1(0x1e0)+this[_0x467bf1(0x1c6)]));continue;case'2':_0x422bc9[_0x467bf1(0x1c1)](isAccessibilityAutomationSession)&&_0x422bc9[_0x467bf1(0x1cb)](setAccessibilityCapabilities,_0x587f27);continue;case'3':this[_0x467bf1(0x185)]();continue;case'4':this[_0x467bf1(0x1a8)]();continue;case'5':logger[_0x467bf1(0x1c9)](_0x422bc9[_0x467bf1(0x1ba)]);continue;}break;}}const _0x4adba4=super[_0x467bf1(0x187)]();return _0x4adba4[_0x467bf1(0x192)][_0x467bf1(0x1d6)](_0x5d2349=>{const _0x395ece=_0x467bf1;try{const _0x383c55=_0x5d2349[_0x395ece(0x1d9)][_0x395ece(0x1d3)](_0x422bc9[_0x395ece(0x1e2)]);_0x383c55?(logger[_0x395ece(0x1c9)](_0x395ece(0x18d)+_0x383c55),hubAllocator['updateHubUrl'](_0x383c55),helper[_0x395ece(0x1d0)](_0x383c55)):logger[_0x395ece(0x1c9)](_0x422bc9[_0x395ece(0x1b4)]);}catch(_0x5da2b9){logger[_0x395ece(0x1c9)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x5da2b9);}}),_0x4adba4[_0x467bf1(0x193)]=0x0,_0x4adba4['then']&&_0x4adba4[_0x467bf1(0x1d6)](_0x3e0f61=>{const _0x377db2=_0x467bf1,_0x11cabb=_0xb0c8df[_0x377db2(0x1a5)][_0x377db2(0x181)]('|');let _0x1e10bc=0x0;while(!![]){switch(_0x11cabb[_0x1e10bc++]){case'0':helper[_0x377db2(0x197)](_0x3e0f61,_0x587f27);continue;case'1':_0xb0c8df[_0x377db2(0x19a)](overrideQuit,_0x3e0f61,_0x4adba4);continue;case'2':_0x3e0f61[_0x377db2(0x1f7)]=async()=>{return await _0xb0c8df['Rsmad'](getAccessibilityResultsSummary,_0x3e0f61,global);};continue;case'3':_0xb0c8df[_0x377db2(0x18b)](overrideTakeScreenshot,_0x3e0f61);continue;case'4':_0xb0c8df[_0x377db2(0x180)](overrideExecute,_0x3e0f61,_0x587f27);continue;case'5':_0x3e0f61[_0x377db2(0x1a2)]=async()=>{const _0x19f67b=_0x377db2;return await _0xb0c8df[_0x19f67b(0x180)](getAccessibilityResults,_0x3e0f61,global);};continue;}break;}}),_0x4adba4[_0x467bf1(0x1f7)]=async()=>{const _0xbb92c3=_0x467bf1;return await _0xb0c8df[_0xbb92c3(0x180)](getAccessibilityResultsSummary,_0x4adba4,global);},_0x4adba4[_0x467bf1(0x1a2)]=async()=>{const _0xdbda14=_0x467bf1;return await _0x422bc9[_0xdbda14(0x18c)](getAccessibilityResults,_0x4adba4,global);},_0x422bc9[_0x467bf1(0x1cb)](overrideTakeScreenshot,_0x4adba4),_0x422bc9['agJcJ'](overrideQuit,_0x4adba4),helper[_0x467bf1(0x197)](_0x4adba4,_0x587f27),_0x422bc9[_0x467bf1(0x1dc)](overrideExecute,_0x4adba4,_0x587f27),helper[_0x467bf1(0x1da)](global[_0x467bf1(0x1f2)])&&(global['__driversArray']=[]),helper['isUndefined'](global['__drivers'])&&(global['__drivers']=[]),global[_0x467bf1(0x1f2)]['push'](_0x4adba4),global[_0x467bf1(0x1b5)]=_0x4adba4,_0x422bc9['HAnCd'](global[_0x467bf1(0x1a7)],undefined)&&global[_0x467bf1(0x1a7)][_0x467bf1(0x1c2)](_0x4adba4),_0x276f56&&helper[_0x467bf1(0x1da)](_0x276f56[_0x467bf1(0x190)][_0x467bf1(0x1f2)])&&(_0x276f56[_0x467bf1(0x190)][_0x467bf1(0x1f2)]=[]),_0x276f56&&_0x422bc9[_0x467bf1(0x184)](_0x276f56[_0x467bf1(0x190)][_0x467bf1(0x1a7)],undefined)&&(_0x276f56[_0x467bf1(0x190)][_0x467bf1(0x1a7)][_0x467bf1(0x1c2)](_0x4adba4),_0x276f56[_0x467bf1(0x190)][_0x467bf1(0x1f2)][_0x467bf1(0x1c2)](_0x4adba4)),_0x4adba4;}}return _0x5b8769['originalBuilder']=_0x5b8769[_0x321173(0x189)],_0x5b8769['Builder']=_0x1daefa,_0x4aa451[_0x321173(0x1ab)]=_0x17073e,_0x5b8769;};module['exports']['browserstackAgentObservability']=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a30_0x2a5b71=a30_0x5a07;function a30_0x40e0(){const _0xdc8e1d=['4208ImHvei','2072BDNxzw','104470CMXTOO','20jKbfQI','819324nEzHiQ','14ztntJc','88cjbWlj','csZDf','26378wVNwIB','249129kgRnKg','46324ivlERB','restore','1453902OYyiya','mochaHooks','516MhBYVu','../../../helpers/test-observability/utils'];a30_0x40e0=function(){return _0xdc8e1d;};return a30_0x40e0();}(function(_0x1bf5ee,_0x3935fc){const _0x4b2587=a30_0x5a07,_0x592a5c=_0x1bf5ee();while(!![]){try{const _0x564951=parseInt(_0x4b2587(0x107))/0x1*(-parseInt(_0x4b2587(0x102))/0x2)+parseInt(_0x4b2587(0x101))/0x3+-parseInt(_0x4b2587(0x103))/0x4*(-parseInt(_0x4b2587(0xff))/0x5)+parseInt(_0x4b2587(0x109))/0x6+parseInt(_0x4b2587(0xfe))/0x7*(-parseInt(_0x4b2587(0xfd))/0x8)+parseInt(_0x4b2587(0x106))/0x9*(-parseInt(_0x4b2587(0x100))/0xa)+-parseInt(_0x4b2587(0x105))/0xb*(parseInt(_0x4b2587(0x10b))/0xc);if(_0x564951===_0x3935fc)break;else _0x592a5c['push'](_0x592a5c['shift']());}catch(_0x683958){_0x592a5c['push'](_0x592a5c['shift']());}}}(a30_0x40e0,0x5230d));const requestSpy=require('../../../helpers/request-spy'),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require(a30_0x2a5b71(0xfc));function a30_0x5a07(_0x376c25,_0x3ee9c4){const _0x40e04c=a30_0x40e0();return a30_0x5a07=function(_0x5a07ed,_0x3c2640){_0x5a07ed=_0x5a07ed-0xfc;let _0x46214f=_0x40e04c[_0x5a07ed];return _0x46214f;},a30_0x5a07(_0x376c25,_0x3ee9c4);}exports[a30_0x2a5b71(0x10a)]={'beforeAll'(){const _0x1d64b=a30_0x2a5b71,_0x339f3e={'csZDf':function(_0x593b1f){return _0x593b1f();}},_0x2e31ba='browserstack internal helper hook';_0x339f3e[_0x1d64b(0x104)](addRequestSpy);},'afterAll'(){const _0x5b4270=a30_0x2a5b71,_0x56c5bd='browserstack internal helper hook';this['timeout'](0xea60),requestSpy[_0x5b4270(0x108)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a31_0x2b4f(_0x2fb297,_0x4d8ffe){const _0x230a40=a31_0x230a();return a31_0x2b4f=function(_0x2b4f39,_0x905fec){_0x2b4f39=_0x2b4f39-0x1a3;let _0x2f60c1=_0x230a40[_0x2b4f39];return _0x2f60c1;},a31_0x2b4f(_0x2fb297,_0x4d8ffe);}const a31_0x2ee292=a31_0x2b4f;(function(_0x12411f,_0x18ad95){const _0x48c549=a31_0x2b4f,_0x46075a=_0x12411f();while(!![]){try{const _0x34f550=parseInt(_0x48c549(0x1e6))/0x1*(parseInt(_0x48c549(0x1cf))/0x2)+-parseInt(_0x48c549(0x1a6))/0x3+parseInt(_0x48c549(0x1c2))/0x4*(-parseInt(_0x48c549(0x1d1))/0x5)+-parseInt(_0x48c549(0x1ea))/0x6+parseInt(_0x48c549(0x1b8))/0x7*(-parseInt(_0x48c549(0x1cd))/0x8)+parseInt(_0x48c549(0x1c7))/0x9*(parseInt(_0x48c549(0x1b5))/0xa)+parseInt(_0x48c549(0x1d4))/0xb;if(_0x34f550===_0x18ad95)break;else _0x46075a['push'](_0x46075a['shift']());}catch(_0xfb80){_0x46075a['push'](_0x46075a['shift']());}}}(a31_0x230a,0x5794d));function a31_0x230a(){const _0xee62a1=['pYgXU','_afterAll','indexOf','emit','Igntx','XjcGw','mUynt','NsKnU','CeikD','AqvKq','_beforeAll','WOyrj','getHookSkippedTests','11eupPcK','../../../../package.json','concat','hcYLy','3175842JhHCWl','ixUQy','__cloud_provider___','iTQga','gellI','getBrowserName','markedStatus','toJSON','unknown_grid','state','passed','BUebD','toISOString','wycLp','getTestEnv','JQcJq','RQLKb','../../../helpers/testhub/utils','915723yimVbl','../../../helpers/test-observability/constants','bs:addPlatformDetails:','../../../helpers/test-observability/utils','parent','mwRTz','ShPMD','pid','Kaquh','generic','getSession','slice','_beforeEach','tests','split','675670OBwRpm','mIjEA','js-','385dpTRff','../../utils/logPatcher','hook','UrwTa','failed','browserstack','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','pending','UqiYX','fromEntries','1408276mtKxPG','substring','map_','reduce','TEST_PLATFORM','45ZmKsug','jeoNB','hookAnalyticsId','forEach','HgvHk','string','89344FfcMIN','_afterEach','73394xbwpRV','mapTestHooks','5tUDoRO','getCapabilities','JIlNt','15598968CMNBtF','getHookDetails','getHooksForTest','../../../helpers/helper','GZgnk'];a31_0x230a=function(){return _0xee62a1;};return a31_0x230a();}const {v4:uuidv4}=require('uuid'),{name,version}=require(a31_0x2ee292(0x1e7)),logPatcher=require(a31_0x2ee292(0x1b9)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x2ee292(0x1a9)),{consoleHolder}=require(a31_0x2ee292(0x1a7)),{getPlatformVersion}=require(a31_0x2ee292(0x1d7)),{shouldProcessEventForTesthub}=require(a31_0x2ee292(0x1a5));console={},Object['keys'](consoleHolder)['forEach'](_0xc07a83=>{console[_0xc07a83]=(..._0x29ffc2)=>{BSTestOpsPatcher[_0xc07a83](..._0x29ffc2);};}),exports[a31_0x2ee292(0x1f8)]=()=>{const _0x10e6ad=a31_0x2ee292,_0x1c82f1={'JQcJq':_0x10e6ad(0x1af),'GZgnk':function(_0x15c5b1){return _0x15c5b1();}};return{'ci':_0x1c82f1[_0x10e6ad(0x1a3)],'key':_0x1c82f1[_0x10e6ad(0x1d8)](uuidv4),'version':version,'collector':_0x10e6ad(0x1b7)+name};},exports[a31_0x2ee292(0x1d5)]=_0x18265a=>{const _0x1ffbfe=a31_0x2ee292,_0x4fab0c={};_0x4fab0c[_0x1ffbfe(0x1a4)]=function(_0x1d6c82,_0x2ca09e){return _0x1d6c82!==_0x2ca09e;},_0x4fab0c['FwCxR']=_0x1ffbfe(0x1cc),_0x4fab0c['NsKnU']=function(_0x335da6,_0x2ea836){return _0x335da6!==_0x2ea836;},_0x4fab0c[_0x1ffbfe(0x1e9)]='hook:',_0x4fab0c[_0x1ffbfe(0x1f5)]=_0x1ffbfe(0x1ba);const _0x5d7995=_0x4fab0c;if(!_0x18265a||_0x5d7995[_0x1ffbfe(0x1a4)](typeof _0x18265a,_0x5d7995['FwCxR']))return[null,null];if(_0x5d7995[_0x1ffbfe(0x1e0)](_0x18265a[_0x1ffbfe(0x1db)](_0x5d7995[_0x1ffbfe(0x1e9)]),-0x1)){const _0x28d903=_0x18265a[_0x1ffbfe(0x1b4)](_0x5d7995[_0x1ffbfe(0x1e9)]);return[_0x28d903[0x0][_0x1ffbfe(0x1b1)](0x0,-0x1)[_0x1ffbfe(0x1b4)]('\x22')[0x1],_0x28d903[0x1][_0x1ffbfe(0x1c3)](0x1)];}else{if(_0x5d7995[_0x1ffbfe(0x1a4)](_0x18265a['indexOf'](_0x5d7995[_0x1ffbfe(0x1f5)]),-0x1)){const _0x20480b=_0x18265a['split'](_0x5d7995['BUebD']);return[_0x20480b[0x0][_0x1ffbfe(0x1b1)](0x0,-0x1)[_0x1ffbfe(0x1b4)]('\x22')[0x1],_0x18265a];}}return[null,null];},exports['getHooksForTest']=_0x4597a0=>{const _0x253dde=a31_0x2ee292,_0x5d1229={'UqiYX':function(_0x2fc911,_0x479d72){return _0x2fc911(_0x479d72);},'Kaquh':_0x253dde(0x1e3),'pYgXU':_0x253dde(0x1da),'bSssC':_0x253dde(0x1b2),'AQizA':_0x253dde(0x1ce)};if(!_0x4597a0||!_0x4597a0[_0x253dde(0x1aa)])return[];const _0x19a9b6=[];return[_0x5d1229[_0x253dde(0x1ae)],_0x5d1229[_0x253dde(0x1d9)],_0x5d1229['bSssC'],_0x5d1229['AQizA']]['forEach'](_0x529f5c=>{const _0x4ade78=_0x253dde,_0x4da9b0={'WOyrj':function(_0x3a0f33,_0x3108d6){const _0x4c2b73=a31_0x2b4f;return _0x5d1229[_0x4c2b73(0x1c0)](_0x3a0f33,_0x3108d6);}},_0x51e24b=_0x4597a0['parent'][_0x529f5c]||[];_0x51e24b[_0x4ade78(0x1ca)](_0x2ec212=>{const _0x398bdf=_0x4ade78;_0x2ec212[_0x398bdf(0x1c9)]&&!_0x4da9b0[_0x398bdf(0x1e4)](isInternalHook,_0x2ec212['fn'])&&_0x19a9b6['push'](_0x2ec212['hookAnalyticsId']);});}),[..._0x19a9b6,...exports[_0x253dde(0x1d6)](_0x4597a0[_0x253dde(0x1aa)])];},exports[a31_0x2ee292(0x1d0)]=_0x117655=>{const _0x745b4e=a31_0x2ee292,_0x2686e5={'jeoNB':function(_0x1aa5d1){return _0x1aa5d1();},'CeikD':function(_0x7fa7bb,_0x3d30d5){return _0x7fa7bb===_0x3d30d5;},'UrwTa':_0x745b4e(0x1ce),'hbGsY':_0x745b4e(0x1e3),'mIjEA':_0x745b4e(0x1da),'ixUQy':_0x745b4e(0x1b2)};if(!_0x117655||!_0x117655[_0x745b4e(0x1aa)])return;[_0x2686e5['hbGsY'],_0x2686e5[_0x745b4e(0x1b6)],_0x2686e5[_0x745b4e(0x1eb)],_0x2686e5[_0x745b4e(0x1bb)]][_0x745b4e(0x1ca)](_0x2e8fc3=>{const _0x3a3e1f=_0x745b4e,_0x3f87b0=_0x117655['parent'][_0x2e8fc3]||[];_0x3f87b0[_0x3a3e1f(0x1ca)](_0x161420=>{const _0x461a40=_0x3a3e1f;if(!_0x161420[_0x461a40(0x1c9)])_0x161420[_0x461a40(0x1c9)]=_0x2686e5[_0x461a40(0x1c8)](uuidv4);else _0x161420[_0x461a40(0x1f0)]&&_0x2686e5[_0x461a40(0x1e1)](_0x2e8fc3,_0x2686e5[_0x461a40(0x1bb)])&&(_0x161420[_0x461a40(0x1c9)]=_0x2686e5[_0x461a40(0x1c8)](uuidv4),delete _0x161420[_0x461a40(0x1f0)]);});}),exports[_0x745b4e(0x1d0)](_0x117655[_0x745b4e(0x1aa)]);},exports['sendPlatformDetails']=async(_0x6b5310,_0x2ee6e3)=>{const _0x1e38ba=a31_0x2ee292,_0x5ab84f={'wycLp':function(_0x4cd869){return _0x4cd869();},'JIlNt':function(_0x3cec9a,_0x1dd92b){return _0x3cec9a(_0x1dd92b);},'HgvHk':function(_0x3d6e7a,_0x1d1235){return _0x3d6e7a===_0x1d1235;},'Igntx':_0x1e38ba(0x1bd),'gellI':_0x1e38ba(0x1f2),'gsqWm':_0x1e38ba(0x1c6)};try{if(!_0x5ab84f[_0x1e38ba(0x1f7)](shouldProcessEventForTesthub))return;const _0x5a4a23=await _0x6b5310[_0x1e38ba(0x1d2)](),_0x4123b7=await _0x6b5310[_0x1e38ba(0x1b0)](),_0x33b4e6={},_0x24f126=Object[_0x1e38ba(0x1c1)](_0x4123b7[_0x1e38ba(0x1d2)]()[_0x1e38ba(0x1c4)]),_0x44ec1e={'product':_0x5ab84f['JIlNt'](getObservabilityLinkedProductName,_0x24f126),'capabilities':_0x24f126,'platform':_0x5a4a23['getPlatform'](),'platform_version':_0x5ab84f['JIlNt'](getPlatformVersion,_0x5ab84f[_0x1e38ba(0x1cb)](global[_0x1e38ba(0x1ec)],_0x5ab84f[_0x1e38ba(0x1dd)])),'browser':_0x5a4a23[_0x1e38ba(0x1ef)](),'browser_version':_0x5a4a23['getBrowserVersion'](),'session_id':_0x4123b7[_0x1e38ba(0x1f1)]()};global[_0x1e38ba(0x1ec)]?_0x33b4e6[global[_0x1e38ba(0x1ec)]]=_0x44ec1e:_0x33b4e6[_0x5ab84f[_0x1e38ba(0x1ee)]]=_0x44ec1e,process[_0x1e38ba(0x1dc)](_0x1e38ba(0x1a8)+process[_0x1e38ba(0x1ad)],{'timestamp':new Date()[_0x1e38ba(0x1f6)](),'level':null,'message':null,'kind':_0x5ab84f['gsqWm'],'http_response':_0x33b4e6,'uuid':_0x2ee6e3});}catch(_0x2c36dd){_0x5ab84f[_0x1e38ba(0x1d3)](debug,_0x1e38ba(0x1be)+_0x2c36dd);}},exports['getHookSkippedTests']=_0xc9edc=>{const _0x3caf8c=a31_0x2ee292,_0x283a3e={};_0x283a3e[_0x3caf8c(0x1df)]=function(_0x4f99a8,_0x1d63fb){return _0x4f99a8!==_0x1d63fb;},_0x283a3e[_0x3caf8c(0x1e2)]=_0x3caf8c(0x1ba),_0x283a3e[_0x3caf8c(0x1ac)]=function(_0x229819,_0x212749){return _0x229819!==_0x212749;},_0x283a3e[_0x3caf8c(0x1de)]=_0x3caf8c(0x1f4),_0x283a3e[_0x3caf8c(0x1ed)]=function(_0x1ca531,_0xe91bac){return _0x1ca531!==_0xe91bac;},_0x283a3e[_0x3caf8c(0x1ab)]=_0x3caf8c(0x1bc);const _0x116253=_0x283a3e,_0x3e51a1=_0xc9edc['suites'][_0x3caf8c(0x1c5)]((_0x245335,_0x3dd124)=>{const _0x3d2b3a=_0x3caf8c,_0xa7b49c=exports[_0x3d2b3a(0x1e5)](_0x3dd124);return _0xa7b49c&&(_0x245335=_0x245335[_0x3d2b3a(0x1e8)](_0xa7b49c)),_0x245335;},[]),_0x3685fe=_0xc9edc[_0x3caf8c(0x1b3)]['filter'](_0x2de647=>{const _0x45dad0=_0x3caf8c,_0x49fc63=_0x116253['mUynt'](_0x2de647['type'],_0x116253['AqvKq'])&&!_0x2de647['markedStatus']&&_0x116253['ShPMD'](_0x2de647[_0x45dad0(0x1f3)],_0x116253['XjcGw'])&&_0x116253[_0x45dad0(0x1ed)](_0x2de647['state'],_0x116253[_0x45dad0(0x1ab)])&&!_0x2de647[_0x45dad0(0x1bf)];return _0x49fc63;});return _0x3685fe[_0x3caf8c(0x1e8)](_0x3e51a1);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x1d51(_0x3667ed,_0x481579){const _0x56fa04=a32_0x56fa();return a32_0x1d51=function(_0x1d516b,_0x2ff9cb){_0x1d516b=_0x1d516b-0x12c;let _0x2cfdde=_0x56fa04[_0x1d516b];return _0x2cfdde;},a32_0x1d51(_0x3667ed,_0x481579);}const a32_0x5b8f03=a32_0x1d51;function a32_0x56fa(){const _0x8054fe=['cEJwp','../../helpers/accessibility-automation/scripts','initQuit','thBuildUuid','browserstackSessionName','executeScript','6958377jQFXVQ','50ZIWJJc','titlePath','78105jBfjnc','../../helpers/globals','http:','\x20|\x20','wiACY','iqhmy','qKreZ','accessibilityScanStarted','iQFgo','Passed','thTestRunUuid','isAccessibilityPlatform','dtbHP','error','join','Aphkw','rgPDV','failed','gpNlm','length','2528lcyPRg','app','timeout','pRYQp','5124610XiWHRs','aAoWR','capabilities','JRwNF','iuvSB','startMonitoring','Qabwi','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','AqHUS','session_','info','QagNC','stringify','appium:app','anejY','shift','HVFbn','__error_messages__','MFHpx','\x22}}','protocol','KqfqS','kPCIn','Failed:\x20','driverCleanup','IbxlF','format','Pnrqu','util','495030PACDTw','push','quitCount_','debug','then','\x20-\x20','13174RjUWLN','__skipSessionName','passed','MeloV','BClzz','state','../../helpers/testhub/utils','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','BROWSERSTACK_TESTHUB_UUID','executeAsyncScript','ENV_VAR','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','err','performScan','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','DpleO','stopMonitoring','./test-observability/mochaUtils','bstackA11yShouldScan','__drivers','XwCeb','testAnalyticsId','percyCaptureMode','392192psYplS','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','ObservabilitySync:','ycQlp','oFNXe','currentTest','../../helpers/testhub/constants','shouldScanTestForAccessibility','BpDXW','aEege','thJwtToken','WNhPi','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','5sILfrn','oFvIv','akadV','jVHpe','saveTestResults','.\x20Error\x20:','env','../../helpers/accessibility-automation/helper','796249bDOGbM','__sessionFailed','EJFrQ','https:','Failed\x20to\x20store\x20session\x20name:\x20','percy','../../helpers/logger'];a32_0x56fa=function(){return _0x8054fe;};return a32_0x56fa();}(function(_0x1f36bf,_0x46ead7){const _0x2167b4=a32_0x1d51,_0x35019a=_0x1f36bf();while(!![]){try{const _0x55eaa7=-parseInt(_0x2167b4(0x12f))/0x1+-parseInt(_0x2167b4(0x13d))/0x2*(parseInt(_0x2167b4(0x13f))/0x3)+parseInt(_0x2167b4(0x191))/0x4*(-parseInt(_0x2167b4(0x19e))/0x5)+parseInt(_0x2167b4(0x174))/0x6+-parseInt(_0x2167b4(0x17a))/0x7*(-parseInt(_0x2167b4(0x153))/0x8)+parseInt(_0x2167b4(0x13c))/0x9+parseInt(_0x2167b4(0x157))/0xa;if(_0x55eaa7===_0x46ead7)break;else _0x35019a['push'](_0x35019a['shift']());}catch(_0x5e65fe){_0x35019a['push'](_0x35019a['shift']());}}}(a32_0x56fa,0x65f7b));const util=require(a32_0x5b8f03(0x173)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x5b8f03(0x12e)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x5b8f03(0x18b)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require('../../helpers/performance-tester'),scripts=require(a32_0x5b8f03(0x137)),globals=require(a32_0x5b8f03(0x140)),logger=require(a32_0x5b8f03(0x135))['winstonLogger'],{shouldProcessEventForTesthub}=require(a32_0x5b8f03(0x180)),testHubConstants=require(a32_0x5b8f03(0x197));exports['mochaHooks']={'beforeAll'(){const _0xc0e5d6=a32_0x5b8f03,_0x3d2d51={'aEege':function(_0x224973,_0x1eacad,_0x1199c5,_0x1435e1){return _0x224973(_0x1eacad,_0x1199c5,_0x1435e1);},'XwCeb':_0xc0e5d6(0x150),'oFNXe':_0xc0e5d6(0x142),'iQFgo':function(_0x46a75a,_0x512a31,_0x5adb6c){return _0x46a75a(_0x512a31,_0x5adb6c);},'GHRst':_0xc0e5d6(0x17c),'dtbHP':function(_0x2ad621){return _0x2ad621();}};PerformanceTester[_0xc0e5d6(0x15c)]();const _0x53106a='browserstack internal helper hook';global[_0xc0e5d6(0x168)]=[],global[_0xc0e5d6(0x130)]=![],global[_0xc0e5d6(0x16f)]=async()=>{const _0x45a7bb=_0xc0e5d6;let _0x2a4e59=![];try{await global[_0x45a7bb(0x18d)][0x0][_0x45a7bb(0x160)],_0x2a4e59=!![],global[_0x45a7bb(0x130)]?await _0x3d2d51[_0x45a7bb(0x19a)](markSessionStatus,global[_0x45a7bb(0x18d)][0x0],_0x3d2d51[_0x45a7bb(0x18e)],global[_0x45a7bb(0x168)]['join'](_0x3d2d51[_0x45a7bb(0x195)])):await _0x3d2d51[_0x45a7bb(0x147)](markSessionStatus,global[_0x45a7bb(0x18d)][0x0],_0x3d2d51['GHRst']);}catch(_0x52845b){}global[_0x45a7bb(0x168)]=[],global['__sessionFailed']=![];if(_0x2a4e59)try{try{_0x3d2d51[_0x45a7bb(0x14b)](shouldProcessEventForTesthub)&&(global[_0x45a7bb(0x18d)][0x0]&&await _0x3d2d51[_0x45a7bb(0x147)](sendPlatformDetails,global['__drivers'][0x0],this[_0x45a7bb(0x196)]?this[_0x45a7bb(0x196)]['testAnalyticsId']:null));}catch{}await global['__drivers'][0x0][_0x45a7bb(0x138)]();}catch(_0x129165){}};},'beforeEach'(_0x4dabc5){const _0x569b44=a32_0x5b8f03,_0x5d5a2b={'MFHpx':function(_0x2ec24a,_0x5457df){return _0x2ec24a>_0x5457df;},'BpDXW':_0x569b44(0x179),'gpNlm':function(_0x341960,_0x13a53b,_0x59a74b){return _0x341960(_0x13a53b,_0x59a74b);},'iuvSB':_0x569b44(0x18c),'QagNC':function(_0x3e62b6){return _0x3e62b6();},'Qabwi':_0x569b44(0x14a),'rgPDV':function(_0x585e04,_0xf95c53){return _0x585e04===_0xf95c53;},'YyFIS':_0x569b44(0x141),'anejY':_0x569b44(0x132),'aXQsP':_0x569b44(0x181),'WNhPi':'Automate\x20test\x20case\x20execution\x20has\x20started.','wZiSL':function(_0x45698c){return _0x45698c();}};new Promise(async _0x4efafd=>{const _0x57bb4a=_0x569b44,_0x1acb34='browserstack internal helper hook';let _0x332bf1=!![];try{_0x5d5a2b[_0x57bb4a(0x169)](global[_0x57bb4a(0x18d)][_0x57bb4a(0x152)],0x1)&&(await global[_0x57bb4a(0x16f)](),global[_0x57bb4a(0x18d)][_0x57bb4a(0x166)]()),_0x5d5a2b[_0x57bb4a(0x169)](global[_0x57bb4a(0x18d)][0x0][_0x57bb4a(0x176)],0x0)&&(_0x332bf1=![],await global[_0x57bb4a(0x16f)]());}catch{}try{Array['isArray'](global[_0x57bb4a(0x18d)])&&global[_0x57bb4a(0x18d)][0x0]&&(global[_0x57bb4a(0x18d)][0x0][_0x57bb4a(0x13a)]=this[_0x57bb4a(0x196)]['titlePath']()['join'](_0x5d5a2b['BpDXW'])),global[_0x57bb4a(0x13a)]=this[_0x57bb4a(0x196)][_0x57bb4a(0x13e)]()[_0x57bb4a(0x14d)](_0x5d5a2b[_0x57bb4a(0x199)]);}catch(_0x4351f1){logger[_0x57bb4a(0x177)](_0x57bb4a(0x133)+_0x4351f1);}this[_0x57bb4a(0x196)][_0x57bb4a(0x198)]=_0x5d5a2b[_0x57bb4a(0x151)](shouldScanTestForAccessibility,this[_0x57bb4a(0x196)][_0x57bb4a(0x13e)](),!![]),globals['setGlobal'](_0x5d5a2b[_0x57bb4a(0x15b)],this['currentTest']['shouldScanTestForAccessibility']),this[_0x57bb4a(0x196)][_0x57bb4a(0x146)]=!![];if(_0x5d5a2b[_0x57bb4a(0x162)](isAccessibilityAutomationSession)&&_0x332bf1&&Array['isArray'](global[_0x57bb4a(0x18d)])&&_0x5d5a2b['MFHpx'](global[_0x57bb4a(0x18d)][_0x57bb4a(0x152)],0x0)&&globals['getGlobal'](_0x5d5a2b[_0x57bb4a(0x15d)]))try{const _0x1061fe=await global['__drivers'][0x0][_0x57bb4a(0x160)];if(_0x1061fe){let _0x14160d=!![];const _0x4dfe71=await global['__drivers'][0x0]['getCurrentUrl']();let _0x523388;try{_0x523388=new URL(_0x4dfe71);}catch(_0x4b5e32){_0x14160d=![];}_0x14160d=_0x5d5a2b[_0x57bb4a(0x14f)](_0x523388[_0x57bb4a(0x16b)],_0x5d5a2b['YyFIS'])||_0x5d5a2b[_0x57bb4a(0x14f)](_0x523388[_0x57bb4a(0x16b)],_0x5d5a2b[_0x57bb4a(0x165)]),_0x14160d&&(this[_0x57bb4a(0x196)][_0x57bb4a(0x198)]&&logger[_0x57bb4a(0x161)](_0x5d5a2b['aXQsP'])),this[_0x57bb4a(0x196)][_0x57bb4a(0x146)]=this['currentTest'][_0x57bb4a(0x198)],this[_0x57bb4a(0x196)][_0x57bb4a(0x198)]&&logger[_0x57bb4a(0x161)](_0x5d5a2b[_0x57bb4a(0x19c)]);}}catch(_0x5143c5){logger[_0x57bb4a(0x14c)](_0x57bb4a(0x19d)+util[_0x57bb4a(0x171)](_0x5143c5));}_0x5d5a2b['wZiSL'](_0x4efafd);})['then'](_0x4dabc5);},'afterEach'(_0x154dd9){const _0x5482f3=a32_0x5b8f03,_0x5e76c0={'IbxlF':function(_0x12d213,_0x2b9937){return _0x12d213>_0x2b9937;},'wiACY':function(_0x4266c2,_0x3f854c){return _0x4266c2===_0x3f854c;},'HVFbn':'testcase','qKreZ':_0x5482f3(0x164),'Aphkw':function(_0x348797,_0x5b080c,_0x27d60a,_0x281386){return _0x348797(_0x5b080c,_0x27d60a,_0x281386);},'ycQlp':_0x5482f3(0x179),'JRwNF':function(_0x37e953,_0x205084){return _0x37e953!==_0x205084;},'RpeYl':'passed','EJFrQ':function(_0x11b531,_0x131084,_0x3984a1){return _0x11b531(_0x131084,_0x3984a1);},'kPCIn':function(_0x116a63,_0x140e5a){return _0x116a63+_0x140e5a;},'eVuHD':_0x5482f3(0x16e),'cEJwp':_0x5482f3(0x14c),'iqhmy':function(_0x19751d,_0x371fbd,_0x21046e){return _0x19751d(_0x371fbd,_0x21046e);},'MeloV':_0x5482f3(0x148),'AqHUS':_0x5482f3(0x161),'oFvIv':_0x5482f3(0x14a),'jVHpe':_0x5482f3(0x18c),'PCTPO':_0x5482f3(0x185),'BClzz':'Performing\x20scan\x20before\x20saving\x20results','HkHxA':_0x5482f3(0x192),'DpleO':function(_0x514cdf){return _0x514cdf();},'KqfqS':function(_0x14da18,_0x33f50c,_0x6e7e3){return _0x14da18(_0x33f50c,_0x6e7e3);},'pRYQp':function(_0x14c547,_0x514969,_0x4580f1){return _0x14c547(_0x514969,_0x4580f1);},'aAoWR':_0x5482f3(0x177),'BFfcU':function(_0x6f5cfd,_0x4a4981){return _0x6f5cfd>_0x4a4981;},'akadV':function(_0x260050){return _0x260050();}},_0xc220f4='browserstack internal helper hook';this[_0x5482f3(0x155)](0xfde8);const _0x46e9ba=async(_0x34ee43,_0x516b79)=>{const _0x1ab77d=_0x5482f3;await global[_0x1ab77d(0x18d)][0x0][_0x1ab77d(0x13b)](_0x1ab77d(0x188)+_0x34ee43+',\x22level\x22:\x20\x22'+_0x516b79+_0x1ab77d(0x16a));};new Promise(async _0x38f26a=>{const _0x1a5d75=_0x5482f3;try{_0x5e76c0[_0x1a5d75(0x170)](global[_0x1a5d75(0x18d)][_0x1a5d75(0x152)],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x1a5d75(0x166)](),global[_0x1a5d75(0x168)]=[],global[_0x1a5d75(0x130)]=![]);try{if(global[_0x1a5d75(0x134)]&&_0x5e76c0[_0x1a5d75(0x143)](global[_0x1a5d75(0x190)],_0x5e76c0[_0x1a5d75(0x167)])&&global[_0x1a5d75(0x18d)][0x0]){const _0x5ee16b=_0x5e76c0[_0x1a5d75(0x170)](global[_0x1a5d75(0x159)][_0x1a5d75(0x152)],0x0)?!!global[_0x1a5d75(0x159)][0x0][_0x1a5d75(0x154)]||!!global[_0x1a5d75(0x159)][0x0][_0x5e76c0[_0x1a5d75(0x145)]]:![],_0x460f33={};_0x460f33[_0x1a5d75(0x154)]=_0x5ee16b,await _0x5e76c0[_0x1a5d75(0x14e)](percyAutoCapture,global[_0x1a5d75(0x18d)][0x0],_0x5e76c0[_0x1a5d75(0x167)],_0x460f33);}}catch(_0x3aad22){}!global[_0x1a5d75(0x17b)]&&(await global['__drivers'][0x0][_0x1a5d75(0x13b)](_0x1a5d75(0x15e)+JSON['stringify'](this[_0x1a5d75(0x196)][_0x1a5d75(0x13e)]()[_0x1a5d75(0x14d)](_0x5e76c0[_0x1a5d75(0x194)]))+'}}'),global[_0x1a5d75(0x18d)][0x0]['sessionNameSet__']=!![]);const _0x3f8e75=_0x5e76c0[_0x1a5d75(0x15a)](this[_0x1a5d75(0x196)][_0x1a5d75(0x17f)],_0x5e76c0['RpeYl']);_0x3f8e75?(global[_0x1a5d75(0x130)]=!![],global['__error_messages__'][_0x1a5d75(0x175)](this['currentTest'][_0x1a5d75(0x186)]['message']),await _0x5e76c0[_0x1a5d75(0x131)](_0x46e9ba,JSON['stringify'](_0x5e76c0[_0x1a5d75(0x16d)](_0x5e76c0['eVuHD'],this[_0x1a5d75(0x196)][_0x1a5d75(0x186)]['message'])),_0x5e76c0[_0x1a5d75(0x136)])):await _0x5e76c0[_0x1a5d75(0x144)](_0x46e9ba,JSON[_0x1a5d75(0x163)](_0x5e76c0[_0x1a5d75(0x17d)]),_0x5e76c0[_0x1a5d75(0x15f)]);}catch(_0x33a913){}try{if(this['currentTest'][_0x1a5d75(0x146)]&&globals['getGlobal'](_0x5e76c0[_0x1a5d75(0x19f)])&&globals['getGlobal'](_0x5e76c0[_0x1a5d75(0x1a1)])){logger[_0x1a5d75(0x161)](_0x5e76c0['PCTPO']);const _0x559262={};_0x559262[_0x1a5d75(0x149)]=this['currentTest']['testAnalyticsId'],_0x559262[_0x1a5d75(0x139)]=process['env'][testHubConstants['ENV_VAR'][_0x1a5d75(0x182)]],_0x559262[_0x1a5d75(0x19b)]=process[_0x1a5d75(0x12d)][testHubConstants[_0x1a5d75(0x184)]['BROWSERSTACK_TESTHUB_JWT']];const _0x10e210=_0x559262;logger[_0x1a5d75(0x177)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x1a5d75(0x163)](_0x10e210)),logger[_0x1a5d75(0x177)](_0x5e76c0[_0x1a5d75(0x17e)]),logger[_0x1a5d75(0x177)](util[_0x1a5d75(0x171)](await global[_0x1a5d75(0x18d)][0x0][_0x1a5d75(0x183)](scripts[_0x1a5d75(0x187)],{'method':global[_0x1a5d75(0x13a)]}))),await global[_0x1a5d75(0x18d)][0x0][_0x1a5d75(0x183)](scripts[_0x1a5d75(0x1a2)],_0x10e210),logger[_0x1a5d75(0x161)](_0x5e76c0['HkHxA']);}}catch(_0x35c9d2){logger[_0x1a5d75(0x14c)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x1a5d75(0x196)]['titlePath']()+_0x1a5d75(0x12c),_0x35c9d2);}try{try{if(_0x5e76c0[_0x1a5d75(0x189)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x5e76c0[_0x1a5d75(0x16c)](sendPlatformDetails,global[_0x1a5d75(0x18d)][0x0],this[_0x1a5d75(0x196)]?this[_0x1a5d75(0x196)][_0x1a5d75(0x18f)]:null);if(_0x5e76c0['DpleO'](isBrowserstackInfra)){const _0x356afa=_0x1a5d75(0x193)+Date['now']();await _0x5e76c0[_0x1a5d75(0x156)](_0x46e9ba,JSON[_0x1a5d75(0x163)](_0x356afa),_0x5e76c0[_0x1a5d75(0x158)]);}}}catch{}_0x5e76c0['BFfcU'](global[_0x1a5d75(0x18d)][0x0][_0x1a5d75(0x176)],0x0)&&await global['driverCleanup']();}catch(_0xc90ef6){}_0x5e76c0[_0x1a5d75(0x1a0)](_0x38f26a);})[_0x5482f3(0x178)](()=>_0x154dd9());},'afterAll'(_0x9d3375){const _0x11c31b=a32_0x5b8f03,_0xde34f1={'Pnrqu':function(_0x3211dd){return _0x3211dd();}},_0x16a83f='browserstack internal helper hook';this[_0x11c31b(0x155)](0xfde8),new Promise(async _0x163156=>{const _0xb5b699=_0x11c31b;PerformanceTester[_0xb5b699(0x18a)](),await global[_0xb5b699(0x16f)](),_0xde34f1[_0xb5b699(0x172)](_0x163156);})[_0x11c31b(0x178)](()=>_0x9d3375());}};
|
|
1
|
+
const a32_0xe3077a=a32_0x1038;function a32_0x646b(){const _0x2fe09c=['1748210tBTuNQ','.\x20Error\x20:','ZqTiF','URZjq','hctYP','tHFjo','stringify','__error_messages__','getGlobal','MeQhY','765116hTrEVp','ObservabilitySync:','../../helpers/accessibility-automation/scripts','initQuit','../../helpers/accessibility-automation/helper','info','executeScript','percyCaptureMode','vjPua','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','push','quitCount_','1000592phMIsv','dlwsB','protocol','app','env','error','accessibilityScanStarted','isArray','length','../../helpers/logger','Automate\x20test\x20case\x20execution\x20has\x20started.','format','gRRlg','4364605rlDgFv','JEWEV','VkGOJ','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','mochaHooks','1066xKHQSU','../../helpers/testhub/utils','fKXeI','isAccessibilityPlatform','ZpYdP','2740722lwXBEh','winstonLogger',',\x22level\x22:\x20\x22','lAjGe','../../helpers/percy/utils','https:','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','testAnalyticsId','aIcSH','sessionNameSet__','ENV_VAR','capabilities','PQQmP','getCurrentUrl','appium:app','Failed:\x20','then','3991735gjHLuF','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','debug','startMonitoring','iFJvz','zadfK','ssfyc','testcase','BROWSERSTACK_TESTHUB_JWT','IjvCi','util','458zsNxsj','__drivers','\x20|\x20','qsCJg','\x22}}','executeAsyncScript','KHnpy','bstackA11yShouldScan','12mkbhyo','hBTjs','driverCleanup','__sessionFailed','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','currentTest','QBJWY','err','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','timeout','BhdtQ','titlePath','BROWSERSTACK_TESTHUB_UUID','OZIxB','browserstackSessionName','./test-observability/mochaUtils','DLElS','ZXshp','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','VvCFz','GSbhH','XtdeQ','shouldScanTestForAccessibility','../../helpers/performance-tester','rqtjQ','saveTestResults','9hqyxxz','uWHPJ','thBuildUuid','spJNp','session_','../../helpers/globals','message','join','HizAu','passed','__skipSessionName','Performing\x20scan\x20before\x20saving\x20results','shift','eSuHh'];a32_0x646b=function(){return _0x2fe09c;};return a32_0x646b();}function a32_0x1038(_0xba41d2,_0x3b201f){const _0x646bd7=a32_0x646b();return a32_0x1038=function(_0x10385d,_0x484dd3){_0x10385d=_0x10385d-0x120;let _0x42f5ed=_0x646bd7[_0x10385d];return _0x42f5ed;},a32_0x1038(_0xba41d2,_0x3b201f);}(function(_0x4bfa61,_0x2e0bba){const _0x3c4928=a32_0x1038,_0x121448=_0x4bfa61();while(!![]){try{const _0x22341e=parseInt(_0x3c4928(0x160))/0x1*(-parseInt(_0x3c4928(0x181))/0x2)+parseInt(_0x3c4928(0x165))/0x3+-parseInt(_0x3c4928(0x142))/0x4+-parseInt(_0x3c4928(0x176))/0x5+-parseInt(_0x3c4928(0x189))/0x6*(-parseInt(_0x3c4928(0x15b))/0x7)+-parseInt(_0x3c4928(0x14e))/0x8+parseInt(_0x3c4928(0x12a))/0x9*(-parseInt(_0x3c4928(0x138))/0xa);if(_0x22341e===_0x2e0bba)break;else _0x121448['push'](_0x121448['shift']());}catch(_0x58c34d){_0x121448['push'](_0x121448['shift']());}}}(a32_0x646b,0x99119));const util=require(a32_0xe3077a(0x180)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0xe3077a(0x146)),{percyAutoCapture}=require(a32_0xe3077a(0x169)),{sendPlatformDetails}=require(a32_0xe3077a(0x198)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0xe3077a(0x127)),scripts=require(a32_0xe3077a(0x144)),globals=require(a32_0xe3077a(0x12f)),logger=require(a32_0xe3077a(0x157))[a32_0xe3077a(0x166)],{shouldProcessEventForTesthub}=require(a32_0xe3077a(0x161)),testHubConstants=require('../../helpers/testhub/constants');exports[a32_0xe3077a(0x15f)]={'beforeAll'(){const _0x15b990=a32_0xe3077a,_0x40c098={'hctYP':function(_0x5d49e5,_0xcd0850,_0x16e06e,_0x5af192){return _0x5d49e5(_0xcd0850,_0x16e06e,_0x5af192);},'XtdeQ':'failed','qsCJg':_0x15b990(0x183),'dlwsB':function(_0x474327,_0x4126f4,_0x1fc779){return _0x474327(_0x4126f4,_0x1fc779);},'DLElS':'passed','rqtjQ':function(_0x4023f6){return _0x4023f6();}};PerformanceTester[_0x15b990(0x179)]();const _0x28ec65='browserstack internal helper hook';global[_0x15b990(0x13f)]=[],global[_0x15b990(0x18c)]=![],global['driverCleanup']=async()=>{const _0x1c1399=_0x15b990;let _0x2b269a=![];try{await global[_0x1c1399(0x182)][0x0][_0x1c1399(0x12e)],_0x2b269a=!![],global[_0x1c1399(0x18c)]?await _0x40c098[_0x1c1399(0x13c)](markSessionStatus,global[_0x1c1399(0x182)][0x0],_0x40c098[_0x1c1399(0x125)],global['__error_messages__'][_0x1c1399(0x131)](_0x40c098[_0x1c1399(0x184)])):await _0x40c098['dlwsB'](markSessionStatus,global[_0x1c1399(0x182)][0x0],_0x40c098[_0x1c1399(0x120)]);}catch(_0x49c3c8){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0x2b269a)try{try{_0x40c098[_0x1c1399(0x128)](shouldProcessEventForTesthub)&&(global[_0x1c1399(0x182)][0x0]&&await _0x40c098[_0x1c1399(0x14f)](sendPlatformDetails,global['__drivers'][0x0],this[_0x1c1399(0x18e)]?this[_0x1c1399(0x18e)][_0x1c1399(0x16c)]:null));}catch{}await global[_0x1c1399(0x182)][0x0][_0x1c1399(0x145)]();}catch(_0x999aee){}};},'beforeEach'(_0x3982f2){const _0x5e9b90=a32_0xe3077a,_0x4a7604={'uWHPJ':function(_0x184f3f,_0x178d72){return _0x184f3f>_0x178d72;},'KHnpy':function(_0x59514b,_0x448419){return _0x59514b>_0x448419;},'HizAu':'\x20-\x20','mKGRn':function(_0x110bc0,_0x2d73af,_0x2125af){return _0x110bc0(_0x2d73af,_0x2125af);},'FudDj':_0x5e9b90(0x188),'VkGOJ':function(_0x4863b0){return _0x4863b0();},'CUSUb':function(_0x977007,_0xd205db){return _0x977007>_0xd205db;},'wHNHO':_0x5e9b90(0x163),'IhtdS':function(_0x3e029a,_0x23e588){return _0x3e029a===_0x23e588;},'PQQmP':'http:','OZIxB':function(_0x55ff89,_0x2182fb){return _0x55ff89===_0x2182fb;},'IVZli':_0x5e9b90(0x16a),'IjvCi':_0x5e9b90(0x122),'GlGrd':_0x5e9b90(0x158),'ZqTiF':function(_0x574aa1){return _0x574aa1();}};new Promise(async _0x37e999=>{const _0x1e12df=_0x5e9b90,_0x35ddd6='browserstack internal helper hook';let _0x27c8a4=!![];try{_0x4a7604[_0x1e12df(0x12b)](global[_0x1e12df(0x182)][_0x1e12df(0x156)],0x1)&&(await global[_0x1e12df(0x18b)](),global[_0x1e12df(0x182)][_0x1e12df(0x136)]()),_0x4a7604[_0x1e12df(0x187)](global[_0x1e12df(0x182)][0x0][_0x1e12df(0x14d)],0x0)&&(_0x27c8a4=![],await global['driverCleanup']());}catch{}try{Array[_0x1e12df(0x155)](global[_0x1e12df(0x182)])&&global['__drivers'][0x0]&&(global[_0x1e12df(0x182)][0x0][_0x1e12df(0x197)]=this['currentTest'][_0x1e12df(0x194)]()[_0x1e12df(0x131)](_0x4a7604[_0x1e12df(0x132)])),global[_0x1e12df(0x197)]=this[_0x1e12df(0x18e)][_0x1e12df(0x194)]()[_0x1e12df(0x131)](_0x4a7604[_0x1e12df(0x132)]);}catch(_0x1ad4df){logger['debug']('Failed\x20to\x20store\x20session\x20name:\x20'+_0x1ad4df);}this[_0x1e12df(0x18e)][_0x1e12df(0x126)]=_0x4a7604['mKGRn'](shouldScanTestForAccessibility,this['currentTest'][_0x1e12df(0x194)](),!![]),globals['setGlobal'](_0x4a7604['FudDj'],this['currentTest'][_0x1e12df(0x126)]),this['currentTest'][_0x1e12df(0x154)]=!![];if(_0x4a7604[_0x1e12df(0x15d)](isAccessibilityAutomationSession)&&_0x27c8a4&&Array['isArray'](global[_0x1e12df(0x182)])&&_0x4a7604['CUSUb'](global[_0x1e12df(0x182)][_0x1e12df(0x156)],0x0)&&globals[_0x1e12df(0x140)](_0x4a7604['wHNHO']))try{const _0x1f5f4c=await global[_0x1e12df(0x182)][0x0][_0x1e12df(0x12e)];if(_0x1f5f4c){let _0x23ce2e=!![];const _0x36342a=await global[_0x1e12df(0x182)][0x0][_0x1e12df(0x172)]();let _0x5849a3;try{_0x5849a3=new URL(_0x36342a);}catch(_0x453e2a){_0x23ce2e=![];}_0x23ce2e=_0x4a7604['IhtdS'](_0x5849a3['protocol'],_0x4a7604[_0x1e12df(0x171)])||_0x4a7604[_0x1e12df(0x196)](_0x5849a3[_0x1e12df(0x150)],_0x4a7604['IVZli']),_0x23ce2e&&(this[_0x1e12df(0x18e)]['shouldScanTestForAccessibility']&&logger[_0x1e12df(0x147)](_0x4a7604[_0x1e12df(0x17f)])),this[_0x1e12df(0x18e)][_0x1e12df(0x154)]=this['currentTest'][_0x1e12df(0x126)],this['currentTest'][_0x1e12df(0x126)]&&logger[_0x1e12df(0x147)](_0x4a7604['GlGrd']);}}catch(_0x1e9402){logger[_0x1e12df(0x153)](_0x1e12df(0x15e)+util[_0x1e12df(0x159)](_0x1e9402));}_0x4a7604[_0x1e12df(0x13a)](_0x37e999);})[_0x5e9b90(0x175)](_0x3982f2);},'afterEach'(_0x6c5ec4){const _0x10c0a1=a32_0xe3077a,_0x3a89c6={'zadfK':function(_0x4fde84,_0x1ce8dd){return _0x4fde84>_0x1ce8dd;},'MeQhY':function(_0xc9104d,_0x211953){return _0xc9104d===_0x211953;},'gRRlg':_0x10c0a1(0x17d),'hBTjs':_0x10c0a1(0x173),'lAjGe':function(_0x2ca35b,_0x956c24,_0x34d33a,_0x35836e){return _0x2ca35b(_0x956c24,_0x34d33a,_0x35836e);},'BhdtQ':'\x20-\x20','aIcSH':function(_0x1c8d67,_0x58cd27){return _0x1c8d67!==_0x58cd27;},'spJNp':_0x10c0a1(0x133),'KvJsl':function(_0x46ee16,_0x275b19,_0x18746f){return _0x46ee16(_0x275b19,_0x18746f);},'vjPua':function(_0x5d490d,_0x5eb58e){return _0x5d490d+_0x5eb58e;},'ZpYdP':_0x10c0a1(0x174),'VvCFz':_0x10c0a1(0x153),'JEWEV':function(_0x3985df,_0x31130c,_0x31c364){return _0x3985df(_0x31130c,_0x31c364);},'Xbqcf':'Passed','yyXaq':_0x10c0a1(0x147),'ssfyc':'isAccessibilityPlatform','BCGPn':'bstackA11yShouldScan','ZXshp':_0x10c0a1(0x16b),'iFJvz':_0x10c0a1(0x135),'GSbhH':_0x10c0a1(0x18d),'NeZsV':function(_0x4faa57){return _0x4faa57();},'QBJWY':function(_0x403eec,_0x1107a1,_0x373045){return _0x403eec(_0x1107a1,_0x373045);},'URZjq':_0x10c0a1(0x178),'fKXeI':function(_0x4270ba,_0x196d95){return _0x4270ba>_0x196d95;},'tHFjo':function(_0x10b05b){return _0x10b05b();}},_0x1c6c68='browserstack internal helper hook';this[_0x10c0a1(0x192)](0xfde8);const _0x464820=async(_0x1d64c6,_0x5eda6e)=>{const _0x28ec54=_0x10c0a1;await global[_0x28ec54(0x182)][0x0][_0x28ec54(0x148)](_0x28ec54(0x191)+_0x1d64c6+_0x28ec54(0x167)+_0x5eda6e+_0x28ec54(0x185));};new Promise(async _0x604b08=>{const _0x44f02a=_0x10c0a1;try{_0x3a89c6['zadfK'](global[_0x44f02a(0x182)][_0x44f02a(0x156)],0x1)&&(await global[_0x44f02a(0x18b)](),global[_0x44f02a(0x182)][_0x44f02a(0x136)](),global[_0x44f02a(0x13f)]=[],global[_0x44f02a(0x18c)]=![]);try{if(global['percy']&&_0x3a89c6[_0x44f02a(0x141)](global[_0x44f02a(0x149)],_0x3a89c6['gRRlg'])&&global['__drivers'][0x0]){const _0x4eb793=_0x3a89c6[_0x44f02a(0x17b)](global[_0x44f02a(0x170)][_0x44f02a(0x156)],0x0)?!!global[_0x44f02a(0x170)][0x0]['app']||!!global[_0x44f02a(0x170)][0x0][_0x3a89c6[_0x44f02a(0x18a)]]:![],_0x50a593={};_0x50a593[_0x44f02a(0x151)]=_0x4eb793,await _0x3a89c6[_0x44f02a(0x168)](percyAutoCapture,global[_0x44f02a(0x182)][0x0],_0x3a89c6[_0x44f02a(0x15a)],_0x50a593);}}catch(_0x50cb71){}!global[_0x44f02a(0x134)]&&(await global['__drivers'][0x0][_0x44f02a(0x148)](_0x44f02a(0x14b)+JSON[_0x44f02a(0x13e)](this[_0x44f02a(0x18e)][_0x44f02a(0x194)]()[_0x44f02a(0x131)](_0x3a89c6[_0x44f02a(0x193)]))+'}}'),global[_0x44f02a(0x182)][0x0][_0x44f02a(0x16e)]=!![]);const _0x3e4e37=_0x3a89c6[_0x44f02a(0x16d)](this[_0x44f02a(0x18e)]['state'],_0x3a89c6[_0x44f02a(0x12d)]);_0x3e4e37?(global[_0x44f02a(0x18c)]=!![],global[_0x44f02a(0x13f)][_0x44f02a(0x14c)](this[_0x44f02a(0x18e)][_0x44f02a(0x190)][_0x44f02a(0x130)]),await _0x3a89c6['KvJsl'](_0x464820,JSON['stringify'](_0x3a89c6[_0x44f02a(0x14a)](_0x3a89c6[_0x44f02a(0x164)],this[_0x44f02a(0x18e)][_0x44f02a(0x190)][_0x44f02a(0x130)])),_0x3a89c6[_0x44f02a(0x123)])):await _0x3a89c6['JEWEV'](_0x464820,JSON[_0x44f02a(0x13e)](_0x3a89c6['Xbqcf']),_0x3a89c6['yyXaq']);}catch(_0x4e9f09){}try{if(this[_0x44f02a(0x18e)]['accessibilityScanStarted']&&globals[_0x44f02a(0x140)](_0x3a89c6[_0x44f02a(0x17c)])&&globals[_0x44f02a(0x140)](_0x3a89c6['BCGPn'])){logger[_0x44f02a(0x147)](_0x3a89c6[_0x44f02a(0x121)]);const _0x481ef6={};_0x481ef6['thTestRunUuid']=this['currentTest'][_0x44f02a(0x16c)],_0x481ef6[_0x44f02a(0x12c)]=process[_0x44f02a(0x152)][testHubConstants[_0x44f02a(0x16f)][_0x44f02a(0x195)]],_0x481ef6['thJwtToken']=process[_0x44f02a(0x152)][testHubConstants[_0x44f02a(0x16f)][_0x44f02a(0x17e)]];const _0x7069dc=_0x481ef6;logger[_0x44f02a(0x178)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x44f02a(0x13e)](_0x7069dc)),logger[_0x44f02a(0x178)](_0x3a89c6[_0x44f02a(0x17a)]),logger['debug'](util['format'](await global[_0x44f02a(0x182)][0x0][_0x44f02a(0x186)](scripts['performScan'],{'method':global[_0x44f02a(0x197)]}))),await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x44f02a(0x129)],_0x7069dc),logger[_0x44f02a(0x147)](_0x3a89c6[_0x44f02a(0x124)]);}}catch(_0x1953b1){logger[_0x44f02a(0x153)](_0x44f02a(0x177)+this[_0x44f02a(0x18e)]['titlePath']()+_0x44f02a(0x139),_0x1953b1);}try{try{if(_0x3a89c6['NeZsV'](shouldProcessEventForTesthub)){global[_0x44f02a(0x182)][0x0]&&await _0x3a89c6[_0x44f02a(0x15c)](sendPlatformDetails,global[_0x44f02a(0x182)][0x0],this[_0x44f02a(0x18e)]?this[_0x44f02a(0x18e)][_0x44f02a(0x16c)]:null);if(_0x3a89c6['NeZsV'](isBrowserstackInfra)){const _0x4e7d36=_0x44f02a(0x143)+Date['now']();await _0x3a89c6[_0x44f02a(0x18f)](_0x464820,JSON[_0x44f02a(0x13e)](_0x4e7d36),_0x3a89c6[_0x44f02a(0x13b)]);}}}catch{}_0x3a89c6[_0x44f02a(0x162)](global[_0x44f02a(0x182)][0x0][_0x44f02a(0x14d)],0x0)&&await global[_0x44f02a(0x18b)]();}catch(_0x3f23fe){}_0x3a89c6[_0x44f02a(0x13d)](_0x604b08);})[_0x10c0a1(0x175)](()=>_0x6c5ec4());},'afterAll'(_0x239d3a){const _0x367c3f=a32_0xe3077a,_0x4dd647={'eSuHh':function(_0xa4912){return _0xa4912();}},_0x1df7b1='browserstack internal helper hook';this[_0x367c3f(0x192)](0xfde8),new Promise(async _0x1d431c=>{const _0x8c87bf=_0x367c3f;PerformanceTester['stopMonitoring'](),await global[_0x8c87bf(0x18b)](),_0x4dd647[_0x8c87bf(0x137)](_0x1d431c);})['then'](()=>_0x239d3a());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';function a33_0x45f5(_0x2ba011,_0x334c76){const _0xb15bbb=a33_0xb15b();return a33_0x45f5=function(_0x45f5c7,_0x30cfd7){_0x45f5c7=_0x45f5c7-0x1af;let _0x7eb4eb=_0xb15bbb[_0x45f5c7];return _0x7eb4eb;},a33_0x45f5(_0x2ba011,_0x334c76);}const a33_0x3000f6=a33_0x45f5;(function(_0x27aa59,_0x4b270d){const _0x32da9c=a33_0x45f5,_0x3f4f15=_0x27aa59();while(!![]){try{const _0x94f17b=-parseInt(_0x32da9c(0x1c2))/0x1+-parseInt(_0x32da9c(0x1cc))/0x2+-parseInt(_0x32da9c(0x1b6))/0x3+-parseInt(_0x32da9c(0x1f0))/0x4+parseInt(_0x32da9c(0x1b2))/0x5+-parseInt(_0x32da9c(0x1c4))/0x6+parseInt(_0x32da9c(0x1d1))/0x7;if(_0x94f17b===_0x4b270d)break;else _0x3f4f15['push'](_0x3f4f15['shift']());}catch(_0x418075){_0x3f4f15['push'](_0x3f4f15['shift']());}}}(a33_0xb15b,0x2e518));function a33_0xb15b(){const _0x1c71ad=['useW3C','SFuRR','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','start_process','host','nightwatch','cxfZh','length','winstonLogger','test','platform','path','388588ztuDwk','YKdfJ','nightwatch-browserstack.json','now','xvGgg','desiredCapabilities','cwd','debug','gBndX','ySEqm','env','inherit','QRJvP','ThunQ','filter','1224400dpVOjV','port','../../helpers/logger','split','930012dbGxpF','findIndex','selenium','BQTmh','config','splice','info','map','close','UfpaM','modifyBrowserStackCaps','test_settings','82713UFXJCX','platforms','593376BvcjiH','--config','join','exports','child\x20process\x20exited\x20with\x20code\x20','webdriver','push','nightwatch.cmd','684060zfNxJV','SaEuV','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','Deleting\x20','iFHUX','6129410bgUjoD','rMLyW','oFdyL','UCGvY','kRrhI','writeFileSync','slice','modifyBrowserStackW3CCaps','byHRQ','--env','forEach','Getting\x20your\x20nightwatch\x20configs\x20from\x20','trim','../utils/constants','aynOX','yGmNL','nightwatch.conf.js','AJntK','existsSync'];a33_0xb15b=function(){return _0x1c71ad;};return a33_0xb15b();}const fs=require('fs'),path=require(a33_0x3000f6(0x1ef)),{spawn}=require('child_process'),logger=require(a33_0x3000f6(0x1b4))[a33_0x3000f6(0x1ec)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),constants=require(a33_0x3000f6(0x1de)),getUserNightwatchConfigs=(_0x1f29de,_0x333027)=>{const _0x235492=a33_0x3000f6,_0x493f78={'YKdfJ':_0x235492(0x1e1),'AJntK':'nightwatch.json','cxfZh':function(_0x13fb59,_0x4be783){return _0x13fb59(_0x4be783);},'oFdyL':_0x235492(0x1ce)};let _0x4f882d=null,_0x561fb6={};const _0x3fb597=_0x333027[_0x235492(0x1b7)](_0x332a9c=>_0x332a9c===_0x235492(0x1c5));if(!helper['isUndefined'](_0x1f29de[_0x235492(0x1ba)])&&fs[_0x235492(0x1e3)](path[_0x235492(0x1c6)](process[_0x235492(0x1f6)](),_0x1f29de[_0x235492(0x1ba)])))_0x4f882d=path['join'](process[_0x235492(0x1f6)](),_0x1f29de[_0x235492(0x1ba)]),_0x333027[_0x235492(0x1bb)](_0x3fb597,0x2);else{if(fs[_0x235492(0x1e3)](path[_0x235492(0x1c6)](process['cwd'](),_0x493f78['YKdfJ'])))_0x4f882d=path[_0x235492(0x1c6)](process[_0x235492(0x1f6)](),_0x493f78[_0x235492(0x1f1)]);else fs[_0x235492(0x1e3)](path[_0x235492(0x1c6)](process['cwd'](),_0x493f78['AJntK']))&&(_0x4f882d=path[_0x235492(0x1c6)](process[_0x235492(0x1f6)](),_0x493f78[_0x235492(0x1e2)]));}return _0x4f882d?(logger[_0x235492(0x1bc)](_0x235492(0x1dc)+_0x4f882d),_0x561fb6=_0x493f78[_0x235492(0x1ea)](require,_0x4f882d)):logger[_0x235492(0x1bc)](_0x493f78[_0x235492(0x1d3)]),_0x561fb6;},removeExistingEnvs=_0x335556=>{const _0x54d7a0=a33_0x3000f6,_0x2bce65={};_0x2bce65['ThunQ']=function(_0x289fdd,_0x479bdd){return _0x289fdd>_0x479bdd;};const _0x46352b=_0x2bce65;let _0x17ba67=_0x335556['findIndex'](_0x51a455=>_0x51a455===_0x54d7a0(0x1da));_0x46352b[_0x54d7a0(0x1b0)](_0x17ba67,-0x1)&&_0x335556[_0x54d7a0(0x1bb)](_0x17ba67,0x2),_0x17ba67=_0x335556[_0x54d7a0(0x1b7)](_0x2e91f8=>_0x2e91f8==='-e'),_0x46352b['ThunQ'](_0x17ba67,-0x1)&&_0x335556[_0x54d7a0(0x1bb)](_0x17ba67,0x2);};function run(_0x505ef8,_0x5dc38d){const _0x56fb5c=a33_0x3000f6,_0x23ef67={'aynOX':_0x56fb5c(0x1e9),'kRrhI':function(_0x5c506d,_0x375175){return _0x5c506d+_0x375175;},'yGmNL':_0x56fb5c(0x1c1),'JgRSA':function(_0x1335c1,_0x322e00,_0x1b8b3b){return _0x1335c1(_0x322e00,_0x1b8b3b);},'iFHUX':'hub.browserstack.com','UCGvY':_0x56fb5c(0x1e6),'UfpaM':function(_0x191ef0,_0xa04214){return _0x191ef0===_0xa04214;},'ySEqm':_0x56fb5c(0x1f2),'BQTmh':function(_0x22fa39,_0x4549df){return _0x22fa39(_0x4549df);},'SFuRR':function(_0x3f0c31,_0x4cb16f,_0x1b6434,_0x26a404){return _0x3f0c31(_0x4cb16f,_0x1b6434,_0x26a404);},'QRJvP':_0x56fb5c(0x1cb),'xvGgg':'--config','ukduM':_0x56fb5c(0x1da),'SaEuV':_0x56fb5c(0x1fb),'rMLyW':_0x56fb5c(0x1be)},_0x363ed6=new BrowserStackSetup(_0x505ef8);if(!_0x363ed6[_0x56fb5c(0x1ba)])return;const _0x95ad09=_0x23ef67['JgRSA'](getUserNightwatchConfigs,_0x505ef8,_0x5dc38d),_0x39fe29={};_0x39fe29[_0x56fb5c(0x1e7)]=![];const _0x1fea85={};_0x1fea85[_0x56fb5c(0x1e8)]=_0x23ef67[_0x56fb5c(0x1d0)],_0x1fea85[_0x56fb5c(0x1b3)]=0x1bb;const _0x286b1d={};_0x286b1d[_0x56fb5c(0x1c9)]=_0x39fe29,_0x286b1d[_0x56fb5c(0x1b8)]=_0x1fea85;const _0x5ef3c8=_0x286b1d;logger[_0x56fb5c(0x1bc)](_0x23ef67[_0x56fb5c(0x1d4)]);const _0x40680c={..._0x95ad09},_0x349047=_0x40680c,_0x6ec78b=helper[_0x56fb5c(0x1e4)](_0x363ed6[_0x56fb5c(0x1ba)]),_0x12cde0=[];_0x363ed6[_0x56fb5c(0x1ba)][_0x56fb5c(0x1c3)][_0x56fb5c(0x1db)]((_0x4227f9,_0xe2dbe7)=>{const _0x2fb56f=_0x56fb5c;_0x6ec78b?_0x12cde0[_0x2fb56f(0x1ca)](helper[_0x2fb56f(0x1d8)](_0x363ed6['config'],_0x23ef67[_0x2fb56f(0x1df)],_0xe2dbe7)):_0x12cde0[_0x2fb56f(0x1ca)](helper[_0x2fb56f(0x1c0)](_0x363ed6[_0x2fb56f(0x1ba)],_0x23ef67[_0x2fb56f(0x1df)],_0xe2dbe7));});const _0x130a0b={},_0x4270c0=[];_0x505ef8[_0x56fb5c(0x1fa)]=_0x505ef8[_0x56fb5c(0x1fa)]||_0x505ef8['e'];const _0x8320fa=_0x505ef8[_0x56fb5c(0x1fa)]?_0x505ef8[_0x56fb5c(0x1fa)][_0x56fb5c(0x1dd)]()[_0x56fb5c(0x1b5)](',')[_0x56fb5c(0x1bd)](_0x59020d=>_0x59020d['trim']())[_0x56fb5c(0x1b1)](_0x1363da=>_0x1363da!==''):[''];_0x23ef67[_0x56fb5c(0x1bf)](_0x8320fa[_0x56fb5c(0x1eb)],0x0)&&_0x8320fa[_0x56fb5c(0x1ca)]('');_0x8320fa[_0x56fb5c(0x1db)](_0xb9ed58=>{const _0x442196=_0x56fb5c,_0x841c62={'byHRQ':function(_0x254cd9,_0x21841a){const _0x39bcae=a33_0x45f5;return _0x23ef67[_0x39bcae(0x1d5)](_0x254cd9,_0x21841a);},'gBndX':_0x23ef67[_0x442196(0x1e0)]};_0x12cde0[_0x442196(0x1db)](_0x2d13c0=>{const _0x3740f3=_0x442196;let _0x4fd76c=_0x841c62[_0x3740f3(0x1d9)](helper['getPlatformName'](_0x2d13c0,'_'),'_'+Date[_0x3740f3(0x1f3)]());_0xb9ed58&&(_0x4fd76c+='_'+_0xb9ed58);if(_0xb9ed58&&(!_0x95ad09[_0x841c62['gBndX']]||!_0x95ad09[_0x841c62[_0x3740f3(0x1f8)]][_0xb9ed58]))return;const _0x3bc52d={..._0x5ef3c8};_0x3bc52d[_0x3740f3(0x1f5)]=_0x2d13c0;const _0x276e3f=_0x3bc52d;_0x130a0b[_0x4fd76c]=_0xb9ed58?helper['mergeDeep'](_0x95ad09[_0x841c62['gBndX']][_0xb9ed58],_0x276e3f):_0x276e3f,_0x4270c0[_0x3740f3(0x1ca)](_0x4fd76c);});});!_0x349047[_0x56fb5c(0x1c1)]&&(_0x349047['test_settings']={});_0x349047[_0x56fb5c(0x1c1)]={..._0x349047[_0x56fb5c(0x1c1)],..._0x130a0b};const _0x1595d6=path[_0x56fb5c(0x1c6)](__dirname,_0x23ef67[_0x56fb5c(0x1f9)]);fs[_0x56fb5c(0x1d6)](_0x1595d6,JSON['stringify'](_0x349047)),_0x23ef67[_0x56fb5c(0x1b9)](removeExistingEnvs,_0x5dc38d);const _0x5630b3=_0x23ef67[_0x56fb5c(0x1e5)](spawn,/^win/[_0x56fb5c(0x1ed)](process[_0x56fb5c(0x1ee)])?_0x23ef67[_0x56fb5c(0x1af)]:_0x23ef67['aynOX'],[_0x23ef67[_0x56fb5c(0x1f4)],_0x1595d6,..._0x5dc38d[_0x56fb5c(0x1d7)](0x1),_0x23ef67['ukduM'],_0x4270c0['join'](',')],{'stdio':_0x23ef67[_0x56fb5c(0x1cd)]});_0x5630b3['on'](_0x23ef67[_0x56fb5c(0x1d2)],async _0x3d6a6a=>{const _0x31d3d7=_0x56fb5c;logger[_0x31d3d7(0x1f7)](_0x31d3d7(0x1c8)+_0x3d6a6a),logger[_0x31d3d7(0x1bc)](_0x31d3d7(0x1cf)+_0x1595d6),fs['unlinkSync'](_0x1595d6);});}module[a33_0x3000f6(0x1c7)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x259ccd=a34_0x4b80;(function(_0x993dc6,_0x317d80){const _0x3099f8=a34_0x4b80,_0x195969=_0x993dc6();while(!![]){try{const _0x387f46=parseInt(_0x3099f8(0x1bd))/0x1*(-parseInt(_0x3099f8(0x1cb))/0x2)+-parseInt(_0x3099f8(0x193))/0x3+-parseInt(_0x3099f8(0x1b5))/0x4+parseInt(_0x3099f8(0x1d9))/0x5*(-parseInt(_0x3099f8(0x1c5))/0x6)+-parseInt(_0x3099f8(0x1bf))/0x7*(parseInt(_0x3099f8(0x1d4))/0x8)+parseInt(_0x3099f8(0x19d))/0x9*(parseInt(_0x3099f8(0x1bb))/0xa)+parseInt(_0x3099f8(0x1b4))/0xb*(parseInt(_0x3099f8(0x1ba))/0xc);if(_0x387f46===_0x317d80)break;else _0x195969['push'](_0x195969['shift']());}catch(_0x2e6212){_0x195969['push'](_0x195969['shift']());}}}(a34_0x1afb,0x5be4a));const util=require('util'),logger=require('../../helpers/logger')[a34_0x259ccd(0x195)],{isAccessibilityAutomationSession}=require(a34_0x259ccd(0x186)),{isUndefined}=require(a34_0x259ccd(0x191)),scripts=require(a34_0x259ccd(0x1c2));function a34_0x1afb(){const _0x2ee6eb=['Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','name','platformValidation','GBMdM','wcagVersion','1168304LaERBE','tTWcM','accessibilityOptions.includeIssueType.bestPractice','use','deviceName','5bNsHJK','accessibilityOptions.authToken','ThPOB','testInfo','accessibilityOptions.scannerVersion','hVSgO','wsEndpoint','qTDsg','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','env','project','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','No\x20summaryResults\x20found.','WFvfu','playwright-chromium','gFYoy','GxdeI','setAccessibilityCapabilities','Viqkz','browser_version','../../helpers/accessibility-automation/helper','debug','getAccessibilityResults','InWvl','tUdRK','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','ibStG','BBILs','(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','KyEjW','rKaOq','../../helpers/helper','sJLjb','1090755nXaCSa','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','winstonLogger','accessibilityOptions.scannerProcessingTimeout','TnYIH','browserStackEvaluate','nMCyz','knsKc','needsReview','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','35433mYXECJ','PSNen','warn','ajrTj','accessibilityPlatform','stringify','(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','WebDriver','uslrZ','zScxy','getAccessibilityResultsSummary','executeScript','jMPFf','accessibilityOptions','nsktt','latest','method','scannerProcessingTimeout','evaluate','replace','Playwright','No\x20accessibility\x20results\x20were\x20found.','VzrHh','55132BxTXVM','1217108rANVxy','browserName','connectOptions','parse','FdJdC','2676jNwEcW','1580TliAxL','error','7VGXkzn','includeIssueType','28ijPLmx','PYiFi','accessibilityOptions.includeIssueType.needsReview','../../helpers/accessibility-automation/scripts','accessibilityOptions.wcagVersion','browserStackExecuteDriver','4620wAideg','constructor','chrome','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','performScan','yjjzV','31584jHpgep','fBkxR','RMquY','ZEDCf'];a34_0x1afb=function(){return _0x2ee6eb;};return a34_0x1afb();}function a34_0x4b80(_0x63457b,_0x3027ba){const _0x1afb4d=a34_0x1afb();return a34_0x4b80=function(_0x4b80d3,_0xabd06b){_0x4b80d3=_0x4b80d3-0x176;let _0x2f34b0=_0x1afb4d[_0x4b80d3];return _0x2f34b0;},a34_0x4b80(_0x63457b,_0x3027ba);}exports['browserStackEvaluate']=async(_0x370ba1,_0x68e32b,_0x1ab9ce={})=>{const _0x11f9c6=a34_0x259ccd,_0x1f5971={};_0x1f5971[_0x11f9c6(0x189)]='bstackSdkArgs';const _0x421a7a=_0x1f5971;return await _0x370ba1[_0x11f9c6(0x1af)](_0x11f9c6(0x1a3)+_0x68e32b[_0x11f9c6(0x1b0)](/arguments/g,_0x421a7a['InWvl'])+_0x11f9c6(0x1c8)+JSON[_0x11f9c6(0x1a2)](_0x1ab9ce)+')');},exports[a34_0x259ccd(0x1c4)]=async(_0x10ca4e,_0x5a89ac,_0xd5e800={})=>{const _0x5667ff=a34_0x259ccd,_0x59ceaf={};_0x59ceaf[_0x5667ff(0x1cc)]=function(_0x344300,_0x2c1533){return _0x344300===_0x2c1533;},_0x59ceaf['ajrTj']=_0x5667ff(0x1a4),_0x59ceaf[_0x5667ff(0x19e)]=_0x5667ff(0x1b1),_0x59ceaf[_0x5667ff(0x18a)]='bstackSdkArgs';const _0x49474c=_0x59ceaf;if(_0x49474c['fBkxR'](_0x10ca4e[_0x5667ff(0x1c6)]['name'],_0x49474c[_0x5667ff(0x1a0)]))return await _0x10ca4e['executeAsyncScript'](_0x5a89ac,_0xd5e800);else{if(_0x49474c['fBkxR'](_0x10ca4e[_0x5667ff(0x1c6)][_0x5667ff(0x1d0)],_0x49474c[_0x5667ff(0x19e)]))return await _0x10ca4e[_0x5667ff(0x1a8)](_0x5667ff(0x18e)+_0x5a89ac[_0x5667ff(0x1b0)](/arguments/g,_0x49474c['tUdRK'])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x5667ff(0x1a2)](_0xd5e800)+')');}},exports[a34_0x259ccd(0x183)]=async _0x58b195=>{const _0x7ee470=a34_0x259ccd,_0x1fb01d={};_0x1fb01d[_0x7ee470(0x1d2)]=_0x7ee470(0x1c3),_0x1fb01d[_0x7ee470(0x1c0)]=_0x7ee470(0x196),_0x1fb01d[_0x7ee470(0x1ce)]=_0x7ee470(0x1d6),_0x1fb01d['tDgKR']=_0x7ee470(0x1c1),_0x1fb01d[_0x7ee470(0x1a6)]=_0x7ee470(0x1da),_0x1fb01d[_0x7ee470(0x18c)]=_0x7ee470(0x176);const _0x94b83e=_0x1fb01d;_0x58b195[_0x7ee470(0x1aa)]&&(_0x58b195[_0x7ee470(0x1aa)]['wcagVersion']&&(_0x58b195[_0x94b83e[_0x7ee470(0x1d2)]]=_0x58b195[_0x7ee470(0x1aa)][_0x7ee470(0x1d3)]),_0x58b195[_0x7ee470(0x1aa)][_0x7ee470(0x1ae)]&&(_0x58b195[_0x94b83e['PYiFi']]=_0x58b195['accessibilityOptions'][_0x7ee470(0x1ae)]),_0x58b195['accessibilityOptions'][_0x7ee470(0x1be)]&&(_0x58b195[_0x94b83e[_0x7ee470(0x1ce)]]=_0x58b195[_0x7ee470(0x1aa)][_0x7ee470(0x1be)]['bestPractice'],_0x58b195[_0x94b83e['tDgKR']]=_0x58b195[_0x7ee470(0x1aa)][_0x7ee470(0x1be)][_0x7ee470(0x19b)]));const _0xfc5ff4=JSON[_0x7ee470(0x1b8)](process[_0x7ee470(0x17b)][_0x7ee470(0x17d)])['scannerVersion'];_0x58b195[_0x94b83e[_0x7ee470(0x1a6)]]=process[_0x7ee470(0x17b)]['BS_A11Y_JWT'],_0x58b195[_0x94b83e[_0x7ee470(0x18c)]]=_0xfc5ff4,delete _0x58b195[_0x7ee470(0x1aa)];},exports[a34_0x259ccd(0x188)]=async _0x576b48=>{const _0x1fbab6=a34_0x259ccd,_0x38f4bb={};_0x38f4bb['ThPOB']=_0x1fbab6(0x1b2),_0x38f4bb[_0x1fbab6(0x190)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x2d742f=_0x38f4bb;if(global[_0x1fbab6(0x1a1)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x576b48,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x576b48,scripts.getResults);return res;}catch{return logger[_0x1fbab6(0x1bc)](_0x2d742f[_0x1fbab6(0x1db)]),[];}else return logger['warn'](_0x2d742f[_0x1fbab6(0x190)]),[];},exports[a34_0x259ccd(0x1c9)]=async(_0x506d82,_0x10efe6='')=>{const _0x10ae87=a34_0x259ccd;if(global['accessibilityPlatform']){const _0x59f795={};return _0x59f795[_0x10ae87(0x1ad)]=_0x10efe6,await exports[_0x10ae87(0x198)](_0x506d82,scripts[_0x10ae87(0x1c9)],_0x59f795);}},exports[a34_0x259ccd(0x1a7)]=async _0x383189=>{const _0x4176ef=a34_0x259ccd,_0x3b0049={};_0x3b0049['WFvfu']=_0x4176ef(0x17e),_0x3b0049[_0x4176ef(0x197)]=_0x4176ef(0x19c);const _0x4dabe0=_0x3b0049;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x383189,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x383189,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x4176ef(0x187)](_0x4dabe0[_0x4176ef(0x17f)]),{};}else return logger['warn'](_0x4dabe0[_0x4176ef(0x197)]),{};},exports[a34_0x259ccd(0x1d1)]=async _0x596b3c=>{const _0x178da1=a34_0x259ccd,_0x25dc2b={'sJLjb':function(_0x21a2c2,_0x45b702){return _0x21a2c2!==_0x45b702;},'RMquY':_0x178da1(0x194),'nMCyz':function(_0x3ba785,_0x430829){return _0x3ba785===_0x430829;},'gFYoy':_0x178da1(0x1c7),'knsKc':function(_0x405365,_0x134917){return _0x405365===_0x134917;},'yiooQ':_0x178da1(0x180),'qTDsg':_0x178da1(0x1cf),'FdJdC':function(_0x2b4d2a,_0x5c5585){return _0x2b4d2a(_0x5c5585);},'uslrZ':_0x178da1(0x1ac),'gnhSG':function(_0x5f5369,_0x5c882c){return _0x5f5369>_0x5c882c;},'jMPFf':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x25dc2b[_0x178da1(0x192)](_0x596b3c[_0x178da1(0x1d8)],''))return logger[_0x178da1(0x19f)](_0x25dc2b[_0x178da1(0x1cd)]),![];const _0x3a95b1=_0x596b3c['browser'];if(!(_0x25dc2b['nMCyz'](_0x3a95b1,_0x25dc2b[_0x178da1(0x181)])||_0x25dc2b[_0x178da1(0x19a)](_0x3a95b1,_0x25dc2b['yiooQ'])))return logger[_0x178da1(0x19f)](_0x25dc2b[_0x178da1(0x179)]),![];const _0x207934=_0x25dc2b[_0x178da1(0x1b9)](parseInt,_0x596b3c[_0x178da1(0x185)]);if(!(_0x25dc2b[_0x178da1(0x199)](_0x207934,_0x25dc2b[_0x178da1(0x1a5)])||_0x25dc2b['gnhSG'](_0x207934,0x5e)))return logger[_0x178da1(0x19f)](_0x25dc2b[_0x178da1(0x1a9)]),![];}catch(_0x2adca7){logger[_0x178da1(0x187)](_0x178da1(0x18b)+util['format'](_0x2adca7));}return!![];},exports['processAccessibilityCaps']=(_0x483775,_0x1d0a37,_0xcd268f)=>{const _0x50c359=a34_0x259ccd,_0x35ffba={'hVSgO':function(_0x4c3138){return _0x4c3138();},'tTWcM':'browserstack.accessibility','pJgDV':function(_0x5794d1,_0x181f55){return _0x5794d1===_0x181f55;},'KyEjW':_0x50c359(0x1c7),'yjjzV':function(_0x9b4715,_0x69b434){return _0x9b4715===_0x69b434;},'nsktt':'playwright-chromium','ZOrJl':_0x50c359(0x1cf),'FmCqa':_0x50c359(0x1ac),'VzrHh':function(_0x47c590,_0x54eb6c){return _0x47c590>_0x54eb6c;},'Viqkz':_0x50c359(0x17a),'BBILs':function(_0x2c5625,_0x36c041){return _0x2c5625(_0x36c041);},'GxdeI':_0x50c359(0x194),'caEFx':function(_0x4660f7,_0x32e3d9){return _0x4660f7+_0x32e3d9;}};try{if(_0x35ffba[_0x50c359(0x177)](isAccessibilityAutomationSession)){global[_0x50c359(0x1a1)]=!![];!_0x483775[_0x35ffba['tTWcM']]&&(global[_0x50c359(0x1a1)]=![]);!(_0x35ffba['pJgDV'](_0x483775['browserName'],_0x35ffba[_0x50c359(0x18f)])||_0x35ffba[_0x50c359(0x1ca)](_0x483775[_0x50c359(0x1b6)],_0x35ffba[_0x50c359(0x1ab)]))&&(logger[_0x50c359(0x19f)](_0x35ffba['ZOrJl']),global[_0x50c359(0x1a1)]=![]);!(_0x35ffba[_0x50c359(0x1ca)](_0x483775[_0x50c359(0x185)],_0x35ffba['FmCqa'])||_0x35ffba[_0x50c359(0x1b3)](_0x483775[_0x50c359(0x185)],0x5e))&&(logger[_0x50c359(0x19f)](_0x35ffba[_0x50c359(0x184)]),global[_0x50c359(0x1a1)]=![]);!_0x35ffba['BBILs'](isUndefined,_0x483775['deviceName'])&&(logger[_0x50c359(0x19f)](_0x35ffba[_0x50c359(0x182)]),global[_0x50c359(0x1a1)]=![]);if(!global[_0x50c359(0x1a1)]){_0x483775[_0x35ffba[_0x50c359(0x1d5)]]=![];const _0xcd1d1=_0x35ffba['caEFx'](_0x1d0a37,_0x35ffba[_0x50c359(0x18d)](encodeURIComponent,JSON['stringify'](_0x483775)));_0xcd268f&&(_0xcd268f['currentTest'][_0x50c359(0x1dc)][_0x50c359(0x17c)][_0x50c359(0x1d7)][_0x50c359(0x1b7)][_0x50c359(0x178)]=_0xcd1d1,_0xcd268f['workerInfo'][_0x50c359(0x17c)]['use'][_0x50c359(0x1b7)][_0x50c359(0x178)]=_0xcd1d1);}}}catch(_0x26a3a1){logger[_0x50c359(0x187)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util['format'](_0x26a3a1));}};
|
|
1
|
+
const a34_0x10b9dd=a34_0x1351;(function(_0x23ceee,_0x1d92f3){const _0x5dbe29=a34_0x1351,_0x2d27c2=_0x23ceee();while(!![]){try{const _0x1fa690=parseInt(_0x5dbe29(0x167))/0x1*(-parseInt(_0x5dbe29(0x13f))/0x2)+-parseInt(_0x5dbe29(0x16c))/0x3*(parseInt(_0x5dbe29(0x184))/0x4)+parseInt(_0x5dbe29(0x133))/0x5+-parseInt(_0x5dbe29(0x165))/0x6+parseInt(_0x5dbe29(0x15e))/0x7+parseInt(_0x5dbe29(0x159))/0x8*(parseInt(_0x5dbe29(0x169))/0x9)+-parseInt(_0x5dbe29(0x148))/0xa*(-parseInt(_0x5dbe29(0x187))/0xb);if(_0x1fa690===_0x1d92f3)break;else _0x2d27c2['push'](_0x2d27c2['shift']());}catch(_0x16fb58){_0x2d27c2['push'](_0x2d27c2['shift']());}}}(a34_0x469d,0x873fc));const util=require(a34_0x10b9dd(0x176)),logger=require('../../helpers/logger')[a34_0x10b9dd(0x14c)],{isAccessibilityAutomationSession}=require(a34_0x10b9dd(0x14e)),{isUndefined}=require(a34_0x10b9dd(0x14f)),scripts=require(a34_0x10b9dd(0x16b));function a34_0x1351(_0x58c866,_0x51b1cc){const _0x469d84=a34_0x469d();return a34_0x1351=function(_0x13515c,_0x41f91c){_0x13515c=_0x13515c-0x126;let _0x3b99dd=_0x469d84[_0x13515c];return _0x3b99dd;},a34_0x1351(_0x58c866,_0x51b1cc);}exports[a34_0x10b9dd(0x134)]=async(_0x4e4fea,_0x4efda2,_0x59c3a4={})=>{const _0x4cb47b=a34_0x10b9dd,_0x601f03={};_0x601f03[_0x4cb47b(0x18c)]=_0x4cb47b(0x171);const _0x5f0f32=_0x601f03;return await _0x4e4fea['evaluate'](_0x4cb47b(0x130)+_0x4efda2[_0x4cb47b(0x132)](/arguments/g,_0x5f0f32['yijrj'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x4cb47b(0x126)](_0x59c3a4)+')');},exports[a34_0x10b9dd(0x18f)]=async(_0x3ddeea,_0x500cc7,_0x2b8df9={})=>{const _0x4de8b1=a34_0x10b9dd,_0x258c98={};_0x258c98[_0x4de8b1(0x158)]=function(_0x184ec6,_0x169e9e){return _0x184ec6===_0x169e9e;},_0x258c98['vIRqk']=_0x4de8b1(0x131),_0x258c98[_0x4de8b1(0x17b)]=_0x4de8b1(0x142),_0x258c98[_0x4de8b1(0x162)]='bstackSdkArgs';const _0x5b88d3=_0x258c98;if(_0x5b88d3[_0x4de8b1(0x158)](_0x3ddeea[_0x4de8b1(0x18d)][_0x4de8b1(0x18e)],_0x5b88d3[_0x4de8b1(0x14a)]))return await _0x3ddeea[_0x4de8b1(0x13a)](_0x500cc7,_0x2b8df9);else{if(_0x5b88d3[_0x4de8b1(0x158)](_0x3ddeea[_0x4de8b1(0x18d)][_0x4de8b1(0x18e)],_0x5b88d3['RDYAH']))return await _0x3ddeea['executeScript'](_0x4de8b1(0x161)+_0x500cc7[_0x4de8b1(0x132)](/arguments/g,_0x5b88d3[_0x4de8b1(0x162)])+_0x4de8b1(0x13e)+JSON[_0x4de8b1(0x126)](_0x2b8df9)+')');}},exports[a34_0x10b9dd(0x172)]=async _0x638657=>{const _0x3bac80=a34_0x10b9dd,_0x40f04d={};_0x40f04d['CMshA']=_0x3bac80(0x164),_0x40f04d[_0x3bac80(0x17f)]=_0x3bac80(0x12c),_0x40f04d[_0x3bac80(0x13d)]=_0x3bac80(0x17c),_0x40f04d[_0x3bac80(0x139)]=_0x3bac80(0x129),_0x40f04d[_0x3bac80(0x14b)]=_0x3bac80(0x135),_0x40f04d[_0x3bac80(0x178)]=_0x3bac80(0x157);const _0x356e43=_0x40f04d;_0x638657['accessibilityOptions']&&(_0x638657['accessibilityOptions'][_0x3bac80(0x12f)]&&(_0x638657[_0x356e43['CMshA']]=_0x638657[_0x3bac80(0x141)][_0x3bac80(0x12f)]),_0x638657[_0x3bac80(0x141)][_0x3bac80(0x191)]&&(_0x638657[_0x356e43[_0x3bac80(0x17f)]]=_0x638657[_0x3bac80(0x141)][_0x3bac80(0x191)]),_0x638657[_0x3bac80(0x141)][_0x3bac80(0x12e)]&&(_0x638657[_0x356e43[_0x3bac80(0x13d)]]=_0x638657[_0x3bac80(0x141)][_0x3bac80(0x12e)][_0x3bac80(0x140)],_0x638657[_0x356e43[_0x3bac80(0x139)]]=_0x638657[_0x3bac80(0x141)][_0x3bac80(0x12e)][_0x3bac80(0x127)]));const _0x14ccfe=JSON['parse'](process[_0x3bac80(0x174)][_0x3bac80(0x14d)])[_0x3bac80(0x137)];_0x638657[_0x356e43[_0x3bac80(0x14b)]]=process[_0x3bac80(0x174)][_0x3bac80(0x15a)],_0x638657[_0x356e43['jZpsm']]=_0x14ccfe,delete _0x638657[_0x3bac80(0x141)];},exports['getAccessibilityResults']=async _0x16a87d=>{const _0x2c97eb=a34_0x10b9dd,_0x436143={};_0x436143[_0x2c97eb(0x15b)]=_0x2c97eb(0x128),_0x436143[_0x2c97eb(0x153)]=_0x2c97eb(0x145);const _0x34bc6b=_0x436143;if(global[_0x2c97eb(0x16d)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x16a87d,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x16a87d,scripts.getResults);return res;}catch{return logger[_0x2c97eb(0x189)](_0x34bc6b[_0x2c97eb(0x15b)]),[];}else return logger[_0x2c97eb(0x15d)](_0x34bc6b['UOEmL']),[];},exports[a34_0x10b9dd(0x13c)]=async(_0x23d3a8,_0x549e9b='')=>{const _0x2c9ce2=a34_0x10b9dd;if(global[_0x2c9ce2(0x16d)]){const _0xea35aa={};return _0xea35aa['method']=_0x549e9b,await exports[_0x2c9ce2(0x134)](_0x23d3a8,scripts[_0x2c9ce2(0x13c)],_0xea35aa);}},exports[a34_0x10b9dd(0x15f)]=async _0x4cf707=>{const _0xf335e2=a34_0x10b9dd,_0x3a8446={};_0x3a8446['KEgwZ']=_0xf335e2(0x12b),_0x3a8446[_0xf335e2(0x17a)]=_0xf335e2(0x146);const _0x126a24=_0x3a8446;if(global[_0xf335e2(0x16d)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4cf707,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x4cf707,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0xf335e2(0x12a)](_0x126a24[_0xf335e2(0x136)]),{};}else return logger['warn'](_0x126a24[_0xf335e2(0x17a)]),{};},exports[a34_0x10b9dd(0x186)]=async _0x23520f=>{const _0x54192e=a34_0x10b9dd,_0x14d915={'CPEyu':function(_0x4e5bc1,_0x1ecfc6){return _0x4e5bc1!==_0x1ecfc6;},'UsbaB':_0x54192e(0x16e),'wvVjO':function(_0x569dab,_0x39ce0f){return _0x569dab===_0x39ce0f;},'Bklvn':'chrome','nrpOk':function(_0x2d5bf2,_0x5456dc){return _0x2d5bf2===_0x5456dc;},'bJknm':_0x54192e(0x181),'UuDUK':_0x54192e(0x179),'eRKRO':function(_0x185350,_0x1762f5){return _0x185350(_0x1762f5);},'NdQXq':_0x54192e(0x12d),'BAccX':function(_0x413b6c,_0x4de853){return _0x413b6c>_0x4de853;},'yGtDG':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x14d915[_0x54192e(0x160)](_0x23520f[_0x54192e(0x192)],''))return logger['warn'](_0x14d915[_0x54192e(0x15c)]),![];const _0x424f14=_0x23520f[_0x54192e(0x175)];if(!(_0x14d915['wvVjO'](_0x424f14,_0x14d915[_0x54192e(0x185)])||_0x14d915[_0x54192e(0x154)](_0x424f14,_0x14d915['bJknm'])))return logger[_0x54192e(0x15d)](_0x14d915['UuDUK']),![];const _0x512c40=_0x14d915['eRKRO'](parseInt,_0x23520f[_0x54192e(0x190)]);if(!(_0x14d915[_0x54192e(0x154)](_0x512c40,_0x14d915[_0x54192e(0x180)])||_0x14d915[_0x54192e(0x149)](_0x512c40,0x5e)))return logger[_0x54192e(0x15d)](_0x14d915['yGtDG']),![];}catch(_0x13c761){logger['debug'](_0x54192e(0x188)+util[_0x54192e(0x18b)](_0x13c761));}return!![];},exports[a34_0x10b9dd(0x170)]=(_0x42ea0d,_0x16cb32,_0x365a6e)=>{const _0x477f66=a34_0x10b9dd,_0x18555c={'bYnSV':function(_0x253db9){return _0x253db9();},'zvoTd':_0x477f66(0x163),'wXzEl':function(_0x2d4853,_0x479619){return _0x2d4853===_0x479619;},'iRfso':_0x477f66(0x138),'dZtUZ':_0x477f66(0x181),'ZXPkK':_0x477f66(0x179),'LjObV':_0x477f66(0x12d),'pqVXC':function(_0xa8e1a3,_0x39b5d3){return _0xa8e1a3>_0x39b5d3;},'uvnex':_0x477f66(0x144),'wqdHz':function(_0x2e7baf,_0x3037d8){return _0x2e7baf(_0x3037d8);},'YchRI':_0x477f66(0x16e),'ptcCI':function(_0x2def33,_0x228a6a){return _0x2def33+_0x228a6a;},'YImPs':function(_0x585271,_0x3f5a88){return _0x585271(_0x3f5a88);}};try{if(_0x18555c[_0x477f66(0x143)](isAccessibilityAutomationSession)){global[_0x477f66(0x16d)]=!![];!_0x42ea0d[_0x18555c['zvoTd']]&&(global[_0x477f66(0x16d)]=![]);!(_0x18555c['wXzEl'](_0x42ea0d[_0x477f66(0x156)],_0x18555c[_0x477f66(0x17e)])||_0x18555c[_0x477f66(0x151)](_0x42ea0d[_0x477f66(0x156)],_0x18555c[_0x477f66(0x17d)]))&&(logger[_0x477f66(0x15d)](_0x18555c[_0x477f66(0x183)]),global[_0x477f66(0x16d)]=![]);!(_0x18555c[_0x477f66(0x151)](_0x42ea0d[_0x477f66(0x190)],_0x18555c[_0x477f66(0x168)])||_0x18555c[_0x477f66(0x152)](_0x42ea0d['browser_version'],0x5e))&&(logger['warn'](_0x18555c[_0x477f66(0x166)]),global[_0x477f66(0x16d)]=![]);!_0x18555c[_0x477f66(0x13b)](isUndefined,_0x42ea0d[_0x477f66(0x192)])&&(logger[_0x477f66(0x15d)](_0x18555c[_0x477f66(0x182)]),global[_0x477f66(0x16d)]=![]);if(!global[_0x477f66(0x16d)]){_0x42ea0d[_0x18555c['zvoTd']]=![];const _0x51a147=_0x18555c[_0x477f66(0x16f)](_0x16cb32,_0x18555c['YImPs'](encodeURIComponent,JSON['stringify'](_0x42ea0d)));_0x365a6e&&(_0x365a6e[_0x477f66(0x16a)][_0x477f66(0x18a)][_0x477f66(0x147)][_0x477f66(0x177)][_0x477f66(0x150)][_0x477f66(0x173)]=_0x51a147,_0x365a6e[_0x477f66(0x155)][_0x477f66(0x147)]['use'][_0x477f66(0x150)]['wsEndpoint']=_0x51a147);}}}catch(_0x1914f1){logger[_0x477f66(0x12a)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x477f66(0x18b)](_0x1914f1));}};function a34_0x469d(){const _0x239ce6=['env','browser','util','use','jZpsm','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','RLtnK','RDYAH','accessibilityOptions.includeIssueType.bestPractice','dZtUZ','iRfso','LCvhF','NdQXq','playwright-chromium','YchRI','ZXPkK','36920SzYfCh','Bklvn','platformValidation','273625EwNmBc','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','error','testInfo','format','yijrj','constructor','name','browserStackExecuteDriver','browser_version','scannerProcessingTimeout','deviceName','stringify','needsReview','No\x20accessibility\x20results\x20were\x20found.','accessibilityOptions.includeIssueType.needsReview','debug','No\x20summaryResults\x20found.','accessibilityOptions.scannerProcessingTimeout','latest','includeIssueType','wcagVersion','(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','WebDriver','replace','2462570jrTDcI','browserStackEvaluate','accessibilityOptions.authToken','KEgwZ','scannerVersion','chrome','HqlOc','executeAsyncScript','wqdHz','performScan','hDWNI','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','14xKzHZj','bestPractice','accessibilityOptions','Playwright','bYnSV','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','project','190WdCUpu','BAccX','vIRqk','powhL','winstonLogger','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','../../helpers/accessibility-automation/helper','../../helpers/helper','connectOptions','wXzEl','pqVXC','UOEmL','nrpOk','workerInfo','browserName','accessibilityOptions.scannerVersion','AsYMS','3737512dGzMeJ','BS_A11Y_JWT','CKtey','UsbaB','warn','4533998DOAGXE','getAccessibilityResultsSummary','CPEyu','(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','BpheV','browserstack.accessibility','accessibilityOptions.wcagVersion','6271446jYcmvm','uvnex','98510CMtVHr','LjObV','18AHWEpv','currentTest','../../helpers/accessibility-automation/scripts','84IrtwFU','accessibilityPlatform','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','ptcCI','processAccessibilityCaps','bstackSdkArgs','setAccessibilityCapabilities','wsEndpoint'];a34_0x469d=function(){return _0x239ce6;};return a34_0x469d();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0xd860b3=a35_0x11d9;(function(_0x1a7cca,_0xe49169){const _0x379eda=a35_0x11d9,_0xd641bb=_0x1a7cca();while(!![]){try{const _0x58c7cf=-parseInt(_0x379eda(0x1eb))/0x1*(-parseInt(_0x379eda(0x15e))/0x2)+parseInt(_0x379eda(0x173))/0x3*(parseInt(_0x379eda(0x1e5))/0x4)+parseInt(_0x379eda(0x1c6))/0x5+-parseInt(_0x379eda(0x18d))/0x6+-parseInt(_0x379eda(0x169))/0x7+-parseInt(_0x379eda(0x1e9))/0x8+parseInt(_0x379eda(0x199))/0x9*(parseInt(_0x379eda(0x19a))/0xa);if(_0x58c7cf===_0xe49169)break;else _0xd641bb['push'](_0xd641bb['shift']());}catch(_0x5b4031){_0xd641bb['push'](_0xd641bb['shift']());}}}(a35_0x3bc7,0x7348a));function a35_0x11d9(_0x571335,_0x39093e){const _0x3bc7bb=a35_0x3bc7();return a35_0x11d9=function(_0x11d978,_0x551245){_0x11d978=_0x11d978-0x155;let _0x51061e=_0x3bc7bb[_0x11d978];return _0x51061e;},a35_0x11d9(_0x571335,_0x39093e);}const fs=require('fs'),path=require('path'),{spawn}=require(a35_0xd860b3(0x188)),{format}=require(a35_0xd860b3(0x1aa)),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0xd860b3(0x155)),utilities=require(a35_0xd860b3(0x15d)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0xd860b3(0x17a)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0xd860b3(0x1b4)),{CrashReporter}=require(a35_0xd860b3(0x1a0)),{getFrameworkVersion}=require(a35_0xd860b3(0x1b5)),{checkAccessibilityPlatformConfig}=require(a35_0xd860b3(0x19b)),{setAccessibilityCapabilities}=require(a35_0xd860b3(0x193)),TestHubHandler=require(a35_0xd860b3(0x182)),{shouldProcessEventForTesthub}=require(a35_0xd860b3(0x1b3)),getUserPlaywrightConfig=async(_0x363e39,_0xc1023)=>{const _0x31650a=a35_0xd860b3,_0x38fe08={'aWAzT':function(_0x4ea9b6){return _0x4ea9b6();},'AWLJh':function(_0x21c3d5,_0x40ef9c){return _0x21c3d5(_0x40ef9c);},'pbpZJ':function(_0x3424ab,_0x55982a){return _0x3424ab(_0x55982a);},'kfVVQ':_0x31650a(0x159),'GgmfV':_0x31650a(0x1bb)},_0x13f944=!helper[_0x31650a(0x172)](_0x363e39['config']),_0x483cca=_0x13f944?path[_0x31650a(0x18e)](process['cwd'](),_0x363e39[_0x31650a(0x1a4)]):process[_0x31650a(0x1dc)](),{resolveConfigFile:_0x2098f2,resolveConfigLocation:_0x565390}=helper[_0x31650a(0x1ed)][_0x31650a(0x1e8)](null,_0x38fe08[_0x31650a(0x1f2)](getConfigLoaderPath)),_0xf2d95c=_0x2098f2?_0x38fe08[_0x31650a(0x198)](_0x2098f2,_0x483cca):helper[_0x31650a(0x162)](_0x38fe08['pbpZJ'](_0x565390,_0x483cca),[_0x38fe08[_0x31650a(0x18b)]]),_0x28daed={};if(_0x13f944){const _0x569f42=_0xc1023[_0x31650a(0x16a)](_0x214965=>_0x214965===_0x31650a(0x1b6)||_0x214965==='-c'||_0x214965[_0x31650a(0x195)](_0x31650a(0x1bb)));_0xc1023[_0x31650a(0x1a1)](_0x569f42,_0xc1023[_0x569f42]['startsWith'](_0x38fe08[_0x31650a(0x18f)])?0x1:0x2);}const _0x5a9d9a={};return _0x5a9d9a[_0x31650a(0x1ac)]=_0xf2d95c,_0x5a9d9a[_0x31650a(0x1a4)]=_0x28daed,_0x5a9d9a;},handleO11yRerun=_0x49b1aa=>{const _0x3ae5de=a35_0xd860b3,_0x45ff2d={};_0x45ff2d[_0x3ae5de(0x196)]=function(_0x41a0c6,_0x443b5c){return _0x41a0c6!==_0x443b5c;},_0x45ff2d[_0x3ae5de(0x1bf)]=_0x3ae5de(0x1b7),_0x45ff2d[_0x3ae5de(0x1c5)]=_0x3ae5de(0x165);const _0x4ed297=_0x45ff2d,_0x51c1a9=helper[_0x3ae5de(0x175)](process[_0x3ae5de(0x1bc)][_0x3ae5de(0x186)]);if(_0x51c1a9){const _0x51b07a=process[_0x3ae5de(0x1bc)][_0x3ae5de(0x1db)],_0x5d5c40=[];if(_0x4ed297[_0x3ae5de(0x196)](_0x51b07a,_0x4ed297['iWfSy'])&&!helper[_0x3ae5de(0x172)](_0x51b07a)){_0x51b07a['split'](',')[_0x3ae5de(0x15c)](_0x44baec=>{const _0x493aca=_0x3ae5de;_0x5d5c40[_0x493aca(0x1be)]('('+_0x44baec[_0x493aca(0x1a3)]()+')');});const _0x5c65af='^'+_0x5d5c40[_0x3ae5de(0x15a)]('|')+'$';_0x49b1aa[_0x3ae5de(0x1be)](_0x4ed297[_0x3ae5de(0x1c5)],_0x5c65af);}}},spawnOriginalProcess=_0x254c49=>{const _0x2ec6dc=a35_0xd860b3,_0x16de07={'vjvPX':function(_0x49cbc4,_0xdb22d1,_0x585966,_0x2270b9){return _0x49cbc4(_0xdb22d1,_0x585966,_0x2270b9);},'guILT':_0x2ec6dc(0x197),'BuYdM':_0x2ec6dc(0x1e1),'VXgWQ':function(_0x486519,_0x560076){return _0x486519===_0x560076;},'Cpwtm':_0x2ec6dc(0x1a6),'nkniA':_0x2ec6dc(0x181)};_0x16de07[_0x2ec6dc(0x1dd)](spawn,_0x16de07[_0x2ec6dc(0x1d5)],[_0x16de07[_0x2ec6dc(0x1f3)],..._0x254c49[_0x2ec6dc(0x19e)](0x1)],{'shell':_0x16de07[_0x2ec6dc(0x194)](process[_0x2ec6dc(0x1d0)],_0x16de07[_0x2ec6dc(0x1c8)]),'stdio':_0x16de07[_0x2ec6dc(0x191)],'cwd':process[_0x2ec6dc(0x1dc)]()});},isTestCommand=(_0x11f37d,_0x236344)=>{const _0x3a99f7=a35_0xd860b3,_0x65b467={};_0x65b467[_0x3a99f7(0x16f)]=function(_0x21715c,_0x120f28){return _0x21715c>_0x120f28;},_0x65b467[_0x3a99f7(0x189)]=function(_0x50d2e6,_0x16e180){return _0x50d2e6===_0x16e180;},_0x65b467[_0x3a99f7(0x187)]=_0x3a99f7(0x156);const _0x11958b=_0x65b467;if(_0x11958b[_0x3a99f7(0x16f)](_0x236344[_0x3a99f7(0x163)],0x1)&&_0x11958b[_0x3a99f7(0x189)](_0x236344[0x1],_0x11958b[_0x3a99f7(0x187)]))return!![];return![];};async function run(_0x27543a,_0x779bd5){const _0x44936f=a35_0xd860b3,_0x4be4a7={'SrUqD':_0x44936f(0x16c),'AfvJd':_0x44936f(0x192),'EUMrt':function(_0x12392a,_0x5520d6){return _0x12392a+_0x5520d6;},'QgGoY':_0x44936f(0x1ce),'oQJhN':'8|1|2|4|7|5|0|6|3','UMXWD':function(_0x85cc5a){return _0x85cc5a();},'awmmI':_0x44936f(0x183),'kWnmq':_0x44936f(0x1de),'yyqTv':_0x44936f(0x1a8),'qsowu':_0x44936f(0x1ba),'JwWVY':function(_0x18aafd,_0xf998bf){return _0x18aafd>=_0xf998bf;},'YRhQE':_0x44936f(0x1a9),'mOQnX':function(_0x4f6507,_0x47a7ee,_0x24daa9){return _0x4f6507(_0x47a7ee,_0x24daa9);},'DlHqn':function(_0xd7c44,_0x4cdae3){return _0xd7c44(_0x4cdae3);},'ZPVlu':_0x44936f(0x1b8),'tDzRA':_0x44936f(0x1d2),'rcOmj':function(_0xcd5d12,_0x22a052){return _0xcd5d12!=_0x22a052;},'IIQQz':function(_0x1e4777,_0x19e3db){return _0x1e4777===_0x19e3db;},'PpdsW':'true','Rwyks':function(_0xac8f65,_0x45489d){return _0xac8f65(_0x45489d);},'zrSur':function(_0x21dcb6,_0x465c86){return _0x21dcb6(_0x465c86);},'fiHuz':_0x44936f(0x164),'PZYbm':_0x44936f(0x171),'nojcj':_0x44936f(0x1f5),'lLgmG':function(_0x161a9d,_0x4bee9d){return _0x161a9d-_0x4bee9d;},'euCOV':_0x44936f(0x16e),'vEyHM':function(_0x2284c2,_0x1afc9b){return _0x2284c2>_0x1afc9b;},'FSvBf':function(_0x57dfea,_0x448941){return _0x57dfea+_0x448941;},'ktECE':function(_0x5041a0,_0x51675f,_0x3451bb,_0x5930d5){return _0x5041a0(_0x51675f,_0x3451bb,_0x5930d5);},'rlbPI':'npx','kTcMI':_0x44936f(0x1e1),'MTCef':'test','OtErN':_0x44936f(0x1b6),'KQqWq':function(_0x4a52ed,_0x1965f6){return _0x4a52ed===_0x1965f6;},'TxFCL':_0x44936f(0x1a6),'XHLzI':_0x44936f(0x181),'BTLyH':_0x44936f(0x1d1)};!helper[_0x44936f(0x166)](process[_0x44936f(0x1bc)][_0x44936f(0x185)])&&(process[_0x44936f(0x1bc)]['BROWSERSTACK_AUTOMATION']=!![]);process[_0x44936f(0x190)][_0x44936f(0x1a7)](_0x4be4a7[_0x44936f(0x1e0)])&&(process['env'][_0x44936f(0x185)]=_0x4be4a7[_0x44936f(0x1f4)],_0x779bd5=_0x779bd5[_0x44936f(0x16b)](_0x161601=>_0x161601!==_0x44936f(0x1de)));const _0x4df3e3=_0x779bd5[_0x44936f(0x1ab)](_0x4be4a7['qsowu']);_0x4be4a7[_0x44936f(0x1ea)](_0x4df3e3,0x0)&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=_0x4be4a7[_0x44936f(0x1f4)],_0x779bd5=_0x779bd5[_0x44936f(0x16b)](_0x52af0d=>_0x52af0d!=='--disable-test-observability'));try{const _0x1d0696=path['join'](helper[_0x44936f(0x1a5)](),_0x4be4a7[_0x44936f(0x1c0)],_0x4be4a7[_0x44936f(0x1c7)]);fs[_0x44936f(0x1d6)](_0x1d0696)&&fs[_0x44936f(0x174)](_0x1d0696);}catch(_0x5287f1){logger[_0x44936f(0x1d4)](_0x4be4a7[_0x44936f(0x15f)](_0x4be4a7['YRhQE'],_0x5287f1));}if(!_0x4be4a7[_0x44936f(0x19c)](isTestCommand,_0x27543a,_0x779bd5)){_0x4be4a7[_0x44936f(0x1d8)](spawnOriginalProcess,_0x779bd5);return;}const _0x44d2c1=new BrowserStackSetup(_0x27543a,FRAMEWORKS['PLAYWRIGHT']);if(!_0x44d2c1[_0x44936f(0x1a4)]){logger['error'](_0x4be4a7[_0x44936f(0x15b)]);return;}await _0x44d2c1[_0x44936f(0x18c)]();!helper[_0x44936f(0x172)](_0x44d2c1['cliConfig'])&&_0x44d2c1['cliConfig'][_0x44936f(0x1cd)](_0x4be4a7[_0x44936f(0x1b1)])&&(process[_0x44936f(0x1bc)]['BROWSERSTACK_AUTOMATION']=_0x44d2c1[_0x44936f(0x161)][_0x44936f(0x1c9)](_0x4be4a7[_0x44936f(0x1b1)])||!![]);_0x4be4a7[_0x44936f(0x1b2)](_0x44d2c1[_0x44936f(0x1a4)]['testObservability'],null)&&!helper[_0x44936f(0x175)](process[_0x44936f(0x1bc)][_0x44936f(0x170)])&&(process['env'][_0x44936f(0x170)]=process[_0x44936f(0x1bc)][_0x44936f(0x170)]||_0x44d2c1[_0x44936f(0x1a4)][_0x44936f(0x1cb)]);const _0xb9d316=!helper['isFalse'](process['env']['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x2a65ea=![];_0x44d2c1['config']['accessibility']&&(_0x2a65ea=!![],process[_0x44936f(0x1bc)][_0x44936f(0x17c)]=_0x44d2c1['config'][_0x44936f(0x180)]);_0x44d2c1[_0x44936f(0x1a4)]['accessibilityOptions']&&(process[_0x44936f(0x1bc)][_0x44936f(0x1c1)]=JSON['stringify'](_0x44d2c1[_0x44936f(0x1a4)][_0x44936f(0x17f)]));const _0x40ddaf=_0x779bd5[_0x44936f(0x167)](),_0x28b791=await _0x4be4a7[_0x44936f(0x19c)](getUserPlaywrightConfig,_0x27543a,_0x779bd5);if(helper['isUndefined'](_0x28b791)){_0x4be4a7[_0x44936f(0x1d8)](spawnOriginalProcess,_0x40ddaf);return;}const _0x4f3f83=_0x28b791[_0x44936f(0x1ac)]?path[_0x44936f(0x1af)](_0x28b791[_0x44936f(0x1ac)]):process[_0x44936f(0x1dc)]();process['env'][_0x44936f(0x1c2)]=_0x4f3f83,await TestHubHandler[_0x44936f(0x1bd)](FRAMEWORKS['PLAYWRIGHT'],_0x44d2c1);_0xb9d316&&_0x4be4a7['DlHqn'](handleO11yRerun,_0x779bd5);let _0x514396=_0x4be4a7[_0x44936f(0x160)](process['env'][_0x44936f(0x17c)],_0x4be4a7['PpdsW']);_0x514396=_0x514396||_0x4be4a7['Rwyks'](checkAccessibilityPlatformConfig,_0x44d2c1[_0x44936f(0x1a4)]),process['env'][_0x44936f(0x17c)]=_0x514396;_0x514396&&_0x4be4a7[_0x44936f(0x1c4)](setAccessibilityCapabilities,_0x44d2c1[_0x44936f(0x1a4)]);const _0x18addc=path['join'](_0x28b791[_0x44936f(0x1ac)]?path[_0x44936f(0x1af)](_0x28b791['path']):process['cwd'](),_0x4be4a7[_0x44936f(0x1a2)]);fs['writeFileSync'](_0x18addc,helper[_0x44936f(0x184)](_0x44d2c1[_0x44936f(0x1a4)])),process[_0x44936f(0x1bc)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x18addc,helper[_0x44936f(0x1ca)]();let _0x2e182c='';_0x4be4a7[_0x44936f(0x160)](helper[_0x44936f(0x1f1)](),constants['PACKAGE_TYPE'][_0x44936f(0x158)])?_0x2e182c=_0x4be4a7[_0x44936f(0x1cc)]:_0x2e182c=_0x4be4a7[_0x44936f(0x17e)];let _0x226f65='';if(helper['isTypescriptProject'](_0x28b791[_0x44936f(0x1ac)])){_0x226f65=_0x44936f(0x1e6);const _0xf5ce1c=_0x2e182c[_0x44936f(0x1ec)]('.');_0xf5ce1c[_0x4be4a7[_0x44936f(0x19d)](_0xf5ce1c[_0x44936f(0x163)],0x1)]='ts',_0x2e182c=_0xf5ce1c[_0x44936f(0x15a)]('.'),logger[_0x44936f(0x1d4)](_0x4be4a7['EUMrt'](_0x4be4a7['euCOV'],_0x2e182c));}else _0x226f65=_0x44936f(0x19f);const _0x50abbc=path['join'](_0x28b791[_0x44936f(0x1ac)]?path[_0x44936f(0x1af)](_0x28b791[_0x44936f(0x1ac)]):process[_0x44936f(0x1dc)](),_0x2e182c);let _0x2accd8=_0x28b791['path']?_0x28b791['path']:'';_0x2accd8=_0x4be4a7[_0x44936f(0x16d)](_0x2accd8[_0x44936f(0x163)],0x0)?path[_0x44936f(0x18e)](_0x2accd8):'',process[_0x44936f(0x1bc)]['USER_CONFIG_DETAILS_PATH']=_0x2accd8;const _0x3816ae=helper['getProxyUrl'](_0x44d2c1['config']);_0x3816ae&&(_0x226f65=_0x4be4a7[_0x44936f(0x1e4)](_0x44936f(0x17b)+_0x3816ae+_0x44936f(0x1df),_0x226f65));helper[_0x44936f(0x1da)]({},_0x779bd5),fs[_0x44936f(0x178)](_0x50abbc,_0x226f65),helper[_0x44936f(0x1ef)]();const _0x3b6fd5=_0x4be4a7[_0x44936f(0x1d9)](spawn,_0x4be4a7[_0x44936f(0x1cf)],[_0x4be4a7[_0x44936f(0x1b0)],_0x4be4a7['MTCef'],_0x4be4a7['OtErN'],_0x50abbc,..._0x779bd5[_0x44936f(0x19e)](0x2)],{'shell':_0x4be4a7[_0x44936f(0x177)](process[_0x44936f(0x1d0)],_0x4be4a7[_0x44936f(0x1b9)]),'stdio':_0x4be4a7['XHLzI'],'cwd':process['cwd'](),'env':Object['assign']({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x44936f(0x18a)](_0x27543a),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x44d2c1['config'][_0x44936f(0x1e3)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x44d2c1[_0x44936f(0x1a4)]['testContextOptions'][_0x44936f(0x1f0)],'BROWSERSTACK_LOG_LEVEL':_0x44d2c1[_0x44936f(0x1a4)][_0x44936f(0x1ae)]})}),_0x29f30d=()=>{const _0x2e6e28=_0x44936f;try{const _0x38a5d0=path[_0x2e6e28(0x15a)](helper['homedir'](),_0x4be4a7[_0x2e6e28(0x1c0)],_0x4be4a7[_0x2e6e28(0x1c7)]);if(fs[_0x2e6e28(0x1d6)](_0x38a5d0)){let _0x42b900=fs[_0x2e6e28(0x1ee)](_0x38a5d0);_0x42b900=JSON['parse'](_0x42b900),_0x44d2c1[_0x2e6e28(0x1d7)]=_0x42b900,fs[_0x2e6e28(0x174)](_0x38a5d0);}}catch(_0x1fa6d2){logger[_0x2e6e28(0x1d4)](_0x4be4a7[_0x2e6e28(0x15f)](_0x4be4a7[_0x2e6e28(0x1c3)],_0x1fa6d2));}};_0x3b6fd5['on'](_0x4be4a7[_0x44936f(0x17d)],async _0x28559e=>{const _0x54f84e=_0x44936f;try{const _0x48ac21=_0x4be4a7[_0x54f84e(0x1ad)][_0x54f84e(0x1ec)]('|');let _0xf5529b=0x0;while(!![]){switch(_0x48ac21[_0xf5529b++]){case'0':fs[_0x54f84e(0x174)](_0x50abbc);continue;case'1':await TestHubHandler[_0x54f84e(0x1e7)]();continue;case'2':await utilities['finalExecution'](_0x44d2c1);continue;case'3':fs[_0x54f84e(0x174)](_0x18addc);continue;case'4':process[_0x54f84e(0x168)]=_0x28559e;continue;case'5':logger[_0x54f84e(0x1e2)]('Deleting\x20'+_0x50abbc);continue;case'6':logger[_0x54f84e(0x1d4)](_0x54f84e(0x176)+_0x18addc);continue;case'7':logger['debug'](_0x54f84e(0x157)+_0x28559e);continue;case'8':_0x4be4a7[_0x54f84e(0x179)](_0x29f30d);continue;}break;}}catch(_0x10d5e3){logger[_0x54f84e(0x1d4)](_0x4be4a7[_0x54f84e(0x15f)](_0x4be4a7[_0x54f84e(0x1d3)],_0x10d5e3));}});}module['exports']=run;function a35_0x3bc7(){const _0x1e8909=['GgmfV','argv','nkniA','pw_result.json','./accessibility-helper','VXgWQ','startsWith','LYqjf','npx','AWLJh','27PRULqW','2498370jVnYsU','../../helpers/accessibility-automation/helper','mOQnX','lLgmG','slice','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','../../helpers/test-observability/error-handler','splice','fiHuz','trim','config','homedir','win32','includes','false','Error\x20in\x20deleting\x20playwright\x20results','util','indexOf','path','oQJhN','logLevel','dirname','kTcMI','tDzRA','rcOmj','../../helpers/testhub/utils','./reporter/pwUtils','../../helpers/test-observability/utils','--config','null','BrowserStack\x20config\x20file\x20not\x20found.','TxFCL','--disable-test-observability','--config=','env','launchBuild','push','iWfSy','SrUqD','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','BROWSERSTACK_PW_CONFIG_DIR','QgGoY','zrSur','cLYMI','1970745DpOGgA','AfvJd','Cpwtm','get','clearTempPWConfig','testObservability','PZYbm','has','Error\x20in\x20getting\x20funnel\x20data\x20results','rlbPI','platform','close','automation','awmmI','debug','guILT','existsSync','errorMessage','DlHqn','ktECE','filterBrowserstackArgs','BROWSERSTACK_RERUN_TESTS','cwd','vjvPX','--disable-browserstack-automation','\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();','kWnmq','playwright','info','testContextOptions','FSvBf','197728TaVATv','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','stop','apply','831576dhHdZT','JwWVY','3jWetTl','split','requirePWModule','readFileSync','markSDKSetupComplete','skipSessionName','getPackageType','aWAzT','BuYdM','yyqTv','playwright-browserstack-sdk.config.js','../../helpers/helper','test','Playwright\x20process\x20exited\x20with\x20code\x20','MODULE','resolvedConfigFile','join','ZPVlu','map','../../helpers/utilities','201808XvEuhQ','EUMrt','IIQQz','cliConfig','nestedKeyValue','length','browserstackSetupConfig.json','--grep','isFalse','concat','exitCode','5722682VfWcjV','findIndex','filter','.browserstack','vEyHM','Updated\x20config\x20file\x20name\x20to\x20-\x20','PAzhz','BROWSERSTACK_TEST_OBSERVABILITY','playwright-browserstack-sdk.config.cjs','isUndefined','54aFsnGb','unlinkSync','isTrue','Deleting\x20','KQqWq','writeFileSync','UMXWD','../../helpers/test-observability/constants','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','BROWSERSTACK_TEST_ACCESSIBILITY_YML','BTLyH','nojcj','accessibilityOptions','accessibility','inherit','../../helpers/testhub/testhubHandler','Error\x20in\x20closing\x20playwright','serializeToYamlString','BROWSERSTACK_AUTOMATION','BROWSERSTACK_RERUN','zSman','child_process','QoVgy','getConfigPath','kfVVQ','initialize','5654838UzVSCj','resolve'];a35_0x3bc7=function(){return _0x1e8909;};return a35_0x3bc7();}
|
|
2
|
+
'use strict';const a35_0x227aab=a35_0x52de;(function(_0x1ce4f4,_0x55a2a3){const _0x5f2d65=a35_0x52de,_0x383314=_0x1ce4f4();while(!![]){try{const _0x22ae3b=-parseInt(_0x5f2d65(0x125))/0x1+parseInt(_0x5f2d65(0x11e))/0x2+-parseInt(_0x5f2d65(0x15a))/0x3+parseInt(_0x5f2d65(0x195))/0x4+-parseInt(_0x5f2d65(0x197))/0x5+parseInt(_0x5f2d65(0x139))/0x6*(parseInt(_0x5f2d65(0x1a2))/0x7)+parseInt(_0x5f2d65(0x154))/0x8;if(_0x22ae3b===_0x55a2a3)break;else _0x383314['push'](_0x383314['shift']());}catch(_0x45803d){_0x383314['push'](_0x383314['shift']());}}}(a35_0x3ec4,0x22e8f));const fs=require('fs'),path=require(a35_0x227aab(0x17e)),{spawn}=require(a35_0x227aab(0x18a)),{format}=require(a35_0x227aab(0x169)),logger=require(a35_0x227aab(0x124))[a35_0x227aab(0x14e)],{default:BrowserStackSetup}=require(a35_0x227aab(0x16a)),helper=require('../../helpers/helper'),utilities=require(a35_0x227aab(0x1aa)),constants=require(a35_0x227aab(0x16e)),{FRAMEWORKS}=require(a35_0x227aab(0x16f)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x227aab(0x13d)),{CrashReporter}=require(a35_0x227aab(0x16d)),{getFrameworkVersion}=require(a35_0x227aab(0x172)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a35_0x227aab(0x152)),TestHubHandler=require(a35_0x227aab(0x131)),{shouldProcessEventForTesthub}=require(a35_0x227aab(0x176)),getUserPlaywrightConfig=async(_0x188bf0,_0x4048ee)=>{const _0x19b9d6=a35_0x227aab,_0x48db86={'KdeJM':function(_0x183ab5){return _0x183ab5();},'TEVJH':function(_0x2af670,_0x323902){return _0x2af670(_0x323902);},'Obnvz':'resolvedConfigFile','PVKkJ':'--config='},_0x1964df=!helper[_0x19b9d6(0x150)](_0x188bf0[_0x19b9d6(0x1a8)]),_0x1c3543=_0x1964df?path[_0x19b9d6(0x144)](process[_0x19b9d6(0x142)](),_0x188bf0[_0x19b9d6(0x1a8)]):process[_0x19b9d6(0x142)](),{resolveConfigFile:_0x11f617,resolveConfigLocation:_0x555570}=helper['requirePWModule'][_0x19b9d6(0x129)](null,_0x48db86[_0x19b9d6(0x162)](getConfigLoaderPath)),_0x475fc7=_0x11f617?_0x48db86[_0x19b9d6(0x15f)](_0x11f617,_0x1c3543):helper[_0x19b9d6(0x18c)](_0x48db86['TEVJH'](_0x555570,_0x1c3543),[_0x48db86[_0x19b9d6(0x181)]]),_0x3cdac6={};if(_0x1964df){const _0x3ea675=_0x4048ee[_0x19b9d6(0x151)](_0x1faf9c=>_0x1faf9c===_0x19b9d6(0x15b)||_0x1faf9c==='-c'||_0x1faf9c[_0x19b9d6(0x188)](_0x19b9d6(0x14c)));_0x4048ee[_0x19b9d6(0x18d)](_0x3ea675,_0x4048ee[_0x3ea675][_0x19b9d6(0x188)](_0x48db86[_0x19b9d6(0x130)])?0x1:0x2);}const _0x3a0b46={};return _0x3a0b46[_0x19b9d6(0x17e)]=_0x475fc7,_0x3a0b46[_0x19b9d6(0x1a8)]=_0x3cdac6,_0x3a0b46;},handleO11yRerun=_0x46f50e=>{const _0x217e24=a35_0x227aab,_0x202381={};_0x202381[_0x217e24(0x1a6)]=function(_0x27df6e,_0xe79c1d){return _0x27df6e!==_0xe79c1d;},_0x202381['QnQEs']='null',_0x202381['gEGlD']=_0x217e24(0x179);const _0x2de899=_0x202381,_0x3a4133=helper[_0x217e24(0x185)](process[_0x217e24(0x13a)][_0x217e24(0x17c)]);if(_0x3a4133){const _0x2ddbc1=process[_0x217e24(0x13a)][_0x217e24(0x1a1)],_0x192a02=[];if(_0x2de899[_0x217e24(0x1a6)](_0x2ddbc1,_0x2de899['QnQEs'])&&!helper[_0x217e24(0x150)](_0x2ddbc1)){_0x2ddbc1[_0x217e24(0x1b4)](',')['map'](_0x3fb029=>{const _0x3450d7=_0x217e24;_0x192a02[_0x3450d7(0x141)]('('+_0x3fb029[_0x3450d7(0x148)]()+')');});const _0x16407b='^'+_0x192a02[_0x217e24(0x119)]('|')+'$';_0x46f50e[_0x217e24(0x141)](_0x2de899[_0x217e24(0x121)],_0x16407b);}}},spawnOriginalProcess=_0x47296d=>{const _0x50e6a1=a35_0x227aab,_0xdb1b93={'UbyHw':function(_0x212e34,_0x1b2198,_0x12d9a0,_0x29b515){return _0x212e34(_0x1b2198,_0x12d9a0,_0x29b515);},'xTNDL':'npx','KdCiZ':_0x50e6a1(0x11f),'AdUsA':function(_0x7607c6,_0x15d921){return _0x7607c6===_0x15d921;},'XXeYm':'win32','LRuoj':_0x50e6a1(0x1a9)};_0xdb1b93[_0x50e6a1(0x135)](spawn,_0xdb1b93[_0x50e6a1(0x178)],[_0xdb1b93['KdCiZ'],..._0x47296d['slice'](0x1)],{'shell':_0xdb1b93['AdUsA'](process[_0x50e6a1(0x123)],_0xdb1b93['XXeYm']),'stdio':_0xdb1b93[_0x50e6a1(0x134)],'cwd':process['cwd']()});},isTestCommand=(_0x5c17c7,_0x141bb2)=>{const _0xfa5a0d=a35_0x227aab,_0x1fffac={};_0x1fffac[_0xfa5a0d(0x173)]=function(_0x5aba00,_0x3580cc){return _0x5aba00>_0x3580cc;},_0x1fffac[_0xfa5a0d(0x17d)]=function(_0x10a1e8,_0x4ce2cb){return _0x10a1e8===_0x4ce2cb;},_0x1fffac[_0xfa5a0d(0x122)]='test';const _0x1693c1=_0x1fffac;if(_0x1693c1['YwYro'](_0x141bb2[_0xfa5a0d(0x14f)],0x1)&&_0x1693c1[_0xfa5a0d(0x17d)](_0x141bb2[0x1],_0x1693c1[_0xfa5a0d(0x122)]))return!![];return![];};function a35_0x52de(_0x5482e5,_0x46cf86){const _0x3ec435=a35_0x3ec4();return a35_0x52de=function(_0x52dea5,_0x1317d8){_0x52dea5=_0x52dea5-0x118;let _0x5c51f1=_0x3ec435[_0x52dea5];return _0x5c51f1;},a35_0x52de(_0x5482e5,_0x46cf86);}async function run(_0x30660e,_0x837d64){const _0x36b9ad=a35_0x227aab,_0x13cf55={'Nkddw':_0x36b9ad(0x13f),'ySMhs':_0x36b9ad(0x153),'rXrBZ':function(_0x97df4,_0xeced15){return _0x97df4+_0xeced15;},'EAGAZ':_0x36b9ad(0x1b2),'wrUOy':_0x36b9ad(0x19d),'cwfIx':function(_0x1793f7){return _0x1793f7();},'Oaupj':'Error\x20in\x20closing\x20playwright','YIcQv':'--disable-browserstack-automation','lscIZ':_0x36b9ad(0x198),'cXMpj':_0x36b9ad(0x12c),'MtBKW':function(_0x35f63f,_0x20c077){return _0x35f63f>=_0x20c077;},'pJesb':_0x36b9ad(0x12b),'lLCUx':function(_0x592f74,_0x23d73d,_0x4c5d0c){return _0x592f74(_0x23d73d,_0x4c5d0c);},'sVMcO':function(_0x577805,_0x125e75){return _0x577805(_0x125e75);},'YydSV':_0x36b9ad(0x158),'grpDV':_0x36b9ad(0x145),'XdbIg':function(_0x48c65a,_0x49a9b9){return _0x48c65a!=_0x49a9b9;},'qhPtl':function(_0x371e82,_0x21623f){return _0x371e82(_0x21623f);},'bQfVO':function(_0x1e5543,_0x45c704){return _0x1e5543===_0x45c704;},'gSBIA':_0x36b9ad(0x199),'YjKbF':function(_0x1cdf4b,_0x3a505d){return _0x1cdf4b(_0x3a505d);},'gCudK':_0x36b9ad(0x137),'HySEN':function(_0x433c0f,_0x1b9caa){return _0x433c0f===_0x1b9caa;},'uxNgX':_0x36b9ad(0x147),'gfWDV':_0x36b9ad(0x120),'Zezca':function(_0x235831,_0x5b4327){return _0x235831-_0x5b4327;},'WaoFd':'Updated\x20config\x20file\x20name\x20to\x20-\x20','HQHKc':function(_0x238bad,_0x59507a){return _0x238bad>_0x59507a;},'TtrHQ':function(_0x38f928,_0x10af80,_0x41e56a,_0x3f1e6a){return _0x38f928(_0x10af80,_0x41e56a,_0x3f1e6a);},'pDPEc':_0x36b9ad(0x12d),'GAEoK':_0x36b9ad(0x11f),'UvPZG':_0x36b9ad(0x13c),'WCpeR':'--config','goGlu':function(_0x1b6549,_0xadb2e7){return _0x1b6549===_0xadb2e7;},'AAgUn':_0x36b9ad(0x17b),'UiCko':_0x36b9ad(0x1a9),'aKsBQ':_0x36b9ad(0x19b)};!helper['isFalse'](process[_0x36b9ad(0x13a)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x36b9ad(0x13a)][_0x36b9ad(0x194)]=!![]);process[_0x36b9ad(0x1b3)]['includes'](_0x13cf55[_0x36b9ad(0x18b)])&&(process[_0x36b9ad(0x13a)][_0x36b9ad(0x194)]=_0x13cf55[_0x36b9ad(0x157)],_0x837d64=_0x837d64[_0x36b9ad(0x1a3)](_0x536634=>_0x536634!==_0x36b9ad(0x11c)));const _0x1e7bcb=_0x837d64['indexOf'](_0x13cf55[_0x36b9ad(0x180)]);_0x13cf55['MtBKW'](_0x1e7bcb,0x0)&&(process['env'][_0x36b9ad(0x126)]=_0x13cf55[_0x36b9ad(0x157)],_0x837d64=_0x837d64[_0x36b9ad(0x1a3)](_0x4f0d68=>_0x4f0d68!==_0x36b9ad(0x12c)));try{const _0x380f8b=path[_0x36b9ad(0x119)](helper['homedir'](),_0x13cf55[_0x36b9ad(0x161)],_0x13cf55[_0x36b9ad(0x15c)]);fs['existsSync'](_0x380f8b)&&fs[_0x36b9ad(0x1a4)](_0x380f8b);}catch(_0x496725){logger[_0x36b9ad(0x159)](_0x13cf55[_0x36b9ad(0x155)](_0x13cf55[_0x36b9ad(0x132)],_0x496725));}if(!_0x13cf55[_0x36b9ad(0x149)](isTestCommand,_0x30660e,_0x837d64)){_0x13cf55['sVMcO'](spawnOriginalProcess,_0x837d64);return;}const _0x30db73=new BrowserStackSetup(_0x30660e,FRAMEWORKS[_0x36b9ad(0x143)]);if(!_0x30db73['config']){logger['error'](_0x13cf55[_0x36b9ad(0x182)]);return;}await _0x30db73[_0x36b9ad(0x18f)]();!helper[_0x36b9ad(0x150)](_0x30db73[_0x36b9ad(0x12e)])&&_0x30db73[_0x36b9ad(0x12e)]['has'](_0x13cf55['grpDV'])&&(process['env'][_0x36b9ad(0x194)]=_0x30db73[_0x36b9ad(0x12e)][_0x36b9ad(0x17f)](_0x13cf55['grpDV'])||!![]);_0x13cf55[_0x36b9ad(0x1b5)](_0x30db73['config'][_0x36b9ad(0x1a7)],null)&&!helper[_0x36b9ad(0x185)](process[_0x36b9ad(0x13a)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x36b9ad(0x13a)][_0x36b9ad(0x126)]||_0x30db73[_0x36b9ad(0x1a8)]['testObservability']);const _0x1ecc56=!helper[_0x36b9ad(0x128)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x3d5e28=![];_0x30db73[_0x36b9ad(0x1a8)]['accessibility']&&(_0x3d5e28=!![],process[_0x36b9ad(0x13a)][_0x36b9ad(0x19a)]=_0x30db73[_0x36b9ad(0x1a8)]['accessibility']);_0x30db73[_0x36b9ad(0x1a8)][_0x36b9ad(0x177)]&&(process[_0x36b9ad(0x13a)][_0x36b9ad(0x11d)]=JSON[_0x36b9ad(0x165)](_0x30db73[_0x36b9ad(0x1a8)][_0x36b9ad(0x177)]));const _0x25f985=_0x837d64[_0x36b9ad(0x168)](),_0x4f9a0e=await _0x13cf55[_0x36b9ad(0x149)](getUserPlaywrightConfig,_0x30660e,_0x837d64);if(helper[_0x36b9ad(0x150)](_0x4f9a0e)){_0x13cf55[_0x36b9ad(0x15d)](spawnOriginalProcess,_0x25f985);return;}const _0x4b042e=_0x4f9a0e['path']?path['dirname'](_0x4f9a0e['path']):process[_0x36b9ad(0x142)]();process[_0x36b9ad(0x13a)][_0x36b9ad(0x127)]=_0x4b042e,await TestHubHandler[_0x36b9ad(0x186)](FRAMEWORKS[_0x36b9ad(0x143)],_0x30db73);_0x1ecc56&&_0x13cf55[_0x36b9ad(0x12a)](handleO11yRerun,_0x837d64);let _0xdf5b96=_0x13cf55['bQfVO'](process[_0x36b9ad(0x13a)][_0x36b9ad(0x19a)],_0x13cf55[_0x36b9ad(0x167)]);_0xdf5b96=_0xdf5b96||_0x13cf55['sVMcO'](checkAccessibilityPlatformConfig,_0x30db73[_0x36b9ad(0x1a8)]),process[_0x36b9ad(0x13a)][_0x36b9ad(0x19a)]=_0xdf5b96;_0xdf5b96&&_0x13cf55[_0x36b9ad(0x19e)](setAccessibilityCapabilities,_0x30db73[_0x36b9ad(0x1a8)]);const _0x4a5778=path[_0x36b9ad(0x119)](_0x4f9a0e[_0x36b9ad(0x17e)]?path[_0x36b9ad(0x192)](_0x4f9a0e['path']):process['cwd'](),_0x13cf55[_0x36b9ad(0x184)]);fs[_0x36b9ad(0x16b)](_0x4a5778,helper['serializeToYamlString'](_0x30db73[_0x36b9ad(0x1a8)])),process['env'][_0x36b9ad(0x19f)]=_0x4a5778,helper[_0x36b9ad(0x175)]();let _0x5691d8='';_0x13cf55[_0x36b9ad(0x190)](helper[_0x36b9ad(0x13e)](),constants[_0x36b9ad(0x196)]['MODULE'])?_0x5691d8=_0x13cf55[_0x36b9ad(0x187)]:_0x5691d8=_0x13cf55[_0x36b9ad(0x191)];let _0x3f67fe='';if(helper['isTypescriptProject'](_0x4f9a0e['path'])){_0x3f67fe=_0x36b9ad(0x189);const _0x55e45d=_0x5691d8[_0x36b9ad(0x1b4)]('.');_0x55e45d[_0x13cf55['Zezca'](_0x55e45d[_0x36b9ad(0x14f)],0x1)]='ts',_0x5691d8=_0x55e45d[_0x36b9ad(0x119)]('.'),logger['debug'](_0x13cf55[_0x36b9ad(0x155)](_0x13cf55[_0x36b9ad(0x171)],_0x5691d8));}else _0x3f67fe=_0x36b9ad(0x174);const _0x1626b4=path['join'](_0x4f9a0e['path']?path[_0x36b9ad(0x192)](_0x4f9a0e[_0x36b9ad(0x17e)]):process[_0x36b9ad(0x142)](),_0x5691d8);let _0x2ab62e=_0x4f9a0e['path']?_0x4f9a0e[_0x36b9ad(0x17e)]:'';_0x2ab62e=_0x13cf55[_0x36b9ad(0x1a5)](_0x2ab62e[_0x36b9ad(0x14f)],0x0)?path[_0x36b9ad(0x144)](_0x2ab62e):'',process[_0x36b9ad(0x13a)]['USER_CONFIG_DETAILS_PATH']=_0x2ab62e;const _0x300bf0=helper[_0x36b9ad(0x1b0)](_0x30db73[_0x36b9ad(0x1a8)]);_0x300bf0&&(_0x3f67fe=_0x13cf55['rXrBZ']('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x300bf0+_0x36b9ad(0x1b1),_0x3f67fe));helper['filterBrowserstackArgs']({},_0x837d64),fs[_0x36b9ad(0x16b)](_0x1626b4,_0x3f67fe),helper[_0x36b9ad(0x19c)]();const _0x1c09ca=_0x13cf55[_0x36b9ad(0x13b)](spawn,_0x13cf55[_0x36b9ad(0x11b)],[_0x13cf55[_0x36b9ad(0x160)],_0x13cf55[_0x36b9ad(0x17a)],_0x13cf55[_0x36b9ad(0x193)],_0x1626b4,..._0x837d64['slice'](0x2)],{'shell':_0x13cf55[_0x36b9ad(0x15e)](process['platform'],_0x13cf55[_0x36b9ad(0x146)]),'stdio':_0x13cf55[_0x36b9ad(0x1ae)],'cwd':process[_0x36b9ad(0x142)](),'env':Object[_0x36b9ad(0x18e)]({},process[_0x36b9ad(0x13a)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x36b9ad(0x133)](_0x30660e),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x30db73['config'][_0x36b9ad(0x136)][_0x36b9ad(0x156)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x30db73[_0x36b9ad(0x1a8)][_0x36b9ad(0x136)][_0x36b9ad(0x1ac)],'BROWSERSTACK_LOG_LEVEL':_0x30db73[_0x36b9ad(0x1a8)][_0x36b9ad(0x118)]})}),_0x30663f=()=>{const _0x2f3812=_0x36b9ad;try{const _0x5891fa=path['join'](helper[_0x2f3812(0x163)](),_0x13cf55[_0x2f3812(0x161)],_0x13cf55[_0x2f3812(0x15c)]);if(fs[_0x2f3812(0x140)](_0x5891fa)){let _0x4e6f30=fs[_0x2f3812(0x1ad)](_0x5891fa);_0x4e6f30=JSON[_0x2f3812(0x14b)](_0x4e6f30),_0x30db73[_0x2f3812(0x1af)]=_0x4e6f30,fs['unlinkSync'](_0x5891fa);}}catch(_0x42c2f0){logger[_0x2f3812(0x159)](_0x13cf55[_0x2f3812(0x155)](_0x13cf55[_0x2f3812(0x12f)],_0x42c2f0));}};_0x1c09ca['on'](_0x13cf55[_0x36b9ad(0x14a)],async _0x4f6f14=>{const _0x241d99=_0x36b9ad;try{const _0x2d1748=_0x13cf55[_0x241d99(0x170)]['split']('|');let _0x397497=0x0;while(!![]){switch(_0x2d1748[_0x397497++]){case'0':fs[_0x241d99(0x1a4)](_0x4a5778);continue;case'1':fs['unlinkSync'](_0x1626b4);continue;case'2':logger['debug']('Deleting\x20'+_0x4a5778);continue;case'3':await utilities[_0x241d99(0x183)](_0x30db73);continue;case'4':await TestHubHandler[_0x241d99(0x166)]();continue;case'5':_0x13cf55[_0x241d99(0x164)](_0x30663f);continue;case'6':process[_0x241d99(0x1a0)]=_0x4f6f14;continue;case'7':logger[_0x241d99(0x159)](_0x241d99(0x1ab)+_0x4f6f14);continue;case'8':logger[_0x241d99(0x138)](_0x241d99(0x14d)+_0x1626b4);continue;}break;}}catch(_0x56df24){logger[_0x241d99(0x159)](_0x13cf55[_0x241d99(0x155)](_0x13cf55[_0x241d99(0x16c)],_0x56df24));}});}function a35_0x3ec4(){const _0x2fdd84=['aKsBQ','parse','--config=','Deleting\x20','winstonLogger','length','isUndefined','findIndex','./accessibility-helper','pw_result.json','69568OzYKIs','rXrBZ','skipSessionStatus','lscIZ','BrowserStack\x20config\x20file\x20not\x20found.','debug','65436qYzfRi','--config','ySMhs','qhPtl','goGlu','TEVJH','GAEoK','Nkddw','KdeJM','homedir','cwfIx','stringify','stop','gSBIA','concat','util','../../helpers/BrowserStackSetup','writeFileSync','Oaupj','../../helpers/test-observability/error-handler','../utils/constants','../../helpers/test-observability/constants','wrUOy','WaoFd','../../helpers/test-observability/utils','YwYro','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','clearTempPWConfig','../../helpers/testhub/utils','accessibilityOptions','xTNDL','--grep','UvPZG','win32','BROWSERSTACK_RERUN','SCgbN','path','get','cXMpj','Obnvz','YydSV','finalExecution','gCudK','isTrue','launchBuild','uxNgX','startsWith','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','child_process','YIcQv','nestedKeyValue','splice','assign','initialize','HySEN','gfWDV','dirname','WCpeR','BROWSERSTACK_AUTOMATION','617408ThaFfX','PACKAGE_TYPE','917090uvjlWa','false','true','BROWSERSTACK_TEST_ACCESSIBILITY_YML','close','markSDKSetupComplete','5|4|3|6|7|8|1|2|0','YjKbF','BROWSERSTACK_SETUP_CONFIG_PATH','exitCode','BROWSERSTACK_RERUN_TESTS','7zPRswt','filter','unlinkSync','HQHKc','qJqra','testObservability','config','inherit','../../helpers/utilities','Playwright\x20process\x20exited\x20with\x20code\x20','skipSessionName','readFileSync','UiCko','errorMessage','getProxyUrl','\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();','Error\x20in\x20getting\x20funnel\x20data\x20results','argv','split','XdbIg','logLevel','join','exports','pDPEc','--disable-browserstack-automation','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','233588IIlmwQ','playwright','playwright-browserstack-sdk.config.js','gEGlD','JySkg','platform','../../helpers/logger','160508rRiiAM','BROWSERSTACK_TEST_OBSERVABILITY','BROWSERSTACK_PW_CONFIG_DIR','isFalse','apply','sVMcO','Error\x20in\x20deleting\x20playwright\x20results','--disable-test-observability','npx','cliConfig','EAGAZ','PVKkJ','../../helpers/testhub/testhubHandler','pJesb','getConfigPath','LRuoj','UbyHw','testContextOptions','browserstackSetupConfig.json','info','1373322NUyfUF','env','TtrHQ','test','./reporter/pwUtils','getPackageType','.browserstack','existsSync','push','cwd','PLAYWRIGHT','resolve','automation','AAgUn','playwright-browserstack-sdk.config.cjs','trim','lLCUx'];a35_0x3ec4=function(){return _0x2fdd84;};return a35_0x3ec4();}module[a35_0x227aab(0x11a)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a36_0x445c(){const _0xe0e668=['config','roBMN','isHandlePWErrorSet','Path\x20','qDqOm','exports','format','../../helpers/test-observability/utils','HgOrp','./patches','263046WpQkTq','Not\x20able\x20to\x20import\x20globalSetup','868884YogQow','fork','Call\x20to\x20child\x20fork\x20with\x20args\x20','1365240eucEKL','GGvyU','24RxDltU','error','winstonLogger','sIhQC','1271360SmjnOm','rpKfA','iFJtW','../../helpers/test-observability/constants','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','Running\x20existing\x20global\x20setup','./reporter/pwUtils','248123RZQsbA','includes','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','SyOmn','compareVersions','toString','../../helpers/helper','HWWeF','829707RmHlCs','inaCv','1.33.0','child_process','\x20is\x20not\x20found','apply','env','../../helpers/logger','264481thVptH'];a36_0x445c=function(){return _0xe0e668;};return a36_0x445c();}function a36_0x6ba5(_0x3324e5,_0x3aaa91){const _0x445c81=a36_0x445c();return a36_0x6ba5=function(_0x6ba508,_0x440929){_0x6ba508=_0x6ba508-0x14b;let _0x303c28=_0x445c81[_0x6ba508];return _0x303c28;},a36_0x6ba5(_0x3324e5,_0x3aaa91);}const a36_0x3063c8=a36_0x6ba5;(function(_0x4a0dc5,_0x27c0c8){const _0x5aedbc=a36_0x6ba5,_0x2b6847=_0x4a0dc5();while(!![]){try{const _0x300bc5=parseInt(_0x5aedbc(0x14b))/0x1+-parseInt(_0x5aedbc(0x166))/0x2+parseInt(_0x5aedbc(0x153))/0x3+-parseInt(_0x5aedbc(0x168))/0x4+parseInt(_0x5aedbc(0x16b))/0x5+parseInt(_0x5aedbc(0x16d))/0x6*(-parseInt(_0x5aedbc(0x15b))/0x7)+-parseInt(_0x5aedbc(0x171))/0x8;if(_0x300bc5===_0x27c0c8)break;else _0x2b6847['push'](_0x2b6847['shift']());}catch(_0x3bb1fe){_0x2b6847['push'](_0x2b6847['shift']());}}}(a36_0x445c,0x21ec0));const util=require('util'),child_process=require(a36_0x3063c8(0x156)),{FRAMEWORKS}=require(a36_0x3063c8(0x174)),{getFrameworkVersion,debug}=require(a36_0x3063c8(0x163)),helper=require(a36_0x3063c8(0x151)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x3063c8(0x177)),{mockIsWorkerRedundant}=require(a36_0x3063c8(0x165)),logger=require(a36_0x3063c8(0x15a))[a36_0x3063c8(0x16f)];module[a36_0x3063c8(0x161)]=async function(_0x168c86){const _0x1e43b4=a36_0x3063c8,_0x17e851={'roBMN':function(_0x252d25,_0x3c0004){return _0x252d25(_0x3c0004);},'sIhQC':function(_0x9a237d){return _0x9a237d();},'qDqOm':'./mock-process.js','iFJtW':function(_0x2bcb5a){return _0x2bcb5a();},'gIAvN':function(_0x4065c6,_0x42d1cc){return _0x4065c6(_0x42d1cc);},'vtEhq':_0x1e43b4(0x176),'OepeT':function(_0x1093c8){return _0x1093c8();},'MmxOi':function(_0x34a0ac,_0x32d261){return _0x34a0ac(_0x32d261);},'HgOrp':function(_0x4262a8,_0xbca4a2){return _0x4262a8>=_0xbca4a2;},'HWWeF':_0x1e43b4(0x155),'GGvyU':function(_0x28e8e5,_0x4e3e4a,_0x596c5d){return _0x28e8e5(_0x4e3e4a,_0x596c5d);},'rpKfA':function(_0x464844,_0x1d04b1){return _0x464844!==_0x1d04b1;},'inaCv':'function','SyOmn':_0x1e43b4(0x167)},_0x4ebfce=child_process[_0x1e43b4(0x169)];if(helper[_0x1e43b4(0x15e)]())try{_0x17e851['iFJtW'](mockIsWorkerRedundant);}catch(_0x3b212e){logger['debug']('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0x1e43b4(0x162)](_0x3b212e));}child_process[_0x1e43b4(0x169)]=function(){const _0x337d7d=_0x1e43b4;return _0x17e851['roBMN'](debug,_0x337d7d(0x16a)+arguments[0x0]),arguments[0x0][_0x337d7d(0x14c)](_0x17e851[_0x337d7d(0x170)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x17e851[_0x337d7d(0x160)]):logger[_0x337d7d(0x16e)](_0x337d7d(0x15f)+_0x17e851[_0x337d7d(0x173)](getForkProcessPath)+_0x337d7d(0x157)),_0x4ebfce[_0x337d7d(0x158)](null,arguments);};if(process[_0x1e43b4(0x159)][_0x1e43b4(0x14d)]){_0x17e851['gIAvN'](debug,_0x17e851['vtEhq']);try{const {loadGlobalHook:_0x2b4e7e}=helper['requirePWModule'][_0x1e43b4(0x158)](null,_0x17e851['OepeT'](getLoadUtilsPath)),_0x4f7698=_0x17e851['MmxOi'](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x55dcf4=_0x168c86;if(_0x17e851[_0x1e43b4(0x164)](helper[_0x1e43b4(0x14f)](_0x4f7698,_0x17e851[_0x1e43b4(0x152)]),0x0)){const _0x575832={};_0x575832[_0x1e43b4(0x15c)]=_0x168c86,_0x55dcf4=_0x575832;}const _0x40379f=await _0x17e851[_0x1e43b4(0x16c)](_0x2b4e7e,_0x55dcf4,process['env'][_0x1e43b4(0x14d)]);if(_0x17e851[_0x1e43b4(0x172)](typeof _0x40379f,_0x17e851[_0x1e43b4(0x154)]))throw new Error(_0x17e851[_0x1e43b4(0x14e)]);return _0x40379f['apply'](null,arguments);}catch(_0x3d304d){_0x17e851[_0x1e43b4(0x15d)](debug,_0x1e43b4(0x175)+_0x3d304d[_0x1e43b4(0x150)]());}}};
|