browserstack-node-sdk 1.34.19 → 1.34.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a29_0x44da(){const _0x598db4=['originalBuilder','52snaoTr','send','getRequestOptions','Builder','462976BgEoVy','isBrowserstackInfra','options_','ieOptions_','qfXEh','OUSrJ','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','OHcLZ','optimalHubUrl','WvJBa','wafPg','object','capability','PACdJ','isPacProxy','OLJFX','New\x20hub\x20url\x20set\x20to\x20','keys','../accessibility-automation/helper','quitCount_','aGVTe','ieOptions','IvrSv','proxy_','__driver','winstonLogger','456450XccsjA','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','edgeOptions','isUndefined','WyNtn','session_','se:ieOptions','proxySettings','debug','PgCiH','../../../hubAllocationMethods','/session','proxyUrl','requireHttpClient','browserStackLogLevel','bGuxh','../../../helpers/globals','goog:chromeOptions','QaKwE','__driversArray','fPwTY','YSjnN','Setting\x20Browserstack\x20capabilities','then','https://','isAccessibilityPlatform','CAPABILITY_KEY','ms:edgeOptions','2696480uWxvOB','hmXHI','reSKN','storeOptimalHubUrl','firefoxOptions','edgeOptions_','getHubUrl','KhnRm','setServer','newHubUrl','14966216QSGdXk','qUXkf','Proxy\x20set\x20to\x20','global','overrideGet','WgFOy','1|4|0|2|5|3','dBaQz','get','chromeOptions_','MwWhb','FizER','build','Kdtac','getGlobal','65217sQygEG','firefoxOptions_','187788XEcnFV','safariOptions_','mergeDeep','url_','path','setGlobal','setCapabilities','fVjbk','./helpers/patchHelper','forEach','capabilities_','getAccessibilityResultsSummary','../../../helpers/accessibility-automation/helper','/wd/hub','tYQrN','4559093OSdOEW','set','__setBrowserOptions','push','info','requireSeleniumWebdriver','HttpClient','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','__drivers','WNTcV','moz:firefoxOptions'];a29_0x44da=function(){return _0x598db4;};return a29_0x44da();}const a29_0xc56812=a29_0x2f55;(function(_0x21be9c,_0x594651){const _0x145acb=a29_0x2f55,_0x1bec43=_0x21be9c();while(!![]){try{const _0x37c55c=-parseInt(_0x145acb(0xd0))/0x1+-parseInt(_0x145acb(0xb1))/0x2+-parseInt(_0x145acb(0xaf))/0x3*(-parseInt(_0x145acb(0xcc))/0x4)+-parseInt(_0x145acb(0x96))/0x5+-parseInt(_0x145acb(0xea))/0x6+-parseInt(_0x145acb(0xc0))/0x7+parseInt(_0x145acb(0xa0))/0x8;if(_0x37c55c===_0x594651)break;else _0x1bec43['push'](_0x1bec43['shift']());}catch(_0x4ffad8){_0x1bec43['push'](_0x1bec43['shift']());}}}(a29_0x44da,0x50874));function a29_0x2f55(_0x5085f3,_0x2f2096){const _0x44da31=a29_0x44da();return a29_0x2f55=function(_0x2f555f,_0x5d0227){_0x2f555f=_0x2f555f-0x92;let _0x3fccf8=_0x44da31[_0x2f555f];return _0x3fccf8;},a29_0x2f55(_0x5085f3,_0x2f2096);}const logger=require('../../../helpers/logger')[a29_0xc56812(0xe9)],helper=require('../../../helpers/helper'),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0xc56812(0xf4)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a29_0xc56812(0xe2)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0xc56812(0xbd)),globals=require(a29_0xc56812(0xfa)),{overrideExecute}=require(a29_0xc56812(0xb9)),modify=(_0x30b115,_0x86834b=null,_0x19d9a5=![])=>{const _0x2271b9=a29_0xc56812,_0x21d269={'PACdJ':function(_0x4507c8,_0x90d24c){return _0x4507c8!==_0x90d24c;},'aGVTe':_0x2271b9(0xf5),'wafPg':function(_0x1101a,_0x58adc4){return _0x1101a+_0x58adc4;},'fPwTY':function(_0x4edeed,_0xf0f7fd){return _0x4edeed+_0xf0f7fd;},'YSjnN':_0x2271b9(0x92),'PgCiH':_0x2271b9(0xbe),'CqNHP':_0x2271b9(0xfb),'FizER':'chromeOptions','hmXHI':_0x2271b9(0x95),'qUXkf':_0x2271b9(0xec),'reSKN':_0x2271b9(0xca),'bUkKX':_0x2271b9(0x9a),'SpOLP':'safari.options','Kdtac':_0x2271b9(0xf0),'bGuxh':_0x2271b9(0xe5),'crHFt':function(_0x142723,_0x2f86a7){return _0x142723===_0x2f86a7;},'OHcLZ':_0x2271b9(0xdb),'QaKwE':_0x2271b9(0x100),'KhnRm':function(_0x46e371,_0x3e339e,_0x40b71f){return _0x46e371(_0x3e339e,_0x40b71f);},'tYQrN':function(_0x2b3e15,_0x1d0b05){return _0x2b3e15(_0x1d0b05);},'WgFOy':function(_0x1663fb,_0x521919,_0x1e7810){return _0x1663fb(_0x521919,_0x1e7810);},'IvrSv':_0x2271b9(0xd8),'gPDdL':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','qfXEh':_0x2271b9(0xa6),'CGweo':function(_0x17e2b7){return _0x17e2b7();},'OLJFX':function(_0x4d971f,_0x4acbe0){return _0x4d971f(_0x4acbe0);},'OUSrJ':_0x2271b9(0xc7),'fVjbk':_0x2271b9(0x93),'WNTcV':function(_0x3eb8e3,_0x40e6e3){return _0x3eb8e3!==_0x40e6e3;},'kSuBI':_0x2271b9(0xeb),'EyzSh':'Modifying\x20webdriver\x20builder'},_0x795ee1=helper[_0x2271b9(0xf7)]();let _0x4cb1cb;try{_0x4cb1cb=helper[_0x2271b9(0xc5)](),_0x4cb1cb[_0x2271b9(0xcb)]&&(_0x4cb1cb[_0x2271b9(0xcf)]=_0x4cb1cb[_0x2271b9(0xcb)]);}catch(_0xf69f12){return;}if(helper[_0x2271b9(0xd1)]()){const _0xde4c8b={};_0xde4c8b['logLevel']=_0x30b115[_0x2271b9(0xf8)],helper['setLogLevel'](_0xde4c8b,new Map(),new Map()),logger[_0x2271b9(0xc4)](_0x21d269['kSuBI']),logger[_0x2271b9(0xf2)](_0x21d269['EyzSh']);}class _0x20f92c extends _0x795ee1['HttpClient']{[_0x2271b9(0xcd)](_0x5252af){const _0x108e4f=_0x2271b9;if(_0x21d269[_0x108e4f(0xdd)](_0x5252af[_0x108e4f(0xb5)],_0x21d269[_0x108e4f(0xe4)])&&_0x21d269[_0x108e4f(0xdd)](global[_0x108e4f(0x9f)],''))try{global['newHubUrl']=_0x21d269[_0x108e4f(0xda)](_0x21d269[_0x108e4f(0xfe)](_0x21d269[_0x108e4f(0xff)],global[_0x108e4f(0x9f)]),_0x21d269[_0x108e4f(0xf3)]),this[_0x108e4f(0xd2)]=hubAllocator[_0x108e4f(0xce)](global[_0x108e4f(0x9f)]),logger['debug'](_0x108e4f(0xe0)+global[_0x108e4f(0x9f)]),global[_0x108e4f(0x9f)]='';}catch(_0x38d246){logger['error'](_0x38d246);}return super['send'](_0x5252af);}}class _0x21a8b2 extends _0x4cb1cb['Builder']{[_0x2271b9(0x9e)](){const _0x12ea80=_0x2271b9;return this['url_']=helper[_0x12ea80(0x9c)](_0x30b115),logger[_0x12ea80(0xf2)]('Hub\x20url\x20set\x20to\x20'+this[_0x12ea80(0xb4)]),this;}[_0x2271b9(0xc2)](_0x979c9b){const _0x3d42ef=_0x2271b9;let _0x8898ac={};for(const _0x1abef0 in _0x979c9b){switch(_0x1abef0){case _0x21d269['CqNHP']:case _0x21d269[_0x3d42ef(0xab)]:this[_0x3d42ef(0xa9)]&&(_0x8898ac=this['chromeOptions_'][_0x3d42ef(0xa8)](this[_0x3d42ef(0xa9)][_0x3d42ef(0x94)])||{},this['chromeOptions_'][_0x3d42ef(0xc1)](this[_0x3d42ef(0xa9)][_0x3d42ef(0x94)],helper[_0x3d42ef(0xb3)](_0x8898ac,_0x979c9b[_0x1abef0])));break;case _0x21d269[_0x3d42ef(0x97)]:case _0x21d269[_0x3d42ef(0xa1)]:this[_0x3d42ef(0x9b)]&&(_0x8898ac=this[_0x3d42ef(0x9b)][_0x3d42ef(0xa8)](this['edgeOptions_'][_0x3d42ef(0x94)])||{},this[_0x3d42ef(0x9b)][_0x3d42ef(0xc1)](this[_0x3d42ef(0x9b)][_0x3d42ef(0x94)],helper[_0x3d42ef(0xb3)](_0x8898ac,_0x979c9b[_0x1abef0])));break;case _0x21d269[_0x3d42ef(0x98)]:case _0x21d269['bUkKX']:this['firefoxOptions_']&&(_0x8898ac=this[_0x3d42ef(0xb0)][_0x3d42ef(0xa8)](this['firefoxOptions_'][_0x3d42ef(0x94)])||{},this['firefoxOptions_'][_0x3d42ef(0xc1)](this[_0x3d42ef(0xb0)]['CAPABILITY_KEY'],helper[_0x3d42ef(0xb3)](_0x8898ac,_0x979c9b[_0x1abef0])));break;case _0x21d269['SpOLP']:this[_0x3d42ef(0xb2)]&&(_0x8898ac=this['safariOptions_'][_0x3d42ef(0xa8)](this[_0x3d42ef(0xb2)][_0x3d42ef(0x94)])||{},this[_0x3d42ef(0xb2)][_0x3d42ef(0xc1)](this[_0x3d42ef(0xb2)][_0x3d42ef(0x94)],helper[_0x3d42ef(0xb3)](_0x8898ac,_0x979c9b[_0x1abef0])));break;case _0x21d269[_0x3d42ef(0xad)]:case _0x21d269[_0x3d42ef(0xf9)]:this['ieOptions_']&&(_0x8898ac=this[_0x3d42ef(0xd3)][_0x3d42ef(0xa8)](this[_0x3d42ef(0xd3)][_0x3d42ef(0x94)])||{},this[_0x3d42ef(0xd3)][_0x3d42ef(0xc1)](this['ieOptions_'][_0x3d42ef(0x94)],helper[_0x3d42ef(0xb3)](_0x8898ac,_0x979c9b[_0x1abef0])));break;}}}[_0x2271b9(0xb7)](){const _0x3df7f3=_0x2271b9;return logger[_0x3df7f3(0xf2)](_0x21d269[_0x3df7f3(0xfc)]),this['__setBrowserOptions'](_0x30b115[_0x3df7f3(0xdc)]),Object[_0x3df7f3(0xe1)](_0x30b115[_0x3df7f3(0xdc)])[_0x3df7f3(0xba)](_0x5e377c=>{const _0x428e18=_0x3df7f3,_0x1ed389=this[_0x428e18(0xbb)][_0x428e18(0xa8)](_0x5e377c);_0x21d269['crHFt'](typeof _0x1ed389,_0x21d269[_0x428e18(0xd7)])?this[_0x428e18(0xbb)][_0x428e18(0xc1)](_0x5e377c,helper['mergeDeep'](_0x1ed389,_0x30b115[_0x428e18(0xdc)][_0x5e377c])):this[_0x428e18(0xbb)][_0x428e18(0xc1)](_0x5e377c,_0x30b115[_0x428e18(0xdc)][_0x5e377c]);}),this;}['build'](){const _0x2d9449=_0x2271b9,_0x1bbe46={'WvJBa':_0x21d269[_0x2d9449(0xe6)],'WyNtn':_0x21d269['gPDdL'],'dBaQz':function(_0x1559df,_0x8cf676,_0x2e0d17){const _0x560551=_0x2d9449;return _0x21d269[_0x560551(0xa5)](_0x1559df,_0x8cf676,_0x2e0d17);}};if(helper[_0x2d9449(0xd1)]()){const _0x21bb9c=_0x21d269[_0x2d9449(0xd4)]['split']('|');let _0x3d005e=0x0;while(!![]){switch(_0x21bb9c[_0x3d005e++]){case'0':this[_0x2d9449(0xb7)]();continue;case'1':_0x21d269['CGweo'](isAccessibilityAutomationSession)&&_0x21d269[_0x2d9449(0xdf)](setAccessibilityCapabilities,_0x30b115);continue;case'2':if(helper[_0x2d9449(0xde)](_0x30b115[_0x2d9449(0xf1)][_0x2d9449(0xf6)]))this['agent_']=helper['getHttpAgent'](_0x30b115[_0x2d9449(0xf1)][_0x2d9449(0xf6)]);else _0x30b115[_0x2d9449(0xf1)][_0x2d9449(0xf6)]&&(this['proxy_']=_0x30b115['proxySettings']['proxyUrl'],logger['debug'](_0x2d9449(0xa2)+this[_0x2d9449(0xe7)]));continue;case'3':logger['debug'](_0x21d269[_0x2d9449(0xd5)]);continue;case'4':this['setServer']();continue;case'5':globals[_0x2d9449(0xae)](_0x21d269[_0x2d9449(0xb8)])&&(!_0x21d269[_0x2d9449(0xa5)](setExtension,this,_0x30b115)&&globals[_0x2d9449(0xb6)](_0x21d269[_0x2d9449(0xb8)],![]));continue;}break;}}const _0x24c069=super[_0x2d9449(0xac)]();return _0x24c069[_0x2d9449(0xef)][_0x2d9449(0x101)](_0x39c2f9=>{const _0x1eb0cf=_0x2d9449;try{const _0x51b183=_0x39c2f9['caps_'][_0x1eb0cf(0xa8)](_0x1bbe46[_0x1eb0cf(0xd9)]);_0x51b183?(logger[_0x1eb0cf(0xf2)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x51b183),hubAllocator['updateHubUrl'](_0x51b183),helper[_0x1eb0cf(0x99)](_0x51b183)):logger[_0x1eb0cf(0xf2)](_0x1bbe46[_0x1eb0cf(0xee)]);}catch(_0xdb1ff6){logger[_0x1eb0cf(0xf2)](_0x1eb0cf(0xd6)+_0xdb1ff6);}}),_0x24c069[_0x2d9449(0xe3)]=0x0,_0x24c069[_0x2d9449(0x101)]&&_0x24c069['then'](_0x49c715=>{const _0x555e12=_0x2d9449,_0x49b327={'MwWhb':function(_0x8cd1e4,_0x66ee4b,_0x5de446){const _0x258642=a29_0x2f55;return _0x21d269[_0x258642(0x9d)](_0x8cd1e4,_0x66ee4b,_0x5de446);}};_0x21d269[_0x555e12(0x9d)](overrideQuit,_0x49c715,_0x24c069),_0x21d269[_0x555e12(0xbf)](overrideTakeScreenshot,_0x49c715),helper[_0x555e12(0xa4)](_0x49c715,_0x30b115),_0x21d269[_0x555e12(0xa5)](overrideExecute,_0x49c715,_0x30b115),_0x49c715[_0x555e12(0xbc)]=async()=>{const _0x3e7f34=_0x555e12;return await _0x1bbe46[_0x3e7f34(0xa7)](getAccessibilityResultsSummary,_0x49c715,global);},_0x49c715['getAccessibilityResults']=async()=>{const _0x5ede1e=_0x555e12;return await _0x49b327[_0x5ede1e(0xaa)](getAccessibilityResults,_0x49c715,global);};}),_0x24c069[_0x2d9449(0xbc)]=async()=>{const _0x3e4afc=_0x2d9449;return await _0x21d269[_0x3e4afc(0x9d)](getAccessibilityResultsSummary,_0x24c069,global);},_0x24c069['getAccessibilityResults']=async()=>{const _0x240b88=_0x2d9449;return await _0x21d269[_0x240b88(0xa5)](getAccessibilityResults,_0x24c069,global);},_0x21d269['tYQrN'](overrideTakeScreenshot,_0x24c069),_0x21d269['tYQrN'](overrideQuit,_0x24c069),helper['overrideGet'](_0x24c069,_0x30b115),_0x21d269['WgFOy'](overrideExecute,_0x24c069,_0x30b115),helper['isUndefined'](global[_0x2d9449(0xfd)])&&(global['__driversArray']=[]),helper[_0x2d9449(0xed)](global[_0x2d9449(0xc8)])&&(global['__drivers']=[]),global['__driversArray'][_0x2d9449(0xc3)](_0x24c069),global[_0x2d9449(0xe8)]=_0x24c069,_0x21d269[_0x2d9449(0xdd)](global['__drivers'],undefined)&&global[_0x2d9449(0xc8)]['push'](_0x24c069),_0x86834b&&helper[_0x2d9449(0xed)](_0x86834b['global'][_0x2d9449(0xfd)])&&(_0x86834b['global'][_0x2d9449(0xfd)]=[]),_0x86834b&&_0x21d269[_0x2d9449(0xc9)](_0x86834b[_0x2d9449(0xa3)][_0x2d9449(0xc8)],undefined)&&(_0x86834b[_0x2d9449(0xa3)][_0x2d9449(0xc8)][_0x2d9449(0xc3)](_0x24c069),_0x86834b[_0x2d9449(0xa3)]['__driversArray'][_0x2d9449(0xc3)](_0x24c069)),_0x24c069;}}return _0x4cb1cb['originalBuilder']=_0x4cb1cb['Builder'],_0x4cb1cb['Builder']=_0x21a8b2,_0x795ee1[_0x2271b9(0xc6)]=_0x20f92c,_0x4cb1cb;};module['exports']['browserstackAgentObservability']=modify;
|
|
1
|
+
const a29_0x54f591=a29_0xf1ef;function a29_0x42df(){const _0x216dcc=['agent_','1492160Honcwp','Uuvjj','XcnuQ','moz:firefoxOptions','CuNiV','isUndefined','../../../helpers/accessibility-automation/helper','overrideGet','./helpers/patchHelper','HttpClient','safari.options','requireHttpClient','isBrowserstackInfra','../accessibility-automation/helper','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','keys','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','Hpubb','Setting\x20Browserstack\x20capabilities','optimalHubUrl','RlXUg','PVDIe','ieOptions','setGlobal','proxy_','__setBrowserOptions','pRyhe','../../../helpers/helper','then','https://','setServer','set','browserstackAgentObservability','Proxy\x20set\x20to\x20','ntrjn','lTZhI','__driversArray','getHubUrl','push','__driver','se:ieOptions','YcRbE','XpiiA','18ZQkTBZ','chromeOptions_','proxySettings','setLogLevel','KnUgf','OQETi','mMvFC','../../../helpers/logger','storeOptimalHubUrl','aCmsS','288LZzemZ','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','session_','vHReQ','logLevel','zBBoQ','YPxpS','proxyUrl','ieOptions_','newHubUrl','DtRrc','166HwaPTP','capability','AluqN','caps_','build','378987uryRFP','CAPABILITY_KEY','New\x20hub\x20url\x20set\x20to\x20','Builder','chromeOptions','VpRxs','FOREO','error','Tkxpj','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','../../../hubAllocationMethods','goog:chromeOptions','path','winstonLogger','1040120CtLUXW','info','send','isPacProxy','../../../helpers/patchHelpers','requireSeleniumWebdriver','firefoxOptions_','edgeOptions_','debug','originalBuilder','0|4|1|5|2|3','Hub\x20url\x20set\x20to\x20','3227587gRozid','setCapabilities','NYmLb','3232NjssOD','706WQyiUr','global','/wd/hub','safariOptions_','get','getGlobal','pFkkI','capabilities_','firefoxOptions','mergeDeep','../../../helpers/globals','__drivers','isAccessibilityPlatform','browserStackLogLevel','getAccessibilityResults','../../../bin/utils/constants','ms:edgeOptions','351RHmsIJ','split','geLxI','getHttpAgent','getRequestOptions','INbjC','url_','getAccessibilityResultsSummary','19288DzMmIt'];a29_0x42df=function(){return _0x216dcc;};return a29_0x42df();}(function(_0x1bbc42,_0x19002f){const _0x10bfea=a29_0xf1ef,_0x5c31ff=_0x1bbc42();while(!![]){try{const _0xccdc84=-parseInt(_0x10bfea(0x108))/0x1*(-parseInt(_0x10bfea(0xe5))/0x2)+parseInt(_0x10bfea(0xda))/0x3*(-parseInt(_0x10bfea(0x107))/0x4)+-parseInt(_0x10bfea(0xf8))/0x5+parseInt(_0x10bfea(0x14e))/0x6*(-parseInt(_0x10bfea(0xea))/0x7)+-parseInt(_0x10bfea(0x121))/0x8*(-parseInt(_0x10bfea(0x119))/0x9)+parseInt(_0x10bfea(0x123))/0xa+parseInt(_0x10bfea(0x104))/0xb;if(_0xccdc84===_0x19002f)break;else _0x5c31ff['push'](_0x5c31ff['shift']());}catch(_0x275706){_0x5c31ff['push'](_0x5c31ff['shift']());}}}(a29_0x42df,0x23f2d));function a29_0xf1ef(_0x57a248,_0x2525ab){const _0x42df39=a29_0x42df();return a29_0xf1ef=function(_0xf1ef33,_0x305eec){_0xf1ef33=_0xf1ef33-0xd4;let _0x58ca2f=_0x42df39[_0xf1ef33];return _0x58ca2f;},a29_0xf1ef(_0x57a248,_0x2525ab);}const logger=require(a29_0x54f591(0xd7))[a29_0x54f591(0xf7)],helper=require(a29_0x54f591(0x13e)),constants=require(a29_0x54f591(0x117)),hubAllocator=require(a29_0x54f591(0xf4)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x54f591(0xfc)),{setAccessibilityCapabilities,setExtension}=require(a29_0x54f591(0x130)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x54f591(0x129)),globals=require(a29_0x54f591(0x112)),{overrideExecute}=require(a29_0x54f591(0x12b)),modify=(_0x1ab4f5,_0x3fa8ac=null,_0x29cd5f=![])=>{const _0x338f5b=a29_0x54f591,_0x4eba39={'aCmsS':function(_0x14dcc5,_0x214cc5){return _0x14dcc5!==_0x214cc5;},'DLXYE':'/session','Hpubb':function(_0x28eeba,_0x360f1c){return _0x28eeba+_0x360f1c;},'XcnuQ':function(_0x1af252,_0x791a7f){return _0x1af252+_0x791a7f;},'AluqN':_0x338f5b(0x140),'YPxpS':_0x338f5b(0x10a),'ntrjn':_0x338f5b(0xf5),'Uuvjj':_0x338f5b(0xee),'CuNiV':_0x338f5b(0x118),'NYmLb':'edgeOptions','DtRrc':_0x338f5b(0x126),'FOREO':_0x338f5b(0x110),'qpCWq':_0x338f5b(0x12d),'Tkxpj':_0x338f5b(0x14b),'Qwyxh':_0x338f5b(0x139),'uyeCz':function(_0x58d6cf,_0x2c5ae3){return _0x58d6cf===_0x2c5ae3;},'pFkkI':'object','pLsZr':_0x338f5b(0x135),'FwulD':_0x338f5b(0x136),'ijxoT':_0x338f5b(0x133),'PVDIe':function(_0x1431ae,_0x409456,_0x42d933){return _0x1431ae(_0x409456,_0x42d933);},'vHReQ':function(_0x387522,_0x1b2adc,_0x1533c8){return _0x387522(_0x1b2adc,_0x1533c8);},'OQETi':function(_0x2ded84,_0x151c7d){return _0x2ded84(_0x151c7d);},'MseLw':_0x338f5b(0x102),'zBBoQ':function(_0x2dc5ea){return _0x2dc5ea();},'KnUgf':_0x338f5b(0x114),'INbjC':function(_0x4ad6a6,_0x3b0d13,_0x3fece1){return _0x4ad6a6(_0x3b0d13,_0x3fece1);},'Vfogp':_0x338f5b(0xdb),'OFNOq':function(_0x52e643,_0x2841e1,_0x30db48){return _0x52e643(_0x2841e1,_0x30db48);},'pRyhe':function(_0x20e792,_0x259911){return _0x20e792!==_0x259911;},'XpiiA':function(_0x14d6e2,_0x58e761){return _0x14d6e2!==_0x58e761;},'RlXUg':_0x338f5b(0xf3),'lTZhI':'Modifying\x20webdriver\x20builder'},_0x32b925=helper[_0x338f5b(0x12e)]();let _0x33e2e9;try{_0x33e2e9=helper[_0x338f5b(0xfd)](),_0x33e2e9['originalBuilder']&&(_0x33e2e9[_0x338f5b(0xed)]=_0x33e2e9[_0x338f5b(0x101)]);}catch(_0x1b27ca){return;}if(helper[_0x338f5b(0x12f)]()){const _0x19ce03={};_0x19ce03[_0x338f5b(0xde)]=_0x1ab4f5[_0x338f5b(0x115)],helper[_0x338f5b(0x151)](_0x19ce03,new Map(),new Map()),logger[_0x338f5b(0xf9)](_0x4eba39[_0x338f5b(0x137)]),logger[_0x338f5b(0x100)](_0x4eba39[_0x338f5b(0x146)]);}class _0x3af796 extends _0x32b925[_0x338f5b(0x12c)]{['send'](_0x24a645){const _0x1a9b84=_0x338f5b;if(_0x4eba39[_0x1a9b84(0xd9)](_0x24a645[_0x1a9b84(0xf6)],_0x4eba39['DLXYE'])&&_0x4eba39[_0x1a9b84(0xd9)](global[_0x1a9b84(0xe3)],''))try{global[_0x1a9b84(0xe3)]=_0x4eba39[_0x1a9b84(0x134)](_0x4eba39[_0x1a9b84(0x125)](_0x4eba39[_0x1a9b84(0xe7)],global[_0x1a9b84(0xe3)]),_0x4eba39[_0x1a9b84(0xe0)]),this['options_']=hubAllocator[_0x1a9b84(0x11d)](global['newHubUrl']),logger[_0x1a9b84(0x100)](_0x1a9b84(0xec)+global[_0x1a9b84(0xe3)]),global[_0x1a9b84(0xe3)]='';}catch(_0x2caea7){logger[_0x1a9b84(0xf1)](_0x2caea7);}return super[_0x1a9b84(0xfa)](_0x24a645);}}class _0x274866 extends _0x33e2e9['Builder']{[_0x338f5b(0x141)](){const _0x15c7fd=_0x338f5b;return this['url_']=helper[_0x15c7fd(0x148)](_0x1ab4f5),logger[_0x15c7fd(0x100)](_0x15c7fd(0x103)+this[_0x15c7fd(0x11f)]),this;}[_0x338f5b(0x13c)](_0x5ba40a){const _0x1cbb1f=_0x338f5b;let _0x339e20={};for(const _0x3a2fc5 in _0x5ba40a){switch(_0x3a2fc5){case _0x4eba39[_0x1cbb1f(0x145)]:case _0x4eba39[_0x1cbb1f(0x124)]:this[_0x1cbb1f(0x14f)]&&(_0x339e20=this['chromeOptions_'][_0x1cbb1f(0x10c)](this[_0x1cbb1f(0x14f)][_0x1cbb1f(0xeb)])||{},this[_0x1cbb1f(0x14f)][_0x1cbb1f(0x142)](this['chromeOptions_'][_0x1cbb1f(0xeb)],helper[_0x1cbb1f(0x111)](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;case _0x4eba39[_0x1cbb1f(0x127)]:case _0x4eba39[_0x1cbb1f(0x106)]:this[_0x1cbb1f(0xff)]&&(_0x339e20=this[_0x1cbb1f(0xff)][_0x1cbb1f(0x10c)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x1cbb1f(0xff)][_0x1cbb1f(0x142)](this['edgeOptions_'][_0x1cbb1f(0xeb)],helper[_0x1cbb1f(0x111)](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;case _0x4eba39[_0x1cbb1f(0xe4)]:case _0x4eba39[_0x1cbb1f(0xf0)]:this['firefoxOptions_']&&(_0x339e20=this['firefoxOptions_'][_0x1cbb1f(0x10c)](this[_0x1cbb1f(0xfe)]['CAPABILITY_KEY'])||{},this[_0x1cbb1f(0xfe)]['set'](this['firefoxOptions_']['CAPABILITY_KEY'],helper['mergeDeep'](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;case _0x4eba39['qpCWq']:this[_0x1cbb1f(0x10b)]&&(_0x339e20=this['safariOptions_'][_0x1cbb1f(0x10c)](this[_0x1cbb1f(0x10b)][_0x1cbb1f(0xeb)])||{},this['safariOptions_'][_0x1cbb1f(0x142)](this[_0x1cbb1f(0x10b)][_0x1cbb1f(0xeb)],helper[_0x1cbb1f(0x111)](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;case _0x4eba39[_0x1cbb1f(0xf2)]:case _0x4eba39['Qwyxh']:this[_0x1cbb1f(0xe2)]&&(_0x339e20=this[_0x1cbb1f(0xe2)][_0x1cbb1f(0x10c)](this[_0x1cbb1f(0xe2)]['CAPABILITY_KEY'])||{},this[_0x1cbb1f(0xe2)][_0x1cbb1f(0x142)](this[_0x1cbb1f(0xe2)][_0x1cbb1f(0xeb)],helper[_0x1cbb1f(0x111)](_0x339e20,_0x5ba40a[_0x3a2fc5])));break;}}}[_0x338f5b(0x105)](){const _0x3eca9b=_0x338f5b;return logger[_0x3eca9b(0x100)](_0x4eba39['pLsZr']),this[_0x3eca9b(0x13c)](_0x1ab4f5[_0x3eca9b(0xe6)]),Object[_0x3eca9b(0x132)](_0x1ab4f5[_0x3eca9b(0xe6)])['forEach'](_0x21ec16=>{const _0x463820=_0x3eca9b,_0x5a427c=this['capabilities_']['get'](_0x21ec16);_0x4eba39['uyeCz'](typeof _0x5a427c,_0x4eba39[_0x463820(0x10e)])?this[_0x463820(0x10f)]['set'](_0x21ec16,helper[_0x463820(0x111)](_0x5a427c,_0x1ab4f5[_0x463820(0xe6)][_0x21ec16])):this['capabilities_'][_0x463820(0x142)](_0x21ec16,_0x1ab4f5[_0x463820(0xe6)][_0x21ec16]);}),this;}['build'](){const _0x52abf2=_0x338f5b,_0xd8e4fc={'VpRxs':function(_0x5c4a13,_0x19bfc0,_0x418ff3){const _0x5e3295=a29_0xf1ef;return _0x4eba39[_0x5e3295(0xdd)](_0x5c4a13,_0x19bfc0,_0x418ff3);},'OmaUo':function(_0x49cb20,_0x542fb6,_0x3303ff){const _0x58998a=a29_0xf1ef;return _0x4eba39[_0x58998a(0x138)](_0x49cb20,_0x542fb6,_0x3303ff);},'mMvFC':function(_0x213881,_0x20e2b8){const _0x317f37=a29_0xf1ef;return _0x4eba39[_0x317f37(0xd5)](_0x213881,_0x20e2b8);},'YcRbE':function(_0x58d88d,_0x192da4,_0x4bda7b){const _0x136c2c=a29_0xf1ef;return _0x4eba39[_0x136c2c(0xdd)](_0x58d88d,_0x192da4,_0x4bda7b);}};if(helper['isBrowserstackInfra']()){const _0x9777e4=_0x4eba39['MseLw'][_0x52abf2(0x11a)]('|');let _0x5bbb3c=0x0;while(!![]){switch(_0x9777e4[_0x5bbb3c++]){case'0':_0x4eba39[_0x52abf2(0xdf)](isAccessibilityAutomationSession)&&_0x4eba39['OQETi'](setAccessibilityCapabilities,_0x1ab4f5);continue;case'1':this[_0x52abf2(0x105)]();continue;case'2':globals[_0x52abf2(0x10d)](_0x4eba39['KnUgf'])&&(!_0x4eba39[_0x52abf2(0x11e)](setExtension,this,_0x1ab4f5)&&globals[_0x52abf2(0x13a)](_0x4eba39[_0x52abf2(0xd4)],![]));continue;case'3':logger[_0x52abf2(0x100)](_0x4eba39['Vfogp']);continue;case'4':this[_0x52abf2(0x141)]();continue;case'5':if(helper[_0x52abf2(0xfb)](_0x1ab4f5[_0x52abf2(0x150)][_0x52abf2(0xe1)]))this[_0x52abf2(0x122)]=helper[_0x52abf2(0x11c)](_0x1ab4f5[_0x52abf2(0x150)]['proxyUrl']);else _0x1ab4f5[_0x52abf2(0x150)][_0x52abf2(0xe1)]&&(this[_0x52abf2(0x13b)]=_0x1ab4f5[_0x52abf2(0x150)]['proxyUrl'],logger[_0x52abf2(0x100)](_0x52abf2(0x144)+this['proxy_']));continue;}break;}}const _0x347616=super[_0x52abf2(0xe9)]();return _0x347616[_0x52abf2(0xdc)][_0x52abf2(0x13f)](_0x486280=>{const _0xb31183=_0x52abf2;try{const _0xfdd1e9=_0x486280[_0xb31183(0xe8)]['get'](_0x4eba39['FwulD']);_0xfdd1e9?(logger['debug']('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0xfdd1e9),hubAllocator['updateHubUrl'](_0xfdd1e9),helper[_0xb31183(0xd8)](_0xfdd1e9)):logger[_0xb31183(0x100)](_0x4eba39['ijxoT']);}catch(_0x491493){logger[_0xb31183(0x100)](_0xb31183(0x131)+_0x491493);}}),_0x347616['quitCount_']=0x0,_0x347616[_0x52abf2(0x13f)]&&_0x347616[_0x52abf2(0x13f)](_0x54c116=>{const _0x1efff6=_0x52abf2,_0x181161={'geLxI':function(_0x30783a,_0x5c333f,_0x2e9009){const _0x27b855=a29_0xf1ef;return _0xd8e4fc[_0x27b855(0xef)](_0x30783a,_0x5c333f,_0x2e9009);},'VVLhm':function(_0x546bb6,_0x13b2b5,_0x2c2758){return _0xd8e4fc['OmaUo'](_0x546bb6,_0x13b2b5,_0x2c2758);}};_0xd8e4fc[_0x1efff6(0xef)](overrideQuit,_0x54c116,_0x347616),_0xd8e4fc[_0x1efff6(0xd6)](overrideTakeScreenshot,_0x54c116),helper[_0x1efff6(0x12a)](_0x54c116,_0x1ab4f5),_0xd8e4fc[_0x1efff6(0x14c)](overrideExecute,_0x54c116,_0x1ab4f5),_0x54c116['getAccessibilityResultsSummary']=async()=>{const _0x23b32a=_0x1efff6;return await _0x181161[_0x23b32a(0x11b)](getAccessibilityResultsSummary,_0x54c116,global);},_0x54c116[_0x1efff6(0x116)]=async()=>{return await _0x181161['VVLhm'](getAccessibilityResults,_0x54c116,global);};}),_0x347616[_0x52abf2(0x120)]=async()=>{const _0xa5d425=_0x52abf2;return await _0x4eba39[_0xa5d425(0x138)](getAccessibilityResultsSummary,_0x347616,global);},_0x347616['getAccessibilityResults']=async()=>{return await _0xd8e4fc['VpRxs'](getAccessibilityResults,_0x347616,global);},_0x4eba39['OQETi'](overrideTakeScreenshot,_0x347616),_0x4eba39[_0x52abf2(0xd5)](overrideQuit,_0x347616),helper['overrideGet'](_0x347616,_0x1ab4f5),_0x4eba39['OFNOq'](overrideExecute,_0x347616,_0x1ab4f5),helper[_0x52abf2(0x128)](global[_0x52abf2(0x147)])&&(global['__driversArray']=[]),helper[_0x52abf2(0x128)](global[_0x52abf2(0x113)])&&(global[_0x52abf2(0x113)]=[]),global[_0x52abf2(0x147)]['push'](_0x347616),global[_0x52abf2(0x14a)]=_0x347616,_0x4eba39[_0x52abf2(0x13d)](global[_0x52abf2(0x113)],undefined)&&global[_0x52abf2(0x113)][_0x52abf2(0x149)](_0x347616),_0x3fa8ac&&helper[_0x52abf2(0x128)](_0x3fa8ac[_0x52abf2(0x109)][_0x52abf2(0x147)])&&(_0x3fa8ac[_0x52abf2(0x109)][_0x52abf2(0x147)]=[]),_0x3fa8ac&&_0x4eba39[_0x52abf2(0x14d)](_0x3fa8ac['global'][_0x52abf2(0x113)],undefined)&&(_0x3fa8ac[_0x52abf2(0x109)][_0x52abf2(0x113)]['push'](_0x347616),_0x3fa8ac['global'][_0x52abf2(0x147)]['push'](_0x347616)),_0x347616;}}return _0x33e2e9['originalBuilder']=_0x33e2e9[_0x338f5b(0xed)],_0x33e2e9[_0x338f5b(0xed)]=_0x274866,_0x32b925[_0x338f5b(0x12c)]=_0x3af796,_0x33e2e9;};module['exports'][a29_0x54f591(0x143)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a30_0x537b36=a30_0x58d0;(function(_0x70ed78,_0xd24e70){const _0x5d749f=a30_0x58d0,_0x53baf5=_0x70ed78();while(!![]){try{const _0xc7212e=-parseInt(_0x5d749f(0x18d))/0x1*(parseInt(_0x5d749f(0x192))/0x2)+parseInt(_0x5d749f(0x189))/0x3*(-parseInt(_0x5d749f(0x190))/0x4)+-parseInt(_0x5d749f(0x185))/0x5*(parseInt(_0x5d749f(0x186))/0x6)+parseInt(_0x5d749f(0x18b))/0x7+parseInt(_0x5d749f(0x18e))/0x8*(-parseInt(_0x5d749f(0x184))/0x9)+-parseInt(_0x5d749f(0x182))/0xa*(-parseInt(_0x5d749f(0x18a))/0xb)+parseInt(_0x5d749f(0x18c))/0xc;if(_0xc7212e===_0xd24e70)break;else _0x53baf5['push'](_0x53baf5['shift']());}catch(_0x852024){_0x53baf5['push'](_0x53baf5['shift']());}}}(a30_0x1996,0x5ff7e));function a30_0x1996(){const _0x1448ee=['22154VnLHos','1073471CLIczM','16273056thyyPa','268873wkxdQG','376rsAtFD','../../../helpers/test-observability/utils','848XzjVmG','timeout','2sznKNv','mochaHooks','restore','1290OzqziC','../../../bin/utils/constants','32013qgpXOT','1482385QduTJE','6ZXoCrw','../../../helpers/request-spy','Jvdue','9108BMvNZo'];a30_0x1996=function(){return _0x1448ee;};return a30_0x1996();}function a30_0x58d0(_0x5d2f89,_0xce49f2){const _0x199600=a30_0x1996();return a30_0x58d0=function(_0x58d0db,_0x28437e){_0x58d0db=_0x58d0db-0x180;let _0x62e847=_0x199600[_0x58d0db];return _0x62e847;},a30_0x58d0(_0x5d2f89,_0xce49f2);}const requestSpy=require(a30_0x537b36(0x187)),constants=require(a30_0x537b36(0x183)),{addRequestSpy}=require(a30_0x537b36(0x18f));exports[a30_0x537b36(0x180)]={'beforeAll'(){const _0x4af218=a30_0x537b36,_0x14dbc6={'Jvdue':function(_0x59fe3c){return _0x59fe3c();}},_0x305e4f='browserstack internal helper hook';_0x14dbc6[_0x4af218(0x188)](addRequestSpy);},'afterAll'(){const _0x364078=a30_0x537b36,_0x380c73='browserstack internal helper hook';this[_0x364078(0x191)](0xea60),requestSpy[_0x364078(0x181)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a31_0x1c2ca9=a31_0x7c08;function a31_0x7c08(_0x2cc04e,_0x1d30a2){const _0x48b723=a31_0x48b7();return a31_0x7c08=function(_0x7c08,_0xe10b46){_0x7c08=_0x7c08-0x148;let _0x53cef4=_0x48b723[_0x7c08];return _0x53cef4;},a31_0x7c08(_0x2cc04e,_0x1d30a2);}function a31_0x48b7(){const _0x4d14a7=['zdqad','concat','suites','../../../helpers/test-observability/utils','state','miKlY','BSurU','map_','tuYlc','8bnxlua','../../../helpers/helper','getSession','fnDfL','tests','js-','../../utils/logPatcher','15790cULnrw','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','5376119LTwnsp','PSpKZ','DqKZR','_afterAll','4234416KIcxxX','4aOuHQg','split','TEST_PLATFORM','indexOf','_afterEach','vSWLR','pvzJS','slice','fwyXQ','VWxkr','../../../../package.json','xnJrF','failed','reduce','tJdVh','getHookSkippedTests','forEach','push','SEbiR','5270859uyzVrA','fromEntries','20204550EZUMGF','TMigT','toISOString','_beforeEach','getCapabilities','browserstack','getTestEnv','LsLLG','sqxvC','passed','type','hook','xoAHB','XheeY','VpPRO','koTlT','pid','JZOfb','383960JOyyOj','getHooksForTest','lSRqS','unknown_grid','substring','__cloud_provider___','mapTestHooks','inidI','generic','nAcdN','qbnHG','../../../helpers/test-observability/constants','bktyK','AcDvq','pending','markedStatus','_beforeAll','OErsI','getBrowserVersion','872rmmwDP','bs:addPlatformDetails:','sendPlatformDetails','string','emit','../../../helpers/testhub/utils','getPlatform','hookAnalyticsId','parent','2110473NdRZJa'];a31_0x48b7=function(){return _0x4d14a7;};return a31_0x48b7();}(function(_0x328c83,_0x22d807){const _0x405a52=a31_0x7c08,_0x6836c3=_0x328c83();while(!![]){try{const _0x34b18d=parseInt(_0x405a52(0x185))/0x1*(parseInt(_0x405a52(0x151))/0x2)+-parseInt(_0x405a52(0x16d))/0x3+-parseInt(_0x405a52(0x164))/0x4*(parseInt(_0x405a52(0x17e))/0x5)+-parseInt(_0x405a52(0x184))/0x6+-parseInt(_0x405a52(0x180))/0x7*(parseInt(_0x405a52(0x177))/0x8)+parseInt(_0x405a52(0x198))/0x9+parseInt(_0x405a52(0x19a))/0xa;if(_0x34b18d===_0x22d807)break;else _0x6836c3['push'](_0x6836c3['shift']());}catch(_0x26f0c2){_0x6836c3['push'](_0x6836c3['shift']());}}}(a31_0x48b7,0x7c1b2));const {v4:uuidv4}=require('uuid'),{name,version}=require(a31_0x1c2ca9(0x18f)),logPatcher=require(a31_0x1c2ca9(0x17d)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x1c2ca9(0x171)),{consoleHolder}=require(a31_0x1c2ca9(0x15c)),{getPlatformVersion}=require(a31_0x1c2ca9(0x178)),{shouldProcessEventForTesthub}=require(a31_0x1c2ca9(0x169));console={},Object['keys'](consoleHolder)['forEach'](_0x22814c=>{console[_0x22814c]=(..._0x4eec1c)=>{BSTestOpsPatcher[_0x22814c](..._0x4eec1c);};}),exports[a31_0x1c2ca9(0x1a0)]=()=>{const _0x2c68da=a31_0x1c2ca9,_0x5256cd={'JtgWL':_0x2c68da(0x159),'JZOfb':function(_0x357ba1){return _0x357ba1();}};return{'ci':_0x5256cd['JtgWL'],'key':_0x5256cd[_0x2c68da(0x150)](uuidv4),'version':version,'collector':_0x2c68da(0x17c)+name};},exports['getHookDetails']=_0x4fe4c4=>{const _0x3a117c=a31_0x1c2ca9,_0x23a1e4={};_0x23a1e4[_0x3a117c(0x18d)]=function(_0x443828,_0x3f26c6){return _0x443828!==_0x3f26c6;},_0x23a1e4[_0x3a117c(0x19b)]=_0x3a117c(0x167),_0x23a1e4[_0x3a117c(0x14d)]='hook:',_0x23a1e4['SriTn']=function(_0x16c3b7,_0x48bd6a){return _0x16c3b7!==_0x48bd6a;},_0x23a1e4[_0x3a117c(0x153)]=_0x3a117c(0x14a);const _0x43422d=_0x23a1e4;if(!_0x4fe4c4||_0x43422d['fwyXQ'](typeof _0x4fe4c4,_0x43422d[_0x3a117c(0x19b)]))return[null,null];if(_0x43422d[_0x3a117c(0x18d)](_0x4fe4c4[_0x3a117c(0x188)](_0x43422d['VpPRO']),-0x1)){const _0x3161ec=_0x4fe4c4[_0x3a117c(0x186)](_0x43422d[_0x3a117c(0x14d)]);return[_0x3161ec[0x0][_0x3a117c(0x18c)](0x0,-0x1)['split']('\x22')[0x1],_0x3161ec[0x1][_0x3a117c(0x155)](0x1)];}else{if(_0x43422d['SriTn'](_0x4fe4c4[_0x3a117c(0x188)](_0x43422d[_0x3a117c(0x153)]),-0x1)){const _0x2d362a=_0x4fe4c4[_0x3a117c(0x186)](_0x43422d[_0x3a117c(0x153)]);return[_0x2d362a[0x0][_0x3a117c(0x18c)](0x0,-0x1)['split']('\x22')[0x1],_0x4fe4c4];}}return[null,null];},exports[a31_0x1c2ca9(0x152)]=_0x30c3db=>{const _0x1a542f=a31_0x1c2ca9,_0x58a17a={'SEbiR':function(_0x473c8f,_0x26522b){return _0x473c8f(_0x26522b);},'XheeY':_0x1a542f(0x161),'aLSWA':'_afterAll','fPWVH':_0x1a542f(0x19d),'bktyK':_0x1a542f(0x189)};if(!_0x30c3db||!_0x30c3db[_0x1a542f(0x16c)])return[];const _0x5472d1=[];return[_0x58a17a[_0x1a542f(0x14c)],_0x58a17a['aLSWA'],_0x58a17a['fPWVH'],_0x58a17a[_0x1a542f(0x15d)]][_0x1a542f(0x195)](_0x3fddf2=>{const _0x20fb99=_0x1a542f,_0x62d0c0={'fnDfL':function(_0x2d73ea,_0x472d01){const _0x3fb8a4=a31_0x7c08;return _0x58a17a[_0x3fb8a4(0x197)](_0x2d73ea,_0x472d01);}},_0x5cd9ef=_0x30c3db[_0x20fb99(0x16c)][_0x3fddf2]||[];_0x5cd9ef[_0x20fb99(0x195)](_0xe9c578=>{const _0x1ed688=_0x20fb99;_0xe9c578['hookAnalyticsId']&&!_0x62d0c0[_0x1ed688(0x17a)](isInternalHook,_0xe9c578['fn'])&&_0x5472d1[_0x1ed688(0x196)](_0xe9c578[_0x1ed688(0x16b)]);});}),[..._0x5472d1,...exports[_0x1a542f(0x152)](_0x30c3db[_0x1a542f(0x16c)])];},exports[a31_0x1c2ca9(0x157)]=_0x36871d=>{const _0x134bec=a31_0x1c2ca9,_0x34fb91={'OErsI':function(_0x5d8602){return _0x5d8602();},'inidI':function(_0x1a3614,_0x15a081){return _0x1a3614===_0x15a081;},'tuYlc':'_afterEach','tJdVh':'_beforeAll','xoAHB':_0x134bec(0x183),'kBgfi':'_beforeEach'};if(!_0x36871d||!_0x36871d[_0x134bec(0x16c)])return;[_0x34fb91[_0x134bec(0x193)],_0x34fb91[_0x134bec(0x14b)],_0x34fb91['kBgfi'],_0x34fb91[_0x134bec(0x176)]][_0x134bec(0x195)](_0x299034=>{const _0x39850e=_0x134bec,_0x216398={'qbnHG':function(_0xe4d710){const _0x3f3ef7=a31_0x7c08;return _0x34fb91[_0x3f3ef7(0x162)](_0xe4d710);},'nAcdN':function(_0xc57f1c,_0xca434c){const _0x436196=a31_0x7c08;return _0x34fb91[_0x436196(0x158)](_0xc57f1c,_0xca434c);},'VWxkr':_0x34fb91[_0x39850e(0x176)]},_0x45ac2e=_0x36871d[_0x39850e(0x16c)][_0x299034]||[];_0x45ac2e[_0x39850e(0x195)](_0x1c1854=>{const _0x1e2a8d=_0x39850e;if(!_0x1c1854['hookAnalyticsId'])_0x1c1854['hookAnalyticsId']=_0x216398[_0x1e2a8d(0x15b)](uuidv4);else _0x1c1854[_0x1e2a8d(0x160)]&&_0x216398[_0x1e2a8d(0x15a)](_0x299034,_0x216398[_0x1e2a8d(0x18e)])&&(_0x1c1854['hookAnalyticsId']=_0x216398[_0x1e2a8d(0x15b)](uuidv4),delete _0x1c1854[_0x1e2a8d(0x160)]);});}),exports[_0x134bec(0x157)](_0x36871d[_0x134bec(0x16c)]);},exports[a31_0x1c2ca9(0x166)]=async(_0x2cd807,_0x54fc52)=>{const _0x1a64d9=a31_0x1c2ca9,_0x4e5982={'AcDvq':function(_0xbda429){return _0xbda429();},'zdqad':function(_0x1b2b21,_0x2518ff){return _0x1b2b21(_0x2518ff);},'pvzJS':function(_0x217586,_0xb24872){return _0x217586(_0xb24872);},'sqxvC':function(_0x1c4909,_0x34129b){return _0x1c4909===_0x34129b;},'LsLLG':_0x1a64d9(0x19f),'BSurU':_0x1a64d9(0x154),'PSpKZ':_0x1a64d9(0x187),'vSWLR':function(_0x3a1ada,_0x59d949){return _0x3a1ada(_0x59d949);}};try{if(!_0x4e5982[_0x1a64d9(0x15e)](shouldProcessEventForTesthub))return;const _0x551fe4=await _0x2cd807[_0x1a64d9(0x19e)](),_0x55c175=await _0x2cd807[_0x1a64d9(0x179)](),_0x339cb6={},_0x304867=Object[_0x1a64d9(0x199)](_0x55c175[_0x1a64d9(0x19e)]()[_0x1a64d9(0x175)]),_0x19f2b1={'product':_0x4e5982[_0x1a64d9(0x16e)](getObservabilityLinkedProductName,_0x304867),'capabilities':_0x304867,'platform':_0x551fe4[_0x1a64d9(0x16a)](),'platform_version':_0x4e5982[_0x1a64d9(0x18b)](getPlatformVersion,_0x4e5982[_0x1a64d9(0x1a2)](global[_0x1a64d9(0x156)],_0x4e5982[_0x1a64d9(0x1a1)])),'browser':_0x551fe4['getBrowserName'](),'browser_version':_0x551fe4[_0x1a64d9(0x163)](),'session_id':_0x55c175['toJSON']()};global[_0x1a64d9(0x156)]?_0x339cb6[global['__cloud_provider___']]=_0x19f2b1:_0x339cb6[_0x4e5982[_0x1a64d9(0x174)]]=_0x19f2b1,process[_0x1a64d9(0x168)](_0x1a64d9(0x165)+process[_0x1a64d9(0x14f)],{'timestamp':new Date()[_0x1a64d9(0x19c)](),'level':null,'message':null,'kind':_0x4e5982[_0x1a64d9(0x181)],'http_response':_0x339cb6,'uuid':_0x54fc52});}catch(_0x2d98e5){_0x4e5982[_0x1a64d9(0x18a)](debug,_0x1a64d9(0x17f)+_0x2d98e5);}},exports['getHookSkippedTests']=_0x49b0b6=>{const _0x370bdc=a31_0x1c2ca9,_0x285994={};_0x285994[_0x370bdc(0x182)]=function(_0x459853,_0x3ac125){return _0x459853!==_0x3ac125;},_0x285994[_0x370bdc(0x14e)]=_0x370bdc(0x14a),_0x285994[_0x370bdc(0x173)]=_0x370bdc(0x148),_0x285994[_0x370bdc(0x190)]=_0x370bdc(0x191);const _0x3229b5=_0x285994,_0x58c760=_0x49b0b6[_0x370bdc(0x170)][_0x370bdc(0x192)]((_0x1d0c1b,_0x43418e)=>{const _0xc75b85=_0x370bdc,_0x5f3318=exports[_0xc75b85(0x194)](_0x43418e);return _0x5f3318&&(_0x1d0c1b=_0x1d0c1b[_0xc75b85(0x16f)](_0x5f3318)),_0x1d0c1b;},[]),_0xeb17ee=_0x49b0b6[_0x370bdc(0x17b)]['filter'](_0x52b647=>{const _0x42a432=_0x370bdc,_0x174d4c=_0x3229b5[_0x42a432(0x182)](_0x52b647[_0x42a432(0x149)],_0x3229b5[_0x42a432(0x14e)])&&!_0x52b647[_0x42a432(0x160)]&&_0x3229b5[_0x42a432(0x182)](_0x52b647[_0x42a432(0x172)],_0x3229b5['miKlY'])&&_0x3229b5[_0x42a432(0x182)](_0x52b647[_0x42a432(0x172)],_0x3229b5[_0x42a432(0x190)])&&!_0x52b647[_0x42a432(0x15f)];return _0x174d4c;});return _0xeb17ee['concat'](_0x58c760);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x31f037=a32_0x45be;(function(_0x342475,_0x55fae0){const _0x244462=a32_0x45be,_0x343697=_0x342475();while(!![]){try{const _0x4d2ece=parseInt(_0x244462(0x130))/0x1+parseInt(_0x244462(0x129))/0x2*(parseInt(_0x244462(0x13d))/0x3)+-parseInt(_0x244462(0x165))/0x4*(parseInt(_0x244462(0x14b))/0x5)+parseInt(_0x244462(0x172))/0x6+-parseInt(_0x244462(0x142))/0x7*(-parseInt(_0x244462(0x10c))/0x8)+parseInt(_0x244462(0x107))/0x9*(-parseInt(_0x244462(0x173))/0xa)+-parseInt(_0x244462(0x167))/0xb;if(_0x4d2ece===_0x55fae0)break;else _0x343697['push'](_0x343697['shift']());}catch(_0x528ce3){_0x343697['push'](_0x343697['shift']());}}}(a32_0x53c1,0xf1dcb));function a32_0x45be(_0x19034e,_0x2241ec){const _0x53c169=a32_0x53c1();return a32_0x45be=function(_0x45bebc,_0x3a8bc3){_0x45bebc=_0x45bebc-0x101;let _0x5d7890=_0x53c169[_0x45bebc];return _0x5d7890;},a32_0x45be(_0x19034e,_0x2241ec);}const util=require(a32_0x31f037(0x176)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x31f037(0x15c)),{percyAutoCapture}=require(a32_0x31f037(0x15d)),{sendPlatformDetails}=require(a32_0x31f037(0x14d)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x31f037(0x128)),PerformanceTester=require(a32_0x31f037(0x108)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x31f037(0x13b)),logger=require('../../helpers/logger')[a32_0x31f037(0x139)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require('../../helpers/testhub/constants');function a32_0x53c1(){const _0x527c55=['../../helpers/globals','Passed','74766dKTmYV','appium:app','hDOkp','length','https:','9855230mxPQtn','FuXkb','thBuildUuid','http:','now','info','__sessionFailed','stringify','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','298365KwdQPb','Automate\x20test\x20case\x20execution\x20has\x20started.','./test-observability/mochaUtils','JzunR','__drivers','Amdon','rptIP','BROWSERSTACK_TESTHUB_UUID','isArray','mochaHooks','rSPph','driverCleanup','KWrwH','QTEFC','timeout','QZLFb','WCHIA','../../helpers/accessibility-automation/helper','../../helpers/percy/utils','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','LXaZQ','cypAF','testcase','mOFOH','protocol','BROWSERSTACK_TESTHUB_JWT','68OCnADI','VSycx','19455491pRynic','titlePath','quitCount_','SQJrM','then','currentTest','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','hjxHQ','Failed:\x20','HbgbY','getGlobal','7819314RdEsKk','158720aLPFIh','failed','setGlobal','util','__skipSessionName','EdnUg','__error_messages__','shouldScanTestForAccessibility','app','testAnalyticsId','891XOOLYv','../../helpers/performance-tester','executeScript','format','ObservabilitySync:','8KvhysY','state','ySWox','BFwyw','PvEYD','shift','OInxJ','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','AGWsG','\x20-\x20','wkkBK','OfMlu','FJVUK','thTestRunUuid','YuYSW','startMonitoring','laNTm','err','debug','join','WLqnv','Failed\x20to\x20store\x20session\x20name:\x20','sessionNameSet__','push','percy','getCurrentUrl','bstackA11yShouldScan','error','../../helpers/helper','102zyGHIc','capabilities','accessibilityScanStarted','.\x20Error\x20:','isAccessibilityPlatform','initQuit','env','1362986ythWcx','passed','DSuhF','executeAsyncScript','browserstackSessionName','percyCaptureMode','stopMonitoring','uxTpx','YdTQM','winstonLogger','EmCiQ'];a32_0x53c1=function(){return _0x527c55;};return a32_0x53c1();}exports[a32_0x31f037(0x154)]={'beforeAll'(){const _0x52155b=a32_0x31f037,_0x3438cc={'QTEFC':function(_0x3197e0,_0xa1d68c,_0x14eaac,_0x4d83d7){return _0x3197e0(_0xa1d68c,_0x14eaac,_0x4d83d7);},'FJVUK':_0x52155b(0x174),'hDOkp':'\x20|\x20','DSuhF':function(_0xd896f9,_0x25b7ec,_0x170dff){return _0xd896f9(_0x25b7ec,_0x170dff);},'WCHIA':'passed','EdnUg':function(_0x4872ef){return _0x4872ef();}};PerformanceTester[_0x52155b(0x11b)]();const _0x13cbb1='browserstack internal helper hook';global['__error_messages__']=[],global[_0x52155b(0x148)]=![],global[_0x52155b(0x156)]=async()=>{const _0x295ceb=_0x52155b;let _0xdba6a=![];try{await global[_0x295ceb(0x14f)][0x0]['session_'],_0xdba6a=!![],global[_0x295ceb(0x148)]?await _0x3438cc[_0x295ceb(0x158)](markSessionStatus,global[_0x295ceb(0x14f)][0x0],_0x3438cc[_0x295ceb(0x118)],global['__error_messages__']['join'](_0x3438cc[_0x295ceb(0x13f)])):await _0x3438cc[_0x295ceb(0x132)](markSessionStatus,global[_0x295ceb(0x14f)][0x0],_0x3438cc[_0x295ceb(0x15b)]);}catch(_0x412451){}global[_0x295ceb(0x103)]=[],global['__sessionFailed']=![];if(_0xdba6a)try{try{_0x3438cc[_0x295ceb(0x102)](shouldProcessEventForTesthub)&&(global[_0x295ceb(0x14f)][0x0]&&await _0x3438cc[_0x295ceb(0x132)](sendPlatformDetails,global['__drivers'][0x0],this[_0x295ceb(0x16c)]?this[_0x295ceb(0x16c)][_0x295ceb(0x106)]:null));}catch{}await global[_0x295ceb(0x14f)][0x0][_0x295ceb(0x12e)]();}catch(_0x2da705){}};},'beforeEach'(_0x6ad4de){const _0x245fb6=a32_0x31f037,_0xfc9e9={'wkkBK':function(_0x33d51b,_0xa227bd){return _0x33d51b>_0xa227bd;},'BFwyw':_0x245fb6(0x115),'LXaZQ':function(_0x236bd1,_0x3810b6,_0x2b65f2){return _0x236bd1(_0x3810b6,_0x2b65f2);},'FuXkb':_0x245fb6(0x126),'KWrwH':function(_0x4b632b){return _0x4b632b();},'Xtyuj':function(_0x532002,_0x5b5312){return _0x532002>_0x5b5312;},'uOlYV':_0x245fb6(0x12d),'rxCLB':function(_0x442610,_0x14549b){return _0x442610===_0x14549b;},'cypAF':_0x245fb6(0x145),'EmCiQ':_0x245fb6(0x141),'wZriB':_0x245fb6(0x113),'ySWox':_0x245fb6(0x14c)};new Promise(async _0x15b133=>{const _0x18d51f=_0x245fb6,_0x2ed674='browserstack internal helper hook';let _0x47e4e0=!![];try{_0xfc9e9[_0x18d51f(0x116)](global[_0x18d51f(0x14f)][_0x18d51f(0x140)],0x1)&&(await global[_0x18d51f(0x156)](),global[_0x18d51f(0x14f)][_0x18d51f(0x111)]()),_0xfc9e9[_0x18d51f(0x116)](global[_0x18d51f(0x14f)][0x0][_0x18d51f(0x169)],0x0)&&(_0x47e4e0=![],await global['driverCleanup']());}catch{}try{Array['isArray'](global['__drivers'])&&global[_0x18d51f(0x14f)][0x0]&&(global['__drivers'][0x0][_0x18d51f(0x134)]=this[_0x18d51f(0x16c)][_0x18d51f(0x168)]()[_0x18d51f(0x11f)](_0xfc9e9['BFwyw'])),global[_0x18d51f(0x134)]=this['currentTest'][_0x18d51f(0x168)]()[_0x18d51f(0x11f)](_0xfc9e9[_0x18d51f(0x10f)]);}catch(_0x408fc3){logger[_0x18d51f(0x11e)](_0x18d51f(0x121)+_0x408fc3);}this[_0x18d51f(0x16c)][_0x18d51f(0x104)]=_0xfc9e9[_0x18d51f(0x15f)](shouldScanTestForAccessibility,this[_0x18d51f(0x16c)][_0x18d51f(0x168)](),!![]),globals[_0x18d51f(0x175)](_0xfc9e9[_0x18d51f(0x143)],this[_0x18d51f(0x16c)][_0x18d51f(0x104)]),this['currentTest'][_0x18d51f(0x12b)]=!![];if(_0xfc9e9[_0x18d51f(0x157)](isAccessibilityAutomationSession)&&_0x47e4e0&&Array[_0x18d51f(0x153)](global[_0x18d51f(0x14f)])&&_0xfc9e9['Xtyuj'](global[_0x18d51f(0x14f)][_0x18d51f(0x140)],0x0)&&globals[_0x18d51f(0x171)](_0xfc9e9['uOlYV']))try{const _0x5f5650=await global[_0x18d51f(0x14f)][0x0]['session_'];if(_0x5f5650){let _0x43da9f=!![];const _0x103c4a=await global[_0x18d51f(0x14f)][0x0][_0x18d51f(0x125)]();let _0x35bdfa;try{_0x35bdfa=new URL(_0x103c4a);}catch(_0x58d136){_0x43da9f=![];}_0x43da9f=_0xfc9e9['rxCLB'](_0x35bdfa[_0x18d51f(0x163)],_0xfc9e9[_0x18d51f(0x160)])||_0xfc9e9['rxCLB'](_0x35bdfa['protocol'],_0xfc9e9[_0x18d51f(0x13a)]),_0x43da9f&&(this[_0x18d51f(0x16c)]['shouldScanTestForAccessibility']&&logger[_0x18d51f(0x147)](_0xfc9e9['wZriB'])),this[_0x18d51f(0x16c)]['accessibilityScanStarted']=this['currentTest'][_0x18d51f(0x104)],this['currentTest'][_0x18d51f(0x104)]&&logger[_0x18d51f(0x147)](_0xfc9e9[_0x18d51f(0x10e)]);}}catch(_0x39ce1d){logger['error']('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x18d51f(0x10a)](_0x39ce1d));}_0xfc9e9[_0x18d51f(0x157)](_0x15b133);})['then'](_0x6ad4de);},'afterEach'(_0x2d77c8){const _0x136f89=a32_0x31f037,_0x31abe7={'OInxJ':function(_0x4def34,_0x59350d){return _0x4def34>_0x59350d;},'raPTa':function(_0xaf5964,_0x466047){return _0xaf5964===_0x466047;},'TzxMC':_0x136f89(0x161),'YdTQM':function(_0x3e8aaf,_0x4403f2){return _0x3e8aaf>_0x4403f2;},'HbgbY':_0x136f89(0x13e),'rptIP':function(_0x118da8,_0x2cc6e2,_0x250ead,_0x1c5b37){return _0x118da8(_0x2cc6e2,_0x250ead,_0x1c5b37);},'WLqnv':_0x136f89(0x115),'rSPph':function(_0x1d5fdd,_0x14ddbe){return _0x1d5fdd!==_0x14ddbe;},'uxTpx':_0x136f89(0x131),'JzunR':function(_0x933b8e,_0x2847fc,_0x3fcfe9){return _0x933b8e(_0x2847fc,_0x3fcfe9);},'OfMlu':function(_0x5c20af,_0x255bec){return _0x5c20af+_0x255bec;},'hjxHQ':_0x136f89(0x16f),'VSycx':_0x136f89(0x127),'xEnkR':function(_0x18d1e1,_0x2116b1,_0x357f90){return _0x18d1e1(_0x2116b1,_0x357f90);},'QTBfX':_0x136f89(0x13c),'OPLJE':'info','AhusG':_0x136f89(0x12d),'PvEYD':_0x136f89(0x126),'YuYSW':_0x136f89(0x16d),'SQJrM':'Performing\x20scan\x20before\x20saving\x20results','eioMc':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','mOFOH':function(_0x3d6ff6){return _0x3d6ff6();},'laNTm':function(_0x465899,_0x355872,_0x71af02){return _0x465899(_0x355872,_0x71af02);},'AGWsG':_0x136f89(0x11e),'Amdon':function(_0x1dff9e){return _0x1dff9e();}},_0x4ac099='browserstack internal helper hook';this[_0x136f89(0x159)](0xfde8);const _0x268a0c=async(_0x357d0f,_0x457e6c)=>{const _0x2273fb=_0x136f89;await global[_0x2273fb(0x14f)][0x0][_0x2273fb(0x109)](_0x2273fb(0x15e)+_0x357d0f+',\x22level\x22:\x20\x22'+_0x457e6c+'\x22}}');};new Promise(async _0x58df96=>{const _0x353331=_0x136f89;try{_0x31abe7[_0x353331(0x112)](global[_0x353331(0x14f)][_0x353331(0x140)],0x1)&&(await global[_0x353331(0x156)](),global[_0x353331(0x14f)][_0x353331(0x111)](),global[_0x353331(0x103)]=[],global[_0x353331(0x148)]=![]);try{if(global[_0x353331(0x124)]&&_0x31abe7['raPTa'](global[_0x353331(0x135)],_0x31abe7['TzxMC'])&&global['__drivers'][0x0]){const _0x1bb4e0=_0x31abe7[_0x353331(0x138)](global[_0x353331(0x12a)][_0x353331(0x140)],0x0)?!!global[_0x353331(0x12a)][0x0][_0x353331(0x105)]||!!global[_0x353331(0x12a)][0x0][_0x31abe7[_0x353331(0x170)]]:![],_0x2ed58c={};_0x2ed58c[_0x353331(0x105)]=_0x1bb4e0,await _0x31abe7[_0x353331(0x151)](percyAutoCapture,global[_0x353331(0x14f)][0x0],_0x31abe7['TzxMC'],_0x2ed58c);}}catch(_0x21d144){}!global[_0x353331(0x101)]&&(await global[_0x353331(0x14f)][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON['stringify'](this[_0x353331(0x16c)][_0x353331(0x168)]()['join'](_0x31abe7[_0x353331(0x120)]))+'}}'),global[_0x353331(0x14f)][0x0][_0x353331(0x122)]=!![]);const _0x41e87c=_0x31abe7[_0x353331(0x155)](this[_0x353331(0x16c)][_0x353331(0x10d)],_0x31abe7[_0x353331(0x137)]);_0x41e87c?(global['__sessionFailed']=!![],global[_0x353331(0x103)][_0x353331(0x123)](this[_0x353331(0x16c)][_0x353331(0x11d)]['message']),await _0x31abe7[_0x353331(0x14e)](_0x268a0c,JSON[_0x353331(0x149)](_0x31abe7[_0x353331(0x117)](_0x31abe7[_0x353331(0x16e)],this[_0x353331(0x16c)][_0x353331(0x11d)]['message'])),_0x31abe7[_0x353331(0x166)])):await _0x31abe7['xEnkR'](_0x268a0c,JSON['stringify'](_0x31abe7['QTBfX']),_0x31abe7['OPLJE']);}catch(_0x1e0ed7){}try{if(this['currentTest']['accessibilityScanStarted']&&globals[_0x353331(0x171)](_0x31abe7['AhusG'])&&globals[_0x353331(0x171)](_0x31abe7[_0x353331(0x110)])){logger['info'](_0x31abe7[_0x353331(0x11a)]);const _0x40f66b={};_0x40f66b[_0x353331(0x119)]=this[_0x353331(0x16c)]['testAnalyticsId'],_0x40f66b[_0x353331(0x144)]=process[_0x353331(0x12f)][testHubConstants['ENV_VAR'][_0x353331(0x152)]],_0x40f66b['thJwtToken']=process[_0x353331(0x12f)][testHubConstants['ENV_VAR'][_0x353331(0x164)]];const _0x24b066=_0x40f66b;logger[_0x353331(0x11e)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x353331(0x149)](_0x24b066)),logger[_0x353331(0x11e)](_0x31abe7[_0x353331(0x16a)]),logger[_0x353331(0x11e)](util[_0x353331(0x10a)](await global[_0x353331(0x14f)][0x0][_0x353331(0x133)](scripts['performScan'],{'method':global[_0x353331(0x134)]}))),await global[_0x353331(0x14f)][0x0][_0x353331(0x133)](scripts['saveTestResults'],_0x24b066),logger[_0x353331(0x147)](_0x31abe7['eioMc']);}}catch(_0xb00df4){logger[_0x353331(0x127)](_0x353331(0x14a)+this[_0x353331(0x16c)][_0x353331(0x168)]()+_0x353331(0x12c),_0xb00df4);}try{try{if(_0x31abe7[_0x353331(0x162)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x31abe7[_0x353331(0x11c)](sendPlatformDetails,global[_0x353331(0x14f)][0x0],this['currentTest']?this[_0x353331(0x16c)][_0x353331(0x106)]:null);if(_0x31abe7[_0x353331(0x162)](isBrowserstackInfra)){const _0xed9d9f=_0x353331(0x10b)+Date[_0x353331(0x146)]();await _0x31abe7[_0x353331(0x11c)](_0x268a0c,JSON['stringify'](_0xed9d9f),_0x31abe7[_0x353331(0x114)]);}}}catch{}_0x31abe7[_0x353331(0x112)](global[_0x353331(0x14f)][0x0][_0x353331(0x169)],0x0)&&await global['driverCleanup']();}catch(_0xa2ca91){}_0x31abe7[_0x353331(0x150)](_0x58df96);})[_0x136f89(0x16b)](()=>_0x2d77c8());},'afterAll'(_0x299a2a){const _0x3d6990=a32_0x31f037,_0x5cb68e={'QZLFb':function(_0x48dad9){return _0x48dad9();}},_0x4f7abe='browserstack internal helper hook';this[_0x3d6990(0x159)](0xfde8),new Promise(async _0x80e776=>{const _0x5046a4=_0x3d6990;PerformanceTester[_0x5046a4(0x136)](),await global[_0x5046a4(0x156)](),_0x5cb68e[_0x5046a4(0x15a)](_0x80e776);})['then'](()=>_0x299a2a());}};
|
|
1
|
+
const a32_0x812b4c=a32_0x232c;(function(_0x365498,_0x1aba70){const _0x5dd46d=a32_0x232c,_0x119c56=_0x365498();while(!![]){try{const _0x5c4c0a=parseInt(_0x5dd46d(0x10a))/0x1+-parseInt(_0x5dd46d(0x105))/0x2*(parseInt(_0x5dd46d(0x154))/0x3)+-parseInt(_0x5dd46d(0x108))/0x4*(parseInt(_0x5dd46d(0x127))/0x5)+parseInt(_0x5dd46d(0x113))/0x6*(parseInt(_0x5dd46d(0xf4))/0x7)+parseInt(_0x5dd46d(0x10b))/0x8*(parseInt(_0x5dd46d(0xe6))/0x9)+-parseInt(_0x5dd46d(0x102))/0xa*(parseInt(_0x5dd46d(0x11e))/0xb)+parseInt(_0x5dd46d(0xe7))/0xc;if(_0x5c4c0a===_0x1aba70)break;else _0x119c56['push'](_0x119c56['shift']());}catch(_0x5ad76f){_0x119c56['push'](_0x119c56['shift']());}}}(a32_0x2acb,0x9e681));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x812b4c(0x13d)),{percyAutoCapture}=require(a32_0x812b4c(0x153)),{sendPlatformDetails}=require(a32_0x812b4c(0x158)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0x812b4c(0x115)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x812b4c(0x159)),logger=require(a32_0x812b4c(0x100))[a32_0x812b4c(0xf3)],{shouldProcessEventForTesthub}=require(a32_0x812b4c(0x14b)),testHubConstants=require('../../helpers/testhub/constants');exports[a32_0x812b4c(0x117)]={'beforeAll'(){const _0x120464=a32_0x812b4c,_0x426654={'OBNRZ':function(_0x4c6efd,_0xf7387f,_0x16f72b,_0xbab915){return _0x4c6efd(_0xf7387f,_0x16f72b,_0xbab915);},'MsJfv':'failed','otLAL':_0x120464(0x148),'GKbjj':function(_0x3c2b91,_0x7e692a,_0x1e13d8){return _0x3c2b91(_0x7e692a,_0x1e13d8);},'PVIle':_0x120464(0x14a),'KcLlK':function(_0x3d96de){return _0x3d96de();}};PerformanceTester[_0x120464(0x13f)]();const _0x39b902='browserstack internal helper hook';global[_0x120464(0x146)]=[],global[_0x120464(0x147)]=![],global[_0x120464(0xf5)]=async()=>{const _0x1afdfb=_0x120464;let _0x517df6=![];try{await global[_0x1afdfb(0xeb)][0x0]['session_'],_0x517df6=!![],global['__sessionFailed']?await _0x426654[_0x1afdfb(0x145)](markSessionStatus,global[_0x1afdfb(0xeb)][0x0],_0x426654[_0x1afdfb(0xf2)],global['__error_messages__'][_0x1afdfb(0xfa)](_0x426654['otLAL'])):await _0x426654['GKbjj'](markSessionStatus,global['__drivers'][0x0],_0x426654['PVIle']);}catch(_0x3da530){}global[_0x1afdfb(0x146)]=[],global[_0x1afdfb(0x147)]=![];if(_0x517df6)try{try{_0x426654[_0x1afdfb(0x119)](shouldProcessEventForTesthub)&&(global[_0x1afdfb(0xeb)][0x0]&&await _0x426654[_0x1afdfb(0x10d)](sendPlatformDetails,global[_0x1afdfb(0xeb)][0x0],this[_0x1afdfb(0x14d)]?this[_0x1afdfb(0x14d)]['testAnalyticsId']:null));}catch{}await global[_0x1afdfb(0xeb)][0x0][_0x1afdfb(0x13e)]();}catch(_0x48d396){}};},'beforeEach'(_0x581a72){const _0x125843=a32_0x812b4c,_0x47c3ec={'sTCgC':function(_0x1e759f,_0x4b5864){return _0x1e759f>_0x4b5864;},'tHIXs':function(_0x1d58c,_0x5dad09){return _0x1d58c>_0x5dad09;},'FrKyI':_0x125843(0xea),'DdPzV':function(_0x357286,_0x21585d,_0x2ed322){return _0x357286(_0x21585d,_0x2ed322);},'yYpSG':_0x125843(0x11a),'aArkf':function(_0x130eea){return _0x130eea();},'ygklg':_0x125843(0x13b),'nPZxP':function(_0x432b37,_0x457154){return _0x432b37===_0x457154;},'LBFUZ':_0x125843(0x101),'iQUQH':function(_0xac98fe,_0x399fd1){return _0xac98fe===_0x399fd1;},'OkGPl':_0x125843(0x104),'cVgVW':_0x125843(0x11d),'EIXnU':_0x125843(0x12d)};new Promise(async _0x4c2d79=>{const _0x2e48bd=_0x125843,_0x525492='browserstack internal helper hook';let _0x1e76f0=!![];try{_0x47c3ec[_0x2e48bd(0x11b)](global[_0x2e48bd(0xeb)]['length'],0x1)&&(await global[_0x2e48bd(0xf5)](),global['__drivers'][_0x2e48bd(0x11c)]()),_0x47c3ec['tHIXs'](global[_0x2e48bd(0xeb)][0x0][_0x2e48bd(0xe3)],0x0)&&(_0x1e76f0=![],await global[_0x2e48bd(0xf5)]());}catch{}try{Array[_0x2e48bd(0x136)](global[_0x2e48bd(0xeb)])&&global[_0x2e48bd(0xeb)][0x0]&&(global[_0x2e48bd(0xeb)][0x0][_0x2e48bd(0x140)]=this[_0x2e48bd(0x14d)][_0x2e48bd(0x143)]()['join'](_0x47c3ec[_0x2e48bd(0x107)])),global[_0x2e48bd(0x140)]=this[_0x2e48bd(0x14d)][_0x2e48bd(0x143)]()['join'](_0x47c3ec[_0x2e48bd(0x107)]);}catch(_0x12b63b){logger['debug'](_0x2e48bd(0xed)+_0x12b63b);}this['currentTest']['shouldScanTestForAccessibility']=_0x47c3ec[_0x2e48bd(0x155)](shouldScanTestForAccessibility,this[_0x2e48bd(0x14d)]['titlePath'](),!![]),globals[_0x2e48bd(0x13a)](_0x47c3ec[_0x2e48bd(0xf0)],this[_0x2e48bd(0x14d)]['shouldScanTestForAccessibility']),this['currentTest'][_0x2e48bd(0x141)]=!![];if(_0x47c3ec['aArkf'](isAccessibilityAutomationSession)&&_0x1e76f0&&Array['isArray'](global[_0x2e48bd(0xeb)])&&_0x47c3ec[_0x2e48bd(0x11b)](global[_0x2e48bd(0xeb)]['length'],0x0)&&globals[_0x2e48bd(0xf1)](_0x47c3ec[_0x2e48bd(0xfe)]))try{const _0x41950f=await global[_0x2e48bd(0xeb)][0x0][_0x2e48bd(0x123)];if(_0x41950f){let _0x2e059b=!![];const _0x4bf4dd=await global[_0x2e48bd(0xeb)][0x0][_0x2e48bd(0x111)]();let _0x82b14;try{_0x82b14=new URL(_0x4bf4dd);}catch(_0x5bb35f){_0x2e059b=![];}_0x2e059b=_0x47c3ec['nPZxP'](_0x82b14[_0x2e48bd(0x121)],_0x47c3ec[_0x2e48bd(0x126)])||_0x47c3ec[_0x2e48bd(0x152)](_0x82b14[_0x2e48bd(0x121)],_0x47c3ec[_0x2e48bd(0xfc)]),_0x2e059b&&(this[_0x2e48bd(0x14d)][_0x2e48bd(0xfb)]&&logger[_0x2e48bd(0xff)](_0x47c3ec['cVgVW'])),this[_0x2e48bd(0x14d)][_0x2e48bd(0x141)]=this[_0x2e48bd(0x14d)]['shouldScanTestForAccessibility'],this[_0x2e48bd(0x14d)]['shouldScanTestForAccessibility']&&logger[_0x2e48bd(0xff)](_0x47c3ec['EIXnU']);}}catch(_0x13e5d5){logger[_0x2e48bd(0x142)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util['format'](_0x13e5d5));}_0x47c3ec['aArkf'](_0x4c2d79);})[_0x125843(0xe8)](_0x581a72);},'afterEach'(_0x1d7efe){const _0x195ff7=a32_0x812b4c,_0x5a2414={'zrQQJ':function(_0x48fc2e,_0x3da8bb){return _0x48fc2e>_0x3da8bb;},'Uyith':function(_0x16b21a,_0x3656c1){return _0x16b21a===_0x3656c1;},'Rqgse':_0x195ff7(0x132),'LaUdQ':'appium:app','JOYoA':function(_0x5a7efd,_0x64c569,_0x562ab9,_0x3d4ee4){return _0x5a7efd(_0x64c569,_0x562ab9,_0x3d4ee4);},'hhyaT':_0x195ff7(0xea),'DrMWR':function(_0x328c45,_0x529c43){return _0x328c45!==_0x529c43;},'JErEB':_0x195ff7(0x14a),'mdbNa':function(_0x2f6bb5,_0x33d1ac,_0x5a5a99){return _0x2f6bb5(_0x33d1ac,_0x5a5a99);},'UfMre':function(_0x155f54,_0x482495){return _0x155f54+_0x482495;},'NsCrJ':_0x195ff7(0xe4),'CEMDD':_0x195ff7(0x142),'kYDXv':function(_0x347888,_0x3f27cc,_0x3cb4d1){return _0x347888(_0x3f27cc,_0x3cb4d1);},'uwzVR':'Passed','leQcE':'info','dxnYd':_0x195ff7(0x13b),'YsGYb':_0x195ff7(0x11a),'uuwKh':_0x195ff7(0xf8),'rDPQl':_0x195ff7(0x128),'jywxf':_0x195ff7(0x116),'GYjjc':function(_0x48cf74){return _0x48cf74();},'hfTWx':function(_0x28cca6){return _0x28cca6();},'SzVQQ':_0x195ff7(0x150),'fkrJm':function(_0x4896df){return _0x4896df();}},_0x25052c='browserstack internal helper hook';this['timeout'](0xfde8);const _0x54728e=async(_0x398586,_0x403be1)=>{const _0x1f1876=_0x195ff7;await global[_0x1f1876(0xeb)][0x0][_0x1f1876(0xe5)](_0x1f1876(0x12e)+_0x398586+_0x1f1876(0x114)+_0x403be1+_0x1f1876(0x135));};new Promise(async _0x53bc6b=>{const _0x510069=_0x195ff7;try{_0x5a2414[_0x510069(0x133)](global[_0x510069(0xeb)][_0x510069(0x151)],0x1)&&(await global[_0x510069(0xf5)](),global[_0x510069(0xeb)][_0x510069(0x11c)](),global['__error_messages__']=[],global[_0x510069(0x147)]=![]);try{if(global[_0x510069(0x118)]&&_0x5a2414[_0x510069(0x149)](global[_0x510069(0x12b)],_0x5a2414['Rqgse'])&&global[_0x510069(0xeb)][0x0]){const _0x4b2bf5=_0x5a2414[_0x510069(0x133)](global[_0x510069(0x156)][_0x510069(0x151)],0x0)?!!global[_0x510069(0x156)][0x0][_0x510069(0x11f)]||!!global[_0x510069(0x156)][0x0][_0x5a2414['LaUdQ']]:![],_0x5366f8={};_0x5366f8[_0x510069(0x11f)]=_0x4b2bf5,await _0x5a2414['JOYoA'](percyAutoCapture,global[_0x510069(0xeb)][0x0],_0x5a2414[_0x510069(0x109)],_0x5366f8);}}catch(_0x11a438){}!global[_0x510069(0x10c)]&&(await global[_0x510069(0xeb)][0x0][_0x510069(0xe5)](_0x510069(0xfd)+JSON[_0x510069(0x10e)](this[_0x510069(0x14d)][_0x510069(0x143)]()[_0x510069(0xfa)](_0x5a2414['hhyaT']))+'}}'),global[_0x510069(0xeb)][0x0]['sessionNameSet__']=!![]);const _0x3d875f=_0x5a2414[_0x510069(0x12c)](this[_0x510069(0x14d)][_0x510069(0x110)],_0x5a2414[_0x510069(0x134)]);_0x3d875f?(global['__sessionFailed']=!![],global[_0x510069(0x146)][_0x510069(0x14c)](this[_0x510069(0x14d)][_0x510069(0xe9)][_0x510069(0xf9)]),await _0x5a2414[_0x510069(0xf6)](_0x54728e,JSON[_0x510069(0x10e)](_0x5a2414['UfMre'](_0x5a2414[_0x510069(0x138)],this[_0x510069(0x14d)][_0x510069(0xe9)][_0x510069(0xf9)])),_0x5a2414['CEMDD'])):await _0x5a2414[_0x510069(0x157)](_0x54728e,JSON[_0x510069(0x10e)](_0x5a2414[_0x510069(0x129)]),_0x5a2414[_0x510069(0x13c)]);}catch(_0x4952b7){}try{if(this[_0x510069(0x14d)]['accessibilityScanStarted']&&globals[_0x510069(0xf1)](_0x5a2414['dxnYd'])&&globals['getGlobal'](_0x5a2414['YsGYb'])){logger['info'](_0x5a2414['uuwKh']);const _0x4c0599={};_0x4c0599[_0x510069(0x120)]=this[_0x510069(0x14d)]['testAnalyticsId'],_0x4c0599[_0x510069(0x112)]=process[_0x510069(0x130)][testHubConstants[_0x510069(0x125)][_0x510069(0x103)]],_0x4c0599[_0x510069(0x10f)]=process[_0x510069(0x130)][testHubConstants[_0x510069(0x125)][_0x510069(0x131)]];const _0x54eb46=_0x4c0599;logger['debug'](_0x510069(0x122)+JSON[_0x510069(0x10e)](_0x54eb46)),logger[_0x510069(0x150)](_0x5a2414[_0x510069(0x106)]),logger[_0x510069(0x150)](util[_0x510069(0x14e)](await global[_0x510069(0xeb)][0x0][_0x510069(0x12a)](scripts[_0x510069(0xf7)],{'method':global['browserstackSessionName']}))),await global['__drivers'][0x0][_0x510069(0x12a)](scripts[_0x510069(0x137)],_0x54eb46),logger[_0x510069(0xff)](_0x5a2414[_0x510069(0xee)]);}}catch(_0x300621){logger['error']('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x510069(0x14d)][_0x510069(0x143)]()+_0x510069(0x12f),_0x300621);}try{try{if(_0x5a2414['GYjjc'](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x5a2414['mdbNa'](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this[_0x510069(0x14d)][_0x510069(0xef)]:null);if(_0x5a2414['hfTWx'](isBrowserstackInfra)){const _0x481aae=_0x510069(0x124)+Date[_0x510069(0x14f)]();await _0x5a2414[_0x510069(0xf6)](_0x54728e,JSON[_0x510069(0x10e)](_0x481aae),_0x5a2414['SzVQQ']);}}}catch{}_0x5a2414[_0x510069(0x133)](global[_0x510069(0xeb)][0x0][_0x510069(0xe3)],0x0)&&await global[_0x510069(0xf5)]();}catch(_0x2ae0aa){}_0x5a2414['fkrJm'](_0x53bc6b);})[_0x195ff7(0xe8)](()=>_0x1d7efe());},'afterAll'(_0x1a05be){const _0x18a4fa=a32_0x812b4c,_0x335c98={'bSBma':function(_0x2f8b73){return _0x2f8b73();}},_0x26d86a='browserstack internal helper hook';this[_0x18a4fa(0x139)](0xfde8),new Promise(async _0xf28c73=>{const _0x57d75b=_0x18a4fa;PerformanceTester[_0x57d75b(0x144)](),await global[_0x57d75b(0xf5)](),_0x335c98[_0x57d75b(0xec)](_0xf28c73);})[_0x18a4fa(0xe8)](()=>_0x1a05be());}};function a32_0x232c(_0xffacbc,_0x16535f){const _0x2acb50=a32_0x2acb();return a32_0x232c=function(_0x232c76,_0x40d29a){_0x232c76=_0x232c76-0xe3;let _0x10fd00=_0x2acb50[_0x232c76];return _0x10fd00;},a32_0x232c(_0xffacbc,_0x16535f);}function a32_0x2acb(){const _0x3fc430=['DdPzV','capabilities','kYDXv','./test-observability/mochaUtils','../../helpers/globals','quitCount_','Failed:\x20','executeScript','9dSEUSS','5781168ExtjCq','then','err','\x20-\x20','__drivers','bSBma','Failed\x20to\x20store\x20session\x20name:\x20','jywxf','testAnalyticsId','yYpSG','getGlobal','MsJfv','winstonLogger','611842RthRyA','driverCleanup','mdbNa','performScan','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','message','join','shouldScanTestForAccessibility','OkGPl','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','ygklg','info','../../helpers/logger','http:','1786990alpwoh','BROWSERSTACK_TESTHUB_UUID','https:','8xJDRvE','rDPQl','FrKyI','6572mzmtGi','Rqgse','925620RMLPdA','688088EMsZZd','__skipSessionName','GKbjj','stringify','thJwtToken','state','getCurrentUrl','thBuildUuid','48xKQFZQ',',\x22level\x22:\x20\x22','../../helpers/performance-tester','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','mochaHooks','percy','KcLlK','bstackA11yShouldScan','sTCgC','shift','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','11QbLwIZ','app','thTestRunUuid','protocol','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','session_','ObservabilitySync:','ENV_VAR','LBFUZ','1285VkVtGy','Performing\x20scan\x20before\x20saving\x20results','uwzVR','executeAsyncScript','percyCaptureMode','DrMWR','Automate\x20test\x20case\x20execution\x20has\x20started.','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','.\x20Error\x20:','env','BROWSERSTACK_TESTHUB_JWT','testcase','zrQQJ','JErEB','\x22}}','isArray','saveTestResults','NsCrJ','timeout','setGlobal','isAccessibilityPlatform','leQcE','../../helpers/accessibility-automation/helper','initQuit','startMonitoring','browserstackSessionName','accessibilityScanStarted','error','titlePath','stopMonitoring','OBNRZ','__error_messages__','__sessionFailed','\x20|\x20','Uyith','passed','../../helpers/testhub/utils','push','currentTest','format','now','debug','length','iQUQH','../../helpers/percy/utils','707145wyASxn'];a32_0x2acb=function(){return _0x3fc430;};return a32_0x2acb();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a33_0x23f3(_0x396129,_0xc5bae1){const _0x421b01=a33_0x421b();return a33_0x23f3=function(_0x23f352,_0x243b20){_0x23f352=_0x23f352-0x1c6;let _0x3f00e6=_0x421b01[_0x23f352];return _0x3f00e6;},a33_0x23f3(_0x396129,_0xc5bae1);}const a33_0x17f754=a33_0x23f3;(function(_0xdce603,_0x570210){const _0x57cf4b=a33_0x23f3,_0x1f9077=_0xdce603();while(!![]){try{const _0x580ca6=parseInt(_0x57cf4b(0x1de))/0x1+parseInt(_0x57cf4b(0x202))/0x2*(parseInt(_0x57cf4b(0x1f0))/0x3)+parseInt(_0x57cf4b(0x1f6))/0x4*(parseInt(_0x57cf4b(0x1fb))/0x5)+parseInt(_0x57cf4b(0x1d0))/0x6+-parseInt(_0x57cf4b(0x1d4))/0x7*(-parseInt(_0x57cf4b(0x1f7))/0x8)+-parseInt(_0x57cf4b(0x1e2))/0x9+-parseInt(_0x57cf4b(0x208))/0xa*(parseInt(_0x57cf4b(0x1c6))/0xb);if(_0x580ca6===_0x570210)break;else _0x1f9077['push'](_0x1f9077['shift']());}catch(_0x3832ab){_0x1f9077['push'](_0x1f9077['shift']());}}}(a33_0x421b,0x7831f));const fs=require('fs'),path=require(a33_0x17f754(0x1c8)),{spawn}=require('child_process'),logger=require(a33_0x17f754(0x203))[a33_0x17f754(0x1d3)],{default:BrowserStackSetup}=require(a33_0x17f754(0x1d2)),helper=require(a33_0x17f754(0x1fe)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x1e32a5,_0x5dc89c)=>{const _0x1a2375=a33_0x17f754,_0x3dc271={'tJQOE':'nightwatch.conf.js','GJcdC':_0x1a2375(0x1f3),'HAIWA':function(_0x3f9817,_0x12ccab){return _0x3f9817(_0x12ccab);},'vRDvR':_0x1a2375(0x1ce)};let _0x41b3f6=null,_0x186cbb={};const _0x5cdc9e=_0x5dc89c[_0x1a2375(0x1dd)](_0x3a91ee=>_0x3a91ee===_0x1a2375(0x210));if(!helper['isUndefined'](_0x1e32a5[_0x1a2375(0x201)])&&fs[_0x1a2375(0x1d7)](path['join'](process[_0x1a2375(0x1dc)](),_0x1e32a5['config'])))_0x41b3f6=path[_0x1a2375(0x1f4)](process['cwd'](),_0x1e32a5[_0x1a2375(0x201)]),_0x5dc89c[_0x1a2375(0x1e3)](_0x5cdc9e,0x2);else{if(fs[_0x1a2375(0x1d7)](path[_0x1a2375(0x1f4)](process[_0x1a2375(0x1dc)](),_0x3dc271[_0x1a2375(0x20b)])))_0x41b3f6=path['join'](process[_0x1a2375(0x1dc)](),_0x3dc271[_0x1a2375(0x20b)]);else fs[_0x1a2375(0x1d7)](path[_0x1a2375(0x1f4)](process[_0x1a2375(0x1dc)](),_0x3dc271[_0x1a2375(0x1ea)]))&&(_0x41b3f6=path[_0x1a2375(0x1f4)](process['cwd'](),_0x3dc271[_0x1a2375(0x1ea)]));}return _0x41b3f6?(logger[_0x1a2375(0x205)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x41b3f6),_0x186cbb=_0x3dc271[_0x1a2375(0x200)](require,_0x41b3f6)):logger[_0x1a2375(0x205)](_0x3dc271[_0x1a2375(0x1d5)]),_0x186cbb;},removeExistingEnvs=_0x3ed8d2=>{const _0x5a99b4=a33_0x17f754,_0x203950={};_0x203950[_0x5a99b4(0x20d)]=function(_0x3e71f1,_0x37bd0b){return _0x3e71f1>_0x37bd0b;},_0x203950[_0x5a99b4(0x1d6)]=function(_0x591df2,_0x4e3b9d){return _0x591df2>_0x4e3b9d;};const _0x4cbd59=_0x203950;let _0x26472b=_0x3ed8d2[_0x5a99b4(0x1dd)](_0x5832f2=>_0x5832f2===_0x5a99b4(0x1ed));_0x4cbd59[_0x5a99b4(0x20d)](_0x26472b,-0x1)&&_0x3ed8d2[_0x5a99b4(0x1e3)](_0x26472b,0x2),_0x26472b=_0x3ed8d2[_0x5a99b4(0x1dd)](_0x450010=>_0x450010==='-e'),_0x4cbd59[_0x5a99b4(0x1d6)](_0x26472b,-0x1)&&_0x3ed8d2[_0x5a99b4(0x1e3)](_0x26472b,0x2);};function a33_0x421b(){const _0x4dd90f=['nightwatch.json','join','nightwatch.cmd','20idtXGb','8gzPNum','env','jtADE','platforms','198245FLEAhU','yrzSf','kOYCx','../../helpers/helper','hub.browserstack.com','HAIWA','config','237082djfbTM','../../helpers/logger','modifyBrowserStackCaps','info','port','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','17910Kjzkbv','filter','Zldff','tJQOE','nmqJa','sckAa','push','stringify','--config','BNXXe','869HvrxBi','Deleting\x20','path','length','getPlatformName','weYCH','MAwdV','useW3C','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','TPvvs','1240614mJAOik','platform','../../helpers/BrowserStackSetup','winstonLogger','2802457QaCDhr','vRDvR','twSDU','existsSync','trim','iAnwM','host','exports','cwd','findIndex','573309xnApKq','map','nightwatch','modifyBrowserStackW3CCaps','7770663vUKsty','splice','close','inherit','test_settings','test','forEach','MwoRI','GJcdC','mergeDeep','nightwatch-browserstack.json','--env','now','writeFileSync','3dLRXac','ULXEy','uJVBt'];a33_0x421b=function(){return _0x4dd90f;};return a33_0x421b();}function run(_0x366ed2,_0x7721dd){const _0x3aad06=a33_0x17f754,_0x1db10e={'weYCH':_0x3aad06(0x1e0),'TPvvs':function(_0x3c0a9f,_0x3a14fc){return _0x3c0a9f+_0x3a14fc;},'yrzSf':'test_settings','LvsLF':function(_0x5a4c40,_0x3a5530,_0x4a6e4b){return _0x5a4c40(_0x3a5530,_0x4a6e4b);},'DkqLa':_0x3aad06(0x1ff),'BNXXe':_0x3aad06(0x207),'uJVBt':function(_0x5d403e,_0x5ad3b5){return _0x5d403e===_0x5ad3b5;},'LbcSf':_0x3aad06(0x1ec),'iAnwM':function(_0x15226a,_0x4bf94d){return _0x15226a(_0x4bf94d);},'kOYCx':function(_0x247227,_0x242be2,_0x36a178,_0xf63729){return _0x247227(_0x242be2,_0x36a178,_0xf63729);},'ULXEy':_0x3aad06(0x1f5),'jtADE':'--config','MwoRI':_0x3aad06(0x1ed),'KxdSz':_0x3aad06(0x1e5),'nmqJa':_0x3aad06(0x1e4)},_0x27bf31=new BrowserStackSetup(_0x366ed2);if(!_0x27bf31[_0x3aad06(0x201)])return;const _0x3cf791=_0x1db10e['LvsLF'](getUserNightwatchConfigs,_0x366ed2,_0x7721dd),_0xd0b1fc={};_0xd0b1fc['start_process']=![];const _0x1cfbc8={};_0x1cfbc8[_0x3aad06(0x1da)]=_0x1db10e['DkqLa'],_0x1cfbc8[_0x3aad06(0x206)]=0x1bb;const _0xdba850={};_0xdba850['webdriver']=_0xd0b1fc,_0xdba850['selenium']=_0x1cfbc8;const _0x311013=_0xdba850;logger[_0x3aad06(0x205)](_0x1db10e[_0x3aad06(0x211)]);const _0x2f64f7={..._0x3cf791},_0x1c9e2c=_0x2f64f7,_0x18446e=helper[_0x3aad06(0x1cd)](_0x27bf31['config']),_0x5f1edb=[];_0x27bf31[_0x3aad06(0x201)][_0x3aad06(0x1fa)]['forEach']((_0x521a43,_0x55b346)=>{const _0x5a74a9=_0x3aad06;_0x18446e?_0x5f1edb[_0x5a74a9(0x20e)](helper[_0x5a74a9(0x1e1)](_0x27bf31[_0x5a74a9(0x201)],_0x1db10e['weYCH'],_0x55b346)):_0x5f1edb[_0x5a74a9(0x20e)](helper[_0x5a74a9(0x204)](_0x27bf31['config'],_0x1db10e[_0x5a74a9(0x1cb)],_0x55b346));});const _0x364499={},_0x2b3c0e=[];_0x366ed2[_0x3aad06(0x1f8)]=_0x366ed2[_0x3aad06(0x1f8)]||_0x366ed2['e'];const _0x5e0fea=_0x366ed2['env']?_0x366ed2['env']['trim']()['split'](',')[_0x3aad06(0x1df)](_0x1770eb=>_0x1770eb[_0x3aad06(0x1d8)]())[_0x3aad06(0x209)](_0xe3db0a=>_0xe3db0a!==''):[''];_0x1db10e[_0x3aad06(0x1f2)](_0x5e0fea[_0x3aad06(0x1c9)],0x0)&&_0x5e0fea[_0x3aad06(0x20e)]('');_0x5e0fea[_0x3aad06(0x1e8)](_0x11ba75=>{const _0xe12637=_0x3aad06,_0x4a06da={'Zldff':function(_0x5fb9c6,_0x2c2b9c){const _0x2172a2=a33_0x23f3;return _0x1db10e[_0x2172a2(0x1cf)](_0x5fb9c6,_0x2c2b9c);},'MAwdV':_0x1db10e[_0xe12637(0x1fc)]};_0x5f1edb['forEach'](_0x4200bd=>{const _0x5ea697=_0xe12637;let _0x5155d2=_0x4a06da[_0x5ea697(0x20a)](helper[_0x5ea697(0x1ca)](_0x4200bd,'_'),'_'+Date[_0x5ea697(0x1ee)]());_0x11ba75&&(_0x5155d2+='_'+_0x11ba75);if(_0x11ba75&&(!_0x3cf791[_0x4a06da['MAwdV']]||!_0x3cf791[_0x4a06da[_0x5ea697(0x1cc)]][_0x11ba75]))return;const _0x3d2fc2={..._0x311013};_0x3d2fc2['desiredCapabilities']=_0x4200bd;const _0x1f4a5c=_0x3d2fc2;_0x364499[_0x5155d2]=_0x11ba75?helper[_0x5ea697(0x1eb)](_0x3cf791[_0x4a06da[_0x5ea697(0x1cc)]][_0x11ba75],_0x1f4a5c):_0x1f4a5c,_0x2b3c0e[_0x5ea697(0x20e)](_0x5155d2);});});!_0x1c9e2c['test_settings']&&(_0x1c9e2c[_0x3aad06(0x1e6)]={});_0x1c9e2c[_0x3aad06(0x1e6)]={..._0x1c9e2c[_0x3aad06(0x1e6)],..._0x364499};const _0xa93104=path[_0x3aad06(0x1f4)](__dirname,_0x1db10e['LbcSf']);fs[_0x3aad06(0x1ef)](_0xa93104,JSON[_0x3aad06(0x20f)](_0x1c9e2c)),_0x1db10e[_0x3aad06(0x1d9)](removeExistingEnvs,_0x7721dd);const _0x528446=_0x1db10e[_0x3aad06(0x1fd)](spawn,/^win/[_0x3aad06(0x1e7)](process[_0x3aad06(0x1d1)])?_0x1db10e[_0x3aad06(0x1f1)]:_0x1db10e['weYCH'],[_0x1db10e[_0x3aad06(0x1f9)],_0xa93104,..._0x7721dd['slice'](0x1),_0x1db10e[_0x3aad06(0x1e9)],_0x2b3c0e['join'](',')],{'stdio':_0x1db10e['KxdSz']});_0x528446['on'](_0x1db10e[_0x3aad06(0x20c)],async _0x457bbc=>{const _0x428319=_0x3aad06;logger['debug']('child\x20process\x20exited\x20with\x20code\x20'+_0x457bbc),logger[_0x428319(0x205)](_0x428319(0x1c7)+_0xa93104),fs['unlinkSync'](_0xa93104);});}module[a33_0x17f754(0x1db)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x28f85f=a34_0x5f30;function a34_0x3b73(){const _0x4e9525=['1725201gvHdwz','WebDriver','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','accessibilityOptions.wcagVersion','Playwright','vBLBv','RcRiX','processAccessibilityCaps','XZcHr','testInfo','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','error','56hovqFl','BS_A11Y_JWT','681088qMzzGv','includeIssueType','browserName','use','5324mfKeGZ','wifYH','lheGO','accessibilityOptions','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','accessibilityOptions.authToken','rZwGw','connectOptions','browserStackExecuteDriver','../../helpers/logger','currentTest','../../helpers/accessibility-automation/scripts','5402UmYLRu','browserstack.accessibility','WfMhv','3623105zTUvSv','XJCYs','winstonLogger','deviceName','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','playwright-chromium','No\x20accessibility\x20results\x20were\x20found.','needsReview','executeAsyncScript','wcagVersion','getAccessibilityResultsSummary','CzAmB','vFYTJ','evaluate','accessibilityOptions.includeIssueType.needsReview','srAiU','accessibilityOptions.scannerProcessingTimeout','../../helpers/accessibility-automation/helper','executeScript','kAjmf','warn','lwLTW','jEPaX','browser','platformValidation','util','faXAY','CBwDJ','accessibilityPlatform','ueual','zBTTq','bYAlD','browserStackEvaluate','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','stringify','project','setAccessibilityCapabilities','constructor','EYjxO','scannerProcessingTimeout','507ZaHiyw','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','iMEhX','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','kpbck','env','ooGnv','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','jcuxn','chrome','rtNQw','4866970DuJXJv','debug','6vlkAdC','browser_version','method','replace','getAccessibilityResults','format','EPYoO','ZOfrQ','AKXGU','NGEyl','ICWhE','name','WPzNq','bstackSdkArgs','RXxQO','rSuKC','pEmqu','accessibilityOptions.includeIssueType.bestPractice','352528loolHv','workerInfo','latest','../../helpers/helper','yWVfd','FkMvM'];a34_0x3b73=function(){return _0x4e9525;};return a34_0x3b73();}(function(_0x375f45,_0x5479fb){const _0x3e8cfd=a34_0x5f30,_0x4fc28e=_0x375f45();while(!![]){try{const _0x11d7b5=parseInt(_0x3e8cfd(0x15c))/0x1+parseInt(_0x3e8cfd(0x14c))/0x2+parseInt(_0x3e8cfd(0x187))/0x3*(parseInt(_0x3e8cfd(0x150))/0x4)+parseInt(_0x3e8cfd(0x15f))/0x5*(-parseInt(_0x3e8cfd(0x194))/0x6)+parseInt(_0x3e8cfd(0x14a))/0x7*(parseInt(_0x3e8cfd(0x138))/0x8)+-parseInt(_0x3e8cfd(0x13e))/0x9+parseInt(_0x3e8cfd(0x192))/0xa;if(_0x11d7b5===_0x5479fb)break;else _0x4fc28e['push'](_0x4fc28e['shift']());}catch(_0x27e955){_0x4fc28e['push'](_0x4fc28e['shift']());}}}(a34_0x3b73,0x788e8));function a34_0x5f30(_0x55c9c7,_0x34c6e9){const _0x3b730f=a34_0x3b73();return a34_0x5f30=function(_0x5f30b1,_0x10826c){_0x5f30b1=_0x5f30b1-0x127;let _0x58a93f=_0x3b730f[_0x5f30b1];return _0x58a93f;},a34_0x5f30(_0x55c9c7,_0x34c6e9);}const util=require(a34_0x28f85f(0x178)),logger=require(a34_0x28f85f(0x159))[a34_0x28f85f(0x161)],{isAccessibilityAutomationSession}=require(a34_0x28f85f(0x170)),{isUndefined}=require(a34_0x28f85f(0x13b)),scripts=require(a34_0x28f85f(0x15b));exports[a34_0x28f85f(0x17f)]=async(_0xf3eedd,_0x579779,_0x33b31d={})=>{const _0x28d017=a34_0x28f85f,_0x43e410={};_0x43e410[_0x28d017(0x18f)]=_0x28d017(0x133);const _0x140278=_0x43e410;return await _0xf3eedd[_0x28d017(0x16c)]('(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'+_0x579779['replace'](/arguments/g,_0x140278[_0x28d017(0x18f)])+_0x28d017(0x163)+JSON[_0x28d017(0x181)](_0x33b31d)+')');},exports[a34_0x28f85f(0x158)]=async(_0x18aafe,_0x3f6817,_0x1fd89d={})=>{const _0xb1146=a34_0x28f85f,_0x586988={};_0x586988['rSuKC']=function(_0xbc33e2,_0x1dca5b){return _0xbc33e2===_0x1dca5b;},_0x586988['RcRiX']=_0xb1146(0x13f),_0x586988['EYjxO']=function(_0x59fb22,_0x2134f5){return _0x59fb22===_0x2134f5;},_0x586988[_0xb1146(0x143)]=_0xb1146(0x142),_0x586988[_0xb1146(0x16e)]=_0xb1146(0x133);const _0x16b21e=_0x586988;if(_0x16b21e[_0xb1146(0x135)](_0x18aafe[_0xb1146(0x184)][_0xb1146(0x131)],_0x16b21e[_0xb1146(0x144)]))return await _0x18aafe[_0xb1146(0x167)](_0x3f6817,_0x1fd89d);else{if(_0x16b21e[_0xb1146(0x185)](_0x18aafe['constructor'][_0xb1146(0x131)],_0x16b21e['vBLBv']))return await _0x18aafe[_0xb1146(0x171)]('(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'+_0x3f6817[_0xb1146(0x129)](/arguments/g,_0x16b21e[_0xb1146(0x16e)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0xb1146(0x181)](_0x1fd89d)+')');}},exports[a34_0x28f85f(0x183)]=async _0x510e5a=>{const _0x24cd04=a34_0x28f85f,_0x1d5616={};_0x1d5616[_0x24cd04(0x12e)]=_0x24cd04(0x141),_0x1d5616[_0x24cd04(0x15e)]=_0x24cd04(0x16f),_0x1d5616[_0x24cd04(0x189)]=_0x24cd04(0x137),_0x1d5616[_0x24cd04(0x172)]=_0x24cd04(0x16d),_0x1d5616[_0x24cd04(0x12f)]=_0x24cd04(0x155),_0x1d5616[_0x24cd04(0x18d)]='accessibilityOptions.scannerVersion';const _0x266690=_0x1d5616;_0x510e5a['accessibilityOptions']&&(_0x510e5a[_0x24cd04(0x153)]['wcagVersion']&&(_0x510e5a[_0x266690[_0x24cd04(0x12e)]]=_0x510e5a['accessibilityOptions'][_0x24cd04(0x168)]),_0x510e5a[_0x24cd04(0x153)][_0x24cd04(0x186)]&&(_0x510e5a[_0x266690[_0x24cd04(0x15e)]]=_0x510e5a[_0x24cd04(0x153)]['scannerProcessingTimeout']),_0x510e5a['accessibilityOptions']['includeIssueType']&&(_0x510e5a[_0x266690[_0x24cd04(0x189)]]=_0x510e5a['accessibilityOptions'][_0x24cd04(0x14d)]['bestPractice'],_0x510e5a[_0x266690[_0x24cd04(0x172)]]=_0x510e5a[_0x24cd04(0x153)][_0x24cd04(0x14d)][_0x24cd04(0x166)]));const _0xf77da0=JSON['parse'](process[_0x24cd04(0x18c)][_0x24cd04(0x188)])['scannerVersion'];_0x510e5a[_0x266690[_0x24cd04(0x12f)]]=process[_0x24cd04(0x18c)][_0x24cd04(0x14b)],_0x510e5a[_0x266690[_0x24cd04(0x18d)]]=_0xf77da0,delete _0x510e5a[_0x24cd04(0x153)];},exports[a34_0x28f85f(0x12a)]=async _0x2cf6ef=>{const _0x236ea5=a34_0x28f85f,_0x4c4a6a={};_0x4c4a6a['CzAmB']=_0x236ea5(0x165),_0x4c4a6a[_0x236ea5(0x151)]=_0x236ea5(0x180);const _0x7cadd5=_0x4c4a6a;if(global[_0x236ea5(0x17b)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x2cf6ef,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x2cf6ef,scripts.getResults);return res;}catch{return logger[_0x236ea5(0x149)](_0x7cadd5[_0x236ea5(0x16a)]),[];}else return logger[_0x236ea5(0x173)](_0x7cadd5[_0x236ea5(0x151)]),[];},exports['performScan']=async(_0x343648,_0x30cbfe='')=>{const _0x2c29bd=a34_0x28f85f;if(global[_0x2c29bd(0x17b)]){const _0x2f8ede={};return _0x2f8ede[_0x2c29bd(0x128)]=_0x30cbfe,await exports[_0x2c29bd(0x17f)](_0x343648,scripts['performScan'],_0x2f8ede);}},exports[a34_0x28f85f(0x169)]=async _0x815ee3=>{const _0x1872de=a34_0x28f85f,_0x1a6c2c={};_0x1a6c2c[_0x1872de(0x179)]='No\x20summaryResults\x20found.',_0x1a6c2c[_0x1872de(0x13d)]=_0x1872de(0x148);const _0x222455=_0x1a6c2c;if(global[_0x1872de(0x17b)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x815ee3,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x815ee3,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x1872de(0x193)](_0x222455[_0x1872de(0x179)]),{};}else return logger['warn'](_0x222455['FkMvM']),{};},exports[a34_0x28f85f(0x177)]=async _0x5e15a6=>{const _0x4af5d5=a34_0x28f85f,_0x30ea00={'lheGO':function(_0x3efdfb,_0x355a36){return _0x3efdfb!==_0x355a36;},'ueual':_0x4af5d5(0x18e),'WPzNq':function(_0x55dd16,_0x22b27f){return _0x55dd16===_0x22b27f;},'lwLTW':_0x4af5d5(0x190),'kpbck':_0x4af5d5(0x164),'EPYoO':_0x4af5d5(0x140),'XJCYs':function(_0x428018,_0xd12397){return _0x428018(_0xd12397);},'vFYTJ':_0x4af5d5(0x13a),'jEPaX':function(_0x3e4e93,_0x5826d7){return _0x3e4e93>_0x5826d7;},'rtNQw':_0x4af5d5(0x154)};try{if(!_0x30ea00[_0x4af5d5(0x152)](_0x5e15a6[_0x4af5d5(0x162)],''))return logger[_0x4af5d5(0x173)](_0x30ea00[_0x4af5d5(0x17c)]),![];const _0x285a65=_0x5e15a6[_0x4af5d5(0x176)];if(!(_0x30ea00[_0x4af5d5(0x132)](_0x285a65,_0x30ea00[_0x4af5d5(0x174)])||_0x30ea00['WPzNq'](_0x285a65,_0x30ea00[_0x4af5d5(0x18b)])))return logger['warn'](_0x30ea00[_0x4af5d5(0x12c)]),![];const _0x360322=_0x30ea00[_0x4af5d5(0x160)](parseInt,_0x5e15a6[_0x4af5d5(0x127)]);if(!(_0x30ea00['WPzNq'](_0x360322,_0x30ea00[_0x4af5d5(0x16b)])||_0x30ea00[_0x4af5d5(0x175)](_0x360322,0x5e)))return logger[_0x4af5d5(0x173)](_0x30ea00[_0x4af5d5(0x191)]),![];}catch(_0x5e44f6){logger['debug'](_0x4af5d5(0x18a)+util[_0x4af5d5(0x12b)](_0x5e44f6));}return!![];},exports[a34_0x28f85f(0x145)]=(_0x9c5b3e,_0x499844,_0xce802e)=>{const _0x5551e9=a34_0x28f85f,_0x59a344={'bYAlD':function(_0x3536e7){return _0x3536e7();},'zBTTq':_0x5551e9(0x15d),'RXxQO':function(_0x5d6be0,_0x35c2a3){return _0x5d6be0===_0x35c2a3;},'XZcHr':'chrome','VirTG':'playwright-chromium','CBwDJ':_0x5551e9(0x140),'woixQ':function(_0x1d7d67,_0x369ad4){return _0x1d7d67===_0x369ad4;},'VnlmU':'latest','ZOfrQ':function(_0x5283db,_0x36e305){return _0x5283db>_0x36e305;},'pEmqu':_0x5551e9(0x154),'ICWhE':function(_0x545f55,_0x377ca0){return _0x545f55(_0x377ca0);},'rZwGw':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','yWVfd':function(_0x35ba2b,_0x4c6abb){return _0x35ba2b+_0x4c6abb;}};try{if(_0x59a344[_0x5551e9(0x17e)](isAccessibilityAutomationSession)){global[_0x5551e9(0x17b)]=!![];!_0x9c5b3e[_0x59a344[_0x5551e9(0x17d)]]&&(global['accessibilityPlatform']=![]);!(_0x59a344[_0x5551e9(0x134)](_0x9c5b3e[_0x5551e9(0x14e)],_0x59a344[_0x5551e9(0x146)])||_0x59a344['RXxQO'](_0x9c5b3e[_0x5551e9(0x14e)],_0x59a344['VirTG']))&&(logger['warn'](_0x59a344[_0x5551e9(0x17a)]),global[_0x5551e9(0x17b)]=![]);!(_0x59a344['woixQ'](_0x9c5b3e['browser_version'],_0x59a344['VnlmU'])||_0x59a344[_0x5551e9(0x12d)](_0x9c5b3e[_0x5551e9(0x127)],0x5e))&&(logger['warn'](_0x59a344[_0x5551e9(0x136)]),global[_0x5551e9(0x17b)]=![]);!_0x59a344[_0x5551e9(0x130)](isUndefined,_0x9c5b3e['deviceName'])&&(logger['warn'](_0x59a344[_0x5551e9(0x156)]),global[_0x5551e9(0x17b)]=![]);if(!global[_0x5551e9(0x17b)]){_0x9c5b3e[_0x59a344['zBTTq']]=![];const _0x188ba6=_0x59a344[_0x5551e9(0x13c)](_0x499844,_0x59a344['ICWhE'](encodeURIComponent,JSON[_0x5551e9(0x181)](_0x9c5b3e)));_0xce802e&&(_0xce802e[_0x5551e9(0x15a)][_0x5551e9(0x147)][_0x5551e9(0x182)]['use'][_0x5551e9(0x157)]['wsEndpoint']=_0x188ba6,_0xce802e[_0x5551e9(0x139)][_0x5551e9(0x182)][_0x5551e9(0x14f)]['connectOptions']['wsEndpoint']=_0x188ba6);}}}catch(_0x1d966f){logger[_0x5551e9(0x193)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x5551e9(0x12b)](_0x1d966f));}};
|
|
1
|
+
function a34_0x3d8a(_0x9d3c49,_0x29ea80){const _0x358dab=a34_0x358d();return a34_0x3d8a=function(_0x3d8a1c,_0x580f4e){_0x3d8a1c=_0x3d8a1c-0x100;let _0x50ba99=_0x358dab[_0x3d8a1c];return _0x50ba99;},a34_0x3d8a(_0x9d3c49,_0x29ea80);}const a34_0x3bc1cb=a34_0x3d8a;(function(_0x510606,_0x25da71){const _0xe0f232=a34_0x3d8a,_0x3104c0=_0x510606();while(!![]){try{const _0x2835d6=parseInt(_0xe0f232(0x12f))/0x1+parseInt(_0xe0f232(0x15c))/0x2+-parseInt(_0xe0f232(0x10f))/0x3*(-parseInt(_0xe0f232(0x10a))/0x4)+-parseInt(_0xe0f232(0x133))/0x5+parseInt(_0xe0f232(0x161))/0x6*(parseInt(_0xe0f232(0x121))/0x7)+parseInt(_0xe0f232(0x12e))/0x8*(parseInt(_0xe0f232(0x160))/0x9)+-parseInt(_0xe0f232(0x149))/0xa;if(_0x2835d6===_0x25da71)break;else _0x3104c0['push'](_0x3104c0['shift']());}catch(_0x1786df){_0x3104c0['push'](_0x3104c0['shift']());}}}(a34_0x358d,0x1af01));const util=require(a34_0x3bc1cb(0x15d)),logger=require('../../helpers/logger')[a34_0x3bc1cb(0x102)],{isAccessibilityAutomationSession}=require(a34_0x3bc1cb(0x159)),{isUndefined}=require(a34_0x3bc1cb(0x12a)),scripts=require(a34_0x3bc1cb(0x14b));function a34_0x358d(){const _0x36c76e=['No\x20accessibility\x20results\x20were\x20found.','VhgDn','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','env','../../helpers/helper','stringify','project','format','731688BbKAAV','165318KnyCvz','YJOJI','fetyO','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','1102010JRBmPF','latest','mnBCQ','setAccessibilityCapabilities','accessibilityOptions.scannerProcessingTimeout','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','bestPractice','bTrza','evaluate','browserStackEvaluate','method','getAccessibilityResults','scannerProcessingTimeout','chrome','constructor','currentTest','Playwright','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','No\x20summaryResults\x20found.','clSCC','error','guIqE','3649540rYgGOf','ezizj','../../helpers/accessibility-automation/scripts','includeIssueType','bstackSdkArgs','FYwiw','accessibilityOptions','browserStackExecuteDriver','OQuKO','browser_version','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','testInfo','bEaRk','tTHpQ','performScan','kYyKg','../../helpers/accessibility-automation/helper','rXpuW','accessibilityPlatform','64020KPboBB','util','bNnbV','browserName','18Hmgaex','894gaDDcx','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Rnlgy','debug','playwright-chromium','workerInfo','warn','winstonLogger','needsReview','use','deviceName','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','accessibilityOptions.wcagVersion','EINjT','gOnXd','920AQxaAO','kcYvx','aIhUo','processAccessibilityCaps','name','1827fukFYM','fUMRJ','browser','browserstack.accessibility','WebDriver','RAKVH','nTUBH','connectOptions','executeScript','executeAsyncScript','TNOnr','Vhpcd','fwbqZ','CBbYI','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','wcagVersion','hoZPL','BS_A11Y_JWT','8239FIfuZR','(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','oNwHh','HzjQR','UXGUG'];a34_0x358d=function(){return _0x36c76e;};return a34_0x358d();}exports[a34_0x3bc1cb(0x13c)]=async(_0x4b5ecb,_0x47b2fb,_0x25cd19={})=>{const _0x349e1c=a34_0x3bc1cb,_0x54f8ae={};_0x54f8ae[_0x349e1c(0x130)]='bstackSdkArgs';const _0x2b668a=_0x54f8ae;return await _0x4b5ecb[_0x349e1c(0x13b)](_0x349e1c(0x122)+_0x47b2fb['replace'](/arguments/g,_0x2b668a['YJOJI'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x349e1c(0x12b)](_0x25cd19)+')');},exports[a34_0x3bc1cb(0x150)]=async(_0x230dd3,_0x56815a,_0x1d4df3={})=>{const _0x2b501d=a34_0x3bc1cb,_0x2d9e18={};_0x2d9e18[_0x2b501d(0x155)]=function(_0x4460ad,_0x5bc268){return _0x4460ad===_0x5bc268;},_0x2d9e18[_0x2b501d(0x131)]=_0x2b501d(0x113),_0x2d9e18['cKDoL']=function(_0x1e558e,_0x3f967e){return _0x1e558e===_0x3f967e;},_0x2d9e18['VhgDn']=_0x2b501d(0x143),_0x2d9e18[_0x2b501d(0x11c)]=_0x2b501d(0x14d);const _0xd734d4=_0x2d9e18;if(_0xd734d4[_0x2b501d(0x155)](_0x230dd3[_0x2b501d(0x141)][_0x2b501d(0x10e)],_0xd734d4[_0x2b501d(0x131)]))return await _0x230dd3[_0x2b501d(0x118)](_0x56815a,_0x1d4df3);else{if(_0xd734d4['cKDoL'](_0x230dd3[_0x2b501d(0x141)]['name'],_0xd734d4[_0x2b501d(0x127)]))return await _0x230dd3[_0x2b501d(0x117)](_0x2b501d(0x128)+_0x56815a['replace'](/arguments/g,_0xd734d4[_0x2b501d(0x11c)])+_0x2b501d(0x106)+JSON['stringify'](_0x1d4df3)+')');}},exports[a34_0x3bc1cb(0x136)]=async _0x4e2bc3=>{const _0x158e6e=a34_0x3bc1cb,_0x5b24f3={};_0x5b24f3[_0x158e6e(0x163)]=_0x158e6e(0x107),_0x5b24f3[_0x158e6e(0x156)]=_0x158e6e(0x137),_0x5b24f3[_0x158e6e(0x125)]='accessibilityOptions.includeIssueType.bestPractice',_0x5b24f3[_0x158e6e(0x14a)]='accessibilityOptions.includeIssueType.needsReview',_0x5b24f3['TNOnr']='accessibilityOptions.authToken',_0x5b24f3['APyeS']='accessibilityOptions.scannerVersion';const _0x58b05f=_0x5b24f3;_0x4e2bc3['accessibilityOptions']&&(_0x4e2bc3[_0x158e6e(0x14f)][_0x158e6e(0x11e)]&&(_0x4e2bc3[_0x58b05f[_0x158e6e(0x163)]]=_0x4e2bc3[_0x158e6e(0x14f)][_0x158e6e(0x11e)]),_0x4e2bc3['accessibilityOptions'][_0x158e6e(0x13f)]&&(_0x4e2bc3[_0x58b05f[_0x158e6e(0x156)]]=_0x4e2bc3[_0x158e6e(0x14f)][_0x158e6e(0x13f)]),_0x4e2bc3[_0x158e6e(0x14f)][_0x158e6e(0x14c)]&&(_0x4e2bc3[_0x58b05f[_0x158e6e(0x125)]]=_0x4e2bc3['accessibilityOptions'][_0x158e6e(0x14c)][_0x158e6e(0x139)],_0x4e2bc3[_0x58b05f[_0x158e6e(0x14a)]]=_0x4e2bc3[_0x158e6e(0x14f)]['includeIssueType'][_0x158e6e(0x103)]));const _0x218e8a=JSON['parse'](process[_0x158e6e(0x129)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])['scannerVersion'];_0x4e2bc3[_0x58b05f[_0x158e6e(0x119)]]=process[_0x158e6e(0x129)][_0x158e6e(0x120)],_0x4e2bc3[_0x58b05f['APyeS']]=_0x218e8a,delete _0x4e2bc3[_0x158e6e(0x14f)];},exports[a34_0x3bc1cb(0x13e)]=async _0x194ca8=>{const _0x4d1fa2=a34_0x3bc1cb,_0xd73de7={};_0xd73de7[_0x4d1fa2(0x148)]=_0x4d1fa2(0x126),_0xd73de7[_0x4d1fa2(0x11a)]=_0x4d1fa2(0x11d);const _0x53807b=_0xd73de7;if(global[_0x4d1fa2(0x15b)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x194ca8,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x194ca8,scripts.getResults);return res;}catch{return logger[_0x4d1fa2(0x147)](_0x53807b[_0x4d1fa2(0x148)]),[];}else return logger[_0x4d1fa2(0x101)](_0x53807b[_0x4d1fa2(0x11a)]),[];},exports[a34_0x3bc1cb(0x157)]=async(_0x5a9a99,_0x1a53a6='')=>{const _0x2e9363=a34_0x3bc1cb;if(global['accessibilityPlatform']){const _0x37d5c7={};return _0x37d5c7[_0x2e9363(0x13d)]=_0x1a53a6,await exports['browserStackEvaluate'](_0x5a9a99,scripts[_0x2e9363(0x157)],_0x37d5c7);}},exports['getAccessibilityResultsSummary']=async _0x3f2cf0=>{const _0x3a4d8d=a34_0x3bc1cb,_0x131007={};_0x131007[_0x3a4d8d(0x13a)]=_0x3a4d8d(0x145),_0x131007['fhXMx']='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x594284=_0x131007;if(global[_0x3a4d8d(0x15b)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3f2cf0,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x3f2cf0,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x3a4d8d(0x164)](_0x594284['bTrza']),{};}else return logger[_0x3a4d8d(0x101)](_0x594284['fhXMx']),{};},exports['platformValidation']=async _0x65d6b3=>{const _0x164546=a34_0x3bc1cb,_0x59cf3a={'EINjT':function(_0x293cea,_0x34ec02){return _0x293cea!==_0x34ec02;},'nWodc':_0x164546(0x138),'TwATz':function(_0x15e676,_0x254406){return _0x15e676===_0x254406;},'hoZPL':_0x164546(0x140),'clSCC':function(_0x137dd0,_0x5683c5){return _0x137dd0===_0x5683c5;},'oNwHh':_0x164546(0x165),'kYyKg':_0x164546(0x132),'gOnXd':function(_0x3b992b,_0x37261b){return _0x3b992b(_0x37261b);},'OQuKO':function(_0x568256,_0xb684a1){return _0x568256===_0xb684a1;},'mnBCQ':_0x164546(0x134),'xntKn':function(_0x5cd4b9,_0x491356){return _0x5cd4b9>_0x491356;},'kcYvx':_0x164546(0x162)};try{if(!_0x59cf3a[_0x164546(0x108)](_0x65d6b3[_0x164546(0x105)],''))return logger[_0x164546(0x101)](_0x59cf3a['nWodc']),![];const _0x47d909=_0x65d6b3[_0x164546(0x111)];if(!(_0x59cf3a['TwATz'](_0x47d909,_0x59cf3a[_0x164546(0x11f)])||_0x59cf3a[_0x164546(0x146)](_0x47d909,_0x59cf3a[_0x164546(0x123)])))return logger[_0x164546(0x101)](_0x59cf3a[_0x164546(0x158)]),![];const _0x2b748b=_0x59cf3a[_0x164546(0x109)](parseInt,_0x65d6b3[_0x164546(0x152)]);if(!(_0x59cf3a[_0x164546(0x151)](_0x2b748b,_0x59cf3a[_0x164546(0x135)])||_0x59cf3a['xntKn'](_0x2b748b,0x5e)))return logger[_0x164546(0x101)](_0x59cf3a[_0x164546(0x10b)]),![];}catch(_0x24c960){logger[_0x164546(0x164)](_0x164546(0x144)+util[_0x164546(0x12d)](_0x24c960));}return!![];},exports[a34_0x3bc1cb(0x10d)]=(_0x45ae60,_0x343270,_0x19a0c8)=>{const _0xba2bf3=a34_0x3bc1cb,_0x1fc666={'aIhUo':function(_0xcbb0c7){return _0xcbb0c7();},'fwbqZ':_0xba2bf3(0x112),'HzjQR':function(_0x578c53,_0x4b2053){return _0x578c53===_0x4b2053;},'KsZFr':'chrome','fUMRJ':_0xba2bf3(0x165),'aTZqP':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','bNnbV':'latest','FYwiw':function(_0x2d3dcc,_0x250b72){return _0x2d3dcc>_0x250b72;},'nTUBH':_0xba2bf3(0x162),'RAKVH':function(_0x3c9912,_0x29e020){return _0x3c9912(_0x29e020);},'srtJa':_0xba2bf3(0x138),'rXpuW':function(_0x5d6df5,_0x209b67){return _0x5d6df5+_0x209b67;},'GzMwr':function(_0x4c692e,_0x5063f9){return _0x4c692e(_0x5063f9);}};try{if(_0x1fc666[_0xba2bf3(0x10c)](isAccessibilityAutomationSession)){global[_0xba2bf3(0x15b)]=!![];!_0x45ae60[_0x1fc666[_0xba2bf3(0x11b)]]&&(global[_0xba2bf3(0x15b)]=![]);!(_0x1fc666[_0xba2bf3(0x124)](_0x45ae60[_0xba2bf3(0x15f)],_0x1fc666['KsZFr'])||_0x1fc666[_0xba2bf3(0x124)](_0x45ae60[_0xba2bf3(0x15f)],_0x1fc666[_0xba2bf3(0x110)]))&&(logger[_0xba2bf3(0x101)](_0x1fc666['aTZqP']),global[_0xba2bf3(0x15b)]=![]);!(_0x1fc666['HzjQR'](_0x45ae60[_0xba2bf3(0x152)],_0x1fc666[_0xba2bf3(0x15e)])||_0x1fc666[_0xba2bf3(0x14e)](_0x45ae60[_0xba2bf3(0x152)],0x5e))&&(logger['warn'](_0x1fc666[_0xba2bf3(0x115)]),global['accessibilityPlatform']=![]);!_0x1fc666[_0xba2bf3(0x114)](isUndefined,_0x45ae60['deviceName'])&&(logger[_0xba2bf3(0x101)](_0x1fc666['srtJa']),global['accessibilityPlatform']=![]);if(!global[_0xba2bf3(0x15b)]){_0x45ae60[_0x1fc666[_0xba2bf3(0x11b)]]=![];const _0x1e1ba0=_0x1fc666[_0xba2bf3(0x15a)](_0x343270,_0x1fc666['GzMwr'](encodeURIComponent,JSON['stringify'](_0x45ae60)));_0x19a0c8&&(_0x19a0c8[_0xba2bf3(0x142)][_0xba2bf3(0x154)][_0xba2bf3(0x12c)][_0xba2bf3(0x104)][_0xba2bf3(0x116)]['wsEndpoint']=_0x1e1ba0,_0x19a0c8[_0xba2bf3(0x100)][_0xba2bf3(0x12c)]['use']['connectOptions']['wsEndpoint']=_0x1e1ba0);}}}catch(_0x30bd9c){logger[_0xba2bf3(0x164)](_0xba2bf3(0x153)+util[_0xba2bf3(0x12d)](_0x30bd9c));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x40265a=a35_0x3a63;(function(_0x3ce7eb,_0x4b3283){const _0x464c42=a35_0x3a63,_0x438777=_0x3ce7eb();while(!![]){try{const _0x26af38=-parseInt(_0x464c42(0x86))/0x1+parseInt(_0x464c42(0xe9))/0x2*(-parseInt(_0x464c42(0xec))/0x3)+-parseInt(_0x464c42(0xe6))/0x4+parseInt(_0x464c42(0x7c))/0x5*(parseInt(_0x464c42(0xd9))/0x6)+-parseInt(_0x464c42(0xb0))/0x7*(-parseInt(_0x464c42(0xa1))/0x8)+-parseInt(_0x464c42(0xe0))/0x9*(parseInt(_0x464c42(0xfe))/0xa)+-parseInt(_0x464c42(0xe1))/0xb*(parseInt(_0x464c42(0xd7))/0xc);if(_0x26af38===_0x4b3283)break;else _0x438777['push'](_0x438777['shift']());}catch(_0x8e28f4){_0x438777['push'](_0x438777['shift']());}}}(a35_0x1c23,0x6ce69));function a35_0x3a63(_0x544cee,_0x3b4984){const _0x1c2301=a35_0x1c23();return a35_0x3a63=function(_0x3a63de,_0x1f0add){_0x3a63de=_0x3a63de-0x7a;let _0x3a04ec=_0x1c2301[_0x3a63de];return _0x3a04ec;},a35_0x3a63(_0x544cee,_0x3b4984);}const fs=require('fs'),path=require(a35_0x40265a(0x91)),{spawn}=require('child_process'),{format}=require(a35_0x40265a(0xa6)),logger=require('../../helpers/logger')[a35_0x40265a(0xe2)],{default:BrowserStackSetup}=require(a35_0x40265a(0x98)),helper=require(a35_0x40265a(0xda)),utilities=require(a35_0x40265a(0x85)),constants=require(a35_0x40265a(0xc7)),{FRAMEWORKS}=require(a35_0x40265a(0x9f)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x40265a(0xbe)),{CrashReporter}=require(a35_0x40265a(0x114)),{getFrameworkVersion}=require(a35_0x40265a(0xef)),{checkAccessibilityPlatformConfig}=require(a35_0x40265a(0x10c)),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),getUserPlaywrightConfig=async(_0x3bc4a4,_0x183d61)=>{const _0x39a729=a35_0x40265a,_0x4a2265={'NKdoa':function(_0x47e6c9){return _0x47e6c9();},'GVhHv':function(_0x3fb0eb,_0x3ca7e3){return _0x3fb0eb(_0x3ca7e3);},'SFLYq':'resolvedConfigFile','OxvvB':_0x39a729(0xe5)},_0x1f727d=!helper[_0x39a729(0xa3)](_0x3bc4a4['config']),_0x3b3857=_0x1f727d?path[_0x39a729(0xd3)](process['cwd'](),_0x3bc4a4[_0x39a729(0xac)]):process[_0x39a729(0x115)](),{resolveConfigFile:_0x1d8643,resolveConfigLocation:_0xb87ba6}=helper[_0x39a729(0xf6)][_0x39a729(0x96)](null,_0x4a2265['NKdoa'](getConfigLoaderPath)),_0x5b7ead=_0x1d8643?_0x4a2265[_0x39a729(0xc1)](_0x1d8643,_0x3b3857):helper[_0x39a729(0xfd)](_0x4a2265[_0x39a729(0xc1)](_0xb87ba6,_0x3b3857),[_0x4a2265[_0x39a729(0xbd)]]),_0x3cfae6={};if(_0x1f727d){const _0x3048d8=_0x183d61[_0x39a729(0xd5)](_0x318ee0=>_0x318ee0===_0x39a729(0xf3)||_0x318ee0==='-c'||_0x318ee0[_0x39a729(0xad)]('--config='));_0x183d61[_0x39a729(0xbf)](_0x3048d8,_0x183d61[_0x3048d8][_0x39a729(0xad)](_0x4a2265['OxvvB'])?0x1:0x2);}const _0x835cae={};return _0x835cae[_0x39a729(0x91)]=_0x5b7ead,_0x835cae[_0x39a729(0xac)]=_0x3cfae6,_0x835cae;},handleO11yRerun=_0x1fd59d=>{const _0x4fafbb=a35_0x40265a,_0x4530b3={};_0x4530b3[_0x4fafbb(0xbb)]=function(_0x27ae3f,_0x19644c){return _0x27ae3f!==_0x19644c;},_0x4530b3[_0x4fafbb(0xb5)]=_0x4fafbb(0x97),_0x4530b3[_0x4fafbb(0x10f)]=_0x4fafbb(0x118);const _0x34123f=_0x4530b3,_0x373315=helper[_0x4fafbb(0xb8)](process[_0x4fafbb(0xf0)][_0x4fafbb(0x110)]);if(_0x373315){const _0xdc856f=process[_0x4fafbb(0xf0)]['BROWSERSTACK_RERUN_TESTS'],_0x6eaf83=[];if(_0x34123f[_0x4fafbb(0xbb)](_0xdc856f,_0x34123f[_0x4fafbb(0xb5)])&&!helper[_0x4fafbb(0xa3)](_0xdc856f)){_0xdc856f[_0x4fafbb(0xf5)](',')[_0x4fafbb(0x108)](_0x1b687c=>{const _0x47720f=_0x4fafbb;_0x6eaf83[_0x47720f(0x113)]('('+_0x1b687c[_0x47720f(0xa0)]()+')');});const _0x3da92c='^'+_0x6eaf83[_0x4fafbb(0xa7)]('|')+'$';_0x1fd59d['push'](_0x34123f[_0x4fafbb(0x10f)],_0x3da92c);}}},spawnOriginalProcess=_0x4b43a0=>{const _0x4dc05f=a35_0x40265a,_0x452b13={'PWOjV':function(_0x4c7383,_0x1cc9e2,_0x44b222,_0x78fc98){return _0x4c7383(_0x1cc9e2,_0x44b222,_0x78fc98);},'zKnUF':_0x4dc05f(0xdb),'OgqKC':_0x4dc05f(0x8a),'HKdEB':function(_0x4fae81,_0x50fe22){return _0x4fae81===_0x50fe22;},'xxSak':_0x4dc05f(0xb3),'UWeCW':_0x4dc05f(0xd6)};_0x452b13[_0x4dc05f(0xc8)](spawn,_0x452b13[_0x4dc05f(0x8e)],[_0x452b13['OgqKC'],..._0x4b43a0['slice'](0x1)],{'shell':_0x452b13[_0x4dc05f(0xaf)](process[_0x4dc05f(0xc5)],_0x452b13[_0x4dc05f(0xfc)]),'stdio':_0x452b13[_0x4dc05f(0xdf)],'cwd':process[_0x4dc05f(0x115)]()});},isTestCommand=(_0x566786,_0x4abf2a)=>{const _0x91fdad=a35_0x40265a,_0x2d31af={};_0x2d31af[_0x91fdad(0xe8)]=function(_0x718a85,_0x4588c3){return _0x718a85>_0x4588c3;},_0x2d31af[_0x91fdad(0xde)]=function(_0x587194,_0x2032b6){return _0x587194===_0x2032b6;},_0x2d31af[_0x91fdad(0x99)]=_0x91fdad(0x106);const _0x2a403f=_0x2d31af;if(_0x2a403f[_0x91fdad(0xe8)](_0x4abf2a['length'],0x1)&&_0x2a403f['EdqnR'](_0x4abf2a[0x1],_0x2a403f[_0x91fdad(0x99)]))return!![];return![];};async function run(_0x2d14f2,_0x4f5b00){const _0x461543=a35_0x40265a,_0x416adc={'YlIeY':_0x461543(0x7d),'CYTPF':'pw_result.json','BdVXv':function(_0xa91e9,_0x9e07b6){return _0xa91e9+_0x9e07b6;},'JUPZb':_0x461543(0x9e),'DVxDr':_0x461543(0xc3),'IKxhh':function(_0x2aa652){return _0x2aa652();},'PwIJC':function(_0x4f22a3,_0x2ab855){return _0x4f22a3+_0x2ab855;},'NNXJa':_0x461543(0xa9),'UvjEe':_0x461543(0xab),'FQmaP':'false','YFdQU':_0x461543(0xd0),'ddOok':function(_0x208e58,_0x1ea8ae){return _0x208e58>=_0x1ea8ae;},'DrsSd':_0x461543(0xcb),'uOVtd':function(_0x2df5e0,_0xcf72ad,_0x25e851){return _0x2df5e0(_0xcf72ad,_0x25e851);},'Igktz':function(_0x2f9203,_0x4f597b){return _0x2f9203(_0x4f597b);},'EnenN':_0x461543(0xb9),'UsMBb':_0x461543(0x103),'zMFHg':function(_0x73cb8f,_0x8a9351){return _0x73cb8f!=_0x8a9351;},'riaVc':function(_0x180484,_0x45c9be,_0x3079e9){return _0x180484(_0x45c9be,_0x3079e9);},'eQVyM':function(_0x57770f,_0x19d269){return _0x57770f(_0x19d269);},'NqjwD':function(_0xa6f09a,_0x241e70){return _0xa6f09a===_0x241e70;},'WETVa':_0x461543(0x101),'eCLUI':function(_0x233c70,_0x77c081){return _0x233c70(_0x77c081);},'zYmpc':_0x461543(0x93),'hEZoG':_0x461543(0xb2),'ZihvL':_0x461543(0x7a),'SNrmI':function(_0x5ba584,_0x4855d6){return _0x5ba584-_0x4855d6;},'BrIWr':_0x461543(0xc2),'EPlfR':function(_0x49674f,_0x53b590){return _0x49674f>_0x53b590;},'acNbR':function(_0x49e9c2,_0x11b527){return _0x49e9c2+_0x11b527;},'aaiLs':function(_0x5371de,_0x46fb6f,_0x438bfd,_0x47fe6e){return _0x5371de(_0x46fb6f,_0x438bfd,_0x47fe6e);},'odPwX':_0x461543(0xdb),'fKqDv':_0x461543(0x8a),'BAVxm':_0x461543(0x106),'xHxZK':'--config','KFLKF':_0x461543(0xb3),'MiBNv':'inherit','cHctB':_0x461543(0xc6)};!helper['isFalse'](process['env'][_0x461543(0x112)])&&(process['env'][_0x461543(0x112)]=!![]);process[_0x461543(0x80)][_0x461543(0x111)](_0x416adc[_0x461543(0xa5)])&&(process[_0x461543(0xf0)]['BROWSERSTACK_AUTOMATION']=_0x416adc['FQmaP'],_0x4f5b00=_0x4f5b00['filter'](_0x2e3bc3=>_0x2e3bc3!==_0x461543(0xab)));const _0x471c66=_0x4f5b00[_0x461543(0x9c)](_0x416adc[_0x461543(0xce)]);_0x416adc[_0x461543(0x90)](_0x471c66,0x0)&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=_0x416adc[_0x461543(0x7b)],_0x4f5b00=_0x4f5b00[_0x461543(0xb1)](_0xff5818=>_0xff5818!=='--disable-test-observability'));try{const _0x1c174d=path[_0x461543(0xa7)](helper['homedir'](),_0x416adc['YlIeY'],_0x416adc['CYTPF']);fs[_0x461543(0xc0)](_0x1c174d)&&fs[_0x461543(0xe3)](_0x1c174d);}catch(_0x195f47){logger[_0x461543(0xae)](_0x416adc[_0x461543(0xf4)](_0x416adc[_0x461543(0x82)],_0x195f47));}if(!_0x416adc[_0x461543(0xe7)](isTestCommand,_0x2d14f2,_0x4f5b00)){_0x416adc['Igktz'](spawnOriginalProcess,_0x4f5b00);return;}const _0x40e31f=new BrowserStackSetup(_0x2d14f2,FRAMEWORKS[_0x461543(0x7e)]);if(!_0x40e31f[_0x461543(0xac)]){logger[_0x461543(0xaa)](_0x416adc[_0x461543(0xb6)]);return;}await _0x40e31f['initialize']();!helper['isUndefined'](_0x40e31f[_0x461543(0xf8)])&&_0x40e31f[_0x461543(0xf8)]['has'](_0x416adc[_0x461543(0x8f)])&&(process[_0x461543(0xf0)][_0x461543(0x112)]=_0x40e31f[_0x461543(0xf8)][_0x461543(0x116)](_0x416adc[_0x461543(0x8f)])||!![]);_0x416adc[_0x461543(0xb4)](_0x40e31f[_0x461543(0xac)][_0x461543(0x10b)],null)&&!helper[_0x461543(0xb8)](process[_0x461543(0xf0)][_0x461543(0x102)])&&(process[_0x461543(0xf0)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x461543(0xf0)][_0x461543(0x102)]||_0x40e31f[_0x461543(0xac)]['testObservability']);const _0xb06948=!helper[_0x461543(0xbc)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x497407=![];_0x40e31f[_0x461543(0xac)][_0x461543(0x81)]&&(_0x497407=!![],process[_0x461543(0xf0)][_0x461543(0x10e)]=_0x40e31f['config'][_0x461543(0x81)]);_0x40e31f['config'][_0x461543(0x10a)]&&(process[_0x461543(0xf0)][_0x461543(0xe4)]=JSON[_0x461543(0xff)](_0x40e31f[_0x461543(0xac)]['accessibilityOptions']));const _0x181d9d=_0x4f5b00[_0x461543(0x89)](),_0x5a5cbe=await _0x416adc[_0x461543(0x8c)](getUserPlaywrightConfig,_0x2d14f2,_0x4f5b00);if(helper[_0x461543(0xa3)](_0x5a5cbe)){_0x416adc[_0x461543(0xea)](spawnOriginalProcess,_0x181d9d);return;}const _0xa1ec=_0x5a5cbe[_0x461543(0x91)]?path[_0x461543(0xfa)](_0x5a5cbe[_0x461543(0x91)]):process['cwd']();process['env']['BROWSERSTACK_PW_CONFIG_DIR']=_0xa1ec,await TestHubHandler[_0x461543(0xcc)](FRAMEWORKS[_0x461543(0x7e)],_0x40e31f);_0xb06948&&_0x416adc['Igktz'](handleO11yRerun,_0x4f5b00);let _0x3fdaff=_0x416adc['NqjwD'](process['env'][_0x461543(0x10e)],_0x416adc[_0x461543(0x109)]);_0x3fdaff=_0x3fdaff||_0x416adc['Igktz'](checkAccessibilityPlatformConfig,_0x40e31f[_0x461543(0xac)]),process[_0x461543(0xf0)][_0x461543(0x10e)]=_0x3fdaff;_0x3fdaff&&_0x416adc[_0x461543(0x87)](setAccessibilityCapabilities,_0x40e31f['config']);const _0x210e19=path[_0x461543(0xa7)](_0x5a5cbe[_0x461543(0x91)]?path['dirname'](_0x5a5cbe[_0x461543(0x91)]):process[_0x461543(0x115)](),_0x416adc[_0x461543(0xf9)]);fs[_0x461543(0xfb)](_0x210e19,helper[_0x461543(0x105)](_0x40e31f['config'])),process['env'][_0x461543(0xa4)]=_0x210e19,helper[_0x461543(0xb7)]();let _0x129027='';_0x416adc[_0x461543(0xc9)](helper[_0x461543(0x92)](),constants[_0x461543(0x88)]['MODULE'])?_0x129027=_0x416adc['hEZoG']:_0x129027=_0x416adc[_0x461543(0xca)];let _0x37f291='';if(helper['isTypescriptProject'](_0x5a5cbe[_0x461543(0x91)])){_0x37f291='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x2b38e6=_0x129027['split']('.');_0x2b38e6[_0x416adc[_0x461543(0xd1)](_0x2b38e6[_0x461543(0x9b)],0x1)]='ts',_0x129027=_0x2b38e6[_0x461543(0xa7)]('.'),logger[_0x461543(0xae)](_0x416adc['BdVXv'](_0x416adc[_0x461543(0xcd)],_0x129027));}else _0x37f291=_0x461543(0xa8);const _0x2ffe9a=path[_0x461543(0xa7)](_0x5a5cbe[_0x461543(0x91)]?path['dirname'](_0x5a5cbe[_0x461543(0x91)]):process['cwd'](),_0x129027);let _0x88d7d9=_0x5a5cbe['path']?_0x5a5cbe['path']:'';_0x88d7d9=_0x416adc[_0x461543(0xee)](_0x88d7d9[_0x461543(0x9b)],0x0)?path['resolve'](_0x88d7d9):'',process[_0x461543(0xf0)]['USER_CONFIG_DETAILS_PATH']=_0x88d7d9;const _0x43185b=helper[_0x461543(0xdc)](_0x40e31f[_0x461543(0xac)]);_0x43185b&&(_0x37f291=_0x416adc['acNbR'](_0x461543(0x107)+_0x43185b+'\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();',_0x37f291));helper[_0x461543(0xed)]({},_0x4f5b00),fs[_0x461543(0xfb)](_0x2ffe9a,_0x37f291),helper[_0x461543(0xcf)]();const _0x384a45=_0x416adc[_0x461543(0x8b)](spawn,_0x416adc[_0x461543(0xeb)],[_0x416adc[_0x461543(0xba)],_0x416adc['BAVxm'],_0x416adc[_0x461543(0x100)],_0x2ffe9a,..._0x4f5b00['slice'](0x2)],{'shell':_0x416adc[_0x461543(0xc9)](process[_0x461543(0xc5)],_0x416adc[_0x461543(0xdd)]),'stdio':_0x416adc[_0x461543(0xf1)],'cwd':process[_0x461543(0x115)](),'env':Object[_0x461543(0x104)]({},process[_0x461543(0xf0)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x461543(0x94)](_0x2d14f2),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x40e31f[_0x461543(0xac)]['testContextOptions'][_0x461543(0xd8)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x40e31f[_0x461543(0xac)][_0x461543(0x9d)][_0x461543(0xd2)],'BROWSERSTACK_LOG_LEVEL':_0x40e31f['config'][_0x461543(0xa2)]})}),_0x5f034e=()=>{const _0x13dd14=_0x461543;try{const _0x1a574c=path[_0x13dd14(0xa7)](helper['homedir'](),_0x416adc['YlIeY'],_0x416adc['CYTPF']);if(fs[_0x13dd14(0xc0)](_0x1a574c)){let _0x2e2c1b=fs['readFileSync'](_0x1a574c);_0x2e2c1b=JSON[_0x13dd14(0xf7)](_0x2e2c1b),_0x40e31f['errorMessage']=_0x2e2c1b,fs[_0x13dd14(0xe3)](_0x1a574c);}}catch(_0x19d7ad){logger[_0x13dd14(0xae)](_0x416adc[_0x13dd14(0xf4)](_0x416adc[_0x13dd14(0x84)],_0x19d7ad));}};_0x384a45['on'](_0x416adc[_0x461543(0x95)],async _0x21b7f4=>{const _0x9e2685=_0x461543;try{const _0x4d75f2=_0x416adc[_0x9e2685(0x8d)][_0x9e2685(0xf5)]('|');let _0x1b54d4=0x0;while(!![]){switch(_0x4d75f2[_0x1b54d4++]){case'0':_0x416adc[_0x9e2685(0xf2)](_0x5f034e);continue;case'1':logger[_0x9e2685(0xae)](_0x9e2685(0xc4)+_0x21b7f4);continue;case'2':fs[_0x9e2685(0xe3)](_0x2ffe9a);continue;case'3':logger[_0x9e2685(0xae)]('Deleting\x20'+_0x210e19);continue;case'4':logger[_0x9e2685(0x83)]('Deleting\x20'+_0x2ffe9a);continue;case'5':process[_0x9e2685(0x9a)]=_0x21b7f4;continue;case'6':fs[_0x9e2685(0xe3)](_0x210e19);continue;case'7':await utilities[_0x9e2685(0x7f)](_0x40e31f);continue;case'8':await TestHubHandler[_0x9e2685(0x10d)]();continue;}break;}}catch(_0x384a12){logger[_0x9e2685(0xae)](_0x416adc[_0x9e2685(0x117)](_0x416adc[_0x9e2685(0xd4)],_0x384a12));}});}function a35_0x1c23(){const _0x1d67c5=['BROWSERSTACK_AUTOMATION','push','../../helpers/test-observability/error-handler','cwd','get','PwIJC','--grep','playwright-browserstack-sdk.config.js','FQmaP','3935335CEhCCv','.browserstack','PLAYWRIGHT','finalExecution','argv','accessibility','DrsSd','info','JUPZb','../../helpers/utilities','69929rzJkoy','eCLUI','PACKAGE_TYPE','concat','playwright','aaiLs','riaVc','DVxDr','zKnUF','UsMBb','ddOok','path','getPackageType','browserstackSetupConfig.json','getConfigPath','cHctB','apply','null','../../helpers/BrowserStackSetup','RfdZO','exitCode','length','indexOf','testContextOptions','Error\x20in\x20getting\x20funnel\x20data\x20results','../../helpers/test-observability/constants','trim','972464tITOXY','logLevel','isUndefined','BROWSERSTACK_SETUP_CONFIG_PATH','UvjEe','util','join','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','Error\x20in\x20closing\x20playwright','error','--disable-browserstack-automation','config','startsWith','debug','HKdEB','42vJlqes','filter','playwright-browserstack-sdk.config.cjs','win32','zMFHg','BNqNv','EnenN','clearTempPWConfig','isTrue','BrowserStack\x20config\x20file\x20not\x20found.','fKqDv','SffPZ','isFalse','SFLYq','./reporter/pwUtils','splice','existsSync','GVhHv','Updated\x20config\x20file\x20name\x20to\x20-\x20','0|8|7|5|1|4|2|3|6','Playwright\x20process\x20exited\x20with\x20code\x20','platform','close','../utils/constants','PWOjV','NqjwD','ZihvL','Error\x20in\x20deleting\x20playwright\x20results','launchBuild','BrIWr','YFdQU','markSDKSetupComplete','--disable-test-observability','SNrmI','skipSessionName','resolve','NNXJa','findIndex','inherit','3192yvMVLe','skipSessionStatus','6JdLrVE','../../helpers/helper','npx','getProxyUrl','KFLKF','EdqnR','UWeCW','81QVaOCI','2101skffeA','winstonLogger','unlinkSync','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','--config=','928536WTCgRL','uOVtd','FZtZr','10118ioyDOk','eQVyM','odPwX','162RsCRDw','filterBrowserstackArgs','EPlfR','../../helpers/test-observability/utils','env','MiBNv','IKxhh','--config','BdVXv','split','requirePWModule','parse','cliConfig','zYmpc','dirname','writeFileSync','xxSak','nestedKeyValue','493670fcGENz','stringify','xHxZK','true','BROWSERSTACK_TEST_OBSERVABILITY','automation','assign','serializeToYamlString','test','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','map','WETVa','accessibilityOptions','testObservability','../../helpers/accessibility-automation/helper','stop','BROWSERSTACK_TEST_ACCESSIBILITY_YML','djhnU','BROWSERSTACK_RERUN','includes'];a35_0x1c23=function(){return _0x1d67c5;};return a35_0x1c23();}module['exports']=run;
|
|
2
|
+
'use strict';const a35_0x112c4f=a35_0x3fc4;(function(_0x22ce29,_0x58ebe2){const _0x2acd7d=a35_0x3fc4,_0x5b4aea=_0x22ce29();while(!![]){try{const _0x4015d8=-parseInt(_0x2acd7d(0xee))/0x1*(-parseInt(_0x2acd7d(0xc0))/0x2)+-parseInt(_0x2acd7d(0xfe))/0x3*(parseInt(_0x2acd7d(0xa5))/0x4)+parseInt(_0x2acd7d(0xe1))/0x5+-parseInt(_0x2acd7d(0xdd))/0x6+parseInt(_0x2acd7d(0xd9))/0x7+-parseInt(_0x2acd7d(0x85))/0x8*(-parseInt(_0x2acd7d(0xd6))/0x9)+parseInt(_0x2acd7d(0x97))/0xa*(parseInt(_0x2acd7d(0xc8))/0xb);if(_0x4015d8===_0x58ebe2)break;else _0x5b4aea['push'](_0x5b4aea['shift']());}catch(_0x17b2fe){_0x5b4aea['push'](_0x5b4aea['shift']());}}}(a35_0x241a,0x5a66f));function a35_0x3fc4(_0x169c69,_0x5beda7){const _0x241a89=a35_0x241a();return a35_0x3fc4=function(_0x3fc46b,_0x5c1da1){_0x3fc46b=_0x3fc46b-0x6e;let _0x2dd86e=_0x241a89[_0x3fc46b];return _0x2dd86e;},a35_0x3fc4(_0x169c69,_0x5beda7);}const fs=require('fs'),path=require(a35_0x112c4f(0x78)),{spawn}=require(a35_0x112c4f(0xb7)),{format}=require(a35_0x112c4f(0x96)),logger=require(a35_0x112c4f(0xbb))['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x112c4f(0x8f)),helper=require('../../helpers/helper'),utilities=require(a35_0x112c4f(0xf0)),constants=require('../utils/constants'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require(a35_0x112c4f(0xa4)),{getFrameworkVersion}=require(a35_0x112c4f(0x10a)),{checkAccessibilityPlatformConfig}=require(a35_0x112c4f(0x8b)),{setAccessibilityCapabilities}=require(a35_0x112c4f(0x7e)),TestHubHandler=require(a35_0x112c4f(0x10c)),{shouldProcessEventForTesthub}=require(a35_0x112c4f(0x77)),getUserPlaywrightConfig=async(_0xdc3540,_0x4a4a68)=>{const _0x1d3bbd=a35_0x112c4f,_0x332cbc={'mRFjN':function(_0x2871f8){return _0x2871f8();},'tPvIf':function(_0x4f290f,_0x2de312){return _0x4f290f(_0x2de312);},'HOQAp':_0x1d3bbd(0xcc),'Jlfoi':_0x1d3bbd(0xaa)},_0x4418f7=!helper[_0x1d3bbd(0x100)](_0xdc3540[_0x1d3bbd(0x99)]),_0x5d4083=_0x4418f7?path['resolve'](process[_0x1d3bbd(0xb8)](),_0xdc3540['config']):process['cwd'](),{resolveConfigFile:_0x283e89,resolveConfigLocation:_0x3c3c00}=helper[_0x1d3bbd(0xe9)][_0x1d3bbd(0xf2)](null,_0x332cbc[_0x1d3bbd(0xa6)](getConfigLoaderPath)),_0x2a2be1=_0x283e89?_0x332cbc['tPvIf'](_0x283e89,_0x5d4083):helper['nestedKeyValue'](_0x332cbc[_0x1d3bbd(0x73)](_0x3c3c00,_0x5d4083),[_0x332cbc['HOQAp']]),_0x27caf6={};if(_0x4418f7){const _0x444eb7=_0x4a4a68[_0x1d3bbd(0xac)](_0xa06244=>_0xa06244===_0x1d3bbd(0x86)||_0xa06244==='-c'||_0xa06244[_0x1d3bbd(0x103)](_0x1d3bbd(0xaa)));_0x4a4a68[_0x1d3bbd(0xf1)](_0x444eb7,_0x4a4a68[_0x444eb7][_0x1d3bbd(0x103)](_0x332cbc['Jlfoi'])?0x1:0x2);}const _0x359319={};return _0x359319['path']=_0x2a2be1,_0x359319[_0x1d3bbd(0x99)]=_0x27caf6,_0x359319;},handleO11yRerun=_0x4ed141=>{const _0x2136c3=a35_0x112c4f,_0x5c6cb4={};_0x5c6cb4['CFXBW']=function(_0x222305,_0x42069e){return _0x222305!==_0x42069e;},_0x5c6cb4['yNQxE']=_0x2136c3(0x10b),_0x5c6cb4[_0x2136c3(0xfa)]=_0x2136c3(0x71);const _0x360364=_0x5c6cb4,_0x10f186=helper[_0x2136c3(0x6f)](process[_0x2136c3(0x80)][_0x2136c3(0xc1)]);if(_0x10f186){const _0x37e4d8=process[_0x2136c3(0x80)][_0x2136c3(0xda)],_0x4d4076=[];if(_0x360364[_0x2136c3(0xa8)](_0x37e4d8,_0x360364[_0x2136c3(0x94)])&&!helper[_0x2136c3(0x100)](_0x37e4d8)){_0x37e4d8[_0x2136c3(0xff)](',')[_0x2136c3(0xe0)](_0x28f7ca=>{const _0x474784=_0x2136c3;_0x4d4076[_0x474784(0xe6)]('('+_0x28f7ca[_0x474784(0x92)]()+')');});const _0x5d30d3='^'+_0x4d4076['join']('|')+'$';_0x4ed141['push'](_0x360364[_0x2136c3(0xfa)],_0x5d30d3);}}},spawnOriginalProcess=_0x51abac=>{const _0x48507d=a35_0x112c4f,_0x481ec8={'UBudH':function(_0x199850,_0x25c24a,_0x2e3dd9,_0x483611){return _0x199850(_0x25c24a,_0x2e3dd9,_0x483611);},'aElmh':_0x48507d(0xdb),'hESJJ':_0x48507d(0xca),'YijFf':function(_0x282662,_0x98af43){return _0x282662===_0x98af43;},'NPLjD':'win32','rnaEr':_0x48507d(0x9d)};_0x481ec8[_0x48507d(0xa3)](spawn,_0x481ec8[_0x48507d(0x101)],[_0x481ec8[_0x48507d(0xa9)],..._0x51abac[_0x48507d(0xae)](0x1)],{'shell':_0x481ec8['YijFf'](process[_0x48507d(0xb1)],_0x481ec8[_0x48507d(0xe3)]),'stdio':_0x481ec8[_0x48507d(0xef)],'cwd':process[_0x48507d(0xb8)]()});},isTestCommand=(_0x499367,_0x5a071b)=>{const _0x38909d=a35_0x112c4f,_0x500fdc={};_0x500fdc[_0x38909d(0x109)]=function(_0xb2fec3,_0xc7a5fe){return _0xb2fec3>_0xc7a5fe;},_0x500fdc[_0x38909d(0x95)]=function(_0x39a423,_0x101498){return _0x39a423===_0x101498;},_0x500fdc[_0x38909d(0xf3)]=_0x38909d(0x7a);const _0x3b24d0=_0x500fdc;if(_0x3b24d0[_0x38909d(0x109)](_0x5a071b['length'],0x1)&&_0x3b24d0[_0x38909d(0x95)](_0x5a071b[0x1],_0x3b24d0[_0x38909d(0xf3)]))return!![];return![];};async function run(_0x5bfe9c,_0xb4ff44){const _0x5dd3f1=a35_0x112c4f,_0x26b128={'LAULT':_0x5dd3f1(0xa2),'yBRvl':_0x5dd3f1(0xbf),'lIenC':function(_0x3e29b6,_0x3c4d9e){return _0x3e29b6+_0x3c4d9e;},'zwTmP':_0x5dd3f1(0xf6),'MKzyh':_0x5dd3f1(0xcb),'MDQZn':function(_0x36eefe){return _0x36eefe();},'vYqDK':_0x5dd3f1(0xbe),'QCIkm':_0x5dd3f1(0xc9),'XKSeo':_0x5dd3f1(0xeb),'TNNJG':_0x5dd3f1(0x9e),'eADDd':function(_0x41f524,_0x4db8ec){return _0x41f524>=_0x4db8ec;},'XGQJb':_0x5dd3f1(0xbd),'KOMFp':function(_0x16a0b4,_0xbb1f38,_0x3a1eb5){return _0x16a0b4(_0xbb1f38,_0x3a1eb5);},'kRrFX':function(_0x395508,_0x2733f5){return _0x395508(_0x2733f5);},'weGPB':_0x5dd3f1(0xb4),'ANiQq':_0x5dd3f1(0x10d),'LHWQG':function(_0x3c5b70,_0x24d9e3){return _0x3c5b70!=_0x24d9e3;},'IYPwR':function(_0xe02aec,_0x199a51){return _0xe02aec(_0x199a51);},'gbhjQ':function(_0x4b605c,_0x1c08ae){return _0x4b605c===_0x1c08ae;},'AdthX':_0x5dd3f1(0xad),'ibFPd':function(_0x534f01,_0x1b5cd3){return _0x534f01(_0x1b5cd3);},'yjgzg':_0x5dd3f1(0xab),'dEeXk':function(_0x278b06,_0x500ed4){return _0x278b06===_0x500ed4;},'QWyjS':_0x5dd3f1(0xc6),'eDekl':_0x5dd3f1(0xf7),'qiLts':function(_0x3746e0,_0x89a822){return _0x3746e0-_0x89a822;},'dRUJZ':'Updated\x20config\x20file\x20name\x20to\x20-\x20','KEaNw':function(_0xb611dd,_0x3e445f){return _0xb611dd>_0x3e445f;},'izLNl':function(_0x34ab7f,_0x327550,_0x368d70,_0x282de7){return _0x34ab7f(_0x327550,_0x368d70,_0x282de7);},'fYzhT':_0x5dd3f1(0xdb),'omkaF':_0x5dd3f1(0xca),'PYcGC':_0x5dd3f1(0x7a),'QsCim':_0x5dd3f1(0x86),'SroVm':'win32','NtJet':_0x5dd3f1(0x9d),'oEDJL':'close'};!helper['isFalse'](process[_0x5dd3f1(0x80)][_0x5dd3f1(0x74)])&&(process[_0x5dd3f1(0x80)][_0x5dd3f1(0x74)]=!![]);process[_0x5dd3f1(0xe8)]['includes'](_0x26b128[_0x5dd3f1(0xb2)])&&(process[_0x5dd3f1(0x80)]['BROWSERSTACK_AUTOMATION']=_0x26b128['XKSeo'],_0xb4ff44=_0xb4ff44[_0x5dd3f1(0xf9)](_0x5997c9=>_0x5997c9!==_0x5dd3f1(0xc9)));const _0x2394b9=_0xb4ff44[_0x5dd3f1(0xaf)](_0x26b128['TNNJG']);_0x26b128[_0x5dd3f1(0x8c)](_0x2394b9,0x0)&&(process['env'][_0x5dd3f1(0x9c)]=_0x26b128[_0x5dd3f1(0xb0)],_0xb4ff44=_0xb4ff44['filter'](_0x127d82=>_0x127d82!==_0x5dd3f1(0x9e)));try{const _0x3cce3a=path[_0x5dd3f1(0xd3)](helper['homedir'](),_0x26b128['LAULT'],_0x26b128[_0x5dd3f1(0x98)]);fs['existsSync'](_0x3cce3a)&&fs[_0x5dd3f1(0xc5)](_0x3cce3a);}catch(_0x2735c3){logger['debug'](_0x26b128[_0x5dd3f1(0xec)](_0x26b128['XGQJb'],_0x2735c3));}if(!_0x26b128[_0x5dd3f1(0xb9)](isTestCommand,_0x5bfe9c,_0xb4ff44)){_0x26b128['kRrFX'](spawnOriginalProcess,_0xb4ff44);return;}const _0x55274c=new BrowserStackSetup(_0x5bfe9c,FRAMEWORKS[_0x5dd3f1(0x9f)]);if(!_0x55274c['config']){logger['error'](_0x26b128[_0x5dd3f1(0x83)]);return;}await _0x55274c[_0x5dd3f1(0xd2)]();!helper['isUndefined'](_0x55274c[_0x5dd3f1(0xd4)])&&_0x55274c[_0x5dd3f1(0xd4)][_0x5dd3f1(0xa1)](_0x26b128['ANiQq'])&&(process[_0x5dd3f1(0x80)][_0x5dd3f1(0x74)]=_0x55274c['cliConfig'][_0x5dd3f1(0x107)](_0x26b128[_0x5dd3f1(0xc4)])||!![]);_0x26b128[_0x5dd3f1(0x108)](_0x55274c['config'][_0x5dd3f1(0xe7)],null)&&!helper[_0x5dd3f1(0x6f)](process['env'][_0x5dd3f1(0x9c)])&&(process[_0x5dd3f1(0x80)][_0x5dd3f1(0x9c)]=process[_0x5dd3f1(0x80)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x55274c['config'][_0x5dd3f1(0xe7)]);const _0xd30f05=!helper['isFalse'](process[_0x5dd3f1(0x80)][_0x5dd3f1(0x9c)]);let _0x3f29e0=![];_0x55274c['config'][_0x5dd3f1(0x8e)]&&(_0x3f29e0=!![],process[_0x5dd3f1(0x80)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x55274c['config'][_0x5dd3f1(0x8e)]);_0x55274c[_0x5dd3f1(0x99)][_0x5dd3f1(0x89)]&&(process[_0x5dd3f1(0x80)][_0x5dd3f1(0x6e)]=JSON[_0x5dd3f1(0x76)](_0x55274c['config'][_0x5dd3f1(0x89)]));const _0x507609=_0xb4ff44['concat'](),_0x49f611=await _0x26b128[_0x5dd3f1(0xb9)](getUserPlaywrightConfig,_0x5bfe9c,_0xb4ff44);if(helper[_0x5dd3f1(0x100)](_0x49f611)){_0x26b128[_0x5dd3f1(0xd1)](spawnOriginalProcess,_0x507609);return;}const _0x3689c4=_0x49f611[_0x5dd3f1(0x78)]?path[_0x5dd3f1(0x104)](_0x49f611[_0x5dd3f1(0x78)]):process[_0x5dd3f1(0xb8)]();process[_0x5dd3f1(0x80)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x3689c4,await TestHubHandler[_0x5dd3f1(0xed)](FRAMEWORKS['PLAYWRIGHT'],_0x55274c);_0xd30f05&&_0x26b128[_0x5dd3f1(0xd1)](handleO11yRerun,_0xb4ff44);let _0x475284=_0x26b128[_0x5dd3f1(0x72)](process[_0x5dd3f1(0x80)][_0x5dd3f1(0xc7)],_0x26b128[_0x5dd3f1(0xea)]);_0x475284=_0x475284||_0x26b128['ibFPd'](checkAccessibilityPlatformConfig,_0x55274c[_0x5dd3f1(0x99)]),process[_0x5dd3f1(0x80)][_0x5dd3f1(0xc7)]=_0x475284;_0x475284&&_0x26b128[_0x5dd3f1(0xf5)](setAccessibilityCapabilities,_0x55274c['config']);const _0x22fe05=path[_0x5dd3f1(0xd3)](_0x49f611[_0x5dd3f1(0x78)]?path[_0x5dd3f1(0x104)](_0x49f611['path']):process[_0x5dd3f1(0xb8)](),_0x26b128[_0x5dd3f1(0xdf)]);fs['writeFileSync'](_0x22fe05,helper[_0x5dd3f1(0x9b)](_0x55274c[_0x5dd3f1(0x99)])),process[_0x5dd3f1(0x80)][_0x5dd3f1(0x70)]=_0x22fe05,helper[_0x5dd3f1(0xfd)]();let _0x41ca5e='';_0x26b128[_0x5dd3f1(0x105)](helper['getPackageType'](),constants[_0x5dd3f1(0x75)][_0x5dd3f1(0xbc)])?_0x41ca5e=_0x26b128['QWyjS']:_0x41ca5e=_0x26b128[_0x5dd3f1(0x8d)];let _0x5d5a4f='';if(helper[_0x5dd3f1(0xd7)](_0x49f611[_0x5dd3f1(0x78)])){_0x5d5a4f=_0x5dd3f1(0xfb);const _0x205d88=_0x41ca5e[_0x5dd3f1(0xff)]('.');_0x205d88[_0x26b128[_0x5dd3f1(0xce)](_0x205d88['length'],0x1)]='ts',_0x41ca5e=_0x205d88['join']('.'),logger[_0x5dd3f1(0x106)](_0x26b128[_0x5dd3f1(0xec)](_0x26b128[_0x5dd3f1(0xfc)],_0x41ca5e));}else _0x5d5a4f=_0x5dd3f1(0x82);const _0x2d956b=path[_0x5dd3f1(0xd3)](_0x49f611['path']?path[_0x5dd3f1(0x104)](_0x49f611[_0x5dd3f1(0x78)]):process[_0x5dd3f1(0xb8)](),_0x41ca5e);let _0x588c4b=_0x49f611[_0x5dd3f1(0x78)]?_0x49f611[_0x5dd3f1(0x78)]:'';_0x588c4b=_0x26b128[_0x5dd3f1(0x90)](_0x588c4b[_0x5dd3f1(0x93)],0x0)?path['resolve'](_0x588c4b):'',process[_0x5dd3f1(0x80)][_0x5dd3f1(0x84)]=_0x588c4b;const _0x3a7530=helper[_0x5dd3f1(0xf8)](_0x55274c[_0x5dd3f1(0x99)]);_0x3a7530&&(_0x5d5a4f=_0x26b128[_0x5dd3f1(0xec)](_0x5dd3f1(0xba)+_0x3a7530+_0x5dd3f1(0xe5),_0x5d5a4f));helper[_0x5dd3f1(0x7f)]({},_0xb4ff44),fs[_0x5dd3f1(0x81)](_0x2d956b,_0x5d5a4f),helper[_0x5dd3f1(0xc2)]();const _0xccd853=_0x26b128[_0x5dd3f1(0x7c)](spawn,_0x26b128[_0x5dd3f1(0x9a)],[_0x26b128[_0x5dd3f1(0x87)],_0x26b128['PYcGC'],_0x26b128[_0x5dd3f1(0xb5)],_0x2d956b,..._0xb4ff44[_0x5dd3f1(0xae)](0x2)],{'shell':_0x26b128[_0x5dd3f1(0x72)](process[_0x5dd3f1(0xb1)],_0x26b128[_0x5dd3f1(0x102)]),'stdio':_0x26b128[_0x5dd3f1(0xc3)],'cwd':process[_0x5dd3f1(0xb8)](),'env':Object[_0x5dd3f1(0x79)]({},process[_0x5dd3f1(0x80)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x5dd3f1(0xb3)](_0x5bfe9c),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x55274c['config'][_0x5dd3f1(0x8a)][_0x5dd3f1(0xa0)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x55274c[_0x5dd3f1(0x99)][_0x5dd3f1(0x8a)][_0x5dd3f1(0xa7)],'BROWSERSTACK_LOG_LEVEL':_0x55274c['config']['logLevel']})}),_0x2c352e=()=>{const _0x4a33b9=_0x5dd3f1;try{const _0x482554=path['join'](helper[_0x4a33b9(0x91)](),_0x26b128[_0x4a33b9(0xe2)],_0x26b128['yBRvl']);if(fs[_0x4a33b9(0xf4)](_0x482554)){let _0x4d53f3=fs[_0x4a33b9(0xd8)](_0x482554);_0x4d53f3=JSON[_0x4a33b9(0x7d)](_0x4d53f3),_0x55274c[_0x4a33b9(0x88)]=_0x4d53f3,fs[_0x4a33b9(0xc5)](_0x482554);}}catch(_0x1d0a17){logger[_0x4a33b9(0x106)](_0x26b128[_0x4a33b9(0xec)](_0x26b128[_0x4a33b9(0xcf)],_0x1d0a17));}};_0xccd853['on'](_0x26b128[_0x5dd3f1(0xb6)],async _0x64831e=>{const _0x390249=_0x5dd3f1;try{const _0x4de35e=_0x26b128[_0x390249(0xcd)]['split']('|');let _0x2593d5=0x0;while(!![]){switch(_0x4de35e[_0x2593d5++]){case'0':fs['unlinkSync'](_0x22fe05);continue;case'1':await utilities[_0x390249(0x7b)](_0x55274c);continue;case'2':logger[_0x390249(0xde)](_0x390249(0xd0)+_0x2d956b);continue;case'3':await TestHubHandler[_0x390249(0xe4)]();continue;case'4':logger[_0x390249(0x106)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x64831e);continue;case'5':process[_0x390249(0xdc)]=_0x64831e;continue;case'6':fs[_0x390249(0xc5)](_0x2d956b);continue;case'7':logger[_0x390249(0x106)](_0x390249(0xd0)+_0x22fe05);continue;case'8':_0x26b128[_0x390249(0xd5)](_0x2c352e);continue;}break;}}catch(_0x5f4c3d){logger[_0x390249(0x106)](_0x26b128[_0x390249(0xec)](_0x26b128['vYqDK'],_0x5f4c3d));}});}function a35_0x241a(){const _0x28b915=['dirname','dEeXk','debug','get','LHWQG','mIMJC','../../helpers/test-observability/utils','null','../../helpers/testhub/testhubHandler','automation','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','isTrue','BROWSERSTACK_SETUP_CONFIG_PATH','--grep','gbhjQ','tPvIf','BROWSERSTACK_AUTOMATION','PACKAGE_TYPE','stringify','../../helpers/testhub/utils','path','assign','test','finalExecution','izLNl','parse','./accessibility-helper','filterBrowserstackArgs','env','writeFileSync','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','weGPB','USER_CONFIG_DETAILS_PATH','37096uwtzpl','--config','omkaF','errorMessage','accessibilityOptions','testContextOptions','../../helpers/accessibility-automation/helper','eADDd','eDekl','accessibility','../../helpers/BrowserStackSetup','KEaNw','homedir','trim','length','yNQxE','OHnBx','util','60shYZuN','yBRvl','config','fYzhT','serializeToYamlString','BROWSERSTACK_TEST_OBSERVABILITY','inherit','--disable-test-observability','PLAYWRIGHT','skipSessionStatus','has','.browserstack','UBudH','../../helpers/test-observability/error-handler','4htuNNf','mRFjN','skipSessionName','CFXBW','hESJJ','--config=','browserstackSetupConfig.json','findIndex','true','slice','indexOf','XKSeo','platform','QCIkm','getConfigPath','BrowserStack\x20config\x20file\x20not\x20found.','QsCim','oEDJL','child_process','cwd','KOMFp','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','../../helpers/logger','MODULE','Error\x20in\x20deleting\x20playwright\x20results','Error\x20in\x20closing\x20playwright','pw_result.json','177668BnEpqy','BROWSERSTACK_RERUN','markSDKSetupComplete','NtJet','ANiQq','unlinkSync','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_TEST_ACCESSIBILITY_YML','1549427pAiljI','--disable-browserstack-automation','playwright','8|3|1|5|4|2|6|7|0','resolvedConfigFile','MKzyh','qiLts','zwTmP','Deleting\x20','IYPwR','initialize','join','cliConfig','MDQZn','459oqFwsw','isTypescriptProject','readFileSync','257229QxBfRi','BROWSERSTACK_RERUN_TESTS','npx','exitCode','2383956qNcMZU','info','yjgzg','map','598450gHTris','LAULT','NPLjD','stop','\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();','push','testObservability','argv','requirePWModule','AdthX','false','lIenC','launchBuild','1lxiORk','rnaEr','../../helpers/utilities','splice','apply','cDMYM','existsSync','ibFPd','Error\x20in\x20getting\x20funnel\x20data\x20results','playwright-browserstack-sdk.config.js','getProxyUrl','filter','GcBSC','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','dRUJZ','clearTempPWConfig','1677861ANiKQs','split','isUndefined','aElmh','SroVm','startsWith'];a35_0x241a=function(){return _0x28b915;};return a35_0x241a();}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a36_0x455ea6=a36_0x1c36;function a36_0x4150(){const _0x20db6c=['../../helpers/helper','6484lsZVNu','OSzDC','URWOk','Spbei','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','130aUpWIh','./reporter/pwUtils','child_process','999240zBQmpu','../../helpers/test-observability/utils','./patches','hNIWi','fork','debug','qoeEl','1120167dEsYjE','13063lNSbSD','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','isHandlePWErrorSet','exports','qKfbF','format','8587015YkwtmK','BsTab','./mock-process.js','kInpM','error','Running\x20existing\x20global\x20setup','resolve','1.33.0','Not\x20able\x20to\x20import\x20globalSetup','2838598LbiEUw','\x20is\x20not\x20found','12900736wVzcrz','apply','../../helpers/logger','function','786FKVoWn','env','config','6STFAbH','PLAYWRIGHT','NtfcW','gDdbq','Sztwm','Call\x20to\x20child\x20fork\x20with\x20args\x20','228SqjYLk'];a36_0x4150=function(){return _0x20db6c;};return a36_0x4150();}(function(_0x2f97cd,_0x3bd7b7){const _0xffa68f=a36_0x1c36,_0xce2765=_0x2f97cd();while(!![]){try{const _0x1f42c2=-parseInt(_0xffa68f(0x94))/0x1*(parseInt(_0xffa68f(0x82))/0x2)+parseInt(_0xffa68f(0x79))/0x3*(parseInt(_0xffa68f(0x84))/0x4)+parseInt(_0xffa68f(0x9a))/0x5+-parseInt(_0xffa68f(0x7c))/0x6*(-parseInt(_0xffa68f(0xa3))/0x7)+-parseInt(_0xffa68f(0xa5))/0x8+parseInt(_0xffa68f(0x93))/0x9*(parseInt(_0xffa68f(0x89))/0xa)+-parseInt(_0xffa68f(0x8c))/0xb;if(_0x1f42c2===_0x3bd7b7)break;else _0xce2765['push'](_0xce2765['shift']());}catch(_0x2e4018){_0xce2765['push'](_0xce2765['shift']());}}}(a36_0x4150,0xed8e0));const util=require('util'),child_process=require(a36_0x455ea6(0x8b)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a36_0x455ea6(0x8d)),helper=require(a36_0x455ea6(0x83)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x455ea6(0x8a)),{mockIsWorkerRedundant}=require(a36_0x455ea6(0x8e)),logger=require(a36_0x455ea6(0x77))['winstonLogger'];function a36_0x1c36(_0x117521,_0x5f4c78){const _0x4150ac=a36_0x4150();return a36_0x1c36=function(_0x1c360b,_0x1386a3){_0x1c360b=_0x1c360b-0x77;let _0x58428b=_0x4150ac[_0x1c360b];return _0x58428b;},a36_0x1c36(_0x117521,_0x5f4c78);}module[a36_0x455ea6(0x97)]=async function(_0x584300){const _0x48c1c6=a36_0x455ea6,_0x36686a={'kInpM':function(_0x1d626b,_0x2166b6){return _0x1d626b(_0x2166b6);},'OSzDC':function(_0x2fdb16){return _0x2fdb16();},'gDdbq':_0x48c1c6(0x9c),'GjkTg':function(_0x20f093){return _0x20f093();},'BsTab':_0x48c1c6(0x9f),'URWOk':function(_0x3b5570,_0x4626ed){return _0x3b5570>=_0x4626ed;},'hNIWi':_0x48c1c6(0xa1),'Sztwm':function(_0x4b5941,_0x32308b,_0x7a528d){return _0x4b5941(_0x32308b,_0x7a528d);},'NtfcW':function(_0x34a297,_0x2db16d){return _0x34a297!==_0x2db16d;},'qoeEl':_0x48c1c6(0x78),'Spbei':_0x48c1c6(0xa2),'qKfbF':function(_0x462389,_0x44abcf){return _0x462389(_0x44abcf);}},_0x20eafe=child_process[_0x48c1c6(0x90)];if(helper[_0x48c1c6(0x96)]())try{_0x36686a['GjkTg'](mockIsWorkerRedundant);}catch(_0x4caa6e){logger[_0x48c1c6(0x91)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0x48c1c6(0x99)](_0x4caa6e));}child_process[_0x48c1c6(0x90)]=function(){const _0x4f61e2=_0x48c1c6;return _0x36686a[_0x4f61e2(0x9d)](debug,_0x4f61e2(0x81)+arguments[0x0]),arguments[0x0]['includes'](_0x36686a['OSzDC'](getForkProcessPath))?arguments[0x0]=require[_0x4f61e2(0xa0)](_0x36686a[_0x4f61e2(0x7f)]):logger[_0x4f61e2(0x9e)]('Path\x20'+_0x36686a[_0x4f61e2(0x85)](getForkProcessPath)+_0x4f61e2(0xa4)),_0x20eafe['apply'](null,arguments);};if(process[_0x48c1c6(0x7a)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x36686a[_0x48c1c6(0x9d)](debug,_0x36686a[_0x48c1c6(0x9b)]);try{const {loadGlobalHook:_0xc31d8d}=helper['requirePWModule'][_0x48c1c6(0xa6)](null,_0x36686a['GjkTg'](getLoadUtilsPath)),_0x193ce2=_0x36686a['kInpM'](getFrameworkVersion,FRAMEWORKS[_0x48c1c6(0x7d)]);let _0x43443a=_0x584300;if(_0x36686a[_0x48c1c6(0x86)](helper['compareVersions'](_0x193ce2,_0x36686a[_0x48c1c6(0x8f)]),0x0)){const _0x56af6f={};_0x56af6f[_0x48c1c6(0x7b)]=_0x584300,_0x43443a=_0x56af6f;}const _0x177ab6=await _0x36686a[_0x48c1c6(0x80)](_0xc31d8d,_0x43443a,process['env'][_0x48c1c6(0x95)]);if(_0x36686a[_0x48c1c6(0x7e)](typeof _0x177ab6,_0x36686a[_0x48c1c6(0x92)]))throw new Error(_0x36686a[_0x48c1c6(0x87)]);return _0x177ab6[_0x48c1c6(0xa6)](null,arguments);}catch(_0x3e13e9){_0x36686a[_0x48c1c6(0x98)](debug,_0x48c1c6(0x88)+_0x3e13e9['toString']());}}};
|