browserstack-node-sdk 1.34.29 → 1.34.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a29_0x24cc(_0x1e8a15,_0x9da51c){const _0x3382fb=a29_0x3382();return a29_0x24cc=function(_0x24cc4d,_0x5fa226){_0x24cc4d=_0x24cc4d-0x150;let _0x5978ae=_0x3382fb[_0x24cc4d];return _0x5978ae;},a29_0x24cc(_0x1e8a15,_0x9da51c);}const a29_0x214f7d=a29_0x24cc;(function(_0x3886ab,_0x32df3e){const _0x5df016=a29_0x24cc,_0x27666c=_0x3886ab();while(!![]){try{const _0x45462d=-parseInt(_0x5df016(0x1c5))/0x1*(-parseInt(_0x5df016(0x185))/0x2)+parseInt(_0x5df016(0x15c))/0x3+parseInt(_0x5df016(0x183))/0x4*(parseInt(_0x5df016(0x193))/0x5)+parseInt(_0x5df016(0x16c))/0x6*(parseInt(_0x5df016(0x187))/0x7)+parseInt(_0x5df016(0x169))/0x8+parseInt(_0x5df016(0x191))/0x9+parseInt(_0x5df016(0x17f))/0xa*(-parseInt(_0x5df016(0x19f))/0xb);if(_0x45462d===_0x32df3e)break;else _0x27666c['push'](_0x27666c['shift']());}catch(_0x84a329){_0x27666c['push'](_0x27666c['shift']());}}}(a29_0x3382,0xd7918));const logger=require(a29_0x214f7d(0x18f))[a29_0x214f7d(0x1bd)],helper=require('../../../helpers/helper'),constants=require(a29_0x214f7d(0x18e)),hubAllocator=require(a29_0x214f7d(0x178)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x214f7d(0x1b4)),{setAccessibilityCapabilities,setExtension}=require(a29_0x214f7d(0x161)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x214f7d(0x19b)),globals=require(a29_0x214f7d(0x188)),{overrideExecute}=require(a29_0x214f7d(0x1bc)),modify=(_0x40664f,_0x34c254=null,_0x99ff06=![])=>{const _0x1c3032=a29_0x214f7d,_0x3985f3={'sEpVL':function(_0xaa2ec1,_0x18e82c){return _0xaa2ec1!==_0x18e82c;},'lecTw':_0x1c3032(0x1ad),'nmSNK':function(_0x3ac395,_0xe505b){return _0x3ac395!==_0xe505b;},'cNAyl':function(_0x14a3d7,_0x4739d2){return _0x14a3d7+_0x4739d2;},'WhYln':function(_0x3663b3,_0x43c7f5){return _0x3663b3+_0x43c7f5;},'xVJFV':_0x1c3032(0x1c7),'zDYmg':_0x1c3032(0x17a),'oURTB':_0x1c3032(0x17c),'oxtzr':_0x1c3032(0x1d3),'FRgqB':'ms:edgeOptions','HfSjL':_0x1c3032(0x15a),'HZIHF':'moz:firefoxOptions','QgjoA':_0x1c3032(0x15b),'KCQWS':_0x1c3032(0x18a),'bwDsW':_0x1c3032(0x1b8),'uaAHt':_0x1c3032(0x180),'LCDbY':function(_0x5de896,_0x34d1a8){return _0x5de896===_0x34d1a8;},'mBlHX':_0x1c3032(0x197),'HRsDn':_0x1c3032(0x1c3),'KGWVx':_0x1c3032(0x1b5),'gBzxU':_0x1c3032(0x1be),'EOIly':function(_0x13c0fa,_0x594e41,_0x589fc1){return _0x13c0fa(_0x594e41,_0x589fc1);},'lvfpX':_0x1c3032(0x1b9),'lRshf':function(_0x2068a4,_0x3fca76){return _0x2068a4(_0x3fca76);},'tGmPN':_0x1c3032(0x1d1),'zHJWG':_0x1c3032(0x1c8),'BTLpC':function(_0x3a7cd2){return _0x3a7cd2();},'yINwW':function(_0x7d46c7,_0x414ed4){return _0x7d46c7(_0x414ed4);},'dxrub':_0x1c3032(0x186),'QqfoW':function(_0x1d1dfd,_0x3b329e){return _0x1d1dfd(_0x3b329e);},'MzCTg':function(_0x20a59d,_0x2cc09a){return _0x20a59d(_0x2cc09a);},'ZUTbX':function(_0x53b5b6,_0x525bc2,_0x2c47e5){return _0x53b5b6(_0x525bc2,_0x2c47e5);},'LeqDc':function(_0x510a85,_0x51ac68){return _0x510a85!==_0x51ac68;},'WNZCi':function(_0xc6eec,_0x42aaa7){return _0xc6eec!==_0x42aaa7;},'QIBth':_0x1c3032(0x184),'DMxLB':_0x1c3032(0x1ac)},_0xcb5f84=helper['requireHttpClient']();let _0x4b3aff;try{_0x4b3aff=helper[_0x1c3032(0x19d)](),_0x4b3aff[_0x1c3032(0x192)]&&(_0x4b3aff[_0x1c3032(0x15e)]=_0x4b3aff['originalBuilder']);}catch(_0x551866){return;}if(helper[_0x1c3032(0x18b)]()){const _0x37a720={};_0x37a720[_0x1c3032(0x171)]=_0x40664f[_0x1c3032(0x157)],helper[_0x1c3032(0x1c6)](_0x37a720,new Map(),new Map()),logger[_0x1c3032(0x1a3)](_0x3985f3[_0x1c3032(0x1ae)]),logger['debug'](_0x3985f3[_0x1c3032(0x198)]);}class _0x14a82a extends _0xcb5f84[_0x1c3032(0x196)]{['send'](_0x1920c7){const _0x5ac907=_0x1c3032;if(_0x3985f3[_0x5ac907(0x195)](_0x1920c7[_0x5ac907(0x1b1)],_0x3985f3[_0x5ac907(0x16e)])&&_0x3985f3[_0x5ac907(0x16a)](global['newHubUrl'],''))try{global[_0x5ac907(0x159)]=_0x3985f3['cNAyl'](_0x3985f3['WhYln'](_0x3985f3[_0x5ac907(0x165)],global['newHubUrl']),_0x3985f3[_0x5ac907(0x168)]),this[_0x5ac907(0x179)]=hubAllocator[_0x5ac907(0x17e)](global[_0x5ac907(0x159)]),logger[_0x5ac907(0x175)]('New\x20hub\x20url\x20set\x20to\x20'+global['newHubUrl']),global[_0x5ac907(0x159)]='';}catch(_0x2c8aa8){logger['error'](_0x2c8aa8);}return super[_0x5ac907(0x189)](_0x1920c7);}}class _0x19fae0 extends _0x4b3aff[_0x1c3032(0x15e)]{[_0x1c3032(0x19c)](){const _0x2d5ee7=_0x1c3032;return this['url_']=helper[_0x2d5ee7(0x1c1)](_0x40664f),logger[_0x2d5ee7(0x175)](_0x2d5ee7(0x15d)+this['url_']),this;}[_0x1c3032(0x19e)](_0x3da621){const _0x497d74=_0x1c3032;let _0x147ff6={};for(const _0x24bd9c in _0x3da621){switch(_0x24bd9c){case _0x3985f3[_0x497d74(0x182)]:case _0x3985f3[_0x497d74(0x1cf)]:this[_0x497d74(0x166)]&&(_0x147ff6=this[_0x497d74(0x166)]['get'](this[_0x497d74(0x166)]['CAPABILITY_KEY'])||{},this[_0x497d74(0x166)][_0x497d74(0x176)](this[_0x497d74(0x166)][_0x497d74(0x1ba)],helper[_0x497d74(0x158)](_0x147ff6,_0x3da621[_0x24bd9c])));break;case _0x3985f3[_0x497d74(0x181)]:case _0x3985f3[_0x497d74(0x1a2)]:this[_0x497d74(0x15f)]&&(_0x147ff6=this[_0x497d74(0x15f)][_0x497d74(0x16f)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x497d74(0x15f)][_0x497d74(0x176)](this[_0x497d74(0x15f)]['CAPABILITY_KEY'],helper[_0x497d74(0x158)](_0x147ff6,_0x3da621[_0x24bd9c])));break;case _0x3985f3[_0x497d74(0x1af)]:case _0x3985f3[_0x497d74(0x1cb)]:this[_0x497d74(0x150)]&&(_0x147ff6=this[_0x497d74(0x150)]['get'](this[_0x497d74(0x150)][_0x497d74(0x1ba)])||{},this[_0x497d74(0x150)][_0x497d74(0x176)](this['firefoxOptions_'][_0x497d74(0x1ba)],helper['mergeDeep'](_0x147ff6,_0x3da621[_0x24bd9c])));break;case _0x3985f3[_0x497d74(0x163)]:this[_0x497d74(0x153)]&&(_0x147ff6=this[_0x497d74(0x153)][_0x497d74(0x16f)](this['safariOptions_']['CAPABILITY_KEY'])||{},this[_0x497d74(0x153)][_0x497d74(0x176)](this[_0x497d74(0x153)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x147ff6,_0x3da621[_0x24bd9c])));break;case _0x3985f3[_0x497d74(0x1b0)]:case _0x3985f3['uaAHt']:this['ieOptions_']&&(_0x147ff6=this['ieOptions_'][_0x497d74(0x16f)](this['ieOptions_'][_0x497d74(0x1ba)])||{},this['ieOptions_']['set'](this[_0x497d74(0x1ca)][_0x497d74(0x1ba)],helper[_0x497d74(0x158)](_0x147ff6,_0x3da621[_0x24bd9c])));break;}}}[_0x1c3032(0x1ab)](){const _0x5269e8=_0x1c3032;return logger[_0x5269e8(0x175)](_0x3985f3[_0x5269e8(0x1a6)]),this['__setBrowserOptions'](_0x40664f['capability']),Object[_0x5269e8(0x1ce)](_0x40664f[_0x5269e8(0x18c)])[_0x5269e8(0x1cc)](_0x1999b9=>{const _0x35c25a=_0x5269e8,_0x1416dd=this[_0x35c25a(0x16d)]['get'](_0x1999b9);_0x3985f3[_0x35c25a(0x1a8)](typeof _0x1416dd,_0x3985f3[_0x35c25a(0x1d4)])?this[_0x35c25a(0x16d)][_0x35c25a(0x176)](_0x1999b9,helper[_0x35c25a(0x158)](_0x1416dd,_0x40664f[_0x35c25a(0x18c)][_0x1999b9])):this[_0x35c25a(0x16d)][_0x35c25a(0x176)](_0x1999b9,_0x40664f['capability'][_0x1999b9]);}),this;}[_0x1c3032(0x1c9)](){const _0x705ff2=_0x1c3032,_0x27c2c7={'pPtxm':function(_0x242611,_0xf5fc01,_0x452fac){const _0x1a57fb=a29_0x24cc;return _0x3985f3[_0x1a57fb(0x152)](_0x242611,_0xf5fc01,_0x452fac);},'AiLFU':function(_0x4ec564,_0x3d8740,_0xa62cf1){const _0x2444ef=a29_0x24cc;return _0x3985f3[_0x2444ef(0x152)](_0x4ec564,_0x3d8740,_0xa62cf1);},'ojgeg':_0x3985f3[_0x705ff2(0x155)],'rGtqO':function(_0x57862a,_0x39034a){const _0x1d5bf5=_0x705ff2;return _0x3985f3[_0x1d5bf5(0x1bb)](_0x57862a,_0x39034a);},'zsdLc':function(_0xeb775e,_0x3ac9ef,_0xa6c331){const _0x11cf56=_0x705ff2;return _0x3985f3[_0x11cf56(0x152)](_0xeb775e,_0x3ac9ef,_0xa6c331);}};if(helper[_0x705ff2(0x18b)]()){const _0x3dcebf=_0x3985f3['tGmPN'][_0x705ff2(0x160)]('|');let _0x37ee9e=0x0;while(!![]){switch(_0x3dcebf[_0x37ee9e++]){case'0':if(helper[_0x705ff2(0x17b)](_0x40664f['proxySettings'][_0x705ff2(0x199)]))this[_0x705ff2(0x1aa)]=helper[_0x705ff2(0x1a7)](_0x40664f[_0x705ff2(0x1a1)][_0x705ff2(0x199)]);else _0x40664f['proxySettings'][_0x705ff2(0x199)]&&(this[_0x705ff2(0x1d2)]=_0x40664f[_0x705ff2(0x1a1)][_0x705ff2(0x199)],logger['debug'](_0x705ff2(0x154)+this[_0x705ff2(0x1d2)]));continue;case'1':this[_0x705ff2(0x1ab)]();continue;case'2':globals[_0x705ff2(0x172)](_0x3985f3[_0x705ff2(0x1a9)])&&(!_0x3985f3['EOIly'](setExtension,this,_0x40664f)&&globals[_0x705ff2(0x19a)](_0x3985f3[_0x705ff2(0x1a9)],![]));continue;case'3':_0x3985f3[_0x705ff2(0x173)](isAccessibilityAutomationSession)&&_0x3985f3[_0x705ff2(0x164)](setAccessibilityCapabilities,_0x40664f);continue;case'4':logger[_0x705ff2(0x175)](_0x3985f3['dxrub']);continue;case'5':this[_0x705ff2(0x19c)]();continue;}break;}}const _0x1e6324=super[_0x705ff2(0x1c9)]();return _0x1e6324[_0x705ff2(0x177)]['then'](_0x2da868=>{const _0x325d92=_0x705ff2;try{const _0x34cea0=_0x2da868['caps_'][_0x325d92(0x16f)](_0x3985f3[_0x325d92(0x194)]);_0x34cea0?(logger[_0x325d92(0x175)](_0x325d92(0x1cd)+_0x34cea0),hubAllocator['updateHubUrl'](_0x34cea0),helper[_0x325d92(0x156)](_0x34cea0)):logger[_0x325d92(0x175)](_0x3985f3[_0x325d92(0x1c0)]);}catch(_0x5aafe2){logger['debug'](_0x325d92(0x1a5)+_0x5aafe2);}}),_0x1e6324['quitCount_']=0x0,_0x1e6324[_0x705ff2(0x1b6)]&&_0x1e6324['then'](_0x1c1d75=>{const _0x1e869f=_0x705ff2,_0x313f1a=_0x27c2c7[_0x1e869f(0x16b)][_0x1e869f(0x160)]('|');let _0x4c23db=0x0;while(!![]){switch(_0x313f1a[_0x4c23db++]){case'0':_0x27c2c7[_0x1e869f(0x190)](overrideTakeScreenshot,_0x1c1d75);continue;case'1':_0x1c1d75[_0x1e869f(0x1b2)]=async()=>{const _0xfb90ea=_0x1e869f;return await _0x27c2c7[_0xfb90ea(0x167)](getAccessibilityResultsSummary,_0x1c1d75,global);};continue;case'2':_0x1c1d75[_0x1e869f(0x174)]=async()=>{const _0x5652f9=_0x1e869f;return await _0x27c2c7[_0x5652f9(0x151)](getAccessibilityResults,_0x1c1d75,global);};continue;case'3':helper['overrideGet'](_0x1c1d75,_0x40664f);continue;case'4':_0x27c2c7[_0x1e869f(0x167)](overrideQuit,_0x1c1d75,_0x1e6324);continue;case'5':_0x27c2c7[_0x1e869f(0x162)](overrideExecute,_0x1c1d75,_0x40664f);continue;}break;}}),_0x1e6324['getAccessibilityResultsSummary']=async()=>{const _0x1d4d7d=_0x705ff2;return await _0x3985f3[_0x1d4d7d(0x152)](getAccessibilityResultsSummary,_0x1e6324,global);},_0x1e6324['getAccessibilityResults']=async()=>{return await _0x27c2c7['pPtxm'](getAccessibilityResults,_0x1e6324,global);},_0x3985f3['QqfoW'](overrideTakeScreenshot,_0x1e6324),_0x3985f3[_0x705ff2(0x17d)](overrideQuit,_0x1e6324),helper[_0x705ff2(0x1b7)](_0x1e6324,_0x40664f),_0x3985f3[_0x705ff2(0x1b3)](overrideExecute,_0x1e6324,_0x40664f),helper[_0x705ff2(0x18d)](global[_0x705ff2(0x1a0)])&&(global[_0x705ff2(0x1a0)]=[]),helper[_0x705ff2(0x18d)](global['__drivers'])&&(global['__drivers']=[]),global['__driversArray'][_0x705ff2(0x1bf)](_0x1e6324),global[_0x705ff2(0x1d0)]=_0x1e6324,_0x3985f3[_0x705ff2(0x1c4)](global[_0x705ff2(0x170)],undefined)&&global[_0x705ff2(0x170)][_0x705ff2(0x1bf)](_0x1e6324),_0x34c254&&helper[_0x705ff2(0x18d)](_0x34c254['global'][_0x705ff2(0x1a0)])&&(_0x34c254['global']['__driversArray']=[]),_0x34c254&&_0x3985f3[_0x705ff2(0x1a4)](_0x34c254[_0x705ff2(0x1c2)]['__drivers'],undefined)&&(_0x34c254['global'][_0x705ff2(0x170)][_0x705ff2(0x1bf)](_0x1e6324),_0x34c254['global'][_0x705ff2(0x1a0)][_0x705ff2(0x1bf)](_0x1e6324)),_0x1e6324;}}return _0x4b3aff[_0x1c3032(0x192)]=_0x4b3aff[_0x1c3032(0x15e)],_0x4b3aff[_0x1c3032(0x15e)]=_0x19fae0,_0xcb5f84[_0x1c3032(0x196)]=_0x14a82a,_0x4b3aff;};module['exports']['browserstackAgentObservability']=modify;function a29_0x3382(){const _0x12ca96=['setCapabilities','Modifying\x20webdriver\x20builder','/session','QIBth','HZIHF','bwDsW','path','getAccessibilityResultsSummary','ZUTbX','../../../helpers/patchHelpers','optimalHubUrl','then','overrideGet','se:ieOptions','4|0|3|5|1|2','CAPABILITY_KEY','lRshf','./helpers/patchHelper','winstonLogger','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','push','gBzxU','getHubUrl','global','Setting\x20Browserstack\x20capabilities','LeqDc','40988ZqLmdp','setLogLevel','https://','isAccessibilityPlatform','build','ieOptions_','QgjoA','forEach','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','keys','oxtzr','__driver','3|5|1|0|2|4','proxy_','chromeOptions','mBlHX','firefoxOptions_','AiLFU','EOIly','safariOptions_','Proxy\x20set\x20to\x20','lvfpX','storeOptimalHubUrl','browserStackLogLevel','mergeDeep','newHubUrl','edgeOptions','firefoxOptions','2669484dmjaHr','Hub\x20url\x20set\x20to\x20','Builder','edgeOptions_','split','../accessibility-automation/helper','zsdLc','KCQWS','yINwW','xVJFV','chromeOptions_','pPtxm','zDYmg','5910168aVVrNj','nmSNK','ojgeg','84XbmhAt','capabilities_','lecTw','get','__drivers','logLevel','getGlobal','BTLpC','getAccessibilityResults','debug','set','session_','../../../hubAllocationMethods','options_','/wd/hub','isPacProxy','goog:chromeOptions','MzCTg','getRequestOptions','30741380FHmfgb','ieOptions','FRgqB','oURTB','20380CHOVVt','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','76SKWkoY','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','867482KwNlQL','../../../helpers/globals','send','safari.options','isBrowserstackInfra','capability','isUndefined','../../../bin/utils/constants','../../../helpers/logger','rGtqO','12617388ExttjU','originalBuilder','695EgTrqS','KGWVx','sEpVL','HttpClient','object','DMxLB','proxyUrl','setGlobal','../../../helpers/accessibility-automation/helper','setServer','requireSeleniumWebdriver','__setBrowserOptions','22YkOACm','__driversArray','proxySettings','HfSjL','info','WNZCi','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','HRsDn','getHttpAgent','LCDbY','zHJWG','agent_'];a29_0x3382=function(){return _0x12ca96;};return a29_0x3382();}
|
|
1
|
+
const a29_0x2dca33=a29_0x2561;function a29_0x2561(_0x33095c,_0x2fbe3d){const _0x55bd4e=a29_0x55bd();return a29_0x2561=function(_0x256187,_0x3229c2){_0x256187=_0x256187-0x1a6;let _0x41b17d=_0x55bd4e[_0x256187];return _0x41b17d;},a29_0x2561(_0x33095c,_0x2fbe3d);}(function(_0x5eb8c9,_0x4c6a74){const _0x15113f=a29_0x2561,_0x284a37=_0x5eb8c9();while(!![]){try{const _0x37d52e=-parseInt(_0x15113f(0x1ff))/0x1+-parseInt(_0x15113f(0x222))/0x2*(parseInt(_0x15113f(0x220))/0x3)+parseInt(_0x15113f(0x1e4))/0x4*(-parseInt(_0x15113f(0x1d0))/0x5)+parseInt(_0x15113f(0x1dc))/0x6*(-parseInt(_0x15113f(0x212))/0x7)+parseInt(_0x15113f(0x1bb))/0x8+-parseInt(_0x15113f(0x21c))/0x9+-parseInt(_0x15113f(0x1c7))/0xa*(-parseInt(_0x15113f(0x204))/0xb);if(_0x37d52e===_0x4c6a74)break;else _0x284a37['push'](_0x284a37['shift']());}catch(_0x18fbc0){_0x284a37['push'](_0x284a37['shift']());}}}(a29_0x55bd,0xc4923));const logger=require(a29_0x2dca33(0x1e2))[a29_0x2dca33(0x1e0)],helper=require('../../../helpers/helper'),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x2dca33(0x1b7)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x2dca33(0x1a9)),{setAccessibilityCapabilities,setExtension}=require(a29_0x2dca33(0x20f)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a29_0x2dca33(0x1f9)),{overrideExecute}=require('./helpers/patchHelper'),modify=(_0x417ca2,_0xdd0886=null,_0x55cdf8=![])=>{const _0x4721bb=a29_0x2dca33,_0x53bbbd={'Ztaip':function(_0x58ea00,_0x230c87){return _0x58ea00!==_0x230c87;},'XnZzi':_0x4721bb(0x1be),'ZeHYA':function(_0x1b8978,_0x295e1f){return _0x1b8978+_0x295e1f;},'rffZY':function(_0x44bd8b,_0x135057){return _0x44bd8b+_0x135057;},'SGMFf':_0x4721bb(0x1e3),'aqvqg':_0x4721bb(0x1f5),'EWkfX':'goog:chromeOptions','UlFqO':_0x4721bb(0x1fd),'RCRmK':_0x4721bb(0x1dd),'BIpPL':_0x4721bb(0x1c0),'URHdh':'moz:firefoxOptions','oJwmV':_0x4721bb(0x224),'RgmtA':_0x4721bb(0x1ec),'ljTdg':_0x4721bb(0x1da),'DAMuy':_0x4721bb(0x1ab),'lqqyo':function(_0x461b96,_0x367054){return _0x461b96===_0x367054;},'QsRXE':'object','jLyqk':_0x4721bb(0x1c5),'NYTbQ':function(_0x23ae99,_0x45ea5f,_0x904ba4){return _0x23ae99(_0x45ea5f,_0x904ba4);},'RRSFg':function(_0x503a9a,_0x26a83a,_0x4585c1){return _0x503a9a(_0x26a83a,_0x4585c1);},'hTIXd':function(_0x797a5a,_0x5e8747){return _0x797a5a(_0x5e8747);},'akxyY':function(_0x3b972a,_0x52e8f2,_0x31a6da){return _0x3b972a(_0x52e8f2,_0x31a6da);},'aWHGO':_0x4721bb(0x1e5),'lEkYf':_0x4721bb(0x1c1),'KaTXp':function(_0x2951cd,_0x180f25,_0x58ce27){return _0x2951cd(_0x180f25,_0x58ce27);},'eggae':function(_0xbae2fd,_0x3f5c2e,_0x4533b0){return _0xbae2fd(_0x3f5c2e,_0x4533b0);},'FlXnI':_0x4721bb(0x1db),'tssvC':function(_0x3f2280){return _0x3f2280();},'KCUfd':function(_0x3f2d13,_0x494b8f){return _0x3f2d13(_0x494b8f);},'rCopT':'isAccessibilityPlatform','WnApc':function(_0x2d18c3,_0x3e1617,_0x4fb032){return _0x2d18c3(_0x3e1617,_0x4fb032);},'IiLMY':_0x4721bb(0x1b5),'UOmpS':function(_0x42b798,_0x50bff4){return _0x42b798(_0x50bff4);},'RdJMZ':_0x4721bb(0x206),'yvIQV':_0x4721bb(0x1b9)},_0x4dcfde=helper[_0x4721bb(0x1bc)]();let _0x3162c8;try{_0x3162c8=helper[_0x4721bb(0x21d)](),_0x3162c8[_0x4721bb(0x1f1)]&&(_0x3162c8['Builder']=_0x3162c8['originalBuilder']);}catch(_0x2a7cfc){return;}if(helper[_0x4721bb(0x1d6)]()){const _0x35d3e1={};_0x35d3e1[_0x4721bb(0x1c8)]=_0x417ca2['browserStackLogLevel'],helper[_0x4721bb(0x1f0)](_0x35d3e1,new Map(),new Map()),logger['info'](_0x53bbbd[_0x4721bb(0x1d5)]),logger[_0x4721bb(0x1fe)](_0x53bbbd['yvIQV']);}class _0x1ece84 extends _0x4dcfde[_0x4721bb(0x1e6)]{['send'](_0x16307c){const _0x42faa8=_0x4721bb;if(_0x53bbbd[_0x42faa8(0x20c)](_0x16307c['path'],_0x53bbbd[_0x42faa8(0x1e7)])&&_0x53bbbd[_0x42faa8(0x20c)](global[_0x42faa8(0x1cf)],''))try{global[_0x42faa8(0x1cf)]=_0x53bbbd[_0x42faa8(0x218)](_0x53bbbd[_0x42faa8(0x1c9)](_0x53bbbd[_0x42faa8(0x1bd)],global[_0x42faa8(0x1cf)]),_0x53bbbd['aqvqg']),this[_0x42faa8(0x1f7)]=hubAllocator[_0x42faa8(0x200)](global[_0x42faa8(0x1cf)]),logger[_0x42faa8(0x1fe)](_0x42faa8(0x1b2)+global['newHubUrl']),global[_0x42faa8(0x1cf)]='';}catch(_0x4da687){logger[_0x42faa8(0x1b8)](_0x4da687);}return super[_0x42faa8(0x207)](_0x16307c);}}class _0x1e53ff extends _0x3162c8[_0x4721bb(0x1b4)]{['setServer'](){const _0x5e2446=_0x4721bb;return this[_0x5e2446(0x1fc)]=helper[_0x5e2446(0x1d7)](_0x417ca2),logger['debug'](_0x5e2446(0x1de)+this['url_']),this;}[_0x4721bb(0x1d1)](_0x3c9576){const _0x326ce5=_0x4721bb;let _0x41c084={};for(const _0x1a33ca in _0x3c9576){switch(_0x1a33ca){case _0x53bbbd['EWkfX']:case _0x53bbbd['UlFqO']:this[_0x326ce5(0x1c2)]&&(_0x41c084=this['chromeOptions_'][_0x326ce5(0x1f2)](this['chromeOptions_'][_0x326ce5(0x1e8)])||{},this[_0x326ce5(0x1c2)]['set'](this[_0x326ce5(0x1c2)][_0x326ce5(0x1e8)],helper[_0x326ce5(0x1d2)](_0x41c084,_0x3c9576[_0x1a33ca])));break;case _0x53bbbd['RCRmK']:case _0x53bbbd[_0x326ce5(0x215)]:this[_0x326ce5(0x1df)]&&(_0x41c084=this['edgeOptions_'][_0x326ce5(0x1f2)](this[_0x326ce5(0x1df)]['CAPABILITY_KEY'])||{},this[_0x326ce5(0x1df)][_0x326ce5(0x223)](this[_0x326ce5(0x1df)][_0x326ce5(0x1e8)],helper[_0x326ce5(0x1d2)](_0x41c084,_0x3c9576[_0x1a33ca])));break;case _0x53bbbd[_0x326ce5(0x21e)]:case _0x53bbbd[_0x326ce5(0x1bf)]:this[_0x326ce5(0x1e1)]&&(_0x41c084=this[_0x326ce5(0x1e1)][_0x326ce5(0x1f2)](this[_0x326ce5(0x1e1)][_0x326ce5(0x1e8)])||{},this[_0x326ce5(0x1e1)][_0x326ce5(0x223)](this[_0x326ce5(0x1e1)][_0x326ce5(0x1e8)],helper['mergeDeep'](_0x41c084,_0x3c9576[_0x1a33ca])));break;case _0x53bbbd[_0x326ce5(0x1b0)]:this['safariOptions_']&&(_0x41c084=this[_0x326ce5(0x1ac)][_0x326ce5(0x1f2)](this['safariOptions_'][_0x326ce5(0x1e8)])||{},this[_0x326ce5(0x1ac)]['set'](this['safariOptions_']['CAPABILITY_KEY'],helper[_0x326ce5(0x1d2)](_0x41c084,_0x3c9576[_0x1a33ca])));break;case _0x53bbbd[_0x326ce5(0x21b)]:case _0x53bbbd[_0x326ce5(0x1c3)]:this[_0x326ce5(0x219)]&&(_0x41c084=this[_0x326ce5(0x219)]['get'](this[_0x326ce5(0x219)][_0x326ce5(0x1e8)])||{},this[_0x326ce5(0x219)][_0x326ce5(0x223)](this[_0x326ce5(0x219)][_0x326ce5(0x1e8)],helper[_0x326ce5(0x1d2)](_0x41c084,_0x3c9576[_0x1a33ca])));break;}}}[_0x4721bb(0x211)](){const _0x21490b=_0x4721bb,_0x556af8={'rUOzA':function(_0xadca8f,_0x3692a8){return _0x53bbbd['lqqyo'](_0xadca8f,_0x3692a8);},'SpsFF':_0x53bbbd['QsRXE']};return logger[_0x21490b(0x1fe)](_0x53bbbd[_0x21490b(0x20d)]),this[_0x21490b(0x1d1)](_0x417ca2[_0x21490b(0x1b6)]),Object['keys'](_0x417ca2['capability'])[_0x21490b(0x1fa)](_0x5eb7a6=>{const _0x3d14d4=_0x21490b,_0xe0a0dc=this[_0x3d14d4(0x214)][_0x3d14d4(0x1f2)](_0x5eb7a6);_0x556af8[_0x3d14d4(0x1e9)](typeof _0xe0a0dc,_0x556af8[_0x3d14d4(0x1ca)])?this[_0x3d14d4(0x214)][_0x3d14d4(0x223)](_0x5eb7a6,helper[_0x3d14d4(0x1d2)](_0xe0a0dc,_0x417ca2[_0x3d14d4(0x1b6)][_0x5eb7a6])):this[_0x3d14d4(0x214)][_0x3d14d4(0x223)](_0x5eb7a6,_0x417ca2['capability'][_0x5eb7a6]);}),this;}[_0x4721bb(0x1ee)](){const _0x134f51=_0x4721bb,_0x2edd56={'BjCzQ':_0x53bbbd[_0x134f51(0x208)],'OXMlp':_0x53bbbd[_0x134f51(0x1ad)],'ZLlCs':function(_0x2ad743,_0x5ef9ff,_0x42c1a4){return _0x53bbbd['KaTXp'](_0x2ad743,_0x5ef9ff,_0x42c1a4);},'ZsQWX':function(_0x2f514d,_0x4af62c,_0x9b9607){const _0x259ac7=_0x134f51;return _0x53bbbd[_0x259ac7(0x217)](_0x2f514d,_0x4af62c,_0x9b9607);}};if(helper[_0x134f51(0x1d6)]()){const _0xf1e564=_0x53bbbd[_0x134f51(0x203)][_0x134f51(0x1cc)]('|');let _0x291a88=0x0;while(!![]){switch(_0xf1e564[_0x291a88++]){case'0':_0x53bbbd[_0x134f51(0x21a)](isAccessibilityAutomationSession)&&_0x53bbbd[_0x134f51(0x1a8)](setAccessibilityCapabilities,_0x417ca2);continue;case'1':globals[_0x134f51(0x1a7)](_0x53bbbd[_0x134f51(0x201)])&&(!_0x53bbbd[_0x134f51(0x1aa)](setExtension,this,_0x417ca2)&&globals[_0x134f51(0x21f)](_0x53bbbd[_0x134f51(0x201)],![]));continue;case'2':this[_0x134f51(0x211)]();continue;case'3':if(helper[_0x134f51(0x202)](_0x417ca2[_0x134f51(0x1ea)]['proxyUrl']))this[_0x134f51(0x1f3)]=helper[_0x134f51(0x1f8)](_0x417ca2[_0x134f51(0x1ea)]['proxyUrl']);else _0x417ca2[_0x134f51(0x1ea)][_0x134f51(0x1b1)]&&(this[_0x134f51(0x1ce)]=_0x417ca2[_0x134f51(0x1ea)][_0x134f51(0x1b1)],logger[_0x134f51(0x1fe)](_0x134f51(0x1ed)+this[_0x134f51(0x1ce)]));continue;case'4':logger[_0x134f51(0x1fe)](_0x53bbbd[_0x134f51(0x20a)]);continue;case'5':this[_0x134f51(0x1d3)]();continue;}break;}}const _0x3b66b6=super[_0x134f51(0x1ee)]();return _0x3b66b6['session_']['then'](_0x47c5a6=>{const _0x1ad0ca=_0x134f51;try{const _0x22c206=_0x47c5a6[_0x1ad0ca(0x1d9)][_0x1ad0ca(0x1f2)](_0x2edd56[_0x1ad0ca(0x1d8)]);_0x22c206?(logger['debug'](_0x1ad0ca(0x1eb)+_0x22c206),hubAllocator['updateHubUrl'](_0x22c206),helper[_0x1ad0ca(0x221)](_0x22c206)):logger[_0x1ad0ca(0x1fe)](_0x2edd56[_0x1ad0ca(0x1cd)]);}catch(_0x16db31){logger['debug']('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x16db31);}}),_0x3b66b6['quitCount_']=0x0,_0x3b66b6[_0x134f51(0x1c4)]&&_0x3b66b6[_0x134f51(0x1c4)](_0x56d672=>{const _0x21dbba=_0x134f51,_0x41d23b={'pWUMg':function(_0xb2d222,_0x43f9e9,_0x59648f){const _0x2daafe=a29_0x2561;return _0x53bbbd[_0x2daafe(0x20e)](_0xb2d222,_0x43f9e9,_0x59648f);}};_0x53bbbd[_0x21dbba(0x1ef)](overrideQuit,_0x56d672,_0x3b66b6),_0x53bbbd[_0x21dbba(0x1ba)](overrideTakeScreenshot,_0x56d672),helper['overrideGet'](_0x56d672,_0x417ca2),_0x53bbbd['RRSFg'](overrideExecute,_0x56d672,_0x417ca2),_0x56d672['getAccessibilityResultsSummary']=async()=>{const _0x5eb6ef=_0x21dbba;return await _0x41d23b[_0x5eb6ef(0x1d4)](getAccessibilityResultsSummary,_0x56d672,global);},_0x56d672[_0x21dbba(0x1c6)]=async()=>{const _0x172c6d=_0x21dbba;return await _0x2edd56[_0x172c6d(0x213)](getAccessibilityResults,_0x56d672,global);};}),_0x3b66b6[_0x134f51(0x1b3)]=async()=>{const _0x66be5c=_0x134f51;return await _0x2edd56[_0x66be5c(0x209)](getAccessibilityResultsSummary,_0x3b66b6,global);},_0x3b66b6[_0x134f51(0x1c6)]=async()=>{const _0x23c9db=_0x134f51;return await _0x53bbbd[_0x23c9db(0x1fb)](getAccessibilityResults,_0x3b66b6,global);},_0x53bbbd[_0x134f51(0x205)](overrideTakeScreenshot,_0x3b66b6),_0x53bbbd['UOmpS'](overrideQuit,_0x3b66b6),helper[_0x134f51(0x1cb)](_0x3b66b6,_0x417ca2),_0x53bbbd[_0x134f51(0x20e)](overrideExecute,_0x3b66b6,_0x417ca2),helper['isUndefined'](global['__driversArray'])&&(global[_0x134f51(0x1af)]=[]),helper[_0x134f51(0x1ae)](global['__drivers'])&&(global[_0x134f51(0x20b)]=[]),global[_0x134f51(0x1af)]['push'](_0x3b66b6),global[_0x134f51(0x210)]=_0x3b66b6,_0x53bbbd[_0x134f51(0x20c)](global[_0x134f51(0x20b)],undefined)&&global['__drivers'][_0x134f51(0x1a6)](_0x3b66b6),_0xdd0886&&helper[_0x134f51(0x1ae)](_0xdd0886[_0x134f51(0x1f6)][_0x134f51(0x1af)])&&(_0xdd0886[_0x134f51(0x1f6)][_0x134f51(0x1af)]=[]),_0xdd0886&&_0x53bbbd[_0x134f51(0x20c)](_0xdd0886['global'][_0x134f51(0x20b)],undefined)&&(_0xdd0886[_0x134f51(0x1f6)][_0x134f51(0x20b)][_0x134f51(0x1a6)](_0x3b66b6),_0xdd0886['global'][_0x134f51(0x1af)][_0x134f51(0x1a6)](_0x3b66b6)),_0x3b66b6;}}return _0x3162c8[_0x4721bb(0x1f1)]=_0x3162c8[_0x4721bb(0x1b4)],_0x3162c8[_0x4721bb(0x1b4)]=_0x1e53ff,_0x4dcfde[_0x4721bb(0x1e6)]=_0x1ece84,_0x3162c8;};function a29_0x55bd(){const _0x255d8a=['proxySettings','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','safari.options','Proxy\x20set\x20to\x20','build','RRSFg','setLogLevel','originalBuilder','get','agent_','exports','/wd/hub','global','options_','getHttpAgent','../../../helpers/globals','forEach','akxyY','url_','chromeOptions','debug','200550ndZbPf','getRequestOptions','rCopT','isPacProxy','FlXnI','1368961QINVnG','UOmpS','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','send','aWHGO','ZsQWX','IiLMY','__drivers','Ztaip','jLyqk','NYTbQ','../accessibility-automation/helper','__driver','setCapabilities','7735XyOvNu','ZLlCs','capabilities_','BIpPL','browserstackAgentObservability','eggae','ZeHYA','ieOptions_','tssvC','ljTdg','6344541yvTKKg','requireSeleniumWebdriver','URHdh','setGlobal','3yUVtRo','storeOptimalHubUrl','2959402QMhDRG','set','firefoxOptions','push','getGlobal','KCUfd','../../../helpers/patchHelpers','WnApc','ieOptions','safariOptions_','lEkYf','isUndefined','__driversArray','RgmtA','proxyUrl','New\x20hub\x20url\x20set\x20to\x20','getAccessibilityResultsSummary','Builder','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','capability','../../../hubAllocationMethods','error','Modifying\x20webdriver\x20builder','hTIXd','2293616qwOqCT','requireHttpClient','SGMFf','/session','oJwmV','edgeOptions','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','chromeOptions_','DAMuy','then','Setting\x20Browserstack\x20capabilities','getAccessibilityResults','370bIWcrS','logLevel','rffZY','SpsFF','overrideGet','split','OXMlp','proxy_','newHubUrl','149085zSBboa','__setBrowserOptions','mergeDeep','setServer','pWUMg','RdJMZ','isBrowserstackInfra','getHubUrl','BjCzQ','caps_','se:ieOptions','0|5|2|3|1|4','3246lWaydx','ms:edgeOptions','Hub\x20url\x20set\x20to\x20','edgeOptions_','winstonLogger','firefoxOptions_','../../../helpers/logger','https://','148rwkwWP','optimalHubUrl','HttpClient','XnZzi','CAPABILITY_KEY','rUOzA'];a29_0x55bd=function(){return _0x255d8a;};return a29_0x55bd();}module[a29_0x2dca33(0x1f4)][a29_0x2dca33(0x216)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x22698d=a30_0x31f6;(function(_0x27b01e,_0x128eff){const _0x4f0cfb=a30_0x31f6,_0x38fa0b=_0x27b01e();while(!![]){try{const _0x3eafc2=parseInt(_0x4f0cfb(0xb2))/0x1*(parseInt(_0x4f0cfb(0xbb))/0x2)+parseInt(_0x4f0cfb(0xbc))/0x3*(-parseInt(_0x4f0cfb(0xbe))/0x4)+-parseInt(_0x4f0cfb(0xbf))/0x5+-parseInt(_0x4f0cfb(0xbd))/0x6+parseInt(_0x4f0cfb(0xb3))/0x7*(-parseInt(_0x4f0cfb(0xb9))/0x8)+-parseInt(_0x4f0cfb(0xb1))/0x9*(parseInt(_0x4f0cfb(0xba))/0xa)+parseInt(_0x4f0cfb(0xb5))/0xb;if(_0x3eafc2===_0x128eff)break;else _0x38fa0b['push'](_0x38fa0b['shift']());}catch(_0x38a05f){_0x38fa0b['push'](_0x38fa0b['shift']());}}}(a30_0x2724,0x2256d));const requestSpy=require(a30_0x22698d(0xaf)),constants=require(a30_0x22698d(0xb4)),{addRequestSpy}=require('../../../helpers/test-observability/utils');exports[a30_0x22698d(0xb6)]={'beforeAll'(){const _0x1ee7f9=a30_0x22698d,_0x4870f7={'rDRvI':function(_0x547186){return _0x547186();}},_0x5a82ff='browserstack internal helper hook';_0x4870f7[_0x1ee7f9(0xb8)](addRequestSpy);},'afterAll'(){const _0x45f942=a30_0x22698d,_0xf79566='browserstack internal helper hook';this[_0x45f942(0xb7)](0xea60),requestSpy[_0x45f942(0xb0)]();}};function a30_0x31f6(_0x861913,_0x2db47c){const _0x27245b=a30_0x2724();return a30_0x31f6=function(_0x31f6db,_0x2e4ebd){_0x31f6db=_0x31f6db-0xaf;let _0x5bb59c=_0x27245b[_0x31f6db];return _0x5bb59c;},a30_0x31f6(_0x861913,_0x2db47c);}function a30_0x2724(){const _0x548001=['1002825EgwVKN','../../../helpers/request-spy','restore','45bjyXKP','1MWBHbe','594629UKpSZB','../../../bin/utils/constants','9110937mbycok','mochaHooks','timeout','rDRvI','24JgnVeg','126010jLuZSa','304474VgBGhv','44421mwJeJL','596010ODQuVo','60yiJiBI'];a30_0x2724=function(){return _0x548001;};return a30_0x2724();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a31_0x277f(_0x52fece,_0x1d6238){const _0x433382=a31_0x4333();return a31_0x277f=function(_0x277f45,_0x414468){_0x277f45=_0x277f45-0x181;let _0x42ae82=_0x433382[_0x277f45];return _0x42ae82;},a31_0x277f(_0x52fece,_0x1d6238);}const a31_0x2e7bcf=a31_0x277f;function a31_0x4333(){const _0x3fb42d=['indexOf','__cloud_provider___','getTestEnv','wcCNY','type','toJSON','hook','xCWeg','slice','pXIdG','../../../helpers/test-observability/utils','getHooksForTest','MziCN','gVWiy','../../../../package.json','getCapabilities','11592968hFDJJG','../../utils/logPatcher','_beforeAll','AwaRu','toISOString','lodash','markedStatus','split','Vswnj','3789392UZQnAg','CFUif','generic','HWVLs','mapTestHooks','Beepp','eEner','../../../helpers/test-observability/constants','cphoV','IhxGq','reduce','pid','QuzeN','29262pVfYZE','rLynw','concat','../../../helpers/helper','eAQMl','41794720OAOCRr','HeQcG','map_','1125GrloRE','passed','fMGNo','YYVDo','getHookSkippedTests','_beforeEach','vNsxn','unknown_grid','1310xXvGtN','hAFfl','../../../helpers/testhub/utils','getSession','state','forEach','TpmST','emit','66910EmyGwH','substring','7gTzbbT','hHcXZ','browserstack','tests','YfUYF','WJZiK','hookAnalyticsId','_afterAll','_afterEach','PuBsW','mqrpl','getPlatform','1358367bopvzH','failed','filter','bs:addPlatformDetails:','40KxrwlI','parent','js-','35163VXrAUU','zFtQD','oAgIe','BlBtX','HzIWM'];a31_0x4333=function(){return _0x3fb42d;};return a31_0x4333();}(function(_0x5c1563,_0x30bbfb){const _0x9669c8=a31_0x277f,_0x20cf63=_0x5c1563();while(!![]){try{const _0x250131=parseInt(_0x9669c8(0x1ab))/0x1*(-parseInt(_0x9669c8(0x1bd))/0x2)+-parseInt(_0x9669c8(0x1b9))/0x3+parseInt(_0x9669c8(0x186))/0x4+parseInt(_0x9669c8(0x19b))/0x5*(-parseInt(_0x9669c8(0x193))/0x6)+parseInt(_0x9669c8(0x1ad))/0x7*(-parseInt(_0x9669c8(0x1d5))/0x8)+-parseInt(_0x9669c8(0x1c0))/0x9*(-parseInt(_0x9669c8(0x1a3))/0xa)+parseInt(_0x9669c8(0x198))/0xb;if(_0x250131===_0x30bbfb)break;else _0x20cf63['push'](_0x20cf63['shift']());}catch(_0x42b4fa){_0x20cf63['push'](_0x20cf63['shift']());}}}(a31_0x4333,0xe0ea2));const {v4:uuidv4}=require('uuid'),{name,version}=require(a31_0x2e7bcf(0x1d3)),logPatcher=require(a31_0x2e7bcf(0x1d6)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x2e7bcf(0x1cf)),{consoleHolder}=require(a31_0x2e7bcf(0x18d)),{getPlatformVersion}=require(a31_0x2e7bcf(0x196)),{shouldProcessEventForTesthub}=require(a31_0x2e7bcf(0x1a5)),{isFunction}=require(a31_0x2e7bcf(0x182)),{patchConsoleLogger}=require(a31_0x2e7bcf(0x1cf));patchConsoleLogger(),exports[a31_0x2e7bcf(0x1c7)]=()=>{const _0x4cd329=a31_0x2e7bcf,_0x217ab9={'fMGNo':_0x4cd329(0x188),'xCWeg':function(_0x5bb7ea){return _0x5bb7ea();}};return{'ci':_0x217ab9[_0x4cd329(0x19d)],'key':_0x217ab9[_0x4cd329(0x1cc)](uuidv4),'version':version,'collector':_0x4cd329(0x1bf)+name};},exports['getHookDetails']=_0x32a479=>{const _0x3c4350=a31_0x2e7bcf,_0x372585={};_0x372585[_0x3c4350(0x192)]=function(_0x19e372,_0x54e0b1){return _0x19e372!==_0x54e0b1;},_0x372585[_0x3c4350(0x1d2)]='string',_0x372585['vNsxn']='hook:',_0x372585['hAFfl']=function(_0x4d28ab,_0x5594a4){return _0x4d28ab!==_0x5594a4;},_0x372585['YfUYF']=_0x3c4350(0x1cb);const _0x88f0e9=_0x372585;if(!_0x32a479||_0x88f0e9[_0x3c4350(0x192)](typeof _0x32a479,_0x88f0e9[_0x3c4350(0x1d2)]))return[null,null];if(_0x88f0e9[_0x3c4350(0x192)](_0x32a479['indexOf'](_0x88f0e9[_0x3c4350(0x1a1)]),-0x1)){const _0xbc3526=_0x32a479['split'](_0x88f0e9[_0x3c4350(0x1a1)]);return[_0xbc3526[0x0]['slice'](0x0,-0x1)[_0x3c4350(0x184)]('\x22')[0x1],_0xbc3526[0x1][_0x3c4350(0x1ac)](0x1)];}else{if(_0x88f0e9[_0x3c4350(0x1a4)](_0x32a479[_0x3c4350(0x1c5)](_0x88f0e9[_0x3c4350(0x1b1)]),-0x1)){const _0xbd5afd=_0x32a479['split'](_0x88f0e9[_0x3c4350(0x1b1)]);return[_0xbd5afd[0x0][_0x3c4350(0x1cd)](0x0,-0x1)[_0x3c4350(0x184)]('\x22')[0x1],_0x32a479];}}return[null,null];},exports['getHooksForTest']=_0x5aaab5=>{const _0x56f3a5=a31_0x2e7bcf,_0x1f4951={'BlBtX':function(_0x43dfb5,_0x1912a9){return _0x43dfb5(_0x1912a9);},'wcCNY':_0x56f3a5(0x1d7),'Vswnj':_0x56f3a5(0x1b4),'TpmST':_0x56f3a5(0x1a0),'oAgIe':_0x56f3a5(0x1b5)};if(!_0x5aaab5||!_0x5aaab5[_0x56f3a5(0x1be)])return[];const _0xbb7112=[];return[_0x1f4951[_0x56f3a5(0x1c8)],_0x1f4951[_0x56f3a5(0x185)],_0x1f4951[_0x56f3a5(0x1a9)],_0x1f4951[_0x56f3a5(0x1c2)]][_0x56f3a5(0x1a8)](_0x338033=>{const _0x29d069=_0x56f3a5,_0x28f6f1=_0x5aaab5[_0x29d069(0x1be)][_0x338033]||[];_0x28f6f1[_0x29d069(0x1a8)](_0x1e8c56=>{const _0xf83248=_0x29d069;_0x1e8c56[_0xf83248(0x1b3)]&&!_0x1f4951[_0xf83248(0x1c3)](isInternalHook,_0x1e8c56['fn'])&&_0xbb7112['push'](_0x1e8c56[_0xf83248(0x1b3)]);});}),[..._0xbb7112,...exports[_0x56f3a5(0x1d0)](_0x5aaab5[_0x56f3a5(0x1be)])];},exports[a31_0x2e7bcf(0x18a)]=_0x503ae5=>{const _0x5bc7e0=a31_0x2e7bcf,_0x45abd2={'eAQMl':function(_0x54be38){return _0x54be38();},'HeQcG':function(_0x539778,_0x2e0b1e){return _0x539778===_0x2e0b1e;},'CFUif':'_afterEach','dcOTC':'_beforeAll','MziCN':'_afterAll','WJZiK':_0x5bc7e0(0x1a0)};if(!_0x503ae5||!_0x503ae5[_0x5bc7e0(0x1be)])return;[_0x45abd2['dcOTC'],_0x45abd2[_0x5bc7e0(0x1d1)],_0x45abd2[_0x5bc7e0(0x1b2)],_0x45abd2[_0x5bc7e0(0x187)]][_0x5bc7e0(0x1a8)](_0x3d5f2a=>{const _0x13cf3d=_0x5bc7e0,_0x17acc6={'AwaRu':function(_0x4ee6e7){const _0x1c9445=a31_0x277f;return _0x45abd2[_0x1c9445(0x197)](_0x4ee6e7);},'eEner':function(_0x59e620,_0x5c9717){const _0x120726=a31_0x277f;return _0x45abd2[_0x120726(0x199)](_0x59e620,_0x5c9717);},'cphoV':_0x45abd2[_0x13cf3d(0x187)]},_0x7f56fb=_0x503ae5[_0x13cf3d(0x1be)][_0x3d5f2a]||[];_0x7f56fb[_0x13cf3d(0x1a8)](_0x39d9d1=>{const _0x5be5f3=_0x13cf3d;if(!_0x39d9d1[_0x5be5f3(0x1b3)])_0x39d9d1[_0x5be5f3(0x1b3)]=_0x17acc6[_0x5be5f3(0x1d8)](uuidv4);else _0x39d9d1[_0x5be5f3(0x183)]&&_0x17acc6[_0x5be5f3(0x18c)](_0x3d5f2a,_0x17acc6[_0x5be5f3(0x18e)])&&(_0x39d9d1[_0x5be5f3(0x1b3)]=_0x17acc6[_0x5be5f3(0x1d8)](uuidv4),delete _0x39d9d1[_0x5be5f3(0x183)]);});}),exports[_0x5bc7e0(0x18a)](_0x503ae5[_0x5bc7e0(0x1be)]);},exports['sendPlatformDetails']=async(_0x353c8d,_0x2a6238)=>{const _0x3d9a9e=a31_0x2e7bcf,_0x439752={'pXIdG':function(_0x57c817){return _0x57c817();},'IhxGq':function(_0x5ba52a,_0xbfdbeb){return _0x5ba52a(_0xbfdbeb);},'mqrpl':function(_0x59b3ef,_0x4ea4d2){return _0x59b3ef(_0x4ea4d2);},'qUPrZ':function(_0x362795,_0x447fdc){return _0x362795===_0x447fdc;},'HzIWM':_0x3d9a9e(0x1af),'Beepp':_0x3d9a9e(0x1a2),'YYVDo':'TEST_PLATFORM'};try{if(!_0x439752[_0x3d9a9e(0x1ce)](shouldProcessEventForTesthub))return;const _0x5c12b0=await _0x353c8d[_0x3d9a9e(0x1d4)](),_0x44fbc0=await _0x353c8d[_0x3d9a9e(0x1a6)](),_0x1e912e={},_0x277643=Object['fromEntries'](_0x44fbc0[_0x3d9a9e(0x1d4)]()[_0x3d9a9e(0x19a)]),_0x3713f1={'product':_0x439752[_0x3d9a9e(0x18f)](getObservabilityLinkedProductName,_0x277643),'capabilities':_0x277643,'platform':_0x5c12b0[_0x3d9a9e(0x1b8)](),'platform_version':_0x439752[_0x3d9a9e(0x1b7)](getPlatformVersion,_0x439752['qUPrZ'](global[_0x3d9a9e(0x1c6)],_0x439752[_0x3d9a9e(0x1c4)])),'browser':_0x5c12b0['getBrowserName'](),'browser_version':_0x5c12b0['getBrowserVersion'](),'session_id':_0x44fbc0[_0x3d9a9e(0x1ca)]()};global[_0x3d9a9e(0x1c6)]?_0x1e912e[global[_0x3d9a9e(0x1c6)]]=_0x3713f1:_0x1e912e[_0x439752[_0x3d9a9e(0x18b)]]=_0x3713f1,process[_0x3d9a9e(0x1aa)](_0x3d9a9e(0x1bc)+process[_0x3d9a9e(0x191)],{'timestamp':new Date()[_0x3d9a9e(0x181)](),'level':null,'message':null,'kind':_0x439752[_0x3d9a9e(0x19e)],'http_response':_0x1e912e,'uuid':_0x2a6238});}catch(_0x5a52cc){_0x439752[_0x3d9a9e(0x1b7)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x5a52cc);}},exports[a31_0x2e7bcf(0x19f)]=_0x1ee572=>{const _0x2e78cf=a31_0x2e7bcf,_0x34b679={};_0x34b679[_0x2e78cf(0x1ae)]=function(_0x30e83c,_0x18f568){return _0x30e83c!==_0x18f568;},_0x34b679[_0x2e78cf(0x1b6)]=_0x2e78cf(0x1cb),_0x34b679['HWVLs']=function(_0x29a809,_0x2e8ff2){return _0x29a809!==_0x2e8ff2;},_0x34b679[_0x2e78cf(0x1c1)]=_0x2e78cf(0x19c),_0x34b679[_0x2e78cf(0x194)]=_0x2e78cf(0x1ba);const _0x185121=_0x34b679,_0x4a7c34=_0x1ee572['suites'][_0x2e78cf(0x190)]((_0x29e6c8,_0x46dd0f)=>{const _0x3f1749=_0x2e78cf,_0x37fa2c=exports[_0x3f1749(0x19f)](_0x46dd0f);return _0x37fa2c&&(_0x29e6c8=_0x29e6c8[_0x3f1749(0x195)](_0x37fa2c)),_0x29e6c8;},[]),_0x3b7a39=_0x1ee572[_0x2e78cf(0x1b0)][_0x2e78cf(0x1bb)](_0x1f068c=>{const _0x1cf764=_0x2e78cf,_0x226942=_0x185121[_0x1cf764(0x1ae)](_0x1f068c[_0x1cf764(0x1c9)],_0x185121['PuBsW'])&&!_0x1f068c[_0x1cf764(0x183)]&&_0x185121[_0x1cf764(0x189)](_0x1f068c['state'],_0x185121[_0x1cf764(0x1c1)])&&_0x185121['HWVLs'](_0x1f068c[_0x1cf764(0x1a7)],_0x185121[_0x1cf764(0x194)])&&!_0x1f068c['pending'];return _0x226942;});return _0x3b7a39[_0x2e78cf(0x195)](_0x4a7c34);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x8572(){const _0x4a51ac=['Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','length','JRNpV','mjVoG','Failed:\x20','hOmoZ','rYXyT','__drivers','./test-observability/mochaUtils','executeScript','Performing\x20scan\x20before\x20saving\x20results','CFmKh','err','capabilities','../../helpers/testhub/utils','MHzDl','__error_messages__','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','\x20-\x20','join','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','state','format','thTestRunUuid','yvdIq','winstonLogger','ExosW','message','appium:app','JufNk','driverCleanup','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','ahlZt','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','info','../../helpers/performance-tester','mochaHooks','../../helpers/accessibility-automation/helper','http:','timeout','error','currentTest','ZzSCG','__sessionFailed','performScan','../../helpers/percy/utils','UUmnP','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','../../helpers/globals','ipSAC','saveTestResults','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','caBJy','browserstackSessionName',',\x22level\x22:\x20\x22','ENV_VAR','sessionNameSet__','69897KHJnuz','25815dPWgvI','201138GEszkF','BROWSERSTACK_TESTHUB_JWT','env','https:','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','isArray','thJwtToken','473241tGUzQt','../../helpers/logger','xFYys','getCurrentUrl','kXQCA','LWTsC','\x22}}','iaIAH','vsDlT','setGlobal','LijIR','testcase','executeAsyncScript','testAnalyticsId','isAccessibilityPlatform','bstackA11yShouldScan','quitCount_','JtIED','getGlobal','KJHDJ','failed','Failed\x20to\x20store\x20session\x20name:\x20','2053758OjtVjC','__skipSessionName','Passed','session_','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','\x20|\x20','108hKSCrS','AYVXn','ObservabilitySync:','oMNbf','titlePath','passed','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','initQuit','accessibilityScanStarted','startMonitoring','BROWSERSTACK_TESTHUB_UUID','protocol','then','xTRna','app','150840pqKekr','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','now','debug','stringify','thBuildUuid','../../helpers/helper','332000qsTAyN','bAufY','shouldScanTestForAccessibility','OyRvi','sawrN','vGbwU','AYyod'];a32_0x8572=function(){return _0x4a51ac;};return a32_0x8572();}const a32_0x1fe5b0=a32_0x59b0;(function(_0xc7b9be,_0x2b87c0){const _0x35387d=a32_0x59b0,_0x20ab4c=_0xc7b9be();while(!![]){try{const _0x2ea46a=-parseInt(_0x35387d(0x15b))/0x1+-parseInt(_0x35387d(0x15d))/0x2+parseInt(_0x35387d(0x165))/0x3+-parseInt(_0x35387d(0x181))/0x4*(parseInt(_0x35387d(0x15c))/0x5)+parseInt(_0x35387d(0x190))/0x6+parseInt(_0x35387d(0x17b))/0x7+parseInt(_0x35387d(0x197))/0x8;if(_0x2ea46a===_0x2b87c0)break;else _0x20ab4c['push'](_0x20ab4c['shift']());}catch(_0x47c57c){_0x20ab4c['push'](_0x20ab4c['shift']());}}}(a32_0x8572,0x32c2a));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x1fe5b0(0x147)),{percyAutoCapture}=require(a32_0x1fe5b0(0x14f)),{sendPlatformDetails}=require(a32_0x1fe5b0(0x1a6)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x1fe5b0(0x196)),PerformanceTester=require(a32_0x1fe5b0(0x145)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x1fe5b0(0x152)),logger=require(a32_0x1fe5b0(0x166))[a32_0x1fe5b0(0x139)],{shouldProcessEventForTesthub}=require(a32_0x1fe5b0(0x12e)),testHubConstants=require('../../helpers/testhub/constants');function a32_0x59b0(_0x31f5a9,_0x55524b){const _0x857293=a32_0x8572();return a32_0x59b0=function(_0x59b01b,_0x2ab83c){_0x59b01b=_0x59b01b-0x12b;let _0x33cb93=_0x857293[_0x59b01b];return _0x33cb93;},a32_0x59b0(_0x31f5a9,_0x55524b);}exports[a32_0x1fe5b0(0x146)]={'beforeAll'(){const _0x17fe73=a32_0x1fe5b0,_0x1b3ba9={'JufNk':function(_0x552edd,_0x4beba0,_0x304420,_0x3b7303){return _0x552edd(_0x4beba0,_0x304420,_0x3b7303);},'kodPY':_0x17fe73(0x179),'ExosW':_0x17fe73(0x180),'AYVXn':function(_0x42b25e,_0x208d9a,_0x33a932){return _0x42b25e(_0x208d9a,_0x33a932);},'JRNpV':'passed','ZzSCG':function(_0x531abb){return _0x531abb();}};PerformanceTester[_0x17fe73(0x18a)]();const _0x3a2902='browserstack internal helper hook';global[_0x17fe73(0x130)]=[],global['__sessionFailed']=![],global[_0x17fe73(0x13e)]=async()=>{const _0x309d72=_0x17fe73;let _0x15115e=![];try{await global[_0x309d72(0x1a5)][0x0]['session_'],_0x15115e=!![],global[_0x309d72(0x14d)]?await _0x1b3ba9[_0x309d72(0x13d)](markSessionStatus,global[_0x309d72(0x1a5)][0x0],_0x1b3ba9['kodPY'],global[_0x309d72(0x130)][_0x309d72(0x133)](_0x1b3ba9[_0x309d72(0x13a)])):await _0x1b3ba9[_0x309d72(0x182)](markSessionStatus,global[_0x309d72(0x1a5)][0x0],_0x1b3ba9[_0x309d72(0x1a0)]);}catch(_0x1b35fd){logger['debug'](_0x309d72(0x13f)+_0x1b35fd);}global[_0x309d72(0x130)]=[],global['__sessionFailed']=![];if(_0x15115e)try{try{_0x1b3ba9[_0x309d72(0x14c)](shouldProcessEventForTesthub)&&(global[_0x309d72(0x1a5)][0x0]&&await _0x1b3ba9[_0x309d72(0x182)](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this[_0x309d72(0x14b)][_0x309d72(0x172)]:null));}catch(_0x4512c7){logger[_0x309d72(0x193)](_0x309d72(0x131)+_0x4512c7);}await global[_0x309d72(0x1a5)][0x0][_0x309d72(0x188)]();}catch(_0x22d29c){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x22d29c);}};},'beforeEach'(_0x4572a6){const _0x7a52cd=a32_0x1fe5b0,_0x70eb3f={'iaIAH':function(_0x454030,_0xf3e0a9){return _0x454030>_0xf3e0a9;},'OyRvi':function(_0x54fc13,_0x205b67){return _0x54fc13>_0x205b67;},'sawrN':'\x20-\x20','LijIR':function(_0x2c5337,_0x121b3a,_0x370630){return _0x2c5337(_0x121b3a,_0x370630);},'AnHLz':_0x7a52cd(0x174),'CFmKh':function(_0x22a34d){return _0x22a34d();},'yvdIq':function(_0x28c6ef,_0x3d7ee6){return _0x28c6ef>_0x3d7ee6;},'caBJy':_0x7a52cd(0x173),'AYyod':function(_0x517dc3,_0x72ae76){return _0x517dc3===_0x72ae76;},'cLZhf':_0x7a52cd(0x148),'xTRna':function(_0x4764a9,_0x41072a){return _0x4764a9===_0x41072a;},'mjVoG':_0x7a52cd(0x160),'SlLfQ':_0x7a52cd(0x19e),'hOmoZ':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0x36a17d=>{const _0x42d9e7=_0x7a52cd,_0x166032='browserstack internal helper hook';let _0x26c6be=!![];try{_0x70eb3f[_0x42d9e7(0x16c)](global[_0x42d9e7(0x1a5)][_0x42d9e7(0x19f)],0x1)&&(await global[_0x42d9e7(0x13e)](),global['__drivers']['shift']()),_0x70eb3f[_0x42d9e7(0x19a)](global[_0x42d9e7(0x1a5)][0x0][_0x42d9e7(0x175)],0x0)&&(_0x26c6be=![],await global[_0x42d9e7(0x13e)]());}catch(_0x59370a){logger['debug'](_0x42d9e7(0x142)+_0x59370a);}try{Array['isArray'](global[_0x42d9e7(0x1a5)])&&global[_0x42d9e7(0x1a5)][0x0]&&(global[_0x42d9e7(0x1a5)][0x0][_0x42d9e7(0x157)]=this['currentTest'][_0x42d9e7(0x185)]()[_0x42d9e7(0x133)](_0x70eb3f[_0x42d9e7(0x19b)])),global[_0x42d9e7(0x157)]=this[_0x42d9e7(0x14b)]['titlePath']()[_0x42d9e7(0x133)](_0x70eb3f[_0x42d9e7(0x19b)]);}catch(_0x1c5575){logger[_0x42d9e7(0x193)](_0x42d9e7(0x17a)+_0x1c5575);}this[_0x42d9e7(0x14b)][_0x42d9e7(0x199)]=_0x70eb3f[_0x42d9e7(0x16f)](shouldScanTestForAccessibility,this[_0x42d9e7(0x14b)][_0x42d9e7(0x185)](),!![]),globals[_0x42d9e7(0x16e)](_0x70eb3f['AnHLz'],this[_0x42d9e7(0x14b)][_0x42d9e7(0x199)]),this['currentTest'][_0x42d9e7(0x189)]=!![];if(_0x70eb3f['CFmKh'](isAccessibilityAutomationSession)&&_0x26c6be&&Array[_0x42d9e7(0x163)](global[_0x42d9e7(0x1a5)])&&_0x70eb3f[_0x42d9e7(0x138)](global[_0x42d9e7(0x1a5)][_0x42d9e7(0x19f)],0x0)&&globals[_0x42d9e7(0x177)](_0x70eb3f[_0x42d9e7(0x156)]))try{const _0x4bcad7=await global[_0x42d9e7(0x1a5)][0x0][_0x42d9e7(0x17e)];if(_0x4bcad7){let _0x3a277b=!![];const _0x4183d3=await global[_0x42d9e7(0x1a5)][0x0][_0x42d9e7(0x168)]();let _0x17ae99;try{_0x17ae99=new URL(_0x4183d3);}catch(_0x366043){_0x3a277b=![];}_0x3a277b=_0x70eb3f[_0x42d9e7(0x19d)](_0x17ae99[_0x42d9e7(0x18c)],_0x70eb3f['cLZhf'])||_0x70eb3f[_0x42d9e7(0x18e)](_0x17ae99[_0x42d9e7(0x18c)],_0x70eb3f[_0x42d9e7(0x1a1)]),_0x3a277b&&(this[_0x42d9e7(0x14b)][_0x42d9e7(0x199)]&&logger[_0x42d9e7(0x144)](_0x70eb3f['SlLfQ'])),this[_0x42d9e7(0x14b)]['accessibilityScanStarted']=this[_0x42d9e7(0x14b)]['shouldScanTestForAccessibility'],this[_0x42d9e7(0x14b)][_0x42d9e7(0x199)]&&logger[_0x42d9e7(0x144)](_0x70eb3f[_0x42d9e7(0x1a3)]);}}catch(_0x412253){logger[_0x42d9e7(0x14a)](_0x42d9e7(0x17f)+util[_0x42d9e7(0x136)](_0x412253));}_0x70eb3f[_0x42d9e7(0x12b)](_0x36a17d);})['then'](_0x4572a6);},'afterEach'(_0x3e0251){const _0x48ee79=a32_0x1fe5b0,_0x56f75c={'ipSAC':function(_0xb4edf9,_0x2fecde){return _0xb4edf9>_0x2fecde;},'vsDlT':function(_0x11e6c3,_0x59f1cc){return _0x11e6c3===_0x59f1cc;},'oMNbf':_0x48ee79(0x170),'ahlZt':_0x48ee79(0x13c),'JtIED':function(_0x4a39ef,_0x3f0e9b,_0x220e3e,_0x55d2ea){return _0x4a39ef(_0x3f0e9b,_0x220e3e,_0x55d2ea);},'NqEwf':_0x48ee79(0x132),'bAufY':function(_0x4d0318,_0x166020){return _0x4d0318!==_0x166020;},'vhShI':_0x48ee79(0x186),'MHzDl':function(_0x4f4b61,_0x580328,_0x52b801){return _0x4f4b61(_0x580328,_0x52b801);},'rYXyT':function(_0x2a73a7,_0x2809c0){return _0x2a73a7+_0x2809c0;},'Gnzmf':_0x48ee79(0x1a2),'UUmnP':_0x48ee79(0x14a),'KJHDJ':_0x48ee79(0x17d),'sZtQn':_0x48ee79(0x144),'gisTh':'isAccessibilityPlatform','qADfY':_0x48ee79(0x174),'vGbwU':_0x48ee79(0x162),'gUyZe':_0x48ee79(0x1a8),'xFYys':_0x48ee79(0x143),'kXQCA':function(_0x115dbf){return _0x115dbf();},'ImhHN':_0x48ee79(0x193),'pnrdK':function(_0x57dd36,_0x53dc90){return _0x57dd36>_0x53dc90;}},_0xd98339='browserstack internal helper hook';this[_0x48ee79(0x149)](0xfde8);const _0x18737b=async(_0x1e6cc9,_0x280136)=>{const _0x328088=_0x48ee79;await global[_0x328088(0x1a5)][0x0]['executeScript'](_0x328088(0x151)+_0x1e6cc9+_0x328088(0x158)+_0x280136+_0x328088(0x16b));};new Promise(async _0x18bcf3=>{const _0x3e3adf=_0x48ee79;try{_0x56f75c[_0x3e3adf(0x153)](global[_0x3e3adf(0x1a5)]['length'],0x1)&&(await global[_0x3e3adf(0x13e)](),global[_0x3e3adf(0x1a5)]['shift'](),global[_0x3e3adf(0x130)]=[],global['__sessionFailed']=![]);try{if(global['percy']&&_0x56f75c[_0x3e3adf(0x16d)](global['percyCaptureMode'],_0x56f75c[_0x3e3adf(0x184)])&&global['__drivers'][0x0]){const _0x2513a8=_0x56f75c['ipSAC'](global['capabilities'][_0x3e3adf(0x19f)],0x0)?!!global['capabilities'][0x0]['app']||!!global[_0x3e3adf(0x12d)][0x0][_0x56f75c[_0x3e3adf(0x141)]]:![],_0x1a76fa={};_0x1a76fa[_0x3e3adf(0x18f)]=_0x2513a8,await _0x56f75c[_0x3e3adf(0x176)](percyAutoCapture,global['__drivers'][0x0],_0x56f75c[_0x3e3adf(0x184)],_0x1a76fa);}}catch(_0x3c4a2c){logger[_0x3e3adf(0x193)](_0x3e3adf(0x134)+_0x3c4a2c);}!global[_0x3e3adf(0x17c)]&&(await global['__drivers'][0x0][_0x3e3adf(0x1a7)](_0x3e3adf(0x140)+JSON[_0x3e3adf(0x194)](this[_0x3e3adf(0x14b)][_0x3e3adf(0x185)]()[_0x3e3adf(0x133)](_0x56f75c['NqEwf']))+'}}'),global[_0x3e3adf(0x1a5)][0x0][_0x3e3adf(0x15a)]=!![]);const _0x367244=_0x56f75c[_0x3e3adf(0x198)](this['currentTest'][_0x3e3adf(0x135)],_0x56f75c['vhShI']);_0x367244?(global['__sessionFailed']=!![],global['__error_messages__']['push'](this[_0x3e3adf(0x14b)][_0x3e3adf(0x12c)][_0x3e3adf(0x13b)]),await _0x56f75c[_0x3e3adf(0x12f)](_0x18737b,JSON['stringify'](_0x56f75c[_0x3e3adf(0x1a4)](_0x56f75c['Gnzmf'],this[_0x3e3adf(0x14b)][_0x3e3adf(0x12c)][_0x3e3adf(0x13b)])),_0x56f75c[_0x3e3adf(0x150)])):await _0x56f75c[_0x3e3adf(0x12f)](_0x18737b,JSON['stringify'](_0x56f75c[_0x3e3adf(0x178)]),_0x56f75c['sZtQn']);}catch(_0x558091){logger['debug'](_0x3e3adf(0x187)+_0x558091);}try{if(this[_0x3e3adf(0x14b)][_0x3e3adf(0x189)]&&globals[_0x3e3adf(0x177)](_0x56f75c['gisTh'])&&globals[_0x3e3adf(0x177)](_0x56f75c['qADfY'])){logger[_0x3e3adf(0x144)](_0x56f75c[_0x3e3adf(0x19c)]);const _0x26dfe7={};_0x26dfe7[_0x3e3adf(0x137)]=this[_0x3e3adf(0x14b)][_0x3e3adf(0x172)],_0x26dfe7[_0x3e3adf(0x195)]=process[_0x3e3adf(0x15f)][testHubConstants[_0x3e3adf(0x159)][_0x3e3adf(0x18b)]],_0x26dfe7[_0x3e3adf(0x164)]=process['env'][testHubConstants[_0x3e3adf(0x159)][_0x3e3adf(0x15e)]];const _0x5503c2=_0x26dfe7;logger[_0x3e3adf(0x193)](_0x3e3adf(0x161)+JSON[_0x3e3adf(0x194)](_0x5503c2)),logger['debug'](_0x56f75c['gUyZe']),logger[_0x3e3adf(0x193)](util[_0x3e3adf(0x136)](await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x3e3adf(0x14e)],{'method':global['browserstackSessionName']}))),await global[_0x3e3adf(0x1a5)][0x0][_0x3e3adf(0x171)](scripts[_0x3e3adf(0x154)],_0x5503c2),logger[_0x3e3adf(0x144)](_0x56f75c[_0x3e3adf(0x167)]);}}catch(_0x396002){logger[_0x3e3adf(0x14a)](_0x3e3adf(0x191)+this[_0x3e3adf(0x14b)][_0x3e3adf(0x185)]()+'.\x20Error\x20:',_0x396002);}try{try{if(_0x56f75c[_0x3e3adf(0x169)](shouldProcessEventForTesthub)){global[_0x3e3adf(0x1a5)][0x0]&&await _0x56f75c['MHzDl'](sendPlatformDetails,global[_0x3e3adf(0x1a5)][0x0],this[_0x3e3adf(0x14b)]?this['currentTest'][_0x3e3adf(0x172)]:null);if(_0x56f75c[_0x3e3adf(0x169)](isBrowserstackInfra)){const _0x3bf521=_0x3e3adf(0x183)+Date[_0x3e3adf(0x192)]();await _0x56f75c[_0x3e3adf(0x12f)](_0x18737b,JSON[_0x3e3adf(0x194)](_0x3bf521),_0x56f75c['ImhHN']);}}}catch(_0x28a412){logger[_0x3e3adf(0x193)](_0x3e3adf(0x155)+_0x28a412);}_0x56f75c['pnrdK'](global['__drivers'][0x0][_0x3e3adf(0x175)],0x0)&&await global[_0x3e3adf(0x13e)]();}catch(_0x541aa4){logger['debug'](_0x3e3adf(0x142)+_0x541aa4);}_0x56f75c['kXQCA'](_0x18bcf3);})['then'](()=>_0x3e0251());},'afterAll'(_0x236a3c){const _0x3ce275=a32_0x1fe5b0,_0x482559={'LWTsC':function(_0x5494cf){return _0x5494cf();}},_0xd3ca4c='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x5178c7=>{const _0x36fe18=a32_0x59b0;PerformanceTester['stopMonitoring'](),await global['driverCleanup'](),_0x482559[_0x36fe18(0x16a)](_0x5178c7);})[_0x3ce275(0x18d)](()=>_0x236a3c());}};
|
|
1
|
+
const a32_0x4248fc=a32_0x7d3c;(function(_0x21a7aa,_0x50800b){const _0x1e4ac7=a32_0x7d3c,_0x2aab17=_0x21a7aa();while(!![]){try{const _0x1a18a1=parseInt(_0x1e4ac7(0xd4))/0x1+parseInt(_0x1e4ac7(0xfe))/0x2*(-parseInt(_0x1e4ac7(0x148))/0x3)+parseInt(_0x1e4ac7(0x139))/0x4*(parseInt(_0x1e4ac7(0x132))/0x5)+parseInt(_0x1e4ac7(0xe9))/0x6+-parseInt(_0x1e4ac7(0x142))/0x7*(parseInt(_0x1e4ac7(0x103))/0x8)+-parseInt(_0x1e4ac7(0x125))/0x9*(-parseInt(_0x1e4ac7(0x135))/0xa)+parseInt(_0x1e4ac7(0x12f))/0xb*(parseInt(_0x1e4ac7(0x10a))/0xc);if(_0x1a18a1===_0x50800b)break;else _0x2aab17['push'](_0x2aab17['shift']());}catch(_0x223a40){_0x2aab17['push'](_0x2aab17['shift']());}}}(a32_0x23d5,0x2886b));const util=require(a32_0x4248fc(0x12d)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x4248fc(0xd9)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x4248fc(0x13b)),PerformanceTester=require('../../helpers/performance-tester'),scripts=require(a32_0x4248fc(0x12c)),globals=require(a32_0x4248fc(0xe8)),logger=require(a32_0x4248fc(0x14a))[a32_0x4248fc(0x117)],{shouldProcessEventForTesthub}=require(a32_0x4248fc(0x114)),testHubConstants=require(a32_0x4248fc(0x120));function a32_0x7d3c(_0x36fac1,_0x5a3e9c){const _0x23d581=a32_0x23d5();return a32_0x7d3c=function(_0x7d3cc0,_0x3ade9c){_0x7d3cc0=_0x7d3cc0-0xce;let _0x59ca59=_0x23d581[_0x7d3cc0];return _0x59ca59;},a32_0x7d3c(_0x36fac1,_0x5a3e9c);}function a32_0x23d5(){const _0x1f9c3e=['ZMErn','zjvOp','owPoc','16xYlKGT','EPPOL','../../helpers/helper','executeScript','state','accessibilityScanStarted','HDhMx','eBXaL','Passed','7PLJJwp','stringify','Failed:\x20','hmPiU','YnrRN','message','7431qSVDII','failed','../../helpers/logger','performScan','then','https:','browserstackSessionName','thTestRunUuid','REQpQ','__sessionFailed','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','testcase','http:','21661bCRXUy','session_','getGlobal','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','cHzpw','./test-observability/mochaUtils','gAyNc','error','ypreL','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','hmMtA','testAnalyticsId','LwVbQ','saveTestResults','YhkYy','Kjjay','ilBmE','thJwtToken','timeout','XugLR','../../helpers/globals','1069656pPKUxn','push','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','BqGfv','shouldScanTestForAccessibility','debug','ObservabilitySync:','.\x20Error\x20:','BVnql','info','sessionNameSet__','JmqoB','stopMonitoring','__error_messages__','\x20|\x20','setGlobal','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','percy','__drivers','capabilities','\x22}}','22BUYEYI','length','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','kFaDo','app','1611728roUGqz','ENV_VAR','LBTjp','mochaHooks','driverCleanup','bcwea','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','157332DZIPXe','now','WXslx','RvTwx','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20',',\x22level\x22:\x20\x22','appium:app','quitCount_','initQuit','env','../../helpers/testhub/utils','executeAsyncScript','arbMr','winstonLogger','isAccessibilityPlatform','BROWSERSTACK_TESTHUB_JWT','gRvbL','join','shift','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','__skipSessionName','cAyzu','../../helpers/testhub/constants','qRMzB','kfedP','bstackA11yShouldScan','protocol','4779Ltmbmk','currentTest','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','err','Automate\x20test\x20case\x20execution\x20has\x20started.','BROWSERSTACK_TESTHUB_UUID','OIASo','../../helpers/accessibility-automation/scripts','util','GBRdv','66bWyuMR','\x20-\x20','titlePath','34285bgozpU','thBuildUuid','format','1670XCyrEu'];a32_0x23d5=function(){return _0x1f9c3e;};return a32_0x23d5();}exports[a32_0x4248fc(0x106)]={'beforeAll'(){const _0x28989c=a32_0x4248fc,_0xf8b2e4={'qRMzB':function(_0x36ae83,_0x1d0093,_0x34bc73,_0x49f219){return _0x36ae83(_0x1d0093,_0x34bc73,_0x49f219);},'kfedP':_0x28989c(0x149),'zBLWT':_0x28989c(0xf7),'GBRdv':function(_0x2cb79a,_0x3f55bc,_0x14ab02){return _0x2cb79a(_0x3f55bc,_0x14ab02);},'gAyNc':'passed','ypreL':function(_0x42909c){return _0x42909c();},'Kjjay':function(_0x3bd17f,_0x1ea5b4,_0x4a2be8){return _0x3bd17f(_0x1ea5b4,_0x4a2be8);}};PerformanceTester['startMonitoring']();const _0xed0ef3='browserstack internal helper hook';global[_0x28989c(0xf6)]=[],global[_0x28989c(0xd0)]=![],global['driverCleanup']=async()=>{const _0x54e67c=_0x28989c;let _0x52767c=![];try{await global[_0x54e67c(0xfb)][0x0][_0x54e67c(0xd5)],_0x52767c=!![],global['__sessionFailed']?await _0xf8b2e4[_0x54e67c(0x121)](markSessionStatus,global[_0x54e67c(0xfb)][0x0],_0xf8b2e4[_0x54e67c(0x122)],global[_0x54e67c(0xf6)][_0x54e67c(0x11b)](_0xf8b2e4['zBLWT'])):await _0xf8b2e4[_0x54e67c(0x12e)](markSessionStatus,global[_0x54e67c(0xfb)][0x0],_0xf8b2e4[_0x54e67c(0xda)]);}catch(_0x93a8cb){logger[_0x54e67c(0xee)](_0x54e67c(0xdd)+_0x93a8cb);}global[_0x54e67c(0xf6)]=[],global[_0x54e67c(0xd0)]=![];if(_0x52767c)try{try{_0xf8b2e4[_0x54e67c(0xdc)](shouldProcessEventForTesthub)&&(global[_0x54e67c(0xfb)][0x0]&&await _0xf8b2e4[_0x54e67c(0xe3)](sendPlatformDetails,global[_0x54e67c(0xfb)][0x0],this[_0x54e67c(0x126)]?this[_0x54e67c(0x126)]['testAnalyticsId']:null));}catch(_0x2f0deb){logger[_0x54e67c(0xee)](_0x54e67c(0x127)+_0x2f0deb);}await global['__drivers'][0x0][_0x54e67c(0x112)]();}catch(_0x51dd83){logger[_0x54e67c(0xee)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x51dd83);}};},'beforeEach'(_0x5b22b4){const _0x86c0fe=a32_0x4248fc,_0x20d138={'BVnql':function(_0xa4b6e3,_0xd11c6f){return _0xa4b6e3>_0xd11c6f;},'REQpQ':_0x86c0fe(0x130),'EPPOL':function(_0x3dcf2a,_0x6d634f,_0x4f2b73){return _0x3dcf2a(_0x6d634f,_0x4f2b73);},'hmPiU':_0x86c0fe(0x123),'JmqoB':function(_0x17a642){return _0x17a642();},'owPoc':function(_0x1c1346,_0x5e5fe0){return _0x1c1346>_0x5e5fe0;},'gRvbL':_0x86c0fe(0x118),'XugLR':function(_0x4b8f13,_0x53841c){return _0x4b8f13===_0x53841c;},'srNpz':_0x86c0fe(0xd3),'arbMr':function(_0x350d89,_0xd28604){return _0x350d89===_0xd28604;},'cAyzu':_0x86c0fe(0x14d),'sTfTu':_0x86c0fe(0xeb),'zjvOp':_0x86c0fe(0x129),'WCaoy':function(_0x3028ae){return _0x3028ae();}};new Promise(async _0xd83299=>{const _0x4d0e9a=_0x86c0fe,_0x1e9713='browserstack internal helper hook';let _0x4e76b9=!![];try{_0x20d138[_0x4d0e9a(0xf1)](global['__drivers'][_0x4d0e9a(0xff)],0x1)&&(await global['driverCleanup'](),global[_0x4d0e9a(0xfb)][_0x4d0e9a(0x11c)]()),_0x20d138[_0x4d0e9a(0xf1)](global[_0x4d0e9a(0xfb)][0x0][_0x4d0e9a(0x111)],0x0)&&(_0x4e76b9=![],await global['driverCleanup']());}catch(_0xeaaa3e){logger[_0x4d0e9a(0xee)](_0x4d0e9a(0x109)+_0xeaaa3e);}try{Array['isArray'](global[_0x4d0e9a(0xfb)])&&global[_0x4d0e9a(0xfb)][0x0]&&(global[_0x4d0e9a(0xfb)][0x0][_0x4d0e9a(0x14e)]=this[_0x4d0e9a(0x126)][_0x4d0e9a(0x131)]()[_0x4d0e9a(0x11b)](_0x20d138[_0x4d0e9a(0xcf)])),global[_0x4d0e9a(0x14e)]=this[_0x4d0e9a(0x126)][_0x4d0e9a(0x131)]()[_0x4d0e9a(0x11b)](_0x20d138[_0x4d0e9a(0xcf)]);}catch(_0xe8ac12){logger[_0x4d0e9a(0xee)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0xe8ac12);}this[_0x4d0e9a(0x126)][_0x4d0e9a(0xed)]=_0x20d138[_0x4d0e9a(0x13a)](shouldScanTestForAccessibility,this[_0x4d0e9a(0x126)]['titlePath'](),!![]),globals[_0x4d0e9a(0xf8)](_0x20d138[_0x4d0e9a(0x145)],this['currentTest']['shouldScanTestForAccessibility']),this['currentTest'][_0x4d0e9a(0x13e)]=!![];if(_0x20d138[_0x4d0e9a(0xf4)](isAccessibilityAutomationSession)&&_0x4e76b9&&Array['isArray'](global['__drivers'])&&_0x20d138[_0x4d0e9a(0x138)](global[_0x4d0e9a(0xfb)][_0x4d0e9a(0xff)],0x0)&&globals[_0x4d0e9a(0xd6)](_0x20d138[_0x4d0e9a(0x11a)]))try{const _0x462150=await global[_0x4d0e9a(0xfb)][0x0][_0x4d0e9a(0xd5)];if(_0x462150){let _0x2b29f1=!![];const _0x37a6b4=await global[_0x4d0e9a(0xfb)][0x0]['getCurrentUrl']();let _0x5cfffe;try{_0x5cfffe=new URL(_0x37a6b4);}catch(_0x59d5be){_0x2b29f1=![];}_0x2b29f1=_0x20d138[_0x4d0e9a(0xe7)](_0x5cfffe[_0x4d0e9a(0x124)],_0x20d138['srNpz'])||_0x20d138[_0x4d0e9a(0x116)](_0x5cfffe['protocol'],_0x20d138[_0x4d0e9a(0x11f)]),_0x2b29f1&&(this[_0x4d0e9a(0x126)]['shouldScanTestForAccessibility']&&logger[_0x4d0e9a(0xf2)](_0x20d138['sTfTu'])),this[_0x4d0e9a(0x126)][_0x4d0e9a(0x13e)]=this[_0x4d0e9a(0x126)][_0x4d0e9a(0xed)],this['currentTest'][_0x4d0e9a(0xed)]&&logger[_0x4d0e9a(0xf2)](_0x20d138[_0x4d0e9a(0x137)]);}}catch(_0x403ce7){logger[_0x4d0e9a(0xdb)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x4d0e9a(0x134)](_0x403ce7));}_0x20d138['WCaoy'](_0xd83299);})[_0x86c0fe(0x14c)](_0x5b22b4);},'afterEach'(_0x5ba0ff){const _0x177baa=a32_0x4248fc,_0x983c31={'RvTwx':function(_0x5a581e,_0x45b6b4){return _0x5a581e>_0x45b6b4;},'WXslx':function(_0x239f1b,_0x4b261){return _0x239f1b===_0x4b261;},'ZMErn':_0x177baa(0xd2),'xVZit':_0x177baa(0x110),'bcwea':function(_0x5ec363,_0x5eadbf,_0x2843f3,_0x38626c){return _0x5ec363(_0x5eadbf,_0x2843f3,_0x38626c);},'eBXaL':'\x20-\x20','WLzQi':function(_0x2643aa,_0x13be37){return _0x2643aa!==_0x13be37;},'qzqlj':'passed','HDhMx':function(_0x306bc3,_0x1a00a2,_0x5dcf73){return _0x306bc3(_0x1a00a2,_0x5dcf73);},'LBTjp':function(_0x4f6d80,_0x4071a3){return _0x4f6d80+_0x4071a3;},'OIASo':_0x177baa(0x144),'YhkYy':_0x177baa(0xdb),'BqGfv':function(_0x32cc5e,_0x95a032,_0x29f3b1){return _0x32cc5e(_0x95a032,_0x29f3b1);},'ilBmE':_0x177baa(0x141),'aoUUW':_0x177baa(0xf2),'YAmHX':_0x177baa(0x118),'aqDdU':_0x177baa(0x123),'YnrRN':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','hmMtA':'Performing\x20scan\x20before\x20saving\x20results','IMtPv':_0x177baa(0xd7),'kFaDo':function(_0x3f330e){return _0x3f330e();},'UYRqU':function(_0x1bb1a5){return _0x1bb1a5();},'cHzpw':_0x177baa(0xee),'LWCMP':function(_0x3a1fd9,_0x4f9ba1){return _0x3a1fd9>_0x4f9ba1;},'WoQBe':function(_0x2a9d23){return _0x2a9d23();}},_0xf0a38c='browserstack internal helper hook';this[_0x177baa(0xe6)](0xfde8);const _0x5c792e=async(_0x4d7f74,_0x3f6ad0)=>{const _0x1c69f6=_0x177baa;await global[_0x1c69f6(0xfb)][0x0][_0x1c69f6(0x13c)](_0x1c69f6(0xf9)+_0x4d7f74+_0x1c69f6(0x10f)+_0x3f6ad0+_0x1c69f6(0xfd));};new Promise(async _0x2cab40=>{const _0x34367e=_0x177baa;try{_0x983c31[_0x34367e(0x10d)](global[_0x34367e(0xfb)]['length'],0x1)&&(await global['driverCleanup'](),global[_0x34367e(0xfb)][_0x34367e(0x11c)](),global['__error_messages__']=[],global[_0x34367e(0xd0)]=![]);try{if(global[_0x34367e(0xfa)]&&_0x983c31[_0x34367e(0x10c)](global['percyCaptureMode'],_0x983c31[_0x34367e(0x136)])&&global['__drivers'][0x0]){const _0x11fe36=_0x983c31[_0x34367e(0x10d)](global[_0x34367e(0xfc)]['length'],0x0)?!!global['capabilities'][0x0][_0x34367e(0x102)]||!!global['capabilities'][0x0][_0x983c31['xVZit']]:![],_0x569b31={};_0x569b31['app']=_0x11fe36,await _0x983c31[_0x34367e(0x108)](percyAutoCapture,global[_0x34367e(0xfb)][0x0],_0x983c31['ZMErn'],_0x569b31);}}catch(_0x2bb488){logger[_0x34367e(0xee)](_0x34367e(0x100)+_0x2bb488);}!global[_0x34367e(0x11e)]&&(await global['__drivers'][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x34367e(0x143)](this[_0x34367e(0x126)][_0x34367e(0x131)]()[_0x34367e(0x11b)](_0x983c31[_0x34367e(0x140)]))+'}}'),global[_0x34367e(0xfb)][0x0][_0x34367e(0xf3)]=!![]);const _0x20d139=_0x983c31['WLzQi'](this[_0x34367e(0x126)][_0x34367e(0x13d)],_0x983c31['qzqlj']);_0x20d139?(global[_0x34367e(0xd0)]=!![],global[_0x34367e(0xf6)][_0x34367e(0xea)](this[_0x34367e(0x126)][_0x34367e(0x128)][_0x34367e(0x147)]),await _0x983c31[_0x34367e(0x13f)](_0x5c792e,JSON[_0x34367e(0x143)](_0x983c31[_0x34367e(0x105)](_0x983c31[_0x34367e(0x12b)],this[_0x34367e(0x126)]['err']['message'])),_0x983c31[_0x34367e(0xe2)])):await _0x983c31[_0x34367e(0xec)](_0x5c792e,JSON[_0x34367e(0x143)](_0x983c31[_0x34367e(0xe4)]),_0x983c31['aoUUW']);}catch(_0x4301e3){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x4301e3);}try{if(this[_0x34367e(0x126)]['accessibilityScanStarted']&&globals['getGlobal'](_0x983c31['YAmHX'])&&globals[_0x34367e(0xd6)](_0x983c31['aqDdU'])){logger['info'](_0x983c31[_0x34367e(0x146)]);const _0x566ed7={};_0x566ed7[_0x34367e(0xce)]=this[_0x34367e(0x126)][_0x34367e(0xdf)],_0x566ed7[_0x34367e(0x133)]=process['env'][testHubConstants[_0x34367e(0x104)][_0x34367e(0x12a)]],_0x566ed7[_0x34367e(0xe5)]=process[_0x34367e(0x113)][testHubConstants['ENV_VAR'][_0x34367e(0x119)]];const _0x3b2505=_0x566ed7;logger[_0x34367e(0xee)](_0x34367e(0xd1)+JSON[_0x34367e(0x143)](_0x3b2505)),logger[_0x34367e(0xee)](_0x983c31[_0x34367e(0xde)]),logger[_0x34367e(0xee)](util[_0x34367e(0x134)](await global[_0x34367e(0xfb)][0x0][_0x34367e(0x115)](scripts[_0x34367e(0x14b)],{'method':global[_0x34367e(0x14e)]}))),await global['__drivers'][0x0][_0x34367e(0x115)](scripts[_0x34367e(0xe1)],_0x3b2505),logger[_0x34367e(0xf2)](_0x983c31['IMtPv']);}}catch(_0xcde6a2){logger['error'](_0x34367e(0x10e)+this[_0x34367e(0x126)][_0x34367e(0x131)]()+_0x34367e(0xf0),_0xcde6a2);}try{try{if(_0x983c31[_0x34367e(0x101)](shouldProcessEventForTesthub)){global[_0x34367e(0xfb)][0x0]&&await _0x983c31[_0x34367e(0xec)](sendPlatformDetails,global[_0x34367e(0xfb)][0x0],this[_0x34367e(0x126)]?this[_0x34367e(0x126)]['testAnalyticsId']:null);if(_0x983c31['UYRqU'](isBrowserstackInfra)){const _0x174665=_0x34367e(0xef)+Date[_0x34367e(0x10b)]();await _0x983c31['BqGfv'](_0x5c792e,JSON[_0x34367e(0x143)](_0x174665),_0x983c31[_0x34367e(0xd8)]);}}}catch(_0x40ff43){logger['debug'](_0x34367e(0x11d)+_0x40ff43);}_0x983c31['LWCMP'](global['__drivers'][0x0]['quitCount_'],0x0)&&await global[_0x34367e(0x107)]();}catch(_0x8686eb){logger[_0x34367e(0xee)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x8686eb);}_0x983c31['WoQBe'](_0x2cab40);})[_0x177baa(0x14c)](()=>_0x5ba0ff());},'afterAll'(_0x140635){const _0x2412a0=a32_0x4248fc,_0x3247c4={'LwVbQ':function(_0x463b8d){return _0x463b8d();}},_0x29f3a1='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x2a5e01=>{const _0x196336=a32_0x7d3c;PerformanceTester[_0x196336(0xf5)](),await global[_0x196336(0x107)](),_0x3247c4[_0x196336(0xe0)](_0x2a5e01);})[_0x2412a0(0x14c)](()=>_0x140635());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function
|
|
2
|
+
'use strict';function a33_0x532c(_0x461573,_0x33b299){const _0x2edbcb=a33_0x2edb();return a33_0x532c=function(_0x532c80,_0x1bad2e){_0x532c80=_0x532c80-0x99;let _0x40fb70=_0x2edbcb[_0x532c80];return _0x40fb70;},a33_0x532c(_0x461573,_0x33b299);}const a33_0x52848d=a33_0x532c;function a33_0x2edb(){const _0x2baf11=['platform','now','unlinkSync','exports','VXhHl','length','10PFibnL','../../helpers/BrowserStackSetup','findIndex','winstonLogger','mergeDeep','existsSync','rSWrp','961500ocYmPq','selenium','desiredCapabilities','HaZal','TArjs','split','Deleting\x20','fKZci','host','asEFf','2840886HXvkDT','cwd','9615YJrslp','nightwatch-browserstack.json','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','hGgCt','../../helpers/logger','info','ceNZe','stringify','config','TKBZI','env','start_process','writeFileSync','../utils/constants','nightwatch.cmd','push','forEach','webdriver','nkUMy','close','10239218tPXSgn','XiqPb','getPlatformName','splice','test_settings','91357PdHkGV','slice','nightwatch.conf.js','LtYij','port','102REeQYr','modifyBrowserStackCaps','1108503SkcEDP','24yTpMzA','bAmZD','--config','--env','1588rDuLcd','platforms','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','useW3C','fhPLQ','inherit','join','trim','path','jImuO','child_process','auGNa','hub.browserstack.com','filter','Cswss','uPucW','17395HwoGrj','Bcbtv'];a33_0x2edb=function(){return _0x2baf11;};return a33_0x2edb();}(function(_0x3cadc2,_0x3588f4){const _0x11c269=a33_0x532c,_0x4e7d15=_0x3cadc2();while(!![]){try{const _0x2b88f0=-parseInt(_0x11c269(0x99))/0x1*(parseInt(_0x11c269(0xd2))/0x2)+parseInt(_0x11c269(0xa8))/0x3+parseInt(_0x11c269(0xd9))/0x4*(-parseInt(_0x11c269(0xb4))/0x5)+parseInt(_0x11c269(0xb2))/0x6+parseInt(_0x11c269(0xcd))/0x7+-parseInt(_0x11c269(0xd5))/0x8*(-parseInt(_0x11c269(0xd4))/0x9)+parseInt(_0x11c269(0xa1))/0xa*(parseInt(_0x11c269(0xc8))/0xb);if(_0x2b88f0===_0x3588f4)break;else _0x4e7d15['push'](_0x4e7d15['shift']());}catch(_0x3b2cf9){_0x4e7d15['push'](_0x4e7d15['shift']());}}}(a33_0x2edb,0x6f85b));const fs=require('fs'),path=require(a33_0x52848d(0xe1)),{spawn}=require(a33_0x52848d(0xe3)),logger=require(a33_0x52848d(0xb8))[a33_0x52848d(0xa4)],{default:BrowserStackSetup}=require(a33_0x52848d(0xa2)),helper=require('../../helpers/helper'),constants=require(a33_0x52848d(0xc1)),getUserNightwatchConfigs=(_0x5c1d56,_0x80253e)=>{const _0x9773a8=a33_0x52848d,_0x5b29f2={'rSWrp':_0x9773a8(0xcf),'auGNa':'nightwatch.json','ceNZe':function(_0x459c47,_0x55c355){return _0x459c47(_0x55c355);},'bAmZD':_0x9773a8(0xb6)};let _0x4d4190=null,_0x28c53c={};const _0x34a2b3=_0x80253e[_0x9773a8(0xa3)](_0x35d56d=>_0x35d56d===_0x9773a8(0xd7));if(!helper['isUndefined'](_0x5c1d56[_0x9773a8(0xbc)])&&fs['existsSync'](path[_0x9773a8(0xdf)](process[_0x9773a8(0xb3)](),_0x5c1d56[_0x9773a8(0xbc)])))_0x4d4190=path[_0x9773a8(0xdf)](process[_0x9773a8(0xb3)](),_0x5c1d56[_0x9773a8(0xbc)]),_0x80253e[_0x9773a8(0xcb)](_0x34a2b3,0x2);else{if(fs[_0x9773a8(0xa6)](path[_0x9773a8(0xdf)](process[_0x9773a8(0xb3)](),_0x5b29f2['rSWrp'])))_0x4d4190=path[_0x9773a8(0xdf)](process[_0x9773a8(0xb3)](),_0x5b29f2[_0x9773a8(0xa7)]);else fs[_0x9773a8(0xa6)](path[_0x9773a8(0xdf)](process[_0x9773a8(0xb3)](),_0x5b29f2[_0x9773a8(0xe4)]))&&(_0x4d4190=path['join'](process['cwd'](),_0x5b29f2['auGNa']));}return _0x4d4190?(logger[_0x9773a8(0xb9)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x4d4190),_0x28c53c=_0x5b29f2[_0x9773a8(0xba)](require,_0x4d4190)):logger[_0x9773a8(0xb9)](_0x5b29f2[_0x9773a8(0xd6)]),_0x28c53c;},removeExistingEnvs=_0x52f7a9=>{const _0x34cb0e=a33_0x52848d,_0x2e5136={};_0x2e5136[_0x34cb0e(0xd0)]=function(_0x14afad,_0x54957b){return _0x14afad>_0x54957b;},_0x2e5136[_0x34cb0e(0xb7)]=function(_0x35473a,_0x21d235){return _0x35473a>_0x21d235;};const _0x4fd4cf=_0x2e5136;let _0x1465a3=_0x52f7a9[_0x34cb0e(0xa3)](_0x25bddf=>_0x25bddf===_0x34cb0e(0xd8));_0x4fd4cf['LtYij'](_0x1465a3,-0x1)&&_0x52f7a9[_0x34cb0e(0xcb)](_0x1465a3,0x2),_0x1465a3=_0x52f7a9[_0x34cb0e(0xa3)](_0x3547a1=>_0x3547a1==='-e'),_0x4fd4cf['hGgCt'](_0x1465a3,-0x1)&&_0x52f7a9[_0x34cb0e(0xcb)](_0x1465a3,0x2);};function run(_0x4e2d03,_0x5e4ccd){const _0x284a29=a33_0x52848d,_0x1b24d4={'asEFf':'nightwatch','TArjs':function(_0x537706,_0x225415){return _0x537706+_0x225415;},'dJxKq':_0x284a29(0xcc),'fKZci':function(_0x36a339,_0x1668d8,_0x56ce57){return _0x36a339(_0x1668d8,_0x56ce57);},'mGwik':_0x284a29(0xe5),'BySoc':_0x284a29(0xdb),'jImuO':function(_0x13afac,_0x303008){return _0x13afac===_0x303008;},'uPucW':_0x284a29(0xb5),'Cswss':function(_0x263343,_0x41364c){return _0x263343(_0x41364c);},'VXhHl':function(_0x156987,_0x3ff9ad,_0x36897b,_0x4b798a){return _0x156987(_0x3ff9ad,_0x36897b,_0x4b798a);},'fhPLQ':_0x284a29(0xc2),'nkUMy':_0x284a29(0xd7),'XiqPb':_0x284a29(0xd8),'TnMYq':_0x284a29(0xde),'Bcbtv':_0x284a29(0xc7)},_0x51225f=new BrowserStackSetup(_0x4e2d03);if(!_0x51225f[_0x284a29(0xbc)])return;const _0xc3069d=_0x1b24d4[_0x284a29(0xaf)](getUserNightwatchConfigs,_0x4e2d03,_0x5e4ccd),_0x5594ac={};_0x5594ac[_0x284a29(0xbf)]=![];const _0x16fc18={};_0x16fc18[_0x284a29(0xb0)]=_0x1b24d4['mGwik'],_0x16fc18[_0x284a29(0xd1)]=0x1bb;const _0x32f1cb={};_0x32f1cb[_0x284a29(0xc5)]=_0x5594ac,_0x32f1cb[_0x284a29(0xa9)]=_0x16fc18;const _0x2d186b=_0x32f1cb;logger[_0x284a29(0xb9)](_0x1b24d4['BySoc']);const _0x115eaf={..._0xc3069d},_0x4a8481=_0x115eaf,_0x1f0911=helper[_0x284a29(0xdc)](_0x51225f['config']),_0x53c56c=[];_0x51225f[_0x284a29(0xbc)][_0x284a29(0xda)][_0x284a29(0xc4)]((_0x598907,_0x16eb9d)=>{const _0x413e0d=_0x284a29;_0x1f0911?_0x53c56c[_0x413e0d(0xc3)](helper['modifyBrowserStackW3CCaps'](_0x51225f['config'],_0x1b24d4[_0x413e0d(0xb1)],_0x16eb9d)):_0x53c56c[_0x413e0d(0xc3)](helper[_0x413e0d(0xd3)](_0x51225f['config'],_0x1b24d4[_0x413e0d(0xb1)],_0x16eb9d));});const _0x5609ef={},_0x3a1ea2=[];_0x4e2d03[_0x284a29(0xbe)]=_0x4e2d03['env']||_0x4e2d03['e'];const _0x477e98=_0x4e2d03[_0x284a29(0xbe)]?_0x4e2d03[_0x284a29(0xbe)][_0x284a29(0xe0)]()[_0x284a29(0xad)](',')['map'](_0x43404f=>_0x43404f[_0x284a29(0xe0)]())[_0x284a29(0xe6)](_0x2a3b2e=>_0x2a3b2e!==''):[''];_0x1b24d4[_0x284a29(0xe2)](_0x477e98[_0x284a29(0xa0)],0x0)&&_0x477e98['push']('');_0x477e98['forEach'](_0x232482=>{const _0x8d1731={'HaZal':function(_0x5eddd5,_0x25c536){const _0x3726b2=a33_0x532c;return _0x1b24d4[_0x3726b2(0xac)](_0x5eddd5,_0x25c536);},'TKBZI':_0x1b24d4['dJxKq']};_0x53c56c['forEach'](_0x163e1d=>{const _0x498aeb=a33_0x532c;let _0x254708=_0x8d1731[_0x498aeb(0xab)](helper[_0x498aeb(0xca)](_0x163e1d,'_'),'_'+Date[_0x498aeb(0x9c)]());_0x232482&&(_0x254708+='_'+_0x232482);if(_0x232482&&(!_0xc3069d[_0x8d1731[_0x498aeb(0xbd)]]||!_0xc3069d[_0x8d1731[_0x498aeb(0xbd)]][_0x232482]))return;const _0x42c1e3={..._0x2d186b};_0x42c1e3[_0x498aeb(0xaa)]=_0x163e1d;const _0x21b749=_0x42c1e3;_0x5609ef[_0x254708]=_0x232482?helper[_0x498aeb(0xa5)](_0xc3069d[_0x8d1731['TKBZI']][_0x232482],_0x21b749):_0x21b749,_0x3a1ea2[_0x498aeb(0xc3)](_0x254708);});});!_0x4a8481[_0x284a29(0xcc)]&&(_0x4a8481['test_settings']={});_0x4a8481['test_settings']={..._0x4a8481[_0x284a29(0xcc)],..._0x5609ef};const _0xe8dc4=path[_0x284a29(0xdf)](__dirname,_0x1b24d4[_0x284a29(0xe8)]);fs[_0x284a29(0xc0)](_0xe8dc4,JSON[_0x284a29(0xbb)](_0x4a8481)),_0x1b24d4[_0x284a29(0xe7)](removeExistingEnvs,_0x5e4ccd);const _0x3bbe9c=_0x1b24d4[_0x284a29(0x9f)](spawn,/^win/['test'](process[_0x284a29(0x9b)])?_0x1b24d4[_0x284a29(0xdd)]:_0x1b24d4['asEFf'],[_0x1b24d4[_0x284a29(0xc6)],_0xe8dc4,..._0x5e4ccd[_0x284a29(0xce)](0x1),_0x1b24d4[_0x284a29(0xc9)],_0x3a1ea2[_0x284a29(0xdf)](',')],{'stdio':_0x1b24d4['TnMYq']});_0x3bbe9c['on'](_0x1b24d4[_0x284a29(0x9a)],async _0xee13c3=>{const _0x2a038f=_0x284a29;logger['debug']('child\x20process\x20exited\x20with\x20code\x20'+_0xee13c3),logger[_0x2a038f(0xb9)](_0x2a038f(0xae)+_0xe8dc4),fs[_0x2a038f(0x9d)](_0xe8dc4);});}module[a33_0x52848d(0x9e)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a34_0x118c(){const _0x49d74b=['chrome','browserStackExecuteDriver','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','(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','replace','browser_version','deviceName','bstackSdkArgs','21590XGlJyL','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','jpkQJ','project','kadQX','accessibilityOptions.authToken','21672bXIgdo','accessibilityOptions','../../helpers/accessibility-automation/scripts','pXlRf','190Bkpiwo','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','use','kRIAf','lzVgK','browserName','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','wprjZ','WebDriver','latest','FsehD','BS_A11Y_JWT','44491awtbTM','wsEndpoint','mafkL','KNFnv','evaluate','zAJWN','xuAlk','77URqjed','Bvlck','performScan','3764tXrrUY','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','method','getAccessibilityResultsSummary','55CmAPjn','iVhus','debug','../../helpers/logger','mqBXt','constructor','QFExR','currentTest','playwright-chromium','Playwright','util','OHtct','stringify','accessibilityOptions.scannerVersion','browserStackEvaluate','oRFvN','6qyMRZw','OeMNf','ijXtX','894732ZdtNCl','AObvj','isJiv','LsIkh','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','testInfo','browserstack.accessibility','scannerProcessingTimeout','vOLQc','processAccessibilityCaps','1832tDuvrw','riAsI','xcAlg','includeIssueType','927xGVXAG','needsReview','executeScript','nNlZz','accessibilityPlatform','No\x20accessibility\x20results\x20were\x20found.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','name','winstonLogger','MzCbu','DYiOI','warn','env','wcagVersion','358458doqsKp','executeAsyncScript','KHzlj','(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','bestPractice','../../helpers/accessibility-automation/helper','iFYUd','browser','../../helpers/helper','platformValidation','format','No\x20summaryResults\x20found.','EulnV','VIyCH'];a34_0x118c=function(){return _0x49d74b;};return a34_0x118c();}const a34_0x21f1ee=a34_0x2b73;(function(_0x1f7e1f,_0x1d4185){const _0x5dd158=a34_0x2b73,_0xebfb20=_0x1f7e1f();while(!![]){try{const _0x2a5a7f=parseInt(_0x5dd158(0xf8))/0x1*(-parseInt(_0x5dd158(0x116))/0x2)+parseInt(_0x5dd158(0xe8))/0x3+parseInt(_0x5dd158(0x102))/0x4*(parseInt(_0x5dd158(0xec))/0x5)+parseInt(_0x5dd158(0xcb))/0x6+-parseInt(_0x5dd158(0xff))/0x7*(-parseInt(_0x5dd158(0x123))/0x8)+parseInt(_0x5dd158(0x127))/0x9*(-parseInt(_0x5dd158(0xe1))/0xa)+-parseInt(_0x5dd158(0x106))/0xb*(-parseInt(_0x5dd158(0x119))/0xc);if(_0x2a5a7f===_0x1d4185)break;else _0xebfb20['push'](_0xebfb20['shift']());}catch(_0x5261cc){_0xebfb20['push'](_0xebfb20['shift']());}}}(a34_0x118c,0x1dd57));const util=require(a34_0x21f1ee(0x110)),logger=require(a34_0x21f1ee(0x109))[a34_0x21f1ee(0xc5)],{isAccessibilityAutomationSession}=require(a34_0x21f1ee(0xd0)),{isUndefined}=require(a34_0x21f1ee(0xd3)),scripts=require(a34_0x21f1ee(0xea));function a34_0x2b73(_0x3ff435,_0xadcbc8){const _0x118cb1=a34_0x118c();return a34_0x2b73=function(_0x2b7315,_0xa3ae43){_0x2b7315=_0x2b7315-0xc1;let _0x1649c0=_0x118cb1[_0x2b7315];return _0x1649c0;},a34_0x2b73(_0x3ff435,_0xadcbc8);}exports[a34_0x21f1ee(0x114)]=async(_0xb709fd,_0x2bf3e5,_0x427f78={})=>{const _0x9f969d=a34_0x21f1ee,_0x207c3d={};_0x207c3d[_0x9f969d(0x124)]=_0x9f969d(0xe0);const _0x59ce93=_0x207c3d;return await _0xb709fd[_0x9f969d(0xfc)](_0x9f969d(0xce)+_0x2bf3e5[_0x9f969d(0xdd)](/arguments/g,_0x59ce93[_0x9f969d(0x124)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x9f969d(0x112)](_0x427f78)+')');},exports[a34_0x21f1ee(0xda)]=async(_0x1e4832,_0x1eb117,_0x336f8d={})=>{const _0x5869eb=a34_0x21f1ee,_0x3a8a76={};_0x3a8a76[_0x5869eb(0xd8)]=function(_0x59e686,_0x3938c4){return _0x59e686===_0x3938c4;},_0x3a8a76['KHzlj']=_0x5869eb(0xf4),_0x3a8a76[_0x5869eb(0xc7)]=_0x5869eb(0x10f),_0x3a8a76[_0x5869eb(0xf3)]=_0x5869eb(0xe0);const _0x473b2d=_0x3a8a76;if(_0x473b2d[_0x5869eb(0xd8)](_0x1e4832[_0x5869eb(0x10b)]['name'],_0x473b2d[_0x5869eb(0xcd)]))return await _0x1e4832[_0x5869eb(0xcc)](_0x1eb117,_0x336f8d);else{if(_0x473b2d[_0x5869eb(0xd8)](_0x1e4832['constructor'][_0x5869eb(0xc4)],_0x473b2d[_0x5869eb(0xc7)]))return await _0x1e4832[_0x5869eb(0x129)](_0x5869eb(0xdc)+_0x1eb117[_0x5869eb(0xdd)](/arguments/g,_0x473b2d[_0x5869eb(0xf3)])+_0x5869eb(0x11d)+JSON[_0x5869eb(0x112)](_0x336f8d)+')');}},exports['setAccessibilityCapabilities']=async _0x2351f8=>{const _0x2bc2c1=a34_0x21f1ee,_0x522887={};_0x522887['ERHZZ']='accessibilityOptions.wcagVersion',_0x522887[_0x2bc2c1(0xd1)]='accessibilityOptions.scannerProcessingTimeout',_0x522887[_0x2bc2c1(0xfe)]='accessibilityOptions.includeIssueType.bestPractice',_0x522887[_0x2bc2c1(0x10c)]='accessibilityOptions.includeIssueType.needsReview',_0x522887[_0x2bc2c1(0xeb)]=_0x2bc2c1(0xe7),_0x522887[_0x2bc2c1(0xf0)]=_0x2bc2c1(0x113);const _0x2a7e39=_0x522887;_0x2351f8[_0x2bc2c1(0xe9)]&&(_0x2351f8[_0x2bc2c1(0xe9)][_0x2bc2c1(0xca)]&&(_0x2351f8[_0x2a7e39['ERHZZ']]=_0x2351f8[_0x2bc2c1(0xe9)][_0x2bc2c1(0xca)]),_0x2351f8[_0x2bc2c1(0xe9)][_0x2bc2c1(0x120)]&&(_0x2351f8[_0x2a7e39[_0x2bc2c1(0xd1)]]=_0x2351f8[_0x2bc2c1(0xe9)][_0x2bc2c1(0x120)]),_0x2351f8[_0x2bc2c1(0xe9)][_0x2bc2c1(0x126)]&&(_0x2351f8[_0x2a7e39['xuAlk']]=_0x2351f8[_0x2bc2c1(0xe9)]['includeIssueType'][_0x2bc2c1(0xcf)],_0x2351f8[_0x2a7e39['QFExR']]=_0x2351f8[_0x2bc2c1(0xe9)][_0x2bc2c1(0x126)][_0x2bc2c1(0x128)]));const _0x4f3611=JSON['parse'](process[_0x2bc2c1(0xc9)][_0x2bc2c1(0xed)])['scannerVersion'];_0x2351f8[_0x2a7e39[_0x2bc2c1(0xeb)]]=process[_0x2bc2c1(0xc9)][_0x2bc2c1(0xf7)],_0x2351f8[_0x2a7e39[_0x2bc2c1(0xf0)]]=_0x4f3611,delete _0x2351f8['accessibilityOptions'];},exports['getAccessibilityResults']=async _0x2039d1=>{const _0x140091=a34_0x21f1ee,_0x3f14cc={};_0x3f14cc[_0x140091(0x107)]=_0x140091(0xc2),_0x3f14cc[_0x140091(0x125)]=_0x140091(0xe3);const _0x5c0bb1=_0x3f14cc;if(global[_0x140091(0xc1)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x2039d1,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x2039d1,scripts.getResults);return res;}catch{return logger['error'](_0x5c0bb1['iVhus']),[];}else return logger[_0x140091(0xc8)](_0x5c0bb1[_0x140091(0x125)]),[];},exports[a34_0x21f1ee(0x101)]=async(_0x49d12e,_0x40de3c='')=>{const _0x33a58=a34_0x21f1ee;if(global['accessibilityPlatform']){const _0x3aa6ec={};return _0x3aa6ec[_0x33a58(0x104)]=_0x40de3c,await exports['browserStackEvaluate'](_0x49d12e,scripts[_0x33a58(0x101)],_0x3aa6ec);}},exports[a34_0x21f1ee(0x105)]=async _0x5bc760=>{const _0x1ba294=a34_0x21f1ee,_0x69babd={};_0x69babd[_0x1ba294(0xef)]=_0x1ba294(0xd6),_0x69babd[_0x1ba294(0x121)]=_0x1ba294(0xe2);const _0xdcb8be=_0x69babd;if(global[_0x1ba294(0xc1)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x5bc760,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x5bc760,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x1ba294(0x108)](_0xdcb8be[_0x1ba294(0xef)]),{};}else return logger[_0x1ba294(0xc8)](_0xdcb8be['vOLQc']),{};},exports[a34_0x21f1ee(0xd4)]=async _0x3d5012=>{const _0x45fe97=a34_0x21f1ee,_0x45082f={'OHtct':function(_0x2e9df6,_0x467281){return _0x2e9df6!==_0x467281;},'isJiv':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','KNFnv':function(_0x2b0bc0,_0x390f5c){return _0x2b0bc0===_0x390f5c;},'wkhaN':_0x45fe97(0xd9),'EulnV':'playwright-chromium','LsIkh':_0x45fe97(0xc3),'zAJWN':function(_0x2a1d72,_0x13ed62){return _0x2a1d72(_0x13ed62);},'AObvj':_0x45fe97(0xf5),'ZtzlZ':function(_0x9934bb,_0x3d7d05){return _0x9934bb>_0x3d7d05;},'OeMNf':_0x45fe97(0xdb)};try{if(!_0x45082f[_0x45fe97(0x111)](_0x3d5012[_0x45fe97(0xdf)],''))return logger[_0x45fe97(0xc8)](_0x45082f[_0x45fe97(0x11b)]),![];const _0x20d091=_0x3d5012[_0x45fe97(0xd2)];if(!(_0x45082f[_0x45fe97(0xfb)](_0x20d091,_0x45082f['wkhaN'])||_0x45082f[_0x45fe97(0xfb)](_0x20d091,_0x45082f[_0x45fe97(0xd7)])))return logger[_0x45fe97(0xc8)](_0x45082f[_0x45fe97(0x11c)]),![];const _0x5d91c3=_0x45082f[_0x45fe97(0xfd)](parseInt,_0x3d5012['browser_version']);if(!(_0x45082f[_0x45fe97(0xfb)](_0x5d91c3,_0x45082f[_0x45fe97(0x11a)])||_0x45082f['ZtzlZ'](_0x5d91c3,0x5e)))return logger[_0x45fe97(0xc8)](_0x45082f[_0x45fe97(0x117)]),![];}catch(_0x539dcb){logger[_0x45fe97(0x108)](_0x45fe97(0xf2)+util[_0x45fe97(0xd5)](_0x539dcb));}return!![];},exports[a34_0x21f1ee(0x122)]=(_0x4b011a,_0x41582e,_0x45ff79)=>{const _0x59b9db=a34_0x21f1ee,_0x45331c={'mqBXt':function(_0x4383aa){return _0x4383aa();},'nNlZz':_0x59b9db(0x11f),'mafkL':function(_0x406552,_0x4ab37){return _0x406552===_0x4ab37;},'MzCbu':_0x59b9db(0xd9),'FsehD':function(_0x51c8ba,_0x50aec5){return _0x51c8ba===_0x50aec5;},'oRFvN':_0x59b9db(0x10e),'kadQX':_0x59b9db(0xc3),'ijXtX':_0x59b9db(0xf5),'UrRWZ':function(_0xd47095,_0x39d5b0){return _0xd47095>_0x39d5b0;},'mcBmX':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','jpkQJ':function(_0x45fc49,_0x2a9bf0){return _0x45fc49(_0x2a9bf0);},'Bvlck':_0x59b9db(0x103),'vyXOw':function(_0x5367bd,_0x3a3160){return _0x5367bd+_0x3a3160;},'SBZlg':function(_0x8bdc73,_0x41243a){return _0x8bdc73(_0x41243a);}};try{if(_0x45331c[_0x59b9db(0x10a)](isAccessibilityAutomationSession)){global[_0x59b9db(0xc1)]=!![];!_0x4b011a[_0x45331c[_0x59b9db(0x12a)]]&&(global[_0x59b9db(0xc1)]=![]);!(_0x45331c[_0x59b9db(0xfa)](_0x4b011a[_0x59b9db(0xf1)],_0x45331c[_0x59b9db(0xc6)])||_0x45331c[_0x59b9db(0xf6)](_0x4b011a[_0x59b9db(0xf1)],_0x45331c[_0x59b9db(0x115)]))&&(logger[_0x59b9db(0xc8)](_0x45331c[_0x59b9db(0xe6)]),global['accessibilityPlatform']=![]);!(_0x45331c[_0x59b9db(0xf6)](_0x4b011a[_0x59b9db(0xde)],_0x45331c[_0x59b9db(0x118)])||_0x45331c['UrRWZ'](_0x4b011a['browser_version'],0x5e))&&(logger[_0x59b9db(0xc8)](_0x45331c['mcBmX']),global[_0x59b9db(0xc1)]=![]);!_0x45331c[_0x59b9db(0xe4)](isUndefined,_0x4b011a[_0x59b9db(0xdf)])&&(logger[_0x59b9db(0xc8)](_0x45331c[_0x59b9db(0x100)]),global[_0x59b9db(0xc1)]=![]);if(!global['accessibilityPlatform']){_0x4b011a[_0x45331c[_0x59b9db(0x12a)]]=![];const _0x5bca0a=_0x45331c['vyXOw'](_0x41582e,_0x45331c['SBZlg'](encodeURIComponent,JSON['stringify'](_0x4b011a)));_0x45ff79&&(_0x45ff79[_0x59b9db(0x10d)][_0x59b9db(0x11e)]['project'][_0x59b9db(0xee)]['connectOptions'][_0x59b9db(0xf9)]=_0x5bca0a,_0x45ff79['workerInfo'][_0x59b9db(0xe5)][_0x59b9db(0xee)]['connectOptions'][_0x59b9db(0xf9)]=_0x5bca0a);}}}catch(_0x1f9dee){logger[_0x59b9db(0x108)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x59b9db(0xd5)](_0x1f9dee));}};
|
|
1
|
+
const a34_0x52a4e3=a34_0x44b6;function a34_0x26fd(){const _0x159603=['zpIDJ','use','(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','deviceName','../../helpers/accessibility-automation/helper','browserstack.accessibility','LWqFP','JBDbl','JqEAg','accessibilityOptions','warn','iyLqR','accessibilityOptions.includeIssueType.needsReview','ZuvxW','392180DxRLwR','connectOptions','browser','FViIu','accessibilityPlatform','playwright-chromium','project','vSVrd','../../helpers/logger','scannerVersion','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','../../helpers/accessibility-automation/scripts','228972YIARRW','zANAY','3861558AGNZoe','TFmaS','accessibilityOptions.includeIssueType.bestPractice','browserStackExecuteDriver','wDCZn','constructor','wcagVersion','rCdVG','getAccessibilityResults','3392fXCOEc','2897250AfFQLp','getAccessibilityResultsSummary','needsReview','OQUjl','yCQxc','currentTest','lvAPX','8435ZkXoXM','sjRGS','executeAsyncScript','WebDriver','debug','replace','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','HQKTP','ScVQM','accessibilityOptions.scannerProcessingTimeout','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','TnOkh','ZOplp','includeIssueType','winstonLogger','env','performScan','HIoot','1338CMXICV','parse','bstackSdkArgs','bestPractice','ENsIM','UfZqk','latest','scannerProcessingTimeout','browserStackEvaluate','accessibilityOptions.authToken','accessibilityOptions.scannerVersion','platformValidation','executeScript','XdUsN','util','ENhaA','browserName','SwEdX','chrome','CNNBg','No\x20accessibility\x20results\x20were\x20found.','BS_A11Y_JWT','accessibilityOptions.wcagVersion','browser_version','elYcz','2145265rbptnR','evaluate','stringify','NPYbo','VloBC','format','wsEndpoint','processAccessibilityCaps','398WNVglV','UCUKT','name'];a34_0x26fd=function(){return _0x159603;};return a34_0x26fd();}(function(_0x4fc716,_0x5b0b82){const _0x3c426a=a34_0x44b6,_0x120861=_0x4fc716();while(!![]){try{const _0x185fe0=parseInt(_0x3c426a(0x17e))/0x1+-parseInt(_0x3c426a(0x16d))/0x2*(parseInt(_0x3c426a(0x14c))/0x3)+-parseInt(_0x3c426a(0x18a))/0x4+parseInt(_0x3c426a(0x165))/0x5+-parseInt(_0x3c426a(0x196))/0x6+parseInt(_0x3c426a(0x19d))/0x7*(parseInt(_0x3c426a(0x195))/0x8)+-parseInt(_0x3c426a(0x18c))/0x9;if(_0x185fe0===_0x5b0b82)break;else _0x120861['push'](_0x120861['shift']());}catch(_0x3be303){_0x120861['push'](_0x120861['shift']());}}}(a34_0x26fd,0x42f2b));function a34_0x44b6(_0x3e13d2,_0x3dcb4e){const _0x26fd5c=a34_0x26fd();return a34_0x44b6=function(_0x44b67e,_0x25d17b){_0x44b67e=_0x44b67e-0x145;let _0x54ca38=_0x26fd5c[_0x44b67e];return _0x54ca38;},a34_0x44b6(_0x3e13d2,_0x3dcb4e);}const util=require(a34_0x52a4e3(0x15a)),logger=require(a34_0x52a4e3(0x186))[a34_0x52a4e3(0x148)],{isAccessibilityAutomationSession}=require(a34_0x52a4e3(0x174)),{isUndefined}=require('../../helpers/helper'),scripts=require(a34_0x52a4e3(0x189));exports[a34_0x52a4e3(0x154)]=async(_0x207437,_0x513633,_0xd8086e={})=>{const _0x136a51=a34_0x52a4e3,_0x34cb5a={};_0x34cb5a[_0x136a51(0x18b)]=_0x136a51(0x14e);const _0x29b454=_0x34cb5a;return await _0x207437[_0x136a51(0x166)]('(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'+_0x513633[_0x136a51(0x1a2)](/arguments/g,_0x29b454[_0x136a51(0x18b)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x136a51(0x167)](_0xd8086e)+')');},exports[a34_0x52a4e3(0x18f)]=async(_0x50258f,_0xb37c8,_0x551831={})=>{const _0x3f6589=a34_0x52a4e3,_0x453ff3={};_0x453ff3[_0x3f6589(0x19e)]=function(_0x5d43ce,_0x498edf){return _0x5d43ce===_0x498edf;},_0x453ff3['HIoot']=_0x3f6589(0x1a0),_0x453ff3[_0x3f6589(0x164)]=function(_0x40b032,_0x472798){return _0x40b032===_0x472798;},_0x453ff3[_0x3f6589(0x15b)]='Playwright',_0x453ff3['ENsIM']=_0x3f6589(0x14e);const _0x1a9a9=_0x453ff3;if(_0x1a9a9[_0x3f6589(0x19e)](_0x50258f['constructor'][_0x3f6589(0x16f)],_0x1a9a9[_0x3f6589(0x14b)]))return await _0x50258f[_0x3f6589(0x19f)](_0xb37c8,_0x551831);else{if(_0x1a9a9[_0x3f6589(0x164)](_0x50258f[_0x3f6589(0x191)][_0x3f6589(0x16f)],_0x1a9a9['ENhaA']))return await _0x50258f[_0x3f6589(0x158)](_0x3f6589(0x172)+_0xb37c8[_0x3f6589(0x1a2)](/arguments/g,_0x1a9a9[_0x3f6589(0x150)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x3f6589(0x167)](_0x551831)+')');}},exports['setAccessibilityCapabilities']=async _0x30e482=>{const _0x5ed873=a34_0x52a4e3,_0x91ed04={};_0x91ed04[_0x5ed873(0x1a4)]=_0x5ed873(0x162),_0x91ed04[_0x5ed873(0x15f)]=_0x5ed873(0x1a6),_0x91ed04['UBOtX']=_0x5ed873(0x18e),_0x91ed04[_0x5ed873(0x146)]=_0x5ed873(0x17c),_0x91ed04[_0x5ed873(0x181)]=_0x5ed873(0x155),_0x91ed04['TIyVX']=_0x5ed873(0x156);const _0x26a8ac=_0x91ed04;_0x30e482['accessibilityOptions']&&(_0x30e482[_0x5ed873(0x179)][_0x5ed873(0x192)]&&(_0x30e482[_0x26a8ac[_0x5ed873(0x1a4)]]=_0x30e482['accessibilityOptions'][_0x5ed873(0x192)]),_0x30e482[_0x5ed873(0x179)][_0x5ed873(0x153)]&&(_0x30e482[_0x26a8ac['CNNBg']]=_0x30e482[_0x5ed873(0x179)][_0x5ed873(0x153)]),_0x30e482[_0x5ed873(0x179)]['includeIssueType']&&(_0x30e482[_0x26a8ac['UBOtX']]=_0x30e482['accessibilityOptions'][_0x5ed873(0x147)][_0x5ed873(0x14f)],_0x30e482[_0x26a8ac[_0x5ed873(0x146)]]=_0x30e482[_0x5ed873(0x179)]['includeIssueType'][_0x5ed873(0x198)]));const _0x5437fc=JSON[_0x5ed873(0x14d)](process[_0x5ed873(0x149)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x5ed873(0x187)];_0x30e482[_0x26a8ac[_0x5ed873(0x181)]]=process[_0x5ed873(0x149)][_0x5ed873(0x161)],_0x30e482[_0x26a8ac['TIyVX']]=_0x5437fc,delete _0x30e482[_0x5ed873(0x179)];},exports[a34_0x52a4e3(0x194)]=async _0x59ff74=>{const _0x1c6cfa=a34_0x52a4e3,_0x451497={};_0x451497['wDCZn']=_0x1c6cfa(0x160),_0x451497[_0x1c6cfa(0x19a)]=_0x1c6cfa(0x1a7);const _0x12f1d5=_0x451497;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x59ff74,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x59ff74,scripts.getResults);return res;}catch{return logger['error'](_0x12f1d5[_0x1c6cfa(0x190)]),[];}else return logger['warn'](_0x12f1d5['yCQxc']),[];},exports[a34_0x52a4e3(0x14a)]=async(_0x47a757,_0x3d0e78='')=>{const _0x42c00e=a34_0x52a4e3;if(global[_0x42c00e(0x182)]){const _0x38b891={};return _0x38b891['method']=_0x3d0e78,await exports[_0x42c00e(0x154)](_0x47a757,scripts[_0x42c00e(0x14a)],_0x38b891);}},exports[a34_0x52a4e3(0x197)]=async _0x4e9fac=>{const _0x119c35=a34_0x52a4e3,_0x41fd14={};_0x41fd14[_0x119c35(0x16e)]='No\x20summaryResults\x20found.',_0x41fd14[_0x119c35(0x1a5)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x5a8f48=_0x41fd14;if(global[_0x119c35(0x182)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4e9fac,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x4e9fac,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x119c35(0x1a1)](_0x5a8f48[_0x119c35(0x16e)]),{};}else return logger[_0x119c35(0x17a)](_0x5a8f48[_0x119c35(0x1a5)]),{};},exports[a34_0x52a4e3(0x157)]=async _0x4dfbec=>{const _0x18fc55=a34_0x52a4e3,_0x55c346={'vSVrd':function(_0x538eba,_0x30d0f4){return _0x538eba!==_0x30d0f4;},'pBXoR':_0x18fc55(0x1a3),'UfZqk':function(_0x3d179d,_0x4b47e3){return _0x3d179d===_0x4b47e3;},'LWqFP':_0x18fc55(0x15e),'PExdN':'playwright-chromium','VloBC':_0x18fc55(0x188),'OQUjl':function(_0x2a407a,_0x29d315){return _0x2a407a(_0x29d315);},'SwEdX':function(_0x90ff04,_0x5aeb20){return _0x90ff04===_0x5aeb20;},'ZuvxW':_0x18fc55(0x152),'TFmaS':function(_0x5e1fd5,_0x551808){return _0x5e1fd5>_0x551808;},'GUPsu':_0x18fc55(0x1a8)};try{if(!_0x55c346[_0x18fc55(0x185)](_0x4dfbec['deviceName'],''))return logger['warn'](_0x55c346['pBXoR']),![];const _0x43a8fa=_0x4dfbec[_0x18fc55(0x180)];if(!(_0x55c346[_0x18fc55(0x151)](_0x43a8fa,_0x55c346[_0x18fc55(0x176)])||_0x55c346[_0x18fc55(0x151)](_0x43a8fa,_0x55c346['PExdN'])))return logger['warn'](_0x55c346[_0x18fc55(0x169)]),![];const _0x2bdd30=_0x55c346[_0x18fc55(0x199)](parseInt,_0x4dfbec[_0x18fc55(0x163)]);if(!(_0x55c346[_0x18fc55(0x15d)](_0x2bdd30,_0x55c346[_0x18fc55(0x17d)])||_0x55c346[_0x18fc55(0x18d)](_0x2bdd30,0x5e)))return logger[_0x18fc55(0x17a)](_0x55c346['GUPsu']),![];}catch(_0x3b9490){logger[_0x18fc55(0x1a1)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x18fc55(0x16a)](_0x3b9490));}return!![];},exports[a34_0x52a4e3(0x16c)]=(_0xe06e7e,_0x3c32e1,_0x2b3677)=>{const _0x22f0f4=a34_0x52a4e3,_0x1f6813={'jkYcj':function(_0x3a70b6){return _0x3a70b6();},'zpIDJ':_0x22f0f4(0x175),'JBDbl':function(_0x48490a,_0x167889){return _0x48490a===_0x167889;},'iyLqR':_0x22f0f4(0x15e),'QWCfw':_0x22f0f4(0x183),'lvAPX':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','TnOkh':function(_0x46dbab,_0x1a68e9){return _0x46dbab===_0x1a68e9;},'rCdVG':_0x22f0f4(0x152),'GAaOD':function(_0x277587,_0x477597){return _0x277587>_0x477597;},'eoeSB':_0x22f0f4(0x1a8),'NPYbo':function(_0x13334a,_0x3371d2){return _0x13334a(_0x3371d2);},'XdUsN':_0x22f0f4(0x1a3),'JqEAg':function(_0x361103,_0x5092bc){return _0x361103+_0x5092bc;}};try{if(_0x1f6813['jkYcj'](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0xe06e7e[_0x1f6813['zpIDJ']]&&(global['accessibilityPlatform']=![]);!(_0x1f6813[_0x22f0f4(0x177)](_0xe06e7e[_0x22f0f4(0x15c)],_0x1f6813[_0x22f0f4(0x17b)])||_0x1f6813[_0x22f0f4(0x177)](_0xe06e7e[_0x22f0f4(0x15c)],_0x1f6813['QWCfw']))&&(logger[_0x22f0f4(0x17a)](_0x1f6813[_0x22f0f4(0x19c)]),global[_0x22f0f4(0x182)]=![]);!(_0x1f6813[_0x22f0f4(0x145)](_0xe06e7e['browser_version'],_0x1f6813[_0x22f0f4(0x193)])||_0x1f6813['GAaOD'](_0xe06e7e['browser_version'],0x5e))&&(logger[_0x22f0f4(0x17a)](_0x1f6813['eoeSB']),global[_0x22f0f4(0x182)]=![]);!_0x1f6813[_0x22f0f4(0x168)](isUndefined,_0xe06e7e[_0x22f0f4(0x173)])&&(logger['warn'](_0x1f6813[_0x22f0f4(0x159)]),global[_0x22f0f4(0x182)]=![]);if(!global['accessibilityPlatform']){_0xe06e7e[_0x1f6813[_0x22f0f4(0x170)]]=![];const _0x4a4a20=_0x1f6813[_0x22f0f4(0x178)](_0x3c32e1,_0x1f6813[_0x22f0f4(0x168)](encodeURIComponent,JSON[_0x22f0f4(0x167)](_0xe06e7e)));_0x2b3677&&(_0x2b3677[_0x22f0f4(0x19b)]['testInfo'][_0x22f0f4(0x184)]['use'][_0x22f0f4(0x17f)][_0x22f0f4(0x16b)]=_0x4a4a20,_0x2b3677['workerInfo']['project'][_0x22f0f4(0x171)][_0x22f0f4(0x17f)][_0x22f0f4(0x16b)]=_0x4a4a20);}}}catch(_0x5ba483){logger[_0x22f0f4(0x1a1)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util['format'](_0x5ba483));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x267440=a35_0x2c7e;function a35_0x3165(){const _0x2eea48=['nestedKeyValue','ocwXe','rKkId','testContextOptions','3869296MtHlAL','xpDHC','get','BROWSERSTACK_RERUN_TESTS','TpSig','EevET','dgnYN','env','cwd','requirePWModule','length','vjgFb','parse','browserstackSetupConfig.json','map','AUMNE','BROWSERSTACK_TEST_ACCESSIBILITY_YML','gfScl','hUOXk','LwYxO','CKbfM','10568776cInMFF','../../helpers/test-observability/utils','618IesKRR','getProxyUrl','inherit','splice','RIVoF','UFQXX','playwright-browserstack-sdk.config.cjs','1143618ZMkjNu','isTypescriptProject','rVIQu','resolvedConfigFile','../../helpers/testhub/testhubHandler','Deleting\x20','yfEhd','2901UsVJOr','../../helpers/helper','BROWSERSTACK_SETUP_CONFIG_PATH','PACKAGE_TYPE','concat','Error\x20in\x20deleting\x20playwright\x20results','errorMessage','mreEp','54477891knNKRo','PLAYWRIGHT','ulCBY','unlinkSync','3|6|8|5|1|2|0|7|4','./accessibility-helper','trim','8771815rfmvYU','platform','has','SEUFK','.browserstack','homedir','debug','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','qOHja','BnQBT','false','exitCode','../../helpers/testhub/utils','markSDKSetupComplete','config','BROWSERSTACK_TEST_OBSERVABILITY','indexOf','BrowserStack\x20config\x20file\x20not\x20found.','../utils/constants','qquRU','initialize','MFZBy','playwright','null','test','../../helpers/test-observability/constants','../../helpers/logger','pw_result.json','KVJtk','argv','startsWith','VNONg','./reporter/pwUtils','win32','exports','Error\x20in\x20closing\x20playwright','apply','Mlnew','testObservability','assign','idUvt','skipSessionName','path','join','../../helpers/test-observability/error-handler','Updated\x20config\x20file\x20name\x20to\x20-\x20','BROWSERSTACK_AUTOMATION','--disable-browserstack-automation','rNQof','--config','winstonLogger','BwvFe','push','existsSync','serializeToYamlString','vWEss','swNJw','filter','slice','ylLcD','oKdjr','XQVPt','SZEcm','error','resolve','isTrue','vUKvb','STPzm','includes','\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();','clearTempPWConfig','BROWSERSTACK_PW_CONFIG_DIR','WGKpb','npx','jUfYw','35YAcark','automation','accessibility','XCHPE','dirname','writeFileSync','3547722VNDYYJ','filterBrowserstackArgs','cliConfig','util','isFalse','uwOhP','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','findIndex','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','SiWbh','Error\x20in\x20getting\x20funnel\x20data\x20results','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','readFileSync','rtMsB','fsBlv','close','isUndefined'];a35_0x3165=function(){return _0x2eea48;};return a35_0x3165();}(function(_0x360733,_0x2bec0d){const _0x5e6c2f=a35_0x2c7e,_0x2eb187=_0x360733();while(!![]){try{const _0x156ba6=parseInt(_0x5e6c2f(0x1e4))/0x1*(-parseInt(_0x5e6c2f(0x1d6))/0x2)+-parseInt(_0x5e6c2f(0x244))/0x3+-parseInt(_0x5e6c2f(0x1bf))/0x4+-parseInt(_0x5e6c2f(0x1f3))/0x5+-parseInt(_0x5e6c2f(0x1dd))/0x6*(-parseInt(_0x5e6c2f(0x23e))/0x7)+-parseInt(_0x5e6c2f(0x1d4))/0x8+parseInt(_0x5e6c2f(0x1ec))/0x9;if(_0x156ba6===_0x2bec0d)break;else _0x2eb187['push'](_0x2eb187['shift']());}catch(_0x3e0c23){_0x2eb187['push'](_0x2eb187['shift']());}}}(a35_0x3165,0xd7e7b));function a35_0x2c7e(_0x5a07ec,_0x3747ee){const _0x3165a1=a35_0x3165();return a35_0x2c7e=function(_0x2c7e48,_0x278d48){_0x2c7e48=_0x2c7e48-0x1b7;let _0x3cc66c=_0x3165a1[_0x2c7e48];return _0x3cc66c;},a35_0x2c7e(_0x5a07ec,_0x3747ee);}const fs=require('fs'),path=require(a35_0x267440(0x21d)),{spawn}=require('child_process'),{format}=require(a35_0x267440(0x247)),logger=require(a35_0x267440(0x20d))[a35_0x267440(0x225)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0x267440(0x1e5)),utilities=require('../../helpers/utilities'),constants=require(a35_0x267440(0x205)),{FRAMEWORKS}=require(a35_0x267440(0x20c)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x267440(0x213)),{CrashReporter}=require(a35_0x267440(0x21f)),{getFrameworkVersion}=require(a35_0x267440(0x1d5)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a35_0x267440(0x1f1)),TestHubHandler=require(a35_0x267440(0x1e1)),{shouldProcessEventForTesthub}=require(a35_0x267440(0x1ff)),getUserPlaywrightConfig=async(_0x358197,_0x19ba85)=>{const _0x6ee75d=a35_0x267440,_0x33a8e4={'EevET':function(_0x528f66){return _0x528f66();},'XCHPE':function(_0x391d68,_0x2928e2){return _0x391d68(_0x2928e2);},'SiWbh':_0x6ee75d(0x1e0),'rNQof':'--config='},_0x3eecc4=!helper[_0x6ee75d(0x1ba)](_0x358197['config']),_0x31895d=_0x3eecc4?path[_0x6ee75d(0x233)](process[_0x6ee75d(0x1c7)](),_0x358197['config']):process[_0x6ee75d(0x1c7)](),{resolveConfigFile:_0x487a22,resolveConfigLocation:_0x45e204}=helper[_0x6ee75d(0x1c8)][_0x6ee75d(0x217)](null,_0x33a8e4[_0x6ee75d(0x1c4)](getConfigLoaderPath)),_0x22382e=_0x487a22?_0x33a8e4[_0x6ee75d(0x241)](_0x487a22,_0x31895d):helper[_0x6ee75d(0x1bb)](_0x33a8e4[_0x6ee75d(0x241)](_0x45e204,_0x31895d),[_0x33a8e4[_0x6ee75d(0x24d)]]),_0x1616cf={};if(_0x3eecc4){const _0x3ab011=_0x19ba85[_0x6ee75d(0x24b)](_0x56963a=>_0x56963a===_0x6ee75d(0x224)||_0x56963a==='-c'||_0x56963a[_0x6ee75d(0x211)]('--config='));_0x19ba85[_0x6ee75d(0x1d9)](_0x3ab011,_0x19ba85[_0x3ab011][_0x6ee75d(0x211)](_0x33a8e4[_0x6ee75d(0x223)])?0x1:0x2);}const _0x45a203={};return _0x45a203['path']=_0x22382e,_0x45a203[_0x6ee75d(0x201)]=_0x1616cf,_0x45a203;},handleO11yRerun=_0x386d04=>{const _0x37d2ec=a35_0x267440,_0xa9370a={};_0xa9370a[_0x37d2ec(0x1bc)]=function(_0x21c5d6,_0x252900){return _0x21c5d6!==_0x252900;},_0xa9370a[_0x37d2ec(0x1d3)]=_0x37d2ec(0x20a),_0xa9370a[_0x37d2ec(0x230)]='--grep';const _0x410cda=_0xa9370a,_0x50a96e=helper[_0x37d2ec(0x234)](process[_0x37d2ec(0x1c6)]['BROWSERSTACK_RERUN']);if(_0x50a96e){const _0x3bd798=process['env'][_0x37d2ec(0x1c2)],_0x46a2d7=[];if(_0x410cda[_0x37d2ec(0x1bc)](_0x3bd798,_0x410cda[_0x37d2ec(0x1d3)])&&!helper[_0x37d2ec(0x1ba)](_0x3bd798)){_0x3bd798['split'](',')[_0x37d2ec(0x1cd)](_0x77dc3a=>{const _0x198e1a=_0x37d2ec;_0x46a2d7[_0x198e1a(0x227)]('('+_0x77dc3a[_0x198e1a(0x1f2)]()+')');});const _0x298ba9='^'+_0x46a2d7[_0x37d2ec(0x21e)]('|')+'$';_0x386d04[_0x37d2ec(0x227)](_0x410cda['XQVPt'],_0x298ba9);}}},spawnOriginalProcess=_0x36d71c=>{const _0x59e576=a35_0x267440,_0x2aee84={'aAyUL':function(_0x2930ce,_0x1d17c7,_0x5cf2c9,_0x3a0b17){return _0x2930ce(_0x1d17c7,_0x5cf2c9,_0x3a0b17);},'mLpac':_0x59e576(0x23c),'iuRRU':_0x59e576(0x209),'mreEp':function(_0x4f62f7,_0x399299){return _0x4f62f7===_0x399299;},'Yvvit':_0x59e576(0x214),'RIVoF':_0x59e576(0x1d8)};_0x2aee84['aAyUL'](spawn,_0x2aee84['mLpac'],[_0x2aee84['iuRRU'],..._0x36d71c['slice'](0x1)],{'shell':_0x2aee84[_0x59e576(0x1eb)](process[_0x59e576(0x1f4)],_0x2aee84['Yvvit']),'stdio':_0x2aee84[_0x59e576(0x1da)],'cwd':process['cwd']()});},isTestCommand=(_0x1938e7,_0x2670e9)=>{const _0x285432=a35_0x267440,_0x39f922={};_0x39f922[_0x285432(0x1e3)]=function(_0x4a588e,_0x446d48){return _0x4a588e>_0x446d48;},_0x39f922['UFQXX']=function(_0x3bfebd,_0x177a43){return _0x3bfebd===_0x177a43;},_0x39f922[_0x285432(0x236)]=_0x285432(0x20b);const _0x1757da=_0x39f922;if(_0x1757da['yfEhd'](_0x2670e9[_0x285432(0x1c9)],0x1)&&_0x1757da[_0x285432(0x1db)](_0x2670e9[0x1],_0x1757da[_0x285432(0x236)]))return!![];return![];};async function run(_0x169ea2,_0x4b749a){const _0x31d015=a35_0x267440,_0x174b02={'MFZBy':_0x31d015(0x1f7),'vjgFb':_0x31d015(0x20e),'hUOXk':function(_0x622601,_0x2f1fad){return _0x622601+_0x2f1fad;},'vUKvb':_0x31d015(0x24e),'rKkId':_0x31d015(0x1f0),'SZEcm':function(_0x109ed5){return _0x109ed5();},'SEUFK':function(_0x9496fd,_0x291cf3){return _0x9496fd+_0x291cf3;},'Mlnew':_0x31d015(0x216),'OgNgZ':_0x31d015(0x222),'vWEss':_0x31d015(0x1fd),'idUvt':'--disable-test-observability','BnQBT':function(_0x1e81df,_0x1ddd60){return _0x1e81df>=_0x1ddd60;},'fbDtT':function(_0x250f5d,_0x552191){return _0x250f5d+_0x552191;},'ylLcD':_0x31d015(0x1e9),'KVJtk':function(_0x344ba2,_0x432c71,_0x4467ce){return _0x344ba2(_0x432c71,_0x4467ce);},'qquRU':function(_0x5824ca,_0x15cd1b){return _0x5824ca(_0x15cd1b);},'BwvFe':_0x31d015(0x204),'jUfYw':_0x31d015(0x23f),'TpSig':function(_0x513be7,_0x2099b6){return _0x513be7!=_0x2099b6;},'ulCBY':function(_0x333822,_0x513249){return _0x333822(_0x513249);},'WGKpb':function(_0x32e0c3,_0x3c173d){return _0x32e0c3===_0x3c173d;},'VNONg':'true','AUMNE':function(_0x4d3449,_0x5074ac){return _0x4d3449(_0x5074ac);},'rVIQu':_0x31d015(0x1cc),'swNJw':_0x31d015(0x1dc),'uwOhP':'playwright-browserstack-sdk.config.js','oKdjr':function(_0x4479e2,_0x4234c9){return _0x4479e2-_0x4234c9;},'LwYxO':_0x31d015(0x220),'xpDHC':function(_0x3d0dd0,_0x530d0b){return _0x3d0dd0>_0x530d0b;},'dgnYN':function(_0x549461,_0x190fb2,_0x46fe2a,_0x2b11b8){return _0x549461(_0x190fb2,_0x46fe2a,_0x2b11b8);},'qOHja':_0x31d015(0x23c),'VCMKZ':_0x31d015(0x209),'gfScl':_0x31d015(0x20b),'WwbDY':_0x31d015(0x224),'YgKHq':'win32','rtMsB':_0x31d015(0x1d8),'fsBlv':_0x31d015(0x1b9)};!helper[_0x31d015(0x248)](process[_0x31d015(0x1c6)][_0x31d015(0x221)])&&(process[_0x31d015(0x1c6)][_0x31d015(0x221)]=!![]);process[_0x31d015(0x210)][_0x31d015(0x237)](_0x174b02['OgNgZ'])&&(process['env'][_0x31d015(0x221)]=_0x174b02['vWEss'],_0x4b749a=_0x4b749a[_0x31d015(0x22c)](_0x5b783f=>_0x5b783f!=='--disable-browserstack-automation'));const _0x3293fc=_0x4b749a[_0x31d015(0x203)](_0x174b02[_0x31d015(0x21b)]);_0x174b02[_0x31d015(0x1fc)](_0x3293fc,0x0)&&(process[_0x31d015(0x1c6)][_0x31d015(0x202)]=_0x174b02[_0x31d015(0x22a)],_0x4b749a=_0x4b749a[_0x31d015(0x22c)](_0x22f9ab=>_0x22f9ab!=='--disable-test-observability'));try{const _0x4f9a80=path['join'](helper[_0x31d015(0x1f8)](),_0x174b02[_0x31d015(0x208)],_0x174b02[_0x31d015(0x1ca)]);fs[_0x31d015(0x228)](_0x4f9a80)&&fs[_0x31d015(0x1ef)](_0x4f9a80);}catch(_0x4fa140){logger[_0x31d015(0x1f9)](_0x174b02['fbDtT'](_0x174b02[_0x31d015(0x22e)],_0x4fa140));}if(!_0x174b02[_0x31d015(0x20f)](isTestCommand,_0x169ea2,_0x4b749a)){_0x174b02[_0x31d015(0x206)](spawnOriginalProcess,_0x4b749a);return;}const _0x4b56a8=new BrowserStackSetup(_0x169ea2,FRAMEWORKS['PLAYWRIGHT']);if(!_0x4b56a8['config']){logger[_0x31d015(0x232)](_0x174b02[_0x31d015(0x226)]);return;}await _0x4b56a8[_0x31d015(0x207)]();!helper['isUndefined'](_0x4b56a8[_0x31d015(0x246)])&&_0x4b56a8[_0x31d015(0x246)][_0x31d015(0x1f5)](_0x174b02['jUfYw'])&&(process[_0x31d015(0x1c6)][_0x31d015(0x221)]=_0x4b56a8['cliConfig'][_0x31d015(0x1c1)](_0x174b02[_0x31d015(0x23d)])||!![]);_0x174b02[_0x31d015(0x1c3)](_0x4b56a8['config'][_0x31d015(0x219)],null)&&!helper['isTrue'](process[_0x31d015(0x1c6)][_0x31d015(0x202)])&&(process[_0x31d015(0x1c6)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x31d015(0x1c6)][_0x31d015(0x202)]||_0x4b56a8[_0x31d015(0x201)][_0x31d015(0x219)]);const _0x2a3fa0=!helper['isFalse'](process['env'][_0x31d015(0x202)]);let _0x58bab5=![];_0x4b56a8[_0x31d015(0x201)][_0x31d015(0x240)]&&(_0x58bab5=!![],process[_0x31d015(0x1c6)][_0x31d015(0x1cf)]=_0x4b56a8[_0x31d015(0x201)][_0x31d015(0x240)]);_0x4b56a8[_0x31d015(0x201)]['accessibilityOptions']&&(process[_0x31d015(0x1c6)][_0x31d015(0x24f)]=JSON['stringify'](_0x4b56a8[_0x31d015(0x201)]['accessibilityOptions']));const _0x1e9cde=_0x4b749a[_0x31d015(0x1e8)](),_0x4aa945=await _0x174b02['KVJtk'](getUserPlaywrightConfig,_0x169ea2,_0x4b749a);if(helper['isUndefined'](_0x4aa945)){_0x174b02[_0x31d015(0x206)](spawnOriginalProcess,_0x1e9cde);return;}const _0x23e09b=_0x4aa945['path']?path['dirname'](_0x4aa945[_0x31d015(0x21d)]):process[_0x31d015(0x1c7)]();process[_0x31d015(0x1c6)][_0x31d015(0x23a)]=_0x23e09b,await TestHubHandler['launchBuild'](FRAMEWORKS[_0x31d015(0x1ed)],_0x4b56a8);_0x2a3fa0&&_0x174b02[_0x31d015(0x1ee)](handleO11yRerun,_0x4b749a);let _0x242806=_0x174b02[_0x31d015(0x23b)](process['env'][_0x31d015(0x1cf)],_0x174b02[_0x31d015(0x212)]);_0x242806=_0x242806||_0x174b02[_0x31d015(0x1ce)](checkAccessibilityPlatformConfig,_0x4b56a8[_0x31d015(0x201)]),process[_0x31d015(0x1c6)][_0x31d015(0x1cf)]=_0x242806;_0x242806&&_0x174b02[_0x31d015(0x1ce)](setAccessibilityCapabilities,_0x4b56a8[_0x31d015(0x201)]);const _0x2878e5=path[_0x31d015(0x21e)](_0x4aa945[_0x31d015(0x21d)]?path['dirname'](_0x4aa945[_0x31d015(0x21d)]):process[_0x31d015(0x1c7)](),_0x174b02[_0x31d015(0x1df)]);fs['writeFileSync'](_0x2878e5,helper[_0x31d015(0x229)](_0x4b56a8[_0x31d015(0x201)])),process['env'][_0x31d015(0x1e6)]=_0x2878e5,helper[_0x31d015(0x239)]();let _0x338e36='';_0x174b02[_0x31d015(0x23b)](helper['getPackageType'](),constants[_0x31d015(0x1e7)]['MODULE'])?_0x338e36=_0x174b02[_0x31d015(0x22b)]:_0x338e36=_0x174b02[_0x31d015(0x249)];let _0x3b166f='';if(helper[_0x31d015(0x1de)](_0x4aa945['path'])){_0x3b166f=_0x31d015(0x1fa);const _0x28683c=_0x338e36['split']('.');_0x28683c[_0x174b02[_0x31d015(0x22f)](_0x28683c[_0x31d015(0x1c9)],0x1)]='ts',_0x338e36=_0x28683c[_0x31d015(0x21e)]('.'),logger['debug'](_0x174b02['SEUFK'](_0x174b02[_0x31d015(0x1d2)],_0x338e36));}else _0x3b166f=_0x31d015(0x24a);const _0x196785=path[_0x31d015(0x21e)](_0x4aa945[_0x31d015(0x21d)]?path[_0x31d015(0x242)](_0x4aa945[_0x31d015(0x21d)]):process['cwd'](),_0x338e36);let _0x2f9c36=_0x4aa945[_0x31d015(0x21d)]?_0x4aa945[_0x31d015(0x21d)]:'';_0x2f9c36=_0x174b02[_0x31d015(0x1c0)](_0x2f9c36[_0x31d015(0x1c9)],0x0)?path['resolve'](_0x2f9c36):'',process[_0x31d015(0x1c6)]['USER_CONFIG_DETAILS_PATH']=_0x2f9c36;const _0x4d5e85=helper[_0x31d015(0x1d7)](_0x4b56a8[_0x31d015(0x201)]);_0x4d5e85&&(_0x3b166f=_0x174b02[_0x31d015(0x1f6)](_0x31d015(0x24c)+_0x4d5e85+_0x31d015(0x238),_0x3b166f));helper[_0x31d015(0x245)]({},_0x4b749a),fs[_0x31d015(0x243)](_0x196785,_0x3b166f),helper[_0x31d015(0x200)]();const _0xaf8d7=_0x174b02[_0x31d015(0x1c5)](spawn,_0x174b02[_0x31d015(0x1fb)],[_0x174b02['VCMKZ'],_0x174b02[_0x31d015(0x1d0)],_0x174b02['WwbDY'],_0x196785,..._0x4b749a[_0x31d015(0x22d)](0x2)],{'shell':_0x174b02['WGKpb'](process[_0x31d015(0x1f4)],_0x174b02['YgKHq']),'stdio':_0x174b02[_0x31d015(0x1b7)],'cwd':process[_0x31d015(0x1c7)](),'env':Object[_0x31d015(0x21a)]({},process[_0x31d015(0x1c6)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x169ea2),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4b56a8['config'][_0x31d015(0x1be)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4b56a8['config'][_0x31d015(0x1be)][_0x31d015(0x21c)],'BROWSERSTACK_LOG_LEVEL':_0x4b56a8[_0x31d015(0x201)]['logLevel']})}),_0xab9297=()=>{const _0x29840e=_0x31d015;try{const _0x49f313=path[_0x29840e(0x21e)](helper[_0x29840e(0x1f8)](),_0x174b02[_0x29840e(0x208)],_0x174b02[_0x29840e(0x1ca)]);if(fs[_0x29840e(0x228)](_0x49f313)){let _0x19534c=fs[_0x29840e(0x250)](_0x49f313);_0x19534c=JSON[_0x29840e(0x1cb)](_0x19534c),_0x4b56a8[_0x29840e(0x1ea)]=_0x19534c,fs[_0x29840e(0x1ef)](_0x49f313);}}catch(_0x562449){logger['debug'](_0x174b02[_0x29840e(0x1d1)](_0x174b02[_0x29840e(0x235)],_0x562449));}};_0xaf8d7['on'](_0x174b02[_0x31d015(0x1b8)],async _0x2de779=>{const _0x3f04cc=_0x31d015;try{const _0x596356=_0x174b02[_0x3f04cc(0x1bd)]['split']('|');let _0x536850=0x0;while(!![]){switch(_0x596356[_0x536850++]){case'0':fs[_0x3f04cc(0x1ef)](_0x196785);continue;case'1':logger['debug']('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x2de779);continue;case'2':logger['info'](_0x3f04cc(0x1e2)+_0x196785);continue;case'3':_0x174b02[_0x3f04cc(0x231)](_0xab9297);continue;case'4':fs[_0x3f04cc(0x1ef)](_0x2878e5);continue;case'5':process[_0x3f04cc(0x1fe)]=_0x2de779;continue;case'6':await TestHubHandler['stop']();continue;case'7':logger['debug'](_0x3f04cc(0x1e2)+_0x2878e5);continue;case'8':await utilities['finalExecution'](_0x4b56a8);continue;}break;}}catch(_0x1a967f){logger[_0x3f04cc(0x1f9)](_0x174b02[_0x3f04cc(0x1f6)](_0x174b02[_0x3f04cc(0x218)],_0x1a967f));}});}module[a35_0x267440(0x215)]=run;
|
|
2
|
+
'use strict';function a35_0xcb56(_0x5e0b73,_0x1be1ce){const _0x287d56=a35_0x287d();return a35_0xcb56=function(_0xcb56b,_0x4085cf){_0xcb56b=_0xcb56b-0xb0;let _0x1bbbe8=_0x287d56[_0xcb56b];return _0x1bbbe8;},a35_0xcb56(_0x5e0b73,_0x1be1ce);}const a35_0x3b8b98=a35_0xcb56;(function(_0x2426bf,_0x1f7b3f){const _0x26b4bf=a35_0xcb56,_0x555fea=_0x2426bf();while(!![]){try{const _0x2ed097=-parseInt(_0x26b4bf(0xf3))/0x1+parseInt(_0x26b4bf(0x106))/0x2+-parseInt(_0x26b4bf(0x10b))/0x3*(-parseInt(_0x26b4bf(0xc4))/0x4)+parseInt(_0x26b4bf(0xc2))/0x5+parseInt(_0x26b4bf(0x122))/0x6+parseInt(_0x26b4bf(0x14e))/0x7*(-parseInt(_0x26b4bf(0xb6))/0x8)+-parseInt(_0x26b4bf(0xbb))/0x9;if(_0x2ed097===_0x1f7b3f)break;else _0x555fea['push'](_0x555fea['shift']());}catch(_0x339c33){_0x555fea['push'](_0x555fea['shift']());}}}(a35_0x287d,0x7b9b5));function a35_0x287d(){const _0xa3dea3=['serializeToYamlString','BROWSERSTACK_TEST_OBSERVABILITY','pRPDT','accessibilityOptions','Playwright\x20process\x20exited\x20with\x20code\x20','filter','mrutg','biSGj','startsWith','NJnez','328765vvRIvj','Error\x20in\x20deleting\x20playwright\x20results','isFalse','liapx','YLTho','split','YMKyv','winstonLogger','.browserstack','CutwY','MSmKf','getPackageType','SEZcN','iAHOa','gSTrl','BROWSERSTACK_SETUP_CONFIG_PATH','get','child_process','util','2024716JwmexZ','logLevel','../../helpers/testhub/utils','unlinkSync','dirname','32262IWXrkt','WPAxb','Umxie','DLWrR','../../helpers/test-observability/utils','oTkiL','env','jBwxw','errorMessage','cwd','Puzmd','BROWSERSTACK_RERUN','--disable-test-observability','Ipdbk','../../helpers/accessibility-automation/helper','homedir','stringify','inherit','IiUjn','../utils/constants','config','filterBrowserstackArgs','USER_CONFIG_DETAILS_PATH','5968668wDWCLV','nOjYU','wvnzZ','platform','push','oklVW','Error\x20in\x20closing\x20playwright','splice','BROWSERSTACK_AUTOMATION','concat','path','initialize','../../helpers/BrowserStackSetup','Kxges','PLAYWRIGHT','../../helpers/test-observability/error-handler','exitCode','pw_result.json','getProxyUrl','WJtAW','debug','win32','slice','true','close','BrowserStack\x20config\x20file\x20not\x20found.','writeFileSync','isUndefined','nestedKeyValue','Error\x20in\x20getting\x20funnel\x20data\x20results','./reporter/pwUtils','automation','argv','--disable-browserstack-automation','skipSessionName','findIndex','testObservability','cIghQ','isTypescriptProject','JBZXQ','MPElc','\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();','../../helpers/test-observability/constants','testContextOptions','6347404AGAQxo','DXPTB','npx','false','playwright-browserstack-sdk.config.cjs','markSDKSetupComplete','oLReY','stop','./accessibility-helper','join','PACKAGE_TYPE','8OGIImk','../../helpers/testhub/testhubHandler','length','--config','Updated\x20config\x20file\x20name\x20to\x20-\x20','15065271cRzFTZ','WYFCx','resolve','KPkqc','AfGOt','assign','oguMo','2795235hlnrag','izYtu','316GUJHva','playwright','unNbo','null','NYyhZ','map','BROWSERSTACK_RERUN_TESTS','UTcAx','GwJAc','TzZSp','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','existsSync','--config=','--grep','../../helpers/helper','parse','HvRBn','Deleting\x20','UDQRK','cliConfig','error','resolvedConfigFile','TXZoy','DnCDV','../../helpers/utilities','WTRQV','getConfigPath','CEGOH','requirePWModule','info','trim','clearTempPWConfig','BROWSERSTACK_PW_CONFIG_DIR','browserstackSetupConfig.json','IifGW','5|6|1|7|0|4|2|8|3'];a35_0x287d=function(){return _0xa3dea3;};return a35_0x287d();}const fs=require('fs'),path=require(a35_0x3b8b98(0x12c)),{spawn}=require(a35_0x3b8b98(0x104)),{format}=require(a35_0x3b8b98(0x105)),logger=require('../../helpers/logger')[a35_0x3b8b98(0xfa)],{default:BrowserStackSetup}=require(a35_0x3b8b98(0x12e)),helper=require(a35_0x3b8b98(0xd3)),utilities=require(a35_0x3b8b98(0xdd)),constants=require(a35_0x3b8b98(0x11e)),{FRAMEWORKS}=require(a35_0x3b8b98(0x14c)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x3b8b98(0x140)),{CrashReporter}=require(a35_0x3b8b98(0x131)),{getFrameworkVersion}=require(a35_0x3b8b98(0x10f)),{checkAccessibilityPlatformConfig}=require(a35_0x3b8b98(0x119)),{setAccessibilityCapabilities}=require(a35_0x3b8b98(0xb3)),TestHubHandler=require(a35_0x3b8b98(0xb7)),{shouldProcessEventForTesthub}=require(a35_0x3b8b98(0x108)),getUserPlaywrightConfig=async(_0x3c22e0,_0x11d4d)=>{const _0x1de3ef=a35_0x3b8b98,_0x259f2e={'cIghQ':function(_0x867f23){return _0x867f23();},'Ipdbk':function(_0x3c05ac,_0x263b6a){return _0x3c05ac(_0x263b6a);},'WYFCx':_0x1de3ef(0xda),'KPkqc':_0x1de3ef(0xd1)},_0x13c6a5=!helper[_0x1de3ef(0x13d)](_0x3c22e0[_0x1de3ef(0x11f)]),_0xf2da1e=_0x13c6a5?path[_0x1de3ef(0xbd)](process[_0x1de3ef(0x114)](),_0x3c22e0[_0x1de3ef(0x11f)]):process[_0x1de3ef(0x114)](),{resolveConfigFile:_0x4d2c7e,resolveConfigLocation:_0x2a7868}=helper[_0x1de3ef(0xe1)]['apply'](null,_0x259f2e[_0x1de3ef(0x147)](getConfigLoaderPath)),_0x4d532b=_0x4d2c7e?_0x259f2e[_0x1de3ef(0x118)](_0x4d2c7e,_0xf2da1e):helper[_0x1de3ef(0x13e)](_0x259f2e[_0x1de3ef(0x118)](_0x2a7868,_0xf2da1e),[_0x259f2e[_0x1de3ef(0xbc)]]),_0x2500c4={};if(_0x13c6a5){const _0x39b5f4=_0x11d4d[_0x1de3ef(0x145)](_0x2a9909=>_0x2a9909==='--config'||_0x2a9909==='-c'||_0x2a9909[_0x1de3ef(0xf1)]('--config='));_0x11d4d[_0x1de3ef(0x129)](_0x39b5f4,_0x11d4d[_0x39b5f4][_0x1de3ef(0xf1)](_0x259f2e[_0x1de3ef(0xbe)])?0x1:0x2);}const _0x56b203={};return _0x56b203['path']=_0x4d532b,_0x56b203[_0x1de3ef(0x11f)]=_0x2500c4,_0x56b203;},handleO11yRerun=_0x21fe14=>{const _0x191596=a35_0x3b8b98,_0x636422={};_0x636422[_0x191596(0x135)]=function(_0x13a600,_0x4db914){return _0x13a600!==_0x4db914;},_0x636422['CutwY']=_0x191596(0xc7),_0x636422[_0x191596(0xf6)]=_0x191596(0xd2);const _0x46d134=_0x636422,_0x1750de=helper['isTrue'](process[_0x191596(0x111)][_0x191596(0x116)]);if(_0x1750de){const _0x22449d=process[_0x191596(0x111)][_0x191596(0xca)],_0x3c20cf=[];if(_0x46d134[_0x191596(0x135)](_0x22449d,_0x46d134[_0x191596(0xfc)])&&!helper[_0x191596(0x13d)](_0x22449d)){_0x22449d[_0x191596(0xf8)](',')[_0x191596(0xc9)](_0x257bcc=>{const _0x155f91=_0x191596;_0x3c20cf['push']('('+_0x257bcc[_0x155f91(0xe3)]()+')');});const _0x34a197='^'+_0x3c20cf['join']('|')+'$';_0x21fe14[_0x191596(0x126)](_0x46d134['liapx'],_0x34a197);}}},spawnOriginalProcess=_0x583dfe=>{const _0x1580ed=a35_0x3b8b98,_0x5ee4e1={'CYkPN':function(_0x1b1570,_0x44de0f,_0x4acd46,_0x3715b3){return _0x1b1570(_0x44de0f,_0x4acd46,_0x3715b3);},'WPAxb':_0x1580ed(0x150),'wvnzZ':_0x1580ed(0xc5),'biSGj':function(_0x5c8137,_0x57825b){return _0x5c8137===_0x57825b;},'pRPDT':'win32','DLWrR':_0x1580ed(0x11c)};_0x5ee4e1['CYkPN'](spawn,_0x5ee4e1[_0x1580ed(0x10c)],[_0x5ee4e1[_0x1580ed(0x124)],..._0x583dfe['slice'](0x1)],{'shell':_0x5ee4e1[_0x1580ed(0xf0)](process['platform'],_0x5ee4e1[_0x1580ed(0xeb)]),'stdio':_0x5ee4e1[_0x1580ed(0x10e)],'cwd':process[_0x1580ed(0x114)]()});},isTestCommand=(_0x4fade6,_0x230809)=>{const _0x5e7210=a35_0x3b8b98,_0x113d6d={};_0x113d6d[_0x5e7210(0x112)]=function(_0x26d312,_0x2ef965){return _0x26d312>_0x2ef965;},_0x113d6d['oLReY']=function(_0xe27b59,_0x3b5f17){return _0xe27b59===_0x3b5f17;},_0x113d6d['gSTrl']='test';const _0x1bec06=_0x113d6d;if(_0x1bec06[_0x5e7210(0x112)](_0x230809[_0x5e7210(0xb8)],0x1)&&_0x1bec06[_0x5e7210(0xb1)](_0x230809[0x1],_0x1bec06[_0x5e7210(0x101)]))return!![];return![];};async function run(_0x3ed214,_0x1bddca){const _0x3e8b42=a35_0x3b8b98,_0xf36c95={'oTkiL':_0x3e8b42(0xfb),'DnCDV':_0x3e8b42(0x133),'iAHOa':function(_0x56696,_0x4404ed){return _0x56696+_0x4404ed;},'oklVW':_0x3e8b42(0x13f),'CEGOH':_0x3e8b42(0xe8),'GwJAc':function(_0x303092){return _0x303092();},'unNbo':function(_0x5197ee,_0x1a0fb2){return _0x5197ee+_0x1a0fb2;},'DXPTB':_0x3e8b42(0x128),'PQhbX':'--disable-browserstack-automation','UTcAx':_0x3e8b42(0x151),'Puzmd':_0x3e8b42(0x117),'JBZXQ':function(_0x3bf4fa,_0x56a8c8){return _0x3bf4fa>=_0x56a8c8;},'MSmKf':function(_0x11460a,_0x2d114e){return _0x11460a+_0x2d114e;},'WTRQV':_0x3e8b42(0xf4),'Umxie':function(_0x57427b,_0x5d5969,_0x4e18a5){return _0x57427b(_0x5d5969,_0x4e18a5);},'YMKyv':function(_0x2b0ba6,_0x44a26a){return _0x2b0ba6(_0x44a26a);},'NJnez':_0x3e8b42(0x13b),'MPElc':_0x3e8b42(0x141),'mmJxD':function(_0x244f14,_0x442037){return _0x244f14!=_0x442037;},'IifGW':function(_0x2ad781,_0x16751b){return _0x2ad781(_0x16751b);},'HvRBn':function(_0x583b69,_0xe994df){return _0x583b69===_0xe994df;},'Kxges':_0x3e8b42(0x139),'NYyhZ':_0x3e8b42(0xe6),'IiUjn':_0x3e8b42(0x152),'IdphS':'playwright-browserstack-sdk.config.js','rktcc':function(_0x2a8c4b,_0x42fd2f){return _0x2a8c4b-_0x42fd2f;},'AfGOt':function(_0x314e51,_0x53a0a7){return _0x314e51+_0x53a0a7;},'TXZoy':_0x3e8b42(0xba),'mrutg':function(_0x4997d8,_0x333455){return _0x4997d8>_0x333455;},'nOjYU':function(_0x306c11,_0x2e3f43,_0x55f3a3,_0x34d816){return _0x306c11(_0x2e3f43,_0x55f3a3,_0x34d816);},'SghaL':_0x3e8b42(0x150),'UDQRK':_0x3e8b42(0xc5),'oguMo':'test','izYtu':_0x3e8b42(0xb9),'YLTho':function(_0x502173,_0x41ba7b){return _0x502173===_0x41ba7b;},'TzZSp':_0x3e8b42(0x137),'oZLxg':'inherit','SEZcN':_0x3e8b42(0x13a)};!helper[_0x3e8b42(0xf5)](process[_0x3e8b42(0x111)][_0x3e8b42(0x12a)])&&(process[_0x3e8b42(0x111)][_0x3e8b42(0x12a)]=!![]);process[_0x3e8b42(0x142)]['includes'](_0xf36c95['PQhbX'])&&(process['env'][_0x3e8b42(0x12a)]=_0xf36c95[_0x3e8b42(0xcb)],_0x1bddca=_0x1bddca[_0x3e8b42(0xee)](_0x7c6e51=>_0x7c6e51!==_0x3e8b42(0x143)));const _0x4baebf=_0x1bddca['indexOf'](_0xf36c95[_0x3e8b42(0x115)]);_0xf36c95[_0x3e8b42(0x149)](_0x4baebf,0x0)&&(process[_0x3e8b42(0x111)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0xf36c95[_0x3e8b42(0xcb)],_0x1bddca=_0x1bddca['filter'](_0x56baa4=>_0x56baa4!==_0x3e8b42(0x117)));try{const _0x1fd91a=path['join'](helper[_0x3e8b42(0x11a)](),_0xf36c95[_0x3e8b42(0x110)],_0xf36c95[_0x3e8b42(0xdc)]);fs[_0x3e8b42(0xd0)](_0x1fd91a)&&fs['unlinkSync'](_0x1fd91a);}catch(_0x54ab9a){logger[_0x3e8b42(0x136)](_0xf36c95[_0x3e8b42(0xfd)](_0xf36c95[_0x3e8b42(0xde)],_0x54ab9a));}if(!_0xf36c95['Umxie'](isTestCommand,_0x3ed214,_0x1bddca)){_0xf36c95['YMKyv'](spawnOriginalProcess,_0x1bddca);return;}const _0x37b9b4=new BrowserStackSetup(_0x3ed214,FRAMEWORKS['PLAYWRIGHT']);if(!_0x37b9b4[_0x3e8b42(0x11f)]){logger[_0x3e8b42(0xd9)](_0xf36c95[_0x3e8b42(0xf2)]);return;}await _0x37b9b4[_0x3e8b42(0x12d)]();!helper[_0x3e8b42(0x13d)](_0x37b9b4[_0x3e8b42(0xd8)])&&_0x37b9b4[_0x3e8b42(0xd8)]['has'](_0xf36c95['MPElc'])&&(process[_0x3e8b42(0x111)][_0x3e8b42(0x12a)]=_0x37b9b4[_0x3e8b42(0xd8)][_0x3e8b42(0x103)](_0xf36c95[_0x3e8b42(0x14a)])||!![]);_0xf36c95['mmJxD'](_0x37b9b4['config'][_0x3e8b42(0x146)],null)&&!helper['isTrue'](process[_0x3e8b42(0x111)][_0x3e8b42(0xea)])&&(process[_0x3e8b42(0x111)][_0x3e8b42(0xea)]=process[_0x3e8b42(0x111)][_0x3e8b42(0xea)]||_0x37b9b4['config'][_0x3e8b42(0x146)]);const _0x561108=!helper[_0x3e8b42(0xf5)](process[_0x3e8b42(0x111)][_0x3e8b42(0xea)]);let _0x2e6ffb=![];_0x37b9b4[_0x3e8b42(0x11f)]['accessibility']&&(_0x2e6ffb=!![],process[_0x3e8b42(0x111)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x37b9b4['config']['accessibility']);_0x37b9b4[_0x3e8b42(0x11f)][_0x3e8b42(0xec)]&&(process[_0x3e8b42(0x111)][_0x3e8b42(0xcf)]=JSON[_0x3e8b42(0x11b)](_0x37b9b4[_0x3e8b42(0x11f)][_0x3e8b42(0xec)]));const _0x2ec73a=_0x1bddca[_0x3e8b42(0x12b)](),_0x5ecda3=await _0xf36c95[_0x3e8b42(0x10d)](getUserPlaywrightConfig,_0x3ed214,_0x1bddca);if(helper['isUndefined'](_0x5ecda3)){_0xf36c95[_0x3e8b42(0xe7)](spawnOriginalProcess,_0x2ec73a);return;}const _0x138918=_0x5ecda3[_0x3e8b42(0x12c)]?path[_0x3e8b42(0x10a)](_0x5ecda3[_0x3e8b42(0x12c)]):process[_0x3e8b42(0x114)]();process[_0x3e8b42(0x111)][_0x3e8b42(0xe5)]=_0x138918,await TestHubHandler['launchBuild'](FRAMEWORKS[_0x3e8b42(0x130)],_0x37b9b4);_0x561108&&_0xf36c95[_0x3e8b42(0xf9)](handleO11yRerun,_0x1bddca);let _0x3514b5=_0xf36c95['HvRBn'](process[_0x3e8b42(0x111)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0xf36c95[_0x3e8b42(0x12f)]);_0x3514b5=_0x3514b5||_0xf36c95['YMKyv'](checkAccessibilityPlatformConfig,_0x37b9b4[_0x3e8b42(0x11f)]),process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x3514b5;_0x3514b5&&_0xf36c95[_0x3e8b42(0xe7)](setAccessibilityCapabilities,_0x37b9b4['config']);const _0x27e57b=path['join'](_0x5ecda3['path']?path[_0x3e8b42(0x10a)](_0x5ecda3[_0x3e8b42(0x12c)]):process['cwd'](),_0xf36c95[_0x3e8b42(0xc8)]);fs[_0x3e8b42(0x13c)](_0x27e57b,helper[_0x3e8b42(0xe9)](_0x37b9b4[_0x3e8b42(0x11f)])),process[_0x3e8b42(0x111)][_0x3e8b42(0x102)]=_0x27e57b,helper[_0x3e8b42(0xe4)]();let _0xf8985='';_0xf36c95[_0x3e8b42(0xd5)](helper[_0x3e8b42(0xfe)](),constants[_0x3e8b42(0xb5)]['MODULE'])?_0xf8985=_0xf36c95[_0x3e8b42(0x11d)]:_0xf8985=_0xf36c95['IdphS'];let _0x55c2b6='';if(helper[_0x3e8b42(0x148)](_0x5ecda3[_0x3e8b42(0x12c)])){_0x55c2b6=_0x3e8b42(0xce);const _0x20cbc9=_0xf8985[_0x3e8b42(0xf8)]('.');_0x20cbc9[_0xf36c95['rktcc'](_0x20cbc9[_0x3e8b42(0xb8)],0x1)]='ts',_0xf8985=_0x20cbc9[_0x3e8b42(0xb4)]('.'),logger[_0x3e8b42(0x136)](_0xf36c95[_0x3e8b42(0xbf)](_0xf36c95[_0x3e8b42(0xdb)],_0xf8985));}else _0x55c2b6='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x3d3311=path[_0x3e8b42(0xb4)](_0x5ecda3[_0x3e8b42(0x12c)]?path[_0x3e8b42(0x10a)](_0x5ecda3[_0x3e8b42(0x12c)]):process['cwd'](),_0xf8985);let _0x4f230a=_0x5ecda3[_0x3e8b42(0x12c)]?_0x5ecda3[_0x3e8b42(0x12c)]:'';_0x4f230a=_0xf36c95[_0x3e8b42(0xef)](_0x4f230a[_0x3e8b42(0xb8)],0x0)?path[_0x3e8b42(0xbd)](_0x4f230a):'',process[_0x3e8b42(0x111)][_0x3e8b42(0x121)]=_0x4f230a;const _0x563cc1=helper[_0x3e8b42(0x134)](_0x37b9b4['config']);_0x563cc1&&(_0x55c2b6=_0xf36c95[_0x3e8b42(0xc6)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x563cc1+_0x3e8b42(0x14b),_0x55c2b6));helper[_0x3e8b42(0x120)]({},_0x1bddca),fs[_0x3e8b42(0x13c)](_0x3d3311,_0x55c2b6),helper[_0x3e8b42(0xb0)]();const _0x1d2cee=_0xf36c95[_0x3e8b42(0x123)](spawn,_0xf36c95['SghaL'],[_0xf36c95[_0x3e8b42(0xd7)],_0xf36c95[_0x3e8b42(0xc1)],_0xf36c95[_0x3e8b42(0xc3)],_0x3d3311,..._0x1bddca[_0x3e8b42(0x138)](0x2)],{'shell':_0xf36c95[_0x3e8b42(0xf7)](process[_0x3e8b42(0x125)],_0xf36c95[_0x3e8b42(0xcd)]),'stdio':_0xf36c95['oZLxg'],'cwd':process['cwd'](),'env':Object[_0x3e8b42(0xc0)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x3e8b42(0xdf)](_0x3ed214),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x37b9b4[_0x3e8b42(0x11f)][_0x3e8b42(0x14d)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x37b9b4['config'][_0x3e8b42(0x14d)][_0x3e8b42(0x144)],'BROWSERSTACK_LOG_LEVEL':_0x37b9b4[_0x3e8b42(0x11f)][_0x3e8b42(0x107)]})}),_0x52ff2=()=>{const _0x3965d1=_0x3e8b42;try{const _0x363f26=path[_0x3965d1(0xb4)](helper['homedir'](),_0xf36c95[_0x3965d1(0x110)],_0xf36c95[_0x3965d1(0xdc)]);if(fs[_0x3965d1(0xd0)](_0x363f26)){let _0xd6abc6=fs['readFileSync'](_0x363f26);_0xd6abc6=JSON[_0x3965d1(0xd4)](_0xd6abc6),_0x37b9b4[_0x3965d1(0x113)]=_0xd6abc6,fs[_0x3965d1(0x109)](_0x363f26);}}catch(_0x219f71){logger[_0x3965d1(0x136)](_0xf36c95[_0x3965d1(0x100)](_0xf36c95[_0x3965d1(0x127)],_0x219f71));}};_0x1d2cee['on'](_0xf36c95[_0x3e8b42(0xff)],async _0x4571ba=>{const _0x5965ac=_0x3e8b42;try{const _0x3fbe66=_0xf36c95[_0x5965ac(0xe0)][_0x5965ac(0xf8)]('|');let _0x3adebd=0x0;while(!![]){switch(_0x3fbe66[_0x3adebd++]){case'0':logger[_0x5965ac(0x136)](_0x5965ac(0xed)+_0x4571ba);continue;case'1':await utilities['finalExecution'](_0x37b9b4);continue;case'2':fs[_0x5965ac(0x109)](_0x3d3311);continue;case'3':fs[_0x5965ac(0x109)](_0x27e57b);continue;case'4':logger[_0x5965ac(0xe2)](_0x5965ac(0xd6)+_0x3d3311);continue;case'5':_0xf36c95[_0x5965ac(0xcc)](_0x52ff2);continue;case'6':await TestHubHandler[_0x5965ac(0xb2)]();continue;case'7':process[_0x5965ac(0x132)]=_0x4571ba;continue;case'8':logger[_0x5965ac(0x136)](_0x5965ac(0xd6)+_0x27e57b);continue;}break;}}catch(_0x43b6a1){logger[_0x5965ac(0x136)](_0xf36c95[_0x5965ac(0xc6)](_0xf36c95[_0x5965ac(0x14f)],_0x43b6a1));}});}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x485a87=a36_0x3b97;function a36_0x3b97(_0xd6be17,_0x55faf1){const _0x4bd81f=a36_0x4bd8();return a36_0x3b97=function(_0x3b9700,_0x1bf12e){_0x3b9700=_0x3b9700-0xbe;let _0x475f2e=_0x4bd81f[_0x3b9700];return _0x475f2e;},a36_0x3b97(_0xd6be17,_0x55faf1);}(function(_0x1e9ad5,_0x3ae540){const _0x14abf9=a36_0x3b97,_0x13f4e5=_0x1e9ad5();while(!![]){try{const _0x561405=-parseInt(_0x14abf9(0xc0))/0x1+parseInt(_0x14abf9(0xc8))/0x2+-parseInt(_0x14abf9(0xdb))/0x3+parseInt(_0x14abf9(0xe8))/0x4*(parseInt(_0x14abf9(0xcd))/0x5)+parseInt(_0x14abf9(0xe1))/0x6*(parseInt(_0x14abf9(0xd8))/0x7)+parseInt(_0x14abf9(0xc9))/0x8*(-parseInt(_0x14abf9(0xce))/0x9)+parseInt(_0x14abf9(0xd9))/0xa;if(_0x561405===_0x3ae540)break;else _0x13f4e5['push'](_0x13f4e5['shift']());}catch(_0x33ca7c){_0x13f4e5['push'](_0x13f4e5['shift']());}}}(a36_0x4bd8,0x1990b));const util=require('util'),child_process=require('child_process'),{FRAMEWORKS}=require(a36_0x485a87(0xdf)),{getFrameworkVersion,debug}=require(a36_0x485a87(0xe3)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require('./patches'),logger=require('../../helpers/logger')['winstonLogger'];function a36_0x4bd8(){const _0x2f6212=['../../helpers/test-observability/utils','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','RlmMi','exports','PLAYWRIGHT','396748xFVPzC','hKcXt','fork','toString','208652xAzrKa','zgTpQ','sMIAK','./mock-process.js','MLwRb','qgeds','pFMRx','\x20is\x20not\x20found','266520RmJuRF','8uTZHvM','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','bRrRo','BwRAJ','5SIbCDh','521919Aiqpje','Running\x20existing\x20global\x20setup','hVawN','wKRkc','apply','Path\x20','isHandlePWErrorSet','compareVersions','Call\x20to\x20child\x20fork\x20with\x20args\x20','VOyde','54712oLEvFE','1080350xOnBKZ','debug','94956QwjjhR','error','requirePWModule','env','../../helpers/test-observability/constants','includes','48VPQvRE','dTIpg'];a36_0x4bd8=function(){return _0x2f6212;};return a36_0x4bd8();}module[a36_0x485a87(0xe6)]=async function(_0x5f154d){const _0x4bf900=a36_0x485a87,_0x1650ee={'qgeds':function(_0x352f20,_0x2e9dd6){return _0x352f20(_0x2e9dd6);},'pFMRx':function(_0xe8e9ac){return _0xe8e9ac();},'VOyde':_0x4bf900(0xc3),'HxtmY':function(_0x22d89b){return _0x22d89b();},'zgTpQ':function(_0x1517c8){return _0x1517c8();},'hKcXt':function(_0x3f6481,_0x444b76){return _0x3f6481(_0x444b76);},'dTIpg':_0x4bf900(0xcf),'bRrRo':function(_0xda92d0){return _0xda92d0();},'MRiFi':function(_0x7f6184,_0x2e3bfa){return _0x7f6184>=_0x2e3bfa;},'MLwRb':'1.33.0','hVawN':function(_0x2e638f,_0x55231a,_0x3c3489){return _0x2e638f(_0x55231a,_0x3c3489);},'sMIAK':function(_0x4b7bac,_0x356548){return _0x4b7bac!==_0x356548;},'RlmMi':'function','BwRAJ':'Not\x20able\x20to\x20import\x20globalSetup','wKRkc':function(_0x2f7a13,_0x2d1c34){return _0x2f7a13(_0x2d1c34);}},_0x1e43d8=child_process['fork'];if(helper[_0x4bf900(0xd4)]())try{_0x1650ee[_0x4bf900(0xc1)](mockIsWorkerRedundant);}catch(_0xb23c4a){logger[_0x4bf900(0xda)](_0x4bf900(0xca)+util['format'](_0xb23c4a));}child_process[_0x4bf900(0xbe)]=function(){const _0x57f6ba=_0x4bf900;return _0x1650ee[_0x57f6ba(0xc5)](debug,_0x57f6ba(0xd6)+arguments[0x0]),arguments[0x0][_0x57f6ba(0xe0)](_0x1650ee[_0x57f6ba(0xc6)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x1650ee[_0x57f6ba(0xd7)]):logger[_0x57f6ba(0xdc)](_0x57f6ba(0xd3)+_0x1650ee['HxtmY'](getForkProcessPath)+_0x57f6ba(0xc7)),_0x1e43d8['apply'](null,arguments);};if(process[_0x4bf900(0xde)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x1650ee[_0x4bf900(0xe9)](debug,_0x1650ee[_0x4bf900(0xe2)]);try{const {loadGlobalHook:_0x349063}=helper[_0x4bf900(0xdd)][_0x4bf900(0xd2)](null,_0x1650ee[_0x4bf900(0xcb)](getLoadUtilsPath)),_0x702ca=_0x1650ee['qgeds'](getFrameworkVersion,FRAMEWORKS[_0x4bf900(0xe7)]);let _0x4538c1=_0x5f154d;if(_0x1650ee['MRiFi'](helper[_0x4bf900(0xd5)](_0x702ca,_0x1650ee[_0x4bf900(0xc4)]),0x0)){const _0x568357={};_0x568357['config']=_0x5f154d,_0x4538c1=_0x568357;}const _0x4bdcf9=await _0x1650ee[_0x4bf900(0xd0)](_0x349063,_0x4538c1,process[_0x4bf900(0xde)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x1650ee[_0x4bf900(0xc2)](typeof _0x4bdcf9,_0x1650ee[_0x4bf900(0xe5)]))throw new Error(_0x1650ee[_0x4bf900(0xcc)]);return _0x4bdcf9[_0x4bf900(0xd2)](null,arguments);}catch(_0x3f8009){_0x1650ee[_0x4bf900(0xd1)](debug,_0x4bf900(0xe4)+_0x3f8009[_0x4bf900(0xbf)]());}}};
|