browserstack-node-sdk 1.34.27 → 1.34.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x41475a=a29_0x58d2;function a29_0x5768(){const _0x3b1e8a=['../../../hubAllocationMethods','goog:chromeOptions','keys','New\x20hub\x20url\x20set\x20to\x20','newHubUrl','se:ieOptions','chromeOptions_','storeOptimalHubUrl','../accessibility-automation/helper','optimalHubUrl','ENUEK','FZjNp','523425NgDLSK','get','ViGzC','rBeYJ','aYZmW','zDKHX','__driversArray','1|3|4|0|2|5','getRequestOptions','getHttpAgent','1971yFPGca','2316AltdVz','CAPABILITY_KEY','kjlQs','EdQiX','FwoBg','info','wdbZX','set','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','../../../helpers/helper','638255KlVLpy','caps_','wpMWA','object','VgFtY','SKBvK','split','send','/session','ieOptions_','setCapabilities','cJIzs','overrideGet','build','firefoxOptions','setServer','PRmxQ','315qEkhyF','firefoxOptions_','FPTOI','requireHttpClient','/wd/hub','../../../helpers/globals','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','Setting\x20Browserstack\x20capabilities','url_','edgeOptions_','./helpers/patchHelper','options_','mergeDeep','winstonLogger','forEach','548528vtUwWP','edgeOptions','capabilities_','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','imfeI','dCuhd','cuZyb','then','kEPvm','global','oGSrA','getGlobal','safariOptions_','398616dKmCeI','aJKUq','exports','proxyUrl','browserstackAgentObservability','AxNrg','MVErT','XdeFk','browserStackLogLevel','safari.options','isAccessibilityPlatform','setGlobal','https://','__driver','../../../helpers/accessibility-automation/helper','push','logLevel','updateHubUrl','mMUsE','18NKuolN','getAccessibilityResultsSummary','Modifying\x20webdriver\x20builder','1776900sVszBn','proxySettings','originalBuilder','EgNDp','__setBrowserOptions','capability','hZRRG','pTauB','79386uLBtNQ','isUndefined','debug','requireSeleniumWebdriver','WwsOd','MmOGQ','erqVO','setLogLevel','__drivers','uKhFM','Builder','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','path','ABdBj','HttpClient','error','isBrowserstackInfra'];a29_0x5768=function(){return _0x3b1e8a;};return a29_0x5768();}(function(_0x300992,_0x4b2eea){const _0x4cf7be=a29_0x58d2,_0x196344=_0x300992();while(!![]){try{const _0x1f7376=parseInt(_0x4cf7be(0x1eb))/0x1+-parseInt(_0x4cf7be(0x1f6))/0x2*(parseInt(_0x4cf7be(0x1f5))/0x3)+-parseInt(_0x4cf7be(0x221))/0x4+parseInt(_0x4cf7be(0x201))/0x5+-parseInt(_0x4cf7be(0x24c))/0x6*(-parseInt(_0x4cf7be(0x212))/0x7)+-parseInt(_0x4cf7be(0x22e))/0x8+parseInt(_0x4cf7be(0x241))/0x9*(parseInt(_0x4cf7be(0x244))/0xa);if(_0x1f7376===_0x4b2eea)break;else _0x196344['push'](_0x196344['shift']());}catch(_0x4f13cb){_0x196344['push'](_0x196344['shift']());}}}(a29_0x5768,0x9fb06));const logger=require('../../../helpers/logger')[a29_0x41475a(0x21f)],helper=require(a29_0x41475a(0x200)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x41475a(0x1df)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a29_0x41475a(0x1e7)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x41475a(0x23c)),globals=require(a29_0x41475a(0x217)),{overrideExecute}=require(a29_0x41475a(0x21c)),modify=(_0x4bf7a0,_0x125dd1=null,_0x1d4de3=![])=>{const _0x1eb0e8=a29_0x41475a,_0x4d524d={'BqzNk':function(_0x8c56c,_0x23cfd7){return _0x8c56c!==_0x23cfd7;},'ABdBj':_0x1eb0e8(0x209),'wdbZX':function(_0x4aae39,_0x56a1f6){return _0x4aae39!==_0x56a1f6;},'AxNrg':function(_0x253b8f,_0x32a4f7){return _0x253b8f+_0x32a4f7;},'kEPvm':function(_0x2e45f3,_0x43d93b){return _0x2e45f3+_0x43d93b;},'eYKDg':_0x1eb0e8(0x23a),'ykbjj':_0x1eb0e8(0x216),'rBeYJ':_0x1eb0e8(0x1e0),'EdQiX':'chromeOptions','oGSrA':'ms:edgeOptions','uKhFM':_0x1eb0e8(0x222),'DIdEA':'moz:firefoxOptions','aYZmW':_0x1eb0e8(0x20f),'ViGzC':_0x1eb0e8(0x237),'XdeFk':_0x1eb0e8(0x1e4),'erqVO':'ieOptions','FZjNp':function(_0x37613d,_0x4510f6){return _0x37613d===_0x4510f6;},'wpMWA':_0x1eb0e8(0x204),'EgNDp':_0x1eb0e8(0x219),'hZRRG':_0x1eb0e8(0x1e8),'aJKUq':_0x1eb0e8(0x224),'MVErT':function(_0x1d5e45,_0x58c67e,_0x13f43a){return _0x1d5e45(_0x58c67e,_0x13f43a);},'pTauB':function(_0x5ea525,_0x1d6dcf){return _0x5ea525(_0x1d6dcf);},'WwsOd':function(_0x52cf81,_0x489cec,_0x2e934c){return _0x52cf81(_0x489cec,_0x2e934c);},'FPTOI':_0x1eb0e8(0x1f2),'FwoBg':function(_0x4ce12c){return _0x4ce12c();},'kjlQs':_0x1eb0e8(0x238),'ENUEK':_0x1eb0e8(0x1fe),'zDKHX':function(_0x5cdcb4,_0x1770e3){return _0x5cdcb4!==_0x1770e3;},'VgFtY':_0x1eb0e8(0x1d9),'cuZyb':_0x1eb0e8(0x243)},_0x1bfbfc=helper[_0x1eb0e8(0x215)]();let _0x23b89f;try{_0x23b89f=helper[_0x1eb0e8(0x24f)](),_0x23b89f['originalBuilder']&&(_0x23b89f[_0x1eb0e8(0x1d8)]=_0x23b89f[_0x1eb0e8(0x246)]);}catch(_0xf6ba8){return;}if(helper[_0x1eb0e8(0x1de)]()){const _0xd430ce={};_0xd430ce[_0x1eb0e8(0x23e)]=_0x4bf7a0[_0x1eb0e8(0x236)],helper[_0x1eb0e8(0x1d5)](_0xd430ce,new Map(),new Map()),logger[_0x1eb0e8(0x1fb)](_0x4d524d[_0x1eb0e8(0x205)]),logger['debug'](_0x4d524d[_0x1eb0e8(0x227)]);}class _0x262cf8 extends _0x1bfbfc[_0x1eb0e8(0x1dc)]{[_0x1eb0e8(0x208)](_0x3b6852){const _0x5b4f2b=_0x1eb0e8;if(_0x4d524d['BqzNk'](_0x3b6852[_0x5b4f2b(0x1da)],_0x4d524d[_0x5b4f2b(0x1db)])&&_0x4d524d[_0x5b4f2b(0x1fc)](global[_0x5b4f2b(0x1e3)],''))try{global[_0x5b4f2b(0x1e3)]=_0x4d524d[_0x5b4f2b(0x233)](_0x4d524d[_0x5b4f2b(0x229)](_0x4d524d['eYKDg'],global[_0x5b4f2b(0x1e3)]),_0x4d524d['ykbjj']),this[_0x5b4f2b(0x21d)]=hubAllocator[_0x5b4f2b(0x1f3)](global[_0x5b4f2b(0x1e3)]),logger['debug'](_0x5b4f2b(0x1e2)+global[_0x5b4f2b(0x1e3)]),global[_0x5b4f2b(0x1e3)]='';}catch(_0x312b7f){logger[_0x5b4f2b(0x1dd)](_0x312b7f);}return super[_0x5b4f2b(0x208)](_0x3b6852);}}class _0x5e7542 extends _0x23b89f[_0x1eb0e8(0x1d8)]{['setServer'](){const _0x4d4a87=_0x1eb0e8;return this['url_']=helper['getHubUrl'](_0x4bf7a0),logger[_0x4d4a87(0x24e)]('Hub\x20url\x20set\x20to\x20'+this[_0x4d4a87(0x21a)]),this;}[_0x1eb0e8(0x248)](_0x5f0072){const _0x12ebdd=_0x1eb0e8;let _0x25b11d={};for(const _0x515596 in _0x5f0072){switch(_0x515596){case _0x4d524d[_0x12ebdd(0x1ee)]:case _0x4d524d[_0x12ebdd(0x1f9)]:this[_0x12ebdd(0x1e5)]&&(_0x25b11d=this[_0x12ebdd(0x1e5)][_0x12ebdd(0x1ec)](this[_0x12ebdd(0x1e5)][_0x12ebdd(0x1f7)])||{},this['chromeOptions_']['set'](this[_0x12ebdd(0x1e5)][_0x12ebdd(0x1f7)],helper[_0x12ebdd(0x21e)](_0x25b11d,_0x5f0072[_0x515596])));break;case _0x4d524d[_0x12ebdd(0x22b)]:case _0x4d524d[_0x12ebdd(0x1d7)]:this['edgeOptions_']&&(_0x25b11d=this[_0x12ebdd(0x21b)][_0x12ebdd(0x1ec)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x12ebdd(0x21b)][_0x12ebdd(0x1fd)](this['edgeOptions_'][_0x12ebdd(0x1f7)],helper[_0x12ebdd(0x21e)](_0x25b11d,_0x5f0072[_0x515596])));break;case _0x4d524d['DIdEA']:case _0x4d524d[_0x12ebdd(0x1ef)]:this['firefoxOptions_']&&(_0x25b11d=this[_0x12ebdd(0x213)][_0x12ebdd(0x1ec)](this[_0x12ebdd(0x213)]['CAPABILITY_KEY'])||{},this[_0x12ebdd(0x213)][_0x12ebdd(0x1fd)](this[_0x12ebdd(0x213)][_0x12ebdd(0x1f7)],helper[_0x12ebdd(0x21e)](_0x25b11d,_0x5f0072[_0x515596])));break;case _0x4d524d[_0x12ebdd(0x1ed)]:this[_0x12ebdd(0x22d)]&&(_0x25b11d=this[_0x12ebdd(0x22d)][_0x12ebdd(0x1ec)](this[_0x12ebdd(0x22d)][_0x12ebdd(0x1f7)])||{},this['safariOptions_'][_0x12ebdd(0x1fd)](this[_0x12ebdd(0x22d)]['CAPABILITY_KEY'],helper[_0x12ebdd(0x21e)](_0x25b11d,_0x5f0072[_0x515596])));break;case _0x4d524d[_0x12ebdd(0x235)]:case _0x4d524d[_0x12ebdd(0x252)]:this[_0x12ebdd(0x20a)]&&(_0x25b11d=this[_0x12ebdd(0x20a)]['get'](this[_0x12ebdd(0x20a)][_0x12ebdd(0x1f7)])||{},this[_0x12ebdd(0x20a)]['set'](this[_0x12ebdd(0x20a)][_0x12ebdd(0x1f7)],helper['mergeDeep'](_0x25b11d,_0x5f0072[_0x515596])));break;}}}[_0x1eb0e8(0x20b)](){const _0x199abf=_0x1eb0e8,_0x4f9cd1={'PRmxQ':function(_0x977883,_0x48dccf){const _0x5e1843=a29_0x58d2;return _0x4d524d[_0x5e1843(0x1ea)](_0x977883,_0x48dccf);},'mMUsE':_0x4d524d[_0x199abf(0x203)]};return logger[_0x199abf(0x24e)](_0x4d524d[_0x199abf(0x247)]),this[_0x199abf(0x248)](_0x4bf7a0[_0x199abf(0x249)]),Object[_0x199abf(0x1e1)](_0x4bf7a0[_0x199abf(0x249)])[_0x199abf(0x220)](_0x16c8ed=>{const _0x4a4afe=_0x199abf,_0x35ee74=this[_0x4a4afe(0x223)][_0x4a4afe(0x1ec)](_0x16c8ed);_0x4f9cd1[_0x4a4afe(0x211)](typeof _0x35ee74,_0x4f9cd1[_0x4a4afe(0x240)])?this[_0x4a4afe(0x223)][_0x4a4afe(0x1fd)](_0x16c8ed,helper[_0x4a4afe(0x21e)](_0x35ee74,_0x4bf7a0[_0x4a4afe(0x249)][_0x16c8ed])):this['capabilities_'][_0x4a4afe(0x1fd)](_0x16c8ed,_0x4bf7a0[_0x4a4afe(0x249)][_0x16c8ed]);}),this;}[_0x1eb0e8(0x20e)](){const _0x7bfde2=_0x1eb0e8,_0x5b9767={'dCuhd':function(_0xd6d51c,_0x193709,_0x332fa3){const _0x3c58ab=a29_0x58d2;return _0x4d524d[_0x3c58ab(0x234)](_0xd6d51c,_0x193709,_0x332fa3);},'MmOGQ':function(_0x212f1d,_0x14ad65,_0x76a5bd){const _0x4bdc39=a29_0x58d2;return _0x4d524d[_0x4bdc39(0x234)](_0x212f1d,_0x14ad65,_0x76a5bd);},'cJIzs':function(_0x5d997f,_0x30f44e){return _0x4d524d['pTauB'](_0x5d997f,_0x30f44e);},'SKBvK':function(_0x4b677e,_0x803630,_0x37fb44){const _0x3f2c15=a29_0x58d2;return _0x4d524d[_0x3f2c15(0x250)](_0x4b677e,_0x803630,_0x37fb44);}};if(helper[_0x7bfde2(0x1de)]()){const _0xe12f54=_0x4d524d[_0x7bfde2(0x214)][_0x7bfde2(0x207)]('|');let _0x4ef731=0x0;while(!![]){switch(_0xe12f54[_0x4ef731++]){case'0':if(helper['isPacProxy'](_0x4bf7a0[_0x7bfde2(0x245)]['proxyUrl']))this['agent_']=helper[_0x7bfde2(0x1f4)](_0x4bf7a0[_0x7bfde2(0x245)][_0x7bfde2(0x231)]);else _0x4bf7a0[_0x7bfde2(0x245)][_0x7bfde2(0x231)]&&(this['proxy_']=_0x4bf7a0[_0x7bfde2(0x245)][_0x7bfde2(0x231)],logger[_0x7bfde2(0x24e)]('Proxy\x20set\x20to\x20'+this['proxy_']));continue;case'1':_0x4d524d[_0x7bfde2(0x1fa)](isAccessibilityAutomationSession)&&_0x4d524d[_0x7bfde2(0x24b)](setAccessibilityCapabilities,_0x4bf7a0);continue;case'2':globals[_0x7bfde2(0x22c)](_0x4d524d[_0x7bfde2(0x1f8)])&&(!_0x4d524d['MVErT'](setExtension,this,_0x4bf7a0)&&globals[_0x7bfde2(0x239)](_0x4d524d[_0x7bfde2(0x1f8)],![]));continue;case'3':this[_0x7bfde2(0x210)]();continue;case'4':this[_0x7bfde2(0x20b)]();continue;case'5':logger[_0x7bfde2(0x24e)](_0x4d524d[_0x7bfde2(0x1e9)]);continue;}break;}}const _0x255303=super[_0x7bfde2(0x20e)]();return _0x255303['session_'][_0x7bfde2(0x228)](_0x58b8f4=>{const _0x176cd3=_0x7bfde2;try{const _0x2257ca=_0x58b8f4[_0x176cd3(0x202)][_0x176cd3(0x1ec)](_0x4d524d[_0x176cd3(0x24a)]);_0x2257ca?(logger[_0x176cd3(0x24e)](_0x176cd3(0x218)+_0x2257ca),hubAllocator[_0x176cd3(0x23f)](_0x2257ca),helper[_0x176cd3(0x1e6)](_0x2257ca)):logger['debug'](_0x4d524d[_0x176cd3(0x22f)]);}catch(_0x75422f){logger[_0x176cd3(0x24e)](_0x176cd3(0x1ff)+_0x75422f);}}),_0x255303['quitCount_']=0x0,_0x255303['then']&&_0x255303['then'](_0x97a630=>{const _0x5ec096=_0x7bfde2,_0x2ef6c7={'imfeI':function(_0x4f5881,_0x64981,_0x4497a4){const _0x29c5da=a29_0x58d2;return _0x5b9767[_0x29c5da(0x226)](_0x4f5881,_0x64981,_0x4497a4);}};_0x5b9767[_0x5ec096(0x251)](overrideQuit,_0x97a630,_0x255303),_0x5b9767[_0x5ec096(0x20c)](overrideTakeScreenshot,_0x97a630),helper[_0x5ec096(0x20d)](_0x97a630,_0x4bf7a0),_0x5b9767[_0x5ec096(0x206)](overrideExecute,_0x97a630,_0x4bf7a0),_0x97a630[_0x5ec096(0x242)]=async()=>{const _0x10a508=_0x5ec096;return await _0x2ef6c7[_0x10a508(0x225)](getAccessibilityResultsSummary,_0x97a630,global);},_0x97a630['getAccessibilityResults']=async()=>{const _0x466bc7=_0x5ec096;return await _0x5b9767[_0x466bc7(0x226)](getAccessibilityResults,_0x97a630,global);};}),_0x255303['getAccessibilityResultsSummary']=async()=>{const _0x595c6a=_0x7bfde2;return await _0x4d524d[_0x595c6a(0x234)](getAccessibilityResultsSummary,_0x255303,global);},_0x255303['getAccessibilityResults']=async()=>{const _0x1696a6=_0x7bfde2;return await _0x4d524d[_0x1696a6(0x234)](getAccessibilityResults,_0x255303,global);},_0x4d524d[_0x7bfde2(0x24b)](overrideTakeScreenshot,_0x255303),_0x4d524d[_0x7bfde2(0x24b)](overrideQuit,_0x255303),helper[_0x7bfde2(0x20d)](_0x255303,_0x4bf7a0),_0x4d524d[_0x7bfde2(0x250)](overrideExecute,_0x255303,_0x4bf7a0),helper[_0x7bfde2(0x24d)](global[_0x7bfde2(0x1f1)])&&(global['__driversArray']=[]),helper[_0x7bfde2(0x24d)](global['__drivers'])&&(global[_0x7bfde2(0x1d6)]=[]),global[_0x7bfde2(0x1f1)][_0x7bfde2(0x23d)](_0x255303),global[_0x7bfde2(0x23b)]=_0x255303,_0x4d524d[_0x7bfde2(0x1fc)](global['__drivers'],undefined)&&global['__drivers'][_0x7bfde2(0x23d)](_0x255303),_0x125dd1&&helper['isUndefined'](_0x125dd1['global'][_0x7bfde2(0x1f1)])&&(_0x125dd1['global'][_0x7bfde2(0x1f1)]=[]),_0x125dd1&&_0x4d524d[_0x7bfde2(0x1f0)](_0x125dd1[_0x7bfde2(0x22a)]['__drivers'],undefined)&&(_0x125dd1[_0x7bfde2(0x22a)][_0x7bfde2(0x1d6)][_0x7bfde2(0x23d)](_0x255303),_0x125dd1[_0x7bfde2(0x22a)][_0x7bfde2(0x1f1)]['push'](_0x255303)),_0x255303;}}return _0x23b89f[_0x1eb0e8(0x246)]=_0x23b89f[_0x1eb0e8(0x1d8)],_0x23b89f['Builder']=_0x5e7542,_0x1bfbfc[_0x1eb0e8(0x1dc)]=_0x262cf8,_0x23b89f;};function a29_0x58d2(_0x3de3dd,_0x33a3c5){const _0x57682b=a29_0x5768();return a29_0x58d2=function(_0x58d253,_0x972c01){_0x58d253=_0x58d253-0x1d5;let _0x45da30=_0x57682b[_0x58d253];return _0x45da30;},a29_0x58d2(_0x3de3dd,_0x33a3c5);}module[a29_0x41475a(0x230)][a29_0x41475a(0x232)]=modify;
|
|
1
|
+
function a29_0x3a87(){const _0x53ef5a=['qwvge','SRmhs','qvvii','build','vFJRV','session_','object','capabilities_','GZGna','Proxy\x20set\x20to\x20','debug','New\x20hub\x20url\x20set\x20to\x20','../../../helpers/patchHelpers','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','__setBrowserOptions','YvIUv','proxySettings','GjtIy','401552HFyNbW','newHubUrl','setLogLevel','edgeOptions_','mKCOg','rOmFx','mergeDeep','__driver','../../../helpers/logger','MJnta','browserStackLogLevel','options_','../../../helpers/helper','edgeOptions','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','sbTRM','../../../bin/utils/constants','chromeOptions_','XVHRS','98398rsEoxA','quitCount_','TGBOj','split','CAPABILITY_KEY','setCapabilities','requireSeleniumWebdriver','then','getAccessibilityResults','updateHubUrl','requireHttpClient','1160756BOYOyd','push','exports','setServer','gyWgd','moz:firefoxOptions','HttpClient','isPacProxy','ONzDK','browserstackAgentObservability','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','isBrowserstackInfra','capability','OOVXa','info','firefoxOptions_','caps_','MhKKv','ECVal','./helpers/patchHelper','Bsvtr','sGidg','DeSiu','/wd/hub','global','Hub\x20url\x20set\x20to\x20','logLevel','getGlobal','getHttpAgent','safariOptions_','optimalHubUrl','FKpbH','../../../helpers/globals','se:ieOptions','set','storeOptimalHubUrl','klVqj','MfXKB','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','kWbLQ','1|5|3|4|2|0','TFavM','vjlhP','FWiFy','mkXgL','1668632vTVbBo','getAccessibilityResultsSummary','loWkF','108eVbHkM','/session','1669060PexBRp','ZijJh','proxy_','originalBuilder','firefoxOptions','goog:chromeOptions','21ovOwjN','mVlAO','winstonLogger','__drivers','ieOptions_','../accessibility-automation/helper','send','ieOptions','../../../hubAllocationMethods','Kglvo','yfOVa','getHubUrl','proxyUrl','getRequestOptions','safari.options','__driversArray','Builder','get','PKerL','url_','chromeOptions','7017291RZBrmN','isUndefined','178283CrEmkx','../../../helpers/accessibility-automation/helper','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND'];a29_0x3a87=function(){return _0x53ef5a;};return a29_0x3a87();}function a29_0x3e1d(_0x1f4ecc,_0x48ae9d){const _0x3a871e=a29_0x3a87();return a29_0x3e1d=function(_0x3e1d6b,_0x4ab2b9){_0x3e1d6b=_0x3e1d6b-0xc2;let _0x5b824a=_0x3a871e[_0x3e1d6b];return _0x5b824a;},a29_0x3e1d(_0x1f4ecc,_0x48ae9d);}const a29_0x139dde=a29_0x3e1d;(function(_0x24dc85,_0x1841e5){const _0x249363=a29_0x3e1d,_0x33cb46=_0x24dc85();while(!![]){try{const _0x5b2c83=-parseInt(_0x249363(0xf3))/0x1+parseInt(_0x249363(0x106))/0x2*(-parseInt(_0x249363(0xc7))/0x3)+parseInt(_0x249363(0x111))/0x4+-parseInt(_0x249363(0x143))/0x5+parseInt(_0x249363(0x141))/0x6*(parseInt(_0x249363(0xde))/0x7)+-parseInt(_0x249363(0x13e))/0x8+parseInt(_0x249363(0xdc))/0x9;if(_0x5b2c83===_0x1841e5)break;else _0x33cb46['push'](_0x33cb46['shift']());}catch(_0x1db870){_0x33cb46['push'](_0x33cb46['shift']());}}}(a29_0x3a87,0x3a97a));const logger=require(a29_0x139dde(0xfb))[a29_0x139dde(0xc9)],helper=require(a29_0x139dde(0xff)),constants=require(a29_0x139dde(0x103)),hubAllocator=require(a29_0x139dde(0xcf)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x139dde(0xed)),{setAccessibilityCapabilities,setExtension}=require(a29_0x139dde(0xcc)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x139dde(0xdf)),globals=require(a29_0x139dde(0x131)),{overrideExecute}=require(a29_0x139dde(0x124)),modify=(_0x1a4e6f,_0x4156fe=null,_0x4e37a1=![])=>{const _0x29b42d=a29_0x139dde,_0x4305c0={'MhKKv':function(_0x1bb117,_0x24c39e){return _0x1bb117!==_0x24c39e;},'qwvge':_0x29b42d(0x142),'loWkF':function(_0x696a25,_0x7b698){return _0x696a25!==_0x7b698;},'mKCOg':function(_0x43e730,_0x13d1aa){return _0x43e730+_0x13d1aa;},'MfXKB':function(_0x541476,_0x4c25cf){return _0x541476+_0x4c25cf;},'rOmFx':'https://','Bsvtr':_0x29b42d(0x128),'mkXgL':_0x29b42d(0xc6),'OOVXa':_0x29b42d(0xdb),'ECVal':'ms:edgeOptions','klVqj':_0x29b42d(0x100),'sbTRM':_0x29b42d(0x116),'TFavM':_0x29b42d(0xc5),'qvvii':_0x29b42d(0xd5),'GZGna':_0x29b42d(0x132),'gyWgd':_0x29b42d(0xce),'yfOVa':function(_0x18f520,_0x457e6d){return _0x18f520===_0x457e6d;},'PKerL':_0x29b42d(0xe7),'zXdqQ':'Setting\x20Browserstack\x20capabilities','YvIUv':_0x29b42d(0x12f),'XVHRS':_0x29b42d(0xe0),'ONzDK':function(_0xfa7d75,_0x26cef2,_0x1715bd){return _0xfa7d75(_0x26cef2,_0x1715bd);},'vjlhP':function(_0x18d6a8,_0x5940e3,_0x479163){return _0x18d6a8(_0x5940e3,_0x479163);},'ZijJh':function(_0x289062,_0x9f0db6,_0x4788b6){return _0x289062(_0x9f0db6,_0x4788b6);},'MJnta':function(_0x32baa1,_0x18172b){return _0x32baa1(_0x18172b);},'sGidg':_0x29b42d(0x139),'CNifu':_0x29b42d(0xee),'TGBOj':function(_0x21c7a0){return _0x21c7a0();},'kWbLQ':'isAccessibilityPlatform','DeSiu':function(_0x46fefb,_0x2eea84){return _0x46fefb!==_0x2eea84;},'GjtIy':function(_0x2def48,_0xa9b831){return _0x2def48!==_0xa9b831;},'SRmhs':_0x29b42d(0x137),'Kglvo':'Modifying\x20webdriver\x20builder'},_0x37a84f=helper[_0x29b42d(0x110)]();let _0xa8e690;try{_0xa8e690=helper[_0x29b42d(0x10c)](),_0xa8e690[_0x29b42d(0xc4)]&&(_0xa8e690[_0x29b42d(0xd7)]=_0xa8e690[_0x29b42d(0xc4)]);}catch(_0x42a3ef){return;}if(helper['isBrowserstackInfra']()){const _0x55d3c6={};_0x55d3c6[_0x29b42d(0x12b)]=_0x1a4e6f[_0x29b42d(0xfd)],helper[_0x29b42d(0xf5)](_0x55d3c6,new Map(),new Map()),logger[_0x29b42d(0x11f)](_0x4305c0[_0x29b42d(0xe2)]),logger[_0x29b42d(0xeb)](_0x4305c0[_0x29b42d(0xd0)]);}class _0x364652 extends _0x37a84f['HttpClient']{[_0x29b42d(0xcd)](_0x188132){const _0x2f64d6=_0x29b42d;if(_0x4305c0[_0x2f64d6(0x122)](_0x188132['path'],_0x4305c0[_0x2f64d6(0xe1)])&&_0x4305c0[_0x2f64d6(0x140)](global[_0x2f64d6(0xf4)],''))try{global[_0x2f64d6(0xf4)]=_0x4305c0[_0x2f64d6(0xf7)](_0x4305c0[_0x2f64d6(0x136)](_0x4305c0[_0x2f64d6(0xf8)],global[_0x2f64d6(0xf4)]),_0x4305c0[_0x2f64d6(0x125)]),this[_0x2f64d6(0xfe)]=hubAllocator[_0x2f64d6(0xd4)](global[_0x2f64d6(0xf4)]),logger[_0x2f64d6(0xeb)](_0x2f64d6(0xec)+global[_0x2f64d6(0xf4)]),global[_0x2f64d6(0xf4)]='';}catch(_0x557822){logger['error'](_0x557822);}return super[_0x2f64d6(0xcd)](_0x188132);}}class _0x26e59d extends _0xa8e690[_0x29b42d(0xd7)]{[_0x29b42d(0x114)](){const _0x2ceed1=_0x29b42d;return this[_0x2ceed1(0xda)]=helper[_0x2ceed1(0xd2)](_0x1a4e6f),logger[_0x2ceed1(0xeb)](_0x2ceed1(0x12a)+this[_0x2ceed1(0xda)]),this;}[_0x29b42d(0xef)](_0x5e7585){const _0x5a9c30=_0x29b42d;let _0xa27349={};for(const _0x473f19 in _0x5e7585){switch(_0x473f19){case _0x4305c0[_0x5a9c30(0x13d)]:case _0x4305c0[_0x5a9c30(0x11e)]:this[_0x5a9c30(0x104)]&&(_0xa27349=this[_0x5a9c30(0x104)]['get'](this['chromeOptions_'][_0x5a9c30(0x10a)])||{},this[_0x5a9c30(0x104)][_0x5a9c30(0x133)](this[_0x5a9c30(0x104)][_0x5a9c30(0x10a)],helper['mergeDeep'](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0x123)]:case _0x4305c0[_0x5a9c30(0x135)]:this[_0x5a9c30(0xf6)]&&(_0xa27349=this[_0x5a9c30(0xf6)][_0x5a9c30(0xd8)](this[_0x5a9c30(0xf6)]['CAPABILITY_KEY'])||{},this[_0x5a9c30(0xf6)][_0x5a9c30(0x133)](this[_0x5a9c30(0xf6)][_0x5a9c30(0x10a)],helper[_0x5a9c30(0xf9)](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0x102)]:case _0x4305c0[_0x5a9c30(0x13a)]:this[_0x5a9c30(0x120)]&&(_0xa27349=this[_0x5a9c30(0x120)][_0x5a9c30(0xd8)](this[_0x5a9c30(0x120)]['CAPABILITY_KEY'])||{},this['firefoxOptions_'][_0x5a9c30(0x133)](this[_0x5a9c30(0x120)][_0x5a9c30(0x10a)],helper[_0x5a9c30(0xf9)](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0xe3)]:this[_0x5a9c30(0x12e)]&&(_0xa27349=this[_0x5a9c30(0x12e)][_0x5a9c30(0xd8)](this[_0x5a9c30(0x12e)][_0x5a9c30(0x10a)])||{},this[_0x5a9c30(0x12e)][_0x5a9c30(0x133)](this[_0x5a9c30(0x12e)][_0x5a9c30(0x10a)],helper['mergeDeep'](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0xe9)]:case _0x4305c0[_0x5a9c30(0x115)]:this[_0x5a9c30(0xcb)]&&(_0xa27349=this[_0x5a9c30(0xcb)][_0x5a9c30(0xd8)](this[_0x5a9c30(0xcb)][_0x5a9c30(0x10a)])||{},this['ieOptions_']['set'](this[_0x5a9c30(0xcb)][_0x5a9c30(0x10a)],helper[_0x5a9c30(0xf9)](_0xa27349,_0x5e7585[_0x473f19])));break;}}}[_0x29b42d(0x10b)](){const _0x36a427=_0x29b42d,_0x39d598={'YOUhw':function(_0x2ea986,_0x258be8){const _0x1db1b2=a29_0x3e1d;return _0x4305c0[_0x1db1b2(0xd1)](_0x2ea986,_0x258be8);},'FWiFy':_0x4305c0[_0x36a427(0xd9)]};return logger[_0x36a427(0xeb)](_0x4305c0['zXdqQ']),this[_0x36a427(0xef)](_0x1a4e6f[_0x36a427(0x11d)]),Object['keys'](_0x1a4e6f[_0x36a427(0x11d)])['forEach'](_0x133307=>{const _0x56050e=_0x36a427,_0x20592f=this[_0x56050e(0xe8)][_0x56050e(0xd8)](_0x133307);_0x39d598['YOUhw'](typeof _0x20592f,_0x39d598[_0x56050e(0x13c)])?this[_0x56050e(0xe8)][_0x56050e(0x133)](_0x133307,helper[_0x56050e(0xf9)](_0x20592f,_0x1a4e6f[_0x56050e(0x11d)][_0x133307])):this[_0x56050e(0xe8)][_0x56050e(0x133)](_0x133307,_0x1a4e6f[_0x56050e(0x11d)][_0x133307]);}),this;}['build'](){const _0x559c4b=_0x29b42d,_0x3b2bd6={'mVlAO':function(_0xfe13cb,_0xe7df23,_0x26dd63){const _0x3e1486=a29_0x3e1d;return _0x4305c0[_0x3e1486(0xc2)](_0xfe13cb,_0xe7df23,_0x26dd63);},'vFJRV':function(_0x38c6c4,_0x145999,_0x7ab89){const _0x141626=a29_0x3e1d;return _0x4305c0[_0x141626(0x13b)](_0x38c6c4,_0x145999,_0x7ab89);},'Tbvqy':function(_0xdbb77a,_0x2c4d4c){const _0x4a7843=a29_0x3e1d;return _0x4305c0[_0x4a7843(0xfc)](_0xdbb77a,_0x2c4d4c);}};if(helper[_0x559c4b(0x11c)]()){const _0x333c09=_0x4305c0[_0x559c4b(0x126)][_0x559c4b(0x109)]('|');let _0xdde3b3=0x0;while(!![]){switch(_0x333c09[_0xdde3b3++]){case'0':logger[_0x559c4b(0xeb)](_0x4305c0['CNifu']);continue;case'1':_0x4305c0[_0x559c4b(0x108)](isAccessibilityAutomationSession)&&_0x4305c0[_0x559c4b(0xfc)](setAccessibilityCapabilities,_0x1a4e6f);continue;case'2':globals[_0x559c4b(0x12c)](_0x4305c0[_0x559c4b(0x138)])&&(!_0x4305c0[_0x559c4b(0x119)](setExtension,this,_0x1a4e6f)&&globals['setGlobal'](_0x4305c0[_0x559c4b(0x138)],![]));continue;case'3':this[_0x559c4b(0x10b)]();continue;case'4':if(helper[_0x559c4b(0x118)](_0x1a4e6f['proxySettings'][_0x559c4b(0xd3)]))this['agent_']=helper[_0x559c4b(0x12d)](_0x1a4e6f[_0x559c4b(0xf1)][_0x559c4b(0xd3)]);else _0x1a4e6f[_0x559c4b(0xf1)][_0x559c4b(0xd3)]&&(this['proxy_']=_0x1a4e6f[_0x559c4b(0xf1)][_0x559c4b(0xd3)],logger['debug'](_0x559c4b(0xea)+this[_0x559c4b(0xc3)]));continue;case'5':this[_0x559c4b(0x114)]();continue;}break;}}const _0x2e3299=super[_0x559c4b(0xe4)]();return _0x2e3299[_0x559c4b(0xe6)]['then'](_0x4ad667=>{const _0x2de6d3=_0x559c4b;try{const _0x260856=_0x4ad667[_0x2de6d3(0x121)]['get'](_0x4305c0[_0x2de6d3(0xf0)]);_0x260856?(logger[_0x2de6d3(0xeb)](_0x2de6d3(0x101)+_0x260856),hubAllocator[_0x2de6d3(0x10f)](_0x260856),helper[_0x2de6d3(0x134)](_0x260856)):logger['debug'](_0x4305c0[_0x2de6d3(0x105)]);}catch(_0x542041){logger['debug'](_0x2de6d3(0x11b)+_0x542041);}}),_0x2e3299[_0x559c4b(0x107)]=0x0,_0x2e3299[_0x559c4b(0x10d)]&&_0x2e3299[_0x559c4b(0x10d)](_0x2ca2e1=>{const _0x36dc64=_0x559c4b,_0x235b01={'FKpbH':function(_0x786bf2,_0x51fae2,_0x368c19){return _0x3b2bd6['vFJRV'](_0x786bf2,_0x51fae2,_0x368c19);}};_0x3b2bd6[_0x36dc64(0xe5)](overrideQuit,_0x2ca2e1,_0x2e3299),_0x3b2bd6['Tbvqy'](overrideTakeScreenshot,_0x2ca2e1),helper['overrideGet'](_0x2ca2e1,_0x1a4e6f),_0x3b2bd6[_0x36dc64(0xe5)](overrideExecute,_0x2ca2e1,_0x1a4e6f),_0x2ca2e1[_0x36dc64(0x13f)]=async()=>{const _0x2624c0=_0x36dc64;return await _0x3b2bd6[_0x2624c0(0xc8)](getAccessibilityResultsSummary,_0x2ca2e1,global);},_0x2ca2e1['getAccessibilityResults']=async()=>{const _0xd7ddc5=_0x36dc64;return await _0x235b01[_0xd7ddc5(0x130)](getAccessibilityResults,_0x2ca2e1,global);};}),_0x2e3299['getAccessibilityResultsSummary']=async()=>{return await _0x4305c0['ONzDK'](getAccessibilityResultsSummary,_0x2e3299,global);},_0x2e3299[_0x559c4b(0x10e)]=async()=>{const _0x5c1a6d=_0x559c4b;return await _0x4305c0[_0x5c1a6d(0x13b)](getAccessibilityResults,_0x2e3299,global);},_0x4305c0[_0x559c4b(0xfc)](overrideTakeScreenshot,_0x2e3299),_0x4305c0[_0x559c4b(0xfc)](overrideQuit,_0x2e3299),helper['overrideGet'](_0x2e3299,_0x1a4e6f),_0x4305c0[_0x559c4b(0x119)](overrideExecute,_0x2e3299,_0x1a4e6f),helper[_0x559c4b(0xdd)](global[_0x559c4b(0xd6)])&&(global['__driversArray']=[]),helper[_0x559c4b(0xdd)](global[_0x559c4b(0xca)])&&(global[_0x559c4b(0xca)]=[]),global['__driversArray'][_0x559c4b(0x112)](_0x2e3299),global[_0x559c4b(0xfa)]=_0x2e3299,_0x4305c0[_0x559c4b(0x127)](global[_0x559c4b(0xca)],undefined)&&global['__drivers'][_0x559c4b(0x112)](_0x2e3299),_0x4156fe&&helper[_0x559c4b(0xdd)](_0x4156fe['global'][_0x559c4b(0xd6)])&&(_0x4156fe[_0x559c4b(0x129)]['__driversArray']=[]),_0x4156fe&&_0x4305c0[_0x559c4b(0xf2)](_0x4156fe[_0x559c4b(0x129)][_0x559c4b(0xca)],undefined)&&(_0x4156fe['global'][_0x559c4b(0xca)][_0x559c4b(0x112)](_0x2e3299),_0x4156fe[_0x559c4b(0x129)][_0x559c4b(0xd6)]['push'](_0x2e3299)),_0x2e3299;}}return _0xa8e690[_0x29b42d(0xc4)]=_0xa8e690[_0x29b42d(0xd7)],_0xa8e690[_0x29b42d(0xd7)]=_0x26e59d,_0x37a84f[_0x29b42d(0x117)]=_0x364652,_0xa8e690;};module[a29_0x139dde(0x113)][a29_0x139dde(0x11a)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a30_0x2abde3=a30_0x2abd;(function(_0x8dfc92,_0x217b3f){const _0x35ce21=a30_0x2abd,_0x44ced1=_0x8dfc92();while(!![]){try{const _0x3df7cf=-parseInt(_0x35ce21(0xd7))/0x1+-parseInt(_0x35ce21(0xdb))/0x2+parseInt(_0x35ce21(0xd8))/0x3+parseInt(_0x35ce21(0xd3))/0x4*(parseInt(_0x35ce21(0xd9))/0x5)+parseInt(_0x35ce21(0xdd))/0x6+parseInt(_0x35ce21(0xcf))/0x7*(parseInt(_0x35ce21(0xd4))/0x8)+-parseInt(_0x35ce21(0xd6))/0x9;if(_0x3df7cf===_0x217b3f)break;else _0x44ced1['push'](_0x44ced1['shift']());}catch(_0x3e56c0){_0x44ced1['push'](_0x44ced1['shift']());}}}(a30_0x26b0,0x89e9b));function a30_0x2abd(_0x1ed3fc,_0x14ca3e){const _0x26b0ce=a30_0x26b0();return a30_0x2abd=function(_0x2abd52,_0xd3cf36){_0x2abd52=_0x2abd52-0xcf;let _0x55fe83=_0x26b0ce[_0x2abd52];return _0x55fe83;},a30_0x2abd(_0x1ed3fc,_0x14ca3e);}const requestSpy=require(a30_0x2abde3(0xd2)),constants=require(a30_0x2abde3(0xd1)),{addRequestSpy}=require(a30_0x2abde3(0xda));function a30_0x26b0(){const _0x6f58f7=['../../../helpers/test-observability/utils','466984CkANBG','restore','1996680NyTSEM','7iCdkJQ','oiwOs','../../../bin/utils/constants','../../../helpers/request-spy','8wyBbCc','672024aoFtAR','timeout','10624356BttDgn','219635pQTxZn','3359043EUQMVu','1655095ovtagz'];a30_0x26b0=function(){return _0x6f58f7;};return a30_0x26b0();}exports['mochaHooks']={'beforeAll'(){const _0x4c5448=a30_0x2abde3,_0x4b22db={'oiwOs':function(_0x4f81a6){return _0x4f81a6();}},_0x2ce3cf='browserstack internal helper hook';_0x4b22db[_0x4c5448(0xd0)](addRequestSpy);},'afterAll'(){const _0x36107a=a30_0x2abde3,_0x1e3582='browserstack internal helper hook';this[_0x36107a(0xd5)](0xea60),requestSpy[_0x36107a(0xdc)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x18e40d=a31_0x2059;function a31_0x2059(_0x527f5f,_0x4f2ce5){const _0x3e7d45=a31_0x3e7d();return a31_0x2059=function(_0x205969,_0x31af12){_0x205969=_0x205969-0xc7;let _0x555e44=_0x3e7d45[_0x205969];return _0x555e44;},a31_0x2059(_0x527f5f,_0x4f2ce5);}(function(_0x2f2c8a,_0x52d39c){const _0x5b1207=a31_0x2059,_0x370c53=_0x2f2c8a();while(!![]){try{const _0x2a75b7=-parseInt(_0x5b1207(0xe4))/0x1+parseInt(_0x5b1207(0x114))/0x2+-parseInt(_0x5b1207(0x10b))/0x3+-parseInt(_0x5b1207(0xc9))/0x4+-parseInt(_0x5b1207(0xd4))/0x5+-parseInt(_0x5b1207(0xcc))/0x6*(-parseInt(_0x5b1207(0xf6))/0x7)+-parseInt(_0x5b1207(0xc8))/0x8*(-parseInt(_0x5b1207(0xe1))/0x9);if(_0x2a75b7===_0x52d39c)break;else _0x370c53['push'](_0x370c53['shift']());}catch(_0x3b345c){_0x370c53['push'](_0x370c53['shift']());}}}(a31_0x3e7d,0x436ed));function a31_0x3e7d(){const _0x4f6b51=['80030IzneMe','hCiDJ','8vmimus','2188352hPnoNa','fNtCU','getHookSkippedTests','694770lDTrka','getHooksForTest','../../../helpers/test-observability/utils','lodash','DPkok','uuid','suites','parent','1386710LVqvrx','_beforeAll','emit','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','lTcZG','sendPlatformDetails','_beforeEach','getCapabilities','hookAnalyticsId','bpJHp','getTestEnv','__cloud_provider___','benan','12069279pSIaVR','split','concat','129130ZyUTIp','_afterEach','phtMJ','filter','pending','getHookDetails','getPlatform','TppMd','../../../helpers/helper','state','fromEntries','jSdGA','failed','ouBcQ','forEach','markedStatus','slice','BbGOx','7UPLHEE','fHjCI','push','yRYiu','KJkdO','TEST_PLATFORM','rnnXT','EZXCS','AOKld','Ehdnj','string','tests','../../../helpers/testhub/utils','hook','_afterAll','generic','wMQNq','dLqlj','../../utils/logPatcher','getBrowserName','map_','801228zFzlCg','../../../../package.json','reduce','mapTestHooks','../../../helpers/test-observability/constants','type','cVLPn','ermfT','unknown_grid'];a31_0x3e7d=function(){return _0x4f6b51;};return a31_0x3e7d();}const {v4:uuidv4}=require(a31_0x18e40d(0xd1)),{name,version}=require(a31_0x18e40d(0x10c)),logPatcher=require(a31_0x18e40d(0x108)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x18e40d(0xce)),{consoleHolder}=require(a31_0x18e40d(0x10f)),{getPlatformVersion}=require(a31_0x18e40d(0xec)),{shouldProcessEventForTesthub}=require(a31_0x18e40d(0x102)),{isFunction}=require(a31_0x18e40d(0xcf)),{patchConsoleLogger}=require(a31_0x18e40d(0xce));patchConsoleLogger(),exports[a31_0x18e40d(0xde)]=()=>{const _0x15b729=a31_0x18e40d,_0x7694a4={'bpJHp':_0x15b729(0x105),'TppMd':function(_0x570df9){return _0x570df9();}};return{'ci':_0x7694a4[_0x15b729(0xdd)],'key':_0x7694a4[_0x15b729(0xeb)](uuidv4),'version':version,'collector':'js-'+name};},exports[a31_0x18e40d(0xe9)]=_0x40fa88=>{const _0xd1603=a31_0x18e40d,_0x3ec79c={};_0x3ec79c[_0xd1603(0xc7)]=function(_0x58ed5c,_0x9068ad){return _0x58ed5c!==_0x9068ad;},_0x3ec79c['hLcFz']=_0xd1603(0x100),_0x3ec79c[_0xd1603(0xff)]='hook:',_0x3ec79c[_0xd1603(0xd8)]=_0xd1603(0x103);const _0x8c5214=_0x3ec79c;if(!_0x40fa88||_0x8c5214[_0xd1603(0xc7)](typeof _0x40fa88,_0x8c5214['hLcFz']))return[null,null];if(_0x8c5214[_0xd1603(0xc7)](_0x40fa88['indexOf'](_0x8c5214[_0xd1603(0xff)]),-0x1)){const _0x4681ca=_0x40fa88['split'](_0x8c5214[_0xd1603(0xff)]);return[_0x4681ca[0x0][_0xd1603(0xf4)](0x0,-0x1)['split']('\x22')[0x1],_0x4681ca[0x1]['substring'](0x1)];}else{if(_0x8c5214[_0xd1603(0xc7)](_0x40fa88['indexOf'](_0x8c5214[_0xd1603(0xd8)]),-0x1)){const _0x3819e6=_0x40fa88[_0xd1603(0xe2)](_0x8c5214['lTcZG']);return[_0x3819e6[0x0][_0xd1603(0xf4)](0x0,-0x1)['split']('\x22')[0x1],_0x40fa88];}}return[null,null];},exports[a31_0x18e40d(0xcd)]=_0x163a60=>{const _0x36820c=a31_0x18e40d,_0x3ef57a={'gyxof':function(_0x415aa0,_0x5a8212){return _0x415aa0(_0x5a8212);},'FLkjr':_0x36820c(0xd5),'EuLef':_0x36820c(0x104),'fHjCI':_0x36820c(0xda),'ouBcQ':_0x36820c(0xe5)};if(!_0x163a60||!_0x163a60['parent'])return[];const _0x49bc9b=[];return[_0x3ef57a['FLkjr'],_0x3ef57a['EuLef'],_0x3ef57a[_0x36820c(0xf7)],_0x3ef57a[_0x36820c(0xf1)]][_0x36820c(0xf2)](_0x975589=>{const _0x32a708=_0x36820c,_0x222b29={'LJnJG':function(_0x3b00e9,_0x124cb8){return _0x3ef57a['gyxof'](_0x3b00e9,_0x124cb8);}},_0x102d40=_0x163a60['parent'][_0x975589]||[];_0x102d40[_0x32a708(0xf2)](_0x5010af=>{const _0x702317=_0x32a708;_0x5010af[_0x702317(0xdc)]&&!_0x222b29['LJnJG'](isInternalHook,_0x5010af['fn'])&&_0x49bc9b[_0x702317(0xf8)](_0x5010af[_0x702317(0xdc)]);});}),[..._0x49bc9b,...exports['getHooksForTest'](_0x163a60[_0x36820c(0xd3)])];},exports[a31_0x18e40d(0x10e)]=_0x4e756f=>{const _0x1b4cbe=a31_0x18e40d,_0x416139={'TaKfq':function(_0xc66734){return _0xc66734();},'wMQNq':function(_0x15a4b5,_0x5eca94){return _0x15a4b5===_0x5eca94;},'BbGOx':_0x1b4cbe(0xe5),'yRYiu':_0x1b4cbe(0xd5),'QXqnC':'_afterAll','laLsE':_0x1b4cbe(0xda)};if(!_0x4e756f||!_0x4e756f[_0x1b4cbe(0xd3)])return;[_0x416139[_0x1b4cbe(0xf9)],_0x416139['QXqnC'],_0x416139['laLsE'],_0x416139[_0x1b4cbe(0xf5)]]['forEach'](_0xeceac4=>{const _0x3bc73e=_0x1b4cbe,_0xe34a3a={'DPkok':function(_0x507b39){return _0x416139['TaKfq'](_0x507b39);},'AOKld':function(_0x24c164,_0x48d147){const _0x4e1461=a31_0x2059;return _0x416139[_0x4e1461(0x106)](_0x24c164,_0x48d147);},'jSdGA':_0x416139['BbGOx']},_0x4a5e38=_0x4e756f[_0x3bc73e(0xd3)][_0xeceac4]||[];_0x4a5e38[_0x3bc73e(0xf2)](_0x48e8a8=>{const _0x27345d=_0x3bc73e;if(!_0x48e8a8[_0x27345d(0xdc)])_0x48e8a8[_0x27345d(0xdc)]=_0xe34a3a[_0x27345d(0xd0)](uuidv4);else _0x48e8a8['markedStatus']&&_0xe34a3a[_0x27345d(0xfe)](_0xeceac4,_0xe34a3a[_0x27345d(0xef)])&&(_0x48e8a8[_0x27345d(0xdc)]=_0xe34a3a[_0x27345d(0xd0)](uuidv4),delete _0x48e8a8['markedStatus']);});}),exports[_0x1b4cbe(0x10e)](_0x4e756f[_0x1b4cbe(0xd3)]);},exports[a31_0x18e40d(0xd9)]=async(_0x167eec,_0x2d73e5)=>{const _0x2888f1=a31_0x18e40d,_0x5c2b0c={'AnjsN':function(_0x55d017){return _0x55d017();},'cVLPn':function(_0x475441,_0x2ef0cc){return _0x475441(_0x2ef0cc);},'ermfT':function(_0x150343,_0x387649){return _0x150343===_0x387649;},'dLqlj':'browserstack','phtMJ':_0x2888f1(0x113),'KJkdO':_0x2888f1(0xfb),'viKEt':function(_0x531b4b,_0x3c9f5b){return _0x531b4b(_0x3c9f5b);}};try{if(!_0x5c2b0c['AnjsN'](shouldProcessEventForTesthub))return;const _0x3e1359=await _0x167eec['getCapabilities'](),_0x3f9d20=await _0x167eec['getSession'](),_0x12a887={},_0x662772=Object[_0x2888f1(0xee)](_0x3f9d20[_0x2888f1(0xdb)]()[_0x2888f1(0x10a)]),_0x1c90ab={'product':_0x5c2b0c['cVLPn'](getObservabilityLinkedProductName,_0x662772),'capabilities':_0x662772,'platform':_0x3e1359[_0x2888f1(0xea)](),'platform_version':_0x5c2b0c[_0x2888f1(0x111)](getPlatformVersion,_0x5c2b0c[_0x2888f1(0x112)](global['__cloud_provider___'],_0x5c2b0c[_0x2888f1(0x107)])),'browser':_0x3e1359[_0x2888f1(0x109)](),'browser_version':_0x3e1359['getBrowserVersion'](),'session_id':_0x3f9d20['toJSON']()};global['__cloud_provider___']?_0x12a887[global[_0x2888f1(0xdf)]]=_0x1c90ab:_0x12a887[_0x5c2b0c[_0x2888f1(0xe6)]]=_0x1c90ab,process[_0x2888f1(0xd6)]('bs:addPlatformDetails:'+process['pid'],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x5c2b0c[_0x2888f1(0xfa)],'http_response':_0x12a887,'uuid':_0x2d73e5});}catch(_0x4c1851){_0x5c2b0c['viKEt'](debug,_0x2888f1(0xd7)+_0x4c1851);}},exports[a31_0x18e40d(0xcb)]=_0x8d5ce3=>{const _0x345b37=a31_0x18e40d,_0x47225a={};_0x47225a['benan']=function(_0x564d98,_0x4d4792){return _0x564d98!==_0x4d4792;},_0x47225a['EZXCS']=_0x345b37(0x103),_0x47225a[_0x345b37(0xca)]='passed',_0x47225a[_0x345b37(0xfc)]=_0x345b37(0xf0);const _0x184af1=_0x47225a,_0x3be0fd=_0x8d5ce3[_0x345b37(0xd2)][_0x345b37(0x10d)]((_0xbd74de,_0x48432a)=>{const _0x32733e=_0x345b37,_0x33d2d6=exports[_0x32733e(0xcb)](_0x48432a);return _0x33d2d6&&(_0xbd74de=_0xbd74de[_0x32733e(0xe3)](_0x33d2d6)),_0xbd74de;},[]),_0xae1687=_0x8d5ce3[_0x345b37(0x101)][_0x345b37(0xe7)](_0x32f9e5=>{const _0x570fc2=_0x345b37,_0x2a88e1=_0x184af1[_0x570fc2(0xe0)](_0x32f9e5[_0x570fc2(0x110)],_0x184af1[_0x570fc2(0xfd)])&&!_0x32f9e5[_0x570fc2(0xf3)]&&_0x184af1[_0x570fc2(0xe0)](_0x32f9e5[_0x570fc2(0xed)],_0x184af1['fNtCU'])&&_0x184af1[_0x570fc2(0xe0)](_0x32f9e5[_0x570fc2(0xed)],_0x184af1[_0x570fc2(0xfc)])&&!_0x32f9e5[_0x570fc2(0xe8)];return _0x2a88e1;});return _0xae1687[_0x345b37(0xe3)](_0x3be0fd);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x2f0e10=a32_0xbdfc;function a32_0x1bca(){const _0x37d70a=['saveTestResults','../../helpers/testhub/constants','21zfPuJV','performScan','Performing\x20scan\x20before\x20saving\x20results','error','currentTest','gjEzf','shift','browserstackSessionName','__error_messages__','\x20|\x20','11440890KoRKyp','testAnalyticsId','cQCph','thJwtToken','5671398WhHsEV','capabilities','\x22}}','../../helpers/testhub/utils','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','yzStV','HpjhU','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','../../helpers/accessibility-automation/scripts','nNWKT','MCJrx','titlePath','OAmil','\x20-\x20','../../helpers/accessibility-automation/helper','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','PbZyz','isArray','app','err','failed','AlksP','../../helpers/percy/utils','XmKXD','isAccessibilityPlatform','44WXINVZ','WwiWO','https:','shouldScanTestForAccessibility','testcase','info','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','message',',\x22level\x22:\x20\x22','driverCleanup','9lyqZTs','state','iYjZi','5bOiBju','executeScript','XAwPW','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','dNaOx','climo','1268704lhfzfN','aROPz','__sessionFailed','MTVNY','accessibilityScanStarted','quitCount_','stopMonitoring','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','env','Passed','timeout','UgnyA','uudxE','format','../../helpers/logger','getCurrentUrl','BROWSERSTACK_TESTHUB_UUID','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','nPOfX','debug','thTestRunUuid','.\x20Error\x20:','KnSIV','sdCfd','now','percyCaptureMode','push','510148bIfDMG','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','__drivers','ENV_VAR','sessionNameSet__','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','startMonitoring','executeAsyncScript','1599048nGoZPa','10888992HqrReO','nzBht','join','session_','passed','protocol','bstackA11yShouldScan','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','then','nfBmy','stringify','XGlik','getGlobal','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','winstonLogger','initQuit','ZdtdA','BROWSERSTACK_TESTHUB_JWT','3104556OhgOvz','../../helpers/globals','NDmCt','ztJTK','Failed:\x20','ObservabilitySync:','PwKIa','MjyRx','length','Failed\x20to\x20store\x20session\x20name:\x20','VqgUw','http:','4vFkZLb','util'];a32_0x1bca=function(){return _0x37d70a;};return a32_0x1bca();}function a32_0xbdfc(_0x5e9208,_0x1e57e5){const _0x1bca15=a32_0x1bca();return a32_0xbdfc=function(_0xbdfc5c,_0x278bcd){_0xbdfc5c=_0xbdfc5c-0x129;let _0xab3314=_0x1bca15[_0xbdfc5c];return _0xab3314;},a32_0xbdfc(_0x5e9208,_0x1e57e5);}(function(_0x485c03,_0x5b1cce){const _0x541899=a32_0xbdfc,_0x1a6e31=_0x485c03();while(!![]){try{const _0x362a35=-parseInt(_0x541899(0x156))/0x1*(parseInt(_0x541899(0x17e))/0x2)+parseInt(_0x541899(0x132))/0x3*(parseInt(_0x541899(0x15e))/0x4)+-parseInt(_0x541899(0x135))/0x5*(parseInt(_0x541899(0x190))/0x6)+parseInt(_0x541899(0x182))/0x7*(parseInt(_0x541899(0x13b))/0x8)+-parseInt(_0x541899(0x15f))/0x9+parseInt(_0x541899(0x18c))/0xa+-parseInt(_0x541899(0x1a9))/0xb*(-parseInt(_0x541899(0x172))/0xc);if(_0x362a35===_0x5b1cce)break;else _0x1a6e31['push'](_0x1a6e31['shift']());}catch(_0x21039d){_0x1a6e31['push'](_0x1a6e31['shift']());}}}(a32_0x1bca,0xa5aae));const util=require(a32_0x2f0e10(0x17f)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x2f0e10(0x19e)),{percyAutoCapture}=require(a32_0x2f0e10(0x1a6)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require('../../helpers/performance-tester'),scripts=require(a32_0x2f0e10(0x198)),globals=require(a32_0x2f0e10(0x173)),logger=require(a32_0x2f0e10(0x149))[a32_0x2f0e10(0x16e)],{shouldProcessEventForTesthub}=require(a32_0x2f0e10(0x193)),testHubConstants=require(a32_0x2f0e10(0x181));exports['mochaHooks']={'beforeAll'(){const _0x45b81d=a32_0x2f0e10,_0x428242={'XmKXD':function(_0x1cf182,_0x2cf064,_0x59da5c,_0x14b9b7){return _0x1cf182(_0x2cf064,_0x59da5c,_0x14b9b7);},'AlksP':_0x45b81d(0x1a4),'HpjhU':_0x45b81d(0x18b),'nzBht':function(_0x10a568,_0x41fe32,_0x3f11c6){return _0x10a568(_0x41fe32,_0x3f11c6);},'ZqPLz':_0x45b81d(0x163),'OAmil':function(_0x2e84ff){return _0x2e84ff();}};PerformanceTester[_0x45b81d(0x15c)]();const _0xb6d092='browserstack internal helper hook';global['__error_messages__']=[],global[_0x45b81d(0x13d)]=![],global[_0x45b81d(0x131)]=async()=>{const _0x1b0100=_0x45b81d;let _0xfc988=![];try{await global[_0x1b0100(0x158)][0x0][_0x1b0100(0x162)],_0xfc988=!![],global[_0x1b0100(0x13d)]?await _0x428242[_0x1b0100(0x1a7)](markSessionStatus,global[_0x1b0100(0x158)][0x0],_0x428242[_0x1b0100(0x1a5)],global[_0x1b0100(0x18a)][_0x1b0100(0x161)](_0x428242[_0x1b0100(0x196)])):await _0x428242[_0x1b0100(0x160)](markSessionStatus,global['__drivers'][0x0],_0x428242['ZqPLz']);}catch(_0xf68213){logger['debug'](_0x1b0100(0x157)+_0xf68213);}global['__error_messages__']=[],global[_0x1b0100(0x13d)]=![];if(_0xfc988)try{try{_0x428242[_0x1b0100(0x19c)](shouldProcessEventForTesthub)&&(global[_0x1b0100(0x158)][0x0]&&await _0x428242[_0x1b0100(0x160)](sendPlatformDetails,global['__drivers'][0x0],this[_0x1b0100(0x186)]?this[_0x1b0100(0x186)][_0x1b0100(0x18d)]:null));}catch(_0x2cc973){logger[_0x1b0100(0x14e)](_0x1b0100(0x16d)+_0x2cc973);}await global[_0x1b0100(0x158)][0x0][_0x1b0100(0x16f)]();}catch(_0x4ecf18){logger[_0x1b0100(0x14e)](_0x1b0100(0x16c)+_0x4ecf18);}};},'beforeEach'(_0x52bb67){const _0x4aa1a7=a32_0x2f0e10,_0xa3a28c={'XGlik':function(_0x5e644d,_0x42a6b9){return _0x5e644d>_0x42a6b9;},'CTYTd':function(_0x280cc3,_0x263a88){return _0x280cc3>_0x263a88;},'climo':_0x4aa1a7(0x19d),'MTVNY':function(_0x42c640,_0x350275,_0x462610){return _0x42c640(_0x350275,_0x462610);},'PbZyz':_0x4aa1a7(0x165),'WwiWO':function(_0x1cd8e7){return _0x1cd8e7();},'SCFCY':_0x4aa1a7(0x1a8),'nfBmy':function(_0x1eef80,_0x368923){return _0x1eef80===_0x368923;},'uudxE':_0x4aa1a7(0x17d),'MjyRx':_0x4aa1a7(0x12a),'aROPz':_0x4aa1a7(0x166),'NDmCt':'Automate\x20test\x20case\x20execution\x20has\x20started.','ZdtdA':function(_0x20d0fd){return _0x20d0fd();}};new Promise(async _0x47d16d=>{const _0x3e6366=_0x4aa1a7,_0x3229da='browserstack internal helper hook';let _0x47168c=!![];try{_0xa3a28c[_0x3e6366(0x16a)](global[_0x3e6366(0x158)][_0x3e6366(0x17a)],0x1)&&(await global[_0x3e6366(0x131)](),global[_0x3e6366(0x158)][_0x3e6366(0x188)]()),_0xa3a28c['CTYTd'](global[_0x3e6366(0x158)][0x0]['quitCount_'],0x0)&&(_0x47168c=![],await global['driverCleanup']());}catch(_0x11a23a){logger['debug'](_0x3e6366(0x16c)+_0x11a23a);}try{Array[_0x3e6366(0x1a1)](global['__drivers'])&&global[_0x3e6366(0x158)][0x0]&&(global[_0x3e6366(0x158)][0x0][_0x3e6366(0x189)]=this['currentTest']['titlePath']()[_0x3e6366(0x161)](_0xa3a28c[_0x3e6366(0x13a)])),global['browserstackSessionName']=this[_0x3e6366(0x186)][_0x3e6366(0x19b)]()[_0x3e6366(0x161)](_0xa3a28c[_0x3e6366(0x13a)]);}catch(_0x5e0eb8){logger[_0x3e6366(0x14e)](_0x3e6366(0x17b)+_0x5e0eb8);}this[_0x3e6366(0x186)]['shouldScanTestForAccessibility']=_0xa3a28c[_0x3e6366(0x13e)](shouldScanTestForAccessibility,this[_0x3e6366(0x186)][_0x3e6366(0x19b)](),!![]),globals['setGlobal'](_0xa3a28c[_0x3e6366(0x1a0)],this[_0x3e6366(0x186)]['shouldScanTestForAccessibility']),this[_0x3e6366(0x186)][_0x3e6366(0x13f)]=!![];if(_0xa3a28c[_0x3e6366(0x129)](isAccessibilityAutomationSession)&&_0x47168c&&Array[_0x3e6366(0x1a1)](global[_0x3e6366(0x158)])&&_0xa3a28c['CTYTd'](global[_0x3e6366(0x158)][_0x3e6366(0x17a)],0x0)&&globals[_0x3e6366(0x16b)](_0xa3a28c['SCFCY']))try{const _0x9d9b2c=await global['__drivers'][0x0][_0x3e6366(0x162)];if(_0x9d9b2c){let _0x13d298=!![];const _0x206ab4=await global['__drivers'][0x0][_0x3e6366(0x14a)]();let _0x6bea87;try{_0x6bea87=new URL(_0x206ab4);}catch(_0x9234f5){_0x13d298=![];}_0x13d298=_0xa3a28c[_0x3e6366(0x168)](_0x6bea87[_0x3e6366(0x164)],_0xa3a28c[_0x3e6366(0x147)])||_0xa3a28c[_0x3e6366(0x168)](_0x6bea87[_0x3e6366(0x164)],_0xa3a28c[_0x3e6366(0x179)]),_0x13d298&&(this[_0x3e6366(0x186)]['shouldScanTestForAccessibility']&&logger[_0x3e6366(0x12d)](_0xa3a28c[_0x3e6366(0x13c)])),this['currentTest'][_0x3e6366(0x13f)]=this[_0x3e6366(0x186)][_0x3e6366(0x12b)],this[_0x3e6366(0x186)]['shouldScanTestForAccessibility']&&logger[_0x3e6366(0x12d)](_0xa3a28c[_0x3e6366(0x174)]);}}catch(_0x2ef3ef){logger[_0x3e6366(0x185)](_0x3e6366(0x14c)+util[_0x3e6366(0x148)](_0x2ef3ef));}_0xa3a28c[_0x3e6366(0x170)](_0x47d16d);})[_0x4aa1a7(0x167)](_0x52bb67);},'afterEach'(_0x229754){const _0x1937d3=a32_0x2f0e10,_0x231a10={'XAwPW':function(_0x2b2609,_0x39a2f3){return _0x2b2609>_0x39a2f3;},'YutVY':function(_0x20768a,_0x22539d){return _0x20768a===_0x22539d;},'UgnyA':_0x1937d3(0x12c),'MOlDC':'appium:app','verth':function(_0xe6274b,_0x3b1964,_0xfa66d2,_0x48bb72){return _0xe6274b(_0x3b1964,_0xfa66d2,_0x48bb72);},'gjEzf':_0x1937d3(0x19d),'OLZHt':function(_0x46defe,_0x23d443){return _0x46defe!==_0x23d443;},'sdCfd':_0x1937d3(0x163),'cQCph':function(_0x55868c,_0x1155c1,_0x96e328){return _0x55868c(_0x1155c1,_0x96e328);},'iYjZi':function(_0x4630be,_0x1325a7){return _0x4630be+_0x1325a7;},'VqgUw':_0x1937d3(0x176),'PlzZH':_0x1937d3(0x185),'KnSIV':_0x1937d3(0x144),'dNaOx':_0x1937d3(0x12d),'GzAfx':_0x1937d3(0x1a8),'ztJTK':_0x1937d3(0x165),'nPOfX':_0x1937d3(0x19f),'iYUjp':_0x1937d3(0x184),'PwKIa':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','nNWKT':function(_0x354dae){return _0x354dae();},'cEOUq':function(_0x3db9dc,_0x46856c,_0x5c30d8){return _0x3db9dc(_0x46856c,_0x5c30d8);},'MCJrx':function(_0x30ef5f,_0x29e8e8,_0x2f2321){return _0x30ef5f(_0x29e8e8,_0x2f2321);},'PHZvX':_0x1937d3(0x14e)},_0x2f467b='browserstack internal helper hook';this[_0x1937d3(0x145)](0xfde8);const _0x5da143=async(_0xe34da0,_0x374ee5)=>{const _0x11b3df=_0x1937d3;await global[_0x11b3df(0x158)][0x0][_0x11b3df(0x136)](_0x11b3df(0x15b)+_0xe34da0+_0x11b3df(0x130)+_0x374ee5+_0x11b3df(0x192));};new Promise(async _0x5c6ed8=>{const _0x1d3507=_0x1937d3;try{_0x231a10[_0x1d3507(0x137)](global['__drivers'][_0x1d3507(0x17a)],0x1)&&(await global[_0x1d3507(0x131)](),global[_0x1d3507(0x158)][_0x1d3507(0x188)](),global[_0x1d3507(0x18a)]=[],global[_0x1d3507(0x13d)]=![]);try{if(global['percy']&&_0x231a10['YutVY'](global[_0x1d3507(0x154)],_0x231a10[_0x1d3507(0x146)])&&global[_0x1d3507(0x158)][0x0]){const _0x3bdc99=_0x231a10[_0x1d3507(0x137)](global[_0x1d3507(0x191)][_0x1d3507(0x17a)],0x0)?!!global['capabilities'][0x0][_0x1d3507(0x1a2)]||!!global[_0x1d3507(0x191)][0x0][_0x231a10['MOlDC']]:![],_0x5a9456={};_0x5a9456[_0x1d3507(0x1a2)]=_0x3bdc99,await _0x231a10['verth'](percyAutoCapture,global[_0x1d3507(0x158)][0x0],_0x231a10[_0x1d3507(0x146)],_0x5a9456);}}catch(_0x3ce96a){logger[_0x1d3507(0x14e)](_0x1d3507(0x138)+_0x3ce96a);}!global['__skipSessionName']&&(await global[_0x1d3507(0x158)][0x0][_0x1d3507(0x136)](_0x1d3507(0x194)+JSON[_0x1d3507(0x169)](this[_0x1d3507(0x186)][_0x1d3507(0x19b)]()[_0x1d3507(0x161)](_0x231a10[_0x1d3507(0x187)]))+'}}'),global[_0x1d3507(0x158)][0x0][_0x1d3507(0x15a)]=!![]);const _0x491e6b=_0x231a10['OLZHt'](this[_0x1d3507(0x186)][_0x1d3507(0x133)],_0x231a10[_0x1d3507(0x152)]);_0x491e6b?(global[_0x1d3507(0x13d)]=!![],global['__error_messages__'][_0x1d3507(0x155)](this['currentTest'][_0x1d3507(0x1a3)][_0x1d3507(0x12f)]),await _0x231a10[_0x1d3507(0x18e)](_0x5da143,JSON[_0x1d3507(0x169)](_0x231a10[_0x1d3507(0x134)](_0x231a10[_0x1d3507(0x17c)],this['currentTest'][_0x1d3507(0x1a3)][_0x1d3507(0x12f)])),_0x231a10['PlzZH'])):await _0x231a10[_0x1d3507(0x18e)](_0x5da143,JSON[_0x1d3507(0x169)](_0x231a10[_0x1d3507(0x151)]),_0x231a10[_0x1d3507(0x139)]);}catch(_0x3c79be){logger[_0x1d3507(0x14e)](_0x1d3507(0x142)+_0x3c79be);}try{if(this[_0x1d3507(0x186)][_0x1d3507(0x13f)]&&globals[_0x1d3507(0x16b)](_0x231a10['GzAfx'])&&globals[_0x1d3507(0x16b)](_0x231a10[_0x1d3507(0x175)])){logger[_0x1d3507(0x12d)](_0x231a10[_0x1d3507(0x14d)]);const _0x2bd073={};_0x2bd073[_0x1d3507(0x14f)]=this['currentTest']['testAnalyticsId'],_0x2bd073['thBuildUuid']=process[_0x1d3507(0x143)][testHubConstants[_0x1d3507(0x159)][_0x1d3507(0x14b)]],_0x2bd073[_0x1d3507(0x18f)]=process[_0x1d3507(0x143)][testHubConstants[_0x1d3507(0x159)][_0x1d3507(0x171)]];const _0x345799=_0x2bd073;logger[_0x1d3507(0x14e)](_0x1d3507(0x197)+JSON[_0x1d3507(0x169)](_0x345799)),logger[_0x1d3507(0x14e)](_0x231a10['iYUjp']),logger['debug'](util[_0x1d3507(0x148)](await global[_0x1d3507(0x158)][0x0][_0x1d3507(0x15d)](scripts[_0x1d3507(0x183)],{'method':global['browserstackSessionName']}))),await global[_0x1d3507(0x158)][0x0][_0x1d3507(0x15d)](scripts[_0x1d3507(0x180)],_0x345799),logger['info'](_0x231a10[_0x1d3507(0x178)]);}}catch(_0x20546d){logger[_0x1d3507(0x185)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x1d3507(0x186)][_0x1d3507(0x19b)]()+_0x1d3507(0x150),_0x20546d);}try{try{if(_0x231a10[_0x1d3507(0x199)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x231a10['cEOUq'](sendPlatformDetails,global[_0x1d3507(0x158)][0x0],this[_0x1d3507(0x186)]?this[_0x1d3507(0x186)][_0x1d3507(0x18d)]:null);if(_0x231a10[_0x1d3507(0x199)](isBrowserstackInfra)){const _0x2cea8d=_0x1d3507(0x177)+Date[_0x1d3507(0x153)]();await _0x231a10[_0x1d3507(0x19a)](_0x5da143,JSON['stringify'](_0x2cea8d),_0x231a10['PHZvX']);}}}catch(_0x199e46){logger['debug'](_0x1d3507(0x12e)+_0x199e46);}_0x231a10[_0x1d3507(0x137)](global[_0x1d3507(0x158)][0x0][_0x1d3507(0x140)],0x0)&&await global[_0x1d3507(0x131)]();}catch(_0x5cf736){logger[_0x1d3507(0x14e)](_0x1d3507(0x16c)+_0x5cf736);}_0x231a10[_0x1d3507(0x199)](_0x5c6ed8);})['then'](()=>_0x229754());},'afterAll'(_0x40a48a){const _0x42293d={'yzStV':function(_0x2d7ff4){return _0x2d7ff4();}},_0x36f999='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x1f3fe9=>{const _0x3d871d=a32_0xbdfc;PerformanceTester[_0x3d871d(0x141)](),await global[_0x3d871d(0x131)](),_0x42293d[_0x3d871d(0x195)](_0x1f3fe9);})['then'](()=>_0x40a48a());}};
|
|
1
|
+
const a32_0x3cb7a6=a32_0x2460;(function(_0x5c6839,_0x5463a8){const _0x254f13=a32_0x2460,_0x59d5a9=_0x5c6839();while(!![]){try{const _0x485995=parseInt(_0x254f13(0x16c))/0x1+parseInt(_0x254f13(0x1bc))/0x2*(-parseInt(_0x254f13(0x14d))/0x3)+-parseInt(_0x254f13(0x193))/0x4+parseInt(_0x254f13(0x18f))/0x5+parseInt(_0x254f13(0x169))/0x6+-parseInt(_0x254f13(0x143))/0x7*(parseInt(_0x254f13(0x179))/0x8)+-parseInt(_0x254f13(0x1ae))/0x9*(parseInt(_0x254f13(0x157))/0xa);if(_0x485995===_0x5463a8)break;else _0x59d5a9['push'](_0x59d5a9['shift']());}catch(_0x2e358d){_0x59d5a9['push'](_0x59d5a9['shift']());}}}(a32_0x5c60,0xac92e));const util=require(a32_0x3cb7a6(0x1be)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x3cb7a6(0x1a7)),{percyAutoCapture}=require(a32_0x3cb7a6(0x19d)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a32_0x3cb7a6(0x17b)),PerformanceTester=require(a32_0x3cb7a6(0x18b)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x3cb7a6(0x1ad)),logger=require(a32_0x3cb7a6(0x1bf))[a32_0x3cb7a6(0x19c)],{shouldProcessEventForTesthub}=require(a32_0x3cb7a6(0x185)),testHubConstants=require(a32_0x3cb7a6(0x141));function a32_0x5c60(){const _0x5184a0=['BROWSERSTACK_TESTHUB_JWT','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','protocol','aFbSt','error','ToGpk','capabilities','6520XcETeK','\x20-\x20','../../helpers/helper','isArray','stopMonitoring','then','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','testAnalyticsId','__error_messages__','percyCaptureMode','hOWQE','timeout','../../helpers/testhub/utils','accessibilityScanStarted','push','executeAsyncScript','vpWWA','https:','../../helpers/performance-tester','gnJPz','JtMow','join','3427975fzNHPB','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','KlKlg','wrhMB','56316eaciLN','getGlobal','currentTest','CddEc','__skipSessionName','dRWgD','idxMQ','performScan','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','winstonLogger','../../helpers/percy/utils','failed','MDwDI','saveTestResults','exNiH','setGlobal','__drivers','shift','initQuit','env','../../helpers/accessibility-automation/helper','PLXgX','RUiHL','length','http:','thTestRunUuid','../../helpers/globals','9MuTxYL','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','thBuildUuid','state','ObservabilitySync:','BROWSERSTACK_TESTHUB_UUID','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','err','getCurrentUrl','\x20|\x20','testcase','xwvug','.\x20Error\x20:','debug','2HbaGmb','driverCleanup','util','../../helpers/logger','format','ENV_VAR','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','../../helpers/testhub/constants',',\x22level\x22:\x20\x22','5376awuMyJ','startMonitoring','XQlAr','quitCount_','Bnksp','hxTwK','cOMnf','Performing\x20scan\x20before\x20saving\x20results','oSAmo','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','326526DgsNkb','browserstackSessionName','appium:app','percy','isAccessibilityPlatform','KoGPS','app','zYmMf','kPQPA','thJwtToken','2337290hkFMmz','Passed','OWNfN','EgVfy','session_','ulnGw','PbIPc','titlePath','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','bstackA11yShouldScan','shouldScanTestForAccessibility','__sessionFailed','YOXoZ','info','message','now','stringify','executeScript','1066200wOPfiG','\x22}}','BwaYc','826137rijeLo','jZyRA','mochaHooks','Failed\x20to\x20store\x20session\x20name:\x20','Failed:\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.'];a32_0x5c60=function(){return _0x5184a0;};return a32_0x5c60();}function a32_0x2460(_0x438bc9,_0x3fb585){const _0x5c6081=a32_0x5c60();return a32_0x2460=function(_0x24603e,_0x32b471){_0x24603e=_0x24603e-0x13e;let _0x558347=_0x5c6081[_0x24603e];return _0x558347;},a32_0x2460(_0x438bc9,_0x3fb585);}exports[a32_0x3cb7a6(0x16e)]={'beforeAll'(){const _0x481500=a32_0x3cb7a6,_0x1498a5={'XQlAr':function(_0x5e1a97,_0x33492f,_0xf0c00d,_0x92b447){return _0x5e1a97(_0x33492f,_0xf0c00d,_0x92b447);},'RUiHL':_0x481500(0x19e),'oqLow':_0x481500(0x1b7),'exNiH':function(_0x20047b,_0x2877f0,_0x20d233){return _0x20047b(_0x2877f0,_0x20d233);},'YOXoZ':'passed','kPQPA':function(_0x5aac2e){return _0x5aac2e();},'SqOPW':function(_0x398279,_0x30d08e,_0xbee3b4){return _0x398279(_0x30d08e,_0xbee3b4);}};PerformanceTester[_0x481500(0x144)]();const _0x5d85c8='browserstack internal helper hook';global[_0x481500(0x181)]=[],global[_0x481500(0x162)]=![],global['driverCleanup']=async()=>{const _0x2dfd74=_0x481500;let _0x573c89=![];try{await global['__drivers'][0x0]['session_'],_0x573c89=!![],global[_0x2dfd74(0x162)]?await _0x1498a5[_0x2dfd74(0x145)](markSessionStatus,global[_0x2dfd74(0x1a3)][0x0],_0x1498a5[_0x2dfd74(0x1a9)],global[_0x2dfd74(0x181)][_0x2dfd74(0x18e)](_0x1498a5['oqLow'])):await _0x1498a5[_0x2dfd74(0x1a1)](markSessionStatus,global[_0x2dfd74(0x1a3)][0x0],_0x1498a5[_0x2dfd74(0x163)]);}catch(_0x3abf0c){logger[_0x2dfd74(0x1bb)](_0x2dfd74(0x14c)+_0x3abf0c);}global[_0x2dfd74(0x181)]=[],global[_0x2dfd74(0x162)]=![];if(_0x573c89)try{try{_0x1498a5[_0x2dfd74(0x155)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x1498a5['SqOPW'](sendPlatformDetails,global[_0x2dfd74(0x1a3)][0x0],this[_0x2dfd74(0x195)]?this[_0x2dfd74(0x195)][_0x2dfd74(0x180)]:null));}catch(_0x1def7b){logger[_0x2dfd74(0x1bb)](_0x2dfd74(0x140)+_0x1def7b);}await global[_0x2dfd74(0x1a3)][0x0][_0x2dfd74(0x1a5)]();}catch(_0x89d1c9){logger[_0x2dfd74(0x1bb)](_0x2dfd74(0x15f)+_0x89d1c9);}};},'beforeEach'(_0x59707b){const _0x38b0b4=a32_0x3cb7a6,_0x589baa={'jZyRA':function(_0x8a6e91,_0x1f4656){return _0x8a6e91>_0x1f4656;},'ulnGw':_0x38b0b4(0x17a),'KlKlg':function(_0x59715f,_0x1c5b0d,_0x4cac0a){return _0x59715f(_0x1c5b0d,_0x4cac0a);},'JtMow':'bstackA11yShouldScan','vpWWA':function(_0x2ecfb1){return _0x2ecfb1();},'Wxmsm':_0x38b0b4(0x151),'wrhMB':function(_0x9a80c5,_0xb9b22){return _0x9a80c5===_0xb9b22;},'aFbSt':_0x38b0b4(0x1ab),'cYVqz':function(_0x1d070d,_0x352ab0){return _0x1d070d===_0x352ab0;},'BwaYc':_0x38b0b4(0x18a),'hOWQE':_0x38b0b4(0x173),'dRWgD':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0x483315=>{const _0x198542=_0x38b0b4,_0x4521f3='browserstack internal helper hook';let _0x34314f=!![];try{_0x589baa[_0x198542(0x16d)](global['__drivers'][_0x198542(0x1aa)],0x1)&&(await global[_0x198542(0x1bd)](),global['__drivers']['shift']()),_0x589baa[_0x198542(0x16d)](global[_0x198542(0x1a3)][0x0]['quitCount_'],0x0)&&(_0x34314f=![],await global[_0x198542(0x1bd)]());}catch(_0x28d491){logger[_0x198542(0x1bb)](_0x198542(0x15f)+_0x28d491);}try{Array[_0x198542(0x17c)](global[_0x198542(0x1a3)])&&global[_0x198542(0x1a3)][0x0]&&(global[_0x198542(0x1a3)][0x0][_0x198542(0x14e)]=this[_0x198542(0x195)][_0x198542(0x15e)]()[_0x198542(0x18e)](_0x589baa[_0x198542(0x15c)])),global[_0x198542(0x14e)]=this['currentTest'][_0x198542(0x15e)]()[_0x198542(0x18e)](_0x589baa[_0x198542(0x15c)]);}catch(_0x35d183){logger[_0x198542(0x1bb)](_0x198542(0x16f)+_0x35d183);}this[_0x198542(0x195)][_0x198542(0x161)]=_0x589baa[_0x198542(0x191)](shouldScanTestForAccessibility,this[_0x198542(0x195)][_0x198542(0x15e)](),!![]),globals[_0x198542(0x1a2)](_0x589baa[_0x198542(0x18d)],this['currentTest'][_0x198542(0x161)]),this[_0x198542(0x195)][_0x198542(0x186)]=!![];if(_0x589baa[_0x198542(0x189)](isAccessibilityAutomationSession)&&_0x34314f&&Array[_0x198542(0x17c)](global[_0x198542(0x1a3)])&&_0x589baa[_0x198542(0x16d)](global['__drivers'][_0x198542(0x1aa)],0x0)&&globals[_0x198542(0x194)](_0x589baa['Wxmsm']))try{const _0x2effb1=await global[_0x198542(0x1a3)][0x0][_0x198542(0x15b)];if(_0x2effb1){let _0x355375=!![];const _0x26cbd4=await global[_0x198542(0x1a3)][0x0][_0x198542(0x1b6)]();let _0x4666bd;try{_0x4666bd=new URL(_0x26cbd4);}catch(_0x492dea){_0x355375=![];}_0x355375=_0x589baa[_0x198542(0x192)](_0x4666bd[_0x198542(0x174)],_0x589baa[_0x198542(0x175)])||_0x589baa['cYVqz'](_0x4666bd['protocol'],_0x589baa[_0x198542(0x16b)]),_0x355375&&(this[_0x198542(0x195)][_0x198542(0x161)]&&logger[_0x198542(0x164)](_0x589baa[_0x198542(0x183)])),this[_0x198542(0x195)][_0x198542(0x186)]=this[_0x198542(0x195)][_0x198542(0x161)],this[_0x198542(0x195)]['shouldScanTestForAccessibility']&&logger[_0x198542(0x164)](_0x589baa[_0x198542(0x198)]);}}catch(_0x247eae){logger['error'](_0x198542(0x17f)+util['format'](_0x247eae));}_0x589baa['vpWWA'](_0x483315);})[_0x38b0b4(0x17e)](_0x59707b);},'afterEach'(_0x38b155){const _0x3de7d7=a32_0x3cb7a6,_0x38c184={'CddEc':function(_0x2826da,_0x17b411){return _0x2826da>_0x17b411;},'yuQOP':function(_0x55b107,_0x194cd1){return _0x55b107===_0x194cd1;},'oSAmo':_0x3de7d7(0x1b8),'hxTwK':_0x3de7d7(0x14f),'ToGpk':function(_0x28e53d,_0x56dfdc,_0x267c40,_0x373fb7){return _0x28e53d(_0x56dfdc,_0x267c40,_0x373fb7);},'gnJPz':'\x20-\x20','zYmMf':function(_0x41fee7,_0x3f6cc9){return _0x41fee7!==_0x3f6cc9;},'wsfSt':'passed','MDwDI':function(_0x540d9c,_0x356119,_0x46549d){return _0x540d9c(_0x356119,_0x46549d);},'KoGPS':function(_0x300bf0,_0x721c76){return _0x300bf0+_0x721c76;},'cOMnf':_0x3de7d7(0x170),'OWNfN':_0x3de7d7(0x176),'PLXgX':_0x3de7d7(0x158),'idxMQ':'info','Bnksp':'isAccessibilityPlatform','NJVdr':_0x3de7d7(0x160),'uQDnG':_0x3de7d7(0x19b),'xwvug':_0x3de7d7(0x14a),'zXJvs':_0x3de7d7(0x171),'VjTUm':function(_0x340475){return _0x340475();},'OMonL':function(_0x3b6de5){return _0x3b6de5();},'PiCVQ':'debug','PbIPc':function(_0xe9e2d8){return _0xe9e2d8();}},_0xab0c8f='browserstack internal helper hook';this[_0x3de7d7(0x184)](0xfde8);const _0x148c2f=async(_0x1ffb42,_0x2202a5)=>{const _0x509c08=_0x3de7d7;await global['__drivers'][0x0][_0x509c08(0x168)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x1ffb42+_0x509c08(0x142)+_0x2202a5+_0x509c08(0x16a));};new Promise(async _0x1eb349=>{const _0x2ea67c=_0x3de7d7;try{_0x38c184[_0x2ea67c(0x196)](global[_0x2ea67c(0x1a3)][_0x2ea67c(0x1aa)],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x2ea67c(0x1a4)](),global[_0x2ea67c(0x181)]=[],global[_0x2ea67c(0x162)]=![]);try{if(global[_0x2ea67c(0x150)]&&_0x38c184['yuQOP'](global[_0x2ea67c(0x182)],_0x38c184[_0x2ea67c(0x14b)])&&global[_0x2ea67c(0x1a3)][0x0]){const _0x2b5ca0=_0x38c184['CddEc'](global['capabilities'][_0x2ea67c(0x1aa)],0x0)?!!global['capabilities'][0x0][_0x2ea67c(0x153)]||!!global[_0x2ea67c(0x178)][0x0][_0x38c184[_0x2ea67c(0x148)]]:![],_0x416653={};_0x416653['app']=_0x2b5ca0,await _0x38c184[_0x2ea67c(0x177)](percyAutoCapture,global[_0x2ea67c(0x1a3)][0x0],_0x38c184['oSAmo'],_0x416653);}}catch(_0xdb335c){logger['debug']('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0xdb335c);}!global[_0x2ea67c(0x197)]&&(await global['__drivers'][0x0][_0x2ea67c(0x168)](_0x2ea67c(0x1b4)+JSON[_0x2ea67c(0x167)](this[_0x2ea67c(0x195)][_0x2ea67c(0x15e)]()[_0x2ea67c(0x18e)](_0x38c184[_0x2ea67c(0x18c)]))+'}}'),global[_0x2ea67c(0x1a3)][0x0]['sessionNameSet__']=!![]);const _0x57cd8d=_0x38c184[_0x2ea67c(0x154)](this[_0x2ea67c(0x195)][_0x2ea67c(0x1b1)],_0x38c184['wsfSt']);_0x57cd8d?(global[_0x2ea67c(0x162)]=!![],global[_0x2ea67c(0x181)][_0x2ea67c(0x187)](this[_0x2ea67c(0x195)][_0x2ea67c(0x1b5)][_0x2ea67c(0x165)]),await _0x38c184[_0x2ea67c(0x19f)](_0x148c2f,JSON[_0x2ea67c(0x167)](_0x38c184[_0x2ea67c(0x152)](_0x38c184[_0x2ea67c(0x149)],this['currentTest'][_0x2ea67c(0x1b5)]['message'])),_0x38c184[_0x2ea67c(0x159)])):await _0x38c184[_0x2ea67c(0x19f)](_0x148c2f,JSON[_0x2ea67c(0x167)](_0x38c184[_0x2ea67c(0x1a8)]),_0x38c184[_0x2ea67c(0x199)]);}catch(_0x54b24b){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x54b24b);}try{if(this[_0x2ea67c(0x195)][_0x2ea67c(0x186)]&&globals[_0x2ea67c(0x194)](_0x38c184[_0x2ea67c(0x147)])&&globals['getGlobal'](_0x38c184['NJVdr'])){logger['info'](_0x38c184['uQDnG']);const _0x4b9847={};_0x4b9847[_0x2ea67c(0x1ac)]=this[_0x2ea67c(0x195)][_0x2ea67c(0x180)],_0x4b9847[_0x2ea67c(0x1b0)]=process[_0x2ea67c(0x1a6)][testHubConstants[_0x2ea67c(0x13f)][_0x2ea67c(0x1b3)]],_0x4b9847[_0x2ea67c(0x156)]=process['env'][testHubConstants['ENV_VAR'][_0x2ea67c(0x172)]];const _0x193366=_0x4b9847;logger[_0x2ea67c(0x1bb)](_0x2ea67c(0x190)+JSON['stringify'](_0x193366)),logger['debug'](_0x38c184[_0x2ea67c(0x1b9)]),logger['debug'](util[_0x2ea67c(0x13e)](await global[_0x2ea67c(0x1a3)][0x0]['executeAsyncScript'](scripts[_0x2ea67c(0x19a)],{'method':global[_0x2ea67c(0x14e)]}))),await global[_0x2ea67c(0x1a3)][0x0][_0x2ea67c(0x188)](scripts[_0x2ea67c(0x1a0)],_0x193366),logger[_0x2ea67c(0x164)](_0x38c184['zXJvs']);}}catch(_0xc8e351){logger[_0x2ea67c(0x176)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x2ea67c(0x195)][_0x2ea67c(0x15e)]()+_0x2ea67c(0x1ba),_0xc8e351);}try{try{if(_0x38c184['VjTUm'](shouldProcessEventForTesthub)){global[_0x2ea67c(0x1a3)][0x0]&&await _0x38c184[_0x2ea67c(0x19f)](sendPlatformDetails,global[_0x2ea67c(0x1a3)][0x0],this[_0x2ea67c(0x195)]?this[_0x2ea67c(0x195)]['testAnalyticsId']:null);if(_0x38c184['OMonL'](isBrowserstackInfra)){const _0x4e6918=_0x2ea67c(0x1b2)+Date[_0x2ea67c(0x166)]();await _0x38c184[_0x2ea67c(0x19f)](_0x148c2f,JSON[_0x2ea67c(0x167)](_0x4e6918),_0x38c184['PiCVQ']);}}}catch(_0x24ed0b){logger[_0x2ea67c(0x1bb)](_0x2ea67c(0x1af)+_0x24ed0b);}_0x38c184[_0x2ea67c(0x196)](global[_0x2ea67c(0x1a3)][0x0][_0x2ea67c(0x146)],0x0)&&await global[_0x2ea67c(0x1bd)]();}catch(_0x5a1024){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x5a1024);}_0x38c184[_0x2ea67c(0x15d)](_0x1eb349);})[_0x3de7d7(0x17e)](()=>_0x38b155());},'afterAll'(_0x32ddf4){const _0x20702d=a32_0x3cb7a6,_0x2f08b7={'EgVfy':function(_0x4fac25){return _0x4fac25();}},_0x5250e7='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x33b449=>{const _0x47480f=a32_0x2460;PerformanceTester[_0x47480f(0x17d)](),await global[_0x47480f(0x1bd)](),_0x2f08b7[_0x47480f(0x15a)](_0x33b449);})[_0x20702d(0x17e)](()=>_0x32ddf4());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a33_0x3aff(){const _0x330fd6=['push','path','Deleting\x20','length','unlinkSync','findIndex','441985nSSmmI','webdriver','YLuac','--config','modifyBrowserStackCaps','ucpob','nightwatch','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','trim','port','../../helpers/helper','eOpsk','124977YcDFOn','mqfAY','platforms','2811893cVGGKG','filter','join','JxPMj','exports','uIpUn','test','RUDEE','../../helpers/logger','1606068ypuEhV','EBCma','10819305tEnkru','GhwNg','now','TDdPw','1207766AwDsbb','existsSync','CBuFG','debug','getPlatformName','gIdAY','--env','env','nightwatch-browserstack.json','close','mergeDeep','vlYPe','168253LFcwwO','URwXc','FJzfH','config','40Xktqwj','cwd','hub.browserstack.com','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','info','writeFileSync','splice','dBXFb','test_settings','stringify','modifyBrowserStackW3CCaps','VsjOe','Getting\x20your\x20nightwatch\x20configs\x20from\x20','isUndefined','cdYOX','nightwatch.cmd','8GlmTPi','nightwatch.conf.js','forEach'];a33_0x3aff=function(){return _0x330fd6;};return a33_0x3aff();}function a33_0x193c(_0x474c07,_0x1a1d54){const _0x3aff5e=a33_0x3aff();return a33_0x193c=function(_0x193ce4,_0x229b63){_0x193ce4=_0x193ce4-0x79;let _0x28d969=_0x3aff5e[_0x193ce4];return _0x28d969;},a33_0x193c(_0x474c07,_0x1a1d54);}const a33_0x5a5d0a=a33_0x193c;(function(_0x1b0cdb,_0x45e781){const _0x1a23c9=a33_0x193c,_0x5f0a97=_0x1b0cdb();while(!![]){try{const _0x598687=parseInt(_0x1a23c9(0x7b))/0x1+-parseInt(_0x1a23c9(0xb6))/0x2+parseInt(_0x1a23c9(0xa4))/0x3*(-parseInt(_0x1a23c9(0x7f))/0x4)+parseInt(_0x1a23c9(0x98))/0x5+parseInt(_0x1a23c9(0xb0))/0x6+-parseInt(_0x1a23c9(0xa7))/0x7*(parseInt(_0x1a23c9(0x8f))/0x8)+parseInt(_0x1a23c9(0xb2))/0x9;if(_0x598687===_0x45e781)break;else _0x5f0a97['push'](_0x5f0a97['shift']());}catch(_0x5e2b73){_0x5f0a97['push'](_0x5f0a97['shift']());}}}(a33_0x3aff,0x4a4ad));const fs=require('fs'),path=require(a33_0x5a5d0a(0x93)),{spawn}=require('child_process'),logger=require(a33_0x5a5d0a(0xaf))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0x5a5d0a(0xa2)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0xeb335b,_0x17f523)=>{const _0x1966a2=a33_0x5a5d0a,_0x2c4069={'UIsbA':_0x1966a2(0x90),'gIdAY':'nightwatch.json','mqfAY':function(_0x4d63e4,_0x3039fe){return _0x4d63e4(_0x3039fe);},'VsjOe':_0x1966a2(0x9f)};let _0x5695fa=null,_0x58b79a={};const _0x276cc5=_0x17f523['findIndex'](_0x52d6a2=>_0x52d6a2===_0x1966a2(0x9b));if(!helper[_0x1966a2(0x8c)](_0xeb335b['config'])&&fs[_0x1966a2(0xb7)](path[_0x1966a2(0xa9)](process[_0x1966a2(0x80)](),_0xeb335b['config'])))_0x5695fa=path['join'](process[_0x1966a2(0x80)](),_0xeb335b[_0x1966a2(0x7e)]),_0x17f523[_0x1966a2(0x85)](_0x276cc5,0x2);else{if(fs[_0x1966a2(0xb7)](path[_0x1966a2(0xa9)](process[_0x1966a2(0x80)](),_0x2c4069['UIsbA'])))_0x5695fa=path['join'](process['cwd'](),_0x2c4069['UIsbA']);else fs[_0x1966a2(0xb7)](path[_0x1966a2(0xa9)](process[_0x1966a2(0x80)](),_0x2c4069[_0x1966a2(0xbb)]))&&(_0x5695fa=path[_0x1966a2(0xa9)](process[_0x1966a2(0x80)](),_0x2c4069['gIdAY']));}return _0x5695fa?(logger['info'](_0x1966a2(0x8b)+_0x5695fa),_0x58b79a=_0x2c4069[_0x1966a2(0xa5)](require,_0x5695fa)):logger[_0x1966a2(0x83)](_0x2c4069[_0x1966a2(0x8a)]),_0x58b79a;},removeExistingEnvs=_0x49e28f=>{const _0x1091b0=a33_0x5a5d0a,_0x2a67fb={};_0x2a67fb[_0x1091b0(0x86)]=function(_0x5c43e3,_0x5abc5c){return _0x5c43e3>_0x5abc5c;};const _0x21e648=_0x2a67fb;let _0x2b2e20=_0x49e28f[_0x1091b0(0x97)](_0x2e8ea2=>_0x2e8ea2===_0x1091b0(0xbc));_0x21e648[_0x1091b0(0x86)](_0x2b2e20,-0x1)&&_0x49e28f[_0x1091b0(0x85)](_0x2b2e20,0x2),_0x2b2e20=_0x49e28f[_0x1091b0(0x97)](_0x261204=>_0x261204==='-e'),_0x21e648[_0x1091b0(0x86)](_0x2b2e20,-0x1)&&_0x49e28f['splice'](_0x2b2e20,0x2);};function run(_0x145c8f,_0x27412e){const _0x57042c=a33_0x5a5d0a,_0x3ca5a6={'CBuFG':_0x57042c(0x9e),'GhwNg':function(_0x1dc48d,_0x40cd4b){return _0x1dc48d+_0x40cd4b;},'RUDEE':_0x57042c(0x87),'URwXc':function(_0xfe6662,_0x4ba246,_0x59efc1){return _0xfe6662(_0x4ba246,_0x59efc1);},'FJzfH':_0x57042c(0x81),'ucpob':_0x57042c(0x82),'LyHcx':function(_0x2659a0,_0x1ea3e5){return _0x2659a0===_0x1ea3e5;},'YLuac':_0x57042c(0xbe),'eOpsk':function(_0x2f2557,_0x34c849){return _0x2f2557(_0x34c849);},'uIpUn':function(_0x478ef9,_0x535566,_0x2eff74,_0x1dc539){return _0x478ef9(_0x535566,_0x2eff74,_0x1dc539);},'EBCma':_0x57042c(0x8e),'JxPMj':_0x57042c(0x9b),'TDdPw':_0x57042c(0xbc),'cdYOX':'inherit','vlYPe':_0x57042c(0xbf)},_0x346cfc=new BrowserStackSetup(_0x145c8f);if(!_0x346cfc[_0x57042c(0x7e)])return;const _0x2f11b6=_0x3ca5a6[_0x57042c(0x7c)](getUserNightwatchConfigs,_0x145c8f,_0x27412e),_0x183050={};_0x183050['start_process']=![];const _0x23e685={};_0x23e685['host']=_0x3ca5a6[_0x57042c(0x7d)],_0x23e685[_0x57042c(0xa1)]=0x1bb;const _0x2875cb={};_0x2875cb[_0x57042c(0x99)]=_0x183050,_0x2875cb['selenium']=_0x23e685;const _0x3de9a3=_0x2875cb;logger[_0x57042c(0x83)](_0x3ca5a6[_0x57042c(0x9d)]);const _0x3af8b8={..._0x2f11b6},_0x41768a=_0x3af8b8,_0x923552=helper['useW3C'](_0x346cfc[_0x57042c(0x7e)]),_0x208e5e=[];_0x346cfc['config'][_0x57042c(0xa6)][_0x57042c(0x91)]((_0x213c0b,_0x12aafd)=>{const _0x32d26b=_0x57042c;_0x923552?_0x208e5e[_0x32d26b(0x92)](helper[_0x32d26b(0x89)](_0x346cfc[_0x32d26b(0x7e)],_0x3ca5a6[_0x32d26b(0xb8)],_0x12aafd)):_0x208e5e[_0x32d26b(0x92)](helper[_0x32d26b(0x9c)](_0x346cfc[_0x32d26b(0x7e)],_0x3ca5a6[_0x32d26b(0xb8)],_0x12aafd));});const _0x1f8e0b={},_0x59bcad=[];_0x145c8f[_0x57042c(0xbd)]=_0x145c8f[_0x57042c(0xbd)]||_0x145c8f['e'];const _0x235a87=_0x145c8f[_0x57042c(0xbd)]?_0x145c8f[_0x57042c(0xbd)][_0x57042c(0xa0)]()['split'](',')['map'](_0x5ebd59=>_0x5ebd59['trim']())[_0x57042c(0xa8)](_0x44f44e=>_0x44f44e!==''):[''];_0x3ca5a6['LyHcx'](_0x235a87[_0x57042c(0x95)],0x0)&&_0x235a87['push']('');_0x235a87[_0x57042c(0x91)](_0x28689f=>{const _0x33b05c=_0x57042c;_0x208e5e[_0x33b05c(0x91)](_0xf49d53=>{const _0x452dd1=_0x33b05c;let _0x590db3=_0x3ca5a6[_0x452dd1(0xb3)](helper[_0x452dd1(0xba)](_0xf49d53,'_'),'_'+Date[_0x452dd1(0xb4)]());_0x28689f&&(_0x590db3+='_'+_0x28689f);if(_0x28689f&&(!_0x2f11b6[_0x3ca5a6[_0x452dd1(0xae)]]||!_0x2f11b6[_0x3ca5a6[_0x452dd1(0xae)]][_0x28689f]))return;const _0x1b2561={..._0x3de9a3};_0x1b2561['desiredCapabilities']=_0xf49d53;const _0x5ef70f=_0x1b2561;_0x1f8e0b[_0x590db3]=_0x28689f?helper[_0x452dd1(0x79)](_0x2f11b6[_0x3ca5a6[_0x452dd1(0xae)]][_0x28689f],_0x5ef70f):_0x5ef70f,_0x59bcad[_0x452dd1(0x92)](_0x590db3);});});!_0x41768a[_0x57042c(0x87)]&&(_0x41768a[_0x57042c(0x87)]={});_0x41768a[_0x57042c(0x87)]={..._0x41768a[_0x57042c(0x87)],..._0x1f8e0b};const _0x150b1b=path[_0x57042c(0xa9)](__dirname,_0x3ca5a6[_0x57042c(0x9a)]);fs[_0x57042c(0x84)](_0x150b1b,JSON[_0x57042c(0x88)](_0x41768a)),_0x3ca5a6[_0x57042c(0xa3)](removeExistingEnvs,_0x27412e);const _0x5d35b7=_0x3ca5a6[_0x57042c(0xac)](spawn,/^win/[_0x57042c(0xad)](process['platform'])?_0x3ca5a6[_0x57042c(0xb1)]:_0x3ca5a6['CBuFG'],[_0x3ca5a6[_0x57042c(0xaa)],_0x150b1b,..._0x27412e['slice'](0x1),_0x3ca5a6[_0x57042c(0xb5)],_0x59bcad[_0x57042c(0xa9)](',')],{'stdio':_0x3ca5a6[_0x57042c(0x8d)]});_0x5d35b7['on'](_0x3ca5a6[_0x57042c(0x7a)],async _0x4098fa=>{const _0x3df637=_0x57042c;logger[_0x3df637(0xb9)]('child\x20process\x20exited\x20with\x20code\x20'+_0x4098fa),logger[_0x3df637(0x83)](_0x3df637(0x94)+_0x150b1b),fs[_0x3df637(0x96)](_0x150b1b);});}module[a33_0x5a5d0a(0xab)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x40c274=a34_0x1586;(function(_0x3bdea4,_0x5a1e30){const _0x2dbac9=a34_0x1586,_0x3bbd19=_0x3bdea4();while(!![]){try{const _0x368514=parseInt(_0x2dbac9(0x75))/0x1+-parseInt(_0x2dbac9(0x85))/0x2+parseInt(_0x2dbac9(0x6e))/0x3*(parseInt(_0x2dbac9(0xbb))/0x4)+-parseInt(_0x2dbac9(0x8f))/0x5*(-parseInt(_0x2dbac9(0x86))/0x6)+-parseInt(_0x2dbac9(0x6f))/0x7*(parseInt(_0x2dbac9(0x8d))/0x8)+parseInt(_0x2dbac9(0x6d))/0x9+parseInt(_0x2dbac9(0x84))/0xa*(parseInt(_0x2dbac9(0xa5))/0xb);if(_0x368514===_0x5a1e30)break;else _0x3bbd19['push'](_0x3bbd19['shift']());}catch(_0x21f01e){_0x3bbd19['push'](_0x3bbd19['shift']());}}}(a34_0x2b32,0x2bce5));const util=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a34_0x40c274(0x6c)),scripts=require('../../helpers/accessibility-automation/scripts');exports[a34_0x40c274(0x7c)]=async(_0x4ba149,_0xd44456,_0x38a43f={})=>{const _0x1c7d6e=a34_0x40c274,_0xd4474f={};_0xd4474f['hAJaR']='bstackSdkArgs';const _0x4a5ceb=_0xd4474f;return await _0x4ba149[_0x1c7d6e(0xc6)]('(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'+_0xd44456[_0x1c7d6e(0xc0)](/arguments/g,_0x4a5ceb[_0x1c7d6e(0x92)])+_0x1c7d6e(0x96)+JSON[_0x1c7d6e(0xbe)](_0x38a43f)+')');},exports[a34_0x40c274(0xb3)]=async(_0xb5b998,_0x42df22,_0x4dafa4={})=>{const _0x521364=a34_0x40c274,_0xcf70a8={};_0xcf70a8[_0x521364(0xb0)]=function(_0x4b437b,_0x1d89d2){return _0x4b437b===_0x1d89d2;},_0xcf70a8[_0x521364(0x66)]=_0x521364(0x9d),_0xcf70a8[_0x521364(0x87)]=function(_0xd1e256,_0xcd3dd6){return _0xd1e256===_0xcd3dd6;},_0xcf70a8[_0x521364(0xab)]=_0x521364(0x79),_0xcf70a8[_0x521364(0x9c)]=_0x521364(0xc3);const _0x2a89c1=_0xcf70a8;if(_0x2a89c1[_0x521364(0xb0)](_0xb5b998[_0x521364(0xb8)][_0x521364(0xa9)],_0x2a89c1[_0x521364(0x66)]))return await _0xb5b998[_0x521364(0x73)](_0x42df22,_0x4dafa4);else{if(_0x2a89c1[_0x521364(0x87)](_0xb5b998[_0x521364(0xb8)][_0x521364(0xa9)],_0x2a89c1['TMucT']))return await _0xb5b998[_0x521364(0x72)](_0x521364(0xa4)+_0x42df22[_0x521364(0xc0)](/arguments/g,_0x2a89c1['CaVFp'])+_0x521364(0xa7)+JSON[_0x521364(0xbe)](_0x4dafa4)+')');}},exports[a34_0x40c274(0xb6)]=async _0x2cc19f=>{const _0x37d1fa=a34_0x40c274,_0x5d277e={};_0x5d277e[_0x37d1fa(0x80)]='accessibilityOptions.wcagVersion',_0x5d277e[_0x37d1fa(0xc5)]='accessibilityOptions.scannerProcessingTimeout',_0x5d277e['njsVR']=_0x37d1fa(0xb7),_0x5d277e[_0x37d1fa(0xa2)]=_0x37d1fa(0xac),_0x5d277e[_0x37d1fa(0xb5)]=_0x37d1fa(0xa8),_0x5d277e[_0x37d1fa(0xc8)]=_0x37d1fa(0xbc);const _0xf77b6b=_0x5d277e;_0x2cc19f[_0x37d1fa(0xb4)]&&(_0x2cc19f[_0x37d1fa(0xb4)][_0x37d1fa(0x91)]&&(_0x2cc19f[_0xf77b6b[_0x37d1fa(0x80)]]=_0x2cc19f['accessibilityOptions'][_0x37d1fa(0x91)]),_0x2cc19f['accessibilityOptions'][_0x37d1fa(0x97)]&&(_0x2cc19f[_0xf77b6b[_0x37d1fa(0xc5)]]=_0x2cc19f[_0x37d1fa(0xb4)]['scannerProcessingTimeout']),_0x2cc19f[_0x37d1fa(0xb4)][_0x37d1fa(0x99)]&&(_0x2cc19f[_0xf77b6b['njsVR']]=_0x2cc19f[_0x37d1fa(0xb4)]['includeIssueType'][_0x37d1fa(0x7f)],_0x2cc19f[_0xf77b6b[_0x37d1fa(0xa2)]]=_0x2cc19f[_0x37d1fa(0xb4)][_0x37d1fa(0x99)]['needsReview']));const _0x1b41cd=JSON[_0x37d1fa(0xa0)](process[_0x37d1fa(0xb1)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x37d1fa(0x67)];_0x2cc19f[_0xf77b6b[_0x37d1fa(0xb5)]]=process[_0x37d1fa(0xb1)][_0x37d1fa(0x7e)],_0x2cc19f[_0xf77b6b[_0x37d1fa(0xc8)]]=_0x1b41cd,delete _0x2cc19f[_0x37d1fa(0xb4)];},exports[a34_0x40c274(0xa6)]=async _0x466eef=>{const _0x2ecc0a=a34_0x40c274,_0xaaf81e={};_0xaaf81e[_0x2ecc0a(0x8b)]='No\x20accessibility\x20results\x20were\x20found.',_0xaaf81e[_0x2ecc0a(0xbd)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x559788=_0xaaf81e;if(global[_0x2ecc0a(0x83)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x466eef,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x466eef,scripts.getResults);return res;}catch{return logger['error'](_0x559788[_0x2ecc0a(0x8b)]),[];}else return logger[_0x2ecc0a(0xa1)](_0x559788['AHNzx']),[];},exports['performScan']=async(_0x4aea82,_0x31c8d3='')=>{const _0x3d93c8=a34_0x40c274;if(global[_0x3d93c8(0x83)]){const _0x29838d={};return _0x29838d[_0x3d93c8(0xad)]=_0x31c8d3,await exports['browserStackEvaluate'](_0x4aea82,scripts[_0x3d93c8(0xc2)],_0x29838d);}},exports[a34_0x40c274(0x98)]=async _0x19aa67=>{const _0x1c83f4=a34_0x40c274,_0x10e18b={};_0x10e18b['rEgEl']=_0x1c83f4(0x9a),_0x10e18b['lvjdq']=_0x1c83f4(0xc1);const _0x47d4c9=_0x10e18b;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x19aa67,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x19aa67,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x1c83f4(0xa3)](_0x47d4c9[_0x1c83f4(0x6b)]),{};}else return logger['warn'](_0x47d4c9['lvjdq']),{};},exports['platformValidation']=async _0x524256=>{const _0x3e05d0=a34_0x40c274,_0x3147fd={'pkhNB':function(_0x18a128,_0xec9374){return _0x18a128!==_0xec9374;},'mjpEn':_0x3e05d0(0x70),'jBYWt':function(_0x55d3ad,_0x493d9a){return _0x55d3ad===_0x493d9a;},'LYCko':_0x3e05d0(0x7b),'rPGsL':function(_0x363b49,_0x12f0f4){return _0x363b49===_0x12f0f4;},'xGIvs':_0x3e05d0(0x76),'AIHXw':_0x3e05d0(0xc4),'rwoXC':function(_0x58b67b,_0x2f1434){return _0x58b67b(_0x2f1434);},'GhUgo':_0x3e05d0(0x71),'raMtl':function(_0x3afd1c,_0xdf2632){return _0x3afd1c>_0xdf2632;},'ODMWG':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x3147fd['pkhNB'](_0x524256[_0x3e05d0(0xaf)],''))return logger['warn'](_0x3147fd[_0x3e05d0(0x9f)]),![];const _0x1c4beb=_0x524256['browser'];if(!(_0x3147fd[_0x3e05d0(0x78)](_0x1c4beb,_0x3147fd['LYCko'])||_0x3147fd[_0x3e05d0(0x6a)](_0x1c4beb,_0x3147fd['xGIvs'])))return logger[_0x3e05d0(0xa1)](_0x3147fd[_0x3e05d0(0xae)]),![];const _0x4eba17=_0x3147fd[_0x3e05d0(0x9e)](parseInt,_0x524256[_0x3e05d0(0x8c)]);if(!(_0x3147fd[_0x3e05d0(0x78)](_0x4eba17,_0x3147fd[_0x3e05d0(0x90)])||_0x3147fd[_0x3e05d0(0x89)](_0x4eba17,0x5e)))return logger[_0x3e05d0(0xa1)](_0x3147fd[_0x3e05d0(0xb2)]),![];}catch(_0x57f4e1){logger[_0x3e05d0(0xa3)](_0x3e05d0(0x9b)+util['format'](_0x57f4e1));}return!![];},exports['processAccessibilityCaps']=(_0x12184d,_0x4866cd,_0x2aaf34)=>{const _0x4adc34=a34_0x40c274,_0x2f548e={'VIEkw':function(_0x7eadd1){return _0x7eadd1();},'CSsnZ':'browserstack.accessibility','HAtlC':function(_0x14b5e7,_0x5e2ca5){return _0x14b5e7===_0x5e2ca5;},'sjCXw':_0x4adc34(0x7b),'wiJtu':'playwright-chromium','EiMkk':_0x4adc34(0xc4),'sCqoF':_0x4adc34(0x71),'sLvBd':function(_0x2bf3,_0xde46eb){return _0x2bf3>_0xde46eb;},'DXoeq':_0x4adc34(0x77),'wwqQw':function(_0x432fea,_0x1d2357){return _0x432fea(_0x1d2357);},'jarOh':_0x4adc34(0x70),'QTMAP':function(_0x32a920,_0x47367a){return _0x32a920+_0x47367a;}};try{if(_0x2f548e[_0x4adc34(0x69)](isAccessibilityAutomationSession)){global[_0x4adc34(0x83)]=!![];!_0x12184d[_0x2f548e[_0x4adc34(0x95)]]&&(global['accessibilityPlatform']=![]);!(_0x2f548e[_0x4adc34(0x81)](_0x12184d[_0x4adc34(0x7a)],_0x2f548e[_0x4adc34(0xc7)])||_0x2f548e['HAtlC'](_0x12184d[_0x4adc34(0x7a)],_0x2f548e[_0x4adc34(0x88)]))&&(logger[_0x4adc34(0xa1)](_0x2f548e[_0x4adc34(0xb9)]),global['accessibilityPlatform']=![]);!(_0x2f548e[_0x4adc34(0x81)](_0x12184d[_0x4adc34(0x8c)],_0x2f548e[_0x4adc34(0x8a)])||_0x2f548e[_0x4adc34(0x68)](_0x12184d[_0x4adc34(0x8c)],0x5e))&&(logger['warn'](_0x2f548e[_0x4adc34(0xaa)]),global['accessibilityPlatform']=![]);!_0x2f548e['wwqQw'](isUndefined,_0x12184d[_0x4adc34(0xaf)])&&(logger[_0x4adc34(0xa1)](_0x2f548e[_0x4adc34(0x93)]),global[_0x4adc34(0x83)]=![]);if(!global[_0x4adc34(0x83)]){_0x12184d[_0x2f548e[_0x4adc34(0x95)]]=![];const _0x266f5d=_0x2f548e[_0x4adc34(0x82)](_0x4866cd,_0x2f548e['wwqQw'](encodeURIComponent,JSON[_0x4adc34(0xbe)](_0x12184d)));_0x2aaf34&&(_0x2aaf34[_0x4adc34(0x74)]['testInfo'][_0x4adc34(0x94)][_0x4adc34(0x8e)]['connectOptions'][_0x4adc34(0xba)]=_0x266f5d,_0x2aaf34[_0x4adc34(0xbf)]['project'][_0x4adc34(0x8e)]['connectOptions'][_0x4adc34(0xba)]=_0x266f5d);}}}catch(_0x2ef694){logger['debug']('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x4adc34(0x7d)](_0x2ef694));}};function a34_0x1586(_0xf62fdf,_0x49c991){const _0x2b32ef=a34_0x2b32();return a34_0x1586=function(_0x1586ed,_0x397ed6){_0x1586ed=_0x1586ed-0x66;let _0xbbf93f=_0x2b32ef[_0x1586ed];return _0xbbf93f;},a34_0x1586(_0xf62fdf,_0x49c991);}function a34_0x2b32(){const _0x141df2=['executeScript','executeAsyncScript','currentTest','38122gPsdoO','playwright-chromium','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','jBYWt','Playwright','browserName','chrome','browserStackEvaluate','format','BS_A11Y_JWT','bestPractice','vBpDi','HAtlC','QTMAP','accessibilityPlatform','30JFbhIp','195572cMGwpY','186CqvhGT','wEWIT','wiJtu','raMtl','sCqoF','iJzkp','browser_version','2085992HSYVth','use','3190lKAZNu','GhUgo','wcagVersion','hAJaR','jarOh','project','CSsnZ','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','scannerProcessingTimeout','getAccessibilityResultsSummary','includeIssueType','No\x20summaryResults\x20found.','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','CaVFp','WebDriver','rwoXC','mjpEn','parse','warn','pmgQe','debug','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','860673mJTmhQ','getAccessibilityResults','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','accessibilityOptions.authToken','name','DXoeq','TMucT','accessibilityOptions.includeIssueType.needsReview','method','AIHXw','deviceName','VIOoN','env','ODMWG','browserStackExecuteDriver','accessibilityOptions','goUtS','setAccessibilityCapabilities','accessibilityOptions.includeIssueType.bestPractice','constructor','EiMkk','wsEndpoint','2096vYxmye','accessibilityOptions.scannerVersion','AHNzx','stringify','workerInfo','replace','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','performScan','bstackSdkArgs','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','UoLcl','evaluate','sjCXw','oViKN','ztdjP','scannerVersion','sLvBd','VIEkw','rPGsL','rEgEl','../../helpers/helper','71667PcMLIW','1359HsPZzC','7WpKeLO','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','latest'];a34_0x2b32=function(){return _0x141df2;};return a34_0x2b32();}
|
|
1
|
+
function a34_0x2eaf(_0x497612,_0x33a4bd){const _0x59c3ea=a34_0x59c3();return a34_0x2eaf=function(_0x2eaf6f,_0x2983ea){_0x2eaf6f=_0x2eaf6f-0xd7;let _0x54a639=_0x59c3ea[_0x2eaf6f];return _0x54a639;},a34_0x2eaf(_0x497612,_0x33a4bd);}const a34_0x107325=a34_0x2eaf;(function(_0x59d2dd,_0x75e084){const _0x5879d6=a34_0x2eaf,_0x40826b=_0x59d2dd();while(!![]){try{const _0x447f83=parseInt(_0x5879d6(0x11f))/0x1*(parseInt(_0x5879d6(0xee))/0x2)+-parseInt(_0x5879d6(0xfd))/0x3*(parseInt(_0x5879d6(0xe2))/0x4)+-parseInt(_0x5879d6(0xdf))/0x5+parseInt(_0x5879d6(0xe9))/0x6+-parseInt(_0x5879d6(0x128))/0x7+-parseInt(_0x5879d6(0xe8))/0x8+parseInt(_0x5879d6(0x10c))/0x9;if(_0x447f83===_0x75e084)break;else _0x40826b['push'](_0x40826b['shift']());}catch(_0x5a54ed){_0x40826b['push'](_0x40826b['shift']());}}}(a34_0x59c3,0x4c924));function a34_0x59c3(){const _0x50ceed=['Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','JNlyy','bstackSdkArgs','platformValidation','performScan','project','../../helpers/logger','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','ssduw','kzbhd','evaluate','browserName','Wmgwr','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','No\x20accessibility\x20results\x20were\x20found.','xxQCN','kYOZI','BKamO','accessibilityOptions','testInfo','KuFGr','455860Pmulec','deviceName','needsReview','49116khQloO','ALhbo','dStFn','workerInfo','warn','NtkFQ','3460984BcnjOQ','1431168sKXXME','DUcMn','accessibilityOptions.scannerVersion','processAccessibilityCaps','stringify','2108Oxzsev','eojOG','browser_version','includeIssueType','../../helpers/accessibility-automation/helper','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','accessibilityOptions.includeIssueType.needsReview','wcagVersion','azzlh','latest','NyWSB','qEWZB','BS_A11Y_JWT','FUpgz','browser','21AvtRNn','geRlN','chrome','../../helpers/accessibility-automation/scripts','error','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','format','BIKBe','wajgr','../../helpers/helper','rBIvU','mIKVk','use','PoOwe','accessibilityPlatform','3187494NtvyFK','kvwka','playwright-chromium','cNDwL','nqUgM','method','replace','Playwright','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','accessibilityOptions.scannerProcessingTimeout','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','constructor','name','util','browserStackEvaluate','ezjPB','executeAsyncScript','cDqdh','winstonLogger','542nAIenK','env','executeScript','scannerProcessingTimeout','Qbzif','getAccessibilityResults','accessibilityOptions.includeIssueType.bestPractice','debug','tcxyW','1684046iPGjmZ','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','setAccessibilityCapabilities','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','MxXTS','XCtHN','mIRiO','ULvXN'];a34_0x59c3=function(){return _0x50ceed;};return a34_0x59c3();}const util=require(a34_0x107325(0x119)),logger=require(a34_0x107325(0x136))[a34_0x107325(0x11e)],{isAccessibilityAutomationSession}=require(a34_0x107325(0xf2)),{isUndefined}=require(a34_0x107325(0x106)),scripts=require(a34_0x107325(0x100));exports['browserStackEvaluate']=async(_0x3fe016,_0x278990,_0x34283a={})=>{const _0xb06b22=a34_0x107325,_0x1fd6ae={};_0x1fd6ae[_0xb06b22(0x10a)]=_0xb06b22(0x132);const _0xd78789=_0x1fd6ae;return await _0x3fe016[_0xb06b22(0x13a)](_0xb06b22(0xd7)+_0x278990[_0xb06b22(0x112)](/arguments/g,_0xd78789[_0xb06b22(0x10a)])+_0xb06b22(0xf3)+JSON[_0xb06b22(0xed)](_0x34283a)+')');},exports['browserStackExecuteDriver']=async(_0x36e10a,_0xf48205,_0x2f3a9c={})=>{const _0x481d5b=a34_0x107325,_0x10f6f6={};_0x10f6f6[_0x481d5b(0x13c)]=function(_0x28ac6a,_0x501fcb){return _0x28ac6a===_0x501fcb;},_0x10f6f6['RgBJC']='WebDriver',_0x10f6f6[_0x481d5b(0xe3)]=function(_0x1b4179,_0x254c62){return _0x1b4179===_0x254c62;},_0x10f6f6[_0x481d5b(0x11d)]=_0x481d5b(0x113),_0x10f6f6[_0x481d5b(0x12c)]=_0x481d5b(0x132);const _0x170a6b=_0x10f6f6;if(_0x170a6b[_0x481d5b(0x13c)](_0x36e10a[_0x481d5b(0x117)]['name'],_0x170a6b['RgBJC']))return await _0x36e10a[_0x481d5b(0x11c)](_0xf48205,_0x2f3a9c);else{if(_0x170a6b[_0x481d5b(0xe3)](_0x36e10a[_0x481d5b(0x117)][_0x481d5b(0x118)],_0x170a6b['cDqdh']))return await _0x36e10a[_0x481d5b(0x121)](_0x481d5b(0x129)+_0xf48205[_0x481d5b(0x112)](/arguments/g,_0x170a6b[_0x481d5b(0x12c)])+_0x481d5b(0x102)+JSON[_0x481d5b(0xed)](_0x2f3a9c)+')');}},exports[a34_0x107325(0x12a)]=async _0xc876d0=>{const _0xfd7f5b=a34_0x107325,_0x2bdb72={};_0x2bdb72['tDDSG']='accessibilityOptions.wcagVersion',_0x2bdb72[_0xfd7f5b(0xde)]=_0xfd7f5b(0x115),_0x2bdb72[_0xfd7f5b(0xfb)]=_0xfd7f5b(0x125),_0x2bdb72[_0xfd7f5b(0x105)]=_0xfd7f5b(0xf4),_0x2bdb72[_0xfd7f5b(0x108)]='accessibilityOptions.authToken',_0x2bdb72[_0xfd7f5b(0x10f)]=_0xfd7f5b(0xeb);const _0x2e9ebe=_0x2bdb72;_0xc876d0[_0xfd7f5b(0xdc)]&&(_0xc876d0['accessibilityOptions'][_0xfd7f5b(0xf5)]&&(_0xc876d0[_0x2e9ebe['tDDSG']]=_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0xf5)]),_0xc876d0[_0xfd7f5b(0xdc)]['scannerProcessingTimeout']&&(_0xc876d0[_0x2e9ebe[_0xfd7f5b(0xde)]]=_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0x122)]),_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0xf1)]&&(_0xc876d0[_0x2e9ebe[_0xfd7f5b(0xfb)]]=_0xc876d0[_0xfd7f5b(0xdc)]['includeIssueType']['bestPractice'],_0xc876d0[_0x2e9ebe[_0xfd7f5b(0x105)]]=_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0xf1)][_0xfd7f5b(0xe1)]));const _0x100f72=JSON['parse'](process[_0xfd7f5b(0x120)][_0xfd7f5b(0x116)])['scannerVersion'];_0xc876d0[_0x2e9ebe[_0xfd7f5b(0x108)]]=process['env'][_0xfd7f5b(0xfa)],_0xc876d0[_0x2e9ebe[_0xfd7f5b(0x10f)]]=_0x100f72,delete _0xc876d0['accessibilityOptions'];},exports[a34_0x107325(0x124)]=async _0x5dce94=>{const _0x2c54c2=a34_0x107325,_0x41bd7b={};_0x41bd7b[_0x2c54c2(0x12d)]=_0x2c54c2(0xd8),_0x41bd7b[_0x2c54c2(0x127)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x36c5b9=_0x41bd7b;if(global[_0x2c54c2(0x10b)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x5dce94,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x5dce94,scripts.getResults);return res;}catch{return logger[_0x2c54c2(0x101)](_0x36c5b9[_0x2c54c2(0x12d)]),[];}else return logger['warn'](_0x36c5b9['tcxyW']),[];},exports[a34_0x107325(0x134)]=async(_0x366450,_0x13316e='')=>{const _0x4317cf=a34_0x107325;if(global['accessibilityPlatform']){const _0x22a5fb={};return _0x22a5fb[_0x4317cf(0x111)]=_0x13316e,await exports[_0x4317cf(0x11a)](_0x366450,scripts['performScan'],_0x22a5fb);}},exports['getAccessibilityResultsSummary']=async _0xc62f33=>{const _0x950585=a34_0x107325,_0x28349c={};_0x28349c[_0x950585(0xe7)]='No\x20summaryResults\x20found.',_0x28349c[_0x950585(0x138)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x2ef8d8=_0x28349c;if(global[_0x950585(0x10b)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0xc62f33,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0xc62f33,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x2ef8d8['NtkFQ']),{};}else return logger['warn'](_0x2ef8d8[_0x950585(0x138)]),{};},exports[a34_0x107325(0x133)]=async _0x4f695b=>{const _0x5b830a=a34_0x107325,_0x27126f={'eojOG':function(_0x561529,_0x5c46c2){return _0x561529!==_0x5c46c2;},'JNlyy':_0x5b830a(0x130),'RwmCh':function(_0x5f2c01,_0x35ae4f){return _0x5f2c01===_0x35ae4f;},'rBIvU':_0x5b830a(0xff),'ezjPB':function(_0x4a2c42,_0x5d4e3a){return _0x4a2c42===_0x5d4e3a;},'kYOZI':_0x5b830a(0x10e),'mIRiO':_0x5b830a(0x114),'ULvXN':function(_0xbbec46,_0x33d5b5){return _0xbbec46(_0x33d5b5);},'Qbzif':function(_0x236c04,_0x46a899){return _0x236c04===_0x46a899;},'UbJYH':_0x5b830a(0xf7),'DUcMn':function(_0xaf1e24,_0x30c2d1){return _0xaf1e24>_0x30c2d1;},'FkktQ':_0x5b830a(0x12b)};try{if(!_0x27126f[_0x5b830a(0xef)](_0x4f695b[_0x5b830a(0xe0)],''))return logger[_0x5b830a(0xe6)](_0x27126f[_0x5b830a(0x131)]),![];const _0x1745ef=_0x4f695b[_0x5b830a(0xfc)];if(!(_0x27126f['RwmCh'](_0x1745ef,_0x27126f[_0x5b830a(0x107)])||_0x27126f[_0x5b830a(0x11b)](_0x1745ef,_0x27126f[_0x5b830a(0xda)])))return logger['warn'](_0x27126f[_0x5b830a(0x12e)]),![];const _0x2a9ec2=_0x27126f[_0x5b830a(0x12f)](parseInt,_0x4f695b[_0x5b830a(0xf0)]);if(!(_0x27126f[_0x5b830a(0x123)](_0x2a9ec2,_0x27126f['UbJYH'])||_0x27126f[_0x5b830a(0xea)](_0x2a9ec2,0x5e)))return logger[_0x5b830a(0xe6)](_0x27126f['FkktQ']),![];}catch(_0x2778b5){logger[_0x5b830a(0x126)](_0x5b830a(0x137)+util['format'](_0x2778b5));}return!![];},exports[a34_0x107325(0xec)]=(_0x137944,_0xf02ce7,_0x304240)=>{const _0x577cab=a34_0x107325,_0x1bf12c={'azzlh':function(_0x54124c){return _0x54124c();},'nqUgM':'browserstack.accessibility','qEWZB':function(_0x1b3cbc,_0x3ab57b){return _0x1b3cbc===_0x3ab57b;},'dStFn':_0x577cab(0xff),'geRlN':function(_0x143283,_0x3e8a4c){return _0x143283===_0x3e8a4c;},'NyWSB':_0x577cab(0x10e),'xxQCN':_0x577cab(0x114),'fmEjm':'latest','MxTcV':function(_0x19c973,_0x12704d){return _0x19c973>_0x12704d;},'kzbhd':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','BIKBe':function(_0x483f24,_0x2a63fe){return _0x483f24(_0x2a63fe);},'kvwka':_0x577cab(0x130),'BKamO':function(_0x3ed647,_0x2dc3f8){return _0x3ed647+_0x2dc3f8;}};try{if(_0x1bf12c[_0x577cab(0xf6)](isAccessibilityAutomationSession)){global[_0x577cab(0x10b)]=!![];!_0x137944[_0x1bf12c[_0x577cab(0x110)]]&&(global[_0x577cab(0x10b)]=![]);!(_0x1bf12c[_0x577cab(0xf9)](_0x137944[_0x577cab(0x13b)],_0x1bf12c[_0x577cab(0xe4)])||_0x1bf12c[_0x577cab(0xfe)](_0x137944[_0x577cab(0x13b)],_0x1bf12c[_0x577cab(0xf8)]))&&(logger['warn'](_0x1bf12c[_0x577cab(0xd9)]),global[_0x577cab(0x10b)]=![]);!(_0x1bf12c[_0x577cab(0xf9)](_0x137944[_0x577cab(0xf0)],_0x1bf12c['fmEjm'])||_0x1bf12c['MxTcV'](_0x137944[_0x577cab(0xf0)],0x5e))&&(logger[_0x577cab(0xe6)](_0x1bf12c[_0x577cab(0x139)]),global[_0x577cab(0x10b)]=![]);!_0x1bf12c[_0x577cab(0x104)](isUndefined,_0x137944[_0x577cab(0xe0)])&&(logger[_0x577cab(0xe6)](_0x1bf12c[_0x577cab(0x10d)]),global[_0x577cab(0x10b)]=![]);if(!global[_0x577cab(0x10b)]){_0x137944[_0x1bf12c[_0x577cab(0x110)]]=![];const _0x714a14=_0x1bf12c[_0x577cab(0xdb)](_0xf02ce7,_0x1bf12c[_0x577cab(0x104)](encodeURIComponent,JSON[_0x577cab(0xed)](_0x137944)));_0x304240&&(_0x304240['currentTest'][_0x577cab(0xdd)][_0x577cab(0x135)][_0x577cab(0x109)]['connectOptions']['wsEndpoint']=_0x714a14,_0x304240[_0x577cab(0xe5)][_0x577cab(0x135)][_0x577cab(0x109)]['connectOptions']['wsEndpoint']=_0x714a14);}}}catch(_0x23713d){logger[_0x577cab(0x126)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x577cab(0x103)](_0x23713d));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a35_0x3d5d(_0x87f29d,_0x4f11d7){const _0x88eb73=a35_0x88eb();return a35_0x3d5d=function(_0x3d5d70,_0x506a77){_0x3d5d70=_0x3d5d70-0x10d;let _0x4dfa56=_0x88eb73[_0x3d5d70];return _0x4dfa56;},a35_0x3d5d(_0x87f29d,_0x4f11d7);}const a35_0x330c14=a35_0x3d5d;(function(_0x96981d,_0x549b8c){const _0x27ccb9=a35_0x3d5d,_0x1262ab=_0x96981d();while(!![]){try{const _0x533ac1=parseInt(_0x27ccb9(0x166))/0x1*(-parseInt(_0x27ccb9(0x137))/0x2)+-parseInt(_0x27ccb9(0x132))/0x3+-parseInt(_0x27ccb9(0x18e))/0x4+-parseInt(_0x27ccb9(0x116))/0x5*(parseInt(_0x27ccb9(0x18b))/0x6)+parseInt(_0x27ccb9(0x170))/0x7+parseInt(_0x27ccb9(0x1af))/0x8+parseInt(_0x27ccb9(0x163))/0x9;if(_0x533ac1===_0x549b8c)break;else _0x1262ab['push'](_0x1262ab['shift']());}catch(_0x16ba4d){_0x1262ab['push'](_0x1262ab['shift']());}}}(a35_0x88eb,0x71df3));const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x330c14(0x157)),{format}=require(a35_0x330c14(0x1b3)),logger=require(a35_0x330c14(0x15f))[a35_0x330c14(0x140)],{default:BrowserStackSetup}=require(a35_0x330c14(0x1a3)),helper=require(a35_0x330c14(0x14d)),utilities=require('../../helpers/utilities'),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0x330c14(0x151)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x330c14(0x1a0)),{CrashReporter}=require(a35_0x330c14(0x194)),{getFrameworkVersion}=require(a35_0x330c14(0x18f)),{checkAccessibilityPlatformConfig}=require(a35_0x330c14(0x18c)),{setAccessibilityCapabilities}=require(a35_0x330c14(0x1a2)),TestHubHandler=require(a35_0x330c14(0x138)),{shouldProcessEventForTesthub}=require(a35_0x330c14(0x13d)),getUserPlaywrightConfig=async(_0x3d154c,_0x3c8572)=>{const _0x492b11=a35_0x330c14,_0x287106={'emBDy':function(_0x409765){return _0x409765();},'WYhpY':function(_0x20c5b5,_0x2ddd16){return _0x20c5b5(_0x2ddd16);},'sLuJu':function(_0xe02d39,_0x596f50){return _0xe02d39(_0x596f50);},'BGzMT':_0x492b11(0x133),'wCcpK':_0x492b11(0x143)},_0x2192c2=!helper['isUndefined'](_0x3d154c[_0x492b11(0x12e)]),_0x1157f3=_0x2192c2?path[_0x492b11(0x136)](process[_0x492b11(0x174)](),_0x3d154c[_0x492b11(0x12e)]):process[_0x492b11(0x174)](),{resolveConfigFile:_0x33bef8,resolveConfigLocation:_0x56b37d}=helper[_0x492b11(0x16e)][_0x492b11(0x12c)](null,_0x287106[_0x492b11(0x150)](getConfigLoaderPath)),_0x89d9ec=_0x33bef8?_0x287106[_0x492b11(0x17a)](_0x33bef8,_0x1157f3):helper[_0x492b11(0x162)](_0x287106[_0x492b11(0x122)](_0x56b37d,_0x1157f3),[_0x287106[_0x492b11(0x13f)]]),_0x375d8d={};if(_0x2192c2){const _0x294fde=_0x3c8572[_0x492b11(0x15c)](_0x17c20a=>_0x17c20a===_0x492b11(0x11f)||_0x17c20a==='-c'||_0x17c20a[_0x492b11(0x12b)](_0x492b11(0x143)));_0x3c8572[_0x492b11(0x1a9)](_0x294fde,_0x3c8572[_0x294fde][_0x492b11(0x12b)](_0x287106[_0x492b11(0x14e)])?0x1:0x2);}const _0x346598={};return _0x346598[_0x492b11(0x188)]=_0x89d9ec,_0x346598['config']=_0x375d8d,_0x346598;},handleO11yRerun=_0x405317=>{const _0x5742bd=a35_0x330c14,_0x275829={};_0x275829[_0x5742bd(0x15d)]=function(_0xa55f08,_0xd4e0ee){return _0xa55f08!==_0xd4e0ee;},_0x275829['DgYjw']=_0x5742bd(0x197),_0x275829[_0x5742bd(0x160)]='--grep';const _0x55a378=_0x275829,_0x4c1add=helper[_0x5742bd(0x17f)](process[_0x5742bd(0x16c)][_0x5742bd(0x173)]);if(_0x4c1add){const _0xa64796=process['env'][_0x5742bd(0x1b0)],_0x57f2a4=[];if(_0x55a378[_0x5742bd(0x15d)](_0xa64796,_0x55a378[_0x5742bd(0x15e)])&&!helper['isUndefined'](_0xa64796)){_0xa64796[_0x5742bd(0x10d)](',')[_0x5742bd(0x155)](_0x3f98db=>{const _0x5c3d36=_0x5742bd;_0x57f2a4[_0x5c3d36(0x180)]('('+_0x3f98db['trim']()+')');});const _0x33b55c='^'+_0x57f2a4[_0x5742bd(0x193)]('|')+'$';_0x405317['push'](_0x55a378['Dkbdr'],_0x33b55c);}}},spawnOriginalProcess=_0x2e38d0=>{const _0x42afa6=a35_0x330c14,_0x916ebc={'MmnwV':function(_0x17c777,_0xe3aff8,_0x5de025,_0x42484b){return _0x17c777(_0xe3aff8,_0x5de025,_0x42484b);},'pEsTf':_0x42afa6(0x152),'GMMfN':_0x42afa6(0x18d),'EoJfO':function(_0x4bfe8c,_0xea0f5e){return _0x4bfe8c===_0xea0f5e;},'rCflT':_0x42afa6(0x127),'nOcYq':_0x42afa6(0x190)};_0x916ebc['MmnwV'](spawn,_0x916ebc[_0x42afa6(0x16d)],[_0x916ebc['GMMfN'],..._0x2e38d0[_0x42afa6(0x19b)](0x1)],{'shell':_0x916ebc[_0x42afa6(0x19d)](process[_0x42afa6(0x1a8)],_0x916ebc['rCflT']),'stdio':_0x916ebc[_0x42afa6(0x118)],'cwd':process[_0x42afa6(0x174)]()});},isTestCommand=(_0x1d1dd4,_0x27a26d)=>{const _0x18bfc8=a35_0x330c14,_0x1790da={};_0x1790da['ViMrC']=function(_0x3e7b6e,_0x28b38f){return _0x3e7b6e>_0x28b38f;},_0x1790da[_0x18bfc8(0x158)]=function(_0x3a4987,_0x5563f7){return _0x3a4987===_0x5563f7;},_0x1790da[_0x18bfc8(0x177)]=_0x18bfc8(0x1ad);const _0x471665=_0x1790da;if(_0x471665[_0x18bfc8(0x195)](_0x27a26d[_0x18bfc8(0x15b)],0x1)&&_0x471665[_0x18bfc8(0x158)](_0x27a26d[0x1],_0x471665['IjfWp']))return!![];return![];};async function run(_0x3666e3,_0x2ac19a){const _0x4fffdf=a35_0x330c14,_0xfefdb={'BypjY':_0x4fffdf(0x146),'zKBjr':_0x4fffdf(0x14c),'qWbFu':function(_0xfdc5c1,_0xa98593){return _0xfdc5c1+_0xa98593;},'IaBNP':_0x4fffdf(0x135),'jbhFP':_0x4fffdf(0x168),'HDtoJ':function(_0x4a89c1){return _0x4a89c1();},'EaDaV':'Error\x20in\x20closing\x20playwright','dVTBD':_0x4fffdf(0x184),'GuqoO':'false','YnoZW':'--disable-test-observability','dghFC':function(_0x30190b,_0x5a6f3f){return _0x30190b>=_0x5a6f3f;},'lsEyk':function(_0x18325c,_0x3fceaa){return _0x18325c+_0x3fceaa;},'eUILE':_0x4fffdf(0x178),'oCpVs':function(_0x253f01,_0x8eeac1,_0x5c330e){return _0x253f01(_0x8eeac1,_0x5c330e);},'Gpmrn':function(_0x48a0b8,_0x1d753a){return _0x48a0b8(_0x1d753a);},'ikpKw':_0x4fffdf(0x19f),'hOKyd':_0x4fffdf(0x142),'ZMNND':function(_0x279adb,_0x800f1){return _0x279adb!=_0x800f1;},'WErkV':function(_0x5eb339,_0x126e9a,_0x4a04d8){return _0x5eb339(_0x126e9a,_0x4a04d8);},'oiBqn':function(_0x297448,_0x48d219){return _0x297448(_0x48d219);},'jqLmP':function(_0x49f761,_0xc2d72f){return _0x49f761===_0xc2d72f;},'lPcNX':_0x4fffdf(0x124),'jQuop':function(_0x224f80,_0x54f64f){return _0x224f80(_0x54f64f);},'pxFLK':_0x4fffdf(0x119),'TRmBg':function(_0x19b0c3,_0x3b0d0c){return _0x19b0c3===_0x3b0d0c;},'UuOPc':_0x4fffdf(0x171),'AYmMp':_0x4fffdf(0x14a),'vncRH':function(_0x488492,_0x22e970){return _0x488492-_0x22e970;},'aDRfF':_0x4fffdf(0x191),'ZUsgc':function(_0x155a97,_0x4b1387){return _0x155a97>_0x4b1387;},'czjoM':function(_0x3750e1,_0x1c84dc){return _0x3750e1+_0x1c84dc;},'VjjCo':function(_0xe15d02,_0x2132dd,_0x35a736,_0x4efc3b){return _0xe15d02(_0x2132dd,_0x35a736,_0x4efc3b);},'iypgI':'npx','AuZme':_0x4fffdf(0x18d),'YVutT':_0x4fffdf(0x1ad),'fGQfq':_0x4fffdf(0x11f),'ZvUWk':function(_0x5749f9,_0x4c9e69){return _0x5749f9===_0x4c9e69;},'fxwAp':_0x4fffdf(0x127),'tCfUQ':_0x4fffdf(0x190),'CIZqD':_0x4fffdf(0x1ae)};!helper[_0x4fffdf(0x111)](process[_0x4fffdf(0x16c)][_0x4fffdf(0x125)])&&(process[_0x4fffdf(0x16c)]['BROWSERSTACK_AUTOMATION']=!![]);process['argv'][_0x4fffdf(0x16b)](_0xfefdb[_0x4fffdf(0x16f)])&&(process[_0x4fffdf(0x16c)]['BROWSERSTACK_AUTOMATION']=_0xfefdb['GuqoO'],_0x2ac19a=_0x2ac19a[_0x4fffdf(0x1aa)](_0xbc260a=>_0xbc260a!==_0x4fffdf(0x184)));const _0xdaa8b8=_0x2ac19a[_0x4fffdf(0x134)](_0xfefdb['YnoZW']);_0xfefdb[_0x4fffdf(0x17c)](_0xdaa8b8,0x0)&&(process[_0x4fffdf(0x16c)][_0x4fffdf(0x12a)]=_0xfefdb[_0x4fffdf(0x182)],_0x2ac19a=_0x2ac19a['filter'](_0x159b85=>_0x159b85!==_0x4fffdf(0x120)));try{const _0xd20abe=path['join'](helper['homedir'](),_0xfefdb[_0x4fffdf(0x129)],_0xfefdb[_0x4fffdf(0x147)]);fs[_0x4fffdf(0x11d)](_0xd20abe)&&fs[_0x4fffdf(0x126)](_0xd20abe);}catch(_0x49ba9e){logger[_0x4fffdf(0x1b1)](_0xfefdb[_0x4fffdf(0x11b)](_0xfefdb[_0x4fffdf(0x192)],_0x49ba9e));}if(!_0xfefdb[_0x4fffdf(0x14f)](isTestCommand,_0x3666e3,_0x2ac19a)){_0xfefdb[_0x4fffdf(0x164)](spawnOriginalProcess,_0x2ac19a);return;}const _0x505709=new BrowserStackSetup(_0x3666e3,FRAMEWORKS['PLAYWRIGHT']);if(!_0x505709[_0x4fffdf(0x12e)]){logger[_0x4fffdf(0x199)](_0xfefdb[_0x4fffdf(0x10f)]);return;}await _0x505709[_0x4fffdf(0x156)]();!helper[_0x4fffdf(0x145)](_0x505709['cliConfig'])&&_0x505709['cliConfig'][_0x4fffdf(0x189)](_0xfefdb[_0x4fffdf(0x183)])&&(process[_0x4fffdf(0x16c)]['BROWSERSTACK_AUTOMATION']=_0x505709[_0x4fffdf(0x121)][_0x4fffdf(0x176)](_0xfefdb[_0x4fffdf(0x183)])||!![]);_0xfefdb['ZMNND'](_0x505709[_0x4fffdf(0x12e)][_0x4fffdf(0x13c)],null)&&!helper[_0x4fffdf(0x17f)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x4fffdf(0x16c)]['BROWSERSTACK_TEST_OBSERVABILITY']=process['env'][_0x4fffdf(0x12a)]||_0x505709[_0x4fffdf(0x12e)]['testObservability']);const _0x336db2=!helper[_0x4fffdf(0x111)](process[_0x4fffdf(0x16c)][_0x4fffdf(0x12a)]);let _0x1d8dba=![];_0x505709[_0x4fffdf(0x12e)][_0x4fffdf(0x196)]&&(_0x1d8dba=!![],process[_0x4fffdf(0x16c)][_0x4fffdf(0x175)]=_0x505709[_0x4fffdf(0x12e)][_0x4fffdf(0x196)]);_0x505709['config'][_0x4fffdf(0x159)]&&(process[_0x4fffdf(0x16c)][_0x4fffdf(0x169)]=JSON[_0x4fffdf(0x13b)](_0x505709['config'][_0x4fffdf(0x159)]));const _0x4340ba=_0x2ac19a[_0x4fffdf(0x130)](),_0x175d42=await _0xfefdb['WErkV'](getUserPlaywrightConfig,_0x3666e3,_0x2ac19a);if(helper[_0x4fffdf(0x145)](_0x175d42)){_0xfefdb[_0x4fffdf(0x164)](spawnOriginalProcess,_0x4340ba);return;}const _0x24b276=_0x175d42['path']?path['dirname'](_0x175d42[_0x4fffdf(0x188)]):process['cwd']();process[_0x4fffdf(0x16c)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x24b276,await TestHubHandler[_0x4fffdf(0x1a6)](FRAMEWORKS[_0x4fffdf(0x153)],_0x505709);_0x336db2&&_0xfefdb[_0x4fffdf(0x16a)](handleO11yRerun,_0x2ac19a);let _0x24d6a2=_0xfefdb[_0x4fffdf(0x1a5)](process[_0x4fffdf(0x16c)][_0x4fffdf(0x175)],_0xfefdb[_0x4fffdf(0x149)]);_0x24d6a2=_0x24d6a2||_0xfefdb[_0x4fffdf(0x1ab)](checkAccessibilityPlatformConfig,_0x505709['config']),process[_0x4fffdf(0x16c)][_0x4fffdf(0x175)]=_0x24d6a2;_0x24d6a2&&_0xfefdb[_0x4fffdf(0x1ab)](setAccessibilityCapabilities,_0x505709[_0x4fffdf(0x12e)]);const _0x1020a3=path['join'](_0x175d42[_0x4fffdf(0x188)]?path[_0x4fffdf(0x114)](_0x175d42[_0x4fffdf(0x188)]):process[_0x4fffdf(0x174)](),_0xfefdb[_0x4fffdf(0x17d)]);fs[_0x4fffdf(0x167)](_0x1020a3,helper[_0x4fffdf(0x1b4)](_0x505709[_0x4fffdf(0x12e)])),process['env'][_0x4fffdf(0x19a)]=_0x1020a3,helper[_0x4fffdf(0x165)]();let _0x74ada0='';_0xfefdb[_0x4fffdf(0x161)](helper[_0x4fffdf(0x172)](),constants[_0x4fffdf(0x11a)][_0x4fffdf(0x186)])?_0x74ada0=_0xfefdb[_0x4fffdf(0x13a)]:_0x74ada0=_0xfefdb['AYmMp'];let _0x4c45d2='';if(helper[_0x4fffdf(0x19c)](_0x175d42['path'])){_0x4c45d2='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x64855a=_0x74ada0[_0x4fffdf(0x10d)]('.');_0x64855a[_0xfefdb[_0x4fffdf(0x1b2)](_0x64855a[_0x4fffdf(0x15b)],0x1)]='ts',_0x74ada0=_0x64855a['join']('.'),logger[_0x4fffdf(0x1b1)](_0xfefdb[_0x4fffdf(0x12f)](_0xfefdb[_0x4fffdf(0x185)],_0x74ada0));}else _0x4c45d2=_0x4fffdf(0x1a1);const _0x3ac760=path['join'](_0x175d42['path']?path['dirname'](_0x175d42[_0x4fffdf(0x188)]):process[_0x4fffdf(0x174)](),_0x74ada0);let _0x47d1e2=_0x175d42[_0x4fffdf(0x188)]?_0x175d42[_0x4fffdf(0x188)]:'';_0x47d1e2=_0xfefdb[_0x4fffdf(0x12d)](_0x47d1e2['length'],0x0)?path[_0x4fffdf(0x136)](_0x47d1e2):'',process[_0x4fffdf(0x16c)]['USER_CONFIG_DETAILS_PATH']=_0x47d1e2;const _0x3bc3b8=helper['getProxyUrl'](_0x505709[_0x4fffdf(0x12e)]);_0x3bc3b8&&(_0x4c45d2=_0xfefdb[_0x4fffdf(0x11c)](_0x4fffdf(0x19e)+_0x3bc3b8+_0x4fffdf(0x11e),_0x4c45d2));helper[_0x4fffdf(0x123)]({},_0x2ac19a),fs[_0x4fffdf(0x167)](_0x3ac760,_0x4c45d2),helper['markSDKSetupComplete']();const _0x4f2f0b=_0xfefdb[_0x4fffdf(0x154)](spawn,_0xfefdb[_0x4fffdf(0x1ac)],[_0xfefdb[_0x4fffdf(0x115)],_0xfefdb[_0x4fffdf(0x1a7)],_0xfefdb[_0x4fffdf(0x131)],_0x3ac760,..._0x2ac19a['slice'](0x2)],{'shell':_0xfefdb[_0x4fffdf(0x187)](process[_0x4fffdf(0x1a8)],_0xfefdb[_0x4fffdf(0x181)]),'stdio':_0xfefdb['tCfUQ'],'cwd':process[_0x4fffdf(0x174)](),'env':Object[_0x4fffdf(0x110)]({},process[_0x4fffdf(0x16c)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x4fffdf(0x148)](_0x3666e3),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x505709[_0x4fffdf(0x12e)]['testContextOptions'][_0x4fffdf(0x179)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x505709[_0x4fffdf(0x12e)][_0x4fffdf(0x14b)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x505709['config'][_0x4fffdf(0x13e)]})}),_0x3b5da4=()=>{const _0xcf5032=_0x4fffdf;try{const _0x27f036=path['join'](helper[_0xcf5032(0x128)](),_0xfefdb[_0xcf5032(0x129)],_0xfefdb[_0xcf5032(0x147)]);if(fs[_0xcf5032(0x11d)](_0x27f036)){let _0x3861fa=fs['readFileSync'](_0x27f036);_0x3861fa=JSON[_0xcf5032(0x112)](_0x3861fa),_0x505709[_0xcf5032(0x141)]=_0x3861fa,fs['unlinkSync'](_0x27f036);}}catch(_0x5d6328){logger[_0xcf5032(0x1b1)](_0xfefdb[_0xcf5032(0x12f)](_0xfefdb['IaBNP'],_0x5d6328));}};_0x4f2f0b['on'](_0xfefdb[_0x4fffdf(0x144)],async _0x392673=>{const _0x5368a6=_0x4fffdf;try{const _0x26b0d5=_0xfefdb[_0x5368a6(0x198)][_0x5368a6(0x10d)]('|');let _0x51f2b9=0x0;while(!![]){switch(_0x26b0d5[_0x51f2b9++]){case'0':await utilities[_0x5368a6(0x10e)](_0x505709);continue;case'1':process[_0x5368a6(0x18a)]=_0x392673;continue;case'2':logger[_0x5368a6(0x1b1)](_0x5368a6(0x17b)+_0x392673);continue;case'3':await TestHubHandler[_0x5368a6(0x1a4)]();continue;case'4':logger['debug'](_0x5368a6(0x113)+_0x1020a3);continue;case'5':_0xfefdb[_0x5368a6(0x117)](_0x3b5da4);continue;case'6':logger[_0x5368a6(0x17e)](_0x5368a6(0x113)+_0x3ac760);continue;case'7':fs[_0x5368a6(0x126)](_0x1020a3);continue;case'8':fs[_0x5368a6(0x126)](_0x3ac760);continue;}break;}}catch(_0x2845d0){logger['debug'](_0xfefdb[_0x5368a6(0x12f)](_0xfefdb[_0x5368a6(0x15a)],_0x2845d0));}});}module[a35_0x330c14(0x139)]=run;function a35_0x88eb(){const _0x536b4c=['2361640MmRECW','BROWSERSTACK_RERUN_TESTS','debug','vncRH','util','serializeToYamlString','split','finalExecution','ikpKw','assign','isFalse','parse','Deleting\x20','dirname','AuZme','50WmWIGd','HDtoJ','nOcYq','browserstackSetupConfig.json','PACKAGE_TYPE','lsEyk','czjoM','existsSync','\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();','--config','--disable-test-observability','cliConfig','sLuJu','filterBrowserstackArgs','true','BROWSERSTACK_AUTOMATION','unlinkSync','win32','homedir','BypjY','BROWSERSTACK_TEST_OBSERVABILITY','startsWith','apply','ZUsgc','config','qWbFu','concat','fGQfq','192060vmIfka','resolvedConfigFile','indexOf','Error\x20in\x20getting\x20funnel\x20data\x20results','resolve','2wvBaHh','../../helpers/testhub/testhubHandler','exports','UuOPc','stringify','testObservability','../../helpers/testhub/utils','logLevel','BGzMT','winstonLogger','errorMessage','automation','--config=','CIZqD','isUndefined','.browserstack','zKBjr','getConfigPath','lPcNX','playwright-browserstack-sdk.config.js','testContextOptions','pw_result.json','../../helpers/helper','wCcpK','oCpVs','emBDy','../../helpers/test-observability/constants','npx','PLAYWRIGHT','VjjCo','map','initialize','child_process','zFifd','accessibilityOptions','EaDaV','length','findIndex','BiiiG','DgYjw','../../helpers/logger','Dkbdr','TRmBg','nestedKeyValue','10080720ZwMkPx','Gpmrn','clearTempPWConfig','573571kvEIZC','writeFileSync','5|3|0|1|2|6|8|4|7','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','oiBqn','includes','env','pEsTf','requirePWModule','dVTBD','3636773YhOwND','playwright-browserstack-sdk.config.cjs','getPackageType','BROWSERSTACK_RERUN','cwd','BROWSERSTACK_TEST_ACCESSIBILITY_YML','get','IjfWp','Error\x20in\x20deleting\x20playwright\x20results','skipSessionStatus','WYhpY','Playwright\x20process\x20exited\x20with\x20code\x20','dghFC','pxFLK','info','isTrue','push','fxwAp','GuqoO','hOKyd','--disable-browserstack-automation','aDRfF','MODULE','ZvUWk','path','has','exitCode','108714PHbEdk','../../helpers/accessibility-automation/helper','playwright','2598496fMUFyR','../../helpers/test-observability/utils','inherit','Updated\x20config\x20file\x20name\x20to\x20-\x20','eUILE','join','../../helpers/test-observability/error-handler','ViMrC','accessibility','null','jbhFP','error','BROWSERSTACK_SETUP_CONFIG_PATH','slice','isTypescriptProject','EoJfO','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','BrowserStack\x20config\x20file\x20not\x20found.','./reporter/pwUtils','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','./accessibility-helper','../../helpers/BrowserStackSetup','stop','jqLmP','launchBuild','YVutT','platform','splice','filter','jQuop','iypgI','test','close'];a35_0x88eb=function(){return _0x536b4c;};return a35_0x88eb();}
|
|
2
|
+
'use strict';const a35_0xa463fa=a35_0x9082;(function(_0xb6d58c,_0x2ef2e8){const _0x3d158a=a35_0x9082,_0x778dbd=_0xb6d58c();while(!![]){try{const _0x2d3193=-parseInt(_0x3d158a(0x136))/0x1*(-parseInt(_0x3d158a(0x134))/0x2)+parseInt(_0x3d158a(0x13f))/0x3*(parseInt(_0x3d158a(0x153))/0x4)+-parseInt(_0x3d158a(0x144))/0x5+-parseInt(_0x3d158a(0x148))/0x6*(parseInt(_0x3d158a(0x115))/0x7)+parseInt(_0x3d158a(0xfa))/0x8+parseInt(_0x3d158a(0x140))/0x9+-parseInt(_0x3d158a(0xdd))/0xa*(parseInt(_0x3d158a(0x111))/0xb);if(_0x2d3193===_0x2ef2e8)break;else _0x778dbd['push'](_0x778dbd['shift']());}catch(_0x3f7ed9){_0x778dbd['push'](_0x778dbd['shift']());}}}(a35_0x34e7,0xb9172));function a35_0x9082(_0x436edf,_0x340e4e){const _0x34e7c3=a35_0x34e7();return a35_0x9082=function(_0x9082f,_0x55e459){_0x9082f=_0x9082f-0xc8;let _0x20d669=_0x34e7c3[_0x9082f];return _0x20d669;},a35_0x9082(_0x436edf,_0x340e4e);}const fs=require('fs'),path=require(a35_0xa463fa(0x123)),{spawn}=require(a35_0xa463fa(0x114)),{format}=require('util'),logger=require(a35_0xa463fa(0xf4))[a35_0xa463fa(0xdb)],{default:BrowserStackSetup}=require(a35_0xa463fa(0x12d)),helper=require(a35_0xa463fa(0xd8)),utilities=require(a35_0xa463fa(0x14d)),constants=require(a35_0xa463fa(0x129)),{FRAMEWORKS}=require(a35_0xa463fa(0x13b)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0xa463fa(0x143)),{CrashReporter}=require(a35_0xa463fa(0xd3)),{getFrameworkVersion}=require(a35_0xa463fa(0x138)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require(a35_0xa463fa(0x10d)),{shouldProcessEventForTesthub}=require(a35_0xa463fa(0xf1)),getUserPlaywrightConfig=async(_0x6b1062,_0x47b0de)=>{const _0x49a89c=a35_0xa463fa,_0x127b4b={'SdvIQ':function(_0x1c2b7e){return _0x1c2b7e();},'BcALl':function(_0x59a07f,_0x4be197){return _0x59a07f(_0x4be197);},'mlDKb':_0x49a89c(0xfb),'xSgRd':_0x49a89c(0x137)},_0x306aa4=!helper[_0x49a89c(0x142)](_0x6b1062['config']),_0x3c3976=_0x306aa4?path[_0x49a89c(0x125)](process[_0x49a89c(0x118)](),_0x6b1062[_0x49a89c(0x141)]):process[_0x49a89c(0x118)](),{resolveConfigFile:_0x4896f2,resolveConfigLocation:_0x1153e1}=helper[_0x49a89c(0x151)][_0x49a89c(0xde)](null,_0x127b4b[_0x49a89c(0x150)](getConfigLoaderPath)),_0x4f84bf=_0x4896f2?_0x127b4b['BcALl'](_0x4896f2,_0x3c3976):helper[_0x49a89c(0x14b)](_0x127b4b[_0x49a89c(0x15c)](_0x1153e1,_0x3c3976),[_0x127b4b[_0x49a89c(0xd5)]]),_0x1cf123={};if(_0x306aa4){const _0x4158e4=_0x47b0de['findIndex'](_0x3523c1=>_0x3523c1===_0x49a89c(0xec)||_0x3523c1==='-c'||_0x3523c1[_0x49a89c(0xce)](_0x49a89c(0x137)));_0x47b0de[_0x49a89c(0x135)](_0x4158e4,_0x47b0de[_0x4158e4][_0x49a89c(0xce)](_0x127b4b[_0x49a89c(0x11e)])?0x1:0x2);}const _0x49c89b={};return _0x49c89b[_0x49a89c(0x123)]=_0x4f84bf,_0x49c89b[_0x49a89c(0x141)]=_0x1cf123,_0x49c89b;},handleO11yRerun=_0x49b6b8=>{const _0x282af5=a35_0xa463fa,_0xafc75e={};_0xafc75e[_0x282af5(0x11f)]=function(_0x4b7715,_0x309c75){return _0x4b7715!==_0x309c75;},_0xafc75e['Ktnyd']='null',_0xafc75e[_0x282af5(0x10e)]='--grep';const _0x37488e=_0xafc75e,_0xd1bbf7=helper[_0x282af5(0x147)](process[_0x282af5(0xd4)]['BROWSERSTACK_RERUN']);if(_0xd1bbf7){const _0x566740=process[_0x282af5(0xd4)]['BROWSERSTACK_RERUN_TESTS'],_0x2ee188=[];if(_0x37488e['OPXob'](_0x566740,_0x37488e[_0x282af5(0x15e)])&&!helper[_0x282af5(0x142)](_0x566740)){_0x566740[_0x282af5(0xe5)](',')[_0x282af5(0x10a)](_0x565635=>{const _0x2b5b79=_0x282af5;_0x2ee188[_0x2b5b79(0x158)]('('+_0x565635[_0x2b5b79(0x15f)]()+')');});const _0x26b942='^'+_0x2ee188['join']('|')+'$';_0x49b6b8[_0x282af5(0x158)](_0x37488e[_0x282af5(0x10e)],_0x26b942);}}},spawnOriginalProcess=_0x2f1997=>{const _0x1c43f0=a35_0xa463fa,_0x15938c={'VHbFq':function(_0x3237b0,_0xe4af8a,_0x261d1f,_0x31d6e6){return _0x3237b0(_0xe4af8a,_0x261d1f,_0x31d6e6);},'uqylL':_0x1c43f0(0x11c),'HFxSY':_0x1c43f0(0x11d),'LaZGK':function(_0x3d9bb4,_0x455c1c){return _0x3d9bb4===_0x455c1c;},'ygkBc':_0x1c43f0(0xda),'jTIiS':_0x1c43f0(0x112)};_0x15938c[_0x1c43f0(0x131)](spawn,_0x15938c[_0x1c43f0(0xe6)],[_0x15938c[_0x1c43f0(0x139)],..._0x2f1997[_0x1c43f0(0x11a)](0x1)],{'shell':_0x15938c[_0x1c43f0(0x15d)](process['platform'],_0x15938c[_0x1c43f0(0xf2)]),'stdio':_0x15938c[_0x1c43f0(0xc8)],'cwd':process[_0x1c43f0(0x118)]()});},isTestCommand=(_0x39d075,_0x124d88)=>{const _0xe78861=a35_0xa463fa,_0x1ce43d={};_0x1ce43d[_0xe78861(0x133)]=function(_0x3d3656,_0x5e5855){return _0x3d3656>_0x5e5855;},_0x1ce43d[_0xe78861(0xf5)]=function(_0x55206a,_0x1b75d7){return _0x55206a===_0x1b75d7;},_0x1ce43d[_0xe78861(0x164)]=_0xe78861(0xeb);const _0xa9bd4f=_0x1ce43d;if(_0xa9bd4f[_0xe78861(0x133)](_0x124d88[_0xe78861(0xf0)],0x1)&&_0xa9bd4f[_0xe78861(0xf5)](_0x124d88[0x1],_0xa9bd4f['xFfVQ']))return!![];return![];};async function run(_0xab064,_0x56fe5f){const _0x52d68c=a35_0xa463fa,_0x98f4a8={'jHKrp':'.browserstack','jbNHh':_0x52d68c(0x165),'HmrBG':function(_0x519201,_0x3d2791){return _0x519201+_0x3d2791;},'uSMQX':'Error\x20in\x20getting\x20funnel\x20data\x20results','tGRge':_0x52d68c(0x15b),'BicYb':function(_0x138711){return _0x138711();},'qdzpK':_0x52d68c(0x122),'syfwF':_0x52d68c(0x132),'XbodK':'false','IzjnT':'--disable-test-observability','glfkP':function(_0x5045ae,_0x3435a9){return _0x5045ae>=_0x3435a9;},'Uwuox':function(_0x56791f,_0x36c2e8){return _0x56791f+_0x36c2e8;},'tXAIr':_0x52d68c(0x157),'JnFFH':function(_0x345ab0,_0x313e31,_0x69d6a7){return _0x345ab0(_0x313e31,_0x69d6a7);},'jRSjF':function(_0x3b18a1,_0xa4b702){return _0x3b18a1(_0xa4b702);},'hauTQ':_0x52d68c(0xdf),'vgttr':'automation','qzbZC':function(_0x1c493f,_0x1b8eb8){return _0x1c493f!=_0x1b8eb8;},'lvbtU':function(_0xadb4a5,_0x5249b3,_0x520590){return _0xadb4a5(_0x5249b3,_0x520590);},'edlkW':function(_0xca68bc,_0x4c25a9){return _0xca68bc(_0x4c25a9);},'SAtXf':function(_0x353229,_0x2c075b){return _0x353229===_0x2c075b;},'JDLte':_0x52d68c(0x124),'tZtgn':function(_0x5aada5,_0xd7fc66){return _0x5aada5(_0xd7fc66);},'aWnXE':_0x52d68c(0xe8),'NOkOn':function(_0x522554,_0x3aa2ca){return _0x522554===_0x3aa2ca;},'gvmDe':_0x52d68c(0xfc),'qkrSo':_0x52d68c(0xe3),'Usxne':function(_0x58a308,_0x2383c5){return _0x58a308-_0x2383c5;},'FwtZW':'Updated\x20config\x20file\x20name\x20to\x20-\x20','gZKFU':function(_0x403b74,_0x227c49){return _0x403b74>_0x227c49;},'ezear':function(_0x192acd,_0x1f5d92,_0x1a34df,_0x1de1c5){return _0x192acd(_0x1f5d92,_0x1a34df,_0x1de1c5);},'UjfPx':_0x52d68c(0x11c),'uGCbG':'playwright','BdgMN':_0x52d68c(0xeb),'VUenr':_0x52d68c(0xec),'fuChf':function(_0x13bd5b,_0x542113){return _0x13bd5b===_0x542113;},'fXAvt':'win32','SXGDt':_0x52d68c(0x112),'bJfzJ':_0x52d68c(0xdc)};!helper[_0x52d68c(0xe0)](process[_0x52d68c(0xd4)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x52d68c(0xd4)][_0x52d68c(0x15a)]=!![]);process[_0x52d68c(0x156)][_0x52d68c(0x161)](_0x98f4a8[_0x52d68c(0xd0)])&&(process[_0x52d68c(0xd4)][_0x52d68c(0x15a)]=_0x98f4a8[_0x52d68c(0x12b)],_0x56fe5f=_0x56fe5f[_0x52d68c(0xc9)](_0x1d1aaa=>_0x1d1aaa!==_0x52d68c(0x132)));const _0x2f0258=_0x56fe5f[_0x52d68c(0x160)](_0x98f4a8[_0x52d68c(0xfd)]);_0x98f4a8[_0x52d68c(0xd9)](_0x2f0258,0x0)&&(process[_0x52d68c(0xd4)][_0x52d68c(0xfe)]=_0x98f4a8['XbodK'],_0x56fe5f=_0x56fe5f[_0x52d68c(0xc9)](_0x41d0bf=>_0x41d0bf!==_0x52d68c(0xd6)));try{const _0x437a1a=path[_0x52d68c(0x107)](helper[_0x52d68c(0x13d)](),_0x98f4a8[_0x52d68c(0x11b)],_0x98f4a8[_0x52d68c(0x106)]);fs[_0x52d68c(0x155)](_0x437a1a)&&fs[_0x52d68c(0x102)](_0x437a1a);}catch(_0x337aaf){logger[_0x52d68c(0xf3)](_0x98f4a8[_0x52d68c(0xe7)](_0x98f4a8[_0x52d68c(0x14c)],_0x337aaf));}if(!_0x98f4a8['JnFFH'](isTestCommand,_0xab064,_0x56fe5f)){_0x98f4a8[_0x52d68c(0xe9)](spawnOriginalProcess,_0x56fe5f);return;}const _0x50581f=new BrowserStackSetup(_0xab064,FRAMEWORKS[_0x52d68c(0x14f)]);if(!_0x50581f[_0x52d68c(0x141)]){logger[_0x52d68c(0x128)](_0x98f4a8['hauTQ']);return;}await _0x50581f['initialize']();!helper[_0x52d68c(0x142)](_0x50581f[_0x52d68c(0x12c)])&&_0x50581f[_0x52d68c(0x12c)][_0x52d68c(0xd1)](_0x98f4a8[_0x52d68c(0x116)])&&(process['env'][_0x52d68c(0x15a)]=_0x50581f[_0x52d68c(0x12c)][_0x52d68c(0x13e)](_0x98f4a8[_0x52d68c(0x116)])||!![]);_0x98f4a8[_0x52d68c(0x149)](_0x50581f['config'][_0x52d68c(0x10b)],null)&&!helper[_0x52d68c(0x147)](process[_0x52d68c(0xd4)][_0x52d68c(0xfe)])&&(process['env'][_0x52d68c(0xfe)]=process['env']['BROWSERSTACK_TEST_OBSERVABILITY']||_0x50581f[_0x52d68c(0x141)]['testObservability']);const _0x3df49f=!helper[_0x52d68c(0xe0)](process[_0x52d68c(0xd4)][_0x52d68c(0xfe)]);let _0x276a22=![];_0x50581f[_0x52d68c(0x141)][_0x52d68c(0x120)]&&(_0x276a22=!![],process[_0x52d68c(0xd4)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x50581f[_0x52d68c(0x141)][_0x52d68c(0x120)]);_0x50581f[_0x52d68c(0x141)]['accessibilityOptions']&&(process[_0x52d68c(0xd4)][_0x52d68c(0x108)]=JSON[_0x52d68c(0x10f)](_0x50581f['config'][_0x52d68c(0x109)]));const _0x133c39=_0x56fe5f['concat'](),_0x53bb1a=await _0x98f4a8[_0x52d68c(0xd2)](getUserPlaywrightConfig,_0xab064,_0x56fe5f);if(helper[_0x52d68c(0x142)](_0x53bb1a)){_0x98f4a8[_0x52d68c(0xcf)](spawnOriginalProcess,_0x133c39);return;}const _0xc9c965=_0x53bb1a['path']?path[_0x52d68c(0x126)](_0x53bb1a[_0x52d68c(0x123)]):process['cwd']();process[_0x52d68c(0xd4)][_0x52d68c(0xef)]=_0xc9c965,await TestHubHandler[_0x52d68c(0x12f)](FRAMEWORKS[_0x52d68c(0x14f)],_0x50581f);_0x3df49f&&_0x98f4a8[_0x52d68c(0xe9)](handleO11yRerun,_0x56fe5f);let _0x5946f7=_0x98f4a8['SAtXf'](process[_0x52d68c(0xd4)][_0x52d68c(0xed)],_0x98f4a8[_0x52d68c(0x13a)]);_0x5946f7=_0x5946f7||_0x98f4a8['tZtgn'](checkAccessibilityPlatformConfig,_0x50581f['config']),process['env'][_0x52d68c(0xed)]=_0x5946f7;_0x5946f7&&_0x98f4a8[_0x52d68c(0xcf)](setAccessibilityCapabilities,_0x50581f[_0x52d68c(0x141)]);const _0x461cdb=path[_0x52d68c(0x107)](_0x53bb1a['path']?path[_0x52d68c(0x126)](_0x53bb1a[_0x52d68c(0x123)]):process[_0x52d68c(0x118)](),_0x98f4a8[_0x52d68c(0x13c)]);fs['writeFileSync'](_0x461cdb,helper['serializeToYamlString'](_0x50581f[_0x52d68c(0x141)])),process[_0x52d68c(0xd4)][_0x52d68c(0x113)]=_0x461cdb,helper[_0x52d68c(0x12a)]();let _0x719c69='';_0x98f4a8['NOkOn'](helper[_0x52d68c(0xcc)](),constants[_0x52d68c(0xe1)][_0x52d68c(0x119)])?_0x719c69=_0x98f4a8[_0x52d68c(0x101)]:_0x719c69=_0x98f4a8[_0x52d68c(0x166)];let _0x4f16e4='';if(helper[_0x52d68c(0xe4)](_0x53bb1a[_0x52d68c(0x123)])){_0x4f16e4=_0x52d68c(0x127);const _0x5f1158=_0x719c69['split']('.');_0x5f1158[_0x98f4a8['Usxne'](_0x5f1158[_0x52d68c(0xf0)],0x1)]='ts',_0x719c69=_0x5f1158[_0x52d68c(0x107)]('.'),logger[_0x52d68c(0xf3)](_0x98f4a8['HmrBG'](_0x98f4a8[_0x52d68c(0x145)],_0x719c69));}else _0x4f16e4=_0x52d68c(0xea);const _0x355db0=path[_0x52d68c(0x107)](_0x53bb1a[_0x52d68c(0x123)]?path['dirname'](_0x53bb1a[_0x52d68c(0x123)]):process['cwd'](),_0x719c69);let _0x2cfa3b=_0x53bb1a[_0x52d68c(0x123)]?_0x53bb1a[_0x52d68c(0x123)]:'';_0x2cfa3b=_0x98f4a8[_0x52d68c(0x103)](_0x2cfa3b['length'],0x0)?path['resolve'](_0x2cfa3b):'',process[_0x52d68c(0xd4)][_0x52d68c(0xff)]=_0x2cfa3b;const _0x2449c1=helper[_0x52d68c(0x121)](_0x50581f[_0x52d68c(0x141)]);_0x2449c1&&(_0x4f16e4=_0x98f4a8[_0x52d68c(0xe7)](_0x52d68c(0x130)+_0x2449c1+_0x52d68c(0xcb),_0x4f16e4));helper[_0x52d68c(0x12e)]({},_0x56fe5f),fs[_0x52d68c(0xd7)](_0x355db0,_0x4f16e4),helper[_0x52d68c(0x162)]();const _0x560c6c=_0x98f4a8['ezear'](spawn,_0x98f4a8[_0x52d68c(0x159)],[_0x98f4a8[_0x52d68c(0x100)],_0x98f4a8[_0x52d68c(0x152)],_0x98f4a8[_0x52d68c(0xca)],_0x355db0,..._0x56fe5f[_0x52d68c(0x11a)](0x2)],{'shell':_0x98f4a8[_0x52d68c(0xcd)](process['platform'],_0x98f4a8[_0x52d68c(0x163)]),'stdio':_0x98f4a8['SXGDt'],'cwd':process[_0x52d68c(0x118)](),'env':Object[_0x52d68c(0xee)]({},process[_0x52d68c(0xd4)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0xab064),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x50581f['config'][_0x52d68c(0x14e)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x50581f[_0x52d68c(0x141)]['testContextOptions'][_0x52d68c(0x10c)],'BROWSERSTACK_LOG_LEVEL':_0x50581f[_0x52d68c(0x141)][_0x52d68c(0xf8)]})}),_0x3a13db=()=>{const _0x3387ed=_0x52d68c;try{const _0x37565d=path[_0x3387ed(0x107)](helper[_0x3387ed(0x13d)](),_0x98f4a8[_0x3387ed(0x11b)],_0x98f4a8[_0x3387ed(0x106)]);if(fs[_0x3387ed(0x155)](_0x37565d)){let _0xc4beaf=fs[_0x3387ed(0xf9)](_0x37565d);_0xc4beaf=JSON[_0x3387ed(0xf7)](_0xc4beaf),_0x50581f[_0x3387ed(0x14a)]=_0xc4beaf,fs[_0x3387ed(0x102)](_0x37565d);}}catch(_0xdf9257){logger[_0x3387ed(0xf3)](_0x98f4a8[_0x3387ed(0xe2)](_0x98f4a8['uSMQX'],_0xdf9257));}};_0x560c6c['on'](_0x98f4a8[_0x52d68c(0x105)],async _0x211b18=>{const _0x42c790=_0x52d68c;try{const _0x26e353=_0x98f4a8[_0x42c790(0x154)]['split']('|');let _0x378bb8=0x0;while(!![]){switch(_0x26e353[_0x378bb8++]){case'0':await utilities[_0x42c790(0xf6)](_0x50581f);continue;case'1':fs[_0x42c790(0x102)](_0x355db0);continue;case'2':_0x98f4a8['BicYb'](_0x3a13db);continue;case'3':logger['debug']('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x211b18);continue;case'4':await TestHubHandler[_0x42c790(0x104)]();continue;case'5':process[_0x42c790(0x110)]=_0x211b18;continue;case'6':logger['info'](_0x42c790(0x146)+_0x355db0);continue;case'7':logger[_0x42c790(0xf3)](_0x42c790(0x146)+_0x461cdb);continue;case'8':fs[_0x42c790(0x102)](_0x461cdb);continue;}break;}}catch(_0x3f5cd7){logger[_0x42c790(0xf3)](_0x98f4a8[_0x42c790(0xe2)](_0x98f4a8['qdzpK'],_0x3f5cd7));}});}module[a35_0xa463fa(0x117)]=run;function a35_0x34e7(){const _0xc42fe7=['../../helpers/logger','xIeDp','finalExecution','parse','logLevel','readFileSync','5902800VyjPbb','resolvedConfigFile','playwright-browserstack-sdk.config.cjs','IzjnT','BROWSERSTACK_TEST_OBSERVABILITY','USER_CONFIG_DETAILS_PATH','uGCbG','gvmDe','unlinkSync','gZKFU','stop','bJfzJ','jbNHh','join','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','accessibilityOptions','map','testObservability','skipSessionName','../../helpers/testhub/testhubHandler','FqMeS','stringify','exitCode','2224123kTGCsQ','inherit','BROWSERSTACK_SETUP_CONFIG_PATH','child_process','518XMSfXR','vgttr','exports','cwd','MODULE','slice','jHKrp','npx','playwright','xSgRd','OPXob','accessibility','getProxyUrl','Error\x20in\x20closing\x20playwright','path','true','resolve','dirname','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','error','../utils/constants','clearTempPWConfig','XbodK','cliConfig','../../helpers/BrowserStackSetup','filterBrowserstackArgs','launchBuild','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','VHbFq','--disable-browserstack-automation','UJkQn','2oAZJad','splice','451957kIqdIc','--config=','../../helpers/test-observability/utils','HFxSY','JDLte','../../helpers/test-observability/constants','aWnXE','homedir','get','12imsBhk','12340665sbLHTl','config','isUndefined','./reporter/pwUtils','1964480BSjvRL','FwtZW','Deleting\x20','isTrue','87234LsHrjc','qzbZC','errorMessage','nestedKeyValue','tXAIr','../../helpers/utilities','testContextOptions','PLAYWRIGHT','SdvIQ','requirePWModule','BdgMN','474692iHYdcs','tGRge','existsSync','argv','Error\x20in\x20deleting\x20playwright\x20results','push','UjfPx','BROWSERSTACK_AUTOMATION','2|4|0|5|3|6|1|7|8','BcALl','LaZGK','Ktnyd','trim','indexOf','includes','markSDKSetupComplete','fXAvt','xFfVQ','pw_result.json','qkrSo','jTIiS','filter','VUenr','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','getPackageType','fuChf','startsWith','edlkW','syfwF','has','lvbtU','../../helpers/test-observability/error-handler','env','mlDKb','--disable-test-observability','writeFileSync','../../helpers/helper','glfkP','win32','winstonLogger','close','40riJGrm','apply','BrowserStack\x20config\x20file\x20not\x20found.','isFalse','PACKAGE_TYPE','HmrBG','playwright-browserstack-sdk.config.js','isTypescriptProject','split','uqylL','Uwuox','browserstackSetupConfig.json','jRSjF','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','test','--config','BROWSERSTACK_TEST_ACCESSIBILITY_YML','assign','BROWSERSTACK_PW_CONFIG_DIR','length','../../helpers/testhub/utils','ygkBc','debug'];a35_0x34e7=function(){return _0xc42fe7;};return a35_0x34e7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a36_0x3881(){const _0x21c3dd=['17502YSgvSd','EpuLZ','isHandlePWErrorSet','./mock-process.js','2940948YHWxBL','HanmU','1.33.0','14XabcgV','Running\x20existing\x20global\x20setup','gRYjY','includes','rEmXK','apply','config','mnHlM','uwwxV','PLAYWRIGHT','dZzCp','20ugTYub','format','./patches','1502433XStRUl','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','iLGWq','env','Path\x20','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','./reporter/pwUtils','function','1650985jotyLL','Call\x20to\x20child\x20fork\x20with\x20args\x20','2499550ZgtWZK','error','Hktyl','compareVersions','../../helpers/logger','resolve','../../helpers/test-observability/utils','zOeSl','toString','requirePWModule','2720608iuMeSF','AQsqY','4JEtXXJ','494289TucwAX','../../helpers/test-observability/constants','util','\x20is\x20not\x20found','fork','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','exports','child_process','HRFGV'];a36_0x3881=function(){return _0x21c3dd;};return a36_0x3881();}const a36_0x58159f=a36_0x5829;function a36_0x5829(_0x2de432,_0x2fe5b7){const _0x388182=a36_0x3881();return a36_0x5829=function(_0x5829a6,_0x477777){_0x5829a6=_0x5829a6-0x8b;let _0x26ea1f=_0x388182[_0x5829a6];return _0x26ea1f;},a36_0x5829(_0x2de432,_0x2fe5b7);}(function(_0x33c57d,_0x1382c7){const _0x588ab5=a36_0x5829,_0x2a840a=_0x33c57d();while(!![]){try{const _0x4aeb01=-parseInt(_0x588ab5(0xa0))/0x1+-parseInt(_0x588ab5(0xbb))/0x2*(parseInt(_0x588ab5(0xa9))/0x3)+-parseInt(_0x588ab5(0x9f))/0x4*(parseInt(_0x588ab5(0x91))/0x5)+parseInt(_0x588ab5(0xad))/0x6+parseInt(_0x588ab5(0xb0))/0x7*(parseInt(_0x588ab5(0x9d))/0x8)+-parseInt(_0x588ab5(0xbe))/0x9+parseInt(_0x588ab5(0x93))/0xa;if(_0x4aeb01===_0x1382c7)break;else _0x2a840a['push'](_0x2a840a['shift']());}catch(_0xe8dc63){_0x2a840a['push'](_0x2a840a['shift']());}}}(a36_0x3881,0x5a746));const util=require(a36_0x58159f(0xa2)),child_process=require(a36_0x58159f(0xa7)),{FRAMEWORKS}=require(a36_0x58159f(0xa1)),{getFrameworkVersion,debug}=require(a36_0x58159f(0x99)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x58159f(0x8f)),{mockIsWorkerRedundant}=require(a36_0x58159f(0xbd)),logger=require(a36_0x58159f(0x97))['winstonLogger'];module[a36_0x58159f(0xa6)]=async function(_0x56cee7){const _0x193f5b=a36_0x58159f,_0x3b04d7={'gRYjY':function(_0x4d87b4,_0x2dcec4){return _0x4d87b4(_0x2dcec4);},'mnHlM':function(_0x2a307f){return _0x2a307f();},'Hktyl':_0x193f5b(0xac),'dZzCp':function(_0x145754){return _0x145754();},'MdbHJ':function(_0x2587a5,_0x4cb8bd){return _0x2587a5(_0x4cb8bd);},'HRFGV':_0x193f5b(0xb1),'rEmXK':function(_0x38e7d4,_0x30c499){return _0x38e7d4(_0x30c499);},'EpuLZ':function(_0x1668e2,_0x119aae){return _0x1668e2>=_0x119aae;},'uwwxV':_0x193f5b(0xaf),'zOeSl':function(_0xe48c7b,_0x244973,_0x279c5c){return _0xe48c7b(_0x244973,_0x279c5c);},'iLGWq':function(_0x9dbc16,_0x762011){return _0x9dbc16!==_0x762011;},'AQsqY':_0x193f5b(0x90),'HanmU':'Not\x20able\x20to\x20import\x20globalSetup'},_0x15613a=child_process[_0x193f5b(0xa4)];if(helper[_0x193f5b(0xab)]())try{_0x3b04d7[_0x193f5b(0xba)](mockIsWorkerRedundant);}catch(_0x15f737){logger['debug'](_0x193f5b(0x8e)+util[_0x193f5b(0xbc)](_0x15f737));}child_process[_0x193f5b(0xa4)]=function(){const _0x1325e4=_0x193f5b;return _0x3b04d7[_0x1325e4(0xb2)](debug,_0x1325e4(0x92)+arguments[0x0]),arguments[0x0][_0x1325e4(0xb3)](_0x3b04d7[_0x1325e4(0xb7)](getForkProcessPath))?arguments[0x0]=require[_0x1325e4(0x98)](_0x3b04d7[_0x1325e4(0x95)]):logger[_0x1325e4(0x94)](_0x1325e4(0x8d)+_0x3b04d7[_0x1325e4(0xba)](getForkProcessPath)+_0x1325e4(0xa3)),_0x15613a['apply'](null,arguments);};if(process[_0x193f5b(0x8c)][_0x193f5b(0xbf)]){_0x3b04d7['MdbHJ'](debug,_0x3b04d7[_0x193f5b(0xa8)]);try{const {loadGlobalHook:_0x99140a}=helper[_0x193f5b(0x9c)][_0x193f5b(0xb5)](null,_0x3b04d7['mnHlM'](getLoadUtilsPath)),_0x2ec006=_0x3b04d7[_0x193f5b(0xb4)](getFrameworkVersion,FRAMEWORKS[_0x193f5b(0xb9)]);let _0x1158d0=_0x56cee7;if(_0x3b04d7[_0x193f5b(0xaa)](helper[_0x193f5b(0x96)](_0x2ec006,_0x3b04d7[_0x193f5b(0xb8)]),0x0)){const _0x5b744f={};_0x5b744f[_0x193f5b(0xb6)]=_0x56cee7,_0x1158d0=_0x5b744f;}const _0xf2aeed=await _0x3b04d7[_0x193f5b(0x9a)](_0x99140a,_0x1158d0,process[_0x193f5b(0x8c)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x3b04d7[_0x193f5b(0x8b)](typeof _0xf2aeed,_0x3b04d7[_0x193f5b(0x9e)]))throw new Error(_0x3b04d7[_0x193f5b(0xae)]);return _0xf2aeed[_0x193f5b(0xb5)](null,arguments);}catch(_0x41237d){_0x3b04d7[_0x193f5b(0xb2)](debug,_0x193f5b(0xa5)+_0x41237d[_0x193f5b(0x9b)]());}}};
|