browserstack-node-sdk 1.53.5 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +4 -3
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.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.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.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/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.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/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.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/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.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/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.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/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.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/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38_0xed53c8=a38_0x3bf9;function a38_0x3bf9(_0x4cebc2,_0x3b92dd){const _0x2da270=a38_0x2da2();return a38_0x3bf9=function(_0x3bf9a0,_0x419266){_0x3bf9a0=_0x3bf9a0-0x68;let _0x5427dd=_0x2da270[_0x3bf9a0];return _0x5427dd;},a38_0x3bf9(_0x4cebc2,_0x3b92dd);}(function(_0x5f9b53,_0x332fa2){const _0x1fda13=a38_0x3bf9,_0x1baea8=_0x5f9b53();while(!![]){try{const _0x51e76e=-parseInt(_0x1fda13(0x79))/0x1+parseInt(_0x1fda13(0xa2))/0x2+parseInt(_0x1fda13(0xeb))/0x3*(parseInt(_0x1fda13(0x99))/0x4)+parseInt(_0x1fda13(0xef))/0x5*(-parseInt(_0x1fda13(0xb1))/0x6)+-parseInt(_0x1fda13(0x7f))/0x7*(-parseInt(_0x1fda13(0x8e))/0x8)+parseInt(_0x1fda13(0xf3))/0x9*(parseInt(_0x1fda13(0xd7))/0xa)+-parseInt(_0x1fda13(0x95))/0xb;if(_0x51e76e===_0x332fa2)break;else _0x1baea8['push'](_0x1baea8['shift']());}catch(_0xaf3889){_0x1baea8['push'](_0x1baea8['shift']());}}}(a38_0x2da2,0x9b2c7));const util=require(a38_0xed53c8(0x9e)),logger=require('../../helpers/logger')[a38_0xed53c8(0xb9)],{automationLogger}=require(a38_0xed53c8(0x84)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require(a38_0xed53c8(0xb2)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0xed53c8(0xd5)),accessibilityHelper=require('../../helpers/accessibility-automation/helper'),{AUTOMATION_LOG_COMMANDS}=require(a38_0xed53c8(0x6e));function a38_0x2da2(){const _0x408852=['bestPractice','replace','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','8944BrAaRR','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','ZfkRa','qgFrh','pyiJN','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','wFGYU','11112321URJaLN','getMinVersionForBrowser','CFRTh','workerInfo','16VAQqfi','PRfaW','Performing\x20scan\x20with\x20method:\x20','platformValidation','GgFQs','util','accessibilityOptions','isMobileScanningEnabledForGroup','NrRJB','1829652zoRwSK','deviceName','error','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','OtbKE','env','(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','bstackSdkArgs','][\x20SDK-AUTOMATION\x20]\x20','ijjvk','connectOptions','rkQRU','keys','kPHgs','(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','4566rXSnwO','../../helpers/accessibility-automation/scripts','performScan','accessibilityOptions.authToken','bHZWD','GPhMo','accessibilityOptions.scannerVersion','latest','winstonLogger','measureWrapper','\x20browser\x20version\x20','TxBSu','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','bIOLS','PERFORM_SCAN','isMobilePlatform','MOBILE_SCANNING_DISABLED_WARNING','find','browserStackEvaluate','PfyMJ','accessibilityPlatform','stringify','chromium','ubKwL','accessibilityOptions.scannerProcessingTimeout','forEach','project','getAccessibilityResults','debug','assign','browserstack.accessibility','testInfo','No\x20accessibility\x20results\x20were\x20found.','scannerProcessingTimeout','BS_A11Y_JWT','name','../../helpers/performance/constants','accessibilityOptions.includeIssueType.needsReview','2739130ofQcKl','No\x20summaryResults\x20found.','ULiEx','KdKPM','format','browserName','on\x20non-BrowserStack\x20infrastructure\x20','wsEndpoint','parameters','includePartOfPageScope','xhTBm','response','SFTNK','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','ipfzA','needsReview','use','currentTest','Dxjqw','fiiZw','239964vNZrWD','accessibilityOptions.includeIssueType.bestPractice','getBrowserDisplayName','GwpOB','6645GbchKd','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','command','chrome','18viKxsn','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','pCCQq','startsWith','__workerDetails','LguJz','wcagVersion','warn','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','../utils/constants','parse','vlZkw','request','android','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','toLowerCase','body','browserstack.accessibilityOptions','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','Eewil','216601ropcxL','RUuRf','browser','browser_version','includeIssueType','isBrowserSupportedForAccessibility','6832IEqAco','LgjyW','constructor','scannerVersion','JIaIA','../../helpers/logger','processAccessibilityCaps','\x20or\x20higher\x20','Mekuo','isVersionSupported','FYdDG','lyKJi'];a38_0x2da2=function(){return _0x408852;};return a38_0x2da2();}exports[a38_0xed53c8(0xc3)]=async(_0x4c96d3,_0x3d68a5,_0x591b1d={})=>{const _0x40427f=a38_0xed53c8,_0x41f54d={};_0x41f54d[_0x40427f(0x9d)]='bstackSdkArgs',_0x41f54d[_0x40427f(0xb6)]=function(_0x3b4131,_0x526981){return _0x3b4131===_0x526981;},_0x41f54d[_0x40427f(0x89)]='string';const _0x510d64=_0x41f54d,_0xfae5b5=await _0x4c96d3['evaluate'](_0x40427f(0xb0)+_0x3d68a5['replace'](/arguments/g,_0x510d64['GgFQs'])+_0x40427f(0xa5)+JSON['stringify'](_0x591b1d)+')');try{if(_0x3d68a5&&_0x510d64[_0x40427f(0xb6)](typeof _0x3d68a5,_0x510d64[_0x40427f(0x89)])){const _0x546ded=AUTOMATION_LOG_COMMANDS[_0x40427f(0xc2)](_0x4faa0c=>_0x3d68a5['includes'](_0x4faa0c));if(_0x546ded){const _0x439a5c={};_0x439a5c[_0x40427f(0xf1)]=_0x546ded,_0x439a5c[_0x40427f(0xdf)]=[_0x591b1d];const _0x706d44={};_0x706d44[_0x40427f(0x75)]=_0xfae5b5;const _0x13ccf8={};_0x13ccf8[_0x40427f(0x71)]=_0x439a5c,_0x13ccf8[_0x40427f(0xe2)]=_0x706d44,automationLogger['silly']('['+new Date()['toISOString']()+_0x40427f(0xaa)+JSON[_0x40427f(0xc6)](_0x13ccf8));}}}catch(_0x5e464e){logger[_0x40427f(0xcd)]('[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'+_0x5e464e['message']);}return _0xfae5b5;},exports['browserStackExecuteDriver']=async(_0x273ae6,_0x860a3f,_0x1c11e6={})=>{const _0x1e4ad4=a38_0xed53c8,_0x1e5558={};_0x1e5558[_0x1e4ad4(0xda)]=function(_0x21777e,_0x9e990d){return _0x21777e===_0x9e990d;},_0x1e5558[_0x1e4ad4(0xa6)]='WebDriver',_0x1e5558[_0x1e4ad4(0x92)]=function(_0x256f4f,_0x45a7df){return _0x256f4f===_0x45a7df;},_0x1e5558[_0x1e4ad4(0xc4)]='Playwright',_0x1e5558[_0x1e4ad4(0x78)]=_0x1e4ad4(0xa9);const _0x39f7e0=_0x1e5558;if(_0x39f7e0[_0x1e4ad4(0xda)](_0x273ae6[_0x1e4ad4(0x81)]['name'],_0x39f7e0[_0x1e4ad4(0xa6)]))return await _0x273ae6['executeAsyncScript'](_0x860a3f,_0x1c11e6);else{if(_0x39f7e0[_0x1e4ad4(0x92)](_0x273ae6[_0x1e4ad4(0x81)][_0x1e4ad4(0xd4)],_0x39f7e0[_0x1e4ad4(0xc4)]))return await _0x273ae6['executeScript'](_0x1e4ad4(0xa8)+_0x860a3f[_0x1e4ad4(0x8c)](/arguments/g,_0x39f7e0[_0x1e4ad4(0x78)])+_0x1e4ad4(0xf0)+JSON[_0x1e4ad4(0xc6)](_0x1c11e6)+')');}},exports['setAccessibilityCapabilities']=async _0x23b5f7=>{const _0x548f79=a38_0xed53c8,_0x33d2f0={};_0x33d2f0[_0x548f79(0xe3)]='accessibilityOptions.wcagVersion',_0x33d2f0[_0x548f79(0xe9)]=_0x548f79(0xc9),_0x33d2f0[_0x548f79(0x90)]=_0x548f79(0xec),_0x33d2f0['ijjvk']=_0x548f79(0xd6),_0x33d2f0['wFGYU']=_0x548f79(0xb4),_0x33d2f0[_0x548f79(0xa1)]=_0x548f79(0xb7);const _0x412fcd=_0x33d2f0;_0x23b5f7[_0x548f79(0x9f)]&&(_0x23b5f7[_0x548f79(0x9f)]['wcagVersion']&&(_0x23b5f7[_0x412fcd[_0x548f79(0xe3)]]=_0x23b5f7[_0x548f79(0x9f)][_0x548f79(0x6b)]),_0x23b5f7[_0x548f79(0x9f)][_0x548f79(0xd2)]&&(_0x23b5f7[_0x412fcd[_0x548f79(0xe9)]]=_0x23b5f7[_0x548f79(0x9f)][_0x548f79(0xd2)]),_0x23b5f7[_0x548f79(0x9f)][_0x548f79(0x7d)]&&(_0x23b5f7[_0x412fcd[_0x548f79(0x90)]]=_0x23b5f7['accessibilityOptions'][_0x548f79(0x7d)][_0x548f79(0x8b)],_0x23b5f7[_0x412fcd[_0x548f79(0xab)]]=_0x23b5f7['accessibilityOptions']['includeIssueType'][_0x548f79(0xe6)]));const _0x3da285=JSON[_0x548f79(0x6f)](process[_0x548f79(0xa7)][_0x548f79(0xbd)])[_0x548f79(0x82)];_0x23b5f7[_0x412fcd[_0x548f79(0x94)]]=process['env'][_0x548f79(0xd3)],_0x23b5f7[_0x412fcd[_0x548f79(0xa1)]]=_0x3da285,delete _0x23b5f7[_0x548f79(0x9f)];},exports[a38_0xed53c8(0xcc)]=async _0x40640b=>{const _0x33845f=a38_0xed53c8,_0x374916={};_0x374916[_0x33845f(0xe1)]=_0x33845f(0xd1),_0x374916[_0x33845f(0x70)]=_0x33845f(0x77);const _0x1db6d1=_0x374916;if(global[_0x33845f(0xc5)])try{const details={'url':await _0x40640b.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x40640b,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x40640b,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x33845f(0xa4)](_0x1db6d1[_0x33845f(0xe1)]),[];}else return logger[_0x33845f(0x6c)](_0x1db6d1[_0x33845f(0x70)]),[];},exports['performScan']=async(_0x13f2d1,_0x37b2a3='',_0x1b371c={},_0xfcfe7c={})=>{const _0x2a519d=a38_0xed53c8;logger['debug'](_0x2a519d(0x9b)+_0x37b2a3+'\x20page:\x20'+_0x13f2d1);const _0x5b66bd={'url':await _0x13f2d1['url'](),'testhub_btcer_uuid':global[_0x2a519d(0x69)]?.[_0x2a519d(0xe8)]?.['id']};if(global[_0x2a519d(0xc5)])return await PerformanceTester[_0x2a519d(0xba)](PerformanceA11yEvents[_0x2a519d(0xbf)],async()=>{const _0x17d2a5=_0x2a519d,_0x11072f={};_0x11072f[_0x17d2a5(0xf1)]=_0x37b2a3;const _0x4d6189=_0x11072f;_0x1b371c&&_0x1b371c[_0x17d2a5(0xe0)]&&(_0x4d6189[_0x17d2a5(0xe0)]=_0x1b371c[_0x17d2a5(0xe0)]);Object[_0x17d2a5(0xce)](_0x4d6189,_0xfcfe7c);const _0x72ee35=await exports[_0x17d2a5(0xc3)](_0x13f2d1,scripts[_0x17d2a5(0xb3)],_0x4d6189);return _0x72ee35;},{'command':_0x37b2a3,..._0x5b66bd})();},exports['getAccessibilityResultsSummary']=async _0x4eb897=>{const _0x46f3ee=a38_0xed53c8,_0x49f158={};_0x49f158[_0x46f3ee(0xea)]=_0x46f3ee(0xd8),_0x49f158[_0x46f3ee(0xad)]=_0x46f3ee(0x93);const _0x238eda=_0x49f158;if(global[_0x46f3ee(0xc5)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4eb897,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x4eb897,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x46f3ee(0xcd)](_0x238eda[_0x46f3ee(0xea)]),{};}else return logger[_0x46f3ee(0x6c)](_0x238eda[_0x46f3ee(0xad)]),{};},exports[a38_0xed53c8(0x9c)]=_0x2fcfe2=>{const _0x1468fe=a38_0xed53c8,_0x3c6dc4={'LguJz':_0x1468fe(0x8f),'bIOLS':_0x1468fe(0x6d),'RUuRf':function(_0x2e6583,_0x218d4d){return _0x2e6583!==_0x218d4d;},'ohXjf':_0x1468fe(0xb8),'bHZWD':function(_0x10243b){return _0x10243b();},'ULiEx':_0x1468fe(0xdd)};try{if(global[_0x1468fe(0xc0)])return logger[_0x1468fe(0xcd)](_0x3c6dc4[_0x1468fe(0x6a)]),!![];const _0x496782=_0x2fcfe2[_0x1468fe(0x7b)],_0x30cceb=_0x2fcfe2[_0x1468fe(0x7c)];if(!accessibilityHelper[_0x1468fe(0x7e)](_0x496782))return logger[_0x1468fe(0x6c)](_0x3c6dc4[_0x1468fe(0xbe)]),![];if(_0x3c6dc4[_0x1468fe(0x7a)](_0x30cceb,_0x3c6dc4['ohXjf'])){const _0x3e5cbc=_0x3c6dc4[_0x1468fe(0xb5)](isBrowserstackInfra),_0x27ca2c=accessibilityHelper[_0x1468fe(0x96)](_0x496782,_0x3e5cbc),_0x3fd8a9=accessibilityHelper[_0x1468fe(0xed)](_0x496782);if(!accessibilityHelper[_0x1468fe(0x88)](_0x30cceb,_0x27ca2c)){const _0x3d3b75=_0x3e5cbc?'':_0x3c6dc4[_0x1468fe(0xd9)];return logger[_0x1468fe(0x6c)](_0x1468fe(0x73)+_0x3fd8a9+_0x1468fe(0xbb)+_0x27ca2c+_0x1468fe(0x86)+_0x3d3b75+'.'),![];}}}catch(_0x371588){logger[_0x1468fe(0xcd)](_0x1468fe(0xf4)+util[_0x1468fe(0xdb)](_0x371588));}return!![];},exports[a38_0xed53c8(0x85)]=(_0x5e7002,_0x415972,_0x1ea040)=>{const _0x211bd2=a38_0xed53c8,_0x1672f9={'TxBSu':_0x211bd2(0x76),'XUaWc':function(_0x78a42a){return _0x78a42a();},'JIaIA':_0x211bd2(0xcf),'kPHgs':_0x211bd2(0x6d),'zhTox':function(_0x4b93c4,_0x2bc07f){return _0x4b93c4!==_0x2bc07f;},'ipfzA':_0x211bd2(0xb8),'ubKwL':function(_0x3a902b){return _0x3a902b();},'LgjyW':'on\x20non-BrowserStack\x20infrastructure\x20','CFRTh':function(_0x39289b,_0x31ad22){return _0x39289b(_0x31ad22);},'PRfaW':function(_0x343256,_0x1c83d1){return _0x343256===_0x1c83d1;},'GwpOB':_0x211bd2(0x72),'qgFrh':_0x211bd2(0xf2),'iwasE':'playwright-chromium','Mekuo':_0x211bd2(0xc7),'lyKJi':_0x211bd2(0x8d),'pCCQq':function(_0x28fcba,_0x4db22f){return _0x28fcba+_0x4db22f;}};try{if(_0x1672f9['XUaWc'](isAccessibilityAutomationSession)){global[_0x211bd2(0xc5)]=!![];!_0x5e7002[_0x1672f9[_0x211bd2(0x83)]]&&(global[_0x211bd2(0xc5)]=![]);const _0x4b5885=_0x5e7002[_0x211bd2(0xdc)]||_0x5e7002['browser'],_0x2e22c4=_0x5e7002[_0x211bd2(0x7c)];!accessibilityHelper[_0x211bd2(0x7e)](_0x4b5885)&&(logger['warn'](_0x1672f9[_0x211bd2(0xaf)]),global[_0x211bd2(0xc5)]=![]);if(_0x1672f9['zhTox'](_0x2e22c4,_0x1672f9[_0x211bd2(0xe5)])){const _0x15275d=_0x1672f9[_0x211bd2(0xc8)](isBrowserstackInfra),_0x14da9b=accessibilityHelper[_0x211bd2(0x96)](_0x4b5885,_0x15275d),_0x1ff13c=accessibilityHelper[_0x211bd2(0xed)](_0x4b5885);if(!accessibilityHelper['isVersionSupported'](_0x2e22c4,_0x14da9b)){const _0x54c65e=_0x15275d?'':_0x1672f9[_0x211bd2(0x80)];logger['warn'](_0x211bd2(0x73)+_0x1ff13c+_0x211bd2(0xbb)+_0x14da9b+_0x211bd2(0x86)+_0x54c65e+'.'),global[_0x211bd2(0xc5)]=![];}}if(!_0x1672f9[_0x211bd2(0x97)](isUndefined,_0x5e7002[_0x211bd2(0xa3)])){const _0x207799=(_0x5e7002['os']||'')[_0x211bd2(0x74)](),_0x39dc58=(_0x5e7002['browserName']||_0x5e7002[_0x211bd2(0x7b)]||'')['toLowerCase'](),_0x2b40ad=_0x1672f9[_0x211bd2(0x9a)](_0x207799,_0x1672f9[_0x211bd2(0xee)])&&[_0x1672f9[_0x211bd2(0x91)],_0x1672f9['iwasE'],_0x1672f9[_0x211bd2(0x87)]]['includes'](_0x39dc58);if(!_0x2b40ad)logger['warn'](_0x1672f9[_0x211bd2(0x8a)]),global[_0x211bd2(0xc5)]=![];else!accessibilityHelper[_0x211bd2(0xa0)]()&&(logger[_0x211bd2(0x6c)](accessibilityHelper[_0x211bd2(0xc1)]),global[_0x211bd2(0xc5)]=![]);}if(!global[_0x211bd2(0xc5)]){_0x5e7002[_0x1672f9[_0x211bd2(0x83)]]=![],Object[_0x211bd2(0xae)](_0x5e7002)[_0x211bd2(0xca)](_0x4a3bff=>{const _0x5e29ad=_0x211bd2;_0x4a3bff[_0x5e29ad(0x68)](_0x1672f9[_0x5e29ad(0xbc)])&&delete _0x5e7002[_0x4a3bff];});const _0x2f57e2=_0x1672f9[_0x211bd2(0xf5)](_0x415972,_0x1672f9[_0x211bd2(0x97)](encodeURIComponent,JSON[_0x211bd2(0xc6)](_0x5e7002)));_0x1ea040&&(_0x1ea040[_0x211bd2(0xe8)][_0x211bd2(0xd0)][_0x211bd2(0xcb)][_0x211bd2(0xe7)][_0x211bd2(0xac)][_0x211bd2(0xde)]=_0x2f57e2,_0x1ea040[_0x211bd2(0x98)]['project'][_0x211bd2(0xe7)]['connectOptions'][_0x211bd2(0xde)]=_0x2f57e2);}}else global[_0x211bd2(0xc5)]=![];}catch(_0x3388a3){logger[_0x211bd2(0xcd)](_0x211bd2(0xe4)+util[_0x211bd2(0xdb)](_0x3388a3));}};
|
|
1
|
+
function a38_0x4d49(_0x2fa6f1,_0x4ef2ce){const _0xf62578=a38_0xf625();return a38_0x4d49=function(_0x4d4974,_0x539f54){_0x4d4974=_0x4d4974-0x1a0;let _0x42c17c=_0xf62578[_0x4d4974];return _0x42c17c;},a38_0x4d49(_0x2fa6f1,_0x4ef2ce);}const a38_0x5a5fc1=a38_0x4d49;function a38_0xf625(){const _0x32893a=['browserStackExecuteDriver','Performing\x20scan\x20with\x20method:\x20','getAccessibilityResultsSummary','Desiu','browserName','Nzaxq','scannerVersion','ZRtCs','chrome','../../helpers/performance/constants','accessibilityOptions.wcagVersion','find','sEDnT','workerInfo','bstackSdkArgs','startsWith','winstonLogger','deviceName','playwright-chromium','849288bTHQeR','909682dRCrvD','parse','debug','isMobileScanningEnabledForGroup','accessibilityOptions.authToken','executeScript','WebDriver','][\x20SDK-AUTOMATION\x20]\x20','toISOString','16MOQARt','dBFxj','ymbgD','isBrowserSupportedForAccessibility','gdAfs','LGhaa','browserstack.accessibilityOptions','on\x20non-BrowserStack\x20infrastructure\x20','browser_version','cHubD','silly','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','SCTcP','295328DJoLFk','mFfyf','jAOxD','10UqAUOE','PERFORM_SCAN','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','replace','308833wRZHUo','No\x20summaryResults\x20found.','IZAQa','chromium','fqKHy','assign','testInfo','android','18816589ZIYeDR','connectOptions','hcbhg','format','toLowerCase','MOBILE_SCANNING_DISABLED_WARNING','Playwright','No\x20accessibility\x20results\x20were\x20found.','EhtwM','env','4186071IUUxUx','3dgkFUi','command','../../helpers/logger','getBrowserDisplayName','evaluate','mympV','AiyMp','cnGVT','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','585450QtIoIx','uxpxL','\x20browser\x20version\x20','accessibilityOptions','includePartOfPageScope','includes','getMinVersionForBrowser','BS_A11Y_JWT','currentTest','(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','YrFDB','util','../../helpers/helper','includeIssueType','eHVUJ','FytYI','VgGpI','(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','isVersionSupported','accessibilityOptions.includeIssueType.bestPractice','use','bbikJ','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','6wyCwFp','performScan','accessibilityOptions.scannerVersion','stringify','getAccessibilityResults','executeAsyncScript','latest','wcagVersion','hcjHr','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','constructor','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','scannerProcessingTimeout','message','browser','GftAp','YkFKU','platformValidation','forEach','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','yosHa','name','LgfBG','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','warn','bestPractice','response','parameters','error','../../helpers/accessibility-automation/helper','\x20or\x20higher\x20','nQSMI','accessibilityPlatform','../utils/constants','setAccessibilityCapabilities','request','project','VNsVL','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.'];a38_0xf625=function(){return _0x32893a;};return a38_0xf625();}(function(_0x3450f4,_0x465317){const _0x28b05e=a38_0x4d49,_0x5b23f3=_0x3450f4();while(!![]){try{const _0x5e6181=-parseInt(_0x28b05e(0x1da))/0x1+-parseInt(_0x28b05e(0x1db))/0x2*(parseInt(_0x28b05e(0x20b))/0x3)+parseInt(_0x28b05e(0x1e4))/0x4*(-parseInt(_0x28b05e(0x214))/0x5)+-parseInt(_0x28b05e(0x1a0))/0x6*(-parseInt(_0x28b05e(0x1f8))/0x7)+parseInt(_0x28b05e(0x1f1))/0x8+parseInt(_0x28b05e(0x20a))/0x9*(parseInt(_0x28b05e(0x1f4))/0xa)+parseInt(_0x28b05e(0x200))/0xb;if(_0x5e6181===_0x465317)break;else _0x5b23f3['push'](_0x5b23f3['shift']());}catch(_0x247ac3){_0x5b23f3['push'](_0x5b23f3['shift']());}}}(a38_0xf625,0x763a8));const util=require(a38_0x5a5fc1(0x21f)),logger=require(a38_0x5a5fc1(0x20d))[a38_0x5a5fc1(0x1d7)],{automationLogger}=require(a38_0x5a5fc1(0x20d)),{isAccessibilityAutomationSession}=require(a38_0x5a5fc1(0x1bd)),{isUndefined,isBrowserstackInfra}=require(a38_0x5a5fc1(0x220)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x5a5fc1(0x1d0)),accessibilityHelper=require(a38_0x5a5fc1(0x1bd)),{AUTOMATION_LOG_COMMANDS}=require(a38_0x5a5fc1(0x1c1));exports['browserStackEvaluate']=async(_0x639a6e,_0x152fba,_0x1ced7a={})=>{const _0x43ab47=a38_0x5a5fc1,_0x189258={};_0x189258['RTlwQ']=_0x43ab47(0x1d5),_0x189258['YmltT']=function(_0xa0860a,_0x4e0e32){return _0xa0860a===_0x4e0e32;},_0x189258[_0x43ab47(0x1cc)]='string';const _0x3c95ab=_0x189258,_0x3eb2ad=await _0x639a6e[_0x43ab47(0x20f)](_0x43ab47(0x21d)+_0x152fba[_0x43ab47(0x1f7)](/arguments/g,_0x3c95ab['RTlwQ'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x43ab47(0x1a3)](_0x1ced7a)+')');try{if(_0x152fba&&_0x3c95ab['YmltT'](typeof _0x152fba,_0x3c95ab[_0x43ab47(0x1cc)])){const _0x84d2b4=AUTOMATION_LOG_COMMANDS[_0x43ab47(0x1d2)](_0x3fa3e9=>_0x152fba[_0x43ab47(0x219)](_0x3fa3e9));if(_0x84d2b4){const _0x570f3a={};_0x570f3a['command']=_0x84d2b4,_0x570f3a[_0x43ab47(0x1bb)]=[_0x1ced7a];const _0x50ab6c={};_0x50ab6c['body']=_0x3eb2ad;const _0x407e4b={};_0x407e4b[_0x43ab47(0x1c3)]=_0x570f3a,_0x407e4b[_0x43ab47(0x1ba)]=_0x50ab6c,automationLogger[_0x43ab47(0x1ee)]('['+new Date()[_0x43ab47(0x1e3)]()+_0x43ab47(0x1e2)+JSON[_0x43ab47(0x1a3)](_0x407e4b));}}}catch(_0x3d3695){logger[_0x43ab47(0x1dd)](_0x43ab47(0x1b3)+_0x3d3695[_0x43ab47(0x1ad)]);}return _0x3eb2ad;},exports[a38_0x5a5fc1(0x1c7)]=async(_0x2aff7b,_0x2d8cb,_0x42c35a={})=>{const _0x25bd42=a38_0x5a5fc1,_0xfe607e={};_0xfe607e['mFfyf']=function(_0x6de26f,_0x5e8fc0){return _0x6de26f===_0x5e8fc0;},_0xfe607e['VgGpI']=_0x25bd42(0x1e1),_0xfe607e[_0x25bd42(0x223)]=_0x25bd42(0x206),_0xfe607e[_0x25bd42(0x1e8)]=_0x25bd42(0x1d5);const _0x3b7a8f=_0xfe607e;if(_0x3b7a8f[_0x25bd42(0x1f2)](_0x2aff7b[_0x25bd42(0x1aa)][_0x25bd42(0x1b5)],_0x3b7a8f[_0x25bd42(0x224)]))return await _0x2aff7b[_0x25bd42(0x1a5)](_0x2d8cb,_0x42c35a);else{if(_0x3b7a8f[_0x25bd42(0x1f2)](_0x2aff7b[_0x25bd42(0x1aa)][_0x25bd42(0x1b5)],_0x3b7a8f[_0x25bd42(0x223)]))return await _0x2aff7b[_0x25bd42(0x1e0)](_0x25bd42(0x225)+_0x2d8cb['replace'](/arguments/g,_0x3b7a8f['gdAfs'])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x25bd42(0x1a3)](_0x42c35a)+')');}},exports[a38_0x5a5fc1(0x1c2)]=async _0x3b6c86=>{const _0x204d86=a38_0x5a5fc1,_0x597845={};_0x597845['ZRtCs']=_0x204d86(0x1d1),_0x597845[_0x204d86(0x1a8)]='accessibilityOptions.scannerProcessingTimeout',_0x597845[_0x204d86(0x1b6)]=_0x204d86(0x227),_0x597845['sEDnT']='accessibilityOptions.includeIssueType.needsReview',_0x597845[_0x204d86(0x212)]=_0x204d86(0x1df),_0x597845[_0x204d86(0x1e5)]=_0x204d86(0x1a2);const _0x1acee4=_0x597845;_0x3b6c86['accessibilityOptions']&&(_0x3b6c86[_0x204d86(0x217)][_0x204d86(0x1a7)]&&(_0x3b6c86[_0x1acee4[_0x204d86(0x1ce)]]=_0x3b6c86[_0x204d86(0x217)][_0x204d86(0x1a7)]),_0x3b6c86[_0x204d86(0x217)]['scannerProcessingTimeout']&&(_0x3b6c86[_0x1acee4['hcjHr']]=_0x3b6c86[_0x204d86(0x217)][_0x204d86(0x1ac)]),_0x3b6c86[_0x204d86(0x217)][_0x204d86(0x221)]&&(_0x3b6c86[_0x1acee4['LgfBG']]=_0x3b6c86['accessibilityOptions'][_0x204d86(0x221)][_0x204d86(0x1b9)],_0x3b6c86[_0x1acee4[_0x204d86(0x1d3)]]=_0x3b6c86[_0x204d86(0x217)][_0x204d86(0x221)]['needsReview']));const _0x54ea86=JSON[_0x204d86(0x1dc)](process[_0x204d86(0x209)][_0x204d86(0x1ef)])[_0x204d86(0x1cd)];_0x3b6c86[_0x1acee4['cnGVT']]=process[_0x204d86(0x209)][_0x204d86(0x21b)],_0x3b6c86[_0x1acee4['dBFxj']]=_0x54ea86,delete _0x3b6c86[_0x204d86(0x217)];},exports[a38_0x5a5fc1(0x1a4)]=async _0x410688=>{const _0x3765e0=a38_0x5a5fc1,_0x3f84bd={};_0x3f84bd[_0x3765e0(0x1f3)]=_0x3765e0(0x207),_0x3f84bd[_0x3765e0(0x1ca)]=_0x3765e0(0x22a);const _0x64679d=_0x3f84bd;if(global['accessibilityPlatform'])try{const details={'url':await _0x410688.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x410688,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x410688,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x3765e0(0x1bc)](_0x64679d['jAOxD']),[];}else return logger[_0x3765e0(0x1b8)](_0x64679d[_0x3765e0(0x1ca)]),[];},exports[a38_0x5a5fc1(0x1a1)]=async(_0x38c819,_0x5b9c81='',_0x55f375={},_0x57cd5c={})=>{const _0x5e948f=a38_0x5a5fc1;logger[_0x5e948f(0x1dd)](_0x5e948f(0x1c8)+_0x5b9c81+'\x20page:\x20'+_0x38c819);const _0x25d8d9={'url':await _0x38c819['url'](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x5e948f(0x21c)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x5e948f(0x1f5)],async()=>{const _0x3fbaa8=_0x5e948f,_0x380df1={};_0x380df1[_0x3fbaa8(0x20c)]=_0x5b9c81;const _0x53d1fc=_0x380df1;_0x55f375&&_0x55f375[_0x3fbaa8(0x218)]&&(_0x53d1fc[_0x3fbaa8(0x218)]=_0x55f375['includePartOfPageScope']);Object[_0x3fbaa8(0x1fd)](_0x53d1fc,_0x57cd5c);const _0x2a851b=await exports['browserStackEvaluate'](_0x38c819,scripts[_0x3fbaa8(0x1a1)],_0x53d1fc);return _0x2a851b;},{'command':_0x5b9c81,..._0x25d8d9})();},exports[a38_0x5a5fc1(0x1c9)]=async _0xefb931=>{const _0x41f0c5=a38_0x5a5fc1,_0x400373={};_0x400373[_0x41f0c5(0x210)]=_0x41f0c5(0x1f9),_0x400373[_0x41f0c5(0x229)]=_0x41f0c5(0x1c6);const _0x6d9508=_0x400373;if(global['accessibilityPlatform'])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0xefb931,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0xefb931,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x41f0c5(0x1dd)](_0x6d9508['mympV']),{};}else return logger[_0x41f0c5(0x1b8)](_0x6d9508['bbikJ']),{};},exports[a38_0x5a5fc1(0x1b1)]=_0x1a58b6=>{const _0xbf0b68=a38_0x5a5fc1,_0x2abb9e={'lUjUb':_0xbf0b68(0x1ab),'IZAQa':_0xbf0b68(0x1b7),'uxpxL':function(_0x49a29a,_0x17ad57){return _0x49a29a!==_0x17ad57;},'yosHa':'latest','YrFDB':function(_0x120ab1){return _0x120ab1();},'ymbgD':_0xbf0b68(0x1eb)};try{if(global['isMobilePlatform'])return logger[_0xbf0b68(0x1dd)](_0x2abb9e['lUjUb']),!![];const _0x41fb18=_0x1a58b6['browser'],_0x5ec806=_0x1a58b6[_0xbf0b68(0x1ec)];if(!accessibilityHelper[_0xbf0b68(0x1e7)](_0x41fb18))return logger[_0xbf0b68(0x1b8)](_0x2abb9e[_0xbf0b68(0x1fa)]),![];if(_0x2abb9e[_0xbf0b68(0x215)](_0x5ec806,_0x2abb9e[_0xbf0b68(0x1b4)])){const _0x110d05=_0x2abb9e[_0xbf0b68(0x21e)](isBrowserstackInfra),_0x43b103=accessibilityHelper[_0xbf0b68(0x21a)](_0x41fb18,_0x110d05),_0x2aff83=accessibilityHelper['getBrowserDisplayName'](_0x41fb18);if(!accessibilityHelper[_0xbf0b68(0x226)](_0x5ec806,_0x43b103)){const _0x5972fb=_0x110d05?'':_0x2abb9e[_0xbf0b68(0x1e6)];return logger['warn'](_0xbf0b68(0x213)+_0x2aff83+_0xbf0b68(0x216)+_0x43b103+_0xbf0b68(0x1be)+_0x5972fb+'.'),![];}}}catch(_0x5db902){logger[_0xbf0b68(0x1dd)](_0xbf0b68(0x1f6)+util[_0xbf0b68(0x203)](_0x5db902));}return!![];},exports['processAccessibilityCaps']=(_0x1457da,_0x10afbe,_0x2d7964)=>{const _0x2c118d=a38_0x5a5fc1,_0x1e8aba={'ovrUn':_0x2c118d(0x1ea),'SCTcP':function(_0x5db785){return _0x5db785();},'AiyMp':'browserstack.accessibility','osvmZ':_0x2c118d(0x1b7),'eHVUJ':function(_0x14f628,_0x3cc061){return _0x14f628!==_0x3cc061;},'EhtwM':_0x2c118d(0x1a6),'LGhaa':_0x2c118d(0x1eb),'fqKHy':function(_0x1b0aa1,_0x3065ca){return _0x1b0aa1(_0x3065ca);},'cHubD':function(_0x3d61fb,_0x2b7528){return _0x3d61fb===_0x2b7528;},'DGhDK':_0x2c118d(0x1ff),'YkFKU':_0x2c118d(0x1cf),'UDrDv':_0x2c118d(0x1d9),'GftAp':_0x2c118d(0x1fb),'nQSMI':_0x2c118d(0x1a9),'hcbhg':function(_0x178031,_0x54fae8){return _0x178031+_0x54fae8;},'VNsVL':function(_0x164c21,_0x4324b5){return _0x164c21(_0x4324b5);}};try{if(_0x1e8aba[_0x2c118d(0x1f0)](isAccessibilityAutomationSession)){global[_0x2c118d(0x1c0)]=!![];!_0x1457da[_0x1e8aba['AiyMp']]&&(global[_0x2c118d(0x1c0)]=![]);const _0x1f1a41=_0x1457da['browserName']||_0x1457da[_0x2c118d(0x1ae)],_0x3851eb=_0x1457da[_0x2c118d(0x1ec)];!accessibilityHelper[_0x2c118d(0x1e7)](_0x1f1a41)&&(logger[_0x2c118d(0x1b8)](_0x1e8aba['osvmZ']),global['accessibilityPlatform']=![]);if(_0x1e8aba[_0x2c118d(0x222)](_0x3851eb,_0x1e8aba[_0x2c118d(0x208)])){const _0x16e996=_0x1e8aba[_0x2c118d(0x1f0)](isBrowserstackInfra),_0x533b62=accessibilityHelper[_0x2c118d(0x21a)](_0x1f1a41,_0x16e996),_0x512b53=accessibilityHelper[_0x2c118d(0x20e)](_0x1f1a41);if(!accessibilityHelper['isVersionSupported'](_0x3851eb,_0x533b62)){const _0x112fc0=_0x16e996?'':_0x1e8aba[_0x2c118d(0x1e9)];logger[_0x2c118d(0x1b8)](_0x2c118d(0x213)+_0x512b53+_0x2c118d(0x216)+_0x533b62+_0x2c118d(0x1be)+_0x112fc0+'.'),global[_0x2c118d(0x1c0)]=![];}}if(!_0x1e8aba[_0x2c118d(0x1fc)](isUndefined,_0x1457da[_0x2c118d(0x1d8)])){const _0x28d15f=(_0x1457da['os']||'')[_0x2c118d(0x204)](),_0x4f1e82=(_0x1457da[_0x2c118d(0x1cb)]||_0x1457da[_0x2c118d(0x1ae)]||'')['toLowerCase'](),_0x2c6e98=_0x1e8aba[_0x2c118d(0x1ed)](_0x28d15f,_0x1e8aba['DGhDK'])&&[_0x1e8aba[_0x2c118d(0x1b0)],_0x1e8aba['UDrDv'],_0x1e8aba[_0x2c118d(0x1af)]][_0x2c118d(0x219)](_0x4f1e82);if(!_0x2c6e98)logger[_0x2c118d(0x1b8)](_0x1e8aba[_0x2c118d(0x1bf)]),global[_0x2c118d(0x1c0)]=![];else!accessibilityHelper[_0x2c118d(0x1de)]()&&(logger[_0x2c118d(0x1b8)](accessibilityHelper[_0x2c118d(0x205)]),global[_0x2c118d(0x1c0)]=![]);}if(!global[_0x2c118d(0x1c0)]){_0x1457da[_0x1e8aba[_0x2c118d(0x211)]]=![],Object['keys'](_0x1457da)[_0x2c118d(0x1b2)](_0x3c2eb9=>{const _0xc4bfa0=_0x2c118d;_0x3c2eb9[_0xc4bfa0(0x1d6)](_0x1e8aba['ovrUn'])&&delete _0x1457da[_0x3c2eb9];});const _0x2f50f5=_0x1e8aba[_0x2c118d(0x202)](_0x10afbe,_0x1e8aba[_0x2c118d(0x1c5)](encodeURIComponent,JSON[_0x2c118d(0x1a3)](_0x1457da)));_0x2d7964&&(_0x2d7964['currentTest'][_0x2c118d(0x1fe)][_0x2c118d(0x1c4)][_0x2c118d(0x228)][_0x2c118d(0x201)]['wsEndpoint']=_0x2f50f5,_0x2d7964[_0x2c118d(0x1d4)][_0x2c118d(0x1c4)]['use'][_0x2c118d(0x201)]['wsEndpoint']=_0x2f50f5);}}else global['accessibilityPlatform']=![];}catch(_0x2aa919){logger['debug']('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x2c118d(0x203)](_0x2aa919));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a39_0x43d28a=a39_0x54b1;(function(_0x32610d,_0xa6fa64){const _0x40b364=a39_0x54b1,_0x4ec153=_0x32610d();while(!![]){try{const _0x4204f6=-parseInt(_0x40b364(0x12b))/0x1*(-parseInt(_0x40b364(0x1ab))/0x2)+-parseInt(_0x40b364(0x102))/0x3*(-parseInt(_0x40b364(0x187))/0x4)+-parseInt(_0x40b364(0x150))/0x5*(-parseInt(_0x40b364(0x1b9))/0x6)+parseInt(_0x40b364(0x189))/0x7*(-parseInt(_0x40b364(0x1ac))/0x8)+-parseInt(_0x40b364(0x13d))/0x9*(-parseInt(_0x40b364(0x141))/0xa)+parseInt(_0x40b364(0x18f))/0xb+-parseInt(_0x40b364(0x1a9))/0xc;if(_0x4204f6===_0xa6fa64)break;else _0x4ec153['push'](_0x4ec153['shift']());}catch(_0x33596d){_0x4ec153['push'](_0x4ec153['shift']());}}}(a39_0xccde,0xe9acf));const fs=require('fs'),path=require(a39_0x43d28a(0x1b3)),{spawn}=require(a39_0x43d28a(0x1ba)),{format}=require('util'),logger=require(a39_0x43d28a(0x13c))[a39_0x43d28a(0x161)],{default:BrowserStackSetup}=require(a39_0x43d28a(0x153)),helper=require('../../helpers/helper'),utilities=require('../../helpers/utilities'),constants=require(a39_0x43d28a(0xff)),{FRAMEWORKS}=require(a39_0x43d28a(0x171)),{getConfigLoaderPath}=require(a39_0x43d28a(0x12e)),{checkAccessibilityPlatformConfig}=require(a39_0x43d28a(0x15c)),{setAccessibilityCapabilities}=require(a39_0x43d28a(0x139)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a39_0x43d28a(0x19f)),TestHubHandler=require(a39_0x43d28a(0x199)),PerformanceTester=require(a39_0x43d28a(0x1b7)),BrowserstackCLI=require(a39_0x43d28a(0x19c)),PerformanceEvents=require(a39_0x43d28a(0x190))[a39_0x43d28a(0x1b4)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a39_0x43d28a(0x16d)),ClientTroubleShootingService=require(a39_0x43d28a(0x145)),getUserPlaywrightConfig=async(_0x1c627f,_0x1d8d77)=>{const _0x29c267=a39_0x43d28a,_0x7f37af={'XOmlL':function(_0x50f182){return _0x50f182();},'mIvNd':function(_0x37e969,_0x19f3ae){return _0x37e969(_0x19f3ae);},'xFoLD':_0x29c267(0x146),'UDJOW':_0x29c267(0x11c)},_0x4feae7=!helper['isUndefined'](_0x1c627f[_0x29c267(0x100)]),_0x451bde=_0x4feae7?path[_0x29c267(0x124)](process['cwd'](),_0x1c627f['config']):process[_0x29c267(0x148)](),{resolveConfigFile:_0x4b1e7b,resolveConfigLocation:_0x5450eb}=helper['isYarnPnP']()?helper['requireConfigLoaderYarnPnP'](..._0x7f37af[_0x29c267(0x162)](getConfigLoaderPath)):helper[_0x29c267(0x158)][_0x29c267(0x125)](null,_0x7f37af[_0x29c267(0x162)](getConfigLoaderPath)),_0x3c98cd=_0x4b1e7b?_0x7f37af['mIvNd'](_0x4b1e7b,_0x451bde):helper['nestedKeyValue'](_0x7f37af[_0x29c267(0x106)](_0x5450eb,_0x451bde),[_0x7f37af['xFoLD']]),_0x44cd1c={};if(_0x4feae7){const _0x208f74=_0x1d8d77[_0x29c267(0x152)](_0x38751e=>_0x38751e===_0x29c267(0x19d)||_0x38751e==='-c'||_0x38751e['startsWith'](_0x29c267(0x11c)));_0x1d8d77[_0x29c267(0x151)](_0x208f74,_0x1d8d77[_0x208f74][_0x29c267(0x1a5)](_0x7f37af[_0x29c267(0x167)])?0x1:0x2);}const _0x4ced90={};return _0x4ced90[_0x29c267(0x1b3)]=_0x3c98cd,_0x4ced90[_0x29c267(0x100)]=_0x44cd1c,_0x4ced90;},handleO11yRerun=_0x5bda5a=>{const _0x1062d8=a39_0x43d28a,_0x235820={};_0x235820[_0x1062d8(0x115)]='--grep';const _0xba0551=_0x235820,_0x14ee86=helper['isTrue'](process[_0x1062d8(0x18a)][_0x1062d8(0x193)]);if(_0x14ee86){const _0x4af94d=process[_0x1062d8(0x18a)][_0x1062d8(0x12f)],_0xa1c804=[];if(helper[_0x1062d8(0x140)](_0x4af94d)&&!helper[_0x1062d8(0x130)](_0x4af94d)){_0x4af94d[_0x1062d8(0x131)](',')[_0x1062d8(0x15a)](_0x35fd8d=>{const _0x5f10ca=_0x1062d8;_0xa1c804[_0x5f10ca(0x118)]('('+_0x35fd8d[_0x5f10ca(0x185)]()+')');});const _0x2b1a15='^'+_0xa1c804[_0x1062d8(0x112)]('|')+'$';_0x5bda5a[_0x1062d8(0x118)](_0xba0551[_0x1062d8(0x115)],_0x2b1a15);}}},spawnOriginalProcess=_0x136a80=>{const _0x551fe6=a39_0x43d28a,_0x379399={'DLJOl':function(_0x482c35,_0x21f4b4,_0x2f110f,_0x1d16b1){return _0x482c35(_0x21f4b4,_0x2f110f,_0x1d16b1);},'UijBH':_0x551fe6(0x165),'OfybR':_0x551fe6(0x197),'BRMBJ':_0x551fe6(0x19a),'iRxkD':function(_0x423a4f,_0x63fea){return _0x423a4f===_0x63fea;},'ervdU':_0x551fe6(0x1b5),'erzAi':_0x551fe6(0x137)};_0x379399[_0x551fe6(0x12c)](spawn,helper[_0x551fe6(0x163)]()?_0x379399[_0x551fe6(0x108)]:_0x379399[_0x551fe6(0x1a6)],[_0x379399[_0x551fe6(0x195)],..._0x136a80[_0x551fe6(0x14e)](0x1)],{'shell':_0x379399[_0x551fe6(0x18b)](process[_0x551fe6(0x179)],_0x379399['ervdU']),'stdio':_0x379399[_0x551fe6(0x1b0)],'cwd':process[_0x551fe6(0x148)]()});},isTestCommand=(_0x1fbbbf,_0x1e86a1)=>{const _0x56fc7f=a39_0x43d28a,_0x4a0a7e={};_0x4a0a7e[_0x56fc7f(0x160)]=function(_0xa00a46,_0x2ec6fc){return _0xa00a46>_0x2ec6fc;},_0x4a0a7e[_0x56fc7f(0x198)]=function(_0x296b3f,_0x5756c7){return _0x296b3f===_0x5756c7;},_0x4a0a7e[_0x56fc7f(0x154)]=_0x56fc7f(0x1a0);const _0x21089f=_0x4a0a7e;if(_0x21089f[_0x56fc7f(0x160)](_0x1e86a1['length'],0x1)&&_0x21089f[_0x56fc7f(0x198)](_0x1e86a1[0x1],_0x21089f[_0x56fc7f(0x154)]))return!![];return![];};async function run(_0x5d4b1f,_0x5cc2a7,_0x271ba3){const _0x54e310=a39_0x43d28a,_0x56bd6b={'VGTIg':function(_0x5e6371,_0x127607){return _0x5e6371(_0x127607);},'HtFwO':_0x54e310(0x1b2),'wAWWw':'pw_result.json','KLAKK':function(_0x20df2c,_0x554945){return _0x20df2c+_0x554945;},'cNfma':_0x54e310(0x15d),'xfCPx':function(_0x564bc8){return _0x564bc8();},'fhzNx':function(_0x111e3f){return _0x111e3f();},'KiwhC':function(_0x2ba4b0,_0x4b6b2f){return _0x2ba4b0+_0x4b6b2f;},'nXZYR':'Error\x20in\x20closing\x20playwright','cIJos':'BrowserStack\x20config\x20file\x20not\x20found.','Wrjgi':function(_0x27a321,_0x50dc07){return _0x27a321<_0x50dc07;},'IgMTg':function(_0x12cfac,_0x3d8e18){return _0x12cfac===_0x3d8e18;},'zvKrc':_0x54e310(0x134),'najAG':_0x54e310(0x182),'rEsgg':function(_0x58d2c6,_0xa5399d){return _0x58d2c6>=_0xa5399d;},'QAEDx':_0x54e310(0x120),'TuZtd':function(_0x1ffb3b,_0x1ebfd4){return _0x1ffb3b!=_0x1ebfd4;},'ghUCt':function(_0x7c6378,_0x5651f1,_0x5d4191){return _0x7c6378(_0x5651f1,_0x5d4191);},'cQyhg':function(_0xf3bb6a,_0x31bb03){return _0xf3bb6a(_0x31bb03);},'kLbZT':function(_0x13d5dc,_0x54b1d2){return _0x13d5dc===_0x54b1d2;},'QVmGA':_0x54e310(0x126),'jOrSz':function(_0x110862,_0x7e8a14){return _0x110862(_0x7e8a14);},'mQfVK':_0x54e310(0x181),'mvxsl':_0x54e310(0xfd),'kHIZk':_0x54e310(0x155),'hmZTQ':function(_0x1f1a97,_0x259d7c){return _0x1f1a97-_0x259d7c;},'xIjFd':function(_0x1b79a9,_0x21ec5c){return _0x1b79a9+_0x21ec5c;},'oDPOC':_0x54e310(0x1b6),'rSleL':function(_0x40eae6,_0x44bac1){return _0x40eae6>_0x44bac1;},'Jovqz':function(_0x215751,_0x17ce7b,_0x2ad720,_0x200ff6){return _0x215751(_0x17ce7b,_0x2ad720,_0x200ff6);},'BPeKw':_0x54e310(0x165),'ekUoF':'npx','juGKQ':_0x54e310(0x19a),'agImq':_0x54e310(0x1a0),'fXGUl':_0x54e310(0x19d),'XYBrC':'win32','YxauY':function(_0x50bc09,_0x45d50d){return _0x50bc09===_0x45d50d;},'EQjzv':_0x54e310(0x137),'sKWFU':_0x54e310(0x177),'qCyBw':function(_0xd90128,_0x453239){return _0xd90128|_0x453239;},'lnTGn':_0x54e310(0x1aa),'kFqBH':_0x54e310(0x11e),'aaEVP':function(_0x173db3,_0xddd5fa){return _0x173db3(_0xddd5fa);}};try{const _0xb9b155=path[_0x54e310(0x112)](helper[_0x54e310(0x127)](),_0x56bd6b[_0x54e310(0x191)]);try{fs[_0x54e310(0x16c)](_0xb9b155,_0x56bd6b[_0x54e310(0x180)](fs['constants']['R_OK'],fs[_0x54e310(0x142)]['W_OK']));}catch(_0x5ccd84){ClientTroubleShootingService[_0x54e310(0x147)]();}}catch(_0x51f474){logger['debug'](_0x56bd6b[_0x54e310(0x10c)](_0x56bd6b[_0x54e310(0x14f)],_0x51f474));}try{const _0x562e15=path[_0x54e310(0x112)](helper['homedir'](),_0x56bd6b['HtFwO'],_0x56bd6b[_0x54e310(0x114)]);fs[_0x54e310(0x188)](_0x562e15)&&fs[_0x54e310(0x1b1)](_0x562e15);}catch(_0x9004a5){logger[_0x54e310(0x176)](_0x56bd6b[_0x54e310(0x173)](_0x56bd6b[_0x54e310(0x1a3)],_0x9004a5));}if(!_0x56bd6b['ghUCt'](isTestCommand,_0x5d4b1f,_0x5cc2a7)){_0x56bd6b[_0x54e310(0x13e)](spawnOriginalProcess,_0x5cc2a7);return;}await PerformanceTester[_0x54e310(0x164)](PerformanceEvents[_0x54e310(0x129)],async()=>{const _0x5ed8bd=_0x54e310,_0x157dca={};_0x157dca[_0x5ed8bd(0x175)]=_0x56bd6b['HtFwO'];const _0x1572c9=_0x157dca;if(!_0x271ba3['config']){logger['error'](_0x56bd6b['cIJos']);return;}await _0x271ba3['initialize'](_0x5d4b1f),CLIUtils['setFrameworkDetail'](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x5ed8bd(0x14b)]),BrowserstackCLI[_0x5ed8bd(0x132)]()[_0x5ed8bd(0x17b)](_0x271ba3[_0x5ed8bd(0x100)],_0x271ba3[_0x5ed8bd(0x168)],_0x271ba3[_0x5ed8bd(0x16e)]),await BrowserstackCLI[_0x5ed8bd(0x132)]()[_0x5ed8bd(0x16b)]();for(var _0x10228a=0x0;_0x56bd6b[_0x5ed8bd(0x101)](_0x10228a,constants['INTERNALLY_USED_ENV_VARS'][_0x5ed8bd(0x10d)]);_0x10228a++){var _0xe61744=constants['INTERNALLY_USED_ENV_VARS'][_0x10228a];process[_0x5ed8bd(0x18a)][_0xe61744]&&await ClientTroubleShootingService[_0x5ed8bd(0x15e)](_0xe61744);}const _0x16b3d1=BrowserstackCLI[_0x5ed8bd(0x132)]()[_0x5ed8bd(0x133)]();!helper[_0x5ed8bd(0x144)](_0x16b3d1[_0x5ed8bd(0x123)])&&(process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x186)]=!![]);_0x56bd6b['IgMTg'](_0x16b3d1[_0x5ed8bd(0x123)],![])&&(process[_0x5ed8bd(0x18a)]['BROWSERSTACK_AUTOMATION']=_0x56bd6b[_0x5ed8bd(0x14d)],_0x5cc2a7=_0x5cc2a7['filter'](_0xa8e378=>_0xa8e378!==_0x5ed8bd(0x121)));const _0x39f6ad=_0x5cc2a7[_0x5ed8bd(0x116)](_0x56bd6b[_0x5ed8bd(0x11b)]);(_0x56bd6b[_0x5ed8bd(0x119)](_0x39f6ad,0x0)||_0x56bd6b[_0x5ed8bd(0x12d)](_0x16b3d1[_0x5ed8bd(0x10f)],![]))&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=_0x56bd6b[_0x5ed8bd(0x14d)],_0x5cc2a7=_0x5cc2a7[_0x5ed8bd(0x18e)](_0x3936bf=>_0x3936bf!==_0x5ed8bd(0x182)));!helper[_0x5ed8bd(0x130)](_0x271ba3[_0x5ed8bd(0x16e)])&&_0x271ba3[_0x5ed8bd(0x16e)]['has'](_0x56bd6b['QAEDx'])&&(process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x186)]=_0x271ba3[_0x5ed8bd(0x16e)][_0x5ed8bd(0xfe)](_0x56bd6b[_0x5ed8bd(0x157)])||!![]);_0x56bd6b[_0x5ed8bd(0x17f)](_0x271ba3[_0x5ed8bd(0x100)][_0x5ed8bd(0x10f)],null)&&!helper[_0x5ed8bd(0x17c)](process[_0x5ed8bd(0x18a)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x17a)]=process[_0x5ed8bd(0x18a)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x271ba3[_0x5ed8bd(0x100)][_0x5ed8bd(0x10f)]);const _0x1ad2aa=!helper[_0x5ed8bd(0x144)](process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x17a)]);_0x271ba3[_0x5ed8bd(0x100)][_0x5ed8bd(0x13f)]&&(process[_0x5ed8bd(0x18a)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x5ed8bd(0x143)](_0x271ba3[_0x5ed8bd(0x100)][_0x5ed8bd(0x13f)]));let _0x161a89=![];_0x271ba3[_0x5ed8bd(0x100)][_0x5ed8bd(0xfc)]&&(_0x161a89=!![],process['env'][_0x5ed8bd(0x122)]=_0x271ba3['config'][_0x5ed8bd(0xfc)]);const _0x38c40a=_0x5cc2a7[_0x5ed8bd(0x1a7)](),_0x3dbd8d=await _0x56bd6b[_0x5ed8bd(0x192)](getUserPlaywrightConfig,_0x5d4b1f,_0x5cc2a7);if(helper[_0x5ed8bd(0x130)](_0x3dbd8d)){_0x56bd6b[_0x5ed8bd(0x183)](spawnOriginalProcess,_0x38c40a);return;}const _0x515ca8=_0x3dbd8d[_0x5ed8bd(0x1b3)]?path['dirname'](_0x3dbd8d[_0x5ed8bd(0x1b3)]):process[_0x5ed8bd(0x148)]();process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x105)]=_0x515ca8,await PerformanceTester[_0x5ed8bd(0x164)](PerformanceEvents[_0x5ed8bd(0x1a2)],async()=>{const _0x34b26f=_0x5ed8bd;!BrowserstackCLI[_0x34b26f(0x132)]()[_0x34b26f(0x174)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0x34b26f(0x14b)],_0x271ba3),_0x1ad2aa&&_0x56bd6b['VGTIg'](handleO11yRerun,_0x5cc2a7);})();if(!BrowserstackCLI[_0x5ed8bd(0x132)]()[_0x5ed8bd(0x174)]()){let _0x4aaa27=_0x56bd6b[_0x5ed8bd(0x1b8)](process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x122)],_0x56bd6b[_0x5ed8bd(0x196)]);_0x4aaa27=_0x4aaa27||_0x56bd6b['jOrSz'](checkAccessibilityPlatformConfig,_0x271ba3[_0x5ed8bd(0x100)]),process['env'][_0x5ed8bd(0x122)]=_0x4aaa27,_0x4aaa27&&_0x56bd6b['jOrSz'](setAccessibilityCapabilities,_0x271ba3[_0x5ed8bd(0x100)]);}const _0x1017a1=path[_0x5ed8bd(0x112)](_0x3dbd8d[_0x5ed8bd(0x1b3)]?path[_0x5ed8bd(0x15b)](_0x3dbd8d[_0x5ed8bd(0x1b3)]):process[_0x5ed8bd(0x148)](),_0x56bd6b[_0x5ed8bd(0x170)]);fs[_0x5ed8bd(0x172)](_0x1017a1,helper['serializeToYamlString'](_0x271ba3[_0x5ed8bd(0x100)])),process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x1ad)]=_0x1017a1,helper[_0x5ed8bd(0x103)]();let _0x41fa86='';_0x56bd6b[_0x5ed8bd(0x1b8)](helper[_0x5ed8bd(0x149)](),constants[_0x5ed8bd(0x19b)][_0x5ed8bd(0x19e)])?_0x41fa86=_0x56bd6b[_0x5ed8bd(0x109)]:_0x41fa86=_0x56bd6b[_0x5ed8bd(0x1af)];let _0x2b7801='';if(helper[_0x5ed8bd(0x1a1)](_0x3dbd8d['path'])){_0x2b7801=_0x5ed8bd(0x16f);const _0x292bf9=_0x41fa86[_0x5ed8bd(0x131)]('.');_0x292bf9[_0x56bd6b[_0x5ed8bd(0x16a)](_0x292bf9[_0x5ed8bd(0x10d)],0x1)]='ts',_0x41fa86=_0x292bf9['join']('.'),logger[_0x5ed8bd(0x176)](_0x56bd6b['xIjFd'](_0x56bd6b[_0x5ed8bd(0x136)],_0x41fa86));}else _0x2b7801=_0x5ed8bd(0x1ae);const _0x4d3209=path[_0x5ed8bd(0x112)](_0x3dbd8d[_0x5ed8bd(0x1b3)]?path['dirname'](_0x3dbd8d[_0x5ed8bd(0x1b3)]):process[_0x5ed8bd(0x148)](),_0x41fa86);let _0x5a04b5=_0x3dbd8d[_0x5ed8bd(0x1b3)]?_0x3dbd8d[_0x5ed8bd(0x1b3)]:'';_0x5a04b5=_0x56bd6b['rSleL'](_0x5a04b5[_0x5ed8bd(0x10d)],0x0)?path[_0x5ed8bd(0x124)](_0x5a04b5):'',process[_0x5ed8bd(0x18a)][_0x5ed8bd(0x10e)]=_0x5a04b5;const _0x3075a1=helper[_0x5ed8bd(0x110)](_0x271ba3[_0x5ed8bd(0x100)]),_0x5c7576=helper[_0x5ed8bd(0x11f)](_0x271ba3[_0x5ed8bd(0x100)]);logger[_0x5ed8bd(0x176)]('Proxy\x20url\x20:\x20'+_0x3075a1),logger[_0x5ed8bd(0x176)](_0x5ed8bd(0x117)+_0x5c7576);_0x3075a1&&(_0x2b7801=_0x56bd6b[_0x5ed8bd(0x13b)](_0x5ed8bd(0x14c)+_0x3075a1+'\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22'+_0x5c7576+_0x5ed8bd(0x1a8),_0x2b7801));helper[_0x5ed8bd(0x159)]({},_0x5cc2a7),fs[_0x5ed8bd(0x172)](_0x4d3209,_0x2b7801),PerformanceTester['end'](PerformanceEvents[_0x5ed8bd(0x194)]);const _0x46dc9d=_0x56bd6b['Jovqz'](spawn,helper[_0x5ed8bd(0x163)]()?_0x56bd6b['BPeKw']:_0x56bd6b[_0x5ed8bd(0x13a)],[_0x56bd6b['juGKQ'],_0x56bd6b['agImq'],_0x56bd6b[_0x5ed8bd(0x138)],_0x56bd6b['kLbZT'](process[_0x5ed8bd(0x179)],_0x56bd6b[_0x5ed8bd(0x11a)])?'\x22'+_0x4d3209+'\x22':_0x4d3209,..._0x5cc2a7[_0x5ed8bd(0x14e)](0x2)],{'shell':_0x56bd6b[_0x5ed8bd(0x17e)](process[_0x5ed8bd(0x179)],_0x56bd6b['XYBrC']),'stdio':_0x56bd6b[_0x5ed8bd(0x104)],'cwd':process['cwd'](),'env':Object[_0x5ed8bd(0x18d)]({},process[_0x5ed8bd(0x18a)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x5d4b1f),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x271ba3[_0x5ed8bd(0x100)][_0x5ed8bd(0x135)][_0x5ed8bd(0x12a)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x271ba3[_0x5ed8bd(0x100)]['testContextOptions'][_0x5ed8bd(0x11d)],'BROWSERSTACK_LOG_LEVEL':_0x271ba3[_0x5ed8bd(0x100)][_0x5ed8bd(0x18c)]})}),_0x2c066f=()=>{const _0x259731=_0x5ed8bd;try{const _0x164708=path[_0x259731(0x112)](helper[_0x259731(0x127)](),_0x56bd6b[_0x259731(0x191)],_0x56bd6b[_0x259731(0x114)]);if(fs[_0x259731(0x188)](_0x164708)){let _0x24cd98=fs[_0x259731(0x169)](_0x164708);_0x24cd98=JSON['parse'](_0x24cd98),_0x271ba3[_0x259731(0x1a4)]=_0x24cd98,fs[_0x259731(0x1b1)](_0x164708);}}catch(_0x5399c0){logger[_0x259731(0x176)](_0x56bd6b['KLAKK'](_0x56bd6b[_0x259731(0x178)],_0x5399c0));}};_0x46dc9d['on'](_0x56bd6b[_0x5ed8bd(0x14a)],async _0x2c859c=>{const _0x3b4462=_0x5ed8bd;try{PerformanceTester[_0x3b4462(0x10b)](PerformanceEvents[_0x3b4462(0x156)]),_0x56bd6b['xfCPx'](_0x2c066f),await TestHubHandler[_0x3b4462(0x113)](),await ClientTroubleShootingService[_0x3b4462(0x184)]();const _0x98abfb=BrowserstackCLI[_0x3b4462(0x111)]();await BrowserstackCLI[_0x3b4462(0x132)]()[_0x3b4462(0x113)](),TestDetails[_0x3b4462(0x107)](),_0x56bd6b['fhzNx'](printBuildLink),await utilities['finalExecution'](_0x271ba3,_0x98abfb),process['exitCode']=_0x2c859c,logger[_0x3b4462(0x176)](_0x3b4462(0x128)+_0x2c859c),logger['info'](_0x3b4462(0x17d)+_0x4d3209),fs[_0x3b4462(0x1b1)](_0x4d3209);fs[_0x3b4462(0x188)](_0x1017a1)&&(logger['debug'](_0x3b4462(0x17d)+_0x1017a1),fs[_0x3b4462(0x1b1)](_0x1017a1));const _0x1db52b=fs[_0x3b4462(0x15f)](path['join'](helper[_0x3b4462(0x127)](),_0x56bd6b['HtFwO']))[_0x3b4462(0x18e)](_0x58e49b=>_0x58e49b[_0x3b4462(0x1a5)](_0x3b4462(0x166)));_0x1db52b[_0x3b4462(0x10a)](_0x2279cb=>{const _0x4d5f07=_0x3b4462;fs[_0x4d5f07(0x1b1)](path[_0x4d5f07(0x112)](helper[_0x4d5f07(0x127)](),_0x1572c9[_0x4d5f07(0x175)],_0x2279cb));});}catch(_0x1f7e9d){logger[_0x3b4462(0x176)](_0x56bd6b[_0x3b4462(0x173)](_0x56bd6b['nXZYR'],_0x1f7e9d));}});})();}function a39_0x54b1(_0x644a4a,_0xf739d4){const _0xccde9=a39_0xccde();return a39_0x54b1=function(_0x54b1bc,_0x488d2a){_0x54b1bc=_0x54b1bc-0xfc;let _0x27ed01=_0xccde9[_0x54b1bc];return _0x27ed01;},a39_0x54b1(_0x644a4a,_0xf739d4);}function a39_0xccde(){const _0x4bdf82=['PLAYWRIGHT','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','zvKrc','slice','lnTGn','15sefXEw','splice','findIndex','../../helpers/BrowserStackSetup','paTSd','playwright-browserstack-sdk.config.js','SDK_CLEANUP','QAEDx','requirePWModule','filterBrowserstackArgs','map','dirname','../../helpers/accessibility-automation/helper','Error\x20in\x20getting\x20funnel\x20data\x20results','reportConflictingEnvVarIssue','readdirSync','oMaGa','winstonLogger','XOmlL','isYarnPnP','measureWrapper','yarn','trace_','UDJOW','configPath','readFileSync','hmZTQ','bootstrap','accessSync','../v2/TestInfo','cliConfig','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','mQfVK','../../helpers/test-observability/constants','writeFileSync','KiwhC','isRunning','ViQWC','debug','close','cNfma','platform','BROWSERSTACK_TEST_OBSERVABILITY','setBrowserstackConfig','isTrue','Deleting\x20','YxauY','TuZtd','qCyBw','browserstackSetupConfig.json','--disable-test-observability','cQyhg','reportFinalDetectionState','trim','BROWSERSTACK_AUTOMATION','84oHmhwS','existsSync','22498MgWpFZ','env','iRxkD','logLevel','assign','filter','11212938bSEBNX','../../helpers/performance/constants','HtFwO','ghUCt','BROWSERSTACK_RERUN','SDK_SETUP','BRMBJ','QVmGA','npx','ECPaN','../../helpers/testhub/testhubHandler','playwright','PACKAGE_TYPE','../v2/browserstackCLI','--config','MODULE','./reporter/test-details','test','isTypescriptProject','SDK_POST_INITIALIZE','kFqBH','errorMessage','startsWith','OfybR','concat','\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();','42502848rRggCA','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','818oPAakH','1528gPtIIL','BROWSERSTACK_SETUP_CONFIG_PATH','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','kHIZk','erzAi','unlinkSync','.browserstack','path','EVENTS','win32','Updated\x20config\x20file\x20name\x20to\x20-\x20','../../helpers/performance/performance-tester','kLbZT','3559194joicoo','child_process','accessibility','playwright-browserstack-sdk.config.cjs','get','../utils/constants','config','Wrjgi','19278bvOYRh','clearTempPWConfig','EQjzv','BROWSERSTACK_PW_CONFIG_DIR','mIvNd','shutdown','UijBH','mvxsl','forEach','start','KLAKK','length','USER_CONFIG_DETAILS_PATH','testObservability','getProxyUrl','isCLIEnabled','join','stop','wAWWw','HRzEj','indexOf','No\x20Proxy\x20:\x20','push','rEsgg','XYBrC','najAG','--config=','skipSessionName','Error\x20in\x20deleting\x20playwright\x20results','getNoProxy','automation','--disable-browserstack-automation','BROWSERSTACK_TEST_ACCESSIBILITY_YML','browserstackAutomation','resolve','apply','true','homedir','Playwright\x20process\x20exited\x20with\x20code\x20','SDK_PRE_INITIALIZE','skipSessionStatus','853VieVmp','DLJOl','IgMTg','./reporter/pwUtils','BROWSERSTACK_RERUN_TESTS','isUndefined','split','getInstance','getConfig','false','testContextOptions','oDPOC','inherit','fXGUl','./accessibility-helper','ekUoF','xIjFd','../../helpers/logger','135cGHPle','aaEVP','accessibilityOptions','validateRerunTestList','1220090BMMwey','constants','stringify','isFalse','../utils/clientTroubleshootingService','resolvedConfigFile','reportDotBrowserStackFolderNotAccessibleIssue','cwd','getPackageType','sKWFU'];a39_0xccde=function(){return _0x4bdf82;};return a39_0xccde();}module['exports']=run;
|
|
2
|
+
'use strict';const a39_0x1ae69a=a39_0x557a;function a39_0x557a(_0x4b21d2,_0x1678a6){const _0xd48079=a39_0xd480();return a39_0x557a=function(_0x557aad,_0x1c1332){_0x557aad=_0x557aad-0xb7;let _0x147d76=_0xd48079[_0x557aad];return _0x147d76;},a39_0x557a(_0x4b21d2,_0x1678a6);}(function(_0x30accb,_0xc0544){const _0x2ea3ca=a39_0x557a,_0x31e9e1=_0x30accb();while(!![]){try{const _0x14451b=-parseInt(_0x2ea3ca(0x173))/0x1+-parseInt(_0x2ea3ca(0xf5))/0x2+parseInt(_0x2ea3ca(0x103))/0x3*(-parseInt(_0x2ea3ca(0x168))/0x4)+-parseInt(_0x2ea3ca(0x17e))/0x5*(-parseInt(_0x2ea3ca(0xfb))/0x6)+-parseInt(_0x2ea3ca(0xf7))/0x7+-parseInt(_0x2ea3ca(0xfe))/0x8*(parseInt(_0x2ea3ca(0x14e))/0x9)+parseInt(_0x2ea3ca(0x120))/0xa;if(_0x14451b===_0xc0544)break;else _0x31e9e1['push'](_0x31e9e1['shift']());}catch(_0x2ac791){_0x31e9e1['push'](_0x31e9e1['shift']());}}}(a39_0xd480,0x2d67d));const fs=require('fs'),path=require(a39_0x1ae69a(0x10e)),{spawn}=require(a39_0x1ae69a(0xde)),{format}=require(a39_0x1ae69a(0x11b)),logger=require(a39_0x1ae69a(0xfa))['winstonLogger'],{default:BrowserStackSetup}=require(a39_0x1ae69a(0x15a)),helper=require('../../helpers/helper'),utilities=require(a39_0x1ae69a(0xc7)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a39_0x1ae69a(0x10d)),{getConfigLoaderPath}=require(a39_0x1ae69a(0x115)),{checkAccessibilityPlatformConfig}=require(a39_0x1ae69a(0x172)),{setAccessibilityCapabilities}=require(a39_0x1ae69a(0x12e)),{printBuildLink}=require(a39_0x1ae69a(0x12f)),TestDetails=require(a39_0x1ae69a(0x179)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a39_0x1ae69a(0x141)),BrowserstackCLI=require(a39_0x1ae69a(0xce)),PerformanceEvents=require(a39_0x1ae69a(0x10f))[a39_0x1ae69a(0xc4)],CLIUtils=require(a39_0x1ae69a(0x160)),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require(a39_0x1ae69a(0x16d)),getUserPlaywrightConfig=async(_0x4db577,_0x478d12)=>{const _0x21d56f=a39_0x1ae69a,_0x36aaff={'KRekP':function(_0x292cbe){return _0x292cbe();},'gfrTt':function(_0x3f0b5f){return _0x3f0b5f();},'XPeRw':function(_0xa965ca,_0x49cf84){return _0xa965ca(_0x49cf84);},'DmgpS':function(_0x558cd4,_0x3ea54){return _0x558cd4(_0x3ea54);},'OEQYK':_0x21d56f(0x17a),'fYThW':'--config='},_0x4eb835=!helper['isUndefined'](_0x4db577[_0x21d56f(0x133)]),_0x3a5fc4=_0x4eb835?path[_0x21d56f(0x106)](process[_0x21d56f(0xd6)](),_0x4db577[_0x21d56f(0x133)]):process[_0x21d56f(0xd6)](),{resolveConfigFile:_0x140f1d,resolveConfigLocation:_0x36b59f}=helper['isYarnPnP']()?helper[_0x21d56f(0xed)](..._0x36aaff[_0x21d56f(0x140)](getConfigLoaderPath)):helper[_0x21d56f(0x10a)][_0x21d56f(0x135)](null,_0x36aaff[_0x21d56f(0x150)](getConfigLoaderPath)),_0x5c2bb4=_0x140f1d?_0x36aaff['XPeRw'](_0x140f1d,_0x3a5fc4):helper[_0x21d56f(0x13a)](_0x36aaff[_0x21d56f(0x13c)](_0x36b59f,_0x3a5fc4),[_0x36aaff['OEQYK']]),_0x408af3={};if(_0x4eb835){const _0x553017=_0x478d12[_0x21d56f(0xef)](_0x3e5b44=>_0x3e5b44==='--config'||_0x3e5b44==='-c'||_0x3e5b44[_0x21d56f(0x165)](_0x21d56f(0x169)));_0x478d12['splice'](_0x553017,_0x478d12[_0x553017][_0x21d56f(0x165)](_0x36aaff[_0x21d56f(0x16f)])?0x1:0x2);}const _0x1a5aaa={};return _0x1a5aaa[_0x21d56f(0x10e)]=_0x5c2bb4,_0x1a5aaa[_0x21d56f(0x133)]=_0x408af3,_0x1a5aaa;},handleO11yRerun=_0x267289=>{const _0x282f5e=a39_0x1ae69a,_0x3819a3={};_0x3819a3['pynCn']=_0x282f5e(0x144);const _0x2c3ed1=_0x3819a3,_0x24adb5=helper['isTrue'](process[_0x282f5e(0x11d)][_0x282f5e(0xf4)]);if(_0x24adb5){const _0x4da7ed=process[_0x282f5e(0x11d)][_0x282f5e(0xe5)],_0x4f0cea=[];if(helper[_0x282f5e(0x146)](_0x4da7ed)&&!helper[_0x282f5e(0xd3)](_0x4da7ed)){_0x4da7ed['split'](',')[_0x282f5e(0xdf)](_0x518333=>{const _0x5c5c93=_0x282f5e;_0x4f0cea['push']('('+_0x518333[_0x5c5c93(0xbf)]()+')');});const _0x23cac1='^'+_0x4f0cea['join']('|')+'$';_0x267289['push'](_0x2c3ed1['pynCn'],_0x23cac1);}}},spawnOriginalProcess=_0xe5c955=>{const _0x5ad218=a39_0x1ae69a,_0x10b6fd={'JHmng':function(_0x4333a3,_0x33ca32,_0x30af67,_0x370cc1){return _0x4333a3(_0x33ca32,_0x30af67,_0x370cc1);},'ZdGZb':_0x5ad218(0x153),'RKGFh':_0x5ad218(0x163),'FKFnu':'playwright','pzXay':function(_0x2d2b4e,_0x3f68a4){return _0x2d2b4e===_0x3f68a4;},'wtZHq':_0x5ad218(0x12c),'sGMYT':_0x5ad218(0xc0)};_0x10b6fd[_0x5ad218(0x117)](spawn,helper[_0x5ad218(0x156)]()?_0x10b6fd[_0x5ad218(0x11c)]:_0x10b6fd[_0x5ad218(0x132)],[_0x10b6fd[_0x5ad218(0x15e)],..._0xe5c955[_0x5ad218(0x177)](0x1)],{'shell':_0x10b6fd['pzXay'](process[_0x5ad218(0x15f)],_0x10b6fd[_0x5ad218(0xd7)]),'stdio':_0x10b6fd[_0x5ad218(0x166)],'cwd':process[_0x5ad218(0xd6)]()});},isTestCommand=(_0x3ba155,_0x24f9c9)=>{const _0x1200b1=a39_0x1ae69a,_0x4bfa64={};_0x4bfa64[_0x1200b1(0x14b)]=function(_0x363f51,_0x3f5cec){return _0x363f51>_0x3f5cec;},_0x4bfa64[_0x1200b1(0x12b)]=function(_0x4cb065,_0x48bbfe){return _0x4cb065===_0x48bbfe;},_0x4bfa64[_0x1200b1(0xdc)]=_0x1200b1(0xc2);const _0x5db72c=_0x4bfa64;if(_0x5db72c['pynvT'](_0x24f9c9[_0x1200b1(0x152)],0x1)&&_0x5db72c[_0x1200b1(0x12b)](_0x24f9c9[0x1],_0x5db72c[_0x1200b1(0xdc)]))return!![];return![];};async function run(_0x2a550d,_0x37b688,_0x34940e){const _0x5d95d7=a39_0x1ae69a,_0xc63316={'LRjBa':function(_0xcf0f29,_0x1bfce0){return _0xcf0f29(_0x1bfce0);},'nuHHg':_0x5d95d7(0x105),'nIizr':_0x5d95d7(0x134),'cSTuZ':function(_0x1ebffb,_0x415896){return _0x1ebffb+_0x415896;},'LIRsW':_0x5d95d7(0xe0),'XcTZg':function(_0x10d464){return _0x10d464();},'IyhPs':function(_0x320ded){return _0x320ded();},'PJPMi':function(_0x253c17,_0x4c53e8){return _0x253c17+_0x4c53e8;},'PSmdA':_0x5d95d7(0x14d),'jafRw':_0x5d95d7(0x16e),'ehjJv':function(_0x49e336,_0x12ca69){return _0x49e336<_0x12ca69;},'pDdMF':function(_0x1fe3b3,_0xa93881){return _0x1fe3b3===_0xa93881;},'AtMTF':_0x5d95d7(0x174),'HKstr':_0x5d95d7(0x149),'WubOb':function(_0x4c5080,_0x60b13e){return _0x4c5080>=_0x60b13e;},'gIAQg':_0x5d95d7(0xe1),'feBzs':function(_0x3e19d8,_0x36a0d5){return _0x3e19d8!=_0x36a0d5;},'ktPgN':function(_0x56781b,_0x323956,_0x2b3f77){return _0x56781b(_0x323956,_0x2b3f77);},'voBJU':function(_0x2d14dd,_0xfb7b17){return _0x2d14dd(_0xfb7b17);},'Xtgqr':_0x5d95d7(0x119),'OMYRg':_0x5d95d7(0x113),'aAnmQ':'playwright-browserstack-sdk.config.cjs','awoJk':_0x5d95d7(0x125),'nmGPJ':function(_0x48b7e3,_0x4457c1){return _0x48b7e3-_0x4457c1;},'vyxNB':function(_0x2ee5d9,_0x4606e2){return _0x2ee5d9+_0x4606e2;},'gHLhW':_0x5d95d7(0x142),'DvmOA':function(_0x2dc144,_0x590117){return _0x2dc144>_0x590117;},'IlopY':function(_0x401209,_0x474b13){return _0x401209+_0x474b13;},'HLmtS':function(_0x21cca1,_0x9bcc08,_0x110053,_0x2571e1){return _0x21cca1(_0x9bcc08,_0x110053,_0x2571e1);},'HTBXI':'yarn','MbjjE':_0x5d95d7(0x163),'JpRgZ':'playwright','FOqeo':'test','rrhES':_0x5d95d7(0x151),'NoUIB':_0x5d95d7(0x12c),'ofByz':_0x5d95d7(0xc0),'xvgus':_0x5d95d7(0xc6),'JJdzz':function(_0x5b38fd,_0x17739b){return _0x5b38fd|_0x17739b;},'CUfwq':_0x5d95d7(0xfc),'JPIwl':_0x5d95d7(0xe6)};try{const _0x4f0057=path[_0x5d95d7(0x162)](helper[_0x5d95d7(0xc3)](),_0xc63316[_0x5d95d7(0x12d)]);try{fs[_0x5d95d7(0xc1)](_0x4f0057,_0xc63316[_0x5d95d7(0x124)](fs['constants'][_0x5d95d7(0xcc)],fs[_0x5d95d7(0x137)][_0x5d95d7(0x14c)]));}catch(_0x18073e){ClientTroubleShootingService[_0x5d95d7(0x107)]();}}catch(_0x3689b1){logger[_0x5d95d7(0x13f)](_0xc63316[_0x5d95d7(0xb7)](_0xc63316[_0x5d95d7(0xb9)],_0x3689b1));}try{const _0x89978c=path[_0x5d95d7(0x162)](helper['homedir'](),_0xc63316['nuHHg'],_0xc63316[_0x5d95d7(0xea)]);fs['existsSync'](_0x89978c)&&fs[_0x5d95d7(0xbd)](_0x89978c);}catch(_0x2c3843){logger[_0x5d95d7(0x13f)](_0xc63316[_0x5d95d7(0xe3)](_0xc63316[_0x5d95d7(0x116)],_0x2c3843));}if(!_0xc63316[_0x5d95d7(0xc9)](isTestCommand,_0x2a550d,_0x37b688)){_0xc63316[_0x5d95d7(0xe8)](spawnOriginalProcess,_0x37b688);return;}await PerformanceTester['measureWrapper'](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x1f02e1=_0x5d95d7,_0x43af23={'zBGNv':function(_0x2776e2,_0x2b3d41){const _0x2da84a=a39_0x557a;return _0xc63316[_0x2da84a(0x108)](_0x2776e2,_0x2b3d41);},'Rasaf':_0xc63316[_0x1f02e1(0x12d)],'xnZKM':_0xc63316[_0x1f02e1(0xea)],'gkNFD':function(_0x2ee3c8,_0x28fd9c){const _0x21711d=_0x1f02e1;return _0xc63316[_0x21711d(0xb7)](_0x2ee3c8,_0x28fd9c);},'qPlrF':_0xc63316['LIRsW'],'UtZCv':function(_0x5a11b8){return _0xc63316['XcTZg'](_0x5a11b8);},'NXQPs':function(_0x25ea94){const _0x44f10f=_0x1f02e1;return _0xc63316[_0x44f10f(0xb8)](_0x25ea94);},'uEmTB':function(_0xa0764e,_0x241817){const _0x47cd98=_0x1f02e1;return _0xc63316[_0x47cd98(0xe3)](_0xa0764e,_0x241817);},'fCSBg':_0xc63316['PSmdA']};if(!_0x34940e['config']){logger[_0x1f02e1(0x138)](_0xc63316[_0x1f02e1(0x123)]);return;}await _0x34940e[_0x1f02e1(0x126)](_0x2a550d),CLIUtils['setFrameworkDetail'](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x1f02e1(0x14f)]),BrowserstackCLI['getInstance']()[_0x1f02e1(0x178)](_0x34940e['config'],_0x34940e[_0x1f02e1(0x139)],_0x34940e[_0x1f02e1(0xd8)]),await BrowserstackCLI[_0x1f02e1(0xf1)]()['bootstrap']();for(var _0x30ec18=0x0;_0xc63316[_0x1f02e1(0xfd)](_0x30ec18,constants['INTERNALLY_USED_ENV_VARS'][_0x1f02e1(0x152)]);_0x30ec18++){var _0x3cc2ad=constants[_0x1f02e1(0x158)][_0x30ec18];process[_0x1f02e1(0x11d)][_0x3cc2ad]&&await ClientTroubleShootingService[_0x1f02e1(0x159)](_0x3cc2ad);}const _0x3f4afe=BrowserstackCLI[_0x1f02e1(0xf1)]()[_0x1f02e1(0x16b)]();!helper[_0x1f02e1(0xdb)](_0x3f4afe[_0x1f02e1(0x128)])&&(process[_0x1f02e1(0x11d)][_0x1f02e1(0x101)]=!![]);_0xc63316[_0x1f02e1(0xe2)](_0x3f4afe[_0x1f02e1(0x128)],![])&&(process[_0x1f02e1(0x11d)][_0x1f02e1(0x101)]=_0xc63316[_0x1f02e1(0x145)],_0x37b688=_0x37b688[_0x1f02e1(0xdd)](_0x1aaf8f=>_0x1aaf8f!==_0x1f02e1(0xd9)));const _0x373a68=_0x37b688[_0x1f02e1(0x109)](_0xc63316[_0x1f02e1(0x176)]);(_0xc63316[_0x1f02e1(0xba)](_0x373a68,0x0)||_0xc63316[_0x1f02e1(0xe2)](_0x3f4afe[_0x1f02e1(0x111)],![]))&&(process['env'][_0x1f02e1(0x164)]=_0xc63316['AtMTF'],_0x37b688=_0x37b688['filter'](_0x5b6d5d=>_0x5b6d5d!==_0x1f02e1(0x149)));!helper[_0x1f02e1(0xd3)](_0x34940e[_0x1f02e1(0xd8)])&&_0x34940e[_0x1f02e1(0xd8)][_0x1f02e1(0xee)](_0xc63316[_0x1f02e1(0x12a)])&&(process['env'][_0x1f02e1(0x101)]=_0x34940e[_0x1f02e1(0xd8)]['get'](_0xc63316['gIAQg'])||!![]);_0xc63316[_0x1f02e1(0xbe)](_0x34940e[_0x1f02e1(0x133)][_0x1f02e1(0x111)],null)&&!helper['isTrue'](process[_0x1f02e1(0x11d)][_0x1f02e1(0x164)])&&(process[_0x1f02e1(0x11d)][_0x1f02e1(0x164)]=process[_0x1f02e1(0x11d)][_0x1f02e1(0x164)]||_0x34940e[_0x1f02e1(0x133)][_0x1f02e1(0x111)]);const _0x13a854=!helper[_0x1f02e1(0xdb)](process[_0x1f02e1(0x11d)][_0x1f02e1(0x164)]);_0x34940e['config'][_0x1f02e1(0xf6)]&&(process[_0x1f02e1(0x11d)][_0x1f02e1(0x100)]=JSON[_0x1f02e1(0xe4)](_0x34940e[_0x1f02e1(0x133)][_0x1f02e1(0xf6)]));let _0xe2c53a=![];_0x34940e[_0x1f02e1(0x133)][_0x1f02e1(0x16a)]&&(_0xe2c53a=!![],process[_0x1f02e1(0x11d)][_0x1f02e1(0xf0)]=_0x34940e[_0x1f02e1(0x133)]['accessibility']);const _0x16a248=_0x37b688[_0x1f02e1(0x16c)](),_0x5a8bc6=await _0xc63316['ktPgN'](getUserPlaywrightConfig,_0x2a550d,_0x37b688);if(helper[_0x1f02e1(0xd3)](_0x5a8bc6)){_0xc63316[_0x1f02e1(0xe8)](spawnOriginalProcess,_0x16a248);return;}const _0x19df5f=_0x5a8bc6[_0x1f02e1(0x10e)]?path['dirname'](_0x5a8bc6[_0x1f02e1(0x10e)]):process[_0x1f02e1(0xd6)]();process['env']['BROWSERSTACK_PW_CONFIG_DIR']=_0x19df5f,await PerformanceTester[_0x1f02e1(0xcf)](PerformanceEvents[_0x1f02e1(0xd2)],async()=>{const _0x2fe0db=_0x1f02e1;!BrowserstackCLI[_0x2fe0db(0xf1)]()[_0x2fe0db(0x154)]()&&await TestHubHandler[_0x2fe0db(0xf3)](FRAMEWORKS['PLAYWRIGHT'],_0x34940e),_0x13a854&&_0x43af23['zBGNv'](handleO11yRerun,_0x37b688);})();if(!BrowserstackCLI['getInstance']()[_0x1f02e1(0x154)]()){let _0x2dff4a=_0xc63316[_0x1f02e1(0xe2)](process[_0x1f02e1(0x11d)][_0x1f02e1(0xf0)],_0xc63316[_0x1f02e1(0xc8)]);_0x2dff4a=_0x2dff4a||_0xc63316[_0x1f02e1(0x108)](checkAccessibilityPlatformConfig,_0x34940e[_0x1f02e1(0x133)]),process['env'][_0x1f02e1(0xf0)]=_0x2dff4a,_0x2dff4a&&_0xc63316['voBJU'](setAccessibilityCapabilities,_0x34940e['config']);}const _0xe877d1=path[_0x1f02e1(0x162)](_0x5a8bc6[_0x1f02e1(0x10e)]?path[_0x1f02e1(0xec)](_0x5a8bc6[_0x1f02e1(0x10e)]):process[_0x1f02e1(0xd6)](),_0xc63316[_0x1f02e1(0x118)]);fs[_0x1f02e1(0x10b)](_0xe877d1,helper[_0x1f02e1(0xf9)](_0x34940e[_0x1f02e1(0x133)])),process[_0x1f02e1(0x11d)][_0x1f02e1(0x17c)]=_0xe877d1,helper[_0x1f02e1(0x13d)]();let _0x46951f='';_0xc63316['pDdMF'](helper[_0x1f02e1(0x130)](),constants[_0x1f02e1(0x122)][_0x1f02e1(0xf2)])?_0x46951f=_0xc63316[_0x1f02e1(0x127)]:_0x46951f=_0xc63316[_0x1f02e1(0x161)];let _0x12fb22='';if(helper[_0x1f02e1(0xda)](_0x5a8bc6[_0x1f02e1(0x10e)])){_0x12fb22=_0x1f02e1(0x157);const _0x255867=_0x46951f['split']('.');_0x255867[_0xc63316[_0x1f02e1(0x131)](_0x255867[_0x1f02e1(0x152)],0x1)]='ts',_0x46951f=_0x255867[_0x1f02e1(0x162)]('.'),logger[_0x1f02e1(0x13f)](_0xc63316[_0x1f02e1(0x167)](_0xc63316[_0x1f02e1(0xd4)],_0x46951f));}else _0x12fb22=_0x1f02e1(0x143);const _0xf707cb=path[_0x1f02e1(0x162)](_0x5a8bc6[_0x1f02e1(0x10e)]?path[_0x1f02e1(0xec)](_0x5a8bc6['path']):process[_0x1f02e1(0xd6)](),_0x46951f);let _0x25e3fc=_0x5a8bc6[_0x1f02e1(0x10e)]?_0x5a8bc6[_0x1f02e1(0x10e)]:'';_0x25e3fc=_0xc63316['DvmOA'](_0x25e3fc[_0x1f02e1(0x152)],0x0)?path['resolve'](_0x25e3fc):'',process['env']['USER_CONFIG_DETAILS_PATH']=_0x25e3fc;const _0x2f0e7f=helper[_0x1f02e1(0x14a)](_0x34940e['config']),_0x4e1dea=helper[_0x1f02e1(0x175)](_0x34940e[_0x1f02e1(0x133)]);logger['debug'](_0x1f02e1(0x15d)+_0x2f0e7f),logger[_0x1f02e1(0x13f)](_0x1f02e1(0xff)+_0x4e1dea);_0x2f0e7f&&(_0x12fb22=_0xc63316['IlopY'](_0x1f02e1(0xcd)+_0x2f0e7f+'\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22'+_0x4e1dea+_0x1f02e1(0x110),_0x12fb22));helper[_0x1f02e1(0x15c)]({},_0x37b688),fs[_0x1f02e1(0x10b)](_0xf707cb,_0x12fb22),PerformanceTester['end'](PerformanceEvents[_0x1f02e1(0xe7)]);const _0xdd09c8=_0xc63316['HLmtS'](spawn,helper['isYarnPnP']()?_0xc63316['HTBXI']:_0xc63316['MbjjE'],[_0xc63316[_0x1f02e1(0x15b)],_0xc63316[_0x1f02e1(0xbc)],_0xc63316[_0x1f02e1(0x136)],_0xc63316[_0x1f02e1(0xe2)](process[_0x1f02e1(0x15f)],_0xc63316[_0x1f02e1(0x148)])?'\x22'+_0xf707cb+'\x22':_0xf707cb,..._0x37b688[_0x1f02e1(0x177)](0x2)],{'shell':_0xc63316[_0x1f02e1(0xe2)](process[_0x1f02e1(0x15f)],_0xc63316[_0x1f02e1(0x148)]),'stdio':_0xc63316[_0x1f02e1(0x114)],'cwd':process['cwd'](),'env':Object['assign']({},process[_0x1f02e1(0x11d)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x1f02e1(0x17b)](_0x2a550d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x34940e[_0x1f02e1(0x133)][_0x1f02e1(0xe9)][_0x1f02e1(0x129)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x34940e['config'][_0x1f02e1(0xe9)][_0x1f02e1(0xd5)],'BROWSERSTACK_LOG_LEVEL':_0x34940e[_0x1f02e1(0x133)][_0x1f02e1(0xcb)]})}),_0x44227b=()=>{const _0x32cc8f=_0x1f02e1;try{const _0x575cc5=path[_0x32cc8f(0x162)](helper[_0x32cc8f(0xc3)](),_0x43af23['Rasaf'],_0x43af23[_0x32cc8f(0x17d)]);if(fs[_0x32cc8f(0x17f)](_0x575cc5)){let _0x519c49=fs['readFileSync'](_0x575cc5);_0x519c49=JSON[_0x32cc8f(0x102)](_0x519c49),_0x34940e[_0x32cc8f(0x170)]=_0x519c49,fs[_0x32cc8f(0xbd)](_0x575cc5);}}catch(_0x2c1d90){logger[_0x32cc8f(0x13f)](_0x43af23[_0x32cc8f(0xc5)](_0x43af23[_0x32cc8f(0xca)],_0x2c1d90));}};_0xdd09c8['on'](_0xc63316[_0x1f02e1(0x13b)],async _0x59a2d5=>{const _0x110457=_0x1f02e1;try{PerformanceTester[_0x110457(0x13e)](PerformanceEvents[_0x110457(0x121)]),_0x43af23[_0x110457(0xbb)](_0x44227b),await TestHubHandler['stop'](),await ClientTroubleShootingService[_0x110457(0x155)]();const _0x5fb14=BrowserstackCLI[_0x110457(0x11a)]();await BrowserstackCLI[_0x110457(0xf1)]()[_0x110457(0xeb)](),TestDetails['shutdown'](),_0x43af23[_0x110457(0xf8)](printBuildLink),await utilities['finalExecution'](_0x34940e,_0x5fb14),process[_0x110457(0x104)]=_0x59a2d5,logger[_0x110457(0x13f)](_0x110457(0x147)+_0x59a2d5),logger[_0x110457(0x171)](_0x110457(0xd0)+_0xf707cb),fs[_0x110457(0xbd)](_0xf707cb);fs['existsSync'](_0xe877d1)&&(logger[_0x110457(0x13f)](_0x110457(0xd0)+_0xe877d1),fs[_0x110457(0xbd)](_0xe877d1));const _0x22485d=fs['readdirSync'](path[_0x110457(0x162)](helper[_0x110457(0xc3)](),_0x43af23['Rasaf']))[_0x110457(0xdd)](_0x512290=>_0x512290[_0x110457(0x165)](_0x110457(0x10c)));_0x22485d[_0x110457(0x11e)](_0x5dcdec=>{const _0x5d0ca3=_0x110457;fs[_0x5d0ca3(0xbd)](path[_0x5d0ca3(0x162)](helper[_0x5d0ca3(0xc3)](),_0x43af23['Rasaf'],_0x5dcdec));});}catch(_0x4369e6){logger[_0x110457(0x13f)](_0x43af23[_0x110457(0x11f)](_0x43af23[_0x110457(0x112)],_0x4369e6));}});})();}module[a39_0x1ae69a(0xd1)]=run;function a39_0xd480(){const _0x5bf1dc=['isRunning','reportFinalDetectionState','isYarnPnP','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','INTERNALLY_USED_ENV_VARS','reportConflictingEnvVarIssue','../../helpers/BrowserStackSetup','JpRgZ','filterBrowserstackArgs','Proxy\x20url\x20:\x20','FKFnu','platform','../v2/cliUtils','awoJk','join','npx','BROWSERSTACK_TEST_OBSERVABILITY','startsWith','sGMYT','vyxNB','78128gtxQgo','--config=','accessibility','getConfig','concat','../utils/clientTroubleshootingService','BrowserStack\x20config\x20file\x20not\x20found.','fYThW','errorMessage','info','../../helpers/accessibility-automation/helper','309960OazWvX','false','getNoProxy','HKstr','slice','setBrowserstackConfig','./reporter/test-details','resolvedConfigFile','getConfigPath','BROWSERSTACK_SETUP_CONFIG_PATH','xnZKM','60rWMglY','existsSync','cSTuZ','IyhPs','CUfwq','WubOb','UtZCv','FOqeo','unlinkSync','feBzs','trim','inherit','accessSync','test','homedir','EVENTS','gkNFD','close','../../helpers/utilities','Xtgqr','ktPgN','qPlrF','logLevel','R_OK','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','../v2/browserstackCLI','measureWrapper','Deleting\x20','exports','SDK_POST_INITIALIZE','isUndefined','gHLhW','skipSessionName','cwd','wtZHq','cliConfig','--disable-browserstack-automation','isTypescriptProject','isFalse','LWlaw','filter','child_process','map','Error\x20in\x20getting\x20funnel\x20data\x20results','automation','pDdMF','PJPMi','stringify','BROWSERSTACK_RERUN_TESTS','Error\x20in\x20deleting\x20playwright\x20results','SDK_SETUP','voBJU','testContextOptions','nIizr','stop','dirname','requireConfigLoaderYarnPnP','has','findIndex','BROWSERSTACK_TEST_ACCESSIBILITY_YML','getInstance','MODULE','launchBuild','BROWSERSTACK_RERUN','276140BKxZkP','accessibilityOptions','1170113HYtmty','NXQPs','serializeToYamlString','../../helpers/logger','44610WSMbog','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','ehjJv','16CQzEEi','No\x20Proxy\x20:\x20','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','BROWSERSTACK_AUTOMATION','parse','33eKLCIh','exitCode','.browserstack','resolve','reportDotBrowserStackFolderNotAccessibleIssue','LRjBa','indexOf','requirePWModule','writeFileSync','trace_','../../helpers/test-observability/constants','path','../../helpers/performance/constants','\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();','testObservability','fCSBg','browserstackSetupConfig.json','ofByz','./reporter/pwUtils','JPIwl','JHmng','OMYRg','true','isCLIEnabled','util','ZdGZb','env','forEach','uEmTB','11753540eVRszM','SDK_CLEANUP','PACKAGE_TYPE','jafRw','JJdzz','playwright-browserstack-sdk.config.js','initialize','aAnmQ','browserstackAutomation','skipSessionStatus','gIAQg','RwuNl','win32','nuHHg','./accessibility-helper','../../helpers/test-observability/utils','getPackageType','nmGPJ','RKGFh','config','pw_result.json','apply','rrhES','constants','error','configPath','nestedKeyValue','xvgus','DmgpS','clearTempPWConfig','start','debug','KRekP','../../helpers/performance/performance-tester','Updated\x20config\x20file\x20name\x20to\x20-\x20','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','--grep','AtMTF','validateRerunTestList','Playwright\x20process\x20exited\x20with\x20code\x20','NoUIB','--disable-test-observability','getProxyUrl','pynvT','W_OK','Error\x20in\x20closing\x20playwright','1118484XiFrNi','PLAYWRIGHT','gfrTt','--config','length','yarn'];a39_0xd480=function(){return _0x5bf1dc;};return a39_0xd480();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a40_0x135ea7=a40_0x382a;function a40_0x4c92(){const _0x3a321c=['496iQrrzB','608743jEdpsq','../../helpers/helper','1486515QZzAKI','apply','winstonLogger','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','953588frmOPW','315200WxjZbm','requirePWModule','2ZDpHcl','fork','./reporter/pwUtils','resolve','PhMMr','nwjHe','OsHcn','env','mWluy','PLAYWRIGHT','yUflF','Running\x20existing\x20global\x20setup','debug','function','EElDw','43317FUtzON','exports','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','error','../../helpers/test-observability/utils','2827620vwneXT','YikCl','qMXFf','includes','./patches','1.33.0','Path\x20','util','./mock-process.js','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','5ikUalJ','isHandlePWErrorSet','wcGFF','1842575kDEAhU'];a40_0x4c92=function(){return _0x3a321c;};return a40_0x4c92();}(function(_0x1fe218,_0x47b38a){const _0x551fa3=a40_0x382a,_0x40c3a7=_0x1fe218();while(!![]){try{const _0x2786d0=parseInt(_0x551fa3(0x150))/0x1+-parseInt(_0x551fa3(0x12d))/0x2*(-parseInt(_0x551fa3(0x152))/0x3)+parseInt(_0x551fa3(0x12a))/0x4*(-parseInt(_0x551fa3(0x14b))/0x5)+-parseInt(_0x551fa3(0x141))/0x6+-parseInt(_0x551fa3(0x14e))/0x7+-parseInt(_0x551fa3(0x14f))/0x8*(-parseInt(_0x551fa3(0x13c))/0x9)+parseInt(_0x551fa3(0x12b))/0xa;if(_0x2786d0===_0x47b38a)break;else _0x40c3a7['push'](_0x40c3a7['shift']());}catch(_0x576f26){_0x40c3a7['push'](_0x40c3a7['shift']());}}}(a40_0x4c92,0x709e2));function a40_0x382a(_0xa32de1,_0x11f499){const _0x4c92c7=a40_0x4c92();return a40_0x382a=function(_0x382abc,_0x42faf9){_0x382abc=_0x382abc-0x12a;let _0x49ef57=_0x4c92c7[_0x382abc];return _0x49ef57;},a40_0x382a(_0xa32de1,_0x11f499);}const util=require(a40_0x135ea7(0x148)),child_process=require('child_process'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a40_0x135ea7(0x140)),helper=require(a40_0x135ea7(0x151)),{getLoadUtilsPath,getForkProcessPath}=require(a40_0x135ea7(0x12f)),{mockIsWorkerRedundant}=require(a40_0x135ea7(0x145)),logger=require('../../helpers/logger')[a40_0x135ea7(0x154)];module[a40_0x135ea7(0x13d)]=async function(_0x503546){const _0x15f3e6=a40_0x135ea7,_0x288d3b={'qMXFf':function(_0x480842,_0x522017){return _0x480842(_0x522017);},'EElDw':function(_0xa96ebf){return _0xa96ebf();},'PhMMr':_0x15f3e6(0x149),'nwjHe':function(_0x289126){return _0x289126();},'OsHcn':function(_0x50e4cc){return _0x50e4cc();},'mWluy':function(_0x4d9c8,_0x55b68b){return _0x4d9c8(_0x55b68b);},'yUflF':_0x15f3e6(0x138),'nYlUd':function(_0x26d91e,_0x5d0294){return _0x26d91e>=_0x5d0294;},'JwAaA':_0x15f3e6(0x146),'wcGFF':function(_0x1dd492,_0x3dcd1c,_0x1cda18){return _0x1dd492(_0x3dcd1c,_0x1cda18);},'kmdCo':function(_0x240de8,_0x3057ce){return _0x240de8!==_0x3057ce;},'YikCl':_0x15f3e6(0x13a),'YMenx':'Not\x20able\x20to\x20import\x20globalSetup'},_0x471304=child_process['fork'];if(helper[_0x15f3e6(0x14c)]())try{_0x288d3b[_0x15f3e6(0x133)](mockIsWorkerRedundant);}catch(_0x2bc7d9){logger[_0x15f3e6(0x139)](_0x15f3e6(0x14a)+util['format'](_0x2bc7d9));}child_process[_0x15f3e6(0x12e)]=function(){const _0x8abc94=_0x15f3e6;return _0x288d3b[_0x8abc94(0x143)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x8abc94(0x144)](_0x288d3b[_0x8abc94(0x13b)](getForkProcessPath))?arguments[0x0]=require[_0x8abc94(0x130)](_0x288d3b[_0x8abc94(0x131)]):logger[_0x8abc94(0x13f)](_0x8abc94(0x147)+_0x288d3b[_0x8abc94(0x132)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x471304[_0x8abc94(0x153)](null,arguments);};if(process['env'][_0x15f3e6(0x13e)]){_0x288d3b[_0x15f3e6(0x135)](debug,_0x288d3b[_0x15f3e6(0x137)]);try{const {loadGlobalHook:_0x5e5fec}=helper[_0x15f3e6(0x12c)][_0x15f3e6(0x153)](null,_0x288d3b[_0x15f3e6(0x133)](getLoadUtilsPath)),_0x1aab7e=_0x288d3b[_0x15f3e6(0x135)](getFrameworkVersion,FRAMEWORKS[_0x15f3e6(0x136)]);let _0x1fd1a3=_0x503546;if(_0x288d3b['nYlUd'](helper['compareVersions'](_0x1aab7e,_0x288d3b['JwAaA']),0x0)){const _0x12fcb1={};_0x12fcb1['config']=_0x503546,_0x1fd1a3=_0x12fcb1;}const _0x3ae6cd=await _0x288d3b[_0x15f3e6(0x14d)](_0x5e5fec,_0x1fd1a3,process[_0x15f3e6(0x134)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x288d3b['kmdCo'](typeof _0x3ae6cd,_0x288d3b[_0x15f3e6(0x142)]))throw new Error(_0x288d3b['YMenx']);return _0x3ae6cd[_0x15f3e6(0x153)](null,arguments);}catch(_0x308400){_0x288d3b['mWluy'](debug,_0x15f3e6(0x155)+_0x308400['toString']());}}};
|