browserstack-node-sdk 1.32.15 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/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.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/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -0
- package/src/helpers/testhub/testhubHandler.js +1 -0
- package/src/helpers/testhub/utils.js +1 -0
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a27_0x33e4ea=a27_0x50b3;function a27_0x50b3(_0x40ecf6,_0x411f7e){const _0x19cbb5=a27_0x19cb();return a27_0x50b3=function(_0x50b3b7,_0x4f67f2){_0x50b3b7=_0x50b3b7-0x11d;let _0x567a7c=_0x19cbb5[_0x50b3b7];return _0x567a7c;},a27_0x50b3(_0x40ecf6,_0x411f7e);}(function(_0x3a6f3d,_0x10e0c8){const _0x3d3f28=a27_0x50b3,_0x1d19eb=_0x3a6f3d();while(!![]){try{const _0x213eda=parseInt(_0x3d3f28(0x129))/0x1+-parseInt(_0x3d3f28(0x177))/0x2*(parseInt(_0x3d3f28(0x15c))/0x3)+-parseInt(_0x3d3f28(0x11e))/0x4+-parseInt(_0x3d3f28(0x155))/0x5+parseInt(_0x3d3f28(0x16a))/0x6*(-parseInt(_0x3d3f28(0x164))/0x7)+parseInt(_0x3d3f28(0x153))/0x8*(-parseInt(_0x3d3f28(0x17f))/0x9)+parseInt(_0x3d3f28(0x154))/0xa*(parseInt(_0x3d3f28(0x11d))/0xb);if(_0x213eda===_0x10e0c8)break;else _0x1d19eb['push'](_0x1d19eb['shift']());}catch(_0x44950e){_0x1d19eb['push'](_0x1d19eb['shift']());}}}(a27_0x19cb,0xdf651));const logger=require(a27_0x33e4ea(0x148))[a27_0x33e4ea(0x156)],helper=require(a27_0x33e4ea(0x18a)),constants=require(a27_0x33e4ea(0x12f)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a27_0x33e4ea(0x176)),{setAccessibilityCapabilities,setExtension}=require(a27_0x33e4ea(0x17d)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a27_0x33e4ea(0x188)),globals=require('../../../helpers/globals'),modify=(_0x3778ab,_0x181818=null,_0x4de093=![])=>{const _0x3d4062=a27_0x33e4ea,_0x40ebce={'qYumw':function(_0x5bb4a7,_0x1dee0a){return _0x5bb4a7!==_0x1dee0a;},'eBoBF':_0x3d4062(0x15b),'JOnWe':function(_0x281894,_0x2c3e3c){return _0x281894!==_0x2c3e3c;},'QJlxY':function(_0x27ae27,_0x29b3fb){return _0x27ae27+_0x29b3fb;},'BHJDp':_0x3d4062(0x152),'JzpWo':'/wd/hub','FocVh':_0x3d4062(0x141),'XKTpk':_0x3d4062(0x132),'ijfgA':_0x3d4062(0x17a),'GwZOB':_0x3d4062(0x187),'vmbsJ':_0x3d4062(0x150),'pbNTz':'firefoxOptions','LEkDU':_0x3d4062(0x158),'PXQeF':_0x3d4062(0x151),'XHFPx':_0x3d4062(0x169),'vLyEF':function(_0x4dadc1,_0x500e35){return _0x4dadc1===_0x500e35;},'dgkhu':_0x3d4062(0x181),'ggADD':'Setting\x20Browserstack\x20capabilities','CcIGE':function(_0x53d3fd,_0x2f0289,_0x5b5078){return _0x53d3fd(_0x2f0289,_0x5b5078);},'Oqbkd':function(_0x579aa5,_0x3bf2f1){return _0x579aa5(_0x3bf2f1);},'VLoPn':_0x3d4062(0x16d),'qboHi':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','KUbwH':function(_0x2ebad5,_0x28a6fa,_0x17edd4){return _0x2ebad5(_0x28a6fa,_0x17edd4);},'FozlF':function(_0x15258a,_0x482383,_0x55f0ec){return _0x15258a(_0x482383,_0x55f0ec);},'rdOqX':_0x3d4062(0x13c),'CzkHP':function(_0x3abe07){return _0x3abe07();},'JWIMh':_0x3d4062(0x13a),'Ccolo':_0x3d4062(0x14f),'lBhPf':function(_0x10a349,_0x38739e){return _0x10a349(_0x38739e);},'GuYmg':function(_0x3277f0,_0x474704){return _0x3277f0(_0x474704);},'pypoE':function(_0x4105db,_0x141317){return _0x4105db!==_0x141317;},'JgHcq':function(_0x41a673,_0x3832ac){return _0x41a673!==_0x3832ac;},'oSWfJ':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','EQOsu':_0x3d4062(0x18c)},_0x20e6d1=helper[_0x3d4062(0x14b)]();let _0x46c8cc;try{_0x46c8cc=helper[_0x3d4062(0x121)](),_0x46c8cc['originalBuilder']&&(_0x46c8cc[_0x3d4062(0x128)]=_0x46c8cc[_0x3d4062(0x168)]);}catch(_0x53da6d){return;}if(helper[_0x3d4062(0x186)]()){const _0x3aabed={};_0x3aabed[_0x3d4062(0x175)]=_0x3778ab[_0x3d4062(0x127)],helper[_0x3d4062(0x163)](_0x3aabed,new Map(),new Map()),logger[_0x3d4062(0x144)](_0x40ebce[_0x3d4062(0x174)]),logger[_0x3d4062(0x136)](_0x40ebce['EQOsu']);}class _0x4ebbc0 extends _0x20e6d1[_0x3d4062(0x12a)]{['send'](_0x7e66a2){const _0x1aa317=_0x3d4062;if(_0x40ebce['qYumw'](_0x7e66a2[_0x1aa317(0x135)],_0x40ebce[_0x1aa317(0x14c)])&&_0x40ebce[_0x1aa317(0x120)](global['newHubUrl'],''))try{global['newHubUrl']=_0x40ebce[_0x1aa317(0x126)](_0x40ebce[_0x1aa317(0x126)](_0x40ebce['BHJDp'],global[_0x1aa317(0x137)]),_0x40ebce[_0x1aa317(0x173)]),this['options_']=hubAllocator[_0x1aa317(0x138)](global[_0x1aa317(0x137)]),logger[_0x1aa317(0x136)](_0x1aa317(0x16b)+global[_0x1aa317(0x137)]),global[_0x1aa317(0x137)]='';}catch(_0x249b89){logger['error'](_0x249b89);}return super['send'](_0x7e66a2);}}class _0x34e529 extends _0x46c8cc[_0x3d4062(0x128)]{[_0x3d4062(0x125)](){const _0x429825=_0x3d4062;return this[_0x429825(0x17b)]=helper[_0x429825(0x18d)](_0x3778ab),logger[_0x429825(0x136)]('Hub\x20url\x20set\x20to\x20'+this[_0x429825(0x17b)]),this;}[_0x3d4062(0x143)](_0xcf18ec){const _0x385f8d=_0x3d4062;let _0x571738={};for(const _0x3952bc in _0xcf18ec){switch(_0x3952bc){case _0x40ebce['FocVh']:case _0x40ebce['XKTpk']:this[_0x385f8d(0x16c)]&&(_0x571738=this['chromeOptions_'][_0x385f8d(0x12b)](this[_0x385f8d(0x16c)][_0x385f8d(0x183)])||{},this[_0x385f8d(0x16c)][_0x385f8d(0x149)](this[_0x385f8d(0x16c)]['CAPABILITY_KEY'],helper[_0x385f8d(0x165)](_0x571738,_0xcf18ec[_0x3952bc])));break;case _0x40ebce[_0x385f8d(0x14e)]:case _0x40ebce[_0x385f8d(0x184)]:this[_0x385f8d(0x14a)]&&(_0x571738=this['edgeOptions_'][_0x385f8d(0x12b)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x385f8d(0x14a)][_0x385f8d(0x149)](this['edgeOptions_'][_0x385f8d(0x183)],helper[_0x385f8d(0x165)](_0x571738,_0xcf18ec[_0x3952bc])));break;case _0x40ebce[_0x385f8d(0x182)]:case _0x40ebce[_0x385f8d(0x159)]:this[_0x385f8d(0x14d)]&&(_0x571738=this[_0x385f8d(0x14d)][_0x385f8d(0x12b)](this[_0x385f8d(0x14d)][_0x385f8d(0x183)])||{},this[_0x385f8d(0x14d)][_0x385f8d(0x149)](this[_0x385f8d(0x14d)][_0x385f8d(0x183)],helper[_0x385f8d(0x165)](_0x571738,_0xcf18ec[_0x3952bc])));break;case _0x40ebce['LEkDU']:this[_0x385f8d(0x161)]&&(_0x571738=this[_0x385f8d(0x161)][_0x385f8d(0x12b)](this[_0x385f8d(0x161)][_0x385f8d(0x183)])||{},this[_0x385f8d(0x161)]['set'](this[_0x385f8d(0x161)][_0x385f8d(0x183)],helper[_0x385f8d(0x165)](_0x571738,_0xcf18ec[_0x3952bc])));break;case _0x40ebce['PXQeF']:case _0x40ebce[_0x385f8d(0x147)]:this[_0x385f8d(0x122)]&&(_0x571738=this['ieOptions_'][_0x385f8d(0x12b)](this['ieOptions_'][_0x385f8d(0x183)])||{},this[_0x385f8d(0x122)][_0x385f8d(0x149)](this[_0x385f8d(0x122)][_0x385f8d(0x183)],helper[_0x385f8d(0x165)](_0x571738,_0xcf18ec[_0x3952bc])));break;}}}[_0x3d4062(0x145)](){const _0x343984=_0x3d4062;return logger[_0x343984(0x136)](_0x40ebce['ggADD']),this[_0x343984(0x143)](_0x3778ab[_0x343984(0x179)]),Object[_0x343984(0x124)](_0x3778ab[_0x343984(0x179)])[_0x343984(0x15f)](_0x28b4fe=>{const _0x418bf8=_0x343984,_0x1818fd=this[_0x418bf8(0x142)][_0x418bf8(0x12b)](_0x28b4fe);_0x40ebce[_0x418bf8(0x185)](typeof _0x1818fd,_0x40ebce[_0x418bf8(0x12d)])?this['capabilities_'][_0x418bf8(0x149)](_0x28b4fe,helper['mergeDeep'](_0x1818fd,_0x3778ab['capability'][_0x28b4fe])):this['capabilities_'][_0x418bf8(0x149)](_0x28b4fe,_0x3778ab[_0x418bf8(0x179)][_0x28b4fe]);}),this;}[_0x3d4062(0x139)](){const _0x2e0d3f=_0x3d4062,_0x49fcf0={'ocKqa':_0x40ebce[_0x2e0d3f(0x15d)],'ljTSu':_0x40ebce['qboHi'],'dslOL':function(_0x678452,_0x1d0e53,_0x3e243a){return _0x40ebce['KUbwH'](_0x678452,_0x1d0e53,_0x3e243a);},'IEbkp':function(_0x5e112d,_0x33b574,_0x3e62f5){const _0x2d3442=_0x2e0d3f;return _0x40ebce[_0x2d3442(0x12e)](_0x5e112d,_0x33b574,_0x3e62f5);}};if(helper['isBrowserstackInfra']()){const _0x4c5b3f=_0x40ebce['rdOqX'][_0x2e0d3f(0x140)]('|');let _0x43c27d=0x0;while(!![]){switch(_0x4c5b3f[_0x43c27d++]){case'0':_0x40ebce[_0x2e0d3f(0x18e)](isAccessibilityAutomationSession)&&_0x40ebce[_0x2e0d3f(0x157)](setAccessibilityCapabilities,_0x3778ab);continue;case'1':this[_0x2e0d3f(0x145)]();continue;case'2':this[_0x2e0d3f(0x125)]();continue;case'3':if(helper['isPacProxy'](_0x3778ab['proxySettings'][_0x2e0d3f(0x189)]))this[_0x2e0d3f(0x12c)]=helper['getHttpAgent'](_0x3778ab[_0x2e0d3f(0x134)][_0x2e0d3f(0x189)]);else _0x3778ab[_0x2e0d3f(0x134)][_0x2e0d3f(0x189)]&&(this['proxy_']=_0x3778ab[_0x2e0d3f(0x134)]['proxyUrl'],logger[_0x2e0d3f(0x136)]('Proxy\x20set\x20to\x20'+this['proxy_']));continue;case'4':globals[_0x2e0d3f(0x18f)](_0x40ebce[_0x2e0d3f(0x11f)])&&(!_0x40ebce['FozlF'](setExtension,this,_0x3778ab)&&globals[_0x2e0d3f(0x18b)](_0x40ebce[_0x2e0d3f(0x11f)],![]));continue;case'5':logger[_0x2e0d3f(0x136)](_0x40ebce['Ccolo']);continue;}break;}}const _0x3af62b=super[_0x2e0d3f(0x139)]();return _0x3af62b[_0x2e0d3f(0x17c)][_0x2e0d3f(0x15e)](_0x253dff=>{const _0x19c6b7=_0x2e0d3f;try{const _0x240729=_0x253dff[_0x19c6b7(0x146)]['get'](_0x49fcf0[_0x19c6b7(0x171)]);_0x240729?(logger[_0x19c6b7(0x136)](_0x19c6b7(0x131)+_0x240729),hubAllocator[_0x19c6b7(0x16f)](_0x240729),helper[_0x19c6b7(0x15a)](_0x240729)):logger[_0x19c6b7(0x136)](_0x49fcf0['ljTSu']);}catch(_0x4fec2e){logger[_0x19c6b7(0x136)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x4fec2e);}}),_0x3af62b['quitCount_']=0x0,_0x3af62b[_0x2e0d3f(0x15e)]&&_0x3af62b[_0x2e0d3f(0x15e)](_0x4e5b5b=>{const _0x1e9455=_0x2e0d3f,_0x3b9c18={'HNYjm':function(_0x1b2adc,_0x4d63bd,_0xc25fa){const _0x3dcc0b=a27_0x50b3;return _0x40ebce[_0x3dcc0b(0x13b)](_0x1b2adc,_0x4d63bd,_0xc25fa);}};_0x40ebce[_0x1e9455(0x13b)](overrideQuit,_0x4e5b5b,_0x3af62b),_0x40ebce[_0x1e9455(0x157)](overrideTakeScreenshot,_0x4e5b5b),helper[_0x1e9455(0x13d)](_0x4e5b5b,_0x3778ab),helper['overrideExecute'](_0x4e5b5b,_0x3778ab),_0x4e5b5b['getAccessibilityResultsSummary']=async()=>{const _0x1898e7=_0x1e9455;return await _0x3b9c18[_0x1898e7(0x160)](getAccessibilityResultsSummary,_0x4e5b5b,global);},_0x4e5b5b[_0x1e9455(0x16e)]=async()=>{const _0x4f0870=_0x1e9455;return await _0x49fcf0[_0x4f0870(0x162)](getAccessibilityResults,_0x4e5b5b,global);};}),_0x3af62b['getAccessibilityResultsSummary']=async()=>{const _0x4b2a45=_0x2e0d3f;return await _0x40ebce[_0x4b2a45(0x13b)](getAccessibilityResultsSummary,_0x3af62b,global);},_0x3af62b['getAccessibilityResults']=async()=>{const _0x1c1f37=_0x2e0d3f;return await _0x49fcf0[_0x1c1f37(0x166)](getAccessibilityResults,_0x3af62b,global);},_0x40ebce['lBhPf'](overrideTakeScreenshot,_0x3af62b),_0x40ebce[_0x2e0d3f(0x170)](overrideQuit,_0x3af62b),helper[_0x2e0d3f(0x13d)](_0x3af62b,_0x3778ab),helper['overrideExecute'](_0x3af62b,_0x3778ab),helper[_0x2e0d3f(0x13f)](global['__driversArray'])&&(global[_0x2e0d3f(0x167)]=[]),helper[_0x2e0d3f(0x13f)](global['__drivers'])&&(global[_0x2e0d3f(0x17e)]=[]),global[_0x2e0d3f(0x167)][_0x2e0d3f(0x178)](_0x3af62b),global[_0x2e0d3f(0x180)]=_0x3af62b,_0x40ebce[_0x2e0d3f(0x133)](global['__drivers'],undefined)&&global[_0x2e0d3f(0x17e)][_0x2e0d3f(0x178)](_0x3af62b),_0x181818&&helper[_0x2e0d3f(0x13f)](_0x181818[_0x2e0d3f(0x13e)][_0x2e0d3f(0x167)])&&(_0x181818['global'][_0x2e0d3f(0x167)]=[]),_0x181818&&_0x40ebce[_0x2e0d3f(0x172)](_0x181818[_0x2e0d3f(0x13e)][_0x2e0d3f(0x17e)],undefined)&&(_0x181818[_0x2e0d3f(0x13e)][_0x2e0d3f(0x17e)][_0x2e0d3f(0x178)](_0x3af62b),_0x181818[_0x2e0d3f(0x13e)][_0x2e0d3f(0x167)][_0x2e0d3f(0x178)](_0x3af62b)),_0x3af62b;}}return _0x46c8cc[_0x3d4062(0x168)]=_0x46c8cc[_0x3d4062(0x128)],_0x46c8cc[_0x3d4062(0x128)]=_0x34e529,_0x20e6d1['HttpClient']=_0x4ebbc0,_0x46c8cc;};module[a27_0x33e4ea(0x130)][a27_0x33e4ea(0x123)]=modify;function a27_0x19cb(){const _0x4bd2f9=['edgeOptions','../../../helpers/accessibility-automation/helper','proxyUrl','../../../helpers/helper','setGlobal','Modifying\x20webdriver\x20builder','getHubUrl','CzkHP','getGlobal','37666717GDEhjU','6479812JOLxDq','JWIMh','JOnWe','requireSeleniumWebdriver','ieOptions_','browserstackAgentObservability','keys','setServer','QJlxY','browserStackLogLevel','Builder','200606LNGocl','HttpClient','get','agent_','dgkhu','FozlF','../../../bin/utils/constants','exports','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','chromeOptions','pypoE','proxySettings','path','debug','newHubUrl','getRequestOptions','build','isAccessibilityPlatform','CcIGE','0|2|1|3|4|5','overrideGet','global','isUndefined','split','goog:chromeOptions','capabilities_','__setBrowserOptions','info','setCapabilities','caps_','XHFPx','../../../helpers/logger','set','edgeOptions_','requireHttpClient','eBoBF','firefoxOptions_','ijfgA','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','moz:firefoxOptions','se:ieOptions','https://','11781920CLMKwK','20XttxEi','3176490HdurQO','winstonLogger','Oqbkd','safari.options','pbNTz','storeOptimalHubUrl','/session','4744662TphyKb','VLoPn','then','forEach','HNYjm','safariOptions_','dslOL','setLogLevel','98asTJle','mergeDeep','IEbkp','__driversArray','originalBuilder','ieOptions','353370NbFOYR','New\x20hub\x20url\x20set\x20to\x20','chromeOptions_','optimalHubUrl','getAccessibilityResults','updateHubUrl','GuYmg','ocKqa','JgHcq','JzpWo','oSWfJ','logLevel','../../../helpers/patchHelpers','2yihuZB','push','capability','ms:edgeOptions','url_','session_','../accessibility-automation/helper','__drivers','9MLEdyG','__driver','object','vmbsJ','CAPABILITY_KEY','GwZOB','vLyEF','isBrowserstackInfra'];a27_0x19cb=function(){return _0x4bd2f9;};return a27_0x19cb();}
|
|
1
|
+
const a27_0x30c9cb=a27_0x14ce;(function(_0x3ed3d5,_0xa88d86){const _0x9cd39c=a27_0x14ce,_0x249106=_0x3ed3d5();while(!![]){try{const _0x343832=parseInt(_0x9cd39c(0xa8))/0x1+-parseInt(_0x9cd39c(0xff))/0x2*(parseInt(_0x9cd39c(0xfa))/0x3)+parseInt(_0x9cd39c(0xc3))/0x4*(-parseInt(_0x9cd39c(0xdb))/0x5)+parseInt(_0x9cd39c(0xa5))/0x6+parseInt(_0x9cd39c(0xed))/0x7*(-parseInt(_0x9cd39c(0xcb))/0x8)+-parseInt(_0x9cd39c(0xe8))/0x9*(parseInt(_0x9cd39c(0xc8))/0xa)+parseInt(_0x9cd39c(0xd9))/0xb*(parseInt(_0x9cd39c(0x9a))/0xc);if(_0x343832===_0xa88d86)break;else _0x249106['push'](_0x249106['shift']());}catch(_0x10ceff){_0x249106['push'](_0x249106['shift']());}}}(a27_0x3238,0x3396e));const logger=require(a27_0x30c9cb(0xce))[a27_0x30c9cb(0xfb)],helper=require(a27_0x30c9cb(0xa9)),constants=require(a27_0x30c9cb(0xf4)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a27_0x30c9cb(0xc7)),globals=require(a27_0x30c9cb(0xf2)),modify=(_0x4b9b33,_0x4f1481=null,_0x4edb02=![])=>{const _0x300763=a27_0x30c9cb,_0x21765d={'IQOCl':function(_0x38c12d,_0x55f949){return _0x38c12d!==_0x55f949;},'xCJMG':_0x300763(0xe3),'wvuag':function(_0x19aa53,_0x1e1f8e){return _0x19aa53!==_0x1e1f8e;},'PTrSz':function(_0x417ed4,_0x4b4a55){return _0x417ed4+_0x4b4a55;},'LhfMu':'https://','BkaPM':_0x300763(0xe7),'kqTxe':_0x300763(0xc6),'IidBr':_0x300763(0xad),'OUUMP':'ms:edgeOptions','Akvlq':_0x300763(0xa2),'IEWqi':_0x300763(0xa1),'rERIx':'firefoxOptions','tCuKq':_0x300763(0xab),'odXnF':'se:ieOptions','PzRST':_0x300763(0xee),'nzPrE':function(_0x24a58c,_0x3ccc7c){return _0x24a58c===_0x3ccc7c;},'ZrIMn':'object','pyRzM':_0x300763(0xb7),'rSHEs':function(_0x587b3a,_0x540435,_0xfa04f5){return _0x587b3a(_0x540435,_0xfa04f5);},'OTOYk':function(_0x308168,_0x422957,_0x38f520){return _0x308168(_0x422957,_0x38f520);},'PGtml':function(_0x17fe2e,_0x20e82f,_0x853d58){return _0x17fe2e(_0x20e82f,_0x853d58);},'oZQfS':function(_0x2fb1ff,_0x1b212d){return _0x2fb1ff(_0x1b212d);},'xlzjn':function(_0x2d24b0,_0x3a75b0,_0x337827){return _0x2d24b0(_0x3a75b0,_0x337827);},'XTrcA':_0x300763(0x10b),'RMfGd':_0x300763(0x10d),'lJMQv':function(_0x19ec8f,_0x22e5cc,_0x45ef1f){return _0x19ec8f(_0x22e5cc,_0x45ef1f);},'PxXlU':_0x300763(0xe2),'OYDSk':function(_0x3c6c0f){return _0x3c6c0f();},'Bgwif':_0x300763(0xd2),'ORWMF':function(_0x5d215a,_0x836bbf,_0x16e505){return _0x5d215a(_0x836bbf,_0x16e505);},'fskWQ':_0x300763(0xbc),'xprbE':function(_0x4995d1,_0x4ef9d8){return _0x4995d1(_0x4ef9d8);},'KjliR':function(_0x53542b,_0x3cf114){return _0x53542b!==_0x3cf114;},'XGfjR':_0x300763(0xf1),'MhEfP':'Modifying\x20webdriver\x20builder'},_0x13626c=helper[_0x300763(0xda)]();let _0x173b46;try{_0x173b46=helper[_0x300763(0xea)](),_0x173b46[_0x300763(0xd3)]&&(_0x173b46['Builder']=_0x173b46[_0x300763(0xd3)]);}catch(_0x192610){return;}if(helper[_0x300763(0xb0)]()){const _0x341701={};_0x341701[_0x300763(0x8d)]=_0x4b9b33[_0x300763(0x92)],helper[_0x300763(0xdf)](_0x341701,new Map(),new Map()),logger[_0x300763(0xeb)](_0x21765d[_0x300763(0x8c)]),logger[_0x300763(0xb6)](_0x21765d[_0x300763(0xec)]);}class _0x1d5887 extends _0x13626c['HttpClient']{['send'](_0x2229d0){const _0x2e3c36=_0x300763;if(_0x21765d[_0x2e3c36(0xa0)](_0x2229d0[_0x2e3c36(0xf8)],_0x21765d[_0x2e3c36(0xfe)])&&_0x21765d[_0x2e3c36(0xc0)](global[_0x2e3c36(0xb2)],''))try{global[_0x2e3c36(0xb2)]=_0x21765d[_0x2e3c36(0x103)](_0x21765d[_0x2e3c36(0x103)](_0x21765d[_0x2e3c36(0xac)],global[_0x2e3c36(0xb2)]),_0x21765d[_0x2e3c36(0x104)]),this['options_']=hubAllocator[_0x2e3c36(0x10a)](global[_0x2e3c36(0xb2)]),logger[_0x2e3c36(0xb6)](_0x2e3c36(0xfc)+global[_0x2e3c36(0xb2)]),global['newHubUrl']='';}catch(_0x37c09a){logger[_0x2e3c36(0x102)](_0x37c09a);}return super[_0x2e3c36(0xa4)](_0x2229d0);}}class _0x58617a extends _0x173b46[_0x300763(0xf0)]{['setServer'](){const _0x3fd7f7=_0x300763;return this[_0x3fd7f7(0x107)]=helper[_0x3fd7f7(0x90)](_0x4b9b33),logger[_0x3fd7f7(0xb6)](_0x3fd7f7(0xdd)+this[_0x3fd7f7(0x107)]),this;}[_0x300763(0x105)](_0x33c3e9){const _0xcf1863=_0x300763;let _0x490cd3={};for(const _0xaeef14 in _0x33c3e9){switch(_0xaeef14){case _0x21765d['kqTxe']:case _0x21765d[_0xcf1863(0xa7)]:this[_0xcf1863(0x94)]&&(_0x490cd3=this[_0xcf1863(0x94)][_0xcf1863(0xd8)](this['chromeOptions_'][_0xcf1863(0x10e)])||{},this[_0xcf1863(0x94)][_0xcf1863(0xbd)](this['chromeOptions_'][_0xcf1863(0x10e)],helper['mergeDeep'](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0x9f)]:case _0x21765d['Akvlq']:this[_0xcf1863(0xb9)]&&(_0x490cd3=this['edgeOptions_']['get'](this[_0xcf1863(0xb9)]['CAPABILITY_KEY'])||{},this[_0xcf1863(0xb9)][_0xcf1863(0xbd)](this[_0xcf1863(0xb9)][_0xcf1863(0x10e)],helper[_0xcf1863(0x95)](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0x109)]:case _0x21765d[_0xcf1863(0xcc)]:this[_0xcf1863(0xf3)]&&(_0x490cd3=this[_0xcf1863(0xf3)][_0xcf1863(0xd8)](this['firefoxOptions_'][_0xcf1863(0x10e)])||{},this[_0xcf1863(0xf3)][_0xcf1863(0xbd)](this[_0xcf1863(0xf3)]['CAPABILITY_KEY'],helper[_0xcf1863(0x95)](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0xe6)]:this[_0xcf1863(0xaa)]&&(_0x490cd3=this[_0xcf1863(0xaa)][_0xcf1863(0xd8)](this[_0xcf1863(0xaa)]['CAPABILITY_KEY'])||{},this[_0xcf1863(0xaa)]['set'](this[_0xcf1863(0xaa)][_0xcf1863(0x10e)],helper[_0xcf1863(0x95)](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0xd6)]:case _0x21765d[_0xcf1863(0xf6)]:this[_0xcf1863(0xb5)]&&(_0x490cd3=this['ieOptions_'][_0xcf1863(0xd8)](this[_0xcf1863(0xb5)][_0xcf1863(0x10e)])||{},this['ieOptions_'][_0xcf1863(0xbd)](this['ieOptions_']['CAPABILITY_KEY'],helper['mergeDeep'](_0x490cd3,_0x33c3e9[_0xaeef14])));break;}}}[_0x300763(0xd5)](){const _0x1a4abb=_0x300763,_0x3b143e={'kSfOy':function(_0x311ed6,_0xc16a44){const _0x1176c1=a27_0x14ce;return _0x21765d[_0x1176c1(0xef)](_0x311ed6,_0xc16a44);},'STzpx':_0x21765d[_0x1a4abb(0xc5)]};return logger[_0x1a4abb(0xb6)](_0x21765d[_0x1a4abb(0x9c)]),this['__setBrowserOptions'](_0x4b9b33[_0x1a4abb(0xde)]),Object[_0x1a4abb(0xf5)](_0x4b9b33[_0x1a4abb(0xde)])[_0x1a4abb(0x106)](_0x578bb7=>{const _0x36b5a2=_0x1a4abb,_0x649f02=this[_0x36b5a2(0xca)]['get'](_0x578bb7);_0x3b143e[_0x36b5a2(0xe0)](typeof _0x649f02,_0x3b143e[_0x36b5a2(0xbe)])?this[_0x36b5a2(0xca)][_0x36b5a2(0xbd)](_0x578bb7,helper[_0x36b5a2(0x95)](_0x649f02,_0x4b9b33[_0x36b5a2(0xde)][_0x578bb7])):this[_0x36b5a2(0xca)][_0x36b5a2(0xbd)](_0x578bb7,_0x4b9b33[_0x36b5a2(0xde)][_0x578bb7]);}),this;}['build'](){const _0x103bee=_0x300763,_0x305168={'JaSSW':_0x21765d[_0x103bee(0xe9)],'viOhS':_0x21765d[_0x103bee(0x108)],'VfDHN':function(_0x1ce7a4,_0x4767cf,_0x40e36a){const _0x2c9b10=_0x103bee;return _0x21765d[_0x2c9b10(0xbb)](_0x1ce7a4,_0x4767cf,_0x40e36a);}};if(helper[_0x103bee(0xb0)]()){const _0x85bdde=_0x21765d['PxXlU'][_0x103bee(0x96)]('|');let _0x365c96=0x0;while(!![]){switch(_0x85bdde[_0x365c96++]){case'0':this[_0x103bee(0x98)]();continue;case'1':_0x21765d['OYDSk'](isAccessibilityAutomationSession)&&_0x21765d[_0x103bee(0x93)](setAccessibilityCapabilities,_0x4b9b33);continue;case'2':if(helper[_0x103bee(0x91)](_0x4b9b33['proxySettings'][_0x103bee(0xb3)]))this[_0x103bee(0x9e)]=helper['getHttpAgent'](_0x4b9b33[_0x103bee(0xae)]['proxyUrl']);else _0x4b9b33[_0x103bee(0xae)][_0x103bee(0xb3)]&&(this[_0x103bee(0x8f)]=_0x4b9b33[_0x103bee(0xae)][_0x103bee(0xb3)],logger['debug'](_0x103bee(0x101)+this[_0x103bee(0x8f)]));continue;case'3':globals[_0x103bee(0xd4)](_0x21765d[_0x103bee(0xd7)])&&(!_0x21765d[_0x103bee(0xb1)](setExtension,this,_0x4b9b33)&&globals[_0x103bee(0xdc)](_0x21765d[_0x103bee(0xd7)],![]));continue;case'4':logger['debug'](_0x21765d[_0x103bee(0xc9)]);continue;case'5':this[_0x103bee(0xd5)]();continue;}break;}}const _0x24da07=super[_0x103bee(0xe4)]();return _0x24da07[_0x103bee(0xd1)][_0x103bee(0xc1)](_0x2e7e6e=>{const _0x7d1359=_0x103bee;try{const _0x19f8d4=_0x2e7e6e[_0x7d1359(0xfd)][_0x7d1359(0xd8)](_0x305168[_0x7d1359(0x10c)]);_0x19f8d4?(logger[_0x7d1359(0xb6)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x19f8d4),hubAllocator[_0x7d1359(0xaf)](_0x19f8d4),helper[_0x7d1359(0xb8)](_0x19f8d4)):logger[_0x7d1359(0xb6)](_0x305168['viOhS']);}catch(_0x3c573c){logger[_0x7d1359(0xb6)](_0x7d1359(0xcd)+_0x3c573c);}}),_0x24da07['quitCount_']=0x0,_0x24da07[_0x103bee(0xc1)]&&_0x24da07[_0x103bee(0xc1)](_0x16db10=>{const _0x2ba34a=_0x103bee,_0x5da965={'EqQML':function(_0x2df6a8,_0x1d992c,_0x4aed61){const _0x36a5b0=a27_0x14ce;return _0x21765d[_0x36a5b0(0xba)](_0x2df6a8,_0x1d992c,_0x4aed61);},'EoAEu':function(_0x2d080f,_0x14107f,_0x5f4456){const _0x16307e=a27_0x14ce;return _0x21765d[_0x16307e(0x8e)](_0x2d080f,_0x14107f,_0x5f4456);}};_0x21765d[_0x2ba34a(0xe5)](overrideQuit,_0x16db10,_0x24da07),_0x21765d[_0x2ba34a(0x93)](overrideTakeScreenshot,_0x16db10),helper[_0x2ba34a(0xf7)](_0x16db10,_0x4b9b33),helper['overrideExecute'](_0x16db10,_0x4b9b33),_0x16db10[_0x2ba34a(0x97)]=async()=>{const _0x4763e4=_0x2ba34a;return await _0x5da965[_0x4763e4(0xc4)](getAccessibilityResultsSummary,_0x16db10,global);},_0x16db10[_0x2ba34a(0xa3)]=async()=>{return await _0x5da965['EoAEu'](getAccessibilityResults,_0x16db10,global);};}),_0x24da07[_0x103bee(0x97)]=async()=>{const _0x2a7c24=_0x103bee;return await _0x305168[_0x2a7c24(0xc2)](getAccessibilityResultsSummary,_0x24da07,global);},_0x24da07[_0x103bee(0xa3)]=async()=>{return await _0x21765d['xlzjn'](getAccessibilityResults,_0x24da07,global);},_0x21765d['oZQfS'](overrideTakeScreenshot,_0x24da07),_0x21765d[_0x103bee(0xa6)](overrideQuit,_0x24da07),helper['overrideGet'](_0x24da07,_0x4b9b33),helper[_0x103bee(0x9d)](_0x24da07,_0x4b9b33),helper[_0x103bee(0xb4)](global[_0x103bee(0xf9)])&&(global[_0x103bee(0xf9)]=[]),helper[_0x103bee(0xb4)](global['__drivers'])&&(global[_0x103bee(0xe1)]=[]),global['__driversArray'][_0x103bee(0x9b)](_0x24da07),global[_0x103bee(0x100)]=_0x24da07,_0x21765d[_0x103bee(0x99)](global[_0x103bee(0xe1)],undefined)&&global['__drivers'][_0x103bee(0x9b)](_0x24da07),_0x4f1481&&helper[_0x103bee(0xb4)](_0x4f1481['global'][_0x103bee(0xf9)])&&(_0x4f1481[_0x103bee(0xd0)][_0x103bee(0xf9)]=[]),_0x4f1481&&_0x21765d['IQOCl'](_0x4f1481['global'][_0x103bee(0xe1)],undefined)&&(_0x4f1481[_0x103bee(0xd0)]['__drivers']['push'](_0x24da07),_0x4f1481[_0x103bee(0xd0)][_0x103bee(0xf9)]['push'](_0x24da07)),_0x24da07;}}return _0x173b46[_0x300763(0xd3)]=_0x173b46[_0x300763(0xf0)],_0x173b46[_0x300763(0xf0)]=_0x58617a,_0x13626c[_0x300763(0xbf)]=_0x1d5887,_0x173b46;};function a27_0x14ce(_0x2037c9,_0x5812e1){const _0x323871=a27_0x3238();return a27_0x14ce=function(_0x14cecb,_0x5067e7){_0x14cecb=_0x14cecb-0x8c;let _0x4110ec=_0x323871[_0x14cecb];return _0x4110ec;},a27_0x14ce(_0x2037c9,_0x5812e1);}function a27_0x3238(){const _0x1c121b=['rERIx','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','../../../helpers/logger','browserstackAgentObservability','global','session_','isAccessibilityPlatform','originalBuilder','getGlobal','setCapabilities','odXnF','Bgwif','get','11MVAYwR','requireHttpClient','326320ZaMdSg','setGlobal','Hub\x20url\x20set\x20to\x20','capability','setLogLevel','kSfOy','__drivers','1|0|5|2|3|4','/session','build','PGtml','tCuKq','/wd/hub','36WEbBYd','XTrcA','requireSeleniumWebdriver','info','MhEfP','7UQGRAL','ieOptions','nzPrE','Builder','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','../../../helpers/globals','firefoxOptions_','../../../bin/utils/constants','keys','PzRST','overrideGet','path','__driversArray','78765RuNoKq','winstonLogger','New\x20hub\x20url\x20set\x20to\x20','caps_','xCJMG','6agroxR','__driver','Proxy\x20set\x20to\x20','error','PTrSz','BkaPM','__setBrowserOptions','forEach','url_','RMfGd','IEWqi','getRequestOptions','optimalHubUrl','JaSSW','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','CAPABILITY_KEY','XGfjR','logLevel','OTOYk','proxy_','getHubUrl','isPacProxy','browserStackLogLevel','oZQfS','chromeOptions_','mergeDeep','split','getAccessibilityResultsSummary','setServer','KjliR','3273216JHAAdi','push','pyRzM','overrideExecute','agent_','OUUMP','IQOCl','moz:firefoxOptions','edgeOptions','getAccessibilityResults','send','2075598LfqOFy','xprbE','IidBr','226004lAkCcI','../../../helpers/helper','safariOptions_','safari.options','LhfMu','chromeOptions','proxySettings','updateHubUrl','isBrowserstackInfra','ORWMF','newHubUrl','proxyUrl','isUndefined','ieOptions_','debug','Setting\x20Browserstack\x20capabilities','storeOptimalHubUrl','edgeOptions_','rSHEs','lJMQv','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','set','STzpx','HttpClient','wvuag','then','VfDHN','4kajjcD','EqQML','ZrIMn','goog:chromeOptions','../../../helpers/accessibility-automation/helper','349540WGYmrK','fskWQ','capabilities_','2796400bZzCeS'];a27_0x3238=function(){return _0x1c121b;};return a27_0x3238();}module['exports'][a27_0x30c9cb(0xcf)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a28_0x6227(_0x38cea4,_0x1d1355){const _0x3e88d7=a28_0x3e88();return a28_0x6227=function(_0x622783,_0x17caf1){_0x622783=_0x622783-0x1e6;let _0x601e96=_0x3e88d7[_0x622783];return _0x601e96;},a28_0x6227(_0x38cea4,_0x1d1355);}const a28_0x3b2fb5=a28_0x6227;(function(_0x16ecee,_0x2daaa5){const _0x279849=a28_0x6227,_0x123c7e=_0x16ecee();while(!![]){try{const _0x10e5d7=parseInt(_0x279849(0x1eb))/0x1*(parseInt(_0x279849(0x1e8))/0x2)+parseInt(_0x279849(0x1ed))/0x3+parseInt(_0x279849(0x1f4))/0x4*(-parseInt(_0x279849(0x1ec))/0x5)+-parseInt(_0x279849(0x1f3))/0x6*(parseInt(_0x279849(0x1ee))/0x7)+parseInt(_0x279849(0x1ef))/0x8+parseInt(_0x279849(0x1f0))/0x9+-parseInt(_0x279849(0x1ea))/0xa;if(_0x10e5d7===_0x2daaa5)break;else _0x123c7e['push'](_0x123c7e['shift']());}catch(_0x560765){_0x123c7e['push'](_0x123c7e['shift']());}}}(a28_0x3e88,0xc7853));function a28_0x3e88(){const _0x320618=['7nedPdA','67285ivmwbo','2211636kxjgCz','7JSommU','2078064cbDuZs','11955951yNxblK','timeout','../../../helpers/request-spy','3423438IucGWI','288bEOkjc','vEYqX','../../../helpers/test-observability/utils','156314sNzYPX','mochaHooks','5157960hDhlyB'];a28_0x3e88=function(){return _0x320618;};return a28_0x3e88();}const requestSpy=require(a28_0x3b2fb5(0x1f2)),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require(a28_0x3b2fb5(0x1e7));exports[a28_0x3b2fb5(0x1e9)]={'beforeAll'(){const _0x16fdba=a28_0x3b2fb5,_0x165729={'vEYqX':function(_0x4a9e3d){return _0x4a9e3d();}},_0x27d675='browserstack internal helper hook';_0x165729[_0x16fdba(0x1e6)](addRequestSpy);},'afterAll'(){const _0x579915=a28_0x3b2fb5,_0x1c7c36='browserstack internal helper hook';this[_0x579915(0x1f1)](0xea60),requestSpy['restore']();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x85e490=a29_0x1798;function a29_0x1798(_0x4acafd,_0x548915){const _0x5c3d19=a29_0x5c3d();return a29_0x1798=function(_0x1798f7,_0x44e84c){_0x1798f7=_0x1798f7-0xdc;let _0x4d1544=_0x5c3d19[_0x1798f7];return _0x4d1544;},a29_0x1798(_0x4acafd,_0x548915);}(function(_0x49fe1d,_0x3c5b3c){const _0x4c20d7=a29_0x1798,_0x2dfb1f=_0x49fe1d();while(!![]){try{const _0x419f18=parseInt(_0x4c20d7(0x10b))/0x1*(parseInt(_0x4c20d7(0x11a))/0x2)+-parseInt(_0x4c20d7(0x122))/0x3+parseInt(_0x4c20d7(0xdd))/0x4+parseInt(_0x4c20d7(0x131))/0x5*(parseInt(_0x4c20d7(0xea))/0x6)+parseInt(_0x4c20d7(0xe2))/0x7+parseInt(_0x4c20d7(0x111))/0x8*(-parseInt(_0x4c20d7(0x12e))/0x9)+-parseInt(_0x4c20d7(0x125))/0xa;if(_0x419f18===_0x3c5b3c)break;else _0x2dfb1f['push'](_0x2dfb1f['shift']());}catch(_0x57e786){_0x2dfb1f['push'](_0x2dfb1f['shift']());}}}(a29_0x5c3d,0xa9559));function a29_0x5c3d(){const _0x40b77e=['getCapabilities','QlpqF','filter','PmZTb','toJSON','keys','pyajN','uuid','fromEntries','generic','automate','substring','JAYUR','_beforeAll','caACM','type','string','pid','3HWoypw','getHooksForTest','app-automate','toISOString','unknown_grid','rVJPX','4375688oRXrjM','FQlcd','gPVeO','getHookSkippedTests','_afterAll','forEach','../../../helpers/test-observability/constants','slice','hook','656114obLsHq','../../utils/logReportingAPI','../../../../package.json','sXrOH','reduce','../../../helpers/testhub/utils','qaENe','AvGbK','1278360AkXNwG','TEST_PLATFORM','indexOf','6445770CUOHrq','CbWLu','_afterEach','Bygkz','state','YgJRF','js-','getSession','getTestEnv','18HfkmbK','IJbWW','EmkcC','85LRsBHB','mapTestHooks','markedStatus','JTDGh','concat','122760KSEhsI','BQkhE','map_','parent','qtPqY','8351231qAlkDB','oTdXK','failed','pending','wZGoE','TLhIE','Jfjvj','hczZa','229524vbPGJN','browserstack','pBOLE','__cloud_provider___','qJbLC','uHwPN','tests','_beforeEach','bs:addPlatformDetails:','../../../helpers/test-observability/utils','getHookDetails','hook:','passed','hookAnalyticsId','split'];a29_0x5c3d=function(){return _0x40b77e;};return a29_0x5c3d();}const {v4:uuidv4}=require(a29_0x85e490(0x100)),{name,version}=require(a29_0x85e490(0x11c)),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),logReportingAPI=require(a29_0x85e490(0x11b)),BSTestOpsLogger=new logReportingAPI({}),{debug,isTestObservabilitySession,isInternalHook}=require(a29_0x85e490(0xf3)),{consoleHolder}=require(a29_0x85e490(0x117)),{getPlatformVersion}=require('../../../helpers/helper'),{shouldProcessEventForTesthub}=require(a29_0x85e490(0x11f));console={},Object[a29_0x85e490(0xfe)](consoleHolder)[a29_0x85e490(0x116)](_0x54eb87=>{console[_0x54eb87]=(..._0x51a64b)=>{BSTestOpsPatcher[_0x54eb87](..._0x51a64b);};}),exports[a29_0x85e490(0x12d)]=()=>{const _0x429d60=a29_0x85e490,_0x3a5e1f={'EmkcC':_0x429d60(0x102),'pyajN':function(_0x5ccc92){return _0x5ccc92();}};return{'ci':_0x3a5e1f[_0x429d60(0x130)],'key':_0x3a5e1f[_0x429d60(0xff)](uuidv4),'version':version,'collector':_0x429d60(0x12b)+name};},exports[a29_0x85e490(0xf4)]=_0x2c2a07=>{const _0x44ac51=a29_0x85e490,_0x271aff={};_0x271aff['AvGbK']=function(_0x3506e1,_0x4678cf){return _0x3506e1!==_0x4678cf;},_0x271aff['hczZa']=_0x44ac51(0x109),_0x271aff[_0x44ac51(0xef)]=_0x44ac51(0xf5),_0x271aff[_0x44ac51(0xee)]=function(_0x74f5da,_0x5bb8d6){return _0x74f5da!==_0x5bb8d6;},_0x271aff[_0x44ac51(0x105)]='hook';const _0x2a6989=_0x271aff;if(!_0x2c2a07||_0x2a6989[_0x44ac51(0x121)](typeof _0x2c2a07,_0x2a6989[_0x44ac51(0xe9)]))return[null,null];if(_0x2a6989[_0x44ac51(0x121)](_0x2c2a07[_0x44ac51(0x124)](_0x2a6989[_0x44ac51(0xef)]),-0x1)){const _0x236ce7=_0x2c2a07[_0x44ac51(0xf8)](_0x2a6989[_0x44ac51(0xef)]);return[_0x236ce7[0x0][_0x44ac51(0x118)](0x0,-0x1)[_0x44ac51(0xf8)]('\x22')[0x1],_0x236ce7[0x1][_0x44ac51(0x104)](0x1)];}else{if(_0x2a6989[_0x44ac51(0xee)](_0x2c2a07['indexOf'](_0x2a6989[_0x44ac51(0x105)]),-0x1)){const _0x21790c=_0x2c2a07['split'](_0x2a6989['JAYUR']);return[_0x21790c[0x0][_0x44ac51(0x118)](0x0,-0x1)[_0x44ac51(0xf8)]('\x22')[0x1],_0x2c2a07];}}return[null,null];},exports[a29_0x85e490(0x10c)]=_0x47e7e2=>{const _0x18c030=a29_0x85e490,_0x4441fd={'TLhIE':function(_0x1cf67b,_0x3a69a2){return _0x1cf67b(_0x3a69a2);},'gzBpl':_0x18c030(0x106),'QlpqF':_0x18c030(0x115),'Bygkz':'_beforeEach','rVJPX':_0x18c030(0x127)};if(!_0x47e7e2||!_0x47e7e2[_0x18c030(0xe0)])return[];const _0x35e38c=[];return[_0x4441fd['gzBpl'],_0x4441fd[_0x18c030(0xfa)],_0x4441fd[_0x18c030(0x128)],_0x4441fd[_0x18c030(0x110)]][_0x18c030(0x116)](_0x1ad167=>{const _0x4d9035=_0x18c030,_0x7f03b7={'caACM':function(_0x6de720,_0x365087){const _0x4b31d1=a29_0x1798;return _0x4441fd[_0x4b31d1(0xe7)](_0x6de720,_0x365087);}},_0x27ece7=_0x47e7e2['parent'][_0x1ad167]||[];_0x27ece7[_0x4d9035(0x116)](_0x24e704=>{const _0x5e72a5=_0x4d9035;_0x24e704['hookAnalyticsId']&&!_0x7f03b7[_0x5e72a5(0x107)](isInternalHook,_0x24e704['fn'])&&_0x35e38c['push'](_0x24e704[_0x5e72a5(0xf7)]);});}),[..._0x35e38c,...exports[_0x18c030(0x10c)](_0x47e7e2[_0x18c030(0xe0)])];},exports[a29_0x85e490(0x132)]=_0x2bdf5a=>{const _0x2376cf=a29_0x85e490,_0x39fb9c={'iCJzn':function(_0x3684d6){return _0x3684d6();},'YgJRF':function(_0x5a8634,_0x599fee){return _0x5a8634===_0x599fee;},'eudJi':_0x2376cf(0x127),'PmZTb':'_beforeAll','CbWLu':_0x2376cf(0x115),'FQlcd':_0x2376cf(0xf1)};if(!_0x2bdf5a||!_0x2bdf5a[_0x2376cf(0xe0)])return;[_0x39fb9c[_0x2376cf(0xfc)],_0x39fb9c[_0x2376cf(0x126)],_0x39fb9c[_0x2376cf(0x112)],_0x39fb9c['eudJi']][_0x2376cf(0x116)](_0x32e406=>{const _0x306848=_0x2376cf,_0x55eab5=_0x2bdf5a[_0x306848(0xe0)][_0x32e406]||[];_0x55eab5[_0x306848(0x116)](_0x26b3a8=>{const _0x49eabf=_0x306848;if(!_0x26b3a8[_0x49eabf(0xf7)])_0x26b3a8[_0x49eabf(0xf7)]=_0x39fb9c['iCJzn'](uuidv4);else _0x26b3a8[_0x49eabf(0x133)]&&_0x39fb9c[_0x49eabf(0x12a)](_0x32e406,_0x39fb9c['eudJi'])&&(_0x26b3a8[_0x49eabf(0xf7)]=_0x39fb9c['iCJzn'](uuidv4),delete _0x26b3a8[_0x49eabf(0x133)]);});}),exports['mapTestHooks'](_0x2bdf5a[_0x2376cf(0xe0)]);},exports['sendPlatformDetails']=async(_0x5e4116,_0x20e1f7)=>{const _0xee774d=a29_0x85e490,_0x2409b7={'IJbWW':function(_0x88c7b){return _0x88c7b();},'wZGoE':function(_0x2159e6,_0x526a71){return _0x2159e6===_0x526a71;},'qaENe':_0xee774d(0xeb),'gPVeO':'appium:app','NMBAD':'app','qtPqY':_0xee774d(0x10d),'BDnJF':_0xee774d(0x103),'pBOLE':function(_0x381f32,_0x231ae9){return _0x381f32(_0x231ae9);},'BQkhE':_0xee774d(0x10f),'dTkrM':_0xee774d(0x123),'XNMET':function(_0x3a7125,_0x357611){return _0x3a7125(_0x357611);}};try{if(!_0x2409b7[_0xee774d(0x12f)](shouldProcessEventForTesthub))return;const _0x29c962=await _0x5e4116[_0xee774d(0xf9)](),_0x3db4f1=await _0x5e4116[_0xee774d(0x12c)](),_0xad1172={},_0x486aa0=Object[_0xee774d(0x101)](_0x3db4f1[_0xee774d(0xf9)]()[_0xee774d(0xdf)]),_0x116561={'product':_0x2409b7[_0xee774d(0xe6)](global[_0xee774d(0xed)],_0x2409b7[_0xee774d(0x120)])?_0x486aa0[_0x2409b7[_0xee774d(0x113)]]||_0x486aa0[_0x2409b7['NMBAD']]?_0x2409b7[_0xee774d(0xe1)]:_0x2409b7['BDnJF']:null,'capabilities':_0x486aa0,'platform':_0x29c962['getPlatform'](),'platform_version':_0x2409b7[_0xee774d(0xec)](getPlatformVersion,_0x2409b7['wZGoE'](global[_0xee774d(0xed)],_0x2409b7[_0xee774d(0x120)])),'browser':_0x29c962['getBrowserName'](),'browser_version':_0x29c962['getBrowserVersion'](),'session_id':_0x3db4f1[_0xee774d(0xfd)]()};global[_0xee774d(0xed)]?_0xad1172[global[_0xee774d(0xed)]]=_0x116561:_0xad1172[_0x2409b7[_0xee774d(0xde)]]=_0x116561,process['emit'](_0xee774d(0xf2)+process[_0xee774d(0x10a)],{'timestamp':new Date()[_0xee774d(0x10e)](),'level':null,'message':null,'kind':_0x2409b7['dTkrM'],'http_response':_0xad1172,'uuid':_0x20e1f7});}catch(_0x514aff){_0x2409b7['XNMET'](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x514aff);}},exports[a29_0x85e490(0x114)]=_0x257f1c=>{const _0x15e8f5=a29_0x85e490,_0x49b475={};_0x49b475[_0x15e8f5(0xe3)]=function(_0x180bda,_0x53e673){return _0x180bda!==_0x53e673;},_0x49b475['Rhiqz']=_0x15e8f5(0x119),_0x49b475[_0x15e8f5(0x134)]=_0x15e8f5(0xf6),_0x49b475[_0x15e8f5(0xe8)]=function(_0x1d757a,_0x1b9e62){return _0x1d757a!==_0x1b9e62;},_0x49b475[_0x15e8f5(0x11d)]=_0x15e8f5(0xe4);const _0x2b4937=_0x49b475,_0x52862c=_0x257f1c['suites'][_0x15e8f5(0x11e)]((_0x2d6439,_0x2e5bb5)=>{const _0x4abb2c=_0x15e8f5,_0x92b03a=exports['getHookSkippedTests'](_0x2e5bb5);return _0x92b03a&&(_0x2d6439=_0x2d6439[_0x4abb2c(0xdc)](_0x92b03a)),_0x2d6439;},[]),_0x244647=_0x257f1c[_0x15e8f5(0xf0)][_0x15e8f5(0xfb)](_0x258176=>{const _0x1445a0=_0x15e8f5,_0x38515b=_0x2b4937[_0x1445a0(0xe3)](_0x258176[_0x1445a0(0x108)],_0x2b4937['Rhiqz'])&&!_0x258176[_0x1445a0(0x133)]&&_0x2b4937['oTdXK'](_0x258176[_0x1445a0(0x129)],_0x2b4937['JTDGh'])&&_0x2b4937[_0x1445a0(0xe8)](_0x258176[_0x1445a0(0x129)],_0x2b4937[_0x1445a0(0x11d)])&&!_0x258176[_0x1445a0(0xe5)];return _0x38515b;});return _0x244647[_0x15e8f5(0xdc)](_0x52862c);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a30_0x208e(){const _0x535705=['Axaqd','length','1108eSOXdW','cyTNa','yxXIl','then','tklwL','stringify','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','__error_messages__','http:','JsfQa','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','https:','title','tMjMc','__sessionFailed','startMonitoring','getGlobal','4OAVhkN','RVltp','JDmvW','shouldScanTestForAccessibility','./test-observability/mochaUtils','quitCount_','err','VRngO','kaIMo','synkN','jfieZ','message','.\x20Error\x20:','../../helpers/globals','GHXCZ','JXMHa','9616739XMTVJq','\x22}}','Performing\x20scan\x20before\x20saving\x20results','isAccessibilityPlatform','testcase','WcJAy','../../helpers/percy/utils','RpSzG','bstackA11yShouldScan','winstonLogger','currentTest','testAnalyticsId','info','BcTlj','fltdO','browserstackSessionName','kPiqP','519095ZpjroF','9BNBpyX','session_','36LTixtD','driverCleanup','executeScript','accessibilityScanStarted','mLeof','\x20-\x20','../../helpers/test-observability/utils','failed','../../helpers/helper','4455786nMzAUI','OUQNR','passed','shift','FqhZA','titlePath','executeAsyncScript','ybkAg','join','isArray','util','mWqLh','eHwfV','debug','error','setGlobal','OcYQK','mochaHooks','175504XoPQLh','\x20|\x20','__drivers',',\x22level\x22:\x20\x22','app','LnSog','808ZWOdYu','szllE','now','sessionNameSet__','aZiBt','env','stopMonitoring','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','iYZeD','capabilities','ACSYm','ureud','Failed:\x20','percyCaptureMode','getCurrentUrl','Passed','13886760oAhhXc','format','../../helpers/accessibility-automation/scripts','SdHXN','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','../../helpers/performance-tester','FRgwU','JXllN','234BgmMRK','EtUOF','ZwuEN','MGCBV','__skipSessionName','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','protocol','3851744XlbeWT','timeout','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','state','file','wBAZy'];a30_0x208e=function(){return _0x535705;};return a30_0x208e();}const a30_0x10df68=a30_0x4916;(function(_0x24d8a2,_0x107611){const _0x195c45=a30_0x4916,_0x3004ad=_0x24d8a2();while(!![]){try{const _0x452433=parseInt(_0x195c45(0x124))/0x1*(-parseInt(_0x195c45(0xce))/0x2)+-parseInt(_0x195c45(0x10c))/0x3+-parseInt(_0x195c45(0xdf))/0x4*(-parseInt(_0x195c45(0x100))/0x5)+parseInt(_0x195c45(0xbf))/0x6*(parseInt(_0x195c45(0x11e))/0x7)+parseInt(_0x195c45(0xc6))/0x8*(parseInt(_0x195c45(0x101))/0x9)+-parseInt(_0x195c45(0xb7))/0xa+parseInt(_0x195c45(0xef))/0xb*(parseInt(_0x195c45(0x103))/0xc);if(_0x452433===_0x107611)break;else _0x3004ad['push'](_0x3004ad['shift']());}catch(_0x3d49f2){_0x3004ad['push'](_0x3004ad['shift']());}}}(a30_0x208e,0xd3010));const util=require(a30_0x10df68(0x116)),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a30_0x10df68(0xf5)),{sendPlatformDetails}=require(a30_0x10df68(0xe3)),{isBrowserstackInfra,markSessionStatus}=require(a30_0x10df68(0x10b)),{isTestObservabilitySession}=require(a30_0x10df68(0x109)),PerformanceTester=require(a30_0x10df68(0xbc)),scripts=require(a30_0x10df68(0xb9)),globals=require(a30_0x10df68(0xec)),logger=require('../../helpers/logger')[a30_0x10df68(0xf8)];function a30_0x4916(_0x2d6e3e,_0x5d0220){const _0x208e5e=a30_0x208e();return a30_0x4916=function(_0x491662,_0x5f5279){_0x491662=_0x491662-0xb4;let _0x5a0b5e=_0x208e5e[_0x491662];return _0x5a0b5e;},a30_0x4916(_0x2d6e3e,_0x5d0220);}exports[a30_0x10df68(0x11d)]={'beforeAll'(){const _0x1ba4c9=a30_0x10df68,_0x145a34={'ybkAg':function(_0x5cc2e9,_0x18748b,_0x244d31,_0xa4b6e0){return _0x5cc2e9(_0x18748b,_0x244d31,_0xa4b6e0);},'LnSog':_0x1ba4c9(0x10a),'aZiBt':_0x1ba4c9(0x11f),'yxXIl':function(_0x13cc98,_0x13e1ab,_0x103722){return _0x13cc98(_0x13e1ab,_0x103722);},'MGCBV':_0x1ba4c9(0x10e),'ACSYm':function(_0x40e1e2){return _0x40e1e2();},'oWZnQ':function(_0x193499,_0x2bc8a4,_0x27fdfa){return _0x193499(_0x2bc8a4,_0x27fdfa);}};PerformanceTester[_0x1ba4c9(0xdd)]();const _0x44bb22='browserstack internal helper hook';global[_0x1ba4c9(0xd5)]=[],global[_0x1ba4c9(0xdc)]=![],global['driverCleanup']=async()=>{const _0x518f44=_0x1ba4c9;let _0x8c1f02=![];try{await global['__drivers'][0x0][_0x518f44(0x102)],_0x8c1f02=!![],global[_0x518f44(0xdc)]?await _0x145a34[_0x518f44(0x113)](markSessionStatus,global[_0x518f44(0x120)][0x0],_0x145a34[_0x518f44(0x123)],global[_0x518f44(0xd5)][_0x518f44(0x114)](_0x145a34[_0x518f44(0x128)])):await _0x145a34[_0x518f44(0xd0)](markSessionStatus,global[_0x518f44(0x120)][0x0],_0x145a34[_0x518f44(0xc2)]);}catch(_0x3a5985){}global[_0x518f44(0xd5)]=[],global[_0x518f44(0xdc)]=![];if(_0x8c1f02)try{try{_0x145a34[_0x518f44(0x12e)](isTestObservabilitySession)&&(global[_0x518f44(0x120)][0x0]&&await _0x145a34['oWZnQ'](sendPlatformDetails,global[_0x518f44(0x120)][0x0],this['currentTest']?this[_0x518f44(0xf9)][_0x518f44(0xfa)]:null));}catch{}await global['__drivers'][0x0]['initQuit']();}catch(_0x2bfb01){}};},'beforeEach'(_0x2a5fce){const _0x12d9e7=a30_0x10df68,_0x888c1={'FqhZA':function(_0x2a17c0,_0xbb9ea5){return _0x2a17c0>_0xbb9ea5;},'cyTNa':'\x20-\x20','FRgwU':function(_0x1d87a3,_0x514763,_0x1197d2){return _0x1d87a3(_0x514763,_0x1197d2);},'SdHXN':'bstackA11yShouldScan','mLeof':function(_0x5360a2){return _0x5360a2();},'RpSzG':_0x12d9e7(0xf2),'RVltp':function(_0x2142da,_0x40a12e){return _0x2142da===_0x40a12e;},'OUQNR':_0x12d9e7(0xd6),'wBAZy':function(_0x19f180,_0x13c56a){return _0x19f180===_0x13c56a;},'HClZD':_0x12d9e7(0xd9),'tMjMc':_0x12d9e7(0xd8),'kaIMo':'Automate\x20test\x20case\x20execution\x20has\x20started.','gMOXU':function(_0x60cbe8){return _0x60cbe8();}};new Promise(async _0x1dbe56=>{const _0x57f5c6=_0x12d9e7,_0x347d53='browserstack internal helper hook';let _0x418eb2=!![];try{_0x888c1['FqhZA'](global[_0x57f5c6(0x120)][_0x57f5c6(0xcd)],0x1)&&(await global[_0x57f5c6(0x104)](),global[_0x57f5c6(0x120)]['shift']()),_0x888c1[_0x57f5c6(0x110)](global['__drivers'][0x0][_0x57f5c6(0xe4)],0x0)&&(_0x418eb2=![],await global[_0x57f5c6(0x104)]());}catch{}try{Array['isArray'](global[_0x57f5c6(0x120)])&&global[_0x57f5c6(0x120)][0x0]&&(global[_0x57f5c6(0x120)][0x0][_0x57f5c6(0xfe)]=this[_0x57f5c6(0xf9)][_0x57f5c6(0x111)]()[_0x57f5c6(0x114)](_0x888c1[_0x57f5c6(0xcf)])),global[_0x57f5c6(0xfe)]=this['currentTest'][_0x57f5c6(0x111)]()['join'](_0x888c1[_0x57f5c6(0xcf)]);}catch(_0x3f3740){logger[_0x57f5c6(0x119)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x3f3740);}this[_0x57f5c6(0xf9)][_0x57f5c6(0xe2)]=_0x888c1[_0x57f5c6(0xbd)](shouldScanTestForAccessibility,this[_0x57f5c6(0xf9)][_0x57f5c6(0x111)](),!![]),globals[_0x57f5c6(0x11b)](_0x888c1[_0x57f5c6(0xba)],this[_0x57f5c6(0xf9)][_0x57f5c6(0xe2)]),this[_0x57f5c6(0xf9)][_0x57f5c6(0x106)]=!![];if(_0x888c1[_0x57f5c6(0x107)](isAccessibilityAutomationSession)&&_0x418eb2&&Array[_0x57f5c6(0x115)](global[_0x57f5c6(0x120)])&&_0x888c1[_0x57f5c6(0x110)](global[_0x57f5c6(0x120)][_0x57f5c6(0xcd)],0x0)&&globals['getGlobal'](_0x888c1[_0x57f5c6(0xf6)]))try{const _0x137dc1=await global[_0x57f5c6(0x120)][0x0][_0x57f5c6(0x102)];if(_0x137dc1){let _0x3b0249=!![];const _0x159a76=await global['__drivers'][0x0][_0x57f5c6(0xb5)]();let _0x5e7d04;try{_0x5e7d04=new URL(_0x159a76);}catch(_0x486582){_0x3b0249=![];}_0x3b0249=_0x888c1[_0x57f5c6(0xe0)](_0x5e7d04[_0x57f5c6(0xc5)],_0x888c1[_0x57f5c6(0x10d)])||_0x888c1[_0x57f5c6(0xcb)](_0x5e7d04['protocol'],_0x888c1['HClZD']),_0x3b0249&&(this[_0x57f5c6(0xf9)]['shouldScanTestForAccessibility']&&logger[_0x57f5c6(0xfb)](_0x888c1[_0x57f5c6(0xdb)])),this['currentTest'][_0x57f5c6(0x106)]=this[_0x57f5c6(0xf9)][_0x57f5c6(0xe2)],this['currentTest'][_0x57f5c6(0xe2)]&&logger[_0x57f5c6(0xfb)](_0x888c1[_0x57f5c6(0xe7)]);}}catch(_0x3d5112){logger[_0x57f5c6(0x11a)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x57f5c6(0xb8)](_0x3d5112));}_0x888c1['gMOXU'](_0x1dbe56);})[_0x12d9e7(0xd1)](_0x2a5fce);},'afterEach'(_0x4f62b3){const _0x14112b=a30_0x10df68,_0x23a45c={'kPiqP':function(_0x2a4ac9,_0x18ff55){return _0x2a4ac9>_0x18ff55;},'xRgju':function(_0x5a6974,_0x3ec775){return _0x5a6974===_0x3ec775;},'Axaqd':_0x14112b(0xf3),'synkN':function(_0x52b5c6,_0x388f6e){return _0x52b5c6>_0x388f6e;},'mWqLh':'appium:app','aToeS':function(_0x3e7fad,_0x5efb93,_0x573b08,_0x3299e8){return _0x3e7fad(_0x5efb93,_0x573b08,_0x3299e8);},'tklwL':_0x14112b(0x108),'GHXCZ':function(_0x508b54,_0x82007e){return _0x508b54!==_0x82007e;},'eHwfV':_0x14112b(0x10e),'szllE':function(_0x34eb27,_0x4be77a,_0x476e14){return _0x34eb27(_0x4be77a,_0x476e14);},'BcTlj':function(_0x138bc7,_0xc2b533){return _0x138bc7+_0xc2b533;},'ureud':_0x14112b(0x130),'bCeJi':'error','jfieZ':function(_0x232aaf,_0x11ac22,_0x1939b6){return _0x232aaf(_0x11ac22,_0x1939b6);},'JsfQa':_0x14112b(0xb6),'OcYQK':_0x14112b(0xfb),'yquCd':_0x14112b(0xf2),'JXMHa':_0x14112b(0xf7),'Dkgpq':_0x14112b(0xc8),'lgSxM':function(_0x2f00a2,_0x489f13){return _0x2f00a2(_0x489f13);},'VRngO':_0x14112b(0xf1),'JDmvW':_0x14112b(0xbb),'fltdO':function(_0x1233d5){return _0x1233d5();},'WcJAy':function(_0x12cb38,_0x5d719c,_0x30da4e){return _0x12cb38(_0x5d719c,_0x30da4e);},'JXllN':function(_0x1a5b85){return _0x1a5b85();},'eqayY':function(_0x106f60,_0x353b1f,_0x38ed8f){return _0x106f60(_0x353b1f,_0x38ed8f);},'ZwuEN':_0x14112b(0x119),'EtUOF':function(_0x357241){return _0x357241();}},_0xf62e3d='browserstack internal helper hook';this[_0x14112b(0xc7)](0xfde8);const _0x46d030=async(_0x295def,_0x44fcc9)=>{const _0x4e6aea=_0x14112b;await global[_0x4e6aea(0x120)][0x0][_0x4e6aea(0x105)](_0x4e6aea(0x12b)+_0x295def+_0x4e6aea(0x121)+_0x44fcc9+_0x4e6aea(0xf0));};new Promise(async _0x31e6c6=>{const _0x2c4a96=_0x14112b;try{_0x23a45c[_0x2c4a96(0xff)](global[_0x2c4a96(0x120)]['length'],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x2c4a96(0x10f)](),global[_0x2c4a96(0xd5)]=[],global[_0x2c4a96(0xdc)]=![]);try{if(global['percy']&&_0x23a45c['xRgju'](global[_0x2c4a96(0xb4)],_0x23a45c[_0x2c4a96(0xcc)])&&global[_0x2c4a96(0x120)][0x0]){const _0x535f11=_0x23a45c[_0x2c4a96(0xe8)](global[_0x2c4a96(0x12d)][_0x2c4a96(0xcd)],0x0)?!!global[_0x2c4a96(0x12d)][0x0][_0x2c4a96(0x122)]||!!global[_0x2c4a96(0x12d)][0x0][_0x23a45c[_0x2c4a96(0x117)]]:![],_0x4c5c68={};_0x4c5c68['app']=_0x535f11,await _0x23a45c['aToeS'](percyAutoCapture,global[_0x2c4a96(0x120)][0x0],_0x23a45c[_0x2c4a96(0xcc)],_0x4c5c68);}}catch(_0x27bc00){}!global[_0x2c4a96(0xc3)]&&(await global[_0x2c4a96(0x120)][0x0]['executeScript'](_0x2c4a96(0xd4)+JSON[_0x2c4a96(0xd3)](this['currentTest'][_0x2c4a96(0x111)]()[_0x2c4a96(0x114)](_0x23a45c[_0x2c4a96(0xd2)]))+'}}'),global[_0x2c4a96(0x120)][0x0][_0x2c4a96(0x127)]=!![]);const _0x216216=_0x23a45c[_0x2c4a96(0xed)](this['currentTest'][_0x2c4a96(0xc9)],_0x23a45c[_0x2c4a96(0x118)]);_0x216216?(global[_0x2c4a96(0xdc)]=!![],global['__error_messages__']['push'](this[_0x2c4a96(0xf9)][_0x2c4a96(0xe5)]['message']),await _0x23a45c[_0x2c4a96(0x125)](_0x46d030,JSON[_0x2c4a96(0xd3)](_0x23a45c[_0x2c4a96(0xfc)](_0x23a45c[_0x2c4a96(0x12f)],this['currentTest']['err'][_0x2c4a96(0xea)])),_0x23a45c['bCeJi'])):await _0x23a45c[_0x2c4a96(0xe9)](_0x46d030,JSON['stringify'](_0x23a45c[_0x2c4a96(0xd7)]),_0x23a45c[_0x2c4a96(0x11c)]);}catch(_0x4c02f9){}try{if(this[_0x2c4a96(0xf9)]['accessibilityScanStarted']&&globals['getGlobal'](_0x23a45c['yquCd'])&&globals[_0x2c4a96(0xde)](_0x23a45c[_0x2c4a96(0xee)])){logger[_0x2c4a96(0xfb)](_0x23a45c['Dkgpq']);const _0x11273a={'saveResults':this[_0x2c4a96(0xf9)][_0x2c4a96(0xe2)],'testDetails':{'name':this['currentTest'][_0x2c4a96(0xda)],'testRunId':process[_0x2c4a96(0x129)]['BS_A11Y_TEST_RUN_ID'],'filePath':this['currentTest'][_0x2c4a96(0xca)],'scopeList':this[_0x2c4a96(0xf9)][_0x2c4a96(0x111)]()},'platform':await _0x23a45c['lgSxM'](fetchPlatformDetails,global[_0x2c4a96(0x120)][0x0])};logger[_0x2c4a96(0x119)](_0x23a45c[_0x2c4a96(0xe6)]),logger[_0x2c4a96(0x119)](util[_0x2c4a96(0xb8)](await global['__drivers'][0x0][_0x2c4a96(0x112)](scripts['performScan'],{'method':global[_0x2c4a96(0xfe)]}))),await global[_0x2c4a96(0x120)][0x0][_0x2c4a96(0x112)](scripts['saveTestResults'],_0x11273a),logger['info'](_0x23a45c[_0x2c4a96(0xe1)]);}}catch(_0x303a09){logger[_0x2c4a96(0x11a)](_0x2c4a96(0xc4)+this[_0x2c4a96(0xf9)][_0x2c4a96(0x111)]()+_0x2c4a96(0xeb),_0x303a09);}try{try{if(_0x23a45c[_0x2c4a96(0xfd)](isTestObservabilitySession)){global[_0x2c4a96(0x120)][0x0]&&await _0x23a45c[_0x2c4a96(0xf4)](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this[_0x2c4a96(0xf9)][_0x2c4a96(0xfa)]:null);if(_0x23a45c[_0x2c4a96(0xbe)](isBrowserstackInfra)){const _0x23c640='ObservabilitySync:'+Date[_0x2c4a96(0x126)]();await _0x23a45c['eqayY'](_0x46d030,JSON['stringify'](_0x23c640),_0x23a45c[_0x2c4a96(0xc1)]);}}}catch{}_0x23a45c[_0x2c4a96(0xff)](global[_0x2c4a96(0x120)][0x0]['quitCount_'],0x0)&&await global[_0x2c4a96(0x104)]();}catch(_0x1cbb4c){}_0x23a45c[_0x2c4a96(0xc0)](_0x31e6c6);})[_0x14112b(0xd1)](()=>_0x4f62b3());},'afterAll'(_0x5b1fd0){const _0x2db78f=a30_0x10df68,_0x4a06dc={'iYZeD':function(_0x57c847){return _0x57c847();}},_0x33a5ee='browserstack internal helper hook';this[_0x2db78f(0xc7)](0xfde8),new Promise(async _0x19ed39=>{const _0x50b932=_0x2db78f;PerformanceTester[_0x50b932(0x12a)](),await global[_0x50b932(0x104)](),_0x4a06dc[_0x50b932(0x12c)](_0x19ed39);})[_0x2db78f(0xd1)](()=>_0x5b1fd0());}};
|
|
1
|
+
const a30_0xbfd3d9=a30_0x29a9;function a30_0x5204(){const _0x475c72=['executeAsyncScript','format','session_','IFYOx','xPLje','thJwtToken','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','__drivers','state','kijAC','__error_messages__','xeIdg','shouldScanTestForAccessibility','QdOBb','HNpSq','fODor','hwRGS','stopMonitoring','Failed\x20to\x20store\x20session\x20name:\x20','../../helpers/globals','testAnalyticsId','titlePath','err','message','Failed:\x20','app','__sessionFailed','failed','BROWSERSTACK_TESTHUB_JWT','4655536kvlZXw','https:','performScan','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','error','../../helpers/accessibility-automation/helper','sFgFU','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','isArray','485267omevdC','length','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','GwDju','hCkpT','BROWSERSTACK_TESTHUB_UUID','thTestRunUuid','EATWz','7EzjdOR','\x22}}','2725188zYZPiM','info','sessionNameSet__','../../helpers/accessibility-automation/scripts',',\x22level\x22:\x20\x22','KtJkO','zIPeG','stringify','../../helpers/test-observability/utils','getCurrentUrl','1663095OzPsFp','2302551LuFsCx','__skipSessionName','debug','10462mfNaDe','capabilities','timeout','driverCleanup','141wbtqCJ','777932kzwFYy','saveTestResults','EcvnU','initQuit','aeIES','\x20|\x20','quitCount_','SnITk','getGlobal','currentTest','then','jXgry','XfEmL','vaPvq','appium:app','jVSIO','mvJdc','ObservabilitySync:','MiCIv','join','RCcyu','bstackA11yShouldScan','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','uknHc','shift','dqMlE','CaelJ','ENV_VAR','isAccessibilityPlatform','zJvUN','../../helpers/percy/utils','wGIoR','../../helpers/testhub/utils','GaXjS','thBuildUuid','SHAZd','testcase','Passed','\x20-\x20','percyCaptureMode','KLmvA','edxyq','KuZkY','env','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','accessibilityScanStarted','Performing\x20scan\x20before\x20saving\x20results','browserstackSessionName','http:','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','../../helpers/helper','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','wQtII','vnUrg','.\x20Error\x20:','protocol','executeScript','../../helpers/performance-tester'];a30_0x5204=function(){return _0x475c72;};return a30_0x5204();}function a30_0x29a9(_0xc86235,_0x150926){const _0x5204c9=a30_0x5204();return a30_0x29a9=function(_0x29a954,_0x151209){_0x29a954=_0x29a954-0x9a;let _0x296c6e=_0x5204c9[_0x29a954];return _0x296c6e;},a30_0x29a9(_0xc86235,_0x150926);}(function(_0x15ba49,_0x49e769){const _0x1e7230=a30_0x29a9,_0x58f4ad=_0x15ba49();while(!![]){try{const _0x36c4f7=parseInt(_0x1e7230(0xd9))/0x1+parseInt(_0x1e7230(0xf1))/0x2*(parseInt(_0x1e7230(0xf5))/0x3)+-parseInt(_0x1e7230(0xf6))/0x4+-parseInt(_0x1e7230(0xed))/0x5+parseInt(_0x1e7230(0xe3))/0x6+-parseInt(_0x1e7230(0xe1))/0x7*(parseInt(_0x1e7230(0xd0))/0x8)+parseInt(_0x1e7230(0xee))/0x9;if(_0x36c4f7===_0x49e769)break;else _0x58f4ad['push'](_0x58f4ad['shift']());}catch(_0xdbeccc){_0x58f4ad['push'](_0x58f4ad['shift']());}}}(a30_0x5204,0x51155));const util=require('util'),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0xbfd3d9(0xd5)),{percyAutoCapture}=require(a30_0xbfd3d9(0x114)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a30_0xbfd3d9(0xab)),{isTestObservabilitySession}=require(a30_0xbfd3d9(0xeb)),PerformanceTester=require(a30_0xbfd3d9(0xb2)),scripts=require(a30_0xbfd3d9(0xe6)),globals=require(a30_0xbfd3d9(0xc6)),logger=require('../../helpers/logger')['winstonLogger'],{shouldProcessEventForTesthub}=require(a30_0xbfd3d9(0x116)),testHubConstants=require('../../helpers/testhub/constants');exports['mochaHooks']={'beforeAll'(){const _0x3ac053=a30_0xbfd3d9,_0xb7fa90={'xPLje':function(_0x2b09bd,_0x9665df,_0x28f6af,_0x2bd6b1){return _0x2b09bd(_0x9665df,_0x28f6af,_0x2bd6b1);},'GaXjS':_0x3ac053(0xce),'sFgFU':_0x3ac053(0xfb),'kijAC':function(_0x32a3bf,_0x58fa02,_0x12c479){return _0x32a3bf(_0x58fa02,_0x12c479);},'KLmvA':'passed','CaelJ':function(_0x40f5e6){return _0x40f5e6();},'TXWtP':function(_0x375c5d,_0x10e689,_0x414806){return _0x375c5d(_0x10e689,_0x414806);}};PerformanceTester['startMonitoring']();const _0x502529='browserstack internal helper hook';global[_0x3ac053(0xbd)]=[],global[_0x3ac053(0xcd)]=![],global[_0x3ac053(0xf4)]=async()=>{const _0x2c696=_0x3ac053;let _0x3a8ee1=![];try{await global['__drivers'][0x0][_0x2c696(0xb5)],_0x3a8ee1=!![],global[_0x2c696(0xcd)]?await _0xb7fa90[_0x2c696(0xb7)](markSessionStatus,global[_0x2c696(0xba)][0x0],_0xb7fa90[_0x2c696(0x9a)],global['__error_messages__'][_0x2c696(0x109)](_0xb7fa90[_0x2c696(0xd6)])):await _0xb7fa90[_0x2c696(0xbc)](markSessionStatus,global[_0x2c696(0xba)][0x0],_0xb7fa90[_0x2c696(0xa1)]);}catch(_0x5357da){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0x3a8ee1)try{try{_0xb7fa90[_0x2c696(0x110)](shouldProcessEventForTesthub)&&(global[_0x2c696(0xba)][0x0]&&await _0xb7fa90['TXWtP'](sendPlatformDetails,global['__drivers'][0x0],this[_0x2c696(0xff)]?this[_0x2c696(0xff)]['testAnalyticsId']:null));}catch{}await global[_0x2c696(0xba)][0x0][_0x2c696(0xf9)]();}catch(_0xe106ee){}};},'beforeEach'(_0x214c6d){const _0x3e2d41=a30_0xbfd3d9,_0x1fb891={'XfEmL':function(_0x292e80,_0x153216){return _0x292e80>_0x153216;},'IFYOx':function(_0x18ef96,_0x4505e5){return _0x18ef96>_0x4505e5;},'SnITk':_0x3e2d41(0x9f),'KtJkO':function(_0x5e7292,_0x541a4c,_0x4c0d25){return _0x5e7292(_0x541a4c,_0x4c0d25);},'uknHc':_0x3e2d41(0x10b),'GwDju':function(_0x52c5bd){return _0x52c5bd();},'QdOBb':function(_0xcd5a91,_0x2bf5ac){return _0xcd5a91>_0x2bf5ac;},'zJvUN':_0x3e2d41(0x112),'wGIoR':function(_0x1bcff0,_0x13aacf){return _0x1bcff0===_0x13aacf;},'pueWC':_0x3e2d41(0xa9),'QgZnn':_0x3e2d41(0xd1),'MiCIv':_0x3e2d41(0x10c),'vaPvq':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0xf18db=>{const _0x5646ac=_0x3e2d41,_0x2b4cb7='browserstack internal helper hook';let _0x5d2638=!![];try{_0x1fb891[_0x5646ac(0x102)](global[_0x5646ac(0xba)][_0x5646ac(0xda)],0x1)&&(await global[_0x5646ac(0xf4)](),global[_0x5646ac(0xba)][_0x5646ac(0x10e)]()),_0x1fb891[_0x5646ac(0xb6)](global[_0x5646ac(0xba)][0x0][_0x5646ac(0xfc)],0x0)&&(_0x5d2638=![],await global[_0x5646ac(0xf4)]());}catch{}try{Array[_0x5646ac(0xd8)](global[_0x5646ac(0xba)])&&global['__drivers'][0x0]&&(global[_0x5646ac(0xba)][0x0]['browserstackSessionName']=this[_0x5646ac(0xff)][_0x5646ac(0xc8)]()[_0x5646ac(0x109)](_0x1fb891[_0x5646ac(0xfd)])),global[_0x5646ac(0xa8)]=this[_0x5646ac(0xff)][_0x5646ac(0xc8)]()[_0x5646ac(0x109)](_0x1fb891[_0x5646ac(0xfd)]);}catch(_0x4b253d){logger[_0x5646ac(0xf0)](_0x5646ac(0xc5)+_0x4b253d);}this['currentTest'][_0x5646ac(0xbf)]=_0x1fb891[_0x5646ac(0xe8)](shouldScanTestForAccessibility,this[_0x5646ac(0xff)][_0x5646ac(0xc8)](),!![]),globals['setGlobal'](_0x1fb891[_0x5646ac(0x10d)],this[_0x5646ac(0xff)]['shouldScanTestForAccessibility']),this[_0x5646ac(0xff)]['accessibilityScanStarted']=!![];if(_0x1fb891['GwDju'](isAccessibilityAutomationSession)&&_0x5d2638&&Array[_0x5646ac(0xd8)](global[_0x5646ac(0xba)])&&_0x1fb891[_0x5646ac(0xc0)](global[_0x5646ac(0xba)]['length'],0x0)&&globals[_0x5646ac(0xfe)](_0x1fb891[_0x5646ac(0x113)]))try{const _0x1ea6bd=await global[_0x5646ac(0xba)][0x0][_0x5646ac(0xb5)];if(_0x1ea6bd){let _0x2137be=!![];const _0x186f53=await global[_0x5646ac(0xba)][0x0][_0x5646ac(0xec)]();let _0x432295;try{_0x432295=new URL(_0x186f53);}catch(_0x4e94a6){_0x2137be=![];}_0x2137be=_0x1fb891[_0x5646ac(0x115)](_0x432295[_0x5646ac(0xb0)],_0x1fb891['pueWC'])||_0x1fb891[_0x5646ac(0x115)](_0x432295[_0x5646ac(0xb0)],_0x1fb891['QgZnn']),_0x2137be&&(this['currentTest'][_0x5646ac(0xbf)]&&logger[_0x5646ac(0xe4)](_0x1fb891[_0x5646ac(0x108)])),this[_0x5646ac(0xff)][_0x5646ac(0xa6)]=this[_0x5646ac(0xff)][_0x5646ac(0xbf)],this[_0x5646ac(0xff)][_0x5646ac(0xbf)]&&logger[_0x5646ac(0xe4)](_0x1fb891[_0x5646ac(0x103)]);}}catch(_0x1175f2){logger[_0x5646ac(0xd4)](_0x5646ac(0xaa)+util[_0x5646ac(0xb4)](_0x1175f2));}_0x1fb891[_0x5646ac(0xdc)](_0xf18db);})[_0x3e2d41(0x100)](_0x214c6d);},'afterEach'(_0xca57ea){const _0x316293=a30_0xbfd3d9,_0x42592b={'EATWz':function(_0x315b52,_0x51b0d5){return _0x315b52>_0x51b0d5;},'EcvnU':function(_0x21f63f,_0xc30647){return _0x21f63f===_0xc30647;},'ZlqhF':_0x316293(0x9d),'KuZkY':function(_0x5c6b9d,_0x12b0c3){return _0x5c6b9d>_0x12b0c3;},'edxyq':_0x316293(0x104),'jVSIO':function(_0x340641,_0x56179a,_0x80bf85,_0x45e4e9){return _0x340641(_0x56179a,_0x80bf85,_0x45e4e9);},'hwRGS':_0x316293(0x9f),'zIPeG':function(_0x6fc33a,_0x3ab237){return _0x6fc33a!==_0x3ab237;},'MLwqt':'passed','aeIES':function(_0x1c9390,_0x484547,_0x1c0256){return _0x1c9390(_0x484547,_0x1c0256);},'wQtII':function(_0x4a1afe,_0x52c072){return _0x4a1afe+_0x52c072;},'hCkpT':_0x316293(0xcb),'jXgry':_0x316293(0xd4),'zXBHh':_0x316293(0x9e),'zfBEC':_0x316293(0xe4),'YhPJI':_0x316293(0x112),'fODor':_0x316293(0x10b),'mvJdc':_0x316293(0xd7),'xeIdg':_0x316293(0xa7),'SHAZd':_0x316293(0xac),'RCcyu':function(_0x254929){return _0x254929();},'LHZZQ':function(_0x5a75db,_0x1c578c,_0x2bf860){return _0x5a75db(_0x1c578c,_0x2bf860);},'vnUrg':_0x316293(0xf0),'dqMlE':function(_0x27b960,_0x1131ca){return _0x27b960>_0x1131ca;}},_0x39a84e='browserstack internal helper hook';this[_0x316293(0xf3)](0xfde8);const _0x4a3e85=async(_0x295876,_0x35baf0)=>{const _0x3d4e2e=_0x316293;await global['__drivers'][0x0][_0x3d4e2e(0xb1)](_0x3d4e2e(0xa5)+_0x295876+_0x3d4e2e(0xe7)+_0x35baf0+_0x3d4e2e(0xe2));};new Promise(async _0x23c8d0=>{const _0x4a0290=_0x316293;try{_0x42592b[_0x4a0290(0xe0)](global['__drivers'][_0x4a0290(0xda)],0x1)&&(await global[_0x4a0290(0xf4)](),global[_0x4a0290(0xba)][_0x4a0290(0x10e)](),global[_0x4a0290(0xbd)]=[],global['__sessionFailed']=![]);try{if(global['percy']&&_0x42592b[_0x4a0290(0xf8)](global[_0x4a0290(0xa0)],_0x42592b['ZlqhF'])&&global[_0x4a0290(0xba)][0x0]){const _0x248011=_0x42592b[_0x4a0290(0xa3)](global['capabilities']['length'],0x0)?!!global[_0x4a0290(0xf2)][0x0][_0x4a0290(0xcc)]||!!global['capabilities'][0x0][_0x42592b[_0x4a0290(0xa2)]]:![],_0xdfda72={};_0xdfda72[_0x4a0290(0xcc)]=_0x248011,await _0x42592b[_0x4a0290(0x105)](percyAutoCapture,global[_0x4a0290(0xba)][0x0],_0x42592b['ZlqhF'],_0xdfda72);}}catch(_0x10ca64){}!global[_0x4a0290(0xef)]&&(await global[_0x4a0290(0xba)][0x0]['executeScript'](_0x4a0290(0xd3)+JSON[_0x4a0290(0xea)](this[_0x4a0290(0xff)][_0x4a0290(0xc8)]()[_0x4a0290(0x109)](_0x42592b[_0x4a0290(0xc3)]))+'}}'),global[_0x4a0290(0xba)][0x0][_0x4a0290(0xe5)]=!![]);const _0x46cdff=_0x42592b[_0x4a0290(0xe9)](this[_0x4a0290(0xff)][_0x4a0290(0xbb)],_0x42592b['MLwqt']);_0x46cdff?(global['__sessionFailed']=!![],global[_0x4a0290(0xbd)]['push'](this['currentTest'][_0x4a0290(0xc9)]['message']),await _0x42592b[_0x4a0290(0xfa)](_0x4a3e85,JSON[_0x4a0290(0xea)](_0x42592b[_0x4a0290(0xad)](_0x42592b[_0x4a0290(0xdd)],this[_0x4a0290(0xff)][_0x4a0290(0xc9)][_0x4a0290(0xca)])),_0x42592b[_0x4a0290(0x101)])):await _0x42592b[_0x4a0290(0xfa)](_0x4a3e85,JSON[_0x4a0290(0xea)](_0x42592b['zXBHh']),_0x42592b['zfBEC']);}catch(_0x43a9b8){}try{if(this[_0x4a0290(0xff)][_0x4a0290(0xa6)]&&globals[_0x4a0290(0xfe)](_0x42592b['YhPJI'])&&globals[_0x4a0290(0xfe)](_0x42592b[_0x4a0290(0xc2)])){logger[_0x4a0290(0xe4)](_0x42592b[_0x4a0290(0x106)]);const _0x4019d0={};_0x4019d0[_0x4a0290(0xdf)]=this[_0x4a0290(0xff)][_0x4a0290(0xc7)],_0x4019d0[_0x4a0290(0x9b)]=process[_0x4a0290(0xa4)][testHubConstants[_0x4a0290(0x111)][_0x4a0290(0xde)]],_0x4019d0[_0x4a0290(0xb8)]=process['env'][testHubConstants['ENV_VAR'][_0x4a0290(0xcf)]];const _0x16715d=_0x4019d0;logger['debug'](_0x4a0290(0xdb)+JSON['stringify'](_0x16715d)),logger[_0x4a0290(0xf0)](_0x42592b[_0x4a0290(0xbe)]),logger['debug'](util[_0x4a0290(0xb4)](await global[_0x4a0290(0xba)][0x0][_0x4a0290(0xb3)](scripts[_0x4a0290(0xd2)],{'method':global[_0x4a0290(0xa8)]}))),await global[_0x4a0290(0xba)][0x0][_0x4a0290(0xb3)](scripts[_0x4a0290(0xf7)],_0x16715d),logger[_0x4a0290(0xe4)](_0x42592b[_0x4a0290(0x9c)]);}}catch(_0x48169f){logger[_0x4a0290(0xd4)](_0x4a0290(0xb9)+this['currentTest']['titlePath']()+_0x4a0290(0xaf),_0x48169f);}try{try{if(_0x42592b['RCcyu'](shouldProcessEventForTesthub)){global[_0x4a0290(0xba)][0x0]&&await _0x42592b[_0x4a0290(0xfa)](sendPlatformDetails,global[_0x4a0290(0xba)][0x0],this[_0x4a0290(0xff)]?this[_0x4a0290(0xff)]['testAnalyticsId']:null);if(_0x42592b[_0x4a0290(0x10a)](isBrowserstackInfra)){const _0x19704e=_0x4a0290(0x107)+Date['now']();await _0x42592b['LHZZQ'](_0x4a3e85,JSON[_0x4a0290(0xea)](_0x19704e),_0x42592b[_0x4a0290(0xae)]);}}}catch{}_0x42592b[_0x4a0290(0x10f)](global['__drivers'][0x0]['quitCount_'],0x0)&&await global[_0x4a0290(0xf4)]();}catch(_0x2194fc){}_0x42592b[_0x4a0290(0x10a)](_0x23c8d0);})[_0x316293(0x100)](()=>_0xca57ea());},'afterAll'(_0x241090){const _0x484f34=a30_0xbfd3d9,_0x5d51c5={'HNpSq':function(_0x402846){return _0x402846();}},_0x3c833d='browserstack internal helper hook';this[_0x484f34(0xf3)](0xfde8),new Promise(async _0x49d112=>{const _0x25a913=_0x484f34;PerformanceTester[_0x25a913(0xc4)](),await global['driverCleanup'](),_0x5d51c5[_0x25a913(0xc1)](_0x49d112);})[_0x484f34(0x100)](()=>_0x241090());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a31_0x4bc987=a31_0x2413;(function(_0x253a55,_0x2c1734){const _0x2df663=a31_0x2413,_0x212aaf=_0x253a55();while(!![]){try{const _0x5ef00b=-parseInt(_0x2df663(0x178))/0x1*(parseInt(_0x2df663(0x179))/0x2)+-parseInt(_0x2df663(0x17c))/0x3*(-parseInt(_0x2df663(0x14d))/0x4)+parseInt(_0x2df663(0x167))/0x5*(-parseInt(_0x2df663(0x155))/0x6)+-parseInt(_0x2df663(0x170))/0x7*(-parseInt(_0x2df663(0x16f))/0x8)+-parseInt(_0x2df663(0x169))/0x9+parseInt(_0x2df663(0x17a))/0xa+parseInt(_0x2df663(0x14c))/0xb*(parseInt(_0x2df663(0x17d))/0xc);if(_0x5ef00b===_0x2c1734)break;else _0x212aaf['push'](_0x212aaf['shift']());}catch(_0x266eda){_0x212aaf['push'](_0x212aaf['shift']());}}}(a31_0xed22,0xb99f0));function a31_0xed22(){const _0x2e12ae=['Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','Deleting\x20','filter','../utils/constants','inherit','1120825qXoRjy','port','4643973IlvCaG','../../helpers/helper','platform','../../helpers/logger','QnsgC','lhATJ','8iFvDhM','106526wFnbBb','RgTsC','--env','mergeDeep','HzHdN','modifyBrowserStackCaps','trim','winstonLogger','1UvGwgC','1283106iPlxwV','3049190BRNTng','desiredCapabilities','26841YprhtC','1332gwduDj','nightwatch.conf.js','exports','stringify','config','forEach','join','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','test_settings','srXgq','env','splice','--config','OQRuk','host','rLzqW','hub.browserstack.com','WuuBM','writeFileSync','test','ISyWQ','selenium','224235JdRcye','304NQexeb','slice','findIndex','iQWqJ','rLezx','QqvAL','path','existsSync','36lWELTT','../../helpers/BrowserStackSetup','AanpL','cwd','modifyBrowserStackW3CCaps','info','WKRYK','length','start_process','platforms','now','ODYea','push'];a31_0xed22=function(){return _0x2e12ae;};return a31_0xed22();}function a31_0x2413(_0x4bca7f,_0x418f30){const _0xed226=a31_0xed22();return a31_0x2413=function(_0x241389,_0x57a8a4){_0x241389=_0x241389-0x144;let _0x45f70b=_0xed226[_0x241389];return _0x45f70b;},a31_0x2413(_0x4bca7f,_0x418f30);}const fs=require('fs'),path=require(a31_0x4bc987(0x153)),{spawn}=require('child_process'),logger=require(a31_0x4bc987(0x16c))[a31_0x4bc987(0x177)],{default:BrowserStackSetup}=require(a31_0x4bc987(0x156)),helper=require(a31_0x4bc987(0x16a)),constants=require(a31_0x4bc987(0x165)),getUserNightwatchConfigs=(_0x3be81d,_0x19f126)=>{const _0x2aa418=a31_0x4bc987,_0x583fb6={'HzHdN':_0x2aa418(0x17e),'rLezx':'nightwatch.json','znImS':function(_0x3d960d,_0x5a5a83){return _0x3d960d(_0x5a5a83);},'uLtnK':_0x2aa418(0x184)};let _0x223124=null,_0x3e982e={};const _0x3e4d6e=_0x19f126[_0x2aa418(0x14f)](_0x216d94=>_0x216d94==='--config');if(!helper['isUndefined'](_0x3be81d[_0x2aa418(0x181)])&&fs[_0x2aa418(0x154)](path[_0x2aa418(0x183)](process[_0x2aa418(0x158)](),_0x3be81d[_0x2aa418(0x181)])))_0x223124=path[_0x2aa418(0x183)](process[_0x2aa418(0x158)](),_0x3be81d[_0x2aa418(0x181)]),_0x19f126[_0x2aa418(0x188)](_0x3e4d6e,0x2);else{if(fs[_0x2aa418(0x154)](path[_0x2aa418(0x183)](process[_0x2aa418(0x158)](),_0x583fb6[_0x2aa418(0x174)])))_0x223124=path['join'](process[_0x2aa418(0x158)](),_0x583fb6[_0x2aa418(0x174)]);else fs[_0x2aa418(0x154)](path[_0x2aa418(0x183)](process[_0x2aa418(0x158)](),_0x583fb6[_0x2aa418(0x151)]))&&(_0x223124=path[_0x2aa418(0x183)](process[_0x2aa418(0x158)](),_0x583fb6[_0x2aa418(0x151)]));}return _0x223124?(logger[_0x2aa418(0x15a)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x223124),_0x3e982e=_0x583fb6['znImS'](require,_0x223124)):logger[_0x2aa418(0x15a)](_0x583fb6['uLtnK']),_0x3e982e;},removeExistingEnvs=_0x395780=>{const _0x223122=a31_0x4bc987,_0x772e70={};_0x772e70[_0x223122(0x145)]=function(_0x5eeaab,_0x38e7ee){return _0x5eeaab>_0x38e7ee;},_0x772e70[_0x223122(0x186)]=function(_0x15eb35,_0x4da0a0){return _0x15eb35>_0x4da0a0;};const _0xa4138b=_0x772e70;let _0x53d5cb=_0x395780[_0x223122(0x14f)](_0x325483=>_0x325483==='--env');_0xa4138b['rLzqW'](_0x53d5cb,-0x1)&&_0x395780['splice'](_0x53d5cb,0x2),_0x53d5cb=_0x395780[_0x223122(0x14f)](_0x4e2016=>_0x4e2016==='-e'),_0xa4138b[_0x223122(0x186)](_0x53d5cb,-0x1)&&_0x395780[_0x223122(0x188)](_0x53d5cb,0x2);};function run(_0x24549e,_0x1a08ab){const _0x4f020b=a31_0x4bc987,_0x3d0287={'WuuBM':'nightwatch','WKRYK':function(_0x43948a,_0x21da34){return _0x43948a+_0x21da34;},'MyRcW':'test_settings','sSKaR':function(_0x1a1aee,_0x339a62,_0x4287b3){return _0x1a1aee(_0x339a62,_0x4287b3);},'mrnKR':_0x4f020b(0x146),'iQWqJ':_0x4f020b(0x162),'lhATJ':function(_0x379340,_0x336753){return _0x379340===_0x336753;},'OQRuk':'nightwatch-browserstack.json','KbwJP':function(_0x3e7cb2,_0x5c375b){return _0x3e7cb2(_0x5c375b);},'QqvAL':function(_0x50a4f4,_0x1ff0fa,_0x53c1c7,_0x3448a5){return _0x50a4f4(_0x1ff0fa,_0x53c1c7,_0x3448a5);},'Bokgi':'nightwatch.cmd','QnsgC':_0x4f020b(0x189),'zWOiu':_0x4f020b(0x172),'RgTsC':_0x4f020b(0x166),'ODYea':'close'},_0x2736c4=new BrowserStackSetup(_0x24549e);if(!_0x2736c4['config'])return;const _0x47d7a6=_0x3d0287['sSKaR'](getUserNightwatchConfigs,_0x24549e,_0x1a08ab),_0x14e4cf={};_0x14e4cf[_0x4f020b(0x15d)]=![];const _0x2fd5dc={};_0x2fd5dc[_0x4f020b(0x144)]=_0x3d0287['mrnKR'],_0x2fd5dc[_0x4f020b(0x168)]=0x1bb;const _0x5f4cf3={};_0x5f4cf3['webdriver']=_0x14e4cf,_0x5f4cf3[_0x4f020b(0x14b)]=_0x2fd5dc;const _0x4cb1aa=_0x5f4cf3;logger[_0x4f020b(0x15a)](_0x3d0287[_0x4f020b(0x150)]);const _0x46062d={..._0x47d7a6},_0x531955=_0x46062d,_0x3a7e53=helper['useW3C'](_0x2736c4['config']),_0x57a1c0=[];_0x2736c4[_0x4f020b(0x181)][_0x4f020b(0x15e)][_0x4f020b(0x182)]((_0x800344,_0x4b9b8c)=>{const _0xd8ff61=_0x4f020b;_0x3a7e53?_0x57a1c0['push'](helper[_0xd8ff61(0x159)](_0x2736c4[_0xd8ff61(0x181)],_0x3d0287[_0xd8ff61(0x147)],_0x4b9b8c)):_0x57a1c0['push'](helper[_0xd8ff61(0x175)](_0x2736c4['config'],_0x3d0287[_0xd8ff61(0x147)],_0x4b9b8c));});const _0x1619b1={},_0x313505=[];_0x24549e[_0x4f020b(0x187)]=_0x24549e[_0x4f020b(0x187)]||_0x24549e['e'];const _0x260490=_0x24549e[_0x4f020b(0x187)]?_0x24549e['env']['trim']()['split'](',')['map'](_0x41a4bb=>_0x41a4bb[_0x4f020b(0x176)]())[_0x4f020b(0x164)](_0x12d9fa=>_0x12d9fa!==''):[''];_0x3d0287[_0x4f020b(0x16e)](_0x260490[_0x4f020b(0x15c)],0x0)&&_0x260490[_0x4f020b(0x161)]('');_0x260490['forEach'](_0x414ce0=>{const _0x463bd5=_0x4f020b,_0x4dbd97={'AanpL':function(_0x4531e4,_0x477ee7){const _0x4a44cf=a31_0x2413;return _0x3d0287[_0x4a44cf(0x15b)](_0x4531e4,_0x477ee7);},'ISyWQ':_0x3d0287['MyRcW']};_0x57a1c0[_0x463bd5(0x182)](_0x758059=>{const _0xcae402=_0x463bd5;let _0x62ab52=_0x4dbd97[_0xcae402(0x157)](helper['getPlatformName'](_0x758059,'_'),'_'+Date[_0xcae402(0x15f)]());_0x414ce0&&(_0x62ab52+='_'+_0x414ce0);if(_0x414ce0&&(!_0x47d7a6[_0x4dbd97[_0xcae402(0x14a)]]||!_0x47d7a6[_0x4dbd97[_0xcae402(0x14a)]][_0x414ce0]))return;const _0x25f466={..._0x4cb1aa};_0x25f466[_0xcae402(0x17b)]=_0x758059;const _0x135a73=_0x25f466;_0x1619b1[_0x62ab52]=_0x414ce0?helper[_0xcae402(0x173)](_0x47d7a6[_0x4dbd97[_0xcae402(0x14a)]][_0x414ce0],_0x135a73):_0x135a73,_0x313505[_0xcae402(0x161)](_0x62ab52);});});!_0x531955['test_settings']&&(_0x531955[_0x4f020b(0x185)]={});_0x531955['test_settings']={..._0x531955[_0x4f020b(0x185)],..._0x1619b1};const _0x301a32=path['join'](__dirname,_0x3d0287[_0x4f020b(0x18a)]);fs[_0x4f020b(0x148)](_0x301a32,JSON[_0x4f020b(0x180)](_0x531955)),_0x3d0287['KbwJP'](removeExistingEnvs,_0x1a08ab);const _0x333acd=_0x3d0287[_0x4f020b(0x152)](spawn,/^win/[_0x4f020b(0x149)](process[_0x4f020b(0x16b)])?_0x3d0287['Bokgi']:_0x3d0287[_0x4f020b(0x147)],[_0x3d0287[_0x4f020b(0x16d)],_0x301a32,..._0x1a08ab[_0x4f020b(0x14e)](0x1),_0x3d0287['zWOiu'],_0x313505['join'](',')],{'stdio':_0x3d0287[_0x4f020b(0x171)]});_0x333acd['on'](_0x3d0287[_0x4f020b(0x160)],async _0x424193=>{const _0x424e88=_0x4f020b;logger['debug']('child\x20process\x20exited\x20with\x20code\x20'+_0x424193),logger[_0x424e88(0x15a)](_0x424e88(0x163)+_0x301a32),fs['unlinkSync'](_0x301a32);});}module[a31_0x4bc987(0x17f)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x32219e=a32_0x23b6;function a32_0x23b6(_0x88c86e,_0x3e8de1){const _0x5c4539=a32_0x5c45();return a32_0x23b6=function(_0x23b64e,_0x35ab1a){_0x23b64e=_0x23b64e-0x1d2;let _0x56b95c=_0x5c4539[_0x23b64e];return _0x56b95c;},a32_0x23b6(_0x88c86e,_0x3e8de1);}(function(_0x2127ae,_0x25af71){const _0x16cd0a=a32_0x23b6,_0x2d7604=_0x2127ae();while(!![]){try{const _0x5a7cd2=-parseInt(_0x16cd0a(0x1df))/0x1*(-parseInt(_0x16cd0a(0x201))/0x2)+-parseInt(_0x16cd0a(0x1fa))/0x3+parseInt(_0x16cd0a(0x207))/0x4*(parseInt(_0x16cd0a(0x1d2))/0x5)+-parseInt(_0x16cd0a(0x202))/0x6+parseInt(_0x16cd0a(0x20d))/0x7*(-parseInt(_0x16cd0a(0x1f3))/0x8)+parseInt(_0x16cd0a(0x1d3))/0x9+-parseInt(_0x16cd0a(0x1fe))/0xa*(parseInt(_0x16cd0a(0x1e2))/0xb);if(_0x5a7cd2===_0x25af71)break;else _0x2d7604['push'](_0x2d7604['shift']());}catch(_0x223749){_0x2d7604['push'](_0x2d7604['shift']());}}}(a32_0x5c45,0xeb1bc));function a32_0x5c45(){const _0x581e75=['tzJnJ','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','browser','No\x20accessibility\x20results\x20were\x20found.','3952VsDEHT','xaKeO','bstackSdkArgs','xpTzP','stringify','includeIssueType','scannerProcessingTimeout','3521553ObFPKa','VbAiq','tURnm','replace','90BtoyHG','ujsxh','accessibilityOptions.scannerVersion','74oDwFjT','410274wHuriV','wsEndpoint','browserStackEvaluate','CjOZM','accessibilityOptions.includeIssueType.bestPractice','88QUkjSO','needsReview','executeAsyncScript','accessibilityPlatform','latest','accessibilityOptions.includeIssueType.needsReview','4473BJQPLD','XOvdv','testInfo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','ItUVb','browser_version','setAccessibilityCapabilities','playwright-chromium','iSkZs','ifRFZ','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','../../helpers/helper','bkbbB','Playwright','MiKIO','performScan','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','env','accessibilityOptions','MDOQs','UUJjk','use','accessibilityOptions.wcagVersion','mBbru','AkAuU','tVVuq','method','deviceName','name','currentTest','SZrDC','format','util','bestPractice','../../helpers/logger','scannerVersion','executeScript','sEvHi','hiqtT','parse','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','warn','otTru','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','395105mjWzgV','4751298htygyi','error','No\x20summaryResults\x20found.','debug','MOzEN','evaluate','winstonLogger','phkjv','WebDriver','browserstack.accessibility','../../helpers/accessibility-automation/helper','qIyXj','15179XsRaRf','RWJnT','rbDzm','375353lhLMFo','lldCs','project','(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','accessibilityOptions.scannerProcessingTimeout','browserName','fCTuA','../../helpers/accessibility-automation/scripts','bLCbv','RTEKb','constructor','sFqWl','wcagVersion'];a32_0x5c45=function(){return _0x581e75;};return a32_0x5c45();}const util=require(a32_0x32219e(0x22e)),logger=require(a32_0x32219e(0x230))[a32_0x32219e(0x1d9)],{isAccessibilityAutomationSession}=require(a32_0x32219e(0x1dd)),{isUndefined}=require(a32_0x32219e(0x219)),scripts=require(a32_0x32219e(0x1e9));exports[a32_0x32219e(0x204)]=async(_0x1f2b74,_0x4cbe8b,_0xa63223={})=>{const _0x4a3aa0=a32_0x32219e,_0x39f618={};_0x39f618[_0x4a3aa0(0x1d7)]=_0x4a3aa0(0x1f5);const _0x354147=_0x39f618;return await _0x1f2b74[_0x4a3aa0(0x1d8)]('(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'+_0x4cbe8b[_0x4a3aa0(0x1fd)](/arguments/g,_0x354147[_0x4a3aa0(0x1d7)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x4a3aa0(0x1f7)](_0xa63223)+')');},exports['browserStackExecuteDriver']=async(_0x45def1,_0x31cfcf,_0xf95647={})=>{const _0x49ab51=a32_0x32219e,_0x2c19c8={};_0x2c19c8[_0x49ab51(0x238)]=function(_0x487fe6,_0x7c6b4a){return _0x487fe6===_0x7c6b4a;},_0x2c19c8[_0x49ab51(0x227)]=_0x49ab51(0x1db),_0x2c19c8[_0x49ab51(0x21a)]=_0x49ab51(0x21b),_0x2c19c8['hiqtT']=_0x49ab51(0x1f5);const _0xb2693c=_0x2c19c8;if(_0xb2693c[_0x49ab51(0x238)](_0x45def1['constructor'][_0x49ab51(0x22a)],_0xb2693c[_0x49ab51(0x227)]))return await _0x45def1[_0x49ab51(0x209)](_0x31cfcf,_0xf95647);else{if(_0xb2693c[_0x49ab51(0x238)](_0x45def1[_0x49ab51(0x1ec)][_0x49ab51(0x22a)],_0xb2693c[_0x49ab51(0x21a)]))return await _0x45def1[_0x49ab51(0x232)](_0x49ab51(0x1e5)+_0x31cfcf['replace'](/arguments/g,_0xb2693c[_0x49ab51(0x234)])+_0x49ab51(0x217)+JSON[_0x49ab51(0x1f7)](_0xf95647)+')');}},exports[a32_0x32219e(0x213)]=async _0x259d09=>{const _0x1f8c05=a32_0x32219e,_0xe6c1a={};_0xe6c1a['sEvHi']=_0x1f8c05(0x224),_0xe6c1a[_0x1f8c05(0x20e)]=_0x1f8c05(0x1e6),_0xe6c1a[_0x1f8c05(0x225)]=_0x1f8c05(0x206),_0xe6c1a[_0x1f8c05(0x1f6)]=_0x1f8c05(0x20c),_0xe6c1a[_0x1f8c05(0x22c)]='accessibilityOptions.authToken',_0xe6c1a['sFqWl']=_0x1f8c05(0x200);const _0x37904e=_0xe6c1a;_0x259d09[_0x1f8c05(0x220)]&&(_0x259d09[_0x1f8c05(0x220)][_0x1f8c05(0x1ee)]&&(_0x259d09[_0x37904e[_0x1f8c05(0x233)]]=_0x259d09[_0x1f8c05(0x220)]['wcagVersion']),_0x259d09[_0x1f8c05(0x220)][_0x1f8c05(0x1f9)]&&(_0x259d09[_0x37904e['XOvdv']]=_0x259d09[_0x1f8c05(0x220)][_0x1f8c05(0x1f9)]),_0x259d09[_0x1f8c05(0x220)][_0x1f8c05(0x1f8)]&&(_0x259d09[_0x37904e['mBbru']]=_0x259d09['accessibilityOptions'][_0x1f8c05(0x1f8)][_0x1f8c05(0x22f)],_0x259d09[_0x37904e['xpTzP']]=_0x259d09['accessibilityOptions']['includeIssueType'][_0x1f8c05(0x208)]));const _0x55e7d6=JSON[_0x1f8c05(0x235)](process[_0x1f8c05(0x21f)][_0x1f8c05(0x21e)])[_0x1f8c05(0x231)];_0x259d09[_0x37904e['SZrDC']]=process[_0x1f8c05(0x21f)]['BS_A11Y_JWT'],_0x259d09[_0x37904e[_0x1f8c05(0x1ed)]]=_0x55e7d6,delete _0x259d09[_0x1f8c05(0x220)];},exports['getAccessibilityResults']=async _0x3cded8=>{const _0x17f1f1=a32_0x32219e,_0x24a9fc={};_0x24a9fc[_0x17f1f1(0x1fc)]=_0x17f1f1(0x1f2),_0x24a9fc['qIyXj']=_0x17f1f1(0x239);const _0x2bf8a5=_0x24a9fc;if(global[_0x17f1f1(0x20a)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x3cded8,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x3cded8,scripts.getResults);return res;}catch{return logger[_0x17f1f1(0x1d4)](_0x2bf8a5[_0x17f1f1(0x1fc)]),[];}else return logger[_0x17f1f1(0x237)](_0x2bf8a5[_0x17f1f1(0x1de)]),[];},exports[a32_0x32219e(0x21d)]=async(_0x1aa705,_0xebefb4='')=>{const _0x5b50a8=a32_0x32219e;if(global['accessibilityPlatform']){const _0x43a0e0={};return _0x43a0e0[_0x5b50a8(0x228)]=_0xebefb4,await exports[_0x5b50a8(0x204)](_0x1aa705,scripts[_0x5b50a8(0x21d)],_0x43a0e0);}},exports['getAccessibilityResultsSummary']=async _0x33b85c=>{const _0x4d4c80=a32_0x32219e,_0x5f2379={};_0x5f2379[_0x4d4c80(0x1ef)]=_0x4d4c80(0x1d5),_0x5f2379[_0x4d4c80(0x221)]=_0x4d4c80(0x1f0);const _0x4d3c3b=_0x5f2379;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x33b85c,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x33b85c,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x4d4c80(0x1d6)](_0x4d3c3b['tzJnJ']),{};}else return logger['warn'](_0x4d3c3b[_0x4d4c80(0x221)]),{};},exports['platformValidation']=async _0x412fa2=>{const _0x29e17e=a32_0x32219e,_0x33b153={'zisXd':function(_0x3b4625,_0x383eac){return _0x3b4625!==_0x383eac;},'phkjv':_0x29e17e(0x210),'CjOZM':function(_0x38f8f7,_0x1d461a){return _0x38f8f7===_0x1d461a;},'ifRFZ':'chrome','fCTuA':_0x29e17e(0x214),'ItUVb':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','UUJjk':function(_0x3db93b,_0x13cd50){return _0x3db93b(_0x13cd50);},'RTEKb':_0x29e17e(0x20b),'QSftH':function(_0x3c1cee,_0x434e23){return _0x3c1cee>_0x434e23;},'OtkFD':_0x29e17e(0x236)};try{if(!_0x33b153['zisXd'](_0x412fa2[_0x29e17e(0x229)],''))return logger[_0x29e17e(0x237)](_0x33b153[_0x29e17e(0x1da)]),![];const _0x5ea47a=_0x412fa2[_0x29e17e(0x1f1)];if(!(_0x33b153[_0x29e17e(0x205)](_0x5ea47a,_0x33b153[_0x29e17e(0x216)])||_0x33b153[_0x29e17e(0x205)](_0x5ea47a,_0x33b153[_0x29e17e(0x1e8)])))return logger[_0x29e17e(0x237)](_0x33b153[_0x29e17e(0x211)]),![];const _0x15c853=_0x33b153[_0x29e17e(0x222)](parseInt,_0x412fa2[_0x29e17e(0x212)]);if(!(_0x33b153[_0x29e17e(0x205)](_0x15c853,_0x33b153[_0x29e17e(0x1eb)])||_0x33b153['QSftH'](_0x15c853,0x5e)))return logger[_0x29e17e(0x237)](_0x33b153['OtkFD']),![];}catch(_0x557936){logger['debug']('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util['format'](_0x557936));}return!![];},exports['processAccessibilityCaps']=(_0x5d1d05,_0x4211c9,_0x3346af)=>{const _0x44f53a=a32_0x32219e,_0x97fa6c={'iSkZs':function(_0x31e2c1){return _0x31e2c1();},'xaKeO':_0x44f53a(0x1dc),'rbDzm':function(_0x276a98,_0x5ae290){return _0x276a98===_0x5ae290;},'RWJnT':'chrome','bLCbv':function(_0x1a28b9,_0x2997f9){return _0x1a28b9===_0x2997f9;},'sLrno':'playwright-chromium','MiKIO':_0x44f53a(0x218),'PoZYc':'latest','VbAiq':function(_0x5300c7,_0x50a09c){return _0x5300c7>_0x50a09c;},'lIBVj':_0x44f53a(0x236),'lldCs':function(_0x582579,_0x4dbc26){return _0x582579(_0x4dbc26);},'ujsxh':_0x44f53a(0x210),'AkAuU':function(_0x3842c5,_0x1b7a0e){return _0x3842c5+_0x1b7a0e;}};try{if(_0x97fa6c[_0x44f53a(0x215)](isAccessibilityAutomationSession)){global[_0x44f53a(0x20a)]=!![];!_0x5d1d05[_0x97fa6c[_0x44f53a(0x1f4)]]&&(global[_0x44f53a(0x20a)]=![]);!(_0x97fa6c[_0x44f53a(0x1e1)](_0x5d1d05['browserName'],_0x97fa6c[_0x44f53a(0x1e0)])||_0x97fa6c[_0x44f53a(0x1ea)](_0x5d1d05[_0x44f53a(0x1e7)],_0x97fa6c['sLrno']))&&(logger[_0x44f53a(0x237)](_0x97fa6c[_0x44f53a(0x21c)]),global[_0x44f53a(0x20a)]=![]);!(_0x97fa6c[_0x44f53a(0x1e1)](_0x5d1d05[_0x44f53a(0x212)],_0x97fa6c['PoZYc'])||_0x97fa6c[_0x44f53a(0x1fb)](_0x5d1d05['browser_version'],0x5e))&&(logger[_0x44f53a(0x237)](_0x97fa6c['lIBVj']),global[_0x44f53a(0x20a)]=![]);!_0x97fa6c[_0x44f53a(0x1e3)](isUndefined,_0x5d1d05['deviceName'])&&(logger['warn'](_0x97fa6c[_0x44f53a(0x1ff)]),global[_0x44f53a(0x20a)]=![]);if(!global[_0x44f53a(0x20a)]){_0x5d1d05[_0x97fa6c[_0x44f53a(0x1f4)]]=![];const _0xeb9f6b=_0x97fa6c[_0x44f53a(0x226)](_0x4211c9,_0x97fa6c['lldCs'](encodeURIComponent,JSON[_0x44f53a(0x1f7)](_0x5d1d05)));_0x3346af&&(_0x3346af[_0x44f53a(0x22b)][_0x44f53a(0x20f)][_0x44f53a(0x1e4)][_0x44f53a(0x223)]['connectOptions'][_0x44f53a(0x203)]=_0xeb9f6b);}}}catch(_0xd490fc){logger[_0x44f53a(0x1d6)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x44f53a(0x22d)](_0xd490fc));}};
|
|
1
|
+
function a32_0x5441(_0xed82c7,_0x53f091){const _0x5c2f75=a32_0x5c2f();return a32_0x5441=function(_0x5441e6,_0x3fefba){_0x5441e6=_0x5441e6-0x150;let _0x438e73=_0x5c2f75[_0x5441e6];return _0x438e73;},a32_0x5441(_0xed82c7,_0x53f091);}const a32_0x37bba5=a32_0x5441;(function(_0x26bef6,_0xf96f42){const _0x2ea88c=a32_0x5441,_0x1ab887=_0x26bef6();while(!![]){try{const _0x168052=parseInt(_0x2ea88c(0x156))/0x1+-parseInt(_0x2ea88c(0x19f))/0x2*(parseInt(_0x2ea88c(0x18e))/0x3)+-parseInt(_0x2ea88c(0x168))/0x4+-parseInt(_0x2ea88c(0x150))/0x5*(parseInt(_0x2ea88c(0x15a))/0x6)+-parseInt(_0x2ea88c(0x188))/0x7*(parseInt(_0x2ea88c(0x1ae))/0x8)+parseInt(_0x2ea88c(0x1b6))/0x9+parseInt(_0x2ea88c(0x18b))/0xa;if(_0x168052===_0xf96f42)break;else _0x1ab887['push'](_0x1ab887['shift']());}catch(_0x1ac721){_0x1ab887['push'](_0x1ab887['shift']());}}}(a32_0x5c2f,0x9cb64));function a32_0x5c2f(){const _0xbeaab9=['KJJcq','stringify','UkFhi','method','getAccessibilityResultsSummary','kVZuo','WebDriver','3546012cxAZyX','env','browser','warn','needsReview','malUd','BpiIS','accessibilityOptions.scannerProcessingTimeout','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','UmDar','wuPoz','error','util','accessibilityOptions.includeIssueType.needsReview','ruZfe','accessibilityOptions','connectOptions','bYNPv','Obzgw','../../helpers/accessibility-automation/scripts','OwVMe','wTiKU','URzwW','No\x20summaryResults\x20found.','winstonLogger','YDdTE','replace','No\x20accessibility\x20results\x20were\x20found.','includeIssueType','nZGoU','deviceName','processAccessibilityCaps','7FAlLfJ','debug','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','16641750gHhcFD','bstackSdkArgs','playwright-chromium','112848ZtMbqi','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','use','zwVsZ','BS_A11Y_JWT','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','VUPUN','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','accessibilityOptions.authToken','platformValidation','setAccessibilityCapabilities','accessibilityOptions.wcagVersion','zxOSS','mpHNk','currentTest','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','GCVli','34mmrlby','browserStackExecuteDriver','accessibilityPlatform','name','GFVvM','browserstack.accessibility','agqUt','SkJvt','../../helpers/helper','performScan','SaVEZ','constructor','latest','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','scannerVersion','1578072qjefkh','accessibilityOptions.includeIssueType.bestPractice','browserName','NjflI','scannerProcessingTimeout','bCScP','PmFnV','WLxEq','11540385cQXJbC','getAccessibilityResults','JMycV','browser_version','75NmTGcl','../../helpers/logger','QfBmZ','WNTwJ','ODDks','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','8171jshUaE','DrceS','DJFjP','parse','235794oKeSIs','browserStackEvaluate','wcagVersion','format','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','GpuRI','executeScript'];a32_0x5c2f=function(){return _0xbeaab9;};return a32_0x5c2f();}const util=require(a32_0x37bba5(0x174)),logger=require(a32_0x37bba5(0x151))[a32_0x37bba5(0x180)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a32_0x37bba5(0x1a7)),scripts=require(a32_0x37bba5(0x17b));exports[a32_0x37bba5(0x15b)]=async(_0x2e7f13,_0x1d1601,_0x888d6e={})=>{const _0x4de2bf=a32_0x37bba5,_0x30c031={};_0x30c031[_0x4de2bf(0x16d)]=_0x4de2bf(0x18c);const _0x19f1c3=_0x30c031;return await _0x2e7f13['evaluate']('(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'+_0x1d1601[_0x4de2bf(0x182)](/arguments/g,_0x19f1c3[_0x4de2bf(0x16d)])+_0x4de2bf(0x18f)+JSON['stringify'](_0x888d6e)+')');},exports[a32_0x37bba5(0x1a0)]=async(_0x2451f8,_0x54b85a,_0x534d47={})=>{const _0x199c19=a32_0x37bba5,_0x134f25={};_0x134f25['GXrkq']=function(_0x3d4d22,_0x879f57){return _0x3d4d22===_0x879f57;},_0x134f25[_0x199c19(0x194)]=_0x199c19(0x167),_0x134f25[_0x199c19(0x19b)]=function(_0x42189a,_0x27fb7d){return _0x42189a===_0x27fb7d;},_0x134f25[_0x199c19(0x171)]='Playwright',_0x134f25['NjflI']=_0x199c19(0x18c);const _0x219acd=_0x134f25;if(_0x219acd['GXrkq'](_0x2451f8[_0x199c19(0x1aa)]['name'],_0x219acd[_0x199c19(0x194)]))return await _0x2451f8['executeAsyncScript'](_0x54b85a,_0x534d47);else{if(_0x219acd[_0x199c19(0x19b)](_0x2451f8[_0x199c19(0x1aa)][_0x199c19(0x1a2)],_0x219acd[_0x199c19(0x171)]))return await _0x2451f8[_0x199c19(0x160)](_0x199c19(0x18a)+_0x54b85a[_0x199c19(0x182)](/arguments/g,_0x219acd[_0x199c19(0x1b1)])+_0x199c19(0x193)+JSON[_0x199c19(0x162)](_0x534d47)+')');}},exports[a32_0x37bba5(0x198)]=async _0x178b58=>{const _0xcec967=a32_0x37bba5,_0x4b87be={};_0x4b87be[_0xcec967(0x1a9)]=_0xcec967(0x199),_0x4b87be[_0xcec967(0x157)]=_0xcec967(0x16f),_0x4b87be[_0xcec967(0x1a5)]=_0xcec967(0x1af),_0x4b87be['DJFjP']=_0xcec967(0x175),_0x4b87be[_0xcec967(0x16e)]=_0xcec967(0x196),_0x4b87be[_0xcec967(0x1a6)]='accessibilityOptions.scannerVersion';const _0x886375=_0x4b87be;_0x178b58[_0xcec967(0x177)]&&(_0x178b58[_0xcec967(0x177)][_0xcec967(0x15c)]&&(_0x178b58[_0x886375[_0xcec967(0x1a9)]]=_0x178b58[_0xcec967(0x177)][_0xcec967(0x15c)]),_0x178b58[_0xcec967(0x177)][_0xcec967(0x1b2)]&&(_0x178b58[_0x886375[_0xcec967(0x157)]]=_0x178b58[_0xcec967(0x177)][_0xcec967(0x1b2)]),_0x178b58[_0xcec967(0x177)]['includeIssueType']&&(_0x178b58[_0x886375['agqUt']]=_0x178b58[_0xcec967(0x177)][_0xcec967(0x184)]['bestPractice'],_0x178b58[_0x886375[_0xcec967(0x158)]]=_0x178b58[_0xcec967(0x177)]['includeIssueType'][_0xcec967(0x16c)]));const _0x227753=JSON[_0xcec967(0x159)](process[_0xcec967(0x169)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0xcec967(0x1ad)];_0x178b58[_0x886375[_0xcec967(0x16e)]]=process['env'][_0xcec967(0x192)],_0x178b58[_0x886375[_0xcec967(0x1a6)]]=_0x227753,delete _0x178b58[_0xcec967(0x177)];},exports[a32_0x37bba5(0x1b7)]=async _0x540b3c=>{const _0x5166cf=a32_0x37bba5,_0x4184f6={};_0x4184f6[_0x5166cf(0x17a)]=_0x5166cf(0x183),_0x4184f6[_0x5166cf(0x154)]=_0x5166cf(0x19d);const _0x577457=_0x4184f6;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x540b3c,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x540b3c,scripts.getResults);return res;}catch{return logger[_0x5166cf(0x173)](_0x577457['Obzgw']),[];}else return logger[_0x5166cf(0x16b)](_0x577457[_0x5166cf(0x154)]),[];},exports[a32_0x37bba5(0x1a8)]=async(_0x56ce24,_0x5f4a1='')=>{const _0x454eee=a32_0x37bba5;if(global['accessibilityPlatform']){const _0x52271a={};return _0x52271a[_0x454eee(0x164)]=_0x5f4a1,await exports[_0x454eee(0x15b)](_0x56ce24,scripts[_0x454eee(0x1a8)],_0x52271a);}},exports[a32_0x37bba5(0x165)]=async _0x57e5a8=>{const _0x11b01b=a32_0x37bba5,_0x923aa2={};_0x923aa2['PmFnV']=_0x11b01b(0x17f),_0x923aa2[_0x11b01b(0x191)]=_0x11b01b(0x15e);const _0x313177=_0x923aa2;if(global[_0x11b01b(0x1a1)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x57e5a8,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x57e5a8,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x11b01b(0x189)](_0x313177[_0x11b01b(0x1b4)]),{};}else return logger['warn'](_0x313177[_0x11b01b(0x191)]),{};},exports[a32_0x37bba5(0x197)]=async _0x15646a=>{const _0x2fb0df=a32_0x37bba5,_0x401a77={'bNrdr':function(_0x32b3e3,_0x4b10f5){return _0x32b3e3!==_0x4b10f5;},'URzwW':_0x2fb0df(0x155),'ruZfe':function(_0xf2d832,_0xe6b3c3){return _0xf2d832===_0xe6b3c3;},'bYNPv':'chrome','GpuRI':function(_0x1a0530,_0x3f1af7){return _0x1a0530===_0x3f1af7;},'BgyrF':_0x2fb0df(0x18d),'Fajgg':_0x2fb0df(0x1ac),'nZGoU':function(_0x84d5c5,_0x3e8dc5){return _0x84d5c5(_0x3e8dc5);},'zxOSS':function(_0x15c55b,_0x27cea8){return _0x15c55b===_0x27cea8;},'IizQQ':_0x2fb0df(0x1ab),'bCScP':function(_0x5d5ed7,_0x1dba27){return _0x5d5ed7>_0x1dba27;},'UkFhi':_0x2fb0df(0x195)};try{if(!_0x401a77['bNrdr'](_0x15646a[_0x2fb0df(0x186)],''))return logger[_0x2fb0df(0x16b)](_0x401a77[_0x2fb0df(0x17e)]),![];const _0x845e6d=_0x15646a[_0x2fb0df(0x16a)];if(!(_0x401a77[_0x2fb0df(0x176)](_0x845e6d,_0x401a77[_0x2fb0df(0x179)])||_0x401a77[_0x2fb0df(0x15f)](_0x845e6d,_0x401a77['BgyrF'])))return logger[_0x2fb0df(0x16b)](_0x401a77['Fajgg']),![];const _0x35b2b7=_0x401a77[_0x2fb0df(0x185)](parseInt,_0x15646a[_0x2fb0df(0x1b9)]);if(!(_0x401a77[_0x2fb0df(0x19a)](_0x35b2b7,_0x401a77['IizQQ'])||_0x401a77[_0x2fb0df(0x1b3)](_0x35b2b7,0x5e)))return logger[_0x2fb0df(0x16b)](_0x401a77[_0x2fb0df(0x163)]),![];}catch(_0x10aabc){logger[_0x2fb0df(0x189)](_0x2fb0df(0x170)+util[_0x2fb0df(0x15d)](_0x10aabc));}return!![];},exports[a32_0x37bba5(0x187)]=(_0x4e0cfb,_0x36de16,_0x12c3d8)=>{const _0x53702a=a32_0x37bba5,_0x49c205={'kVZuo':function(_0xaf342c){return _0xaf342c();},'GCVli':_0x53702a(0x1a4),'JEeRu':function(_0x48f735,_0x92c0ad){return _0x48f735===_0x92c0ad;},'JMycV':'chrome','IoTYL':function(_0x10e0c0,_0x24f289){return _0x10e0c0===_0x24f289;},'WNTwJ':_0x53702a(0x18d),'YDdTE':_0x53702a(0x1ac),'QfBmZ':function(_0x417d15,_0x308e6e){return _0x417d15===_0x308e6e;},'wTiKU':_0x53702a(0x1ab),'WLxEq':function(_0x38cc8e,_0x3588d3){return _0x38cc8e>_0x3588d3;},'wuPoz':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','KJJcq':function(_0x388e06,_0x5e857e){return _0x388e06(_0x5e857e);},'GFVvM':_0x53702a(0x155),'OwVMe':function(_0x5bf1dc,_0x2da056){return _0x5bf1dc+_0x2da056;},'DQxur':function(_0x570ec9,_0x261cc0){return _0x570ec9(_0x261cc0);}};try{if(_0x49c205[_0x53702a(0x166)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x4e0cfb[_0x49c205[_0x53702a(0x19e)]]&&(global[_0x53702a(0x1a1)]=![]);!(_0x49c205['JEeRu'](_0x4e0cfb[_0x53702a(0x1b0)],_0x49c205[_0x53702a(0x1b8)])||_0x49c205['IoTYL'](_0x4e0cfb['browserName'],_0x49c205[_0x53702a(0x153)]))&&(logger[_0x53702a(0x16b)](_0x49c205[_0x53702a(0x181)]),global[_0x53702a(0x1a1)]=![]);!(_0x49c205[_0x53702a(0x152)](_0x4e0cfb[_0x53702a(0x1b9)],_0x49c205[_0x53702a(0x17d)])||_0x49c205[_0x53702a(0x1b5)](_0x4e0cfb[_0x53702a(0x1b9)],0x5e))&&(logger[_0x53702a(0x16b)](_0x49c205[_0x53702a(0x172)]),global[_0x53702a(0x1a1)]=![]);!_0x49c205[_0x53702a(0x161)](isUndefined,_0x4e0cfb['deviceName'])&&(logger['warn'](_0x49c205[_0x53702a(0x1a3)]),global[_0x53702a(0x1a1)]=![]);if(!global[_0x53702a(0x1a1)]){_0x4e0cfb[_0x49c205['GCVli']]=![];const _0x52f040=_0x49c205[_0x53702a(0x17c)](_0x36de16,_0x49c205['DQxur'](encodeURIComponent,JSON[_0x53702a(0x162)](_0x4e0cfb)));_0x12c3d8&&(_0x12c3d8[_0x53702a(0x19c)]['testInfo']['project'][_0x53702a(0x190)][_0x53702a(0x178)]['wsEndpoint']=_0x52f040);}}}catch(_0x2ed7fc){logger[_0x53702a(0x189)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x53702a(0x15d)](_0x2ed7fc));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a33_0x17dc7a=a33_0x59f3;(function(_0x2ecfcc,_0x4ceaa5){const _0x4fa298=a33_0x59f3,_0x4f33be=_0x2ecfcc();while(!![]){try{const _0x4081c9=parseInt(_0x4fa298(0x16e))/0x1*(-parseInt(_0x4fa298(0x1cf))/0x2)+-parseInt(_0x4fa298(0x183))/0x3+parseInt(_0x4fa298(0x173))/0x4+parseInt(_0x4fa298(0x1bf))/0x5*(-parseInt(_0x4fa298(0x1eb))/0x6)+-parseInt(_0x4fa298(0x17e))/0x7+parseInt(_0x4fa298(0x1cb))/0x8*(parseInt(_0x4fa298(0x165))/0x9)+parseInt(_0x4fa298(0x184))/0xa;if(_0x4081c9===_0x4ceaa5)break;else _0x4f33be['push'](_0x4f33be['shift']());}catch(_0x5c7a74){_0x4f33be['push'](_0x4f33be['shift']());}}}(a33_0x1be1,0x615ad));function a33_0x1be1(){const _0x5294a7=['Cjlea','lsTng','info','WlLoF','6465798NkAZZE','../../helpers/helper','getPackageType','string','VrOEL','WXLEb','vqkMx','UBgwV','testMatch','2qIWmYT','aLtEw','markSDKSetupComplete','globalSetup','--grep','326212WBWewV','exports','test','sagam','QjFIr','startsWith','HsNQl','inherit','platforms','BrowserStack\x20config\x20file\x20not\x20found.','BrowserStack\x20Accessibility\x20Automation\x20Test\x20Run\x20ID:\x20','4643142HOJwQF','Mykcb','serializeToYamlString','hmYUS','path','993543wIGhIY','9172370JrimAn','iPYYR','jWEoB','../../helpers/test-observability/sessionHandler','oQvgI','logLevel','tIRbV','resolve','kolnQ','object','pJaMM','eWfNJ','cliConfig','get','platform','MODULE','trim','--config','child_process','teMVd','BROWSERSTACK_RERUN_TESTS','4|3|2|0|1','config','Deleting\x20','true','lYLBU','browserstackSetupConfig.json','TBUiA','length','PACKAGE_TYPE','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','split','homedir','existsSync','../../helpers/test-observability/constants','env','isFalse','LInHB','stringify','ALEgu','CXNyM','getProxyUrl','cwd','RRdFR','reporter','BROWSERSTACK_RERUN','JniPC','respectGitIgnore','collectFilesForProject','fGvcj','AsWmJ','testObservability','PuZUT','XyuEM','slice','BROWSERSTACK_TEST_ACCESSIBILITY_YML','automation','Ifpec','finalExecution','10jNyyCI','jndgu','isTrue','BROWSERSTACK_TEST_OBSERVABILITY','debug','PLAYWRIGHT','RLbEt','--disable-test-observability','tIkdn','playwright-browserstack-sdk.config.cjs','skipSessionName','BROWSERSTACK_SETUP_CONFIG_PATH','8Hejtlv','accessibilityOptions','push','--config=','188098pqFIhR','RjoBv','Zgwnu','splice','isUndefined','gNLoP','playwright','XuOqJ','win32','dUJsj','LcYve','filter','@playwright/test','apply','FcohS','iSkqq','resolvedConfigFile','bgozl','ywFjZ','hJolb','ItWwg','readFileSync','./accessibility-helper','initialize','dirname','launch','../../helpers/test-observability/utils','PyRkJ','407586amMeEh','xFisf','has','hcHuK','SOULX','FBxoQ','OEsoB','join','./reporter/reporter.js','./reporter/pwUtils','getConfigPath','FllLK','parse','ZgPVr','BS_A11Y_TEST_RUN_ID','_internal','TLYPe','concat','winstonLogger','assign','skipSessionStatus','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','FUGVW','error','playwright-browserstack-sdk.config.js','map','requirePWModule','npx','.browserstack','rmTxT','nUfIu','false','exitCode','null','NAwvi','../utils/constants','filterBrowserstackConfig','bQSYf','XLSXI','BS_A11Y_JWT','YcWtB','unlinkSync','Error\x20in\x20getting\x20funnel\x20data\x20results','--disable-browserstack-automation','YtNAM','argv','USER_CONFIG_DETAILS_PATH','VGgDC','util','../../helpers/logger','JyJfV','testContextOptions','ueqIW','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','CsGHO','LdHOS','testDir','oAsFG','nestedKeyValue','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','fxEQv','pw_result.json','Error\x20in\x20deleting\x20playwright\x20results','accessibility','writeFileSync','JPRYI','BtLiA','WbRYE','rfCJf','Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','testIgnore','BROWSERSTACK_AUTOMATION','project','Playwright\x20process\x20exited\x20with\x20code\x20'];a33_0x1be1=function(){return _0x5294a7;};return a33_0x1be1();}const fs=require('fs'),path=require(a33_0x17dc7a(0x182)),os=require('os'),{spawn}=require(a33_0x17dc7a(0x196)),{format}=require(a33_0x17dc7a(0x147)),logger=require(a33_0x17dc7a(0x148))[a33_0x17dc7a(0x129)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0x17dc7a(0x166)),constants=require(a33_0x17dc7a(0x13a)),{FRAMEWORKS}=require(a33_0x17dc7a(0x1a6)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0x17dc7a(0x120)),{CrashReporter,o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{getFrameworkVersion}=require(a33_0x17dc7a(0x1e9)),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a33_0x17dc7a(0x1e5)),SessionHandler=require(a33_0x17dc7a(0x187));async function requireOrImportDefaultObject(_0x271582){const _0x227796=a33_0x17dc7a,_0x11c177={'Zgwnu':function(_0x92367f){return _0x92367f();},'Mykcb':function(_0x47adc2,_0x482056){return _0x47adc2(_0x482056);},'fxEQv':function(_0x484155,_0x2b911c){return _0x484155===_0x2b911c;},'ItWwg':_0x227796(0x18d),'Ifpec':function(_0x23e6de,_0x3d5397){return _0x23e6de in _0x3d5397;},'PyRkJ':'default'},{requireOrImport:_0x97bcb1}=helper[_0x227796(0x131)][_0x227796(0x1dc)](null,_0x11c177[_0x227796(0x1d1)](getTransformPath));let _0x5d9ce5=await _0x11c177[_0x227796(0x17f)](_0x97bcb1,_0x271582);return _0x5d9ce5&&_0x11c177[_0x227796(0x153)](typeof _0x5d9ce5,_0x11c177[_0x227796(0x1e3)])&&_0x11c177[_0x227796(0x1bd)](_0x11c177[_0x227796(0x1ea)],_0x5d9ce5)&&(_0x5d9ce5=_0x5d9ce5[_0x11c177['PyRkJ']]),_0x5d9ce5;}const getUserPlaywrightConfig=async(_0x50497d,_0x1e9269)=>{const _0x2b4215=a33_0x17dc7a,_0x536a1b={'CsGHO':function(_0x4f3a65){return _0x4f3a65();},'dUJsj':function(_0x103e3b,_0x439eee){return _0x103e3b(_0x439eee);},'CXNyM':_0x2b4215(0x1df),'XyuEM':'Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','FcohS':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','pJaMM':_0x2b4215(0x1ce)},_0x1540ad=!helper[_0x2b4215(0x1d3)](_0x50497d[_0x2b4215(0x19a)]),_0x44ad88=_0x1540ad?path[_0x2b4215(0x18b)](process[_0x2b4215(0x1ae)](),_0x50497d[_0x2b4215(0x19a)]):process[_0x2b4215(0x1ae)](),{resolveConfigFile:_0x4eaad0,resolveConfigLocation:_0x1021d2}=helper[_0x2b4215(0x131)][_0x2b4215(0x1dc)](null,_0x536a1b[_0x2b4215(0x14d)](getConfigLoaderPath)),_0x5e78d4=_0x4eaad0?_0x536a1b[_0x2b4215(0x1d8)](_0x4eaad0,_0x44ad88):helper[_0x2b4215(0x151)](_0x536a1b[_0x2b4215(0x1d8)](_0x1021d2,_0x44ad88),[_0x536a1b[_0x2b4215(0x1ac)]]);let _0x3042ac={};if(_0x5e78d4){logger['info']('Getting\x20your\x20playwright\x20config\x20from\x20'+_0x5e78d4);try{_0x3042ac=await _0x536a1b[_0x2b4215(0x1d8)](requireOrImportDefaultObject,_0x5e78d4);}catch(_0x168eb2){return logger['error'](_0x536a1b[_0x2b4215(0x1b9)],_0x536a1b[_0x2b4215(0x1d8)](format,_0x168eb2)),null;}}else logger[_0x2b4215(0x163)](_0x536a1b[_0x2b4215(0x1dd)]);if(_0x1540ad){const _0x342a2d=_0x1e9269['findIndex'](_0x294ee9=>_0x294ee9===_0x2b4215(0x195)||_0x294ee9==='-c'||_0x294ee9[_0x2b4215(0x178)]('--config='));_0x1e9269[_0x2b4215(0x1d2)](_0x342a2d,_0x1e9269[_0x342a2d]['startsWith'](_0x536a1b[_0x2b4215(0x18e)])?0x1:0x2);}const _0x2111fb={};return _0x2111fb['path']=_0x5e78d4,_0x2111fb['config']=_0x3042ac,_0x2111fb;},setGlobalSetup=(_0xdd33c3,_0x4700bf)=>{const _0x201963=a33_0x17dc7a,_0x56fb80={'WlLoF':'globalSetup','ujqMl':_0x201963(0x1a2),'fGvcj':function(_0x5d8612,_0x22cd23){return _0x5d8612+_0x22cd23;},'WXLEb':_0x201963(0x15c),'MjUez':function(_0x4ee4ac,_0x3d3196){return _0x4ee4ac(_0x3d3196);},'tIkdn':'./globalSetup.js'};if(!_0xdd33c3)return![];try{if(_0xdd33c3[_0x201963(0x171)]){let _0x4a09c9;const _0x47cb27=path['resolve'](_0x4700bf,_0xdd33c3[_0x56fb80[_0x201963(0x164)]]);if(fs[_0x201963(0x1a5)](_0x47cb27))_0x4a09c9=_0x47cb27;else{const _0x56b231={};_0x56b231['paths']=[_0x4700bf],_0x4a09c9=require[_0x201963(0x18b)](_0xdd33c3[_0x56fb80['WlLoF']],_0x56b231);}if(!_0x4a09c9)throw new Error(_0x56fb80['ujqMl']);process[_0x201963(0x1a7)][_0x201963(0x14c)]=_0x4a09c9;}}catch(_0x5e03a9){logger[_0x201963(0x12e)](_0x56fb80[_0x201963(0x1b5)](_0x56fb80[_0x201963(0x16a)],_0x56fb80['MjUez'](format,_0x5e03a9)));}return _0xdd33c3['globalSetup']=require['resolve'](_0x56fb80[_0x201963(0x1c7)]),!![];},addReporter=_0x396c92=>{const _0x4ca253=a33_0x17dc7a,_0x4dc703={};_0x4dc703[_0x4ca253(0x188)]=_0x4ca253(0x11f),_0x4dc703[_0x4ca253(0x13c)]=_0x4ca253(0x1b0),_0x4dc703[_0x4ca253(0x135)]=function(_0x5252d3,_0x31e228){return _0x5252d3===_0x31e228;},_0x4dc703[_0x4ca253(0x15a)]=_0x4ca253(0x168),_0x4dc703[_0x4ca253(0x1e1)]=_0x4ca253(0x18d);const _0x512380=_0x4dc703,_0x56f789=path[_0x4ca253(0x11e)](__dirname,_0x512380[_0x4ca253(0x188)]),_0x563eb5=[_0x56f789];if(helper[_0x4ca253(0x1d3)](_0x396c92[_0x512380['bQSYf']]))_0x396c92[_0x512380['bQSYf']]=[_0x563eb5];else{if(_0x512380['nUfIu'](typeof _0x396c92[_0x512380['bQSYf']],_0x512380[_0x4ca253(0x15a)]))_0x396c92[_0x512380[_0x4ca253(0x13c)]]=[[_0x396c92[_0x512380[_0x4ca253(0x13c)]]],_0x563eb5];else _0x512380['nUfIu'](typeof _0x396c92[_0x512380[_0x4ca253(0x13c)]],_0x512380[_0x4ca253(0x1e1)])&&_0x396c92[_0x512380['bQSYf']]['push'](_0x563eb5);}},handleO11yRerun=_0x1af970=>{const _0x2c9bc6=a33_0x17dc7a,_0x27a9c4={};_0x27a9c4[_0x2c9bc6(0x134)]=function(_0x352c1e,_0xe607a9){return _0x352c1e!==_0xe607a9;},_0x27a9c4[_0x2c9bc6(0x16f)]=_0x2c9bc6(0x138),_0x27a9c4[_0x2c9bc6(0x1d6)]=_0x2c9bc6(0x172);const _0x427c65=_0x27a9c4,_0x4c1851=helper[_0x2c9bc6(0x1c1)](process[_0x2c9bc6(0x1a7)][_0x2c9bc6(0x1b1)]);if(_0x4c1851){const _0x13a4a5=process['env'][_0x2c9bc6(0x198)],_0x3ef28c=[];if(_0x427c65[_0x2c9bc6(0x134)](_0x13a4a5,_0x427c65[_0x2c9bc6(0x16f)])&&!helper[_0x2c9bc6(0x1d3)](_0x13a4a5)){_0x13a4a5['split'](',')[_0x2c9bc6(0x130)](_0x5302aa=>{const _0x455760=_0x2c9bc6;_0x3ef28c[_0x455760(0x1cd)]('('+_0x5302aa[_0x455760(0x194)]()+')');});const _0x23de7a='^'+_0x3ef28c[_0x2c9bc6(0x11e)]('|')+'$';_0x1af970[_0x2c9bc6(0x1cd)](_0x427c65[_0x2c9bc6(0x1d6)],_0x23de7a);}}},spawnOriginalProcess=_0x288388=>{const _0x3af8c8=a33_0x17dc7a,_0x423ca4={'kolnQ':function(_0x6db5e8,_0x43dcd8,_0x45ee3f,_0x1f4435){return _0x6db5e8(_0x43dcd8,_0x45ee3f,_0x1f4435);},'FllLK':_0x3af8c8(0x132),'FUGVW':_0x3af8c8(0x1d5),'VrOEL':function(_0xcf80de,_0x2762d9){return _0xcf80de===_0x2762d9;},'JyJfV':_0x3af8c8(0x1d7),'RjoBv':_0x3af8c8(0x17a)};_0x423ca4[_0x3af8c8(0x18c)](spawn,_0x423ca4[_0x3af8c8(0x122)],[_0x423ca4[_0x3af8c8(0x12d)],..._0x288388[_0x3af8c8(0x1ba)](0x1)],{'shell':_0x423ca4[_0x3af8c8(0x169)](process['platform'],_0x423ca4[_0x3af8c8(0x149)]),'stdio':_0x423ca4[_0x3af8c8(0x1d0)],'cwd':process[_0x3af8c8(0x1ae)]()});},isTestCommand=(_0x3dd2de,_0x5cbc94)=>{const _0x1f9b97=a33_0x17dc7a,_0xdcaeeb={};_0xdcaeeb[_0x1f9b97(0x1d4)]=function(_0x54a6a8,_0x1cc0ea){return _0x54a6a8>_0x1cc0ea;},_0xdcaeeb[_0x1f9b97(0x161)]=function(_0x4d1398,_0x1475fa){return _0x4d1398===_0x1475fa;},_0xdcaeeb[_0x1f9b97(0x18f)]=_0x1f9b97(0x175);const _0x35da04=_0xdcaeeb;if(_0x35da04[_0x1f9b97(0x1d4)](_0x5cbc94[_0x1f9b97(0x1a0)],0x1)&&_0x35da04[_0x1f9b97(0x161)](_0x5cbc94[0x1],_0x35da04[_0x1f9b97(0x18f)]))return!![];return![];},initO11yCrashReporter=(_0x259f57,_0x4ba839)=>{const _0x1fe64d=a33_0x17dc7a,_0x4791f2={'oAsFG':function(_0xd7a6f0,_0x24cf53){return _0xd7a6f0(_0x24cf53);}},_0x1482d5={'frameworkName':FRAMEWORKS[_0x1fe64d(0x1c4)],'frameworkVersion':_0x4791f2[_0x1fe64d(0x150)](getFrameworkVersion,FRAMEWORKS[_0x1fe64d(0x1c4)])};CrashReporter[_0x1fe64d(0x1e6)](_0x1482d5,_0x259f57,_0x4ba839);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x51a382){const _0x5c7e79=a33_0x17dc7a,_0x5af7ae={};_0x5af7ae[_0x5c7e79(0x14b)]=function(_0x14c0ed,_0xca5270){return _0x14c0ed>_0xca5270;},_0x5af7ae[_0x5c7e79(0x16c)]=function(_0x2fed5d,_0x5e8967){return _0x2fed5d===_0x5e8967;};const _0xfd3194=_0x5af7ae;if(!_0x51a382||_0xfd3194[_0x5c7e79(0x14b)](_0x51a382[_0x5c7e79(0x1a0)],0x1)&&_0xfd3194[_0x5c7e79(0x16c)](_0x51a382[0x0],null))return process[_0x5c7e79(0x1a7)][_0x5c7e79(0x1c2)]=![],![];return!![];});function a33_0x59f3(_0x2c40af,_0x5067cc){const _0x1be192=a33_0x1be1();return a33_0x59f3=function(_0x59f3a8,_0xe51fd5){_0x59f3a8=_0x59f3a8-0x11c;let _0x4332d2=_0x1be192[_0x59f3a8];return _0x4332d2;},a33_0x59f3(_0x2c40af,_0x5067cc);}async function run(_0x431dc1,_0x514e9e){const _0x899e5a=a33_0x17dc7a,_0x2d801d={'sagam':_0x899e5a(0x133),'TBUiA':_0x899e5a(0x154),'NAwvi':function(_0x10de3b,_0x2bd226){return _0x10de3b+_0x2bd226;},'NwIJS':_0x899e5a(0x141),'ZjNUU':'6|7|0|2|5|1|3|8|4','YtNAM':function(_0x2f74c3,_0x38b04f){return _0x2f74c3(_0x38b04f);},'JPRYI':function(_0x3d8b50){return _0x3d8b50();},'iPYYR':'Error\x20in\x20closing\x20playwright','FBSND':_0x899e5a(0x142),'LcYve':_0x899e5a(0x136),'hcHuK':_0x899e5a(0x1c6),'bgozl':function(_0x36823b,_0x875538){return _0x36823b>=_0x875538;},'RRdFR':_0x899e5a(0x155),'FBxoQ':function(_0x5bcbfc,_0x530ab9,_0x3868f3){return _0x5bcbfc(_0x530ab9,_0x3868f3);},'jndgu':_0x899e5a(0x17c),'ALEgu':_0x899e5a(0x1bc),'PuZUT':function(_0x5758be,_0x26f154){return _0x5758be!=_0x26f154;},'tIRbV':function(_0x241ee7,_0x4f3cbb,_0x10826f){return _0x241ee7(_0x4f3cbb,_0x10826f);},'SOULX':function(_0x1accec,_0x409e90,_0x2483cd){return _0x1accec(_0x409e90,_0x2483cd);},'iSkqq':function(_0x2fb1dd,_0x41056f){return _0x2fb1dd(_0x41056f);},'RLbEt':_0x899e5a(0x199),'jhZVc':function(_0x2a3150,_0x392108){return _0x2a3150(_0x392108);},'lsTng':'Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','rvcht':function(_0x33b879,_0x113ff1){return _0x33b879===_0x113ff1;},'AsWmJ':_0x899e5a(0x19c),'QjFIr':function(_0x3f03d3,_0x178fd2){return _0x3f03d3(_0x178fd2);},'vqkMx':_0x899e5a(0x1db),'hJolb':function(_0x402f09,_0x3a6945){return _0x402f09(_0x3a6945);},'XLSXI':function(_0x1b10ca,_0x134b98){return _0x1b10ca===_0x134b98;},'VGgDC':_0x899e5a(0x19e),'rfCJf':'testDir','BtLiA':_0x899e5a(0x16d),'HsNQl':'testIgnore','YcWtB':function(_0x7cf77a,_0x3256b1){return _0x7cf77a+_0x3256b1;},'JniPC':'Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','YZPrd':function(_0x5bc2c8,_0x34656f){return _0x5bc2c8(_0x34656f);},'IbgsA':function(_0x55b4df,_0x5ea846){return _0x55b4df===_0x5ea846;},'hmYUS':_0x899e5a(0x1c8),'TLYPe':_0x899e5a(0x12f),'LInHB':function(_0x204b27,_0x229591){return _0x204b27>_0x229591;},'LdHOS':function(_0x1cc712,_0x3643b5,_0x599ce8,_0x3ef438){return _0x1cc712(_0x3643b5,_0x599ce8,_0x3ef438);},'AEVRt':_0x899e5a(0x132),'IeFCP':_0x899e5a(0x1d5),'jWEoB':_0x899e5a(0x175),'xFisf':_0x899e5a(0x195),'OEsoB':function(_0x1982ba,_0x27e250){return _0x1982ba===_0x27e250;},'teMVd':_0x899e5a(0x1d7),'ZgPVr':_0x899e5a(0x17a),'lYLBU':'close'};!helper[_0x899e5a(0x1a8)](process[_0x899e5a(0x1a7)][_0x899e5a(0x15e)])&&(process[_0x899e5a(0x1a7)]['BROWSERSTACK_AUTOMATION']=!![]);process[_0x899e5a(0x144)]['includes'](_0x2d801d['FBSND'])&&(process[_0x899e5a(0x1a7)][_0x899e5a(0x15e)]=_0x2d801d[_0x899e5a(0x1d9)],_0x514e9e=_0x514e9e[_0x899e5a(0x1da)](_0x2034b9=>_0x2034b9!==_0x899e5a(0x142)));const _0x29d942=_0x514e9e['indexOf'](_0x2d801d[_0x899e5a(0x1ee)]);_0x2d801d[_0x899e5a(0x1e0)](_0x29d942,0x0)&&(process[_0x899e5a(0x1a7)][_0x899e5a(0x1c2)]=_0x2d801d['LcYve'],_0x514e9e=_0x514e9e[_0x899e5a(0x1da)](_0x40d375=>_0x40d375!==_0x899e5a(0x1c6)));try{const _0x580825=path['join'](helper[_0x899e5a(0x1a4)](),_0x2d801d['sagam'],_0x2d801d[_0x899e5a(0x19f)]);fs[_0x899e5a(0x1a5)](_0x580825)&&fs[_0x899e5a(0x140)](_0x580825);}catch(_0x192f90){logger[_0x899e5a(0x1c3)](_0x2d801d[_0x899e5a(0x139)](_0x2d801d[_0x899e5a(0x1af)],_0x192f90));}if(!_0x2d801d[_0x899e5a(0x11c)](isTestCommand,_0x431dc1,_0x514e9e)){_0x2d801d[_0x899e5a(0x143)](spawnOriginalProcess,_0x514e9e);return;}const _0x4b74c6=new BrowserStackSetup(_0x431dc1,FRAMEWORKS[_0x899e5a(0x1c4)]);if(!_0x4b74c6['config']){logger[_0x899e5a(0x12e)](_0x2d801d[_0x899e5a(0x1c0)]);return;}await _0x4b74c6[_0x899e5a(0x1e6)]();!helper[_0x899e5a(0x1d3)](_0x4b74c6[_0x899e5a(0x190)])&&_0x4b74c6[_0x899e5a(0x190)][_0x899e5a(0x1ed)](_0x2d801d['ALEgu'])&&(process[_0x899e5a(0x1a7)][_0x899e5a(0x15e)]=_0x4b74c6[_0x899e5a(0x190)][_0x899e5a(0x191)](_0x2d801d[_0x899e5a(0x1ab)])||!![]);_0x2d801d[_0x899e5a(0x1b8)](_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x1b7)],null)&&!helper[_0x899e5a(0x1c1)](process[_0x899e5a(0x1a7)][_0x899e5a(0x1c2)])&&(process['env'][_0x899e5a(0x1c2)]=process[_0x899e5a(0x1a7)][_0x899e5a(0x1c2)]||_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x1b7)]);const _0x572942=!helper[_0x899e5a(0x1a8)](process[_0x899e5a(0x1a7)][_0x899e5a(0x1c2)]);let _0x292d8b=![];_0x4b74c6['config'][_0x899e5a(0x156)]&&(_0x292d8b=!![],process[_0x899e5a(0x1a7)][_0x899e5a(0x1bb)]=_0x4b74c6['config'][_0x899e5a(0x156)]);_0x4b74c6[_0x899e5a(0x19a)]['accessibilityOptions']&&(process[_0x899e5a(0x1a7)][_0x899e5a(0x152)]=JSON[_0x899e5a(0x1aa)](_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x1cc)]));const _0x5def96=_0x514e9e[_0x899e5a(0x128)](),_0x595a31=await _0x2d801d[_0x899e5a(0x18a)](getUserPlaywrightConfig,_0x431dc1,_0x514e9e);if(helper['isUndefined'](_0x595a31)){_0x2d801d[_0x899e5a(0x143)](spawnOriginalProcess,_0x5def96);return;}const _0xd1532d={..._0x595a31[_0x899e5a(0x19a)]},_0x25e920=_0xd1532d,_0x5af379=_0x595a31[_0x899e5a(0x182)]?path[_0x899e5a(0x1e7)](_0x595a31[_0x899e5a(0x182)]):process[_0x899e5a(0x1ae)]();process[_0x899e5a(0x1a7)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x5af379;if(!_0x2d801d[_0x899e5a(0x1ef)](setGlobalSetup,_0x25e920,_0x5af379)){_0x2d801d[_0x899e5a(0x143)](spawnOriginalProcess,_0x5def96);return;}const _0xdf3a75=await SessionHandler[_0x899e5a(0x1e8)](_0x4b74c6[_0x899e5a(0x19a)],{'frameworkName':FRAMEWORKS[_0x899e5a(0x1c4)],'frameworkVersion':_0x2d801d[_0x899e5a(0x1de)](getFrameworkVersion,FRAMEWORKS[_0x899e5a(0x1c4)])});if(_0x572942){const _0x1eb65d=_0x2d801d[_0x899e5a(0x1c5)]['split']('|');let _0x56b887=0x0;while(!![]){switch(_0x1eb65d[_0x56b887++]){case'0':_0x2d801d['iSkqq'](handleO11yRerun,_0x514e9e);continue;case'1':await _0x2d801d[_0x899e5a(0x1de)](launchO11ySession,_0xdf3a75);continue;case'2':_0x2d801d['jhZVc'](addReporter,_0x25e920);continue;case'3':_0x2d801d[_0x899e5a(0x11c)](initO11yCrashReporter,_0x25e920,_0x4b74c6[_0x899e5a(0x19a)]);continue;case'4':logger[_0x899e5a(0x163)](_0x2d801d[_0x899e5a(0x162)]);continue;}break;}}let _0x218138=_0x2d801d['rvcht'](process[_0x899e5a(0x1a7)][_0x899e5a(0x1bb)],_0x2d801d[_0x899e5a(0x1b6)]);_0x218138=_0x218138||_0x2d801d[_0x899e5a(0x177)](checkAccessibilityPlatformConfig,_0x4b74c6[_0x899e5a(0x19a)]),process[_0x899e5a(0x1a7)][_0x899e5a(0x1bb)]=_0x218138;if(_0x218138){const [_0x353dd1,_0x420e31]=await _0x2d801d[_0x899e5a(0x18a)](createAccessibilityTestRun,_0x4b74c6['config'],_0x2d801d[_0x899e5a(0x16b)]);logger[_0x899e5a(0x1c3)](_0x899e5a(0x17d)+_0x420e31),process['env'][_0x899e5a(0x13e)]=_0x353dd1,process['env'][_0x899e5a(0x125)]=_0x420e31,_0x2d801d[_0x899e5a(0x1e2)](setAccessibilityCapabilities,_0x4b74c6['config']);}(helper[_0x899e5a(0x1d3)](_0x4b74c6['config'][_0x899e5a(0x17b)])||_0x2d801d[_0x899e5a(0x13d)](_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x17b)][_0x899e5a(0x1a0)],0x0))&&(process[_0x899e5a(0x1a7)]['BROWSERSTACK_AUTOMATION']=![]);const _0x5f4546=path['join'](_0x595a31[_0x899e5a(0x182)]?path[_0x899e5a(0x1e7)](_0x595a31[_0x899e5a(0x182)]):process[_0x899e5a(0x1ae)](),_0x2d801d[_0x899e5a(0x146)]);fs[_0x899e5a(0x157)](_0x5f4546,helper[_0x899e5a(0x180)](_0x4b74c6['config'])),process['env'][_0x899e5a(0x1ca)]=_0x5f4546,helper['clearTempPWConfig']();if(helper[_0x899e5a(0x1c1)](process['env'][_0x899e5a(0x15e)])){let _0x57b6ef=[];try{const _0x544eca=helper['requirePWModule'][_0x899e5a(0x1dc)](null,_0x2d801d['JPRYI'](getProjectUtilsPath)),_0x4a1d36={};_0x4a1d36[_0x899e5a(0x1b3)]=!![],_0x4a1d36[_0x899e5a(0x14f)]='',_0x4a1d36[_0x899e5a(0x16d)]='',_0x4a1d36[_0x899e5a(0x15d)]='';const _0x1f4ff9={};_0x1f4ff9[_0x899e5a(0x1b3)]=!![];const _0x11c13a={};_0x11c13a[_0x899e5a(0x15f)]=_0x4a1d36,_0x11c13a[_0x899e5a(0x126)]=_0x1f4ff9;let _0x80d001=_0x11c13a;_0x25e920[_0x2d801d[_0x899e5a(0x15b)]]&&(_0x80d001[_0x899e5a(0x15f)][_0x2d801d['rfCJf']]=_0x25e920[_0x2d801d[_0x899e5a(0x15b)]]),_0x25e920[_0x2d801d[_0x899e5a(0x159)]]&&(_0x80d001[_0x899e5a(0x15f)][_0x2d801d['BtLiA']]=_0x25e920[_0x2d801d['BtLiA']]),_0x25e920[_0x2d801d[_0x899e5a(0x179)]]&&(_0x80d001[_0x899e5a(0x15f)][_0x2d801d['HsNQl']]=_0x25e920[_0x2d801d[_0x899e5a(0x179)]]),_0x80d001=Object['assign'](_0x80d001,_0x80d001[_0x899e5a(0x15f)]),_0x57b6ef=await _0x544eca[_0x899e5a(0x1b4)](_0x80d001);}catch(_0x415bab){logger['debug'](_0x2d801d[_0x899e5a(0x13f)](_0x2d801d[_0x899e5a(0x1b2)],_0x2d801d['YZPrd'](format,_0x415bab)));}}let _0x2010e7='';_0x2d801d['IbgsA'](helper[_0x899e5a(0x167)](),constants[_0x899e5a(0x1a1)][_0x899e5a(0x193)])?_0x2010e7=_0x2d801d[_0x899e5a(0x181)]:_0x2010e7=_0x2d801d[_0x899e5a(0x127)];const _0x4cd627=path['join'](_0x595a31[_0x899e5a(0x182)]?path[_0x899e5a(0x1e7)](_0x595a31['path']):process[_0x899e5a(0x1ae)](),_0x2010e7);let _0x33124a=_0x595a31[_0x899e5a(0x182)]?_0x595a31[_0x899e5a(0x182)]:'';_0x33124a=_0x2d801d[_0x899e5a(0x1a9)](_0x33124a[_0x899e5a(0x1a0)],0x0)?path[_0x899e5a(0x18b)](_0x33124a):'',process[_0x899e5a(0x1a7)][_0x899e5a(0x145)]=_0x33124a;let _0x3ab951='\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a';const _0x3c5f2f=helper[_0x899e5a(0x1ad)](_0x4b74c6[_0x899e5a(0x19a)]);_0x3c5f2f&&(_0x3ab951=_0x2d801d['YcWtB'](_0x899e5a(0x12c)+_0x3c5f2f+'\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();',_0x3ab951));helper[_0x899e5a(0x13b)]({},_0x514e9e),fs[_0x899e5a(0x157)](_0x4cd627,_0x3ab951),helper[_0x899e5a(0x170)]();const _0x506f40=_0x2d801d[_0x899e5a(0x14e)](spawn,_0x2d801d['AEVRt'],[_0x2d801d['IeFCP'],_0x2d801d[_0x899e5a(0x186)],_0x2d801d[_0x899e5a(0x1ec)],_0x4cd627,..._0x514e9e[_0x899e5a(0x1ba)](0x2)],{'shell':_0x2d801d[_0x899e5a(0x11d)](process[_0x899e5a(0x192)],_0x2d801d[_0x899e5a(0x197)]),'stdio':_0x2d801d[_0x899e5a(0x124)],'cwd':process[_0x899e5a(0x1ae)](),'env':Object[_0x899e5a(0x12a)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x899e5a(0x121)](_0x431dc1),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x14a)][_0x899e5a(0x12b)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4b74c6['config'][_0x899e5a(0x14a)][_0x899e5a(0x1c9)],'BROWSERSTACK_LOG_LEVEL':_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x189)]})}),_0x24f0c5=()=>{const _0x5db81e=_0x899e5a;try{const _0x52ef0c=path[_0x5db81e(0x11e)](helper[_0x5db81e(0x1a4)](),_0x2d801d[_0x5db81e(0x176)],_0x2d801d[_0x5db81e(0x19f)]);if(fs['existsSync'](_0x52ef0c)){let _0xf61d5e=fs[_0x5db81e(0x1e4)](_0x52ef0c);_0xf61d5e=JSON[_0x5db81e(0x123)](_0xf61d5e),_0x4b74c6['errorMessage']=_0xf61d5e,fs[_0x5db81e(0x140)](_0x52ef0c);}}catch(_0x11c39d){logger['debug'](_0x2d801d['NAwvi'](_0x2d801d['NwIJS'],_0x11c39d));}};_0x506f40['on'](_0x2d801d[_0x899e5a(0x19d)],async _0x1d384a=>{const _0x580b33=_0x899e5a;try{const _0x188953=_0x2d801d['ZjNUU'][_0x580b33(0x1a3)]('|');let _0x58c98b=0x0;while(!![]){switch(_0x188953[_0x58c98b++]){case'0':await _0x2d801d[_0x580b33(0x143)](stopAccessibilityTestRun,_0x4b74c6['config']);continue;case'1':logger[_0x580b33(0x163)](_0x580b33(0x19b)+_0x4cd627);continue;case'2':process[_0x580b33(0x137)]=_0x1d384a;continue;case'3':fs[_0x580b33(0x140)](_0x4cd627);continue;case'4':fs[_0x580b33(0x140)](_0x5f4546);continue;case'5':logger[_0x580b33(0x1c3)](_0x580b33(0x160)+_0x1d384a);continue;case'6':_0x2d801d[_0x580b33(0x158)](_0x24f0c5);continue;case'7':await helper[_0x580b33(0x1be)](_0x4b74c6);continue;case'8':logger[_0x580b33(0x1c3)](_0x580b33(0x19b)+_0x5f4546);continue;}break;}}catch(_0x4c0ad1){logger[_0x580b33(0x1c3)](_0x2d801d[_0x580b33(0x139)](_0x2d801d[_0x580b33(0x185)],_0x4c0ad1));}});}module[a33_0x17dc7a(0x174)]=run;
|
|
2
|
+
'use strict';function a33_0x8582(){const _0x157099=['includes','4556160RrQCrE','5|4|3|1|0|6|2|7','BROWSERSTACK_TEST_ACCESSIBILITY_YML','BROWSERSTACK_PW_CONFIG_DIR','NgGYw','paths','testDir','browserstackSetupConfig.json','JPqcx','EBIzU','../../helpers/test-observability/utils','isUndefined','env','LXkuC','info','markSDKSetupComplete','apply','hqhfI','fGdRW','launchBuild','pilPU','unlinkSync','../../helpers/testhub/constants','push','hCGFh','./globalSetup.js','respectGitIgnore','winstonLogger','DNEbx','AXGKq','has','CTRPP','startsWith','isFalse','../../helpers/test-observability/constants','GoWxS','stringify','OBSERVABILITY','DsByl','testObservability','length','Getting\x20your\x20playwright\x20config\x20from\x20','../../helpers/test-observability/error-handler','../../helpers/testhub/utils','getPackageType','ZtXVi','6710648CMtKTn','globalSetup','test','win32','skipSessionStatus','koCAV','66858255QHeBGR','UzUwa','skipSessionName','map','xDefa','bpnKO','BROWSERSTACK_AUTOMATION','logLevel','string','object','--disable-browserstack-automation','nHmBQ','testMatch','LNQzU','ujaXl','TczbW','indexOf','Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','ukmGT','kkpXw','Deleting\x20','EeEsN','BrowserStack\x20config\x20file\x20not\x20found.','ivTjT','OXZKo','inherit','writeFileSync','ZvCrQ','resolve','../../helpers/logger','YhIov','playwright-browserstack-sdk.config.cjs','config','testIgnore','get','./reporter/reporter.js','error','ihOIf','BqoLd','bbNOv','argv','Error\x20in\x20closing\x20playwright','Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','tbOae','yvLfB','--config','project','981671OvHhkW','parse','cliConfig','--config=','concat','slice','../../helpers/test-observability/sessionHandler','xYDNn','sxJLB','findIndex','../../helpers/helper','vZOXJ','tuIyx','BROWSERSTACK_RERUN','IvYkb','QnfMk','qBqnU','xqoWZ','false','existsSync','BROWSERSTACK_TEST_OBSERVABILITY','accessibilityOptions','SMsRl','Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','debug','8aCcrjl','szCqS','dirname','MODULE','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','--grep','pjmDj','gIiKr','util','BROWSERSTACK_SETUP_CONFIG_PATH','jiRUq','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','LYeZP','serializeToYamlString','../../helpers/testhub/testhubHandler','ZPxOt','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','wYTby','--disable-test-observability','Error\x20in\x20getting\x20funnel\x20data\x20results','iRVbg','BVLwZ','USER_CONFIG_DETAILS_PATH','250662pYTwlk','child_process','../../helpers/BrowserStackSetup','zhbQU','gYeiG','filter','TXPGx','503306ihvvDr','Xjfuy','isTrue','platform','exports','playwright','zsYSS','join','\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();','iJPJG','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','RfHyc','xUwjx','RIEXB','cTcCv','filterBrowserstackConfig','PLAYWRIGHT','./reporter/pwUtils','playwright-browserstack-sdk.config.js','readFileSync','null','errorMessage','trim','split','SDiJr','default','finalExecution','rezYb','205YlJKum','NzYGR','nestedKeyValue','requirePWModule','Jmjcb','cwd','accessibility','_internal','initialize','5748281SVOszq','../utils/constants','homedir','assign','MVSQQ','hGjBd','path','collectFilesForProject','gOroi','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file'];a33_0x8582=function(){return _0x157099;};return a33_0x8582();}const a33_0xff277f=a33_0x418b;(function(_0x1a138b,_0x4d6ef3){const _0x42fd7f=a33_0x418b,_0x36a9dd=_0x1a138b();while(!![]){try{const _0x246f5d=-parseInt(_0x42fd7f(0x218))/0x1+parseInt(_0x42fd7f(0x250))/0x2+-parseInt(_0x42fd7f(0x280))/0x3+-parseInt(_0x42fd7f(0x2ae))/0x4+-parseInt(_0x42fd7f(0x26c))/0x5*(parseInt(_0x42fd7f(0x249))/0x6)+-parseInt(_0x42fd7f(0x275))/0x7+-parseInt(_0x42fd7f(0x231))/0x8*(-parseInt(_0x42fd7f(0x1e9))/0x9);if(_0x246f5d===_0x4d6ef3)break;else _0x36a9dd['push'](_0x36a9dd['shift']());}catch(_0x152b1a){_0x36a9dd['push'](_0x36a9dd['shift']());}}}(a33_0x8582,0xec63f));function a33_0x418b(_0x17ce30,_0x5eb907){const _0x8582e0=a33_0x8582();return a33_0x418b=function(_0x418b78,_0x39d4d5){_0x418b78=_0x418b78-0x1e6;let _0x25ce4f=_0x8582e0[_0x418b78];return _0x25ce4f;},a33_0x418b(_0x17ce30,_0x5eb907);}const fs=require('fs'),path=require(a33_0xff277f(0x27b)),os=require('os'),{spawn}=require(a33_0xff277f(0x24a)),{format}=require(a33_0xff277f(0x23a)),logger=require(a33_0xff277f(0x206))[a33_0xff277f(0x29b)],{default:BrowserStackSetup}=require(a33_0xff277f(0x24b)),helper=require(a33_0xff277f(0x222)),constants=require(a33_0xff277f(0x276)),{FRAMEWORKS}=require(a33_0xff277f(0x2a2)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0xff277f(0x261)),{CrashReporter,o11yErrorHandler}=require(a33_0xff277f(0x2aa)),{getFrameworkVersion}=require(a33_0xff277f(0x28a)),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),SessionHandler=require(a33_0xff277f(0x21e)),TestHubHandler=require(a33_0xff277f(0x240)),testHubConstants=require(a33_0xff277f(0x296)),{shouldProcessEventForTesthub}=require(a33_0xff277f(0x2ab));async function requireOrImportDefaultObject(_0x32e6ba){const _0x4c61ab=a33_0xff277f,_0x8d8374={'BqoLd':function(_0x4977a5){return _0x4977a5();},'dMVQu':function(_0x59cbd1,_0x11397b){return _0x59cbd1(_0x11397b);},'vwkBG':function(_0x395b76,_0x13e306){return _0x395b76===_0x13e306;},'JPqcx':'object','tbOae':function(_0x1e5040,_0x1925a1){return _0x1e5040 in _0x1925a1;},'Xjfuy':_0x4c61ab(0x269)},{requireOrImport:_0x3d9e7d}=helper[_0x4c61ab(0x26f)]['apply'](null,_0x8d8374[_0x4c61ab(0x20f)](getTransformPath));let _0x2df7f3=await _0x8d8374['dMVQu'](_0x3d9e7d,_0x32e6ba);return _0x2df7f3&&_0x8d8374['vwkBG'](typeof _0x2df7f3,_0x8d8374[_0x4c61ab(0x288)])&&_0x8d8374[_0x4c61ab(0x214)](_0x8d8374[_0x4c61ab(0x251)],_0x2df7f3)&&(_0x2df7f3=_0x2df7f3[_0x8d8374[_0x4c61ab(0x251)]]),_0x2df7f3;}const getUserPlaywrightConfig=async(_0x2a12a5,_0x3c9f3f)=>{const _0x5bc4b2=a33_0xff277f,_0xe076fd={'ZPxOt':function(_0x4390ad){return _0x4390ad();},'BVLwZ':function(_0xe12d99,_0x23d1f5){return _0xe12d99(_0x23d1f5);},'qMHTj':function(_0x5a2c71,_0x3a3d04){return _0x5a2c71(_0x3a3d04);},'ujaXl':'resolvedConfigFile','MVSQQ':function(_0x1ecb8a,_0x3e2c91){return _0x1ecb8a(_0x3e2c91);},'LNQzU':function(_0x15321c,_0x1a29b3){return _0x15321c+_0x1a29b3;},'oeoUn':_0x5bc4b2(0x22f),'DNEbx':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','sxJLB':_0x5bc4b2(0x21b)},_0x14df9a=!helper[_0x5bc4b2(0x28b)](_0x2a12a5[_0x5bc4b2(0x209)]),_0x373942=_0x14df9a?path[_0x5bc4b2(0x205)](process['cwd'](),_0x2a12a5['config']):process['cwd'](),{resolveConfigFile:_0x30aee1,resolveConfigLocation:_0x12ed3c}=helper[_0x5bc4b2(0x26f)][_0x5bc4b2(0x290)](null,_0xe076fd[_0x5bc4b2(0x241)](getConfigLoaderPath)),_0x596c77=_0x30aee1?_0xe076fd[_0x5bc4b2(0x247)](_0x30aee1,_0x373942):helper[_0x5bc4b2(0x26e)](_0xe076fd['qMHTj'](_0x12ed3c,_0x373942),[_0xe076fd[_0x5bc4b2(0x1f7)]]);let _0xf0ee01={};if(_0x596c77){logger[_0x5bc4b2(0x28e)](_0x5bc4b2(0x2a9)+_0x596c77);try{_0xf0ee01=await _0xe076fd[_0x5bc4b2(0x279)](requireOrImportDefaultObject,_0x596c77);}catch(_0x556af6){return logger['error'](_0xe076fd[_0x5bc4b2(0x1f6)](_0xe076fd['oeoUn'],_0xe076fd['MVSQQ'](format,_0x556af6))),null;}}else logger[_0x5bc4b2(0x28e)](_0xe076fd[_0x5bc4b2(0x29c)]);if(_0x14df9a){const _0x2c090d=_0x3c9f3f[_0x5bc4b2(0x221)](_0x342d72=>_0x342d72==='--config'||_0x342d72==='-c'||_0x342d72[_0x5bc4b2(0x2a0)](_0x5bc4b2(0x21b)));_0x3c9f3f['splice'](_0x2c090d,_0x3c9f3f[_0x2c090d][_0x5bc4b2(0x2a0)](_0xe076fd[_0x5bc4b2(0x220)])?0x1:0x2);}const _0x2ba26a={};return _0x2ba26a['path']=_0x596c77,_0x2ba26a['config']=_0xf0ee01,_0x2ba26a;},setGlobalSetup=(_0x4ba346,_0x2533c0)=>{const _0x422ec0=a33_0xff277f,_0x2ca359={'gIiKr':_0x422ec0(0x2af),'EBIzU':_0x422ec0(0x27e),'hqhfI':function(_0x5460b0,_0x1196f5){return _0x5460b0+_0x1196f5;},'lTRgt':_0x422ec0(0x213),'JMvoJ':function(_0x2dd0ef,_0x59f4fd){return _0x2dd0ef(_0x59f4fd);},'iRVbg':_0x422ec0(0x299)};if(!_0x4ba346)return![];try{if(_0x4ba346[_0x422ec0(0x2af)]){let _0x5d0d85;const _0x1dc161=path[_0x422ec0(0x205)](_0x2533c0,_0x4ba346[_0x2ca359[_0x422ec0(0x239)]]);if(fs[_0x422ec0(0x22b)](_0x1dc161))_0x5d0d85=_0x1dc161;else{const _0x53e0e1={};_0x53e0e1[_0x422ec0(0x285)]=[_0x2533c0],_0x5d0d85=require[_0x422ec0(0x205)](_0x4ba346[_0x2ca359[_0x422ec0(0x239)]],_0x53e0e1);}if(!_0x5d0d85)throw new Error(_0x2ca359[_0x422ec0(0x289)]);process[_0x422ec0(0x28c)][_0x422ec0(0x25a)]=_0x5d0d85;}}catch(_0x13746c){logger[_0x422ec0(0x20d)](_0x2ca359[_0x422ec0(0x291)](_0x2ca359['lTRgt'],_0x2ca359['JMvoJ'](format,_0x13746c)));}return _0x4ba346[_0x422ec0(0x2af)]=require['resolve'](_0x2ca359[_0x422ec0(0x246)]),!![];},addReporter=_0x542477=>{const _0x5478fd=a33_0xff277f,_0x47f16b={};_0x47f16b['Jmjcb']=_0x5478fd(0x20c),_0x47f16b[_0x5478fd(0x27d)]='reporter',_0x47f16b[_0x5478fd(0x26d)]=function(_0x42c846,_0x3e4d62){return _0x42c846===_0x3e4d62;},_0x47f16b['TXPGx']=_0x5478fd(0x1f1),_0x47f16b[_0x5478fd(0x28d)]=_0x5478fd(0x1f2);const _0x2aeb8b=_0x47f16b,_0x252381=path[_0x5478fd(0x257)](__dirname,_0x2aeb8b[_0x5478fd(0x270)]),_0x4b5d89=[_0x252381];if(helper[_0x5478fd(0x28b)](_0x542477[_0x2aeb8b[_0x5478fd(0x27d)]]))_0x542477[_0x2aeb8b[_0x5478fd(0x27d)]]=[_0x4b5d89];else{if(_0x2aeb8b['NzYGR'](typeof _0x542477[_0x2aeb8b[_0x5478fd(0x27d)]],_0x2aeb8b[_0x5478fd(0x24f)]))_0x542477[_0x2aeb8b[_0x5478fd(0x27d)]]=[[_0x542477[_0x2aeb8b['gOroi']]],_0x4b5d89];else _0x2aeb8b[_0x5478fd(0x26d)](typeof _0x542477[_0x2aeb8b[_0x5478fd(0x27d)]],_0x2aeb8b[_0x5478fd(0x28d)])&&_0x542477[_0x2aeb8b['gOroi']][_0x5478fd(0x297)](_0x4b5d89);}},handleO11yRerun=_0x525781=>{const _0x5a486e=a33_0xff277f,_0xe7bf5d={};_0xe7bf5d[_0x5a486e(0x298)]=function(_0x785a32,_0xdab5fb){return _0x785a32!==_0xdab5fb;},_0xe7bf5d['ftpYI']=_0x5a486e(0x264),_0xe7bf5d[_0x5a486e(0x294)]=_0x5a486e(0x237);const _0x354e9a=_0xe7bf5d,_0x6c801a=helper[_0x5a486e(0x252)](process[_0x5a486e(0x28c)][_0x5a486e(0x225)]);if(_0x6c801a){const _0x29023b=process[_0x5a486e(0x28c)]['BROWSERSTACK_RERUN_TESTS'],_0x222fdd=[];if(_0x354e9a['hCGFh'](_0x29023b,_0x354e9a['ftpYI'])&&!helper['isUndefined'](_0x29023b)){_0x29023b[_0x5a486e(0x267)](',')[_0x5a486e(0x1ec)](_0x16b98c=>{const _0x405fd6=_0x5a486e;_0x222fdd[_0x405fd6(0x297)]('('+_0x16b98c[_0x405fd6(0x266)]()+')');});const _0x14a5a8='^'+_0x222fdd[_0x5a486e(0x257)]('|')+'$';_0x525781[_0x5a486e(0x297)](_0x354e9a[_0x5a486e(0x294)],_0x14a5a8);}}},spawnOriginalProcess=_0x422c21=>{const _0x1dfe1b=a33_0xff277f,_0x316180={'oKBGo':function(_0x5cc55a,_0x30f9eb,_0x1aacc0,_0x342ba6){return _0x5cc55a(_0x30f9eb,_0x1aacc0,_0x342ba6);},'ihOIf':'npx','vZOXJ':_0x1dfe1b(0x255),'AXGKq':function(_0x1c89fe,_0x327e36){return _0x1c89fe===_0x327e36;},'ekSwu':_0x1dfe1b(0x1e6),'jiRUq':_0x1dfe1b(0x202)};_0x316180['oKBGo'](spawn,_0x316180[_0x1dfe1b(0x20e)],[_0x316180[_0x1dfe1b(0x223)],..._0x422c21['slice'](0x1)],{'shell':_0x316180[_0x1dfe1b(0x29d)](process['platform'],_0x316180['ekSwu']),'stdio':_0x316180[_0x1dfe1b(0x23c)],'cwd':process[_0x1dfe1b(0x271)]()});},isTestCommand=(_0x560f26,_0x164057)=>{const _0x277d5f=a33_0xff277f,_0x23065c={};_0x23065c['CTRPP']=function(_0x520f80,_0x3cc992){return _0x520f80>_0x3cc992;},_0x23065c[_0x277d5f(0x200)]=function(_0x4698ac,_0x2f89f8){return _0x4698ac===_0x2f89f8;},_0x23065c[_0x277d5f(0x284)]=_0x277d5f(0x2b0);const _0x42819e=_0x23065c;if(_0x42819e[_0x277d5f(0x29f)](_0x164057[_0x277d5f(0x2a8)],0x1)&&_0x42819e['ivTjT'](_0x164057[0x1],_0x42819e[_0x277d5f(0x284)]))return!![];return![];},initO11yCrashReporter=(_0x40dac7,_0x3c9847)=>{const _0x4814bf=a33_0xff277f,_0x531c79={'TSRua':function(_0x566aa7,_0x3c318){return _0x566aa7(_0x3c318);}},_0x35bf98={'frameworkName':FRAMEWORKS[_0x4814bf(0x260)],'frameworkVersion':_0x531c79['TSRua'](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT'])};CrashReporter[_0x4814bf(0x274)](_0x35bf98,_0x40dac7,_0x3c9847);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x523390){const _0x40f963=a33_0xff277f,_0x502fb8={};_0x502fb8[_0x40f963(0x1f4)]=function(_0x3d2e4a,_0x57da64){return _0x3d2e4a>_0x57da64;},_0x502fb8[_0x40f963(0x256)]=function(_0x5eeb91,_0x3cf0e1){return _0x5eeb91===_0x3cf0e1;};const _0x253ccf=_0x502fb8;if(!_0x523390||_0x253ccf['nHmBQ'](_0x523390[_0x40f963(0x2a8)],0x1)&&_0x253ccf[_0x40f963(0x256)](_0x523390[0x0],null))return process[_0x40f963(0x28c)]['BROWSERSTACK_TEST_OBSERVABILITY']=![],![];return!![];});async function run(_0x249726,_0x5f3a17){const _0x5b0b02=a33_0xff277f,_0x5b5f14={'pjmDj':'.browserstack','RIEXB':'pw_result.json','IvYkb':function(_0xd88042,_0x4f0bf3){return _0xd88042+_0x4f0bf3;},'pNPzz':_0x5b0b02(0x245),'LYeZP':_0x5b0b02(0x281),'xDefa':function(_0x1fb2b7){return _0x1fb2b7();},'EeEsN':function(_0x155070,_0x62a55d){return _0x155070+_0x62a55d;},'zZfjF':_0x5b0b02(0x212),'RfHyc':_0x5b0b02(0x1f3),'TczbW':_0x5b0b02(0x22a),'rezYb':'--disable-test-observability','GoWxS':function(_0x3b93fa,_0x16dc62){return _0x3b93fa>=_0x16dc62;},'tuIyx':function(_0x1508de,_0x2d69f0){return _0x1508de+_0x2d69f0;},'MlXIv':'Error\x20in\x20deleting\x20playwright\x20results','UzUwa':function(_0xd71cc9,_0x42c995,_0x493a4d){return _0xd71cc9(_0x42c995,_0x493a4d);},'xqoWZ':function(_0x5a226b,_0x3a01db){return _0x5a226b(_0x3a01db);},'SMsRl':_0x5b0b02(0x1ff),'xYDNn':'automation','OXZKo':function(_0x404227,_0x3c508a){return _0x404227!=_0x3c508a;},'xUwjx':function(_0x5c2614,_0x79c1c1,_0x2b4d91){return _0x5c2614(_0x79c1c1,_0x2b4d91);},'kkpXw':_0x5b0b02(0x235),'OaPUi':function(_0x4e3873,_0x4aed4f,_0x3e4291){return _0x4e3873(_0x4aed4f,_0x3e4291);},'gYeiG':function(_0x32cb80,_0x3a3cc5){return _0x32cb80(_0x3a3cc5);},'NSoFQ':function(_0xf1bf76,_0x449b78){return _0xf1bf76(_0x449b78);},'bpnKO':function(_0x1fec1c,_0x448279){return _0x1fec1c(_0x448279);},'szCqS':function(_0x343e21,_0x4bb946){return _0x343e21===_0x4bb946;},'ukmGT':'true','CvmqE':function(_0x2f1305,_0x5d2496){return _0x2f1305(_0x5d2496);},'QnfMk':_0x5b0b02(0x287),'ZvCrQ':function(_0x1fec5c){return _0x1fec5c();},'zhbQU':'testDir','bbNOv':_0x5b0b02(0x1f5),'koCAV':'testIgnore','cTcCv':_0x5b0b02(0x1fa),'YhIov':_0x5b0b02(0x208),'yvLfB':_0x5b0b02(0x262),'qBqnU':function(_0x2d0950,_0x423de7){return _0x2d0950>_0x423de7;},'ZIWGK':function(_0x419967,_0x2256c6,_0xafd112,_0x588751){return _0x419967(_0x2256c6,_0xafd112,_0x588751);},'iJPJG':'npx','hGjBd':'playwright','SDiJr':'test','ZtXVi':_0x5b0b02(0x216),'DsByl':function(_0x49d7e6,_0x45a26e){return _0x49d7e6===_0x45a26e;},'abMLR':_0x5b0b02(0x1e6),'wYTby':_0x5b0b02(0x202),'fGdRW':'close'};!helper[_0x5b0b02(0x2a1)](process['env'][_0x5b0b02(0x1ef)])&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x1ef)]=!![]);process[_0x5b0b02(0x211)][_0x5b0b02(0x27f)](_0x5b5f14[_0x5b0b02(0x25b)])&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x1ef)]=_0x5b5f14['TczbW'],_0x5f3a17=_0x5f3a17[_0x5b0b02(0x24e)](_0x102134=>_0x102134!=='--disable-browserstack-automation'));const _0x37ca21=_0x5f3a17[_0x5b0b02(0x1f9)](_0x5b5f14[_0x5b0b02(0x26b)]);_0x5b5f14[_0x5b0b02(0x2a3)](_0x37ca21,0x0)&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]=_0x5b5f14[_0x5b0b02(0x1f8)],_0x5f3a17=_0x5f3a17[_0x5b0b02(0x24e)](_0x44f3b3=>_0x44f3b3!==_0x5b0b02(0x244)));try{const _0x362e31=path['join'](helper[_0x5b0b02(0x277)](),_0x5b5f14[_0x5b0b02(0x238)],_0x5b5f14[_0x5b0b02(0x25d)]);fs['existsSync'](_0x362e31)&&fs['unlinkSync'](_0x362e31);}catch(_0x8d7caf){logger[_0x5b0b02(0x230)](_0x5b5f14[_0x5b0b02(0x224)](_0x5b5f14['MlXIv'],_0x8d7caf));}if(!_0x5b5f14[_0x5b0b02(0x1ea)](isTestCommand,_0x249726,_0x5f3a17)){_0x5b5f14[_0x5b0b02(0x229)](spawnOriginalProcess,_0x5f3a17);return;}const _0x590f07=new BrowserStackSetup(_0x249726,FRAMEWORKS[_0x5b0b02(0x260)]);if(!_0x590f07[_0x5b0b02(0x209)]){logger[_0x5b0b02(0x20d)](_0x5b5f14[_0x5b0b02(0x22e)]);return;}await _0x590f07[_0x5b0b02(0x274)]();!helper[_0x5b0b02(0x28b)](_0x590f07[_0x5b0b02(0x21a)])&&_0x590f07[_0x5b0b02(0x21a)][_0x5b0b02(0x29e)](_0x5b5f14[_0x5b0b02(0x21f)])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x590f07[_0x5b0b02(0x21a)][_0x5b0b02(0x20b)](_0x5b5f14[_0x5b0b02(0x21f)])||!![]);_0x5b5f14[_0x5b0b02(0x201)](_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x2a7)],null)&&!helper['isTrue'](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]=process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]||_0x590f07['config'][_0x5b0b02(0x2a7)]);const _0x574ed4=!helper[_0x5b0b02(0x2a1)](process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]);let _0x192d47=![];_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x272)]&&(_0x192d47=!![],process[_0x5b0b02(0x28c)][_0x5b0b02(0x282)]=_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x272)]);_0x590f07['config'][_0x5b0b02(0x22d)]&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x242)]=JSON[_0x5b0b02(0x2a4)](_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x22d)]));const _0x16a338=_0x5f3a17[_0x5b0b02(0x21c)](),_0x3b15cb=await _0x5b5f14[_0x5b0b02(0x1ea)](getUserPlaywrightConfig,_0x249726,_0x5f3a17);if(helper['isUndefined'](_0x3b15cb)){_0x5b5f14[_0x5b0b02(0x229)](spawnOriginalProcess,_0x16a338);return;}const _0x1a701e={..._0x3b15cb[_0x5b0b02(0x209)]},_0x983703=_0x1a701e,_0x4dddac=_0x3b15cb[_0x5b0b02(0x27b)]?path[_0x5b0b02(0x233)](_0x3b15cb[_0x5b0b02(0x27b)]):process[_0x5b0b02(0x271)]();process[_0x5b0b02(0x28c)][_0x5b0b02(0x283)]=_0x4dddac;if(!_0x5b5f14[_0x5b0b02(0x25c)](setGlobalSetup,_0x983703,_0x4dddac)){_0x5b5f14[_0x5b0b02(0x229)](spawnOriginalProcess,_0x16a338);return;}const _0x3dec8e=await TestHubHandler[_0x5b0b02(0x293)](FRAMEWORKS[_0x5b0b02(0x260)],_0x590f07);_0x574ed4&&(logger[_0x5b0b02(0x28e)](_0x5b5f14[_0x5b0b02(0x1fc)]),_0x5b5f14['OaPUi'](initO11yCrashReporter,_0x983703,_0x590f07[_0x5b0b02(0x209)]),_0x5b5f14['gYeiG'](handleO11yRerun,_0x5f3a17),await _0x5b5f14['NSoFQ'](launchO11ySession,_0x3dec8e[testHubConstants[_0x5b0b02(0x2a5)]]));_0x5b5f14[_0x5b0b02(0x1ed)](shouldProcessEventForTesthub)&&_0x5b5f14[_0x5b0b02(0x1ee)](addReporter,_0x983703);let _0x3a38ee=_0x5b5f14[_0x5b0b02(0x232)](process['env'][_0x5b0b02(0x282)],_0x5b5f14[_0x5b0b02(0x1fb)]);_0x3a38ee=_0x3a38ee||_0x5b5f14[_0x5b0b02(0x229)](checkAccessibilityPlatformConfig,_0x590f07[_0x5b0b02(0x209)]),process[_0x5b0b02(0x28c)][_0x5b0b02(0x282)]=_0x3a38ee;_0x3a38ee&&_0x5b5f14['CvmqE'](setAccessibilityCapabilities,_0x590f07['config']);const _0x587c74=path['join'](_0x3b15cb[_0x5b0b02(0x27b)]?path['dirname'](_0x3b15cb[_0x5b0b02(0x27b)]):process[_0x5b0b02(0x271)](),_0x5b5f14[_0x5b0b02(0x227)]);fs[_0x5b0b02(0x203)](_0x587c74,helper[_0x5b0b02(0x23f)](_0x590f07[_0x5b0b02(0x209)])),process[_0x5b0b02(0x28c)][_0x5b0b02(0x23b)]=_0x587c74,helper['clearTempPWConfig']();if(helper[_0x5b0b02(0x252)](process[_0x5b0b02(0x28c)]['BROWSERSTACK_AUTOMATION'])){let _0x2d39b6=[];try{const _0x104ffd=helper[_0x5b0b02(0x26f)][_0x5b0b02(0x290)](null,_0x5b5f14[_0x5b0b02(0x204)](getProjectUtilsPath)),_0x245dc8={};_0x245dc8[_0x5b0b02(0x29a)]=!![],_0x245dc8[_0x5b0b02(0x286)]='',_0x245dc8[_0x5b0b02(0x1f5)]='',_0x245dc8[_0x5b0b02(0x20a)]='';const _0x487b8c={};_0x487b8c['respectGitIgnore']=!![];const _0x47fb53={};_0x47fb53[_0x5b0b02(0x217)]=_0x245dc8,_0x47fb53[_0x5b0b02(0x273)]=_0x487b8c;let _0x6bff35=_0x47fb53;_0x983703[_0x5b5f14['zhbQU']]&&(_0x6bff35['project'][_0x5b5f14[_0x5b0b02(0x24c)]]=_0x983703[_0x5b5f14['zhbQU']]),_0x983703[_0x5b5f14[_0x5b0b02(0x210)]]&&(_0x6bff35[_0x5b0b02(0x217)][_0x5b5f14[_0x5b0b02(0x210)]]=_0x983703[_0x5b5f14['bbNOv']]),_0x983703[_0x5b5f14['koCAV']]&&(_0x6bff35[_0x5b0b02(0x217)][_0x5b5f14[_0x5b0b02(0x1e8)]]=_0x983703[_0x5b5f14[_0x5b0b02(0x1e8)]]),_0x6bff35=Object[_0x5b0b02(0x278)](_0x6bff35,_0x6bff35['project']),_0x2d39b6=await _0x104ffd[_0x5b0b02(0x27c)](_0x6bff35);}catch(_0x45fa87){logger[_0x5b0b02(0x230)](_0x5b5f14[_0x5b0b02(0x224)](_0x5b5f14[_0x5b0b02(0x25e)],_0x5b5f14[_0x5b0b02(0x24d)](format,_0x45fa87)));}}let _0x23e6e0='';_0x5b5f14[_0x5b0b02(0x232)](helper[_0x5b0b02(0x2ac)](),constants['PACKAGE_TYPE'][_0x5b0b02(0x234)])?_0x23e6e0=_0x5b5f14[_0x5b0b02(0x207)]:_0x23e6e0=_0x5b5f14[_0x5b0b02(0x215)];const _0x2c0e4f=path[_0x5b0b02(0x257)](_0x3b15cb[_0x5b0b02(0x27b)]?path[_0x5b0b02(0x233)](_0x3b15cb[_0x5b0b02(0x27b)]):process['cwd'](),_0x23e6e0);let _0x2e987a=_0x3b15cb[_0x5b0b02(0x27b)]?_0x3b15cb[_0x5b0b02(0x27b)]:'';_0x2e987a=_0x5b5f14[_0x5b0b02(0x228)](_0x2e987a[_0x5b0b02(0x2a8)],0x0)?path[_0x5b0b02(0x205)](_0x2e987a):'',process[_0x5b0b02(0x28c)][_0x5b0b02(0x248)]=_0x2e987a;let _0x46a272=_0x5b0b02(0x23d);const _0x57d3b6=helper['getProxyUrl'](_0x590f07[_0x5b0b02(0x209)]);_0x57d3b6&&(_0x46a272=_0x5b5f14[_0x5b0b02(0x1fe)](_0x5b0b02(0x236)+_0x57d3b6+_0x5b0b02(0x258),_0x46a272));helper[_0x5b0b02(0x25f)]({},_0x5f3a17),fs[_0x5b0b02(0x203)](_0x2c0e4f,_0x46a272),helper[_0x5b0b02(0x28f)]();const _0x5cea32=_0x5b5f14['ZIWGK'](spawn,_0x5b5f14[_0x5b0b02(0x259)],[_0x5b5f14[_0x5b0b02(0x27a)],_0x5b5f14[_0x5b0b02(0x268)],_0x5b5f14[_0x5b0b02(0x2ad)],_0x2c0e4f,..._0x5f3a17[_0x5b0b02(0x21d)](0x2)],{'shell':_0x5b5f14[_0x5b0b02(0x2a6)](process[_0x5b0b02(0x253)],_0x5b5f14['abMLR']),'stdio':_0x5b5f14[_0x5b0b02(0x243)],'cwd':process[_0x5b0b02(0x271)](),'env':Object[_0x5b0b02(0x278)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x249726),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x590f07[_0x5b0b02(0x209)]['testContextOptions'][_0x5b0b02(0x1e7)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x590f07['config']['testContextOptions'][_0x5b0b02(0x1eb)],'BROWSERSTACK_LOG_LEVEL':_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x1f0)]})}),_0x18fa16=()=>{const _0x450c9f=_0x5b0b02;try{const _0xa3ec2e=path[_0x450c9f(0x257)](helper[_0x450c9f(0x277)](),_0x5b5f14[_0x450c9f(0x238)],_0x5b5f14[_0x450c9f(0x25d)]);if(fs[_0x450c9f(0x22b)](_0xa3ec2e)){let _0x56d0f5=fs[_0x450c9f(0x263)](_0xa3ec2e);_0x56d0f5=JSON[_0x450c9f(0x219)](_0x56d0f5),_0x590f07[_0x450c9f(0x265)]=_0x56d0f5,fs[_0x450c9f(0x295)](_0xa3ec2e);}}catch(_0x25ef41){logger['debug'](_0x5b5f14[_0x450c9f(0x226)](_0x5b5f14['pNPzz'],_0x25ef41));}};_0x5cea32['on'](_0x5b5f14[_0x5b0b02(0x292)],async _0x26cafd=>{const _0x59b85e=_0x5b0b02;try{const _0x35e9d5=_0x5b5f14[_0x59b85e(0x23e)][_0x59b85e(0x267)]('|');let _0x1a56d2=0x0;while(!![]){switch(_0x35e9d5[_0x1a56d2++]){case'0':logger[_0x59b85e(0x28e)]('Deleting\x20'+_0x2c0e4f);continue;case'1':logger[_0x59b85e(0x230)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x26cafd);continue;case'2':logger[_0x59b85e(0x230)](_0x59b85e(0x1fd)+_0x587c74);continue;case'3':process['exitCode']=_0x26cafd;continue;case'4':await helper[_0x59b85e(0x26a)](_0x590f07);continue;case'5':_0x5b5f14[_0x59b85e(0x1ed)](_0x18fa16);continue;case'6':fs['unlinkSync'](_0x2c0e4f);continue;case'7':fs[_0x59b85e(0x295)](_0x587c74);continue;}break;}}catch(_0x16f794){logger['debug'](_0x5b5f14[_0x59b85e(0x1fe)](_0x5b5f14['zZfjF'],_0x16f794));}});}module[a33_0xff277f(0x254)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a34_0x12da18=a34_0x54ad;function a34_0x54ad(_0x3aeb65,_0x3d683c){const _0xead7bf=a34_0xead7();return a34_0x54ad=function(_0x54ad1c,_0x4f69e1){_0x54ad1c=_0x54ad1c-0x6e;let _0x442b9e=_0xead7bf[_0x54ad1c];return _0x442b9e;},a34_0x54ad(_0x3aeb65,_0x3d683c);}(function(_0x19fe60,_0x1a631a){const _0x5aa1bd=a34_0x54ad,_0x1a565c=_0x19fe60();while(!![]){try{const _0x570813=-parseInt(_0x5aa1bd(0x6e))/0x1+parseInt(_0x5aa1bd(0x70))/0x2*(-parseInt(_0x5aa1bd(0x95))/0x3)+-parseInt(_0x5aa1bd(0x76))/0x4+-parseInt(_0x5aa1bd(0x74))/0x5+parseInt(_0x5aa1bd(0x75))/0x6*(-parseInt(_0x5aa1bd(0x80))/0x7)+parseInt(_0x5aa1bd(0x8e))/0x8*(parseInt(_0x5aa1bd(0x7f))/0x9)+parseInt(_0x5aa1bd(0x8b))/0xa*(parseInt(_0x5aa1bd(0x89))/0xb);if(_0x570813===_0x1a631a)break;else _0x1a565c['push'](_0x1a565c['shift']());}catch(_0x26f61e){_0x1a565c['push'](_0x1a565c['shift']());}}}(a34_0xead7,0xe38e9));const child_process=require(a34_0x12da18(0x84)),{FRAMEWORKS}=require(a34_0x12da18(0x81)),{getFrameworkVersion,debug}=require(a34_0x12da18(0x99)),helper=require(a34_0x12da18(0x73)),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),logger=require(a34_0x12da18(0x7c))[a34_0x12da18(0x71)];module[a34_0x12da18(0x94)]=async function(_0x47b9f2){const _0x544471=a34_0x12da18,_0x32b2e1={'SjviC':function(_0xe46923,_0x3a8ecc){return _0xe46923(_0x3a8ecc);},'MfSen':function(_0x43b152){return _0x43b152();},'akNAz':_0x544471(0x78),'jeNie':function(_0x2d4704){return _0x2d4704();},'RtYVE':function(_0xdb2d6c,_0x434b8b){return _0xdb2d6c(_0x434b8b);},'AHWpg':_0x544471(0x6f),'sHawK':function(_0x352044,_0x81caa3){return _0x352044(_0x81caa3);},'boUOh':function(_0x2f8423,_0x5c8180){return _0x2f8423>=_0x5c8180;},'IsSQN':_0x544471(0x8f),'VleJK':function(_0x1b68ac,_0x375a82,_0x497e44){return _0x1b68ac(_0x375a82,_0x497e44);},'YMPKa':function(_0x130653,_0x26e724){return _0x130653!==_0x26e724;},'iQEYp':_0x544471(0x72),'zRPBf':_0x544471(0x8a)},_0x130759=child_process[_0x544471(0x7d)];child_process[_0x544471(0x7d)]=function(){const _0x4f765d=_0x544471;return _0x32b2e1[_0x4f765d(0x8c)](debug,_0x4f765d(0x77)+arguments[0x0]),arguments[0x0][_0x4f765d(0x82)](_0x32b2e1['MfSen'](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x32b2e1[_0x4f765d(0x91)]):logger['error'](_0x4f765d(0x8d)+_0x32b2e1[_0x4f765d(0x9a)](getForkProcessPath)+_0x4f765d(0x7a)),_0x130759[_0x4f765d(0x7e)](null,arguments);};if(process[_0x544471(0x90)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x32b2e1[_0x544471(0x96)](debug,_0x32b2e1[_0x544471(0x83)]);try{const {loadGlobalHook:_0x3834ff}=helper[_0x544471(0x9b)][_0x544471(0x7e)](null,_0x32b2e1[_0x544471(0x7b)](getLoadUtilsPath)),_0x48c657=_0x32b2e1[_0x544471(0x98)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x326c44=_0x47b9f2;if(_0x32b2e1[_0x544471(0x88)](helper[_0x544471(0x79)](_0x48c657,_0x32b2e1['IsSQN']),0x0)){const _0x50a6c0={};_0x50a6c0[_0x544471(0x87)]=_0x47b9f2,_0x326c44=_0x50a6c0;}const _0x7d8951=await _0x32b2e1[_0x544471(0x86)](_0x3834ff,_0x326c44,process[_0x544471(0x90)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x32b2e1[_0x544471(0x93)](typeof _0x7d8951,_0x32b2e1[_0x544471(0x97)]))throw new Error(_0x32b2e1[_0x544471(0x92)]);return _0x7d8951[_0x544471(0x7e)](null,arguments);}catch(_0x143a3b){_0x32b2e1[_0x544471(0x8c)](debug,_0x544471(0x85)+_0x143a3b['toString']());}}};function a34_0xead7(){const _0x2e3830=['RtYVE','iQEYp','sHawK','../../helpers/test-observability/utils','jeNie','requirePWModule','277640eUguAg','Running\x20existing\x20global\x20setup','316MzqZus','winstonLogger','function','../../helpers/helper','7955430gqGTLS','2513670ZNhWvC','3290824dnITyV','Call\x20to\x20child\x20fork\x20with\x20args\x20','./mock-process.js','compareVersions','\x20is\x20not\x20found','MfSen','../../helpers/logger','fork','apply','9437049TkiKMr','28akyRJg','../../helpers/test-observability/constants','includes','AHWpg','child_process','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','VleJK','config','boUOh','51306310luxMYU','Not\x20able\x20to\x20import\x20globalSetup','10fqjYqg','SjviC','Path\x20','8WPSvyg','1.33.0','env','akNAz','zRPBf','YMPKa','exports','7851fdksHo'];a34_0xead7=function(){return _0x2e3830;};return a34_0xead7();}
|