browserstack-node-sdk 1.34.28 → 1.34.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a29_0x3a87(){const _0x53ef5a=['qwvge','SRmhs','qvvii','build','vFJRV','session_','object','capabilities_','GZGna','Proxy\x20set\x20to\x20','debug','New\x20hub\x20url\x20set\x20to\x20','../../../helpers/patchHelpers','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','__setBrowserOptions','YvIUv','proxySettings','GjtIy','401552HFyNbW','newHubUrl','setLogLevel','edgeOptions_','mKCOg','rOmFx','mergeDeep','__driver','../../../helpers/logger','MJnta','browserStackLogLevel','options_','../../../helpers/helper','edgeOptions','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','sbTRM','../../../bin/utils/constants','chromeOptions_','XVHRS','98398rsEoxA','quitCount_','TGBOj','split','CAPABILITY_KEY','setCapabilities','requireSeleniumWebdriver','then','getAccessibilityResults','updateHubUrl','requireHttpClient','1160756BOYOyd','push','exports','setServer','gyWgd','moz:firefoxOptions','HttpClient','isPacProxy','ONzDK','browserstackAgentObservability','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','isBrowserstackInfra','capability','OOVXa','info','firefoxOptions_','caps_','MhKKv','ECVal','./helpers/patchHelper','Bsvtr','sGidg','DeSiu','/wd/hub','global','Hub\x20url\x20set\x20to\x20','logLevel','getGlobal','getHttpAgent','safariOptions_','optimalHubUrl','FKpbH','../../../helpers/globals','se:ieOptions','set','storeOptimalHubUrl','klVqj','MfXKB','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','kWbLQ','1|5|3|4|2|0','TFavM','vjlhP','FWiFy','mkXgL','1668632vTVbBo','getAccessibilityResultsSummary','loWkF','108eVbHkM','/session','1669060PexBRp','ZijJh','proxy_','originalBuilder','firefoxOptions','goog:chromeOptions','21ovOwjN','mVlAO','winstonLogger','__drivers','ieOptions_','../accessibility-automation/helper','send','ieOptions','../../../hubAllocationMethods','Kglvo','yfOVa','getHubUrl','proxyUrl','getRequestOptions','safari.options','__driversArray','Builder','get','PKerL','url_','chromeOptions','7017291RZBrmN','isUndefined','178283CrEmkx','../../../helpers/accessibility-automation/helper','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND'];a29_0x3a87=function(){return _0x53ef5a;};return a29_0x3a87();}function a29_0x3e1d(_0x1f4ecc,_0x48ae9d){const _0x3a871e=a29_0x3a87();return a29_0x3e1d=function(_0x3e1d6b,_0x4ab2b9){_0x3e1d6b=_0x3e1d6b-0xc2;let _0x5b824a=_0x3a871e[_0x3e1d6b];return _0x5b824a;},a29_0x3e1d(_0x1f4ecc,_0x48ae9d);}const a29_0x139dde=a29_0x3e1d;(function(_0x24dc85,_0x1841e5){const _0x249363=a29_0x3e1d,_0x33cb46=_0x24dc85();while(!![]){try{const _0x5b2c83=-parseInt(_0x249363(0xf3))/0x1+parseInt(_0x249363(0x106))/0x2*(-parseInt(_0x249363(0xc7))/0x3)+parseInt(_0x249363(0x111))/0x4+-parseInt(_0x249363(0x143))/0x5+parseInt(_0x249363(0x141))/0x6*(parseInt(_0x249363(0xde))/0x7)+-parseInt(_0x249363(0x13e))/0x8+parseInt(_0x249363(0xdc))/0x9;if(_0x5b2c83===_0x1841e5)break;else _0x33cb46['push'](_0x33cb46['shift']());}catch(_0x1db870){_0x33cb46['push'](_0x33cb46['shift']());}}}(a29_0x3a87,0x3a97a));const logger=require(a29_0x139dde(0xfb))[a29_0x139dde(0xc9)],helper=require(a29_0x139dde(0xff)),constants=require(a29_0x139dde(0x103)),hubAllocator=require(a29_0x139dde(0xcf)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x139dde(0xed)),{setAccessibilityCapabilities,setExtension}=require(a29_0x139dde(0xcc)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x139dde(0xdf)),globals=require(a29_0x139dde(0x131)),{overrideExecute}=require(a29_0x139dde(0x124)),modify=(_0x1a4e6f,_0x4156fe=null,_0x4e37a1=![])=>{const _0x29b42d=a29_0x139dde,_0x4305c0={'MhKKv':function(_0x1bb117,_0x24c39e){return _0x1bb117!==_0x24c39e;},'qwvge':_0x29b42d(0x142),'loWkF':function(_0x696a25,_0x7b698){return _0x696a25!==_0x7b698;},'mKCOg':function(_0x43e730,_0x13d1aa){return _0x43e730+_0x13d1aa;},'MfXKB':function(_0x541476,_0x4c25cf){return _0x541476+_0x4c25cf;},'rOmFx':'https://','Bsvtr':_0x29b42d(0x128),'mkXgL':_0x29b42d(0xc6),'OOVXa':_0x29b42d(0xdb),'ECVal':'ms:edgeOptions','klVqj':_0x29b42d(0x100),'sbTRM':_0x29b42d(0x116),'TFavM':_0x29b42d(0xc5),'qvvii':_0x29b42d(0xd5),'GZGna':_0x29b42d(0x132),'gyWgd':_0x29b42d(0xce),'yfOVa':function(_0x18f520,_0x457e6d){return _0x18f520===_0x457e6d;},'PKerL':_0x29b42d(0xe7),'zXdqQ':'Setting\x20Browserstack\x20capabilities','YvIUv':_0x29b42d(0x12f),'XVHRS':_0x29b42d(0xe0),'ONzDK':function(_0xfa7d75,_0x26cef2,_0x1715bd){return _0xfa7d75(_0x26cef2,_0x1715bd);},'vjlhP':function(_0x18d6a8,_0x5940e3,_0x479163){return _0x18d6a8(_0x5940e3,_0x479163);},'ZijJh':function(_0x289062,_0x9f0db6,_0x4788b6){return _0x289062(_0x9f0db6,_0x4788b6);},'MJnta':function(_0x32baa1,_0x18172b){return _0x32baa1(_0x18172b);},'sGidg':_0x29b42d(0x139),'CNifu':_0x29b42d(0xee),'TGBOj':function(_0x21c7a0){return _0x21c7a0();},'kWbLQ':'isAccessibilityPlatform','DeSiu':function(_0x46fefb,_0x2eea84){return _0x46fefb!==_0x2eea84;},'GjtIy':function(_0x2def48,_0xa9b831){return _0x2def48!==_0xa9b831;},'SRmhs':_0x29b42d(0x137),'Kglvo':'Modifying\x20webdriver\x20builder'},_0x37a84f=helper[_0x29b42d(0x110)]();let _0xa8e690;try{_0xa8e690=helper[_0x29b42d(0x10c)](),_0xa8e690[_0x29b42d(0xc4)]&&(_0xa8e690[_0x29b42d(0xd7)]=_0xa8e690[_0x29b42d(0xc4)]);}catch(_0x42a3ef){return;}if(helper['isBrowserstackInfra']()){const _0x55d3c6={};_0x55d3c6[_0x29b42d(0x12b)]=_0x1a4e6f[_0x29b42d(0xfd)],helper[_0x29b42d(0xf5)](_0x55d3c6,new Map(),new Map()),logger[_0x29b42d(0x11f)](_0x4305c0[_0x29b42d(0xe2)]),logger[_0x29b42d(0xeb)](_0x4305c0[_0x29b42d(0xd0)]);}class _0x364652 extends _0x37a84f['HttpClient']{[_0x29b42d(0xcd)](_0x188132){const _0x2f64d6=_0x29b42d;if(_0x4305c0[_0x2f64d6(0x122)](_0x188132['path'],_0x4305c0[_0x2f64d6(0xe1)])&&_0x4305c0[_0x2f64d6(0x140)](global[_0x2f64d6(0xf4)],''))try{global[_0x2f64d6(0xf4)]=_0x4305c0[_0x2f64d6(0xf7)](_0x4305c0[_0x2f64d6(0x136)](_0x4305c0[_0x2f64d6(0xf8)],global[_0x2f64d6(0xf4)]),_0x4305c0[_0x2f64d6(0x125)]),this[_0x2f64d6(0xfe)]=hubAllocator[_0x2f64d6(0xd4)](global[_0x2f64d6(0xf4)]),logger[_0x2f64d6(0xeb)](_0x2f64d6(0xec)+global[_0x2f64d6(0xf4)]),global[_0x2f64d6(0xf4)]='';}catch(_0x557822){logger['error'](_0x557822);}return super[_0x2f64d6(0xcd)](_0x188132);}}class _0x26e59d extends _0xa8e690[_0x29b42d(0xd7)]{[_0x29b42d(0x114)](){const _0x2ceed1=_0x29b42d;return this[_0x2ceed1(0xda)]=helper[_0x2ceed1(0xd2)](_0x1a4e6f),logger[_0x2ceed1(0xeb)](_0x2ceed1(0x12a)+this[_0x2ceed1(0xda)]),this;}[_0x29b42d(0xef)](_0x5e7585){const _0x5a9c30=_0x29b42d;let _0xa27349={};for(const _0x473f19 in _0x5e7585){switch(_0x473f19){case _0x4305c0[_0x5a9c30(0x13d)]:case _0x4305c0[_0x5a9c30(0x11e)]:this[_0x5a9c30(0x104)]&&(_0xa27349=this[_0x5a9c30(0x104)]['get'](this['chromeOptions_'][_0x5a9c30(0x10a)])||{},this[_0x5a9c30(0x104)][_0x5a9c30(0x133)](this[_0x5a9c30(0x104)][_0x5a9c30(0x10a)],helper['mergeDeep'](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0x123)]:case _0x4305c0[_0x5a9c30(0x135)]:this[_0x5a9c30(0xf6)]&&(_0xa27349=this[_0x5a9c30(0xf6)][_0x5a9c30(0xd8)](this[_0x5a9c30(0xf6)]['CAPABILITY_KEY'])||{},this[_0x5a9c30(0xf6)][_0x5a9c30(0x133)](this[_0x5a9c30(0xf6)][_0x5a9c30(0x10a)],helper[_0x5a9c30(0xf9)](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0x102)]:case _0x4305c0[_0x5a9c30(0x13a)]:this[_0x5a9c30(0x120)]&&(_0xa27349=this[_0x5a9c30(0x120)][_0x5a9c30(0xd8)](this[_0x5a9c30(0x120)]['CAPABILITY_KEY'])||{},this['firefoxOptions_'][_0x5a9c30(0x133)](this[_0x5a9c30(0x120)][_0x5a9c30(0x10a)],helper[_0x5a9c30(0xf9)](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0xe3)]:this[_0x5a9c30(0x12e)]&&(_0xa27349=this[_0x5a9c30(0x12e)][_0x5a9c30(0xd8)](this[_0x5a9c30(0x12e)][_0x5a9c30(0x10a)])||{},this[_0x5a9c30(0x12e)][_0x5a9c30(0x133)](this[_0x5a9c30(0x12e)][_0x5a9c30(0x10a)],helper['mergeDeep'](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0xe9)]:case _0x4305c0[_0x5a9c30(0x115)]:this[_0x5a9c30(0xcb)]&&(_0xa27349=this[_0x5a9c30(0xcb)][_0x5a9c30(0xd8)](this[_0x5a9c30(0xcb)][_0x5a9c30(0x10a)])||{},this['ieOptions_']['set'](this[_0x5a9c30(0xcb)][_0x5a9c30(0x10a)],helper[_0x5a9c30(0xf9)](_0xa27349,_0x5e7585[_0x473f19])));break;}}}[_0x29b42d(0x10b)](){const _0x36a427=_0x29b42d,_0x39d598={'YOUhw':function(_0x2ea986,_0x258be8){const _0x1db1b2=a29_0x3e1d;return _0x4305c0[_0x1db1b2(0xd1)](_0x2ea986,_0x258be8);},'FWiFy':_0x4305c0[_0x36a427(0xd9)]};return logger[_0x36a427(0xeb)](_0x4305c0['zXdqQ']),this[_0x36a427(0xef)](_0x1a4e6f[_0x36a427(0x11d)]),Object['keys'](_0x1a4e6f[_0x36a427(0x11d)])['forEach'](_0x133307=>{const _0x56050e=_0x36a427,_0x20592f=this[_0x56050e(0xe8)][_0x56050e(0xd8)](_0x133307);_0x39d598['YOUhw'](typeof _0x20592f,_0x39d598[_0x56050e(0x13c)])?this[_0x56050e(0xe8)][_0x56050e(0x133)](_0x133307,helper[_0x56050e(0xf9)](_0x20592f,_0x1a4e6f[_0x56050e(0x11d)][_0x133307])):this[_0x56050e(0xe8)][_0x56050e(0x133)](_0x133307,_0x1a4e6f[_0x56050e(0x11d)][_0x133307]);}),this;}['build'](){const _0x559c4b=_0x29b42d,_0x3b2bd6={'mVlAO':function(_0xfe13cb,_0xe7df23,_0x26dd63){const _0x3e1486=a29_0x3e1d;return _0x4305c0[_0x3e1486(0xc2)](_0xfe13cb,_0xe7df23,_0x26dd63);},'vFJRV':function(_0x38c6c4,_0x145999,_0x7ab89){const _0x141626=a29_0x3e1d;return _0x4305c0[_0x141626(0x13b)](_0x38c6c4,_0x145999,_0x7ab89);},'Tbvqy':function(_0xdbb77a,_0x2c4d4c){const _0x4a7843=a29_0x3e1d;return _0x4305c0[_0x4a7843(0xfc)](_0xdbb77a,_0x2c4d4c);}};if(helper[_0x559c4b(0x11c)]()){const _0x333c09=_0x4305c0[_0x559c4b(0x126)][_0x559c4b(0x109)]('|');let _0xdde3b3=0x0;while(!![]){switch(_0x333c09[_0xdde3b3++]){case'0':logger[_0x559c4b(0xeb)](_0x4305c0['CNifu']);continue;case'1':_0x4305c0[_0x559c4b(0x108)](isAccessibilityAutomationSession)&&_0x4305c0[_0x559c4b(0xfc)](setAccessibilityCapabilities,_0x1a4e6f);continue;case'2':globals[_0x559c4b(0x12c)](_0x4305c0[_0x559c4b(0x138)])&&(!_0x4305c0[_0x559c4b(0x119)](setExtension,this,_0x1a4e6f)&&globals['setGlobal'](_0x4305c0[_0x559c4b(0x138)],![]));continue;case'3':this[_0x559c4b(0x10b)]();continue;case'4':if(helper[_0x559c4b(0x118)](_0x1a4e6f['proxySettings'][_0x559c4b(0xd3)]))this['agent_']=helper[_0x559c4b(0x12d)](_0x1a4e6f[_0x559c4b(0xf1)][_0x559c4b(0xd3)]);else _0x1a4e6f[_0x559c4b(0xf1)][_0x559c4b(0xd3)]&&(this['proxy_']=_0x1a4e6f[_0x559c4b(0xf1)][_0x559c4b(0xd3)],logger['debug'](_0x559c4b(0xea)+this[_0x559c4b(0xc3)]));continue;case'5':this[_0x559c4b(0x114)]();continue;}break;}}const _0x2e3299=super[_0x559c4b(0xe4)]();return _0x2e3299[_0x559c4b(0xe6)]['then'](_0x4ad667=>{const _0x2de6d3=_0x559c4b;try{const _0x260856=_0x4ad667[_0x2de6d3(0x121)]['get'](_0x4305c0[_0x2de6d3(0xf0)]);_0x260856?(logger[_0x2de6d3(0xeb)](_0x2de6d3(0x101)+_0x260856),hubAllocator[_0x2de6d3(0x10f)](_0x260856),helper[_0x2de6d3(0x134)](_0x260856)):logger['debug'](_0x4305c0[_0x2de6d3(0x105)]);}catch(_0x542041){logger['debug'](_0x2de6d3(0x11b)+_0x542041);}}),_0x2e3299[_0x559c4b(0x107)]=0x0,_0x2e3299[_0x559c4b(0x10d)]&&_0x2e3299[_0x559c4b(0x10d)](_0x2ca2e1=>{const _0x36dc64=_0x559c4b,_0x235b01={'FKpbH':function(_0x786bf2,_0x51fae2,_0x368c19){return _0x3b2bd6['vFJRV'](_0x786bf2,_0x51fae2,_0x368c19);}};_0x3b2bd6[_0x36dc64(0xe5)](overrideQuit,_0x2ca2e1,_0x2e3299),_0x3b2bd6['Tbvqy'](overrideTakeScreenshot,_0x2ca2e1),helper['overrideGet'](_0x2ca2e1,_0x1a4e6f),_0x3b2bd6[_0x36dc64(0xe5)](overrideExecute,_0x2ca2e1,_0x1a4e6f),_0x2ca2e1[_0x36dc64(0x13f)]=async()=>{const _0x2624c0=_0x36dc64;return await _0x3b2bd6[_0x2624c0(0xc8)](getAccessibilityResultsSummary,_0x2ca2e1,global);},_0x2ca2e1['getAccessibilityResults']=async()=>{const _0xd7ddc5=_0x36dc64;return await _0x235b01[_0xd7ddc5(0x130)](getAccessibilityResults,_0x2ca2e1,global);};}),_0x2e3299['getAccessibilityResultsSummary']=async()=>{return await _0x4305c0['ONzDK'](getAccessibilityResultsSummary,_0x2e3299,global);},_0x2e3299[_0x559c4b(0x10e)]=async()=>{const _0x5c1a6d=_0x559c4b;return await _0x4305c0[_0x5c1a6d(0x13b)](getAccessibilityResults,_0x2e3299,global);},_0x4305c0[_0x559c4b(0xfc)](overrideTakeScreenshot,_0x2e3299),_0x4305c0[_0x559c4b(0xfc)](overrideQuit,_0x2e3299),helper['overrideGet'](_0x2e3299,_0x1a4e6f),_0x4305c0[_0x559c4b(0x119)](overrideExecute,_0x2e3299,_0x1a4e6f),helper[_0x559c4b(0xdd)](global[_0x559c4b(0xd6)])&&(global['__driversArray']=[]),helper[_0x559c4b(0xdd)](global[_0x559c4b(0xca)])&&(global[_0x559c4b(0xca)]=[]),global['__driversArray'][_0x559c4b(0x112)](_0x2e3299),global[_0x559c4b(0xfa)]=_0x2e3299,_0x4305c0[_0x559c4b(0x127)](global[_0x559c4b(0xca)],undefined)&&global['__drivers'][_0x559c4b(0x112)](_0x2e3299),_0x4156fe&&helper[_0x559c4b(0xdd)](_0x4156fe['global'][_0x559c4b(0xd6)])&&(_0x4156fe[_0x559c4b(0x129)]['__driversArray']=[]),_0x4156fe&&_0x4305c0[_0x559c4b(0xf2)](_0x4156fe[_0x559c4b(0x129)][_0x559c4b(0xca)],undefined)&&(_0x4156fe['global'][_0x559c4b(0xca)][_0x559c4b(0x112)](_0x2e3299),_0x4156fe[_0x559c4b(0x129)][_0x559c4b(0xd6)]['push'](_0x2e3299)),_0x2e3299;}}return _0xa8e690[_0x29b42d(0xc4)]=_0xa8e690[_0x29b42d(0xd7)],_0xa8e690[_0x29b42d(0xd7)]=_0x26e59d,_0x37a84f[_0x29b42d(0x117)]=_0x364652,_0xa8e690;};module[a29_0x139dde(0x113)][a29_0x139dde(0x11a)]=modify;
|
|
1
|
+
function a29_0x24cc(_0x1e8a15,_0x9da51c){const _0x3382fb=a29_0x3382();return a29_0x24cc=function(_0x24cc4d,_0x5fa226){_0x24cc4d=_0x24cc4d-0x150;let _0x5978ae=_0x3382fb[_0x24cc4d];return _0x5978ae;},a29_0x24cc(_0x1e8a15,_0x9da51c);}const a29_0x214f7d=a29_0x24cc;(function(_0x3886ab,_0x32df3e){const _0x5df016=a29_0x24cc,_0x27666c=_0x3886ab();while(!![]){try{const _0x45462d=-parseInt(_0x5df016(0x1c5))/0x1*(-parseInt(_0x5df016(0x185))/0x2)+parseInt(_0x5df016(0x15c))/0x3+parseInt(_0x5df016(0x183))/0x4*(parseInt(_0x5df016(0x193))/0x5)+parseInt(_0x5df016(0x16c))/0x6*(parseInt(_0x5df016(0x187))/0x7)+parseInt(_0x5df016(0x169))/0x8+parseInt(_0x5df016(0x191))/0x9+parseInt(_0x5df016(0x17f))/0xa*(-parseInt(_0x5df016(0x19f))/0xb);if(_0x45462d===_0x32df3e)break;else _0x27666c['push'](_0x27666c['shift']());}catch(_0x84a329){_0x27666c['push'](_0x27666c['shift']());}}}(a29_0x3382,0xd7918));const logger=require(a29_0x214f7d(0x18f))[a29_0x214f7d(0x1bd)],helper=require('../../../helpers/helper'),constants=require(a29_0x214f7d(0x18e)),hubAllocator=require(a29_0x214f7d(0x178)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x214f7d(0x1b4)),{setAccessibilityCapabilities,setExtension}=require(a29_0x214f7d(0x161)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x214f7d(0x19b)),globals=require(a29_0x214f7d(0x188)),{overrideExecute}=require(a29_0x214f7d(0x1bc)),modify=(_0x40664f,_0x34c254=null,_0x99ff06=![])=>{const _0x1c3032=a29_0x214f7d,_0x3985f3={'sEpVL':function(_0xaa2ec1,_0x18e82c){return _0xaa2ec1!==_0x18e82c;},'lecTw':_0x1c3032(0x1ad),'nmSNK':function(_0x3ac395,_0xe505b){return _0x3ac395!==_0xe505b;},'cNAyl':function(_0x14a3d7,_0x4739d2){return _0x14a3d7+_0x4739d2;},'WhYln':function(_0x3663b3,_0x43c7f5){return _0x3663b3+_0x43c7f5;},'xVJFV':_0x1c3032(0x1c7),'zDYmg':_0x1c3032(0x17a),'oURTB':_0x1c3032(0x17c),'oxtzr':_0x1c3032(0x1d3),'FRgqB':'ms:edgeOptions','HfSjL':_0x1c3032(0x15a),'HZIHF':'moz:firefoxOptions','QgjoA':_0x1c3032(0x15b),'KCQWS':_0x1c3032(0x18a),'bwDsW':_0x1c3032(0x1b8),'uaAHt':_0x1c3032(0x180),'LCDbY':function(_0x5de896,_0x34d1a8){return _0x5de896===_0x34d1a8;},'mBlHX':_0x1c3032(0x197),'HRsDn':_0x1c3032(0x1c3),'KGWVx':_0x1c3032(0x1b5),'gBzxU':_0x1c3032(0x1be),'EOIly':function(_0x13c0fa,_0x594e41,_0x589fc1){return _0x13c0fa(_0x594e41,_0x589fc1);},'lvfpX':_0x1c3032(0x1b9),'lRshf':function(_0x2068a4,_0x3fca76){return _0x2068a4(_0x3fca76);},'tGmPN':_0x1c3032(0x1d1),'zHJWG':_0x1c3032(0x1c8),'BTLpC':function(_0x3a7cd2){return _0x3a7cd2();},'yINwW':function(_0x7d46c7,_0x414ed4){return _0x7d46c7(_0x414ed4);},'dxrub':_0x1c3032(0x186),'QqfoW':function(_0x1d1dfd,_0x3b329e){return _0x1d1dfd(_0x3b329e);},'MzCTg':function(_0x20a59d,_0x2cc09a){return _0x20a59d(_0x2cc09a);},'ZUTbX':function(_0x53b5b6,_0x525bc2,_0x2c47e5){return _0x53b5b6(_0x525bc2,_0x2c47e5);},'LeqDc':function(_0x510a85,_0x51ac68){return _0x510a85!==_0x51ac68;},'WNZCi':function(_0xc6eec,_0x42aaa7){return _0xc6eec!==_0x42aaa7;},'QIBth':_0x1c3032(0x184),'DMxLB':_0x1c3032(0x1ac)},_0xcb5f84=helper['requireHttpClient']();let _0x4b3aff;try{_0x4b3aff=helper[_0x1c3032(0x19d)](),_0x4b3aff[_0x1c3032(0x192)]&&(_0x4b3aff[_0x1c3032(0x15e)]=_0x4b3aff['originalBuilder']);}catch(_0x551866){return;}if(helper[_0x1c3032(0x18b)]()){const _0x37a720={};_0x37a720[_0x1c3032(0x171)]=_0x40664f[_0x1c3032(0x157)],helper[_0x1c3032(0x1c6)](_0x37a720,new Map(),new Map()),logger[_0x1c3032(0x1a3)](_0x3985f3[_0x1c3032(0x1ae)]),logger['debug'](_0x3985f3[_0x1c3032(0x198)]);}class _0x14a82a extends _0xcb5f84[_0x1c3032(0x196)]{['send'](_0x1920c7){const _0x5ac907=_0x1c3032;if(_0x3985f3[_0x5ac907(0x195)](_0x1920c7[_0x5ac907(0x1b1)],_0x3985f3[_0x5ac907(0x16e)])&&_0x3985f3[_0x5ac907(0x16a)](global['newHubUrl'],''))try{global[_0x5ac907(0x159)]=_0x3985f3['cNAyl'](_0x3985f3['WhYln'](_0x3985f3[_0x5ac907(0x165)],global['newHubUrl']),_0x3985f3[_0x5ac907(0x168)]),this[_0x5ac907(0x179)]=hubAllocator[_0x5ac907(0x17e)](global[_0x5ac907(0x159)]),logger[_0x5ac907(0x175)]('New\x20hub\x20url\x20set\x20to\x20'+global['newHubUrl']),global[_0x5ac907(0x159)]='';}catch(_0x2c8aa8){logger['error'](_0x2c8aa8);}return super[_0x5ac907(0x189)](_0x1920c7);}}class _0x19fae0 extends _0x4b3aff[_0x1c3032(0x15e)]{[_0x1c3032(0x19c)](){const _0x2d5ee7=_0x1c3032;return this['url_']=helper[_0x2d5ee7(0x1c1)](_0x40664f),logger[_0x2d5ee7(0x175)](_0x2d5ee7(0x15d)+this['url_']),this;}[_0x1c3032(0x19e)](_0x3da621){const _0x497d74=_0x1c3032;let _0x147ff6={};for(const _0x24bd9c in _0x3da621){switch(_0x24bd9c){case _0x3985f3[_0x497d74(0x182)]:case _0x3985f3[_0x497d74(0x1cf)]:this[_0x497d74(0x166)]&&(_0x147ff6=this[_0x497d74(0x166)]['get'](this[_0x497d74(0x166)]['CAPABILITY_KEY'])||{},this[_0x497d74(0x166)][_0x497d74(0x176)](this[_0x497d74(0x166)][_0x497d74(0x1ba)],helper[_0x497d74(0x158)](_0x147ff6,_0x3da621[_0x24bd9c])));break;case _0x3985f3[_0x497d74(0x181)]:case _0x3985f3[_0x497d74(0x1a2)]:this[_0x497d74(0x15f)]&&(_0x147ff6=this[_0x497d74(0x15f)][_0x497d74(0x16f)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x497d74(0x15f)][_0x497d74(0x176)](this[_0x497d74(0x15f)]['CAPABILITY_KEY'],helper[_0x497d74(0x158)](_0x147ff6,_0x3da621[_0x24bd9c])));break;case _0x3985f3[_0x497d74(0x1af)]:case _0x3985f3[_0x497d74(0x1cb)]:this[_0x497d74(0x150)]&&(_0x147ff6=this[_0x497d74(0x150)]['get'](this[_0x497d74(0x150)][_0x497d74(0x1ba)])||{},this[_0x497d74(0x150)][_0x497d74(0x176)](this['firefoxOptions_'][_0x497d74(0x1ba)],helper['mergeDeep'](_0x147ff6,_0x3da621[_0x24bd9c])));break;case _0x3985f3[_0x497d74(0x163)]:this[_0x497d74(0x153)]&&(_0x147ff6=this[_0x497d74(0x153)][_0x497d74(0x16f)](this['safariOptions_']['CAPABILITY_KEY'])||{},this[_0x497d74(0x153)][_0x497d74(0x176)](this[_0x497d74(0x153)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x147ff6,_0x3da621[_0x24bd9c])));break;case _0x3985f3[_0x497d74(0x1b0)]:case _0x3985f3['uaAHt']:this['ieOptions_']&&(_0x147ff6=this['ieOptions_'][_0x497d74(0x16f)](this['ieOptions_'][_0x497d74(0x1ba)])||{},this['ieOptions_']['set'](this[_0x497d74(0x1ca)][_0x497d74(0x1ba)],helper[_0x497d74(0x158)](_0x147ff6,_0x3da621[_0x24bd9c])));break;}}}[_0x1c3032(0x1ab)](){const _0x5269e8=_0x1c3032;return logger[_0x5269e8(0x175)](_0x3985f3[_0x5269e8(0x1a6)]),this['__setBrowserOptions'](_0x40664f['capability']),Object[_0x5269e8(0x1ce)](_0x40664f[_0x5269e8(0x18c)])[_0x5269e8(0x1cc)](_0x1999b9=>{const _0x35c25a=_0x5269e8,_0x1416dd=this[_0x35c25a(0x16d)]['get'](_0x1999b9);_0x3985f3[_0x35c25a(0x1a8)](typeof _0x1416dd,_0x3985f3[_0x35c25a(0x1d4)])?this[_0x35c25a(0x16d)][_0x35c25a(0x176)](_0x1999b9,helper[_0x35c25a(0x158)](_0x1416dd,_0x40664f[_0x35c25a(0x18c)][_0x1999b9])):this[_0x35c25a(0x16d)][_0x35c25a(0x176)](_0x1999b9,_0x40664f['capability'][_0x1999b9]);}),this;}[_0x1c3032(0x1c9)](){const _0x705ff2=_0x1c3032,_0x27c2c7={'pPtxm':function(_0x242611,_0xf5fc01,_0x452fac){const _0x1a57fb=a29_0x24cc;return _0x3985f3[_0x1a57fb(0x152)](_0x242611,_0xf5fc01,_0x452fac);},'AiLFU':function(_0x4ec564,_0x3d8740,_0xa62cf1){const _0x2444ef=a29_0x24cc;return _0x3985f3[_0x2444ef(0x152)](_0x4ec564,_0x3d8740,_0xa62cf1);},'ojgeg':_0x3985f3[_0x705ff2(0x155)],'rGtqO':function(_0x57862a,_0x39034a){const _0x1d5bf5=_0x705ff2;return _0x3985f3[_0x1d5bf5(0x1bb)](_0x57862a,_0x39034a);},'zsdLc':function(_0xeb775e,_0x3ac9ef,_0xa6c331){const _0x11cf56=_0x705ff2;return _0x3985f3[_0x11cf56(0x152)](_0xeb775e,_0x3ac9ef,_0xa6c331);}};if(helper[_0x705ff2(0x18b)]()){const _0x3dcebf=_0x3985f3['tGmPN'][_0x705ff2(0x160)]('|');let _0x37ee9e=0x0;while(!![]){switch(_0x3dcebf[_0x37ee9e++]){case'0':if(helper[_0x705ff2(0x17b)](_0x40664f['proxySettings'][_0x705ff2(0x199)]))this[_0x705ff2(0x1aa)]=helper[_0x705ff2(0x1a7)](_0x40664f[_0x705ff2(0x1a1)][_0x705ff2(0x199)]);else _0x40664f['proxySettings'][_0x705ff2(0x199)]&&(this[_0x705ff2(0x1d2)]=_0x40664f[_0x705ff2(0x1a1)][_0x705ff2(0x199)],logger['debug'](_0x705ff2(0x154)+this[_0x705ff2(0x1d2)]));continue;case'1':this[_0x705ff2(0x1ab)]();continue;case'2':globals[_0x705ff2(0x172)](_0x3985f3[_0x705ff2(0x1a9)])&&(!_0x3985f3['EOIly'](setExtension,this,_0x40664f)&&globals[_0x705ff2(0x19a)](_0x3985f3[_0x705ff2(0x1a9)],![]));continue;case'3':_0x3985f3[_0x705ff2(0x173)](isAccessibilityAutomationSession)&&_0x3985f3[_0x705ff2(0x164)](setAccessibilityCapabilities,_0x40664f);continue;case'4':logger[_0x705ff2(0x175)](_0x3985f3['dxrub']);continue;case'5':this[_0x705ff2(0x19c)]();continue;}break;}}const _0x1e6324=super[_0x705ff2(0x1c9)]();return _0x1e6324[_0x705ff2(0x177)]['then'](_0x2da868=>{const _0x325d92=_0x705ff2;try{const _0x34cea0=_0x2da868['caps_'][_0x325d92(0x16f)](_0x3985f3[_0x325d92(0x194)]);_0x34cea0?(logger[_0x325d92(0x175)](_0x325d92(0x1cd)+_0x34cea0),hubAllocator['updateHubUrl'](_0x34cea0),helper[_0x325d92(0x156)](_0x34cea0)):logger[_0x325d92(0x175)](_0x3985f3[_0x325d92(0x1c0)]);}catch(_0x5aafe2){logger['debug'](_0x325d92(0x1a5)+_0x5aafe2);}}),_0x1e6324['quitCount_']=0x0,_0x1e6324[_0x705ff2(0x1b6)]&&_0x1e6324['then'](_0x1c1d75=>{const _0x1e869f=_0x705ff2,_0x313f1a=_0x27c2c7[_0x1e869f(0x16b)][_0x1e869f(0x160)]('|');let _0x4c23db=0x0;while(!![]){switch(_0x313f1a[_0x4c23db++]){case'0':_0x27c2c7[_0x1e869f(0x190)](overrideTakeScreenshot,_0x1c1d75);continue;case'1':_0x1c1d75[_0x1e869f(0x1b2)]=async()=>{const _0xfb90ea=_0x1e869f;return await _0x27c2c7[_0xfb90ea(0x167)](getAccessibilityResultsSummary,_0x1c1d75,global);};continue;case'2':_0x1c1d75[_0x1e869f(0x174)]=async()=>{const _0x5652f9=_0x1e869f;return await _0x27c2c7[_0x5652f9(0x151)](getAccessibilityResults,_0x1c1d75,global);};continue;case'3':helper['overrideGet'](_0x1c1d75,_0x40664f);continue;case'4':_0x27c2c7[_0x1e869f(0x167)](overrideQuit,_0x1c1d75,_0x1e6324);continue;case'5':_0x27c2c7[_0x1e869f(0x162)](overrideExecute,_0x1c1d75,_0x40664f);continue;}break;}}),_0x1e6324['getAccessibilityResultsSummary']=async()=>{const _0x1d4d7d=_0x705ff2;return await _0x3985f3[_0x1d4d7d(0x152)](getAccessibilityResultsSummary,_0x1e6324,global);},_0x1e6324['getAccessibilityResults']=async()=>{return await _0x27c2c7['pPtxm'](getAccessibilityResults,_0x1e6324,global);},_0x3985f3['QqfoW'](overrideTakeScreenshot,_0x1e6324),_0x3985f3[_0x705ff2(0x17d)](overrideQuit,_0x1e6324),helper[_0x705ff2(0x1b7)](_0x1e6324,_0x40664f),_0x3985f3[_0x705ff2(0x1b3)](overrideExecute,_0x1e6324,_0x40664f),helper[_0x705ff2(0x18d)](global[_0x705ff2(0x1a0)])&&(global[_0x705ff2(0x1a0)]=[]),helper[_0x705ff2(0x18d)](global['__drivers'])&&(global['__drivers']=[]),global['__driversArray'][_0x705ff2(0x1bf)](_0x1e6324),global[_0x705ff2(0x1d0)]=_0x1e6324,_0x3985f3[_0x705ff2(0x1c4)](global[_0x705ff2(0x170)],undefined)&&global[_0x705ff2(0x170)][_0x705ff2(0x1bf)](_0x1e6324),_0x34c254&&helper[_0x705ff2(0x18d)](_0x34c254['global'][_0x705ff2(0x1a0)])&&(_0x34c254['global']['__driversArray']=[]),_0x34c254&&_0x3985f3[_0x705ff2(0x1a4)](_0x34c254[_0x705ff2(0x1c2)]['__drivers'],undefined)&&(_0x34c254['global'][_0x705ff2(0x170)][_0x705ff2(0x1bf)](_0x1e6324),_0x34c254['global'][_0x705ff2(0x1a0)][_0x705ff2(0x1bf)](_0x1e6324)),_0x1e6324;}}return _0x4b3aff[_0x1c3032(0x192)]=_0x4b3aff[_0x1c3032(0x15e)],_0x4b3aff[_0x1c3032(0x15e)]=_0x19fae0,_0xcb5f84[_0x1c3032(0x196)]=_0x14a82a,_0x4b3aff;};module['exports']['browserstackAgentObservability']=modify;function a29_0x3382(){const _0x12ca96=['setCapabilities','Modifying\x20webdriver\x20builder','/session','QIBth','HZIHF','bwDsW','path','getAccessibilityResultsSummary','ZUTbX','../../../helpers/patchHelpers','optimalHubUrl','then','overrideGet','se:ieOptions','4|0|3|5|1|2','CAPABILITY_KEY','lRshf','./helpers/patchHelper','winstonLogger','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','push','gBzxU','getHubUrl','global','Setting\x20Browserstack\x20capabilities','LeqDc','40988ZqLmdp','setLogLevel','https://','isAccessibilityPlatform','build','ieOptions_','QgjoA','forEach','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','keys','oxtzr','__driver','3|5|1|0|2|4','proxy_','chromeOptions','mBlHX','firefoxOptions_','AiLFU','EOIly','safariOptions_','Proxy\x20set\x20to\x20','lvfpX','storeOptimalHubUrl','browserStackLogLevel','mergeDeep','newHubUrl','edgeOptions','firefoxOptions','2669484dmjaHr','Hub\x20url\x20set\x20to\x20','Builder','edgeOptions_','split','../accessibility-automation/helper','zsdLc','KCQWS','yINwW','xVJFV','chromeOptions_','pPtxm','zDYmg','5910168aVVrNj','nmSNK','ojgeg','84XbmhAt','capabilities_','lecTw','get','__drivers','logLevel','getGlobal','BTLpC','getAccessibilityResults','debug','set','session_','../../../hubAllocationMethods','options_','/wd/hub','isPacProxy','goog:chromeOptions','MzCTg','getRequestOptions','30741380FHmfgb','ieOptions','FRgqB','oURTB','20380CHOVVt','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','76SKWkoY','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','867482KwNlQL','../../../helpers/globals','send','safari.options','isBrowserstackInfra','capability','isUndefined','../../../bin/utils/constants','../../../helpers/logger','rGtqO','12617388ExttjU','originalBuilder','695EgTrqS','KGWVx','sEpVL','HttpClient','object','DMxLB','proxyUrl','setGlobal','../../../helpers/accessibility-automation/helper','setServer','requireSeleniumWebdriver','__setBrowserOptions','22YkOACm','__driversArray','proxySettings','HfSjL','info','WNZCi','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','HRsDn','getHttpAgent','LCDbY','zHJWG','agent_'];a29_0x3382=function(){return _0x12ca96;};return a29_0x3382();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x5ebe35=a30_0x2643;(function(_0x735636,_0x221b0f){const _0x4b2f44=a30_0x2643,_0x1f666c=_0x735636();while(!![]){try{const _0x9a976f=parseInt(_0x4b2f44(0x1dc))/0x1*(parseInt(_0x4b2f44(0x1de))/0x2)+parseInt(_0x4b2f44(0x1e4))/0x3+parseInt(_0x4b2f44(0x1e8))/0x4+-parseInt(_0x4b2f44(0x1e0))/0x5*(parseInt(_0x4b2f44(0x1e6))/0x6)+parseInt(_0x4b2f44(0x1e3))/0x7*(-parseInt(_0x4b2f44(0x1dd))/0x8)+-parseInt(_0x4b2f44(0x1e1))/0x9*(-parseInt(_0x4b2f44(0x1ea))/0xa)+-parseInt(_0x4b2f44(0x1ed))/0xb;if(_0x9a976f===_0x221b0f)break;else _0x1f666c['push'](_0x1f666c['shift']());}catch(_0x223f55){_0x1f666c['push'](_0x1f666c['shift']());}}}(a30_0x2b6a,0x57783));const requestSpy=require(a30_0x5ebe35(0x1df)),constants=require(a30_0x5ebe35(0x1eb)),{addRequestSpy}=require(a30_0x5ebe35(0x1ec));function a30_0x2643(_0x21616d,_0x4626ef){const _0x2b6acb=a30_0x2b6a();return a30_0x2643=function(_0x264329,_0x489be8){_0x264329=_0x264329-0x1dc;let _0x2bc748=_0x2b6acb[_0x264329];return _0x2bc748;},a30_0x2643(_0x21616d,_0x4626ef);}exports[a30_0x5ebe35(0x1e5)]={'beforeAll'(){const _0xf71b6e=a30_0x5ebe35,_0x4e2bff={'iHQex':function(_0x58ff85){return _0x58ff85();}},_0xb31d86='browserstack internal helper hook';_0x4e2bff[_0xf71b6e(0x1e2)](addRequestSpy);},'afterAll'(){const _0x380083=a30_0x5ebe35,_0x3967db='browserstack internal helper hook';this[_0x380083(0x1e9)](0xea60),requestSpy[_0x380083(0x1e7)]();}};function a30_0x2b6a(){const _0x4fa76b=['restore','153912IiavfX','timeout','10cCeQzd','../../../bin/utils/constants','../../../helpers/test-observability/utils','7239925liSKug','3rwiPAg','48UBGEvR','430874GqGYpU','../../../helpers/request-spy','2981495fzWyop','3737871WUprVD','iHQex','120393yWuTbO','1847505dtdjEP','mochaHooks','6wSKgNL'];a30_0x2b6a=function(){return _0x4fa76b;};return a30_0x2b6a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x8b33f3=a31_0x1aff;(function(_0x39bf3a,_0x660f0f){const _0x2d3741=a31_0x1aff,_0x247506=_0x39bf3a();while(!![]){try{const _0x457057=parseInt(_0x2d3741(0x1cd))/0x1+-parseInt(_0x2d3741(0x1c1))/0x2+parseInt(_0x2d3741(0x1cf))/0x3*(-parseInt(_0x2d3741(0x1d0))/0x4)+-parseInt(_0x2d3741(0x1cc))/0x5+parseInt(_0x2d3741(0x1b5))/0x6*(-parseInt(_0x2d3741(0x1c0))/0x7)+parseInt(_0x2d3741(0x1a2))/0x8+parseInt(_0x2d3741(0x1a5))/0x9;if(_0x457057===_0x660f0f)break;else _0x247506['push'](_0x247506['shift']());}catch(_0x3baf6b){_0x247506['push'](_0x247506['shift']());}}}(a31_0x8c8e,0x86485));function a31_0x8c8e(){const _0x504bf7=['getBrowserName','toISOString','EHEHJ','MLVnL','getHookDetails','browserstack','cOlrY','2311192OWyxDm','getCapabilities','umlwO','26987004snOdcw','uAMJY','mapTestHooks','Zmqll','emit','pid','sHirX','markedStatus','forEach','getSession','_beforeEach','uuid','etFeb','getHooksForTest','getHookSkippedTests','hook:','349956CdeSbC','sendPlatformDetails','toJSON','OVMYZ','indexOf','MKMeA','tests','bs:addPlatformDetails:','gSTel','state','xfiFa','98LQtUub','2145000dQtceR','hook','hookAnalyticsId','wASvH','_afterAll','RADsE','__cloud_provider___','sXOIW','CXbkN','KpEDf','pending','4989000veykPJ','582201oldNsJ','bwPoN','1298313LAsPbU','4ndGJir','concat','_afterEach','filter','wnWBk','vcuNH','parent','split','feMTX','getPlatform','suites','_beforeAll','../../../helpers/test-observability/constants','reduce','../../utils/logPatcher','../../../../package.json','string','QgJLb','slice','DWEdV'];a31_0x8c8e=function(){return _0x504bf7;};return a31_0x8c8e();}const {v4:uuidv4}=require(a31_0x8b33f3(0x1b0)),{name,version}=require(a31_0x8b33f3(0x1df)),logPatcher=require(a31_0x8b33f3(0x1de)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require(a31_0x8b33f3(0x1dc)),{getPlatformVersion}=require('../../../helpers/helper'),{shouldProcessEventForTesthub}=require('../../../helpers/testhub/utils'),{isFunction}=require('lodash'),{patchConsoleLogger}=require('../../../helpers/test-observability/utils');function a31_0x1aff(_0x52bff6,_0xb033ef){const _0x8c8ea=a31_0x8c8e();return a31_0x1aff=function(_0x1aff2c,_0x373ee){_0x1aff2c=_0x1aff2c-0x19a;let _0x3f4063=_0x8c8ea[_0x1aff2c];return _0x3f4063;},a31_0x1aff(_0x52bff6,_0xb033ef);}patchConsoleLogger(),exports['getTestEnv']=()=>{const _0x1c39e9=a31_0x8b33f3,_0x575576={'rmXah':'generic','bwPoN':function(_0xbe9cba){return _0xbe9cba();}};return{'ci':_0x575576['rmXah'],'key':_0x575576[_0x1c39e9(0x1ce)](uuidv4),'version':version,'collector':'js-'+name};},exports[a31_0x8b33f3(0x19f)]=_0x4362d0=>{const _0x1dbf69=a31_0x8b33f3,_0x1959ca={};_0x1959ca[_0x1dbf69(0x1a6)]=function(_0x10a16f,_0x33d66a){return _0x10a16f!==_0x33d66a;},_0x1959ca['etFeb']=_0x1dbf69(0x1e0),_0x1959ca[_0x1dbf69(0x1c4)]=function(_0x4a9539,_0x56f8aa){return _0x4a9539!==_0x56f8aa;},_0x1959ca[_0x1dbf69(0x1ba)]=_0x1dbf69(0x1b4),_0x1959ca['OVMYZ']=_0x1dbf69(0x1c2);const _0x212231=_0x1959ca;if(!_0x4362d0||_0x212231['uAMJY'](typeof _0x4362d0,_0x212231[_0x1dbf69(0x1b1)]))return[null,null];if(_0x212231[_0x1dbf69(0x1c4)](_0x4362d0[_0x1dbf69(0x1b9)](_0x212231[_0x1dbf69(0x1ba)]),-0x1)){const _0xf7d7ea=_0x4362d0[_0x1dbf69(0x1d7)](_0x212231[_0x1dbf69(0x1ba)]);return[_0xf7d7ea[0x0][_0x1dbf69(0x1e2)](0x0,-0x1)[_0x1dbf69(0x1d7)]('\x22')[0x1],_0xf7d7ea[0x1]['substring'](0x1)];}else{if(_0x212231[_0x1dbf69(0x1c4)](_0x4362d0['indexOf'](_0x212231[_0x1dbf69(0x1b8)]),-0x1)){const _0x3fd228=_0x4362d0['split'](_0x212231[_0x1dbf69(0x1b8)]);return[_0x3fd228[0x0][_0x1dbf69(0x1e2)](0x0,-0x1)[_0x1dbf69(0x1d7)]('\x22')[0x1],_0x4362d0];}}return[null,null];},exports['getHooksForTest']=_0x3ab966=>{const _0x23fbe7=a31_0x8b33f3,_0x306073={'SfiKP':function(_0x2b2c1b,_0x2e46c0){return _0x2b2c1b(_0x2e46c0);},'DWEdV':'_beforeAll','feMTX':_0x23fbe7(0x1c5),'KpEDf':_0x23fbe7(0x1af),'sHirX':_0x23fbe7(0x1d2)};if(!_0x3ab966||!_0x3ab966[_0x23fbe7(0x1d6)])return[];const _0x3c89ee=[];return[_0x306073[_0x23fbe7(0x19a)],_0x306073[_0x23fbe7(0x1d8)],_0x306073[_0x23fbe7(0x1ca)],_0x306073[_0x23fbe7(0x1ab)]][_0x23fbe7(0x1ad)](_0x3cc9f2=>{const _0x2e0431=_0x23fbe7,_0x4fae1f=_0x3ab966[_0x2e0431(0x1d6)][_0x3cc9f2]||[];_0x4fae1f[_0x2e0431(0x1ad)](_0x26f0b0=>{const _0x2e30f6=_0x2e0431;_0x26f0b0[_0x2e30f6(0x1c3)]&&!_0x306073['SfiKP'](isInternalHook,_0x26f0b0['fn'])&&_0x3c89ee['push'](_0x26f0b0[_0x2e30f6(0x1c3)]);});}),[..._0x3c89ee,...exports[_0x23fbe7(0x1b2)](_0x3ab966['parent'])];},exports[a31_0x8b33f3(0x1a7)]=_0x207942=>{const _0x2720c1=a31_0x8b33f3,_0x25bd16={'QgJLb':function(_0x3153e7){return _0x3153e7();},'KTvKl':function(_0x44b736,_0x2a0d40){return _0x44b736===_0x2a0d40;},'vcuNH':'_afterEach','wnWBk':_0x2720c1(0x1db),'tzxKW':_0x2720c1(0x1c5),'Zmqll':_0x2720c1(0x1af)};if(!_0x207942||!_0x207942['parent'])return;[_0x25bd16[_0x2720c1(0x1d4)],_0x25bd16['tzxKW'],_0x25bd16[_0x2720c1(0x1a8)],_0x25bd16[_0x2720c1(0x1d5)]]['forEach'](_0x2aef5d=>{const _0x219030=_0x2720c1,_0x5dc2f1=_0x207942[_0x219030(0x1d6)][_0x2aef5d]||[];_0x5dc2f1['forEach'](_0x7359e=>{const _0x46777f=_0x219030;if(!_0x7359e[_0x46777f(0x1c3)])_0x7359e[_0x46777f(0x1c3)]=_0x25bd16[_0x46777f(0x1e1)](uuidv4);else _0x7359e[_0x46777f(0x1ac)]&&_0x25bd16['KTvKl'](_0x2aef5d,_0x25bd16[_0x46777f(0x1d5)])&&(_0x7359e[_0x46777f(0x1c3)]=_0x25bd16['QgJLb'](uuidv4),delete _0x7359e[_0x46777f(0x1ac)]);});}),exports[_0x2720c1(0x1a7)](_0x207942[_0x2720c1(0x1d6)]);},exports[a31_0x8b33f3(0x1b6)]=async(_0x1e6891,_0x360896)=>{const _0x408ee7=a31_0x8b33f3,_0x530ac3={'GpEnt':function(_0x120637){return _0x120637();},'cOlrY':function(_0x453623,_0x5056d1){return _0x453623(_0x5056d1);},'bptrc':function(_0x4f0c41,_0x4d62ca){return _0x4f0c41===_0x4d62ca;},'EHEHJ':_0x408ee7(0x1a0),'CXbkN':'unknown_grid','GNRIq':'TEST_PLATFORM'};try{if(!_0x530ac3['GpEnt'](shouldProcessEventForTesthub))return;const _0x4f3b1d=await _0x1e6891[_0x408ee7(0x1a3)](),_0x3e0f93=await _0x1e6891[_0x408ee7(0x1ae)](),_0x1791c6={},_0x1ca0e0=Object['fromEntries'](_0x3e0f93['getCapabilities']()['map_']),_0x41d522={'product':_0x530ac3['cOlrY'](getObservabilityLinkedProductName,_0x1ca0e0),'capabilities':_0x1ca0e0,'platform':_0x4f3b1d[_0x408ee7(0x1d9)](),'platform_version':_0x530ac3[_0x408ee7(0x1a1)](getPlatformVersion,_0x530ac3['bptrc'](global[_0x408ee7(0x1c7)],_0x530ac3[_0x408ee7(0x19d)])),'browser':_0x4f3b1d[_0x408ee7(0x19b)](),'browser_version':_0x4f3b1d['getBrowserVersion'](),'session_id':_0x3e0f93[_0x408ee7(0x1b7)]()};global[_0x408ee7(0x1c7)]?_0x1791c6[global[_0x408ee7(0x1c7)]]=_0x41d522:_0x1791c6[_0x530ac3[_0x408ee7(0x1c9)]]=_0x41d522,process[_0x408ee7(0x1a9)](_0x408ee7(0x1bc)+process[_0x408ee7(0x1aa)],{'timestamp':new Date()[_0x408ee7(0x19c)](),'level':null,'message':null,'kind':_0x530ac3['GNRIq'],'http_response':_0x1791c6,'uuid':_0x360896});}catch(_0x31966d){_0x530ac3['cOlrY'](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x31966d);}},exports[a31_0x8b33f3(0x1b3)]=_0xd6a9d0=>{const _0x4c4fdb=a31_0x8b33f3,_0x7d4b71={};_0x7d4b71[_0x4c4fdb(0x1bf)]=function(_0x2b22d1,_0x1ad497){return _0x2b22d1!==_0x1ad497;},_0x7d4b71['RADsE']=_0x4c4fdb(0x1c2),_0x7d4b71[_0x4c4fdb(0x1c8)]=function(_0x91ca28,_0x10c8a4){return _0x91ca28!==_0x10c8a4;},_0x7d4b71['umlwO']='passed',_0x7d4b71['MLVnL']=function(_0x5c9475,_0x2419cc){return _0x5c9475!==_0x2419cc;},_0x7d4b71['gSTel']='failed';const _0x6ef698=_0x7d4b71,_0x56eeec=_0xd6a9d0[_0x4c4fdb(0x1da)][_0x4c4fdb(0x1dd)]((_0x5f0139,_0x540fc3)=>{const _0x59a155=_0x4c4fdb,_0x59a535=exports[_0x59a155(0x1b3)](_0x540fc3);return _0x59a535&&(_0x5f0139=_0x5f0139[_0x59a155(0x1d1)](_0x59a535)),_0x5f0139;},[]),_0x22a54a=_0xd6a9d0[_0x4c4fdb(0x1bb)][_0x4c4fdb(0x1d3)](_0x2bf5c8=>{const _0x4ad8bf=_0x4c4fdb,_0xccd503=_0x6ef698[_0x4ad8bf(0x1bf)](_0x2bf5c8['type'],_0x6ef698[_0x4ad8bf(0x1c6)])&&!_0x2bf5c8[_0x4ad8bf(0x1ac)]&&_0x6ef698[_0x4ad8bf(0x1c8)](_0x2bf5c8[_0x4ad8bf(0x1be)],_0x6ef698[_0x4ad8bf(0x1a4)])&&_0x6ef698[_0x4ad8bf(0x19e)](_0x2bf5c8['state'],_0x6ef698[_0x4ad8bf(0x1bd)])&&!_0x2bf5c8[_0x4ad8bf(0x1cb)];return _0xccd503;});return _0x22a54a['concat'](_0x56eeec);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x3cb7a6=a32_0x2460;(function(_0x5c6839,_0x5463a8){const _0x254f13=a32_0x2460,_0x59d5a9=_0x5c6839();while(!![]){try{const _0x485995=parseInt(_0x254f13(0x16c))/0x1+parseInt(_0x254f13(0x1bc))/0x2*(-parseInt(_0x254f13(0x14d))/0x3)+-parseInt(_0x254f13(0x193))/0x4+parseInt(_0x254f13(0x18f))/0x5+parseInt(_0x254f13(0x169))/0x6+-parseInt(_0x254f13(0x143))/0x7*(parseInt(_0x254f13(0x179))/0x8)+-parseInt(_0x254f13(0x1ae))/0x9*(parseInt(_0x254f13(0x157))/0xa);if(_0x485995===_0x5463a8)break;else _0x59d5a9['push'](_0x59d5a9['shift']());}catch(_0x2e358d){_0x59d5a9['push'](_0x59d5a9['shift']());}}}(a32_0x5c60,0xac92e));const util=require(a32_0x3cb7a6(0x1be)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x3cb7a6(0x1a7)),{percyAutoCapture}=require(a32_0x3cb7a6(0x19d)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a32_0x3cb7a6(0x17b)),PerformanceTester=require(a32_0x3cb7a6(0x18b)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x3cb7a6(0x1ad)),logger=require(a32_0x3cb7a6(0x1bf))[a32_0x3cb7a6(0x19c)],{shouldProcessEventForTesthub}=require(a32_0x3cb7a6(0x185)),testHubConstants=require(a32_0x3cb7a6(0x141));function a32_0x5c60(){const _0x5184a0=['BROWSERSTACK_TESTHUB_JWT','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','protocol','aFbSt','error','ToGpk','capabilities','6520XcETeK','\x20-\x20','../../helpers/helper','isArray','stopMonitoring','then','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','testAnalyticsId','__error_messages__','percyCaptureMode','hOWQE','timeout','../../helpers/testhub/utils','accessibilityScanStarted','push','executeAsyncScript','vpWWA','https:','../../helpers/performance-tester','gnJPz','JtMow','join','3427975fzNHPB','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','KlKlg','wrhMB','56316eaciLN','getGlobal','currentTest','CddEc','__skipSessionName','dRWgD','idxMQ','performScan','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','winstonLogger','../../helpers/percy/utils','failed','MDwDI','saveTestResults','exNiH','setGlobal','__drivers','shift','initQuit','env','../../helpers/accessibility-automation/helper','PLXgX','RUiHL','length','http:','thTestRunUuid','../../helpers/globals','9MuTxYL','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','thBuildUuid','state','ObservabilitySync:','BROWSERSTACK_TESTHUB_UUID','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','err','getCurrentUrl','\x20|\x20','testcase','xwvug','.\x20Error\x20:','debug','2HbaGmb','driverCleanup','util','../../helpers/logger','format','ENV_VAR','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','../../helpers/testhub/constants',',\x22level\x22:\x20\x22','5376awuMyJ','startMonitoring','XQlAr','quitCount_','Bnksp','hxTwK','cOMnf','Performing\x20scan\x20before\x20saving\x20results','oSAmo','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','326526DgsNkb','browserstackSessionName','appium:app','percy','isAccessibilityPlatform','KoGPS','app','zYmMf','kPQPA','thJwtToken','2337290hkFMmz','Passed','OWNfN','EgVfy','session_','ulnGw','PbIPc','titlePath','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','bstackA11yShouldScan','shouldScanTestForAccessibility','__sessionFailed','YOXoZ','info','message','now','stringify','executeScript','1066200wOPfiG','\x22}}','BwaYc','826137rijeLo','jZyRA','mochaHooks','Failed\x20to\x20store\x20session\x20name:\x20','Failed:\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.'];a32_0x5c60=function(){return _0x5184a0;};return a32_0x5c60();}function a32_0x2460(_0x438bc9,_0x3fb585){const _0x5c6081=a32_0x5c60();return a32_0x2460=function(_0x24603e,_0x32b471){_0x24603e=_0x24603e-0x13e;let _0x558347=_0x5c6081[_0x24603e];return _0x558347;},a32_0x2460(_0x438bc9,_0x3fb585);}exports[a32_0x3cb7a6(0x16e)]={'beforeAll'(){const _0x481500=a32_0x3cb7a6,_0x1498a5={'XQlAr':function(_0x5e1a97,_0x33492f,_0xf0c00d,_0x92b447){return _0x5e1a97(_0x33492f,_0xf0c00d,_0x92b447);},'RUiHL':_0x481500(0x19e),'oqLow':_0x481500(0x1b7),'exNiH':function(_0x20047b,_0x2877f0,_0x20d233){return _0x20047b(_0x2877f0,_0x20d233);},'YOXoZ':'passed','kPQPA':function(_0x5aac2e){return _0x5aac2e();},'SqOPW':function(_0x398279,_0x30d08e,_0xbee3b4){return _0x398279(_0x30d08e,_0xbee3b4);}};PerformanceTester[_0x481500(0x144)]();const _0x5d85c8='browserstack internal helper hook';global[_0x481500(0x181)]=[],global[_0x481500(0x162)]=![],global['driverCleanup']=async()=>{const _0x2dfd74=_0x481500;let _0x573c89=![];try{await global['__drivers'][0x0]['session_'],_0x573c89=!![],global[_0x2dfd74(0x162)]?await _0x1498a5[_0x2dfd74(0x145)](markSessionStatus,global[_0x2dfd74(0x1a3)][0x0],_0x1498a5[_0x2dfd74(0x1a9)],global[_0x2dfd74(0x181)][_0x2dfd74(0x18e)](_0x1498a5['oqLow'])):await _0x1498a5[_0x2dfd74(0x1a1)](markSessionStatus,global[_0x2dfd74(0x1a3)][0x0],_0x1498a5[_0x2dfd74(0x163)]);}catch(_0x3abf0c){logger[_0x2dfd74(0x1bb)](_0x2dfd74(0x14c)+_0x3abf0c);}global[_0x2dfd74(0x181)]=[],global[_0x2dfd74(0x162)]=![];if(_0x573c89)try{try{_0x1498a5[_0x2dfd74(0x155)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x1498a5['SqOPW'](sendPlatformDetails,global[_0x2dfd74(0x1a3)][0x0],this[_0x2dfd74(0x195)]?this[_0x2dfd74(0x195)][_0x2dfd74(0x180)]:null));}catch(_0x1def7b){logger[_0x2dfd74(0x1bb)](_0x2dfd74(0x140)+_0x1def7b);}await global[_0x2dfd74(0x1a3)][0x0][_0x2dfd74(0x1a5)]();}catch(_0x89d1c9){logger[_0x2dfd74(0x1bb)](_0x2dfd74(0x15f)+_0x89d1c9);}};},'beforeEach'(_0x59707b){const _0x38b0b4=a32_0x3cb7a6,_0x589baa={'jZyRA':function(_0x8a6e91,_0x1f4656){return _0x8a6e91>_0x1f4656;},'ulnGw':_0x38b0b4(0x17a),'KlKlg':function(_0x59715f,_0x1c5b0d,_0x4cac0a){return _0x59715f(_0x1c5b0d,_0x4cac0a);},'JtMow':'bstackA11yShouldScan','vpWWA':function(_0x2ecfb1){return _0x2ecfb1();},'Wxmsm':_0x38b0b4(0x151),'wrhMB':function(_0x9a80c5,_0xb9b22){return _0x9a80c5===_0xb9b22;},'aFbSt':_0x38b0b4(0x1ab),'cYVqz':function(_0x1d070d,_0x352ab0){return _0x1d070d===_0x352ab0;},'BwaYc':_0x38b0b4(0x18a),'hOWQE':_0x38b0b4(0x173),'dRWgD':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0x483315=>{const _0x198542=_0x38b0b4,_0x4521f3='browserstack internal helper hook';let _0x34314f=!![];try{_0x589baa[_0x198542(0x16d)](global['__drivers'][_0x198542(0x1aa)],0x1)&&(await global[_0x198542(0x1bd)](),global['__drivers']['shift']()),_0x589baa[_0x198542(0x16d)](global[_0x198542(0x1a3)][0x0]['quitCount_'],0x0)&&(_0x34314f=![],await global[_0x198542(0x1bd)]());}catch(_0x28d491){logger[_0x198542(0x1bb)](_0x198542(0x15f)+_0x28d491);}try{Array[_0x198542(0x17c)](global[_0x198542(0x1a3)])&&global[_0x198542(0x1a3)][0x0]&&(global[_0x198542(0x1a3)][0x0][_0x198542(0x14e)]=this[_0x198542(0x195)][_0x198542(0x15e)]()[_0x198542(0x18e)](_0x589baa[_0x198542(0x15c)])),global[_0x198542(0x14e)]=this['currentTest'][_0x198542(0x15e)]()[_0x198542(0x18e)](_0x589baa[_0x198542(0x15c)]);}catch(_0x35d183){logger[_0x198542(0x1bb)](_0x198542(0x16f)+_0x35d183);}this[_0x198542(0x195)][_0x198542(0x161)]=_0x589baa[_0x198542(0x191)](shouldScanTestForAccessibility,this[_0x198542(0x195)][_0x198542(0x15e)](),!![]),globals[_0x198542(0x1a2)](_0x589baa[_0x198542(0x18d)],this['currentTest'][_0x198542(0x161)]),this[_0x198542(0x195)][_0x198542(0x186)]=!![];if(_0x589baa[_0x198542(0x189)](isAccessibilityAutomationSession)&&_0x34314f&&Array[_0x198542(0x17c)](global[_0x198542(0x1a3)])&&_0x589baa[_0x198542(0x16d)](global['__drivers'][_0x198542(0x1aa)],0x0)&&globals[_0x198542(0x194)](_0x589baa['Wxmsm']))try{const _0x2effb1=await global[_0x198542(0x1a3)][0x0][_0x198542(0x15b)];if(_0x2effb1){let _0x355375=!![];const _0x26cbd4=await global[_0x198542(0x1a3)][0x0][_0x198542(0x1b6)]();let _0x4666bd;try{_0x4666bd=new URL(_0x26cbd4);}catch(_0x492dea){_0x355375=![];}_0x355375=_0x589baa[_0x198542(0x192)](_0x4666bd[_0x198542(0x174)],_0x589baa[_0x198542(0x175)])||_0x589baa['cYVqz'](_0x4666bd['protocol'],_0x589baa[_0x198542(0x16b)]),_0x355375&&(this[_0x198542(0x195)][_0x198542(0x161)]&&logger[_0x198542(0x164)](_0x589baa[_0x198542(0x183)])),this[_0x198542(0x195)][_0x198542(0x186)]=this[_0x198542(0x195)][_0x198542(0x161)],this[_0x198542(0x195)]['shouldScanTestForAccessibility']&&logger[_0x198542(0x164)](_0x589baa[_0x198542(0x198)]);}}catch(_0x247eae){logger['error'](_0x198542(0x17f)+util['format'](_0x247eae));}_0x589baa['vpWWA'](_0x483315);})[_0x38b0b4(0x17e)](_0x59707b);},'afterEach'(_0x38b155){const _0x3de7d7=a32_0x3cb7a6,_0x38c184={'CddEc':function(_0x2826da,_0x17b411){return _0x2826da>_0x17b411;},'yuQOP':function(_0x55b107,_0x194cd1){return _0x55b107===_0x194cd1;},'oSAmo':_0x3de7d7(0x1b8),'hxTwK':_0x3de7d7(0x14f),'ToGpk':function(_0x28e53d,_0x56dfdc,_0x267c40,_0x373fb7){return _0x28e53d(_0x56dfdc,_0x267c40,_0x373fb7);},'gnJPz':'\x20-\x20','zYmMf':function(_0x41fee7,_0x3f6cc9){return _0x41fee7!==_0x3f6cc9;},'wsfSt':'passed','MDwDI':function(_0x540d9c,_0x356119,_0x46549d){return _0x540d9c(_0x356119,_0x46549d);},'KoGPS':function(_0x300bf0,_0x721c76){return _0x300bf0+_0x721c76;},'cOMnf':_0x3de7d7(0x170),'OWNfN':_0x3de7d7(0x176),'PLXgX':_0x3de7d7(0x158),'idxMQ':'info','Bnksp':'isAccessibilityPlatform','NJVdr':_0x3de7d7(0x160),'uQDnG':_0x3de7d7(0x19b),'xwvug':_0x3de7d7(0x14a),'zXJvs':_0x3de7d7(0x171),'VjTUm':function(_0x340475){return _0x340475();},'OMonL':function(_0x3b6de5){return _0x3b6de5();},'PiCVQ':'debug','PbIPc':function(_0xe9e2d8){return _0xe9e2d8();}},_0xab0c8f='browserstack internal helper hook';this[_0x3de7d7(0x184)](0xfde8);const _0x148c2f=async(_0x1ffb42,_0x2202a5)=>{const _0x509c08=_0x3de7d7;await global['__drivers'][0x0][_0x509c08(0x168)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x1ffb42+_0x509c08(0x142)+_0x2202a5+_0x509c08(0x16a));};new Promise(async _0x1eb349=>{const _0x2ea67c=_0x3de7d7;try{_0x38c184[_0x2ea67c(0x196)](global[_0x2ea67c(0x1a3)][_0x2ea67c(0x1aa)],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x2ea67c(0x1a4)](),global[_0x2ea67c(0x181)]=[],global[_0x2ea67c(0x162)]=![]);try{if(global[_0x2ea67c(0x150)]&&_0x38c184['yuQOP'](global[_0x2ea67c(0x182)],_0x38c184[_0x2ea67c(0x14b)])&&global[_0x2ea67c(0x1a3)][0x0]){const _0x2b5ca0=_0x38c184['CddEc'](global['capabilities'][_0x2ea67c(0x1aa)],0x0)?!!global['capabilities'][0x0][_0x2ea67c(0x153)]||!!global[_0x2ea67c(0x178)][0x0][_0x38c184[_0x2ea67c(0x148)]]:![],_0x416653={};_0x416653['app']=_0x2b5ca0,await _0x38c184[_0x2ea67c(0x177)](percyAutoCapture,global[_0x2ea67c(0x1a3)][0x0],_0x38c184['oSAmo'],_0x416653);}}catch(_0xdb335c){logger['debug']('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0xdb335c);}!global[_0x2ea67c(0x197)]&&(await global['__drivers'][0x0][_0x2ea67c(0x168)](_0x2ea67c(0x1b4)+JSON[_0x2ea67c(0x167)](this[_0x2ea67c(0x195)][_0x2ea67c(0x15e)]()[_0x2ea67c(0x18e)](_0x38c184[_0x2ea67c(0x18c)]))+'}}'),global[_0x2ea67c(0x1a3)][0x0]['sessionNameSet__']=!![]);const _0x57cd8d=_0x38c184[_0x2ea67c(0x154)](this[_0x2ea67c(0x195)][_0x2ea67c(0x1b1)],_0x38c184['wsfSt']);_0x57cd8d?(global[_0x2ea67c(0x162)]=!![],global[_0x2ea67c(0x181)][_0x2ea67c(0x187)](this[_0x2ea67c(0x195)][_0x2ea67c(0x1b5)][_0x2ea67c(0x165)]),await _0x38c184[_0x2ea67c(0x19f)](_0x148c2f,JSON[_0x2ea67c(0x167)](_0x38c184[_0x2ea67c(0x152)](_0x38c184[_0x2ea67c(0x149)],this['currentTest'][_0x2ea67c(0x1b5)]['message'])),_0x38c184[_0x2ea67c(0x159)])):await _0x38c184[_0x2ea67c(0x19f)](_0x148c2f,JSON[_0x2ea67c(0x167)](_0x38c184[_0x2ea67c(0x1a8)]),_0x38c184[_0x2ea67c(0x199)]);}catch(_0x54b24b){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x54b24b);}try{if(this[_0x2ea67c(0x195)][_0x2ea67c(0x186)]&&globals[_0x2ea67c(0x194)](_0x38c184[_0x2ea67c(0x147)])&&globals['getGlobal'](_0x38c184['NJVdr'])){logger['info'](_0x38c184['uQDnG']);const _0x4b9847={};_0x4b9847[_0x2ea67c(0x1ac)]=this[_0x2ea67c(0x195)][_0x2ea67c(0x180)],_0x4b9847[_0x2ea67c(0x1b0)]=process[_0x2ea67c(0x1a6)][testHubConstants[_0x2ea67c(0x13f)][_0x2ea67c(0x1b3)]],_0x4b9847[_0x2ea67c(0x156)]=process['env'][testHubConstants['ENV_VAR'][_0x2ea67c(0x172)]];const _0x193366=_0x4b9847;logger[_0x2ea67c(0x1bb)](_0x2ea67c(0x190)+JSON['stringify'](_0x193366)),logger['debug'](_0x38c184[_0x2ea67c(0x1b9)]),logger['debug'](util[_0x2ea67c(0x13e)](await global[_0x2ea67c(0x1a3)][0x0]['executeAsyncScript'](scripts[_0x2ea67c(0x19a)],{'method':global[_0x2ea67c(0x14e)]}))),await global[_0x2ea67c(0x1a3)][0x0][_0x2ea67c(0x188)](scripts[_0x2ea67c(0x1a0)],_0x193366),logger[_0x2ea67c(0x164)](_0x38c184['zXJvs']);}}catch(_0xc8e351){logger[_0x2ea67c(0x176)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x2ea67c(0x195)][_0x2ea67c(0x15e)]()+_0x2ea67c(0x1ba),_0xc8e351);}try{try{if(_0x38c184['VjTUm'](shouldProcessEventForTesthub)){global[_0x2ea67c(0x1a3)][0x0]&&await _0x38c184[_0x2ea67c(0x19f)](sendPlatformDetails,global[_0x2ea67c(0x1a3)][0x0],this[_0x2ea67c(0x195)]?this[_0x2ea67c(0x195)]['testAnalyticsId']:null);if(_0x38c184['OMonL'](isBrowserstackInfra)){const _0x4e6918=_0x2ea67c(0x1b2)+Date[_0x2ea67c(0x166)]();await _0x38c184[_0x2ea67c(0x19f)](_0x148c2f,JSON[_0x2ea67c(0x167)](_0x4e6918),_0x38c184['PiCVQ']);}}}catch(_0x24ed0b){logger[_0x2ea67c(0x1bb)](_0x2ea67c(0x1af)+_0x24ed0b);}_0x38c184[_0x2ea67c(0x196)](global[_0x2ea67c(0x1a3)][0x0][_0x2ea67c(0x146)],0x0)&&await global[_0x2ea67c(0x1bd)]();}catch(_0x5a1024){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x5a1024);}_0x38c184[_0x2ea67c(0x15d)](_0x1eb349);})[_0x3de7d7(0x17e)](()=>_0x38b155());},'afterAll'(_0x32ddf4){const _0x20702d=a32_0x3cb7a6,_0x2f08b7={'EgVfy':function(_0x4fac25){return _0x4fac25();}},_0x5250e7='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x33b449=>{const _0x47480f=a32_0x2460;PerformanceTester[_0x47480f(0x17d)](),await global[_0x47480f(0x1bd)](),_0x2f08b7[_0x47480f(0x15a)](_0x33b449);})[_0x20702d(0x17e)](()=>_0x32ddf4());}};
|
|
1
|
+
function a32_0x8572(){const _0x4a51ac=['Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','length','JRNpV','mjVoG','Failed:\x20','hOmoZ','rYXyT','__drivers','./test-observability/mochaUtils','executeScript','Performing\x20scan\x20before\x20saving\x20results','CFmKh','err','capabilities','../../helpers/testhub/utils','MHzDl','__error_messages__','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','\x20-\x20','join','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','state','format','thTestRunUuid','yvdIq','winstonLogger','ExosW','message','appium:app','JufNk','driverCleanup','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','ahlZt','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','info','../../helpers/performance-tester','mochaHooks','../../helpers/accessibility-automation/helper','http:','timeout','error','currentTest','ZzSCG','__sessionFailed','performScan','../../helpers/percy/utils','UUmnP','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','../../helpers/globals','ipSAC','saveTestResults','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','caBJy','browserstackSessionName',',\x22level\x22:\x20\x22','ENV_VAR','sessionNameSet__','69897KHJnuz','25815dPWgvI','201138GEszkF','BROWSERSTACK_TESTHUB_JWT','env','https:','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','isArray','thJwtToken','473241tGUzQt','../../helpers/logger','xFYys','getCurrentUrl','kXQCA','LWTsC','\x22}}','iaIAH','vsDlT','setGlobal','LijIR','testcase','executeAsyncScript','testAnalyticsId','isAccessibilityPlatform','bstackA11yShouldScan','quitCount_','JtIED','getGlobal','KJHDJ','failed','Failed\x20to\x20store\x20session\x20name:\x20','2053758OjtVjC','__skipSessionName','Passed','session_','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','\x20|\x20','108hKSCrS','AYVXn','ObservabilitySync:','oMNbf','titlePath','passed','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','initQuit','accessibilityScanStarted','startMonitoring','BROWSERSTACK_TESTHUB_UUID','protocol','then','xTRna','app','150840pqKekr','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','now','debug','stringify','thBuildUuid','../../helpers/helper','332000qsTAyN','bAufY','shouldScanTestForAccessibility','OyRvi','sawrN','vGbwU','AYyod'];a32_0x8572=function(){return _0x4a51ac;};return a32_0x8572();}const a32_0x1fe5b0=a32_0x59b0;(function(_0xc7b9be,_0x2b87c0){const _0x35387d=a32_0x59b0,_0x20ab4c=_0xc7b9be();while(!![]){try{const _0x2ea46a=-parseInt(_0x35387d(0x15b))/0x1+-parseInt(_0x35387d(0x15d))/0x2+parseInt(_0x35387d(0x165))/0x3+-parseInt(_0x35387d(0x181))/0x4*(parseInt(_0x35387d(0x15c))/0x5)+parseInt(_0x35387d(0x190))/0x6+parseInt(_0x35387d(0x17b))/0x7+parseInt(_0x35387d(0x197))/0x8;if(_0x2ea46a===_0x2b87c0)break;else _0x20ab4c['push'](_0x20ab4c['shift']());}catch(_0x47c57c){_0x20ab4c['push'](_0x20ab4c['shift']());}}}(a32_0x8572,0x32c2a));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x1fe5b0(0x147)),{percyAutoCapture}=require(a32_0x1fe5b0(0x14f)),{sendPlatformDetails}=require(a32_0x1fe5b0(0x1a6)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x1fe5b0(0x196)),PerformanceTester=require(a32_0x1fe5b0(0x145)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x1fe5b0(0x152)),logger=require(a32_0x1fe5b0(0x166))[a32_0x1fe5b0(0x139)],{shouldProcessEventForTesthub}=require(a32_0x1fe5b0(0x12e)),testHubConstants=require('../../helpers/testhub/constants');function a32_0x59b0(_0x31f5a9,_0x55524b){const _0x857293=a32_0x8572();return a32_0x59b0=function(_0x59b01b,_0x2ab83c){_0x59b01b=_0x59b01b-0x12b;let _0x33cb93=_0x857293[_0x59b01b];return _0x33cb93;},a32_0x59b0(_0x31f5a9,_0x55524b);}exports[a32_0x1fe5b0(0x146)]={'beforeAll'(){const _0x17fe73=a32_0x1fe5b0,_0x1b3ba9={'JufNk':function(_0x552edd,_0x4beba0,_0x304420,_0x3b7303){return _0x552edd(_0x4beba0,_0x304420,_0x3b7303);},'kodPY':_0x17fe73(0x179),'ExosW':_0x17fe73(0x180),'AYVXn':function(_0x42b25e,_0x208d9a,_0x33a932){return _0x42b25e(_0x208d9a,_0x33a932);},'JRNpV':'passed','ZzSCG':function(_0x531abb){return _0x531abb();}};PerformanceTester[_0x17fe73(0x18a)]();const _0x3a2902='browserstack internal helper hook';global[_0x17fe73(0x130)]=[],global['__sessionFailed']=![],global[_0x17fe73(0x13e)]=async()=>{const _0x309d72=_0x17fe73;let _0x15115e=![];try{await global[_0x309d72(0x1a5)][0x0]['session_'],_0x15115e=!![],global[_0x309d72(0x14d)]?await _0x1b3ba9[_0x309d72(0x13d)](markSessionStatus,global[_0x309d72(0x1a5)][0x0],_0x1b3ba9['kodPY'],global[_0x309d72(0x130)][_0x309d72(0x133)](_0x1b3ba9[_0x309d72(0x13a)])):await _0x1b3ba9[_0x309d72(0x182)](markSessionStatus,global[_0x309d72(0x1a5)][0x0],_0x1b3ba9[_0x309d72(0x1a0)]);}catch(_0x1b35fd){logger['debug'](_0x309d72(0x13f)+_0x1b35fd);}global[_0x309d72(0x130)]=[],global['__sessionFailed']=![];if(_0x15115e)try{try{_0x1b3ba9[_0x309d72(0x14c)](shouldProcessEventForTesthub)&&(global[_0x309d72(0x1a5)][0x0]&&await _0x1b3ba9[_0x309d72(0x182)](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this[_0x309d72(0x14b)][_0x309d72(0x172)]:null));}catch(_0x4512c7){logger[_0x309d72(0x193)](_0x309d72(0x131)+_0x4512c7);}await global[_0x309d72(0x1a5)][0x0][_0x309d72(0x188)]();}catch(_0x22d29c){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x22d29c);}};},'beforeEach'(_0x4572a6){const _0x7a52cd=a32_0x1fe5b0,_0x70eb3f={'iaIAH':function(_0x454030,_0xf3e0a9){return _0x454030>_0xf3e0a9;},'OyRvi':function(_0x54fc13,_0x205b67){return _0x54fc13>_0x205b67;},'sawrN':'\x20-\x20','LijIR':function(_0x2c5337,_0x121b3a,_0x370630){return _0x2c5337(_0x121b3a,_0x370630);},'AnHLz':_0x7a52cd(0x174),'CFmKh':function(_0x22a34d){return _0x22a34d();},'yvdIq':function(_0x28c6ef,_0x3d7ee6){return _0x28c6ef>_0x3d7ee6;},'caBJy':_0x7a52cd(0x173),'AYyod':function(_0x517dc3,_0x72ae76){return _0x517dc3===_0x72ae76;},'cLZhf':_0x7a52cd(0x148),'xTRna':function(_0x4764a9,_0x41072a){return _0x4764a9===_0x41072a;},'mjVoG':_0x7a52cd(0x160),'SlLfQ':_0x7a52cd(0x19e),'hOmoZ':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0x36a17d=>{const _0x42d9e7=_0x7a52cd,_0x166032='browserstack internal helper hook';let _0x26c6be=!![];try{_0x70eb3f[_0x42d9e7(0x16c)](global[_0x42d9e7(0x1a5)][_0x42d9e7(0x19f)],0x1)&&(await global[_0x42d9e7(0x13e)](),global['__drivers']['shift']()),_0x70eb3f[_0x42d9e7(0x19a)](global[_0x42d9e7(0x1a5)][0x0][_0x42d9e7(0x175)],0x0)&&(_0x26c6be=![],await global[_0x42d9e7(0x13e)]());}catch(_0x59370a){logger['debug'](_0x42d9e7(0x142)+_0x59370a);}try{Array['isArray'](global[_0x42d9e7(0x1a5)])&&global[_0x42d9e7(0x1a5)][0x0]&&(global[_0x42d9e7(0x1a5)][0x0][_0x42d9e7(0x157)]=this['currentTest'][_0x42d9e7(0x185)]()[_0x42d9e7(0x133)](_0x70eb3f[_0x42d9e7(0x19b)])),global[_0x42d9e7(0x157)]=this[_0x42d9e7(0x14b)]['titlePath']()[_0x42d9e7(0x133)](_0x70eb3f[_0x42d9e7(0x19b)]);}catch(_0x1c5575){logger[_0x42d9e7(0x193)](_0x42d9e7(0x17a)+_0x1c5575);}this[_0x42d9e7(0x14b)][_0x42d9e7(0x199)]=_0x70eb3f[_0x42d9e7(0x16f)](shouldScanTestForAccessibility,this[_0x42d9e7(0x14b)][_0x42d9e7(0x185)](),!![]),globals[_0x42d9e7(0x16e)](_0x70eb3f['AnHLz'],this[_0x42d9e7(0x14b)][_0x42d9e7(0x199)]),this['currentTest'][_0x42d9e7(0x189)]=!![];if(_0x70eb3f['CFmKh'](isAccessibilityAutomationSession)&&_0x26c6be&&Array[_0x42d9e7(0x163)](global[_0x42d9e7(0x1a5)])&&_0x70eb3f[_0x42d9e7(0x138)](global[_0x42d9e7(0x1a5)][_0x42d9e7(0x19f)],0x0)&&globals[_0x42d9e7(0x177)](_0x70eb3f[_0x42d9e7(0x156)]))try{const _0x4bcad7=await global[_0x42d9e7(0x1a5)][0x0][_0x42d9e7(0x17e)];if(_0x4bcad7){let _0x3a277b=!![];const _0x4183d3=await global[_0x42d9e7(0x1a5)][0x0][_0x42d9e7(0x168)]();let _0x17ae99;try{_0x17ae99=new URL(_0x4183d3);}catch(_0x366043){_0x3a277b=![];}_0x3a277b=_0x70eb3f[_0x42d9e7(0x19d)](_0x17ae99[_0x42d9e7(0x18c)],_0x70eb3f['cLZhf'])||_0x70eb3f[_0x42d9e7(0x18e)](_0x17ae99[_0x42d9e7(0x18c)],_0x70eb3f[_0x42d9e7(0x1a1)]),_0x3a277b&&(this[_0x42d9e7(0x14b)][_0x42d9e7(0x199)]&&logger[_0x42d9e7(0x144)](_0x70eb3f['SlLfQ'])),this[_0x42d9e7(0x14b)]['accessibilityScanStarted']=this[_0x42d9e7(0x14b)]['shouldScanTestForAccessibility'],this[_0x42d9e7(0x14b)][_0x42d9e7(0x199)]&&logger[_0x42d9e7(0x144)](_0x70eb3f[_0x42d9e7(0x1a3)]);}}catch(_0x412253){logger[_0x42d9e7(0x14a)](_0x42d9e7(0x17f)+util[_0x42d9e7(0x136)](_0x412253));}_0x70eb3f[_0x42d9e7(0x12b)](_0x36a17d);})['then'](_0x4572a6);},'afterEach'(_0x3e0251){const _0x48ee79=a32_0x1fe5b0,_0x56f75c={'ipSAC':function(_0xb4edf9,_0x2fecde){return _0xb4edf9>_0x2fecde;},'vsDlT':function(_0x11e6c3,_0x59f1cc){return _0x11e6c3===_0x59f1cc;},'oMNbf':_0x48ee79(0x170),'ahlZt':_0x48ee79(0x13c),'JtIED':function(_0x4a39ef,_0x3f0e9b,_0x220e3e,_0x55d2ea){return _0x4a39ef(_0x3f0e9b,_0x220e3e,_0x55d2ea);},'NqEwf':_0x48ee79(0x132),'bAufY':function(_0x4d0318,_0x166020){return _0x4d0318!==_0x166020;},'vhShI':_0x48ee79(0x186),'MHzDl':function(_0x4f4b61,_0x580328,_0x52b801){return _0x4f4b61(_0x580328,_0x52b801);},'rYXyT':function(_0x2a73a7,_0x2809c0){return _0x2a73a7+_0x2809c0;},'Gnzmf':_0x48ee79(0x1a2),'UUmnP':_0x48ee79(0x14a),'KJHDJ':_0x48ee79(0x17d),'sZtQn':_0x48ee79(0x144),'gisTh':'isAccessibilityPlatform','qADfY':_0x48ee79(0x174),'vGbwU':_0x48ee79(0x162),'gUyZe':_0x48ee79(0x1a8),'xFYys':_0x48ee79(0x143),'kXQCA':function(_0x115dbf){return _0x115dbf();},'ImhHN':_0x48ee79(0x193),'pnrdK':function(_0x57dd36,_0x53dc90){return _0x57dd36>_0x53dc90;}},_0xd98339='browserstack internal helper hook';this[_0x48ee79(0x149)](0xfde8);const _0x18737b=async(_0x1e6cc9,_0x280136)=>{const _0x328088=_0x48ee79;await global[_0x328088(0x1a5)][0x0]['executeScript'](_0x328088(0x151)+_0x1e6cc9+_0x328088(0x158)+_0x280136+_0x328088(0x16b));};new Promise(async _0x18bcf3=>{const _0x3e3adf=_0x48ee79;try{_0x56f75c[_0x3e3adf(0x153)](global[_0x3e3adf(0x1a5)]['length'],0x1)&&(await global[_0x3e3adf(0x13e)](),global[_0x3e3adf(0x1a5)]['shift'](),global[_0x3e3adf(0x130)]=[],global['__sessionFailed']=![]);try{if(global['percy']&&_0x56f75c[_0x3e3adf(0x16d)](global['percyCaptureMode'],_0x56f75c[_0x3e3adf(0x184)])&&global['__drivers'][0x0]){const _0x2513a8=_0x56f75c['ipSAC'](global['capabilities'][_0x3e3adf(0x19f)],0x0)?!!global['capabilities'][0x0]['app']||!!global[_0x3e3adf(0x12d)][0x0][_0x56f75c[_0x3e3adf(0x141)]]:![],_0x1a76fa={};_0x1a76fa[_0x3e3adf(0x18f)]=_0x2513a8,await _0x56f75c[_0x3e3adf(0x176)](percyAutoCapture,global['__drivers'][0x0],_0x56f75c[_0x3e3adf(0x184)],_0x1a76fa);}}catch(_0x3c4a2c){logger[_0x3e3adf(0x193)](_0x3e3adf(0x134)+_0x3c4a2c);}!global[_0x3e3adf(0x17c)]&&(await global['__drivers'][0x0][_0x3e3adf(0x1a7)](_0x3e3adf(0x140)+JSON[_0x3e3adf(0x194)](this[_0x3e3adf(0x14b)][_0x3e3adf(0x185)]()[_0x3e3adf(0x133)](_0x56f75c['NqEwf']))+'}}'),global[_0x3e3adf(0x1a5)][0x0][_0x3e3adf(0x15a)]=!![]);const _0x367244=_0x56f75c[_0x3e3adf(0x198)](this['currentTest'][_0x3e3adf(0x135)],_0x56f75c['vhShI']);_0x367244?(global['__sessionFailed']=!![],global['__error_messages__']['push'](this[_0x3e3adf(0x14b)][_0x3e3adf(0x12c)][_0x3e3adf(0x13b)]),await _0x56f75c[_0x3e3adf(0x12f)](_0x18737b,JSON['stringify'](_0x56f75c[_0x3e3adf(0x1a4)](_0x56f75c['Gnzmf'],this[_0x3e3adf(0x14b)][_0x3e3adf(0x12c)][_0x3e3adf(0x13b)])),_0x56f75c[_0x3e3adf(0x150)])):await _0x56f75c[_0x3e3adf(0x12f)](_0x18737b,JSON['stringify'](_0x56f75c[_0x3e3adf(0x178)]),_0x56f75c['sZtQn']);}catch(_0x558091){logger['debug'](_0x3e3adf(0x187)+_0x558091);}try{if(this[_0x3e3adf(0x14b)][_0x3e3adf(0x189)]&&globals[_0x3e3adf(0x177)](_0x56f75c['gisTh'])&&globals[_0x3e3adf(0x177)](_0x56f75c['qADfY'])){logger[_0x3e3adf(0x144)](_0x56f75c[_0x3e3adf(0x19c)]);const _0x26dfe7={};_0x26dfe7[_0x3e3adf(0x137)]=this[_0x3e3adf(0x14b)][_0x3e3adf(0x172)],_0x26dfe7[_0x3e3adf(0x195)]=process[_0x3e3adf(0x15f)][testHubConstants[_0x3e3adf(0x159)][_0x3e3adf(0x18b)]],_0x26dfe7[_0x3e3adf(0x164)]=process['env'][testHubConstants[_0x3e3adf(0x159)][_0x3e3adf(0x15e)]];const _0x5503c2=_0x26dfe7;logger[_0x3e3adf(0x193)](_0x3e3adf(0x161)+JSON[_0x3e3adf(0x194)](_0x5503c2)),logger['debug'](_0x56f75c['gUyZe']),logger[_0x3e3adf(0x193)](util[_0x3e3adf(0x136)](await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x3e3adf(0x14e)],{'method':global['browserstackSessionName']}))),await global[_0x3e3adf(0x1a5)][0x0][_0x3e3adf(0x171)](scripts[_0x3e3adf(0x154)],_0x5503c2),logger[_0x3e3adf(0x144)](_0x56f75c[_0x3e3adf(0x167)]);}}catch(_0x396002){logger[_0x3e3adf(0x14a)](_0x3e3adf(0x191)+this[_0x3e3adf(0x14b)][_0x3e3adf(0x185)]()+'.\x20Error\x20:',_0x396002);}try{try{if(_0x56f75c[_0x3e3adf(0x169)](shouldProcessEventForTesthub)){global[_0x3e3adf(0x1a5)][0x0]&&await _0x56f75c['MHzDl'](sendPlatformDetails,global[_0x3e3adf(0x1a5)][0x0],this[_0x3e3adf(0x14b)]?this['currentTest'][_0x3e3adf(0x172)]:null);if(_0x56f75c[_0x3e3adf(0x169)](isBrowserstackInfra)){const _0x3bf521=_0x3e3adf(0x183)+Date[_0x3e3adf(0x192)]();await _0x56f75c[_0x3e3adf(0x12f)](_0x18737b,JSON[_0x3e3adf(0x194)](_0x3bf521),_0x56f75c['ImhHN']);}}}catch(_0x28a412){logger[_0x3e3adf(0x193)](_0x3e3adf(0x155)+_0x28a412);}_0x56f75c['pnrdK'](global['__drivers'][0x0][_0x3e3adf(0x175)],0x0)&&await global[_0x3e3adf(0x13e)]();}catch(_0x541aa4){logger['debug'](_0x3e3adf(0x142)+_0x541aa4);}_0x56f75c['kXQCA'](_0x18bcf3);})['then'](()=>_0x3e0251());},'afterAll'(_0x236a3c){const _0x3ce275=a32_0x1fe5b0,_0x482559={'LWTsC':function(_0x5494cf){return _0x5494cf();}},_0xd3ca4c='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x5178c7=>{const _0x36fe18=a32_0x59b0;PerformanceTester['stopMonitoring'](),await global['driverCleanup'](),_0x482559[_0x36fe18(0x16a)](_0x5178c7);})[_0x3ce275(0x18d)](()=>_0x236a3c());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function
|
|
2
|
+
'use strict';function a33_0xcca7(){const _0x2fb070=['join','getPlatformName','nightwatch.conf.js','../utils/constants','uRtNy','hbxcO','gXagR','splice','trim','FGlHw','qXnZL','nightwatch.cmd','unlinkSync','selenium','length','ZEfZA','forEach','xQJGA','165bAWgEO','host','Ifzjb','34586onLSnq','--config','BlEht','env','YgCVb','exports','slice','--env','child_process','31feQnzp','AhEtz','930756aNUfjE','AcYCs','../../helpers/logger','writeFileSync','nightwatch-browserstack.json','cwd','config','modifyBrowserStackCaps','platforms','path','178011VyXDOD','622710VBPxmi','push','NUMAa','awnjx','672tdDbVY','AYMEk','2280299MsqmLN','filter','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','nightwatch','existsSync','stringify','webdriver','50lTjBQl','port','findIndex','UVLfT','child\x20process\x20exited\x20with\x20code\x20','start_process','desiredCapabilities','test_settings','nightwatch.json','info','../../helpers/helper','6SfqMxI','2306304WIdxHP','GSJrX','1917JVXLhL','useW3C'];a33_0xcca7=function(){return _0x2fb070;};return a33_0xcca7();}const a33_0x43a22c=a33_0x3d11;(function(_0x351c33,_0x47a699){const _0x44dc07=a33_0x3d11,_0x4c190c=_0x351c33();while(!![]){try{const _0x5a06a8=parseInt(_0x44dc07(0xfb))/0x1*(-parseInt(_0x44dc07(0xf2))/0x2)+parseInt(_0x44dc07(0xdb))/0x3*(-parseInt(_0x44dc07(0xc4))/0x4)+-parseInt(_0x44dc07(0xc0))/0x5+-parseInt(_0x44dc07(0xd8))/0x6*(-parseInt(_0x44dc07(0xc6))/0x7)+-parseInt(_0x44dc07(0xd9))/0x8+-parseInt(_0x44dc07(0xbf))/0x9*(parseInt(_0x44dc07(0xcd))/0xa)+-parseInt(_0x44dc07(0xef))/0xb*(-parseInt(_0x44dc07(0xfd))/0xc);if(_0x5a06a8===_0x47a699)break;else _0x4c190c['push'](_0x4c190c['shift']());}catch(_0x16f52d){_0x4c190c['push'](_0x4c190c['shift']());}}}(a33_0xcca7,0x518da));function a33_0x3d11(_0x596b84,_0xeef0d3){const _0xcca763=a33_0xcca7();return a33_0x3d11=function(_0x3d118d,_0xab3d90){_0x3d118d=_0x3d118d-0xb6;let _0x130e3c=_0xcca763[_0x3d118d];return _0x130e3c;},a33_0x3d11(_0x596b84,_0xeef0d3);}const fs=require('fs'),path=require(a33_0x43a22c(0xbe)),{spawn}=require(a33_0x43a22c(0xfa)),logger=require(a33_0x43a22c(0xb7))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0x43a22c(0xd7)),constants=require(a33_0x43a22c(0xe0)),getUserNightwatchConfigs=(_0x19b97a,_0x13497b)=>{const _0x573ccd=a33_0x43a22c,_0x19ba1b={'QRIsl':_0x573ccd(0xdf),'YgCVb':_0x573ccd(0xd5),'NUMAa':function(_0x1de729,_0x4b1758){return _0x1de729(_0x4b1758);},'ZEfZA':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x4ff6b0=null,_0x4d503d={};const _0x4dbb8f=_0x13497b[_0x573ccd(0xcf)](_0x149d06=>_0x149d06===_0x573ccd(0xf3));if(!helper['isUndefined'](_0x19b97a[_0x573ccd(0xbb)])&&fs[_0x573ccd(0xca)](path['join'](process[_0x573ccd(0xba)](),_0x19b97a[_0x573ccd(0xbb)])))_0x4ff6b0=path[_0x573ccd(0xdd)](process[_0x573ccd(0xba)](),_0x19b97a['config']),_0x13497b[_0x573ccd(0xe4)](_0x4dbb8f,0x2);else{if(fs['existsSync'](path[_0x573ccd(0xdd)](process[_0x573ccd(0xba)](),_0x19ba1b['QRIsl'])))_0x4ff6b0=path[_0x573ccd(0xdd)](process[_0x573ccd(0xba)](),_0x19ba1b['QRIsl']);else fs[_0x573ccd(0xca)](path[_0x573ccd(0xdd)](process[_0x573ccd(0xba)](),_0x19ba1b[_0x573ccd(0xf6)]))&&(_0x4ff6b0=path[_0x573ccd(0xdd)](process[_0x573ccd(0xba)](),_0x19ba1b[_0x573ccd(0xf6)]));}return _0x4ff6b0?(logger[_0x573ccd(0xd6)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x4ff6b0),_0x4d503d=_0x19ba1b[_0x573ccd(0xc2)](require,_0x4ff6b0)):logger['info'](_0x19ba1b[_0x573ccd(0xec)]),_0x4d503d;},removeExistingEnvs=_0x3f6e87=>{const _0x49bd4b=a33_0x43a22c,_0x2a85db={};_0x2a85db[_0x49bd4b(0xee)]=function(_0x3d44c5,_0x56249f){return _0x3d44c5>_0x56249f;},_0x2a85db['awnjx']=function(_0x9f7c6d,_0x1fc199){return _0x9f7c6d>_0x1fc199;};const _0x2b41b8=_0x2a85db;let _0x3afe32=_0x3f6e87[_0x49bd4b(0xcf)](_0x56b436=>_0x56b436===_0x49bd4b(0xf9));_0x2b41b8['xQJGA'](_0x3afe32,-0x1)&&_0x3f6e87[_0x49bd4b(0xe4)](_0x3afe32,0x2),_0x3afe32=_0x3f6e87[_0x49bd4b(0xcf)](_0x5f5a69=>_0x5f5a69==='-e'),_0x2b41b8[_0x49bd4b(0xc3)](_0x3afe32,-0x1)&&_0x3f6e87[_0x49bd4b(0xe4)](_0x3afe32,0x2);};function run(_0x484d3b,_0xd3119b){const _0x3e9259=a33_0x43a22c,_0x2f2ef7={'Ifzjb':_0x3e9259(0xc9),'FGlHw':function(_0x3ca2af,_0xcacfb6){return _0x3ca2af+_0xcacfb6;},'EkuxI':_0x3e9259(0xd4),'qjqGC':function(_0x52b081,_0x23c8f2,_0x4e2737){return _0x52b081(_0x23c8f2,_0x4e2737);},'gXagR':'hub.browserstack.com','GSJrX':_0x3e9259(0xc8),'AYMEk':function(_0x1648c6,_0x41562b){return _0x1648c6===_0x41562b;},'BlEht':_0x3e9259(0xb9),'AcYCs':function(_0x1e7db3,_0x49af15){return _0x1e7db3(_0x49af15);},'uRtNy':function(_0x4bb4cd,_0x50a59a,_0x50c222,_0x1e8da6){return _0x4bb4cd(_0x50a59a,_0x50c222,_0x1e8da6);},'nwUyX':_0x3e9259(0xe8),'clAcp':_0x3e9259(0xf3),'cYaoq':'--env','qXnZL':'inherit','UVLfT':'close'},_0x36dc78=new BrowserStackSetup(_0x484d3b);if(!_0x36dc78[_0x3e9259(0xbb)])return;const _0x38c5a9=_0x2f2ef7['qjqGC'](getUserNightwatchConfigs,_0x484d3b,_0xd3119b),_0x352c6a={};_0x352c6a[_0x3e9259(0xd2)]=![];const _0x393a2f={};_0x393a2f[_0x3e9259(0xf0)]=_0x2f2ef7[_0x3e9259(0xe3)],_0x393a2f[_0x3e9259(0xce)]=0x1bb;const _0x47631c={};_0x47631c[_0x3e9259(0xcc)]=_0x352c6a,_0x47631c[_0x3e9259(0xea)]=_0x393a2f;const _0x5d6d27=_0x47631c;logger['info'](_0x2f2ef7[_0x3e9259(0xda)]);const _0x315ae2={..._0x38c5a9},_0x1ac959=_0x315ae2,_0xe6b301=helper[_0x3e9259(0xdc)](_0x36dc78[_0x3e9259(0xbb)]),_0x119c8d=[];_0x36dc78[_0x3e9259(0xbb)][_0x3e9259(0xbd)][_0x3e9259(0xed)]((_0x15c964,_0x2a0fd7)=>{const _0xb60697=_0x3e9259;_0xe6b301?_0x119c8d['push'](helper['modifyBrowserStackW3CCaps'](_0x36dc78['config'],_0x2f2ef7[_0xb60697(0xf1)],_0x2a0fd7)):_0x119c8d[_0xb60697(0xc1)](helper[_0xb60697(0xbc)](_0x36dc78[_0xb60697(0xbb)],_0x2f2ef7['Ifzjb'],_0x2a0fd7));});const _0x30dab0={},_0x296b9a=[];_0x484d3b['env']=_0x484d3b['env']||_0x484d3b['e'];const _0x4fb6f9=_0x484d3b[_0x3e9259(0xf5)]?_0x484d3b[_0x3e9259(0xf5)][_0x3e9259(0xe5)]()['split'](',')['map'](_0x6f0918=>_0x6f0918[_0x3e9259(0xe5)]())[_0x3e9259(0xc7)](_0x391816=>_0x391816!==''):[''];_0x2f2ef7[_0x3e9259(0xc5)](_0x4fb6f9[_0x3e9259(0xeb)],0x0)&&_0x4fb6f9['push']('');_0x4fb6f9[_0x3e9259(0xed)](_0x577b69=>{const _0x4998e5={'AhEtz':function(_0xd59408,_0x320c3f){const _0x41e6ec=a33_0x3d11;return _0x2f2ef7[_0x41e6ec(0xe6)](_0xd59408,_0x320c3f);},'hbxcO':_0x2f2ef7['EkuxI']};_0x119c8d['forEach'](_0x39d77e=>{const _0x15336d=a33_0x3d11;let _0x332eaf=_0x4998e5[_0x15336d(0xfc)](helper[_0x15336d(0xde)](_0x39d77e,'_'),'_'+Date['now']());_0x577b69&&(_0x332eaf+='_'+_0x577b69);if(_0x577b69&&(!_0x38c5a9[_0x4998e5[_0x15336d(0xe2)]]||!_0x38c5a9[_0x4998e5[_0x15336d(0xe2)]][_0x577b69]))return;const _0x20c5e2={..._0x5d6d27};_0x20c5e2[_0x15336d(0xd3)]=_0x39d77e;const _0x2adbbc=_0x20c5e2;_0x30dab0[_0x332eaf]=_0x577b69?helper['mergeDeep'](_0x38c5a9[_0x4998e5['hbxcO']][_0x577b69],_0x2adbbc):_0x2adbbc,_0x296b9a['push'](_0x332eaf);});});!_0x1ac959['test_settings']&&(_0x1ac959[_0x3e9259(0xd4)]={});_0x1ac959[_0x3e9259(0xd4)]={..._0x1ac959[_0x3e9259(0xd4)],..._0x30dab0};const _0x3ed646=path[_0x3e9259(0xdd)](__dirname,_0x2f2ef7[_0x3e9259(0xf4)]);fs[_0x3e9259(0xb8)](_0x3ed646,JSON[_0x3e9259(0xcb)](_0x1ac959)),_0x2f2ef7[_0x3e9259(0xb6)](removeExistingEnvs,_0xd3119b);const _0x52e9ea=_0x2f2ef7[_0x3e9259(0xe1)](spawn,/^win/['test'](process['platform'])?_0x2f2ef7['nwUyX']:_0x2f2ef7[_0x3e9259(0xf1)],[_0x2f2ef7['clAcp'],_0x3ed646,..._0xd3119b[_0x3e9259(0xf8)](0x1),_0x2f2ef7['cYaoq'],_0x296b9a[_0x3e9259(0xdd)](',')],{'stdio':_0x2f2ef7[_0x3e9259(0xe7)]});_0x52e9ea['on'](_0x2f2ef7[_0x3e9259(0xd0)],async _0x2c00a3=>{const _0x15527b=_0x3e9259;logger['debug'](_0x15527b(0xd1)+_0x2c00a3),logger['info']('Deleting\x20'+_0x3ed646),fs[_0x15527b(0xe9)](_0x3ed646);});}module[a33_0x43a22c(0xf7)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a34_0x2eaf(_0x497612,_0x33a4bd){const _0x59c3ea=a34_0x59c3();return a34_0x2eaf=function(_0x2eaf6f,_0x2983ea){_0x2eaf6f=_0x2eaf6f-0xd7;let _0x54a639=_0x59c3ea[_0x2eaf6f];return _0x54a639;},a34_0x2eaf(_0x497612,_0x33a4bd);}const a34_0x107325=a34_0x2eaf;(function(_0x59d2dd,_0x75e084){const _0x5879d6=a34_0x2eaf,_0x40826b=_0x59d2dd();while(!![]){try{const _0x447f83=parseInt(_0x5879d6(0x11f))/0x1*(parseInt(_0x5879d6(0xee))/0x2)+-parseInt(_0x5879d6(0xfd))/0x3*(parseInt(_0x5879d6(0xe2))/0x4)+-parseInt(_0x5879d6(0xdf))/0x5+parseInt(_0x5879d6(0xe9))/0x6+-parseInt(_0x5879d6(0x128))/0x7+-parseInt(_0x5879d6(0xe8))/0x8+parseInt(_0x5879d6(0x10c))/0x9;if(_0x447f83===_0x75e084)break;else _0x40826b['push'](_0x40826b['shift']());}catch(_0x5a54ed){_0x40826b['push'](_0x40826b['shift']());}}}(a34_0x59c3,0x4c924));function a34_0x59c3(){const _0x50ceed=['Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','JNlyy','bstackSdkArgs','platformValidation','performScan','project','../../helpers/logger','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','ssduw','kzbhd','evaluate','browserName','Wmgwr','(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','No\x20accessibility\x20results\x20were\x20found.','xxQCN','kYOZI','BKamO','accessibilityOptions','testInfo','KuFGr','455860Pmulec','deviceName','needsReview','49116khQloO','ALhbo','dStFn','workerInfo','warn','NtkFQ','3460984BcnjOQ','1431168sKXXME','DUcMn','accessibilityOptions.scannerVersion','processAccessibilityCaps','stringify','2108Oxzsev','eojOG','browser_version','includeIssueType','../../helpers/accessibility-automation/helper','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','accessibilityOptions.includeIssueType.needsReview','wcagVersion','azzlh','latest','NyWSB','qEWZB','BS_A11Y_JWT','FUpgz','browser','21AvtRNn','geRlN','chrome','../../helpers/accessibility-automation/scripts','error','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','format','BIKBe','wajgr','../../helpers/helper','rBIvU','mIKVk','use','PoOwe','accessibilityPlatform','3187494NtvyFK','kvwka','playwright-chromium','cNDwL','nqUgM','method','replace','Playwright','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','accessibilityOptions.scannerProcessingTimeout','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','constructor','name','util','browserStackEvaluate','ezjPB','executeAsyncScript','cDqdh','winstonLogger','542nAIenK','env','executeScript','scannerProcessingTimeout','Qbzif','getAccessibilityResults','accessibilityOptions.includeIssueType.bestPractice','debug','tcxyW','1684046iPGjmZ','(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','setAccessibilityCapabilities','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','MxXTS','XCtHN','mIRiO','ULvXN'];a34_0x59c3=function(){return _0x50ceed;};return a34_0x59c3();}const util=require(a34_0x107325(0x119)),logger=require(a34_0x107325(0x136))[a34_0x107325(0x11e)],{isAccessibilityAutomationSession}=require(a34_0x107325(0xf2)),{isUndefined}=require(a34_0x107325(0x106)),scripts=require(a34_0x107325(0x100));exports['browserStackEvaluate']=async(_0x3fe016,_0x278990,_0x34283a={})=>{const _0xb06b22=a34_0x107325,_0x1fd6ae={};_0x1fd6ae[_0xb06b22(0x10a)]=_0xb06b22(0x132);const _0xd78789=_0x1fd6ae;return await _0x3fe016[_0xb06b22(0x13a)](_0xb06b22(0xd7)+_0x278990[_0xb06b22(0x112)](/arguments/g,_0xd78789[_0xb06b22(0x10a)])+_0xb06b22(0xf3)+JSON[_0xb06b22(0xed)](_0x34283a)+')');},exports['browserStackExecuteDriver']=async(_0x36e10a,_0xf48205,_0x2f3a9c={})=>{const _0x481d5b=a34_0x107325,_0x10f6f6={};_0x10f6f6[_0x481d5b(0x13c)]=function(_0x28ac6a,_0x501fcb){return _0x28ac6a===_0x501fcb;},_0x10f6f6['RgBJC']='WebDriver',_0x10f6f6[_0x481d5b(0xe3)]=function(_0x1b4179,_0x254c62){return _0x1b4179===_0x254c62;},_0x10f6f6[_0x481d5b(0x11d)]=_0x481d5b(0x113),_0x10f6f6[_0x481d5b(0x12c)]=_0x481d5b(0x132);const _0x170a6b=_0x10f6f6;if(_0x170a6b[_0x481d5b(0x13c)](_0x36e10a[_0x481d5b(0x117)]['name'],_0x170a6b['RgBJC']))return await _0x36e10a[_0x481d5b(0x11c)](_0xf48205,_0x2f3a9c);else{if(_0x170a6b[_0x481d5b(0xe3)](_0x36e10a[_0x481d5b(0x117)][_0x481d5b(0x118)],_0x170a6b['cDqdh']))return await _0x36e10a[_0x481d5b(0x121)](_0x481d5b(0x129)+_0xf48205[_0x481d5b(0x112)](/arguments/g,_0x170a6b[_0x481d5b(0x12c)])+_0x481d5b(0x102)+JSON[_0x481d5b(0xed)](_0x2f3a9c)+')');}},exports[a34_0x107325(0x12a)]=async _0xc876d0=>{const _0xfd7f5b=a34_0x107325,_0x2bdb72={};_0x2bdb72['tDDSG']='accessibilityOptions.wcagVersion',_0x2bdb72[_0xfd7f5b(0xde)]=_0xfd7f5b(0x115),_0x2bdb72[_0xfd7f5b(0xfb)]=_0xfd7f5b(0x125),_0x2bdb72[_0xfd7f5b(0x105)]=_0xfd7f5b(0xf4),_0x2bdb72[_0xfd7f5b(0x108)]='accessibilityOptions.authToken',_0x2bdb72[_0xfd7f5b(0x10f)]=_0xfd7f5b(0xeb);const _0x2e9ebe=_0x2bdb72;_0xc876d0[_0xfd7f5b(0xdc)]&&(_0xc876d0['accessibilityOptions'][_0xfd7f5b(0xf5)]&&(_0xc876d0[_0x2e9ebe['tDDSG']]=_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0xf5)]),_0xc876d0[_0xfd7f5b(0xdc)]['scannerProcessingTimeout']&&(_0xc876d0[_0x2e9ebe[_0xfd7f5b(0xde)]]=_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0x122)]),_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0xf1)]&&(_0xc876d0[_0x2e9ebe[_0xfd7f5b(0xfb)]]=_0xc876d0[_0xfd7f5b(0xdc)]['includeIssueType']['bestPractice'],_0xc876d0[_0x2e9ebe[_0xfd7f5b(0x105)]]=_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0xf1)][_0xfd7f5b(0xe1)]));const _0x100f72=JSON['parse'](process[_0xfd7f5b(0x120)][_0xfd7f5b(0x116)])['scannerVersion'];_0xc876d0[_0x2e9ebe[_0xfd7f5b(0x108)]]=process['env'][_0xfd7f5b(0xfa)],_0xc876d0[_0x2e9ebe[_0xfd7f5b(0x10f)]]=_0x100f72,delete _0xc876d0['accessibilityOptions'];},exports[a34_0x107325(0x124)]=async _0x5dce94=>{const _0x2c54c2=a34_0x107325,_0x41bd7b={};_0x41bd7b[_0x2c54c2(0x12d)]=_0x2c54c2(0xd8),_0x41bd7b[_0x2c54c2(0x127)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x36c5b9=_0x41bd7b;if(global[_0x2c54c2(0x10b)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x5dce94,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x5dce94,scripts.getResults);return res;}catch{return logger[_0x2c54c2(0x101)](_0x36c5b9[_0x2c54c2(0x12d)]),[];}else return logger['warn'](_0x36c5b9['tcxyW']),[];},exports[a34_0x107325(0x134)]=async(_0x366450,_0x13316e='')=>{const _0x4317cf=a34_0x107325;if(global['accessibilityPlatform']){const _0x22a5fb={};return _0x22a5fb[_0x4317cf(0x111)]=_0x13316e,await exports[_0x4317cf(0x11a)](_0x366450,scripts['performScan'],_0x22a5fb);}},exports['getAccessibilityResultsSummary']=async _0xc62f33=>{const _0x950585=a34_0x107325,_0x28349c={};_0x28349c[_0x950585(0xe7)]='No\x20summaryResults\x20found.',_0x28349c[_0x950585(0x138)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x2ef8d8=_0x28349c;if(global[_0x950585(0x10b)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0xc62f33,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0xc62f33,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x2ef8d8['NtkFQ']),{};}else return logger['warn'](_0x2ef8d8[_0x950585(0x138)]),{};},exports[a34_0x107325(0x133)]=async _0x4f695b=>{const _0x5b830a=a34_0x107325,_0x27126f={'eojOG':function(_0x561529,_0x5c46c2){return _0x561529!==_0x5c46c2;},'JNlyy':_0x5b830a(0x130),'RwmCh':function(_0x5f2c01,_0x35ae4f){return _0x5f2c01===_0x35ae4f;},'rBIvU':_0x5b830a(0xff),'ezjPB':function(_0x4a2c42,_0x5d4e3a){return _0x4a2c42===_0x5d4e3a;},'kYOZI':_0x5b830a(0x10e),'mIRiO':_0x5b830a(0x114),'ULvXN':function(_0xbbec46,_0x33d5b5){return _0xbbec46(_0x33d5b5);},'Qbzif':function(_0x236c04,_0x46a899){return _0x236c04===_0x46a899;},'UbJYH':_0x5b830a(0xf7),'DUcMn':function(_0xaf1e24,_0x30c2d1){return _0xaf1e24>_0x30c2d1;},'FkktQ':_0x5b830a(0x12b)};try{if(!_0x27126f[_0x5b830a(0xef)](_0x4f695b[_0x5b830a(0xe0)],''))return logger[_0x5b830a(0xe6)](_0x27126f[_0x5b830a(0x131)]),![];const _0x1745ef=_0x4f695b[_0x5b830a(0xfc)];if(!(_0x27126f['RwmCh'](_0x1745ef,_0x27126f[_0x5b830a(0x107)])||_0x27126f[_0x5b830a(0x11b)](_0x1745ef,_0x27126f[_0x5b830a(0xda)])))return logger['warn'](_0x27126f[_0x5b830a(0x12e)]),![];const _0x2a9ec2=_0x27126f[_0x5b830a(0x12f)](parseInt,_0x4f695b[_0x5b830a(0xf0)]);if(!(_0x27126f[_0x5b830a(0x123)](_0x2a9ec2,_0x27126f['UbJYH'])||_0x27126f[_0x5b830a(0xea)](_0x2a9ec2,0x5e)))return logger[_0x5b830a(0xe6)](_0x27126f['FkktQ']),![];}catch(_0x2778b5){logger[_0x5b830a(0x126)](_0x5b830a(0x137)+util['format'](_0x2778b5));}return!![];},exports[a34_0x107325(0xec)]=(_0x137944,_0xf02ce7,_0x304240)=>{const _0x577cab=a34_0x107325,_0x1bf12c={'azzlh':function(_0x54124c){return _0x54124c();},'nqUgM':'browserstack.accessibility','qEWZB':function(_0x1b3cbc,_0x3ab57b){return _0x1b3cbc===_0x3ab57b;},'dStFn':_0x577cab(0xff),'geRlN':function(_0x143283,_0x3e8a4c){return _0x143283===_0x3e8a4c;},'NyWSB':_0x577cab(0x10e),'xxQCN':_0x577cab(0x114),'fmEjm':'latest','MxTcV':function(_0x19c973,_0x12704d){return _0x19c973>_0x12704d;},'kzbhd':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','BIKBe':function(_0x483f24,_0x2a63fe){return _0x483f24(_0x2a63fe);},'kvwka':_0x577cab(0x130),'BKamO':function(_0x3ed647,_0x2dc3f8){return _0x3ed647+_0x2dc3f8;}};try{if(_0x1bf12c[_0x577cab(0xf6)](isAccessibilityAutomationSession)){global[_0x577cab(0x10b)]=!![];!_0x137944[_0x1bf12c[_0x577cab(0x110)]]&&(global[_0x577cab(0x10b)]=![]);!(_0x1bf12c[_0x577cab(0xf9)](_0x137944[_0x577cab(0x13b)],_0x1bf12c[_0x577cab(0xe4)])||_0x1bf12c[_0x577cab(0xfe)](_0x137944[_0x577cab(0x13b)],_0x1bf12c[_0x577cab(0xf8)]))&&(logger['warn'](_0x1bf12c[_0x577cab(0xd9)]),global[_0x577cab(0x10b)]=![]);!(_0x1bf12c[_0x577cab(0xf9)](_0x137944[_0x577cab(0xf0)],_0x1bf12c['fmEjm'])||_0x1bf12c['MxTcV'](_0x137944[_0x577cab(0xf0)],0x5e))&&(logger[_0x577cab(0xe6)](_0x1bf12c[_0x577cab(0x139)]),global[_0x577cab(0x10b)]=![]);!_0x1bf12c[_0x577cab(0x104)](isUndefined,_0x137944[_0x577cab(0xe0)])&&(logger[_0x577cab(0xe6)](_0x1bf12c[_0x577cab(0x10d)]),global[_0x577cab(0x10b)]=![]);if(!global[_0x577cab(0x10b)]){_0x137944[_0x1bf12c[_0x577cab(0x110)]]=![];const _0x714a14=_0x1bf12c[_0x577cab(0xdb)](_0xf02ce7,_0x1bf12c[_0x577cab(0x104)](encodeURIComponent,JSON[_0x577cab(0xed)](_0x137944)));_0x304240&&(_0x304240['currentTest'][_0x577cab(0xdd)][_0x577cab(0x135)][_0x577cab(0x109)]['connectOptions']['wsEndpoint']=_0x714a14,_0x304240[_0x577cab(0xe5)][_0x577cab(0x135)][_0x577cab(0x109)]['connectOptions']['wsEndpoint']=_0x714a14);}}}catch(_0x23713d){logger[_0x577cab(0x126)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x577cab(0x103)](_0x23713d));}};
|
|
1
|
+
function a34_0x118c(){const _0x49d74b=['chrome','browserStackExecuteDriver','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','(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','replace','browser_version','deviceName','bstackSdkArgs','21590XGlJyL','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','jpkQJ','project','kadQX','accessibilityOptions.authToken','21672bXIgdo','accessibilityOptions','../../helpers/accessibility-automation/scripts','pXlRf','190Bkpiwo','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','use','kRIAf','lzVgK','browserName','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','wprjZ','WebDriver','latest','FsehD','BS_A11Y_JWT','44491awtbTM','wsEndpoint','mafkL','KNFnv','evaluate','zAJWN','xuAlk','77URqjed','Bvlck','performScan','3764tXrrUY','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','method','getAccessibilityResultsSummary','55CmAPjn','iVhus','debug','../../helpers/logger','mqBXt','constructor','QFExR','currentTest','playwright-chromium','Playwright','util','OHtct','stringify','accessibilityOptions.scannerVersion','browserStackEvaluate','oRFvN','6qyMRZw','OeMNf','ijXtX','894732ZdtNCl','AObvj','isJiv','LsIkh','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','testInfo','browserstack.accessibility','scannerProcessingTimeout','vOLQc','processAccessibilityCaps','1832tDuvrw','riAsI','xcAlg','includeIssueType','927xGVXAG','needsReview','executeScript','nNlZz','accessibilityPlatform','No\x20accessibility\x20results\x20were\x20found.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','name','winstonLogger','MzCbu','DYiOI','warn','env','wcagVersion','358458doqsKp','executeAsyncScript','KHzlj','(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','bestPractice','../../helpers/accessibility-automation/helper','iFYUd','browser','../../helpers/helper','platformValidation','format','No\x20summaryResults\x20found.','EulnV','VIyCH'];a34_0x118c=function(){return _0x49d74b;};return a34_0x118c();}const a34_0x21f1ee=a34_0x2b73;(function(_0x1f7e1f,_0x1d4185){const _0x5dd158=a34_0x2b73,_0xebfb20=_0x1f7e1f();while(!![]){try{const _0x2a5a7f=parseInt(_0x5dd158(0xf8))/0x1*(-parseInt(_0x5dd158(0x116))/0x2)+parseInt(_0x5dd158(0xe8))/0x3+parseInt(_0x5dd158(0x102))/0x4*(parseInt(_0x5dd158(0xec))/0x5)+parseInt(_0x5dd158(0xcb))/0x6+-parseInt(_0x5dd158(0xff))/0x7*(-parseInt(_0x5dd158(0x123))/0x8)+parseInt(_0x5dd158(0x127))/0x9*(-parseInt(_0x5dd158(0xe1))/0xa)+-parseInt(_0x5dd158(0x106))/0xb*(-parseInt(_0x5dd158(0x119))/0xc);if(_0x2a5a7f===_0x1d4185)break;else _0xebfb20['push'](_0xebfb20['shift']());}catch(_0x5261cc){_0xebfb20['push'](_0xebfb20['shift']());}}}(a34_0x118c,0x1dd57));const util=require(a34_0x21f1ee(0x110)),logger=require(a34_0x21f1ee(0x109))[a34_0x21f1ee(0xc5)],{isAccessibilityAutomationSession}=require(a34_0x21f1ee(0xd0)),{isUndefined}=require(a34_0x21f1ee(0xd3)),scripts=require(a34_0x21f1ee(0xea));function a34_0x2b73(_0x3ff435,_0xadcbc8){const _0x118cb1=a34_0x118c();return a34_0x2b73=function(_0x2b7315,_0xa3ae43){_0x2b7315=_0x2b7315-0xc1;let _0x1649c0=_0x118cb1[_0x2b7315];return _0x1649c0;},a34_0x2b73(_0x3ff435,_0xadcbc8);}exports[a34_0x21f1ee(0x114)]=async(_0xb709fd,_0x2bf3e5,_0x427f78={})=>{const _0x9f969d=a34_0x21f1ee,_0x207c3d={};_0x207c3d[_0x9f969d(0x124)]=_0x9f969d(0xe0);const _0x59ce93=_0x207c3d;return await _0xb709fd[_0x9f969d(0xfc)](_0x9f969d(0xce)+_0x2bf3e5[_0x9f969d(0xdd)](/arguments/g,_0x59ce93[_0x9f969d(0x124)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x9f969d(0x112)](_0x427f78)+')');},exports[a34_0x21f1ee(0xda)]=async(_0x1e4832,_0x1eb117,_0x336f8d={})=>{const _0x5869eb=a34_0x21f1ee,_0x3a8a76={};_0x3a8a76[_0x5869eb(0xd8)]=function(_0x59e686,_0x3938c4){return _0x59e686===_0x3938c4;},_0x3a8a76['KHzlj']=_0x5869eb(0xf4),_0x3a8a76[_0x5869eb(0xc7)]=_0x5869eb(0x10f),_0x3a8a76[_0x5869eb(0xf3)]=_0x5869eb(0xe0);const _0x473b2d=_0x3a8a76;if(_0x473b2d[_0x5869eb(0xd8)](_0x1e4832[_0x5869eb(0x10b)]['name'],_0x473b2d[_0x5869eb(0xcd)]))return await _0x1e4832[_0x5869eb(0xcc)](_0x1eb117,_0x336f8d);else{if(_0x473b2d[_0x5869eb(0xd8)](_0x1e4832['constructor'][_0x5869eb(0xc4)],_0x473b2d[_0x5869eb(0xc7)]))return await _0x1e4832[_0x5869eb(0x129)](_0x5869eb(0xdc)+_0x1eb117[_0x5869eb(0xdd)](/arguments/g,_0x473b2d[_0x5869eb(0xf3)])+_0x5869eb(0x11d)+JSON[_0x5869eb(0x112)](_0x336f8d)+')');}},exports['setAccessibilityCapabilities']=async _0x2351f8=>{const _0x2bc2c1=a34_0x21f1ee,_0x522887={};_0x522887['ERHZZ']='accessibilityOptions.wcagVersion',_0x522887[_0x2bc2c1(0xd1)]='accessibilityOptions.scannerProcessingTimeout',_0x522887[_0x2bc2c1(0xfe)]='accessibilityOptions.includeIssueType.bestPractice',_0x522887[_0x2bc2c1(0x10c)]='accessibilityOptions.includeIssueType.needsReview',_0x522887[_0x2bc2c1(0xeb)]=_0x2bc2c1(0xe7),_0x522887[_0x2bc2c1(0xf0)]=_0x2bc2c1(0x113);const _0x2a7e39=_0x522887;_0x2351f8[_0x2bc2c1(0xe9)]&&(_0x2351f8[_0x2bc2c1(0xe9)][_0x2bc2c1(0xca)]&&(_0x2351f8[_0x2a7e39['ERHZZ']]=_0x2351f8[_0x2bc2c1(0xe9)][_0x2bc2c1(0xca)]),_0x2351f8[_0x2bc2c1(0xe9)][_0x2bc2c1(0x120)]&&(_0x2351f8[_0x2a7e39[_0x2bc2c1(0xd1)]]=_0x2351f8[_0x2bc2c1(0xe9)][_0x2bc2c1(0x120)]),_0x2351f8[_0x2bc2c1(0xe9)][_0x2bc2c1(0x126)]&&(_0x2351f8[_0x2a7e39['xuAlk']]=_0x2351f8[_0x2bc2c1(0xe9)]['includeIssueType'][_0x2bc2c1(0xcf)],_0x2351f8[_0x2a7e39['QFExR']]=_0x2351f8[_0x2bc2c1(0xe9)][_0x2bc2c1(0x126)][_0x2bc2c1(0x128)]));const _0x4f3611=JSON['parse'](process[_0x2bc2c1(0xc9)][_0x2bc2c1(0xed)])['scannerVersion'];_0x2351f8[_0x2a7e39[_0x2bc2c1(0xeb)]]=process[_0x2bc2c1(0xc9)][_0x2bc2c1(0xf7)],_0x2351f8[_0x2a7e39[_0x2bc2c1(0xf0)]]=_0x4f3611,delete _0x2351f8['accessibilityOptions'];},exports['getAccessibilityResults']=async _0x2039d1=>{const _0x140091=a34_0x21f1ee,_0x3f14cc={};_0x3f14cc[_0x140091(0x107)]=_0x140091(0xc2),_0x3f14cc[_0x140091(0x125)]=_0x140091(0xe3);const _0x5c0bb1=_0x3f14cc;if(global[_0x140091(0xc1)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x2039d1,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x2039d1,scripts.getResults);return res;}catch{return logger['error'](_0x5c0bb1['iVhus']),[];}else return logger[_0x140091(0xc8)](_0x5c0bb1[_0x140091(0x125)]),[];},exports[a34_0x21f1ee(0x101)]=async(_0x49d12e,_0x40de3c='')=>{const _0x33a58=a34_0x21f1ee;if(global['accessibilityPlatform']){const _0x3aa6ec={};return _0x3aa6ec[_0x33a58(0x104)]=_0x40de3c,await exports['browserStackEvaluate'](_0x49d12e,scripts[_0x33a58(0x101)],_0x3aa6ec);}},exports[a34_0x21f1ee(0x105)]=async _0x5bc760=>{const _0x1ba294=a34_0x21f1ee,_0x69babd={};_0x69babd[_0x1ba294(0xef)]=_0x1ba294(0xd6),_0x69babd[_0x1ba294(0x121)]=_0x1ba294(0xe2);const _0xdcb8be=_0x69babd;if(global[_0x1ba294(0xc1)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x5bc760,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x5bc760,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x1ba294(0x108)](_0xdcb8be[_0x1ba294(0xef)]),{};}else return logger[_0x1ba294(0xc8)](_0xdcb8be['vOLQc']),{};},exports[a34_0x21f1ee(0xd4)]=async _0x3d5012=>{const _0x45fe97=a34_0x21f1ee,_0x45082f={'OHtct':function(_0x2e9df6,_0x467281){return _0x2e9df6!==_0x467281;},'isJiv':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','KNFnv':function(_0x2b0bc0,_0x390f5c){return _0x2b0bc0===_0x390f5c;},'wkhaN':_0x45fe97(0xd9),'EulnV':'playwright-chromium','LsIkh':_0x45fe97(0xc3),'zAJWN':function(_0x2a1d72,_0x13ed62){return _0x2a1d72(_0x13ed62);},'AObvj':_0x45fe97(0xf5),'ZtzlZ':function(_0x9934bb,_0x3d7d05){return _0x9934bb>_0x3d7d05;},'OeMNf':_0x45fe97(0xdb)};try{if(!_0x45082f[_0x45fe97(0x111)](_0x3d5012[_0x45fe97(0xdf)],''))return logger[_0x45fe97(0xc8)](_0x45082f[_0x45fe97(0x11b)]),![];const _0x20d091=_0x3d5012[_0x45fe97(0xd2)];if(!(_0x45082f[_0x45fe97(0xfb)](_0x20d091,_0x45082f['wkhaN'])||_0x45082f[_0x45fe97(0xfb)](_0x20d091,_0x45082f[_0x45fe97(0xd7)])))return logger[_0x45fe97(0xc8)](_0x45082f[_0x45fe97(0x11c)]),![];const _0x5d91c3=_0x45082f[_0x45fe97(0xfd)](parseInt,_0x3d5012['browser_version']);if(!(_0x45082f[_0x45fe97(0xfb)](_0x5d91c3,_0x45082f[_0x45fe97(0x11a)])||_0x45082f['ZtzlZ'](_0x5d91c3,0x5e)))return logger[_0x45fe97(0xc8)](_0x45082f[_0x45fe97(0x117)]),![];}catch(_0x539dcb){logger[_0x45fe97(0x108)](_0x45fe97(0xf2)+util[_0x45fe97(0xd5)](_0x539dcb));}return!![];},exports[a34_0x21f1ee(0x122)]=(_0x4b011a,_0x41582e,_0x45ff79)=>{const _0x59b9db=a34_0x21f1ee,_0x45331c={'mqBXt':function(_0x4383aa){return _0x4383aa();},'nNlZz':_0x59b9db(0x11f),'mafkL':function(_0x406552,_0x4ab37){return _0x406552===_0x4ab37;},'MzCbu':_0x59b9db(0xd9),'FsehD':function(_0x51c8ba,_0x50aec5){return _0x51c8ba===_0x50aec5;},'oRFvN':_0x59b9db(0x10e),'kadQX':_0x59b9db(0xc3),'ijXtX':_0x59b9db(0xf5),'UrRWZ':function(_0xd47095,_0x39d5b0){return _0xd47095>_0x39d5b0;},'mcBmX':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','jpkQJ':function(_0x45fc49,_0x2a9bf0){return _0x45fc49(_0x2a9bf0);},'Bvlck':_0x59b9db(0x103),'vyXOw':function(_0x5367bd,_0x3a3160){return _0x5367bd+_0x3a3160;},'SBZlg':function(_0x8bdc73,_0x41243a){return _0x8bdc73(_0x41243a);}};try{if(_0x45331c[_0x59b9db(0x10a)](isAccessibilityAutomationSession)){global[_0x59b9db(0xc1)]=!![];!_0x4b011a[_0x45331c[_0x59b9db(0x12a)]]&&(global[_0x59b9db(0xc1)]=![]);!(_0x45331c[_0x59b9db(0xfa)](_0x4b011a[_0x59b9db(0xf1)],_0x45331c[_0x59b9db(0xc6)])||_0x45331c[_0x59b9db(0xf6)](_0x4b011a[_0x59b9db(0xf1)],_0x45331c[_0x59b9db(0x115)]))&&(logger[_0x59b9db(0xc8)](_0x45331c[_0x59b9db(0xe6)]),global['accessibilityPlatform']=![]);!(_0x45331c[_0x59b9db(0xf6)](_0x4b011a[_0x59b9db(0xde)],_0x45331c[_0x59b9db(0x118)])||_0x45331c['UrRWZ'](_0x4b011a['browser_version'],0x5e))&&(logger[_0x59b9db(0xc8)](_0x45331c['mcBmX']),global[_0x59b9db(0xc1)]=![]);!_0x45331c[_0x59b9db(0xe4)](isUndefined,_0x4b011a[_0x59b9db(0xdf)])&&(logger[_0x59b9db(0xc8)](_0x45331c[_0x59b9db(0x100)]),global[_0x59b9db(0xc1)]=![]);if(!global['accessibilityPlatform']){_0x4b011a[_0x45331c[_0x59b9db(0x12a)]]=![];const _0x5bca0a=_0x45331c['vyXOw'](_0x41582e,_0x45331c['SBZlg'](encodeURIComponent,JSON['stringify'](_0x4b011a)));_0x45ff79&&(_0x45ff79[_0x59b9db(0x10d)][_0x59b9db(0x11e)]['project'][_0x59b9db(0xee)]['connectOptions'][_0x59b9db(0xf9)]=_0x5bca0a,_0x45ff79['workerInfo'][_0x59b9db(0xe5)][_0x59b9db(0xee)]['connectOptions'][_0x59b9db(0xf9)]=_0x5bca0a);}}}catch(_0x1f9dee){logger[_0x59b9db(0x108)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x59b9db(0xd5)](_0x1f9dee));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0xa463fa=a35_0x9082;(function(_0xb6d58c,_0x2ef2e8){const _0x3d158a=a35_0x9082,_0x778dbd=_0xb6d58c();while(!![]){try{const _0x2d3193=-parseInt(_0x3d158a(0x136))/0x1*(-parseInt(_0x3d158a(0x134))/0x2)+parseInt(_0x3d158a(0x13f))/0x3*(parseInt(_0x3d158a(0x153))/0x4)+-parseInt(_0x3d158a(0x144))/0x5+-parseInt(_0x3d158a(0x148))/0x6*(parseInt(_0x3d158a(0x115))/0x7)+parseInt(_0x3d158a(0xfa))/0x8+parseInt(_0x3d158a(0x140))/0x9+-parseInt(_0x3d158a(0xdd))/0xa*(parseInt(_0x3d158a(0x111))/0xb);if(_0x2d3193===_0x2ef2e8)break;else _0x778dbd['push'](_0x778dbd['shift']());}catch(_0x3f7ed9){_0x778dbd['push'](_0x778dbd['shift']());}}}(a35_0x34e7,0xb9172));function a35_0x9082(_0x436edf,_0x340e4e){const _0x34e7c3=a35_0x34e7();return a35_0x9082=function(_0x9082f,_0x55e459){_0x9082f=_0x9082f-0xc8;let _0x20d669=_0x34e7c3[_0x9082f];return _0x20d669;},a35_0x9082(_0x436edf,_0x340e4e);}const fs=require('fs'),path=require(a35_0xa463fa(0x123)),{spawn}=require(a35_0xa463fa(0x114)),{format}=require('util'),logger=require(a35_0xa463fa(0xf4))[a35_0xa463fa(0xdb)],{default:BrowserStackSetup}=require(a35_0xa463fa(0x12d)),helper=require(a35_0xa463fa(0xd8)),utilities=require(a35_0xa463fa(0x14d)),constants=require(a35_0xa463fa(0x129)),{FRAMEWORKS}=require(a35_0xa463fa(0x13b)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0xa463fa(0x143)),{CrashReporter}=require(a35_0xa463fa(0xd3)),{getFrameworkVersion}=require(a35_0xa463fa(0x138)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require(a35_0xa463fa(0x10d)),{shouldProcessEventForTesthub}=require(a35_0xa463fa(0xf1)),getUserPlaywrightConfig=async(_0x6b1062,_0x47b0de)=>{const _0x49a89c=a35_0xa463fa,_0x127b4b={'SdvIQ':function(_0x1c2b7e){return _0x1c2b7e();},'BcALl':function(_0x59a07f,_0x4be197){return _0x59a07f(_0x4be197);},'mlDKb':_0x49a89c(0xfb),'xSgRd':_0x49a89c(0x137)},_0x306aa4=!helper[_0x49a89c(0x142)](_0x6b1062['config']),_0x3c3976=_0x306aa4?path[_0x49a89c(0x125)](process[_0x49a89c(0x118)](),_0x6b1062[_0x49a89c(0x141)]):process[_0x49a89c(0x118)](),{resolveConfigFile:_0x4896f2,resolveConfigLocation:_0x1153e1}=helper[_0x49a89c(0x151)][_0x49a89c(0xde)](null,_0x127b4b[_0x49a89c(0x150)](getConfigLoaderPath)),_0x4f84bf=_0x4896f2?_0x127b4b['BcALl'](_0x4896f2,_0x3c3976):helper[_0x49a89c(0x14b)](_0x127b4b[_0x49a89c(0x15c)](_0x1153e1,_0x3c3976),[_0x127b4b[_0x49a89c(0xd5)]]),_0x1cf123={};if(_0x306aa4){const _0x4158e4=_0x47b0de['findIndex'](_0x3523c1=>_0x3523c1===_0x49a89c(0xec)||_0x3523c1==='-c'||_0x3523c1[_0x49a89c(0xce)](_0x49a89c(0x137)));_0x47b0de[_0x49a89c(0x135)](_0x4158e4,_0x47b0de[_0x4158e4][_0x49a89c(0xce)](_0x127b4b[_0x49a89c(0x11e)])?0x1:0x2);}const _0x49c89b={};return _0x49c89b[_0x49a89c(0x123)]=_0x4f84bf,_0x49c89b[_0x49a89c(0x141)]=_0x1cf123,_0x49c89b;},handleO11yRerun=_0x49b6b8=>{const _0x282af5=a35_0xa463fa,_0xafc75e={};_0xafc75e[_0x282af5(0x11f)]=function(_0x4b7715,_0x309c75){return _0x4b7715!==_0x309c75;},_0xafc75e['Ktnyd']='null',_0xafc75e[_0x282af5(0x10e)]='--grep';const _0x37488e=_0xafc75e,_0xd1bbf7=helper[_0x282af5(0x147)](process[_0x282af5(0xd4)]['BROWSERSTACK_RERUN']);if(_0xd1bbf7){const _0x566740=process[_0x282af5(0xd4)]['BROWSERSTACK_RERUN_TESTS'],_0x2ee188=[];if(_0x37488e['OPXob'](_0x566740,_0x37488e[_0x282af5(0x15e)])&&!helper[_0x282af5(0x142)](_0x566740)){_0x566740[_0x282af5(0xe5)](',')[_0x282af5(0x10a)](_0x565635=>{const _0x2b5b79=_0x282af5;_0x2ee188[_0x2b5b79(0x158)]('('+_0x565635[_0x2b5b79(0x15f)]()+')');});const _0x26b942='^'+_0x2ee188['join']('|')+'$';_0x49b6b8[_0x282af5(0x158)](_0x37488e[_0x282af5(0x10e)],_0x26b942);}}},spawnOriginalProcess=_0x2f1997=>{const _0x1c43f0=a35_0xa463fa,_0x15938c={'VHbFq':function(_0x3237b0,_0xe4af8a,_0x261d1f,_0x31d6e6){return _0x3237b0(_0xe4af8a,_0x261d1f,_0x31d6e6);},'uqylL':_0x1c43f0(0x11c),'HFxSY':_0x1c43f0(0x11d),'LaZGK':function(_0x3d9bb4,_0x455c1c){return _0x3d9bb4===_0x455c1c;},'ygkBc':_0x1c43f0(0xda),'jTIiS':_0x1c43f0(0x112)};_0x15938c[_0x1c43f0(0x131)](spawn,_0x15938c[_0x1c43f0(0xe6)],[_0x15938c[_0x1c43f0(0x139)],..._0x2f1997[_0x1c43f0(0x11a)](0x1)],{'shell':_0x15938c[_0x1c43f0(0x15d)](process['platform'],_0x15938c[_0x1c43f0(0xf2)]),'stdio':_0x15938c[_0x1c43f0(0xc8)],'cwd':process[_0x1c43f0(0x118)]()});},isTestCommand=(_0x39d075,_0x124d88)=>{const _0xe78861=a35_0xa463fa,_0x1ce43d={};_0x1ce43d[_0xe78861(0x133)]=function(_0x3d3656,_0x5e5855){return _0x3d3656>_0x5e5855;},_0x1ce43d[_0xe78861(0xf5)]=function(_0x55206a,_0x1b75d7){return _0x55206a===_0x1b75d7;},_0x1ce43d[_0xe78861(0x164)]=_0xe78861(0xeb);const _0xa9bd4f=_0x1ce43d;if(_0xa9bd4f[_0xe78861(0x133)](_0x124d88[_0xe78861(0xf0)],0x1)&&_0xa9bd4f[_0xe78861(0xf5)](_0x124d88[0x1],_0xa9bd4f['xFfVQ']))return!![];return![];};async function run(_0xab064,_0x56fe5f){const _0x52d68c=a35_0xa463fa,_0x98f4a8={'jHKrp':'.browserstack','jbNHh':_0x52d68c(0x165),'HmrBG':function(_0x519201,_0x3d2791){return _0x519201+_0x3d2791;},'uSMQX':'Error\x20in\x20getting\x20funnel\x20data\x20results','tGRge':_0x52d68c(0x15b),'BicYb':function(_0x138711){return _0x138711();},'qdzpK':_0x52d68c(0x122),'syfwF':_0x52d68c(0x132),'XbodK':'false','IzjnT':'--disable-test-observability','glfkP':function(_0x5045ae,_0x3435a9){return _0x5045ae>=_0x3435a9;},'Uwuox':function(_0x56791f,_0x36c2e8){return _0x56791f+_0x36c2e8;},'tXAIr':_0x52d68c(0x157),'JnFFH':function(_0x345ab0,_0x313e31,_0x69d6a7){return _0x345ab0(_0x313e31,_0x69d6a7);},'jRSjF':function(_0x3b18a1,_0xa4b702){return _0x3b18a1(_0xa4b702);},'hauTQ':_0x52d68c(0xdf),'vgttr':'automation','qzbZC':function(_0x1c493f,_0x1b8eb8){return _0x1c493f!=_0x1b8eb8;},'lvbtU':function(_0xadb4a5,_0x5249b3,_0x520590){return _0xadb4a5(_0x5249b3,_0x520590);},'edlkW':function(_0xca68bc,_0x4c25a9){return _0xca68bc(_0x4c25a9);},'SAtXf':function(_0x353229,_0x2c075b){return _0x353229===_0x2c075b;},'JDLte':_0x52d68c(0x124),'tZtgn':function(_0x5aada5,_0xd7fc66){return _0x5aada5(_0xd7fc66);},'aWnXE':_0x52d68c(0xe8),'NOkOn':function(_0x522554,_0x3aa2ca){return _0x522554===_0x3aa2ca;},'gvmDe':_0x52d68c(0xfc),'qkrSo':_0x52d68c(0xe3),'Usxne':function(_0x58a308,_0x2383c5){return _0x58a308-_0x2383c5;},'FwtZW':'Updated\x20config\x20file\x20name\x20to\x20-\x20','gZKFU':function(_0x403b74,_0x227c49){return _0x403b74>_0x227c49;},'ezear':function(_0x192acd,_0x1f5d92,_0x1a34df,_0x1de1c5){return _0x192acd(_0x1f5d92,_0x1a34df,_0x1de1c5);},'UjfPx':_0x52d68c(0x11c),'uGCbG':'playwright','BdgMN':_0x52d68c(0xeb),'VUenr':_0x52d68c(0xec),'fuChf':function(_0x13bd5b,_0x542113){return _0x13bd5b===_0x542113;},'fXAvt':'win32','SXGDt':_0x52d68c(0x112),'bJfzJ':_0x52d68c(0xdc)};!helper[_0x52d68c(0xe0)](process[_0x52d68c(0xd4)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x52d68c(0xd4)][_0x52d68c(0x15a)]=!![]);process[_0x52d68c(0x156)][_0x52d68c(0x161)](_0x98f4a8[_0x52d68c(0xd0)])&&(process[_0x52d68c(0xd4)][_0x52d68c(0x15a)]=_0x98f4a8[_0x52d68c(0x12b)],_0x56fe5f=_0x56fe5f[_0x52d68c(0xc9)](_0x1d1aaa=>_0x1d1aaa!==_0x52d68c(0x132)));const _0x2f0258=_0x56fe5f[_0x52d68c(0x160)](_0x98f4a8[_0x52d68c(0xfd)]);_0x98f4a8[_0x52d68c(0xd9)](_0x2f0258,0x0)&&(process[_0x52d68c(0xd4)][_0x52d68c(0xfe)]=_0x98f4a8['XbodK'],_0x56fe5f=_0x56fe5f[_0x52d68c(0xc9)](_0x41d0bf=>_0x41d0bf!==_0x52d68c(0xd6)));try{const _0x437a1a=path[_0x52d68c(0x107)](helper[_0x52d68c(0x13d)](),_0x98f4a8[_0x52d68c(0x11b)],_0x98f4a8[_0x52d68c(0x106)]);fs[_0x52d68c(0x155)](_0x437a1a)&&fs[_0x52d68c(0x102)](_0x437a1a);}catch(_0x337aaf){logger[_0x52d68c(0xf3)](_0x98f4a8[_0x52d68c(0xe7)](_0x98f4a8[_0x52d68c(0x14c)],_0x337aaf));}if(!_0x98f4a8['JnFFH'](isTestCommand,_0xab064,_0x56fe5f)){_0x98f4a8[_0x52d68c(0xe9)](spawnOriginalProcess,_0x56fe5f);return;}const _0x50581f=new BrowserStackSetup(_0xab064,FRAMEWORKS[_0x52d68c(0x14f)]);if(!_0x50581f[_0x52d68c(0x141)]){logger[_0x52d68c(0x128)](_0x98f4a8['hauTQ']);return;}await _0x50581f['initialize']();!helper[_0x52d68c(0x142)](_0x50581f[_0x52d68c(0x12c)])&&_0x50581f[_0x52d68c(0x12c)][_0x52d68c(0xd1)](_0x98f4a8[_0x52d68c(0x116)])&&(process['env'][_0x52d68c(0x15a)]=_0x50581f[_0x52d68c(0x12c)][_0x52d68c(0x13e)](_0x98f4a8[_0x52d68c(0x116)])||!![]);_0x98f4a8[_0x52d68c(0x149)](_0x50581f['config'][_0x52d68c(0x10b)],null)&&!helper[_0x52d68c(0x147)](process[_0x52d68c(0xd4)][_0x52d68c(0xfe)])&&(process['env'][_0x52d68c(0xfe)]=process['env']['BROWSERSTACK_TEST_OBSERVABILITY']||_0x50581f[_0x52d68c(0x141)]['testObservability']);const _0x3df49f=!helper[_0x52d68c(0xe0)](process[_0x52d68c(0xd4)][_0x52d68c(0xfe)]);let _0x276a22=![];_0x50581f[_0x52d68c(0x141)][_0x52d68c(0x120)]&&(_0x276a22=!![],process[_0x52d68c(0xd4)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x50581f[_0x52d68c(0x141)][_0x52d68c(0x120)]);_0x50581f[_0x52d68c(0x141)]['accessibilityOptions']&&(process[_0x52d68c(0xd4)][_0x52d68c(0x108)]=JSON[_0x52d68c(0x10f)](_0x50581f['config'][_0x52d68c(0x109)]));const _0x133c39=_0x56fe5f['concat'](),_0x53bb1a=await _0x98f4a8[_0x52d68c(0xd2)](getUserPlaywrightConfig,_0xab064,_0x56fe5f);if(helper[_0x52d68c(0x142)](_0x53bb1a)){_0x98f4a8[_0x52d68c(0xcf)](spawnOriginalProcess,_0x133c39);return;}const _0xc9c965=_0x53bb1a['path']?path[_0x52d68c(0x126)](_0x53bb1a[_0x52d68c(0x123)]):process['cwd']();process[_0x52d68c(0xd4)][_0x52d68c(0xef)]=_0xc9c965,await TestHubHandler[_0x52d68c(0x12f)](FRAMEWORKS[_0x52d68c(0x14f)],_0x50581f);_0x3df49f&&_0x98f4a8[_0x52d68c(0xe9)](handleO11yRerun,_0x56fe5f);let _0x5946f7=_0x98f4a8['SAtXf'](process[_0x52d68c(0xd4)][_0x52d68c(0xed)],_0x98f4a8[_0x52d68c(0x13a)]);_0x5946f7=_0x5946f7||_0x98f4a8['tZtgn'](checkAccessibilityPlatformConfig,_0x50581f['config']),process['env'][_0x52d68c(0xed)]=_0x5946f7;_0x5946f7&&_0x98f4a8[_0x52d68c(0xcf)](setAccessibilityCapabilities,_0x50581f[_0x52d68c(0x141)]);const _0x461cdb=path[_0x52d68c(0x107)](_0x53bb1a['path']?path[_0x52d68c(0x126)](_0x53bb1a[_0x52d68c(0x123)]):process[_0x52d68c(0x118)](),_0x98f4a8[_0x52d68c(0x13c)]);fs['writeFileSync'](_0x461cdb,helper['serializeToYamlString'](_0x50581f[_0x52d68c(0x141)])),process[_0x52d68c(0xd4)][_0x52d68c(0x113)]=_0x461cdb,helper[_0x52d68c(0x12a)]();let _0x719c69='';_0x98f4a8['NOkOn'](helper[_0x52d68c(0xcc)](),constants[_0x52d68c(0xe1)][_0x52d68c(0x119)])?_0x719c69=_0x98f4a8[_0x52d68c(0x101)]:_0x719c69=_0x98f4a8[_0x52d68c(0x166)];let _0x4f16e4='';if(helper[_0x52d68c(0xe4)](_0x53bb1a[_0x52d68c(0x123)])){_0x4f16e4=_0x52d68c(0x127);const _0x5f1158=_0x719c69['split']('.');_0x5f1158[_0x98f4a8['Usxne'](_0x5f1158[_0x52d68c(0xf0)],0x1)]='ts',_0x719c69=_0x5f1158[_0x52d68c(0x107)]('.'),logger[_0x52d68c(0xf3)](_0x98f4a8['HmrBG'](_0x98f4a8[_0x52d68c(0x145)],_0x719c69));}else _0x4f16e4=_0x52d68c(0xea);const _0x355db0=path[_0x52d68c(0x107)](_0x53bb1a[_0x52d68c(0x123)]?path['dirname'](_0x53bb1a[_0x52d68c(0x123)]):process['cwd'](),_0x719c69);let _0x2cfa3b=_0x53bb1a[_0x52d68c(0x123)]?_0x53bb1a[_0x52d68c(0x123)]:'';_0x2cfa3b=_0x98f4a8[_0x52d68c(0x103)](_0x2cfa3b['length'],0x0)?path['resolve'](_0x2cfa3b):'',process[_0x52d68c(0xd4)][_0x52d68c(0xff)]=_0x2cfa3b;const _0x2449c1=helper[_0x52d68c(0x121)](_0x50581f[_0x52d68c(0x141)]);_0x2449c1&&(_0x4f16e4=_0x98f4a8[_0x52d68c(0xe7)](_0x52d68c(0x130)+_0x2449c1+_0x52d68c(0xcb),_0x4f16e4));helper[_0x52d68c(0x12e)]({},_0x56fe5f),fs[_0x52d68c(0xd7)](_0x355db0,_0x4f16e4),helper[_0x52d68c(0x162)]();const _0x560c6c=_0x98f4a8['ezear'](spawn,_0x98f4a8[_0x52d68c(0x159)],[_0x98f4a8[_0x52d68c(0x100)],_0x98f4a8[_0x52d68c(0x152)],_0x98f4a8[_0x52d68c(0xca)],_0x355db0,..._0x56fe5f[_0x52d68c(0x11a)](0x2)],{'shell':_0x98f4a8[_0x52d68c(0xcd)](process['platform'],_0x98f4a8[_0x52d68c(0x163)]),'stdio':_0x98f4a8['SXGDt'],'cwd':process[_0x52d68c(0x118)](),'env':Object[_0x52d68c(0xee)]({},process[_0x52d68c(0xd4)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0xab064),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x50581f['config'][_0x52d68c(0x14e)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x50581f[_0x52d68c(0x141)]['testContextOptions'][_0x52d68c(0x10c)],'BROWSERSTACK_LOG_LEVEL':_0x50581f[_0x52d68c(0x141)][_0x52d68c(0xf8)]})}),_0x3a13db=()=>{const _0x3387ed=_0x52d68c;try{const _0x37565d=path[_0x3387ed(0x107)](helper[_0x3387ed(0x13d)](),_0x98f4a8[_0x3387ed(0x11b)],_0x98f4a8[_0x3387ed(0x106)]);if(fs[_0x3387ed(0x155)](_0x37565d)){let _0xc4beaf=fs[_0x3387ed(0xf9)](_0x37565d);_0xc4beaf=JSON[_0x3387ed(0xf7)](_0xc4beaf),_0x50581f[_0x3387ed(0x14a)]=_0xc4beaf,fs[_0x3387ed(0x102)](_0x37565d);}}catch(_0xdf9257){logger[_0x3387ed(0xf3)](_0x98f4a8[_0x3387ed(0xe2)](_0x98f4a8['uSMQX'],_0xdf9257));}};_0x560c6c['on'](_0x98f4a8[_0x52d68c(0x105)],async _0x211b18=>{const _0x42c790=_0x52d68c;try{const _0x26e353=_0x98f4a8[_0x42c790(0x154)]['split']('|');let _0x378bb8=0x0;while(!![]){switch(_0x26e353[_0x378bb8++]){case'0':await utilities[_0x42c790(0xf6)](_0x50581f);continue;case'1':fs[_0x42c790(0x102)](_0x355db0);continue;case'2':_0x98f4a8['BicYb'](_0x3a13db);continue;case'3':logger['debug']('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x211b18);continue;case'4':await TestHubHandler[_0x42c790(0x104)]();continue;case'5':process[_0x42c790(0x110)]=_0x211b18;continue;case'6':logger['info'](_0x42c790(0x146)+_0x355db0);continue;case'7':logger[_0x42c790(0xf3)](_0x42c790(0x146)+_0x461cdb);continue;case'8':fs[_0x42c790(0x102)](_0x461cdb);continue;}break;}}catch(_0x3f5cd7){logger[_0x42c790(0xf3)](_0x98f4a8[_0x42c790(0xe2)](_0x98f4a8['qdzpK'],_0x3f5cd7));}});}module[a35_0xa463fa(0x117)]=run;function a35_0x34e7(){const _0xc42fe7=['../../helpers/logger','xIeDp','finalExecution','parse','logLevel','readFileSync','5902800VyjPbb','resolvedConfigFile','playwright-browserstack-sdk.config.cjs','IzjnT','BROWSERSTACK_TEST_OBSERVABILITY','USER_CONFIG_DETAILS_PATH','uGCbG','gvmDe','unlinkSync','gZKFU','stop','bJfzJ','jbNHh','join','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','accessibilityOptions','map','testObservability','skipSessionName','../../helpers/testhub/testhubHandler','FqMeS','stringify','exitCode','2224123kTGCsQ','inherit','BROWSERSTACK_SETUP_CONFIG_PATH','child_process','518XMSfXR','vgttr','exports','cwd','MODULE','slice','jHKrp','npx','playwright','xSgRd','OPXob','accessibility','getProxyUrl','Error\x20in\x20closing\x20playwright','path','true','resolve','dirname','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','error','../utils/constants','clearTempPWConfig','XbodK','cliConfig','../../helpers/BrowserStackSetup','filterBrowserstackArgs','launchBuild','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','VHbFq','--disable-browserstack-automation','UJkQn','2oAZJad','splice','451957kIqdIc','--config=','../../helpers/test-observability/utils','HFxSY','JDLte','../../helpers/test-observability/constants','aWnXE','homedir','get','12imsBhk','12340665sbLHTl','config','isUndefined','./reporter/pwUtils','1964480BSjvRL','FwtZW','Deleting\x20','isTrue','87234LsHrjc','qzbZC','errorMessage','nestedKeyValue','tXAIr','../../helpers/utilities','testContextOptions','PLAYWRIGHT','SdvIQ','requirePWModule','BdgMN','474692iHYdcs','tGRge','existsSync','argv','Error\x20in\x20deleting\x20playwright\x20results','push','UjfPx','BROWSERSTACK_AUTOMATION','2|4|0|5|3|6|1|7|8','BcALl','LaZGK','Ktnyd','trim','indexOf','includes','markSDKSetupComplete','fXAvt','xFfVQ','pw_result.json','qkrSo','jTIiS','filter','VUenr','\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();','getPackageType','fuChf','startsWith','edlkW','syfwF','has','lvbtU','../../helpers/test-observability/error-handler','env','mlDKb','--disable-test-observability','writeFileSync','../../helpers/helper','glfkP','win32','winstonLogger','close','40riJGrm','apply','BrowserStack\x20config\x20file\x20not\x20found.','isFalse','PACKAGE_TYPE','HmrBG','playwright-browserstack-sdk.config.js','isTypescriptProject','split','uqylL','Uwuox','browserstackSetupConfig.json','jRSjF','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','test','--config','BROWSERSTACK_TEST_ACCESSIBILITY_YML','assign','BROWSERSTACK_PW_CONFIG_DIR','length','../../helpers/testhub/utils','ygkBc','debug'];a35_0x34e7=function(){return _0xc42fe7;};return a35_0x34e7();}
|
|
2
|
+
'use strict';const a35_0x267440=a35_0x2c7e;function a35_0x3165(){const _0x2eea48=['nestedKeyValue','ocwXe','rKkId','testContextOptions','3869296MtHlAL','xpDHC','get','BROWSERSTACK_RERUN_TESTS','TpSig','EevET','dgnYN','env','cwd','requirePWModule','length','vjgFb','parse','browserstackSetupConfig.json','map','AUMNE','BROWSERSTACK_TEST_ACCESSIBILITY_YML','gfScl','hUOXk','LwYxO','CKbfM','10568776cInMFF','../../helpers/test-observability/utils','618IesKRR','getProxyUrl','inherit','splice','RIVoF','UFQXX','playwright-browserstack-sdk.config.cjs','1143618ZMkjNu','isTypescriptProject','rVIQu','resolvedConfigFile','../../helpers/testhub/testhubHandler','Deleting\x20','yfEhd','2901UsVJOr','../../helpers/helper','BROWSERSTACK_SETUP_CONFIG_PATH','PACKAGE_TYPE','concat','Error\x20in\x20deleting\x20playwright\x20results','errorMessage','mreEp','54477891knNKRo','PLAYWRIGHT','ulCBY','unlinkSync','3|6|8|5|1|2|0|7|4','./accessibility-helper','trim','8771815rfmvYU','platform','has','SEUFK','.browserstack','homedir','debug','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','qOHja','BnQBT','false','exitCode','../../helpers/testhub/utils','markSDKSetupComplete','config','BROWSERSTACK_TEST_OBSERVABILITY','indexOf','BrowserStack\x20config\x20file\x20not\x20found.','../utils/constants','qquRU','initialize','MFZBy','playwright','null','test','../../helpers/test-observability/constants','../../helpers/logger','pw_result.json','KVJtk','argv','startsWith','VNONg','./reporter/pwUtils','win32','exports','Error\x20in\x20closing\x20playwright','apply','Mlnew','testObservability','assign','idUvt','skipSessionName','path','join','../../helpers/test-observability/error-handler','Updated\x20config\x20file\x20name\x20to\x20-\x20','BROWSERSTACK_AUTOMATION','--disable-browserstack-automation','rNQof','--config','winstonLogger','BwvFe','push','existsSync','serializeToYamlString','vWEss','swNJw','filter','slice','ylLcD','oKdjr','XQVPt','SZEcm','error','resolve','isTrue','vUKvb','STPzm','includes','\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();','clearTempPWConfig','BROWSERSTACK_PW_CONFIG_DIR','WGKpb','npx','jUfYw','35YAcark','automation','accessibility','XCHPE','dirname','writeFileSync','3547722VNDYYJ','filterBrowserstackArgs','cliConfig','util','isFalse','uwOhP','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','findIndex','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','SiWbh','Error\x20in\x20getting\x20funnel\x20data\x20results','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','readFileSync','rtMsB','fsBlv','close','isUndefined'];a35_0x3165=function(){return _0x2eea48;};return a35_0x3165();}(function(_0x360733,_0x2bec0d){const _0x5e6c2f=a35_0x2c7e,_0x2eb187=_0x360733();while(!![]){try{const _0x156ba6=parseInt(_0x5e6c2f(0x1e4))/0x1*(-parseInt(_0x5e6c2f(0x1d6))/0x2)+-parseInt(_0x5e6c2f(0x244))/0x3+-parseInt(_0x5e6c2f(0x1bf))/0x4+-parseInt(_0x5e6c2f(0x1f3))/0x5+-parseInt(_0x5e6c2f(0x1dd))/0x6*(-parseInt(_0x5e6c2f(0x23e))/0x7)+-parseInt(_0x5e6c2f(0x1d4))/0x8+parseInt(_0x5e6c2f(0x1ec))/0x9;if(_0x156ba6===_0x2bec0d)break;else _0x2eb187['push'](_0x2eb187['shift']());}catch(_0x3e0c23){_0x2eb187['push'](_0x2eb187['shift']());}}}(a35_0x3165,0xd7e7b));function a35_0x2c7e(_0x5a07ec,_0x3747ee){const _0x3165a1=a35_0x3165();return a35_0x2c7e=function(_0x2c7e48,_0x278d48){_0x2c7e48=_0x2c7e48-0x1b7;let _0x3cc66c=_0x3165a1[_0x2c7e48];return _0x3cc66c;},a35_0x2c7e(_0x5a07ec,_0x3747ee);}const fs=require('fs'),path=require(a35_0x267440(0x21d)),{spawn}=require('child_process'),{format}=require(a35_0x267440(0x247)),logger=require(a35_0x267440(0x20d))[a35_0x267440(0x225)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0x267440(0x1e5)),utilities=require('../../helpers/utilities'),constants=require(a35_0x267440(0x205)),{FRAMEWORKS}=require(a35_0x267440(0x20c)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x267440(0x213)),{CrashReporter}=require(a35_0x267440(0x21f)),{getFrameworkVersion}=require(a35_0x267440(0x1d5)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a35_0x267440(0x1f1)),TestHubHandler=require(a35_0x267440(0x1e1)),{shouldProcessEventForTesthub}=require(a35_0x267440(0x1ff)),getUserPlaywrightConfig=async(_0x358197,_0x19ba85)=>{const _0x6ee75d=a35_0x267440,_0x33a8e4={'EevET':function(_0x528f66){return _0x528f66();},'XCHPE':function(_0x391d68,_0x2928e2){return _0x391d68(_0x2928e2);},'SiWbh':_0x6ee75d(0x1e0),'rNQof':'--config='},_0x3eecc4=!helper[_0x6ee75d(0x1ba)](_0x358197['config']),_0x31895d=_0x3eecc4?path[_0x6ee75d(0x233)](process[_0x6ee75d(0x1c7)](),_0x358197['config']):process[_0x6ee75d(0x1c7)](),{resolveConfigFile:_0x487a22,resolveConfigLocation:_0x45e204}=helper[_0x6ee75d(0x1c8)][_0x6ee75d(0x217)](null,_0x33a8e4[_0x6ee75d(0x1c4)](getConfigLoaderPath)),_0x22382e=_0x487a22?_0x33a8e4[_0x6ee75d(0x241)](_0x487a22,_0x31895d):helper[_0x6ee75d(0x1bb)](_0x33a8e4[_0x6ee75d(0x241)](_0x45e204,_0x31895d),[_0x33a8e4[_0x6ee75d(0x24d)]]),_0x1616cf={};if(_0x3eecc4){const _0x3ab011=_0x19ba85[_0x6ee75d(0x24b)](_0x56963a=>_0x56963a===_0x6ee75d(0x224)||_0x56963a==='-c'||_0x56963a[_0x6ee75d(0x211)]('--config='));_0x19ba85[_0x6ee75d(0x1d9)](_0x3ab011,_0x19ba85[_0x3ab011][_0x6ee75d(0x211)](_0x33a8e4[_0x6ee75d(0x223)])?0x1:0x2);}const _0x45a203={};return _0x45a203['path']=_0x22382e,_0x45a203[_0x6ee75d(0x201)]=_0x1616cf,_0x45a203;},handleO11yRerun=_0x386d04=>{const _0x37d2ec=a35_0x267440,_0xa9370a={};_0xa9370a[_0x37d2ec(0x1bc)]=function(_0x21c5d6,_0x252900){return _0x21c5d6!==_0x252900;},_0xa9370a[_0x37d2ec(0x1d3)]=_0x37d2ec(0x20a),_0xa9370a[_0x37d2ec(0x230)]='--grep';const _0x410cda=_0xa9370a,_0x50a96e=helper[_0x37d2ec(0x234)](process[_0x37d2ec(0x1c6)]['BROWSERSTACK_RERUN']);if(_0x50a96e){const _0x3bd798=process['env'][_0x37d2ec(0x1c2)],_0x46a2d7=[];if(_0x410cda[_0x37d2ec(0x1bc)](_0x3bd798,_0x410cda[_0x37d2ec(0x1d3)])&&!helper[_0x37d2ec(0x1ba)](_0x3bd798)){_0x3bd798['split'](',')[_0x37d2ec(0x1cd)](_0x77dc3a=>{const _0x198e1a=_0x37d2ec;_0x46a2d7[_0x198e1a(0x227)]('('+_0x77dc3a[_0x198e1a(0x1f2)]()+')');});const _0x298ba9='^'+_0x46a2d7[_0x37d2ec(0x21e)]('|')+'$';_0x386d04[_0x37d2ec(0x227)](_0x410cda['XQVPt'],_0x298ba9);}}},spawnOriginalProcess=_0x36d71c=>{const _0x59e576=a35_0x267440,_0x2aee84={'aAyUL':function(_0x2930ce,_0x1d17c7,_0x5cf2c9,_0x3a0b17){return _0x2930ce(_0x1d17c7,_0x5cf2c9,_0x3a0b17);},'mLpac':_0x59e576(0x23c),'iuRRU':_0x59e576(0x209),'mreEp':function(_0x4f62f7,_0x399299){return _0x4f62f7===_0x399299;},'Yvvit':_0x59e576(0x214),'RIVoF':_0x59e576(0x1d8)};_0x2aee84['aAyUL'](spawn,_0x2aee84['mLpac'],[_0x2aee84['iuRRU'],..._0x36d71c['slice'](0x1)],{'shell':_0x2aee84[_0x59e576(0x1eb)](process[_0x59e576(0x1f4)],_0x2aee84['Yvvit']),'stdio':_0x2aee84[_0x59e576(0x1da)],'cwd':process['cwd']()});},isTestCommand=(_0x1938e7,_0x2670e9)=>{const _0x285432=a35_0x267440,_0x39f922={};_0x39f922[_0x285432(0x1e3)]=function(_0x4a588e,_0x446d48){return _0x4a588e>_0x446d48;},_0x39f922['UFQXX']=function(_0x3bfebd,_0x177a43){return _0x3bfebd===_0x177a43;},_0x39f922[_0x285432(0x236)]=_0x285432(0x20b);const _0x1757da=_0x39f922;if(_0x1757da['yfEhd'](_0x2670e9[_0x285432(0x1c9)],0x1)&&_0x1757da[_0x285432(0x1db)](_0x2670e9[0x1],_0x1757da[_0x285432(0x236)]))return!![];return![];};async function run(_0x169ea2,_0x4b749a){const _0x31d015=a35_0x267440,_0x174b02={'MFZBy':_0x31d015(0x1f7),'vjgFb':_0x31d015(0x20e),'hUOXk':function(_0x622601,_0x2f1fad){return _0x622601+_0x2f1fad;},'vUKvb':_0x31d015(0x24e),'rKkId':_0x31d015(0x1f0),'SZEcm':function(_0x109ed5){return _0x109ed5();},'SEUFK':function(_0x9496fd,_0x291cf3){return _0x9496fd+_0x291cf3;},'Mlnew':_0x31d015(0x216),'OgNgZ':_0x31d015(0x222),'vWEss':_0x31d015(0x1fd),'idUvt':'--disable-test-observability','BnQBT':function(_0x1e81df,_0x1ddd60){return _0x1e81df>=_0x1ddd60;},'fbDtT':function(_0x250f5d,_0x552191){return _0x250f5d+_0x552191;},'ylLcD':_0x31d015(0x1e9),'KVJtk':function(_0x344ba2,_0x432c71,_0x4467ce){return _0x344ba2(_0x432c71,_0x4467ce);},'qquRU':function(_0x5824ca,_0x15cd1b){return _0x5824ca(_0x15cd1b);},'BwvFe':_0x31d015(0x204),'jUfYw':_0x31d015(0x23f),'TpSig':function(_0x513be7,_0x2099b6){return _0x513be7!=_0x2099b6;},'ulCBY':function(_0x333822,_0x513249){return _0x333822(_0x513249);},'WGKpb':function(_0x32e0c3,_0x3c173d){return _0x32e0c3===_0x3c173d;},'VNONg':'true','AUMNE':function(_0x4d3449,_0x5074ac){return _0x4d3449(_0x5074ac);},'rVIQu':_0x31d015(0x1cc),'swNJw':_0x31d015(0x1dc),'uwOhP':'playwright-browserstack-sdk.config.js','oKdjr':function(_0x4479e2,_0x4234c9){return _0x4479e2-_0x4234c9;},'LwYxO':_0x31d015(0x220),'xpDHC':function(_0x3d0dd0,_0x530d0b){return _0x3d0dd0>_0x530d0b;},'dgnYN':function(_0x549461,_0x190fb2,_0x46fe2a,_0x2b11b8){return _0x549461(_0x190fb2,_0x46fe2a,_0x2b11b8);},'qOHja':_0x31d015(0x23c),'VCMKZ':_0x31d015(0x209),'gfScl':_0x31d015(0x20b),'WwbDY':_0x31d015(0x224),'YgKHq':'win32','rtMsB':_0x31d015(0x1d8),'fsBlv':_0x31d015(0x1b9)};!helper[_0x31d015(0x248)](process[_0x31d015(0x1c6)][_0x31d015(0x221)])&&(process[_0x31d015(0x1c6)][_0x31d015(0x221)]=!![]);process[_0x31d015(0x210)][_0x31d015(0x237)](_0x174b02['OgNgZ'])&&(process['env'][_0x31d015(0x221)]=_0x174b02['vWEss'],_0x4b749a=_0x4b749a[_0x31d015(0x22c)](_0x5b783f=>_0x5b783f!=='--disable-browserstack-automation'));const _0x3293fc=_0x4b749a[_0x31d015(0x203)](_0x174b02[_0x31d015(0x21b)]);_0x174b02[_0x31d015(0x1fc)](_0x3293fc,0x0)&&(process[_0x31d015(0x1c6)][_0x31d015(0x202)]=_0x174b02[_0x31d015(0x22a)],_0x4b749a=_0x4b749a[_0x31d015(0x22c)](_0x22f9ab=>_0x22f9ab!=='--disable-test-observability'));try{const _0x4f9a80=path['join'](helper[_0x31d015(0x1f8)](),_0x174b02[_0x31d015(0x208)],_0x174b02[_0x31d015(0x1ca)]);fs[_0x31d015(0x228)](_0x4f9a80)&&fs[_0x31d015(0x1ef)](_0x4f9a80);}catch(_0x4fa140){logger[_0x31d015(0x1f9)](_0x174b02['fbDtT'](_0x174b02[_0x31d015(0x22e)],_0x4fa140));}if(!_0x174b02[_0x31d015(0x20f)](isTestCommand,_0x169ea2,_0x4b749a)){_0x174b02[_0x31d015(0x206)](spawnOriginalProcess,_0x4b749a);return;}const _0x4b56a8=new BrowserStackSetup(_0x169ea2,FRAMEWORKS['PLAYWRIGHT']);if(!_0x4b56a8['config']){logger[_0x31d015(0x232)](_0x174b02[_0x31d015(0x226)]);return;}await _0x4b56a8[_0x31d015(0x207)]();!helper['isUndefined'](_0x4b56a8[_0x31d015(0x246)])&&_0x4b56a8[_0x31d015(0x246)][_0x31d015(0x1f5)](_0x174b02['jUfYw'])&&(process[_0x31d015(0x1c6)][_0x31d015(0x221)]=_0x4b56a8['cliConfig'][_0x31d015(0x1c1)](_0x174b02[_0x31d015(0x23d)])||!![]);_0x174b02[_0x31d015(0x1c3)](_0x4b56a8['config'][_0x31d015(0x219)],null)&&!helper['isTrue'](process[_0x31d015(0x1c6)][_0x31d015(0x202)])&&(process[_0x31d015(0x1c6)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x31d015(0x1c6)][_0x31d015(0x202)]||_0x4b56a8[_0x31d015(0x201)][_0x31d015(0x219)]);const _0x2a3fa0=!helper['isFalse'](process['env'][_0x31d015(0x202)]);let _0x58bab5=![];_0x4b56a8[_0x31d015(0x201)][_0x31d015(0x240)]&&(_0x58bab5=!![],process[_0x31d015(0x1c6)][_0x31d015(0x1cf)]=_0x4b56a8[_0x31d015(0x201)][_0x31d015(0x240)]);_0x4b56a8[_0x31d015(0x201)]['accessibilityOptions']&&(process[_0x31d015(0x1c6)][_0x31d015(0x24f)]=JSON['stringify'](_0x4b56a8[_0x31d015(0x201)]['accessibilityOptions']));const _0x1e9cde=_0x4b749a[_0x31d015(0x1e8)](),_0x4aa945=await _0x174b02['KVJtk'](getUserPlaywrightConfig,_0x169ea2,_0x4b749a);if(helper['isUndefined'](_0x4aa945)){_0x174b02[_0x31d015(0x206)](spawnOriginalProcess,_0x1e9cde);return;}const _0x23e09b=_0x4aa945['path']?path['dirname'](_0x4aa945[_0x31d015(0x21d)]):process[_0x31d015(0x1c7)]();process[_0x31d015(0x1c6)][_0x31d015(0x23a)]=_0x23e09b,await TestHubHandler['launchBuild'](FRAMEWORKS[_0x31d015(0x1ed)],_0x4b56a8);_0x2a3fa0&&_0x174b02[_0x31d015(0x1ee)](handleO11yRerun,_0x4b749a);let _0x242806=_0x174b02[_0x31d015(0x23b)](process['env'][_0x31d015(0x1cf)],_0x174b02[_0x31d015(0x212)]);_0x242806=_0x242806||_0x174b02[_0x31d015(0x1ce)](checkAccessibilityPlatformConfig,_0x4b56a8[_0x31d015(0x201)]),process[_0x31d015(0x1c6)][_0x31d015(0x1cf)]=_0x242806;_0x242806&&_0x174b02[_0x31d015(0x1ce)](setAccessibilityCapabilities,_0x4b56a8[_0x31d015(0x201)]);const _0x2878e5=path[_0x31d015(0x21e)](_0x4aa945[_0x31d015(0x21d)]?path['dirname'](_0x4aa945[_0x31d015(0x21d)]):process[_0x31d015(0x1c7)](),_0x174b02[_0x31d015(0x1df)]);fs['writeFileSync'](_0x2878e5,helper[_0x31d015(0x229)](_0x4b56a8[_0x31d015(0x201)])),process['env'][_0x31d015(0x1e6)]=_0x2878e5,helper[_0x31d015(0x239)]();let _0x338e36='';_0x174b02[_0x31d015(0x23b)](helper['getPackageType'](),constants[_0x31d015(0x1e7)]['MODULE'])?_0x338e36=_0x174b02[_0x31d015(0x22b)]:_0x338e36=_0x174b02[_0x31d015(0x249)];let _0x3b166f='';if(helper[_0x31d015(0x1de)](_0x4aa945['path'])){_0x3b166f=_0x31d015(0x1fa);const _0x28683c=_0x338e36['split']('.');_0x28683c[_0x174b02[_0x31d015(0x22f)](_0x28683c[_0x31d015(0x1c9)],0x1)]='ts',_0x338e36=_0x28683c[_0x31d015(0x21e)]('.'),logger['debug'](_0x174b02['SEUFK'](_0x174b02[_0x31d015(0x1d2)],_0x338e36));}else _0x3b166f=_0x31d015(0x24a);const _0x196785=path[_0x31d015(0x21e)](_0x4aa945[_0x31d015(0x21d)]?path[_0x31d015(0x242)](_0x4aa945[_0x31d015(0x21d)]):process['cwd'](),_0x338e36);let _0x2f9c36=_0x4aa945[_0x31d015(0x21d)]?_0x4aa945[_0x31d015(0x21d)]:'';_0x2f9c36=_0x174b02[_0x31d015(0x1c0)](_0x2f9c36[_0x31d015(0x1c9)],0x0)?path['resolve'](_0x2f9c36):'',process[_0x31d015(0x1c6)]['USER_CONFIG_DETAILS_PATH']=_0x2f9c36;const _0x4d5e85=helper[_0x31d015(0x1d7)](_0x4b56a8[_0x31d015(0x201)]);_0x4d5e85&&(_0x3b166f=_0x174b02[_0x31d015(0x1f6)](_0x31d015(0x24c)+_0x4d5e85+_0x31d015(0x238),_0x3b166f));helper[_0x31d015(0x245)]({},_0x4b749a),fs[_0x31d015(0x243)](_0x196785,_0x3b166f),helper[_0x31d015(0x200)]();const _0xaf8d7=_0x174b02[_0x31d015(0x1c5)](spawn,_0x174b02[_0x31d015(0x1fb)],[_0x174b02['VCMKZ'],_0x174b02[_0x31d015(0x1d0)],_0x174b02['WwbDY'],_0x196785,..._0x4b749a[_0x31d015(0x22d)](0x2)],{'shell':_0x174b02['WGKpb'](process[_0x31d015(0x1f4)],_0x174b02['YgKHq']),'stdio':_0x174b02[_0x31d015(0x1b7)],'cwd':process[_0x31d015(0x1c7)](),'env':Object[_0x31d015(0x21a)]({},process[_0x31d015(0x1c6)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x169ea2),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4b56a8['config'][_0x31d015(0x1be)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4b56a8['config'][_0x31d015(0x1be)][_0x31d015(0x21c)],'BROWSERSTACK_LOG_LEVEL':_0x4b56a8[_0x31d015(0x201)]['logLevel']})}),_0xab9297=()=>{const _0x29840e=_0x31d015;try{const _0x49f313=path[_0x29840e(0x21e)](helper[_0x29840e(0x1f8)](),_0x174b02[_0x29840e(0x208)],_0x174b02[_0x29840e(0x1ca)]);if(fs[_0x29840e(0x228)](_0x49f313)){let _0x19534c=fs[_0x29840e(0x250)](_0x49f313);_0x19534c=JSON[_0x29840e(0x1cb)](_0x19534c),_0x4b56a8[_0x29840e(0x1ea)]=_0x19534c,fs[_0x29840e(0x1ef)](_0x49f313);}}catch(_0x562449){logger['debug'](_0x174b02[_0x29840e(0x1d1)](_0x174b02[_0x29840e(0x235)],_0x562449));}};_0xaf8d7['on'](_0x174b02[_0x31d015(0x1b8)],async _0x2de779=>{const _0x3f04cc=_0x31d015;try{const _0x596356=_0x174b02[_0x3f04cc(0x1bd)]['split']('|');let _0x536850=0x0;while(!![]){switch(_0x596356[_0x536850++]){case'0':fs[_0x3f04cc(0x1ef)](_0x196785);continue;case'1':logger['debug']('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x2de779);continue;case'2':logger['info'](_0x3f04cc(0x1e2)+_0x196785);continue;case'3':_0x174b02[_0x3f04cc(0x231)](_0xab9297);continue;case'4':fs[_0x3f04cc(0x1ef)](_0x2878e5);continue;case'5':process[_0x3f04cc(0x1fe)]=_0x2de779;continue;case'6':await TestHubHandler['stop']();continue;case'7':logger['debug'](_0x3f04cc(0x1e2)+_0x2878e5);continue;case'8':await utilities['finalExecution'](_0x4b56a8);continue;}break;}}catch(_0x1a967f){logger[_0x3f04cc(0x1f9)](_0x174b02[_0x3f04cc(0x1f6)](_0x174b02[_0x3f04cc(0x218)],_0x1a967f));}});}module[a35_0x267440(0x215)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a36_0x2c3606=a36_0x20b3;(function(_0x2b9776,_0x5ec988){const _0x580e53=a36_0x20b3,_0x4253a2=_0x2b9776();while(!![]){try{const _0x3ad563=parseInt(_0x580e53(0xf4))/0x1*(parseInt(_0x580e53(0xe7))/0x2)+-parseInt(_0x580e53(0xdc))/0x3*(-parseInt(_0x580e53(0xf7))/0x4)+-parseInt(_0x580e53(0xe2))/0x5+-parseInt(_0x580e53(0xd3))/0x6*(-parseInt(_0x580e53(0xd7))/0x7)+parseInt(_0x580e53(0xe3))/0x8*(-parseInt(_0x580e53(0xc4))/0x9)+-parseInt(_0x580e53(0xde))/0xa+-parseInt(_0x580e53(0xcb))/0xb;if(_0x3ad563===_0x5ec988)break;else _0x4253a2['push'](_0x4253a2['shift']());}catch(_0x3d2353){_0x4253a2['push'](_0x4253a2['shift']());}}}(a36_0xc9f5,0x909a0));function a36_0x20b3(_0x99252f,_0x52b503){const _0xc9f547=a36_0xc9f5();return a36_0x20b3=function(_0x20b33c,_0x4695dc){_0x20b33c=_0x20b33c-0xc4;let _0x187bb8=_0xc9f547[_0x20b33c];return _0x187bb8;},a36_0x20b3(_0x99252f,_0x52b503);}function a36_0xc9f5(){const _0x3baf55=['552400KzVFOd','QYyMx','./mock-process.js','PLAYWRIGHT','1871414efpVjs','../../helpers/helper','UxtSk','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','resolve','./reporter/pwUtils','fork','Syhui','Not\x20able\x20to\x20import\x20globalSetup','requirePWModule','apply','toString','./patches','1aajilm','Running\x20existing\x20global\x20setup','env','32xCsImq','18ULJWre','xssSz','kzlIQ','../../helpers/test-observability/constants','\x20is\x20not\x20found','../../helpers/logger','kDwAW','10393394nsuNqc','function','config','ypiNJ','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','../../helpers/test-observability/utils','format','isHandlePWErrorSet','222lIPIqZ','includes','error','debug','149114lrKfyd','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','util','iJiSV','exports','273660bMWNRd','xDhgA','6363410ITjNhL','kqvJB','Call\x20to\x20child\x20fork\x20with\x20args\x20','eWnwy','710290YVZsIA'];a36_0xc9f5=function(){return _0x3baf55;};return a36_0xc9f5();}const util=require(a36_0x2c3606(0xd9)),child_process=require('child_process'),{FRAMEWORKS}=require(a36_0x2c3606(0xc7)),{getFrameworkVersion,debug}=require(a36_0x2c3606(0xd0)),helper=require(a36_0x2c3606(0xe8)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x2c3606(0xec)),{mockIsWorkerRedundant}=require(a36_0x2c3606(0xf3)),logger=require(a36_0x2c3606(0xc9))['winstonLogger'];module[a36_0x2c3606(0xdb)]=async function(_0x57b212){const _0x15b5fc=a36_0x2c3606,_0x1b5ebb={'CQhIY':function(_0x2d3d38,_0x151700){return _0x2d3d38(_0x151700);},'eWnwy':function(_0x1d199e){return _0x1d199e();},'kqvJB':_0x15b5fc(0xe5),'UxtSk':function(_0x450b78,_0x4dd7d5){return _0x450b78(_0x4dd7d5);},'kzlIQ':_0x15b5fc(0xf5),'HbPsq':function(_0xc33711){return _0xc33711();},'QYyMx':function(_0x55ab77,_0x42059d){return _0x55ab77(_0x42059d);},'xDhgA':function(_0x475bcb,_0x2acdcf){return _0x475bcb>=_0x2acdcf;},'ypiNJ':'1.33.0','kDwAW':function(_0x332a3e,_0x2ce045,_0x5cceed){return _0x332a3e(_0x2ce045,_0x5cceed);},'xssSz':function(_0x245ece,_0x3c7bb1){return _0x245ece!==_0x3c7bb1;},'iJiSV':_0x15b5fc(0xcc),'Syhui':_0x15b5fc(0xef)},_0x53aa4f=child_process[_0x15b5fc(0xed)];if(helper[_0x15b5fc(0xd2)]())try{_0x1b5ebb[_0x15b5fc(0xe1)](mockIsWorkerRedundant);}catch(_0x5d86af){logger[_0x15b5fc(0xd6)](_0x15b5fc(0xea)+util[_0x15b5fc(0xd1)](_0x5d86af));}child_process[_0x15b5fc(0xed)]=function(){const _0x379369=_0x15b5fc;return _0x1b5ebb['CQhIY'](debug,_0x379369(0xe0)+arguments[0x0]),arguments[0x0][_0x379369(0xd4)](_0x1b5ebb[_0x379369(0xe1)](getForkProcessPath))?arguments[0x0]=require[_0x379369(0xeb)](_0x1b5ebb[_0x379369(0xdf)]):logger[_0x379369(0xd5)]('Path\x20'+_0x1b5ebb['eWnwy'](getForkProcessPath)+_0x379369(0xc8)),_0x53aa4f[_0x379369(0xf1)](null,arguments);};if(process[_0x15b5fc(0xf6)][_0x15b5fc(0xd8)]){_0x1b5ebb[_0x15b5fc(0xe9)](debug,_0x1b5ebb[_0x15b5fc(0xc6)]);try{const {loadGlobalHook:_0x397b6b}=helper[_0x15b5fc(0xf0)]['apply'](null,_0x1b5ebb['HbPsq'](getLoadUtilsPath)),_0x156188=_0x1b5ebb[_0x15b5fc(0xe4)](getFrameworkVersion,FRAMEWORKS[_0x15b5fc(0xe6)]);let _0x2b5db8=_0x57b212;if(_0x1b5ebb[_0x15b5fc(0xdd)](helper['compareVersions'](_0x156188,_0x1b5ebb[_0x15b5fc(0xce)]),0x0)){const _0x4457df={};_0x4457df[_0x15b5fc(0xcd)]=_0x57b212,_0x2b5db8=_0x4457df;}const _0x533a3b=await _0x1b5ebb[_0x15b5fc(0xca)](_0x397b6b,_0x2b5db8,process[_0x15b5fc(0xf6)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x1b5ebb[_0x15b5fc(0xc5)](typeof _0x533a3b,_0x1b5ebb[_0x15b5fc(0xda)]))throw new Error(_0x1b5ebb[_0x15b5fc(0xee)]);return _0x533a3b[_0x15b5fc(0xf1)](null,arguments);}catch(_0x4d3767){_0x1b5ebb[_0x15b5fc(0xe9)](debug,_0x15b5fc(0xcf)+_0x4d3767[_0x15b5fc(0xf2)]());}}};
|