browserstack-node-sdk 1.34.6 → 1.34.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x481bdb=a29_0x5d7c;function a29_0x5d7c(_0x4deb7b,_0x2b6931){const _0x39d43d=a29_0x39d4();return a29_0x5d7c=function(_0x5d7c04,_0x692b73){_0x5d7c04=_0x5d7c04-0xc2;let _0x5a4b2e=_0x39d43d[_0x5d7c04];return _0x5a4b2e;},a29_0x5d7c(_0x4deb7b,_0x2b6931);}(function(_0x36dd7e,_0x55a865){const _0x30adc2=a29_0x5d7c,_0x5b06d8=_0x36dd7e();while(!![]){try{const _0x31e16a=parseInt(_0x30adc2(0xde))/0x1+parseInt(_0x30adc2(0xdd))/0x2*(-parseInt(_0x30adc2(0xf6))/0x3)+-parseInt(_0x30adc2(0x113))/0x4*(parseInt(_0x30adc2(0xd9))/0x5)+parseInt(_0x30adc2(0x106))/0x6*(-parseInt(_0x30adc2(0x117))/0x7)+parseInt(_0x30adc2(0xe8))/0x8+-parseInt(_0x30adc2(0xee))/0x9+parseInt(_0x30adc2(0x140))/0xa;if(_0x31e16a===_0x55a865)break;else _0x5b06d8['push'](_0x5b06d8['shift']());}catch(_0x261b2e){_0x5b06d8['push'](_0x5b06d8['shift']());}}}(a29_0x39d4,0xe6cc9));const logger=require(a29_0x481bdb(0x108))[a29_0x481bdb(0x132)],helper=require(a29_0x481bdb(0xec)),constants=require(a29_0x481bdb(0xcf)),hubAllocator=require(a29_0x481bdb(0xfb)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x481bdb(0x111)),{setAccessibilityCapabilities,setExtension}=require(a29_0x481bdb(0x125)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x481bdb(0xfd)),globals=require('../../../helpers/globals'),modify=(_0x547eca,_0x12e0de=null,_0x1b5aab=![])=>{const _0x3c3738=a29_0x481bdb,_0x294c23={'NspDQ':function(_0x5bdb49,_0x44dcfc){return _0x5bdb49!==_0x44dcfc;},'cnbFq':_0x3c3738(0x10a),'hFDFy':function(_0x284705,_0x5975dc){return _0x284705!==_0x5975dc;},'Dcgbc':function(_0x5a2a19,_0x4915be){return _0x5a2a19+_0x4915be;},'AVgSJ':_0x3c3738(0xef),'MuAcN':_0x3c3738(0x124),'JPhMl':_0x3c3738(0x12c),'eNKrI':_0x3c3738(0x114),'BProq':_0x3c3738(0x116),'mopBE':_0x3c3738(0xf9),'nEIFx':_0x3c3738(0x121),'PUjfp':_0x3c3738(0xe3),'uiSfu':_0x3c3738(0xc8),'fizlI':_0x3c3738(0xf3),'oyUbD':_0x3c3738(0xf7),'amZJT':function(_0x26ab89,_0x5ea003){return _0x26ab89===_0x5ea003;},'rDTKH':_0x3c3738(0x112),'jRMOF':_0x3c3738(0xce),'ZdZvr':'optimalHubUrl','hywky':_0x3c3738(0xc2),'ciVNF':function(_0x4b7161,_0x5edec5,_0x10c746){return _0x4b7161(_0x5edec5,_0x10c746);},'rrTmK':function(_0x432fc1,_0x2179d6,_0x207825){return _0x432fc1(_0x2179d6,_0x207825);},'aMeQm':function(_0x140635,_0x56e90c){return _0x140635(_0x56e90c);},'yIStA':function(_0x3b3547,_0x4fd4a1,_0x15cd42){return _0x3b3547(_0x4fd4a1,_0x15cd42);},'lSVPA':_0x3c3738(0xf4),'RmPuJ':'isAccessibilityPlatform','yIitb':function(_0x16d287){return _0x16d287();},'hJhem':function(_0x56dbd9,_0x1624d8){return _0x56dbd9(_0x1624d8);},'vOEMO':_0x3c3738(0x13e),'RGYnX':function(_0x5c166c,_0x543b35){return _0x5c166c(_0x543b35);},'EeAij':function(_0x5787b2,_0x1ea71f){return _0x5787b2(_0x1ea71f);},'jRKDU':function(_0x2975d2,_0x3e1130){return _0x2975d2!==_0x3e1130;},'GJnuv':function(_0x5440d5,_0x21ae77){return _0x5440d5!==_0x21ae77;},'xKEMV':_0x3c3738(0x138),'oOWTV':_0x3c3738(0xcc)},_0x3bde75=helper[_0x3c3738(0x11b)]();let _0x8e0449;try{_0x8e0449=helper[_0x3c3738(0x11e)](),_0x8e0449[_0x3c3738(0xd5)]&&(_0x8e0449[_0x3c3738(0xd6)]=_0x8e0449[_0x3c3738(0xd5)]);}catch(_0xb1ad2e){return;}if(helper[_0x3c3738(0xd7)]()){const _0x2dc2aa={};_0x2dc2aa[_0x3c3738(0xe2)]=_0x547eca[_0x3c3738(0x137)],helper[_0x3c3738(0x118)](_0x2dc2aa,new Map(),new Map()),logger[_0x3c3738(0x11d)](_0x294c23[_0x3c3738(0x119)]),logger[_0x3c3738(0xda)](_0x294c23[_0x3c3738(0xd4)]);}class _0x32cac2 extends _0x3bde75[_0x3c3738(0x131)]{[_0x3c3738(0xf0)](_0x43ebaf){const _0x4086f5=_0x3c3738;if(_0x294c23[_0x4086f5(0xe1)](_0x43ebaf[_0x4086f5(0xe9)],_0x294c23[_0x4086f5(0xd3)])&&_0x294c23[_0x4086f5(0xed)](global[_0x4086f5(0xe4)],''))try{global['newHubUrl']=_0x294c23['Dcgbc'](_0x294c23[_0x4086f5(0x135)](_0x294c23['AVgSJ'],global[_0x4086f5(0xe4)]),_0x294c23[_0x4086f5(0x12e)]),this['options_']=hubAllocator[_0x4086f5(0x10b)](global[_0x4086f5(0xe4)]),logger['debug'](_0x4086f5(0xfe)+global[_0x4086f5(0xe4)]),global[_0x4086f5(0xe4)]='';}catch(_0x2b070e){logger['error'](_0x2b070e);}return super[_0x4086f5(0xf0)](_0x43ebaf);}}class _0x303957 extends _0x8e0449['Builder']{[_0x3c3738(0x11a)](){const _0x25858a=_0x3c3738;return this[_0x25858a(0x105)]=helper['getHubUrl'](_0x547eca),logger['debug'](_0x25858a(0x103)+this[_0x25858a(0x105)]),this;}[_0x3c3738(0x122)](_0x1b16ec){const _0x517dfa=_0x3c3738;let _0x26cde2={};for(const _0xd6cc80 in _0x1b16ec){switch(_0xd6cc80){case _0x294c23['JPhMl']:case _0x294c23[_0x517dfa(0x12b)]:this[_0x517dfa(0xc4)]&&(_0x26cde2=this[_0x517dfa(0xc4)][_0x517dfa(0x100)](this['chromeOptions_'][_0x517dfa(0xc5)])||{},this[_0x517dfa(0xc4)][_0x517dfa(0x101)](this['chromeOptions_'][_0x517dfa(0xc5)],helper[_0x517dfa(0xff)](_0x26cde2,_0x1b16ec[_0xd6cc80])));break;case _0x294c23[_0x517dfa(0x143)]:case _0x294c23['mopBE']:this[_0x517dfa(0xc7)]&&(_0x26cde2=this[_0x517dfa(0xc7)][_0x517dfa(0x100)](this[_0x517dfa(0xc7)][_0x517dfa(0xc5)])||{},this[_0x517dfa(0xc7)][_0x517dfa(0x101)](this['edgeOptions_']['CAPABILITY_KEY'],helper[_0x517dfa(0xff)](_0x26cde2,_0x1b16ec[_0xd6cc80])));break;case _0x294c23[_0x517dfa(0x123)]:case _0x294c23[_0x517dfa(0x139)]:this[_0x517dfa(0xe0)]&&(_0x26cde2=this['firefoxOptions_'][_0x517dfa(0x100)](this['firefoxOptions_'][_0x517dfa(0xc5)])||{},this[_0x517dfa(0xe0)][_0x517dfa(0x101)](this[_0x517dfa(0xe0)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x26cde2,_0x1b16ec[_0xd6cc80])));break;case _0x294c23[_0x517dfa(0x129)]:this['safariOptions_']&&(_0x26cde2=this['safariOptions_']['get'](this['safariOptions_'][_0x517dfa(0xc5)])||{},this[_0x517dfa(0x12a)]['set'](this[_0x517dfa(0x12a)][_0x517dfa(0xc5)],helper[_0x517dfa(0xff)](_0x26cde2,_0x1b16ec[_0xd6cc80])));break;case _0x294c23[_0x517dfa(0x10d)]:case _0x294c23[_0x517dfa(0x12f)]:this[_0x517dfa(0x10e)]&&(_0x26cde2=this[_0x517dfa(0x10e)][_0x517dfa(0x100)](this[_0x517dfa(0x10e)][_0x517dfa(0xc5)])||{},this[_0x517dfa(0x10e)]['set'](this[_0x517dfa(0x10e)][_0x517dfa(0xc5)],helper[_0x517dfa(0xff)](_0x26cde2,_0x1b16ec[_0xd6cc80])));break;}}}[_0x3c3738(0xc3)](){const _0x1c9194=_0x3c3738;return logger['debug'](_0x294c23[_0x1c9194(0x13f)]),this[_0x1c9194(0x122)](_0x547eca['capability']),Object[_0x1c9194(0xf8)](_0x547eca[_0x1c9194(0x11f)])['forEach'](_0x41da12=>{const _0xeb6c27=_0x1c9194,_0x8b241=this[_0xeb6c27(0x13b)][_0xeb6c27(0x100)](_0x41da12);_0x294c23[_0xeb6c27(0x13a)](typeof _0x8b241,_0x294c23[_0xeb6c27(0x115)])?this[_0xeb6c27(0x13b)]['set'](_0x41da12,helper['mergeDeep'](_0x8b241,_0x547eca[_0xeb6c27(0x11f)][_0x41da12])):this[_0xeb6c27(0x13b)][_0xeb6c27(0x101)](_0x41da12,_0x547eca[_0xeb6c27(0x11f)][_0x41da12]);}),this;}[_0x3c3738(0x13c)](){const _0xea8d31=_0x3c3738,_0x92eb57={'APTOE':function(_0x48d8ac,_0x467c0a,_0x11f1ca){const _0x4837e5=a29_0x5d7c;return _0x294c23[_0x4837e5(0x104)](_0x48d8ac,_0x467c0a,_0x11f1ca);}};if(helper[_0xea8d31(0xd7)]()){const _0x1d3360=_0x294c23[_0xea8d31(0xcb)][_0xea8d31(0xd1)]('|');let _0x5e930e=0x0;while(!![]){switch(_0x1d3360[_0x5e930e++]){case'0':this['setCapabilities']();continue;case'1':globals[_0xea8d31(0x110)](_0x294c23[_0xea8d31(0xc9)])&&(!_0x294c23[_0xea8d31(0xdb)](setExtension,this,_0x547eca)&&globals[_0xea8d31(0x10f)](_0x294c23[_0xea8d31(0xc9)],![]));continue;case'2':this[_0xea8d31(0x11a)]();continue;case'3':_0x294c23[_0xea8d31(0xfc)](isAccessibilityAutomationSession)&&_0x294c23['hJhem'](setAccessibilityCapabilities,_0x547eca);continue;case'4':if(helper[_0xea8d31(0xf2)](_0x547eca['proxySettings'][_0xea8d31(0x11c)]))this[_0xea8d31(0x136)]=helper[_0xea8d31(0x130)](_0x547eca[_0xea8d31(0xc6)]['proxyUrl']);else _0x547eca[_0xea8d31(0xc6)][_0xea8d31(0x11c)]&&(this[_0xea8d31(0x102)]=_0x547eca[_0xea8d31(0xc6)]['proxyUrl'],logger[_0xea8d31(0xda)](_0xea8d31(0xd2)+this[_0xea8d31(0x102)]));continue;case'5':logger[_0xea8d31(0xda)](_0x294c23[_0xea8d31(0x134)]);continue;}break;}}const _0x4d00a6=super['build']();return _0x4d00a6['session_'][_0xea8d31(0xf1)](_0x5885d1=>{const _0x17ff9e=_0xea8d31;try{const _0x3a90a2=_0x5885d1[_0x17ff9e(0x10c)][_0x17ff9e(0x100)](_0x294c23[_0x17ff9e(0x109)]);_0x3a90a2?(logger[_0x17ff9e(0xda)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x3a90a2),hubAllocator[_0x17ff9e(0x133)](_0x3a90a2),helper[_0x17ff9e(0xd0)](_0x3a90a2)):logger['debug'](_0x294c23[_0x17ff9e(0xf5)]);}catch(_0x1fbfd0){logger[_0x17ff9e(0xda)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x1fbfd0);}}),_0x4d00a6[_0xea8d31(0x126)]=0x0,_0x4d00a6['then']&&_0x4d00a6[_0xea8d31(0xf1)](_0x421982=>{const _0x2f3cd6=_0xea8d31,_0x46b3cd={'hHkaV':function(_0x39a705,_0x2de518,_0x25c73d){return _0x294c23['ciVNF'](_0x39a705,_0x2de518,_0x25c73d);},'cDvYa':function(_0x262d5d,_0xd67f6a,_0x1057c2){const _0x15d0fc=a29_0x5d7c;return _0x294c23[_0x15d0fc(0xdb)](_0x262d5d,_0xd67f6a,_0x1057c2);}};_0x294c23['ciVNF'](overrideQuit,_0x421982,_0x4d00a6),_0x294c23[_0x2f3cd6(0x127)](overrideTakeScreenshot,_0x421982),helper[_0x2f3cd6(0x141)](_0x421982,_0x547eca),helper['overrideExecute'](_0x421982,_0x547eca),_0x421982[_0x2f3cd6(0x107)]=async()=>{const _0x3f2667=_0x2f3cd6;return await _0x46b3cd[_0x3f2667(0xe5)](getAccessibilityResultsSummary,_0x421982,global);},_0x421982[_0x2f3cd6(0xea)]=async()=>{return await _0x46b3cd['cDvYa'](getAccessibilityResults,_0x421982,global);};}),_0x4d00a6[_0xea8d31(0x107)]=async()=>{const _0x2c3abb=_0xea8d31;return await _0x92eb57[_0x2c3abb(0xcd)](getAccessibilityResultsSummary,_0x4d00a6,global);},_0x4d00a6[_0xea8d31(0xea)]=async()=>{return await _0x294c23['rrTmK'](getAccessibilityResults,_0x4d00a6,global);},_0x294c23[_0xea8d31(0x120)](overrideTakeScreenshot,_0x4d00a6),_0x294c23[_0xea8d31(0x12d)](overrideQuit,_0x4d00a6),helper[_0xea8d31(0x141)](_0x4d00a6,_0x547eca),helper[_0xea8d31(0x142)](_0x4d00a6,_0x547eca),helper[_0xea8d31(0xfa)](global[_0xea8d31(0xe6)])&&(global[_0xea8d31(0xe6)]=[]),helper[_0xea8d31(0xfa)](global['__drivers'])&&(global[_0xea8d31(0xca)]=[]),global['__driversArray']['push'](_0x4d00a6),global[_0xea8d31(0xeb)]=_0x4d00a6,_0x294c23[_0xea8d31(0xd8)](global[_0xea8d31(0xca)],undefined)&&global[_0xea8d31(0xca)][_0xea8d31(0xdf)](_0x4d00a6),_0x12e0de&&helper[_0xea8d31(0xfa)](_0x12e0de[_0xea8d31(0xe7)][_0xea8d31(0xe6)])&&(_0x12e0de[_0xea8d31(0xe7)][_0xea8d31(0xe6)]=[]),_0x12e0de&&_0x294c23[_0xea8d31(0xdc)](_0x12e0de['global'][_0xea8d31(0xca)],undefined)&&(_0x12e0de[_0xea8d31(0xe7)][_0xea8d31(0xca)][_0xea8d31(0xdf)](_0x4d00a6),_0x12e0de[_0xea8d31(0xe7)]['__driversArray'][_0xea8d31(0xdf)](_0x4d00a6)),_0x4d00a6;}}return _0x8e0449[_0x3c3738(0xd5)]=_0x8e0449[_0x3c3738(0xd6)],_0x8e0449['Builder']=_0x303957,_0x3bde75[_0x3c3738(0x131)]=_0x32cac2,_0x8e0449;};function a29_0x39d4(){const _0x2535f6=['setLogLevel','xKEMV','setServer','requireHttpClient','proxyUrl','info','requireSeleniumWebdriver','capability','RGYnX','moz:firefoxOptions','__setBrowserOptions','nEIFx','/wd/hub','../accessibility-automation/helper','quitCount_','aMeQm','browserstackAgentObservability','uiSfu','safariOptions_','eNKrI','goog:chromeOptions','EeAij','MuAcN','oyUbD','getHttpAgent','HttpClient','winstonLogger','updateHubUrl','vOEMO','Dcgbc','agent_','browserStackLogLevel','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','PUjfp','amZJT','capabilities_','build','exports','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','jRMOF','34540580IEbztF','overrideGet','overrideExecute','BProq','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','setCapabilities','chromeOptions_','CAPABILITY_KEY','proxySettings','edgeOptions_','safari.options','RmPuJ','__drivers','lSVPA','Modifying\x20webdriver\x20builder','APTOE','Setting\x20Browserstack\x20capabilities','../../../bin/utils/constants','storeOptimalHubUrl','split','Proxy\x20set\x20to\x20','cnbFq','oOWTV','originalBuilder','Builder','isBrowserstackInfra','jRKDU','145PvQaBy','debug','rrTmK','GJnuv','139092exYeTL','739407pTJwdF','push','firefoxOptions_','NspDQ','logLevel','firefoxOptions','newHubUrl','hHkaV','__driversArray','global','797520JqSQqw','path','getAccessibilityResults','__driver','../../../helpers/helper','hFDFy','12480705TUVxNl','https://','send','then','isPacProxy','se:ieOptions','3|2|0|4|1|5','hywky','3ywsHwC','ieOptions','keys','edgeOptions','isUndefined','../../../hubAllocationMethods','yIitb','../../../helpers/accessibility-automation/helper','New\x20hub\x20url\x20set\x20to\x20','mergeDeep','get','set','proxy_','Hub\x20url\x20set\x20to\x20','yIStA','url_','30CdNxVJ','getAccessibilityResultsSummary','../../../helpers/logger','ZdZvr','/session','getRequestOptions','caps_','fizlI','ieOptions_','setGlobal','getGlobal','../../../helpers/patchHelpers','object','238916xlLkDl','chromeOptions','rDTKH','ms:edgeOptions','223118SZksdu'];a29_0x39d4=function(){return _0x2535f6;};return a29_0x39d4();}module[a29_0x481bdb(0x13d)][a29_0x481bdb(0x128)]=modify;
|
|
1
|
+
function a29_0x584f(){const _0x5e4d91=['XSrCk','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','Modifying\x20webdriver\x20builder','SHDLh','../../../helpers/accessibility-automation/helper','edgeOptions_','XjScm','path','__setBrowserOptions','Proxy\x20set\x20to\x20','Builder','exports','84IbohfB','options_','__driver','WjZrj','debug','set','getAccessibilityResults','getRequestOptions','edgeOptions','overrideGet','../../../bin/utils/constants','isBrowserstackInfra','proxySettings','newHubUrl','594867aOUMUG','setServer','lMAOv','keys','15sveINO','1701414wLKPJf','EjTiQ','push','fTSAb','1856koFSVU','se:ieOptions','isAccessibilityPlatform','getHubUrl','forEach','utzQq','New\x20hub\x20url\x20set\x20to\x20','FWAWi','545808uFhHCN','getAccessibilityResultsSummary','requireSeleniumWebdriver','isPacProxy','../../../helpers/globals','__drivers','3990656SWzDIU','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','dSWZD','firefoxOptions_','browserstackAgentObservability','isUndefined','safariOptions_','getHttpAgent','3128480JgJSjy','QSVSD','browserStackLogLevel','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','jTZpU','30eoXSdA','shRqR','build','originalBuilder','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','then','../../../helpers/helper','proxy_','nIvEP','storeOptimalHubUrl','ieOptions_','../../../helpers/patchHelpers','url_','3271968gIgRaW','chromeOptions_','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','caps_','capability','wmDFx','object','capabilities_','AcDWi','/session','proxyUrl','mergeDeep','error','../../../hubAllocationMethods','xgvxM','send','firefoxOptions','../accessibility-automation/helper','updateHubUrl','goog:chromeOptions','moz:firefoxOptions','logLevel','MLVyN','fcjAX','ieOptions','__driversArray','get','RXFQD','CAPABILITY_KEY','PXyaD','irTfl','HttpClient','JmvLp','setCapabilities','Hub\x20url\x20set\x20to\x20','ms:edgeOptions','global','getGlobal','agent_','winstonLogger','gUkNY'];a29_0x584f=function(){return _0x5e4d91;};return a29_0x584f();}const a29_0xd47b0e=a29_0x369b;(function(_0x21b9b3,_0x98c079){const _0x2afdce=a29_0x369b,_0x599c32=_0x21b9b3();while(!![]){try{const _0x3af8cb=-parseInt(_0x2afdce(0x201))/0x1*(-parseInt(_0x2afdce(0x1ea))/0x2)+parseInt(_0x2afdce(0x1fd))/0x3+parseInt(_0x2afdce(0x209))/0x4*(parseInt(_0x2afdce(0x1fc))/0x5)+parseInt(_0x2afdce(0x21c))/0x6*(-parseInt(_0x2afdce(0x1f8))/0x7)+parseInt(_0x2afdce(0x20f))/0x8+-parseInt(_0x2afdce(0x229))/0x9+-parseInt(_0x2afdce(0x217))/0xa;if(_0x3af8cb===_0x98c079)break;else _0x599c32['push'](_0x599c32['shift']());}catch(_0x470c79){_0x599c32['push'](_0x599c32['shift']());}}}(a29_0x584f,0x6e585));const logger=require('../../../helpers/logger')[a29_0xd47b0e(0x1dc)],helper=require(a29_0xd47b0e(0x222)),constants=require(a29_0xd47b0e(0x1f4)),hubAllocator=require(a29_0xd47b0e(0x1c2)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0xd47b0e(0x227)),{setAccessibilityCapabilities,setExtension}=require(a29_0xd47b0e(0x1c6)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0xd47b0e(0x1e2)),globals=require(a29_0xd47b0e(0x20d)),modify=(_0x1d5d22,_0x3faef7=null,_0x463f7e=![])=>{const _0x16d3bc=a29_0xd47b0e,_0x3ef2d2={'fcjAX':function(_0x470009,_0x3e0288){return _0x470009!==_0x3e0288;},'shRqR':_0x16d3bc(0x1be),'gUkNY':function(_0x40abbb,_0x53cd19){return _0x40abbb!==_0x53cd19;},'fTSAb':function(_0x35eb03,_0x535ca1){return _0x35eb03+_0x535ca1;},'JExEF':function(_0x5929f3,_0x5d198c){return _0x5929f3+_0x5d198c;},'PXyaD':'https://','MhMLm':'/wd/hub','jTZpU':_0x16d3bc(0x1c8),'HdrCv':'chromeOptions','QSVSD':_0x16d3bc(0x1d8),'lMAOv':_0x16d3bc(0x1f2),'utzQq':_0x16d3bc(0x1c9),'NTfti':_0x16d3bc(0x1c5),'yWuQK':'safari.options','fVkDi':_0x16d3bc(0x202),'eejQm':_0x16d3bc(0x1cd),'inWEA':function(_0x48cb6a,_0x545413){return _0x48cb6a===_0x545413;},'fkLbt':_0x16d3bc(0x22f),'DyOFh':'Setting\x20Browserstack\x20capabilities','nIvEP':'optimalHubUrl','EjTiQ':_0x16d3bc(0x1df),'SHDLh':function(_0x5af8c1,_0x1f2f52,_0xa1d3f9){return _0x5af8c1(_0x1f2f52,_0xa1d3f9);},'FWAWi':function(_0x1e9402,_0x35f2ab){return _0x1e9402(_0x35f2ab);},'MLVyN':'1|3|0|5|4|2','dSWZD':function(_0x3d1d73){return _0x3d1d73();},'WjZrj':_0x16d3bc(0x21a),'RXFQD':_0x16d3bc(0x203),'JmvLp':function(_0x26fbef,_0x5ac13d){return _0x26fbef(_0x5ac13d);},'XjScm':function(_0x203054,_0x132897){return _0x203054(_0x132897);},'xgvxM':_0x16d3bc(0x220),'XSrCk':_0x16d3bc(0x1e0)},_0x503ad3=helper['requireHttpClient']();let _0x428e20;try{_0x428e20=helper[_0x16d3bc(0x20b)](),_0x428e20[_0x16d3bc(0x21f)]&&(_0x428e20[_0x16d3bc(0x1e8)]=_0x428e20['originalBuilder']);}catch(_0x6a36d0){return;}if(helper[_0x16d3bc(0x1f5)]()){const _0x32778a={};_0x32778a[_0x16d3bc(0x1ca)]=_0x1d5d22[_0x16d3bc(0x219)],helper['setLogLevel'](_0x32778a,new Map(),new Map()),logger['info'](_0x3ef2d2[_0x16d3bc(0x1c3)]),logger[_0x16d3bc(0x1ee)](_0x3ef2d2[_0x16d3bc(0x1de)]);}class _0x2d7737 extends _0x503ad3[_0x16d3bc(0x1d4)]{[_0x16d3bc(0x1c4)](_0x266182){const _0x4cac39=_0x16d3bc;if(_0x3ef2d2[_0x4cac39(0x1cc)](_0x266182[_0x4cac39(0x1e5)],_0x3ef2d2[_0x4cac39(0x21d)])&&_0x3ef2d2[_0x4cac39(0x1dd)](global[_0x4cac39(0x1f7)],''))try{global[_0x4cac39(0x1f7)]=_0x3ef2d2[_0x4cac39(0x200)](_0x3ef2d2['JExEF'](_0x3ef2d2[_0x4cac39(0x1d2)],global['newHubUrl']),_0x3ef2d2['MhMLm']),this[_0x4cac39(0x1eb)]=hubAllocator[_0x4cac39(0x1f1)](global[_0x4cac39(0x1f7)]),logger[_0x4cac39(0x1ee)](_0x4cac39(0x207)+global[_0x4cac39(0x1f7)]),global['newHubUrl']='';}catch(_0x5e04d0){logger[_0x4cac39(0x1c1)](_0x5e04d0);}return super[_0x4cac39(0x1c4)](_0x266182);}}class _0x5265bc extends _0x428e20[_0x16d3bc(0x1e8)]{[_0x16d3bc(0x1f9)](){const _0xe42a7d=_0x16d3bc;return this[_0xe42a7d(0x228)]=helper[_0xe42a7d(0x204)](_0x1d5d22),logger[_0xe42a7d(0x1ee)](_0xe42a7d(0x1d7)+this[_0xe42a7d(0x228)]),this;}[_0x16d3bc(0x1e6)](_0xc75a22){const _0x1e0fb1=_0x16d3bc;let _0x865dda={};for(const _0x53be29 in _0xc75a22){switch(_0x53be29){case _0x3ef2d2[_0x1e0fb1(0x21b)]:case _0x3ef2d2['HdrCv']:this['chromeOptions_']&&(_0x865dda=this['chromeOptions_']['get'](this[_0x1e0fb1(0x22a)][_0x1e0fb1(0x1d1)])||{},this[_0x1e0fb1(0x22a)][_0x1e0fb1(0x1ef)](this['chromeOptions_'][_0x1e0fb1(0x1d1)],helper[_0x1e0fb1(0x1c0)](_0x865dda,_0xc75a22[_0x53be29])));break;case _0x3ef2d2[_0x1e0fb1(0x218)]:case _0x3ef2d2[_0x1e0fb1(0x1fa)]:this[_0x1e0fb1(0x1e3)]&&(_0x865dda=this[_0x1e0fb1(0x1e3)][_0x1e0fb1(0x1cf)](this[_0x1e0fb1(0x1e3)][_0x1e0fb1(0x1d1)])||{},this[_0x1e0fb1(0x1e3)][_0x1e0fb1(0x1ef)](this['edgeOptions_'][_0x1e0fb1(0x1d1)],helper[_0x1e0fb1(0x1c0)](_0x865dda,_0xc75a22[_0x53be29])));break;case _0x3ef2d2[_0x1e0fb1(0x206)]:case _0x3ef2d2['NTfti']:this[_0x1e0fb1(0x212)]&&(_0x865dda=this[_0x1e0fb1(0x212)][_0x1e0fb1(0x1cf)](this[_0x1e0fb1(0x212)][_0x1e0fb1(0x1d1)])||{},this[_0x1e0fb1(0x212)][_0x1e0fb1(0x1ef)](this[_0x1e0fb1(0x212)]['CAPABILITY_KEY'],helper[_0x1e0fb1(0x1c0)](_0x865dda,_0xc75a22[_0x53be29])));break;case _0x3ef2d2['yWuQK']:this[_0x1e0fb1(0x215)]&&(_0x865dda=this['safariOptions_'][_0x1e0fb1(0x1cf)](this['safariOptions_'][_0x1e0fb1(0x1d1)])||{},this['safariOptions_'][_0x1e0fb1(0x1ef)](this[_0x1e0fb1(0x215)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x865dda,_0xc75a22[_0x53be29])));break;case _0x3ef2d2['fVkDi']:case _0x3ef2d2['eejQm']:this[_0x1e0fb1(0x226)]&&(_0x865dda=this[_0x1e0fb1(0x226)][_0x1e0fb1(0x1cf)](this[_0x1e0fb1(0x226)][_0x1e0fb1(0x1d1)])||{},this[_0x1e0fb1(0x226)]['set'](this[_0x1e0fb1(0x226)][_0x1e0fb1(0x1d1)],helper['mergeDeep'](_0x865dda,_0xc75a22[_0x53be29])));break;}}}[_0x16d3bc(0x1d6)](){const _0x591eaa=_0x16d3bc,_0xb1cb3d={'irTfl':function(_0x2af588,_0x11775b){return _0x3ef2d2['inWEA'](_0x2af588,_0x11775b);},'lTouf':_0x3ef2d2['fkLbt']};return logger[_0x591eaa(0x1ee)](_0x3ef2d2['DyOFh']),this[_0x591eaa(0x1e6)](_0x1d5d22[_0x591eaa(0x22d)]),Object[_0x591eaa(0x1fb)](_0x1d5d22[_0x591eaa(0x22d)])[_0x591eaa(0x205)](_0x342260=>{const _0x213184=_0x591eaa,_0x284749=this['capabilities_']['get'](_0x342260);_0xb1cb3d[_0x213184(0x1d3)](typeof _0x284749,_0xb1cb3d['lTouf'])?this['capabilities_'][_0x213184(0x1ef)](_0x342260,helper[_0x213184(0x1c0)](_0x284749,_0x1d5d22[_0x213184(0x22d)][_0x342260])):this[_0x213184(0x230)][_0x213184(0x1ef)](_0x342260,_0x1d5d22[_0x213184(0x22d)][_0x342260]);}),this;}[_0x16d3bc(0x21e)](){const _0x4a829e=_0x16d3bc,_0x224ec6={'wmDFx':function(_0x6f8f4f,_0x1eee99,_0x246574){return _0x3ef2d2['SHDLh'](_0x6f8f4f,_0x1eee99,_0x246574);}};if(helper[_0x4a829e(0x1f5)]()){const _0x25dd18=_0x3ef2d2[_0x4a829e(0x1cb)]['split']('|');let _0x15607d=0x0;while(!![]){switch(_0x25dd18[_0x15607d++]){case'0':this[_0x4a829e(0x1d6)]();continue;case'1':_0x3ef2d2[_0x4a829e(0x211)](isAccessibilityAutomationSession)&&_0x3ef2d2[_0x4a829e(0x208)](setAccessibilityCapabilities,_0x1d5d22);continue;case'2':logger[_0x4a829e(0x1ee)](_0x3ef2d2[_0x4a829e(0x1ed)]);continue;case'3':this[_0x4a829e(0x1f9)]();continue;case'4':globals[_0x4a829e(0x1da)](_0x3ef2d2[_0x4a829e(0x1d0)])&&(!_0x3ef2d2[_0x4a829e(0x1e1)](setExtension,this,_0x1d5d22)&&globals['setGlobal'](_0x3ef2d2[_0x4a829e(0x1d0)],![]));continue;case'5':if(helper[_0x4a829e(0x20c)](_0x1d5d22[_0x4a829e(0x1f6)]['proxyUrl']))this[_0x4a829e(0x1db)]=helper[_0x4a829e(0x216)](_0x1d5d22[_0x4a829e(0x1f6)][_0x4a829e(0x1bf)]);else _0x1d5d22[_0x4a829e(0x1f6)]['proxyUrl']&&(this[_0x4a829e(0x223)]=_0x1d5d22['proxySettings'][_0x4a829e(0x1bf)],logger['debug'](_0x4a829e(0x1e7)+this['proxy_']));continue;}break;}}const _0x2d7af5=super['build']();return _0x2d7af5['session_'][_0x4a829e(0x221)](_0x459ef8=>{const _0x5de270=_0x4a829e;try{const _0x1f0c72=_0x459ef8[_0x5de270(0x22c)][_0x5de270(0x1cf)](_0x3ef2d2[_0x5de270(0x224)]);_0x1f0c72?(logger[_0x5de270(0x1ee)](_0x5de270(0x22b)+_0x1f0c72),hubAllocator[_0x5de270(0x1c7)](_0x1f0c72),helper[_0x5de270(0x225)](_0x1f0c72)):logger[_0x5de270(0x1ee)](_0x3ef2d2[_0x5de270(0x1fe)]);}catch(_0x4ea731){logger[_0x5de270(0x1ee)](_0x5de270(0x210)+_0x4ea731);}}),_0x2d7af5['quitCount_']=0x0,_0x2d7af5[_0x4a829e(0x221)]&&_0x2d7af5['then'](_0x2fdcfe=>{const _0x44a244=_0x4a829e,_0x20fa41={'AcDWi':function(_0x2d7a4a,_0x1ea609,_0xb3f0a1){const _0x130bbb=a29_0x369b;return _0x3ef2d2[_0x130bbb(0x1e1)](_0x2d7a4a,_0x1ea609,_0xb3f0a1);}};_0x3ef2d2[_0x44a244(0x1e1)](overrideQuit,_0x2fdcfe,_0x2d7af5),_0x3ef2d2[_0x44a244(0x208)](overrideTakeScreenshot,_0x2fdcfe),helper[_0x44a244(0x1f3)](_0x2fdcfe,_0x1d5d22),helper['overrideExecute'](_0x2fdcfe,_0x1d5d22),_0x2fdcfe[_0x44a244(0x20a)]=async()=>{const _0x3abfe9=_0x44a244;return await _0x20fa41[_0x3abfe9(0x231)](getAccessibilityResultsSummary,_0x2fdcfe,global);},_0x2fdcfe[_0x44a244(0x1f0)]=async()=>{return await _0x224ec6['wmDFx'](getAccessibilityResults,_0x2fdcfe,global);};}),_0x2d7af5[_0x4a829e(0x20a)]=async()=>{const _0x1959d6=_0x4a829e;return await _0x224ec6[_0x1959d6(0x22e)](getAccessibilityResultsSummary,_0x2d7af5,global);},_0x2d7af5['getAccessibilityResults']=async()=>{return await _0x224ec6['wmDFx'](getAccessibilityResults,_0x2d7af5,global);},_0x3ef2d2[_0x4a829e(0x1d5)](overrideTakeScreenshot,_0x2d7af5),_0x3ef2d2[_0x4a829e(0x1e4)](overrideQuit,_0x2d7af5),helper[_0x4a829e(0x1f3)](_0x2d7af5,_0x1d5d22),helper['overrideExecute'](_0x2d7af5,_0x1d5d22),helper[_0x4a829e(0x214)](global[_0x4a829e(0x1ce)])&&(global[_0x4a829e(0x1ce)]=[]),helper['isUndefined'](global[_0x4a829e(0x20e)])&&(global[_0x4a829e(0x20e)]=[]),global['__driversArray']['push'](_0x2d7af5),global[_0x4a829e(0x1ec)]=_0x2d7af5,_0x3ef2d2['gUkNY'](global[_0x4a829e(0x20e)],undefined)&&global['__drivers'][_0x4a829e(0x1ff)](_0x2d7af5),_0x3faef7&&helper[_0x4a829e(0x214)](_0x3faef7[_0x4a829e(0x1d9)][_0x4a829e(0x1ce)])&&(_0x3faef7[_0x4a829e(0x1d9)]['__driversArray']=[]),_0x3faef7&&_0x3ef2d2[_0x4a829e(0x1cc)](_0x3faef7[_0x4a829e(0x1d9)][_0x4a829e(0x20e)],undefined)&&(_0x3faef7[_0x4a829e(0x1d9)][_0x4a829e(0x20e)][_0x4a829e(0x1ff)](_0x2d7af5),_0x3faef7[_0x4a829e(0x1d9)]['__driversArray'][_0x4a829e(0x1ff)](_0x2d7af5)),_0x2d7af5;}}return _0x428e20['originalBuilder']=_0x428e20[_0x16d3bc(0x1e8)],_0x428e20[_0x16d3bc(0x1e8)]=_0x5265bc,_0x503ad3[_0x16d3bc(0x1d4)]=_0x2d7737,_0x428e20;};function a29_0x369b(_0x506f26,_0x2c3db4){const _0x584f5f=a29_0x584f();return a29_0x369b=function(_0x369b84,_0x56a92e){_0x369b84=_0x369b84-0x1be;let _0x2d9aad=_0x584f5f[_0x369b84];return _0x2d9aad;},a29_0x369b(_0x506f26,_0x2c3db4);}module[a29_0xd47b0e(0x1e9)][a29_0xd47b0e(0x213)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x2907a2=a30_0x15b5;(function(_0x432f72,_0x39d2d2){const _0xbfe084=a30_0x15b5,_0x4297cf=_0x432f72();while(!![]){try{const _0x354025=-parseInt(_0xbfe084(0x1f6))/0x1+-parseInt(_0xbfe084(0x1f9))/0x2*(-parseInt(_0xbfe084(0x1f8))/0x3)+-parseInt(_0xbfe084(0x1ff))/0x4+-parseInt(_0xbfe084(0x1fc))/0x5*(parseInt(_0xbfe084(0x1f7))/0x6)+-parseInt(_0xbfe084(0x1f3))/0x7+parseInt(_0xbfe084(0x1f5))/0x8+-parseInt(_0xbfe084(0x1f4))/0x9*(-parseInt(_0xbfe084(0x1fe))/0xa);if(_0x354025===_0x39d2d2)break;else _0x4297cf['push'](_0x4297cf['shift']());}catch(_0xecc0b2){_0x4297cf['push'](_0x4297cf['shift']());}}}(a30_0xad3b,0x1ada7));function a30_0xad3b(){const _0x22915f=['598990rYuecH','9GqNwcQ','1274648sklCmZ','217169QqFLJq','822iCwFzG','95547iaMZXE','4OJYyxN','timeout','../../../helpers/test-observability/utils','2975PgtEfr','../../../bin/utils/constants','3425980DSCVnQ','285528uGfdup','../../../helpers/request-spy','restore'];a30_0xad3b=function(){return _0x22915f;};return a30_0xad3b();}function a30_0x15b5(_0x1884c6,_0x5f164e){const _0xad3b23=a30_0xad3b();return a30_0x15b5=function(_0x15b5d0,_0x5ddf34){_0x15b5d0=_0x15b5d0-0x1f3;let _0x109f34=_0xad3b23[_0x15b5d0];return _0x109f34;},a30_0x15b5(_0x1884c6,_0x5f164e);}const requestSpy=require(a30_0x2907a2(0x200)),constants=require(a30_0x2907a2(0x1fd)),{addRequestSpy}=require(a30_0x2907a2(0x1fb));exports['mochaHooks']={'beforeAll'(){const _0x5ee3d3={'Xrkyj':function(_0x1d2359){return _0x1d2359();}},_0x308a23='browserstack internal helper hook';_0x5ee3d3['Xrkyj'](addRequestSpy);},'afterAll'(){const _0x212078=a30_0x2907a2,_0x5cb5ea='browserstack internal helper hook';this[_0x212078(0x1fa)](0xea60),requestSpy[_0x212078(0x201)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x48e78a=a31_0xb0ac;(function(_0x150325,_0x5d4deb){const _0x3cce23=a31_0xb0ac,_0x33acd2=_0x150325();while(!![]){try{const _0x373bbb=-parseInt(_0x3cce23(0x138))/0x1+parseInt(_0x3cce23(0x162))/0x2+parseInt(_0x3cce23(0x135))/0x3+-parseInt(_0x3cce23(0x152))/0x4+-parseInt(_0x3cce23(0x169))/0x5+parseInt(_0x3cce23(0x136))/0x6*(parseInt(_0x3cce23(0x16f))/0x7)+-parseInt(_0x3cce23(0x144))/0x8*(-parseInt(_0x3cce23(0x142))/0x9);if(_0x373bbb===_0x5d4deb)break;else _0x33acd2['push'](_0x33acd2['shift']());}catch(_0x419771){_0x33acd2['push'](_0x33acd2['shift']());}}}(a31_0x25fd,0x344be));const {v4:uuidv4}=require(a31_0x48e78a(0x13c)),{name,version}=require(a31_0x48e78a(0x16e)),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook}=require(a31_0x48e78a(0x14f)),{consoleHolder}=require('../../../helpers/test-observability/constants'),{getPlatformVersion}=require(a31_0x48e78a(0x148)),{shouldProcessEventForTesthub}=require(a31_0x48e78a(0x17e));function a31_0xb0ac(_0x4930ac,_0x4de91a){const _0x25fd86=a31_0x25fd();return a31_0xb0ac=function(_0xb0acd9,_0x403288){_0xb0acd9=_0xb0acd9-0x134;let _0x14405e=_0x25fd86[_0xb0acd9];return _0x14405e;},a31_0xb0ac(_0x4930ac,_0x4de91a);}function a31_0x25fd(){const _0x4fed08=['_afterEach','UrodM','../../../helpers/helper','forEach','kwaUX','state','ubtLH','getHookSkippedTests','_beforeAll','../../../helpers/test-observability/utils','hookAnalyticsId','eqFXn','581128gQVtBv','MvvCB','__cloud_provider___','hXbeh','parent','getCapabilities','hook','failed','HAweV','ITImt','FJCUj','fromEntries','js-','reduce','browserstack','PcCgd','402382dRAWGJ','ibFuP','passed','_beforeEach','getBrowserVersion','getSession','GcbrP','1925085HyNvXr','oNqdd','BdXVy','sCuEg','tGmhK','../../../../package.json','7bNDOwH','getHooksForTest','indexOf','tests','gntCe','pid','TEST_PLATFORM','YWJZa','JHEfr','markedStatus','toISOString','sendPlatformDetails','slice','Lwxvw','split','../../../helpers/testhub/utils','toJSON','automate','aMYtP','getBrowserName','mapTestHooks','vQrkd','app-automate','nSCNa','_afterAll','appium:app','urpzC','saKlh','hook:','map_','suites','1243599iranDO','2706IOQfNY','filter','358408ybFueg','jmHmu','TYCgP','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','uuid','app','generic','Xvqwb','unknown_grid','bs:addPlatformDetails:','81BLHxyS','getTestEnv','432656OUXCPA','concat'];a31_0x25fd=function(){return _0x4fed08;};return a31_0x25fd();}console={},Object['keys'](consoleHolder)['forEach'](_0x1e111d=>{console[_0x1e111d]=(..._0xf20965)=>{BSTestOpsPatcher[_0x1e111d](..._0xf20965);};}),exports[a31_0x48e78a(0x143)]=()=>{const _0x528a7b=a31_0x48e78a,_0x490553={'HAweV':_0x528a7b(0x13e),'JHEfr':function(_0x5cabbe){return _0x5cabbe();}};return{'ci':_0x490553[_0x528a7b(0x15a)],'key':_0x490553[_0x528a7b(0x177)](uuidv4),'version':version,'collector':_0x528a7b(0x15e)+name};},exports['getHookDetails']=_0x2be7fd=>{const _0x47a589=a31_0x48e78a,_0x36816c={};_0x36816c[_0x47a589(0x151)]=function(_0x351c3b,_0x48bf44){return _0x351c3b!==_0x48bf44;},_0x36816c['bngwN']='string',_0x36816c[_0x47a589(0x147)]=_0x47a589(0x18b),_0x36816c['vQrkd']=_0x47a589(0x158);const _0x32ceab=_0x36816c;if(!_0x2be7fd||_0x32ceab[_0x47a589(0x151)](typeof _0x2be7fd,_0x32ceab['bngwN']))return[null,null];if(_0x32ceab[_0x47a589(0x151)](_0x2be7fd[_0x47a589(0x171)](_0x32ceab[_0x47a589(0x147)]),-0x1)){const _0x4b4549=_0x2be7fd[_0x47a589(0x17d)](_0x32ceab[_0x47a589(0x147)]);return[_0x4b4549[0x0][_0x47a589(0x17b)](0x0,-0x1)['split']('\x22')[0x1],_0x4b4549[0x1]['substring'](0x1)];}else{if(_0x32ceab[_0x47a589(0x151)](_0x2be7fd[_0x47a589(0x171)](_0x32ceab[_0x47a589(0x184)]),-0x1)){const _0x364533=_0x2be7fd['split'](_0x32ceab['vQrkd']);return[_0x364533[0x0]['slice'](0x0,-0x1)['split']('\x22')[0x1],_0x2be7fd];}}return[null,null];},exports['getHooksForTest']=_0x1fa43e=>{const _0x1564f1=a31_0x48e78a,_0xa0c531={'tGmhK':function(_0x9172fe,_0x1de292){return _0x9172fe(_0x1de292);},'ibFuP':_0x1564f1(0x14e),'urpzC':_0x1564f1(0x187),'Lwxvw':'_beforeEach','sCuEg':'_afterEach'};if(!_0x1fa43e||!_0x1fa43e['parent'])return[];const _0x418dec=[];return[_0xa0c531[_0x1564f1(0x163)],_0xa0c531[_0x1564f1(0x189)],_0xa0c531[_0x1564f1(0x17c)],_0xa0c531[_0x1564f1(0x16c)]][_0x1564f1(0x149)](_0x2ccc12=>{const _0x4a2d88=_0x1564f1,_0x18632d=_0x1fa43e['parent'][_0x2ccc12]||[];_0x18632d[_0x4a2d88(0x149)](_0x2e7360=>{const _0x4b3805=_0x4a2d88;_0x2e7360[_0x4b3805(0x150)]&&!_0xa0c531[_0x4b3805(0x16d)](isInternalHook,_0x2e7360['fn'])&&_0x418dec['push'](_0x2e7360[_0x4b3805(0x150)]);});}),[..._0x418dec,...exports[_0x1564f1(0x170)](_0x1fa43e[_0x1564f1(0x156)])];},exports[a31_0x48e78a(0x183)]=_0x334a2f=>{const _0xfa9779=a31_0x48e78a,_0x399da0={'nSCNa':function(_0x39f50c){return _0x39f50c();},'saKlh':function(_0x30e76b,_0x25c3c7){return _0x30e76b===_0x25c3c7;},'TYCgP':_0xfa9779(0x146),'MvvCB':_0xfa9779(0x14e),'JnHTE':_0xfa9779(0x187),'jmHmu':_0xfa9779(0x165)};if(!_0x334a2f||!_0x334a2f[_0xfa9779(0x156)])return;[_0x399da0[_0xfa9779(0x153)],_0x399da0['JnHTE'],_0x399da0[_0xfa9779(0x139)],_0x399da0[_0xfa9779(0x13a)]][_0xfa9779(0x149)](_0x242673=>{const _0x19e55f=_0xfa9779,_0x5ed760=_0x334a2f[_0x19e55f(0x156)][_0x242673]||[];_0x5ed760[_0x19e55f(0x149)](_0x22db37=>{const _0xc4a89e=_0x19e55f;if(!_0x22db37[_0xc4a89e(0x150)])_0x22db37[_0xc4a89e(0x150)]=_0x399da0['nSCNa'](uuidv4);else _0x22db37['markedStatus']&&_0x399da0[_0xc4a89e(0x18a)](_0x242673,_0x399da0[_0xc4a89e(0x13a)])&&(_0x22db37[_0xc4a89e(0x150)]=_0x399da0[_0xc4a89e(0x186)](uuidv4),delete _0x22db37[_0xc4a89e(0x178)]);});}),exports['mapTestHooks'](_0x334a2f[_0xfa9779(0x156)]);},exports[a31_0x48e78a(0x17a)]=async(_0x5d56dd,_0xfd2572)=>{const _0x2d0661=a31_0x48e78a,_0x58e772={'gntCe':function(_0xa165f0){return _0xa165f0();},'GcbrP':function(_0x455438,_0x33e114){return _0x455438===_0x33e114;},'YWJZa':_0x2d0661(0x160),'aMYtP':_0x2d0661(0x188),'kwaUX':_0x2d0661(0x13d),'ubtLH':_0x2d0661(0x185),'dsHTu':_0x2d0661(0x180),'LAYiS':function(_0x6901bc,_0x479a9d){return _0x6901bc(_0x479a9d);},'hXbeh':function(_0x4722a8,_0x258f62){return _0x4722a8===_0x258f62;},'ITImt':_0x2d0661(0x140),'PasSi':_0x2d0661(0x175),'oNqdd':function(_0x773950,_0x43f94c){return _0x773950(_0x43f94c);}};try{if(!_0x58e772[_0x2d0661(0x173)](shouldProcessEventForTesthub))return;const _0x3213a2=await _0x5d56dd[_0x2d0661(0x157)](),_0x11224f=await _0x5d56dd[_0x2d0661(0x167)](),_0x4501c2={},_0x24e2b9=Object[_0x2d0661(0x15d)](_0x11224f[_0x2d0661(0x157)]()[_0x2d0661(0x18c)]),_0x19153b={'product':_0x58e772[_0x2d0661(0x168)](global['__cloud_provider___'],_0x58e772[_0x2d0661(0x176)])?_0x24e2b9[_0x58e772[_0x2d0661(0x181)]]||_0x24e2b9[_0x58e772[_0x2d0661(0x14a)]]?_0x58e772[_0x2d0661(0x14c)]:_0x58e772['dsHTu']:null,'capabilities':_0x24e2b9,'platform':_0x3213a2['getPlatform'](),'platform_version':_0x58e772['LAYiS'](getPlatformVersion,_0x58e772[_0x2d0661(0x155)](global[_0x2d0661(0x154)],_0x58e772[_0x2d0661(0x176)])),'browser':_0x3213a2[_0x2d0661(0x182)](),'browser_version':_0x3213a2[_0x2d0661(0x166)](),'session_id':_0x11224f[_0x2d0661(0x17f)]()};global[_0x2d0661(0x154)]?_0x4501c2[global['__cloud_provider___']]=_0x19153b:_0x4501c2[_0x58e772[_0x2d0661(0x15b)]]=_0x19153b,process['emit'](_0x2d0661(0x141)+process[_0x2d0661(0x174)],{'timestamp':new Date()[_0x2d0661(0x179)](),'level':null,'message':null,'kind':_0x58e772['PasSi'],'http_response':_0x4501c2,'uuid':_0xfd2572});}catch(_0x1848f6){_0x58e772[_0x2d0661(0x16a)](debug,_0x2d0661(0x13b)+_0x1848f6);}},exports[a31_0x48e78a(0x14d)]=_0x35af5c=>{const _0x515a89=a31_0x48e78a,_0x1e76c1={};_0x1e76c1[_0x515a89(0x15c)]=function(_0x570e52,_0x2e479d){return _0x570e52!==_0x2e479d;},_0x1e76c1[_0x515a89(0x16b)]=_0x515a89(0x158),_0x1e76c1['PcCgd']=_0x515a89(0x164),_0x1e76c1[_0x515a89(0x13f)]=_0x515a89(0x159);const _0x4e90bd=_0x1e76c1,_0x4b14d7=_0x35af5c[_0x515a89(0x134)][_0x515a89(0x15f)]((_0x2dfc5f,_0x22be7e)=>{const _0x3f228c=_0x515a89,_0x2c02d0=exports[_0x3f228c(0x14d)](_0x22be7e);return _0x2c02d0&&(_0x2dfc5f=_0x2dfc5f['concat'](_0x2c02d0)),_0x2dfc5f;},[]),_0x3a3403=_0x35af5c[_0x515a89(0x172)][_0x515a89(0x137)](_0x51fe29=>{const _0x28c406=_0x515a89,_0x18369f=_0x4e90bd[_0x28c406(0x15c)](_0x51fe29['type'],_0x4e90bd[_0x28c406(0x16b)])&&!_0x51fe29[_0x28c406(0x178)]&&_0x4e90bd[_0x28c406(0x15c)](_0x51fe29[_0x28c406(0x14b)],_0x4e90bd[_0x28c406(0x161)])&&_0x4e90bd[_0x28c406(0x15c)](_0x51fe29[_0x28c406(0x14b)],_0x4e90bd[_0x28c406(0x13f)])&&!_0x51fe29['pending'];return _0x18369f;});return _0x3a3403[_0x515a89(0x145)](_0x4b14d7);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x59e4(_0x5c0ad6,_0x24f3b0){const _0x123780=a32_0x1237();return a32_0x59e4=function(_0x59e440,_0x1b11ea){_0x59e440=_0x59e440-0x1c0;let _0x1c015a=_0x123780[_0x59e440];return _0x1c015a;},a32_0x59e4(_0x5c0ad6,_0x24f3b0);}const a32_0x20d873=a32_0x59e4;(function(_0x437fd4,_0x32a73b){const _0x5e4b71=a32_0x59e4,_0x18e708=_0x437fd4();while(!![]){try{const _0x59daa1=parseInt(_0x5e4b71(0x227))/0x1*(-parseInt(_0x5e4b71(0x20b))/0x2)+-parseInt(_0x5e4b71(0x222))/0x3+parseInt(_0x5e4b71(0x200))/0x4*(parseInt(_0x5e4b71(0x1f0))/0x5)+-parseInt(_0x5e4b71(0x1d7))/0x6+-parseInt(_0x5e4b71(0x22d))/0x7+-parseInt(_0x5e4b71(0x1d6))/0x8+parseInt(_0x5e4b71(0x1c0))/0x9*(parseInt(_0x5e4b71(0x1ed))/0xa);if(_0x59daa1===_0x32a73b)break;else _0x18e708['push'](_0x18e708['shift']());}catch(_0x55daa1){_0x18e708['push'](_0x18e708['shift']());}}}(a32_0x1237,0xbe5a5));function a32_0x1237(){const _0x19e50f=['browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','__error_messages__','fFgfT','2488367TubMIN','err','isAccessibilityPlatform','setGlobal','percyCaptureMode','hdBND','ObservabilitySync:','titlePath','nCejY','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','cLMyj','711zRjWEz','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','Automate\x20test\x20case\x20execution\x20has\x20started.','then','Failed:\x20','browserstackSessionName','failed','cXbcp','thBuildUuid','QMHTa','\x20|\x20','dpSmx','SXuQl','pCNmn','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','passed','ENV_VAR','currentTest','debug','IvOKy','../../helpers/testhub/utils','shift','2114424wOmSeO','5293974jIXstN','oqThY','saveTestResults','env','getGlobal','accessibilityScanStarted','Failed\x20to\x20store\x20session\x20name:\x20','../../helpers/accessibility-automation/scripts','Srhud','testAnalyticsId','xgiXo','percy','performScan','\x20-\x20','TKxlK','../../helpers/testhub/constants','UmWAH','pJFEa','\x22}}','quitCount_','testcase','bstackA11yShouldScan','335870eWcWsH','RkaSt','Awimu','5xitsGI','capabilities','lJTCR','app','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','kYytw','yrSJm','length','initQuit','isArray','join','SyeqY','timeout','message','yqFOb','https:','3884612TxowRl','executeAsyncScript','shouldScanTestForAccessibility','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','vTofu','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','util','protocol','error','tmKhG','ufFFy','22oWSVSY','BBbjd','thJwtToken','thTestRunUuid','fqSEG','eUaFI','stringify','aNdXT','session_','Performing\x20scan\x20before\x20saving\x20results','info','__sessionFailed','xBeKb','ixsxm','__skipSessionName','winstonLogger','BROWSERSTACK_TESTHUB_JWT','BROWSERSTACK_TESTHUB_UUID','format','qHNXx','../../helpers/globals','__drivers','fgPDg','2459397eWOOSc',',\x22level\x22:\x20\x22','.\x20Error\x20:','kJvti','driverCleanup','47539gVglAw','startMonitoring','vqEnm'];a32_0x1237=function(){return _0x19e50f;};return a32_0x1237();}const util=require(a32_0x20d873(0x206)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require('../../helpers/performance-tester'),scripts=require(a32_0x20d873(0x1de)),globals=require(a32_0x20d873(0x21f)),logger=require('../../helpers/logger')[a32_0x20d873(0x21a)],{shouldProcessEventForTesthub}=require(a32_0x20d873(0x1d4)),testHubConstants=require(a32_0x20d873(0x1e6));exports['mochaHooks']={'beforeAll'(){const _0x1f1588=a32_0x20d873,_0x51a0e5={'QMHTa':function(_0x4f5eb7,_0xaa5e4f,_0x4a4e0d,_0x54a830){return _0x4f5eb7(_0xaa5e4f,_0x4a4e0d,_0x54a830);},'TGMCQ':_0x1f1588(0x1c6),'pCNmn':_0x1f1588(0x1ca),'hdBND':function(_0x29965f,_0x5002f5,_0x3e233a){return _0x29965f(_0x5002f5,_0x3e233a);},'tmKhG':_0x1f1588(0x1cf),'EdZei':function(_0x1a3d20){return _0x1a3d20();},'IXyaY':function(_0x582625,_0x24d2dd,_0x29d844){return _0x582625(_0x24d2dd,_0x29d844);}};PerformanceTester[_0x1f1588(0x228)]();const _0x542acf='browserstack internal helper hook';global[_0x1f1588(0x22b)]=[],global['__sessionFailed']=![],global[_0x1f1588(0x226)]=async()=>{const _0x286f93=_0x1f1588;let _0x54073d=![];try{await global[_0x286f93(0x220)][0x0][_0x286f93(0x213)],_0x54073d=!![],global['__sessionFailed']?await _0x51a0e5[_0x286f93(0x1c9)](markSessionStatus,global[_0x286f93(0x220)][0x0],_0x51a0e5['TGMCQ'],global[_0x286f93(0x22b)][_0x286f93(0x1fa)](_0x51a0e5[_0x286f93(0x1cd)])):await _0x51a0e5[_0x286f93(0x232)](markSessionStatus,global['__drivers'][0x0],_0x51a0e5[_0x286f93(0x209)]);}catch(_0x26b915){}global[_0x286f93(0x22b)]=[],global[_0x286f93(0x216)]=![];if(_0x54073d)try{try{_0x51a0e5['EdZei'](shouldProcessEventForTesthub)&&(global[_0x286f93(0x220)][0x0]&&await _0x51a0e5['IXyaY'](sendPlatformDetails,global[_0x286f93(0x220)][0x0],this[_0x286f93(0x1d1)]?this[_0x286f93(0x1d1)][_0x286f93(0x1e0)]:null));}catch{}await global[_0x286f93(0x220)][0x0][_0x286f93(0x1f8)]();}catch(_0x147ff2){}};},'beforeEach'(_0x415d55){const _0x5bb145=a32_0x20d873,_0x5938e5={'ReDCE':function(_0x4ffa8e,_0x454d65){return _0x4ffa8e>_0x454d65;},'xHqYj':function(_0xb5a96a,_0x1b4fe4){return _0xb5a96a>_0x1b4fe4;},'BBbjd':_0x5bb145(0x1e4),'fgPDg':function(_0x5062c1,_0x1db8a1,_0x4345e2){return _0x5062c1(_0x1db8a1,_0x4345e2);},'yqFOb':_0x5bb145(0x1ec),'lJTCR':function(_0x1821ad){return _0x1821ad();},'ixsxm':function(_0x499b24,_0x101ba7){return _0x499b24>_0x101ba7;},'kYytw':_0x5bb145(0x22f),'vqEnm':function(_0x5a2410,_0x5bbb58){return _0x5a2410===_0x5bbb58;},'VXSkM':'http:','PwFVQ':_0x5bb145(0x1ff),'yrSJm':_0x5bb145(0x236),'cXbcp':_0x5bb145(0x1c2),'kJvti':function(_0x4a3fb9){return _0x4a3fb9();}};new Promise(async _0x5111be=>{const _0x39fff7=_0x5bb145,_0x2a486d='browserstack internal helper hook';let _0x32bcba=!![];try{_0x5938e5['ReDCE'](global[_0x39fff7(0x220)][_0x39fff7(0x1f7)],0x1)&&(await global['driverCleanup'](),global[_0x39fff7(0x220)][_0x39fff7(0x1d5)]()),_0x5938e5['xHqYj'](global[_0x39fff7(0x220)][0x0][_0x39fff7(0x1ea)],0x0)&&(_0x32bcba=![],await global['driverCleanup']());}catch{}try{Array['isArray'](global[_0x39fff7(0x220)])&&global[_0x39fff7(0x220)][0x0]&&(global['__drivers'][0x0][_0x39fff7(0x1c5)]=this[_0x39fff7(0x1d1)][_0x39fff7(0x234)]()[_0x39fff7(0x1fa)](_0x5938e5[_0x39fff7(0x20c)])),global[_0x39fff7(0x1c5)]=this['currentTest']['titlePath']()[_0x39fff7(0x1fa)](_0x5938e5[_0x39fff7(0x20c)]);}catch(_0x4d7857){logger[_0x39fff7(0x1d2)](_0x39fff7(0x1dd)+_0x4d7857);}this['currentTest'][_0x39fff7(0x202)]=_0x5938e5[_0x39fff7(0x221)](shouldScanTestForAccessibility,this[_0x39fff7(0x1d1)][_0x39fff7(0x234)](),!![]),globals[_0x39fff7(0x230)](_0x5938e5[_0x39fff7(0x1fe)],this[_0x39fff7(0x1d1)][_0x39fff7(0x202)]),this[_0x39fff7(0x1d1)]['accessibilityScanStarted']=!![];if(_0x5938e5[_0x39fff7(0x1f2)](isAccessibilityAutomationSession)&&_0x32bcba&&Array[_0x39fff7(0x1f9)](global[_0x39fff7(0x220)])&&_0x5938e5[_0x39fff7(0x218)](global[_0x39fff7(0x220)]['length'],0x0)&&globals[_0x39fff7(0x1db)](_0x5938e5[_0x39fff7(0x1f5)]))try{const _0x417bab=await global['__drivers'][0x0][_0x39fff7(0x213)];if(_0x417bab){let _0x131c2c=!![];const _0x430405=await global['__drivers'][0x0]['getCurrentUrl']();let _0x2cdbb5;try{_0x2cdbb5=new URL(_0x430405);}catch(_0x4b79e0){_0x131c2c=![];}_0x131c2c=_0x5938e5[_0x39fff7(0x229)](_0x2cdbb5[_0x39fff7(0x207)],_0x5938e5['VXSkM'])||_0x5938e5[_0x39fff7(0x229)](_0x2cdbb5[_0x39fff7(0x207)],_0x5938e5['PwFVQ']),_0x131c2c&&(this['currentTest']['shouldScanTestForAccessibility']&&logger['info'](_0x5938e5[_0x39fff7(0x1f6)])),this['currentTest'][_0x39fff7(0x1dc)]=this['currentTest'][_0x39fff7(0x202)],this[_0x39fff7(0x1d1)][_0x39fff7(0x202)]&&logger[_0x39fff7(0x215)](_0x5938e5[_0x39fff7(0x1c7)]);}}catch(_0x875ee8){logger[_0x39fff7(0x208)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x39fff7(0x21d)](_0x875ee8));}_0x5938e5[_0x39fff7(0x225)](_0x5111be);})[_0x5bb145(0x1c3)](_0x415d55);},'afterEach'(_0x141b7a){const _0x2ec762=a32_0x20d873,_0xf9fa3f={'cLMyj':function(_0x48f90c,_0x5080eb){return _0x48f90c>_0x5080eb;},'aNdXT':function(_0x4991d7,_0x309192){return _0x4991d7===_0x309192;},'pJFEa':_0x2ec762(0x1eb),'xgiXo':'appium:app','IvOKy':function(_0x1982c0,_0x121fb2,_0x436f8c,_0x44fde9){return _0x1982c0(_0x121fb2,_0x436f8c,_0x44fde9);},'Srhud':_0x2ec762(0x1e4),'eUaFI':function(_0x505ef5,_0x2fc2d0){return _0x505ef5!==_0x2fc2d0;},'DqafA':_0x2ec762(0x1cf),'RkaSt':function(_0x2393d8,_0x261371,_0x1f01f9){return _0x2393d8(_0x261371,_0x1f01f9);},'fFgfT':function(_0xb423fa,_0x386a1d){return _0xb423fa+_0x386a1d;},'Awimu':_0x2ec762(0x1c4),'vTofu':'error','dpSmx':function(_0x247b5b,_0xd867bc,_0x5ea7cd){return _0x247b5b(_0xd867bc,_0x5ea7cd);},'SyeqY':'Passed','ufFFy':'info','xBeKb':_0x2ec762(0x22f),'oqThY':'bstackA11yShouldScan','TKxlK':_0x2ec762(0x1ce),'nCejY':_0x2ec762(0x214),'rNUay':_0x2ec762(0x205),'qHNXx':function(_0x473a59){return _0x473a59();},'jHwRz':function(_0x2be0fc){return _0x2be0fc();},'fqSEG':function(_0x3de5e9,_0x40a3d7,_0x476705){return _0x3de5e9(_0x40a3d7,_0x476705);},'UmWAH':_0x2ec762(0x1d2)},_0x5b6a5c='browserstack internal helper hook';this[_0x2ec762(0x1fc)](0xfde8);const _0xd25f5=async(_0x5b9ab8,_0x22deae)=>{const _0x296f45=_0x2ec762;await global[_0x296f45(0x220)][0x0]['executeScript'](_0x296f45(0x22a)+_0x5b9ab8+_0x296f45(0x223)+_0x22deae+_0x296f45(0x1e9));};new Promise(async _0x547cfd=>{const _0x530520=_0x2ec762;try{_0xf9fa3f['cLMyj'](global[_0x530520(0x220)][_0x530520(0x1f7)],0x1)&&(await global['driverCleanup'](),global[_0x530520(0x220)]['shift'](),global[_0x530520(0x22b)]=[],global[_0x530520(0x216)]=![]);try{if(global[_0x530520(0x1e2)]&&_0xf9fa3f[_0x530520(0x212)](global[_0x530520(0x231)],_0xf9fa3f[_0x530520(0x1e8)])&&global[_0x530520(0x220)][0x0]){const _0x24a7ea=_0xf9fa3f[_0x530520(0x237)](global[_0x530520(0x1f1)][_0x530520(0x1f7)],0x0)?!!global[_0x530520(0x1f1)][0x0]['app']||!!global[_0x530520(0x1f1)][0x0][_0xf9fa3f[_0x530520(0x1e1)]]:![],_0x23367a={};_0x23367a[_0x530520(0x1f3)]=_0x24a7ea,await _0xf9fa3f[_0x530520(0x1d3)](percyAutoCapture,global['__drivers'][0x0],_0xf9fa3f[_0x530520(0x1e8)],_0x23367a);}}catch(_0x582bd1){}!global[_0x530520(0x219)]&&(await global[_0x530520(0x220)][0x0]['executeScript'](_0x530520(0x203)+JSON[_0x530520(0x211)](this['currentTest']['titlePath']()[_0x530520(0x1fa)](_0xf9fa3f[_0x530520(0x1df)]))+'}}'),global[_0x530520(0x220)][0x0]['sessionNameSet__']=!![]);const _0x567734=_0xf9fa3f[_0x530520(0x210)](this[_0x530520(0x1d1)]['state'],_0xf9fa3f['DqafA']);_0x567734?(global['__sessionFailed']=!![],global[_0x530520(0x22b)]['push'](this[_0x530520(0x1d1)][_0x530520(0x22e)]['message']),await _0xf9fa3f['RkaSt'](_0xd25f5,JSON[_0x530520(0x211)](_0xf9fa3f[_0x530520(0x22c)](_0xf9fa3f[_0x530520(0x1ef)],this[_0x530520(0x1d1)][_0x530520(0x22e)][_0x530520(0x1fd)])),_0xf9fa3f[_0x530520(0x204)])):await _0xf9fa3f[_0x530520(0x1cb)](_0xd25f5,JSON['stringify'](_0xf9fa3f[_0x530520(0x1fb)]),_0xf9fa3f[_0x530520(0x20a)]);}catch(_0x4d5f86){}try{if(this[_0x530520(0x1d1)][_0x530520(0x1dc)]&&globals[_0x530520(0x1db)](_0xf9fa3f[_0x530520(0x217)])&&globals[_0x530520(0x1db)](_0xf9fa3f[_0x530520(0x1d8)])){logger[_0x530520(0x215)](_0xf9fa3f[_0x530520(0x1e5)]);const _0x42c30b={};_0x42c30b[_0x530520(0x20e)]=this['currentTest']['testAnalyticsId'],_0x42c30b[_0x530520(0x1c8)]=process[_0x530520(0x1da)][testHubConstants[_0x530520(0x1d0)][_0x530520(0x21c)]],_0x42c30b[_0x530520(0x20d)]=process[_0x530520(0x1da)][testHubConstants[_0x530520(0x1d0)][_0x530520(0x21b)]];const _0xb87ef1=_0x42c30b;logger['debug'](_0x530520(0x1f4)+JSON[_0x530520(0x211)](_0xb87ef1)),logger['debug'](_0xf9fa3f[_0x530520(0x235)]),logger[_0x530520(0x1d2)](util[_0x530520(0x21d)](await global['__drivers'][0x0][_0x530520(0x201)](scripts[_0x530520(0x1e3)],{'method':global[_0x530520(0x1c5)]}))),await global[_0x530520(0x220)][0x0][_0x530520(0x201)](scripts[_0x530520(0x1d9)],_0xb87ef1),logger[_0x530520(0x215)](_0xf9fa3f['rNUay']);}}catch(_0x4d097e){logger[_0x530520(0x208)](_0x530520(0x1c1)+this[_0x530520(0x1d1)][_0x530520(0x234)]()+_0x530520(0x224),_0x4d097e);}try{try{if(_0xf9fa3f[_0x530520(0x21e)](shouldProcessEventForTesthub)){global[_0x530520(0x220)][0x0]&&await _0xf9fa3f[_0x530520(0x1ee)](sendPlatformDetails,global['__drivers'][0x0],this[_0x530520(0x1d1)]?this[_0x530520(0x1d1)][_0x530520(0x1e0)]:null);if(_0xf9fa3f['jHwRz'](isBrowserstackInfra)){const _0x4f1a6e=_0x530520(0x233)+Date['now']();await _0xf9fa3f[_0x530520(0x20f)](_0xd25f5,JSON[_0x530520(0x211)](_0x4f1a6e),_0xf9fa3f[_0x530520(0x1e7)]);}}}catch{}_0xf9fa3f['cLMyj'](global['__drivers'][0x0]['quitCount_'],0x0)&&await global[_0x530520(0x226)]();}catch(_0x13e114){}_0xf9fa3f['jHwRz'](_0x547cfd);})[_0x2ec762(0x1c3)](()=>_0x141b7a());},'afterAll'(_0x52df2d){const _0x5406cd=a32_0x20d873,_0x3bc10d={'SXuQl':function(_0x6d4a27){return _0x6d4a27();}},_0x2c39a2='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x80451b=>{const _0x4a0581=a32_0x59e4;PerformanceTester['stopMonitoring'](),await global[_0x4a0581(0x226)](),_0x3bc10d[_0x4a0581(0x1cc)](_0x80451b);})[_0x5406cd(0x1c3)](()=>_0x52df2d());}};
|
|
1
|
+
function a32_0x5e4a(){const _0x595dae=['aJhVy','session_','nEold','iiTyp','__sessionFailed','sessionNameSet__','../../helpers/helper','14114889DVqkAP','kSLtX','mAyZY','isAccessibilityPlatform','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','SRoZH','error','testcase','.\x20Error\x20:','percyCaptureMode','\x22}}','1778343HjVkCF','2217560YXCsAE','6tLqjAs','quitCount_','ObservabilitySync:','passed','BROWSERSTACK_TESTHUB_UUID','protocol','thJwtToken','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','13VbRLLy','tsInS','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','odYDJ','gbvLI','winstonLogger','stRUp','../../helpers/globals','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','kNwWi','Failed\x20to\x20store\x20session\x20name:\x20','join','accessibilityScanStarted','stopMonitoring','now','Qncjs','DTqFc','../../helpers/logger','dfUUa','hWxJJ','https:','http:','percy','performScan','then','3472595GMeTxr','72046kDXleJ','stringify','Pvvfc','browserstackSessionName','shift','ENV_VAR','\x20-\x20','IuoqQ','thTestRunUuid','info','Failed:\x20','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','../../helpers/accessibility-automation/scripts','format','GFjaH','__drivers','push','XmbJJ','err','rKxhn','Samaw','startMonitoring','state','isArray','titlePath','executeAsyncScript','Automate\x20test\x20case\x20execution\x20has\x20started.','executeScript','timeout','cIHrN','HbMif','19579rbUMDH','debug','\x20|\x20','zSlow','bstackA11yShouldScan','message','failed','IvJUT','capabilities','Eirco','appium:app','thBuildUuid','app','LNzFJ','LNyzv','currentTest','driverCleanup','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20',',\x22level\x22:\x20\x22','../../helpers/testhub/utils','2323472NRHkPM','tYUqe','../../helpers/percy/utils','setGlobal','__error_messages__','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','Passed','elJtQ','env','iDfZj','length','sMeAg','vrsjh','util','./test-observability/mochaUtils','getGlobal','shouldScanTestForAccessibility','xksPY'];a32_0x5e4a=function(){return _0x595dae;};return a32_0x5e4a();}function a32_0x2286(_0x241ce9,_0x13d790){const _0x5e4a06=a32_0x5e4a();return a32_0x2286=function(_0x228647,_0x501d8f){_0x228647=_0x228647-0x163;let _0xa1d969=_0x5e4a06[_0x228647];return _0xa1d969;},a32_0x2286(_0x241ce9,_0x13d790);}const a32_0xc757e6=a32_0x2286;(function(_0x13c182,_0x457f7d){const _0x3723a4=a32_0x2286,_0x1e99e9=_0x13c182();while(!![]){try{const _0x18434e=-parseInt(_0x3723a4(0x1ba))/0x1*(-parseInt(_0x3723a4(0x1d4))/0x2)+parseInt(_0x3723a4(0x1b0))/0x3+parseInt(_0x3723a4(0x1b1))/0x4+parseInt(_0x3723a4(0x1d3))/0x5+parseInt(_0x3723a4(0x1b2))/0x6*(-parseInt(_0x3723a4(0x178))/0x7)+-parseInt(_0x3723a4(0x18c))/0x8+-parseInt(_0x3723a4(0x1a5))/0x9;if(_0x18434e===_0x457f7d)break;else _0x1e99e9['push'](_0x1e99e9['shift']());}catch(_0x21dbfa){_0x1e99e9['push'](_0x1e99e9['shift']());}}}(a32_0x5e4a,0x6d7b5));const util=require(a32_0xc757e6(0x199)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a32_0xc757e6(0x18e)),{sendPlatformDetails}=require(a32_0xc757e6(0x19a)),{isBrowserstackInfra,markSessionStatus}=require(a32_0xc757e6(0x1a4)),PerformanceTester=require('../../helpers/performance-tester'),scripts=require(a32_0xc757e6(0x165)),globals=require(a32_0xc757e6(0x1c1)),logger=require(a32_0xc757e6(0x1cb))[a32_0xc757e6(0x1bf)],{shouldProcessEventForTesthub}=require(a32_0xc757e6(0x18b)),testHubConstants=require('../../helpers/testhub/constants');exports['mochaHooks']={'beforeAll'(){const _0x5cf3ef=a32_0xc757e6,_0xa93c4a={'kNwWi':function(_0x18013c,_0x425768,_0x594914,_0xe94a41){return _0x18013c(_0x425768,_0x594914,_0xe94a41);},'zSlow':_0x5cf3ef(0x17e),'IuoqQ':_0x5cf3ef(0x17a),'dfUUa':function(_0xeab0d1,_0x416048,_0x3b42f9){return _0xeab0d1(_0x416048,_0x3b42f9);},'XmbJJ':_0x5cf3ef(0x1b5),'SRoZH':function(_0x4183e9){return _0x4183e9();},'nEold':function(_0x1ae189,_0x3b750c,_0x2691c4){return _0x1ae189(_0x3b750c,_0x2691c4);}};PerformanceTester[_0x5cf3ef(0x16e)]();const _0x97e771='browserstack internal helper hook';global[_0x5cf3ef(0x190)]=[],global['__sessionFailed']=![],global[_0x5cf3ef(0x188)]=async()=>{const _0x20c577=_0x5cf3ef;let _0x5d90df=![];try{await global[_0x20c577(0x168)][0x0][_0x20c577(0x19f)],_0x5d90df=!![],global[_0x20c577(0x1a2)]?await _0xa93c4a[_0x20c577(0x1c3)](markSessionStatus,global[_0x20c577(0x168)][0x0],_0xa93c4a[_0x20c577(0x17b)],global[_0x20c577(0x190)][_0x20c577(0x1c5)](_0xa93c4a[_0x20c577(0x1db)])):await _0xa93c4a[_0x20c577(0x1cc)](markSessionStatus,global[_0x20c577(0x168)][0x0],_0xa93c4a[_0x20c577(0x16a)]);}catch(_0x4badc7){}global[_0x20c577(0x190)]=[],global[_0x20c577(0x1a2)]=![];if(_0x5d90df)try{try{_0xa93c4a[_0x20c577(0x1aa)](shouldProcessEventForTesthub)&&(global[_0x20c577(0x168)][0x0]&&await _0xa93c4a[_0x20c577(0x1a0)](sendPlatformDetails,global[_0x20c577(0x168)][0x0],this['currentTest']?this[_0x20c577(0x187)]['testAnalyticsId']:null));}catch{}await global['__drivers'][0x0]['initQuit']();}catch(_0x1a6491){}};},'beforeEach'(_0x328d36){const _0x51c8e1=a32_0xc757e6,_0x5c4c81={'sMeAg':function(_0x26359b,_0x36223f){return _0x26359b>_0x36223f;},'Vpdjj':_0x51c8e1(0x1da),'LNzFJ':function(_0x4bea95,_0x516686,_0x5b5bea){return _0x4bea95(_0x516686,_0x5b5bea);},'LNyzv':_0x51c8e1(0x17c),'hWxJJ':function(_0x3e49f9){return _0x3e49f9();},'tYUqe':_0x51c8e1(0x1a8),'tsInS':function(_0x410c1a,_0x10e6ff){return _0x410c1a===_0x10e6ff;},'gbvLI':_0x51c8e1(0x1cf),'elJtQ':_0x51c8e1(0x1ce),'Wwglk':_0x51c8e1(0x1a9),'VmNzo':_0x51c8e1(0x173)};new Promise(async _0x245bb7=>{const _0x401848=_0x51c8e1,_0x17bb85='browserstack internal helper hook';let _0x34c79b=!![];try{_0x5c4c81[_0x401848(0x197)](global['__drivers'][_0x401848(0x196)],0x1)&&(await global[_0x401848(0x188)](),global[_0x401848(0x168)][_0x401848(0x1d8)]()),_0x5c4c81[_0x401848(0x197)](global[_0x401848(0x168)][0x0][_0x401848(0x1b3)],0x0)&&(_0x34c79b=![],await global[_0x401848(0x188)]());}catch{}try{Array['isArray'](global[_0x401848(0x168)])&&global[_0x401848(0x168)][0x0]&&(global['__drivers'][0x0]['browserstackSessionName']=this[_0x401848(0x187)]['titlePath']()[_0x401848(0x1c5)](_0x5c4c81['Vpdjj'])),global[_0x401848(0x1d7)]=this[_0x401848(0x187)][_0x401848(0x171)]()[_0x401848(0x1c5)](_0x5c4c81['Vpdjj']);}catch(_0x1b1f01){logger[_0x401848(0x179)](_0x401848(0x1c4)+_0x1b1f01);}this[_0x401848(0x187)][_0x401848(0x19c)]=_0x5c4c81[_0x401848(0x185)](shouldScanTestForAccessibility,this[_0x401848(0x187)]['titlePath'](),!![]),globals[_0x401848(0x18f)](_0x5c4c81[_0x401848(0x186)],this[_0x401848(0x187)][_0x401848(0x19c)]),this[_0x401848(0x187)][_0x401848(0x1c6)]=!![];if(_0x5c4c81[_0x401848(0x1cd)](isAccessibilityAutomationSession)&&_0x34c79b&&Array[_0x401848(0x170)](global['__drivers'])&&_0x5c4c81[_0x401848(0x197)](global[_0x401848(0x168)]['length'],0x0)&&globals[_0x401848(0x19b)](_0x5c4c81[_0x401848(0x18d)]))try{const _0xe1ff88=await global[_0x401848(0x168)][0x0]['session_'];if(_0xe1ff88){let _0x47a3bc=!![];const _0x1fa202=await global['__drivers'][0x0]['getCurrentUrl']();let _0x2e040f;try{_0x2e040f=new URL(_0x1fa202);}catch(_0x377501){_0x47a3bc=![];}_0x47a3bc=_0x5c4c81[_0x401848(0x1bb)](_0x2e040f[_0x401848(0x1b7)],_0x5c4c81[_0x401848(0x1be)])||_0x5c4c81[_0x401848(0x1bb)](_0x2e040f['protocol'],_0x5c4c81[_0x401848(0x193)]),_0x47a3bc&&(this[_0x401848(0x187)][_0x401848(0x19c)]&&logger['info'](_0x5c4c81['Wwglk'])),this['currentTest'][_0x401848(0x1c6)]=this['currentTest'][_0x401848(0x19c)],this[_0x401848(0x187)]['shouldScanTestForAccessibility']&&logger['info'](_0x5c4c81['VmNzo']);}}catch(_0x50e3b0){logger[_0x401848(0x1ab)](_0x401848(0x1b9)+util[_0x401848(0x166)](_0x50e3b0));}_0x5c4c81[_0x401848(0x1cd)](_0x245bb7);})[_0x51c8e1(0x1d2)](_0x328d36);},'afterEach'(_0x2bb139){const _0x1af00d=a32_0xc757e6,_0x2d6707={'rKxhn':function(_0x2f5e7d,_0x5323c4){return _0x2f5e7d>_0x5323c4;},'mGhqM':function(_0x440114,_0x56b702){return _0x440114===_0x56b702;},'aJhVy':_0x1af00d(0x1ac),'VgUIC':_0x1af00d(0x182),'Qncjs':function(_0x58d862,_0x1a75ef,_0x2959e7,_0x47621a){return _0x58d862(_0x1a75ef,_0x2959e7,_0x47621a);},'kSLtX':_0x1af00d(0x1da),'UHDML':function(_0x5da7ef,_0x3dd7e3){return _0x5da7ef!==_0x3dd7e3;},'iDfZj':_0x1af00d(0x1b5),'mAyZY':function(_0xad2949,_0x30e345,_0x42a993){return _0xad2949(_0x30e345,_0x42a993);},'xksPY':function(_0x355d82,_0x270dc3){return _0x355d82+_0x270dc3;},'IGuGp':_0x1af00d(0x163),'DTqFc':_0x1af00d(0x1ab),'iiTyp':function(_0x39432b,_0x17f54c,_0x42b9a0){return _0x39432b(_0x17f54c,_0x42b9a0);},'mOjTw':_0x1af00d(0x192),'odYDJ':_0x1af00d(0x1dd),'Samaw':'isAccessibilityPlatform','Pvvfc':_0x1af00d(0x17c),'stRUp':_0x1af00d(0x191),'IzPEv':'Performing\x20scan\x20before\x20saving\x20results','cIHrN':_0x1af00d(0x1bc),'HbMif':function(_0x254a79){return _0x254a79();},'GFjaH':function(_0x1aca30){return _0x1aca30();},'vrsjh':function(_0xa5ef1e,_0x3a0146,_0x1292ab){return _0xa5ef1e(_0x3a0146,_0x1292ab);},'qbVmT':_0x1af00d(0x179),'Eirco':function(_0x3ceef9,_0x2c97d7){return _0x3ceef9>_0x2c97d7;}},_0x459879='browserstack internal helper hook';this[_0x1af00d(0x175)](0xfde8);const _0x2d9a42=async(_0xcf11f5,_0x599565)=>{const _0x39352c=_0x1af00d;await global[_0x39352c(0x168)][0x0][_0x39352c(0x174)](_0x39352c(0x1c2)+_0xcf11f5+_0x39352c(0x18a)+_0x599565+_0x39352c(0x1af));};new Promise(async _0x19e3da=>{const _0x184755=_0x1af00d;try{_0x2d6707[_0x184755(0x16c)](global[_0x184755(0x168)]['length'],0x1)&&(await global[_0x184755(0x188)](),global[_0x184755(0x168)][_0x184755(0x1d8)](),global[_0x184755(0x190)]=[],global[_0x184755(0x1a2)]=![]);try{if(global[_0x184755(0x1d0)]&&_0x2d6707['mGhqM'](global[_0x184755(0x1ae)],_0x2d6707[_0x184755(0x19e)])&&global[_0x184755(0x168)][0x0]){const _0xe52fd7=_0x2d6707['rKxhn'](global[_0x184755(0x180)][_0x184755(0x196)],0x0)?!!global[_0x184755(0x180)][0x0][_0x184755(0x184)]||!!global[_0x184755(0x180)][0x0][_0x2d6707['VgUIC']]:![],_0x26da7b={};_0x26da7b[_0x184755(0x184)]=_0xe52fd7,await _0x2d6707[_0x184755(0x1c9)](percyAutoCapture,global[_0x184755(0x168)][0x0],_0x2d6707['aJhVy'],_0x26da7b);}}catch(_0x5711d6){}!global['__skipSessionName']&&(await global[_0x184755(0x168)][0x0][_0x184755(0x174)](_0x184755(0x189)+JSON[_0x184755(0x1d5)](this[_0x184755(0x187)]['titlePath']()[_0x184755(0x1c5)](_0x2d6707[_0x184755(0x1a6)]))+'}}'),global[_0x184755(0x168)][0x0][_0x184755(0x1a3)]=!![]);const _0x57a79e=_0x2d6707['UHDML'](this[_0x184755(0x187)][_0x184755(0x16f)],_0x2d6707[_0x184755(0x195)]);_0x57a79e?(global[_0x184755(0x1a2)]=!![],global[_0x184755(0x190)][_0x184755(0x169)](this[_0x184755(0x187)][_0x184755(0x16b)]['message']),await _0x2d6707[_0x184755(0x1a7)](_0x2d9a42,JSON['stringify'](_0x2d6707[_0x184755(0x19d)](_0x2d6707['IGuGp'],this[_0x184755(0x187)][_0x184755(0x16b)][_0x184755(0x17d)])),_0x2d6707[_0x184755(0x1ca)])):await _0x2d6707[_0x184755(0x1a1)](_0x2d9a42,JSON[_0x184755(0x1d5)](_0x2d6707['mOjTw']),_0x2d6707[_0x184755(0x1bd)]);}catch(_0x163db3){}try{if(this[_0x184755(0x187)][_0x184755(0x1c6)]&&globals[_0x184755(0x19b)](_0x2d6707[_0x184755(0x16d)])&&globals[_0x184755(0x19b)](_0x2d6707[_0x184755(0x1d6)])){logger['info'](_0x2d6707[_0x184755(0x1c0)]);const _0x4141e7={};_0x4141e7[_0x184755(0x1dc)]=this[_0x184755(0x187)]['testAnalyticsId'],_0x4141e7[_0x184755(0x183)]=process[_0x184755(0x194)][testHubConstants[_0x184755(0x1d9)][_0x184755(0x1b6)]],_0x4141e7[_0x184755(0x1b8)]=process['env'][testHubConstants[_0x184755(0x1d9)]['BROWSERSTACK_TESTHUB_JWT']];const _0x509219=_0x4141e7;logger['debug'](_0x184755(0x164)+JSON[_0x184755(0x1d5)](_0x509219)),logger[_0x184755(0x179)](_0x2d6707['IzPEv']),logger[_0x184755(0x179)](util[_0x184755(0x166)](await global[_0x184755(0x168)][0x0][_0x184755(0x172)](scripts[_0x184755(0x1d1)],{'method':global[_0x184755(0x1d7)]}))),await global[_0x184755(0x168)][0x0][_0x184755(0x172)](scripts['saveTestResults'],_0x509219),logger[_0x184755(0x1dd)](_0x2d6707[_0x184755(0x176)]);}}catch(_0x44c1cd){logger[_0x184755(0x1ab)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x184755(0x187)][_0x184755(0x171)]()+_0x184755(0x1ad),_0x44c1cd);}try{try{if(_0x2d6707[_0x184755(0x177)](shouldProcessEventForTesthub)){global[_0x184755(0x168)][0x0]&&await _0x2d6707[_0x184755(0x1a1)](sendPlatformDetails,global['__drivers'][0x0],this[_0x184755(0x187)]?this[_0x184755(0x187)]['testAnalyticsId']:null);if(_0x2d6707[_0x184755(0x167)](isBrowserstackInfra)){const _0x1d30d5=_0x184755(0x1b4)+Date[_0x184755(0x1c8)]();await _0x2d6707[_0x184755(0x198)](_0x2d9a42,JSON['stringify'](_0x1d30d5),_0x2d6707['qbVmT']);}}}catch{}_0x2d6707[_0x184755(0x181)](global[_0x184755(0x168)][0x0][_0x184755(0x1b3)],0x0)&&await global[_0x184755(0x188)]();}catch(_0x1e764b){}_0x2d6707[_0x184755(0x177)](_0x19e3da);})[_0x1af00d(0x1d2)](()=>_0x2bb139());},'afterAll'(_0xdd094){const _0x3a1e0b=a32_0xc757e6,_0x3f7fa3={'IvJUT':function(_0x4c6bf1){return _0x4c6bf1();}},_0x4f4107='browserstack internal helper hook';this[_0x3a1e0b(0x175)](0xfde8),new Promise(async _0x400cd4=>{const _0x29e862=_0x3a1e0b;PerformanceTester[_0x29e862(0x1c7)](),await global[_0x29e862(0x188)](),_0x3f7fa3[_0x29e862(0x17f)](_0x400cd4);})[_0x3a1e0b(0x1d2)](()=>_0xdd094());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a33_0x48ff(){const _0x2b4cbe=['rQNaJ','--config','4359138TqhIxn','mergeDeep','unlinkSync','3310WnYazH','GkjnD','stringify','nightwatch','winstonLogger','info','iHcRI','filter','19197475rXfqSp','pwEWf','writeFileSync','qIhao','env','nightwatch.conf.js','close','LTmdd','webdriver','../../helpers/BrowserStackSetup','debug','../../helpers/logger','child\x20process\x20exited\x20with\x20code\x20','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','1310RMPWFX','config','5QBptHZ','inherit','split','push','6393212jptBvo','exports','test','hub.browserstack.com','../utils/constants','desiredCapabilities','uPVdB','../../helpers/helper','selenium','existsSync','findIndex','OPRNh','pYzge','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','Deleting\x20','forEach','join','platform','oIJvf','nightwatch.cmd','modifyBrowserStackCaps','platforms','slice','splice','cwd','109287HxIAxQ','--env','InHmJ','flAMv','8bQNTIT','3830718YhOTOy','ZWDEK','trim','test_settings','map','nightwatch-browserstack.json','jSuXa','486961gMWVcF','vKqlE','JLbdJ','2973zoJMON','start_process','Getting\x20your\x20nightwatch\x20configs\x20from\x20','jUBZi','getPlatformName','nightwatch.json','jObKB'];a33_0x48ff=function(){return _0x2b4cbe;};return a33_0x48ff();}const a33_0x8c4483=a33_0x3bea;function a33_0x3bea(_0x47d91a,_0x225f67){const _0x48ff03=a33_0x48ff();return a33_0x3bea=function(_0x3beafa,_0x1d50c5){_0x3beafa=_0x3beafa-0xc1;let _0x452f72=_0x48ff03[_0x3beafa];return _0x452f72;},a33_0x3bea(_0x47d91a,_0x225f67);}(function(_0x46d063,_0x372d5d){const _0xdecea5=a33_0x3bea,_0x4122dc=_0x46d063();while(!![]){try{const _0x10ca95=-parseInt(_0xdecea5(0xf3))/0x1+parseInt(_0xdecea5(0x102))/0x2*(parseInt(_0xdecea5(0xf6))/0x3)+-parseInt(_0xdecea5(0xce))/0x4+-parseInt(_0xdecea5(0xca))/0x5*(-parseInt(_0xdecea5(0xec))/0x6)+-parseInt(_0xdecea5(0xff))/0x7*(-parseInt(_0xdecea5(0xeb))/0x8)+parseInt(_0xdecea5(0xe7))/0x9*(-parseInt(_0xdecea5(0xc8))/0xa)+parseInt(_0xdecea5(0x10a))/0xb;if(_0x10ca95===_0x372d5d)break;else _0x4122dc['push'](_0x4122dc['shift']());}catch(_0x431501){_0x4122dc['push'](_0x4122dc['shift']());}}}(a33_0x48ff,0xecf18));const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),logger=require(a33_0x8c4483(0xc5))[a33_0x8c4483(0x106)],{default:BrowserStackSetup}=require(a33_0x8c4483(0xc3)),helper=require(a33_0x8c4483(0xd5)),constants=require(a33_0x8c4483(0xd2)),getUserNightwatchConfigs=(_0x3268cd,_0x394695)=>{const _0x1a16e9=a33_0x8c4483,_0x157814={'jUBZi':_0x1a16e9(0x10f),'flAMv':_0x1a16e9(0xfb),'oIJvf':function(_0x356a72,_0x1c1217){return _0x356a72(_0x1c1217);},'OPRNh':_0x1a16e9(0xc7)};let _0x196e74=null,_0x5a3cd8={};const _0x2ef2b1=_0x394695[_0x1a16e9(0xd8)](_0x167026=>_0x167026==='--config');if(!helper['isUndefined'](_0x3268cd[_0x1a16e9(0xc9)])&&fs[_0x1a16e9(0xd7)](path['join'](process[_0x1a16e9(0xe6)](),_0x3268cd[_0x1a16e9(0xc9)])))_0x196e74=path['join'](process[_0x1a16e9(0xe6)](),_0x3268cd[_0x1a16e9(0xc9)]),_0x394695[_0x1a16e9(0xe5)](_0x2ef2b1,0x2);else{if(fs['existsSync'](path['join'](process[_0x1a16e9(0xe6)](),_0x157814[_0x1a16e9(0xf9)])))_0x196e74=path[_0x1a16e9(0xde)](process[_0x1a16e9(0xe6)](),_0x157814[_0x1a16e9(0xf9)]);else fs['existsSync'](path[_0x1a16e9(0xde)](process['cwd'](),_0x157814[_0x1a16e9(0xea)]))&&(_0x196e74=path[_0x1a16e9(0xde)](process[_0x1a16e9(0xe6)](),_0x157814['flAMv']));}return _0x196e74?(logger[_0x1a16e9(0x107)](_0x1a16e9(0xf8)+_0x196e74),_0x5a3cd8=_0x157814[_0x1a16e9(0xe0)](require,_0x196e74)):logger[_0x1a16e9(0x107)](_0x157814[_0x1a16e9(0xd9)]),_0x5a3cd8;},removeExistingEnvs=_0x1e0497=>{const _0x157cae=a33_0x8c4483,_0x175b3b={};_0x175b3b[_0x157cae(0xf4)]=function(_0x49b258,_0x25d9c6){return _0x49b258>_0x25d9c6;},_0x175b3b['JLbdJ']=function(_0x19260f,_0x39c420){return _0x19260f>_0x39c420;};const _0x2b27f2=_0x175b3b;let _0x3020a2=_0x1e0497['findIndex'](_0x46fb5e=>_0x46fb5e===_0x157cae(0xe8));_0x2b27f2['vKqlE'](_0x3020a2,-0x1)&&_0x1e0497[_0x157cae(0xe5)](_0x3020a2,0x2),_0x3020a2=_0x1e0497[_0x157cae(0xd8)](_0x3c63cb=>_0x3c63cb==='-e'),_0x2b27f2[_0x157cae(0xf5)](_0x3020a2,-0x1)&&_0x1e0497['splice'](_0x3020a2,0x2);};function run(_0x577a68,_0x4e3e94){const _0x525225=a33_0x8c4483,_0x356b91={'InHmJ':_0x525225(0x105),'LTmdd':function(_0x2a8a3d,_0x63c659){return _0x2a8a3d+_0x63c659;},'hPklO':_0x525225(0xef),'oFIBg':function(_0x50cc3e,_0x1841f1,_0x17138d){return _0x50cc3e(_0x1841f1,_0x17138d);},'ZWDEK':_0x525225(0xd1),'iHcRI':_0x525225(0xdb),'vbPcN':function(_0xf32872,_0x1ef8fd){return _0xf32872===_0x1ef8fd;},'pYzge':_0x525225(0xf1),'pwEWf':function(_0x1d6464,_0x4c9dd4){return _0x1d6464(_0x4c9dd4);},'uPVdB':function(_0x4fc7ab,_0x15b5d1,_0x2a2258,_0x2fa44a){return _0x4fc7ab(_0x15b5d1,_0x2a2258,_0x2fa44a);},'ZYRhC':_0x525225(0xe1),'qqvaj':_0x525225(0xfe),'jObKB':'--env','GkjnD':_0x525225(0xcb),'qIhao':_0x525225(0x110)},_0x27cbb4=new BrowserStackSetup(_0x577a68);if(!_0x27cbb4[_0x525225(0xc9)])return;const _0x689322=_0x356b91['oFIBg'](getUserNightwatchConfigs,_0x577a68,_0x4e3e94),_0x954c75={};_0x954c75[_0x525225(0xf7)]=![];const _0xead66c={};_0xead66c['host']=_0x356b91[_0x525225(0xed)],_0xead66c['port']=0x1bb;const _0xe51f82={};_0xe51f82[_0x525225(0xc2)]=_0x954c75,_0xe51f82[_0x525225(0xd6)]=_0xead66c;const _0x48f4b3=_0xe51f82;logger['info'](_0x356b91[_0x525225(0x108)]);const _0x1420e6={..._0x689322},_0x5c896c=_0x1420e6,_0x175529=helper['useW3C'](_0x27cbb4['config']),_0x380ee5=[];_0x27cbb4[_0x525225(0xc9)][_0x525225(0xe3)][_0x525225(0xdd)]((_0x3a521d,_0x232de)=>{const _0x359cb1=_0x525225;_0x175529?_0x380ee5[_0x359cb1(0xcd)](helper['modifyBrowserStackW3CCaps'](_0x27cbb4['config'],_0x356b91[_0x359cb1(0xe9)],_0x232de)):_0x380ee5['push'](helper[_0x359cb1(0xe2)](_0x27cbb4[_0x359cb1(0xc9)],_0x356b91[_0x359cb1(0xe9)],_0x232de));});const _0x1de069={},_0x40567c=[];_0x577a68['env']=_0x577a68[_0x525225(0x10e)]||_0x577a68['e'];const _0x4a81d7=_0x577a68[_0x525225(0x10e)]?_0x577a68[_0x525225(0x10e)]['trim']()[_0x525225(0xcc)](',')[_0x525225(0xf0)](_0x79183d=>_0x79183d[_0x525225(0xee)]())[_0x525225(0x109)](_0x33b539=>_0x33b539!==''):[''];_0x356b91['vbPcN'](_0x4a81d7['length'],0x0)&&_0x4a81d7[_0x525225(0xcd)]('');_0x4a81d7[_0x525225(0xdd)](_0x4048b5=>{const _0x45d588=_0x525225,_0x5e7dee={'jSuXa':function(_0xd84ab1,_0x534b1d){const _0x3c245f=a33_0x3bea;return _0x356b91[_0x3c245f(0xc1)](_0xd84ab1,_0x534b1d);},'rQNaJ':_0x356b91['hPklO']};_0x380ee5[_0x45d588(0xdd)](_0x4324eb=>{const _0x1251b5=_0x45d588;let _0x16bca0=_0x5e7dee[_0x1251b5(0xf2)](helper[_0x1251b5(0xfa)](_0x4324eb,'_'),'_'+Date['now']());_0x4048b5&&(_0x16bca0+='_'+_0x4048b5);if(_0x4048b5&&(!_0x689322[_0x5e7dee[_0x1251b5(0xfd)]]||!_0x689322[_0x5e7dee['rQNaJ']][_0x4048b5]))return;const _0x5f1c81={..._0x48f4b3};_0x5f1c81[_0x1251b5(0xd3)]=_0x4324eb;const _0x574d5d=_0x5f1c81;_0x1de069[_0x16bca0]=_0x4048b5?helper[_0x1251b5(0x100)](_0x689322[_0x5e7dee[_0x1251b5(0xfd)]][_0x4048b5],_0x574d5d):_0x574d5d,_0x40567c[_0x1251b5(0xcd)](_0x16bca0);});});!_0x5c896c[_0x525225(0xef)]&&(_0x5c896c[_0x525225(0xef)]={});_0x5c896c[_0x525225(0xef)]={..._0x5c896c[_0x525225(0xef)],..._0x1de069};const _0x275839=path[_0x525225(0xde)](__dirname,_0x356b91[_0x525225(0xda)]);fs[_0x525225(0x10c)](_0x275839,JSON[_0x525225(0x104)](_0x5c896c)),_0x356b91[_0x525225(0x10b)](removeExistingEnvs,_0x4e3e94);const _0xa82bd5=_0x356b91[_0x525225(0xd4)](spawn,/^win/[_0x525225(0xd0)](process[_0x525225(0xdf)])?_0x356b91['ZYRhC']:_0x356b91['InHmJ'],[_0x356b91['qqvaj'],_0x275839,..._0x4e3e94[_0x525225(0xe4)](0x1),_0x356b91[_0x525225(0xfc)],_0x40567c[_0x525225(0xde)](',')],{'stdio':_0x356b91[_0x525225(0x103)]});_0xa82bd5['on'](_0x356b91[_0x525225(0x10d)],async _0x4fe20e=>{const _0x1bb1a6=_0x525225;logger[_0x1bb1a6(0xc4)](_0x1bb1a6(0xc6)+_0x4fe20e),logger[_0x1bb1a6(0x107)](_0x1bb1a6(0xdc)+_0x275839),fs[_0x1bb1a6(0x101)](_0x275839);});}module[a33_0x8c4483(0xcf)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x5438cf=a34_0x18b3;function a34_0x18b3(_0x4e752f,_0x181c66){const _0x499ee3=a34_0x499e();return a34_0x18b3=function(_0x18b3d6,_0x4ef650){_0x18b3d6=_0x18b3d6-0x152;let _0x41f6f1=_0x499ee3[_0x18b3d6];return _0x41f6f1;},a34_0x18b3(_0x4e752f,_0x181c66);}function a34_0x499e(){const _0x4694f3=['project','browserName','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','1qNQWZf','vhZBF','QKGwl','1375038mZFbBZ','5427WXpapR','browserstack.accessibility','eSWTP','No\x20accessibility\x20results\x20were\x20found.','scannerVersion','No\x20summaryResults\x20found.','warn','bestPractice','WebDriver','browser_version','name','VLybW','JoEET','use','8063584TADDGy','platformValidation','UNjSu','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','RorAo','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','accessibilityOptions.authToken','parse','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','accessibilityOptions.includeIssueType.bestPractice','wcagVersion','soQNj','util','browser','60zPSDZM','1986932iyRQjK','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','bNrWK','GdQKt','YAzyl','debug','Playwright','getAccessibilityResultsSummary','performScan','workerInfo','cGFdn','browserStackEvaluate','playwright-chromium','HQfmC','aEatB','getAccessibilityResults','ozOts','accessibilityPlatform','stringify','winstonLogger','ziCEq','IcVFS','UoZmN','nbDpr','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','2532DeuEfv','bBsVj','lnlxA','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','eOFQY','VgsYZ','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','BS_A11Y_JWT','latest','browserStackExecuteDriver','lSdaB','needsReview','currentTest','12luSMWQ','FKOyn','xhJRL','yAwoP','executeAsyncScript','129019iqVPlj','constructor','XBPDX','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','evaluate','41688kOnSpp','replace','bstackSdkArgs','HfXTg','env','1053475zajqpu','EhKvr','LVvEA','accessibilityOptions.includeIssueType.needsReview','method','bWRsK','testInfo','deviceName','format','chrome','executeScript','xNadi','114DdAbIu','connectOptions','wsEndpoint','error','includeIssueType','accessibilityOptions'];a34_0x499e=function(){return _0x4694f3;};return a34_0x499e();}(function(_0x26c5a9,_0x1641b2){const _0x176768=a34_0x18b3,_0xaec1dd=_0x26c5a9();while(!![]){try{const _0x44a3b8=-parseInt(_0x176768(0x171))/0x1*(parseInt(_0x176768(0x192))/0x2)+parseInt(_0x176768(0x168))/0x3*(-parseInt(_0x176768(0x157))/0x4)+parseInt(_0x176768(0x15c))/0x5*(parseInt(_0x176768(0x1b8))/0x6)+parseInt(_0x176768(0x174))/0x7+-parseInt(_0x176768(0x183))/0x8+parseInt(_0x176768(0x175))/0x9*(-parseInt(_0x176768(0x191))/0xa)+-parseInt(_0x176768(0x152))/0xb*(-parseInt(_0x176768(0x1ab))/0xc);if(_0x44a3b8===_0x1641b2)break;else _0xaec1dd['push'](_0xaec1dd['shift']());}catch(_0x2b253c){_0xaec1dd['push'](_0xaec1dd['shift']());}}}(a34_0x499e,0xa8d77));const util=require(a34_0x5438cf(0x18f)),logger=require('../../helpers/logger')[a34_0x5438cf(0x1a5)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require('../../helpers/helper'),scripts=require('../../helpers/accessibility-automation/scripts');exports[a34_0x5438cf(0x19d)]=async(_0x1b8128,_0xec02cf,_0x4a0296={})=>{const _0x1f3274=a34_0x5438cf,_0x18f490={};_0x18f490[_0x1f3274(0x167)]='bstackSdkArgs';const _0xcbabe0=_0x18f490;return await _0x1b8128[_0x1f3274(0x156)]('(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'+_0xec02cf['replace'](/arguments/g,_0xcbabe0[_0x1f3274(0x167)])+_0x1f3274(0x1ae)+JSON['stringify'](_0x4a0296)+')');},exports[a34_0x5438cf(0x1b4)]=async(_0x25e2fc,_0x2c5885,_0x536d91={})=>{const _0xb035a6=a34_0x5438cf,_0x64fe8e={};_0x64fe8e['xhJRL']=function(_0x2f65bb,_0xdf20d9){return _0x2f65bb===_0xdf20d9;},_0x64fe8e['UNjSu']=_0xb035a6(0x17d),_0x64fe8e['JoEET']=function(_0x11cad8,_0x119572){return _0x11cad8===_0x119572;},_0x64fe8e['ULNwk']=_0xb035a6(0x198),_0x64fe8e['RorAo']=_0xb035a6(0x159);const _0x4dc29e=_0x64fe8e;if(_0x4dc29e[_0xb035a6(0x1ba)](_0x25e2fc[_0xb035a6(0x153)][_0xb035a6(0x17f)],_0x4dc29e[_0xb035a6(0x185)]))return await _0x25e2fc[_0xb035a6(0x1bc)](_0x2c5885,_0x536d91);else{if(_0x4dc29e[_0xb035a6(0x181)](_0x25e2fc[_0xb035a6(0x153)]['name'],_0x4dc29e['ULNwk']))return await _0x25e2fc[_0xb035a6(0x166)]('(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'+_0x2c5885[_0xb035a6(0x158)](/arguments/g,_0x4dc29e[_0xb035a6(0x187)])+_0xb035a6(0x188)+JSON['stringify'](_0x536d91)+')');}},exports['setAccessibilityCapabilities']=async _0x2e1f4c=>{const _0x4f2ab1=a34_0x5438cf,_0x4f8525={};_0x4f8525[_0x4f2ab1(0x19f)]='accessibilityOptions.wcagVersion',_0x4f8525['SEzNY']='accessibilityOptions.scannerProcessingTimeout',_0x4f8525[_0x4f2ab1(0x1af)]=_0x4f2ab1(0x18c),_0x4f8525[_0x4f2ab1(0x194)]=_0x4f2ab1(0x15f),_0x4f8525[_0x4f2ab1(0x19c)]=_0x4f2ab1(0x189),_0x4f8525['FKOyn']='accessibilityOptions.scannerVersion';const _0x1f8cef=_0x4f8525;_0x2e1f4c['accessibilityOptions']&&(_0x2e1f4c[_0x4f2ab1(0x16d)][_0x4f2ab1(0x18d)]&&(_0x2e1f4c[_0x1f8cef[_0x4f2ab1(0x19f)]]=_0x2e1f4c[_0x4f2ab1(0x16d)][_0x4f2ab1(0x18d)]),_0x2e1f4c[_0x4f2ab1(0x16d)]['scannerProcessingTimeout']&&(_0x2e1f4c[_0x1f8cef['SEzNY']]=_0x2e1f4c[_0x4f2ab1(0x16d)]['scannerProcessingTimeout']),_0x2e1f4c['accessibilityOptions']['includeIssueType']&&(_0x2e1f4c[_0x1f8cef[_0x4f2ab1(0x1af)]]=_0x2e1f4c[_0x4f2ab1(0x16d)][_0x4f2ab1(0x16c)][_0x4f2ab1(0x17c)],_0x2e1f4c[_0x1f8cef[_0x4f2ab1(0x194)]]=_0x2e1f4c[_0x4f2ab1(0x16d)][_0x4f2ab1(0x16c)][_0x4f2ab1(0x1b6)]));const _0x2d6c6b=JSON[_0x4f2ab1(0x18a)](process['env'][_0x4f2ab1(0x1aa)])[_0x4f2ab1(0x179)];_0x2e1f4c[_0x1f8cef[_0x4f2ab1(0x19c)]]=process[_0x4f2ab1(0x15b)][_0x4f2ab1(0x1b2)],_0x2e1f4c[_0x1f8cef[_0x4f2ab1(0x1b9)]]=_0x2d6c6b,delete _0x2e1f4c[_0x4f2ab1(0x16d)];},exports[a34_0x5438cf(0x1a1)]=async _0x531589=>{const _0x488c8f=a34_0x5438cf,_0x369b21={};_0x369b21[_0x488c8f(0x1a6)]=_0x488c8f(0x178),_0x369b21['VgsYZ']='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0xcd0c57=_0x369b21;if(global[_0x488c8f(0x1a3)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x531589,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x531589,scripts.getResults);return res;}catch{return logger[_0x488c8f(0x16b)](_0xcd0c57['ziCEq']),[];}else return logger[_0x488c8f(0x17b)](_0xcd0c57[_0x488c8f(0x1b0)]),[];},exports['performScan']=async(_0x14996a,_0x1d7c4f='')=>{const _0x4e9978=a34_0x5438cf;if(global['accessibilityPlatform']){const _0x5b776d={};return _0x5b776d[_0x4e9978(0x160)]=_0x1d7c4f,await exports['browserStackEvaluate'](_0x14996a,scripts[_0x4e9978(0x19a)],_0x5b776d);}},exports[a34_0x5438cf(0x199)]=async _0x51c7fc=>{const _0x101da5=a34_0x5438cf,_0x50c905={};_0x50c905[_0x101da5(0x1b5)]=_0x101da5(0x17a),_0x50c905[_0x101da5(0x1a9)]=_0x101da5(0x18b);const _0x4a3cda=_0x50c905;if(global[_0x101da5(0x1a3)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x51c7fc,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x51c7fc,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x101da5(0x197)](_0x4a3cda[_0x101da5(0x1b5)]),{};}else return logger[_0x101da5(0x17b)](_0x4a3cda['nbDpr']),{};},exports[a34_0x5438cf(0x184)]=async _0x8dee55=>{const _0x58660b=a34_0x5438cf,_0x208b8b={'UoZmN':function(_0x51a1e6,_0xbc7298){return _0x51a1e6!==_0xbc7298;},'LVvEA':_0x58660b(0x155),'GdQKt':function(_0x4a61f9,_0x5e9523){return _0x4a61f9===_0x5e9523;},'IcVFS':_0x58660b(0x165),'ozOts':function(_0x443918,_0x1709ea){return _0x443918===_0x1709ea;},'QKGwl':_0x58660b(0x19e),'eSWTP':_0x58660b(0x186),'yyign':function(_0x1934ed,_0x520f3a){return _0x1934ed(_0x520f3a);},'egIjO':function(_0x20c997,_0x366bbc){return _0x20c997===_0x366bbc;},'TGgZd':_0x58660b(0x1b3),'DbJJg':function(_0xa1a29c,_0x3a3935){return _0xa1a29c>_0x3a3935;},'yAwoP':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x208b8b[_0x58660b(0x1a8)](_0x8dee55[_0x58660b(0x163)],''))return logger[_0x58660b(0x17b)](_0x208b8b[_0x58660b(0x15e)]),![];const _0x26b964=_0x8dee55[_0x58660b(0x190)];if(!(_0x208b8b[_0x58660b(0x195)](_0x26b964,_0x208b8b[_0x58660b(0x1a7)])||_0x208b8b[_0x58660b(0x1a2)](_0x26b964,_0x208b8b[_0x58660b(0x173)])))return logger['warn'](_0x208b8b[_0x58660b(0x177)]),![];const _0x4277e3=_0x208b8b['yyign'](parseInt,_0x8dee55[_0x58660b(0x17e)]);if(!(_0x208b8b['egIjO'](_0x4277e3,_0x208b8b['TGgZd'])||_0x208b8b['DbJJg'](_0x4277e3,0x5e)))return logger[_0x58660b(0x17b)](_0x208b8b[_0x58660b(0x1bb)]),![];}catch(_0x85557e){logger[_0x58660b(0x197)](_0x58660b(0x170)+util['format'](_0x85557e));}return!![];},exports['processAccessibilityCaps']=(_0x20cf83,_0x1af8d0,_0x70cfab)=>{const _0x30f5cb=a34_0x5438cf,_0x203f35={'soQNj':function(_0x2e2863){return _0x2e2863();},'bWRsK':_0x30f5cb(0x176),'XBPDX':function(_0x3b6e08,_0x2c9526){return _0x3b6e08===_0x2c9526;},'EhKvr':_0x30f5cb(0x165),'YAzyl':function(_0x6a5fa,_0x346765){return _0x6a5fa===_0x346765;},'vhZBF':_0x30f5cb(0x19e),'URBgj':_0x30f5cb(0x186),'aEatB':'latest','HfXTg':function(_0x2d1988,_0x2f2232){return _0x2d1988>_0x2f2232;},'VLybW':_0x30f5cb(0x1b1),'srgMI':function(_0x5216f1,_0x587b5f){return _0x5216f1(_0x587b5f);},'bBsVj':_0x30f5cb(0x155),'lnlxA':function(_0x3faa8f,_0x29dff1){return _0x3faa8f+_0x29dff1;},'oYNIH':function(_0x2bc602,_0x385074){return _0x2bc602(_0x385074);}};try{if(_0x203f35[_0x30f5cb(0x18e)](isAccessibilityAutomationSession)){global[_0x30f5cb(0x1a3)]=!![];!_0x20cf83[_0x203f35[_0x30f5cb(0x161)]]&&(global[_0x30f5cb(0x1a3)]=![]);!(_0x203f35[_0x30f5cb(0x154)](_0x20cf83[_0x30f5cb(0x16f)],_0x203f35[_0x30f5cb(0x15d)])||_0x203f35[_0x30f5cb(0x196)](_0x20cf83[_0x30f5cb(0x16f)],_0x203f35[_0x30f5cb(0x172)]))&&(logger[_0x30f5cb(0x17b)](_0x203f35['URBgj']),global[_0x30f5cb(0x1a3)]=![]);!(_0x203f35[_0x30f5cb(0x154)](_0x20cf83[_0x30f5cb(0x17e)],_0x203f35[_0x30f5cb(0x1a0)])||_0x203f35[_0x30f5cb(0x15a)](_0x20cf83['browser_version'],0x5e))&&(logger[_0x30f5cb(0x17b)](_0x203f35[_0x30f5cb(0x180)]),global[_0x30f5cb(0x1a3)]=![]);!_0x203f35['srgMI'](isUndefined,_0x20cf83[_0x30f5cb(0x163)])&&(logger[_0x30f5cb(0x17b)](_0x203f35[_0x30f5cb(0x1ac)]),global[_0x30f5cb(0x1a3)]=![]);if(!global[_0x30f5cb(0x1a3)]){_0x20cf83[_0x203f35[_0x30f5cb(0x161)]]=![];const _0x2fcb5b=_0x203f35[_0x30f5cb(0x1ad)](_0x1af8d0,_0x203f35['oYNIH'](encodeURIComponent,JSON[_0x30f5cb(0x1a4)](_0x20cf83)));_0x70cfab&&(_0x70cfab[_0x30f5cb(0x1b7)][_0x30f5cb(0x162)][_0x30f5cb(0x16e)][_0x30f5cb(0x182)][_0x30f5cb(0x169)][_0x30f5cb(0x16a)]=_0x2fcb5b,_0x70cfab[_0x30f5cb(0x19b)][_0x30f5cb(0x16e)]['use'][_0x30f5cb(0x169)][_0x30f5cb(0x16a)]=_0x2fcb5b);}}}catch(_0x584b63){logger[_0x30f5cb(0x197)](_0x30f5cb(0x193)+util[_0x30f5cb(0x164)](_0x584b63));}};
|
|
1
|
+
const a34_0x7ff1ab=a34_0x11e7;function a34_0x3d06(){const _0x5c0ac8=['wsEndpoint','qACsc','wudVU','2904GvChbM','accessibilityOptions.includeIssueType.needsReview','playwright-chromium','processAccessibilityCaps','wcagVersion','Szhrv','vQvNq','format','browserStackEvaluate','AbFwu','chrome','pvpin','2349575vUNIWl','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','../../helpers/helper','ZskDT','vtBsx','VAZnC','aRDTC','662550TbCxaf','LVspI','wcueQ','nOnxE','pMPSB','parse','evaluate','tZLgK','winstonLogger','env','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','kZAyY','CssIc','hQWDo','4qIuzbj','platformValidation','No\x20summaryResults\x20found.','dHnJG','performScan','error','bstackSdkArgs','mtKmm','LWBBJ','accessibilityOptions','scannerProcessingTimeout','browser_version','13734SOQoMa','includeIssueType','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','name','executeScript','WgxTd','getAccessibilityResults','../../helpers/logger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','accessibilityOptions.includeIssueType.bestPractice','ihaZG','connectOptions','constructor','FNlre','2lCreeP','718737tMocTP','latest','716100mIpYAc','stringify','use','needsReview','project','41027Mznxdq','rugKC','DLlkB','(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','66zyzBer','browserName','accessibilityOptions.scannerProcessingTimeout','warn','accessibilityOptions.scannerVersion','sEXKf','79190AmNBWs','workerInfo','WebDriver','738MiLhuH','bcqDi','uOdDk','LmHyo','browserstack.accessibility','../../helpers/accessibility-automation/scripts','accessibilityPlatform','debug','jUqVl','getAccessibilityResultsSummary','OKUsq','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','YnALy','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','deviceName','browserStackExecuteDriver','accessibilityOptions.authToken','method'];a34_0x3d06=function(){return _0x5c0ac8;};return a34_0x3d06();}(function(_0x4c739f,_0x31c453){const _0x3b26c9=a34_0x11e7,_0x4869e0=_0x4c739f();while(!![]){try{const _0x582e9c=parseInt(_0x3b26c9(0x202))/0x1+-parseInt(_0x3b26c9(0x22b))/0x2*(-parseInt(_0x3b26c9(0x22c))/0x3)+parseInt(_0x3b26c9(0x210))/0x4*(-parseInt(_0x3b26c9(0x1fb))/0x5)+parseInt(_0x3b26c9(0x240))/0x6*(parseInt(_0x3b26c9(0x233))/0x7)+parseInt(_0x3b26c9(0x1ef))/0x8*(-parseInt(_0x3b26c9(0x21c))/0x9)+-parseInt(_0x3b26c9(0x23d))/0xa*(parseInt(_0x3b26c9(0x237))/0xb)+parseInt(_0x3b26c9(0x22e))/0xc;if(_0x582e9c===_0x31c453)break;else _0x4869e0['push'](_0x4869e0['shift']());}catch(_0x2a5c9a){_0x4869e0['push'](_0x4869e0['shift']());}}}(a34_0x3d06,0x9540c));function a34_0x11e7(_0x44ef33,_0x3da7a7){const _0x3d0657=a34_0x3d06();return a34_0x11e7=function(_0x11e729,_0x5656de){_0x11e729=_0x11e729-0x1ea;let _0x2e40f6=_0x3d0657[_0x11e729];return _0x2e40f6;},a34_0x11e7(_0x44ef33,_0x3da7a7);}const util=require('util'),logger=require(a34_0x7ff1ab(0x223))[a34_0x7ff1ab(0x20a)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a34_0x7ff1ab(0x1fd)),scripts=require(a34_0x7ff1ab(0x245));exports[a34_0x7ff1ab(0x1f7)]=async(_0x199f27,_0x4f6f3e,_0x18f554={})=>{const _0x22c147=a34_0x7ff1ab,_0x1fdf95={};_0x1fdf95['bcqDi']=_0x22c147(0x216);const _0x27739f=_0x1fdf95;return await _0x199f27[_0x22c147(0x208)](_0x22c147(0x236)+_0x4f6f3e['replace'](/arguments/g,_0x27739f[_0x22c147(0x241)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x22c147(0x22f)](_0x18f554)+')');},exports[a34_0x7ff1ab(0x250)]=async(_0x2fbf94,_0x56a16c,_0x147402={})=>{const _0x405fc1=a34_0x7ff1ab,_0x3f165c={};_0x3f165c[_0x405fc1(0x1fe)]=function(_0x5ef1db,_0x222daf){return _0x5ef1db===_0x222daf;},_0x3f165c[_0x405fc1(0x213)]=_0x405fc1(0x23f),_0x3f165c['sEXKf']='Playwright',_0x3f165c[_0x405fc1(0x1ff)]=_0x405fc1(0x216);const _0x545626=_0x3f165c;if(_0x545626[_0x405fc1(0x1fe)](_0x2fbf94[_0x405fc1(0x229)]['name'],_0x545626[_0x405fc1(0x213)]))return await _0x2fbf94['executeAsyncScript'](_0x56a16c,_0x147402);else{if(_0x545626['ZskDT'](_0x2fbf94[_0x405fc1(0x229)][_0x405fc1(0x21f)],_0x545626[_0x405fc1(0x23c)]))return await _0x2fbf94[_0x405fc1(0x220)]('(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'+_0x56a16c['replace'](/arguments/g,_0x545626[_0x405fc1(0x1ff)])+_0x405fc1(0x24b)+JSON[_0x405fc1(0x22f)](_0x147402)+')');}},exports['setAccessibilityCapabilities']=async _0x3c4c13=>{const _0x4e7b96=a34_0x7ff1ab,_0x11afe7={};_0x11afe7[_0x4e7b96(0x204)]='accessibilityOptions.wcagVersion',_0x11afe7[_0x4e7b96(0x1ed)]=_0x4e7b96(0x239),_0x11afe7[_0x4e7b96(0x1ee)]=_0x4e7b96(0x226),_0x11afe7[_0x4e7b96(0x227)]=_0x4e7b96(0x1f0),_0x11afe7['hQWDo']=_0x4e7b96(0x1ea),_0x11afe7[_0x4e7b96(0x205)]=_0x4e7b96(0x23b);const _0x194815=_0x11afe7;_0x3c4c13[_0x4e7b96(0x219)]&&(_0x3c4c13[_0x4e7b96(0x219)][_0x4e7b96(0x1f3)]&&(_0x3c4c13[_0x194815[_0x4e7b96(0x204)]]=_0x3c4c13[_0x4e7b96(0x219)][_0x4e7b96(0x1f3)]),_0x3c4c13[_0x4e7b96(0x219)]['scannerProcessingTimeout']&&(_0x3c4c13[_0x194815[_0x4e7b96(0x1ed)]]=_0x3c4c13[_0x4e7b96(0x219)][_0x4e7b96(0x21a)]),_0x3c4c13[_0x4e7b96(0x219)]['includeIssueType']&&(_0x3c4c13[_0x194815[_0x4e7b96(0x1ee)]]=_0x3c4c13[_0x4e7b96(0x219)]['includeIssueType']['bestPractice'],_0x3c4c13[_0x194815[_0x4e7b96(0x227)]]=_0x3c4c13[_0x4e7b96(0x219)][_0x4e7b96(0x21d)][_0x4e7b96(0x231)]));const _0xbc0cc3=JSON[_0x4e7b96(0x207)](process[_0x4e7b96(0x20b)][_0x4e7b96(0x24e)])['scannerVersion'];_0x3c4c13[_0x194815[_0x4e7b96(0x20f)]]=process[_0x4e7b96(0x20b)]['BS_A11Y_JWT'],_0x3c4c13[_0x194815['nOnxE']]=_0xbc0cc3,delete _0x3c4c13[_0x4e7b96(0x219)];},exports[a34_0x7ff1ab(0x222)]=async _0x51b1fb=>{const _0x12dfec=a34_0x7ff1ab,_0x268f7d={};_0x268f7d[_0x12dfec(0x221)]='No\x20accessibility\x20results\x20were\x20found.',_0x268f7d[_0x12dfec(0x1f5)]=_0x12dfec(0x21e);const _0xca7ce7=_0x268f7d;if(global[_0x12dfec(0x246)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x51b1fb,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x51b1fb,scripts.getResults);return res;}catch{return logger[_0x12dfec(0x215)](_0xca7ce7[_0x12dfec(0x221)]),[];}else return logger['warn'](_0xca7ce7[_0x12dfec(0x1f5)]),[];},exports[a34_0x7ff1ab(0x214)]=async(_0x1bffbf,_0x6d2a05='')=>{const _0x59637e=a34_0x7ff1ab;if(global[_0x59637e(0x246)]){const _0x5a7d6a={};return _0x5a7d6a[_0x59637e(0x1eb)]=_0x6d2a05,await exports[_0x59637e(0x1f7)](_0x1bffbf,scripts[_0x59637e(0x214)],_0x5a7d6a);}},exports[a34_0x7ff1ab(0x249)]=async _0x478731=>{const _0x240e63=a34_0x7ff1ab,_0x52a650={};_0x52a650[_0x240e63(0x242)]=_0x240e63(0x212),_0x52a650[_0x240e63(0x1f4)]=_0x240e63(0x225);const _0x4573d2=_0x52a650;if(global[_0x240e63(0x246)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x478731,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x478731,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x4573d2['uOdDk']),{};}else return logger[_0x240e63(0x23a)](_0x4573d2[_0x240e63(0x1f4)]),{};},exports[a34_0x7ff1ab(0x211)]=async _0xf464ea=>{const _0x2a3be8=a34_0x7ff1ab,_0x303e00={'ShSKj':function(_0x1e191b,_0x290695){return _0x1e191b!==_0x290695;},'jAqvV':_0x2a3be8(0x24d),'eaBZv':function(_0xc94a67,_0x4639c3){return _0xc94a67===_0x4639c3;},'YnALy':_0x2a3be8(0x1f9),'LVspI':function(_0x5e6c49,_0x4e1ec5){return _0x5e6c49===_0x4e1ec5;},'LmHyo':_0x2a3be8(0x1f1),'tZLgK':_0x2a3be8(0x20c),'kZAyY':function(_0x5a8d38,_0xaa990e){return _0x5a8d38(_0xaa990e);},'LeVjR':function(_0x511da1,_0xea1d9d){return _0x511da1===_0xea1d9d;},'DMkaS':_0x2a3be8(0x22d),'OKUsq':function(_0x4ecab6,_0x3607c4){return _0x4ecab6>_0x3607c4;},'pMPSB':_0x2a3be8(0x224)};try{if(!_0x303e00['ShSKj'](_0xf464ea[_0x2a3be8(0x24f)],''))return logger[_0x2a3be8(0x23a)](_0x303e00['jAqvV']),![];const _0x22a372=_0xf464ea['browser'];if(!(_0x303e00['eaBZv'](_0x22a372,_0x303e00[_0x2a3be8(0x24c)])||_0x303e00[_0x2a3be8(0x203)](_0x22a372,_0x303e00[_0x2a3be8(0x243)])))return logger[_0x2a3be8(0x23a)](_0x303e00[_0x2a3be8(0x209)]),![];const _0xefc513=_0x303e00[_0x2a3be8(0x20d)](parseInt,_0xf464ea['browser_version']);if(!(_0x303e00['LeVjR'](_0xefc513,_0x303e00['DMkaS'])||_0x303e00[_0x2a3be8(0x24a)](_0xefc513,0x5e)))return logger['warn'](_0x303e00[_0x2a3be8(0x206)]),![];}catch(_0x3bd76f){logger[_0x2a3be8(0x247)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util['format'](_0x3bd76f));}return!![];},exports[a34_0x7ff1ab(0x1f2)]=(_0x107a88,_0x1292fa,_0x27a573)=>{const _0x3d75dd=a34_0x7ff1ab,_0x3662a3={'JkrwY':function(_0x52658c){return _0x52658c();},'mtKmm':_0x3d75dd(0x244),'AbFwu':function(_0x478d32,_0x98e0fd){return _0x478d32===_0x98e0fd;},'FOdio':_0x3d75dd(0x1f9),'FNlre':function(_0x4c0be1,_0x133312){return _0x4c0be1===_0x133312;},'aRDTC':_0x3d75dd(0x1f1),'jUqVl':_0x3d75dd(0x20c),'LWBBJ':function(_0x41c1cb,_0x2a496c){return _0x41c1cb===_0x2a496c;},'rugKC':_0x3d75dd(0x22d),'DLlkB':function(_0x28b490,_0x22d4cc){return _0x28b490>_0x22d4cc;},'BkcME':_0x3d75dd(0x224),'pvpin':function(_0x18dd59,_0x3c3c4a){return _0x18dd59(_0x3c3c4a);},'CssIc':_0x3d75dd(0x24d),'XHirU':function(_0xab3c35,_0x94604c){return _0xab3c35+_0x94604c;},'VAZnC':function(_0x740e8c,_0x131a61){return _0x740e8c(_0x131a61);}};try{if(_0x3662a3['JkrwY'](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x107a88[_0x3662a3[_0x3d75dd(0x217)]]&&(global['accessibilityPlatform']=![]);!(_0x3662a3[_0x3d75dd(0x1f8)](_0x107a88[_0x3d75dd(0x238)],_0x3662a3['FOdio'])||_0x3662a3[_0x3d75dd(0x22a)](_0x107a88[_0x3d75dd(0x238)],_0x3662a3[_0x3d75dd(0x201)]))&&(logger[_0x3d75dd(0x23a)](_0x3662a3[_0x3d75dd(0x248)]),global[_0x3d75dd(0x246)]=![]);!(_0x3662a3[_0x3d75dd(0x218)](_0x107a88[_0x3d75dd(0x21b)],_0x3662a3[_0x3d75dd(0x234)])||_0x3662a3[_0x3d75dd(0x235)](_0x107a88['browser_version'],0x5e))&&(logger[_0x3d75dd(0x23a)](_0x3662a3['BkcME']),global[_0x3d75dd(0x246)]=![]);!_0x3662a3[_0x3d75dd(0x1fa)](isUndefined,_0x107a88[_0x3d75dd(0x24f)])&&(logger[_0x3d75dd(0x23a)](_0x3662a3[_0x3d75dd(0x20e)]),global[_0x3d75dd(0x246)]=![]);if(!global['accessibilityPlatform']){_0x107a88[_0x3662a3[_0x3d75dd(0x217)]]=![];const _0xc78b88=_0x3662a3['XHirU'](_0x1292fa,_0x3662a3[_0x3d75dd(0x200)](encodeURIComponent,JSON[_0x3d75dd(0x22f)](_0x107a88)));_0x27a573&&(_0x27a573['currentTest']['testInfo']['project'][_0x3d75dd(0x230)][_0x3d75dd(0x228)][_0x3d75dd(0x1ec)]=_0xc78b88,_0x27a573[_0x3d75dd(0x23e)][_0x3d75dd(0x232)]['use'][_0x3d75dd(0x228)][_0x3d75dd(0x1ec)]=_0xc78b88);}}}catch(_0x1e6d99){logger[_0x3d75dd(0x247)](_0x3d75dd(0x1fc)+util[_0x3d75dd(0x1f6)](_0x1e6d99));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x5becb3=a35_0x3fd0;function a35_0x3fd0(_0x46ac5f,_0x294ee9){const _0x481174=a35_0x4811();return a35_0x3fd0=function(_0x3fd0be,_0x5c3177){_0x3fd0be=_0x3fd0be-0x183;let _0x484e84=_0x481174[_0x3fd0be];return _0x484e84;},a35_0x3fd0(_0x46ac5f,_0x294ee9);}(function(_0x43ee65,_0x4d0748){const _0x1f8b45=a35_0x3fd0,_0x1f494e=_0x43ee65();while(!![]){try{const _0x5d7bf2=parseInt(_0x1f8b45(0x1bf))/0x1+-parseInt(_0x1f8b45(0x1cd))/0x2*(-parseInt(_0x1f8b45(0x195))/0x3)+parseInt(_0x1f8b45(0x19d))/0x4*(parseInt(_0x1f8b45(0x1df))/0x5)+parseInt(_0x1f8b45(0x1a6))/0x6*(parseInt(_0x1f8b45(0x1a8))/0x7)+-parseInt(_0x1f8b45(0x19c))/0x8*(-parseInt(_0x1f8b45(0x211))/0x9)+parseInt(_0x1f8b45(0x1bb))/0xa+-parseInt(_0x1f8b45(0x1fb))/0xb*(parseInt(_0x1f8b45(0x21a))/0xc);if(_0x5d7bf2===_0x4d0748)break;else _0x1f494e['push'](_0x1f494e['shift']());}catch(_0x67327b){_0x1f494e['push'](_0x1f494e['shift']());}}}(a35_0x4811,0xb805c));const fs=require('fs'),path=require(a35_0x5becb3(0x20d)),{spawn}=require('child_process'),{format}=require(a35_0x5becb3(0x1a5)),logger=require(a35_0x5becb3(0x1bc))[a35_0x5becb3(0x18c)],{default:BrowserStackSetup}=require(a35_0x5becb3(0x21d)),helper=require(a35_0x5becb3(0x196)),utilities=require(a35_0x5becb3(0x207)),constants=require(a35_0x5becb3(0x1e2)),{FRAMEWORKS}=require(a35_0x5becb3(0x1b6)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x5becb3(0x21b)),{CrashReporter}=require(a35_0x5becb3(0x19a)),{getFrameworkVersion}=require(a35_0x5becb3(0x1aa)),{checkAccessibilityPlatformConfig}=require(a35_0x5becb3(0x1b9)),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require(a35_0x5becb3(0x218)),{shouldProcessEventForTesthub}=require(a35_0x5becb3(0x1f5)),getUserPlaywrightConfig=async(_0x15aa76,_0x65410f)=>{const _0x3726ba=a35_0x5becb3,_0x30853a={'fMCZa':function(_0x24c76e){return _0x24c76e();},'ytTrz':function(_0x1580b7,_0x423d5c){return _0x1580b7(_0x423d5c);},'vnHbe':function(_0x4c0c63,_0x58f234){return _0x4c0c63(_0x58f234);},'tovqu':_0x3726ba(0x210),'iuQrK':_0x3726ba(0x1f9)},_0x3630c8=!helper['isUndefined'](_0x15aa76[_0x3726ba(0x1ab)]),_0x41d830=_0x3630c8?path[_0x3726ba(0x18d)](process[_0x3726ba(0x1ec)](),_0x15aa76[_0x3726ba(0x1ab)]):process[_0x3726ba(0x1ec)](),{resolveConfigFile:_0x1dc070,resolveConfigLocation:_0x3ae501}=helper[_0x3726ba(0x1bd)][_0x3726ba(0x1cc)](null,_0x30853a['fMCZa'](getConfigLoaderPath)),_0x2515a2=_0x1dc070?_0x30853a[_0x3726ba(0x190)](_0x1dc070,_0x41d830):helper[_0x3726ba(0x1a9)](_0x30853a[_0x3726ba(0x1db)](_0x3ae501,_0x41d830),[_0x30853a['tovqu']]),_0x523fef={};if(_0x3630c8){const _0x10f220=_0x65410f['findIndex'](_0x4c93d6=>_0x4c93d6===_0x3726ba(0x1b2)||_0x4c93d6==='-c'||_0x4c93d6[_0x3726ba(0x213)](_0x3726ba(0x1f9)));_0x65410f[_0x3726ba(0x1c9)](_0x10f220,_0x65410f[_0x10f220]['startsWith'](_0x30853a[_0x3726ba(0x20a)])?0x1:0x2);}const _0x5d876b={};return _0x5d876b['path']=_0x2515a2,_0x5d876b[_0x3726ba(0x1ab)]=_0x523fef,_0x5d876b;},handleO11yRerun=_0x1ba932=>{const _0x2bcb33=a35_0x5becb3,_0xef51d3={};_0xef51d3['rSxog']=function(_0x13037a,_0x53b046){return _0x13037a!==_0x53b046;},_0xef51d3[_0x2bcb33(0x1c3)]=_0x2bcb33(0x1a3),_0xef51d3['JcRFd']=_0x2bcb33(0x185);const _0x21aafd=_0xef51d3,_0x1c1423=helper[_0x2bcb33(0x1d9)](process[_0x2bcb33(0x1d2)][_0x2bcb33(0x18a)]);if(_0x1c1423){const _0x3d9738=process[_0x2bcb33(0x1d2)][_0x2bcb33(0x1ac)],_0x15c253=[];if(_0x21aafd['rSxog'](_0x3d9738,_0x21aafd['VHTBY'])&&!helper['isUndefined'](_0x3d9738)){_0x3d9738[_0x2bcb33(0x221)](',')[_0x2bcb33(0x19b)](_0x367221=>{const _0x15926c=_0x2bcb33;_0x15c253['push']('('+_0x367221[_0x15926c(0x19e)]()+')');});const _0x8dbc3b='^'+_0x15c253['join']('|')+'$';_0x1ba932['push'](_0x21aafd[_0x2bcb33(0x21f)],_0x8dbc3b);}}},spawnOriginalProcess=_0x136d95=>{const _0x38ca59=a35_0x5becb3,_0x17e028={'VyQPL':function(_0x21caf0,_0x2ee14d,_0x4cc59d,_0x51877b){return _0x21caf0(_0x2ee14d,_0x4cc59d,_0x51877b);},'TfTYr':'npx','nMuLS':_0x38ca59(0x21c),'erVbm':function(_0x194fa1,_0x5abc65){return _0x194fa1===_0x5abc65;},'KqKie':_0x38ca59(0x1d1),'uHUnd':'inherit'};_0x17e028['VyQPL'](spawn,_0x17e028[_0x38ca59(0x208)],[_0x17e028[_0x38ca59(0x193)],..._0x136d95['slice'](0x1)],{'shell':_0x17e028[_0x38ca59(0x1b4)](process[_0x38ca59(0x1be)],_0x17e028[_0x38ca59(0x1ea)]),'stdio':_0x17e028['uHUnd'],'cwd':process[_0x38ca59(0x1ec)]()});},isTestCommand=(_0xb716d4,_0x43709b)=>{const _0x1c8183=a35_0x5becb3,_0x1edb09={};_0x1edb09[_0x1c8183(0x1fc)]=function(_0x2ef04f,_0x2bde02){return _0x2ef04f>_0x2bde02;},_0x1edb09[_0x1c8183(0x18f)]=function(_0x1e4396,_0x40936f){return _0x1e4396===_0x40936f;},_0x1edb09[_0x1c8183(0x1e1)]=_0x1c8183(0x1ae);const _0x98a152=_0x1edb09;if(_0x98a152[_0x1c8183(0x1fc)](_0x43709b['length'],0x1)&&_0x98a152[_0x1c8183(0x18f)](_0x43709b[0x1],_0x98a152[_0x1c8183(0x1e1)]))return!![];return![];};async function run(_0x46d0cc,_0x41bb22){const _0x4b11d1=a35_0x5becb3,_0x24a90f={'VMuJc':_0x4b11d1(0x1d5),'YlxNz':_0x4b11d1(0x189),'SVSzY':function(_0x189d53,_0xc21127){return _0x189d53+_0xc21127;},'LgqGO':'Error\x20in\x20getting\x20funnel\x20data\x20results','NgMSk':_0x4b11d1(0x1ee),'XFskQ':function(_0x58389c){return _0x58389c();},'khpsA':function(_0x2fd320,_0x74af9f){return _0x2fd320+_0x74af9f;},'QWhrg':_0x4b11d1(0x1c7),'jVOSM':_0x4b11d1(0x201),'JGaZt':_0x4b11d1(0x1c1),'XXVfT':_0x4b11d1(0x205),'ftYQi':function(_0x4567fb,_0x5374e3){return _0x4567fb>=_0x5374e3;},'zgIqc':function(_0x2e893e,_0x3c15e5){return _0x2e893e+_0x3c15e5;},'rKgHj':_0x4b11d1(0x1d8),'PnBdb':function(_0x4e69b9,_0x2f2ab9,_0x1d0b20){return _0x4e69b9(_0x2f2ab9,_0x1d0b20);},'YkJaw':function(_0x3cfb73,_0x1deabd){return _0x3cfb73(_0x1deabd);},'eiFrV':_0x4b11d1(0x1f3),'ZCxcR':'automation','mFuAi':function(_0x3e3476,_0x10cce0){return _0x3e3476!=_0x10cce0;},'SBquE':function(_0x522944,_0x1b32d2,_0x5c4b9b){return _0x522944(_0x1b32d2,_0x5c4b9b);},'hEODN':function(_0x26c896,_0x38a47e){return _0x26c896===_0x38a47e;},'INgid':'true','uuCVr':function(_0x321d45,_0x1d5902){return _0x321d45(_0x1d5902);},'DqnAX':_0x4b11d1(0x188),'VAkdo':function(_0x5cab48,_0x116103){return _0x5cab48===_0x116103;},'CVKFL':_0x4b11d1(0x1ad),'StXEx':_0x4b11d1(0x1af),'QTFSe':function(_0x5a977c,_0x65f138){return _0x5a977c-_0x65f138;},'hgGyu':function(_0x591c18,_0x1a5985){return _0x591c18+_0x1a5985;},'zejKT':_0x4b11d1(0x1a1),'Psogv':function(_0x518378,_0x3a81ce){return _0x518378>_0x3a81ce;},'nWOMs':function(_0x3dd40c,_0x50ac8a){return _0x3dd40c+_0x50ac8a;},'tTeuh':function(_0x200b93,_0x5ee783,_0x3ece62,_0x168ab0){return _0x200b93(_0x5ee783,_0x3ece62,_0x168ab0);},'DpREd':_0x4b11d1(0x20c),'ayHYK':'playwright','wtdgF':'test','uygZz':_0x4b11d1(0x1b2),'EflGX':function(_0xe015cd,_0x390756){return _0xe015cd===_0x390756;},'rykDl':_0x4b11d1(0x1d1),'HqoCV':_0x4b11d1(0x1b7),'KSRCN':'close'};!helper[_0x4b11d1(0x1e3)](process[_0x4b11d1(0x1d2)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x4b11d1(0x1d2)][_0x4b11d1(0x1ed)]=!![]);process[_0x4b11d1(0x1b3)][_0x4b11d1(0x202)](_0x24a90f[_0x4b11d1(0x1eb)])&&(process[_0x4b11d1(0x1d2)][_0x4b11d1(0x1ed)]=_0x24a90f['JGaZt'],_0x41bb22=_0x41bb22[_0x4b11d1(0x1a4)](_0x1dc18f=>_0x1dc18f!==_0x4b11d1(0x201)));const _0x554293=_0x41bb22['indexOf'](_0x24a90f[_0x4b11d1(0x1c8)]);_0x24a90f[_0x4b11d1(0x209)](_0x554293,0x0)&&(process[_0x4b11d1(0x1d2)][_0x4b11d1(0x1f1)]=_0x24a90f[_0x4b11d1(0x1e0)],_0x41bb22=_0x41bb22[_0x4b11d1(0x1a4)](_0x411c3d=>_0x411c3d!=='--disable-test-observability'));try{const _0x47a4d7=path[_0x4b11d1(0x1ce)](helper[_0x4b11d1(0x186)](),_0x24a90f[_0x4b11d1(0x215)],_0x24a90f['YlxNz']);fs[_0x4b11d1(0x1e9)](_0x47a4d7)&&fs[_0x4b11d1(0x1de)](_0x47a4d7);}catch(_0x56f58b){logger[_0x4b11d1(0x200)](_0x24a90f[_0x4b11d1(0x1c2)](_0x24a90f[_0x4b11d1(0x1d3)],_0x56f58b));}if(!_0x24a90f['PnBdb'](isTestCommand,_0x46d0cc,_0x41bb22)){_0x24a90f['YkJaw'](spawnOriginalProcess,_0x41bb22);return;}const _0x3451ca=new BrowserStackSetup(_0x46d0cc,FRAMEWORKS['PLAYWRIGHT']);if(!_0x3451ca['config']){logger[_0x4b11d1(0x184)](_0x24a90f[_0x4b11d1(0x212)]);return;}await _0x3451ca[_0x4b11d1(0x204)]();!helper['isUndefined'](_0x3451ca['cliConfig'])&&_0x3451ca['cliConfig'][_0x4b11d1(0x1da)](_0x24a90f[_0x4b11d1(0x217)])&&(process[_0x4b11d1(0x1d2)]['BROWSERSTACK_AUTOMATION']=_0x3451ca[_0x4b11d1(0x1e5)]['get'](_0x24a90f[_0x4b11d1(0x217)])||!![]);_0x24a90f[_0x4b11d1(0x1d6)](_0x3451ca[_0x4b11d1(0x1ab)][_0x4b11d1(0x219)],null)&&!helper['isTrue'](process[_0x4b11d1(0x1d2)][_0x4b11d1(0x1f1)])&&(process[_0x4b11d1(0x1d2)][_0x4b11d1(0x1f1)]=process[_0x4b11d1(0x1d2)][_0x4b11d1(0x1f1)]||_0x3451ca[_0x4b11d1(0x1ab)]['testObservability']);const _0x546f4b=!helper[_0x4b11d1(0x1e3)](process['env'][_0x4b11d1(0x1f1)]);let _0x2db3f5=![];_0x3451ca['config']['accessibility']&&(_0x2db3f5=!![],process['env'][_0x4b11d1(0x19f)]=_0x3451ca['config'][_0x4b11d1(0x20b)]);_0x3451ca['config']['accessibilityOptions']&&(process[_0x4b11d1(0x1d2)][_0x4b11d1(0x1f6)]=JSON[_0x4b11d1(0x1b5)](_0x3451ca['config'][_0x4b11d1(0x1f2)]));const _0x37a97d=_0x41bb22['concat'](),_0x293936=await _0x24a90f['SBquE'](getUserPlaywrightConfig,_0x46d0cc,_0x41bb22);if(helper[_0x4b11d1(0x1fd)](_0x293936)){_0x24a90f['YkJaw'](spawnOriginalProcess,_0x37a97d);return;}const _0x2207f6=_0x293936[_0x4b11d1(0x20d)]?path[_0x4b11d1(0x187)](_0x293936[_0x4b11d1(0x20d)]):process['cwd']();process[_0x4b11d1(0x1d2)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x2207f6,await TestHubHandler[_0x4b11d1(0x20e)](FRAMEWORKS[_0x4b11d1(0x194)],_0x3451ca);_0x546f4b&&_0x24a90f[_0x4b11d1(0x20f)](handleO11yRerun,_0x41bb22);let _0x1fe5ff=_0x24a90f['hEODN'](process['env'][_0x4b11d1(0x19f)],_0x24a90f[_0x4b11d1(0x1d7)]);_0x1fe5ff=_0x1fe5ff||_0x24a90f[_0x4b11d1(0x20f)](checkAccessibilityPlatformConfig,_0x3451ca[_0x4b11d1(0x1ab)]),process[_0x4b11d1(0x1d2)][_0x4b11d1(0x19f)]=_0x1fe5ff;_0x1fe5ff&&_0x24a90f[_0x4b11d1(0x1c5)](setAccessibilityCapabilities,_0x3451ca[_0x4b11d1(0x1ab)]);const _0x500f5a=path['join'](_0x293936[_0x4b11d1(0x20d)]?path[_0x4b11d1(0x187)](_0x293936['path']):process[_0x4b11d1(0x1ec)](),_0x24a90f['DqnAX']);fs[_0x4b11d1(0x203)](_0x500f5a,helper[_0x4b11d1(0x18b)](_0x3451ca['config'])),process['env'][_0x4b11d1(0x1f4)]=_0x500f5a,helper[_0x4b11d1(0x1e4)]();let _0x4cfa70='';_0x24a90f[_0x4b11d1(0x21e)](helper['getPackageType'](),constants[_0x4b11d1(0x1e7)][_0x4b11d1(0x1f0)])?_0x4cfa70=_0x24a90f[_0x4b11d1(0x1b8)]:_0x4cfa70=_0x24a90f[_0x4b11d1(0x197)];let _0x59d4eb='';if(helper[_0x4b11d1(0x220)](_0x293936[_0x4b11d1(0x20d)])){_0x59d4eb='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x37db17=_0x4cfa70[_0x4b11d1(0x221)]('.');_0x37db17[_0x24a90f[_0x4b11d1(0x1fe)](_0x37db17[_0x4b11d1(0x206)],0x1)]='ts',_0x4cfa70=_0x37db17[_0x4b11d1(0x1ce)]('.'),logger['debug'](_0x24a90f[_0x4b11d1(0x1a2)](_0x24a90f['zejKT'],_0x4cfa70));}else _0x59d4eb=_0x4b11d1(0x18e);const _0x173509=path[_0x4b11d1(0x1ce)](_0x293936[_0x4b11d1(0x20d)]?path[_0x4b11d1(0x187)](_0x293936[_0x4b11d1(0x20d)]):process[_0x4b11d1(0x1ec)](),_0x4cfa70);let _0x482095=_0x293936['path']?_0x293936['path']:'';_0x482095=_0x24a90f[_0x4b11d1(0x214)](_0x482095[_0x4b11d1(0x206)],0x0)?path[_0x4b11d1(0x18d)](_0x482095):'',process[_0x4b11d1(0x1d2)]['USER_CONFIG_DETAILS_PATH']=_0x482095;const _0x2869f3=helper[_0x4b11d1(0x199)](_0x3451ca[_0x4b11d1(0x1ab)]);_0x2869f3&&(_0x59d4eb=_0x24a90f['nWOMs']('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x2869f3+'\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();',_0x59d4eb));helper['filterBrowserstackConfig']({},_0x41bb22),fs[_0x4b11d1(0x203)](_0x173509,_0x59d4eb),helper[_0x4b11d1(0x1c6)]();const _0x3026df=_0x24a90f[_0x4b11d1(0x1c0)](spawn,_0x24a90f['DpREd'],[_0x24a90f[_0x4b11d1(0x1ca)],_0x24a90f[_0x4b11d1(0x1a0)],_0x24a90f[_0x4b11d1(0x1b0)],_0x173509,..._0x41bb22[_0x4b11d1(0x1d0)](0x2)],{'shell':_0x24a90f[_0x4b11d1(0x191)](process[_0x4b11d1(0x1be)],_0x24a90f['rykDl']),'stdio':_0x24a90f['HqoCV'],'cwd':process['cwd'](),'env':Object[_0x4b11d1(0x1b1)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x4b11d1(0x198)](_0x46d0cc),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x3451ca['config'][_0x4b11d1(0x1e8)][_0x4b11d1(0x1dd)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x3451ca[_0x4b11d1(0x1ab)]['testContextOptions'][_0x4b11d1(0x1ba)],'BROWSERSTACK_LOG_LEVEL':_0x3451ca[_0x4b11d1(0x1ab)][_0x4b11d1(0x1cf)]})}),_0x33b9e0=()=>{const _0x42e2d5=_0x4b11d1;try{const _0x3a54d6=path['join'](helper[_0x42e2d5(0x186)](),_0x24a90f['VMuJc'],_0x24a90f[_0x42e2d5(0x1e6)]);if(fs[_0x42e2d5(0x1e9)](_0x3a54d6)){let _0x1794fc=fs['readFileSync'](_0x3a54d6);_0x1794fc=JSON[_0x42e2d5(0x1f8)](_0x1794fc),_0x3451ca[_0x42e2d5(0x1ff)]=_0x1794fc,fs[_0x42e2d5(0x1de)](_0x3a54d6);}}catch(_0xcaa53a){logger[_0x42e2d5(0x200)](_0x24a90f[_0x42e2d5(0x1f7)](_0x24a90f['LgqGO'],_0xcaa53a));}};_0x3026df['on'](_0x24a90f[_0x4b11d1(0x192)],async _0x1d3d86=>{const _0x4b03a=_0x4b11d1;try{const _0x15b5d9=_0x24a90f[_0x4b03a(0x1c4)][_0x4b03a(0x221)]('|');let _0x3e0074=0x0;while(!![]){switch(_0x15b5d9[_0x3e0074++]){case'0':await TestHubHandler[_0x4b03a(0x1cb)]();continue;case'1':fs[_0x4b03a(0x1de)](_0x500f5a);continue;case'2':await utilities[_0x4b03a(0x1a7)](_0x3451ca);continue;case'3':logger[_0x4b03a(0x1ef)]('Deleting\x20'+_0x173509);continue;case'4':fs[_0x4b03a(0x1de)](_0x173509);continue;case'5':_0x24a90f['XFskQ'](_0x33b9e0);continue;case'6':logger['debug'](_0x4b03a(0x1dc)+_0x500f5a);continue;case'7':logger[_0x4b03a(0x200)](_0x4b03a(0x216)+_0x1d3d86);continue;case'8':process['exitCode']=_0x1d3d86;continue;}break;}}catch(_0x412ed8){logger[_0x4b03a(0x200)](_0x24a90f[_0x4b03a(0x1d4)](_0x24a90f[_0x4b03a(0x1fa)],_0x412ed8));}});}module[a35_0x5becb3(0x183)]=run;function a35_0x4811(){const _0x25dc19=['eiFrV','startsWith','Psogv','VMuJc','Playwright\x20process\x20exited\x20with\x20code\x20','ZCxcR','../../helpers/testhub/testhubHandler','testObservability','36yUBGYu','./reporter/pwUtils','playwright','../../helpers/BrowserStackSetup','VAkdo','JcRFd','isTypescriptProject','split','exports','error','--grep','homedir','dirname','browserstackSetupConfig.json','pw_result.json','BROWSERSTACK_RERUN','serializeToYamlString','winstonLogger','resolve','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','hkVRw','ytTrz','EflGX','KSRCN','nMuLS','PLAYWRIGHT','3KniQER','../../helpers/helper','StXEx','getConfigPath','getProxyUrl','../../helpers/test-observability/error-handler','map','16440kECBIl','196iPKmva','trim','BROWSERSTACK_TEST_ACCESSIBILITY_YML','wtdgF','Updated\x20config\x20file\x20name\x20to\x20-\x20','hgGyu','null','filter','util','17664HaAHkm','finalExecution','1169gphYWu','nestedKeyValue','../../helpers/test-observability/utils','config','BROWSERSTACK_RERUN_TESTS','playwright-browserstack-sdk.config.cjs','test','playwright-browserstack-sdk.config.js','uygZz','assign','--config','argv','erVbm','stringify','../../helpers/test-observability/constants','inherit','CVKFL','../../helpers/accessibility-automation/helper','skipSessionName','2077270CryVVR','../../helpers/logger','requirePWModule','platform','725510YKaBiy','tTeuh','false','zgIqc','VHTBY','NgMSk','uuCVr','markSDKSetupComplete','Error\x20in\x20closing\x20playwright','XXVfT','splice','ayHYK','stop','apply','1089442dEpjNa','join','logLevel','slice','win32','env','rKgHj','khpsA','.browserstack','mFuAi','INgid','Error\x20in\x20deleting\x20playwright\x20results','isTrue','has','vnHbe','Deleting\x20','skipSessionStatus','unlinkSync','107845MOyyVn','JGaZt','HSQOR','../utils/constants','isFalse','clearTempPWConfig','cliConfig','YlxNz','PACKAGE_TYPE','testContextOptions','existsSync','KqKie','jVOSM','cwd','BROWSERSTACK_AUTOMATION','5|0|2|8|7|3|4|6|1','info','MODULE','BROWSERSTACK_TEST_OBSERVABILITY','accessibilityOptions','BrowserStack\x20config\x20file\x20not\x20found.','BROWSERSTACK_SETUP_CONFIG_PATH','../../helpers/testhub/utils','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','SVSzY','parse','--config=','QWhrg','10646592pWJlzy','oGGzK','isUndefined','QTFSe','errorMessage','debug','--disable-browserstack-automation','includes','writeFileSync','initialize','--disable-test-observability','length','../../helpers/utilities','TfTYr','ftYQi','iuQrK','accessibility','npx','path','launchBuild','YkJaw','resolvedConfigFile','2763CFqtxE'];a35_0x4811=function(){return _0x25dc19;};return a35_0x4811();}
|
|
2
|
+
'use strict';const a35_0x41c9fc=a35_0x29b5;(function(_0x10b102,_0xcb11b7){const _0x5e0b6f=a35_0x29b5,_0x58a226=_0x10b102();while(!![]){try{const _0x3b4eb3=parseInt(_0x5e0b6f(0x150))/0x1+-parseInt(_0x5e0b6f(0x164))/0x2+parseInt(_0x5e0b6f(0x1cb))/0x3*(-parseInt(_0x5e0b6f(0x168))/0x4)+parseInt(_0x5e0b6f(0x17c))/0x5+-parseInt(_0x5e0b6f(0x1aa))/0x6*(parseInt(_0x5e0b6f(0x188))/0x7)+parseInt(_0x5e0b6f(0x158))/0x8*(parseInt(_0x5e0b6f(0x1b7))/0x9)+-parseInt(_0x5e0b6f(0x1a8))/0xa;if(_0x3b4eb3===_0xcb11b7)break;else _0x58a226['push'](_0x58a226['shift']());}catch(_0x3f662a){_0x58a226['push'](_0x58a226['shift']());}}}(a35_0xef87,0xb6aea));function a35_0xef87(){const _0x4b7921=['Error\x20in\x20closing\x20playwright','pw_result.json','xiieA','getProxyUrl','1288393AyASSw','fsevf','getPackageType','../../helpers/helper','filter','accessibility','isTypescriptProject','close','6933464YjZIiZ','split','UYYuE','win32','path','stringify','dqpbM','KTDSd','Updated\x20config\x20file\x20name\x20to\x20-\x20','BROWSERSTACK_TEST_ACCESSIBILITY_YML','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','existsSync','1714626PdPjJl','assign','BROWSERSTACK_AUTOMATION','8|3|6|7|1|0|2|4|5','61616AtjHZT','--config','isTrue','xHrVF','nestedKeyValue','.browserstack','logLevel','notOy','../../helpers/logger','join','parse','VsgSe','./reporter/pwUtils','--grep','EiQKu','homedir','LHJky','browserstackSetupConfig.json','winstonLogger','mySAF','110375iPkfUa','bseyu','../../helpers/testhub/utils','lUIzy','--disable-browserstack-automation','twtff','cwd','true','Playwright\x20process\x20exited\x20with\x20code\x20','../../helpers/utilities','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','test','7omFzrG','filterBrowserstackConfig','tgvzY','../../helpers/test-observability/constants','suRaV','../../helpers/accessibility-automation/helper','finalExecution','skipSessionStatus','playwright','bfppU','BROWSERSTACK_SETUP_CONFIG_PATH','\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();','./accessibility-helper','Error\x20in\x20getting\x20funnel\x20data\x20results','BROWSERSTACK_TEST_OBSERVABILITY','Iynew','get','wczuO','inherit','zszry','exports','BROWSERSTACK_RERUN_TESTS','initialize','Caijx','accessibilityOptions','TjzjH','USER_CONFIG_DETAILS_PATH','splice','getConfigPath','isUndefined','concat','slice','479730GEbYZE','MODULE','2402202ofPzgm','isFalse','QAvKk','trim','map','exitCode','false','debug','push','launchBuild','has','GWyHP','pIZpV','9lZJfwJ','requirePWModule','arfhx','Bivxi','eHNIA','includes','testContextOptions','findIndex','BrowserStack\x20config\x20file\x20not\x20found.','indexOf','Error\x20in\x20deleting\x20playwright\x20results','unlinkSync','writeFileSync','--config=','Deleting\x20','PLAYWRIGHT','skipSessionName','BUcVh','dirname','errorMessage','24esbELa','testObservability','Esach','hppYo','lVBbD','env','nIsWw','length','../../helpers/testhub/testhubHandler','../../helpers/test-observability/utils','cliConfig','config','util','PACKAGE_TYPE','--disable-test-observability','UjbUX','BROWSERSTACK_RERUN','wbOfP','info','BROWSERSTACK_PW_CONFIG_DIR','yyMWV','taEGf','Mhzyf','argv','npx','xGfbe','JkToj','error','UxHud','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','startsWith'];a35_0xef87=function(){return _0x4b7921;};return a35_0xef87();}function a35_0x29b5(_0x4fe7b7,_0x482a9b){const _0xef87bf=a35_0xef87();return a35_0x29b5=function(_0x29b5de,_0x3c0963){_0x29b5de=_0x29b5de-0x13f;let _0x5b0bc0=_0xef87bf[_0x29b5de];return _0x5b0bc0;},a35_0x29b5(_0x4fe7b7,_0x482a9b);}const fs=require('fs'),path=require(a35_0x41c9fc(0x15c)),{spawn}=require('child_process'),{format}=require(a35_0x41c9fc(0x1d7)),logger=require(a35_0x41c9fc(0x170))[a35_0x41c9fc(0x17a)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0x41c9fc(0x153)),utilities=require(a35_0x41c9fc(0x185)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0x41c9fc(0x18b)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x41c9fc(0x174)),{CrashReporter}=require('../../helpers/test-observability/error-handler'),{getFrameworkVersion}=require(a35_0x41c9fc(0x1d4)),{checkAccessibilityPlatformConfig}=require(a35_0x41c9fc(0x18d)),{setAccessibilityCapabilities}=require(a35_0x41c9fc(0x194)),TestHubHandler=require(a35_0x41c9fc(0x1d3)),{shouldProcessEventForTesthub}=require(a35_0x41c9fc(0x17e)),getUserPlaywrightConfig=async(_0x50074a,_0x29eaa1)=>{const _0x2b16ae=a35_0x41c9fc,_0x12f0b4={'lUIzy':function(_0x4b18a3){return _0x4b18a3();},'UxHud':function(_0x5196a3,_0x2ee722){return _0x5196a3(_0x2ee722);},'KTDSd':function(_0x5d1726,_0x5db78b){return _0x5d1726(_0x5db78b);},'TFUEx':'resolvedConfigFile','jmpkq':_0x2b16ae(0x1c4)},_0x1125d7=!helper[_0x2b16ae(0x1a5)](_0x50074a[_0x2b16ae(0x1d6)]),_0x572cce=_0x1125d7?path['resolve'](process[_0x2b16ae(0x182)](),_0x50074a['config']):process[_0x2b16ae(0x182)](),{resolveConfigFile:_0x4c22c8,resolveConfigLocation:_0x1862e5}=helper[_0x2b16ae(0x1b8)]['apply'](null,_0x12f0b4[_0x2b16ae(0x17f)](getConfigLoaderPath)),_0x3f16e6=_0x4c22c8?_0x12f0b4[_0x2b16ae(0x149)](_0x4c22c8,_0x572cce):helper[_0x2b16ae(0x16c)](_0x12f0b4[_0x2b16ae(0x15f)](_0x1862e5,_0x572cce),[_0x12f0b4['TFUEx']]),_0x397a30={};if(_0x1125d7){const _0x282967=_0x29eaa1[_0x2b16ae(0x1be)](_0x11a4f4=>_0x11a4f4===_0x2b16ae(0x169)||_0x11a4f4==='-c'||_0x11a4f4[_0x2b16ae(0x14b)](_0x2b16ae(0x1c4)));_0x29eaa1[_0x2b16ae(0x1a3)](_0x282967,_0x29eaa1[_0x282967][_0x2b16ae(0x14b)](_0x12f0b4['jmpkq'])?0x1:0x2);}const _0x156deb={};return _0x156deb[_0x2b16ae(0x15c)]=_0x3f16e6,_0x156deb['config']=_0x397a30,_0x156deb;},handleO11yRerun=_0x3c7c3c=>{const _0x54f4d0=a35_0x41c9fc,_0x449a32={};_0x449a32['suRaV']=function(_0x34111e,_0x2d779e){return _0x34111e!==_0x2d779e;},_0x449a32[_0x54f4d0(0x14e)]='null',_0x449a32[_0x54f4d0(0x178)]=_0x54f4d0(0x175);const _0x1315b0=_0x449a32,_0xb6fb55=helper[_0x54f4d0(0x16a)](process['env'][_0x54f4d0(0x1db)]);if(_0xb6fb55){const _0xb5e215=process[_0x54f4d0(0x1d0)][_0x54f4d0(0x19d)],_0x168942=[];if(_0x1315b0[_0x54f4d0(0x18c)](_0xb5e215,_0x1315b0[_0x54f4d0(0x14e)])&&!helper[_0x54f4d0(0x1a5)](_0xb5e215)){_0xb5e215[_0x54f4d0(0x159)](',')[_0x54f4d0(0x1ae)](_0xee9799=>{const _0x1065fc=_0x54f4d0;_0x168942[_0x1065fc(0x1b2)]('('+_0xee9799[_0x1065fc(0x1ad)]()+')');});const _0x2202be='^'+_0x168942[_0x54f4d0(0x171)]('|')+'$';_0x3c7c3c[_0x54f4d0(0x1b2)](_0x1315b0[_0x54f4d0(0x178)],_0x2202be);}}},spawnOriginalProcess=_0x293787=>{const _0xa8419=a35_0x41c9fc,_0x22a188={'mySAF':function(_0x349bd7,_0x16e5be,_0x356ddb,_0x51f217){return _0x349bd7(_0x16e5be,_0x356ddb,_0x51f217);},'Caijx':_0xa8419(0x145),'zszry':_0xa8419(0x190),'NsFFH':function(_0x191e23,_0x4eb20f){return _0x191e23===_0x4eb20f;},'zpTQh':_0xa8419(0x15b),'TjzjH':_0xa8419(0x19a)};_0x22a188[_0xa8419(0x17b)](spawn,_0x22a188[_0xa8419(0x19f)],[_0x22a188[_0xa8419(0x19b)],..._0x293787[_0xa8419(0x1a7)](0x1)],{'shell':_0x22a188['NsFFH'](process['platform'],_0x22a188['zpTQh']),'stdio':_0x22a188[_0xa8419(0x1a1)],'cwd':process[_0xa8419(0x182)]()});},isTestCommand=(_0x2ada73,_0x5bdbbb)=>{const _0xfae5d6=a35_0x41c9fc,_0x9a9d4a={};_0x9a9d4a[_0xfae5d6(0x173)]=function(_0x27b32a,_0x4beb9f){return _0x27b32a>_0x4beb9f;},_0x9a9d4a[_0xfae5d6(0x1dc)]=function(_0x485e95,_0x10374e){return _0x485e95===_0x10374e;},_0x9a9d4a[_0xfae5d6(0x1d1)]=_0xfae5d6(0x187);const _0x4396da=_0x9a9d4a;if(_0x4396da['VsgSe'](_0x5bdbbb[_0xfae5d6(0x1d2)],0x1)&&_0x4396da['wbOfP'](_0x5bdbbb[0x1],_0x4396da[_0xfae5d6(0x1d1)]))return!![];return![];};async function run(_0x1914a0,_0x549907){const _0x2e9283=a35_0x41c9fc,_0x2d12d3={'Mhzyf':_0x2e9283(0x16d),'pIZpV':_0x2e9283(0x14d),'zFWeQ':function(_0x58a6ed,_0x4ebf40){return _0x58a6ed+_0x4ebf40;},'xHrVF':_0x2e9283(0x195),'wczuO':_0x2e9283(0x167),'UYYuE':function(_0x5ed325){return _0x5ed325();},'fsevf':_0x2e9283(0x14c),'JkToj':_0x2e9283(0x180),'xGfbe':_0x2e9283(0x1b0),'eHNIA':'--disable-test-observability','Iynew':function(_0x3c0c37,_0x4d0c74){return _0x3c0c37>=_0x4d0c74;},'dqpbM':function(_0x57d11c,_0x45b4f5){return _0x57d11c+_0x45b4f5;},'lVBbD':_0x2e9283(0x1c1),'JRIQu':function(_0x22a7ff,_0x220258,_0x253048){return _0x22a7ff(_0x220258,_0x253048);},'bfppU':function(_0xe2ce69,_0x1ae798){return _0xe2ce69(_0x1ae798);},'Jruuf':_0x2e9283(0x1bf),'Bivxi':'automation','yyMWV':function(_0x1dd71d,_0x2e224d){return _0x1dd71d!=_0x2e224d;},'arfhx':function(_0x97347c,_0x10a7eb,_0x40b35b){return _0x97347c(_0x10a7eb,_0x40b35b);},'GWyHP':function(_0x227334,_0xc85227){return _0x227334(_0xc85227);},'tgvzY':function(_0x27141f,_0x243eaf){return _0x27141f===_0x243eaf;},'taEGf':_0x2e9283(0x183),'QAvKk':_0x2e9283(0x179),'zNaaO':'playwright-browserstack-sdk.config.cjs','DggIu':'playwright-browserstack-sdk.config.js','VxCpe':function(_0xcd9014,_0x5a687f){return _0xcd9014-_0x5a687f;},'hppYo':function(_0x53e287,_0x4a0965){return _0x53e287+_0x4a0965;},'WHtFN':_0x2e9283(0x160),'emqwS':function(_0x258b13,_0xbebd86){return _0x258b13>_0xbebd86;},'vKaUX':function(_0x3ffd74,_0x3aa110){return _0x3ffd74+_0x3aa110;},'Esach':function(_0x20b4fd,_0x594f3a,_0x4d9768,_0x595ab4){return _0x20b4fd(_0x594f3a,_0x4d9768,_0x595ab4);},'notOy':_0x2e9283(0x145),'bseyu':_0x2e9283(0x190),'zKQYH':_0x2e9283(0x187),'BUcVh':_0x2e9283(0x169),'UjbUX':'win32','EiQKu':_0x2e9283(0x19a),'twtff':_0x2e9283(0x157)};!helper[_0x2e9283(0x1ab)](process[_0x2e9283(0x1d0)][_0x2e9283(0x166)])&&(process['env']['BROWSERSTACK_AUTOMATION']=!![]);process[_0x2e9283(0x144)][_0x2e9283(0x1bc)](_0x2d12d3[_0x2e9283(0x147)])&&(process[_0x2e9283(0x1d0)][_0x2e9283(0x166)]=_0x2d12d3[_0x2e9283(0x146)],_0x549907=_0x549907[_0x2e9283(0x154)](_0x35b09b=>_0x35b09b!=='--disable-browserstack-automation'));const _0x57dcd4=_0x549907[_0x2e9283(0x1c0)](_0x2d12d3[_0x2e9283(0x1bb)]);_0x2d12d3[_0x2e9283(0x197)](_0x57dcd4,0x0)&&(process[_0x2e9283(0x1d0)][_0x2e9283(0x196)]=_0x2d12d3['xGfbe'],_0x549907=_0x549907[_0x2e9283(0x154)](_0xcd2bc4=>_0xcd2bc4!==_0x2e9283(0x1d9)));try{const _0x3b9466=path[_0x2e9283(0x171)](helper[_0x2e9283(0x177)](),_0x2d12d3['Mhzyf'],_0x2d12d3[_0x2e9283(0x1b6)]);fs[_0x2e9283(0x163)](_0x3b9466)&&fs[_0x2e9283(0x1c2)](_0x3b9466);}catch(_0x442f9a){logger[_0x2e9283(0x1b1)](_0x2d12d3[_0x2e9283(0x15e)](_0x2d12d3[_0x2e9283(0x1cf)],_0x442f9a));}if(!_0x2d12d3['JRIQu'](isTestCommand,_0x1914a0,_0x549907)){_0x2d12d3[_0x2e9283(0x191)](spawnOriginalProcess,_0x549907);return;}const _0x1479da=new BrowserStackSetup(_0x1914a0,FRAMEWORKS[_0x2e9283(0x1c6)]);if(!_0x1479da[_0x2e9283(0x1d6)]){logger[_0x2e9283(0x148)](_0x2d12d3['Jruuf']);return;}await _0x1479da[_0x2e9283(0x19e)]();!helper[_0x2e9283(0x1a5)](_0x1479da[_0x2e9283(0x1d5)])&&_0x1479da[_0x2e9283(0x1d5)][_0x2e9283(0x1b4)](_0x2d12d3[_0x2e9283(0x1ba)])&&(process[_0x2e9283(0x1d0)][_0x2e9283(0x166)]=_0x1479da[_0x2e9283(0x1d5)][_0x2e9283(0x198)](_0x2d12d3[_0x2e9283(0x1ba)])||!![]);_0x2d12d3[_0x2e9283(0x141)](_0x1479da['config'][_0x2e9283(0x1cc)],null)&&!helper[_0x2e9283(0x16a)](process['env'][_0x2e9283(0x196)])&&(process[_0x2e9283(0x1d0)][_0x2e9283(0x196)]=process[_0x2e9283(0x1d0)][_0x2e9283(0x196)]||_0x1479da[_0x2e9283(0x1d6)][_0x2e9283(0x1cc)]);const _0x51a112=!helper['isFalse'](process[_0x2e9283(0x1d0)]['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x3d5925=![];_0x1479da[_0x2e9283(0x1d6)][_0x2e9283(0x155)]&&(_0x3d5925=!![],process[_0x2e9283(0x1d0)][_0x2e9283(0x161)]=_0x1479da['config'][_0x2e9283(0x155)]);_0x1479da[_0x2e9283(0x1d6)][_0x2e9283(0x1a0)]&&(process['env'][_0x2e9283(0x162)]=JSON[_0x2e9283(0x15d)](_0x1479da[_0x2e9283(0x1d6)]['accessibilityOptions']));const _0x26aaaf=_0x549907[_0x2e9283(0x1a6)](),_0x1805eb=await _0x2d12d3[_0x2e9283(0x1b9)](getUserPlaywrightConfig,_0x1914a0,_0x549907);if(helper['isUndefined'](_0x1805eb)){_0x2d12d3[_0x2e9283(0x1b5)](spawnOriginalProcess,_0x26aaaf);return;}const _0x290191=_0x1805eb[_0x2e9283(0x15c)]?path[_0x2e9283(0x1c9)](_0x1805eb[_0x2e9283(0x15c)]):process[_0x2e9283(0x182)]();process[_0x2e9283(0x1d0)][_0x2e9283(0x140)]=_0x290191,await TestHubHandler[_0x2e9283(0x1b3)](FRAMEWORKS['PLAYWRIGHT'],_0x1479da);_0x51a112&&_0x2d12d3[_0x2e9283(0x1b5)](handleO11yRerun,_0x549907);let _0xbc10c2=_0x2d12d3[_0x2e9283(0x18a)](process[_0x2e9283(0x1d0)][_0x2e9283(0x161)],_0x2d12d3[_0x2e9283(0x142)]);_0xbc10c2=_0xbc10c2||_0x2d12d3[_0x2e9283(0x1b5)](checkAccessibilityPlatformConfig,_0x1479da[_0x2e9283(0x1d6)]),process['env'][_0x2e9283(0x161)]=_0xbc10c2;_0xbc10c2&&_0x2d12d3[_0x2e9283(0x1b5)](setAccessibilityCapabilities,_0x1479da[_0x2e9283(0x1d6)]);const _0x48a5e1=path[_0x2e9283(0x171)](_0x1805eb[_0x2e9283(0x15c)]?path[_0x2e9283(0x1c9)](_0x1805eb[_0x2e9283(0x15c)]):process[_0x2e9283(0x182)](),_0x2d12d3[_0x2e9283(0x1ac)]);fs[_0x2e9283(0x1c3)](_0x48a5e1,helper['serializeToYamlString'](_0x1479da[_0x2e9283(0x1d6)])),process[_0x2e9283(0x1d0)][_0x2e9283(0x192)]=_0x48a5e1,helper['clearTempPWConfig']();let _0xf7b8b4='';_0x2d12d3['tgvzY'](helper[_0x2e9283(0x152)](),constants[_0x2e9283(0x1d8)][_0x2e9283(0x1a9)])?_0xf7b8b4=_0x2d12d3['zNaaO']:_0xf7b8b4=_0x2d12d3['DggIu'];let _0x7fb88d='';if(helper[_0x2e9283(0x156)](_0x1805eb[_0x2e9283(0x15c)])){_0x7fb88d='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x31871e=_0xf7b8b4[_0x2e9283(0x159)]('.');_0x31871e[_0x2d12d3['VxCpe'](_0x31871e[_0x2e9283(0x1d2)],0x1)]='ts',_0xf7b8b4=_0x31871e['join']('.'),logger[_0x2e9283(0x1b1)](_0x2d12d3[_0x2e9283(0x1ce)](_0x2d12d3['WHtFN'],_0xf7b8b4));}else _0x7fb88d=_0x2e9283(0x186);const _0x1e91df=path[_0x2e9283(0x171)](_0x1805eb[_0x2e9283(0x15c)]?path[_0x2e9283(0x1c9)](_0x1805eb['path']):process[_0x2e9283(0x182)](),_0xf7b8b4);let _0x2f9760=_0x1805eb['path']?_0x1805eb['path']:'';_0x2f9760=_0x2d12d3['emqwS'](_0x2f9760[_0x2e9283(0x1d2)],0x0)?path['resolve'](_0x2f9760):'',process[_0x2e9283(0x1d0)][_0x2e9283(0x1a2)]=_0x2f9760;const _0x3c06e3=helper[_0x2e9283(0x14f)](_0x1479da[_0x2e9283(0x1d6)]);_0x3c06e3&&(_0x7fb88d=_0x2d12d3['vKaUX'](_0x2e9283(0x14a)+_0x3c06e3+_0x2e9283(0x193),_0x7fb88d));helper[_0x2e9283(0x189)]({},_0x549907),fs[_0x2e9283(0x1c3)](_0x1e91df,_0x7fb88d),helper['markSDKSetupComplete']();const _0x38a86b=_0x2d12d3[_0x2e9283(0x1cd)](spawn,_0x2d12d3[_0x2e9283(0x16f)],[_0x2d12d3[_0x2e9283(0x17d)],_0x2d12d3['zKQYH'],_0x2d12d3[_0x2e9283(0x1c8)],_0x1e91df,..._0x549907[_0x2e9283(0x1a7)](0x2)],{'shell':_0x2d12d3[_0x2e9283(0x18a)](process['platform'],_0x2d12d3[_0x2e9283(0x1da)]),'stdio':_0x2d12d3[_0x2e9283(0x176)],'cwd':process['cwd'](),'env':Object[_0x2e9283(0x165)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2e9283(0x1a4)](_0x1914a0),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1479da[_0x2e9283(0x1d6)][_0x2e9283(0x1bd)][_0x2e9283(0x18f)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1479da[_0x2e9283(0x1d6)]['testContextOptions'][_0x2e9283(0x1c7)],'BROWSERSTACK_LOG_LEVEL':_0x1479da[_0x2e9283(0x1d6)][_0x2e9283(0x16e)]})}),_0x46396e=()=>{const _0x5d962b=_0x2e9283;try{const _0x4c8896=path[_0x5d962b(0x171)](helper[_0x5d962b(0x177)](),_0x2d12d3[_0x5d962b(0x143)],_0x2d12d3[_0x5d962b(0x1b6)]);if(fs[_0x5d962b(0x163)](_0x4c8896)){let _0x3cc247=fs['readFileSync'](_0x4c8896);_0x3cc247=JSON[_0x5d962b(0x172)](_0x3cc247),_0x1479da[_0x5d962b(0x1ca)]=_0x3cc247,fs['unlinkSync'](_0x4c8896);}}catch(_0x4c665f){logger['debug'](_0x2d12d3['zFWeQ'](_0x2d12d3[_0x5d962b(0x16b)],_0x4c665f));}};_0x38a86b['on'](_0x2d12d3[_0x2e9283(0x181)],async _0x51283f=>{const _0x113b89=_0x2e9283;try{const _0xc24a94=_0x2d12d3[_0x113b89(0x199)][_0x113b89(0x159)]('|');let _0x5337b1=0x0;while(!![]){switch(_0xc24a94[_0x5337b1++]){case'0':logger[_0x113b89(0x13f)](_0x113b89(0x1c5)+_0x1e91df);continue;case'1':logger['debug'](_0x113b89(0x184)+_0x51283f);continue;case'2':fs['unlinkSync'](_0x1e91df);continue;case'3':await TestHubHandler['stop']();continue;case'4':logger[_0x113b89(0x1b1)]('Deleting\x20'+_0x48a5e1);continue;case'5':fs[_0x113b89(0x1c2)](_0x48a5e1);continue;case'6':await utilities[_0x113b89(0x18e)](_0x1479da);continue;case'7':process[_0x113b89(0x1af)]=_0x51283f;continue;case'8':_0x2d12d3[_0x113b89(0x15a)](_0x46396e);continue;}break;}}catch(_0x3c08f2){logger[_0x113b89(0x1b1)](_0x2d12d3['zFWeQ'](_0x2d12d3[_0x113b89(0x151)],_0x3c08f2));}});}module[a35_0x41c9fc(0x19c)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x5d552b=a36_0x4418;function a36_0x41f1(){const _0x434e7f=['env','68ayQMrD','NCqDe','KtsPT','9228FUZfoA','pVWzh','fork','884041LbQhEH','apply','resolve','4949MkgMRX','winstonLogger','1.33.0','function','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','PLAYWRIGHT','format','error','lMwoC','../../helpers/logger','iDwNc','vWrZW','util','Running\x20existing\x20global\x20setup','debug','33401790XDVVzx','945122fYUlAp','dUkKL','./reporter/pwUtils','438610RbasqJ','qlkLS','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','compareVersions','child_process','fpbIA','\x20is\x20not\x20found','./patches','PmaHK','1791495UXBbUz','isHandlePWErrorSet','../../helpers/test-observability/constants','LLppE','../../helpers/helper','toString','5449088zafxbg'];a36_0x41f1=function(){return _0x434e7f;};return a36_0x41f1();}(function(_0x25dba7,_0x92cf74){const _0x4a1914=a36_0x4418,_0x450f03=_0x25dba7();while(!![]){try{const _0x2b7cb8=-parseInt(_0x4a1914(0x161))/0x1+parseInt(_0x4a1914(0x174))/0x2+-parseInt(_0x4a1914(0x180))/0x3+-parseInt(_0x4a1914(0x15b))/0x4*(parseInt(_0x4a1914(0x177))/0x5)+-parseInt(_0x4a1914(0x15e))/0x6*(parseInt(_0x4a1914(0x164))/0x7)+parseInt(_0x4a1914(0x159))/0x8+parseInt(_0x4a1914(0x173))/0x9;if(_0x2b7cb8===_0x92cf74)break;else _0x450f03['push'](_0x450f03['shift']());}catch(_0x111669){_0x450f03['push'](_0x450f03['shift']());}}}(a36_0x41f1,0xc4929));const util=require(a36_0x5d552b(0x170)),child_process=require(a36_0x5d552b(0x17b)),{FRAMEWORKS}=require(a36_0x5d552b(0x155)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a36_0x5d552b(0x157)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x5d552b(0x176)),{mockIsWorkerRedundant}=require(a36_0x5d552b(0x17e)),logger=require(a36_0x5d552b(0x16d))[a36_0x5d552b(0x165)];function a36_0x4418(_0x288c2a,_0x38f041){const _0x41f117=a36_0x41f1();return a36_0x4418=function(_0x441892,_0x345072){_0x441892=_0x441892-0x155;let _0x4712e2=_0x41f117[_0x441892];return _0x4712e2;},a36_0x4418(_0x288c2a,_0x38f041);}module['exports']=async function(_0x16794c){const _0x58cda3=a36_0x5d552b,_0x44bf63={'iDwNc':function(_0x37b4af,_0x12292e){return _0x37b4af(_0x12292e);},'HGjeO':function(_0x2d5abf){return _0x2d5abf();},'gpjfI':'./mock-process.js','lMwoC':function(_0x406769){return _0x406769();},'LLppE':function(_0x1252cc){return _0x1252cc();},'NCqDe':function(_0xd9f6c7,_0xf54812){return _0xd9f6c7(_0xf54812);},'KtsPT':_0x58cda3(0x171),'oiMrz':function(_0xfa67a5){return _0xfa67a5();},'qlkLS':function(_0x47ccb2,_0x555500){return _0x47ccb2>=_0x555500;},'PmaHK':_0x58cda3(0x166),'dUkKL':function(_0x323aed,_0x5067ea,_0x1a21c4){return _0x323aed(_0x5067ea,_0x1a21c4);},'pVWzh':function(_0x181093,_0x4d97dc){return _0x181093!==_0x4d97dc;},'vWrZW':_0x58cda3(0x167),'fpbIA':'Not\x20able\x20to\x20import\x20globalSetup'},_0x6d44ad=child_process[_0x58cda3(0x160)];if(helper[_0x58cda3(0x181)]())try{_0x44bf63[_0x58cda3(0x156)](mockIsWorkerRedundant);}catch(_0x13b097){logger[_0x58cda3(0x172)](_0x58cda3(0x168)+util[_0x58cda3(0x16a)](_0x13b097));}child_process[_0x58cda3(0x160)]=function(){const _0x345e58=_0x58cda3;return _0x44bf63[_0x345e58(0x16e)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0]['includes'](_0x44bf63['HGjeO'](getForkProcessPath))?arguments[0x0]=require[_0x345e58(0x163)](_0x44bf63['gpjfI']):logger[_0x345e58(0x16b)]('Path\x20'+_0x44bf63[_0x345e58(0x16c)](getForkProcessPath)+_0x345e58(0x17d)),_0x6d44ad[_0x345e58(0x162)](null,arguments);};if(process[_0x58cda3(0x15a)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x44bf63[_0x58cda3(0x15c)](debug,_0x44bf63[_0x58cda3(0x15d)]);try{const {loadGlobalHook:_0x2d528a}=helper['requirePWModule'][_0x58cda3(0x162)](null,_0x44bf63['oiMrz'](getLoadUtilsPath)),_0x39b419=_0x44bf63[_0x58cda3(0x15c)](getFrameworkVersion,FRAMEWORKS[_0x58cda3(0x169)]);let _0x1d0e50=_0x16794c;if(_0x44bf63[_0x58cda3(0x178)](helper[_0x58cda3(0x17a)](_0x39b419,_0x44bf63[_0x58cda3(0x17f)]),0x0)){const _0x2f647b={};_0x2f647b['config']=_0x16794c,_0x1d0e50=_0x2f647b;}const _0x161aac=await _0x44bf63[_0x58cda3(0x175)](_0x2d528a,_0x1d0e50,process['env'][_0x58cda3(0x179)]);if(_0x44bf63[_0x58cda3(0x15f)](typeof _0x161aac,_0x44bf63[_0x58cda3(0x16f)]))throw new Error(_0x44bf63[_0x58cda3(0x17c)]);return _0x161aac[_0x58cda3(0x162)](null,arguments);}catch(_0x2520cc){_0x44bf63['iDwNc'](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x2520cc[_0x58cda3(0x158)]());}}};
|