browserstack-node-sdk 1.34.1 → 1.34.2
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 +2 -2
- package/src/ai-sdk-node/bundle.js +1 -0
- package/src/ai-sdk-node/extensions/chrome_extension.crx +0 -0
- 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 -0
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -0
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -0
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a28_0x53c482=a28_0x5948;(function(_0x30c4bf,_0x40383d){const _0x5c6249=a28_0x5948,_0x59aa0e=_0x30c4bf();while(!![]){try{const _0x270dd8=parseInt(_0x5c6249(0xb0))/0x1*(parseInt(_0x5c6249(0xd1))/0x2)+parseInt(_0x5c6249(0x98))/0x3*(-parseInt(_0x5c6249(0xdd))/0x4)+-parseInt(_0x5c6249(0xa7))/0x5+-parseInt(_0x5c6249(0xe8))/0x6+-parseInt(_0x5c6249(0xd6))/0x7+-parseInt(_0x5c6249(0x8b))/0x8+-parseInt(_0x5c6249(0xe1))/0x9*(-parseInt(_0x5c6249(0x95))/0xa);if(_0x270dd8===_0x40383d)break;else _0x59aa0e['push'](_0x59aa0e['shift']());}catch(_0x1df2a0){_0x59aa0e['push'](_0x59aa0e['shift']());}}}(a28_0x4303,0x69b49));const logger=require(a28_0x53c482(0xc0))['winstonLogger'],helper=require(a28_0x53c482(0xb6)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a28_0x53c482(0x8c)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a28_0x53c482(0xcf)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a28_0x53c482(0x89)),modify=(_0x31ce2b,_0x55fcc8=null,_0x14bc4b=![])=>{const _0x2960c6=a28_0x53c482,_0x39e413={'smtcb':function(_0x2f163b,_0x5bd95d){return _0x2f163b!==_0x5bd95d;},'itgHD':_0x2960c6(0x96),'wFJOu':function(_0x199859,_0xe0656e){return _0x199859!==_0xe0656e;},'RGbIg':function(_0x33a761,_0x80d4ca){return _0x33a761+_0x80d4ca;},'MBFgG':_0x2960c6(0xf4),'FhaZp':_0x2960c6(0xb9),'PFwpt':_0x2960c6(0xa2),'zyATZ':_0x2960c6(0xd8),'gewuh':_0x2960c6(0xa1),'UWlfX':'edgeOptions','iUAgU':_0x2960c6(0xe2),'JpMfy':_0x2960c6(0xaf),'wdjnC':_0x2960c6(0x9d),'SeLBH':'se:ieOptions','WdbXO':_0x2960c6(0xd9),'igTAS':function(_0x56e37,_0x1a4c6e){return _0x56e37===_0x1a4c6e;},'FCcen':_0x2960c6(0xe3),'HaXrZ':'Setting\x20Browserstack\x20capabilities','MZOJn':_0x2960c6(0x9c),'ZUrfY':_0x2960c6(0x8e),'LxJDc':function(_0x17936d,_0x5dc630,_0x5c0571){return _0x17936d(_0x5dc630,_0x5c0571);},'bpOwa':function(_0x4308fe,_0x1a3dcb){return _0x4308fe(_0x1a3dcb);},'pQYht':function(_0x38b307,_0xc0665a,_0xbbdd68){return _0x38b307(_0xc0665a,_0xbbdd68);},'XYTyf':_0x2960c6(0xb2),'AUPFG':_0x2960c6(0x9b),'YnwYx':'isAccessibilityPlatform','wpdgV':function(_0xa4c44a){return _0xa4c44a();},'SkUSJ':function(_0x4cafcc,_0x4cb562){return _0x4cafcc(_0x4cb562);},'DvivB':function(_0x40e92d,_0x3005fc){return _0x40e92d(_0x3005fc);},'MRDbE':function(_0xa2a63c,_0x3f5311){return _0xa2a63c!==_0x3f5311;},'FQnAZ':function(_0x535ec6,_0x5923c2){return _0x535ec6!==_0x5923c2;},'IIJzc':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','stoet':_0x2960c6(0xae)},_0x2e73a0=helper['requireHttpClient']();let _0x24d923;try{_0x24d923=helper[_0x2960c6(0x9a)](),_0x24d923[_0x2960c6(0xcd)]&&(_0x24d923['Builder']=_0x24d923[_0x2960c6(0xcd)]);}catch(_0x1be582){return;}if(helper[_0x2960c6(0xc8)]()){const _0x58ab48={};_0x58ab48[_0x2960c6(0xc5)]=_0x31ce2b[_0x2960c6(0xcb)],helper['setLogLevel'](_0x58ab48,new Map(),new Map()),logger[_0x2960c6(0xa5)](_0x39e413[_0x2960c6(0xeb)]),logger[_0x2960c6(0xdf)](_0x39e413[_0x2960c6(0xb8)]);}class _0x10201d extends _0x2e73a0['HttpClient']{['send'](_0x57bc61){const _0x3e6661=_0x2960c6;if(_0x39e413['smtcb'](_0x57bc61[_0x3e6661(0xb3)],_0x39e413['itgHD'])&&_0x39e413['wFJOu'](global[_0x3e6661(0x8a)],''))try{global[_0x3e6661(0x8a)]=_0x39e413['RGbIg'](_0x39e413[_0x3e6661(0x9e)](_0x39e413[_0x3e6661(0xd3)],global[_0x3e6661(0x8a)]),_0x39e413['FhaZp']),this[_0x3e6661(0xf6)]=hubAllocator[_0x3e6661(0x91)](global[_0x3e6661(0x8a)]),logger[_0x3e6661(0xdf)](_0x3e6661(0x88)+global[_0x3e6661(0x8a)]),global[_0x3e6661(0x8a)]='';}catch(_0x29ae71){logger[_0x3e6661(0xd5)](_0x29ae71);}return super[_0x3e6661(0xea)](_0x57bc61);}}class _0x480b32 extends _0x24d923['Builder']{['setServer'](){const _0x2257ad=_0x2960c6;return this['url_']=helper['getHubUrl'](_0x31ce2b),logger[_0x2257ad(0xdf)](_0x2257ad(0xa6)+this[_0x2257ad(0xe0)]),this;}[_0x2960c6(0xce)](_0x418700){const _0x59dbdc=_0x2960c6;let _0x43c010={};for(const _0x15bd40 in _0x418700){switch(_0x15bd40){case _0x39e413[_0x59dbdc(0xd2)]:case _0x39e413[_0x59dbdc(0xed)]:this[_0x59dbdc(0xa9)]&&(_0x43c010=this[_0x59dbdc(0xa9)][_0x59dbdc(0xe6)](this['chromeOptions_'][_0x59dbdc(0xc1)])||{},this[_0x59dbdc(0xa9)][_0x59dbdc(0xdc)](this[_0x59dbdc(0xa9)][_0x59dbdc(0xc1)],helper[_0x59dbdc(0xe7)](_0x43c010,_0x418700[_0x15bd40])));break;case _0x39e413[_0x59dbdc(0xec)]:case _0x39e413[_0x59dbdc(0xc4)]:this[_0x59dbdc(0xab)]&&(_0x43c010=this[_0x59dbdc(0xab)][_0x59dbdc(0xe6)](this[_0x59dbdc(0xab)]['CAPABILITY_KEY'])||{},this[_0x59dbdc(0xab)][_0x59dbdc(0xdc)](this[_0x59dbdc(0xab)][_0x59dbdc(0xc1)],helper['mergeDeep'](_0x43c010,_0x418700[_0x15bd40])));break;case _0x39e413[_0x59dbdc(0xee)]:case _0x39e413[_0x59dbdc(0xbd)]:this[_0x59dbdc(0xac)]&&(_0x43c010=this[_0x59dbdc(0xac)][_0x59dbdc(0xe6)](this[_0x59dbdc(0xac)][_0x59dbdc(0xc1)])||{},this[_0x59dbdc(0xac)][_0x59dbdc(0xdc)](this[_0x59dbdc(0xac)][_0x59dbdc(0xc1)],helper['mergeDeep'](_0x43c010,_0x418700[_0x15bd40])));break;case _0x39e413[_0x59dbdc(0x90)]:this[_0x59dbdc(0x92)]&&(_0x43c010=this[_0x59dbdc(0x92)][_0x59dbdc(0xe6)](this['safariOptions_']['CAPABILITY_KEY'])||{},this[_0x59dbdc(0x92)][_0x59dbdc(0xdc)](this['safariOptions_']['CAPABILITY_KEY'],helper[_0x59dbdc(0xe7)](_0x43c010,_0x418700[_0x15bd40])));break;case _0x39e413['SeLBH']:case _0x39e413['WdbXO']:this[_0x59dbdc(0xe4)]&&(_0x43c010=this[_0x59dbdc(0xe4)]['get'](this[_0x59dbdc(0xe4)][_0x59dbdc(0xc1)])||{},this[_0x59dbdc(0xe4)][_0x59dbdc(0xdc)](this[_0x59dbdc(0xe4)]['CAPABILITY_KEY'],helper[_0x59dbdc(0xe7)](_0x43c010,_0x418700[_0x15bd40])));break;}}}[_0x2960c6(0xdb)](){const _0x2ec4f7=_0x2960c6;return logger[_0x2ec4f7(0xdf)](_0x39e413[_0x2ec4f7(0xd7)]),this[_0x2ec4f7(0xce)](_0x31ce2b[_0x2ec4f7(0xf5)]),Object[_0x2ec4f7(0xde)](_0x31ce2b[_0x2ec4f7(0xf5)])['forEach'](_0x13e701=>{const _0x167438=_0x2ec4f7,_0x501a55=this['capabilities_'][_0x167438(0xe6)](_0x13e701);_0x39e413['igTAS'](typeof _0x501a55,_0x39e413['FCcen'])?this['capabilities_'][_0x167438(0xdc)](_0x13e701,helper[_0x167438(0xe7)](_0x501a55,_0x31ce2b[_0x167438(0xf5)][_0x13e701])):this[_0x167438(0xa4)][_0x167438(0xdc)](_0x13e701,_0x31ce2b['capability'][_0x13e701]);}),this;}[_0x2960c6(0x9f)](){const _0x1a28aa=_0x2960c6,_0x52b7bd={'btlCe':function(_0x2874d0,_0x189381,_0x539de4){const _0x4df813=a28_0x5948;return _0x39e413[_0x4df813(0x8d)](_0x2874d0,_0x189381,_0x539de4);},'hpOeD':function(_0x3d690f,_0x3cb7df,_0x2e5d97){const _0x1d1307=a28_0x5948;return _0x39e413[_0x1d1307(0x8d)](_0x3d690f,_0x3cb7df,_0x2e5d97);}};if(helper[_0x1a28aa(0xc8)]()){const _0x678a0a=_0x39e413[_0x1a28aa(0xad)][_0x1a28aa(0xbe)]('|');let _0x594931=0x0;while(!![]){switch(_0x678a0a[_0x594931++]){case'0':this['setServer']();continue;case'1':if(helper[_0x1a28aa(0x97)](_0x31ce2b[_0x1a28aa(0xf1)]['proxyUrl']))this[_0x1a28aa(0xa8)]=helper['getHttpAgent'](_0x31ce2b['proxySettings'][_0x1a28aa(0xf2)]);else _0x31ce2b[_0x1a28aa(0xf1)]['proxyUrl']&&(this['proxy_']=_0x31ce2b['proxySettings']['proxyUrl'],logger['debug'](_0x1a28aa(0x99)+this[_0x1a28aa(0xc2)]));continue;case'2':logger[_0x1a28aa(0xdf)](_0x39e413[_0x1a28aa(0xb7)]);continue;case'3':this['setCapabilities']();continue;case'4':globals['getGlobal'](_0x39e413[_0x1a28aa(0xaa)])&&(!_0x39e413[_0x1a28aa(0x8d)](setExtension,this,_0x31ce2b)&&globals['setGlobal'](_0x39e413[_0x1a28aa(0xaa)],![]));continue;case'5':_0x39e413['wpdgV'](isAccessibilityAutomationSession)&&_0x39e413[_0x1a28aa(0xa0)](setAccessibilityCapabilities,_0x31ce2b);continue;}break;}}const _0x13074c=super['build']();return _0x13074c[_0x1a28aa(0xda)][_0x1a28aa(0xe5)](_0xdf08ab=>{const _0x76725=_0x1a28aa;try{const _0x1d832c=_0xdf08ab[_0x76725(0xef)][_0x76725(0xe6)](_0x39e413['MZOJn']);_0x1d832c?(logger['debug'](_0x76725(0xe9)+_0x1d832c),hubAllocator['updateHubUrl'](_0x1d832c),helper[_0x76725(0xf0)](_0x1d832c)):logger[_0x76725(0xdf)](_0x39e413[_0x76725(0xd0)]);}catch(_0x3a15ee){logger['debug'](_0x76725(0xb5)+_0x3a15ee);}}),_0x13074c[_0x1a28aa(0x94)]=0x0,_0x13074c['then']&&_0x13074c[_0x1a28aa(0xe5)](_0xf12dff=>{const _0x2e52e1=_0x1a28aa,_0x94d513={'GKNZe':function(_0x3f8484,_0x5d2765,_0x171bb0){const _0x4064f0=a28_0x5948;return _0x39e413[_0x4064f0(0xc3)](_0x3f8484,_0x5d2765,_0x171bb0);}};_0x39e413[_0x2e52e1(0xc3)](overrideQuit,_0xf12dff,_0x13074c),_0x39e413[_0x2e52e1(0xa0)](overrideTakeScreenshot,_0xf12dff),helper['overrideGet'](_0xf12dff,_0x31ce2b),helper['overrideExecute'](_0xf12dff,_0x31ce2b),_0xf12dff[_0x2e52e1(0xc6)]=async()=>{const _0x215654=_0x2e52e1;return await _0x94d513[_0x215654(0xc9)](getAccessibilityResultsSummary,_0xf12dff,global);},_0xf12dff[_0x2e52e1(0xf3)]=async()=>{const _0x568b08=_0x2e52e1;return await _0x52b7bd[_0x568b08(0xc7)](getAccessibilityResults,_0xf12dff,global);};}),_0x13074c[_0x1a28aa(0xc6)]=async()=>{const _0x21e6bc=_0x1a28aa;return await _0x52b7bd[_0x21e6bc(0x93)](getAccessibilityResultsSummary,_0x13074c,global);},_0x13074c[_0x1a28aa(0xf3)]=async()=>{const _0x2569d0=_0x1a28aa;return await _0x52b7bd[_0x2569d0(0xc7)](getAccessibilityResults,_0x13074c,global);},_0x39e413['SkUSJ'](overrideTakeScreenshot,_0x13074c),_0x39e413['DvivB'](overrideQuit,_0x13074c),helper[_0x1a28aa(0xbc)](_0x13074c,_0x31ce2b),helper[_0x1a28aa(0xd4)](_0x13074c,_0x31ce2b),helper['isUndefined'](global[_0x1a28aa(0xa3)])&&(global['__driversArray']=[]),helper[_0x1a28aa(0xb4)](global['__drivers'])&&(global['__drivers']=[]),global[_0x1a28aa(0xa3)][_0x1a28aa(0xba)](_0x13074c),global['__driver']=_0x13074c,_0x39e413['MRDbE'](global[_0x1a28aa(0x8f)],undefined)&&global[_0x1a28aa(0x8f)][_0x1a28aa(0xba)](_0x13074c),_0x55fcc8&&helper[_0x1a28aa(0xb4)](_0x55fcc8['global'][_0x1a28aa(0xa3)])&&(_0x55fcc8['global']['__driversArray']=[]),_0x55fcc8&&_0x39e413['FQnAZ'](_0x55fcc8['global'][_0x1a28aa(0x8f)],undefined)&&(_0x55fcc8[_0x1a28aa(0xbb)][_0x1a28aa(0x8f)][_0x1a28aa(0xba)](_0x13074c),_0x55fcc8[_0x1a28aa(0xbb)][_0x1a28aa(0xa3)][_0x1a28aa(0xba)](_0x13074c)),_0x13074c;}}return _0x24d923['originalBuilder']=_0x24d923[_0x2960c6(0xbf)],_0x24d923[_0x2960c6(0xbf)]=_0x480b32,_0x2e73a0[_0x2960c6(0xcc)]=_0x10201d,_0x24d923;};module[a28_0x53c482(0xb1)][a28_0x53c482(0xca)]=modify;function a28_0x5948(_0x1f081b,_0x58f43d){const _0x4303ae=a28_0x4303();return a28_0x5948=function(_0x5948b1,_0x2f8f5d){_0x5948b1=_0x5948b1-0x88;let _0x2b78fa=_0x4303ae[_0x5948b1];return _0x2b78fa;},a28_0x5948(_0x1f081b,_0x58f43d);}function a28_0x4303(){const _0x835feb=['getAccessibilityResults','https://','capability','options_','New\x20hub\x20url\x20set\x20to\x20','../../../helpers/globals','newHubUrl','4808056TJVcRO','../../../hubAllocationMethods','pQYht','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','__drivers','wdjnC','getRequestOptions','safariOptions_','hpOeD','quitCount_','10410noKyig','/session','isPacProxy','235965aBSsJf','Proxy\x20set\x20to\x20','requireSeleniumWebdriver','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','optimalHubUrl','safari.options','RGbIg','build','bpOwa','ms:edgeOptions','goog:chromeOptions','__driversArray','capabilities_','info','Hub\x20url\x20set\x20to\x20','1138660HiDVap','agent_','chromeOptions_','YnwYx','edgeOptions_','firefoxOptions_','XYTyf','Modifying\x20webdriver\x20builder','firefoxOptions','81938lZQSdw','exports','5|0|3|1|4|2','path','isUndefined','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','../../../helpers/helper','AUPFG','stoet','/wd/hub','push','global','overrideGet','JpMfy','split','Builder','../../../helpers/logger','CAPABILITY_KEY','proxy_','LxJDc','UWlfX','logLevel','getAccessibilityResultsSummary','btlCe','isBrowserstackInfra','GKNZe','browserstackAgentObservability','browserStackLogLevel','HttpClient','originalBuilder','__setBrowserOptions','../../../helpers/patchHelpers','ZUrfY','14qRBIGJ','PFwpt','MBFgG','overrideExecute','error','4724944ZmuGAw','HaXrZ','chromeOptions','ieOptions','session_','setCapabilities','set','12GktxMt','keys','debug','url_','19053gMOFyg','moz:firefoxOptions','object','ieOptions_','then','get','mergeDeep','3628188BsCNBr','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','send','IIJzc','gewuh','zyATZ','iUAgU','caps_','storeOptimalHubUrl','proxySettings','proxyUrl'];a28_0x4303=function(){return _0x835feb;};return a28_0x4303();}
|
|
1
|
+
function a29_0x4c7c(){const _0x40d835=['newHubUrl','push','split','../../../hubAllocationMethods','__drivers','isUndefined','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','CAPABILITY_KEY','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','2299Mxxcco','11267640wijlzW','../../../bin/utils/constants','6156472KdTkHW','setCapabilities','pKKrq','qXedx','se:ieOptions','7qxFnel','caps_','gqBjL','originalBuilder','New\x20hub\x20url\x20set\x20to\x20','39UNooVt','capability','dKSDZ','vLCqQ','IJttV','sYBOf','5|3|4|0|1|2','yKKqp','JBnXS','hLzpI','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','ieOptions_','Modifying\x20webdriver\x20builder','__driversArray','kVFyu','IIecZ','__setBrowserOptions','kJfse','edgeOptions_','then','proxy_','getHttpAgent','exports','get','proxySettings','JpAWR','923555dkLnXI','Proxy\x20set\x20to\x20','getAccessibilityResultsSummary','iscvW','RmYxo','CMdgQ','set','browserstackAgentObservability','info','PLqJM','RZnzG','mergeDeep','setGlobal','session_','isPacProxy','RWfNp','ZALMZ','requireHttpClient','requireSeleniumWebdriver','../../../helpers/helper','safariOptions_','tbWbD','object','__driver','../../../helpers/patchHelpers','kfvno','30OhNtSE','goog:chromeOptions','send','NjiBm','firefoxOptions_','proxyUrl','Builder','Hub\x20url\x20set\x20to\x20','getAccessibilityResults','BOCWh','isBrowserstackInfra','../../../helpers/accessibility-automation/helper','quitCount_','capabilities_','KMRRh','chromeOptions_','getRequestOptions','build','../../../helpers/logger','eqlUW','/session','safari.options','setServer','DMDMX','../../../helpers/globals','updateHubUrl','url_','edgeOptions','72680oMnrpZ','debug','options_','optimalHubUrl','HttpClient','global','545532HKarSh','9428NyhwtW','https://','getGlobal','2390476eoZPqO','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','path'];a29_0x4c7c=function(){return _0x40d835;};return a29_0x4c7c();}const a29_0xdea631=a29_0x4ff3;(function(_0x1db9a4,_0xf195f2){const _0x1bffbe=a29_0x4ff3,_0x2a2c12=_0x1db9a4();while(!![]){try{const _0xfce2ff=-parseInt(_0x1bffbe(0xc8))/0x1+parseInt(_0x1bffbe(0xc9))/0x2*(-parseInt(_0x1bffbe(0x72))/0x3)+-parseInt(_0x1bffbe(0xcc))/0x4+-parseInt(_0x1bffbe(0x8c))/0x5*(-parseInt(_0x1bffbe(0xa6))/0x6)+parseInt(_0x1bffbe(0x6d))/0x7*(parseInt(_0x1bffbe(0x68))/0x8)+-parseInt(_0x1bffbe(0x66))/0x9+parseInt(_0x1bffbe(0xc2))/0xa*(parseInt(_0x1bffbe(0x65))/0xb);if(_0xfce2ff===_0xf195f2)break;else _0x2a2c12['push'](_0x2a2c12['shift']());}catch(_0x18ef85){_0x2a2c12['push'](_0x2a2c12['shift']());}}}(a29_0x4c7c,0xb8815));function a29_0x4ff3(_0x350f77,_0x3a304b){const _0x4c7c55=a29_0x4c7c();return a29_0x4ff3=function(_0x4ff33c,_0x1bdd10){_0x4ff33c=_0x4ff33c-0x65;let _0x199cd8=_0x4c7c55[_0x4ff33c];return _0x199cd8;},a29_0x4ff3(_0x350f77,_0x3a304b);}const logger=require(a29_0xdea631(0xb8))['winstonLogger'],helper=require(a29_0xdea631(0x9f)),constants=require(a29_0xdea631(0x67)),hubAllocator=require(a29_0xdea631(0xd2)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0xdea631(0xa4)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0xdea631(0xb1)),globals=require(a29_0xdea631(0xbe)),modify=(_0x895fab,_0x516d22=null,_0x267870=![])=>{const _0x4f6a9e=a29_0xdea631,_0x1de8e2={'iscvW':function(_0x26e2e0,_0x51bad6){return _0x26e2e0!==_0x51bad6;},'tbWbD':_0x4f6a9e(0xba),'yKKqp':function(_0x17fe64,_0x366929){return _0x17fe64+_0x366929;},'dKSDZ':function(_0x3b65c5,_0x3fbed9){return _0x3b65c5+_0x3fbed9;},'FTOtv':_0x4f6a9e(0xca),'RmYxo':'/wd/hub','BVNHF':_0x4f6a9e(0xa7),'cugVE':'chromeOptions','kfvno':'ms:edgeOptions','eqlUW':_0x4f6a9e(0xc1),'BOCWh':'moz:firefoxOptions','JpAWR':'firefoxOptions','HZMER':_0x4f6a9e(0xbb),'pKKrq':_0x4f6a9e(0x6c),'kJfse':'ieOptions','EOZeS':function(_0x3101fa,_0x3979e6){return _0x3101fa===_0x3979e6;},'RZnzG':_0x4f6a9e(0xa2),'yFyXK':'Setting\x20Browserstack\x20capabilities','qXedx':function(_0x41cce8,_0x597ebe,_0x205ce5){return _0x41cce8(_0x597ebe,_0x205ce5);},'vLCqQ':function(_0x368654,_0x1e5863,_0x4cd6b6){return _0x368654(_0x1e5863,_0x4cd6b6);},'CMdgQ':function(_0x20e2d8,_0x3d5d23){return _0x20e2d8(_0x3d5d23);},'PLqJM':function(_0x5c8cf5,_0x579a0c,_0x5de5a6){return _0x5c8cf5(_0x579a0c,_0x5de5a6);},'nDLJn':_0x4f6a9e(0xc5),'IIecZ':_0x4f6a9e(0xcd),'NjiBm':_0x4f6a9e(0x78),'JBnXS':'isAccessibilityPlatform','KMRRh':function(_0x1e06f5,_0x3b8b35,_0x2b1736){return _0x1e06f5(_0x3b8b35,_0x2b1736);},'IJttV':_0x4f6a9e(0xd7),'VVSjn':function(_0x5302dd){return _0x5302dd();},'RWfNp':function(_0x55c1bf,_0x15380a){return _0x55c1bf(_0x15380a);},'gqBjL':function(_0x287318,_0x233a72){return _0x287318!==_0x233a72;},'DMDMX':_0x4f6a9e(0xd5),'kVFyu':_0x4f6a9e(0x7e)},_0x35466a=helper[_0x4f6a9e(0x9d)]();let _0x1e4bd5;try{_0x1e4bd5=helper[_0x4f6a9e(0x9e)](),_0x1e4bd5['originalBuilder']&&(_0x1e4bd5[_0x4f6a9e(0xac)]=_0x1e4bd5[_0x4f6a9e(0x70)]);}catch(_0xbc40c7){return;}if(helper[_0x4f6a9e(0xb0)]()){const _0x11f3e7={};_0x11f3e7['logLevel']=_0x895fab['browserStackLogLevel'],helper['setLogLevel'](_0x11f3e7,new Map(),new Map()),logger[_0x4f6a9e(0x94)](_0x1de8e2[_0x4f6a9e(0xbd)]),logger[_0x4f6a9e(0xc3)](_0x1de8e2[_0x4f6a9e(0x80)]);}class _0x25511d extends _0x35466a['HttpClient']{[_0x4f6a9e(0xa8)](_0x2d4956){const _0x86ab58=_0x4f6a9e;if(_0x1de8e2['iscvW'](_0x2d4956[_0x86ab58(0xce)],_0x1de8e2[_0x86ab58(0xa1)])&&_0x1de8e2[_0x86ab58(0x8f)](global[_0x86ab58(0xcf)],''))try{global[_0x86ab58(0xcf)]=_0x1de8e2[_0x86ab58(0x79)](_0x1de8e2[_0x86ab58(0x74)](_0x1de8e2['FTOtv'],global[_0x86ab58(0xcf)]),_0x1de8e2[_0x86ab58(0x90)]),this[_0x86ab58(0xc4)]=hubAllocator[_0x86ab58(0xb6)](global['newHubUrl']),logger['debug'](_0x86ab58(0x71)+global[_0x86ab58(0xcf)]),global['newHubUrl']='';}catch(_0x32d50e){logger['error'](_0x32d50e);}return super['send'](_0x2d4956);}}class _0x1eb573 extends _0x1e4bd5[_0x4f6a9e(0xac)]{['setServer'](){const _0x4e7a6e=_0x4f6a9e;return this[_0x4e7a6e(0xc0)]=helper['getHubUrl'](_0x895fab),logger[_0x4e7a6e(0xc3)](_0x4e7a6e(0xad)+this['url_']),this;}[_0x4f6a9e(0x82)](_0x43ac99){const _0x363459=_0x4f6a9e;let _0x4cd2bd={};for(const _0x397f08 in _0x43ac99){switch(_0x397f08){case _0x1de8e2['BVNHF']:case _0x1de8e2['cugVE']:this['chromeOptions_']&&(_0x4cd2bd=this[_0x363459(0xb5)][_0x363459(0x89)](this[_0x363459(0xb5)][_0x363459(0xd6)])||{},this[_0x363459(0xb5)][_0x363459(0x92)](this['chromeOptions_'][_0x363459(0xd6)],helper['mergeDeep'](_0x4cd2bd,_0x43ac99[_0x397f08])));break;case _0x1de8e2[_0x363459(0xa5)]:case _0x1de8e2[_0x363459(0xb9)]:this[_0x363459(0x84)]&&(_0x4cd2bd=this[_0x363459(0x84)][_0x363459(0x89)](this[_0x363459(0x84)][_0x363459(0xd6)])||{},this[_0x363459(0x84)][_0x363459(0x92)](this['edgeOptions_']['CAPABILITY_KEY'],helper[_0x363459(0x97)](_0x4cd2bd,_0x43ac99[_0x397f08])));break;case _0x1de8e2[_0x363459(0xaf)]:case _0x1de8e2[_0x363459(0x8b)]:this[_0x363459(0xaa)]&&(_0x4cd2bd=this[_0x363459(0xaa)][_0x363459(0x89)](this[_0x363459(0xaa)]['CAPABILITY_KEY'])||{},this['firefoxOptions_'][_0x363459(0x92)](this[_0x363459(0xaa)][_0x363459(0xd6)],helper[_0x363459(0x97)](_0x4cd2bd,_0x43ac99[_0x397f08])));break;case _0x1de8e2['HZMER']:this['safariOptions_']&&(_0x4cd2bd=this['safariOptions_'][_0x363459(0x89)](this[_0x363459(0xa0)][_0x363459(0xd6)])||{},this[_0x363459(0xa0)][_0x363459(0x92)](this[_0x363459(0xa0)][_0x363459(0xd6)],helper[_0x363459(0x97)](_0x4cd2bd,_0x43ac99[_0x397f08])));break;case _0x1de8e2[_0x363459(0x6a)]:case _0x1de8e2[_0x363459(0x83)]:this[_0x363459(0x7d)]&&(_0x4cd2bd=this[_0x363459(0x7d)][_0x363459(0x89)](this[_0x363459(0x7d)][_0x363459(0xd6)])||{},this['ieOptions_']['set'](this[_0x363459(0x7d)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x4cd2bd,_0x43ac99[_0x397f08])));break;}}}[_0x4f6a9e(0x69)](){const _0x241803=_0x4f6a9e;return logger[_0x241803(0xc3)](_0x1de8e2['yFyXK']),this['__setBrowserOptions'](_0x895fab[_0x241803(0x73)]),Object['keys'](_0x895fab[_0x241803(0x73)])['forEach'](_0x55e152=>{const _0x4df67b=_0x241803,_0x4fd9d2=this[_0x4df67b(0xb3)][_0x4df67b(0x89)](_0x55e152);_0x1de8e2['EOZeS'](typeof _0x4fd9d2,_0x1de8e2[_0x4df67b(0x96)])?this['capabilities_'][_0x4df67b(0x92)](_0x55e152,helper[_0x4df67b(0x97)](_0x4fd9d2,_0x895fab[_0x4df67b(0x73)][_0x55e152])):this[_0x4df67b(0xb3)]['set'](_0x55e152,_0x895fab[_0x4df67b(0x73)][_0x55e152]);}),this;}[_0x4f6a9e(0xb7)](){const _0x419ad1=_0x4f6a9e,_0x4bca06={'hLzpI':_0x1de8e2['nDLJn'],'sYBOf':_0x1de8e2[_0x419ad1(0x81)],'ZALMZ':function(_0x9ee98b,_0xd29a7f,_0x5e9d54){return _0x1de8e2['vLCqQ'](_0x9ee98b,_0xd29a7f,_0x5e9d54);}};if(helper[_0x419ad1(0xb0)]()){const _0x4a9af3=_0x1de8e2[_0x419ad1(0xa9)][_0x419ad1(0xd1)]('|');let _0x1e4905=0x0;while(!![]){switch(_0x4a9af3[_0x1e4905++]){case'0':if(helper[_0x419ad1(0x9a)](_0x895fab[_0x419ad1(0x8a)][_0x419ad1(0xab)]))this['agent_']=helper[_0x419ad1(0x87)](_0x895fab[_0x419ad1(0x8a)][_0x419ad1(0xab)]);else _0x895fab[_0x419ad1(0x8a)][_0x419ad1(0xab)]&&(this[_0x419ad1(0x86)]=_0x895fab['proxySettings']['proxyUrl'],logger[_0x419ad1(0xc3)](_0x419ad1(0x8d)+this[_0x419ad1(0x86)]));continue;case'1':globals[_0x419ad1(0xcb)](_0x1de8e2[_0x419ad1(0x7a)])&&(!_0x1de8e2[_0x419ad1(0xb4)](setExtension,this,_0x895fab)&&globals[_0x419ad1(0x98)](_0x1de8e2[_0x419ad1(0x7a)],![]));continue;case'2':logger['debug'](_0x1de8e2[_0x419ad1(0x76)]);continue;case'3':this[_0x419ad1(0xbc)]();continue;case'4':this[_0x419ad1(0x69)]();continue;case'5':_0x1de8e2['VVSjn'](isAccessibilityAutomationSession)&&_0x1de8e2[_0x419ad1(0x91)](setAccessibilityCapabilities,_0x895fab);continue;}break;}}const _0x586510=super[_0x419ad1(0xb7)]();return _0x586510[_0x419ad1(0x99)]['then'](_0x3dd8a7=>{const _0x11ac7f=_0x419ad1;try{const _0x37205d=_0x3dd8a7[_0x11ac7f(0x6e)][_0x11ac7f(0x89)](_0x4bca06[_0x11ac7f(0x7b)]);_0x37205d?(logger[_0x11ac7f(0xc3)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x37205d),hubAllocator[_0x11ac7f(0xbf)](_0x37205d),helper['storeOptimalHubUrl'](_0x37205d)):logger[_0x11ac7f(0xc3)](_0x4bca06[_0x11ac7f(0x77)]);}catch(_0x4eaf01){logger[_0x11ac7f(0xc3)](_0x11ac7f(0x7c)+_0x4eaf01);}}),_0x586510[_0x419ad1(0xb2)]=0x0,_0x586510[_0x419ad1(0x85)]&&_0x586510[_0x419ad1(0x85)](_0xd9eaa2=>{const _0x3ce022=_0x419ad1,_0x359f10={'EjuNA':function(_0x52b2f,_0x1e8323,_0x5b8a2d){const _0x1d4990=a29_0x4ff3;return _0x1de8e2[_0x1d4990(0x6b)](_0x52b2f,_0x1e8323,_0x5b8a2d);}};_0x1de8e2[_0x3ce022(0x75)](overrideQuit,_0xd9eaa2,_0x586510),_0x1de8e2[_0x3ce022(0x91)](overrideTakeScreenshot,_0xd9eaa2),helper['overrideGet'](_0xd9eaa2,_0x895fab),helper['overrideExecute'](_0xd9eaa2,_0x895fab),_0xd9eaa2[_0x3ce022(0x8e)]=async()=>{return await _0x359f10['EjuNA'](getAccessibilityResultsSummary,_0xd9eaa2,global);},_0xd9eaa2[_0x3ce022(0xae)]=async()=>{const _0x10aa8d=_0x3ce022;return await _0x4bca06[_0x10aa8d(0x9c)](getAccessibilityResults,_0xd9eaa2,global);};}),_0x586510[_0x419ad1(0x8e)]=async()=>{const _0x331a90=_0x419ad1;return await _0x4bca06[_0x331a90(0x9c)](getAccessibilityResultsSummary,_0x586510,global);},_0x586510[_0x419ad1(0xae)]=async()=>{const _0x36adb9=_0x419ad1;return await _0x1de8e2[_0x36adb9(0x95)](getAccessibilityResults,_0x586510,global);},_0x1de8e2[_0x419ad1(0x91)](overrideTakeScreenshot,_0x586510),_0x1de8e2[_0x419ad1(0x9b)](overrideQuit,_0x586510),helper['overrideGet'](_0x586510,_0x895fab),helper['overrideExecute'](_0x586510,_0x895fab),helper[_0x419ad1(0xd4)](global[_0x419ad1(0x7f)])&&(global[_0x419ad1(0x7f)]=[]),helper[_0x419ad1(0xd4)](global[_0x419ad1(0xd3)])&&(global[_0x419ad1(0xd3)]=[]),global[_0x419ad1(0x7f)][_0x419ad1(0xd0)](_0x586510),global[_0x419ad1(0xa3)]=_0x586510,_0x1de8e2[_0x419ad1(0x6f)](global[_0x419ad1(0xd3)],undefined)&&global[_0x419ad1(0xd3)]['push'](_0x586510),_0x516d22&&helper[_0x419ad1(0xd4)](_0x516d22[_0x419ad1(0xc7)]['__driversArray'])&&(_0x516d22[_0x419ad1(0xc7)]['__driversArray']=[]),_0x516d22&&_0x1de8e2['iscvW'](_0x516d22[_0x419ad1(0xc7)][_0x419ad1(0xd3)],undefined)&&(_0x516d22[_0x419ad1(0xc7)]['__drivers']['push'](_0x586510),_0x516d22['global'][_0x419ad1(0x7f)][_0x419ad1(0xd0)](_0x586510)),_0x586510;}}return _0x1e4bd5[_0x4f6a9e(0x70)]=_0x1e4bd5[_0x4f6a9e(0xac)],_0x1e4bd5[_0x4f6a9e(0xac)]=_0x1eb573,_0x35466a[_0x4f6a9e(0xc6)]=_0x25511d,_0x1e4bd5;};module[a29_0xdea631(0x88)][a29_0xdea631(0x93)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a30_0x5263(){const _0xd12b3a=['325931WWcCcv','1567455jovWKy','../../../bin/utils/constants','2742019lyMUxe','TUpPI','332AylJOM','2323566ZFRknF','469316xSSVTQ','2006728osLeZD','timeout','mochaHooks','8457UgcYXS'];a30_0x5263=function(){return _0xd12b3a;};return a30_0x5263();}function a30_0x2eec(_0x4b2635,_0x3f61c0){const _0x526313=a30_0x5263();return a30_0x2eec=function(_0x2eecb7,_0x47e548){_0x2eecb7=_0x2eecb7-0xd7;let _0x5e8240=_0x526313[_0x2eecb7];return _0x5e8240;},a30_0x2eec(_0x4b2635,_0x3f61c0);}const a30_0x56139e=a30_0x2eec;(function(_0x3483ff,_0x41f09e){const _0x4c39f4=a30_0x2eec,_0x688654=_0x3483ff();while(!![]){try{const _0x28aeab=parseInt(_0x4c39f4(0xe2))/0x1+-parseInt(_0x4c39f4(0xdd))/0x2+-parseInt(_0x4c39f4(0xe1))/0x3*(-parseInt(_0x4c39f4(0xdb))/0x4)+parseInt(_0x4c39f4(0xd7))/0x5+-parseInt(_0x4c39f4(0xdc))/0x6+parseInt(_0x4c39f4(0xd9))/0x7+-parseInt(_0x4c39f4(0xde))/0x8;if(_0x28aeab===_0x41f09e)break;else _0x688654['push'](_0x688654['shift']());}catch(_0x16c5c6){_0x688654['push'](_0x688654['shift']());}}}(a30_0x5263,0x5fca4));const requestSpy=require('../../../helpers/request-spy'),constants=require(a30_0x56139e(0xd8)),{addRequestSpy}=require('../../../helpers/test-observability/utils');exports[a30_0x56139e(0xe0)]={'beforeAll'(){const _0x593516=a30_0x56139e,_0x1eac93={'TUpPI':function(_0x4beccf){return _0x4beccf();}},_0x5c867c='browserstack internal helper hook';_0x1eac93[_0x593516(0xda)](addRequestSpy);},'afterAll'(){const _0x8fb60d=a30_0x56139e,_0x1fec5e='browserstack internal helper hook';this[_0x8fb60d(0xdf)](0xea60),requestSpy['restore']();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a31_0x1e4e(_0x3dc119,_0x4a75ab){const _0x3c0748=a31_0x3c07();return a31_0x1e4e=function(_0x1e4ee4,_0x250e60){_0x1e4ee4=_0x1e4ee4-0x12e;let _0x39f490=_0x3c0748[_0x1e4ee4];return _0x39f490;},a31_0x1e4e(_0x3dc119,_0x4a75ab);}const a31_0x5cd789=a31_0x1e4e;(function(_0x395f78,_0x1a8937){const _0x5de6b2=a31_0x1e4e,_0x59ae47=_0x395f78();while(!![]){try{const _0x5af9ca=parseInt(_0x5de6b2(0x163))/0x1*(-parseInt(_0x5de6b2(0x188))/0x2)+-parseInt(_0x5de6b2(0x14c))/0x3*(parseInt(_0x5de6b2(0x178))/0x4)+-parseInt(_0x5de6b2(0x161))/0x5+-parseInt(_0x5de6b2(0x16b))/0x6*(-parseInt(_0x5de6b2(0x174))/0x7)+parseInt(_0x5de6b2(0x15a))/0x8*(parseInt(_0x5de6b2(0x181))/0x9)+parseInt(_0x5de6b2(0x18c))/0xa+parseInt(_0x5de6b2(0x143))/0xb;if(_0x5af9ca===_0x1a8937)break;else _0x59ae47['push'](_0x59ae47['shift']());}catch(_0x25fc2b){_0x59ae47['push'](_0x59ae47['shift']());}}}(a31_0x3c07,0x69965));const {v4:uuidv4}=require(a31_0x5cd789(0x165)),{name,version}=require(a31_0x5cd789(0x169)),logPatcher=require(a31_0x5cd789(0x13c)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook}=require(a31_0x5cd789(0x15d)),{consoleHolder}=require(a31_0x5cd789(0x13a)),{getPlatformVersion}=require(a31_0x5cd789(0x173)),{shouldProcessEventForTesthub}=require(a31_0x5cd789(0x159));function a31_0x3c07(){const _0x3867bb=['TEST_PLATFORM','../../../../package.json','automate','978NTgWPS','substring','type','nlFTk','appium:app','dVcZg','getHooksForTest','csmof','../../../helpers/helper','15666qwYxMo','hookAnalyticsId','KjJFa','bmmtW','4LBIdgq','mapTestHooks','toISOString','tests','JwvNX','split','getTestEnv','zYZyM','getBrowserName','114282AMZSOC','__cloud_provider___','_afterEach','push','fvdrq','ASPFe','forEach','28OMhlsr','dcpHE','hook:','passed','6637670tMpYBV','getBrowserVersion','state','ukxIM','uOTXy','QaStX','mWBmw','reduce','NwEwt','Rfsjf','mHTxB','TMwlX','FlcXx','ahyxZ','markedStatus','uJtHu','../../../helpers/test-observability/constants','bGqdz','../../utils/logPatcher','unknown_grid','emit','oDZxh','app','_afterAll','getHookSkippedTests','1248291DESdBC','slice','_beforeEach','OIcWN','string','bIubY','parent','_beforeAll','concat','1368039DVsvHK','ESfVl','hook','ojlAn','WfqpD','indexOf','fromEntries','RGaaP','getHookDetails','failed','generic','browserstack','QdGZI','../../../helpers/testhub/utils','472zIlkzM','YFroa','getCapabilities','../../../helpers/test-observability/utils','NXhCi','bs:addPlatformDetails:','getPlatform','4172860vYGicG','getSession','12011cgWqfF','sendPlatformDetails','uuid','fiLeo','hNKzk'];a31_0x3c07=function(){return _0x3867bb;};return a31_0x3c07();}console={},Object['keys'](consoleHolder)[a31_0x5cd789(0x187)](_0x1e2c51=>{console[_0x1e2c51]=(..._0x59b541)=>{BSTestOpsPatcher[_0x1e2c51](..._0x59b541);};}),exports[a31_0x5cd789(0x17e)]=()=>{const _0x4144e7=a31_0x5cd789,_0x58d0a0={'NXhCi':_0x4144e7(0x156),'ojlAn':function(_0x36f31e){return _0x36f31e();}};return{'ci':_0x58d0a0[_0x4144e7(0x15e)],'key':_0x58d0a0[_0x4144e7(0x14f)](uuidv4),'version':version,'collector':'js-'+name};},exports[a31_0x5cd789(0x154)]=_0x1abf62=>{const _0x1d0b28=a31_0x5cd789,_0x4b7d11={};_0x4b7d11[_0x1d0b28(0x185)]=function(_0x415daf,_0x922939){return _0x415daf!==_0x922939;},_0x4b7d11[_0x1d0b28(0x133)]=_0x1d0b28(0x147),_0x4b7d11[_0x1d0b28(0x189)]=_0x1d0b28(0x18a),_0x4b7d11[_0x1d0b28(0x136)]='hook';const _0x418830=_0x4b7d11;if(!_0x1abf62||_0x418830['fvdrq'](typeof _0x1abf62,_0x418830[_0x1d0b28(0x133)]))return[null,null];if(_0x418830[_0x1d0b28(0x185)](_0x1abf62[_0x1d0b28(0x151)](_0x418830['dcpHE']),-0x1)){const _0xafed29=_0x1abf62['split'](_0x418830[_0x1d0b28(0x189)]);return[_0xafed29[0x0][_0x1d0b28(0x144)](0x0,-0x1)[_0x1d0b28(0x17d)]('\x22')[0x1],_0xafed29[0x1][_0x1d0b28(0x16c)](0x1)];}else{if(_0x418830[_0x1d0b28(0x185)](_0x1abf62[_0x1d0b28(0x151)](_0x418830[_0x1d0b28(0x136)]),-0x1)){const _0x32215b=_0x1abf62['split'](_0x418830[_0x1d0b28(0x136)]);return[_0x32215b[0x0][_0x1d0b28(0x144)](0x0,-0x1)[_0x1d0b28(0x17d)]('\x22')[0x1],_0x1abf62];}}return[null,null];},exports[a31_0x5cd789(0x171)]=_0xfc37ee=>{const _0x45b4ae=a31_0x5cd789,_0x4bd7aa={'KjJFa':function(_0x18ba0d,_0x215087){return _0x18ba0d(_0x215087);},'OIcWN':_0x45b4ae(0x14a),'JwvNX':_0x45b4ae(0x141),'NwEwt':_0x45b4ae(0x145),'ESfVl':_0x45b4ae(0x183)};if(!_0xfc37ee||!_0xfc37ee[_0x45b4ae(0x149)])return[];const _0x1f01dc=[];return[_0x4bd7aa[_0x45b4ae(0x146)],_0x4bd7aa[_0x45b4ae(0x17c)],_0x4bd7aa[_0x45b4ae(0x132)],_0x4bd7aa[_0x45b4ae(0x14d)]][_0x45b4ae(0x187)](_0x59e325=>{const _0x2cd176=_0x45b4ae,_0x4ab1d2={'zYZyM':function(_0x26f42e,_0x2cbdcc){const _0x1d8051=a31_0x1e4e;return _0x4bd7aa[_0x1d8051(0x176)](_0x26f42e,_0x2cbdcc);}},_0x3bcd7b=_0xfc37ee[_0x2cd176(0x149)][_0x59e325]||[];_0x3bcd7b[_0x2cd176(0x187)](_0x360e24=>{const _0x5acca3=_0x2cd176;_0x360e24[_0x5acca3(0x175)]&&!_0x4ab1d2[_0x5acca3(0x17f)](isInternalHook,_0x360e24['fn'])&&_0x1f01dc[_0x5acca3(0x184)](_0x360e24[_0x5acca3(0x175)]);});}),[..._0x1f01dc,...exports['getHooksForTest'](_0xfc37ee[_0x45b4ae(0x149)])];},exports[a31_0x5cd789(0x179)]=_0x3950bc=>{const _0x153881=a31_0x5cd789,_0xba6344={'QaStX':function(_0x4dbe9f){return _0x4dbe9f();},'NDxMT':function(_0x663104,_0x41f580){return _0x663104===_0x41f580;},'QdGZI':_0x153881(0x183),'ahyxZ':function(_0x97d65d){return _0x97d65d();},'fiLeo':_0x153881(0x14a),'hbbua':_0x153881(0x141),'GqxCN':_0x153881(0x145)};if(!_0x3950bc||!_0x3950bc[_0x153881(0x149)])return;[_0xba6344[_0x153881(0x166)],_0xba6344['hbbua'],_0xba6344['GqxCN'],_0xba6344[_0x153881(0x158)]][_0x153881(0x187)](_0x2f4d2b=>{const _0x2619f1=_0x153881,_0x500acc={'dVcZg':function(_0x449c41){const _0x35c478=a31_0x1e4e;return _0xba6344[_0x35c478(0x12f)](_0x449c41);},'YFroa':function(_0xdbfa26,_0x55e7b8){return _0xba6344['NDxMT'](_0xdbfa26,_0x55e7b8);},'nlFTk':_0xba6344['QdGZI'],'csmof':function(_0x2e4478){const _0x49f987=a31_0x1e4e;return _0xba6344[_0x49f987(0x137)](_0x2e4478);}},_0x525e8f=_0x3950bc[_0x2619f1(0x149)][_0x2f4d2b]||[];_0x525e8f[_0x2619f1(0x187)](_0x5d034d=>{const _0x31e572=_0x2619f1;if(!_0x5d034d[_0x31e572(0x175)])_0x5d034d[_0x31e572(0x175)]=_0x500acc[_0x31e572(0x170)](uuidv4);else _0x5d034d[_0x31e572(0x138)]&&_0x500acc[_0x31e572(0x15b)](_0x2f4d2b,_0x500acc[_0x31e572(0x16e)])&&(_0x5d034d[_0x31e572(0x175)]=_0x500acc[_0x31e572(0x172)](uuidv4),delete _0x5d034d[_0x31e572(0x138)]);});}),exports[_0x153881(0x179)](_0x3950bc[_0x153881(0x149)]);},exports[a31_0x5cd789(0x164)]=async(_0x15c84d,_0x2d5e76)=>{const _0x6b2aeb=a31_0x5cd789,_0x174d14={'ASPFe':function(_0xb85dc8){return _0xb85dc8();},'oDZxh':function(_0xfedff9,_0x19be5b){return _0xfedff9===_0x19be5b;},'hNKzk':_0x6b2aeb(0x157),'uOTXy':_0x6b2aeb(0x16f),'uJtHu':_0x6b2aeb(0x140),'mvWAr':'app-automate','RtyCJ':_0x6b2aeb(0x16a),'bIubY':function(_0x10c9b7,_0x67ec50){return _0x10c9b7(_0x67ec50);},'WfqpD':function(_0x383015,_0x464d8e){return _0x383015===_0x464d8e;},'bGqdz':_0x6b2aeb(0x13d),'QsUWe':_0x6b2aeb(0x168),'mWBmw':function(_0x14d064,_0x4d7cab){return _0x14d064(_0x4d7cab);}};try{if(!_0x174d14[_0x6b2aeb(0x186)](shouldProcessEventForTesthub))return;const _0x617adf=await _0x15c84d['getCapabilities'](),_0x38cecf=await _0x15c84d[_0x6b2aeb(0x162)](),_0x30cf03={},_0x3d92fd=Object[_0x6b2aeb(0x152)](_0x38cecf[_0x6b2aeb(0x15c)]()['map_']),_0x1c3645={'product':_0x174d14[_0x6b2aeb(0x13f)](global['__cloud_provider___'],_0x174d14[_0x6b2aeb(0x167)])?_0x3d92fd[_0x174d14[_0x6b2aeb(0x12e)]]||_0x3d92fd[_0x174d14[_0x6b2aeb(0x139)]]?_0x174d14['mvWAr']:_0x174d14['RtyCJ']:null,'capabilities':_0x3d92fd,'platform':_0x617adf[_0x6b2aeb(0x160)](),'platform_version':_0x174d14[_0x6b2aeb(0x148)](getPlatformVersion,_0x174d14[_0x6b2aeb(0x150)](global[_0x6b2aeb(0x182)],_0x174d14[_0x6b2aeb(0x167)])),'browser':_0x617adf[_0x6b2aeb(0x180)](),'browser_version':_0x617adf[_0x6b2aeb(0x18d)](),'session_id':_0x38cecf['toJSON']()};global[_0x6b2aeb(0x182)]?_0x30cf03[global[_0x6b2aeb(0x182)]]=_0x1c3645:_0x30cf03[_0x174d14[_0x6b2aeb(0x13b)]]=_0x1c3645,process[_0x6b2aeb(0x13e)](_0x6b2aeb(0x15f)+process['pid'],{'timestamp':new Date()[_0x6b2aeb(0x17a)](),'level':null,'message':null,'kind':_0x174d14['QsUWe'],'http_response':_0x30cf03,'uuid':_0x2d5e76});}catch(_0xfc540c){_0x174d14[_0x6b2aeb(0x130)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0xfc540c);}},exports[a31_0x5cd789(0x142)]=_0x4f94eb=>{const _0x3b8b49=a31_0x5cd789,_0x469bcd={};_0x469bcd[_0x3b8b49(0x153)]=function(_0xeb9718,_0x106176){return _0xeb9718!==_0x106176;},_0x469bcd[_0x3b8b49(0x18f)]=_0x3b8b49(0x14e),_0x469bcd['mHTxB']=_0x3b8b49(0x18b),_0x469bcd[_0x3b8b49(0x177)]=function(_0x1c7384,_0xf3586c){return _0x1c7384!==_0xf3586c;},_0x469bcd[_0x3b8b49(0x135)]=_0x3b8b49(0x155);const _0x1276b0=_0x469bcd,_0x53a7ca=_0x4f94eb['suites'][_0x3b8b49(0x131)]((_0x2a5692,_0x2d3da1)=>{const _0x22841e=_0x3b8b49,_0x3135be=exports[_0x22841e(0x142)](_0x2d3da1);return _0x3135be&&(_0x2a5692=_0x2a5692['concat'](_0x3135be)),_0x2a5692;},[]),_0x260a3a=_0x4f94eb[_0x3b8b49(0x17b)]['filter'](_0x48d577=>{const _0x574a4a=_0x3b8b49,_0x56928d=_0x1276b0[_0x574a4a(0x153)](_0x48d577[_0x574a4a(0x16d)],_0x1276b0['ukxIM'])&&!_0x48d577[_0x574a4a(0x138)]&&_0x1276b0[_0x574a4a(0x153)](_0x48d577[_0x574a4a(0x18e)],_0x1276b0[_0x574a4a(0x134)])&&_0x1276b0['bmmtW'](_0x48d577[_0x574a4a(0x18e)],_0x1276b0[_0x574a4a(0x135)])&&!_0x48d577['pending'];return _0x56928d;});return _0x260a3a[_0x3b8b49(0x14b)](_0x53a7ca);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a31_0x38ff(){const _0x39271c=['debug','message','testcase','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','winstonLogger','UVGPW','ObservabilitySync:','QiGZt','8028ylvGiE','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','format','length','browserstackSessionName','info','getGlobal','12790VEFTIm','app','kojsR','../../helpers/globals','FbAxe','oAVOE','Ijnfo','jclJs','qRJxY','../../helpers/accessibility-automation/helper','AiDlQ','WLbvC','RPTjT','EMaky','push','Failed:\x20','Failed\x20to\x20store\x20session\x20name:\x20','passed','__drivers','appium:app','http:','../../helpers/accessibility-automation/scripts','testAnalyticsId','then','2775554edfkOO','isAccessibilityPlatform','saveTestResults','279tAovvP','Automate\x20test\x20case\x20execution\x20has\x20started.','wRMzR','bPFWJ','thTestRunUuid','sExFG','thJwtToken','ECgOp','error','Passed','YhumC','join','BROWSERSTACK_TESTHUB_JWT','err','.\x20Error\x20:','xcCXw','driverCleanup','SdSpT','sessionNameSet__','../../helpers/helper','7269255EHaJED','HDboP','5635752vuPWUl','performScan','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','util','lQGRf','jRJJS','timeout','capabilities','accessibilityScanStarted','__sessionFailed','ENV_VAR','FnCNb','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','__error_messages__','getCurrentUrl','BROWSERSTACK_TESTHUB_UUID','\x20-\x20','percyCaptureMode','state','203760KilkOL','currentTest','jLLLR',',\x22level\x22:\x20\x22','apKZk','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','__skipSessionName','772696UwjjFr','thBuildUuid','shift','ADCQS','XLoHC','stringify','session_','3395BlzmaT','mochaHooks','XBVMS','PZOcN','../../helpers/performance-tester','../../helpers/testhub/utils','bstackA11yShouldScan','../../helpers/testhub/constants','shouldScanTestForAccessibility','fcYTM','lkCDg','12ioCSgR','setGlobal','titlePath','executeScript','percy','SSXjZ','executeAsyncScript','isArray','protocol'];a31_0x38ff=function(){return _0x39271c;};return a31_0x38ff();}function a31_0x38a1(_0xeb9cea,_0x5ae755){const _0x38ff49=a31_0x38ff();return a31_0x38a1=function(_0x38a178,_0x4b5e7a){_0x38a178=_0x38a178-0x1c6;let _0x1b6d47=_0x38ff49[_0x38a178];return _0x1b6d47;},a31_0x38a1(_0xeb9cea,_0x5ae755);}const a31_0x8d0fc=a31_0x38a1;(function(_0x3de36d,_0x52c806){const _0x94a9c8=a31_0x38a1,_0xb22edc=_0x3de36d();while(!![]){try{const _0x3f2e6d=parseInt(_0x94a9c8(0x1dd))/0x1+parseInt(_0x94a9c8(0x1f5))/0x2+-parseInt(_0x94a9c8(0x23a))/0x3*(-parseInt(_0x94a9c8(0x228))/0x4)+-parseInt(_0x94a9c8(0x22f))/0x5*(-parseInt(_0x94a9c8(0x1d6))/0x6)+-parseInt(_0x94a9c8(0x20c))/0x7+-parseInt(_0x94a9c8(0x20e))/0x8+-parseInt(_0x94a9c8(0x1f8))/0x9*(parseInt(_0x94a9c8(0x221))/0xa);if(_0x3f2e6d===_0x52c806)break;else _0xb22edc['push'](_0xb22edc['shift']());}catch(_0x1b6c52){_0xb22edc['push'](_0xb22edc['shift']());}}}(a31_0x38ff,0xaca67));const util=require(a31_0x8d0fc(0x211)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a31_0x8d0fc(0x1e6)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a31_0x8d0fc(0x20b)),PerformanceTester=require(a31_0x8d0fc(0x233)),scripts=require(a31_0x8d0fc(0x1f2)),globals=require(a31_0x8d0fc(0x1e0)),logger=require('../../helpers/logger')[a31_0x8d0fc(0x1d2)],{shouldProcessEventForTesthub}=require(a31_0x8d0fc(0x234)),testHubConstants=require(a31_0x8d0fc(0x236));exports[a31_0x8d0fc(0x230)]={'beforeAll'(){const _0x5925ea=a31_0x8d0fc,_0x16e5a7={'lkCDg':function(_0x5caa0d,_0x2b166a,_0x2fe41a,_0xf4d02f){return _0x5caa0d(_0x2b166a,_0x2fe41a,_0xf4d02f);},'YctvT':'failed','AiDlQ':'\x20|\x20','YYlUr':function(_0x4d13da,_0x1b1c35,_0x31cf1b){return _0x4d13da(_0x1b1c35,_0x31cf1b);},'jLLLR':_0x5925ea(0x1ee),'VTXVn':function(_0x1ac80c){return _0x1ac80c();},'SpWmn':function(_0x2ea501,_0x3e084a,_0x3137ee){return _0x2ea501(_0x3e084a,_0x3137ee);}};PerformanceTester['startMonitoring']();const _0x3312ef='browserstack internal helper hook';global['__error_messages__']=[],global['__sessionFailed']=![],global[_0x5925ea(0x208)]=async()=>{const _0xd2d0d0=_0x5925ea;let _0x73c06b=![];try{await global['__drivers'][0x0]['session_'],_0x73c06b=!![],global[_0xd2d0d0(0x217)]?await _0x16e5a7[_0xd2d0d0(0x239)](markSessionStatus,global[_0xd2d0d0(0x1ef)][0x0],_0x16e5a7['YctvT'],global[_0xd2d0d0(0x21b)][_0xd2d0d0(0x203)](_0x16e5a7[_0xd2d0d0(0x1e7)])):await _0x16e5a7['YYlUr'](markSessionStatus,global[_0xd2d0d0(0x1ef)][0x0],_0x16e5a7[_0xd2d0d0(0x223)]);}catch(_0x8bfe9b){}global[_0xd2d0d0(0x21b)]=[],global[_0xd2d0d0(0x217)]=![];if(_0x73c06b)try{try{_0x16e5a7['VTXVn'](shouldProcessEventForTesthub)&&(global[_0xd2d0d0(0x1ef)][0x0]&&await _0x16e5a7['SpWmn'](sendPlatformDetails,global[_0xd2d0d0(0x1ef)][0x0],this[_0xd2d0d0(0x222)]?this['currentTest']['testAnalyticsId']:null));}catch{}await global[_0xd2d0d0(0x1ef)][0x0]['initQuit']();}catch(_0x58c0d5){}};},'beforeEach'(_0x28aca7){const _0x3769a8=a31_0x8d0fc,_0x443589={'FbAxe':function(_0x3a5b59,_0x40a808){return _0x3a5b59>_0x40a808;},'wRMzR':function(_0x20c4ed,_0x1c36c5){return _0x20c4ed>_0x1c36c5;},'qRJxY':'\x20-\x20','UVGPW':function(_0x5aa10f,_0x3a0736,_0xe7c0d4){return _0x5aa10f(_0x3a0736,_0xe7c0d4);},'jMrUZ':_0x3769a8(0x235),'sExFG':function(_0x229caa){return _0x229caa();},'RPTjT':_0x3769a8(0x1f6),'ECgOp':function(_0x2c97f3,_0x1f9a6e){return _0x2c97f3===_0x1f9a6e;},'EMaky':_0x3769a8(0x1f1),'ZWYqD':'https:','XBVMS':_0x3769a8(0x210),'WLbvC':_0x3769a8(0x1f9),'SSXjZ':function(_0x2ea03e){return _0x2ea03e();}};new Promise(async _0x2fe14b=>{const _0x165875=_0x3769a8,_0x3e64f4='browserstack internal helper hook';let _0x2b028a=!![];try{_0x443589[_0x165875(0x1e1)](global[_0x165875(0x1ef)][_0x165875(0x1d9)],0x1)&&(await global[_0x165875(0x208)](),global['__drivers']['shift']()),_0x443589[_0x165875(0x1fa)](global[_0x165875(0x1ef)][0x0]['quitCount_'],0x0)&&(_0x2b028a=![],await global[_0x165875(0x208)]());}catch{}try{Array['isArray'](global[_0x165875(0x1ef)])&&global[_0x165875(0x1ef)][0x0]&&(global[_0x165875(0x1ef)][0x0]['browserstackSessionName']=this['currentTest'][_0x165875(0x1c7)]()['join'](_0x443589['qRJxY'])),global[_0x165875(0x1da)]=this[_0x165875(0x222)][_0x165875(0x1c7)]()['join'](_0x443589[_0x165875(0x1e5)]);}catch(_0x2135ba){logger[_0x165875(0x1ce)](_0x165875(0x1ed)+_0x2135ba);}this[_0x165875(0x222)][_0x165875(0x237)]=_0x443589[_0x165875(0x1d3)](shouldScanTestForAccessibility,this[_0x165875(0x222)]['titlePath'](),!![]),globals[_0x165875(0x1c6)](_0x443589['jMrUZ'],this[_0x165875(0x222)][_0x165875(0x237)]),this['currentTest']['accessibilityScanStarted']=!![];if(_0x443589[_0x165875(0x1fd)](isAccessibilityAutomationSession)&&_0x2b028a&&Array[_0x165875(0x1cc)](global[_0x165875(0x1ef)])&&_0x443589[_0x165875(0x1e1)](global['__drivers']['length'],0x0)&&globals[_0x165875(0x1dc)](_0x443589[_0x165875(0x1e9)]))try{const _0x2689cb=await global['__drivers'][0x0][_0x165875(0x22e)];if(_0x2689cb){let _0x7c7488=!![];const _0x2e40b8=await global[_0x165875(0x1ef)][0x0][_0x165875(0x21c)]();let _0x3cffdf;try{_0x3cffdf=new URL(_0x2e40b8);}catch(_0x3d4076){_0x7c7488=![];}_0x7c7488=_0x443589[_0x165875(0x1ff)](_0x3cffdf[_0x165875(0x1cd)],_0x443589[_0x165875(0x1ea)])||_0x443589[_0x165875(0x1ff)](_0x3cffdf[_0x165875(0x1cd)],_0x443589['ZWYqD']),_0x7c7488&&(this[_0x165875(0x222)]['shouldScanTestForAccessibility']&&logger[_0x165875(0x1db)](_0x443589[_0x165875(0x231)])),this[_0x165875(0x222)][_0x165875(0x216)]=this[_0x165875(0x222)][_0x165875(0x237)],this[_0x165875(0x222)][_0x165875(0x237)]&&logger['info'](_0x443589[_0x165875(0x1e8)]);}}catch(_0x36ac01){logger[_0x165875(0x200)](_0x165875(0x21a)+util[_0x165875(0x1d8)](_0x36ac01));}_0x443589[_0x165875(0x1ca)](_0x2fe14b);})[_0x3769a8(0x1f4)](_0x28aca7);},'afterEach'(_0x489793){const _0x168586=a31_0x8d0fc,_0x6d30a3={'Ijnfo':function(_0xa8527a,_0x507b39){return _0xa8527a>_0x507b39;},'ccEki':function(_0x4416fb,_0x55347e){return _0x4416fb===_0x55347e;},'ADCQS':_0x168586(0x1d0),'fcYTM':function(_0xba4576,_0x596c2d){return _0xba4576>_0x596c2d;},'xcCXw':_0x168586(0x1f0),'jRJJS':function(_0x28917b,_0x39f494,_0x152197,_0x342489){return _0x28917b(_0x39f494,_0x152197,_0x342489);},'apKZk':_0x168586(0x21e),'HDboP':function(_0x412dcc,_0x1de7d6){return _0x412dcc!==_0x1de7d6;},'IiHNG':'passed','kojsR':function(_0x3a15c7,_0x2a4f02,_0xcc102e){return _0x3a15c7(_0x2a4f02,_0xcc102e);},'ponEF':function(_0x11d813,_0x4b2cbd){return _0x11d813+_0x4b2cbd;},'gDeZR':_0x168586(0x1ec),'FnCNb':_0x168586(0x200),'bPFWJ':_0x168586(0x201),'rEzwB':_0x168586(0x1db),'SdSpT':_0x168586(0x1f6),'XLoHC':_0x168586(0x235),'mRpLO':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','oAVOE':'Performing\x20scan\x20before\x20saving\x20results','YhumC':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','xooaF':function(_0x199cee){return _0x199cee();},'PZOcN':function(_0xb03dfb){return _0xb03dfb();},'lQGRf':'debug','jclJs':function(_0x19ebaa,_0x2ac304){return _0x19ebaa>_0x2ac304;},'CTxoQ':function(_0x3d4739){return _0x3d4739();}},_0x2fccdc='browserstack internal helper hook';this[_0x168586(0x214)](0xfde8);const _0x182957=async(_0xcb63b6,_0x2f145d)=>{const _0x2654e3=_0x168586;await global['__drivers'][0x0]['executeScript'](_0x2654e3(0x1d1)+_0xcb63b6+_0x2654e3(0x224)+_0x2f145d+'\x22}}');};new Promise(async _0x43f8bb=>{const _0x17eb59=_0x168586;try{_0x6d30a3[_0x17eb59(0x1e3)](global[_0x17eb59(0x1ef)][_0x17eb59(0x1d9)],0x1)&&(await global[_0x17eb59(0x208)](),global[_0x17eb59(0x1ef)][_0x17eb59(0x22a)](),global['__error_messages__']=[],global[_0x17eb59(0x217)]=![]);try{if(global[_0x17eb59(0x1c9)]&&_0x6d30a3['ccEki'](global[_0x17eb59(0x21f)],_0x6d30a3[_0x17eb59(0x22b)])&&global['__drivers'][0x0]){const _0x45afab=_0x6d30a3[_0x17eb59(0x238)](global[_0x17eb59(0x215)][_0x17eb59(0x1d9)],0x0)?!!global[_0x17eb59(0x215)][0x0][_0x17eb59(0x1de)]||!!global[_0x17eb59(0x215)][0x0][_0x6d30a3[_0x17eb59(0x207)]]:![],_0x334500={};_0x334500[_0x17eb59(0x1de)]=_0x45afab,await _0x6d30a3[_0x17eb59(0x213)](percyAutoCapture,global[_0x17eb59(0x1ef)][0x0],_0x6d30a3['ADCQS'],_0x334500);}}catch(_0x355cb2){}!global[_0x17eb59(0x227)]&&(await global[_0x17eb59(0x1ef)][0x0][_0x17eb59(0x1c8)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x17eb59(0x22d)](this[_0x17eb59(0x222)][_0x17eb59(0x1c7)]()[_0x17eb59(0x203)](_0x6d30a3[_0x17eb59(0x225)]))+'}}'),global[_0x17eb59(0x1ef)][0x0][_0x17eb59(0x20a)]=!![]);const _0x2e44c3=_0x6d30a3[_0x17eb59(0x20d)](this['currentTest'][_0x17eb59(0x220)],_0x6d30a3['IiHNG']);_0x2e44c3?(global[_0x17eb59(0x217)]=!![],global[_0x17eb59(0x21b)][_0x17eb59(0x1eb)](this[_0x17eb59(0x222)]['err'][_0x17eb59(0x1cf)]),await _0x6d30a3[_0x17eb59(0x1df)](_0x182957,JSON[_0x17eb59(0x22d)](_0x6d30a3['ponEF'](_0x6d30a3['gDeZR'],this['currentTest'][_0x17eb59(0x205)][_0x17eb59(0x1cf)])),_0x6d30a3[_0x17eb59(0x219)])):await _0x6d30a3[_0x17eb59(0x1df)](_0x182957,JSON[_0x17eb59(0x22d)](_0x6d30a3[_0x17eb59(0x1fb)]),_0x6d30a3['rEzwB']);}catch(_0x15ffd2){}try{if(this[_0x17eb59(0x222)][_0x17eb59(0x216)]&&globals[_0x17eb59(0x1dc)](_0x6d30a3[_0x17eb59(0x209)])&&globals['getGlobal'](_0x6d30a3[_0x17eb59(0x22c)])){logger[_0x17eb59(0x1db)](_0x6d30a3['mRpLO']);const _0x524254={};_0x524254[_0x17eb59(0x1fc)]=this[_0x17eb59(0x222)][_0x17eb59(0x1f3)],_0x524254[_0x17eb59(0x229)]=process['env'][testHubConstants[_0x17eb59(0x218)][_0x17eb59(0x21d)]],_0x524254[_0x17eb59(0x1fe)]=process['env'][testHubConstants[_0x17eb59(0x218)][_0x17eb59(0x204)]];const _0x235e67=_0x524254;logger[_0x17eb59(0x1ce)](_0x17eb59(0x226)+JSON['stringify'](_0x235e67)),logger[_0x17eb59(0x1ce)](_0x6d30a3[_0x17eb59(0x1e2)]),logger[_0x17eb59(0x1ce)](util['format'](await global[_0x17eb59(0x1ef)][0x0][_0x17eb59(0x1cb)](scripts[_0x17eb59(0x20f)],{'method':global['browserstackSessionName']}))),await global[_0x17eb59(0x1ef)][0x0][_0x17eb59(0x1cb)](scripts[_0x17eb59(0x1f7)],_0x235e67),logger[_0x17eb59(0x1db)](_0x6d30a3[_0x17eb59(0x202)]);}}catch(_0x4b5259){logger[_0x17eb59(0x200)](_0x17eb59(0x1d7)+this['currentTest'][_0x17eb59(0x1c7)]()+_0x17eb59(0x206),_0x4b5259);}try{try{if(_0x6d30a3['xooaF'](shouldProcessEventForTesthub)){global[_0x17eb59(0x1ef)][0x0]&&await _0x6d30a3['kojsR'](sendPlatformDetails,global[_0x17eb59(0x1ef)][0x0],this[_0x17eb59(0x222)]?this['currentTest']['testAnalyticsId']:null);if(_0x6d30a3[_0x17eb59(0x232)](isBrowserstackInfra)){const _0x565abb=_0x17eb59(0x1d4)+Date['now']();await _0x6d30a3[_0x17eb59(0x1df)](_0x182957,JSON[_0x17eb59(0x22d)](_0x565abb),_0x6d30a3[_0x17eb59(0x212)]);}}}catch{}_0x6d30a3[_0x17eb59(0x1e4)](global[_0x17eb59(0x1ef)][0x0]['quitCount_'],0x0)&&await global[_0x17eb59(0x208)]();}catch(_0x17a448){}_0x6d30a3['CTxoQ'](_0x43f8bb);})[_0x168586(0x1f4)](()=>_0x489793());},'afterAll'(_0x4727c1){const _0x3e20c3=a31_0x8d0fc,_0x4335b9={'QiGZt':function(_0x377c27){return _0x377c27();}},_0x4e83f9='browserstack internal helper hook';this[_0x3e20c3(0x214)](0xfde8),new Promise(async _0x4e48f0=>{const _0x3c5d1a=_0x3e20c3;PerformanceTester['stopMonitoring'](),await global[_0x3c5d1a(0x208)](),_0x4335b9[_0x3c5d1a(0x1d5)](_0x4e48f0);})[_0x3e20c3(0x1f4)](()=>_0x4727c1());}};
|
|
1
|
+
const a32_0xe01c8c=a32_0xe4b5;function a32_0x2a2a(){const _0x427917=['YhLqh','stopMonitoring','saveTestResults','length','https:','__drivers','join','SFuAz','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','RzLbb','appium:app','urGyD','format','env','OALAG','../../helpers/percy/utils','10pADwXO','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','jrHed','jXyLK','failed','app','10956771MHuNZI','pIWeT','118482UvBBtX','roeBn','6hGavnl','__sessionFailed','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','sessionNameSet__','isAccessibilityPlatform','testcase','http:','shouldScanTestForAccessibility','then','thTestRunUuid','__skipSessionName','QuVja','../../helpers/testhub/utils','error','now','initQuit','BROWSERSTACK_TESTHUB_JWT','../../helpers/globals','GcdbM','stringify','getGlobal','thBuildUuid','mlTWX','3478434qHayfQ','BROWSERSTACK_TESTHUB_UUID','2883565Dashtr','setGlobal','\x20-\x20','PlyHQ','titlePath','cCXGj','util','../../helpers/helper','WhBFW','oMBco','mochaHooks','mFHjA','testAnalyticsId','../../helpers/testhub/constants','AWEIS','fMSlo','cUvDm','.\x20Error\x20:','isArray','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','executeAsyncScript','passed','7aPsbqD','../../helpers/performance-tester','7355404jgBGkw','debug','../../helpers/logger',',\x22level\x22:\x20\x22','push','driverCleanup','info','quitCount_','kmtlY','ObservabilitySync:','session_','wpzZp','browserstackSessionName','Performing\x20scan\x20before\x20saving\x20results','XTnVD','currentTest','ENV_VAR','protocol','Automate\x20test\x20case\x20execution\x20has\x20started.','percy','getCurrentUrl','8vHulTw','ugPxL','bstackA11yShouldScan','winstonLogger','executeScript','dpGfr','IHowa','shift','Failed\x20to\x20store\x20session\x20name:\x20','42007163iFsjfm','IMHCk','CGGxB','message','fPqUM','capabilities','../../helpers/accessibility-automation/helper','3587008mKFTmh','accessibilityScanStarted','Passed','KFjby','\x22}}','__error_messages__','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','\x20|\x20','./test-observability/mochaUtils','DyMJZ'];a32_0x2a2a=function(){return _0x427917;};return a32_0x2a2a();}(function(_0x2ddc54,_0x4cd022){const _0x533876=a32_0xe4b5,_0x273669=_0x2ddc54();while(!![]){try{const _0x57f2e4=-parseInt(_0x533876(0x173))/0x1*(parseInt(_0x533876(0x142))/0x2)+parseInt(_0x533876(0x15b))/0x3+parseInt(_0x533876(0x19a))/0x4+parseInt(_0x533876(0x15d))/0x5*(parseInt(_0x533876(0x144))/0x6)+parseInt(_0x533876(0x175))/0x7*(parseInt(_0x533876(0x18a))/0x8)+parseInt(_0x533876(0x140))/0x9+-parseInt(_0x533876(0x1b4))/0xa*(parseInt(_0x533876(0x193))/0xb);if(_0x57f2e4===_0x4cd022)break;else _0x273669['push'](_0x273669['shift']());}catch(_0x169447){_0x273669['push'](_0x273669['shift']());}}}(a32_0x2a2a,0xa2fde));const util=require(a32_0xe01c8c(0x163)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0xe01c8c(0x199)),{percyAutoCapture}=require(a32_0xe01c8c(0x1b3)),{sendPlatformDetails}=require(a32_0xe01c8c(0x1a2)),{isBrowserstackInfra,markSessionStatus}=require(a32_0xe01c8c(0x164)),PerformanceTester=require(a32_0xe01c8c(0x174)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0xe01c8c(0x155)),logger=require(a32_0xe01c8c(0x177))[a32_0xe01c8c(0x18d)],{shouldProcessEventForTesthub}=require(a32_0xe01c8c(0x150)),testHubConstants=require(a32_0xe01c8c(0x16a));function a32_0xe4b5(_0x2c719c,_0x14d64f){const _0x2a2a76=a32_0x2a2a();return a32_0xe4b5=function(_0xe4b59d,_0x4d6a00){_0xe4b59d=_0xe4b59d-0x13e;let _0x34ca55=_0x2a2a76[_0xe4b59d];return _0x34ca55;},a32_0xe4b5(_0x2c719c,_0x14d64f);}exports[a32_0xe01c8c(0x167)]={'beforeAll'(){const _0x985bd9=a32_0xe01c8c,_0x574321={'jlITA':function(_0x26441b,_0x509832,_0x3ee766,_0x2f8f00){return _0x26441b(_0x509832,_0x3ee766,_0x2f8f00);},'roeBn':_0x985bd9(0x13e),'cCXGj':_0x985bd9(0x1a1),'SFuAz':function(_0x5c72de,_0xb2d8e4,_0x18133d){return _0x5c72de(_0xb2d8e4,_0x18133d);},'IHowa':'passed','pxytO':function(_0x1dedc8){return _0x1dedc8();}};PerformanceTester['startMonitoring']();const _0x2eec4a='browserstack internal helper hook';global[_0x985bd9(0x19f)]=[],global['__sessionFailed']=![],global[_0x985bd9(0x17a)]=async()=>{const _0x33ed99=_0x985bd9;let _0x5acd28=![];try{await global[_0x33ed99(0x1a9)][0x0]['session_'],_0x5acd28=!![],global[_0x33ed99(0x145)]?await _0x574321['jlITA'](markSessionStatus,global['__drivers'][0x0],_0x574321[_0x33ed99(0x143)],global['__error_messages__'][_0x33ed99(0x1aa)](_0x574321[_0x33ed99(0x162)])):await _0x574321[_0x33ed99(0x1ab)](markSessionStatus,global['__drivers'][0x0],_0x574321[_0x33ed99(0x190)]);}catch(_0x4df911){}global[_0x33ed99(0x19f)]=[],global[_0x33ed99(0x145)]=![];if(_0x5acd28)try{try{_0x574321['pxytO'](shouldProcessEventForTesthub)&&(global[_0x33ed99(0x1a9)][0x0]&&await _0x574321[_0x33ed99(0x1ab)](sendPlatformDetails,global[_0x33ed99(0x1a9)][0x0],this[_0x33ed99(0x184)]?this[_0x33ed99(0x184)][_0x33ed99(0x169)]:null));}catch{}await global[_0x33ed99(0x1a9)][0x0][_0x33ed99(0x153)]();}catch(_0x14ba5c){}};},'beforeEach'(_0x267ca3){const _0xaee9b3=a32_0xe01c8c,_0x267bdb={'DyMJZ':function(_0x145809,_0x4f8782){return _0x145809>_0x4f8782;},'mlTWX':function(_0x21f8ad,_0x388ba6){return _0x21f8ad>_0x388ba6;},'jrHed':_0xaee9b3(0x15f),'fMSlo':function(_0x239de8,_0x6d8f40,_0x3484e3){return _0x239de8(_0x6d8f40,_0x3484e3);},'xEZAV':_0xaee9b3(0x18c),'GcdbM':function(_0x21a4ed){return _0x21a4ed();},'TUaDV':_0xaee9b3(0x148),'gxfEI':function(_0x18349f,_0x31e5d1){return _0x18349f===_0x31e5d1;},'pIWeT':_0xaee9b3(0x14a),'cUvDm':function(_0x7a4919,_0x21db40){return _0x7a4919===_0x21db40;},'cIJAn':_0xaee9b3(0x1a8),'CGGxB':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','AWEIS':_0xaee9b3(0x187)};new Promise(async _0x594f51=>{const _0x202e55=_0xaee9b3,_0xbf9259='browserstack internal helper hook';let _0x3d3a45=!![];try{_0x267bdb[_0x202e55(0x1a3)](global[_0x202e55(0x1a9)][_0x202e55(0x1a7)],0x1)&&(await global['driverCleanup'](),global['__drivers']['shift']()),_0x267bdb[_0x202e55(0x15a)](global[_0x202e55(0x1a9)][0x0][_0x202e55(0x17c)],0x0)&&(_0x3d3a45=![],await global[_0x202e55(0x17a)]());}catch{}try{Array[_0x202e55(0x16f)](global[_0x202e55(0x1a9)])&&global[_0x202e55(0x1a9)][0x0]&&(global[_0x202e55(0x1a9)][0x0][_0x202e55(0x181)]=this[_0x202e55(0x184)][_0x202e55(0x161)]()['join'](_0x267bdb[_0x202e55(0x1b6)])),global[_0x202e55(0x181)]=this[_0x202e55(0x184)][_0x202e55(0x161)]()[_0x202e55(0x1aa)](_0x267bdb[_0x202e55(0x1b6)]);}catch(_0xb42979){logger[_0x202e55(0x176)](_0x202e55(0x192)+_0xb42979);}this['currentTest']['shouldScanTestForAccessibility']=_0x267bdb[_0x202e55(0x16c)](shouldScanTestForAccessibility,this[_0x202e55(0x184)][_0x202e55(0x161)](),!![]),globals[_0x202e55(0x15e)](_0x267bdb['xEZAV'],this['currentTest'][_0x202e55(0x14b)]),this[_0x202e55(0x184)]['accessibilityScanStarted']=!![];if(_0x267bdb[_0x202e55(0x156)](isAccessibilityAutomationSession)&&_0x3d3a45&&Array[_0x202e55(0x16f)](global[_0x202e55(0x1a9)])&&_0x267bdb[_0x202e55(0x1a3)](global['__drivers'][_0x202e55(0x1a7)],0x0)&&globals[_0x202e55(0x158)](_0x267bdb['TUaDV']))try{const _0x234b49=await global['__drivers'][0x0][_0x202e55(0x17f)];if(_0x234b49){let _0x348149=!![];const _0x511ad8=await global[_0x202e55(0x1a9)][0x0][_0x202e55(0x189)]();let _0xe4af4a;try{_0xe4af4a=new URL(_0x511ad8);}catch(_0x12508e){_0x348149=![];}_0x348149=_0x267bdb['gxfEI'](_0xe4af4a[_0x202e55(0x186)],_0x267bdb[_0x202e55(0x141)])||_0x267bdb[_0x202e55(0x16d)](_0xe4af4a[_0x202e55(0x186)],_0x267bdb['cIJAn']),_0x348149&&(this[_0x202e55(0x184)][_0x202e55(0x14b)]&&logger[_0x202e55(0x17b)](_0x267bdb[_0x202e55(0x195)])),this[_0x202e55(0x184)][_0x202e55(0x19b)]=this[_0x202e55(0x184)][_0x202e55(0x14b)],this['currentTest'][_0x202e55(0x14b)]&&logger[_0x202e55(0x17b)](_0x267bdb[_0x202e55(0x16b)]);}}catch(_0x26ef5d){logger['error']('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x202e55(0x1b0)](_0x26ef5d));}_0x267bdb[_0x202e55(0x156)](_0x594f51);})['then'](_0x267ca3);},'afterEach'(_0x43b8c9){const _0x38ee58=a32_0xe01c8c,_0x1e07cc={'KFjby':function(_0x27019b,_0x1b5316){return _0x27019b>_0x1b5316;},'XgJmZ':function(_0x246685,_0x3d557f){return _0x246685===_0x3d557f;},'IMHCk':_0x38ee58(0x149),'PlyHQ':_0x38ee58(0x1ae),'mFHjA':function(_0x560086,_0x19d889,_0x2046d0,_0x5774ff){return _0x560086(_0x19d889,_0x2046d0,_0x5774ff);},'CfDsF':'\x20-\x20','kmtlY':function(_0x51da27,_0x5e1a3e){return _0x51da27!==_0x5e1a3e;},'YhLqh':_0x38ee58(0x172),'RzLbb':function(_0x59479e,_0xc61112,_0x595f3d){return _0x59479e(_0xc61112,_0x595f3d);},'urGyD':function(_0x196ede,_0x3bde7e){return _0x196ede+_0x3bde7e;},'WhBFW':'Failed:\x20','jXyLK':_0x38ee58(0x151),'QuVja':_0x38ee58(0x19c),'oMBco':'info','ODtSF':'isAccessibilityPlatform','jIJJX':'bstackA11yShouldScan','UGvwD':_0x38ee58(0x146),'dpGfr':_0x38ee58(0x182),'frDlH':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','OALAG':function(_0x57f073){return _0x57f073();},'XTnVD':function(_0x53eb3f){return _0x53eb3f();},'TFgwU':function(_0x5dc278,_0x5f063f,_0x407b99){return _0x5dc278(_0x5f063f,_0x407b99);},'fPqUM':_0x38ee58(0x176),'ugPxL':function(_0x4b9e51,_0xcd97ee){return _0x4b9e51>_0xcd97ee;}},_0x4f7cd7='browserstack internal helper hook';this['timeout'](0xfde8);const _0x35b53f=async(_0x12d43a,_0x430896)=>{const _0x52bbb6=_0x38ee58;await global['__drivers'][0x0][_0x52bbb6(0x18e)](_0x52bbb6(0x1ac)+_0x12d43a+_0x52bbb6(0x178)+_0x430896+_0x52bbb6(0x19e));};new Promise(async _0x56e848=>{const _0x8fb27a=_0x38ee58;try{_0x1e07cc[_0x8fb27a(0x19d)](global[_0x8fb27a(0x1a9)][_0x8fb27a(0x1a7)],0x1)&&(await global[_0x8fb27a(0x17a)](),global['__drivers'][_0x8fb27a(0x191)](),global[_0x8fb27a(0x19f)]=[],global[_0x8fb27a(0x145)]=![]);try{if(global[_0x8fb27a(0x188)]&&_0x1e07cc['XgJmZ'](global['percyCaptureMode'],_0x1e07cc[_0x8fb27a(0x194)])&&global[_0x8fb27a(0x1a9)][0x0]){const _0x148a8e=_0x1e07cc[_0x8fb27a(0x19d)](global[_0x8fb27a(0x198)][_0x8fb27a(0x1a7)],0x0)?!!global['capabilities'][0x0]['app']||!!global[_0x8fb27a(0x198)][0x0][_0x1e07cc[_0x8fb27a(0x160)]]:![],_0x215aac={};_0x215aac[_0x8fb27a(0x13f)]=_0x148a8e,await _0x1e07cc[_0x8fb27a(0x168)](percyAutoCapture,global[_0x8fb27a(0x1a9)][0x0],_0x1e07cc[_0x8fb27a(0x194)],_0x215aac);}}catch(_0x4b12dc){}!global[_0x8fb27a(0x14e)]&&(await global['__drivers'][0x0][_0x8fb27a(0x18e)](_0x8fb27a(0x170)+JSON['stringify'](this[_0x8fb27a(0x184)][_0x8fb27a(0x161)]()['join'](_0x1e07cc['CfDsF']))+'}}'),global[_0x8fb27a(0x1a9)][0x0][_0x8fb27a(0x147)]=!![]);const _0x3d7f4f=_0x1e07cc[_0x8fb27a(0x17d)](this['currentTest']['state'],_0x1e07cc[_0x8fb27a(0x1a4)]);_0x3d7f4f?(global['__sessionFailed']=!![],global[_0x8fb27a(0x19f)][_0x8fb27a(0x179)](this[_0x8fb27a(0x184)]['err'][_0x8fb27a(0x196)]),await _0x1e07cc[_0x8fb27a(0x1ad)](_0x35b53f,JSON[_0x8fb27a(0x157)](_0x1e07cc[_0x8fb27a(0x1af)](_0x1e07cc[_0x8fb27a(0x165)],this[_0x8fb27a(0x184)]['err'][_0x8fb27a(0x196)])),_0x1e07cc[_0x8fb27a(0x1b7)])):await _0x1e07cc[_0x8fb27a(0x1ad)](_0x35b53f,JSON[_0x8fb27a(0x157)](_0x1e07cc[_0x8fb27a(0x14f)]),_0x1e07cc[_0x8fb27a(0x166)]);}catch(_0x35b529){}try{if(this['currentTest'][_0x8fb27a(0x19b)]&&globals[_0x8fb27a(0x158)](_0x1e07cc['ODtSF'])&&globals['getGlobal'](_0x1e07cc['jIJJX'])){logger[_0x8fb27a(0x17b)](_0x1e07cc['UGvwD']);const _0x1afbe9={};_0x1afbe9[_0x8fb27a(0x14d)]=this[_0x8fb27a(0x184)][_0x8fb27a(0x169)],_0x1afbe9[_0x8fb27a(0x159)]=process[_0x8fb27a(0x1b1)][testHubConstants[_0x8fb27a(0x185)][_0x8fb27a(0x15c)]],_0x1afbe9['thJwtToken']=process[_0x8fb27a(0x1b1)][testHubConstants[_0x8fb27a(0x185)][_0x8fb27a(0x154)]];const _0x5a9fd4=_0x1afbe9;logger[_0x8fb27a(0x176)](_0x8fb27a(0x1b5)+JSON[_0x8fb27a(0x157)](_0x5a9fd4)),logger[_0x8fb27a(0x176)](_0x1e07cc[_0x8fb27a(0x18f)]),logger[_0x8fb27a(0x176)](util[_0x8fb27a(0x1b0)](await global[_0x8fb27a(0x1a9)][0x0][_0x8fb27a(0x171)](scripts['performScan'],{'method':global[_0x8fb27a(0x181)]}))),await global[_0x8fb27a(0x1a9)][0x0][_0x8fb27a(0x171)](scripts[_0x8fb27a(0x1a6)],_0x5a9fd4),logger['info'](_0x1e07cc['frDlH']);}}catch(_0x4c7c33){logger[_0x8fb27a(0x151)](_0x8fb27a(0x1a0)+this[_0x8fb27a(0x184)][_0x8fb27a(0x161)]()+_0x8fb27a(0x16e),_0x4c7c33);}try{try{if(_0x1e07cc['OALAG'](shouldProcessEventForTesthub)){global[_0x8fb27a(0x1a9)][0x0]&&await _0x1e07cc[_0x8fb27a(0x1ad)](sendPlatformDetails,global[_0x8fb27a(0x1a9)][0x0],this[_0x8fb27a(0x184)]?this[_0x8fb27a(0x184)][_0x8fb27a(0x169)]:null);if(_0x1e07cc[_0x8fb27a(0x183)](isBrowserstackInfra)){const _0x500cdb=_0x8fb27a(0x17e)+Date[_0x8fb27a(0x152)]();await _0x1e07cc['TFgwU'](_0x35b53f,JSON[_0x8fb27a(0x157)](_0x500cdb),_0x1e07cc[_0x8fb27a(0x197)]);}}}catch{}_0x1e07cc[_0x8fb27a(0x18b)](global[_0x8fb27a(0x1a9)][0x0][_0x8fb27a(0x17c)],0x0)&&await global['driverCleanup']();}catch(_0x22e5c0){}_0x1e07cc[_0x8fb27a(0x1b2)](_0x56e848);})[_0x38ee58(0x14c)](()=>_0x43b8c9());},'afterAll'(_0xba7d8c){const _0xb3e706=a32_0xe01c8c,_0x331943={'wpzZp':function(_0x4bd252){return _0x4bd252();}},_0x5e100e='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x44d46e=>{const _0x42471d=a32_0xe4b5;PerformanceTester[_0x42471d(0x1a5)](),await global[_0x42471d(0x17a)](),_0x331943[_0x42471d(0x180)](_0x44d46e);})[_0xb3e706(0x14c)](()=>_0xba7d8c());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x53ff90=a33_0x35c3;(function(_0x5e7bfa,_0x3aa15d){const _0x1a54f4=a33_0x35c3,_0xb7938e=_0x5e7bfa();while(!![]){try{const _0x5bd3aa=parseInt(_0x1a54f4(0x1c1))/0x1*(parseInt(_0x1a54f4(0x1ed))/0x2)+-parseInt(_0x1a54f4(0x1a0))/0x3+parseInt(_0x1a54f4(0x1d5))/0x4+-parseInt(_0x1a54f4(0x1b7))/0x5+-parseInt(_0x1a54f4(0x1b6))/0x6+parseInt(_0x1a54f4(0x1a8))/0x7*(-parseInt(_0x1a54f4(0x1e1))/0x8)+parseInt(_0x1a54f4(0x1ac))/0x9;if(_0x5bd3aa===_0x3aa15d)break;else _0xb7938e['push'](_0xb7938e['shift']());}catch(_0x42675e){_0xb7938e['push'](_0xb7938e['shift']());}}}(a33_0x3bb7,0x4228f));function a33_0x35c3(_0x2e10ec,_0x42e6a8){const _0x3bb7ea=a33_0x3bb7();return a33_0x35c3=function(_0x35c366,_0x2cb66a){_0x35c366=_0x35c366-0x1a0;let _0x55d7cc=_0x3bb7ea[_0x35c366];return _0x55d7cc;},a33_0x35c3(_0x2e10ec,_0x42e6a8);}const fs=require('fs'),path=require(a33_0x53ff90(0x1eb)),{spawn}=require(a33_0x53ff90(0x1af)),logger=require(a33_0x53ff90(0x1b9))['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x53ff90(0x1dd)),helper=require(a33_0x53ff90(0x1a6)),constants=require(a33_0x53ff90(0x1a4)),getUserNightwatchConfigs=(_0x230f05,_0x5e3029)=>{const _0x1c3194=a33_0x53ff90,_0x2fb5d5={'IHqTI':_0x1c3194(0x1e9),'yUgnB':_0x1c3194(0x1e6),'JMKrU':function(_0x4a3542,_0x34ede0){return _0x4a3542(_0x34ede0);},'XlVFd':_0x1c3194(0x1ba)};let _0x1c8daa=null,_0x3be179={};const _0x54940c=_0x5e3029['findIndex'](_0x1c14dd=>_0x1c14dd==='--config');if(!helper[_0x1c3194(0x1ea)](_0x230f05[_0x1c3194(0x1b8)])&&fs['existsSync'](path[_0x1c3194(0x1c8)](process[_0x1c3194(0x1a2)](),_0x230f05[_0x1c3194(0x1b8)])))_0x1c8daa=path[_0x1c3194(0x1c8)](process[_0x1c3194(0x1a2)](),_0x230f05[_0x1c3194(0x1b8)]),_0x5e3029[_0x1c3194(0x1ae)](_0x54940c,0x2);else{if(fs['existsSync'](path[_0x1c3194(0x1c8)](process[_0x1c3194(0x1a2)](),_0x2fb5d5['IHqTI'])))_0x1c8daa=path[_0x1c3194(0x1c8)](process['cwd'](),_0x2fb5d5[_0x1c3194(0x1a9)]);else fs['existsSync'](path[_0x1c3194(0x1c8)](process[_0x1c3194(0x1a2)](),_0x2fb5d5[_0x1c3194(0x1cb)]))&&(_0x1c8daa=path['join'](process[_0x1c3194(0x1a2)](),_0x2fb5d5[_0x1c3194(0x1cb)]));}return _0x1c8daa?(logger['info'](_0x1c3194(0x1b4)+_0x1c8daa),_0x3be179=_0x2fb5d5[_0x1c3194(0x1ce)](require,_0x1c8daa)):logger['info'](_0x2fb5d5[_0x1c3194(0x1db)]),_0x3be179;},removeExistingEnvs=_0x534575=>{const _0x1b523a=a33_0x53ff90,_0x4194c4={};_0x4194c4[_0x1b523a(0x1df)]=function(_0xcb5c00,_0x1aa651){return _0xcb5c00>_0x1aa651;},_0x4194c4[_0x1b523a(0x1b3)]=function(_0x4ce286,_0x158a98){return _0x4ce286>_0x158a98;};const _0x5a4945=_0x4194c4;let _0x24ece3=_0x534575['findIndex'](_0x3dc2bc=>_0x3dc2bc===_0x1b523a(0x1d8));_0x5a4945[_0x1b523a(0x1df)](_0x24ece3,-0x1)&&_0x534575[_0x1b523a(0x1ae)](_0x24ece3,0x2),_0x24ece3=_0x534575['findIndex'](_0x35c539=>_0x35c539==='-e'),_0x5a4945[_0x1b523a(0x1b3)](_0x24ece3,-0x1)&&_0x534575[_0x1b523a(0x1ae)](_0x24ece3,0x2);};function a33_0x3bb7(){const _0x2c879d=['webdriver','14GYIqsP','IHqTI','modifyBrowserStackCaps','useW3C','6971013YXIPUd','getPlatformName','splice','child_process','ilhNP','QsCEL','mergeDeep','OWlpu','Getting\x20your\x20nightwatch\x20configs\x20from\x20','length','2812590rADeRQ','991300IquDXR','config','../../helpers/logger','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','child\x20process\x20exited\x20with\x20code\x20','forEach','slice','env','Zslbl','trim','36562xyZrSx','UifiW','LKGIA','pMKNP','cHXoq','hub.browserstack.com','nightwatch','join','test','port','yUgnB','platform','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','JMKrU','map','close','zakXt','unlinkSync','uBSdT','cspaW','965868dnyuqX','platforms','writeFileSync','--env','selenium','nightwatch.cmd','XlVFd','push','../../helpers/BrowserStackSetup','inherit','qIwvn','Deleting\x20','1025144NmPNWp','QyKKe','test_settings','cShJo','debug','nightwatch.json','stringify','oplLp','nightwatch.conf.js','isUndefined','path','hSAFb','12fyLmLy','info','OqOKI','123282RpaPgd','nightwatch-browserstack.json','cwd','CpyNS','../utils/constants','filter','../../helpers/helper'];a33_0x3bb7=function(){return _0x2c879d;};return a33_0x3bb7();}function run(_0x7df386,_0x485f70){const _0x29405b=a33_0x53ff90,_0x3373d2={'QyKKe':_0x29405b(0x1c7),'cspaW':function(_0x51e387,_0x5dc0c8){return _0x51e387+_0x5dc0c8;},'GQqlj':'test_settings','QsCEL':function(_0x5469c4,_0x324607,_0x332b50){return _0x5469c4(_0x324607,_0x332b50);},'cHXoq':_0x29405b(0x1c6),'uBSdT':_0x29405b(0x1cd),'cShJo':function(_0x526dcd,_0x4edfbe){return _0x526dcd===_0x4edfbe;},'UifiW':_0x29405b(0x1a1),'oplLp':function(_0x34f52b,_0x394c18){return _0x34f52b(_0x394c18);},'hSAFb':function(_0x694394,_0x3ceb84,_0x1263d6,_0x398b2f){return _0x694394(_0x3ceb84,_0x1263d6,_0x398b2f);},'Zslbl':_0x29405b(0x1da),'pMKNP':'--config','OqOKI':_0x29405b(0x1d8),'LKGIA':_0x29405b(0x1de),'zakXt':_0x29405b(0x1d0)},_0x2d1efd=new BrowserStackSetup(_0x7df386);if(!_0x2d1efd[_0x29405b(0x1b8)])return;const _0x10fdb3=_0x3373d2[_0x29405b(0x1b1)](getUserNightwatchConfigs,_0x7df386,_0x485f70),_0x5e8265={};_0x5e8265['start_process']=![];const _0x584837={};_0x584837['host']=_0x3373d2[_0x29405b(0x1c5)],_0x584837[_0x29405b(0x1ca)]=0x1bb;const _0x5d3c3d={};_0x5d3c3d[_0x29405b(0x1a7)]=_0x5e8265,_0x5d3c3d[_0x29405b(0x1d9)]=_0x584837;const _0x4ff876=_0x5d3c3d;logger['info'](_0x3373d2[_0x29405b(0x1d3)]);const _0x462997={..._0x10fdb3},_0x186121=_0x462997,_0x2b17e3=helper[_0x29405b(0x1ab)](_0x2d1efd['config']),_0x331f92=[];_0x2d1efd['config'][_0x29405b(0x1d6)][_0x29405b(0x1bc)]((_0x2d8d85,_0x5c4eec)=>{const _0xb38316=_0x29405b;_0x2b17e3?_0x331f92[_0xb38316(0x1dc)](helper['modifyBrowserStackW3CCaps'](_0x2d1efd['config'],_0x3373d2['QyKKe'],_0x5c4eec)):_0x331f92[_0xb38316(0x1dc)](helper[_0xb38316(0x1aa)](_0x2d1efd[_0xb38316(0x1b8)],_0x3373d2['QyKKe'],_0x5c4eec));});const _0x400c14={},_0x2df70c=[];_0x7df386['env']=_0x7df386[_0x29405b(0x1be)]||_0x7df386['e'];const _0x2d7ec4=_0x7df386['env']?_0x7df386[_0x29405b(0x1be)]['trim']()['split'](',')[_0x29405b(0x1cf)](_0x1fcd8c=>_0x1fcd8c[_0x29405b(0x1c0)]())[_0x29405b(0x1a5)](_0x236ecd=>_0x236ecd!==''):[''];_0x3373d2[_0x29405b(0x1e4)](_0x2d7ec4[_0x29405b(0x1b5)],0x0)&&_0x2d7ec4[_0x29405b(0x1dc)]('');_0x2d7ec4[_0x29405b(0x1bc)](_0x715a5a=>{const _0x49d03d=_0x29405b,_0x4258a2={'ilhNP':function(_0x47d81c,_0x5355ed){const _0x3d1616=a33_0x35c3;return _0x3373d2[_0x3d1616(0x1d4)](_0x47d81c,_0x5355ed);},'CpyNS':_0x3373d2['GQqlj']};_0x331f92[_0x49d03d(0x1bc)](_0x1a2504=>{const _0x1228f3=_0x49d03d;let _0x220d3a=_0x4258a2[_0x1228f3(0x1b0)](helper[_0x1228f3(0x1ad)](_0x1a2504,'_'),'_'+Date['now']());_0x715a5a&&(_0x220d3a+='_'+_0x715a5a);if(_0x715a5a&&(!_0x10fdb3[_0x4258a2[_0x1228f3(0x1a3)]]||!_0x10fdb3[_0x4258a2[_0x1228f3(0x1a3)]][_0x715a5a]))return;const _0x3b6d4d={..._0x4ff876};_0x3b6d4d['desiredCapabilities']=_0x1a2504;const _0x213add=_0x3b6d4d;_0x400c14[_0x220d3a]=_0x715a5a?helper[_0x1228f3(0x1b2)](_0x10fdb3[_0x4258a2[_0x1228f3(0x1a3)]][_0x715a5a],_0x213add):_0x213add,_0x2df70c[_0x1228f3(0x1dc)](_0x220d3a);});});!_0x186121['test_settings']&&(_0x186121[_0x29405b(0x1e3)]={});_0x186121['test_settings']={..._0x186121[_0x29405b(0x1e3)],..._0x400c14};const _0x261bfb=path[_0x29405b(0x1c8)](__dirname,_0x3373d2[_0x29405b(0x1c2)]);fs[_0x29405b(0x1d7)](_0x261bfb,JSON[_0x29405b(0x1e7)](_0x186121)),_0x3373d2[_0x29405b(0x1e8)](removeExistingEnvs,_0x485f70);const _0x2399ee=_0x3373d2[_0x29405b(0x1ec)](spawn,/^win/[_0x29405b(0x1c9)](process[_0x29405b(0x1cc)])?_0x3373d2[_0x29405b(0x1bf)]:_0x3373d2[_0x29405b(0x1e2)],[_0x3373d2[_0x29405b(0x1c4)],_0x261bfb,..._0x485f70[_0x29405b(0x1bd)](0x1),_0x3373d2[_0x29405b(0x1ef)],_0x2df70c['join'](',')],{'stdio':_0x3373d2[_0x29405b(0x1c3)]});_0x2399ee['on'](_0x3373d2[_0x29405b(0x1d1)],async _0x5a29af=>{const _0x1ff02a=_0x29405b;logger[_0x1ff02a(0x1e5)](_0x1ff02a(0x1bb)+_0x5a29af),logger[_0x1ff02a(0x1ee)](_0x1ff02a(0x1e0)+_0x261bfb),fs[_0x1ff02a(0x1d2)](_0x261bfb);});}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a33_0x371cb3=a33_0x1a25;function a33_0x1a25(_0x3eaba7,_0x5dddef){const _0x376016=a33_0x3760();return a33_0x1a25=function(_0x1a25d6,_0x52c0c6){_0x1a25d6=_0x1a25d6-0x9d;let _0x468a6c=_0x376016[_0x1a25d6];return _0x468a6c;},a33_0x1a25(_0x3eaba7,_0x5dddef);}function a33_0x3760(){const _0x38241d=['testInfo','zjOGv','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','../../helpers/logger','../../helpers/helper','connectOptions','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','executeScript','use','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','649516fETidj','IcOjR','3282pWQnmk','MOeNB','rODps','umtQB','platformValidation','16eVPDkQ','CCfrR','Bypkb','performScan','No\x20summaryResults\x20found.','workerInfo','HggHW','vrVSw','scannerProcessingTimeout','warn','AKOYK','winstonLogger','alFOU','lxESU','accessibilityOptions.includeIssueType.bestPractice','gAttc','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','nJBSx','656068JRwVnr','format','WebDriver','dAWSB','OwIbZ','replace','FGQqg','YYvPP','GSzAL','debug','pbTPG','playwright-chromium','deviceName','browserName','project','84932RpFMPY','setAccessibilityCapabilities','getAccessibilityResultsSummary','TrBqK','MTNhN','(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','error','4465sFGQvX','env','oXbMs','SjdXo','IYJUK','JqWjk','constructor','parse','fobrR','atWZj','nXDMM','browserstack.accessibility','bestPractice','../../helpers/accessibility-automation/scripts','latest','39xqfEmK','method','pgFvb','browserStackEvaluate','BS_A11Y_JWT','../../helpers/accessibility-automation/helper','accessibilityOptions.scannerProcessingTimeout','includeIssueType','needsReview','getAccessibilityResults','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Jbdxy','7594380ygGrSk','stringify','scannerVersion','2113929Deyoej','accessibilityOptions.wcagVersion','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','bstackSdkArgs','browser_version','3519859kvRGRw','executeAsyncScript','JoRBZ','EqHSL','chrome','11fbgzcJ','accessibilityPlatform','accessibilityOptions.authToken','accessibilityOptions','name','browserStackExecuteDriver','wcagVersion','HAHoE','processAccessibilityCaps','(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'];a33_0x3760=function(){return _0x38241d;};return a33_0x3760();}(function(_0x50d7b3,_0xed2560){const _0x520c1b=a33_0x1a25,_0x4cb2df=_0x50d7b3();while(!![]){try{const _0x597589=parseInt(_0x520c1b(0xb5))/0x1+-parseInt(_0x520c1b(0x108))/0x2+-parseInt(_0x520c1b(0xda))/0x3*(-parseInt(_0x520c1b(0xc4))/0x4)+-parseInt(_0x520c1b(0xcb))/0x5*(-parseInt(_0x520c1b(0x9e))/0x6)+parseInt(_0x520c1b(0xef))/0x7+parseInt(_0x520c1b(0xa3))/0x8*(-parseInt(_0x520c1b(0xe9))/0x9)+parseInt(_0x520c1b(0xe6))/0xa*(-parseInt(_0x520c1b(0xf4))/0xb);if(_0x597589===_0xed2560)break;else _0x4cb2df['push'](_0x4cb2df['shift']());}catch(_0x3b0169){_0x4cb2df['push'](_0x4cb2df['shift']());}}}(a33_0x3760,0x5a327));const util=require('util'),logger=require(a33_0x371cb3(0x101))[a33_0x371cb3(0xae)],{isAccessibilityAutomationSession}=require(a33_0x371cb3(0xdf)),{isUndefined}=require(a33_0x371cb3(0x102)),scripts=require(a33_0x371cb3(0xd8));exports[a33_0x371cb3(0xdd)]=async(_0x427ed8,_0x517437,_0x54c279={})=>{const _0x3cd255=a33_0x371cb3,_0x1fbf06={};_0x1fbf06[_0x3cd255(0x9f)]='bstackSdkArgs';const _0x37f6cd=_0x1fbf06;return await _0x427ed8['evaluate'](_0x3cd255(0xc9)+_0x517437[_0x3cd255(0xba)](/arguments/g,_0x37f6cd['MOeNB'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0x54c279)+')');},exports[a33_0x371cb3(0xf9)]=async(_0x15c66d,_0x3138e1,_0x3fe604={})=>{const _0x4875f2=a33_0x371cb3,_0x219d8b={};_0x219d8b['alFOU']=function(_0x5bd638,_0x1837d5){return _0x5bd638===_0x1837d5;},_0x219d8b[_0x4875f2(0xbf)]=_0x4875f2(0xb7),_0x219d8b[_0x4875f2(0xd0)]='Playwright',_0x219d8b[_0x4875f2(0xbc)]=_0x4875f2(0xed);const _0x3d5fa3=_0x219d8b;if(_0x3d5fa3[_0x4875f2(0xaf)](_0x15c66d[_0x4875f2(0xd1)][_0x4875f2(0xf8)],_0x3d5fa3[_0x4875f2(0xbf)]))return await _0x15c66d[_0x4875f2(0xf0)](_0x3138e1,_0x3fe604);else{if(_0x3d5fa3[_0x4875f2(0xaf)](_0x15c66d['constructor'][_0x4875f2(0xf8)],_0x3d5fa3[_0x4875f2(0xd0)]))return await _0x15c66d[_0x4875f2(0x105)](_0x4875f2(0xfd)+_0x3138e1['replace'](/arguments/g,_0x3d5fa3['YYvPP'])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x4875f2(0xe7)](_0x3fe604)+')');}},exports[a33_0x371cb3(0xc5)]=async _0x1cb986=>{const _0x5b7671=a33_0x371cb3,_0x42f895={};_0x42f895[_0x5b7671(0xa4)]=_0x5b7671(0xea),_0x42f895[_0x5b7671(0xc8)]=_0x5b7671(0xe0),_0x42f895[_0x5b7671(0xcf)]=_0x5b7671(0xb1),_0x42f895[_0x5b7671(0xff)]='accessibilityOptions.includeIssueType.needsReview',_0x42f895[_0x5b7671(0xf1)]=_0x5b7671(0xf6),_0x42f895[_0x5b7671(0x9d)]='accessibilityOptions.scannerVersion';const _0x1c4d16=_0x42f895;_0x1cb986[_0x5b7671(0xf7)]&&(_0x1cb986[_0x5b7671(0xf7)]['wcagVersion']&&(_0x1cb986[_0x1c4d16[_0x5b7671(0xa4)]]=_0x1cb986[_0x5b7671(0xf7)][_0x5b7671(0xfa)]),_0x1cb986[_0x5b7671(0xf7)][_0x5b7671(0xab)]&&(_0x1cb986[_0x1c4d16['MTNhN']]=_0x1cb986[_0x5b7671(0xf7)][_0x5b7671(0xab)]),_0x1cb986[_0x5b7671(0xf7)][_0x5b7671(0xe1)]&&(_0x1cb986[_0x1c4d16[_0x5b7671(0xcf)]]=_0x1cb986['accessibilityOptions'][_0x5b7671(0xe1)][_0x5b7671(0xd7)],_0x1cb986[_0x1c4d16['zjOGv']]=_0x1cb986['accessibilityOptions'][_0x5b7671(0xe1)][_0x5b7671(0xe2)]));const _0x4fe50a=JSON[_0x5b7671(0xd2)](process[_0x5b7671(0xcc)][_0x5b7671(0xe4)])[_0x5b7671(0xe8)];_0x1cb986[_0x1c4d16[_0x5b7671(0xf1)]]=process[_0x5b7671(0xcc)][_0x5b7671(0xde)],_0x1cb986[_0x1c4d16['IcOjR']]=_0x4fe50a,delete _0x1cb986[_0x5b7671(0xf7)];},exports[a33_0x371cb3(0xe3)]=async _0xa7a13d=>{const _0x17ed15=a33_0x371cb3,_0x44c702={};_0x44c702[_0x17ed15(0xa1)]='No\x20accessibility\x20results\x20were\x20found.',_0x44c702[_0x17ed15(0xd5)]=_0x17ed15(0x104);const _0x46bfb4=_0x44c702;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0xa7a13d,scripts.performScan)));const res=await exports.browserStackEvaluate(_0xa7a13d,scripts.getResults);return res;}catch{return logger[_0x17ed15(0xca)](_0x46bfb4['umtQB']),[];}else return logger['warn'](_0x46bfb4['nXDMM']),[];},exports[a33_0x371cb3(0xa6)]=async(_0x43de62,_0x2c507f='')=>{const _0x580013=a33_0x371cb3;if(global[_0x580013(0xf5)]){const _0x14d9ca={};return _0x14d9ca[_0x580013(0xdb)]=_0x2c507f,await exports['browserStackEvaluate'](_0x43de62,scripts[_0x580013(0xa6)],_0x14d9ca);}},exports[a33_0x371cb3(0xc6)]=async _0x3d2723=>{const _0x5d97b5=a33_0x371cb3,_0x2dfeb3={};_0x2dfeb3[_0x5d97b5(0xbb)]=_0x5d97b5(0xa7),_0x2dfeb3[_0x5d97b5(0xb2)]=_0x5d97b5(0xb3);const _0x5d8aa2=_0x2dfeb3;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3d2723,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x3d2723,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x5d97b5(0xbe)](_0x5d8aa2[_0x5d97b5(0xbb)]),{};}else return logger[_0x5d97b5(0xac)](_0x5d8aa2['gAttc']),{};},exports[a33_0x371cb3(0xa2)]=async _0x211934=>{const _0x1d17f7=a33_0x371cb3,_0x3af535={'HAHoE':function(_0x37819d,_0x4d4bcd){return _0x37819d!==_0x4d4bcd;},'fobrR':_0x1d17f7(0xec),'TrBqK':function(_0x59cd7f,_0x11c7a0){return _0x59cd7f===_0x11c7a0;},'hiEFm':'chrome','kWGiZ':_0x1d17f7(0xc0),'pgFvb':_0x1d17f7(0x100),'Jbdxy':function(_0x39cb9b,_0x17696e){return _0x39cb9b(_0x17696e);},'Bypkb':function(_0x1ade11,_0x3faa83){return _0x1ade11===_0x3faa83;},'lxESU':_0x1d17f7(0xd9),'lPkdN':function(_0x566903,_0x2b0498){return _0x566903>_0x2b0498;},'nJBSx':_0x1d17f7(0x107)};try{if(!_0x3af535[_0x1d17f7(0xfb)](_0x211934[_0x1d17f7(0xc1)],''))return logger['warn'](_0x3af535[_0x1d17f7(0xd3)]),![];const _0x4d1bd1=_0x211934['browser'];if(!(_0x3af535[_0x1d17f7(0xc7)](_0x4d1bd1,_0x3af535['hiEFm'])||_0x3af535[_0x1d17f7(0xc7)](_0x4d1bd1,_0x3af535['kWGiZ'])))return logger['warn'](_0x3af535[_0x1d17f7(0xdc)]),![];const _0x55fe74=_0x3af535[_0x1d17f7(0xe5)](parseInt,_0x211934['browser_version']);if(!(_0x3af535[_0x1d17f7(0xa5)](_0x55fe74,_0x3af535[_0x1d17f7(0xb0)])||_0x3af535['lPkdN'](_0x55fe74,0x5e)))return logger[_0x1d17f7(0xac)](_0x3af535[_0x1d17f7(0xb4)]),![];}catch(_0xefed48){logger[_0x1d17f7(0xbe)](_0x1d17f7(0xeb)+util[_0x1d17f7(0xb6)](_0xefed48));}return!![];},exports[a33_0x371cb3(0xfc)]=(_0x33d6e3,_0x511978,_0x26344d)=>{const _0x5785de=a33_0x371cb3,_0x575619={'AKOYK':function(_0x20bf77){return _0x20bf77();},'GSzAL':_0x5785de(0xd6),'OwIbZ':function(_0x167ebf,_0x211e15){return _0x167ebf===_0x211e15;},'atWZj':_0x5785de(0xf3),'UhIVS':_0x5785de(0xc0),'EqHSL':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','vrVSw':function(_0x452051,_0x2beaf8){return _0x452051===_0x2beaf8;},'HggHW':_0x5785de(0xd9),'dAWSB':function(_0x3eaf83,_0x37e502){return _0x3eaf83>_0x37e502;},'khaEt':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','rODps':function(_0x456bb0,_0x367ddd){return _0x456bb0(_0x367ddd);},'oXbMs':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','SjdXo':function(_0x3b7fbf,_0x21850c){return _0x3b7fbf+_0x21850c;}};try{if(_0x575619[_0x5785de(0xad)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x33d6e3[_0x575619[_0x5785de(0xbd)]]&&(global['accessibilityPlatform']=![]);!(_0x575619['OwIbZ'](_0x33d6e3[_0x5785de(0xc2)],_0x575619[_0x5785de(0xd4)])||_0x575619[_0x5785de(0xb9)](_0x33d6e3[_0x5785de(0xc2)],_0x575619['UhIVS']))&&(logger['warn'](_0x575619[_0x5785de(0xf2)]),global[_0x5785de(0xf5)]=![]);!(_0x575619[_0x5785de(0xaa)](_0x33d6e3[_0x5785de(0xee)],_0x575619[_0x5785de(0xa9)])||_0x575619[_0x5785de(0xb8)](_0x33d6e3['browser_version'],0x5e))&&(logger[_0x5785de(0xac)](_0x575619['khaEt']),global[_0x5785de(0xf5)]=![]);!_0x575619['rODps'](isUndefined,_0x33d6e3[_0x5785de(0xc1)])&&(logger[_0x5785de(0xac)](_0x575619[_0x5785de(0xcd)]),global[_0x5785de(0xf5)]=![]);if(!global[_0x5785de(0xf5)]){_0x33d6e3[_0x575619[_0x5785de(0xbd)]]=![];const _0x4e4f4f=_0x575619[_0x5785de(0xce)](_0x511978,_0x575619[_0x5785de(0xa0)](encodeURIComponent,JSON[_0x5785de(0xe7)](_0x33d6e3)));_0x26344d&&(_0x26344d['currentTest'][_0x5785de(0xfe)][_0x5785de(0xc3)][_0x5785de(0x106)][_0x5785de(0x103)]['wsEndpoint']=_0x4e4f4f,_0x26344d[_0x5785de(0xa8)][_0x5785de(0xc3)]['use']['connectOptions']['wsEndpoint']=_0x4e4f4f);}}}catch(_0x47399f){logger[_0x5785de(0xbe)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x5785de(0xb6)](_0x47399f));}};
|
|
1
|
+
const a34_0x124007=a34_0x3a0a;(function(_0x5253a6,_0x2cc5d2){const _0x3fe13f=a34_0x3a0a,_0x596494=_0x5253a6();while(!![]){try{const _0x14dd35=parseInt(_0x3fe13f(0x18a))/0x1+parseInt(_0x3fe13f(0x1b2))/0x2*(parseInt(_0x3fe13f(0x1b0))/0x3)+-parseInt(_0x3fe13f(0x165))/0x4*(parseInt(_0x3fe13f(0x194))/0x5)+-parseInt(_0x3fe13f(0x17b))/0x6+parseInt(_0x3fe13f(0x187))/0x7+parseInt(_0x3fe13f(0x19b))/0x8+parseInt(_0x3fe13f(0x17d))/0x9;if(_0x14dd35===_0x2cc5d2)break;else _0x596494['push'](_0x596494['shift']());}catch(_0x33bac3){_0x596494['push'](_0x596494['shift']());}}}(a34_0x157b,0x867a7));const util=require(a34_0x124007(0x184)),logger=require(a34_0x124007(0x1ba))[a34_0x124007(0x1ac)],{isAccessibilityAutomationSession}=require(a34_0x124007(0x1b8)),{isUndefined}=require(a34_0x124007(0x17c)),scripts=require(a34_0x124007(0x1b3));function a34_0x3a0a(_0x5c399f,_0x4b4762){const _0x157bed=a34_0x157b();return a34_0x3a0a=function(_0x3a0a40,_0x23946e){_0x3a0a40=_0x3a0a40-0x160;let _0x325835=_0x157bed[_0x3a0a40];return _0x325835;},a34_0x3a0a(_0x5c399f,_0x4b4762);}exports[a34_0x124007(0x1c1)]=async(_0x4ce563,_0x939f24,_0x390031={})=>{const _0x2dcafa=a34_0x124007,_0x55bb55={};_0x55bb55[_0x2dcafa(0x176)]='bstackSdkArgs';const _0xd68493=_0x55bb55;return await _0x4ce563[_0x2dcafa(0x1a3)](_0x2dcafa(0x162)+_0x939f24['replace'](/arguments/g,_0xd68493[_0x2dcafa(0x176)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x2dcafa(0x188)](_0x390031)+')');},exports['browserStackExecuteDriver']=async(_0x96c932,_0x240d6e,_0x11278a={})=>{const _0x2cfdf6=a34_0x124007,_0x5423b9={};_0x5423b9['jaipE']=function(_0x517eda,_0x2987ee){return _0x517eda===_0x2987ee;},_0x5423b9['arwVJ']=_0x2cfdf6(0x1b4),_0x5423b9[_0x2cfdf6(0x1c2)]=function(_0x285127,_0x13f289){return _0x285127===_0x13f289;},_0x5423b9[_0x2cfdf6(0x1be)]=_0x2cfdf6(0x19d),_0x5423b9[_0x2cfdf6(0x1bb)]='bstackSdkArgs';const _0x2c0292=_0x5423b9;if(_0x2c0292[_0x2cfdf6(0x196)](_0x96c932[_0x2cfdf6(0x1a2)][_0x2cfdf6(0x1c3)],_0x2c0292['arwVJ']))return await _0x96c932[_0x2cfdf6(0x18c)](_0x240d6e,_0x11278a);else{if(_0x2c0292[_0x2cfdf6(0x1c2)](_0x96c932[_0x2cfdf6(0x1a2)][_0x2cfdf6(0x1c3)],_0x2c0292['rAnmB']))return await _0x96c932[_0x2cfdf6(0x16a)](_0x2cfdf6(0x172)+_0x240d6e[_0x2cfdf6(0x170)](/arguments/g,_0x2c0292[_0x2cfdf6(0x1bb)])+_0x2cfdf6(0x181)+JSON[_0x2cfdf6(0x188)](_0x11278a)+')');}},exports[a34_0x124007(0x191)]=async _0x5c09c9=>{const _0x33de99=a34_0x124007,_0x218117={};_0x218117['zTfgQ']='accessibilityOptions.wcagVersion',_0x218117[_0x33de99(0x18e)]=_0x33de99(0x1a6),_0x218117[_0x33de99(0x1a8)]=_0x33de99(0x182),_0x218117[_0x33de99(0x168)]=_0x33de99(0x1b5),_0x218117[_0x33de99(0x1bd)]=_0x33de99(0x16e),_0x218117[_0x33de99(0x171)]='accessibilityOptions.scannerVersion';const _0x48885f=_0x218117;_0x5c09c9[_0x33de99(0x199)]&&(_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x177)]&&(_0x5c09c9[_0x48885f[_0x33de99(0x1ab)]]=_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x177)]),_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x198)]&&(_0x5c09c9[_0x48885f[_0x33de99(0x18e)]]=_0x5c09c9['accessibilityOptions'][_0x33de99(0x198)]),_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x1c0)]&&(_0x5c09c9[_0x48885f[_0x33de99(0x1a8)]]=_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x1c0)][_0x33de99(0x180)],_0x5c09c9[_0x48885f[_0x33de99(0x168)]]=_0x5c09c9[_0x33de99(0x199)]['includeIssueType'][_0x33de99(0x1bf)]));const _0x32ea94=JSON[_0x33de99(0x16f)](process[_0x33de99(0x173)][_0x33de99(0x192)])[_0x33de99(0x193)];_0x5c09c9[_0x48885f[_0x33de99(0x1bd)]]=process[_0x33de99(0x173)]['BS_A11Y_JWT'],_0x5c09c9[_0x48885f[_0x33de99(0x171)]]=_0x32ea94,delete _0x5c09c9['accessibilityOptions'];},exports[a34_0x124007(0x1c4)]=async _0x4ebe40=>{const _0x459567=a34_0x124007,_0x3a1e16={};_0x3a1e16[_0x459567(0x17f)]=_0x459567(0x18b),_0x3a1e16['wfYFV']=_0x459567(0x1a5);const _0x391669=_0x3a1e16;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x4ebe40,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x4ebe40,scripts.getResults);return res;}catch{return logger[_0x459567(0x175)](_0x391669['jKbfo']),[];}else return logger[_0x459567(0x16c)](_0x391669[_0x459567(0x1bc)]),[];},exports[a34_0x124007(0x183)]=async(_0x383093,_0x147d3d='')=>{const _0x4518e1=a34_0x124007;if(global[_0x4518e1(0x16d)]){const _0x342a2e={};return _0x342a2e['method']=_0x147d3d,await exports[_0x4518e1(0x1c1)](_0x383093,scripts[_0x4518e1(0x183)],_0x342a2e);}},exports[a34_0x124007(0x197)]=async _0x35a494=>{const _0x23a5f4=a34_0x124007,_0x164acb={};_0x164acb['Smfmi']=_0x23a5f4(0x1a7),_0x164acb[_0x23a5f4(0x178)]=_0x23a5f4(0x1c5);const _0x69d01b=_0x164acb;if(global[_0x23a5f4(0x16d)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x35a494,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x35a494,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x69d01b['Smfmi']),{};}else return logger[_0x23a5f4(0x16c)](_0x69d01b[_0x23a5f4(0x178)]),{};},exports[a34_0x124007(0x160)]=async _0x5de6ba=>{const _0x2f2298=a34_0x124007,_0x5f2c69={'mGCRb':function(_0x207502,_0x278c0d){return _0x207502!==_0x278c0d;},'cyOpn':_0x2f2298(0x19c),'FZILB':function(_0x5e7ad8,_0x559458){return _0x5e7ad8===_0x559458;},'QznZh':_0x2f2298(0x1b9),'pLPWY':function(_0x16ddb4,_0x39eec){return _0x16ddb4===_0x39eec;},'WHJhu':'playwright-chromium','pOOLt':_0x2f2298(0x1ad),'MUdmG':function(_0x51bd41,_0x47886f){return _0x51bd41(_0x47886f);},'Nudzu':function(_0x18cb70,_0x1c05e8){return _0x18cb70===_0x1c05e8;},'tHJbS':'latest','sMbYi':function(_0x589d0c,_0xe9f393){return _0x589d0c>_0xe9f393;},'RcjrI':_0x2f2298(0x17e)};try{if(!_0x5f2c69[_0x2f2298(0x189)](_0x5de6ba['deviceName'],''))return logger[_0x2f2298(0x16c)](_0x5f2c69['cyOpn']),![];const _0x28b082=_0x5de6ba[_0x2f2298(0x1aa)];if(!(_0x5f2c69['FZILB'](_0x28b082,_0x5f2c69[_0x2f2298(0x1ae)])||_0x5f2c69[_0x2f2298(0x1a4)](_0x28b082,_0x5f2c69[_0x2f2298(0x186)])))return logger[_0x2f2298(0x16c)](_0x5f2c69[_0x2f2298(0x1a9)]),![];const _0x260576=_0x5f2c69[_0x2f2298(0x1a1)](parseInt,_0x5de6ba[_0x2f2298(0x1af)]);if(!(_0x5f2c69['Nudzu'](_0x260576,_0x5f2c69[_0x2f2298(0x19f)])||_0x5f2c69[_0x2f2298(0x19a)](_0x260576,0x5e)))return logger[_0x2f2298(0x16c)](_0x5f2c69['RcjrI']),![];}catch(_0x2aae69){logger['debug']('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x2f2298(0x18d)](_0x2aae69));}return!![];},exports['processAccessibilityCaps']=(_0x58d225,_0x284e26,_0xae3cb8)=>{const _0x3b1b20=a34_0x124007,_0x44a4ec={'CXPtr':function(_0x139f3a){return _0x139f3a();},'wyHPm':_0x3b1b20(0x1b7),'KGDRW':function(_0x27260f,_0x4f7306){return _0x27260f===_0x4f7306;},'IWTRV':'chrome','sPtOQ':_0x3b1b20(0x18f),'dcAvx':_0x3b1b20(0x1ad),'seTTB':'latest','mKluc':function(_0x2bd907,_0x1c8558){return _0x2bd907>_0x1c8558;},'GCVlh':_0x3b1b20(0x17e),'smLww':function(_0x52bd2e,_0xda3a9d){return _0x52bd2e(_0xda3a9d);},'LmDlO':_0x3b1b20(0x19c),'xhNSE':function(_0x45521f,_0x32c26b){return _0x45521f+_0x32c26b;},'QbAnz':function(_0x599768,_0x2196cc){return _0x599768(_0x2196cc);}};try{if(_0x44a4ec[_0x3b1b20(0x195)](isAccessibilityAutomationSession)){global[_0x3b1b20(0x16d)]=!![];!_0x58d225[_0x44a4ec['wyHPm']]&&(global[_0x3b1b20(0x16d)]=![]);!(_0x44a4ec[_0x3b1b20(0x19e)](_0x58d225[_0x3b1b20(0x166)],_0x44a4ec[_0x3b1b20(0x190)])||_0x44a4ec[_0x3b1b20(0x19e)](_0x58d225['browserName'],_0x44a4ec[_0x3b1b20(0x1b1)]))&&(logger[_0x3b1b20(0x16c)](_0x44a4ec['dcAvx']),global[_0x3b1b20(0x16d)]=![]);!(_0x44a4ec[_0x3b1b20(0x19e)](_0x58d225[_0x3b1b20(0x1af)],_0x44a4ec[_0x3b1b20(0x174)])||_0x44a4ec[_0x3b1b20(0x167)](_0x58d225['browser_version'],0x5e))&&(logger[_0x3b1b20(0x16c)](_0x44a4ec[_0x3b1b20(0x163)]),global['accessibilityPlatform']=![]);!_0x44a4ec['smLww'](isUndefined,_0x58d225[_0x3b1b20(0x17a)])&&(logger[_0x3b1b20(0x16c)](_0x44a4ec['LmDlO']),global[_0x3b1b20(0x16d)]=![]);if(!global[_0x3b1b20(0x16d)]){_0x58d225[_0x44a4ec[_0x3b1b20(0x169)]]=![];const _0x320e91=_0x44a4ec['xhNSE'](_0x284e26,_0x44a4ec[_0x3b1b20(0x179)](encodeURIComponent,JSON[_0x3b1b20(0x188)](_0x58d225)));_0xae3cb8&&(_0xae3cb8['currentTest'][_0x3b1b20(0x1c6)][_0x3b1b20(0x16b)][_0x3b1b20(0x164)][_0x3b1b20(0x1b6)][_0x3b1b20(0x185)]=_0x320e91,_0xae3cb8[_0x3b1b20(0x161)][_0x3b1b20(0x16b)][_0x3b1b20(0x164)][_0x3b1b20(0x1b6)][_0x3b1b20(0x185)]=_0x320e91);}}}catch(_0x431103){logger[_0x3b1b20(0x1a0)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x3b1b20(0x18d)](_0x431103));}};function a34_0x157b(){const _0x10851c=['env','seTTB','error','bDocw','wcagVersion','xtRUX','QbAnz','deviceName','6350832yrEMmR','../../helpers/helper','1059867HZOmVP','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','jKbfo','bestPractice','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','accessibilityOptions.includeIssueType.bestPractice','performScan','util','wsEndpoint','WHJhu','4402433ZHLinx','stringify','mGCRb','351789rkhscW','No\x20accessibility\x20results\x20were\x20found.','executeAsyncScript','format','tpcvG','playwright-chromium','IWTRV','setAccessibilityCapabilities','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','scannerVersion','190340EGHaIP','CXPtr','jaipE','getAccessibilityResultsSummary','scannerProcessingTimeout','accessibilityOptions','sMbYi','2211728dqQHlh','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','Playwright','KGDRW','tHJbS','debug','MUdmG','constructor','evaluate','pLPWY','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','accessibilityOptions.scannerProcessingTimeout','No\x20summaryResults\x20found.','JsqeO','pOOLt','browser','zTfgQ','winstonLogger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','QznZh','browser_version','751251JXZzBP','sPtOQ','4hvHvwA','../../helpers/accessibility-automation/scripts','WebDriver','accessibilityOptions.includeIssueType.needsReview','connectOptions','browserstack.accessibility','../../helpers/accessibility-automation/helper','chrome','../../helpers/logger','HbLGM','wfYFV','jmnfA','rAnmB','needsReview','includeIssueType','browserStackEvaluate','lgSTK','name','getAccessibilityResults','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','testInfo','platformValidation','workerInfo','(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','GCVlh','use','28sORkUJ','browserName','mKluc','XRqpw','wyHPm','executeScript','project','warn','accessibilityPlatform','accessibilityOptions.authToken','parse','replace','QXCEc','(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'];a34_0x157b=function(){return _0x10851c;};return a34_0x157b();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a34_0x123dc0=a34_0x19dc;function a34_0x1442(){const _0x21392a=['../../helpers/accessibility-automation/helper','nvzcD','stop','vfEAa','jBfIt','../../helpers/test-observability/error-handler','requirePWModule','DJsEW','pHOIQ','clearTempPWConfig','playwright-browserstack-sdk.config.js','concat','--grep','includes','topKD','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','errorMessage','serializeToYamlString','trim','cZTMo','accessibilityOptions','BROWSERSTACK_RERUN_TESTS','playwright','QOuYI','eOaDQ','KIwWF','Playwright\x20process\x20exited\x20with\x20code\x20','4239eCICLu','resolve','3508100JfykVb','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/testhub/utils','length','./accessibility-helper','42HenkoI','12170skBYad','ytJgP','finalExecution','writeFileSync','util','WwLam','.browserstack','exitCode','pw_result.json','apply','npx','HdMUH','map','Error\x20in\x20deleting\x20playwright\x20results','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','error','playwright-browserstack-sdk.config.cjs','PIZjk','3|5|8|6|7|4|1|0|2','BROWSERSTACK_TEST_ACCESSIBILITY_YML','uwbQc','Jfrvt','isTrue','unlinkSync','BVegT','PlKah','--config','../../helpers/helper','Zelms','child_process','12VZrVKF','../../helpers/logger','4229430LOfNXF','null','cwd','splice','BrowserStack\x20config\x20file\x20not\x20found.','aTqIB','1242072XSVFuW','MeCaB','join','MOWPu','false','get','../../helpers/test-observability/constants','6523814bjCtJV','exports','win32','existsSync','caemT','--disable-test-observability','accessibility','3pPKIYB','path','Error\x20in\x20getting\x20funnel\x20data\x20results','RlAwS','inherit','homedir','split','resolvedConfigFile','lkfUR','GSvIa','1205308fCyfSh','OWyuO','ZbUXh','isUndefined','config','9jWQMsn','aqdhX','vDbtN','mWGwk','--config=','push','stringify','SXQFk','USER_CONFIG_DETAILS_PATH','cliConfig','../../helpers/testhub/testhubHandler','Lzbtc','icjdj','parse','true','filter','184674XxIZbW','indexOf','Error\x20in\x20closing\x20playwright','BROWSERSTACK_PW_CONFIG_DIR','VhwDp','debug','info','startsWith','isTypescriptProject','slice','platform','nestedKeyValue','launchBuild','BROWSERSTACK_RERUN','dirname','sAuLf','browserstackSetupConfig.json','\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();','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','argv','testContextOptions','hovLX','BROWSERSTACK_SETUP_CONFIG_PATH','PACKAGE_TYPE','getConfigPath','isFalse','piDQT','env','HKxsH','test','../../helpers/BrowserStackSetup','EMGzg','skipSessionName','PLAYWRIGHT','ZyaZJ','findIndex','BROWSERSTACK_AUTOMATION','has','lffCs'];a34_0x1442=function(){return _0x21392a;};return a34_0x1442();}(function(_0x277c37,_0x41d84d){const _0x508e90=a34_0x19dc,_0x1ebf19=_0x277c37();while(!![]){try{const _0x4c9848=parseInt(_0x508e90(0xbe))/0x1*(parseInt(_0x508e90(0xce))/0x2)+-parseInt(_0x508e90(0xaf))/0x3*(-parseInt(_0x508e90(0xb9))/0x4)+-parseInt(_0x508e90(0x75))/0x5+-parseInt(_0x508e90(0x9b))/0x6+parseInt(_0x508e90(0x7a))/0x7*(parseInt(_0x508e90(0xa1))/0x8)+-parseInt(_0x508e90(0x73))/0x9*(parseInt(_0x508e90(0x7b))/0xa)+-parseInt(_0x508e90(0xa8))/0xb*(-parseInt(_0x508e90(0x99))/0xc);if(_0x4c9848===_0x41d84d)break;else _0x1ebf19['push'](_0x1ebf19['shift']());}catch(_0x4cf9d9){_0x1ebf19['push'](_0x1ebf19['shift']());}}}(a34_0x1442,0xa5588));const fs=require('fs'),path=require(a34_0x123dc0(0xb0)),{spawn}=require(a34_0x123dc0(0x98)),{format}=require(a34_0x123dc0(0x7f)),logger=require(a34_0x123dc0(0x9a))['winstonLogger'],{default:BrowserStackSetup}=require(a34_0x123dc0(0xec)),helper=require(a34_0x123dc0(0x96)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a34_0x123dc0(0xa7)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require(a34_0x123dc0(0xfa)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{checkAccessibilityPlatformConfig}=require(a34_0x123dc0(0xf5)),{setAccessibilityCapabilities}=require(a34_0x123dc0(0x79)),TestHubHandler=require(a34_0x123dc0(0xc8)),{shouldProcessEventForTesthub}=require(a34_0x123dc0(0x77)),getUserPlaywrightConfig=async(_0x52b6b6,_0xca77a3)=>{const _0x120f50=a34_0x123dc0,_0x281ac1={'zHsHw':function(_0x387ceb){return _0x387ceb();},'kqfmt':function(_0x47916a,_0x359f97){return _0x47916a(_0x359f97);},'icjdj':function(_0x265e54,_0x57d4b3){return _0x265e54(_0x57d4b3);},'eOaDQ':_0x120f50(0xb6),'aTqIB':_0x120f50(0xc2)},_0x123580=!helper[_0x120f50(0xbc)](_0x52b6b6[_0x120f50(0xbd)]),_0x297844=_0x123580?path[_0x120f50(0x74)](process[_0x120f50(0x9d)](),_0x52b6b6[_0x120f50(0xbd)]):process[_0x120f50(0x9d)](),{resolveConfigFile:_0x4117c6,resolveConfigLocation:_0x359641}=helper[_0x120f50(0xfb)][_0x120f50(0x84)](null,_0x281ac1['zHsHw'](getConfigLoaderPath)),_0x3f2808=_0x4117c6?_0x281ac1['kqfmt'](_0x4117c6,_0x297844):helper[_0x120f50(0xd9)](_0x281ac1[_0x120f50(0xca)](_0x359641,_0x297844),[_0x281ac1[_0x120f50(0x70)]]),_0x1912e0={};if(_0x123580){const _0x141551=_0xca77a3[_0x120f50(0xf1)](_0x2eb4f9=>_0x2eb4f9===_0x120f50(0x95)||_0x2eb4f9==='-c'||_0x2eb4f9[_0x120f50(0xd5)]('--config='));_0xca77a3[_0x120f50(0x9e)](_0x141551,_0xca77a3[_0x141551][_0x120f50(0xd5)](_0x281ac1[_0x120f50(0xa0)])?0x1:0x2);}const _0x40af20={};return _0x40af20['path']=_0x3f2808,_0x40af20[_0x120f50(0xbd)]=_0x1912e0,_0x40af20;},handleO11yRerun=_0x3491f3=>{const _0x2c2c11=a34_0x123dc0,_0x25f4ab={};_0x25f4ab[_0x2c2c11(0x71)]=function(_0x579bb4,_0x4312a2){return _0x579bb4!==_0x4312a2;},_0x25f4ab[_0x2c2c11(0x97)]=_0x2c2c11(0x9c),_0x25f4ab[_0x2c2c11(0xba)]=_0x2c2c11(0x101);const _0x286600=_0x25f4ab,_0x5139ad=helper[_0x2c2c11(0x91)](process[_0x2c2c11(0xe9)][_0x2c2c11(0xdb)]);if(_0x5139ad){const _0x177b47=process[_0x2c2c11(0xe9)][_0x2c2c11(0x6d)],_0x221c42=[];if(_0x286600[_0x2c2c11(0x71)](_0x177b47,_0x286600[_0x2c2c11(0x97)])&&!helper['isUndefined'](_0x177b47)){_0x177b47['split'](',')[_0x2c2c11(0x87)](_0x1e017c=>{const _0x13fda7=_0x2c2c11;_0x221c42[_0x13fda7(0xc3)]('('+_0x1e017c[_0x13fda7(0x6a)]()+')');});const _0x44fdd3='^'+_0x221c42[_0x2c2c11(0xa3)]('|')+'$';_0x3491f3[_0x2c2c11(0xc3)](_0x286600[_0x2c2c11(0xba)],_0x44fdd3);}}},spawnOriginalProcess=_0x4ad558=>{const _0x4eb05e=a34_0x123dc0,_0x29223b={'lffCs':function(_0x5a6a88,_0x3cfdb1,_0x395b41,_0x46afe7){return _0x5a6a88(_0x3cfdb1,_0x395b41,_0x46afe7);},'QOuYI':_0x4eb05e(0x85),'BkLsh':_0x4eb05e(0x6e),'jBfIt':function(_0x731672,_0x56c1b8){return _0x731672===_0x56c1b8;},'Jfrvt':_0x4eb05e(0xaa),'lkfUR':_0x4eb05e(0xb3)};_0x29223b[_0x4eb05e(0xf4)](spawn,_0x29223b[_0x4eb05e(0x6f)],[_0x29223b['BkLsh'],..._0x4ad558['slice'](0x1)],{'shell':_0x29223b[_0x4eb05e(0xf9)](process[_0x4eb05e(0xd8)],_0x29223b[_0x4eb05e(0x90)]),'stdio':_0x29223b[_0x4eb05e(0xb7)],'cwd':process[_0x4eb05e(0x9d)]()});},isTestCommand=(_0x51f7a4,_0x504aef)=>{const _0x3f9723=a34_0x123dc0,_0x3cad9a={};_0x3cad9a[_0x3f9723(0xe8)]=function(_0x4656cf,_0x2beefb){return _0x4656cf>_0x2beefb;},_0x3cad9a['ZbUXh']=function(_0x11cb50,_0x48c5d9){return _0x11cb50===_0x48c5d9;},_0x3cad9a[_0x3f9723(0xc5)]=_0x3f9723(0xeb);const _0x1f8340=_0x3cad9a;if(_0x1f8340[_0x3f9723(0xe8)](_0x504aef[_0x3f9723(0x78)],0x1)&&_0x1f8340[_0x3f9723(0xbb)](_0x504aef[0x1],_0x1f8340['SXQFk']))return!![];return![];};function a34_0x19dc(_0x238087,_0x55e86d){const _0x144213=a34_0x1442();return a34_0x19dc=function(_0x19dc25,_0xed4efd){_0x19dc25=_0x19dc25-0x67;let _0x16dacb=_0x144213[_0x19dc25];return _0x16dacb;},a34_0x19dc(_0x238087,_0x55e86d);}async function run(_0x5a946,_0x41cbfa){const _0x1d33ad=a34_0x123dc0,_0x210b90={'vfEAa':_0x1d33ad(0x81),'PIZjk':_0x1d33ad(0x83),'RlAwS':function(_0x329f3c,_0x34e240){return _0x329f3c+_0x34e240;},'Lzbtc':_0x1d33ad(0xb1),'BVegT':_0x1d33ad(0x8d),'caemT':function(_0x4ca7fe){return _0x4ca7fe();},'aawcO':function(_0x493c73,_0x27b9ed){return _0x493c73+_0x27b9ed;},'NcVjS':_0x1d33ad(0xd0),'ZyaZJ':'--disable-browserstack-automation','HKxsH':_0x1d33ad(0xa5),'wFaWD':_0x1d33ad(0xad),'DJsEW':function(_0x3f195b,_0x2a5e3b){return _0x3f195b>=_0x2a5e3b;},'AmKtz':function(_0x57391d,_0x5151fa){return _0x57391d+_0x5151fa;},'ZlTjs':_0x1d33ad(0x88),'NfLNl':function(_0x1722d8,_0x2b91b5,_0x19dabb){return _0x1722d8(_0x2b91b5,_0x19dabb);},'Guyxd':function(_0x21f0f1,_0x22baf6){return _0x21f0f1(_0x22baf6);},'pHOIQ':_0x1d33ad(0x9f),'mWGwk':'automation','uwbQc':function(_0x1b351d,_0x120829){return _0x1b351d!=_0x120829;},'UqlQC':function(_0x306395,_0x125eea,_0x3fe88f){return _0x306395(_0x125eea,_0x3fe88f);},'ytJgP':function(_0x4e80d2,_0x8a1bd9){return _0x4e80d2(_0x8a1bd9);},'BEYTG':function(_0x47d3a1,_0x562231){return _0x47d3a1(_0x562231);},'nvzcD':function(_0x755005,_0x579e44){return _0x755005===_0x579e44;},'HdMUH':_0x1d33ad(0xcc),'MOWPu':function(_0x20bd40,_0x4022cc){return _0x20bd40(_0x4022cc);},'sAuLf':function(_0x1ed55d,_0x414639){return _0x1ed55d(_0x414639);},'topKD':_0x1d33ad(0xde),'aqdhX':_0x1d33ad(0x8b),'MHMRR':_0x1d33ad(0xff),'GSvIa':function(_0x46399e,_0x4430d8){return _0x46399e-_0x4430d8;},'MeCaB':function(_0x1bed2,_0x90e01c){return _0x1bed2+_0x90e01c;},'cZTMo':'Updated\x20config\x20file\x20name\x20to\x20-\x20','QhzXQ':function(_0x5580ef,_0x230e20){return _0x5580ef>_0x230e20;},'fzYkR':function(_0x5e6b91,_0x1cb207){return _0x5e6b91+_0x1cb207;},'vDbtN':function(_0x507b80,_0x4669c1,_0x1cc256,_0x139842){return _0x507b80(_0x4669c1,_0x1cc256,_0x139842);},'VhwDp':_0x1d33ad(0x85),'hovLX':_0x1d33ad(0x6e),'tagpg':_0x1d33ad(0xeb),'rjnvG':_0x1d33ad(0x95),'EMGzg':function(_0x337254,_0x2da806){return _0x337254===_0x2da806;},'WwLam':'win32','IfKvx':_0x1d33ad(0xb3),'PlKah':'close'};!helper[_0x1d33ad(0xe7)](process[_0x1d33ad(0xe9)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x1d33ad(0xe9)][_0x1d33ad(0xf2)]=!![]);process[_0x1d33ad(0xe1)][_0x1d33ad(0x102)](_0x210b90[_0x1d33ad(0xf0)])&&(process[_0x1d33ad(0xe9)][_0x1d33ad(0xf2)]=_0x210b90[_0x1d33ad(0xea)],_0x41cbfa=_0x41cbfa[_0x1d33ad(0xcd)](_0x13c929=>_0x13c929!=='--disable-browserstack-automation'));const _0x54fb51=_0x41cbfa[_0x1d33ad(0xcf)](_0x210b90['wFaWD']);_0x210b90[_0x1d33ad(0xfc)](_0x54fb51,0x0)&&(process[_0x1d33ad(0xe9)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x210b90[_0x1d33ad(0xea)],_0x41cbfa=_0x41cbfa[_0x1d33ad(0xcd)](_0x1c5fe6=>_0x1c5fe6!==_0x1d33ad(0xad)));try{const _0x568fd3=path[_0x1d33ad(0xa3)](helper[_0x1d33ad(0xb4)](),_0x210b90['vfEAa'],_0x210b90[_0x1d33ad(0x8c)]);fs[_0x1d33ad(0xab)](_0x568fd3)&&fs[_0x1d33ad(0x92)](_0x568fd3);}catch(_0x13281a){logger[_0x1d33ad(0xd3)](_0x210b90['AmKtz'](_0x210b90['ZlTjs'],_0x13281a));}if(!_0x210b90['NfLNl'](isTestCommand,_0x5a946,_0x41cbfa)){_0x210b90['Guyxd'](spawnOriginalProcess,_0x41cbfa);return;}const _0x9c396=new BrowserStackSetup(_0x5a946,FRAMEWORKS[_0x1d33ad(0xef)]);if(!_0x9c396[_0x1d33ad(0xbd)]){logger[_0x1d33ad(0x8a)](_0x210b90[_0x1d33ad(0xfd)]);return;}await _0x9c396['initialize']();!helper[_0x1d33ad(0xbc)](_0x9c396['cliConfig'])&&_0x9c396[_0x1d33ad(0xc7)][_0x1d33ad(0xf3)](_0x210b90[_0x1d33ad(0xc1)])&&(process[_0x1d33ad(0xe9)]['BROWSERSTACK_AUTOMATION']=_0x9c396[_0x1d33ad(0xc7)][_0x1d33ad(0xa6)](_0x210b90[_0x1d33ad(0xc1)])||!![]);_0x210b90[_0x1d33ad(0x8f)](_0x9c396['config']['testObservability'],null)&&!helper[_0x1d33ad(0x91)](process[_0x1d33ad(0xe9)][_0x1d33ad(0x76)])&&(process['env'][_0x1d33ad(0x76)]=process[_0x1d33ad(0xe9)][_0x1d33ad(0x76)]||_0x9c396[_0x1d33ad(0xbd)]['testObservability']);const _0x360755=!helper[_0x1d33ad(0xe7)](process[_0x1d33ad(0xe9)][_0x1d33ad(0x76)]);let _0xd2685a=![];_0x9c396[_0x1d33ad(0xbd)][_0x1d33ad(0xae)]&&(_0xd2685a=!![],process[_0x1d33ad(0xe9)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x9c396[_0x1d33ad(0xbd)][_0x1d33ad(0xae)]);_0x9c396[_0x1d33ad(0xbd)][_0x1d33ad(0x6c)]&&(process[_0x1d33ad(0xe9)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x1d33ad(0xc4)](_0x9c396['config'][_0x1d33ad(0x6c)]));const _0x50e55e=_0x41cbfa[_0x1d33ad(0x100)](),_0x406eb=await _0x210b90['UqlQC'](getUserPlaywrightConfig,_0x5a946,_0x41cbfa);if(helper[_0x1d33ad(0xbc)](_0x406eb)){_0x210b90[_0x1d33ad(0x7c)](spawnOriginalProcess,_0x50e55e);return;}const _0x1db5bf=_0x406eb[_0x1d33ad(0xb0)]?path[_0x1d33ad(0xdc)](_0x406eb[_0x1d33ad(0xb0)]):process['cwd']();process['env'][_0x1d33ad(0xd1)]=_0x1db5bf,await TestHubHandler[_0x1d33ad(0xda)](FRAMEWORKS[_0x1d33ad(0xef)],_0x9c396);_0x360755&&_0x210b90['BEYTG'](handleO11yRerun,_0x41cbfa);let _0x159b79=_0x210b90[_0x1d33ad(0xf6)](process[_0x1d33ad(0xe9)][_0x1d33ad(0x8e)],_0x210b90[_0x1d33ad(0x86)]);_0x159b79=_0x159b79||_0x210b90[_0x1d33ad(0xa4)](checkAccessibilityPlatformConfig,_0x9c396[_0x1d33ad(0xbd)]),process[_0x1d33ad(0xe9)][_0x1d33ad(0x8e)]=_0x159b79;_0x159b79&&_0x210b90[_0x1d33ad(0xdd)](setAccessibilityCapabilities,_0x9c396[_0x1d33ad(0xbd)]);const _0x42889b=path[_0x1d33ad(0xa3)](_0x406eb[_0x1d33ad(0xb0)]?path['dirname'](_0x406eb[_0x1d33ad(0xb0)]):process[_0x1d33ad(0x9d)](),_0x210b90[_0x1d33ad(0x103)]);fs[_0x1d33ad(0x7e)](_0x42889b,helper[_0x1d33ad(0x69)](_0x9c396[_0x1d33ad(0xbd)])),process[_0x1d33ad(0xe9)][_0x1d33ad(0xe4)]=_0x42889b,helper[_0x1d33ad(0xfe)]();let _0x4089db='';_0x210b90[_0x1d33ad(0xf6)](helper['getPackageType'](),constants[_0x1d33ad(0xe5)]['MODULE'])?_0x4089db=_0x210b90[_0x1d33ad(0xbf)]:_0x4089db=_0x210b90['MHMRR'];let _0x54b8d0='';if(helper[_0x1d33ad(0xd6)](_0x406eb['path'])){_0x54b8d0=_0x1d33ad(0x89);const _0x126003=_0x4089db[_0x1d33ad(0xb5)]('.');_0x126003[_0x210b90[_0x1d33ad(0xb8)](_0x126003[_0x1d33ad(0x78)],0x1)]='ts',_0x4089db=_0x126003['join']('.'),logger[_0x1d33ad(0xd3)](_0x210b90[_0x1d33ad(0xa2)](_0x210b90[_0x1d33ad(0x6b)],_0x4089db));}else _0x54b8d0=_0x1d33ad(0x67);const _0x595580=path[_0x1d33ad(0xa3)](_0x406eb[_0x1d33ad(0xb0)]?path[_0x1d33ad(0xdc)](_0x406eb['path']):process[_0x1d33ad(0x9d)](),_0x4089db);let _0x4db883=_0x406eb[_0x1d33ad(0xb0)]?_0x406eb[_0x1d33ad(0xb0)]:'';_0x4db883=_0x210b90['QhzXQ'](_0x4db883[_0x1d33ad(0x78)],0x0)?path[_0x1d33ad(0x74)](_0x4db883):'',process[_0x1d33ad(0xe9)][_0x1d33ad(0xc6)]=_0x4db883;const _0x27cf9f=helper['getProxyUrl'](_0x9c396[_0x1d33ad(0xbd)]);_0x27cf9f&&(_0x54b8d0=_0x210b90['fzYkR'](_0x1d33ad(0xe0)+_0x27cf9f+_0x1d33ad(0xdf),_0x54b8d0));helper['filterBrowserstackConfig']({},_0x41cbfa),fs[_0x1d33ad(0x7e)](_0x595580,_0x54b8d0),helper['markSDKSetupComplete']();const _0x10ba8f=_0x210b90[_0x1d33ad(0xc0)](spawn,_0x210b90[_0x1d33ad(0xd2)],[_0x210b90[_0x1d33ad(0xe3)],_0x210b90['tagpg'],_0x210b90['rjnvG'],_0x595580,..._0x41cbfa[_0x1d33ad(0xd7)](0x2)],{'shell':_0x210b90[_0x1d33ad(0xed)](process[_0x1d33ad(0xd8)],_0x210b90[_0x1d33ad(0x80)]),'stdio':_0x210b90['IfKvx'],'cwd':process[_0x1d33ad(0x9d)](),'env':Object['assign']({},process[_0x1d33ad(0xe9)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x1d33ad(0xe6)](_0x5a946),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x9c396[_0x1d33ad(0xbd)][_0x1d33ad(0xe2)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x9c396['config'][_0x1d33ad(0xe2)][_0x1d33ad(0xee)],'BROWSERSTACK_LOG_LEVEL':_0x9c396[_0x1d33ad(0xbd)]['logLevel']})}),_0xa10824=()=>{const _0x242ead=_0x1d33ad;try{const _0xca2672=path[_0x242ead(0xa3)](helper[_0x242ead(0xb4)](),_0x210b90[_0x242ead(0xf8)],_0x210b90[_0x242ead(0x8c)]);if(fs[_0x242ead(0xab)](_0xca2672)){let _0x65ae53=fs['readFileSync'](_0xca2672);_0x65ae53=JSON[_0x242ead(0xcb)](_0x65ae53),_0x9c396[_0x242ead(0x68)]=_0x65ae53,fs[_0x242ead(0x92)](_0xca2672);}}catch(_0x3061d9){logger[_0x242ead(0xd3)](_0x210b90[_0x242ead(0xb2)](_0x210b90[_0x242ead(0xc9)],_0x3061d9));}};_0x10ba8f['on'](_0x210b90[_0x1d33ad(0x94)],async _0x58fb14=>{const _0x45dffa=_0x1d33ad;try{const _0x6dd282=_0x210b90[_0x45dffa(0x93)][_0x45dffa(0xb5)]('|');let _0xc7222a=0x0;while(!![]){switch(_0x6dd282[_0xc7222a++]){case'0':logger[_0x45dffa(0xd3)]('Deleting\x20'+_0x42889b);continue;case'1':fs['unlinkSync'](_0x595580);continue;case'2':fs['unlinkSync'](_0x42889b);continue;case'3':_0x210b90[_0x45dffa(0xac)](_0xa10824);continue;case'4':logger[_0x45dffa(0xd4)]('Deleting\x20'+_0x595580);continue;case'5':await TestHubHandler[_0x45dffa(0xf7)]();continue;case'6':process[_0x45dffa(0x82)]=_0x58fb14;continue;case'7':logger[_0x45dffa(0xd3)](_0x45dffa(0x72)+_0x58fb14);continue;case'8':await helper[_0x45dffa(0x7d)](_0x9c396);continue;}break;}}catch(_0x36f196){logger[_0x45dffa(0xd3)](_0x210b90['aawcO'](_0x210b90['NcVjS'],_0x36f196));}});}module[a34_0x123dc0(0xa9)]=run;
|
|
2
|
+
'use strict';const a35_0x449f89=a35_0x5238;(function(_0x1c52e6,_0x4b0e89){const _0x4e07e8=a35_0x5238,_0x5af607=_0x1c52e6();while(!![]){try{const _0x438560=-parseInt(_0x4e07e8(0x106))/0x1+parseInt(_0x4e07e8(0x119))/0x2*(-parseInt(_0x4e07e8(0xfe))/0x3)+parseInt(_0x4e07e8(0x135))/0x4*(parseInt(_0x4e07e8(0x115))/0x5)+parseInt(_0x4e07e8(0x15b))/0x6*(-parseInt(_0x4e07e8(0x148))/0x7)+-parseInt(_0x4e07e8(0xd1))/0x8+parseInt(_0x4e07e8(0x131))/0x9+parseInt(_0x4e07e8(0x100))/0xa;if(_0x438560===_0x4b0e89)break;else _0x5af607['push'](_0x5af607['shift']());}catch(_0x1b9e9e){_0x5af607['push'](_0x5af607['shift']());}}}(a35_0x1c70,0x9403e));const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x449f89(0xcd)),{format}=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),constants=require(a35_0x449f89(0x14c)),{FRAMEWORKS}=require(a35_0x449f89(0xe6)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x449f89(0x152)),{CrashReporter}=require(a35_0x449f89(0x144)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{checkAccessibilityPlatformConfig}=require(a35_0x449f89(0xfd)),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x449f89(0x107)),getUserPlaywrightConfig=async(_0x1cd5b5,_0x35b38e)=>{const _0x3c6623=a35_0x449f89,_0x315855={'nEqLy':function(_0xb5b102){return _0xb5b102();},'cGdkb':function(_0x51160e,_0x379fd7){return _0x51160e(_0x379fd7);},'uZRNL':function(_0x2c394c,_0x924dfc){return _0x2c394c(_0x924dfc);},'MCKik':_0x3c6623(0x130),'TEwXC':_0x3c6623(0xf0)},_0x3a0650=!helper[_0x3c6623(0x128)](_0x1cd5b5[_0x3c6623(0xe8)]),_0x1d7383=_0x3a0650?path[_0x3c6623(0xeb)](process['cwd'](),_0x1cd5b5[_0x3c6623(0xe8)]):process[_0x3c6623(0xcc)](),{resolveConfigFile:_0x55dde7,resolveConfigLocation:_0x7033fa}=helper[_0x3c6623(0x149)][_0x3c6623(0xec)](null,_0x315855[_0x3c6623(0x15e)](getConfigLoaderPath)),_0x116647=_0x55dde7?_0x315855[_0x3c6623(0x124)](_0x55dde7,_0x1d7383):helper[_0x3c6623(0x134)](_0x315855[_0x3c6623(0xcf)](_0x7033fa,_0x1d7383),[_0x315855['MCKik']]),_0x290844={};if(_0x3a0650){const _0x528338=_0x35b38e[_0x3c6623(0xe3)](_0x29c585=>_0x29c585==='--config'||_0x29c585==='-c'||_0x29c585[_0x3c6623(0x122)](_0x3c6623(0xf0)));_0x35b38e[_0x3c6623(0x103)](_0x528338,_0x35b38e[_0x528338][_0x3c6623(0x122)](_0x315855['TEwXC'])?0x1:0x2);}const _0x7d5192={};return _0x7d5192[_0x3c6623(0x137)]=_0x116647,_0x7d5192['config']=_0x290844,_0x7d5192;},handleO11yRerun=_0x384aa4=>{const _0x369861=a35_0x449f89,_0x5cbac9={};_0x5cbac9[_0x369861(0xff)]=function(_0x356efd,_0x1fda11){return _0x356efd!==_0x1fda11;},_0x5cbac9[_0x369861(0x15c)]=_0x369861(0x143),_0x5cbac9[_0x369861(0x13e)]=_0x369861(0x109);const _0x4374de=_0x5cbac9,_0x458c4f=helper[_0x369861(0xf7)](process[_0x369861(0x142)][_0x369861(0x145)]);if(_0x458c4f){const _0x41e5d9=process[_0x369861(0x142)][_0x369861(0x116)],_0x3dbd05=[];if(_0x4374de[_0x369861(0xff)](_0x41e5d9,_0x4374de[_0x369861(0x15c)])&&!helper[_0x369861(0x128)](_0x41e5d9)){_0x41e5d9[_0x369861(0x146)](',')['map'](_0x59d6a2=>{const _0x58b7eb=_0x369861;_0x3dbd05[_0x58b7eb(0x14d)]('('+_0x59d6a2[_0x58b7eb(0x10c)]()+')');});const _0x5f3613='^'+_0x3dbd05[_0x369861(0xfb)]('|')+'$';_0x384aa4[_0x369861(0x14d)](_0x4374de[_0x369861(0x13e)],_0x5f3613);}}},spawnOriginalProcess=_0x39341e=>{const _0x32ecc1=a35_0x449f89,_0x2169b6={'pmfcX':function(_0x224cfa,_0x36d131,_0x199799,_0x545cc2){return _0x224cfa(_0x36d131,_0x199799,_0x545cc2);},'VNKHG':'npx','cRHOc':_0x32ecc1(0xd0),'eTdLa':function(_0xf97149,_0x2bfd2c){return _0xf97149===_0x2bfd2c;},'avRVY':_0x32ecc1(0x110),'OoOxN':'inherit'};_0x2169b6[_0x32ecc1(0x120)](spawn,_0x2169b6[_0x32ecc1(0x12f)],[_0x2169b6[_0x32ecc1(0x147)],..._0x39341e['slice'](0x1)],{'shell':_0x2169b6[_0x32ecc1(0x12a)](process[_0x32ecc1(0x10f)],_0x2169b6['avRVY']),'stdio':_0x2169b6[_0x32ecc1(0x159)],'cwd':process['cwd']()});},isTestCommand=(_0x1bf6b3,_0x27a69a)=>{const _0xcd5f33=a35_0x449f89,_0xdc36e2={};_0xdc36e2['bgiss']=function(_0x4f79d6,_0x2fdd6b){return _0x4f79d6>_0x2fdd6b;},_0xdc36e2[_0xcd5f33(0xe4)]=function(_0x2b204b,_0x28c4a1){return _0x2b204b===_0x28c4a1;},_0xdc36e2['ViZHJ']='test';const _0x44e1a7=_0xdc36e2;if(_0x44e1a7[_0xcd5f33(0x153)](_0x27a69a[_0xcd5f33(0x133)],0x1)&&_0x44e1a7[_0xcd5f33(0xe4)](_0x27a69a[0x1],_0x44e1a7[_0xcd5f33(0xc8)]))return!![];return![];};function a35_0x5238(_0x7a37ae,_0xf7ac1b){const _0x1c70fb=a35_0x1c70();return a35_0x5238=function(_0x5238b8,_0x550307){_0x5238b8=_0x5238b8-0xc8;let _0xc3fe1b=_0x1c70fb[_0x5238b8];return _0xc3fe1b;},a35_0x5238(_0x7a37ae,_0xf7ac1b);}async function run(_0x422d83,_0x3e1273){const _0x3a05b0=a35_0x449f89,_0xbda195={'GSDPu':'.browserstack','Ajbvn':'pw_result.json','UfOua':function(_0x36564e,_0x2bf4ee){return _0x36564e+_0x2bf4ee;},'QyZVX':'Error\x20in\x20getting\x20funnel\x20data\x20results','hcXNH':_0x3a05b0(0x114),'ptlap':function(_0x5ae04b){return _0x5ae04b();},'BSFGv':'Error\x20in\x20closing\x20playwright','hngGl':_0x3a05b0(0x140),'ontmU':_0x3a05b0(0x101),'hARAy':_0x3a05b0(0x15d),'zEMNh':function(_0x13f1f0,_0x458720){return _0x13f1f0>=_0x458720;},'FAMEO':function(_0x103999,_0xe513f6){return _0x103999+_0xe513f6;},'vroXE':_0x3a05b0(0x11a),'ERIxt':function(_0x4122ab,_0x55da8b,_0x64339d){return _0x4122ab(_0x55da8b,_0x64339d);},'wSzDG':function(_0x465760,_0x5a6e33){return _0x465760(_0x5a6e33);},'LODxq':_0x3a05b0(0x14e),'BmtPC':_0x3a05b0(0xd5),'PHGAI':function(_0x4f7dd9,_0x1b341b){return _0x4f7dd9!=_0x1b341b;},'yEXzl':function(_0x5ab4ad,_0x3b44cd,_0x46f114){return _0x5ab4ad(_0x3b44cd,_0x46f114);},'ehltD':function(_0x4a4785,_0x14c474){return _0x4a4785(_0x14c474);},'bdjHa':function(_0x3558e5,_0x2cd9b1){return _0x3558e5===_0x2cd9b1;},'eezLR':_0x3a05b0(0xcb),'cJaRm':_0x3a05b0(0x15a),'MDLbG':function(_0x2e3f07,_0x1da669){return _0x2e3f07===_0x1da669;},'YMbvq':_0x3a05b0(0xd7),'bLHEa':_0x3a05b0(0x12d),'EChvK':function(_0x163f64,_0x3525d1){return _0x163f64-_0x3525d1;},'aKQZO':function(_0x19aa8c,_0x5189b3){return _0x19aa8c+_0x5189b3;},'VVJoF':'Updated\x20config\x20file\x20name\x20to\x20-\x20','YMECf':function(_0x29da12,_0xd1e48d){return _0x29da12>_0xd1e48d;},'mjoyJ':function(_0x13b3d2,_0x5db39f,_0x28aa37,_0x3676fc){return _0x13b3d2(_0x5db39f,_0x28aa37,_0x3676fc);},'tuZoM':_0x3a05b0(0x154),'KKEua':'playwright','gxjTj':_0x3a05b0(0xfa),'xQTZB':_0x3a05b0(0x14b),'lYcVq':_0x3a05b0(0x110),'RTaRF':'inherit','FcnxD':'close'};!helper[_0x3a05b0(0x157)](process[_0x3a05b0(0x142)][_0x3a05b0(0x141)])&&(process[_0x3a05b0(0x142)][_0x3a05b0(0x141)]=!![]);process[_0x3a05b0(0x11d)][_0x3a05b0(0xe9)](_0xbda195[_0x3a05b0(0xe0)])&&(process[_0x3a05b0(0x142)][_0x3a05b0(0x141)]=_0xbda195['ontmU'],_0x3e1273=_0x3e1273[_0x3a05b0(0xe7)](_0x1a0799=>_0x1a0799!==_0x3a05b0(0x140)));const _0x2bcbd1=_0x3e1273[_0x3a05b0(0xdd)](_0xbda195[_0x3a05b0(0x104)]);_0xbda195[_0x3a05b0(0x111)](_0x2bcbd1,0x0)&&(process[_0x3a05b0(0x142)][_0x3a05b0(0xca)]=_0xbda195['ontmU'],_0x3e1273=_0x3e1273[_0x3a05b0(0xe7)](_0x5db11b=>_0x5db11b!=='--disable-test-observability'));try{const _0x3e0174=path[_0x3a05b0(0xfb)](helper[_0x3a05b0(0x138)](),_0xbda195[_0x3a05b0(0xef)],_0xbda195['Ajbvn']);fs[_0x3a05b0(0xda)](_0x3e0174)&&fs['unlinkSync'](_0x3e0174);}catch(_0x3ce2a0){logger[_0x3a05b0(0xde)](_0xbda195['FAMEO'](_0xbda195['vroXE'],_0x3ce2a0));}if(!_0xbda195[_0x3a05b0(0xe1)](isTestCommand,_0x422d83,_0x3e1273)){_0xbda195[_0x3a05b0(0xf4)](spawnOriginalProcess,_0x3e1273);return;}const _0x2e6099=new BrowserStackSetup(_0x422d83,FRAMEWORKS[_0x3a05b0(0x13f)]);if(!_0x2e6099[_0x3a05b0(0xe8)]){logger['error'](_0xbda195['LODxq']);return;}await _0x2e6099[_0x3a05b0(0x156)]();!helper[_0x3a05b0(0x128)](_0x2e6099[_0x3a05b0(0x10b)])&&_0x2e6099['cliConfig'][_0x3a05b0(0x129)](_0xbda195[_0x3a05b0(0x117)])&&(process[_0x3a05b0(0x142)]['BROWSERSTACK_AUTOMATION']=_0x2e6099[_0x3a05b0(0x10b)]['get'](_0xbda195['BmtPC'])||!![]);_0xbda195['PHGAI'](_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0xee)],null)&&!helper[_0x3a05b0(0xf7)](process[_0x3a05b0(0x142)][_0x3a05b0(0xca)])&&(process[_0x3a05b0(0x142)][_0x3a05b0(0xca)]=process['env'][_0x3a05b0(0xca)]||_0x2e6099['config'][_0x3a05b0(0xee)]);const _0x1bf065=!helper[_0x3a05b0(0x157)](process['env'][_0x3a05b0(0xca)]);let _0x3caeeb=![];_0x2e6099['config'][_0x3a05b0(0x13b)]&&(_0x3caeeb=!![],process[_0x3a05b0(0x142)][_0x3a05b0(0x11f)]=_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0x13b)]);_0x2e6099['config'][_0x3a05b0(0x125)]&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x3a05b0(0x126)](_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0x125)]));const _0x216d56=_0x3e1273[_0x3a05b0(0x11c)](),_0x3581af=await _0xbda195[_0x3a05b0(0x112)](getUserPlaywrightConfig,_0x422d83,_0x3e1273);if(helper[_0x3a05b0(0x128)](_0x3581af)){_0xbda195[_0x3a05b0(0x14a)](spawnOriginalProcess,_0x216d56);return;}const _0x37f791=_0x3581af[_0x3a05b0(0x137)]?path[_0x3a05b0(0xd3)](_0x3581af[_0x3a05b0(0x137)]):process[_0x3a05b0(0xcc)]();process['env'][_0x3a05b0(0xd9)]=_0x37f791,await TestHubHandler[_0x3a05b0(0x139)](FRAMEWORKS[_0x3a05b0(0x13f)],_0x2e6099);_0x1bf065&&_0xbda195[_0x3a05b0(0x14a)](handleO11yRerun,_0x3e1273);let _0x201a38=_0xbda195['bdjHa'](process[_0x3a05b0(0x142)][_0x3a05b0(0x11f)],_0xbda195[_0x3a05b0(0x10d)]);_0x201a38=_0x201a38||_0xbda195['wSzDG'](checkAccessibilityPlatformConfig,_0x2e6099[_0x3a05b0(0xe8)]),process[_0x3a05b0(0x142)][_0x3a05b0(0x11f)]=_0x201a38;_0x201a38&&_0xbda195[_0x3a05b0(0xf4)](setAccessibilityCapabilities,_0x2e6099[_0x3a05b0(0xe8)]);const _0x28a224=path[_0x3a05b0(0xfb)](_0x3581af[_0x3a05b0(0x137)]?path[_0x3a05b0(0xd3)](_0x3581af[_0x3a05b0(0x137)]):process[_0x3a05b0(0xcc)](),_0xbda195[_0x3a05b0(0x113)]);fs[_0x3a05b0(0x12b)](_0x28a224,helper['serializeToYamlString'](_0x2e6099[_0x3a05b0(0xe8)])),process['env'][_0x3a05b0(0xed)]=_0x28a224,helper[_0x3a05b0(0xf8)]();let _0x11bd93='';_0xbda195[_0x3a05b0(0xce)](helper[_0x3a05b0(0xf2)](),constants[_0x3a05b0(0x14f)][_0x3a05b0(0xc9)])?_0x11bd93=_0xbda195[_0x3a05b0(0x108)]:_0x11bd93=_0xbda195[_0x3a05b0(0x150)];let _0x2e5f49='';if(helper['isTypescriptProject'](_0x3581af[_0x3a05b0(0x137)])){_0x2e5f49=_0x3a05b0(0xf5);const _0x41fe54=_0x11bd93[_0x3a05b0(0x146)]('.');_0x41fe54[_0xbda195[_0x3a05b0(0xe2)](_0x41fe54[_0x3a05b0(0x133)],0x1)]='ts',_0x11bd93=_0x41fe54[_0x3a05b0(0xfb)]('.'),logger[_0x3a05b0(0xde)](_0xbda195[_0x3a05b0(0x12e)](_0xbda195[_0x3a05b0(0xd8)],_0x11bd93));}else _0x2e5f49='\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 _0x371208=path[_0x3a05b0(0xfb)](_0x3581af['path']?path[_0x3a05b0(0xd3)](_0x3581af['path']):process['cwd'](),_0x11bd93);let _0x563d2b=_0x3581af[_0x3a05b0(0x137)]?_0x3581af['path']:'';_0x563d2b=_0xbda195[_0x3a05b0(0x15f)](_0x563d2b[_0x3a05b0(0x133)],0x0)?path[_0x3a05b0(0xeb)](_0x563d2b):'',process[_0x3a05b0(0x142)][_0x3a05b0(0x155)]=_0x563d2b;const _0x42c7ff=helper[_0x3a05b0(0x11e)](_0x2e6099[_0x3a05b0(0xe8)]);_0x42c7ff&&(_0x2e5f49=_0xbda195[_0x3a05b0(0xf1)](_0x3a05b0(0x12c)+_0x42c7ff+_0x3a05b0(0x10a),_0x2e5f49));helper['filterBrowserstackConfig']({},_0x3e1273),fs[_0x3a05b0(0x12b)](_0x371208,_0x2e5f49),helper[_0x3a05b0(0x118)]();const _0x265451=_0xbda195[_0x3a05b0(0xea)](spawn,_0xbda195[_0x3a05b0(0xd6)],[_0xbda195[_0x3a05b0(0x158)],_0xbda195['gxjTj'],_0xbda195['xQTZB'],_0x371208,..._0x3e1273[_0x3a05b0(0x13c)](0x2)],{'shell':_0xbda195[_0x3a05b0(0x105)](process[_0x3a05b0(0x10f)],_0xbda195[_0x3a05b0(0xdc)]),'stdio':_0xbda195[_0x3a05b0(0x11b)],'cwd':process['cwd'](),'env':Object['assign']({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x3a05b0(0x13d)](_0x422d83),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0x102)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0x102)][_0x3a05b0(0xd4)],'BROWSERSTACK_LOG_LEVEL':_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0xf3)]})}),_0x18227c=()=>{const _0x422ce1=_0x3a05b0;try{const _0x11587d=path[_0x422ce1(0xfb)](helper[_0x422ce1(0x138)](),_0xbda195[_0x422ce1(0xef)],_0xbda195[_0x422ce1(0x13a)]);if(fs[_0x422ce1(0xda)](_0x11587d)){let _0x52fa18=fs['readFileSync'](_0x11587d);_0x52fa18=JSON[_0x422ce1(0x10e)](_0x52fa18),_0x2e6099[_0x422ce1(0xf9)]=_0x52fa18,fs[_0x422ce1(0x136)](_0x11587d);}}catch(_0x2bf2ff){logger['debug'](_0xbda195[_0x422ce1(0x121)](_0xbda195[_0x422ce1(0xe5)],_0x2bf2ff));}};_0x265451['on'](_0xbda195[_0x3a05b0(0xd2)],async _0x4ee733=>{const _0x22b68f=_0x3a05b0;try{const _0x48729d=_0xbda195['hcXNH']['split']('|');let _0x381905=0x0;while(!![]){switch(_0x48729d[_0x381905++]){case'0':process['exitCode']=_0x4ee733;continue;case'1':logger['debug'](_0x22b68f(0xdf)+_0x4ee733);continue;case'2':fs[_0x22b68f(0x136)](_0x371208);continue;case'3':logger[_0x22b68f(0xdb)]('Deleting\x20'+_0x371208);continue;case'4':await TestHubHandler[_0x22b68f(0x151)]();continue;case'5':logger[_0x22b68f(0xde)](_0x22b68f(0x132)+_0x28a224);continue;case'6':fs[_0x22b68f(0x136)](_0x28a224);continue;case'7':await helper[_0x22b68f(0xf6)](_0x2e6099);continue;case'8':_0xbda195[_0x22b68f(0xfc)](_0x18227c);continue;}break;}}catch(_0x1b4aa0){logger[_0x22b68f(0xde)](_0xbda195[_0x22b68f(0x121)](_0xbda195[_0x22b68f(0x123)],_0x1b4aa0));}});}function a35_0x1c70(){const _0x237955=['true','cwd','child_process','MDLbG','uZRNL','playwright','3287112EFyJTU','FcnxD','dirname','skipSessionName','automation','tuZoM','playwright-browserstack-sdk.config.cjs','VVJoF','BROWSERSTACK_PW_CONFIG_DIR','existsSync','info','lYcVq','indexOf','debug','Playwright\x20process\x20exited\x20with\x20code\x20','hngGl','ERIxt','EChvK','findIndex','uJrSS','QyZVX','../../helpers/test-observability/constants','filter','config','includes','mjoyJ','resolve','apply','BROWSERSTACK_SETUP_CONFIG_PATH','testObservability','GSDPu','--config=','FAMEO','getPackageType','logLevel','wSzDG','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','finalExecution','isTrue','clearTempPWConfig','errorMessage','test','join','ptlap','../../helpers/accessibility-automation/helper','3490428YGfOrq','sjkAo','27248880aucxWe','false','testContextOptions','splice','hARAy','bdjHa','773896XdCgre','../../helpers/testhub/utils','YMbvq','--grep','\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();','cliConfig','trim','eezLR','parse','platform','win32','zEMNh','yEXzl','cJaRm','8|4|7|0|1|3|2|5|6','45545wFksRM','BROWSERSTACK_RERUN_TESTS','BmtPC','markSDKSetupComplete','2tluwbD','Error\x20in\x20deleting\x20playwright\x20results','RTaRF','concat','argv','getProxyUrl','BROWSERSTACK_TEST_ACCESSIBILITY_YML','pmfcX','UfOua','startsWith','BSFGv','cGdkb','accessibilityOptions','stringify','exports','isUndefined','has','eTdLa','writeFileSync','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','playwright-browserstack-sdk.config.js','aKQZO','VNKHG','resolvedConfigFile','4274091lhPoBe','Deleting\x20','length','nestedKeyValue','44JKnLDA','unlinkSync','path','homedir','launchBuild','Ajbvn','accessibility','slice','getConfigPath','HZsPq','PLAYWRIGHT','--disable-browserstack-automation','BROWSERSTACK_AUTOMATION','env','null','../../helpers/test-observability/error-handler','BROWSERSTACK_RERUN','split','cRHOc','483637htoUUN','requirePWModule','ehltD','--config','../utils/constants','push','BrowserStack\x20config\x20file\x20not\x20found.','PACKAGE_TYPE','bLHEa','stop','./reporter/pwUtils','bgiss','npx','USER_CONFIG_DETAILS_PATH','initialize','isFalse','KKEua','OoOxN','browserstackSetupConfig.json','30LYOLXj','AIWgA','--disable-test-observability','nEqLy','YMECf','ViZHJ','MODULE','BROWSERSTACK_TEST_OBSERVABILITY'];a35_0x1c70=function(){return _0x237955;};return a35_0x1c70();}module[a35_0x449f89(0x127)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x50a9f5=a36_0x48f6;function a36_0x1419(){const _0x40d1ab=['3130191mptHfn','requirePWModule','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','19181060CzGRVC','747944frXzlv','efAwK','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','includes','Running\x20existing\x20global\x20setup','MQmVC','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','100JeutzA','child_process','winstonLogger','util','KGeKe','Call\x20to\x20child\x20fork\x20with\x20args\x20','1.33.0','16MbhQlE','JLqmX','738183qHlgXg','MLzMt','2416281txwgED','apply','./patches','fork','70680vdqfdx','env','vTCZr','918720vMBDGy','format','isHandlePWErrorSet','../../helpers/test-observability/constants','resolve','compareVersions','./mock-process.js','Not\x20able\x20to\x20import\x20globalSetup','../../helpers/helper','OGuxi','toString','../../helpers/logger','function','2FfZpHz'];a36_0x1419=function(){return _0x40d1ab;};return a36_0x1419();}function a36_0x48f6(_0x42762e,_0x27f11e){const _0x14199d=a36_0x1419();return a36_0x48f6=function(_0x48f6e1,_0x2944dd){_0x48f6e1=_0x48f6e1-0xf1;let _0x34bf8b=_0x14199d[_0x48f6e1];return _0x34bf8b;},a36_0x48f6(_0x42762e,_0x27f11e);}(function(_0x22ed3a,_0x5130c9){const _0xa7a651=a36_0x48f6,_0x2fe7bc=_0x22ed3a();while(!![]){try{const _0x1866c4=parseInt(_0xa7a651(0x10b))/0x1*(-parseInt(_0xa7a651(0x110))/0x2)+-parseInt(_0xa7a651(0xf5))/0x3+-parseInt(_0xa7a651(0xfb))/0x4*(-parseInt(_0xa7a651(0x117))/0x5)+parseInt(_0xa7a651(0xfe))/0x6+-parseInt(_0xa7a651(0xf7))/0x7+-parseInt(_0xa7a651(0xf3))/0x8*(parseInt(_0xa7a651(0x10c))/0x9)+parseInt(_0xa7a651(0x10f))/0xa;if(_0x1866c4===_0x5130c9)break;else _0x2fe7bc['push'](_0x2fe7bc['shift']());}catch(_0x2e60c4){_0x2fe7bc['push'](_0x2fe7bc['shift']());}}}(a36_0x1419,0x5f2d0));const util=require(a36_0x50a9f5(0x11a)),child_process=require(a36_0x50a9f5(0x118)),{FRAMEWORKS}=require(a36_0x50a9f5(0x101)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a36_0x50a9f5(0x106)),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a36_0x50a9f5(0xf9)),logger=require(a36_0x50a9f5(0x109))[a36_0x50a9f5(0x119)];module['exports']=async function(_0x54bc44){const _0x139d1f=a36_0x50a9f5,_0x4a3977={'vyCXd':function(_0x5b19f7,_0x3966eb){return _0x5b19f7(_0x3966eb);},'OGuxi':function(_0xfe4d7b){return _0xfe4d7b();},'KGeKe':_0x139d1f(0x104),'ukKLC':function(_0xe9374d,_0x2b365a){return _0xe9374d(_0x2b365a);},'nBPnQ':_0x139d1f(0x114),'JLqmX':function(_0x120488,_0x523c75){return _0x120488(_0x523c75);},'rwojM':function(_0x1ab4e6,_0x38f1c0){return _0x1ab4e6>=_0x38f1c0;},'MQmVC':_0x139d1f(0xf2),'efAwK':function(_0x1d408a,_0x2c10a7,_0x2d4b2d){return _0x1d408a(_0x2c10a7,_0x2d4b2d);},'MLzMt':function(_0x40a05f,_0x31f212){return _0x40a05f!==_0x31f212;},'vTCZr':_0x139d1f(0x10a),'Xlpow':_0x139d1f(0x105),'bgEZo':function(_0x1968bb,_0x3a45af){return _0x1968bb(_0x3a45af);}},_0x21d4f4=child_process[_0x139d1f(0xfa)];if(helper[_0x139d1f(0x100)]())try{_0x4a3977[_0x139d1f(0x107)](mockIsWorkerRedundant);}catch(_0xda5338){logger['debug'](_0x139d1f(0x116)+util[_0x139d1f(0xff)](_0xda5338));}child_process['fork']=function(){const _0x5a4878=_0x139d1f;return _0x4a3977['vyCXd'](debug,_0x5a4878(0xf1)+arguments[0x0]),arguments[0x0][_0x5a4878(0x113)](_0x4a3977['OGuxi'](getForkProcessPath))?arguments[0x0]=require[_0x5a4878(0x102)](_0x4a3977[_0x5a4878(0x11b)]):logger['error']('Path\x20'+_0x4a3977['OGuxi'](getForkProcessPath)+'\x20is\x20not\x20found'),_0x21d4f4[_0x5a4878(0xf8)](null,arguments);};if(process[_0x139d1f(0xfc)][_0x139d1f(0x112)]){_0x4a3977['ukKLC'](debug,_0x4a3977['nBPnQ']);try{const {loadGlobalHook:_0x346f0a}=helper[_0x139d1f(0x10d)][_0x139d1f(0xf8)](null,_0x4a3977['OGuxi'](getLoadUtilsPath)),_0x19969b=_0x4a3977[_0x139d1f(0xf4)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x57e32a=_0x54bc44;if(_0x4a3977['rwojM'](helper[_0x139d1f(0x103)](_0x19969b,_0x4a3977[_0x139d1f(0x115)]),0x0)){const _0x4da1c1={};_0x4da1c1['config']=_0x54bc44,_0x57e32a=_0x4da1c1;}const _0x3a59a5=await _0x4a3977[_0x139d1f(0x111)](_0x346f0a,_0x57e32a,process['env'][_0x139d1f(0x112)]);if(_0x4a3977[_0x139d1f(0xf6)](typeof _0x3a59a5,_0x4a3977[_0x139d1f(0xfd)]))throw new Error(_0x4a3977['Xlpow']);return _0x3a59a5[_0x139d1f(0xf8)](null,arguments);}catch(_0x45e1ed){_0x4a3977['bgEZo'](debug,_0x139d1f(0x10e)+_0x45e1ed[_0x139d1f(0x108)]());}}};
|