browserstack-node-sdk 1.34.45 → 1.34.46
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/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x4093e4=a29_0x29ca;(function(_0x43c171,_0x2c8ec6){const _0x3e8a50=a29_0x29ca,_0x58faeb=_0x43c171();while(!![]){try{const _0x3261c9=parseInt(_0x3e8a50(0x202))/0x1*(-parseInt(_0x3e8a50(0x1b4))/0x2)+-parseInt(_0x3e8a50(0x1a8))/0x3+parseInt(_0x3e8a50(0x1db))/0x4+-parseInt(_0x3e8a50(0x1a2))/0x5*(-parseInt(_0x3e8a50(0x1a5))/0x6)+parseInt(_0x3e8a50(0x1b1))/0x7+-parseInt(_0x3e8a50(0x1c9))/0x8+parseInt(_0x3e8a50(0x20a))/0x9*(-parseInt(_0x3e8a50(0x20b))/0xa);if(_0x3261c9===_0x2c8ec6)break;else _0x58faeb['push'](_0x58faeb['shift']());}catch(_0x3cee03){_0x58faeb['push'](_0x58faeb['shift']());}}}(a29_0x12eb,0x69539));function a29_0x12eb(){const _0x4c44f6=['getAccessibilityResults','options_','tCQQl','set','4|3|0|5|1|2','lOELO','overrideGet','goog:chromeOptions','info','3304560ADRVmI','getAccessibilityResultsSummary','GitRO','url_','edgeOptions','__drivers','getHttpAgent','../../../helpers/globals','path','setCapabilities','push','CAPABILITY_KEY','Hub\x20url\x20set\x20to\x20','session_','Proxy\x20set\x20to\x20','firefoxOptions_','../../../helpers/accessibility-automation/helper','VLCjZ','2332848gJgvxf','TsUob','EcVpR','safari.options','Setting\x20Browserstack\x20capabilities','getHubUrl','yrpmP','Cfitp','chromeOptions','then','quitCount_','../../../bin/utils/constants','keys','SABoB','AmYgE','Builder','AXUfj','debug','browserstackAgentObservability','error','get','newHubUrl','rjBwM','__setBrowserOptions','opsXP','edgeOptions_','setGlobal','ms:edgeOptions','send','isUndefined','object','originalBuilder','__driversArray','isPacProxy','GWnPN','requireSeleniumWebdriver','ieOptions','build','moz:firefoxOptions','113tIhqwR','exports','chromeOptions_','ieOptions_','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','WBxAf','DOClo','HttpClient','313596QOYAoE','260ZctpRU','proxySettings','xBwkx','mergeDeep','../../../hubAllocationMethods','logLevel','New\x20hub\x20url\x20set\x20to\x20','split','OyLkW','3690035QgwCsS','isBrowserstackInfra','TTgOs','6wLJaOI','uirSW','MPlke','467526TQRYDl','optimalHubUrl','setServer','BcCId','caps_','../accessibility-automation/helper','requireHttpClient','safariOptions_','forEach','5427422MvMnCQ','proxyUrl','../../../helpers/logger','3368XaqsoG','/session','NAodN','dRcYU','capability','getRequestOptions','proxy_','UTtpm','/wd/hub','capabilities_','global','nNuFl'];a29_0x12eb=function(){return _0x4c44f6;};return a29_0x12eb();}const logger=require(a29_0x4093e4(0x1b3))['winstonLogger'],helper=require('../../../helpers/helper'),constants=require(a29_0x4093e4(0x1e6)),hubAllocator=require(a29_0x4093e4(0x20f)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a29_0x4093e4(0x1ad)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x4093e4(0x1d9)),globals=require(a29_0x4093e4(0x1d0)),{overrideExecute}=require('./helpers/patchHelper'),modify=(_0x36229f,_0x4577b6=null,_0xdf7187=![])=>{const _0x25e759=a29_0x4093e4,_0x3554bf={'BcCId':function(_0xaf2e78,_0x5c22c5){return _0xaf2e78!==_0x5c22c5;},'Cfitp':_0x25e759(0x1b5),'TsUob':function(_0x3eeb9d,_0x110480){return _0x3eeb9d!==_0x110480;},'GzYhj':function(_0x3fe271,_0x5bb13e){return _0x3fe271+_0x5bb13e;},'WBxAf':function(_0x447e2e,_0x105877){return _0x447e2e+_0x105877;},'GWZUl':'https://','XuHor':_0x25e759(0x1bc),'uirSW':_0x25e759(0x1c7),'egKTe':_0x25e759(0x1e3),'MPlke':_0x25e759(0x1f6),'TTgOs':_0x25e759(0x1cd),'jsvgE':_0x25e759(0x201),'YiGZM':'firefoxOptions','MYXme':_0x25e759(0x1de),'AmYgE':'se:ieOptions','UXRmD':_0x25e759(0x1ff),'rjBwM':function(_0x22e9a4,_0xcf92d9){return _0x22e9a4===_0xcf92d9;},'gukaP':_0x25e759(0x1f9),'tCQQl':_0x25e759(0x1df),'UTtpm':'5|2|3|0|4|1','uJXiY':function(_0x2d5c2e,_0x436be8,_0x1952ff){return _0x2d5c2e(_0x436be8,_0x1952ff);},'lOELO':function(_0x39bf10,_0x525f07){return _0x39bf10(_0x525f07);},'OyLkW':function(_0x280533,_0x157c65,_0x172389){return _0x280533(_0x157c65,_0x172389);},'SABoB':_0x25e759(0x1a9),'dRcYU':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','GWnPN':function(_0x123442,_0x4faa15,_0x4d7d6b){return _0x123442(_0x4faa15,_0x4d7d6b);},'yrpmP':function(_0x584ce6,_0x5df0bb,_0x35d1e5){return _0x584ce6(_0x5df0bb,_0x35d1e5);},'xWtDB':_0x25e759(0x1c4),'GitRO':'isAccessibilityPlatform','yfZDN':function(_0x406fe6,_0x59307,_0x2c5af3){return _0x406fe6(_0x59307,_0x2c5af3);},'EcVpR':_0x25e759(0x206),'VLCjZ':function(_0x3760dd){return _0x3760dd();},'AXUfj':function(_0x1736d2,_0x5e297b){return _0x1736d2(_0x5e297b);},'xBwkx':function(_0x3758d7,_0x414ebc,_0xc25638){return _0x3758d7(_0x414ebc,_0xc25638);},'DOClo':function(_0x3a0ced,_0x309c9f){return _0x3a0ced!==_0x309c9f;},'BqvRi':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','nNuFl':'Modifying\x20webdriver\x20builder'},_0x3db6f1=helper[_0x25e759(0x1ae)]();let _0x4de639;try{_0x4de639=helper[_0x25e759(0x1fe)](),_0x4de639[_0x25e759(0x1fa)]&&(_0x4de639['Builder']=_0x4de639[_0x25e759(0x1fa)]);}catch(_0x21d1b){return;}if(helper['isBrowserstackInfra']()){const _0x37a790={};_0x37a790[_0x25e759(0x210)]=_0x36229f['browserStackLogLevel'],helper['setLogLevel'](_0x37a790,new Map(),new Map()),logger[_0x25e759(0x1c8)](_0x3554bf['BqvRi']),logger['debug'](_0x3554bf[_0x25e759(0x1bf)]);}class _0x2e9daf extends _0x3db6f1[_0x25e759(0x209)]{[_0x25e759(0x1f7)](_0x38f3b8){const _0x14c703=_0x25e759;if(_0x3554bf[_0x14c703(0x1ab)](_0x38f3b8[_0x14c703(0x1d1)],_0x3554bf[_0x14c703(0x1e2)])&&_0x3554bf[_0x14c703(0x1dc)](global[_0x14c703(0x1f0)],''))try{global['newHubUrl']=_0x3554bf['GzYhj'](_0x3554bf[_0x14c703(0x207)](_0x3554bf['GWZUl'],global['newHubUrl']),_0x3554bf['XuHor']),this[_0x14c703(0x1c1)]=hubAllocator[_0x14c703(0x1b9)](global[_0x14c703(0x1f0)]),logger[_0x14c703(0x1ec)](_0x14c703(0x19f)+global['newHubUrl']),global[_0x14c703(0x1f0)]='';}catch(_0x16ad08){logger[_0x14c703(0x1ee)](_0x16ad08);}return super[_0x14c703(0x1f7)](_0x38f3b8);}}class _0x3abc52 extends _0x4de639['Builder']{[_0x25e759(0x1aa)](){const _0x4c3436=_0x25e759;return this['url_']=helper[_0x4c3436(0x1e0)](_0x36229f),logger[_0x4c3436(0x1ec)](_0x4c3436(0x1d5)+this[_0x4c3436(0x1cc)]),this;}[_0x25e759(0x1f2)](_0x2abe2d){const _0x14f255=_0x25e759;let _0x5a896d={};for(const _0xf6a6da in _0x2abe2d){switch(_0xf6a6da){case _0x3554bf[_0x14f255(0x1a6)]:case _0x3554bf['egKTe']:this['chromeOptions_']&&(_0x5a896d=this[_0x14f255(0x204)]['get'](this[_0x14f255(0x204)][_0x14f255(0x1d4)])||{},this[_0x14f255(0x204)][_0x14f255(0x1c3)](this[_0x14f255(0x204)]['CAPABILITY_KEY'],helper[_0x14f255(0x20e)](_0x5a896d,_0x2abe2d[_0xf6a6da])));break;case _0x3554bf[_0x14f255(0x1a7)]:case _0x3554bf[_0x14f255(0x1a4)]:this[_0x14f255(0x1f4)]&&(_0x5a896d=this['edgeOptions_']['get'](this['edgeOptions_'][_0x14f255(0x1d4)])||{},this[_0x14f255(0x1f4)][_0x14f255(0x1c3)](this[_0x14f255(0x1f4)][_0x14f255(0x1d4)],helper[_0x14f255(0x20e)](_0x5a896d,_0x2abe2d[_0xf6a6da])));break;case _0x3554bf['jsvgE']:case _0x3554bf['YiGZM']:this['firefoxOptions_']&&(_0x5a896d=this['firefoxOptions_']['get'](this[_0x14f255(0x1d8)][_0x14f255(0x1d4)])||{},this[_0x14f255(0x1d8)]['set'](this[_0x14f255(0x1d8)][_0x14f255(0x1d4)],helper[_0x14f255(0x20e)](_0x5a896d,_0x2abe2d[_0xf6a6da])));break;case _0x3554bf['MYXme']:this[_0x14f255(0x1af)]&&(_0x5a896d=this['safariOptions_'][_0x14f255(0x1ef)](this[_0x14f255(0x1af)][_0x14f255(0x1d4)])||{},this[_0x14f255(0x1af)][_0x14f255(0x1c3)](this[_0x14f255(0x1af)]['CAPABILITY_KEY'],helper[_0x14f255(0x20e)](_0x5a896d,_0x2abe2d[_0xf6a6da])));break;case _0x3554bf[_0x14f255(0x1e9)]:case _0x3554bf['UXRmD']:this[_0x14f255(0x205)]&&(_0x5a896d=this['ieOptions_']['get'](this['ieOptions_'][_0x14f255(0x1d4)])||{},this[_0x14f255(0x205)][_0x14f255(0x1c3)](this['ieOptions_'][_0x14f255(0x1d4)],helper[_0x14f255(0x20e)](_0x5a896d,_0x2abe2d[_0xf6a6da])));break;}}}['setCapabilities'](){const _0x39a87c=_0x25e759;return logger['debug'](_0x3554bf[_0x39a87c(0x1c2)]),this['__setBrowserOptions'](_0x36229f[_0x39a87c(0x1b8)]),Object[_0x39a87c(0x1e7)](_0x36229f[_0x39a87c(0x1b8)])[_0x39a87c(0x1b0)](_0x4c86d2=>{const _0x103030=_0x39a87c,_0x21ddca=this[_0x103030(0x1bd)][_0x103030(0x1ef)](_0x4c86d2);_0x3554bf[_0x103030(0x1f1)](typeof _0x21ddca,_0x3554bf['gukaP'])?this[_0x103030(0x1bd)][_0x103030(0x1c3)](_0x4c86d2,helper[_0x103030(0x20e)](_0x21ddca,_0x36229f[_0x103030(0x1b8)][_0x4c86d2])):this['capabilities_']['set'](_0x4c86d2,_0x36229f[_0x103030(0x1b8)][_0x4c86d2]);}),this;}[_0x25e759(0x200)](){const _0x54b7c0=_0x25e759,_0x36eaf0={'rbCoF':_0x3554bf[_0x54b7c0(0x1e8)],'pFkaj':_0x3554bf[_0x54b7c0(0x1b7)],'PCVNX':function(_0x231f15,_0x541123,_0x20a82f){const _0x4e083a=_0x54b7c0;return _0x3554bf[_0x4e083a(0x1a1)](_0x231f15,_0x541123,_0x20a82f);},'opsXP':function(_0x47c0e1,_0x5f04a8,_0x105dd8){const _0x37dcdb=_0x54b7c0;return _0x3554bf[_0x37dcdb(0x1fd)](_0x47c0e1,_0x5f04a8,_0x105dd8);},'NAodN':function(_0x547876,_0x46b880,_0x168016){const _0x513242=_0x54b7c0;return _0x3554bf[_0x513242(0x1e1)](_0x547876,_0x46b880,_0x168016);}};if(helper[_0x54b7c0(0x1a3)]()){const _0x2567d3=_0x3554bf['xWtDB'][_0x54b7c0(0x1a0)]('|');let _0x402fc0=0x0;while(!![]){switch(_0x2567d3[_0x402fc0++]){case'0':this[_0x54b7c0(0x1d2)]();continue;case'1':globals['getGlobal'](_0x3554bf[_0x54b7c0(0x1cb)])&&(!_0x3554bf['yfZDN'](setExtension,this,_0x36229f)&&globals[_0x54b7c0(0x1f5)](_0x3554bf['GitRO'],![]));continue;case'2':logger[_0x54b7c0(0x1ec)](_0x3554bf[_0x54b7c0(0x1dd)]);continue;case'3':this[_0x54b7c0(0x1aa)]();continue;case'4':_0x3554bf[_0x54b7c0(0x1da)](isAccessibilityAutomationSession)&&_0x3554bf[_0x54b7c0(0x1c5)](setAccessibilityCapabilities,_0x36229f);continue;case'5':if(helper[_0x54b7c0(0x1fc)](_0x36229f[_0x54b7c0(0x20c)][_0x54b7c0(0x1b2)]))this['agent_']=helper[_0x54b7c0(0x1cf)](_0x36229f[_0x54b7c0(0x20c)][_0x54b7c0(0x1b2)]);else _0x36229f[_0x54b7c0(0x20c)][_0x54b7c0(0x1b2)]&&(this[_0x54b7c0(0x1ba)]=_0x36229f[_0x54b7c0(0x20c)][_0x54b7c0(0x1b2)],logger[_0x54b7c0(0x1ec)](_0x54b7c0(0x1d7)+this[_0x54b7c0(0x1ba)]));continue;}break;}}const _0x176b8c=super[_0x54b7c0(0x200)]();return _0x176b8c[_0x54b7c0(0x1d6)]['then'](_0x13f56a=>{const _0x46e3d5=_0x54b7c0;try{const _0x3b103b=_0x13f56a[_0x46e3d5(0x1ac)][_0x46e3d5(0x1ef)](_0x36eaf0['rbCoF']);_0x3b103b?(logger['debug']('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x3b103b),hubAllocator['updateHubUrl'](_0x3b103b),helper['storeOptimalHubUrl'](_0x3b103b)):logger['debug'](_0x36eaf0['pFkaj']);}catch(_0xcfd16c){logger['debug']('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0xcfd16c);}}),_0x176b8c[_0x54b7c0(0x1e5)]=0x0,_0x176b8c[_0x54b7c0(0x1e4)]&&_0x176b8c['then'](_0x4a8ec9=>{const _0x531afe=_0x54b7c0,_0x323848=_0x3554bf[_0x531afe(0x1bb)]['split']('|');let _0x5e0bfa=0x0;while(!![]){switch(_0x323848[_0x5e0bfa++]){case'0':_0x3554bf['uJXiY'](overrideExecute,_0x4a8ec9,_0x36229f);continue;case'1':_0x4a8ec9[_0x531afe(0x1c0)]=async()=>{const _0x18aa3f=_0x531afe;return await _0x36eaf0[_0x18aa3f(0x1f3)](getAccessibilityResults,_0x4a8ec9,global);};continue;case'2':_0x3554bf['lOELO'](overrideTakeScreenshot,_0x4a8ec9);continue;case'3':helper[_0x531afe(0x1c6)](_0x4a8ec9,_0x36229f);continue;case'4':_0x4a8ec9[_0x531afe(0x1ca)]=async()=>{return await _0x36eaf0['PCVNX'](getAccessibilityResultsSummary,_0x4a8ec9,global);};continue;case'5':_0x3554bf[_0x531afe(0x1a1)](overrideQuit,_0x4a8ec9,_0x176b8c);continue;}break;}}),_0x176b8c[_0x54b7c0(0x1ca)]=async()=>{return await _0x36eaf0['PCVNX'](getAccessibilityResultsSummary,_0x176b8c,global);},_0x176b8c[_0x54b7c0(0x1c0)]=async()=>{const _0x52476b=_0x54b7c0;return await _0x36eaf0[_0x52476b(0x1b6)](getAccessibilityResults,_0x176b8c,global);},_0x3554bf[_0x54b7c0(0x1eb)](overrideTakeScreenshot,_0x176b8c),_0x3554bf[_0x54b7c0(0x1c5)](overrideQuit,_0x176b8c),helper[_0x54b7c0(0x1c6)](_0x176b8c,_0x36229f),_0x3554bf[_0x54b7c0(0x20d)](overrideExecute,_0x176b8c,_0x36229f),helper[_0x54b7c0(0x1f8)](global[_0x54b7c0(0x1fb)])&&(global['__driversArray']=[]),helper[_0x54b7c0(0x1f8)](global[_0x54b7c0(0x1ce)])&&(global['__drivers']=[]),global[_0x54b7c0(0x1fb)][_0x54b7c0(0x1d3)](_0x176b8c),global['__driver']=_0x176b8c,_0x3554bf['DOClo'](global[_0x54b7c0(0x1ce)],undefined)&&global[_0x54b7c0(0x1ce)]['push'](_0x176b8c),_0x4577b6&&helper['isUndefined'](_0x4577b6[_0x54b7c0(0x1be)]['__driversArray'])&&(_0x4577b6['global'][_0x54b7c0(0x1fb)]=[]),_0x4577b6&&_0x3554bf[_0x54b7c0(0x208)](_0x4577b6['global'][_0x54b7c0(0x1ce)],undefined)&&(_0x4577b6['global'][_0x54b7c0(0x1ce)][_0x54b7c0(0x1d3)](_0x176b8c),_0x4577b6[_0x54b7c0(0x1be)][_0x54b7c0(0x1fb)][_0x54b7c0(0x1d3)](_0x176b8c)),_0x176b8c;}}return _0x4de639[_0x25e759(0x1fa)]=_0x4de639['Builder'],_0x4de639[_0x25e759(0x1ea)]=_0x3abc52,_0x3db6f1[_0x25e759(0x209)]=_0x2e9daf,_0x4de639;};function a29_0x29ca(_0x1cda70,_0x1e4db4){const _0x12eb1d=a29_0x12eb();return a29_0x29ca=function(_0x29ca8f,_0x468dd2){_0x29ca8f=_0x29ca8f-0x19f;let _0x344785=_0x12eb1d[_0x29ca8f];return _0x344785;},a29_0x29ca(_0x1cda70,_0x1e4db4);}module[a29_0x4093e4(0x203)][a29_0x4093e4(0x1ed)]=modify;
|
|
1
|
+
const a29_0x31d483=a29_0x2e7d;(function(_0xb8ce9c,_0x33b6a8){const _0xb8b072=a29_0x2e7d,_0x254ab3=_0xb8ce9c();while(!![]){try{const _0x12a23f=-parseInt(_0xb8b072(0x129))/0x1+parseInt(_0xb8b072(0xf0))/0x2*(-parseInt(_0xb8b072(0xe7))/0x3)+-parseInt(_0xb8b072(0x117))/0x4+-parseInt(_0xb8b072(0xf4))/0x5+-parseInt(_0xb8b072(0x150))/0x6+parseInt(_0xb8b072(0x127))/0x7+parseInt(_0xb8b072(0x12f))/0x8;if(_0x12a23f===_0x33b6a8)break;else _0x254ab3['push'](_0x254ab3['shift']());}catch(_0x2742b1){_0x254ab3['push'](_0x254ab3['shift']());}}}(a29_0x44fb,0x1a43a));const logger=require(a29_0x31d483(0x102))[a29_0x31d483(0x11c)],helper=require('../../../helpers/helper'),constants=require(a29_0x31d483(0x11f)),hubAllocator=require(a29_0x31d483(0xec)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x31d483(0x14a)),{setAccessibilityCapabilities,setExtension}=require(a29_0x31d483(0x155)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x31d483(0xe9)),globals=require(a29_0x31d483(0xed)),{overrideExecute}=require(a29_0x31d483(0x144)),modify=(_0x55c322,_0x59b4c1=null,_0x3bfa23=![])=>{const _0x3c7cc3=a29_0x31d483,_0x464106={'PGAWB':function(_0x1018c1,_0x469f73){return _0x1018c1!==_0x469f73;},'RIkct':_0x3c7cc3(0xef),'ocAFL':function(_0x4e05e8,_0x550a86){return _0x4e05e8!==_0x550a86;},'pYxPF':function(_0x2e7f0a,_0xcf030b){return _0x2e7f0a+_0xcf030b;},'mBTqC':'https://','cWoSR':_0x3c7cc3(0x12d),'jXnIK':'goog:chromeOptions','twiaI':_0x3c7cc3(0x101),'eMpyU':_0x3c7cc3(0x119),'lcKGy':_0x3c7cc3(0x146),'RPHgv':_0x3c7cc3(0x131),'pRsfd':_0x3c7cc3(0xf9),'PXzpE':_0x3c7cc3(0xfe),'wxNQh':'se:ieOptions','hzXXz':_0x3c7cc3(0x106),'MHutS':function(_0x2cce9e,_0x482de0){return _0x2cce9e===_0x482de0;},'XziFh':_0x3c7cc3(0xf7),'NZEtY':_0x3c7cc3(0x10e),'vjOAu':_0x3c7cc3(0x13d),'Cdmxz':_0x3c7cc3(0x14d),'caOFq':function(_0x40dfa3,_0x2cdd66,_0x150b90){return _0x40dfa3(_0x2cdd66,_0x150b90);},'wquKh':function(_0x4b41f6,_0x572fc1,_0x507f72){return _0x4b41f6(_0x572fc1,_0x507f72);},'oFoZL':function(_0x1404fd,_0x55c2c8){return _0x1404fd(_0x55c2c8);},'AUVfR':function(_0x2064ec,_0x8738e1,_0x287fdf){return _0x2064ec(_0x8738e1,_0x287fdf);},'mfrYW':function(_0x29e65d,_0x15050a,_0x1cdbea){return _0x29e65d(_0x15050a,_0x1cdbea);},'muWOU':_0x3c7cc3(0x122),'IDXvl':_0x3c7cc3(0x109),'QzbIF':function(_0x511157,_0x263cb8,_0x4994bb){return _0x511157(_0x263cb8,_0x4994bb);},'URyLv':function(_0x57f695){return _0x57f695();},'gHbdA':_0x3c7cc3(0x10c),'YahaZ':function(_0x136644,_0x86b462){return _0x136644(_0x86b462);},'eROKS':function(_0x357a36,_0x247e36){return _0x357a36!==_0x247e36;},'UwYyY':_0x3c7cc3(0xf5),'FMPNX':_0x3c7cc3(0x126)},_0x31636d=helper[_0x3c7cc3(0x10f)]();let _0x1cf23c;try{_0x1cf23c=helper[_0x3c7cc3(0xfb)](),_0x1cf23c[_0x3c7cc3(0x138)]&&(_0x1cf23c[_0x3c7cc3(0x112)]=_0x1cf23c[_0x3c7cc3(0x138)]);}catch(_0x190b3b){return;}if(helper[_0x3c7cc3(0x118)]()){const _0x46ee18={};_0x46ee18[_0x3c7cc3(0x152)]=_0x55c322[_0x3c7cc3(0x116)],helper[_0x3c7cc3(0x120)](_0x46ee18,new Map(),new Map()),logger[_0x3c7cc3(0xeb)](_0x464106[_0x3c7cc3(0xe3)]),logger['debug'](_0x464106['FMPNX']);}class _0x3bc683 extends _0x31636d[_0x3c7cc3(0xe6)]{[_0x3c7cc3(0x157)](_0x28e5c9){const _0x3c7f53=_0x3c7cc3;if(_0x464106[_0x3c7f53(0x14b)](_0x28e5c9[_0x3c7f53(0x13c)],_0x464106['RIkct'])&&_0x464106['ocAFL'](global[_0x3c7f53(0x121)],''))try{global[_0x3c7f53(0x121)]=_0x464106[_0x3c7f53(0x151)](_0x464106[_0x3c7f53(0x151)](_0x464106['mBTqC'],global['newHubUrl']),_0x464106['cWoSR']),this[_0x3c7f53(0x12a)]=hubAllocator[_0x3c7f53(0x100)](global[_0x3c7f53(0x121)]),logger[_0x3c7f53(0x140)]('New\x20hub\x20url\x20set\x20to\x20'+global['newHubUrl']),global['newHubUrl']='';}catch(_0x3d6ed3){logger[_0x3c7f53(0x132)](_0x3d6ed3);}return super[_0x3c7f53(0x157)](_0x28e5c9);}}class _0x393b3b extends _0x1cf23c['Builder']{[_0x3c7cc3(0x111)](){const _0x58173a=_0x3c7cc3;return this[_0x58173a(0x13f)]=helper[_0x58173a(0x11d)](_0x55c322),logger['debug']('Hub\x20url\x20set\x20to\x20'+this[_0x58173a(0x13f)]),this;}['__setBrowserOptions'](_0x4de67a){const _0x3e7bb0=_0x3c7cc3;let _0x109226={};for(const _0x41487e in _0x4de67a){switch(_0x41487e){case _0x464106[_0x3e7bb0(0x107)]:case _0x464106[_0x3e7bb0(0x13b)]:this['chromeOptions_']&&(_0x109226=this['chromeOptions_'][_0x3e7bb0(0xf3)](this[_0x3e7bb0(0x149)]['CAPABILITY_KEY'])||{},this[_0x3e7bb0(0x149)][_0x3e7bb0(0xf6)](this[_0x3e7bb0(0x149)][_0x3e7bb0(0x139)],helper[_0x3e7bb0(0xf1)](_0x109226,_0x4de67a[_0x41487e])));break;case _0x464106[_0x3e7bb0(0x14c)]:case _0x464106[_0x3e7bb0(0x134)]:this['edgeOptions_']&&(_0x109226=this['edgeOptions_'][_0x3e7bb0(0xf3)](this[_0x3e7bb0(0x135)][_0x3e7bb0(0x139)])||{},this[_0x3e7bb0(0x135)][_0x3e7bb0(0xf6)](this['edgeOptions_'][_0x3e7bb0(0x139)],helper[_0x3e7bb0(0xf1)](_0x109226,_0x4de67a[_0x41487e])));break;case _0x464106['RPHgv']:case _0x464106[_0x3e7bb0(0x108)]:this['firefoxOptions_']&&(_0x109226=this[_0x3e7bb0(0x12e)][_0x3e7bb0(0xf3)](this[_0x3e7bb0(0x12e)]['CAPABILITY_KEY'])||{},this[_0x3e7bb0(0x12e)][_0x3e7bb0(0xf6)](this[_0x3e7bb0(0x12e)][_0x3e7bb0(0x139)],helper[_0x3e7bb0(0xf1)](_0x109226,_0x4de67a[_0x41487e])));break;case _0x464106[_0x3e7bb0(0x136)]:this['safariOptions_']&&(_0x109226=this[_0x3e7bb0(0x130)]['get'](this['safariOptions_'][_0x3e7bb0(0x139)])||{},this[_0x3e7bb0(0x130)]['set'](this['safariOptions_'][_0x3e7bb0(0x139)],helper[_0x3e7bb0(0xf1)](_0x109226,_0x4de67a[_0x41487e])));break;case _0x464106['wxNQh']:case _0x464106[_0x3e7bb0(0x13e)]:this[_0x3e7bb0(0x104)]&&(_0x109226=this[_0x3e7bb0(0x104)][_0x3e7bb0(0xf3)](this[_0x3e7bb0(0x104)][_0x3e7bb0(0x139)])||{},this['ieOptions_'][_0x3e7bb0(0xf6)](this[_0x3e7bb0(0x104)][_0x3e7bb0(0x139)],helper[_0x3e7bb0(0xf1)](_0x109226,_0x4de67a[_0x41487e])));break;}}}[_0x3c7cc3(0x153)](){const _0x376920=_0x3c7cc3,_0x1d0fab={'pRvLx':function(_0x4d2fc5,_0x5cf365){return _0x464106['MHutS'](_0x4d2fc5,_0x5cf365);},'hNlhx':_0x464106['XziFh']};return logger[_0x376920(0x140)](_0x464106[_0x376920(0xff)]),this[_0x376920(0xfc)](_0x55c322[_0x376920(0x137)]),Object[_0x376920(0x141)](_0x55c322['capability'])[_0x376920(0x10d)](_0x412a6e=>{const _0x16c63f=_0x376920,_0x19a85a=this['capabilities_'][_0x16c63f(0xf3)](_0x412a6e);_0x1d0fab['pRvLx'](typeof _0x19a85a,_0x1d0fab[_0x16c63f(0x14f)])?this[_0x16c63f(0x115)]['set'](_0x412a6e,helper[_0x16c63f(0xf1)](_0x19a85a,_0x55c322[_0x16c63f(0x137)][_0x412a6e])):this[_0x16c63f(0x115)][_0x16c63f(0xf6)](_0x412a6e,_0x55c322['capability'][_0x412a6e]);}),this;}[_0x3c7cc3(0x110)](){const _0x178903=_0x3c7cc3,_0x4ef28c={'yaBfK':function(_0x238128,_0x2b1676,_0xd5a439){return _0x464106['mfrYW'](_0x238128,_0x2b1676,_0xd5a439);}};if(helper[_0x178903(0x118)]()){const _0x4350fd=_0x464106[_0x178903(0xfd)][_0x178903(0xf8)]('|');let _0x403af1=0x0;while(!![]){switch(_0x4350fd[_0x403af1++]){case'0':globals[_0x178903(0x10b)](_0x464106[_0x178903(0x142)])&&(!_0x464106[_0x178903(0x105)](setExtension,this,_0x55c322)&&globals[_0x178903(0x123)](_0x464106['IDXvl'],![]));continue;case'1':if(helper[_0x178903(0xea)](_0x55c322['proxySettings']['proxyUrl']))this['agent_']=helper[_0x178903(0x158)](_0x55c322['proxySettings']['proxyUrl']);else _0x55c322[_0x178903(0x154)][_0x178903(0xf2)]&&(this[_0x178903(0xe5)]=_0x55c322[_0x178903(0x154)][_0x178903(0xf2)],logger[_0x178903(0x140)](_0x178903(0x113)+this[_0x178903(0xe5)]));continue;case'2':this[_0x178903(0x153)]();continue;case'3':_0x464106[_0x178903(0x124)](isAccessibilityAutomationSession)&&_0x464106[_0x178903(0x12c)](setAccessibilityCapabilities,_0x55c322);continue;case'4':this[_0x178903(0x111)]();continue;case'5':logger[_0x178903(0x140)](_0x464106['gHbdA']);continue;}break;}}const _0x4a11f7=super[_0x178903(0x110)]();return _0x4a11f7[_0x178903(0xfa)][_0x178903(0x11a)](_0x592d84=>{const _0x40aa38=_0x178903;try{const _0x52880c=_0x592d84['caps_'][_0x40aa38(0xf3)](_0x464106[_0x40aa38(0x11e)]);_0x52880c?(logger[_0x40aa38(0x140)](_0x40aa38(0x11b)+_0x52880c),hubAllocator[_0x40aa38(0x12b)](_0x52880c),helper[_0x40aa38(0x143)](_0x52880c)):logger[_0x40aa38(0x140)](_0x464106[_0x40aa38(0x156)]);}catch(_0x1cced1){logger[_0x40aa38(0x140)](_0x40aa38(0x133)+_0x1cced1);}}),_0x4a11f7['quitCount_']=0x0,_0x4a11f7[_0x178903(0x11a)]&&_0x4a11f7['then'](_0x37dcb0=>{const _0x41b01e=_0x178903,_0x13ce4d={'euCjJ':function(_0x49d340,_0x422eda,_0x47dd9c){const _0x20c845=a29_0x2e7d;return _0x464106[_0x20c845(0x145)](_0x49d340,_0x422eda,_0x47dd9c);}};_0x464106['wquKh'](overrideQuit,_0x37dcb0,_0x4a11f7),_0x464106[_0x41b01e(0x12c)](overrideTakeScreenshot,_0x37dcb0),helper[_0x41b01e(0x14e)](_0x37dcb0,_0x55c322),_0x464106['AUVfR'](overrideExecute,_0x37dcb0,_0x55c322),_0x37dcb0[_0x41b01e(0x10a)]=async()=>{const _0x2d33a8=_0x41b01e;return await _0x13ce4d[_0x2d33a8(0x147)](getAccessibilityResultsSummary,_0x37dcb0,global);},_0x37dcb0[_0x41b01e(0xee)]=async()=>{return await _0x13ce4d['euCjJ'](getAccessibilityResults,_0x37dcb0,global);};}),_0x4a11f7[_0x178903(0x10a)]=async()=>{const _0x52bab4=_0x178903;return await _0x4ef28c[_0x52bab4(0xe8)](getAccessibilityResultsSummary,_0x4a11f7,global);},_0x4a11f7[_0x178903(0xee)]=async()=>{return await _0x4ef28c['yaBfK'](getAccessibilityResults,_0x4a11f7,global);},_0x464106[_0x178903(0x12c)](overrideTakeScreenshot,_0x4a11f7),_0x464106[_0x178903(0x13a)](overrideQuit,_0x4a11f7),helper[_0x178903(0x14e)](_0x4a11f7,_0x55c322),_0x464106[_0x178903(0x105)](overrideExecute,_0x4a11f7,_0x55c322),helper[_0x178903(0x103)](global['__driversArray'])&&(global[_0x178903(0xe4)]=[]),helper[_0x178903(0x103)](global[_0x178903(0x148)])&&(global[_0x178903(0x148)]=[]),global[_0x178903(0xe4)]['push'](_0x4a11f7),global['__driver']=_0x4a11f7,_0x464106[_0x178903(0x14b)](global['__drivers'],undefined)&&global[_0x178903(0x148)]['push'](_0x4a11f7),_0x59b4c1&&helper[_0x178903(0x103)](_0x59b4c1[_0x178903(0x128)][_0x178903(0xe4)])&&(_0x59b4c1[_0x178903(0x128)][_0x178903(0xe4)]=[]),_0x59b4c1&&_0x464106[_0x178903(0x114)](_0x59b4c1[_0x178903(0x128)][_0x178903(0x148)],undefined)&&(_0x59b4c1['global'][_0x178903(0x148)]['push'](_0x4a11f7),_0x59b4c1[_0x178903(0x128)]['__driversArray']['push'](_0x4a11f7)),_0x4a11f7;}}return _0x1cf23c[_0x3c7cc3(0x138)]=_0x1cf23c['Builder'],_0x1cf23c[_0x3c7cc3(0x112)]=_0x393b3b,_0x31636d[_0x3c7cc3(0xe6)]=_0x3bc683,_0x1cf23c;};module[a29_0x31d483(0x125)]['browserstackAgentObservability']=modify;function a29_0x2e7d(_0x88de1f,_0x71fa73){const _0x44fbdf=a29_0x44fb();return a29_0x2e7d=function(_0x2e7d95,_0x953c85){_0x2e7d95=_0x2e7d95-0xe3;let _0x35379c=_0x44fbdf[_0x2e7d95];return _0x35379c;},a29_0x2e7d(_0x88de1f,_0x71fa73);}function a29_0x44fb(){const _0x28eebd=['setLogLevel','newHubUrl','3|4|2|1|0|5','setGlobal','URyLv','exports','Modifying\x20webdriver\x20builder','557340RVOGOw','global','9751kuZpzZ','options_','updateHubUrl','oFoZL','/wd/hub','firefoxOptions_','3828448PHRurd','safariOptions_','moz:firefoxOptions','error','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','lcKGy','edgeOptions_','PXzpE','capability','originalBuilder','CAPABILITY_KEY','YahaZ','twiaI','path','optimalHubUrl','hzXXz','url_','debug','keys','IDXvl','storeOptimalHubUrl','./helpers/patchHelper','caOFq','edgeOptions','euCjJ','__drivers','chromeOptions_','../../../helpers/patchHelpers','PGAWB','eMpyU','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','overrideGet','hNlhx','595446ecwSUJ','pYxPF','logLevel','setCapabilities','proxySettings','../accessibility-automation/helper','Cdmxz','send','getHttpAgent','UwYyY','__driversArray','proxy_','HttpClient','27nYoBnt','yaBfK','../../../helpers/accessibility-automation/helper','isPacProxy','info','../../../hubAllocationMethods','../../../helpers/globals','getAccessibilityResults','/session','1226ONgGEy','mergeDeep','proxyUrl','get','663315yHKjOR','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','set','object','split','firefoxOptions','session_','requireSeleniumWebdriver','__setBrowserOptions','muWOU','safari.options','NZEtY','getRequestOptions','chromeOptions','../../../helpers/logger','isUndefined','ieOptions_','QzbIF','ieOptions','jXnIK','pRsfd','isAccessibilityPlatform','getAccessibilityResultsSummary','getGlobal','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','forEach','Setting\x20Browserstack\x20capabilities','requireHttpClient','build','setServer','Builder','Proxy\x20set\x20to\x20','eROKS','capabilities_','browserStackLogLevel','813704mwMrxa','isBrowserstackInfra','ms:edgeOptions','then','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','winstonLogger','getHubUrl','vjOAu','../../../bin/utils/constants'];a29_0x44fb=function(){return _0x28eebd;};return a29_0x44fb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a30_0x251e3b=a30_0x4cf7;(function(_0x4dd9f0,_0x307dd3){const _0x368fa3=a30_0x4cf7,_0x45e882=_0x4dd9f0();while(!![]){try{const _0x44d98c=parseInt(_0x368fa3(0x1b2))/0x1+-parseInt(_0x368fa3(0x1af))/0x2*(-parseInt(_0x368fa3(0x1b1))/0x3)+-parseInt(_0x368fa3(0x1b4))/0x4+-parseInt(_0x368fa3(0x1a9))/0x5*(-parseInt(_0x368fa3(0x1b5))/0x6)+-parseInt(_0x368fa3(0x1b0))/0x7+-parseInt(_0x368fa3(0x1ae))/0x8+-parseInt(_0x368fa3(0x1b3))/0x9;if(_0x44d98c===_0x307dd3)break;else _0x45e882['push'](_0x45e882['shift']());}catch(_0x2e62a5){_0x45e882['push'](_0x45e882['shift']());}}}(a30_0x112f,0xe1f4e));function a30_0x4cf7(_0x1b74d5,_0x1dc642){const _0x112fa3=a30_0x112f();return a30_0x4cf7=function(_0x4cf713,_0x17ce7e){_0x4cf713=_0x4cf713-0x1a9;let _0x18ba5f=_0x112fa3[_0x4cf713];return _0x18ba5f;},a30_0x4cf7(_0x1b74d5,_0x1dc642);}function a30_0x112f(){const _0x10952f=['4986552vawrLM','8qDmtxX','3200869HppmUo','921135jOLGgc','1789305CoThqD','5883318MwVJbQ','5679500ZWQVKb','888bQbzjR','../../../bin/utils/constants','35885csEGxt','mochaHooks','RrFAd','timeout','../../../helpers/test-observability/utils'];a30_0x112f=function(){return _0x10952f;};return a30_0x112f();}const requestSpy=require('../../../helpers/request-spy'),constants=require(a30_0x251e3b(0x1b6)),{addRequestSpy}=require(a30_0x251e3b(0x1ad));exports[a30_0x251e3b(0x1aa)]={'beforeAll'(){const _0x48f545=a30_0x251e3b,_0x195b30={'RrFAd':function(_0x216fb3){return _0x216fb3();}},_0x233c0c='browserstack internal helper hook';_0x195b30[_0x48f545(0x1ab)](addRequestSpy);},'afterAll'(){const _0x193357=a30_0x251e3b,_0x3ea979='browserstack internal helper hook';this[_0x193357(0x1ac)](0xea60),requestSpy['restore']();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x467f1d=a31_0x461f;function a31_0x461f(_0x5e0e47,_0x4aca1d){const _0x5236b4=a31_0x5236();return a31_0x461f=function(_0x461f78,_0x46e76e){_0x461f78=_0x461f78-0x143;let _0x36cfb1=_0x5236b4[_0x461f78];return _0x36cfb1;},a31_0x461f(_0x5e0e47,_0x4aca1d);}(function(_0x378df1,_0x5c8527){const _0x5143eb=a31_0x461f,_0x2677d8=_0x378df1();while(!![]){try{const _0x1585b8=parseInt(_0x5143eb(0x18b))/0x1+parseInt(_0x5143eb(0x190))/0x2+-parseInt(_0x5143eb(0x18d))/0x3*(-parseInt(_0x5143eb(0x189))/0x4)+-parseInt(_0x5143eb(0x169))/0x5+parseInt(_0x5143eb(0x147))/0x6+parseInt(_0x5143eb(0x143))/0x7+parseInt(_0x5143eb(0x148))/0x8*(-parseInt(_0x5143eb(0x174))/0x9);if(_0x1585b8===_0x5c8527)break;else _0x2677d8['push'](_0x2677d8['shift']());}catch(_0x3fa2a2){_0x2677d8['push'](_0x2677d8['shift']());}}}(a31_0x5236,0xc4b21));const {v4:uuidv4}=require(a31_0x467f1d(0x144)),{name,version}=require(a31_0x467f1d(0x184)),logPatcher=require(a31_0x467f1d(0x152)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x467f1d(0x160)),{consoleHolder}=require(a31_0x467f1d(0x167)),{getPlatformVersion}=require(a31_0x467f1d(0x15e)),{shouldProcessEventForTesthub}=require(a31_0x467f1d(0x177)),{isFunction}=require(a31_0x467f1d(0x14c)),{patchConsoleLogger}=require(a31_0x467f1d(0x160));function a31_0x5236(){const _0xcc2877=['mapTestHooks','reduce','get','forEach','../../../helpers/helper','QaZlB','../../../helpers/test-observability/utils','filter','__cloud_provider___','pid','getBrowserName','js-','auOyj','../../../helpers/test-observability/constants','type','3173450QsAfKj','toISOString','oMHsC','lStJy','yFWjO','NcAIh','getPlatform','parent','ZnWVr','platformVersion','_afterEach','36IoGsiO','AUkGG','getHookSkippedTests','../../../helpers/testhub/utils','emit','passed','OHhxR','getCapabilities','concat','push','TEST_PLATFORM','LzpWt','pUoyT','markedStatus','split','HMHgO','../../../../package.json','tests','pending','jeDfN','cAuTg','26524xJwVWq','ypnfA','294632bfWGTs','failed','222flxOJG','_beforeAll','ICfUa','2091330AEwBYM','Dtrjk','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','ICkhE','PyZHV','browserstack','CJdId','getBrowserVersion','7987196tmmMLt','uuid','toJSON','LhTxB','8408448aAePna','5866144nRHeUi','bs:addPlatformDetails:','hookAnalyticsId','getHooksForTest','lodash','McYHH','hook','suites','string','xFUMd','../../utils/logPatcher','_beforeEach','PRxwt','lYgFq','_afterAll','VoPYp','indexOf','MYBQn'];a31_0x5236=function(){return _0xcc2877;};return a31_0x5236();}patchConsoleLogger(),exports['getTestEnv']=()=>{const _0x8c0b65=a31_0x467f1d,_0x5bc062={'QaZlB':'generic','AUkGG':function(_0x45178a){return _0x45178a();}};return{'ci':_0x5bc062[_0x8c0b65(0x15f)],'key':_0x5bc062[_0x8c0b65(0x175)](uuidv4),'version':version,'collector':_0x8c0b65(0x165)+name};},exports['getHookDetails']=_0x524d96=>{const _0x5008fc=a31_0x467f1d,_0x3a9ef5={};_0x3a9ef5[_0x5008fc(0x16c)]=function(_0x25ea94,_0x4355c2){return _0x25ea94!==_0x4355c2;},_0x3a9ef5[_0x5008fc(0x159)]=_0x5008fc(0x150),_0x3a9ef5[_0x5008fc(0x151)]=function(_0x3182d6,_0x67ed3b){return _0x3182d6!==_0x67ed3b;},_0x3a9ef5[_0x5008fc(0x154)]='hook:',_0x3a9ef5[_0x5008fc(0x180)]=function(_0x1115f8,_0x4616c){return _0x1115f8!==_0x4616c;},_0x3a9ef5[_0x5008fc(0x157)]=_0x5008fc(0x14e);const _0x96d3d9=_0x3a9ef5;if(!_0x524d96||_0x96d3d9[_0x5008fc(0x16c)](typeof _0x524d96,_0x96d3d9[_0x5008fc(0x159)]))return[null,null];if(_0x96d3d9[_0x5008fc(0x151)](_0x524d96['indexOf'](_0x96d3d9[_0x5008fc(0x154)]),-0x1)){const _0x38fffa=_0x524d96[_0x5008fc(0x182)](_0x96d3d9[_0x5008fc(0x154)]);return[_0x38fffa[0x0]['slice'](0x0,-0x1)[_0x5008fc(0x182)]('\x22')[0x1],_0x38fffa[0x1]['substring'](0x1)];}else{if(_0x96d3d9[_0x5008fc(0x180)](_0x524d96[_0x5008fc(0x158)](_0x96d3d9[_0x5008fc(0x157)]),-0x1)){const _0x12efdf=_0x524d96['split'](_0x96d3d9['VoPYp']);return[_0x12efdf[0x0]['slice'](0x0,-0x1)[_0x5008fc(0x182)]('\x22')[0x1],_0x524d96];}}return[null,null];},exports[a31_0x467f1d(0x14b)]=_0x128c39=>{const _0x15dfb4=a31_0x467f1d,_0x5dbba9={'AJNHq':function(_0x1bda20,_0x2f0fa9){return _0x1bda20(_0x2f0fa9);},'McYHH':_0x15dfb4(0x18e),'ICkhE':_0x15dfb4(0x156),'aDQNI':_0x15dfb4(0x153),'yFWjO':_0x15dfb4(0x173)};if(!_0x128c39||!_0x128c39[_0x15dfb4(0x170)])return[];const _0x3cdcde=[];return[_0x5dbba9[_0x15dfb4(0x14d)],_0x5dbba9[_0x15dfb4(0x193)],_0x5dbba9['aDQNI'],_0x5dbba9[_0x15dfb4(0x16d)]][_0x15dfb4(0x15d)](_0x233c93=>{const _0x42be48=_0x15dfb4,_0x1c6721={'ICfUa':function(_0x11718f,_0x27e11d){return _0x5dbba9['AJNHq'](_0x11718f,_0x27e11d);}},_0x5045e4=_0x128c39[_0x42be48(0x170)][_0x233c93]||[];_0x5045e4[_0x42be48(0x15d)](_0x3ba4f5=>{const _0xed4712=_0x42be48;_0x3ba4f5[_0xed4712(0x14a)]&&!_0x1c6721[_0xed4712(0x18f)](isInternalHook,_0x3ba4f5['fn'])&&_0x3cdcde[_0xed4712(0x17d)](_0x3ba4f5[_0xed4712(0x14a)]);});}),[..._0x3cdcde,...exports[_0x15dfb4(0x14b)](_0x128c39['parent'])];},exports[a31_0x467f1d(0x15a)]=_0xa1624=>{const _0x346f39=a31_0x467f1d,_0x100521={'auOyj':function(_0x3b5d06){return _0x3b5d06();},'gOIBb':function(_0x12a78c,_0x402a5c){return _0x12a78c===_0x402a5c;},'OHhxR':_0x346f39(0x173),'lYgFq':_0x346f39(0x18e),'ypnfA':'_afterAll','Dtrjk':_0x346f39(0x153)};if(!_0xa1624||!_0xa1624[_0x346f39(0x170)])return;[_0x100521[_0x346f39(0x155)],_0x100521[_0x346f39(0x18a)],_0x100521[_0x346f39(0x191)],_0x100521[_0x346f39(0x17a)]][_0x346f39(0x15d)](_0x26cdf6=>{const _0x35aed2=_0x346f39,_0x1370f3=_0xa1624[_0x35aed2(0x170)][_0x26cdf6]||[];_0x1370f3[_0x35aed2(0x15d)](_0xc9e358=>{const _0x528d0f=_0x35aed2;if(!_0xc9e358['hookAnalyticsId'])_0xc9e358[_0x528d0f(0x14a)]=_0x100521[_0x528d0f(0x166)](uuidv4);else _0xc9e358[_0x528d0f(0x181)]&&_0x100521['gOIBb'](_0x26cdf6,_0x100521['OHhxR'])&&(_0xc9e358[_0x528d0f(0x14a)]=_0x100521['auOyj'](uuidv4),delete _0xc9e358[_0x528d0f(0x181)]);});}),exports[_0x346f39(0x15a)](_0xa1624[_0x346f39(0x170)]);},exports['sendPlatformDetails']=async(_0x5a9c27,_0x14881a)=>{const _0x5065d4=a31_0x467f1d,_0x50b806={'CJdId':function(_0x496a75){return _0x496a75();},'ZdBeV':function(_0x3db2d6,_0x3b73af){return _0x3db2d6(_0x3b73af);},'NcAIh':_0x5065d4(0x172),'LhTxB':function(_0x1acbfa,_0x22a67a){return _0x1acbfa(_0x22a67a);},'FbuCq':function(_0x3c20d3,_0x5114a2){return _0x3c20d3===_0x5114a2;},'ZnWVr':_0x5065d4(0x195),'UVrnq':'unknown_grid','oMHsC':_0x5065d4(0x17e),'LzpWt':function(_0xf0c69b,_0xdea1c9){return _0xf0c69b(_0xdea1c9);}};try{if(!_0x50b806[_0x5065d4(0x196)](shouldProcessEventForTesthub))return;const _0x351d6f=await _0x5a9c27[_0x5065d4(0x17b)](),_0xcc6f72=await _0x5a9c27['getSession'](),_0x105c49={},_0x523817=Object['fromEntries'](_0xcc6f72[_0x5065d4(0x17b)]()['map_']),_0x3a319c={'product':_0x50b806['ZdBeV'](getObservabilityLinkedProductName,_0x523817),'capabilities':_0x523817,'platform':_0x351d6f[_0x5065d4(0x16f)](),'platform_version':_0x351d6f[_0x5065d4(0x15c)](_0x50b806[_0x5065d4(0x16e)])?_0x351d6f['get'](_0x50b806[_0x5065d4(0x16e)]):_0x50b806[_0x5065d4(0x146)](getPlatformVersion,_0x50b806['FbuCq'](global[_0x5065d4(0x162)],_0x50b806[_0x5065d4(0x171)])),'browser':_0x351d6f[_0x5065d4(0x164)](),'browser_version':_0x351d6f[_0x5065d4(0x197)](),'session_id':_0xcc6f72[_0x5065d4(0x145)]()};global[_0x5065d4(0x162)]?_0x105c49[global[_0x5065d4(0x162)]]=_0x3a319c:_0x105c49[_0x50b806['UVrnq']]=_0x3a319c,process[_0x5065d4(0x178)](_0x5065d4(0x149)+process[_0x5065d4(0x163)],{'timestamp':new Date()[_0x5065d4(0x16a)](),'level':null,'message':null,'kind':_0x50b806[_0x5065d4(0x16b)],'http_response':_0x105c49,'uuid':_0x14881a});}catch(_0x1ebb3f){_0x50b806[_0x5065d4(0x17f)](debug,_0x5065d4(0x192)+_0x1ebb3f);}},exports[a31_0x467f1d(0x176)]=_0x375784=>{const _0x39dd4c=a31_0x467f1d,_0x206e7b={};_0x206e7b['jeDfN']=function(_0x1c5e2c,_0x42ace5){return _0x1c5e2c!==_0x42ace5;},_0x206e7b[_0x39dd4c(0x188)]=_0x39dd4c(0x14e),_0x206e7b[_0x39dd4c(0x194)]=_0x39dd4c(0x179),_0x206e7b[_0x39dd4c(0x183)]=_0x39dd4c(0x18c);const _0x487143=_0x206e7b,_0x391e6c=_0x375784[_0x39dd4c(0x14f)][_0x39dd4c(0x15b)]((_0x12ae7c,_0x456930)=>{const _0x45c37d=_0x39dd4c,_0x4dd164=exports[_0x45c37d(0x176)](_0x456930);return _0x4dd164&&(_0x12ae7c=_0x12ae7c['concat'](_0x4dd164)),_0x12ae7c;},[]),_0x256d24=_0x375784[_0x39dd4c(0x185)][_0x39dd4c(0x161)](_0xcacdb1=>{const _0x273323=_0x39dd4c,_0x2717f8=_0x487143[_0x273323(0x187)](_0xcacdb1[_0x273323(0x168)],_0x487143[_0x273323(0x188)])&&!_0xcacdb1[_0x273323(0x181)]&&_0x487143[_0x273323(0x187)](_0xcacdb1['state'],_0x487143[_0x273323(0x194)])&&_0x487143[_0x273323(0x187)](_0xcacdb1['state'],_0x487143[_0x273323(0x183)])&&!_0xcacdb1[_0x273323(0x186)];return _0x2717f8;});return _0x256d24[_0x39dd4c(0x17c)](_0x391e6c);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x17b94c=a32_0x5cf7;function a32_0x348a(){const _0x5880d9=['LPYJM','edtBE','testAnalyticsId','1380869YXFmWZ','SAVE_RESULTS','ObservabilitySync:','isHeU','QltDi','6451758GSgjEG','env','AlrLf','shouldScanTestForAccessibility','ytYLG','6cBQyHE','sAFzV','timeout','mYXlf','1118238FGiRqt','now','startMonitoring','eWHzh','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','percy','CMUlC','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','ulGZP','oDiwW','cQeuN','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','../../helpers/percy/utils','../../helpers/performance/performance-tester','browserstackSessionName','https:','mochaHooks','__sessionFailed','vIvyd','err','initQuit','getGlobal','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','capabilities','measureWrapper','ARotp','Performing\x20scan\x20before\x20saving\x20results','thJwtToken','__platformCaps','SESSION_STATUS','message','Automate\x20test\x20case\x20execution\x20has\x20started.','Uygzz','../../helpers/testhub/constants','error','http:','currentTest','lJlxL','Znzti','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','fCcgF','join','aPkis','executeScript','titlePath','chvuX','driverCleanup','beforeEach','../../helpers/globals','oMxUy','stringify','VeFYh','failed','kjYty','__error_messages__','UMWrP','ZgPMg','sessionNameSet__','afterEach','push','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','6284685ddbXdb','MImjB','pltCJ','bdKmF','thBuildUuid','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','PERFORM_SCAN','../../helpers/logger','quitCount_','3214106aMnTML','../../helpers/accessibility-automation/helper','accessibilityScanStarted','uUdDK','end','start','passed','lCgqs','SYNC','__drivers','executeAsyncScript','xCZQY','pCdAI','RgiJL','isAccessibilityPlatform','pNKiM','format','JNehO','uKlwt','YheCH','BROWSERSTACK_TESTHUB_UUID','dkzxU','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','QxBNb','isArray','\x20-\x20','wmMCz','dQUJK','iNFQR',',\x22level\x22:\x20\x22','thTestRunUuid','index','afrtY','__skipSessionName','performScan','info','session_','then','Failed\x20to\x20store\x20session\x20name:\x20','SESSION_NAME','afterTest','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','cQEbp','wspQb','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','../../helpers/helper','testcase','DIead','SDK_HOOK','qHapN','Qlkko','iqOfw','bstackA11yShouldScan','19260512MeBCwk','KDOQi','RhmNj','4407576IyKVKp','\x22}}','shift','nALvW','HdnrX','OjQuQ','finally','setGlobal','ukfAD','GJeFk','DPosk','sessionName','length','roBcO','mhsVO','ENV_VAR','protocol','app','../../helpers/testhub/utils','Uzcsu','debug','../../helpers/accessibility-automation/scripts','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'];a32_0x348a=function(){return _0x5880d9;};return a32_0x348a();}(function(_0x2548dd,_0x9906ec){const _0xc72659=a32_0x5cf7,_0x4ff185=_0x2548dd();while(!![]){try{const _0x462f2b=parseInt(_0xc72659(0x1d3))/0x1+parseInt(_0xc72659(0x1dd))/0x2*(-parseInt(_0xc72659(0x1e1))/0x3)+-parseInt(_0xc72659(0x25f))/0x4+-parseInt(_0xc72659(0x21e))/0x5+parseInt(_0xc72659(0x1d8))/0x6+-parseInt(_0xc72659(0x227))/0x7+parseInt(_0xc72659(0x25c))/0x8;if(_0x462f2b===_0x9906ec)break;else _0x4ff185['push'](_0x4ff185['shift']());}catch(_0x4daccb){_0x4ff185['push'](_0x4ff185['shift']());}}}(a32_0x348a,0xe270b));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x17b94c(0x228)),{percyAutoCapture}=require(a32_0x17b94c(0x1ed)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x17b94c(0x254)),PerformanceTester=require(a32_0x17b94c(0x1ee)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),scripts=require(a32_0x17b94c(0x1ce)),globals=require(a32_0x17b94c(0x211)),logger=require(a32_0x17b94c(0x225))['winstonLogger'],{shouldProcessEventForTesthub}=require(a32_0x17b94c(0x1cb)),testHubConstants=require(a32_0x17b94c(0x202));function a32_0x5cf7(_0x4310c0,_0x467813){const _0x348a20=a32_0x348a();return a32_0x5cf7=function(_0x5cf7ab,_0x37bfd0){_0x5cf7ab=_0x5cf7ab-0x1c3;let _0xce8790=_0x348a20[_0x5cf7ab];return _0xce8790;},a32_0x5cf7(_0x4310c0,_0x467813);}exports[a32_0x17b94c(0x1f1)]={'beforeAll'(){const _0x3e08e9=a32_0x17b94c,_0x166dbc={'QltDi':function(_0x53e214,_0xa88eb1,_0x439251,_0x32e7fb){return _0x53e214(_0xa88eb1,_0x439251,_0x32e7fb);},'iNFQR':_0x3e08e9(0x215),'vvBjz':'\x20|\x20','DIead':function(_0x36f2e4,_0x7b2609,_0x3114b0){return _0x36f2e4(_0x7b2609,_0x3114b0);},'Gvnvr':_0x3e08e9(0x22d),'lCgqs':function(_0x1bdda4){return _0x1bdda4();},'qHapN':function(_0x3ea69a,_0x5edc15,_0x1b3773){return _0x3ea69a(_0x5edc15,_0x1b3773);},'FkkJO':'index','pltCJ':'beforeAll'};PerformanceTester[_0x3e08e9(0x1e3)]();const _0x1142cc='browserstack internal helper hook';PerformanceTester[_0x3e08e9(0x1f9)](PerformanceSdkEvents[_0x3e08e9(0x257)],()=>{const _0x234ed1=_0x3e08e9;global[_0x234ed1(0x217)]=[],global[_0x234ed1(0x1f2)]=![],global[_0x234ed1(0x20f)]=async()=>{const _0xea090a=_0x234ed1;let _0x557236=![];try{await global['__drivers'][0x0][_0xea090a(0x24b)],_0x557236=!![],global['__sessionFailed']?await _0x166dbc[_0xea090a(0x1d7)](markSessionStatus,global[_0xea090a(0x230)][0x0],_0x166dbc[_0xea090a(0x243)],global['__error_messages__'][_0xea090a(0x20a)](_0x166dbc['vvBjz'])):await _0x166dbc[_0xea090a(0x256)](markSessionStatus,global['__drivers'][0x0],_0x166dbc['Gvnvr']);}catch(_0x110f2c){logger[_0xea090a(0x1cd)]('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x110f2c);}global[_0xea090a(0x217)]=[],global[_0xea090a(0x1f2)]=![];if(_0x557236)try{try{_0x166dbc[_0xea090a(0x22e)](shouldProcessEventForTesthub)&&(global[_0xea090a(0x230)][0x0]&&await _0x166dbc[_0xea090a(0x258)](sendPlatformDetails,global[_0xea090a(0x230)][0x0],this[_0xea090a(0x205)]?this[_0xea090a(0x205)]['testAnalyticsId']:null));}catch(_0x3db1d1){logger['debug']('Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20'+_0x3db1d1);}await global[_0xea090a(0x230)][0x0][_0xea090a(0x1f5)]();}catch(_0x1bd565){logger['debug'](_0xea090a(0x208)+_0x1bd565);}};},{'platform':_0x166dbc['qHapN'](nestedKeyValue,global['__platformCaps'],[_0x166dbc['FkkJO']]),'hookType':_0x166dbc[_0x3e08e9(0x220)]})();},'beforeEach'(_0x19a776){const _0x7ef3ed=a32_0x17b94c,_0x309290={'xCZQY':function(_0x5d472a,_0x428118){return _0x5d472a>_0x428118;},'CMUlC':'\x20-\x20','OjQuQ':function(_0x51a1d5,_0x364465,_0xf3cbaa){return _0x51a1d5(_0x364465,_0xf3cbaa);},'JNehO':'bstackA11yShouldScan','HdnrX':function(_0x1a9761){return _0x1a9761();},'Uzcsu':function(_0x469ff7,_0x1bf06f){return _0x469ff7>_0x1bf06f;},'ukfAD':_0x7ef3ed(0x235),'faiav':function(_0x1fefd2,_0x54b7b3){return _0x1fefd2===_0x54b7b3;},'JlElz':_0x7ef3ed(0x204),'RgiJL':_0x7ef3ed(0x1f0),'Qlkko':_0x7ef3ed(0x223),'lJlxL':_0x7ef3ed(0x200),'LPYJM':'browserstackTestName','EcCUp':'index','oDiwW':_0x7ef3ed(0x210)};globals[_0x7ef3ed(0x266)](_0x309290[_0x7ef3ed(0x1d0)],this['currentTest'][_0x7ef3ed(0x20d)]()[_0x7ef3ed(0x20a)](_0x309290[_0x7ef3ed(0x1e7)])),PerformanceTester[_0x7ef3ed(0x1f9)](PerformanceSdkEvents[_0x7ef3ed(0x257)],()=>{const _0x2d8581=_0x7ef3ed,_0x19396e={'oMxUy':function(_0x1917dc,_0x39d66b){const _0x5e01ca=a32_0x5cf7;return _0x309290[_0x5e01ca(0x232)](_0x1917dc,_0x39d66b);},'eWHzh':_0x309290[_0x2d8581(0x1e7)],'iJUlN':function(_0x5d6ab5,_0x15b9a2,_0x4a09b9){const _0x4d482d=_0x2d8581;return _0x309290[_0x4d482d(0x264)](_0x5d6ab5,_0x15b9a2,_0x4a09b9);},'RhmNj':_0x309290[_0x2d8581(0x238)],'vIvyd':function(_0x5e7c33){const _0x1e2ade=_0x2d8581;return _0x309290[_0x1e2ade(0x263)](_0x5e7c33);},'uUdDK':function(_0xc81ef0,_0x1aa3ce){const _0x122222=_0x2d8581;return _0x309290[_0x122222(0x1cc)](_0xc81ef0,_0x1aa3ce);},'eKQCC':_0x309290[_0x2d8581(0x267)],'ZgPMg':function(_0x418d36,_0x3a40b7){return _0x309290['faiav'](_0x418d36,_0x3a40b7);},'MImjB':_0x309290['JlElz'],'dkzxU':_0x309290[_0x2d8581(0x234)],'cQEbp':_0x309290[_0x2d8581(0x259)],'pkDeD':_0x309290[_0x2d8581(0x206)]},_0x113f34='browserstack internal helper hook';new Promise(async _0x4feef0=>{const _0x52f387=_0x2d8581;let _0x4f50eb=!![];try{_0x19396e['oMxUy'](global[_0x52f387(0x230)]['length'],0x1)&&(await global[_0x52f387(0x20f)](),global['__drivers'][_0x52f387(0x261)]()),_0x19396e[_0x52f387(0x212)](global[_0x52f387(0x230)][0x0]['quitCount_'],0x0)&&(_0x4f50eb=![],await global[_0x52f387(0x20f)]());}catch(_0x2d033c){logger[_0x52f387(0x1cd)](_0x52f387(0x208)+_0x2d033c);}try{Array[_0x52f387(0x23f)](global[_0x52f387(0x230)])&&global['__drivers'][0x0]&&(global[_0x52f387(0x230)][0x0]['browserstackSessionName']=this[_0x52f387(0x205)][_0x52f387(0x20d)]()[_0x52f387(0x20a)](_0x19396e[_0x52f387(0x1e4)])),global[_0x52f387(0x1ef)]=this[_0x52f387(0x205)]['titlePath']()[_0x52f387(0x20a)](_0x19396e[_0x52f387(0x1e4)]);}catch(_0x13b076){logger[_0x52f387(0x1cd)](_0x52f387(0x24d)+_0x13b076);}this[_0x52f387(0x205)][_0x52f387(0x1db)]=_0x19396e['iJUlN'](shouldScanTestForAccessibility,this[_0x52f387(0x205)][_0x52f387(0x20d)](),!![]),globals[_0x52f387(0x266)](_0x19396e[_0x52f387(0x25e)],this['currentTest'][_0x52f387(0x1db)]),this['currentTest'][_0x52f387(0x229)]=!![];if(_0x19396e[_0x52f387(0x1f3)](isAccessibilityAutomationSession)&&_0x4f50eb&&Array[_0x52f387(0x23f)](global[_0x52f387(0x230)])&&_0x19396e[_0x52f387(0x22a)](global[_0x52f387(0x230)][_0x52f387(0x1c5)],0x0)&&globals[_0x52f387(0x1f6)](_0x19396e['eKQCC']))try{const _0x41b2ff=await global[_0x52f387(0x230)][0x0][_0x52f387(0x24b)];if(_0x41b2ff){let _0x834665=!![];const _0x3ea4b8=await global[_0x52f387(0x230)][0x0]['getCurrentUrl']();let _0x2d7b2e;try{_0x2d7b2e=new URL(_0x3ea4b8);}catch(_0x3f0475){_0x834665=![];}_0x834665=_0x19396e[_0x52f387(0x219)](_0x2d7b2e[_0x52f387(0x1c9)],_0x19396e[_0x52f387(0x21f)])||_0x19396e['ZgPMg'](_0x2d7b2e[_0x52f387(0x1c9)],_0x19396e[_0x52f387(0x23c)]),_0x834665&&(this[_0x52f387(0x205)][_0x52f387(0x1db)]&&logger[_0x52f387(0x24a)](_0x19396e[_0x52f387(0x251)])),this[_0x52f387(0x205)][_0x52f387(0x229)]=this['currentTest'][_0x52f387(0x1db)],this[_0x52f387(0x205)][_0x52f387(0x1db)]&&logger[_0x52f387(0x24a)](_0x19396e['pkDeD']);}}catch(_0x158571){logger['error'](_0x52f387(0x23d)+util[_0x52f387(0x237)](_0x158571));}_0x19396e[_0x52f387(0x1f3)](_0x4feef0);})[_0x2d8581(0x24c)](()=>{const _0x4070b=_0x2d8581;_0x19396e[_0x4070b(0x1f3)](_0x19a776);});},{'platform':_0x309290[_0x7ef3ed(0x264)](nestedKeyValue,global[_0x7ef3ed(0x1fd)],[_0x309290['EcCUp']]),'hookType':_0x309290[_0x7ef3ed(0x1ea)]})();},'afterEach'(_0x58cf40){const _0x286139=a32_0x17b94c,_0x51aa05={'uKlwt':_0x286139(0x240),'GJeFk':function(_0x1d8a68,_0x280b6c){return _0x1d8a68>_0x280b6c;},'nALvW':function(_0x1fb20f,_0x41b85b){return _0x1fb20f===_0x41b85b;},'pCdAI':_0x286139(0x255),'QxBNb':function(_0x2ca2b6,_0x3c6773){return _0x2ca2b6>_0x3c6773;},'wjkAg':'appium:app','chvuX':function(_0x57cf3c,_0x173718,_0x34612c,_0x2f2f22){return _0x57cf3c(_0x173718,_0x34612c,_0x2f2f22);},'YheCH':_0x286139(0x235),'Uygzz':_0x286139(0x25b),'bdKmF':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','kjYty':_0x286139(0x1fb),'ARotp':_0x286139(0x24f),'cPMUI':_0x286139(0x1f7),'lrsPC':function(_0x5c0163){return _0x5c0163();},'mYXlf':function(_0x21363d,_0xc46420,_0x24a2ac){return _0x21363d(_0xc46420,_0x24a2ac);},'dQUJK':function(_0x4c609f,_0x4f502d,_0x125661){return _0x4c609f(_0x4f502d,_0x125661);},'DwKON':_0x286139(0x1cd),'sAFzV':function(_0x1e4244){return _0x1e4244();},'iqOfw':function(_0x354fbd,_0x25b4b2){return _0x354fbd!==_0x25b4b2;},'eczpQ':_0x286139(0x22d),'ulGZP':function(_0x33be46,_0x3eb3bd){return _0x33be46+_0x3eb3bd;},'dtODa':'Failed:\x20','wspQb':_0x286139(0x203),'KDOQi':'Passed','fCcgF':_0x286139(0x24a),'SUVAp':function(_0x246276){return _0x246276();},'roBcO':_0x286139(0x246),'DPosk':_0x286139(0x21b)},_0x2ae160='browserstack internal helper hook';this[_0x286139(0x1df)](0xfde8),global[_0x286139(0x1c4)]=this[_0x286139(0x205)][_0x286139(0x20d)]()[_0x286139(0x20a)](_0x51aa05[_0x286139(0x239)]),PerformanceTester[_0x286139(0x1f9)](PerformanceSdkEvents[_0x286139(0x257)],()=>{const _0x4a6329=_0x286139,_0x18c5ce={'AlrLf':function(_0x210d2d,_0x4f884d){const _0x2663a1=a32_0x5cf7;return _0x51aa05[_0x2663a1(0x25a)](_0x210d2d,_0x4f884d);},'isHeU':_0x51aa05['eczpQ'],'ytYLG':function(_0x55ab85,_0x4fd48b,_0x418e04){const _0x5a35cd=a32_0x5cf7;return _0x51aa05[_0x5a35cd(0x242)](_0x55ab85,_0x4fd48b,_0x418e04);},'Znzti':function(_0x307ed0,_0x4ea864){const _0x5da25a=a32_0x5cf7;return _0x51aa05[_0x5da25a(0x1e9)](_0x307ed0,_0x4ea864);},'edtBE':_0x51aa05['dtODa'],'pNKiM':_0x51aa05[_0x4a6329(0x252)],'wmMCz':_0x51aa05[_0x4a6329(0x25d)],'cQeuN':_0x51aa05[_0x4a6329(0x209)],'UMWrP':function(_0x5e9f3e){return _0x51aa05['SUVAp'](_0x5e9f3e);}},_0x5dbda0=async(_0x45c6be,_0x28c5cc)=>{const _0x1dc209=_0x4a6329;await global['__drivers'][0x0][_0x1dc209(0x20c)](_0x1dc209(0x21d)+_0x45c6be+_0x1dc209(0x244)+_0x28c5cc+_0x1dc209(0x260));};new Promise(async _0x4a72f3=>{const _0x2bb10a=_0x4a6329,_0x5d92de={};_0x5d92de[_0x2bb10a(0x214)]=_0x51aa05[_0x2bb10a(0x239)];const _0xc48c60=_0x5d92de;try{_0x51aa05[_0x2bb10a(0x268)](global[_0x2bb10a(0x230)][_0x2bb10a(0x1c5)],0x1)&&(await global[_0x2bb10a(0x20f)](),global[_0x2bb10a(0x230)]['shift'](),global[_0x2bb10a(0x217)]=[],global['__sessionFailed']=![]);try{if(global[_0x2bb10a(0x1e6)]&&_0x51aa05[_0x2bb10a(0x262)](global['percyCaptureMode'],_0x51aa05['pCdAI'])&&global[_0x2bb10a(0x230)][0x0]){const _0x541614=_0x51aa05[_0x2bb10a(0x23e)](global[_0x2bb10a(0x1f8)][_0x2bb10a(0x1c5)],0x0)?!!global[_0x2bb10a(0x1f8)][0x0]['app']||!!global[_0x2bb10a(0x1f8)][0x0][_0x51aa05['wjkAg']]:![],_0x43cfe2={};_0x43cfe2[_0x2bb10a(0x1ca)]=_0x541614,await _0x51aa05[_0x2bb10a(0x20e)](percyAutoCapture,global[_0x2bb10a(0x230)][0x0],_0x51aa05[_0x2bb10a(0x233)],_0x43cfe2);}}catch(_0x769b4){logger[_0x2bb10a(0x1cd)](_0x2bb10a(0x1e5)+_0x769b4);}!global[_0x2bb10a(0x248)]&&(await PerformanceTester[_0x2bb10a(0x1f9)](PerformanceAutEvents[_0x2bb10a(0x24e)],async()=>{const _0x4bcda5=_0x2bb10a;await global['__drivers'][0x0]['executeScript'](_0x4bcda5(0x1e8)+JSON['stringify'](this['currentTest'][_0x4bcda5(0x20d)]()[_0x4bcda5(0x20a)](_0xc48c60['VeFYh']))+'}}');})(),global[_0x2bb10a(0x230)][0x0][_0x2bb10a(0x21a)]=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x2bb10a(0x1fe)],async()=>{const _0x72afc8=_0x2bb10a,_0x2fdca3=_0x18c5ce[_0x72afc8(0x1da)](this[_0x72afc8(0x205)]['state'],_0x18c5ce[_0x72afc8(0x1d6)]);_0x2fdca3?(global[_0x72afc8(0x1f2)]=!![],global[_0x72afc8(0x217)][_0x72afc8(0x21c)](this[_0x72afc8(0x205)][_0x72afc8(0x1f4)]['message']),await _0x18c5ce[_0x72afc8(0x1dc)](_0x5dbda0,JSON[_0x72afc8(0x213)](_0x18c5ce[_0x72afc8(0x207)](_0x18c5ce[_0x72afc8(0x1d1)],this[_0x72afc8(0x205)]['err'][_0x72afc8(0x1ff)])),_0x18c5ce[_0x72afc8(0x236)])):await _0x18c5ce['ytYLG'](_0x5dbda0,JSON[_0x72afc8(0x213)](_0x18c5ce[_0x72afc8(0x241)]),_0x18c5ce[_0x72afc8(0x1eb)]);})();}catch(_0x42f5eb){logger['debug'](_0x2bb10a(0x1cf)+_0x42f5eb);}try{if(this[_0x2bb10a(0x205)][_0x2bb10a(0x229)]&&globals[_0x2bb10a(0x1f6)](_0x51aa05[_0x2bb10a(0x23a)])&&globals[_0x2bb10a(0x1f6)](_0x51aa05[_0x2bb10a(0x201)])){logger[_0x2bb10a(0x24a)](_0x51aa05[_0x2bb10a(0x221)]);const _0x21dc20={};_0x21dc20[_0x2bb10a(0x245)]=this[_0x2bb10a(0x205)][_0x2bb10a(0x1d2)],_0x21dc20[_0x2bb10a(0x222)]=process[_0x2bb10a(0x1d9)][testHubConstants[_0x2bb10a(0x1c8)][_0x2bb10a(0x23b)]],_0x21dc20[_0x2bb10a(0x1fc)]=process[_0x2bb10a(0x1d9)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_JWT']];const _0x2e3d2a=_0x21dc20;logger[_0x2bb10a(0x1cd)](_0x2bb10a(0x253)+JSON[_0x2bb10a(0x213)](_0x2e3d2a)),logger[_0x2bb10a(0x1cd)](_0x51aa05[_0x2bb10a(0x216)]);const _0x2c9db3={};_0x2c9db3['command']=_0x51aa05[_0x2bb10a(0x1fa)],await PerformanceTester[_0x2bb10a(0x1f9)](PerformanceA11yEvents[_0x2bb10a(0x224)],async()=>{const _0x29675b=_0x2bb10a;logger[_0x29675b(0x1cd)](util['format'](await global[_0x29675b(0x230)][0x0][_0x29675b(0x231)](scripts[_0x29675b(0x249)],{'method':global[_0x29675b(0x1ef)]})));},_0x2c9db3)(),await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x2bb10a(0x1d4)],async()=>{const _0x43775f=_0x2bb10a;await global[_0x43775f(0x230)][0x0][_0x43775f(0x231)](scripts['saveTestResults'],_0x2e3d2a);})(),logger[_0x2bb10a(0x24a)](_0x51aa05['cPMUI']);}}catch(_0x6fa7e9){logger[_0x2bb10a(0x203)](_0x2bb10a(0x1ec)+this[_0x2bb10a(0x205)]['titlePath']()+'.\x20Error\x20:',_0x6fa7e9);}try{try{if(_0x51aa05['lrsPC'](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x51aa05[_0x2bb10a(0x1e0)](sendPlatformDetails,global[_0x2bb10a(0x230)][0x0],this[_0x2bb10a(0x205)]?this[_0x2bb10a(0x205)][_0x2bb10a(0x1d2)]:null);if(_0x51aa05['lrsPC'](isBrowserstackInfra)){PerformanceTester[_0x2bb10a(0x22c)](PerformanceO11yEvents['SYNC']);const _0x3137ec=_0x2bb10a(0x1d5)+Date[_0x2bb10a(0x1e2)]();await _0x51aa05[_0x2bb10a(0x242)](_0x5dbda0,JSON['stringify'](_0x3137ec),_0x51aa05['DwKON']),PerformanceTester[_0x2bb10a(0x22b)](PerformanceO11yEvents[_0x2bb10a(0x22f)]);}}}catch(_0x3f5012){logger[_0x2bb10a(0x1cd)](_0x2bb10a(0x250)+_0x3f5012),PerformanceTester[_0x2bb10a(0x22b)](PerformanceO11yEvents[_0x2bb10a(0x22f)],![],_0x3f5012);}_0x51aa05[_0x2bb10a(0x23e)](global['__drivers'][0x0][_0x2bb10a(0x226)],0x0)&&await global['driverCleanup']();}catch(_0x3f85ee){logger['debug'](_0x2bb10a(0x208)+_0x3f85ee);}_0x51aa05[_0x2bb10a(0x1de)](_0x4a72f3);})['then'](()=>{const _0x245450=_0x4a6329;_0x18c5ce[_0x245450(0x218)](_0x58cf40);});},{'platform':_0x51aa05['dQUJK'](nestedKeyValue,global[_0x286139(0x1fd)],[_0x51aa05[_0x286139(0x1c6)]]),'hookType':_0x51aa05[_0x286139(0x1c3)]})();},'afterAll'(_0x329de7){const _0x142b48=a32_0x17b94c,_0x57259d={'HCMpf':function(_0x4e2042){return _0x4e2042();},'aPkis':function(_0x5ee602,_0x2c08d6,_0x12e105){return _0x5ee602(_0x2c08d6,_0x12e105);},'afrtY':_0x142b48(0x246),'vJzks':'afterAll'},_0x49c265='browserstack internal helper hook';this['timeout'](0xfde8),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x142b48(0x257)],()=>{const _0x165e45=_0x142b48,_0xa478bf={'mhsVO':function(_0x2f2eaa){return _0x57259d['HCMpf'](_0x2f2eaa);}};new Promise(async _0x55c90c=>{const _0x2e0705=a32_0x5cf7;await global[_0x2e0705(0x20f)](),_0xa478bf[_0x2e0705(0x1c7)](_0x55c90c);})[_0x165e45(0x24c)]()[_0x165e45(0x265)](()=>{const _0x36aad6=_0x165e45;_0xa478bf[_0x36aad6(0x1c7)](_0x329de7);});},{'platform':_0x57259d[_0x142b48(0x20b)](nestedKeyValue,global[_0x142b48(0x1fd)],[_0x57259d[_0x142b48(0x247)]]),'hookType':_0x57259d['vJzks']})();}};
|
|
1
|
+
const a32_0x40dbc3=a32_0x9a09;function a32_0x4ef2(){const _0x2ce474=[',\x22level\x22:\x20\x22','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','percyCaptureMode','SESSION_NAME','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','driverCleanup','http:','36ePUcHY','session_','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','kMpqC','SYNC','cMIfY','xNbHx','MvYjP','length','ObservabilitySync:','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','159726JtGepU','saveTestResults','info','21884OicQFu','JBgza','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','sECGR','../../helpers/testhub/utils','Failed\x20to\x20store\x20session\x20name:\x20','vTLeM','taTOk','bwcYR','gTKES','7sVlfpz','JCbEU','\x20|\x20','\x22}}','hktkX','SDK_HOOK','2960232gMbkhJ','zeEjz','QJzWr','ulICC','BROWSERSTACK_TESTHUB_JWT','qRxFc','yCtbp','Failed:\x20','USEdL','app','KnPPc','__drivers','state','PTJaC','../../helpers/accessibility-automation/helper','igqlv','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','performScan','thTestRunUuid','__platformCaps','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','.\x20Error\x20:','jVhti','format','../../helpers/globals','join','__skipSessionName','ZGFSl','oviCy','ozcxK','IjbVd','142088eOJPxL','uyHYs','currentTest','beforeAll','IbZUv','23900vgdGIi','Performing\x20scan\x20before\x20saving\x20results','Jhfgz','cWhnu','CamVp','then','__error_messages__','MwKVw','TmWal','416340lXoNNm','isAccessibilityPlatform','EVWBX','oFJEP','uVaBh','cXFho','percy','shift','testcase','push','osLLb','quitCount_','stringify','MZqmR','thJwtToken','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','CdERY','vILoA','sessionNameSet__','measureWrapper','command','VpUXy','UDHkQ','browserstackSessionName','CcajV','TFxZO','egErY','protocol','rtCfU','BgxWM','bstackA11yShouldScan','debug','initQuit','../../helpers/performance/constants','now','rytRx','6DRVxDV','BwYfQ','beforeEach','titlePath','__sessionFailed','ZjUzc','cPnqq','bFrKF','1536294CUpoXC','testAnalyticsId','afterEach','browserstackTestName','945nOHpSR','finally','SAVE_RESULTS','env','LvYNg','../../helpers/performance/performance-tester','index','FlGzM','jlquw','afterAll','TumQV','startMonitoring','ENV_VAR','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','xpGFi','aKgXQ','getCurrentUrl','executeScript','\x20-\x20','PERFORM_SCAN','../../helpers/testhub/constants','YyQUF','pyCWR','Passed','XKLKh','zadrX','accessibilityScanStarted','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','feeAw','84CapOhl','start','end','wIKtb','spplZ','KqFwm','VVLsz','err','executeAsyncScript','AWXsl','daGSW','message','error','setGlobal','getGlobal','bbdAj','../../helpers/percy/utils','VGQZW','shouldScanTestForAccessibility','timeout','SESSION_STATUS','sbjjC','LOHmy','passed','kjxnj','Vnuog','capabilities','oEfQL'];a32_0x4ef2=function(){return _0x2ce474;};return a32_0x4ef2();}(function(_0x1b6a41,_0x1bb001){const _0xf18591=a32_0x9a09,_0x5b9930=_0x1b6a41();while(!![]){try{const _0x270658=-parseInt(_0xf18591(0x1c7))/0x1*(parseInt(_0xf18591(0x21f))/0x2)+parseInt(_0xf18591(0x1f1))/0x3*(-parseInt(_0xf18591(0x222))/0x4)+parseInt(_0xf18591(0x25f))/0x5+parseInt(_0xf18591(0x1cf))/0x6+parseInt(_0xf18591(0x22c))/0x7*(parseInt(_0xf18591(0x251))/0x8)+-parseInt(_0xf18591(0x1d3))/0x9*(parseInt(_0xf18591(0x256))/0xa)+parseInt(_0xf18591(0x232))/0xb*(parseInt(_0xf18591(0x214))/0xc);if(_0x270658===_0x1bb001)break;else _0x5b9930['push'](_0x5b9930['shift']());}catch(_0x23961f){_0x5b9930['push'](_0x5b9930['shift']());}}}(a32_0x4ef2,0x44a0a));function a32_0x9a09(_0x574f4d,_0x342ddd){const _0x4ef2d6=a32_0x4ef2();return a32_0x9a09=function(_0x9a0911,_0x22ca9d){_0x9a0911=_0x9a0911-0x1c0;let _0x4f40e6=_0x4ef2d6[_0x9a0911];return _0x4f40e6;},a32_0x9a09(_0x574f4d,_0x342ddd);}const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x40dbc3(0x240)),{percyAutoCapture}=require(a32_0x40dbc3(0x201)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a32_0x40dbc3(0x1d8)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a32_0x40dbc3(0x1c4)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x40dbc3(0x24a)),logger=require('../../helpers/logger')['winstonLogger'],{shouldProcessEventForTesthub}=require(a32_0x40dbc3(0x226)),testHubConstants=require(a32_0x40dbc3(0x1e8));exports['mochaHooks']={'beforeAll'(){const _0x16df8e=a32_0x40dbc3,_0x5071aa={'JCbEU':function(_0x28d866,_0x16a607,_0x371b16,_0x1b8b79){return _0x28d866(_0x16a607,_0x371b16,_0x1b8b79);},'KDFEB':'failed','pyCWR':_0x16df8e(0x22e),'gTKES':function(_0x4d664d,_0x246feb,_0x36f8b8){return _0x4d664d(_0x246feb,_0x36f8b8);},'fXySU':_0x16df8e(0x208),'MvYjP':function(_0x3fc7df){return _0x3fc7df();},'fgoYQ':function(_0x17b1ab,_0x1d154d,_0x630221){return _0x17b1ab(_0x1d154d,_0x630221);},'egErY':_0x16df8e(0x1d9),'KqFwm':_0x16df8e(0x254)};PerformanceTester[_0x16df8e(0x1de)]();const _0x55a137='browserstack internal helper hook';PerformanceTester[_0x16df8e(0x272)](PerformanceSdkEvents[_0x16df8e(0x231)],()=>{const _0x2e9444=_0x16df8e;global[_0x2e9444(0x25c)]=[],global['__sessionFailed']=![],global[_0x2e9444(0x212)]=async()=>{const _0x5afba8=_0x2e9444;let _0x9e5890=![];try{await global[_0x5afba8(0x23d)][0x0][_0x5afba8(0x215)],_0x9e5890=!![],global[_0x5afba8(0x1cb)]?await _0x5071aa[_0x5afba8(0x22d)](markSessionStatus,global['__drivers'][0x0],_0x5071aa['KDFEB'],global[_0x5afba8(0x25c)]['join'](_0x5071aa[_0x5afba8(0x1ea)])):await _0x5071aa[_0x5afba8(0x22b)](markSessionStatus,global[_0x5afba8(0x23d)][0x0],_0x5071aa['fXySU']);}catch(_0x4171fb){logger[_0x5afba8(0x1c2)]('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x4171fb);}global[_0x5afba8(0x25c)]=[],global[_0x5afba8(0x1cb)]=![];if(_0x9e5890)try{try{_0x5071aa[_0x5afba8(0x21b)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x5071aa['gTKES'](sendPlatformDetails,global[_0x5afba8(0x23d)][0x0],this[_0x5afba8(0x253)]?this[_0x5afba8(0x253)][_0x5afba8(0x1d0)]:null));}catch(_0x65efa5){logger['debug'](_0x5afba8(0x1e0)+_0x65efa5);}await global[_0x5afba8(0x23d)][0x0][_0x5afba8(0x1c3)]();}catch(_0x113324){logger['debug'](_0x5afba8(0x1e1)+_0x113324);}};},{'platform':_0x5071aa['fgoYQ'](nestedKeyValue,global[_0x16df8e(0x245)],[_0x5071aa[_0x16df8e(0x279)]]),'hookType':_0x5071aa[_0x16df8e(0x1f6)]})();},'beforeEach'(_0x25ef03){const _0x59b371=a32_0x40dbc3,_0x203a01={'rtCfU':function(_0x4b675e,_0x2d0254){return _0x4b675e>_0x2d0254;},'VnlTM':function(_0x1a076e,_0x320347){return _0x1a076e>_0x320347;},'VGQZW':_0x59b371(0x1e6),'UMZOM':function(_0x124030,_0x18dcc7,_0x41d65d){return _0x124030(_0x18dcc7,_0x41d65d);},'pTzNL':'bstackA11yShouldScan','MZqmR':function(_0x358aa9){return _0x358aa9();},'rpauV':_0x59b371(0x260),'oEfQL':function(_0x5d2912,_0x275b2b){return _0x5d2912===_0x275b2b;},'jVhti':_0x59b371(0x213),'LlmaE':'https:','daGSW':_0x59b371(0x211),'WjRAp':'Automate\x20test\x20case\x20execution\x20has\x20started.','jlquw':function(_0x2b160b){return _0x2b160b();},'YPrhN':function(_0x5e8796){return _0x5e8796();},'xNbHx':_0x59b371(0x1d2),'BwYfQ':function(_0x3f45d1,_0xbfc2cb,_0x6962e4){return _0x3f45d1(_0xbfc2cb,_0x6962e4);},'spplZ':'index','bbdAj':_0x59b371(0x1c9)};globals[_0x59b371(0x1fe)](_0x203a01[_0x59b371(0x21a)],this[_0x59b371(0x253)][_0x59b371(0x1ca)]()[_0x59b371(0x24b)](_0x203a01['VGQZW'])),PerformanceTester[_0x59b371(0x272)](PerformanceSdkEvents[_0x59b371(0x231)],()=>{const _0xef5120=_0x59b371,_0x1d125d={'MwKVw':function(_0x46a66b,_0x54c2d0){const _0x46b41a=a32_0x9a09;return _0x203a01[_0x46b41a(0x27b)](_0x46a66b,_0x54c2d0);},'ZGFSl':function(_0x4dcc6e,_0x54631f){return _0x203a01['VnlTM'](_0x4dcc6e,_0x54631f);},'uVaBh':_0x203a01[_0xef5120(0x202)],'FlGzM':function(_0x539c9c,_0xa48e3c,_0x5dde3c){return _0x203a01['UMZOM'](_0x539c9c,_0xa48e3c,_0x5dde3c);},'CamVp':_0x203a01['pTzNL'],'zadrX':function(_0x135831){const _0x4802ea=_0xef5120;return _0x203a01[_0x4802ea(0x26c)](_0x135831);},'XKLKh':function(_0x326d15,_0x4744a2){const _0x3b3bd2=_0xef5120;return _0x203a01[_0x3b3bd2(0x27b)](_0x326d15,_0x4744a2);},'oFJEP':_0x203a01['rpauV'],'kMpqC':function(_0x5d1953,_0xe2bc50){const _0x385f11=_0xef5120;return _0x203a01[_0x385f11(0x20c)](_0x5d1953,_0xe2bc50);},'JBgza':_0x203a01[_0xef5120(0x248)],'Vnuog':_0x203a01['LlmaE'],'zIccR':_0x203a01[_0xef5120(0x1fb)],'LOHmy':_0x203a01['WjRAp'],'ZjUzc':function(_0x257d88){const _0xe32acf=_0xef5120;return _0x203a01[_0xe32acf(0x1db)](_0x257d88);},'tUHim':function(_0x192e42){return _0x203a01['YPrhN'](_0x192e42);}},_0xaa73c9='browserstack internal helper hook';new Promise(async _0x4e7c03=>{const _0x35b7b6=_0xef5120;let _0x5f4ea8=!![];try{_0x1d125d[_0x35b7b6(0x25d)](global[_0x35b7b6(0x23d)][_0x35b7b6(0x21c)],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x35b7b6(0x266)]()),_0x1d125d[_0x35b7b6(0x24d)](global[_0x35b7b6(0x23d)][0x0][_0x35b7b6(0x26a)],0x0)&&(_0x5f4ea8=![],await global[_0x35b7b6(0x212)]());}catch(_0x8ab6d2){logger[_0x35b7b6(0x1c2)](_0x35b7b6(0x1e1)+_0x8ab6d2);}try{Array['isArray'](global[_0x35b7b6(0x23d)])&&global[_0x35b7b6(0x23d)][0x0]&&(global['__drivers'][0x0][_0x35b7b6(0x276)]=this['currentTest'][_0x35b7b6(0x1ca)]()[_0x35b7b6(0x24b)](_0x1d125d[_0x35b7b6(0x263)])),global[_0x35b7b6(0x276)]=this[_0x35b7b6(0x253)][_0x35b7b6(0x1ca)]()[_0x35b7b6(0x24b)](_0x1d125d[_0x35b7b6(0x263)]);}catch(_0x1e5c77){logger[_0x35b7b6(0x1c2)](_0x35b7b6(0x227)+_0x1e5c77);}this[_0x35b7b6(0x253)][_0x35b7b6(0x203)]=_0x1d125d[_0x35b7b6(0x1da)](shouldScanTestForAccessibility,this[_0x35b7b6(0x253)]['titlePath'](),!![]),globals[_0x35b7b6(0x1fe)](_0x1d125d[_0x35b7b6(0x25a)],this[_0x35b7b6(0x253)]['shouldScanTestForAccessibility']),this[_0x35b7b6(0x253)][_0x35b7b6(0x1ee)]=!![];if(_0x1d125d[_0x35b7b6(0x1ed)](isAccessibilityAutomationSession)&&_0x5f4ea8&&Array['isArray'](global[_0x35b7b6(0x23d)])&&_0x1d125d[_0x35b7b6(0x1ec)](global[_0x35b7b6(0x23d)][_0x35b7b6(0x21c)],0x0)&&globals[_0x35b7b6(0x1ff)](_0x1d125d[_0x35b7b6(0x262)]))try{const _0x45ca9e=await global[_0x35b7b6(0x23d)][0x0][_0x35b7b6(0x215)];if(_0x45ca9e){let _0x40c028=!![];const _0x3d42cc=await global[_0x35b7b6(0x23d)][0x0][_0x35b7b6(0x1e4)]();let _0x4735d8;try{_0x4735d8=new URL(_0x3d42cc);}catch(_0x354689){_0x40c028=![];}_0x40c028=_0x1d125d[_0x35b7b6(0x217)](_0x4735d8[_0x35b7b6(0x27a)],_0x1d125d[_0x35b7b6(0x223)])||_0x1d125d[_0x35b7b6(0x217)](_0x4735d8['protocol'],_0x1d125d[_0x35b7b6(0x20a)]),_0x40c028&&(this['currentTest'][_0x35b7b6(0x203)]&&logger[_0x35b7b6(0x221)](_0x1d125d['zIccR'])),this[_0x35b7b6(0x253)][_0x35b7b6(0x1ee)]=this[_0x35b7b6(0x253)][_0x35b7b6(0x203)],this[_0x35b7b6(0x253)][_0x35b7b6(0x203)]&&logger['info'](_0x1d125d[_0x35b7b6(0x207)]);}}catch(_0x4515c2){logger[_0x35b7b6(0x1fd)](_0x35b7b6(0x216)+util[_0x35b7b6(0x249)](_0x4515c2));}_0x1d125d[_0x35b7b6(0x1cc)](_0x4e7c03);})[_0xef5120(0x25b)](()=>{_0x1d125d['tUHim'](_0x25ef03);});},{'platform':_0x203a01[_0x59b371(0x1c8)](nestedKeyValue,global[_0x59b371(0x245)],[_0x203a01[_0x59b371(0x1f5)]]),'hookType':_0x203a01[_0x59b371(0x200)]})();},'afterEach'(_0xea3a4c){const _0x3ef0a3=a32_0x40dbc3,_0x1ada14={'sECGR':_0x3ef0a3(0x1e6),'uyHYs':function(_0x26a259,_0x39180f){return _0x26a259!==_0x39180f;},'YyQUF':'passed','zeEjz':function(_0x1183a4,_0x12426c,_0x151455){return _0x1183a4(_0x12426c,_0x151455);},'ulICC':function(_0x7497ec,_0x2179b1){return _0x7497ec+_0x2179b1;},'oviCy':_0x3ef0a3(0x239),'BgxWM':_0x3ef0a3(0x1fd),'iTsIf':_0x3ef0a3(0x1eb),'CcajV':_0x3ef0a3(0x221),'TumQV':function(_0x55a6ee,_0x4a75cb){return _0x55a6ee>_0x4a75cb;},'cWhnu':function(_0x101dd7,_0x3ab927){return _0x101dd7===_0x3ab927;},'yCtbp':_0x3ef0a3(0x267),'uZcxI':'appium:app','fmKvU':function(_0x8ba3bc,_0x59c36c,_0x3c36c9,_0xccc5fa){return _0x8ba3bc(_0x59c36c,_0x3c36c9,_0xccc5fa);},'IjbVd':'isAccessibilityPlatform','DTBsz':_0x3ef0a3(0x1c1),'hktkX':_0x3ef0a3(0x224),'GYfAG':_0x3ef0a3(0x257),'bFrKF':'afterTest','LvYNg':_0x3ef0a3(0x20e),'kjxnj':function(_0x57d754){return _0x57d754();},'cMIfY':_0x3ef0a3(0x1c2),'gDEdO':_0x3ef0a3(0x1d9),'QJzWr':_0x3ef0a3(0x1d1)},_0x3bb923='browserstack internal helper hook';this[_0x3ef0a3(0x204)](0xfde8),global['sessionName']=this[_0x3ef0a3(0x253)]['titlePath']()[_0x3ef0a3(0x24b)](_0x1ada14[_0x3ef0a3(0x225)]),PerformanceTester[_0x3ef0a3(0x272)](PerformanceSdkEvents[_0x3ef0a3(0x231)],()=>{const _0x25d79c=_0x3ef0a3,_0x17e924={'exTPq':_0x1ada14['sECGR'],'aKgXQ':function(_0x516eb4,_0x11d795){const _0x1c4515=a32_0x9a09;return _0x1ada14[_0x1c4515(0x252)](_0x516eb4,_0x11d795);},'cPnqq':_0x1ada14[_0x25d79c(0x1e9)],'UDHkQ':function(_0x58d738,_0x398ffe,_0x112d27){const _0x1e51db=_0x25d79c;return _0x1ada14[_0x1e51db(0x233)](_0x58d738,_0x398ffe,_0x112d27);},'RUnsC':function(_0x37cf2e,_0x565d5f){const _0x5e191e=_0x25d79c;return _0x1ada14[_0x5e191e(0x235)](_0x37cf2e,_0x565d5f);},'AWXsl':_0x1ada14[_0x25d79c(0x24e)],'kSHcx':_0x1ada14[_0x25d79c(0x1c0)],'taTOk':_0x1ada14['iTsIf'],'osLLb':_0x1ada14[_0x25d79c(0x277)],'qRxFc':function(_0x741a90,_0x29afe8){return _0x1ada14['TumQV'](_0x741a90,_0x29afe8);},'MuCbv':function(_0x370ec4,_0x3788d9){const _0x40dea2=_0x25d79c;return _0x1ada14[_0x40dea2(0x259)](_0x370ec4,_0x3788d9);},'sbjjC':_0x1ada14[_0x25d79c(0x238)],'cXFho':function(_0x3820d6,_0x24fa0c){const _0x8df487=_0x25d79c;return _0x1ada14[_0x8df487(0x1dd)](_0x3820d6,_0x24fa0c);},'AvAkm':_0x1ada14['uZcxI'],'CdERY':function(_0x54af7f,_0x111378,_0x196c9f,_0x249df2){return _0x1ada14['fmKvU'](_0x54af7f,_0x111378,_0x196c9f,_0x249df2);},'rytRx':_0x1ada14[_0x25d79c(0x250)],'jQhgz':_0x1ada14['DTBsz'],'VVLsz':_0x1ada14[_0x25d79c(0x230)],'TFxZO':_0x1ada14['GYfAG'],'feeAw':_0x1ada14[_0x25d79c(0x1ce)],'Jhfgz':_0x1ada14[_0x25d79c(0x1d7)],'USEdL':function(_0x2170f5){const _0x2b2d38=_0x25d79c;return _0x1ada14[_0x2b2d38(0x209)](_0x2170f5);},'ozcxK':function(_0xedef11){return _0x1ada14['kjxnj'](_0xedef11);},'kegHc':_0x1ada14[_0x25d79c(0x219)],'wIKtb':function(_0x3d6d24,_0x477b26){const _0x5b2a49=_0x25d79c;return _0x1ada14[_0x5b2a49(0x1dd)](_0x3d6d24,_0x477b26);}},_0x40abe4=async(_0x2720b4,_0x1d1c38)=>{const _0x23ba23=_0x25d79c;await global[_0x23ba23(0x23d)][0x0]['executeScript'](_0x23ba23(0x26e)+_0x2720b4+_0x23ba23(0x20d)+_0x1d1c38+_0x23ba23(0x22f));};new Promise(async _0xc14867=>{const _0x5a51f7=_0x25d79c,_0x5430a5={'EVWBX':_0x17e924['exTPq'],'wCtlO':function(_0xe29763,_0x2241cb){const _0x4b4210=a32_0x9a09;return _0x17e924[_0x4b4210(0x1e3)](_0xe29763,_0x2241cb);},'KnPPc':_0x17e924[_0x5a51f7(0x1cd)],'IbZUv':function(_0x51866e,_0x24466f,_0x2fe374){return _0x17e924['UDHkQ'](_0x51866e,_0x24466f,_0x2fe374);},'bwcYR':function(_0x36ec93,_0x3a6c7){return _0x17e924['RUnsC'](_0x36ec93,_0x3a6c7);},'yzWBq':_0x17e924[_0x5a51f7(0x1fa)],'xpGFi':_0x17e924['kSHcx'],'vTLeM':function(_0x1b0dc0,_0x58fe56,_0x1cef30){const _0x4fbebd=_0x5a51f7;return _0x17e924[_0x4fbebd(0x275)](_0x1b0dc0,_0x58fe56,_0x1cef30);},'PTJaC':_0x17e924[_0x5a51f7(0x229)],'TmWal':_0x17e924[_0x5a51f7(0x269)]};try{_0x17e924[_0x5a51f7(0x237)](global[_0x5a51f7(0x23d)]['length'],0x1)&&(await global[_0x5a51f7(0x212)](),global[_0x5a51f7(0x23d)][_0x5a51f7(0x266)](),global[_0x5a51f7(0x25c)]=[],global[_0x5a51f7(0x1cb)]=![]);try{if(global[_0x5a51f7(0x265)]&&_0x17e924['MuCbv'](global[_0x5a51f7(0x20f)],_0x17e924[_0x5a51f7(0x206)])&&global['__drivers'][0x0]){const _0x1a8d32=_0x17e924[_0x5a51f7(0x264)](global[_0x5a51f7(0x20b)][_0x5a51f7(0x21c)],0x0)?!!global[_0x5a51f7(0x20b)][0x0][_0x5a51f7(0x23b)]||!!global[_0x5a51f7(0x20b)][0x0][_0x17e924['AvAkm']]:![],_0x445091={};_0x445091[_0x5a51f7(0x23b)]=_0x1a8d32,await _0x17e924[_0x5a51f7(0x26f)](percyAutoCapture,global[_0x5a51f7(0x23d)][0x0],_0x17e924[_0x5a51f7(0x206)],_0x445091);}}catch(_0x4a105e){logger[_0x5a51f7(0x1c2)]('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0x4a105e);}!global[_0x5a51f7(0x24c)]&&(await PerformanceTester[_0x5a51f7(0x272)](PerformanceAutEvents[_0x5a51f7(0x210)],async()=>{const _0x3c8736=_0x5a51f7;await global[_0x3c8736(0x23d)][0x0][_0x3c8736(0x1e5)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x3c8736(0x26b)](this[_0x3c8736(0x253)][_0x3c8736(0x1ca)]()[_0x3c8736(0x24b)](_0x5430a5[_0x3c8736(0x261)]))+'}}');})(),global['__drivers'][0x0][_0x5a51f7(0x271)]=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x5a51f7(0x205)],async()=>{const _0x36a874=_0x5a51f7,_0x356703=_0x5430a5['wCtlO'](this['currentTest'][_0x36a874(0x23e)],_0x5430a5[_0x36a874(0x23c)]);_0x356703?(global[_0x36a874(0x1cb)]=!![],global['__error_messages__'][_0x36a874(0x268)](this[_0x36a874(0x253)][_0x36a874(0x1f8)][_0x36a874(0x1fc)]),await _0x5430a5[_0x36a874(0x255)](_0x40abe4,JSON[_0x36a874(0x26b)](_0x5430a5[_0x36a874(0x22a)](_0x5430a5['yzWBq'],this[_0x36a874(0x253)]['err'][_0x36a874(0x1fc)])),_0x5430a5[_0x36a874(0x1e2)])):await _0x5430a5[_0x36a874(0x228)](_0x40abe4,JSON[_0x36a874(0x26b)](_0x5430a5[_0x36a874(0x23f)]),_0x5430a5[_0x36a874(0x25e)]);})();}catch(_0x253548){logger[_0x5a51f7(0x1c2)](_0x5a51f7(0x1ef)+_0x253548);}try{if(this[_0x5a51f7(0x253)][_0x5a51f7(0x1ee)]&&globals[_0x5a51f7(0x1ff)](_0x17e924[_0x5a51f7(0x1c6)])&&globals[_0x5a51f7(0x1ff)](_0x17e924['jQhgz'])){logger['info'](_0x17e924[_0x5a51f7(0x1f7)]);const _0x4418f8={};_0x4418f8[_0x5a51f7(0x244)]=this['currentTest'][_0x5a51f7(0x1d0)],_0x4418f8['thBuildUuid']=process[_0x5a51f7(0x1d6)][testHubConstants[_0x5a51f7(0x1df)]['BROWSERSTACK_TESTHUB_UUID']],_0x4418f8[_0x5a51f7(0x26d)]=process[_0x5a51f7(0x1d6)][testHubConstants['ENV_VAR'][_0x5a51f7(0x236)]];const _0x333eae=_0x4418f8;logger['debug'](_0x5a51f7(0x246)+JSON[_0x5a51f7(0x26b)](_0x333eae)),logger[_0x5a51f7(0x1c2)](_0x17e924[_0x5a51f7(0x278)]);const _0x274a43={};_0x274a43[_0x5a51f7(0x273)]=_0x17e924[_0x5a51f7(0x1f0)],await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x5a51f7(0x1e7)],async()=>{const _0x59fd94=_0x5a51f7;logger[_0x59fd94(0x1c2)](util[_0x59fd94(0x249)](await global[_0x59fd94(0x23d)][0x0]['executeAsyncScript'](scripts[_0x59fd94(0x243)],{'method':global[_0x59fd94(0x276)]})));},_0x274a43)(),await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x5a51f7(0x1d5)],async()=>{const _0x18f268=_0x5a51f7;await global[_0x18f268(0x23d)][0x0][_0x18f268(0x1f9)](scripts[_0x18f268(0x220)],_0x333eae);})(),logger[_0x5a51f7(0x221)](_0x17e924[_0x5a51f7(0x258)]);}}catch(_0x248757){logger[_0x5a51f7(0x1fd)](_0x5a51f7(0x242)+this[_0x5a51f7(0x253)][_0x5a51f7(0x1ca)]()+_0x5a51f7(0x247),_0x248757);}try{try{if(_0x17e924[_0x5a51f7(0x23a)](shouldProcessEventForTesthub)){global[_0x5a51f7(0x23d)][0x0]&&await _0x17e924['UDHkQ'](sendPlatformDetails,global[_0x5a51f7(0x23d)][0x0],this[_0x5a51f7(0x253)]?this[_0x5a51f7(0x253)]['testAnalyticsId']:null);if(_0x17e924[_0x5a51f7(0x24f)](isBrowserstackInfra)){PerformanceTester[_0x5a51f7(0x1f2)](PerformanceO11yEvents[_0x5a51f7(0x218)]);const _0x1313fb=_0x5a51f7(0x21d)+Date[_0x5a51f7(0x1c5)]();await _0x17e924[_0x5a51f7(0x275)](_0x40abe4,JSON[_0x5a51f7(0x26b)](_0x1313fb),_0x17e924['kegHc']),PerformanceTester[_0x5a51f7(0x1f3)](PerformanceO11yEvents['SYNC']);}}}catch(_0x5ef413){logger[_0x5a51f7(0x1c2)](_0x5a51f7(0x21e)+_0x5ef413),PerformanceTester[_0x5a51f7(0x1f3)](PerformanceO11yEvents[_0x5a51f7(0x218)],![],_0x5ef413);}_0x17e924[_0x5a51f7(0x1f4)](global[_0x5a51f7(0x23d)][0x0][_0x5a51f7(0x26a)],0x0)&&await global['driverCleanup']();}catch(_0x5c16b9){logger[_0x5a51f7(0x1c2)](_0x5a51f7(0x1e1)+_0x5c16b9);}_0x17e924[_0x5a51f7(0x24f)](_0xc14867);})[_0x25d79c(0x25b)](()=>{const _0x8e3be8=_0x25d79c;_0x17e924[_0x8e3be8(0x24f)](_0xea3a4c);});},{'platform':_0x1ada14[_0x3ef0a3(0x233)](nestedKeyValue,global['__platformCaps'],[_0x1ada14['gDEdO']]),'hookType':_0x1ada14[_0x3ef0a3(0x234)]})();},'afterAll'(_0x7800a0){const _0x13beb3=a32_0x40dbc3,_0x5399ad={'igqlv':function(_0x187aea){return _0x187aea();},'WKrAa':function(_0x6f85f4){return _0x6f85f4();},'VpUXy':function(_0x13ae3e,_0x57d094,_0x4dfd65){return _0x13ae3e(_0x57d094,_0x4dfd65);},'zEZMK':_0x13beb3(0x1d9),'vILoA':_0x13beb3(0x1dc)},_0x3d9c8e='browserstack internal helper hook';this['timeout'](0xfde8),PerformanceTester[_0x13beb3(0x272)](PerformanceSdkEvents[_0x13beb3(0x231)],()=>{const _0x46badf=_0x13beb3;new Promise(async _0x1d4fc9=>{const _0x4fee8a=a32_0x9a09;await global[_0x4fee8a(0x212)](),_0x5399ad[_0x4fee8a(0x241)](_0x1d4fc9);})[_0x46badf(0x25b)]()[_0x46badf(0x1d4)](()=>{_0x5399ad['WKrAa'](_0x7800a0);});},{'platform':_0x5399ad[_0x13beb3(0x274)](nestedKeyValue,global[_0x13beb3(0x245)],[_0x5399ad['zEZMK']]),'hookType':_0x5399ad[_0x13beb3(0x270)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x25c07b=a33_0x4c25;function a33_0x4c25(_0x391fe9,_0x462c42){const _0x15d5b6=a33_0x15d5();return a33_0x4c25=function(_0x4c25fa,_0x52e055){_0x4c25fa=_0x4c25fa-0x13b;let _0xa2af0f=_0x15d5b6[_0x4c25fa];return _0xa2af0f;},a33_0x4c25(_0x391fe9,_0x462c42);}(function(_0x414335,_0x54882b){const _0x1869fb=a33_0x4c25,_0x3bb70d=_0x414335();while(!![]){try{const _0x55e573=parseInt(_0x1869fb(0x151))/0x1+-parseInt(_0x1869fb(0x162))/0x2*(-parseInt(_0x1869fb(0x183))/0x3)+parseInt(_0x1869fb(0x15a))/0x4+-parseInt(_0x1869fb(0x159))/0x5+-parseInt(_0x1869fb(0x13c))/0x6*(-parseInt(_0x1869fb(0x15f))/0x7)+parseInt(_0x1869fb(0x17e))/0x8*(-parseInt(_0x1869fb(0x145))/0x9)+-parseInt(_0x1869fb(0x17a))/0xa;if(_0x55e573===_0x54882b)break;else _0x3bb70d['push'](_0x3bb70d['shift']());}catch(_0x89edc6){_0x3bb70d['push'](_0x3bb70d['shift']());}}}(a33_0x15d5,0x496ec));function a33_0x15d5(){const _0x54af00=['writeFileSync','NaYQL','2662808nxZwLF','push','fZmhU','RHkmQ','--env','18XofnUV','../../helpers/logger','iXJlB','766620muvmpG','../../helpers/helper','split','nightwatch','ZjCJt','info','yZcrI','nightwatch.cmd','filter','9zfsaMO','env','close','webdriver','hub.browserstack.com','modifyBrowserStackW3CCaps','nightwatch.json','join','platforms','platform','config','test_settings','230558cGeOJU','WqEeJ','--config','path','cwd','QSHCQ','selenium','../utils/constants','679240Iecibc','2356456NFMIOM','inherit','trim','JUJDl','child\x20process\x20exited\x20with\x20code\x20','7LTbdXQ','modifyBrowserStackCaps','rSfcM','22748AbImBu','winstonLogger','getPlatformName','debug','nightwatch.conf.js','stringify','../../helpers/BrowserStackSetup','splice','existsSync','port','start_process','USMmL','child_process','Getting\x20your\x20nightwatch\x20configs\x20from\x20','BDwVl','host','isUndefined','slice','unlinkSync','now','Deleting\x20','kdMbf','desiredCapabilities','OAoYN','2462070SBINBj','forEach'];a33_0x15d5=function(){return _0x54af00;};return a33_0x15d5();}const fs=require('fs'),path=require(a33_0x25c07b(0x154)),{spawn}=require(a33_0x25c07b(0x16e)),logger=require(a33_0x25c07b(0x184))[a33_0x25c07b(0x163)],{default:BrowserStackSetup}=require(a33_0x25c07b(0x168)),helper=require(a33_0x25c07b(0x13d)),constants=require(a33_0x25c07b(0x158)),getUserNightwatchConfigs=(_0xcc2a39,_0x349c25)=>{const _0x593b48=a33_0x25c07b,_0x49f352={'XHtUl':_0x593b48(0x166),'ZjCJt':_0x593b48(0x14b),'WqEeJ':function(_0x144e7f,_0x2aee32){return _0x144e7f(_0x2aee32);},'BDwVl':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x931a88=null,_0x6e3893={};const _0x4e3d53=_0x349c25['findIndex'](_0x40632c=>_0x40632c===_0x593b48(0x153));if(!helper[_0x593b48(0x172)](_0xcc2a39['config'])&&fs[_0x593b48(0x16a)](path[_0x593b48(0x14c)](process[_0x593b48(0x155)](),_0xcc2a39['config'])))_0x931a88=path[_0x593b48(0x14c)](process[_0x593b48(0x155)](),_0xcc2a39[_0x593b48(0x14f)]),_0x349c25[_0x593b48(0x169)](_0x4e3d53,0x2);else{if(fs['existsSync'](path['join'](process[_0x593b48(0x155)](),_0x49f352['XHtUl'])))_0x931a88=path['join'](process['cwd'](),_0x49f352['XHtUl']);else fs[_0x593b48(0x16a)](path['join'](process[_0x593b48(0x155)](),_0x49f352[_0x593b48(0x140)]))&&(_0x931a88=path[_0x593b48(0x14c)](process[_0x593b48(0x155)](),_0x49f352[_0x593b48(0x140)]));}return _0x931a88?(logger[_0x593b48(0x141)](_0x593b48(0x16f)+_0x931a88),_0x6e3893=_0x49f352[_0x593b48(0x152)](require,_0x931a88)):logger[_0x593b48(0x141)](_0x49f352[_0x593b48(0x170)]),_0x6e3893;},removeExistingEnvs=_0x5a5cb3=>{const _0x40a6a6=a33_0x25c07b,_0xcabd8e={};_0xcabd8e['JUJDl']=function(_0x137c98,_0x1ce828){return _0x137c98>_0x1ce828;};const _0x391a34=_0xcabd8e;let _0x1100a2=_0x5a5cb3['findIndex'](_0x2a676f=>_0x2a676f===_0x40a6a6(0x182));_0x391a34[_0x40a6a6(0x15d)](_0x1100a2,-0x1)&&_0x5a5cb3[_0x40a6a6(0x169)](_0x1100a2,0x2),_0x1100a2=_0x5a5cb3['findIndex'](_0x2efdbf=>_0x2efdbf==='-e'),_0x391a34[_0x40a6a6(0x15d)](_0x1100a2,-0x1)&&_0x5a5cb3[_0x40a6a6(0x169)](_0x1100a2,0x2);};function run(_0x5b4537,_0x2a0801){const _0x5a52cc=a33_0x25c07b,_0x379269={'yZcrI':_0x5a52cc(0x13f),'kdMbf':function(_0x43a6f1,_0x1408dc){return _0x43a6f1+_0x1408dc;},'Dltli':_0x5a52cc(0x150),'USMmL':function(_0x520536,_0x29acb,_0x2c1117){return _0x520536(_0x29acb,_0x2c1117);},'NaYQL':_0x5a52cc(0x149),'OAoYN':'Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','QSHCQ':function(_0x5035ff,_0x4b3605){return _0x5035ff===_0x4b3605;},'rSfcM':'nightwatch-browserstack.json','fZmhU':function(_0x9c4e7b,_0x16fdb3){return _0x9c4e7b(_0x16fdb3);},'iXJlB':function(_0x4ca684,_0x23b305,_0xdb68c2,_0x4b5f7a){return _0x4ca684(_0x23b305,_0xdb68c2,_0x4b5f7a);},'GQwBi':_0x5a52cc(0x143),'LvcuL':_0x5a52cc(0x153),'XFCyC':'--env','KqHgI':_0x5a52cc(0x15b),'jzWmv':_0x5a52cc(0x147)},_0x524946=new BrowserStackSetup(_0x5b4537);if(!_0x524946[_0x5a52cc(0x14f)])return;const _0x520fab=_0x379269[_0x5a52cc(0x16d)](getUserNightwatchConfigs,_0x5b4537,_0x2a0801),_0x114ec4={};_0x114ec4[_0x5a52cc(0x16c)]=![];const _0x438df7={};_0x438df7[_0x5a52cc(0x171)]=_0x379269[_0x5a52cc(0x17d)],_0x438df7[_0x5a52cc(0x16b)]=0x1bb;const _0x572007={};_0x572007[_0x5a52cc(0x148)]=_0x114ec4,_0x572007[_0x5a52cc(0x157)]=_0x438df7;const _0x13fb47=_0x572007;logger['info'](_0x379269[_0x5a52cc(0x179)]);const _0x583360={..._0x520fab},_0x58ade3=_0x583360,_0xce6800=helper['useW3C'](_0x524946['config']),_0x4097b6=[];_0x524946[_0x5a52cc(0x14f)][_0x5a52cc(0x14d)][_0x5a52cc(0x17b)]((_0x40e183,_0xc3f72a)=>{const _0x3fbdc8=_0x5a52cc;_0xce6800?_0x4097b6[_0x3fbdc8(0x17f)](helper[_0x3fbdc8(0x14a)](_0x524946[_0x3fbdc8(0x14f)],_0x379269['yZcrI'],_0xc3f72a)):_0x4097b6['push'](helper[_0x3fbdc8(0x160)](_0x524946[_0x3fbdc8(0x14f)],_0x379269[_0x3fbdc8(0x142)],_0xc3f72a));});const _0x2ca2c9={},_0x1774f9=[];_0x5b4537[_0x5a52cc(0x146)]=_0x5b4537['env']||_0x5b4537['e'];const _0x141370=_0x5b4537['env']?_0x5b4537['env'][_0x5a52cc(0x15c)]()[_0x5a52cc(0x13e)](',')['map'](_0x378f86=>_0x378f86['trim']())[_0x5a52cc(0x144)](_0x33c639=>_0x33c639!==''):[''];_0x379269[_0x5a52cc(0x156)](_0x141370['length'],0x0)&&_0x141370[_0x5a52cc(0x17f)]('');_0x141370[_0x5a52cc(0x17b)](_0x388aab=>{const _0x3cbe05=_0x5a52cc,_0x156d44={'RVOsj':function(_0x278aa9,_0x2af8c7){const _0x4c2c00=a33_0x4c25;return _0x379269[_0x4c2c00(0x177)](_0x278aa9,_0x2af8c7);},'RHkmQ':_0x379269['Dltli']};_0x4097b6[_0x3cbe05(0x17b)](_0xb8eb8e=>{const _0x19ee5a=_0x3cbe05;let _0x446fc8=_0x156d44['RVOsj'](helper[_0x19ee5a(0x164)](_0xb8eb8e,'_'),'_'+Date[_0x19ee5a(0x175)]());_0x388aab&&(_0x446fc8+='_'+_0x388aab);if(_0x388aab&&(!_0x520fab[_0x156d44[_0x19ee5a(0x181)]]||!_0x520fab[_0x156d44[_0x19ee5a(0x181)]][_0x388aab]))return;const _0x14a3dd={..._0x13fb47};_0x14a3dd[_0x19ee5a(0x178)]=_0xb8eb8e;const _0x9cf0ab=_0x14a3dd;_0x2ca2c9[_0x446fc8]=_0x388aab?helper['mergeDeep'](_0x520fab[_0x156d44[_0x19ee5a(0x181)]][_0x388aab],_0x9cf0ab):_0x9cf0ab,_0x1774f9['push'](_0x446fc8);});});!_0x58ade3[_0x5a52cc(0x150)]&&(_0x58ade3[_0x5a52cc(0x150)]={});_0x58ade3['test_settings']={..._0x58ade3[_0x5a52cc(0x150)],..._0x2ca2c9};const _0x284e78=path[_0x5a52cc(0x14c)](__dirname,_0x379269[_0x5a52cc(0x161)]);fs[_0x5a52cc(0x17c)](_0x284e78,JSON[_0x5a52cc(0x167)](_0x58ade3)),_0x379269[_0x5a52cc(0x180)](removeExistingEnvs,_0x2a0801);const _0x371a25=_0x379269[_0x5a52cc(0x13b)](spawn,/^win/['test'](process[_0x5a52cc(0x14e)])?_0x379269['GQwBi']:_0x379269[_0x5a52cc(0x142)],[_0x379269['LvcuL'],_0x284e78,..._0x2a0801[_0x5a52cc(0x173)](0x1),_0x379269['XFCyC'],_0x1774f9[_0x5a52cc(0x14c)](',')],{'stdio':_0x379269['KqHgI']});_0x371a25['on'](_0x379269['jzWmv'],async _0x297cee=>{const _0x18ac3d=_0x5a52cc;logger[_0x18ac3d(0x165)](_0x18ac3d(0x15e)+_0x297cee),logger[_0x18ac3d(0x141)](_0x18ac3d(0x176)+_0x284e78),fs[_0x18ac3d(0x174)](_0x284e78);});}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x50464e=a34_0x4c98;function a34_0x4c98(_0x1e735d,_0x408ace){const _0x2b67b3=a34_0x2b67();return a34_0x4c98=function(_0x4c9877,_0x473837){_0x4c9877=_0x4c9877-0xe4;let _0x5f5ccd=_0x2b67b3[_0x4c9877];return _0x5f5ccd;},a34_0x4c98(_0x1e735d,_0x408ace);}(function(_0x2676f0,_0x141c81){const _0x3beebb=a34_0x4c98,_0x1a0ba6=_0x2676f0();while(!![]){try{const _0x2967f6=parseInt(_0x3beebb(0xe7))/0x1*(parseInt(_0x3beebb(0x12a))/0x2)+-parseInt(_0x3beebb(0x139))/0x3+-parseInt(_0x3beebb(0x118))/0x4+parseInt(_0x3beebb(0xfb))/0x5+-parseInt(_0x3beebb(0x137))/0x6+parseInt(_0x3beebb(0x140))/0x7+parseInt(_0x3beebb(0x133))/0x8;if(_0x2967f6===_0x141c81)break;else _0x1a0ba6['push'](_0x1a0ba6['shift']());}catch(_0xe334){_0x1a0ba6['push'](_0x1a0ba6['shift']());}}}(a34_0x2b67,0x626de));const util=require(a34_0x50464e(0x119)),logger=require(a34_0x50464e(0x102))['winstonLogger'],{isAccessibilityAutomationSession}=require(a34_0x50464e(0x100)),{isUndefined}=require(a34_0x50464e(0x105)),scripts=require(a34_0x50464e(0xf9)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants');exports[a34_0x50464e(0x115)]=async(_0x48f859,_0xe46007,_0x4c7c5c={})=>{const _0x457738=a34_0x50464e,_0x2df535={};_0x2df535[_0x457738(0xec)]='bstackSdkArgs';const _0xd227d2=_0x2df535;return await _0x48f859[_0x457738(0x101)](_0x457738(0x10d)+_0xe46007[_0x457738(0x13b)](/arguments/g,_0xd227d2[_0x457738(0xec)])+_0x457738(0x132)+JSON[_0x457738(0xeb)](_0x4c7c5c)+')');},exports[a34_0x50464e(0x128)]=async(_0x34b33d,_0x5b1d3a,_0x45548c={})=>{const _0x404120=a34_0x50464e,_0x30ffdd={};_0x30ffdd[_0x404120(0x11a)]=function(_0x43110b,_0x43e0d1){return _0x43110b===_0x43e0d1;},_0x30ffdd[_0x404120(0x106)]='WebDriver',_0x30ffdd['zdvcK']=_0x404120(0xf3),_0x30ffdd['IWxkN']=_0x404120(0x144);const _0x34d0cf=_0x30ffdd;if(_0x34d0cf[_0x404120(0x11a)](_0x34b33d['constructor']['name'],_0x34d0cf[_0x404120(0x106)]))return await _0x34b33d['executeAsyncScript'](_0x5b1d3a,_0x45548c);else{if(_0x34d0cf[_0x404120(0x11a)](_0x34b33d['constructor'][_0x404120(0x11e)],_0x34d0cf['zdvcK']))return await _0x34b33d[_0x404120(0x135)](_0x404120(0x103)+_0x5b1d3a[_0x404120(0x13b)](/arguments/g,_0x34d0cf[_0x404120(0xf5)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x404120(0xeb)](_0x45548c)+')');}},exports[a34_0x50464e(0xe9)]=async _0x1e4b6c=>{const _0x896f0a=a34_0x50464e,_0x32a9ca={};_0x32a9ca[_0x896f0a(0x14a)]=_0x896f0a(0x10b),_0x32a9ca['BdmEh']=_0x896f0a(0x122),_0x32a9ca['PAALs']=_0x896f0a(0x148),_0x32a9ca['tlvMB']=_0x896f0a(0x10a),_0x32a9ca[_0x896f0a(0xf8)]=_0x896f0a(0x112),_0x32a9ca[_0x896f0a(0x14b)]=_0x896f0a(0x113);const _0x5829e9=_0x32a9ca;_0x1e4b6c[_0x896f0a(0x130)]&&(_0x1e4b6c[_0x896f0a(0x130)]['wcagVersion']&&(_0x1e4b6c[_0x5829e9[_0x896f0a(0x14a)]]=_0x1e4b6c[_0x896f0a(0x130)][_0x896f0a(0xe6)]),_0x1e4b6c['accessibilityOptions']['scannerProcessingTimeout']&&(_0x1e4b6c[_0x5829e9[_0x896f0a(0x12b)]]=_0x1e4b6c['accessibilityOptions'][_0x896f0a(0x123)]),_0x1e4b6c['accessibilityOptions']['includeIssueType']&&(_0x1e4b6c[_0x5829e9[_0x896f0a(0x142)]]=_0x1e4b6c[_0x896f0a(0x130)][_0x896f0a(0x11b)][_0x896f0a(0x117)],_0x1e4b6c[_0x5829e9[_0x896f0a(0x129)]]=_0x1e4b6c['accessibilityOptions'][_0x896f0a(0x11b)][_0x896f0a(0x127)]));const _0x166fe0=JSON[_0x896f0a(0x13c)](process[_0x896f0a(0x109)][_0x896f0a(0xf6)])['scannerVersion'];_0x1e4b6c[_0x5829e9[_0x896f0a(0xf8)]]=process[_0x896f0a(0x109)][_0x896f0a(0xfc)],_0x1e4b6c[_0x5829e9[_0x896f0a(0x14b)]]=_0x166fe0,delete _0x1e4b6c[_0x896f0a(0x130)];},exports['getAccessibilityResults']=async _0x1e8932=>{const _0x41ec4f=a34_0x50464e,_0x29fb24={};_0x29fb24[_0x41ec4f(0x126)]='No\x20accessibility\x20results\x20were\x20found.',_0x29fb24[_0x41ec4f(0x143)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x28814d=_0x29fb24;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x1e8932,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x1e8932,scripts.getResults);})();return res;}catch{return logger[_0x41ec4f(0xe5)](_0x28814d[_0x41ec4f(0x126)]),[];}else return logger[_0x41ec4f(0x13f)](_0x28814d[_0x41ec4f(0x143)]),[];},exports[a34_0x50464e(0x12e)]=async(_0x5d7863,_0x35624d='')=>{const _0x5396a5=a34_0x50464e;if(global[_0x5396a5(0x13e)])return await PerformanceTester[_0x5396a5(0x149)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x2e869d=_0x5396a5,_0x536927={};_0x536927[_0x2e869d(0x145)]=_0x35624d,await exports['browserStackEvaluate'](_0x5d7863,scripts['performScan'],_0x536927);},{'command':_0x35624d})();},exports[a34_0x50464e(0x114)]=async _0x33c8aa=>{const _0x1c3d1f=a34_0x50464e,_0x5ade3b={};_0x5ade3b[_0x1c3d1f(0x12f)]=_0x1c3d1f(0xfa),_0x5ade3b[_0x1c3d1f(0xf1)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x21f7fd=_0x5ade3b;if(global[_0x1c3d1f(0x13e)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x33c8aa,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x33c8aa,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x1c3d1f(0x108)](_0x21f7fd[_0x1c3d1f(0x12f)]),{};}else return logger[_0x1c3d1f(0x13f)](_0x21f7fd['SkXDN']),{};},exports[a34_0x50464e(0x12c)]=async _0xc0ca48=>{const _0x1b31fd=a34_0x50464e,_0x41c64c={'FzlxH':function(_0xae5699,_0x43b3f4){return _0xae5699!==_0x43b3f4;},'vrybW':_0x1b31fd(0x141),'lIWBt':function(_0x3e7f2a,_0x8b7427){return _0x3e7f2a===_0x8b7427;},'kOfUW':'chrome','XTnIf':function(_0x2f22a4,_0x17bf4b){return _0x2f22a4===_0x17bf4b;},'SPVzN':_0x1b31fd(0x134),'ZUvXj':_0x1b31fd(0x138),'WMwaF':function(_0x49e589,_0x2cf30b){return _0x49e589(_0x2cf30b);},'YKeAM':_0x1b31fd(0x107),'OAlrW':function(_0x3daf1f,_0x143dd5){return _0x3daf1f>_0x143dd5;},'jqrzM':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x41c64c[_0x1b31fd(0x10f)](_0xc0ca48['deviceName'],''))return logger[_0x1b31fd(0x13f)](_0x41c64c[_0x1b31fd(0x13d)]),![];const _0x3599d1=_0xc0ca48['browser'];if(!(_0x41c64c[_0x1b31fd(0xef)](_0x3599d1,_0x41c64c['kOfUW'])||_0x41c64c['XTnIf'](_0x3599d1,_0x41c64c['SPVzN'])))return logger[_0x1b31fd(0x13f)](_0x41c64c[_0x1b31fd(0xea)]),![];const _0x411265=_0x41c64c[_0x1b31fd(0x121)](parseInt,_0xc0ca48['browser_version']);if(!(_0x41c64c[_0x1b31fd(0xef)](_0x411265,_0x41c64c[_0x1b31fd(0xed)])||_0x41c64c[_0x1b31fd(0x10e)](_0x411265,0x5e)))return logger[_0x1b31fd(0x13f)](_0x41c64c[_0x1b31fd(0x136)]),![];}catch(_0x34bde6){logger[_0x1b31fd(0x108)](_0x1b31fd(0xfd)+util[_0x1b31fd(0x12d)](_0x34bde6));}return!![];},exports[a34_0x50464e(0x120)]=(_0x94e1d6,_0x240bdd,_0x1df730)=>{const _0x2a5c18=a34_0x50464e,_0x229520={'aTFYd':function(_0x2c477e){return _0x2c477e();},'RCTSK':_0x2a5c18(0xe8),'pTMky':function(_0x2b6f80,_0x52dd9e){return _0x2b6f80===_0x52dd9e;},'FyOOu':_0x2a5c18(0x116),'dKbjA':function(_0x3c14e7,_0x46072c){return _0x3c14e7===_0x46072c;},'BiEDR':'playwright-chromium','pOzQD':_0x2a5c18(0x138),'pKaxI':_0x2a5c18(0x107),'QLZfT':function(_0x41ca85,_0x4485c9){return _0x41ca85>_0x4485c9;},'yGORi':_0x2a5c18(0x111),'ubGTT':function(_0xe9c9a,_0x4e2ccc){return _0xe9c9a(_0x4e2ccc);},'hWMsO':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','lZUuH':function(_0x362f06,_0x5ed554){return _0x362f06+_0x5ed554;},'iCGYw':function(_0x38997f,_0x174ac4){return _0x38997f(_0x174ac4);}};try{if(_0x229520[_0x2a5c18(0x110)](isAccessibilityAutomationSession)){global[_0x2a5c18(0x13e)]=!![];!_0x94e1d6[_0x229520[_0x2a5c18(0x125)]]&&(global['accessibilityPlatform']=![]);!(_0x229520[_0x2a5c18(0x124)](_0x94e1d6[_0x2a5c18(0xf0)],_0x229520['FyOOu'])||_0x229520[_0x2a5c18(0x11f)](_0x94e1d6[_0x2a5c18(0xf0)],_0x229520[_0x2a5c18(0xfe)]))&&(logger[_0x2a5c18(0x13f)](_0x229520[_0x2a5c18(0xf7)]),global[_0x2a5c18(0x13e)]=![]);!(_0x229520['dKbjA'](_0x94e1d6[_0x2a5c18(0xee)],_0x229520[_0x2a5c18(0x147)])||_0x229520['QLZfT'](_0x94e1d6[_0x2a5c18(0xee)],0x5e))&&(logger[_0x2a5c18(0x13f)](_0x229520[_0x2a5c18(0xff)]),global[_0x2a5c18(0x13e)]=![]);!_0x229520['ubGTT'](isUndefined,_0x94e1d6[_0x2a5c18(0x131)])&&(logger[_0x2a5c18(0x13f)](_0x229520[_0x2a5c18(0x14c)]),global[_0x2a5c18(0x13e)]=![]);if(!global[_0x2a5c18(0x13e)]){_0x94e1d6[_0x229520['RCTSK']]=![];const _0x48b8f4=_0x229520[_0x2a5c18(0x10c)](_0x240bdd,_0x229520[_0x2a5c18(0x146)](encodeURIComponent,JSON[_0x2a5c18(0xeb)](_0x94e1d6)));_0x1df730&&(_0x1df730[_0x2a5c18(0x11c)][_0x2a5c18(0xf2)][_0x2a5c18(0xe4)][_0x2a5c18(0x11d)][_0x2a5c18(0xf4)]['wsEndpoint']=_0x48b8f4,_0x1df730['workerInfo'][_0x2a5c18(0xe4)]['use'][_0x2a5c18(0xf4)][_0x2a5c18(0x104)]=_0x48b8f4);}}}catch(_0x334ee7){logger['debug'](_0x2a5c18(0x13a)+util[_0x2a5c18(0x12d)](_0x334ee7));}};function a34_0x2b67(){const _0x9bcb44=['PAALs','BzJtS','bstackSdkArgs','command','iCGYw','pKaxI','accessibilityOptions.includeIssueType.bestPractice','measureWrapper','nwfMY','YCVpR','hWMsO','project','error','wcagVersion','111OZfVZN','browserstack.accessibility','setAccessibilityCapabilities','ZUvXj','stringify','NXqiV','YKeAM','browser_version','lIWBt','browserName','SkXDN','testInfo','Playwright','connectOptions','IWxkN','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','pOzQD','sAPOs','../../helpers/accessibility-automation/scripts','No\x20summaryResults\x20found.','1109410KJxhug','BS_A11Y_JWT','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','BiEDR','yGORi','../../helpers/accessibility-automation/helper','evaluate','../../helpers/logger','(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','wsEndpoint','../../helpers/helper','EYsCY','latest','debug','env','accessibilityOptions.includeIssueType.needsReview','accessibilityOptions.wcagVersion','lZUuH','(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','OAlrW','FzlxH','aTFYd','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','accessibilityOptions.authToken','accessibilityOptions.scannerVersion','getAccessibilityResultsSummary','browserStackEvaluate','chrome','bestPractice','1304464DedlcN','util','JxamM','includeIssueType','currentTest','use','name','dKbjA','processAccessibilityCaps','WMwaF','accessibilityOptions.scannerProcessingTimeout','scannerProcessingTimeout','pTMky','RCTSK','LJgPj','needsReview','browserStackExecuteDriver','tlvMB','11496SGlarP','BdmEh','platformValidation','format','performScan','MUJvY','accessibilityOptions','deviceName','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','1833304vKJmGy','playwright-chromium','executeScript','jqrzM','931530ohiTJw','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','2314413NjqhmG','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','replace','parse','vrybW','accessibilityPlatform','warn','3968545hEBUPi','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.'];a34_0x2b67=function(){return _0x9bcb44;};return a34_0x2b67();}
|
|
1
|
+
function a34_0x2e66(){const _0xa2e2c5=['getAccessibilityResults','10876200XzrVCO','(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','VklzJ','9GYQVnd','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','KfhVc','env','bstackSdkArgs','browserStackEvaluate','needsReview','stUTG','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','debug','pfRti','../../helpers/helper','UMLfi','638516avducN','deviceName','setAccessibilityCapabilities','chrome','latest','browserName','scannerProcessingTimeout','9eUjlcL','GIWrt','JMett','nlBiJ','BS_A11Y_JWT','MYHKA','QxcLx','7183296gCBoIG','winstonLogger','nFVvC','No\x20accessibility\x20results\x20were\x20found.','PERFORM_SCAN','43668dkIxIk','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','includeIssueType','parse','nadKo','2788505maqElO','xWLcc','rDrlh','accessibilityOptions.scannerProcessingTimeout','BYywb','wiSBC','../../helpers/performance/performance-tester','oUZRH','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','mjAqt','216656MtPaLF','accessibilityOptions.includeIssueType.bestPractice','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','measureWrapper','../../helpers/performance/constants','eoWYQ','replace','jVBQD','wsEndpoint','scannerVersion','executeScript','connectOptions','MALgX','wcagVersion','AVabv','warn','5214RgVqYe','KWQaX','../../helpers/accessibility-automation/helper','project','processAccessibilityCaps','FOAOz','sZxuM','Playwright','use','util','37435GSyXXl','evaluate','MefTO','getAccessibilityResultsSummary','browser','qMhAM','WebDriver','constructor','executeAsyncScript','bestPractice','Bhres','testInfo','20NUOIGa','YWQny','QVTCZ','accessibilityOptions','currentTest','accessibilityOptions.scannerVersion','name','accessibilityOptions.includeIssueType.needsReview','browserStackExecuteDriver','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','stringify','../../helpers/accessibility-automation/scripts','TtfFH','364EEQmRg','performScan','gnbSC','khnam','KFFqK','accessibilityPlatform'];a34_0x2e66=function(){return _0xa2e2c5;};return a34_0x2e66();}const a34_0x3bc7cf=a34_0x3e7d;function a34_0x3e7d(_0x202fb0,_0x2b01ea){const _0x2e66e3=a34_0x2e66();return a34_0x3e7d=function(_0x3e7d4e,_0xddff9c){_0x3e7d4e=_0x3e7d4e-0x1db;let _0xda37ad=_0x2e66e3[_0x3e7d4e];return _0xda37ad;},a34_0x3e7d(_0x202fb0,_0x2b01ea);}(function(_0x550e45,_0x1d2187){const _0x48e235=a34_0x3e7d,_0x55fbdd=_0x550e45();while(!![]){try{const _0x8f0bdf=-parseInt(_0x48e235(0x1f0))/0x1*(-parseInt(_0x48e235(0x1fc))/0x2)+-parseInt(_0x48e235(0x215))/0x3*(-parseInt(_0x48e235(0x222))/0x4)+parseInt(_0x48e235(0x23a))/0x5+-parseInt(_0x48e235(0x230))/0x6+parseInt(_0x48e235(0x20b))/0x7*(parseInt(_0x48e235(0x244))/0x8)+-parseInt(_0x48e235(0x229))/0x9*(-parseInt(_0x48e235(0x212))/0xa)+-parseInt(_0x48e235(0x1e6))/0xb*(parseInt(_0x48e235(0x235))/0xc);if(_0x8f0bdf===_0x1d2187)break;else _0x55fbdd['push'](_0x55fbdd['shift']());}catch(_0x4f497){_0x55fbdd['push'](_0x55fbdd['shift']());}}}(a34_0x2e66,0xf0690));const util=require(a34_0x3bc7cf(0x1ef)),logger=require('../../helpers/logger')[a34_0x3bc7cf(0x231)],{isAccessibilityAutomationSession}=require(a34_0x3bc7cf(0x1e8)),{isUndefined}=require(a34_0x3bc7cf(0x220)),scripts=require(a34_0x3bc7cf(0x209)),PerformanceTester=require(a34_0x3bc7cf(0x240)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x3bc7cf(0x248));exports[a34_0x3bc7cf(0x21a)]=async(_0x2f2b3f,_0x10a4ee,_0x565ff2={})=>{const _0xc19251=a34_0x3bc7cf,_0x101eaf={};_0x101eaf[_0xc19251(0x20d)]=_0xc19251(0x219);const _0x3de5b2=_0x101eaf;return await _0x2f2b3f[_0xc19251(0x1f1)]('(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'+_0x10a4ee[_0xc19251(0x1dc)](/arguments/g,_0x3de5b2[_0xc19251(0x20d)])+_0xc19251(0x236)+JSON[_0xc19251(0x208)](_0x565ff2)+')');},exports[a34_0x3bc7cf(0x204)]=async(_0x4ad7b6,_0x7f9783,_0x2489da={})=>{const _0x2eefae=a34_0x3bc7cf,_0x2e68a0={};_0x2e68a0[_0x2eefae(0x1e2)]=function(_0x39ba38,_0x1c791d){return _0x39ba38===_0x1c791d;},_0x2e68a0[_0x2eefae(0x1f5)]=_0x2eefae(0x1f6),_0x2e68a0[_0x2eefae(0x1e4)]=function(_0x435df0,_0x421fc6){return _0x435df0===_0x421fc6;},_0x2e68a0[_0x2eefae(0x239)]=_0x2eefae(0x1ed),_0x2e68a0[_0x2eefae(0x1e7)]=_0x2eefae(0x219);const _0x21a76e=_0x2e68a0;if(_0x21a76e[_0x2eefae(0x1e2)](_0x4ad7b6[_0x2eefae(0x1f7)][_0x2eefae(0x202)],_0x21a76e[_0x2eefae(0x1f5)]))return await _0x4ad7b6[_0x2eefae(0x1f8)](_0x7f9783,_0x2489da);else{if(_0x21a76e['AVabv'](_0x4ad7b6[_0x2eefae(0x1f7)][_0x2eefae(0x202)],_0x21a76e[_0x2eefae(0x239)]))return await _0x4ad7b6[_0x2eefae(0x1e0)](_0x2eefae(0x213)+_0x7f9783[_0x2eefae(0x1dc)](/arguments/g,_0x21a76e[_0x2eefae(0x1e7)])+_0x2eefae(0x242)+JSON[_0x2eefae(0x208)](_0x2489da)+')');}},exports[a34_0x3bc7cf(0x224)]=async _0x3338b5=>{const _0x345db6=a34_0x3bc7cf,_0x8b261c={};_0x8b261c[_0x345db6(0x1f2)]='accessibilityOptions.wcagVersion',_0x8b261c[_0x345db6(0x1ec)]=_0x345db6(0x23d),_0x8b261c[_0x345db6(0x1eb)]=_0x345db6(0x245),_0x8b261c[_0x345db6(0x22f)]=_0x345db6(0x203),_0x8b261c[_0x345db6(0x23b)]='accessibilityOptions.authToken',_0x8b261c[_0x345db6(0x22b)]=_0x345db6(0x201);const _0x159e29=_0x8b261c;_0x3338b5[_0x345db6(0x1ff)]&&(_0x3338b5[_0x345db6(0x1ff)][_0x345db6(0x1e3)]&&(_0x3338b5[_0x159e29[_0x345db6(0x1f2)]]=_0x3338b5[_0x345db6(0x1ff)][_0x345db6(0x1e3)]),_0x3338b5[_0x345db6(0x1ff)][_0x345db6(0x228)]&&(_0x3338b5[_0x159e29[_0x345db6(0x1ec)]]=_0x3338b5[_0x345db6(0x1ff)][_0x345db6(0x228)]),_0x3338b5['accessibilityOptions'][_0x345db6(0x237)]&&(_0x3338b5[_0x159e29[_0x345db6(0x1eb)]]=_0x3338b5[_0x345db6(0x1ff)][_0x345db6(0x237)][_0x345db6(0x1f9)],_0x3338b5[_0x159e29[_0x345db6(0x22f)]]=_0x3338b5[_0x345db6(0x1ff)][_0x345db6(0x237)][_0x345db6(0x21b)]));const _0x18882=JSON[_0x345db6(0x238)](process[_0x345db6(0x218)][_0x345db6(0x206)])[_0x345db6(0x1df)];_0x3338b5[_0x159e29[_0x345db6(0x23b)]]=process[_0x345db6(0x218)][_0x345db6(0x22d)],_0x3338b5[_0x159e29[_0x345db6(0x22b)]]=_0x18882,delete _0x3338b5[_0x345db6(0x1ff)];},exports[a34_0x3bc7cf(0x211)]=async _0x4d946f=>{const _0x275fd8=a34_0x3bc7cf,_0x941c0={};_0x941c0[_0x275fd8(0x21c)]=_0x275fd8(0x233),_0x941c0[_0x275fd8(0x22c)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x574d67=_0x941c0;if(global[_0x275fd8(0x210)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x4d946f,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x4d946f,scripts.getResults);})();return res;}catch{return logger['error'](_0x574d67[_0x275fd8(0x21c)]),[];}else return logger['warn'](_0x574d67[_0x275fd8(0x22c)]),[];},exports[a34_0x3bc7cf(0x20c)]=async(_0x5adc22,_0x21f48a='')=>{const _0x49937b=a34_0x3bc7cf;if(global[_0x49937b(0x210)])return await PerformanceTester[_0x49937b(0x247)](PerformanceA11yEvents[_0x49937b(0x234)],async()=>{const _0x252fad=_0x49937b,_0x342ba8={};_0x342ba8['command']=_0x21f48a,await exports[_0x252fad(0x21a)](_0x5adc22,scripts[_0x252fad(0x20c)],_0x342ba8);},{'command':_0x21f48a})();},exports[a34_0x3bc7cf(0x1f3)]=async _0x2cfdf2=>{const _0x2c145b=a34_0x3bc7cf,_0x25b2cc={};_0x25b2cc[_0x2c145b(0x23f)]='No\x20summaryResults\x20found.',_0x25b2cc[_0x2c145b(0x23e)]=_0x2c145b(0x246);const _0x31a9e6=_0x25b2cc;if(global[_0x2c145b(0x210)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x2cfdf2,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x2cfdf2,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x2c145b(0x21e)](_0x31a9e6[_0x2c145b(0x23f)]),{};}else return logger[_0x2c145b(0x1e5)](_0x31a9e6[_0x2c145b(0x23e)]),{};},exports['platformValidation']=async _0xef7bde=>{const _0x40d64e=a34_0x3bc7cf,_0x3509a3={'MYHKA':function(_0x24351e,_0x4f119d){return _0x24351e!==_0x4f119d;},'QVTCZ':_0x40d64e(0x207),'mjAqt':function(_0x35d26d,_0x21109c){return _0x35d26d===_0x21109c;},'Bhres':_0x40d64e(0x225),'EAkPJ':function(_0x122665,_0x422b66){return _0x122665===_0x422b66;},'khnam':'playwright-chromium','TtfFH':_0x40d64e(0x205),'oUZRH':function(_0x17c613,_0x120915){return _0x17c613(_0x120915);},'GIWrt':function(_0x4961ef,_0x240894){return _0x4961ef===_0x240894;},'nFVvC':_0x40d64e(0x226),'qqkho':function(_0x14e04c,_0x16f3ce){return _0x14e04c>_0x16f3ce;},'ZXbfM':_0x40d64e(0x21d)};try{if(!_0x3509a3[_0x40d64e(0x22e)](_0xef7bde[_0x40d64e(0x223)],''))return logger[_0x40d64e(0x1e5)](_0x3509a3[_0x40d64e(0x1fe)]),![];const _0x32b1f0=_0xef7bde[_0x40d64e(0x1f4)];if(!(_0x3509a3[_0x40d64e(0x243)](_0x32b1f0,_0x3509a3[_0x40d64e(0x1fa)])||_0x3509a3['EAkPJ'](_0x32b1f0,_0x3509a3[_0x40d64e(0x20e)])))return logger['warn'](_0x3509a3[_0x40d64e(0x20a)]),![];const _0xa9e66f=_0x3509a3[_0x40d64e(0x241)](parseInt,_0xef7bde['browser_version']);if(!(_0x3509a3[_0x40d64e(0x22a)](_0xa9e66f,_0x3509a3[_0x40d64e(0x232)])||_0x3509a3['qqkho'](_0xa9e66f,0x5e)))return logger[_0x40d64e(0x1e5)](_0x3509a3['ZXbfM']),![];}catch(_0x34e4a2){logger[_0x40d64e(0x21e)](_0x40d64e(0x216)+util['format'](_0x34e4a2));}return!![];},exports[a34_0x3bc7cf(0x1ea)]=(_0x29388e,_0x40ea63,_0x4f17fd)=>{const _0x23f011=a34_0x3bc7cf,_0x4f9c30={'eoWYQ':function(_0x5f365f){return _0x5f365f();},'jVBQD':'browserstack.accessibility','YWQny':function(_0x568af2,_0x1fb02d){return _0x568af2===_0x1fb02d;},'KFFqK':_0x23f011(0x225),'ifOlL':'playwright-chromium','pfRti':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','JECIk':_0x23f011(0x226),'UMLfi':function(_0x4c2423,_0x4bba6a){return _0x4c2423>_0x4bba6a;},'VklzJ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','rDrlh':function(_0x12679,_0x5b558b){return _0x12679(_0x5b558b);},'kWRzJ':_0x23f011(0x207),'KfhVc':function(_0xcbd10e,_0x2df94e){return _0xcbd10e+_0x2df94e;}};try{if(_0x4f9c30[_0x23f011(0x1db)](isAccessibilityAutomationSession)){global[_0x23f011(0x210)]=!![];!_0x29388e[_0x4f9c30[_0x23f011(0x1dd)]]&&(global[_0x23f011(0x210)]=![]);!(_0x4f9c30[_0x23f011(0x1fd)](_0x29388e[_0x23f011(0x227)],_0x4f9c30[_0x23f011(0x20f)])||_0x4f9c30[_0x23f011(0x1fd)](_0x29388e['browserName'],_0x4f9c30['ifOlL']))&&(logger[_0x23f011(0x1e5)](_0x4f9c30[_0x23f011(0x21f)]),global[_0x23f011(0x210)]=![]);!(_0x4f9c30['YWQny'](_0x29388e['browser_version'],_0x4f9c30['JECIk'])||_0x4f9c30[_0x23f011(0x221)](_0x29388e['browser_version'],0x5e))&&(logger[_0x23f011(0x1e5)](_0x4f9c30[_0x23f011(0x214)]),global[_0x23f011(0x210)]=![]);!_0x4f9c30[_0x23f011(0x23c)](isUndefined,_0x29388e[_0x23f011(0x223)])&&(logger['warn'](_0x4f9c30['kWRzJ']),global[_0x23f011(0x210)]=![]);if(!global[_0x23f011(0x210)]){_0x29388e[_0x4f9c30[_0x23f011(0x1dd)]]=![];const _0xf11774=_0x4f9c30[_0x23f011(0x217)](_0x40ea63,_0x4f9c30[_0x23f011(0x23c)](encodeURIComponent,JSON[_0x23f011(0x208)](_0x29388e)));_0x4f17fd&&(_0x4f17fd[_0x23f011(0x200)][_0x23f011(0x1fb)][_0x23f011(0x1e9)]['use'][_0x23f011(0x1e1)][_0x23f011(0x1de)]=_0xf11774,_0x4f17fd['workerInfo'][_0x23f011(0x1e9)][_0x23f011(0x1ee)][_0x23f011(0x1e1)]['wsEndpoint']=_0xf11774);}}}catch(_0x1c0afb){logger[_0x23f011(0x21e)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util['format'](_0x1c0afb));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0xae6f55=a35_0x4fc5;function a35_0x37d7(){const _0x933f73=['kzKny','Cqmeb','MnJJJ','ViBNC','SDK_CLEANUP','validateRerunTestList','has','--disable-browserstack-automation','../../helpers/helper','filter','maBAN','BROWSERSTACK_AUTOMATION','automation','22pgKlbL','tUfQQ','getPackageType','length','AhxIb','WEWvL','--config','aoZgp','true','SHYbF','QZcBE','split','logLevel','config','vlBOp','playwright-browserstack-sdk.config.js','mDyhe','concat','bGFIp','8094392SKdZMK','../../helpers/test-observability/constants','parse','../../helpers/test-observability/utils','../../helpers/performance/performance-tester','dirname','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','aqOlp','test','BROWSERSTACK_TEST_OBSERVABILITY','ARzzY','bjLsB','env','NpPJH','--disable-test-observability','accessibilityOptions','NZQUz','SDK_POST_INITIALIZE','SDK_SETUP','\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();','nfiWj','GUPFX','unlinkSync','BROWSERSTACK_TEST_ACCESSIBILITY_YML','Mtnie','SDK_PRE_INITIALIZE','BROWSERSTACK_RERUN','homedir','measureWrapper','yhGuM','JyjHy','QrFUU','findIndex','EVENTS','exitCode','winstonLogger','wdBtN','existsSync','4811230ootrzM','./reporter/pwUtils','nestedKeyValue','1253769axldOh','accessibility','testContextOptions','9yBECkm','writeFileSync','serializeToYamlString','WFElu','5jAtKLt','--grep','rapBr','HftNw','close','tusGk','MWhIw','--config=','../../helpers/BrowserStackSetup','exports','1337832hOVGAh','Error\x20in\x20closing\x20playwright','MiySb','qdnZw','CYDgG','pDUOD','cliConfig','resolvedConfigFile','isUndefined','wboVf','NhYso','../../helpers/accessibility-automation/helper','join','pw_result.json','initialize','splice','startsWith','ycvdD','6|0|5|7|2|3|9|8|10|4|1','YKfGn','PVhxS','BROWSERSTACK_RERUN_TESTS','../../helpers/performance/constants','util','npx','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Error\x20in\x20getting\x20funnel\x20data\x20results','stop','playwright','trim','HjOwo','end','map','isTrue','cwd','debug','vwrKN','browserstackSetupConfig.json','14zkamPt','Playwright\x20process\x20exited\x20with\x20code\x20','9762846tqLaSV','pXJYk','UbcVA','TEdmU','includes','push','isTypescriptProject','1276261qRPqsH','Error\x20in\x20deleting\x20playwright\x20results','slice','skipSessionStatus','getConfigPath','PLAYWRIGHT','requirePWModule','WujJT','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','skipSessionName','100791asDMPq','kVCCi','BrowserStack\x20config\x20file\x20not\x20found.','Wusvz','ulRRs','readFileSync','GnjiP','path','.browserstack','launchBuild','isFalse','getProxyUrl','testObservability','resolve'];a35_0x37d7=function(){return _0x933f73;};return a35_0x37d7();}(function(_0x589b26,_0x4bc956){const _0x4f471f=a35_0x4fc5,_0x275041=_0x589b26();while(!![]){try{const _0x445e35=-parseInt(_0x4f471f(0x1e1))/0x1*(parseInt(_0x4f471f(0x1ce))/0x2)+parseInt(_0x4f471f(0x197))/0x3+-parseInt(_0x4f471f(0x1a8))/0x4+-parseInt(_0x4f471f(0x19e))/0x5*(-parseInt(_0x4f471f(0x1d0))/0x6)+-parseInt(_0x4f471f(0x1d7))/0x7+parseInt(_0x4f471f(0x16e))/0x8*(parseInt(_0x4f471f(0x19a))/0x9)+parseInt(_0x4f471f(0x194))/0xa*(-parseInt(_0x4f471f(0x1fc))/0xb);if(_0x445e35===_0x4bc956)break;else _0x275041['push'](_0x275041['shift']());}catch(_0x4b0dd6){_0x275041['push'](_0x275041['shift']());}}}(a35_0x37d7,0xd4f6b));function a35_0x4fc5(_0x1e0765,_0x24c472){const _0x37d7c1=a35_0x37d7();return a35_0x4fc5=function(_0x4fc5c1,_0x36af3f){_0x4fc5c1=_0x4fc5c1-0x15d;let _0x541cd5=_0x37d7c1[_0x4fc5c1];return _0x541cd5;},a35_0x4fc5(_0x1e0765,_0x24c472);}const fs=require('fs'),path=require(a35_0xae6f55(0x1e8)),{spawn}=require('child_process'),{format}=require(a35_0xae6f55(0x1bf)),logger=require('../../helpers/logger')[a35_0xae6f55(0x191)],{default:BrowserStackSetup}=require(a35_0xae6f55(0x1a6)),helper=require(a35_0xae6f55(0x1f7)),utilities=require('../../helpers/utilities'),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0xae6f55(0x16f)),{getConfigLoaderPath}=require(a35_0xae6f55(0x195)),{checkAccessibilityPlatformConfig}=require(a35_0xae6f55(0x1b3)),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a35_0xae6f55(0x171)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a35_0xae6f55(0x172)),PerformanceEvents=require(a35_0xae6f55(0x1be))[a35_0xae6f55(0x18f)],getUserPlaywrightConfig=async(_0x5f019d,_0x56d465)=>{const _0x215b21=a35_0xae6f55,_0x36be1c={'ycvdD':function(_0x27fd15){return _0x27fd15();},'Mtnie':function(_0x25b774,_0x33a8f0){return _0x25b774(_0x33a8f0);},'MnJJJ':function(_0x1af325,_0x10b5c6){return _0x1af325(_0x10b5c6);},'ViBNC':_0x215b21(0x1af),'WujJT':'--config='},_0x4fa2c8=!helper[_0x215b21(0x1b0)](_0x5f019d['config']),_0x120148=_0x4fa2c8?path[_0x215b21(0x1ee)](process[_0x215b21(0x1ca)](),_0x5f019d['config']):process[_0x215b21(0x1ca)](),{resolveConfigFile:_0x3dd076,resolveConfigLocation:_0x3a5043}=helper[_0x215b21(0x1dd)]['apply'](null,_0x36be1c[_0x215b21(0x1b9)](getConfigLoaderPath)),_0x5db577=_0x3dd076?_0x36be1c[_0x215b21(0x186)](_0x3dd076,_0x120148):helper[_0x215b21(0x196)](_0x36be1c[_0x215b21(0x1f1)](_0x3a5043,_0x120148),[_0x36be1c[_0x215b21(0x1f2)]]),_0x3794c8={};if(_0x4fa2c8){const _0x2a927d=_0x56d465[_0x215b21(0x18e)](_0x21147a=>_0x21147a===_0x215b21(0x161)||_0x21147a==='-c'||_0x21147a[_0x215b21(0x1b8)](_0x215b21(0x1a5)));_0x56d465[_0x215b21(0x1b7)](_0x2a927d,_0x56d465[_0x2a927d][_0x215b21(0x1b8)](_0x36be1c[_0x215b21(0x1de)])?0x1:0x2);}const _0x4f4347={};return _0x4f4347[_0x215b21(0x1e8)]=_0x5db577,_0x4f4347[_0x215b21(0x168)]=_0x3794c8,_0x4f4347;},handleO11yRerun=_0x45bac0=>{const _0x7a74b4=a35_0xae6f55,_0x1f2a3d={};_0x1f2a3d[_0x7a74b4(0x1aa)]=_0x7a74b4(0x19f);const _0x79ebc=_0x1f2a3d,_0x2bc69b=helper[_0x7a74b4(0x1c9)](process[_0x7a74b4(0x17a)][_0x7a74b4(0x188)]);if(_0x2bc69b){const _0x41f561=process['env'][_0x7a74b4(0x1bd)],_0x10f774=[];if(helper[_0x7a74b4(0x1f4)](_0x41f561)&&!helper[_0x7a74b4(0x1b0)](_0x41f561)){_0x41f561['split'](',')[_0x7a74b4(0x1c8)](_0x1cfe8e=>{const _0x1684b8=_0x7a74b4;_0x10f774[_0x1684b8(0x1d5)]('('+_0x1cfe8e[_0x1684b8(0x1c5)]()+')');});const _0x40d82a='^'+_0x10f774[_0x7a74b4(0x1b4)]('|')+'$';_0x45bac0[_0x7a74b4(0x1d5)](_0x79ebc[_0x7a74b4(0x1aa)],_0x40d82a);}}},spawnOriginalProcess=_0x2949e2=>{const _0x2b15ca=a35_0xae6f55,_0x226deb={'GUPFX':function(_0x560080,_0x1e24aa,_0x30e619,_0x4336e0){return _0x560080(_0x1e24aa,_0x30e619,_0x4336e0);},'ZSpzz':_0x2b15ca(0x1c0),'Wusvz':_0x2b15ca(0x1c4),'maBAN':function(_0x4e1ccf,_0x503672){return _0x4e1ccf===_0x503672;},'PVhxS':'win32','TEdmU':'inherit'};_0x226deb[_0x2b15ca(0x183)](spawn,_0x226deb['ZSpzz'],[_0x226deb[_0x2b15ca(0x1e4)],..._0x2949e2[_0x2b15ca(0x1d9)](0x1)],{'shell':_0x226deb[_0x2b15ca(0x1f9)](process['platform'],_0x226deb[_0x2b15ca(0x1bc)]),'stdio':_0x226deb[_0x2b15ca(0x1d3)],'cwd':process[_0x2b15ca(0x1ca)]()});},isTestCommand=(_0xd32cd7,_0x26a9a2)=>{const _0xdeaeb3=a35_0xae6f55,_0x5bd328={};_0x5bd328[_0xdeaeb3(0x162)]=function(_0x4e8cbe,_0x47f0ae){return _0x4e8cbe>_0x47f0ae;},_0x5bd328[_0xdeaeb3(0x192)]=function(_0xb87d32,_0x4b689d){return _0xb87d32===_0x4b689d;},_0x5bd328[_0xdeaeb3(0x17e)]=_0xdeaeb3(0x176);const _0x32a3bd=_0x5bd328;if(_0x32a3bd[_0xdeaeb3(0x162)](_0x26a9a2[_0xdeaeb3(0x15e)],0x1)&&_0x32a3bd[_0xdeaeb3(0x192)](_0x26a9a2[0x1],_0x32a3bd['NZQUz']))return!![];return![];};async function run(_0x57cd05,_0x41e430){const _0x2db786=a35_0xae6f55,_0x3416ca={'GnjiP':function(_0x18ed1e,_0x19e37f){return _0x18ed1e(_0x19e37f);},'yhGuM':_0x2db786(0x1ba),'bjLsB':function(_0x5bdc5b){return _0x5bdc5b();},'rapBr':function(_0x463a8e){return _0x463a8e();},'tusGk':function(_0x3f235b,_0x17a556){return _0x3f235b+_0x17a556;},'pDUOD':_0x2db786(0x1a9),'QrFUU':_0x2db786(0x1e9),'pXJYk':_0x2db786(0x1b5),'kVCCi':_0x2db786(0x1c2),'bGFIp':_0x2db786(0x1e3),'MWhIw':_0x2db786(0x1fb),'kzKny':function(_0x52d1d9,_0xf478ab){return _0x52d1d9!=_0xf478ab;},'WFElu':function(_0xef32b3,_0x432807,_0x1794ab){return _0xef32b3(_0x432807,_0x1794ab);},'wwHBV':function(_0x1a8edc,_0x20b6e4){return _0x1a8edc(_0x20b6e4);},'qdnZw':function(_0x4165df,_0x35eae4){return _0x4165df===_0x35eae4;},'NpPJH':_0x2db786(0x163),'vlBOp':function(_0x265bc0,_0x12e2b4){return _0x265bc0(_0x12e2b4);},'aqOlp':_0x2db786(0x1cd),'JyjHy':function(_0x2e7706,_0x5deb29){return _0x2e7706===_0x5deb29;},'QZcBE':'playwright-browserstack-sdk.config.cjs','tUfQQ':_0x2db786(0x16a),'HjOwo':function(_0x135b5c,_0xdd523d){return _0x135b5c-_0xdd523d;},'MByDm':function(_0x3f64e9,_0x417a78){return _0x3f64e9+_0x417a78;},'YKfGn':'Updated\x20config\x20file\x20name\x20to\x20-\x20','bCOlS':function(_0x221ff6,_0x5d36c4){return _0x221ff6>_0x5d36c4;},'ulRRs':function(_0xf155a8,_0x247700){return _0xf155a8+_0x247700;},'Cqmeb':function(_0x34bdfa,_0x318428,_0x57ea9b,_0x37d60c){return _0x34bdfa(_0x318428,_0x57ea9b,_0x37d60c);},'fMLaG':_0x2db786(0x1c0),'vwrKN':_0x2db786(0x1c4),'SHYbF':_0x2db786(0x176),'MJnpT':_0x2db786(0x161),'SfxhP':'win32','wboVf':'inherit','WEWvL':_0x2db786(0x1a2),'HftNw':'--disable-browserstack-automation','nfiWj':'false','AhxIb':'--disable-test-observability','ARzzY':function(_0x54b8bd,_0x4a3595){return _0x54b8bd>=_0x4a3595;},'UbcVA':_0x2db786(0x1d8)};!helper[_0x2db786(0x1eb)](process[_0x2db786(0x17a)][_0x2db786(0x1fa)])&&(process['env'][_0x2db786(0x1fa)]=!![]);process['argv'][_0x2db786(0x1d4)](_0x3416ca[_0x2db786(0x1a1)])&&(process[_0x2db786(0x17a)][_0x2db786(0x1fa)]=_0x3416ca[_0x2db786(0x182)],_0x41e430=_0x41e430[_0x2db786(0x1f8)](_0x5c12f8=>_0x5c12f8!==_0x2db786(0x1f6)));const _0x44ed0c=_0x41e430['indexOf'](_0x3416ca[_0x2db786(0x15f)]);_0x3416ca[_0x2db786(0x178)](_0x44ed0c,0x0)&&(process['env'][_0x2db786(0x177)]=_0x3416ca[_0x2db786(0x182)],_0x41e430=_0x41e430['filter'](_0x40273d=>_0x40273d!==_0x2db786(0x17c)));try{const _0x3b4885=path[_0x2db786(0x1b4)](helper[_0x2db786(0x189)](),_0x3416ca[_0x2db786(0x18d)],_0x3416ca[_0x2db786(0x1d1)]);fs[_0x2db786(0x193)](_0x3b4885)&&fs[_0x2db786(0x184)](_0x3b4885);}catch(_0x40cec4){logger[_0x2db786(0x1cb)](_0x3416ca[_0x2db786(0x1e5)](_0x3416ca[_0x2db786(0x1d2)],_0x40cec4));}if(!_0x3416ca[_0x2db786(0x19d)](isTestCommand,_0x57cd05,_0x41e430)){_0x3416ca[_0x2db786(0x1e7)](spawnOriginalProcess,_0x41e430);return;}const _0x22a327=new BrowserStackSetup(_0x57cd05,FRAMEWORKS[_0x2db786(0x1dc)]);await PerformanceTester[_0x2db786(0x18a)](PerformanceEvents[_0x2db786(0x187)],async()=>{const _0x471c39=_0x2db786,_0x29f13f={'CYDgG':_0x3416ca[_0x471c39(0x18d)],'ptQkL':_0x3416ca[_0x471c39(0x1d1)],'mDyhe':function(_0xe1122d,_0xa378b6){return _0x3416ca['tusGk'](_0xe1122d,_0xa378b6);},'NhYso':_0x3416ca[_0x471c39(0x1e2)]};if(!_0x22a327[_0x471c39(0x168)]){logger['error'](_0x3416ca[_0x471c39(0x16d)]);return;}await _0x22a327[_0x471c39(0x1b6)]();!helper[_0x471c39(0x1b0)](_0x22a327[_0x471c39(0x1ae)])&&_0x22a327[_0x471c39(0x1ae)][_0x471c39(0x1f5)](_0x3416ca[_0x471c39(0x1a4)])&&(process['env'][_0x471c39(0x1fa)]=_0x22a327[_0x471c39(0x1ae)]['get'](_0x3416ca['MWhIw'])||!![]);_0x3416ca[_0x471c39(0x1ef)](_0x22a327[_0x471c39(0x168)]['testObservability'],null)&&!helper[_0x471c39(0x1c9)](process[_0x471c39(0x17a)][_0x471c39(0x177)])&&(process['env'][_0x471c39(0x177)]=process[_0x471c39(0x17a)][_0x471c39(0x177)]||_0x22a327[_0x471c39(0x168)][_0x471c39(0x1ed)]);const _0x1c5109=!helper[_0x471c39(0x1eb)](process[_0x471c39(0x17a)][_0x471c39(0x177)]);let _0x5c9348=![];_0x22a327['config'][_0x471c39(0x198)]&&(_0x5c9348=!![],process[_0x471c39(0x17a)][_0x471c39(0x185)]=_0x22a327[_0x471c39(0x168)][_0x471c39(0x198)]);_0x22a327[_0x471c39(0x168)]['accessibilityOptions']&&(process['env'][_0x471c39(0x1c1)]=JSON['stringify'](_0x22a327[_0x471c39(0x168)][_0x471c39(0x17d)]));const _0x2ebd2e=_0x41e430[_0x471c39(0x16c)](),_0x28a582=await _0x3416ca[_0x471c39(0x19d)](getUserPlaywrightConfig,_0x57cd05,_0x41e430);if(helper[_0x471c39(0x1b0)](_0x28a582)){_0x3416ca['wwHBV'](spawnOriginalProcess,_0x2ebd2e);return;}const _0x50900a=_0x28a582[_0x471c39(0x1e8)]?path['dirname'](_0x28a582[_0x471c39(0x1e8)]):process['cwd']();process[_0x471c39(0x17a)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x50900a,await PerformanceTester[_0x471c39(0x18a)](PerformanceEvents[_0x471c39(0x17f)],async()=>{const _0x4f01ca=_0x471c39;await TestHubHandler[_0x4f01ca(0x1ea)](FRAMEWORKS[_0x4f01ca(0x1dc)],_0x22a327),_0x1c5109&&_0x3416ca['GnjiP'](handleO11yRerun,_0x41e430);})();let _0x2f4b76=_0x3416ca[_0x471c39(0x1ab)](process[_0x471c39(0x17a)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x3416ca[_0x471c39(0x17b)]);_0x2f4b76=_0x2f4b76||_0x3416ca['GnjiP'](checkAccessibilityPlatformConfig,_0x22a327[_0x471c39(0x168)]),process[_0x471c39(0x17a)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x2f4b76;_0x2f4b76&&_0x3416ca[_0x471c39(0x169)](setAccessibilityCapabilities,_0x22a327[_0x471c39(0x168)]);const _0x892fd8=path[_0x471c39(0x1b4)](_0x28a582[_0x471c39(0x1e8)]?path[_0x471c39(0x173)](_0x28a582[_0x471c39(0x1e8)]):process['cwd'](),_0x3416ca[_0x471c39(0x175)]);fs[_0x471c39(0x19b)](_0x892fd8,helper[_0x471c39(0x19c)](_0x22a327[_0x471c39(0x168)])),process['env']['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x892fd8,helper['clearTempPWConfig']();let _0x25d342='';_0x3416ca['JyjHy'](helper[_0x471c39(0x15d)](),constants['PACKAGE_TYPE']['MODULE'])?_0x25d342=_0x3416ca[_0x471c39(0x165)]:_0x25d342=_0x3416ca[_0x471c39(0x1fd)];let _0xb587f5='';if(helper[_0x471c39(0x1d6)](_0x28a582['path'])){_0xb587f5=_0x471c39(0x1df);const _0x4c3747=_0x25d342[_0x471c39(0x166)]('.');_0x4c3747[_0x3416ca[_0x471c39(0x1c6)](_0x4c3747[_0x471c39(0x15e)],0x1)]='ts',_0x25d342=_0x4c3747['join']('.'),logger['debug'](_0x3416ca['MByDm'](_0x3416ca[_0x471c39(0x1bb)],_0x25d342));}else _0xb587f5='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x531608=path['join'](_0x28a582[_0x471c39(0x1e8)]?path['dirname'](_0x28a582[_0x471c39(0x1e8)]):process[_0x471c39(0x1ca)](),_0x25d342);let _0x14bef1=_0x28a582[_0x471c39(0x1e8)]?_0x28a582['path']:'';_0x14bef1=_0x3416ca['bCOlS'](_0x14bef1[_0x471c39(0x15e)],0x0)?path['resolve'](_0x14bef1):'',process[_0x471c39(0x17a)]['USER_CONFIG_DETAILS_PATH']=_0x14bef1;const _0x46e7f4=helper[_0x471c39(0x1ec)](_0x22a327[_0x471c39(0x168)]);_0x46e7f4&&(_0xb587f5=_0x3416ca[_0x471c39(0x1e5)](_0x471c39(0x174)+_0x46e7f4+_0x471c39(0x181),_0xb587f5));helper['filterBrowserstackArgs']({},_0x41e430),fs['writeFileSync'](_0x531608,_0xb587f5),PerformanceTester[_0x471c39(0x1c7)](PerformanceEvents[_0x471c39(0x180)]);const _0x3d2c0d=_0x3416ca[_0x471c39(0x1f0)](spawn,_0x3416ca['fMLaG'],[_0x3416ca[_0x471c39(0x1cc)],_0x3416ca[_0x471c39(0x164)],_0x3416ca['MJnpT'],_0x531608,..._0x41e430['slice'](0x2)],{'shell':_0x3416ca[_0x471c39(0x18c)](process['platform'],_0x3416ca['SfxhP']),'stdio':_0x3416ca[_0x471c39(0x1b1)],'cwd':process[_0x471c39(0x1ca)](),'env':Object['assign']({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x471c39(0x1db)](_0x57cd05),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x22a327[_0x471c39(0x168)][_0x471c39(0x199)][_0x471c39(0x1da)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x22a327[_0x471c39(0x168)][_0x471c39(0x199)][_0x471c39(0x1e0)],'BROWSERSTACK_LOG_LEVEL':_0x22a327['config'][_0x471c39(0x167)]})}),_0x393984=()=>{const _0x2558b2=_0x471c39;try{const _0x48eba5=path[_0x2558b2(0x1b4)](helper['homedir'](),_0x29f13f[_0x2558b2(0x1ac)],_0x29f13f['ptQkL']);if(fs['existsSync'](_0x48eba5)){let _0x15b3b4=fs[_0x2558b2(0x1e6)](_0x48eba5);_0x15b3b4=JSON[_0x2558b2(0x170)](_0x15b3b4),_0x22a327['errorMessage']=_0x15b3b4,fs[_0x2558b2(0x184)](_0x48eba5);}}catch(_0x1efbd0){logger[_0x2558b2(0x1cb)](_0x29f13f[_0x2558b2(0x16b)](_0x29f13f[_0x2558b2(0x1b2)],_0x1efbd0));}};_0x3d2c0d['on'](_0x3416ca[_0x471c39(0x160)],async _0x2ad174=>{const _0x5149b7=_0x471c39;try{const _0x3e5482=_0x3416ca[_0x5149b7(0x18b)][_0x5149b7(0x166)]('|');let _0x1d5f0f=0x0;while(!![]){switch(_0x3e5482[_0x1d5f0f++]){case'0':_0x3416ca[_0x5149b7(0x179)](_0x393984);continue;case'1':fs['unlinkSync'](_0x892fd8);continue;case'2':await utilities['finalExecution'](_0x22a327);continue;case'3':process[_0x5149b7(0x190)]=_0x2ad174;continue;case'4':logger[_0x5149b7(0x1cb)]('Deleting\x20'+_0x892fd8);continue;case'5':await TestHubHandler[_0x5149b7(0x1c3)]();continue;case'6':PerformanceTester['start'](PerformanceEvents[_0x5149b7(0x1f3)]);continue;case'7':_0x3416ca[_0x5149b7(0x1a0)](printBuildLink);continue;case'8':logger['info']('Deleting\x20'+_0x531608);continue;case'9':logger[_0x5149b7(0x1cb)](_0x5149b7(0x1cf)+_0x2ad174);continue;case'10':fs['unlinkSync'](_0x531608);continue;}break;}}catch(_0x17fd9a){logger[_0x5149b7(0x1cb)](_0x3416ca[_0x5149b7(0x1a3)](_0x3416ca[_0x5149b7(0x1ad)],_0x17fd9a));}});})();}module[a35_0xae6f55(0x1a7)]=run;
|
|
2
|
+
'use strict';const a35_0x1d17a7=a35_0xaac7;function a35_0xaac7(_0x36a098,_0x5d247a){const _0x332585=a35_0x3325();return a35_0xaac7=function(_0xaac754,_0xdfa50d){_0xaac754=_0xaac754-0xf0;let _0x269e2f=_0x332585[_0xaac754];return _0x269e2f;},a35_0xaac7(_0x36a098,_0x5d247a);}(function(_0x5783ec,_0x443ca1){const _0x315f68=a35_0xaac7,_0x35eda9=_0x5783ec();while(!![]){try{const _0x16b56c=-parseInt(_0x315f68(0x17e))/0x1*(parseInt(_0x315f68(0x118))/0x2)+parseInt(_0x315f68(0x158))/0x3*(-parseInt(_0x315f68(0x11b))/0x4)+parseInt(_0x315f68(0x13c))/0x5*(parseInt(_0x315f68(0x194))/0x6)+parseInt(_0x315f68(0x11d))/0x7*(parseInt(_0x315f68(0x17c))/0x8)+-parseInt(_0x315f68(0x10d))/0x9*(parseInt(_0x315f68(0x103))/0xa)+-parseInt(_0x315f68(0x162))/0xb+parseInt(_0x315f68(0x125))/0xc;if(_0x16b56c===_0x443ca1)break;else _0x35eda9['push'](_0x35eda9['shift']());}catch(_0x12b5f1){_0x35eda9['push'](_0x35eda9['shift']());}}}(a35_0x3325,0xaf2c8));const fs=require('fs'),path=require(a35_0x1d17a7(0x119)),{spawn}=require(a35_0x1d17a7(0x11c)),{format}=require(a35_0x1d17a7(0x12a)),logger=require('../../helpers/logger')[a35_0x1d17a7(0x14a)],{default:BrowserStackSetup}=require(a35_0x1d17a7(0x157)),helper=require(a35_0x1d17a7(0x170)),utilities=require(a35_0x1d17a7(0x116)),constants=require(a35_0x1d17a7(0xfb)),{FRAMEWORKS}=require(a35_0x1d17a7(0x155)),{getConfigLoaderPath}=require(a35_0x1d17a7(0x102)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a35_0x1d17a7(0x138)),{printBuildLink}=require(a35_0x1d17a7(0x159)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a35_0x1d17a7(0x13e)),PerformanceEvents=require('../../helpers/performance/constants')[a35_0x1d17a7(0x16b)],getUserPlaywrightConfig=async(_0x5a115c,_0x547465)=>{const _0x4f96ac=a35_0x1d17a7,_0x38972a={'rndey':function(_0x357ab6){return _0x357ab6();},'WzhKS':function(_0x5dbaee,_0x113034){return _0x5dbaee(_0x113034);},'RmibU':function(_0x48ee95,_0x1492ca){return _0x48ee95(_0x1492ca);},'wqDeO':_0x4f96ac(0x176),'TjVyO':_0x4f96ac(0x15d)},_0x1dd8ba=!helper[_0x4f96ac(0xfe)](_0x5a115c['config']),_0x5890bd=_0x1dd8ba?path[_0x4f96ac(0x104)](process['cwd'](),_0x5a115c[_0x4f96ac(0x156)]):process[_0x4f96ac(0x131)](),{resolveConfigFile:_0xf25ad3,resolveConfigLocation:_0x4a65cc}=helper[_0x4f96ac(0x179)]['apply'](null,_0x38972a[_0x4f96ac(0x197)](getConfigLoaderPath)),_0x387852=_0xf25ad3?_0x38972a[_0x4f96ac(0x139)](_0xf25ad3,_0x5890bd):helper['nestedKeyValue'](_0x38972a['RmibU'](_0x4a65cc,_0x5890bd),[_0x38972a[_0x4f96ac(0x186)]]),_0x3f42d1={};if(_0x1dd8ba){const _0x5b1e22=_0x547465[_0x4f96ac(0x137)](_0x4e8e84=>_0x4e8e84===_0x4f96ac(0x134)||_0x4e8e84==='-c'||_0x4e8e84[_0x4f96ac(0x168)](_0x4f96ac(0x15d)));_0x547465['splice'](_0x5b1e22,_0x547465[_0x5b1e22]['startsWith'](_0x38972a[_0x4f96ac(0x182)])?0x1:0x2);}const _0x37b086={};return _0x37b086['path']=_0x387852,_0x37b086[_0x4f96ac(0x156)]=_0x3f42d1,_0x37b086;},handleO11yRerun=_0x2dbb47=>{const _0xc2d574=a35_0x1d17a7,_0xefa93={};_0xefa93[_0xc2d574(0xf5)]=_0xc2d574(0x190);const _0x1deedc=_0xefa93,_0x418aa2=helper[_0xc2d574(0x151)](process[_0xc2d574(0x126)][_0xc2d574(0x199)]);if(_0x418aa2){const _0x598fdb=process[_0xc2d574(0x126)][_0xc2d574(0xf2)],_0x4bd20d=[];if(helper[_0xc2d574(0x150)](_0x598fdb)&&!helper[_0xc2d574(0xfe)](_0x598fdb)){_0x598fdb['split'](',')[_0xc2d574(0xf1)](_0x720235=>{const _0x587504=_0xc2d574;_0x4bd20d[_0x587504(0x149)]('('+_0x720235[_0x587504(0x106)]()+')');});const _0x56123d='^'+_0x4bd20d['join']('|')+'$';_0x2dbb47['push'](_0x1deedc[_0xc2d574(0xf5)],_0x56123d);}}},spawnOriginalProcess=_0x452316=>{const _0x540f2a=a35_0x1d17a7,_0x4f10f0={'slYJy':function(_0x157988,_0x487507,_0x4cd054,_0x442eca){return _0x157988(_0x487507,_0x4cd054,_0x442eca);},'hVEgS':_0x540f2a(0x133),'lbKZE':_0x540f2a(0x18f),'qwXlQ':function(_0xf1d10f,_0x33dd36){return _0xf1d10f===_0x33dd36;},'jGXyD':_0x540f2a(0x169),'wpHqD':_0x540f2a(0x108)};_0x4f10f0[_0x540f2a(0x144)](spawn,_0x4f10f0[_0x540f2a(0x196)],[_0x4f10f0[_0x540f2a(0x18a)],..._0x452316[_0x540f2a(0x18c)](0x1)],{'shell':_0x4f10f0[_0x540f2a(0x12e)](process[_0x540f2a(0xf9)],_0x4f10f0[_0x540f2a(0x112)]),'stdio':_0x4f10f0[_0x540f2a(0x187)],'cwd':process[_0x540f2a(0x131)]()});},isTestCommand=(_0x1c6c16,_0x3f2ebb)=>{const _0x26fa76=a35_0x1d17a7,_0x694641={};_0x694641[_0x26fa76(0x153)]=function(_0x5aff5c,_0x15109f){return _0x5aff5c>_0x15109f;},_0x694641[_0x26fa76(0x171)]=function(_0x306c05,_0xd0c65){return _0x306c05===_0xd0c65;},_0x694641[_0x26fa76(0x143)]='test';const _0x30246e=_0x694641;if(_0x30246e[_0x26fa76(0x153)](_0x3f2ebb[_0x26fa76(0x141)],0x1)&&_0x30246e[_0x26fa76(0x171)](_0x3f2ebb[0x1],_0x30246e[_0x26fa76(0x143)]))return!![];return![];};async function run(_0x52dad7,_0x248da4){const _0x224774=a35_0x1d17a7,_0x900f5c={'mfEtK':_0x224774(0x192),'gtqBz':function(_0x4f595d){return _0x4f595d();},'jBEzy':function(_0x29341c){return _0x29341c();},'GhMQA':function(_0x3ab338,_0x4fc395){return _0x3ab338+_0x4fc395;},'ylVZZ':_0x224774(0x183),'nBArW':function(_0x43b2db,_0x4a5351){return _0x43b2db(_0x4a5351);},'RRdxJ':_0x224774(0x17a),'ydhkZ':_0x224774(0x15b),'hfiIM':function(_0x1cf069,_0x707abf){return _0x1cf069+_0x707abf;},'RCaND':'Error\x20in\x20getting\x20funnel\x20data\x20results','KAVOG':_0x224774(0x122),'WrnPk':'automation','ypWYb':function(_0x12a110,_0x2909dd){return _0x12a110!=_0x2909dd;},'TBcNk':function(_0x1d86b2,_0x516b9c,_0x54dd11){return _0x1d86b2(_0x516b9c,_0x54dd11);},'zVNmk':function(_0xef44f3,_0xafb20f){return _0xef44f3(_0xafb20f);},'PhgHk':function(_0x180854,_0x4ec6a5){return _0x180854===_0x4ec6a5;},'nvjED':_0x224774(0x184),'HAIEB':function(_0x34dfe9,_0x3cc166){return _0x34dfe9(_0x3cc166);},'KUuhN':_0x224774(0xfd),'eeysq':function(_0x5894a1,_0x23b404){return _0x5894a1===_0x23b404;},'VbRsD':_0x224774(0x189),'yDglG':'playwright-browserstack-sdk.config.js','zHDfr':function(_0x2fec68,_0x29d351){return _0x2fec68-_0x29d351;},'nKPqv':'Updated\x20config\x20file\x20name\x20to\x20-\x20','XpfJS':function(_0xb47fac,_0x516bdb){return _0xb47fac>_0x516bdb;},'GDiOJ':function(_0x46a0b3,_0x533a42){return _0x46a0b3+_0x533a42;},'RLGkz':function(_0x47074a,_0x269d20,_0x58e0c1,_0x16b962){return _0x47074a(_0x269d20,_0x58e0c1,_0x16b962);},'cUGEq':'npx','HKahx':_0x224774(0x18f),'dCcTy':'test','jmTew':'--config','Cfyes':_0x224774(0x169),'DxToY':'inherit','NmSYs':_0x224774(0x195),'pydEJ':_0x224774(0x121),'MhDpD':_0x224774(0x166),'MFPFo':_0x224774(0x161),'zMMfn':function(_0x10d20e,_0x12b9c0){return _0x10d20e>=_0x12b9c0;},'MPZaG':_0x224774(0x145),'kZkiV':function(_0xe51cc9,_0x2f11cd,_0x39bd37){return _0xe51cc9(_0x2f11cd,_0x39bd37);},'gfSvm':function(_0x4bc719,_0x4ae479){return _0x4bc719(_0x4ae479);}};!helper[_0x224774(0x12d)](process['env'][_0x224774(0x167)])&&(process[_0x224774(0x126)][_0x224774(0x167)]=!![]);process[_0x224774(0x13f)]['includes'](_0x900f5c[_0x224774(0x17b)])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x900f5c['MhDpD'],_0x248da4=_0x248da4[_0x224774(0x15a)](_0xa7e637=>_0xa7e637!=='--disable-browserstack-automation'));const _0xbc98db=_0x248da4[_0x224774(0x14d)](_0x900f5c['MFPFo']);_0x900f5c[_0x224774(0x14c)](_0xbc98db,0x0)&&(process[_0x224774(0x126)][_0x224774(0x123)]=_0x900f5c[_0x224774(0xf6)],_0x248da4=_0x248da4[_0x224774(0x15a)](_0x2ece15=>_0x2ece15!==_0x224774(0x161)));try{const _0x23e134=path[_0x224774(0x105)](helper['homedir'](),_0x900f5c[_0x224774(0x111)],_0x900f5c['ydhkZ']);fs[_0x224774(0x16e)](_0x23e134)&&fs[_0x224774(0x14b)](_0x23e134);}catch(_0x154e30){logger[_0x224774(0x17d)](_0x900f5c[_0x224774(0xf4)](_0x900f5c[_0x224774(0x12f)],_0x154e30));}if(!_0x900f5c[_0x224774(0x188)](isTestCommand,_0x52dad7,_0x248da4)){_0x900f5c[_0x224774(0x163)](spawnOriginalProcess,_0x248da4);return;}const _0x5f079c=new BrowserStackSetup(_0x52dad7,FRAMEWORKS['PLAYWRIGHT']);await PerformanceTester['measureWrapper'](PerformanceEvents[_0x224774(0x12b)],async()=>{const _0x15e4c5=_0x224774,_0x3baf74={'TfDcf':function(_0x3c2a06,_0x2c6ed3){const _0x4633d1=a35_0xaac7;return _0x900f5c[_0x4633d1(0x120)](_0x3c2a06,_0x2c6ed3);},'HnsAg':_0x900f5c['RRdxJ'],'aLBAu':_0x900f5c[_0x15e4c5(0x191)],'GsdYS':function(_0x42aa9b,_0x2b5d65){const _0x4b8cff=_0x15e4c5;return _0x900f5c[_0x4b8cff(0x11e)](_0x42aa9b,_0x2b5d65);},'hjDcy':_0x900f5c[_0x15e4c5(0x17f)]};if(!_0x5f079c[_0x15e4c5(0x156)]){logger[_0x15e4c5(0x13a)](_0x900f5c['KAVOG']);return;}await _0x5f079c['initialize']();!helper[_0x15e4c5(0xfe)](_0x5f079c[_0x15e4c5(0x10a)])&&_0x5f079c['cliConfig'][_0x15e4c5(0x193)](_0x900f5c[_0x15e4c5(0x110)])&&(process[_0x15e4c5(0x126)]['BROWSERSTACK_AUTOMATION']=_0x5f079c[_0x15e4c5(0x10a)][_0x15e4c5(0x175)](_0x900f5c[_0x15e4c5(0x110)])||!![]);_0x900f5c[_0x15e4c5(0xf3)](_0x5f079c[_0x15e4c5(0x156)][_0x15e4c5(0x178)],null)&&!helper[_0x15e4c5(0x151)](process[_0x15e4c5(0x126)][_0x15e4c5(0x123)])&&(process[_0x15e4c5(0x126)][_0x15e4c5(0x123)]=process[_0x15e4c5(0x126)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x5f079c[_0x15e4c5(0x156)][_0x15e4c5(0x178)]);const _0x2588e4=!helper[_0x15e4c5(0x12d)](process[_0x15e4c5(0x126)][_0x15e4c5(0x123)]);let _0x17bfb3=![];_0x5f079c[_0x15e4c5(0x156)][_0x15e4c5(0x132)]&&(_0x17bfb3=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x5f079c[_0x15e4c5(0x156)][_0x15e4c5(0x132)]);_0x5f079c['config'][_0x15e4c5(0x165)]&&(process[_0x15e4c5(0x126)][_0x15e4c5(0x117)]=JSON[_0x15e4c5(0x164)](_0x5f079c[_0x15e4c5(0x156)][_0x15e4c5(0x165)]));const _0x47521d=_0x248da4['concat'](),_0x3abfc2=await _0x900f5c[_0x15e4c5(0x127)](getUserPlaywrightConfig,_0x52dad7,_0x248da4);if(helper[_0x15e4c5(0xfe)](_0x3abfc2)){_0x900f5c['zVNmk'](spawnOriginalProcess,_0x47521d);return;}const _0x214fbd=_0x3abfc2[_0x15e4c5(0x119)]?path[_0x15e4c5(0x107)](_0x3abfc2[_0x15e4c5(0x119)]):process[_0x15e4c5(0x131)]();process['env'][_0x15e4c5(0x11f)]=_0x214fbd,await PerformanceTester[_0x15e4c5(0x177)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x23a1be=_0x15e4c5;await TestHubHandler[_0x23a1be(0x115)](FRAMEWORKS[_0x23a1be(0x185)],_0x5f079c),_0x2588e4&&_0x3baf74[_0x23a1be(0x101)](handleO11yRerun,_0x248da4);})();let _0xd6cf5c=_0x900f5c[_0x15e4c5(0x172)](process[_0x15e4c5(0x126)][_0x15e4c5(0x15c)],_0x900f5c[_0x15e4c5(0x13d)]);_0xd6cf5c=_0xd6cf5c||_0x900f5c[_0x15e4c5(0x173)](checkAccessibilityPlatformConfig,_0x5f079c[_0x15e4c5(0x156)]),process[_0x15e4c5(0x126)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0xd6cf5c;_0xd6cf5c&&_0x900f5c[_0x15e4c5(0x109)](setAccessibilityCapabilities,_0x5f079c[_0x15e4c5(0x156)]);const _0x4c5c38=path[_0x15e4c5(0x105)](_0x3abfc2['path']?path[_0x15e4c5(0x107)](_0x3abfc2[_0x15e4c5(0x119)]):process[_0x15e4c5(0x131)](),_0x900f5c[_0x15e4c5(0x160)]);fs[_0x15e4c5(0x180)](_0x4c5c38,helper[_0x15e4c5(0x114)](_0x5f079c[_0x15e4c5(0x156)])),process[_0x15e4c5(0x126)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x4c5c38,helper[_0x15e4c5(0x16f)]();let _0x1f3e39='';_0x900f5c[_0x15e4c5(0x16d)](helper[_0x15e4c5(0xf0)](),constants['PACKAGE_TYPE'][_0x15e4c5(0x124)])?_0x1f3e39=_0x900f5c[_0x15e4c5(0x18e)]:_0x1f3e39=_0x900f5c[_0x15e4c5(0x181)];let _0xdcb045='';if(helper[_0x15e4c5(0x15e)](_0x3abfc2[_0x15e4c5(0x119)])){_0xdcb045=_0x15e4c5(0x135);const _0x478d65=_0x1f3e39[_0x15e4c5(0x16a)]('.');_0x478d65[_0x900f5c[_0x15e4c5(0x154)](_0x478d65['length'],0x1)]='ts',_0x1f3e39=_0x478d65[_0x15e4c5(0x105)]('.'),logger[_0x15e4c5(0x17d)](_0x900f5c['hfiIM'](_0x900f5c['nKPqv'],_0x1f3e39));}else _0xdcb045=_0x15e4c5(0x148);const _0x193deb=path[_0x15e4c5(0x105)](_0x3abfc2[_0x15e4c5(0x119)]?path[_0x15e4c5(0x107)](_0x3abfc2[_0x15e4c5(0x119)]):process[_0x15e4c5(0x131)](),_0x1f3e39);let _0x2ca5c7=_0x3abfc2[_0x15e4c5(0x119)]?_0x3abfc2[_0x15e4c5(0x119)]:'';_0x2ca5c7=_0x900f5c[_0x15e4c5(0xfa)](_0x2ca5c7[_0x15e4c5(0x141)],0x0)?path[_0x15e4c5(0x104)](_0x2ca5c7):'',process['env'][_0x15e4c5(0x140)]=_0x2ca5c7;const _0x4cbfee=helper[_0x15e4c5(0x14f)](_0x5f079c[_0x15e4c5(0x156)]);_0x4cbfee&&(_0xdcb045=_0x900f5c[_0x15e4c5(0x10b)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x4cbfee+_0x15e4c5(0x10c),_0xdcb045));helper[_0x15e4c5(0x11a)]({},_0x248da4),fs[_0x15e4c5(0x180)](_0x193deb,_0xdcb045),PerformanceTester[_0x15e4c5(0x13b)](PerformanceEvents['SDK_SETUP']);const _0x1ed280=_0x900f5c[_0x15e4c5(0x12c)](spawn,_0x900f5c[_0x15e4c5(0x15f)],[_0x900f5c[_0x15e4c5(0xfc)],_0x900f5c[_0x15e4c5(0xf7)],_0x900f5c[_0x15e4c5(0x152)],_0x193deb,..._0x248da4[_0x15e4c5(0x18c)](0x2)],{'shell':_0x900f5c['eeysq'](process[_0x15e4c5(0xf9)],_0x900f5c[_0x15e4c5(0x146)]),'stdio':_0x900f5c['DxToY'],'cwd':process[_0x15e4c5(0x131)](),'env':Object[_0x15e4c5(0x18d)]({},process[_0x15e4c5(0x126)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x52dad7),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x5f079c[_0x15e4c5(0x156)][_0x15e4c5(0x136)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x5f079c[_0x15e4c5(0x156)][_0x15e4c5(0x136)][_0x15e4c5(0x10e)],'BROWSERSTACK_LOG_LEVEL':_0x5f079c[_0x15e4c5(0x156)][_0x15e4c5(0x14e)]})}),_0x2463a2=()=>{const _0x1be7d0=_0x15e4c5;try{const _0x5c193d=path[_0x1be7d0(0x105)](helper[_0x1be7d0(0x10f)](),_0x3baf74[_0x1be7d0(0x128)],_0x3baf74['aLBAu']);if(fs[_0x1be7d0(0x16e)](_0x5c193d)){let _0x23c554=fs['readFileSync'](_0x5c193d);_0x23c554=JSON[_0x1be7d0(0x113)](_0x23c554),_0x5f079c[_0x1be7d0(0x142)]=_0x23c554,fs['unlinkSync'](_0x5c193d);}}catch(_0xb5197f){logger['debug'](_0x3baf74[_0x1be7d0(0x18b)](_0x3baf74[_0x1be7d0(0x174)],_0xb5197f));}};_0x1ed280['on'](_0x900f5c['NmSYs'],async _0x5b5b31=>{const _0x3a3165=_0x15e4c5;try{const _0x437f0f=_0x900f5c[_0x3a3165(0x16c)][_0x3a3165(0x16a)]('|');let _0x221c9a=0x0;while(!![]){switch(_0x437f0f[_0x221c9a++]){case'0':fs[_0x3a3165(0x14b)](_0x4c5c38);continue;case'1':await utilities['finalExecution'](_0x5f079c);continue;case'2':_0x900f5c['gtqBz'](printBuildLink);continue;case'3':PerformanceTester[_0x3a3165(0x129)](PerformanceEvents['SDK_CLEANUP']);continue;case'4':_0x900f5c['jBEzy'](_0x2463a2);continue;case'5':logger[_0x3a3165(0xff)](_0x3a3165(0x198)+_0x193deb);continue;case'6':await TestHubHandler[_0x3a3165(0xf8)]();continue;case'7':process['exitCode']=_0x5b5b31;continue;case'8':fs[_0x3a3165(0x14b)](_0x193deb);continue;case'9':logger[_0x3a3165(0x17d)](_0x3a3165(0x130)+_0x5b5b31);continue;case'10':logger[_0x3a3165(0x17d)](_0x3a3165(0x198)+_0x4c5c38);continue;}break;}}catch(_0x4f68e0){logger['debug'](_0x900f5c[_0x3a3165(0xf4)](_0x900f5c[_0x3a3165(0x147)],_0x4f68e0));}});})();}module[a35_0x1d17a7(0x100)]=run;function a35_0x3325(){const _0x4b149c=['MhDpD','dCcTy','stop','platform','XpfJS','../utils/constants','HKahx','browserstackSetupConfig.json','isUndefined','info','exports','TfDcf','./reporter/pwUtils','86980KsLSQq','resolve','join','trim','dirname','inherit','HAIEB','cliConfig','GDiOJ','\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();','333OCetig','skipSessionName','homedir','WrnPk','RRdxJ','jGXyD','parse','serializeToYamlString','launchBuild','../../helpers/utilities','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','2IDCDBx','path','filterBrowserstackArgs','1192DAFbvV','child_process','14vDDVPd','hfiIM','BROWSERSTACK_PW_CONFIG_DIR','nBArW','--disable-browserstack-automation','BrowserStack\x20config\x20file\x20not\x20found.','BROWSERSTACK_TEST_OBSERVABILITY','MODULE','32056212JXgFhI','env','TBcNk','HnsAg','start','util','SDK_PRE_INITIALIZE','RLGkz','isFalse','qwXlQ','MPZaG','Playwright\x20process\x20exited\x20with\x20code\x20','cwd','accessibility','npx','--config','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','testContextOptions','findIndex','./accessibility-helper','WzhKS','error','end','1999385lsoTuu','nvjED','../../helpers/performance/performance-tester','argv','USER_CONFIG_DETAILS_PATH','length','errorMessage','yWVBP','slYJy','Error\x20in\x20deleting\x20playwright\x20results','Cfyes','ylVZZ','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','push','winstonLogger','unlinkSync','zMMfn','indexOf','logLevel','getProxyUrl','validateRerunTestList','isTrue','jmTew','ZrIEg','zHDfr','../../helpers/test-observability/constants','config','../../helpers/BrowserStackSetup','8841yKzmDk','../../helpers/test-observability/utils','filter','pw_result.json','BROWSERSTACK_TEST_ACCESSIBILITY_YML','--config=','isTypescriptProject','cUGEq','KUuhN','--disable-test-observability','10200058LSGMBi','gfSvm','stringify','accessibilityOptions','false','BROWSERSTACK_AUTOMATION','startsWith','win32','split','EVENTS','mfEtK','eeysq','existsSync','clearTempPWConfig','../../helpers/helper','meRnS','PhgHk','zVNmk','hjDcy','get','resolvedConfigFile','measureWrapper','testObservability','requirePWModule','.browserstack','pydEJ','3371104ayiCJI','debug','1069182bLfkPt','RCaND','writeFileSync','yDglG','TjVyO','Error\x20in\x20closing\x20playwright','true','PLAYWRIGHT','wqDeO','wpHqD','kZkiV','playwright-browserstack-sdk.config.cjs','lbKZE','GsdYS','slice','assign','VbRsD','playwright','--grep','ydhkZ','3|4|6|2|1|7|9|5|8|10|0','has','6vTZGFb','close','hVEgS','rndey','Deleting\x20','BROWSERSTACK_RERUN','getPackageType','map','BROWSERSTACK_RERUN_TESTS','ypWYb','GhMQA','LVaHk'];a35_0x3325=function(){return _0x4b149c;};return a35_0x3325();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x45a8a0=a36_0x2c3a;(function(_0x146e57,_0x3c806f){const _0xdeecbb=a36_0x2c3a,_0x4ccc0e=_0x146e57();while(!![]){try{const _0x51f56c=-parseInt(_0xdeecbb(0xb7))/0x1+parseInt(_0xdeecbb(0xcf))/0x2+-parseInt(_0xdeecbb(0xd9))/0x3*(parseInt(_0xdeecbb(0xc6))/0x4)+-parseInt(_0xdeecbb(0xcd))/0x5+-parseInt(_0xdeecbb(0xbd))/0x6*(parseInt(_0xdeecbb(0xb0))/0x7)+-parseInt(_0xdeecbb(0xb6))/0x8*(parseInt(_0xdeecbb(0xcc))/0x9)+parseInt(_0xdeecbb(0xcb))/0xa;if(_0x51f56c===_0x3c806f)break;else _0x4ccc0e['push'](_0x4ccc0e['shift']());}catch(_0x4bf4b8){_0x4ccc0e['push'](_0x4ccc0e['shift']());}}}(a36_0x51df,0xf2a10));const util=require(a36_0x45a8a0(0xb5)),child_process=require(a36_0x45a8a0(0xbf)),{FRAMEWORKS}=require(a36_0x45a8a0(0xb4)),{getFrameworkVersion,debug}=require(a36_0x45a8a0(0xb9)),helper=require(a36_0x45a8a0(0xbc)),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a36_0x45a8a0(0xb2)),logger=require('../../helpers/logger')[a36_0x45a8a0(0xc9)];module[a36_0x45a8a0(0xdb)]=async function(_0x1d2298){const _0x38879a=a36_0x45a8a0,_0x1a3f46={'LSpbu':function(_0x315036,_0x54d129){return _0x315036(_0x54d129);},'xbaBz':function(_0x1a8641){return _0x1a8641();},'sefCy':'./mock-process.js','fPPWz':function(_0x20267c){return _0x20267c();},'tPxpS':function(_0x31ae81,_0xe99fa0){return _0x31ae81(_0xe99fa0);},'JkSPY':_0x38879a(0xb1),'Nwyyo':function(_0x2b76c8,_0x1c136a){return _0x2b76c8(_0x1c136a);},'XhJIC':function(_0x10d9c4,_0x2ef4b0){return _0x10d9c4>=_0x2ef4b0;},'lxVfN':_0x38879a(0xd1),'TiVRe':function(_0xabaa26,_0x14edb8,_0x5c495b){return _0xabaa26(_0x14edb8,_0x5c495b);},'zJlFI':function(_0x39e961,_0xf774c4){return _0x39e961!==_0xf774c4;},'Tiodj':'function','jXEPh':_0x38879a(0xc3),'tWNnK':function(_0x48d3a5,_0x277064){return _0x48d3a5(_0x277064);}},_0x577c3a=child_process[_0x38879a(0xd7)];if(helper['isHandlePWErrorSet']())try{_0x1a3f46[_0x38879a(0xd2)](mockIsWorkerRedundant);}catch(_0x5c7561){logger[_0x38879a(0xd3)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util['format'](_0x5c7561));}child_process[_0x38879a(0xd7)]=function(){const _0x5abcc3=_0x38879a;return _0x1a3f46[_0x5abcc3(0xde)](debug,_0x5abcc3(0xd8)+arguments[0x0]),arguments[0x0][_0x5abcc3(0xc8)](_0x1a3f46['xbaBz'](getForkProcessPath))?arguments[0x0]=require[_0x5abcc3(0xb8)](_0x1a3f46['sefCy']):logger[_0x5abcc3(0xb3)](_0x5abcc3(0xc4)+_0x1a3f46[_0x5abcc3(0xd4)](getForkProcessPath)+_0x5abcc3(0xc1)),_0x577c3a[_0x5abcc3(0xba)](null,arguments);};if(process[_0x38879a(0xc5)][_0x38879a(0xc7)]){_0x1a3f46[_0x38879a(0xbe)](debug,_0x1a3f46[_0x38879a(0xda)]);try{const {loadGlobalHook:_0x2ac409}=helper[_0x38879a(0xd5)][_0x38879a(0xba)](null,_0x1a3f46['xbaBz'](getLoadUtilsPath)),_0x3279c2=_0x1a3f46[_0x38879a(0xce)](getFrameworkVersion,FRAMEWORKS[_0x38879a(0xbb)]);let _0x1c6ba7=_0x1d2298;if(_0x1a3f46[_0x38879a(0xdc)](helper['compareVersions'](_0x3279c2,_0x1a3f46[_0x38879a(0xd6)]),0x0)){const _0x3ec4b6={};_0x3ec4b6['config']=_0x1d2298,_0x1c6ba7=_0x3ec4b6;}const _0x3a05df=await _0x1a3f46[_0x38879a(0xd0)](_0x2ac409,_0x1c6ba7,process[_0x38879a(0xc5)][_0x38879a(0xc7)]);if(_0x1a3f46['zJlFI'](typeof _0x3a05df,_0x1a3f46[_0x38879a(0xc2)]))throw new Error(_0x1a3f46[_0x38879a(0xc0)]);return _0x3a05df[_0x38879a(0xba)](null,arguments);}catch(_0x2d4e36){_0x1a3f46[_0x38879a(0xca)](debug,_0x38879a(0xdd)+_0x2d4e36['toString']());}}};function a36_0x2c3a(_0xa8242,_0x2a686d){const _0x51df95=a36_0x51df();return a36_0x2c3a=function(_0x2c3a88,_0x3e750c){_0x2c3a88=_0x2c3a88-0xb0;let _0x288928=_0x51df95[_0x2c3a88];return _0x288928;},a36_0x2c3a(_0xa8242,_0x2a686d);}function a36_0x51df(){const _0x168003=['debug','fPPWz','requirePWModule','lxVfN','fork','Call\x20to\x20child\x20fork\x20with\x20args\x20','6QAylDG','JkSPY','exports','XhJIC','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','LSpbu','411565RFZXhA','Running\x20existing\x20global\x20setup','./patches','error','../../helpers/test-observability/constants','util','1480bFQrou','1225896mYwkCP','resolve','../../helpers/test-observability/utils','apply','PLAYWRIGHT','../../helpers/helper','42MHVZQM','tPxpS','child_process','jXEPh','\x20is\x20not\x20found','Tiodj','Not\x20able\x20to\x20import\x20globalSetup','Path\x20','env','858392yKnCyU','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','includes','winstonLogger','tWNnK','35205520zLQukz','68895zSCIuG','4792815CEXjhi','Nwyyo','3829302oncSBP','TiVRe','1.33.0','xbaBz'];a36_0x51df=function(){return _0x168003;};return a36_0x51df();}
|