browserstack-node-sdk 1.53.6 → 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.
Files changed (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +4 -3
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a89_0x1228(){const _0x1cdbc4=['2807375mwNBtn','testRunId','onAfterDriverCreate:\x20Setting\x20browser\x20object','Jvxrr','SESSION_STATUS','LEgoi','ZBBcV','tABIX','onBeforeDriverCreate','LeQly','Automation\x20onAfterTest:\x20Setting\x20session\x20name\x20to:\x20','markSessionName:\x20Skipping\x20session\x20name\x20marking','base64','setSessionName','Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','nlenJ','BtMah','KEY_PLATFORM_INDEX','RulNR','KEY_HUB_URL','MZAjT','fEqIJ','browserObject','markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available','../state/hookState.js','info','setState','instance','params','onDispatchExecute:\x20Playwright\x20platform\x20platformIndex:\x20','retry',',\x20test_identifier:\x20','getDetails','__workerDetails','../../utils/constants','recreateIdentifierFromTestInfo','7753185WpTsVJ','Playwright','getConfig','browserVersion','czPcg','shouldSkipSessionStatus','getId','registerObserver','logger','xfeHO','bind','getTrackedInstance','bsParams','MODULE_NAME','4ttLKtx','../browserstackCLI.js','testUuid','debug','hubUrl','status','onDispatchExecute:\x20Playwright\x20sessionId:\x20','context','isPlaywright','error','page','onAfterDriverCreate:\x20Setting\x20context\x20object','sessionId','3|11|7|6|1|5|0|4|10|9|2|8','onAfterTest','testId','53366DrwmxM','name','pickle','KEY_TEST_ID','Automation\x20onAfterTest:\x20Setting\x20session\x20name\x20and\x20status\x20for\x20testId:\x20','ncxig','testFrameworkData','bStackParams','test_identifier','kaHSj','../../../helpers/helper.js','\x20failure\x20reason:\x20','../TestInfo.js','browserName','CREATE','clDlB','bNJLd','gYFGi','Error\x20in\x20onBeforeDriverCreate:\x20','3029344BdlpsI','start','5391470PmvNAp','3419170VEAmiM','PLAYWRIGHT_DISPATCH','JEST','playwrightVersion','passed','markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','browser','Session','getTestId','12ovVeiT','POST','onPlaywrightDispatch','getTestDetails','rIFDY','getTestUUID','action','exports','yncYn','oIkyU','veciF','KEY_TEST_FRAMEWORK_NAME','IFgaN','workerInfo','HjVsw','moYkh','cSQuU','Error\x20in\x20markSessionName:\x20','budeq','WvYNg','util','result','SESSION_NAME','onAfterDriverCreate','./baseModule','../../../helpers/test-observability/utils','ibVwA','mDKfo','kBSRl','testInfo','onAfterDriverCreate:\x20Setting\x20page\x20object','FtsBb','markSessionName','Ffdys','bSoGF','TPFno','platformIndex','parallelIndex','getModuleName','from','length','inspect','onBeforeDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','onAfterTest\x20CBTSession\x20complete\x20for\x20testId:\x20','../../../helpers/helper','../grpcClient.js','arguments','EXECUTE','with\x20','27ALvlCw','SpxwZ','Automation\x20onAfterTest:\x20Recreated\x20Jest\x20testIdentifier:\x20','stringify','markSessionStatus','getThreadId','Error\x20in\x20onAfterDriverCreate:\x20','getRef','qnPVB','qNktr','KEY_CAPABILITIES','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','PlaywrightDriverModule','getTestIdentifierFromTestInfo','dEmKk','getLTSSessionId','WOxkd','TEST','markSessionStatus:\x20Skipping\x20session\x20status\x20marking','xwOot','KEY_PLATFORM_DETAILS','KEY_PAGE_OBJECT','AUTOMATE_EVENTS','gherkinDocument','message','Automation\x20onAfterTest:\x20Test\x20completed','getInstance','3492003InaESq','platforms','toString','version','tytJH','capabilities','end','FSwCv','getProcessId','KEY_BROWSER_OBJECT','../framework/automationFramework.js','../../playwright/sessionDetails','isBrowserstackInfra','KEY_CONTEXT_OBJECT','6zWzqKX','platformDetails','errors','1.51.0','KEY_TEST_FRAMEWORK_VERSION','format','KEY_SESSION_ID','getState'];a89_0x1228=function(){return _0x1cdbc4;};return a89_0x1228();}const a89_0x5298eb=a89_0x2a35;(function(_0x307daf,_0x3b1e23){const _0xbdf09a=a89_0x2a35,_0x57518f=_0x307daf();while(!![]){try{const _0x4b3d67=-parseInt(_0xbdf09a(0x193))/0x1*(parseInt(_0xbdf09a(0x1b2))/0x2)+parseInt(_0xbdf09a(0x1fe))/0x3*(parseInt(_0xbdf09a(0x183))/0x4)+parseInt(_0xbdf09a(0x214))/0x5+parseInt(_0xbdf09a(0x20c))/0x6*(-parseInt(_0xbdf09a(0x1a8))/0x7)+parseInt(_0xbdf09a(0x1a6))/0x8+-parseInt(_0xbdf09a(0x1e3))/0x9*(parseInt(_0xbdf09a(0x1a9))/0xa)+parseInt(_0xbdf09a(0x175))/0xb;if(_0x4b3d67===_0x3b1e23)break;else _0x57518f['push'](_0x57518f['shift']());}catch(_0x283ae9){_0x57518f['push'](_0x57518f['shift']());}}}(a89_0x1228,0xa9256));const util=require(a89_0x5298eb(0x1c6)),BaseModule=require(a89_0x5298eb(0x1ca)),{createClassLogger}=require('../../../helpers/classLogger.js'),{getFrameworkVersion}=require(a89_0x5298eb(0x1cb)),helper=require(a89_0x5298eb(0x1de)),{FRAMEWORKS}=require(a89_0x5298eb(0x173)),AutomationFramework=require(a89_0x5298eb(0x208)),AutomationFrameworkState=require('../state/automationFrameworkState.js'),HookState=require(a89_0x5298eb(0x169)),{playwrightBstackJsExecutor,nestedKeyValue,playwrightAnnotate,getPlaywrightStatus,getPlaywrightSessionName,getCucumberSessionName}=require(a89_0x5298eb(0x19d)),CLIUtils=require('../cliUtils.js'),BrowserstackCLI=require(a89_0x5298eb(0x184)),GrpcClient=require(a89_0x5298eb(0x1df)),PerformanceTester=require('../../../helpers/performance/performance-tester.js'),PerformanceEvents=require('../../../helpers/performance/constants.js')[a89_0x5298eb(0x1f9)],TestInfo=require(a89_0x5298eb(0x19f)),{getPlaywrightProvider,getProductForSession}=require(a89_0x5298eb(0x19d)),LoadTestModule=require('./loadTestModule.js'),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),TestFrameworkState=require('../state/testFrameworkState'),JestUtils=require('../utils/jest-utils.js'),PlaywrightSessionDetails=require(a89_0x5298eb(0x209));function a89_0x2a35(_0x2b9168,_0xfc7375){const _0x1228d1=a89_0x1228();return a89_0x2a35=function(_0x2a35db,_0xb66025){_0x2a35db=_0x2a35db-0x168;let _0x4590e8=_0x1228d1[_0x2a35db];return _0x4590e8;},a89_0x2a35(_0x2b9168,_0xfc7375);}class PlaywrightDriverModule extends BaseModule{static [a89_0x5298eb(0x207)]=a89_0x5298eb(0x22a);static [a89_0x5298eb(0x20b)]='contextObject';static ['KEY_PAGE_OBJECT']='pageObject';static [a89_0x5298eb(0x212)]=a89_0x5298eb(0x18f);static [a89_0x5298eb(0x225)]=a89_0x5298eb(0x1d6);static [a89_0x5298eb(0x1ed)]=a89_0x5298eb(0x203);static [a89_0x5298eb(0x227)]=a89_0x5298eb(0x187);static [a89_0x5298eb(0x1f7)]=a89_0x5298eb(0x20d);static [a89_0x5298eb(0x196)]=a89_0x5298eb(0x192);[a89_0x5298eb(0x17d)]=createClassLogger('PlaywrightDriverModule');constructor(_0x13efd3=null){const _0x450caf=a89_0x5298eb,_0x545443={};_0x545443[_0x450caf(0x1a3)]=_0x450caf(0x190),_0x545443[_0x450caf(0x1cd)]='PlaywrightDriverModule';const _0x993a71=_0x545443,_0x4bcd39=_0x993a71[_0x450caf(0x1a3)]['split']('|');let _0x37e97d=0x0;while(!![]){switch(_0x4bcd39[_0x37e97d++]){case'0':this[_0x450caf(0x215)]=null;continue;case'1':this[_0x450caf(0x178)]=null;continue;case'2':AutomationFramework[_0x450caf(0x17c)](AutomationFrameworkState[_0x450caf(0x1aa)],HookState['POST'],this[_0x450caf(0x1b4)][_0x450caf(0x17f)](this));continue;case'3':super(_0x13efd3);continue;case'4':this['jestUtils']=new JestUtils();continue;case'5':this['platforms']=[];continue;case'6':this[_0x450caf(0x1a0)]=null;continue;case'7':this[_0x450caf(0x1ac)]=null;continue;case'8':AutomationFramework[_0x450caf(0x17c)](AutomationFrameworkState[_0x450caf(0x1e1)],HookState['POST'],this[_0x450caf(0x191)][_0x450caf(0x17f)](this));continue;case'9':AutomationFramework['registerObserver'](AutomationFrameworkState['CREATE'],HookState[_0x450caf(0x1b3)],this[_0x450caf(0x1c9)]['bind'](this));continue;case'10':AutomationFramework[_0x450caf(0x17c)](AutomationFrameworkState[_0x450caf(0x1a1)],HookState['PRE'],this[_0x450caf(0x21c)][_0x450caf(0x17f)](this));continue;case'11':this[_0x450caf(0x194)]=_0x993a71[_0x450caf(0x1cd)];continue;}break;}}[a89_0x5298eb(0x1d8)](){const _0x2b9a27=a89_0x5298eb;return PlaywrightDriverModule[_0x2b9a27(0x182)];}async[a89_0x5298eb(0x21c)](_0x330c66){const _0x15ae12=a89_0x5298eb,_0x13e6ee={};_0x13e6ee[_0x15ae12(0x1ba)]=_0x15ae12(0x1dc);const _0x399d7c=_0x13e6ee;try{this[_0x15ae12(0x17d)]['debug'](_0x399d7c[_0x15ae12(0x1ba)]);const _0x309820=_0x330c66['launchcaps'],_0x163f3a=_0x330c66[_0x15ae12(0x187)];AutomationFramework[_0x15ae12(0x16b)](_0x330c66[_0x15ae12(0x16c)],PlaywrightDriverModule[_0x15ae12(0x1ed)],_0x309820),AutomationFramework[_0x15ae12(0x16b)](_0x330c66[_0x15ae12(0x16c)],PlaywrightDriverModule[_0x15ae12(0x227)],_0x163f3a);}catch(_0x2fd795){this['logger']['error'](_0x15ae12(0x1a5)+util[_0x15ae12(0x211)](_0x2fd795));}}async[a89_0x5298eb(0x1b4)](_0x1d3ffc){const _0x4bdb42=a89_0x5298eb,_0x4b9444={};_0x4b9444['Tjahz']=function(_0x154408,_0x50be85){return _0x154408||_0x50be85;};const _0x27a9b7=_0x4b9444;try{const _0x122016=_0x1d3ffc?.[_0x4bdb42(0x1fb)]&&_0x1d3ffc?.[_0x4bdb42(0x1fb)]?.['params']&&_0x1d3ffc?.['message']?.[_0x4bdb42(0x16d)]?.[_0x4bdb42(0x181)],_0x32cc94=_0x1d3ffc?.['message']&&_0x1d3ffc?.[_0x4bdb42(0x1fb)]?.[_0x4bdb42(0x19a)];if(_0x27a9b7['Tjahz'](_0x122016,_0x32cc94)){this[_0x4bdb42(0x17d)][_0x4bdb42(0x186)]('onDispatchExecute:\x20Playwright\x20driver\x20is\x20executing\x20tests\x20'+util['inspect'](_0x122016)+'\x20||\x20'+util[_0x4bdb42(0x1db)](_0x32cc94));const _0x3a38ac=_0x1d3ffc?.[_0x4bdb42(0x16c)],_0x2ce9e1=global?.[_0x4bdb42(0x172)]?.['workerInfo']?.[_0x4bdb42(0x1d7)],_0x1b245c=_0x122016?.[_0x4bdb42(0x18f)]||_0x32cc94?.[_0x4bdb42(0x18f)],_0x4f384c=_0x122016?.[_0x4bdb42(0x20d)]||_0x32cc94?.['platformDetails'];_0x1b245c&&(this['logger'][_0x4bdb42(0x186)](_0x4bdb42(0x189)+_0x1b245c),AutomationFramework[_0x4bdb42(0x16b)](_0x3a38ac,PlaywrightDriverModule[_0x4bdb42(0x212)],_0x1b245c)),_0x2ce9e1&&(this['logger'][_0x4bdb42(0x186)](_0x4bdb42(0x16e)+util[_0x4bdb42(0x1db)](_0x2ce9e1)),AutomationFramework[_0x4bdb42(0x16b)](_0x3a38ac,PlaywrightDriverModule[_0x4bdb42(0x225)],_0x2ce9e1));}}catch(_0x5e006d){this['logger'][_0x4bdb42(0x18c)]('Error\x20in\x20onDispatchExecute:\x20'+util[_0x4bdb42(0x211)](_0x5e006d));}}async[a89_0x5298eb(0x1c9)](_0x248956){const _0x1529b6=a89_0x5298eb,_0x570f3c={'RulNR':'onAfterDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','cSQuU':function(_0x530730,_0x3fc7cb){return _0x530730(_0x3fc7cb);},'ryYSL':_0x1529b6(0x1d0),'WvYNg':'onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','MZAjT':_0x1529b6(0x18e),'HjVsw':_0x1529b6(0x216),'ZBBcV':_0x1529b6(0x220),'kCAwO':function(_0x3c47a7,_0x7d4559){return _0x3c47a7===_0x7d4559;}};try{this[_0x1529b6(0x17d)]['debug'](_0x570f3c[_0x1529b6(0x226)]);const _0x5a39a9=_0x248956[_0x1529b6(0x16c)];this[_0x1529b6(0x1ac)]=_0x570f3c[_0x1529b6(0x1c2)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);if(_0x248956['page']){this[_0x1529b6(0x17d)][_0x1529b6(0x186)](_0x570f3c['ryYSL']),AutomationFramework['setState'](_0x5a39a9,PlaywrightDriverModule[_0x1529b6(0x1f8)],_0x248956[_0x1529b6(0x18d)]);if(_0x248956[_0x1529b6(0x1cf)]){this[_0x1529b6(0x17d)]['debug'](_0x570f3c[_0x1529b6(0x1c5)]);const _0x2cae5c=this[_0x1529b6(0x1b1)](_0x248956);AutomationFramework['setState'](_0x5a39a9,PlaywrightDriverModule[_0x1529b6(0x196)],_0x2cae5c),await this[_0x1529b6(0x1d2)](_0x248956[_0x1529b6(0x1cf)]);}}_0x248956[_0x1529b6(0x18a)]&&(this[_0x1529b6(0x17d)][_0x1529b6(0x186)](_0x570f3c[_0x1529b6(0x228)]),AutomationFramework[_0x1529b6(0x16b)](_0x5a39a9,PlaywrightDriverModule[_0x1529b6(0x20b)],_0x248956[_0x1529b6(0x18a)]));if(_0x248956['browser']){this[_0x1529b6(0x17d)][_0x1529b6(0x186)](_0x570f3c[_0x1529b6(0x1c0)]);const _0x5aba6d=global?.['__workerDetails']?.[_0x1529b6(0x1bf)]?.['parallelIndex'];AutomationFramework['setState'](_0x5a39a9,PlaywrightDriverModule[_0x1529b6(0x207)],_0x248956[_0x1529b6(0x1af)]),AutomationFramework['setState'](_0x5a39a9,PlaywrightDriverModule[_0x1529b6(0x225)],_0x5aba6d);const _0x5832e6={};_0x5832e6[_0x1529b6(0x18b)]=!![];const _0x3038a4=Buffer[_0x1529b6(0x1d9)](JSON['stringify'](_0x5832e6)[_0x1529b6(0x200)](_0x570f3c[_0x1529b6(0x21a)])),_0x258518=await GrpcClient['getInstance']()['driverInit']({'platformIndex':_0x5aba6d,'ref':_0x5a39a9[_0x1529b6(0x1ea)](),'userInputParams':_0x3038a4});(helper['isFalse'](helper[_0x1529b6(0x20a)]())||helper['isTrue'](helper[_0x1529b6(0x20a)]()&&BrowserstackCLI[_0x1529b6(0x1fd)]()[_0x1529b6(0x177)]()[_0x1529b6(0x1ff)]&&_0x570f3c['kCAwO'](BrowserstackCLI[_0x1529b6(0x1fd)]()[_0x1529b6(0x177)]()['platforms'][_0x1529b6(0x1da)],0x0)))&&AutomationFramework['setState'](_0x5a39a9,PlaywrightDriverModule[_0x1529b6(0x1ed)],PlaywrightSessionDetails[_0x1529b6(0x171)]());}}catch(_0x400f87){this[_0x1529b6(0x17d)][_0x1529b6(0x18c)](_0x1529b6(0x1e9)+util[_0x1529b6(0x211)](_0x400f87));}}async[a89_0x5298eb(0x191)](_0x10f4d3){const _0x212dfc=a89_0x5298eb,_0x258b1d={'XQafy':_0x212dfc(0x1fc),'ISHjE':_0x212dfc(0x222),'WAYfI':function(_0x14aad6,_0x2a845b){return _0x14aad6(_0x2a845b);},'clDlB':function(_0x449e69,_0x5a60f6){return _0x449e69(_0x5a60f6);},'oEdzC':function(_0x44e3bb,_0x3b4380,_0x4ba61a){return _0x44e3bb(_0x3b4380,_0x4ba61a);},'veciF':_0x212dfc(0x1c7),'moYkh':_0x212dfc(0x1fb),'zAjpu':function(_0x725183,_0x39871d){return _0x725183(_0x39871d);},'ibVwA':_0x212dfc(0x18c),'xfeHO':function(_0x451894,_0x2ac9f4,_0x34f13a){return _0x451894(_0x2ac9f4,_0x34f13a);},'kBSRl':_0x212dfc(0x20e),'gYFGi':function(_0x47d99f,_0x55f020){return _0x47d99f>_0x55f020;},'FSwCv':function(_0x5b0dd3,_0x32078b){return _0x5b0dd3||_0x32078b;},'SpxwZ':function(_0x4be687,_0x5d8244){return _0x4be687||_0x5d8244;},'tytJH':function(_0x5eb365,_0x312ca2){return _0x5eb365===_0x312ca2;},'FtsBb':function(_0x14773c,_0x274017){return _0x14773c===_0x274017;},'qNktr':function(_0x1c2298,_0x3bf8e2){return _0x1c2298+_0x3bf8e2;},'dEmKk':'testId:\x20','budeq':'testData\x20from\x20onAfterTest:\x20','WOxkd':function(_0x4acb7c,_0x573f06){return _0x4acb7c(_0x573f06);},'BAbTY':_0x212dfc(0x176),'xwOot':_0x212dfc(0x20f),'BPMAo':function(_0x4776b0){return _0x4776b0();},'kaHSj':_0x212dfc(0x220),'nlenJ':function(_0x4ce8bb,_0x3a4bbf){return _0x4ce8bb===_0x3a4bbf;},'fEqIJ':_0x212dfc(0x1ee)};this['logger'][_0x212dfc(0x186)](_0x258b1d['XQafy']);const _0x2339be=_0x10f4d3[_0x212dfc(0x16c)];if(!_0x2339be){this[_0x212dfc(0x17d)][_0x212dfc(0x186)](_0x258b1d['ISHjE']);return;}const _0x1ebe94=_0x10f4d3[_0x212dfc(0x1cf)],_0x163e04=this['getTestId'](_0x10f4d3),_0x337bf8=_0x1ebe94[_0x212dfc(0x188)];let _0x5df1c3;const _0x3225be=_0x258b1d['WAYfI'](getPlaywrightStatus,_0x337bf8);let _0x7fa418,_0x35e315=null;if(_0x1ebe94[_0x212dfc(0x195)]||_0x1ebe94[_0x212dfc(0x1fa)])_0x7fa418=_0x258b1d[_0x212dfc(0x1a2)](getCucumberSessionName,_0x1ebe94),_0x5df1c3=_0x258b1d['oEdzC'](nestedKeyValue,_0x1ebe94,[_0x258b1d[_0x212dfc(0x1bc)],_0x258b1d[_0x212dfc(0x1c1)]]);else{_0x7fa418=_0x258b1d['zAjpu'](getPlaywrightSessionName,_0x1ebe94),_0x5df1c3=_0x258b1d['oEdzC'](nestedKeyValue,_0x1ebe94,[_0x258b1d[_0x212dfc(0x1cc)],_0x258b1d['moYkh']]);const _0x441e78=_0x258b1d[_0x212dfc(0x17e)](nestedKeyValue,_0x1ebe94,[_0x258b1d[_0x212dfc(0x1ce)]]);_0x441e78&&_0x258b1d[_0x212dfc(0x1a4)](_0x441e78['length'],0x0)&&(_0x35e315=_0x441e78[0x0][_0x212dfc(0x1fb)]),_0x5df1c3=_0x258b1d[_0x212dfc(0x205)](_0x5df1c3,_0x35e315),this['logger'][_0x212dfc(0x186)]('Automation\x20onAfterTest:\x20Test\x20status:\x20'+_0x3225be+_0x212dfc(0x19e)+_0x5df1c3);}const _0x473291=_0x258b1d[_0x212dfc(0x1e4)](_0x5df1c3,_0x35e315);this[_0x212dfc(0x17d)][_0x212dfc(0x186)]('Automation\x20onAfterTest:\x20Test\x20status:\x20'+_0x3225be);let _0x478715,_0x59671c;if(this[_0x212dfc(0x199)]&&_0x258b1d[_0x212dfc(0x202)](this[_0x212dfc(0x199)]['name'],FRAMEWORKS['CUCUMBER']))_0x478715=_0x163e04,_0x59671c=TestInfo[_0x212dfc(0x1b7)](_0x478715);else this['testFrameworkData']&&_0x258b1d[_0x212dfc(0x1d1)](this[_0x212dfc(0x199)][_0x212dfc(0x194)],FRAMEWORKS[_0x212dfc(0x1ab)])?(_0x478715=this['jestUtils'][_0x212dfc(0x174)](_0x1ebe94),this['logger'][_0x212dfc(0x186)](_0x212dfc(0x1e5)+_0x478715)):(_0x478715=TestInfo[_0x212dfc(0x1f0)](_0x1ebe94,_0x1ebe94[_0x212dfc(0x16f)]),_0x59671c=TestInfo['getTestUUID'](_0x478715));const _0x43d6f4=TestInfo[_0x212dfc(0x1b5)](_0x478715);this['logger'][_0x212dfc(0x16a)](_0x258b1d[_0x212dfc(0x1ec)](_0x258b1d[_0x212dfc(0x1f1)],_0x163e04)),this['logger'][_0x212dfc(0x16a)](_0x258b1d[_0x212dfc(0x1ec)](_0x258b1d[_0x212dfc(0x1c4)],util[_0x212dfc(0x1db)](_0x43d6f4)));const _0x3bd230=AutomationFramework[_0x212dfc(0x213)](_0x2339be,PlaywrightDriverModule[_0x212dfc(0x225)]),_0xefe7d=_0x43d6f4?.[TestFrameworkConstants[_0x212dfc(0x1bd)]]||this[_0x212dfc(0x199)]&&this['testFrameworkData'][_0x212dfc(0x194)],_0x4f7da7=_0x43d6f4?.[TestFrameworkConstants[_0x212dfc(0x210)]]||this[_0x212dfc(0x199)]&&this[_0x212dfc(0x199)][_0x212dfc(0x201)],_0x4ce9c7=TestFrameworkState[_0x212dfc(0x1f4)]['toString']()['split']('.')[0x1],_0x25accc=HookState['POST']['toString']()['split']('.')[0x1],_0x40e3eb=_0x2339be['getContext'](),_0x3110e7=AutomationFramework[_0x212dfc(0x213)](_0x2339be,PlaywrightDriverModule['KEY_HUB_URL'],''),_0xc48608={'provider':_0x258b1d[_0x212dfc(0x1f3)](getPlaywrightProvider,_0x3110e7),'frameworkName':_0x258b1d['BAbTY'],'frameworkVersion':_0x258b1d[_0x212dfc(0x1f6)],'frameworkSessionId':LoadTestModule['isLTSSession']()?LoadTestModule[_0x212dfc(0x1f2)]():AutomationFramework[_0x212dfc(0x213)](_0x2339be,PlaywrightDriverModule[_0x212dfc(0x212)],''),'ref':_0x2339be[_0x212dfc(0x1ea)](),'hubUrl':_0x3110e7,'product':_0x258b1d['BPMAo'](getProductForSession)};let _0x47ba1b=AutomationFramework['getState'](_0x2339be,PlaywrightDriverModule['KEY_CAPABILITIES'],{});_0x47ba1b&&_0x258b1d[_0x212dfc(0x1a4)](Object['keys'](_0x47ba1b)['length'],0x0)?_0x47ba1b=Buffer['from'](JSON[_0x212dfc(0x1e6)](_0x47ba1b))[_0x212dfc(0x200)](_0x258b1d[_0x212dfc(0x19c)]):_0x47ba1b=Buffer['from'](JSON[_0x212dfc(0x1e6)]({}))[_0x212dfc(0x200)](_0x258b1d[_0x212dfc(0x19c)]);const _0xcf0c1f={'hash':_0x40e3eb[_0x212dfc(0x17b)](),'threadId':_0x40e3eb[_0x212dfc(0x1e8)]()['toString'](),'processId':_0x40e3eb[_0x212dfc(0x206)]()['toString']()},_0x518f46={};_0x518f46[_0x212dfc(0x19b)]=_0x478715;const _0xa68cd5={};_0xa68cd5[_0x212dfc(0x185)]=_0x59671c;const _0x9c0992={'platformIndex':_0x3bd230,'testFrameworkName':_0xefe7d,'testFrameworkVersion':_0x4f7da7,'testFrameworkState':_0x4ce9c7,'testHookState':_0x25accc,...this[_0x212dfc(0x199)]&&_0x258b1d[_0x212dfc(0x223)](this[_0x212dfc(0x199)][_0x212dfc(0x194)],FRAMEWORKS[_0x212dfc(0x1ab)])?_0x518f46:_0xa68cd5,'automationSession':_0xc48608,'capabilities':_0x47ba1b,'executionContext':_0xcf0c1f};this[_0x212dfc(0x17d)][_0x212dfc(0x186)]('onAfterTest\x20CBTSession\x20payload:\x20'+util[_0x212dfc(0x211)](_0x9c0992)),GrpcClient['getInstance']()['testSessionEvent'](_0x9c0992),this[_0x212dfc(0x17d)][_0x212dfc(0x186)](_0x212dfc(0x1dd)+_0x163e04+(this[_0x212dfc(0x199)]&&_0x258b1d[_0x212dfc(0x223)](this[_0x212dfc(0x199)][_0x212dfc(0x194)],FRAMEWORKS[_0x212dfc(0x1ab)])?_0x212dfc(0x170)+_0x478715:''));if(!_0x3225be){this[_0x212dfc(0x17d)][_0x212dfc(0x186)](_0x258b1d[_0x212dfc(0x229)],_0x337bf8[_0x212dfc(0x188)]);return;}this['logger']['debug'](_0x212dfc(0x197)+_0x163e04),_0x1ebe94&&(this[_0x212dfc(0x17d)][_0x212dfc(0x186)](_0x212dfc(0x21e)+_0x7fa418),await this['markSessionName'](_0x1ebe94)),await this['markSessionStatus'](_0x2339be,_0x7fa418,_0x3225be,_0x473291);}async[a89_0x5298eb(0x1e7)](_0x2c547d,_0x54a37f,_0x2be3e0,_0x31344d){const _0xb7bdaf=a89_0x5298eb,_0x152e30={'bSoGF':_0xb7bdaf(0x1f5),'EmkHP':_0xb7bdaf(0x168),'lZqWj':_0xb7bdaf(0x1ae),'LeQly':_0xb7bdaf(0x1ee),'BzeHZ':'setSessionStatus','oIkyU':'reason','IFgaN':_0xb7bdaf(0x1b0),'tABIX':function(_0xff4e2a,_0x1af906){return _0xff4e2a===_0x1af906;},'TqPkn':_0xb7bdaf(0x1ad),'TPFno':_0xb7bdaf(0x16a),'ncxig':_0xb7bdaf(0x18c),'BtMah':function(_0x55a563,_0x3b3cab,_0x2cd3c7,_0x305475){return _0x55a563(_0x3b3cab,_0x2cd3c7,_0x305475);},'LEgoi':'markSessionStatus:\x20Marking\x20session\x20status','Jvxrr':function(_0x1c41ed,_0x48d641,_0x4e2fa1){return _0x1c41ed(_0x48d641,_0x4e2fa1);}};if(CLIUtils[_0xb7bdaf(0x17a)](BrowserstackCLI[_0xb7bdaf(0x1fd)]()['getConfig']())){this[_0xb7bdaf(0x17d)][_0xb7bdaf(0x186)](_0x152e30[_0xb7bdaf(0x1d4)]);return;}const _0x4599cd=_0x2c547d;if(!_0x4599cd){this[_0xb7bdaf(0x17d)]['debug'](_0x152e30['EmkHP']);return;}const _0x13a1db=AutomationFramework['getState'](_0x4599cd,PlaywrightDriverModule[_0xb7bdaf(0x1f8)]);if(!_0x13a1db){this['logger'][_0xb7bdaf(0x186)](_0x152e30['lZqWj']);return;}const _0x3616e6=_0x2be3e0;if(!_0x3616e6){this['logger']['debug'](_0x152e30[_0xb7bdaf(0x21d)],_0x3616e6);return;}const _0x1b1c4b={};_0x1b1c4b[_0xb7bdaf(0x188)]=_0x3616e6;const _0x57d202={};_0x57d202[_0xb7bdaf(0x1b8)]=_0x152e30['BzeHZ'],_0x57d202[_0xb7bdaf(0x1e0)]=_0x1b1c4b;const _0x173277=_0x57d202;_0x31344d&&(_0x173277[_0xb7bdaf(0x1e0)][_0x152e30[_0xb7bdaf(0x1bb)]]=_0x31344d);const _0x33a21c=(_0x54a37f?_0x54a37f:_0x152e30[_0xb7bdaf(0x1be)])+'\x20'+_0x3616e6+'\x20'+(_0x31344d?_0xb7bdaf(0x1e2)+_0x31344d:''),_0x34f943=_0x152e30[_0xb7bdaf(0x21b)](_0x3616e6,_0x152e30['TqPkn'])?_0x152e30[_0xb7bdaf(0x1d5)]:_0x152e30[_0xb7bdaf(0x198)];await _0x152e30[_0xb7bdaf(0x224)](playwrightAnnotate,_0x13a1db,_0x33a21c,_0x34f943),_0x31344d&&(_0x173277[_0xb7bdaf(0x1e0)][_0x152e30[_0xb7bdaf(0x1bb)]]=_0x31344d),PerformanceTester[_0xb7bdaf(0x1a7)](PerformanceEvents[_0xb7bdaf(0x218)]),this[_0xb7bdaf(0x17d)][_0xb7bdaf(0x186)](_0x152e30[_0xb7bdaf(0x219)]),await _0x152e30[_0xb7bdaf(0x217)](playwrightBstackJsExecutor,_0x13a1db,_0x173277),PerformanceTester[_0xb7bdaf(0x204)](PerformanceEvents[_0xb7bdaf(0x218)]);}async[a89_0x5298eb(0x1d2)](_0x39258e){const _0x1afdd2=a89_0x5298eb,_0x275529={'Ncnjr':_0x1afdd2(0x21f),'rIFDY':function(_0x58a430,_0x587f21){return _0x58a430(_0x587f21);},'czPcg':function(_0x1aa233,_0x47f405){return _0x1aa233(_0x47f405);},'qnPVB':_0x1afdd2(0x221),'Ffdys':function(_0x559521,_0x5ef602,_0xf5f349){return _0x559521(_0x5ef602,_0xf5f349);}};try{if(CLIUtils['shouldSkipSessionName'](BrowserstackCLI['getInstance']()[_0x1afdd2(0x177)]())){this[_0x1afdd2(0x17d)]['debug'](_0x275529['Ncnjr']);return;}const _0x16ead9=AutomationFramework[_0x1afdd2(0x213)](AutomationFramework[_0x1afdd2(0x180)](),PlaywrightDriverModule[_0x1afdd2(0x1f8)]);let _0x4f05f4;_0x39258e[_0x1afdd2(0x195)]||_0x39258e[_0x1afdd2(0x1fa)]?_0x4f05f4=_0x275529[_0x1afdd2(0x1b6)](getCucumberSessionName,_0x39258e):_0x4f05f4=_0x275529[_0x1afdd2(0x179)](getPlaywrightSessionName,_0x39258e);const _0x2f6dc7={};_0x2f6dc7['name']=_0x4f05f4;const _0x43a095={};_0x43a095[_0x1afdd2(0x1b8)]=_0x275529[_0x1afdd2(0x1eb)],_0x43a095[_0x1afdd2(0x1e0)]=_0x2f6dc7;const _0x392ed3=_0x43a095;PerformanceTester[_0x1afdd2(0x1a7)](PerformanceEvents[_0x1afdd2(0x1c8)]),await _0x275529[_0x1afdd2(0x1d3)](playwrightBstackJsExecutor,_0x16ead9,_0x392ed3),PerformanceTester['end'](PerformanceEvents[_0x1afdd2(0x1c8)]);}catch(_0x1c7650){PerformanceTester[_0x1afdd2(0x204)](PerformanceEvents[_0x1afdd2(0x1c8)],![],util['format'](_0x1c7650)),this['logger'][_0x1afdd2(0x18c)](_0x1afdd2(0x1c3)+util[_0x1afdd2(0x211)](_0x1c7650));}}}PlaywrightDriverModule[a89_0x5298eb(0x182)]=a89_0x5298eb(0x1ef),module[a89_0x5298eb(0x1b9)]=PlaywrightDriverModule;
1
+ function a89_0xf266(){const _0x4820a1=['hYzXZ','KeIYx','dLdAJ','base64','testSessionEvent','Playwright','markSessionStatus:\x20Marking\x20session\x20status','stringify','onAfterDriverCreate:\x20Setting\x20page\x20object','getModuleName','../utils/jest-utils.js','isTrue','testFrameworkData','../../playwright/sessionDetails','UgVNx','AUTOMATE_EVENTS','myBpi','from','9772119VMFvJE','AFyln','xMgVU','uiVEA','EXECUTE','getTestDetails','1.51.0','BvUXo','CUCUMBER','markSessionStatus:\x20Skipping\x20session\x20status\x20marking','action','contextObject','markSessionName:\x20Skipping\x20session\x20name\x20marking','errors','hmBjl','../browserstackCLI.js','playwrightVersion','format','../state/testFrameworkState','cPyAW','onDispatchExecute:\x20Playwright\x20driver\x20is\x20executing\x20tests\x20','CREATE','OyDlU','xRTSn','onAfterDriverCreate:\x20Setting\x20browser\x20object','PLAYWRIGHT_DISPATCH','setSessionName','recreateIdentifierFromTestInfo',',\x20test_identifier:\x20','reason','../framework/automationFramework.js','../../../helpers/helper.js','getProcessId','bsParams','hubUrl','markSessionName','bStackParams','onAfterDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','split','bind','Automation\x20onAfterTest:\x20Setting\x20session\x20name\x20to:\x20','FxMNR','./baseModule','Auxxe','inspect','page','markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available','yemme','registerObserver','logger','retry','platforms','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','POST','../../../helpers/classLogger.js','onAfterDriverCreate','testRunId','iuAUj','shouldSkipSessionStatus','gherkinDocument','3432WQGioY','1791eeMHVX','PRE','markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','Automation\x20onAfterTest:\x20Test\x20status:\x20','Automation\x20onAfterTest:\x20Test\x20completed','onPlaywrightDispatch','parallelIndex','KEY_PAGE_OBJECT','platformIndex','./loadTestModule.js','onDispatchExecute:\x20Playwright\x20sessionId:\x20','197BxpExJ','onBeforeDriverCreate','../TestInfo.js','testData\x20from\x20onAfterTest:\x20','Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','getConfig','driverInit','with\x20','SESSION_STATUS','KEY_PLATFORM_INDEX','test_identifier','name','PwHjZ','onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','PLAYWRIGHT','exports','jestUtils','PlaywrightDriverModule','jHhsV','Yfxzi','JgJrm','onAfterTest','getState','getTestIdentifierFromTestInfo','onAfterTest\x20CBTSession\x20payload:\x20','browserObject','TTjgq','error','KEY_SESSION_ID','toString','status','../../../helpers/performance/performance-tester.js','\x20failure\x20reason:\x20','qKOxK','../framework/constants/testFrameworkConstants.js','pskyz','Error\x20in\x20onDispatchExecute:\x20','shouldSkipSessionName','info','tgTzp','mdMEh','keys','markSessionStatus','__workerDetails','testInfo','isPlaywright','JEST','lPxiU','viSLx','message','platformDetails','getLTSSessionId','../../../helpers/test-observability/utils','browser','context','../cliUtils.js','HdUCj','9070mInDQf','bWCbx','Error\x20in\x20onBeforeDriverCreate:\x20','end','OpqRO','result','\x20||\x20','jPNvL','params','2750555dRAfZc','KEY_PLATFORM_DETAILS','isBrowserstackInfra','onAfterTest\x20CBTSession\x20complete\x20for\x20testId:\x20','Error\x20in\x20onAfterDriverCreate:\x20','../grpcClient.js','getId','util','KEY_BROWSER_OBJECT','SESSION_NAME','KEY_CAPABILITIES','arguments','gtDan','fApjo','debug','SbEyY','Automation\x20onAfterTest:\x20Setting\x20session\x20name\x20and\x20status\x20for\x20testId:\x20','setSessionStatus','getTestUUID','MODULE_NAME','../state/hookState.js','NFPQB','812928fJBhIX','getRef','sessionId','onAfterDriverCreate:\x20Setting\x20context\x20object','getInstance','passed','TNlOV','4435568JoeCBC','browserName','instance','start','VMJGd','KEY_TEST_ID','KEY_HUB_URL','4340598txKIva','length','setState','tZaqr'];a89_0xf266=function(){return _0x4820a1;};return a89_0xf266();}const a89_0x507106=a89_0x1275;(function(_0x5cb287,_0x581ae2){const _0x1622e9=a89_0x1275,_0xe43ff0=_0x5cb287();while(!![]){try{const _0x2fce6e=parseInt(_0x1622e9(0x1e2))/0x1*(-parseInt(_0x1622e9(0x21b))/0x2)+parseInt(_0x1622e9(0x23a))/0x3+-parseInt(_0x1622e9(0x241))/0x4+parseInt(_0x1622e9(0x224))/0x5+parseInt(_0x1622e9(0x248))/0x6+parseInt(_0x1622e9(0x25e))/0x7+-parseInt(_0x1622e9(0x1d6))/0x8*(parseInt(_0x1622e9(0x1d7))/0x9);if(_0x2fce6e===_0x581ae2)break;else _0xe43ff0['push'](_0xe43ff0['shift']());}catch(_0x14961b){_0xe43ff0['push'](_0xe43ff0['shift']());}}}(a89_0xf266,0xd038f));function a89_0x1275(_0x32aa4e,_0x5a41d5){const _0xf266d7=a89_0xf266();return a89_0x1275=function(_0x127557,_0xd7a770){_0x127557=_0x127557-0x1ae;let _0x346ef4=_0xf266d7[_0x127557];return _0x346ef4;},a89_0x1275(_0x32aa4e,_0x5a41d5);}const util=require(a89_0x507106(0x22b)),BaseModule=require(a89_0x507106(0x1c4)),{createClassLogger}=require(a89_0x507106(0x1d0)),{getFrameworkVersion}=require(a89_0x507106(0x216)),helper=require('../../../helpers/helper'),{FRAMEWORKS}=require('../../utils/constants'),AutomationFramework=require(a89_0x507106(0x1b8)),AutomationFrameworkState=require('../state/automationFrameworkState.js'),HookState=require(a89_0x507106(0x238)),{playwrightBstackJsExecutor,nestedKeyValue,playwrightAnnotate,getPlaywrightStatus,getPlaywrightSessionName,getCucumberSessionName}=require(a89_0x507106(0x1b9)),CLIUtils=require(a89_0x507106(0x219)),BrowserstackCLI=require(a89_0x507106(0x26d)),GrpcClient=require(a89_0x507106(0x229)),PerformanceTester=require(a89_0x507106(0x201)),PerformanceEvents=require('../../../helpers/performance/constants.js')[a89_0x507106(0x25b)],TestInfo=require(a89_0x507106(0x1e4)),{getPlaywrightProvider,getProductForSession}=require(a89_0x507106(0x1b9)),LoadTestModule=require(a89_0x507106(0x1e0)),TestFrameworkConstants=require(a89_0x507106(0x204)),TestFrameworkState=require(a89_0x507106(0x270)),JestUtils=require(a89_0x507106(0x256)),PlaywrightSessionDetails=require(a89_0x507106(0x259));class PlaywrightDriverModule extends BaseModule{static [a89_0x507106(0x22c)]=a89_0x507106(0x1fb);static ['KEY_CONTEXT_OBJECT']=a89_0x507106(0x269);static ['KEY_PAGE_OBJECT']='pageObject';static [a89_0x507106(0x1fe)]='sessionId';static [a89_0x507106(0x1eb)]=a89_0x507106(0x1df);static [a89_0x507106(0x22e)]='capabilities';static [a89_0x507106(0x247)]=a89_0x507106(0x1bc);static [a89_0x507106(0x225)]=a89_0x507106(0x214);static [a89_0x507106(0x246)]='testId';[a89_0x507106(0x1cb)]=createClassLogger(a89_0x507106(0x1f3));constructor(_0x2338fa=null){const _0x51cf57=a89_0x507106,_0x187ded={};_0x187ded['hYzXZ']='0|5|8|4|1|9|6|11|7|10|3|2',_0x187ded[_0x51cf57(0x24b)]=_0x51cf57(0x1f3);const _0x51b0d6=_0x187ded,_0x5681d6=_0x51b0d6[_0x51cf57(0x24c)][_0x51cf57(0x1c0)]('|');let _0x115c51=0x0;while(!![]){switch(_0x5681d6[_0x115c51++]){case'0':super(_0x2338fa);continue;case'1':this['browserVersion']=null;continue;case'2':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x51cf57(0x262)],HookState['POST'],this[_0x51cf57(0x1f7)][_0x51cf57(0x1c1)](this));continue;case'3':AutomationFramework[_0x51cf57(0x1ca)](AutomationFrameworkState[_0x51cf57(0x1b3)],HookState[_0x51cf57(0x1cf)],this[_0x51cf57(0x1dc)][_0x51cf57(0x1c1)](this));continue;case'4':this[_0x51cf57(0x242)]=null;continue;case'5':this['name']=_0x51b0d6[_0x51cf57(0x24b)];continue;case'6':this[_0x51cf57(0x1d2)]=null;continue;case'7':AutomationFramework[_0x51cf57(0x1ca)](AutomationFrameworkState[_0x51cf57(0x1af)],HookState[_0x51cf57(0x1d8)],this[_0x51cf57(0x1e3)][_0x51cf57(0x1c1)](this));continue;case'8':this[_0x51cf57(0x26e)]=null;continue;case'9':this['platforms']=[];continue;case'10':AutomationFramework[_0x51cf57(0x1ca)](AutomationFrameworkState['CREATE'],HookState['POST'],this['onAfterDriverCreate'][_0x51cf57(0x1c1)](this));continue;case'11':this['jestUtils']=new JestUtils();continue;}break;}}[a89_0x507106(0x255)](){const _0x189ca2=a89_0x507106;return PlaywrightDriverModule[_0x189ca2(0x237)];}async[a89_0x507106(0x1e3)](_0x14441e){const _0x24af47=a89_0x507106,_0x21be51={};_0x21be51[_0x24af47(0x261)]='onBeforeDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created';const _0x4d70e8=_0x21be51;try{this['logger'][_0x24af47(0x232)](_0x4d70e8[_0x24af47(0x261)]);const _0x412461=_0x14441e['launchcaps'],_0x6b1b81=_0x14441e[_0x24af47(0x1bc)];AutomationFramework[_0x24af47(0x24a)](_0x14441e[_0x24af47(0x243)],PlaywrightDriverModule[_0x24af47(0x22e)],_0x412461),AutomationFramework[_0x24af47(0x24a)](_0x14441e[_0x24af47(0x243)],PlaywrightDriverModule['KEY_HUB_URL'],_0x6b1b81);}catch(_0x4742f9){this[_0x24af47(0x1cb)][_0x24af47(0x1fd)](_0x24af47(0x21d)+util[_0x24af47(0x26f)](_0x4742f9));}}async['onPlaywrightDispatch'](_0x3b05f6){const _0x21c711=a89_0x507106,_0x3f0326={};_0x3f0326['HdUCj']=function(_0x6ca96d,_0x6c4e0){return _0x6ca96d||_0x6c4e0;};const _0x3c7cec=_0x3f0326;try{const _0x20f813=_0x3b05f6?.[_0x21c711(0x213)]&&_0x3b05f6?.[_0x21c711(0x213)]?.[_0x21c711(0x223)]&&_0x3b05f6?.[_0x21c711(0x213)]?.['params']?.[_0x21c711(0x1bb)],_0x5c1987=_0x3b05f6?.['message']&&_0x3b05f6?.[_0x21c711(0x213)]?.[_0x21c711(0x1be)];if(_0x3c7cec[_0x21c711(0x21a)](_0x20f813,_0x5c1987)){this[_0x21c711(0x1cb)]['debug'](_0x21c711(0x1ae)+util[_0x21c711(0x1c6)](_0x20f813)+_0x21c711(0x221)+util[_0x21c711(0x1c6)](_0x5c1987));const _0x1779c5=_0x3b05f6?.['instance'],_0x4ffb45=global?.[_0x21c711(0x20d)]?.['workerInfo']?.[_0x21c711(0x1dd)],_0x4ba8aa=_0x20f813?.[_0x21c711(0x23c)]||_0x5c1987?.[_0x21c711(0x23c)],_0x5106cc=_0x20f813?.[_0x21c711(0x214)]||_0x5c1987?.[_0x21c711(0x214)];_0x4ba8aa&&(this[_0x21c711(0x1cb)]['debug'](_0x21c711(0x1e1)+_0x4ba8aa),AutomationFramework[_0x21c711(0x24a)](_0x1779c5,PlaywrightDriverModule['KEY_SESSION_ID'],_0x4ba8aa)),_0x4ffb45&&(this['logger'][_0x21c711(0x232)]('onDispatchExecute:\x20Playwright\x20platform\x20platformIndex:\x20'+util[_0x21c711(0x1c6)](_0x4ffb45)),AutomationFramework[_0x21c711(0x24a)](_0x1779c5,PlaywrightDriverModule['KEY_PLATFORM_INDEX'],_0x4ffb45));}}catch(_0x4d9419){this[_0x21c711(0x1cb)]['error'](_0x21c711(0x206)+util['format'](_0x4d9419));}}async[a89_0x507106(0x1d1)](_0x28af1b){const _0x411745=a89_0x507106,_0x225a02={'PwHjZ':_0x411745(0x1bf),'KYeMW':function(_0x455907,_0x13cc23){return _0x455907(_0x13cc23);},'CKLdf':_0x411745(0x254),'SbEyY':_0x411745(0x1ef),'mdMEh':_0x411745(0x23d),'Ryjck':_0x411745(0x1b2),'FxMNR':'base64','OpqRO':function(_0x166922,_0x1fe50d){return _0x166922===_0x1fe50d;}};try{this['logger'][_0x411745(0x232)](_0x225a02[_0x411745(0x1ee)]);const _0x1d29dd=_0x28af1b['instance'];this[_0x411745(0x26e)]=_0x225a02['KYeMW'](getFrameworkVersion,FRAMEWORKS[_0x411745(0x1f0)]);if(_0x28af1b[_0x411745(0x1c7)]){this['logger'][_0x411745(0x232)](_0x225a02['CKLdf']),AutomationFramework[_0x411745(0x24a)](_0x1d29dd,PlaywrightDriverModule['KEY_PAGE_OBJECT'],_0x28af1b['page']);if(_0x28af1b['testInfo']){this[_0x411745(0x1cb)][_0x411745(0x232)](_0x225a02[_0x411745(0x233)]);const _0x5f0763=this['getTestId'](_0x28af1b);AutomationFramework[_0x411745(0x24a)](_0x1d29dd,PlaywrightDriverModule[_0x411745(0x246)],_0x5f0763),await this['markSessionName'](_0x28af1b[_0x411745(0x20e)]);}}_0x28af1b[_0x411745(0x218)]&&(this[_0x411745(0x1cb)][_0x411745(0x232)](_0x225a02[_0x411745(0x20a)]),AutomationFramework['setState'](_0x1d29dd,PlaywrightDriverModule['KEY_CONTEXT_OBJECT'],_0x28af1b[_0x411745(0x218)]));if(_0x28af1b[_0x411745(0x217)]){this[_0x411745(0x1cb)]['debug'](_0x225a02['Ryjck']);const _0x189f5b=global?.[_0x411745(0x20d)]?.['workerInfo']?.['parallelIndex'];AutomationFramework['setState'](_0x1d29dd,PlaywrightDriverModule[_0x411745(0x22c)],_0x28af1b[_0x411745(0x217)]),AutomationFramework['setState'](_0x1d29dd,PlaywrightDriverModule[_0x411745(0x1eb)],_0x189f5b);const _0x75bffe={};_0x75bffe[_0x411745(0x20f)]=!![];const _0xdc6b3d=Buffer['from'](JSON[_0x411745(0x253)](_0x75bffe)[_0x411745(0x1ff)](_0x225a02[_0x411745(0x1c3)])),_0x51d8ee=await GrpcClient[_0x411745(0x23e)]()[_0x411745(0x1e8)]({'platformIndex':_0x189f5b,'ref':_0x1d29dd[_0x411745(0x23b)](),'userInputParams':_0xdc6b3d});(helper['isFalse'](helper[_0x411745(0x226)]())||helper[_0x411745(0x257)](helper[_0x411745(0x226)]()&&BrowserstackCLI[_0x411745(0x23e)]()[_0x411745(0x1e7)]()[_0x411745(0x1cd)]&&_0x225a02[_0x411745(0x21f)](BrowserstackCLI[_0x411745(0x23e)]()[_0x411745(0x1e7)]()[_0x411745(0x1cd)]['length'],0x0)))&&AutomationFramework['setState'](_0x1d29dd,PlaywrightDriverModule[_0x411745(0x22e)],PlaywrightSessionDetails['getDetails']());}}catch(_0x2ddeaa){this[_0x411745(0x1cb)][_0x411745(0x1fd)](_0x411745(0x228)+util[_0x411745(0x26f)](_0x2ddeaa));}}async[a89_0x507106(0x1f7)](_0x18a34c){const _0x53c233=a89_0x507106,_0x101f13={'jHhsV':_0x53c233(0x1db),'KeIYx':_0x53c233(0x1e6),'tgTzp':function(_0xda4829,_0x53e2dd){return _0xda4829(_0x53e2dd);},'pskyz':function(_0x8a4161,_0x3e2b84){return _0x8a4161(_0x3e2b84);},'viSLx':function(_0x31122e,_0x420104,_0x22bc2d){return _0x31122e(_0x420104,_0x22bc2d);},'iFiLb':_0x53c233(0x220),'cPyAW':_0x53c233(0x213),'Yfxzi':_0x53c233(0x1fd),'deeCg':_0x53c233(0x26b),'dLdAJ':function(_0xc37cd8,_0x5c1760){return _0xc37cd8>_0x5c1760;},'xMgVU':function(_0x5152e0,_0x5295b3){return _0x5152e0||_0x5295b3;},'XkYIO':function(_0x1466ff,_0x32242e){return _0x1466ff===_0x32242e;},'lPxiU':function(_0x2505d8,_0xf0a952){return _0x2505d8===_0xf0a952;},'WLWOc':function(_0xf929ab,_0x46eae1){return _0xf929ab+_0x46eae1;},'xRTSn':'testId:\x20','myBpi':function(_0x40e4f8,_0x1607f0){return _0x40e4f8+_0x1607f0;},'UgVNx':_0x53c233(0x1e5),'bWCbx':function(_0x4bab5f,_0x359047){return _0x4bab5f(_0x359047);},'BvUXo':_0x53c233(0x251),'jPNvL':_0x53c233(0x264),'AFyln':function(_0x5c2c13){return _0x5c2c13();},'VMJGd':_0x53c233(0x24f),'Dirpk':function(_0x5836f2,_0x22d7a6){return _0x5836f2===_0x22d7a6;},'Sbuzo':_0x53c233(0x1ce)};this[_0x53c233(0x1cb)][_0x53c233(0x232)](_0x101f13[_0x53c233(0x1f4)]);const _0x59201e=_0x18a34c[_0x53c233(0x243)];if(!_0x59201e){this[_0x53c233(0x1cb)]['debug'](_0x101f13[_0x53c233(0x24d)]);return;}const _0x398681=_0x18a34c['testInfo'],_0x1bb0c6=this['getTestId'](_0x18a34c),_0x4cd8c3=_0x398681[_0x53c233(0x200)];let _0x4cf9fe;const _0x5de2f0=_0x101f13[_0x53c233(0x209)](getPlaywrightStatus,_0x4cd8c3);let _0x2d9d91,_0xe762e2=null;if(_0x398681['pickle']||_0x398681[_0x53c233(0x1d5)])_0x2d9d91=_0x101f13[_0x53c233(0x205)](getCucumberSessionName,_0x398681),_0x4cf9fe=_0x101f13[_0x53c233(0x212)](nestedKeyValue,_0x398681,[_0x101f13['iFiLb'],_0x101f13[_0x53c233(0x271)]]);else{_0x2d9d91=_0x101f13['pskyz'](getPlaywrightSessionName,_0x398681),_0x4cf9fe=_0x101f13[_0x53c233(0x212)](nestedKeyValue,_0x398681,[_0x101f13[_0x53c233(0x1f5)],_0x101f13[_0x53c233(0x271)]]);const _0x1e1dca=_0x101f13['viSLx'](nestedKeyValue,_0x398681,[_0x101f13['deeCg']]);_0x1e1dca&&_0x101f13[_0x53c233(0x24e)](_0x1e1dca[_0x53c233(0x249)],0x0)&&(_0xe762e2=_0x1e1dca[0x0][_0x53c233(0x213)]),_0x4cf9fe=_0x101f13[_0x53c233(0x260)](_0x4cf9fe,_0xe762e2),this[_0x53c233(0x1cb)]['debug'](_0x53c233(0x1da)+_0x5de2f0+_0x53c233(0x202)+_0x4cf9fe);}const _0xcb3faa=_0x101f13['xMgVU'](_0x4cf9fe,_0xe762e2);this['logger'][_0x53c233(0x232)](_0x53c233(0x1da)+_0x5de2f0);let _0x1b8058,_0x2789de;if(this[_0x53c233(0x258)]&&_0x101f13['XkYIO'](this['testFrameworkData'][_0x53c233(0x1ed)],FRAMEWORKS[_0x53c233(0x266)]))_0x1b8058=_0x1bb0c6,_0x2789de=TestInfo[_0x53c233(0x236)](_0x1b8058);else this[_0x53c233(0x258)]&&_0x101f13[_0x53c233(0x211)](this[_0x53c233(0x258)]['name'],FRAMEWORKS['JEST'])?(_0x1b8058=this[_0x53c233(0x1f2)][_0x53c233(0x1b5)](_0x398681),this[_0x53c233(0x1cb)]['debug']('Automation\x20onAfterTest:\x20Recreated\x20Jest\x20testIdentifier:\x20'+_0x1b8058)):(_0x1b8058=TestInfo[_0x53c233(0x1f9)](_0x398681,_0x398681[_0x53c233(0x1cc)]),_0x2789de=TestInfo[_0x53c233(0x236)](_0x1b8058));const _0x2a5653=TestInfo[_0x53c233(0x263)](_0x1b8058);this[_0x53c233(0x1cb)][_0x53c233(0x208)](_0x101f13['WLWOc'](_0x101f13[_0x53c233(0x1b1)],_0x1bb0c6)),this['logger'][_0x53c233(0x208)](_0x101f13[_0x53c233(0x25c)](_0x101f13[_0x53c233(0x25a)],util['inspect'](_0x2a5653)));const _0x41bc51=AutomationFramework[_0x53c233(0x1f8)](_0x59201e,PlaywrightDriverModule[_0x53c233(0x1eb)]),_0x1f989a=_0x2a5653?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]||this[_0x53c233(0x258)]&&this['testFrameworkData'][_0x53c233(0x1ed)],_0x2f99bc=_0x2a5653?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]||this[_0x53c233(0x258)]&&this[_0x53c233(0x258)]['version'],_0x5a2587=TestFrameworkState['TEST'][_0x53c233(0x1ff)]()[_0x53c233(0x1c0)]('.')[0x1],_0x400b26=HookState['POST']['toString']()[_0x53c233(0x1c0)]('.')[0x1],_0x5064ca=_0x59201e['getContext'](),_0x36c8ee=AutomationFramework[_0x53c233(0x1f8)](_0x59201e,PlaywrightDriverModule[_0x53c233(0x247)],''),_0x24b1a9={'provider':_0x101f13[_0x53c233(0x21c)](getPlaywrightProvider,_0x36c8ee),'frameworkName':_0x101f13[_0x53c233(0x265)],'frameworkVersion':_0x101f13[_0x53c233(0x222)],'frameworkSessionId':LoadTestModule['isLTSSession']()?LoadTestModule[_0x53c233(0x215)]():AutomationFramework['getState'](_0x59201e,PlaywrightDriverModule[_0x53c233(0x1fe)],''),'ref':_0x59201e[_0x53c233(0x23b)](),'hubUrl':_0x36c8ee,'product':_0x101f13[_0x53c233(0x25f)](getProductForSession)};let _0x1f563d=AutomationFramework['getState'](_0x59201e,PlaywrightDriverModule[_0x53c233(0x22e)],{});_0x1f563d&&_0x101f13[_0x53c233(0x24e)](Object[_0x53c233(0x20b)](_0x1f563d)['length'],0x0)?_0x1f563d=Buffer[_0x53c233(0x25d)](JSON[_0x53c233(0x253)](_0x1f563d))[_0x53c233(0x1ff)](_0x101f13[_0x53c233(0x245)]):_0x1f563d=Buffer[_0x53c233(0x25d)](JSON[_0x53c233(0x253)]({}))[_0x53c233(0x1ff)](_0x101f13[_0x53c233(0x245)]);const _0x49aaf0={'hash':_0x5064ca[_0x53c233(0x22a)](),'threadId':_0x5064ca['getThreadId']()[_0x53c233(0x1ff)](),'processId':_0x5064ca[_0x53c233(0x1ba)]()[_0x53c233(0x1ff)]()},_0x30e25b={};_0x30e25b[_0x53c233(0x1ec)]=_0x1b8058;const _0x24f97d={};_0x24f97d['testUuid']=_0x2789de;const _0x16e66f={'platformIndex':_0x41bc51,'testFrameworkName':_0x1f989a,'testFrameworkVersion':_0x2f99bc,'testFrameworkState':_0x5a2587,'testHookState':_0x400b26,...this[_0x53c233(0x258)]&&_0x101f13['Dirpk'](this[_0x53c233(0x258)][_0x53c233(0x1ed)],FRAMEWORKS[_0x53c233(0x210)])?_0x30e25b:_0x24f97d,'automationSession':_0x24b1a9,'capabilities':_0x1f563d,'executionContext':_0x49aaf0};this[_0x53c233(0x1cb)]['debug'](_0x53c233(0x1fa)+util['format'](_0x16e66f)),GrpcClient['getInstance']()[_0x53c233(0x250)](_0x16e66f),this['logger'][_0x53c233(0x232)](_0x53c233(0x227)+_0x1bb0c6+(this['testFrameworkData']&&_0x101f13[_0x53c233(0x211)](this[_0x53c233(0x258)][_0x53c233(0x1ed)],FRAMEWORKS['JEST'])?_0x53c233(0x1b6)+_0x1b8058:''));if(!_0x5de2f0){this[_0x53c233(0x1cb)][_0x53c233(0x232)](_0x101f13['Sbuzo'],_0x4cd8c3[_0x53c233(0x200)]);return;}this[_0x53c233(0x1cb)][_0x53c233(0x232)](_0x53c233(0x234)+_0x1bb0c6),_0x398681&&(this[_0x53c233(0x1cb)]['debug'](_0x53c233(0x1c2)+_0x2d9d91),await this[_0x53c233(0x1bd)](_0x398681)),await this[_0x53c233(0x20c)](_0x59201e,_0x2d9d91,_0x5de2f0,_0xcb3faa);}async[a89_0x507106(0x20c)](_0x10d950,_0x34372c,_0x5a70f5,_0xd36995){const _0x267c0b=a89_0x507106,_0x3d597f={'iuAUj':_0x267c0b(0x267),'fApjo':_0x267c0b(0x1c8),'OyDlU':_0x267c0b(0x1d9),'gtDan':_0x267c0b(0x1ce),'awBki':_0x267c0b(0x235),'Auxxe':_0x267c0b(0x1b7),'TNlOV':'Session','Pmpwp':function(_0x2f6c5b,_0x110c7c){return _0x2f6c5b===_0x110c7c;},'zsMde':_0x267c0b(0x23f),'TuQIl':_0x267c0b(0x208),'JgJrm':_0x267c0b(0x1fd),'hmBjl':function(_0x1522a2,_0x118180,_0x3628fb,_0x4f569b){return _0x1522a2(_0x118180,_0x3628fb,_0x4f569b);},'TTjgq':_0x267c0b(0x252),'NFPQB':function(_0x4efb0d,_0x198d61,_0x318c6d){return _0x4efb0d(_0x198d61,_0x318c6d);}};if(CLIUtils[_0x267c0b(0x1d4)](BrowserstackCLI[_0x267c0b(0x23e)]()[_0x267c0b(0x1e7)]())){this[_0x267c0b(0x1cb)][_0x267c0b(0x232)](_0x3d597f[_0x267c0b(0x1d3)]);return;}const _0x296a0a=_0x10d950;if(!_0x296a0a){this['logger']['debug'](_0x3d597f[_0x267c0b(0x231)]);return;}const _0x112492=AutomationFramework['getState'](_0x296a0a,PlaywrightDriverModule['KEY_PAGE_OBJECT']);if(!_0x112492){this[_0x267c0b(0x1cb)]['debug'](_0x3d597f[_0x267c0b(0x1b0)]);return;}const _0x2ba22f=_0x5a70f5;if(!_0x2ba22f){this[_0x267c0b(0x1cb)][_0x267c0b(0x232)](_0x3d597f[_0x267c0b(0x230)],_0x2ba22f);return;}const _0x47b473={};_0x47b473[_0x267c0b(0x200)]=_0x2ba22f;const _0x5ce178={};_0x5ce178[_0x267c0b(0x268)]=_0x3d597f['awBki'],_0x5ce178[_0x267c0b(0x22f)]=_0x47b473;const _0x2051e8=_0x5ce178;_0xd36995&&(_0x2051e8[_0x267c0b(0x22f)][_0x3d597f[_0x267c0b(0x1c5)]]=_0xd36995);const _0x416905=(_0x34372c?_0x34372c:_0x3d597f[_0x267c0b(0x240)])+'\x20'+_0x2ba22f+'\x20'+(_0xd36995?_0x267c0b(0x1e9)+_0xd36995:''),_0x117a53=_0x3d597f['Pmpwp'](_0x2ba22f,_0x3d597f['zsMde'])?_0x3d597f['TuQIl']:_0x3d597f[_0x267c0b(0x1f6)];await _0x3d597f[_0x267c0b(0x26c)](playwrightAnnotate,_0x112492,_0x416905,_0x117a53),_0xd36995&&(_0x2051e8[_0x267c0b(0x22f)][_0x3d597f[_0x267c0b(0x1c5)]]=_0xd36995),PerformanceTester['start'](PerformanceEvents[_0x267c0b(0x1ea)]),this[_0x267c0b(0x1cb)][_0x267c0b(0x232)](_0x3d597f[_0x267c0b(0x1fc)]),await _0x3d597f[_0x267c0b(0x239)](playwrightBstackJsExecutor,_0x112492,_0x2051e8),PerformanceTester[_0x267c0b(0x21e)](PerformanceEvents['SESSION_STATUS']);}async['markSessionName'](_0x25f694){const _0x122bec=a89_0x507106,_0x742fa1={'WKzmx':_0x122bec(0x26a),'yemme':function(_0x133260,_0x1f5504){return _0x133260(_0x1f5504);},'qKOxK':_0x122bec(0x1b4),'TQfUR':function(_0x28998e,_0x3b603e,_0x23b4fe){return _0x28998e(_0x3b603e,_0x23b4fe);}};try{if(CLIUtils[_0x122bec(0x207)](BrowserstackCLI[_0x122bec(0x23e)]()[_0x122bec(0x1e7)]())){this[_0x122bec(0x1cb)][_0x122bec(0x232)](_0x742fa1['WKzmx']);return;}const _0x2dcc30=AutomationFramework['getState'](AutomationFramework['getTrackedInstance'](),PlaywrightDriverModule[_0x122bec(0x1de)]);let _0x5c6d9f;_0x25f694['pickle']||_0x25f694[_0x122bec(0x1d5)]?_0x5c6d9f=_0x742fa1['yemme'](getCucumberSessionName,_0x25f694):_0x5c6d9f=_0x742fa1[_0x122bec(0x1c9)](getPlaywrightSessionName,_0x25f694);const _0x3613ef={};_0x3613ef[_0x122bec(0x1ed)]=_0x5c6d9f;const _0x58368d={};_0x58368d[_0x122bec(0x268)]=_0x742fa1[_0x122bec(0x203)],_0x58368d['arguments']=_0x3613ef;const _0x4fae4e=_0x58368d;PerformanceTester[_0x122bec(0x244)](PerformanceEvents[_0x122bec(0x22d)]),await _0x742fa1['TQfUR'](playwrightBstackJsExecutor,_0x2dcc30,_0x4fae4e),PerformanceTester[_0x122bec(0x21e)](PerformanceEvents[_0x122bec(0x22d)]);}catch(_0x5026d8){PerformanceTester[_0x122bec(0x21e)](PerformanceEvents[_0x122bec(0x22d)],![],util[_0x122bec(0x26f)](_0x5026d8)),this[_0x122bec(0x1cb)][_0x122bec(0x1fd)]('Error\x20in\x20markSessionName:\x20'+util[_0x122bec(0x26f)](_0x5026d8));}}}PlaywrightDriverModule['MODULE_NAME']='PlaywrightDriverModule',module[a89_0x507106(0x1f1)]=PlaywrightDriverModule;
@@ -1 +1 @@
1
- const a90_0x44f1ab=a90_0x57c7;function a90_0x4b3f(){const _0x42e1f1=['../grpcClient.js','getTestDetails','Error\x20in\x20puppeteerBstackExecutor:\x20','skip','jestUtils','wFUAE','PuppeteerDriverModule','split','testHookState','base64','isBuffer','Error\x20in\x20onAfterDriverCreate:\x20','KEY_HUB_URL','Automation\x20onAfterTest:\x20Test\x20completed','reason','action','PRE','eYipp','instance','browserVersion','end','onBeforeQuit:\x20Cleanup\x20complete','iuuXh','keys','testFrameworkData','hashed_id','JfluS','goXoD','WLJkV','join','KEY_PLATFORM_DETAILS','VJKAZ','capabilities','vtsJZ','TEST','object','wHwxd','getRef','380208NdyJjM','getConfig','_url','markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available','onAfterDriverCreate:\x20Error\x20extracting\x20caps\x20from\x20driverInit\x20response:\x20','Automation\x20onAfterTest:\x20Recreated\x20Jest\x20testIdentifier:\x20','puppeteer_capabilities','Puppeteer','browser','testFrameworkState','eyUkz','version','BtsrK','puppeteerBstackExecutor','../../utils/constants','onAfterDriverCreate:\x20Setting\x20page\x20object','3017910FvNZLP','_connection','320ItFwwJ','values','onAfterDriverCreate:\x20Stored\x20full\x20W3C\x20capabilities\x20from\x20DriverInit\x20response','_driverInitRef','userInputParams','../../../helpers/helper.js','YKwnZ',':testAnalyticsId','../../../helpers/test-observability/utils','../../../helpers/classLogger.js','debug','uuid','KEY_TEST_FRAMEWORK_VERSION','__bstackPlatformIndex','toXsh','onAfterDriverCreate:\x20Could\x20not\x20extract\x20sessionId\x20via\x20page.evaluate:\x20','Error\x20in\x20onAfterTest:\x20','markSessionName:\x20Skipping\x20session\x20name\x20marking','DpEwF','KEY_SESSION_ID','PUPPETEER','pid','finally','CREATE','636iewOIy','onBeforeQuit:\x20Puppeteer\x20driver\x20is\x20about\x20to\x20quit','timedout','rHRqI','driverInit','Automation\x20onAfterTest:\x20Setting\x20session\x20name\x20and\x20status','getModuleName','iOYMq','start','browserstack_executor:\x20{\x22action\x22:\x22getSessionDetails\x22}','10vXPPxy','sessionId','JEST','__bstackSessionId','bind','ahdZW','puppeteer_platform_index','NlBKr','getState','title','3047220sKnhVm','add','177864qneCJA','../framework/constants/testFrameworkConstants.js','length','onAfterDriverCreate:\x20Extracted\x20capabilities\x20from\x20driverInit\x20response:\x20','KEY_TEST_FRAMEWORK_NAME','setState','logger','2391KIrAVr','browserstack_executor:\x20','has','XRBeu','KEY_TEST_ID','onBeforeDriverCreate:\x20Puppeteer\x20driver\x20is\x20about\x20to\x20be\x20created','Error\x20in\x20onBeforeDriverCreate:\x20','dtOTW','__platformCaps','onAfterDriverCreate:\x20driverInit\x20already\x20called\x20for\x20ref\x20','ICTWo','onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','Error\x20in\x20onBeforeQuit:\x20','aTBxH','DUjwb','3635712YpluXd','pDwWe','../TestInfo.js','from','testFrameworkVersion','isLTSSession','setSessionStatus','evaluate','onBeforeQuit:\x20No\x20automation\x20instance\x20available','format','75xKguJH','AUTOMATE_EVENTS','../../../helpers/performance/constants.js','result','onAfterTest\x20CBTSession\x20payload:\x20','wrfeP','hWXEH','executionContext','FRUsb','stringify','shouldSkipSessionName','../state/hookState.js','passed','browserName','testFrameworkName','PqNbC','WieFL','browserstack_executor\x20timeout\x20after\x20','puppeteer_session_id','SESSION_NAME','../state/testFrameworkState','failureMessage','Dhvop','util','oxKFk','PTxUv','zKPkt','isPuppeteer','SESSION_STATUS','POST','FJNgU','testIdentifier','KEY_BROWSER_OBJECT','toString','KEY_PAGE_OBJECT','getHubUrl','MmsKw','ORffx','../state/automationFrameworkState.js','parse','unknown','onBeforeQuit','oytPR','markSessionName','cuyit','shouldSkipSessionStatus','onBeforeDriverCreate','KaAXM','EHjUV','MODULE_NAME','failed','zZPvz','getContext','_driverInitCalledForRef','puppeteerVersion','EmMJt','page','string','8erhByo','onAfterDriverCreate:\x20SessionId\x20extracted\x20via\x20browserstack_executor:\x20','XRJGL','onAfterDriverCreate:\x20Setting\x20browser\x20object','onAfterDriverCreate:\x20Updated\x20capabilities\x20from\x20global.__launchCaps','hubUrl','puppeteer_browser','onAfterDriverCreate:\x20Puppeteer\x20driver\x20has\x20been\x20created\x20','yvGiL','markSessionName:\x20Page\x20object\x20is\x20not\x20available','7764rVqgrp','timedOut','testInfo','arguments','message','launchcaps','test_identifier','../browserstackCLI.js','error','AYCDn','KEY_PLATFORM_INDEX',',\x20skipping\x20duplicate','test','NRhrz','markSessionStatus','registerObserver','testSessionEvent','QUIT','Error\x20in\x20markSessionName:\x20','map','automationSession','../../../helpers/performance/performance-tester.js','race','errorsDetailed','onAfterDriverCreate','aCnvq','getInstance','onAfterDriverCreate:\x20SessionId\x20set\x20from\x20WebSocket\x20URL:\x20','65fovktu','fullName','getCapabilities','platformIndex','muZbc','puppeteer_hub_url','skipped','recreateIdentifierFromTestInfo','getLTSSessionId','qTFCU','KEY_CAPABILITIES','qpZKM','JhzoN','onAfterTest','../utils/jest-utils.js','__launchCaps','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','name'];a90_0x4b3f=function(){return _0x42e1f1;};return a90_0x4b3f();}(function(_0x17065f,_0x3a54b9){const _0x76a9a9=a90_0x57c7,_0xa1b330=_0x17065f();while(!![]){try{const _0x4d839f=parseInt(_0x76a9a9(0x195))/0x1*(-parseInt(_0x76a9a9(0x178))/0x2)+-parseInt(_0x76a9a9(0xfa))/0x3*(-parseInt(_0x76a9a9(0x160))/0x4)+parseInt(_0x76a9a9(0x1ae))/0x5*(parseInt(_0x76a9a9(0x14e))/0x6)+-parseInt(_0x76a9a9(0x15e))/0x7*(-parseInt(_0x76a9a9(0xf0))/0x8)+-parseInt(_0x76a9a9(0x1a4))/0x9*(parseInt(_0x76a9a9(0x182))/0xa)+parseInt(_0x76a9a9(0x18c))/0xb+parseInt(_0x76a9a9(0x18e))/0xc*(parseInt(_0x76a9a9(0x116))/0xd);if(_0x4d839f===_0x3a54b9)break;else _0xa1b330['push'](_0xa1b330['shift']());}catch(_0x5e45dc){_0xa1b330['push'](_0xa1b330['shift']());}}}(a90_0x4b3f,0xbd55a));const util=require(a90_0x44f1ab(0x1c5)),BaseModule=require('./baseModule'),{createClassLogger}=require(a90_0x44f1ab(0x169)),{getFrameworkVersion}=require(a90_0x44f1ab(0x168)),helper=require('../../../helpers/helper'),{FRAMEWORKS}=require(a90_0x44f1ab(0x15c)),AutomationFramework=require('../framework/automationFramework.js'),AutomationFrameworkState=require(a90_0x44f1ab(0xdc)),HookState=require(a90_0x44f1ab(0x1b9)),{nestedKeyValue,playwrightBstackJsExecutor}=require(a90_0x44f1ab(0x165)),CLIUtils=require('../cliUtils.js'),BrowserstackCLI=require(a90_0x44f1ab(0x101)),GrpcClient=require(a90_0x44f1ab(0x128)),PerformanceTester=require(a90_0x44f1ab(0x10f)),PerformanceEvents=require(a90_0x44f1ab(0x1b0))[a90_0x44f1ab(0x1af)],TestInfo=require(a90_0x44f1ab(0x1a6)),{getPlaywrightProvider,getProductForSession}=require(a90_0x44f1ab(0x165)),LoadTestModule=require('./loadTestModule.js'),TestFrameworkConstants=require(a90_0x44f1ab(0x18f)),TestFrameworkState=require(a90_0x44f1ab(0x1c2)),JestUtils=require(a90_0x44f1ab(0x124)),TestFramework=require('../framework/testFramework.js');function a90_0x57c7(_0x14cbcb,_0x333b0b){const _0x4b3fa3=a90_0x4b3f();return a90_0x57c7=function(_0x57c7c2,_0x36e742){_0x57c7c2=_0x57c7c2-0xdc;let _0x8a3362=_0x4b3fa3[_0x57c7c2];return _0x8a3362;},a90_0x57c7(_0x14cbcb,_0x333b0b);}class PuppeteerDriverModule extends BaseModule{static [a90_0x44f1ab(0x1ce)]=a90_0x44f1ab(0xf6);static [a90_0x44f1ab(0x1d0)]='puppeteer_page';static ['KEY_SESSION_ID']=a90_0x44f1ab(0x1c0);static ['KEY_PLATFORM_INDEX']=a90_0x44f1ab(0x188);static [a90_0x44f1ab(0x120)]=a90_0x44f1ab(0x154);static ['KEY_HUB_URL']=a90_0x44f1ab(0x11b);static [a90_0x44f1ab(0x146)]='puppeteer_platform_details';static [a90_0x44f1ab(0x199)]='puppeteer_test_id';static ['MODULE_NAME']=a90_0x44f1ab(0x12e);static [a90_0x44f1ab(0xeb)]=new Set();static ['_driverInitRef']=null;[a90_0x44f1ab(0x194)]=createClassLogger(a90_0x44f1ab(0x12e));constructor(_0x2246cf=null){const _0x55178b=a90_0x44f1ab,_0x2dfb26={};_0x2dfb26['ORffx']='7|8|0|2|9|11|5|6|10|1|3|4',_0x2dfb26['ZfFri']=_0x55178b(0x12e);const _0x59bf86=_0x2dfb26,_0x5a3052=_0x59bf86[_0x55178b(0x1d3)][_0x55178b(0x12f)]('|');let _0x4bf37f=0x0;while(!![]){switch(_0x5a3052[_0x4bf37f++]){case'0':this[_0x55178b(0xec)]=null;continue;case'1':AutomationFramework[_0x55178b(0x109)](AutomationFrameworkState['CREATE'],HookState['POST'],this['onAfterDriverCreate'][_0x55178b(0x186)](this));continue;case'2':this[_0x55178b(0x1bb)]=null;continue;case'3':TestFramework[_0x55178b(0x109)](TestFrameworkState[_0x55178b(0x14a)],HookState[_0x55178b(0x1cb)],this[_0x55178b(0x123)][_0x55178b(0x186)](this));continue;case'4':AutomationFramework[_0x55178b(0x109)](AutomationFrameworkState[_0x55178b(0x10b)],HookState[_0x55178b(0x138)],this[_0x55178b(0xdf)]['bind'](this));continue;case'5':this['testRunId']=null;continue;case'6':this[_0x55178b(0x12c)]=new JestUtils();continue;case'7':super(_0x2246cf);continue;case'8':this[_0x55178b(0x127)]=_0x59bf86['ZfFri'];continue;case'9':this[_0x55178b(0x13b)]=null;continue;case'10':AutomationFramework[_0x55178b(0x109)](AutomationFrameworkState[_0x55178b(0x177)],HookState[_0x55178b(0x138)],this['onBeforeDriverCreate'][_0x55178b(0x186)](this));continue;case'11':this['platforms']=[];continue;}break;}}[a90_0x44f1ab(0x17e)](){const _0x723c01=a90_0x44f1ab;return PuppeteerDriverModule[_0x723c01(0xe7)];}async[a90_0x44f1ab(0xe4)](_0x3f7e97){const _0x3cd53a=a90_0x44f1ab,_0x1591ce={};_0x1591ce[_0x3cd53a(0x17f)]=_0x3cd53a(0x19a),_0x1591ce['aTBxH']=_0x3cd53a(0x131),_0x1591ce['VKkNZ']='onAfterDriverCreate:\x20driverInit\x20response\x20received',_0x1591ce[_0x3cd53a(0x121)]='utf8',_0x1591ce[_0x3cd53a(0x113)]=function(_0x2878eb,_0x5bfb72){return _0x2878eb===_0x5bfb72;},_0x1591ce[_0x3cd53a(0x172)]=_0x3cd53a(0x14b),_0x1591ce['JfluS']=function(_0x118948,_0x2884e2){return _0x118948!==_0x2884e2;},_0x1591ce[_0x3cd53a(0x1bd)]=function(_0x45cc85,_0x49f4fd){return _0x45cc85===_0x49f4fd;},_0x1591ce[_0x3cd53a(0x19c)]='string',_0x1591ce[_0x3cd53a(0x11a)]=function(_0xb8ef38,_0x3c93ed){return _0xb8ef38>_0x3c93ed;},_0x1591ce[_0x3cd53a(0x198)]=_0x3cd53a(0x162);const _0x1c53c5=_0x1591ce;try{this[_0x3cd53a(0x194)][_0x3cd53a(0x16a)](_0x1c53c5[_0x3cd53a(0x17f)]);const _0x163cb2=_0x3f7e97[_0x3cd53a(0xff)],_0x5ac089=_0x3f7e97[_0x3cd53a(0xf5)];AutomationFramework[_0x3cd53a(0x193)](_0x3f7e97[_0x3cd53a(0x13a)],PuppeteerDriverModule[_0x3cd53a(0x120)],_0x163cb2),AutomationFramework[_0x3cd53a(0x193)](_0x3f7e97[_0x3cd53a(0x13a)],PuppeteerDriverModule[_0x3cd53a(0x134)],_0x5ac089);const _0xc5b4a2=_0x3f7e97['instance'][_0x3cd53a(0x14d)](),_0x338839=global[_0x3cd53a(0x16d)]||0x0;AutomationFramework[_0x3cd53a(0x193)](_0x3f7e97[_0x3cd53a(0x13a)],PuppeteerDriverModule[_0x3cd53a(0x104)],_0x338839);if(PuppeteerDriverModule[_0x3cd53a(0xeb)][_0x3cd53a(0x197)](_0xc5b4a2))this[_0x3cd53a(0x194)][_0x3cd53a(0x16a)](_0x3cd53a(0x19e)+_0xc5b4a2+_0x3cd53a(0x105));else{PuppeteerDriverModule[_0x3cd53a(0xeb)][_0x3cd53a(0x18d)](_0xc5b4a2),PuppeteerDriverModule[_0x3cd53a(0x163)]=_0xc5b4a2;const _0x58e9dd={..._0x163cb2};_0x58e9dd[_0x3cd53a(0x1c9)]=!![];const _0xfd96a0=Buffer['from'](JSON[_0x3cd53a(0x1b7)](_0x58e9dd)['toString'](_0x1c53c5[_0x3cd53a(0x1a2)])),_0x36b6e7={};_0x36b6e7[_0x3cd53a(0x119)]=_0x338839,_0x36b6e7['ref']=_0xc5b4a2,_0x36b6e7[_0x3cd53a(0x164)]=_0xfd96a0,_0x36b6e7[_0x3cd53a(0xf5)]=_0x5ac089;const _0x525aa0=await GrpcClient[_0x3cd53a(0x114)]()[_0x3cd53a(0x17c)](_0x36b6e7);this[_0x3cd53a(0x194)][_0x3cd53a(0x16a)](_0x1c53c5['VKkNZ']);if(_0x525aa0)try{const _0x3b7785=_0x525aa0[_0x3cd53a(0x118)]?_0x525aa0['getCapabilities']():_0x525aa0['capabilities'];if(_0x3b7785){let _0x526705;if(Buffer[_0x3cd53a(0x132)](_0x3b7785))_0x526705=JSON[_0x3cd53a(0xdd)](_0x3b7785[_0x3cd53a(0x1cf)](_0x1c53c5['qpZKM']));else{if(_0x1c53c5[_0x3cd53a(0x113)](typeof _0x3b7785,_0x1c53c5[_0x3cd53a(0x172)])&&_0x1c53c5[_0x3cd53a(0x142)](_0x3b7785,null)){const _0x591558=Buffer['from'](Object[_0x3cd53a(0x161)](_0x3b7785));_0x526705=JSON['parse'](_0x591558[_0x3cd53a(0x1cf)](_0x1c53c5['qpZKM']));}else _0x1c53c5[_0x3cd53a(0x1bd)](typeof _0x3b7785,_0x1c53c5['dtOTW'])?_0x526705=JSON[_0x3cd53a(0xdd)](_0x3b7785):_0x526705=_0x3b7785;}this['logger'][_0x3cd53a(0x16a)](_0x3cd53a(0x191)+JSON[_0x3cd53a(0x1b7)](_0x526705)),_0x526705&&_0x1c53c5[_0x3cd53a(0x11a)](Object[_0x3cd53a(0x13f)](_0x526705)['length'],0x0)&&(AutomationFramework[_0x3cd53a(0x193)](_0x3f7e97[_0x3cd53a(0x13a)],PuppeteerDriverModule['KEY_CAPABILITIES'],_0x526705),global['__launchCaps']=_0x526705,this['logger'][_0x3cd53a(0x16a)](_0x1c53c5[_0x3cd53a(0x198)]));}const _0x5a1e28=_0x525aa0[_0x3cd53a(0x1d1)]?_0x525aa0['getHubUrl']():_0x525aa0[_0x3cd53a(0xf5)];_0x5a1e28&&AutomationFramework[_0x3cd53a(0x193)](_0x3f7e97[_0x3cd53a(0x13a)],PuppeteerDriverModule[_0x3cd53a(0x134)],_0x5a1e28);}catch(_0x63c0d0){this[_0x3cd53a(0x194)][_0x3cd53a(0x16a)](_0x3cd53a(0x152)+util[_0x3cd53a(0x1ad)](_0x63c0d0));}}}catch(_0x153ef3){this['logger']['error'](_0x3cd53a(0x19b)+util[_0x3cd53a(0x1ad)](_0x153ef3));}}async[a90_0x44f1ab(0x112)](_0x34cc77){const _0x4dcec7=a90_0x44f1ab,_0x49e655={'cuyit':function(_0x44f902,_0x4de4ec){return _0x44f902(_0x4de4ec);},'eyUkz':_0x4dcec7(0x15d),'BeMBA':_0x4dcec7(0x1a0),'fcXzv':'onAfterDriverCreate:\x20No\x20testInfo\x20available\x20(browser\x20created\x20outside\x20test\x20context).\x20Session\x20name\x20will\x20be\x20deferred\x20to\x20executeDeferredCloses.','EmMJt':_0x4dcec7(0xf3),'qTFCU':function(_0x3a2f82,_0x40605f){return _0x3a2f82>_0x40605f;},'oytPR':_0x4dcec7(0xf4),'KaAXM':_0x4dcec7(0x181),'PTxUv':function(_0x5a080a,_0x2f0de8){return _0x5a080a===_0x2f0de8;},'UFmuB':_0x4dcec7(0xef)};try{this[_0x4dcec7(0x194)][_0x4dcec7(0x16a)](_0x4dcec7(0xf7)+JSON[_0x4dcec7(0x1b7)](_0x34cc77));const _0x58ee78=_0x34cc77['instance'];this[_0x4dcec7(0xec)]=_0x49e655[_0x4dcec7(0xe2)](getFrameworkVersion,FRAMEWORKS[_0x4dcec7(0x174)]);_0x34cc77[_0x4dcec7(0xee)]&&(this[_0x4dcec7(0x194)][_0x4dcec7(0x16a)](_0x49e655[_0x4dcec7(0x158)]),AutomationFramework[_0x4dcec7(0x193)](_0x58ee78,PuppeteerDriverModule['KEY_PAGE_OBJECT'],_0x34cc77['page']),_0x34cc77[_0x4dcec7(0xfc)]?(this[_0x4dcec7(0x194)]['debug'](_0x49e655['BeMBA']),AutomationFramework[_0x4dcec7(0x193)](_0x58ee78,PuppeteerDriverModule[_0x4dcec7(0x199)],_0x34cc77[_0x4dcec7(0xfc)]['id']||''),await this[_0x4dcec7(0xe1)](_0x58ee78,_0x34cc77[_0x4dcec7(0xfc)])):this[_0x4dcec7(0x194)][_0x4dcec7(0x16a)](_0x49e655['fcXzv']));if(_0x34cc77[_0x4dcec7(0x156)]){this[_0x4dcec7(0x194)][_0x4dcec7(0x16a)](_0x49e655[_0x4dcec7(0xed)]),AutomationFramework[_0x4dcec7(0x193)](_0x58ee78,PuppeteerDriverModule['KEY_BROWSER_OBJECT'],_0x34cc77['browser']);global['__launchCaps']&&_0x49e655[_0x4dcec7(0x11f)](Object[_0x4dcec7(0x13f)](global[_0x4dcec7(0x125)])[_0x4dcec7(0x190)],0x0)&&(AutomationFramework[_0x4dcec7(0x193)](_0x58ee78,PuppeteerDriverModule[_0x4dcec7(0x120)],global[_0x4dcec7(0x125)]),this[_0x4dcec7(0x194)]['debug'](_0x49e655[_0x4dcec7(0xe0)]));if(_0x34cc77[_0x4dcec7(0x183)])AutomationFramework[_0x4dcec7(0x193)](_0x58ee78,PuppeteerDriverModule[_0x4dcec7(0x173)],_0x34cc77[_0x4dcec7(0x183)]),this['logger'][_0x4dcec7(0x16a)]('onAfterDriverCreate:\x20SessionId\x20set\x20from\x20args:\x20'+_0x34cc77[_0x4dcec7(0x183)]);else{if(global['__bstackSessionId'])AutomationFramework['setState'](_0x58ee78,PuppeteerDriverModule[_0x4dcec7(0x173)],global[_0x4dcec7(0x185)]),this[_0x4dcec7(0x194)]['debug']('onAfterDriverCreate:\x20SessionId\x20set\x20from\x20global:\x20'+global[_0x4dcec7(0x185)]);else try{const _0x18323c=_0x34cc77[_0x4dcec7(0xee)]||AutomationFramework[_0x4dcec7(0x18a)](_0x58ee78,PuppeteerDriverModule['KEY_PAGE_OBJECT']);if(_0x18323c){const _0x41a4a2=await _0x18323c[_0x4dcec7(0x1ab)](_0x54450d=>{},_0x49e655[_0x4dcec7(0xe5)]);if(_0x41a4a2){const _0x38700a=_0x49e655[_0x4dcec7(0x1c7)](typeof _0x41a4a2,_0x49e655['UFmuB'])?JSON[_0x4dcec7(0xdd)](_0x41a4a2):_0x41a4a2;_0x38700a&&_0x38700a[_0x4dcec7(0x141)]&&(AutomationFramework[_0x4dcec7(0x193)](_0x58ee78,PuppeteerDriverModule['KEY_SESSION_ID'],_0x38700a[_0x4dcec7(0x141)]),global[_0x4dcec7(0x185)]=_0x38700a['hashed_id'],this[_0x4dcec7(0x194)]['debug'](_0x4dcec7(0xf1)+_0x38700a[_0x4dcec7(0x141)]));}}}catch(_0x321aac){this[_0x4dcec7(0x194)]['debug'](_0x4dcec7(0x16f)+util[_0x4dcec7(0x1ad)](_0x321aac));if(_0x34cc77[_0x4dcec7(0x156)][_0x4dcec7(0x15f)]&&_0x34cc77[_0x4dcec7(0x156)][_0x4dcec7(0x15f)][_0x4dcec7(0x150)])try{const _0x1e78fd=_0x34cc77[_0x4dcec7(0x156)][_0x4dcec7(0x15f)]['_url'];AutomationFramework[_0x4dcec7(0x193)](_0x58ee78,PuppeteerDriverModule[_0x4dcec7(0x173)],_0x1e78fd),this[_0x4dcec7(0x194)][_0x4dcec7(0x16a)](_0x4dcec7(0x115)+_0x1e78fd);}catch(_0x310669){this[_0x4dcec7(0x194)]['debug']('onAfterDriverCreate:\x20Could\x20not\x20extract\x20sessionId:\x20'+util[_0x4dcec7(0x1ad)](_0x310669));}}}}}catch(_0x1ea9b3){this['logger'][_0x4dcec7(0x102)](_0x4dcec7(0x133)+util[_0x4dcec7(0x1ad)](_0x1ea9b3));}}async['onAfterTest'](_0x44c6f9){const _0x4407a1=a90_0x44f1ab,_0x2ae6ab={'VJKAZ':_0x4407a1(0x135),'mbaeN':'Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','EHjUV':_0x4407a1(0xde),'WLJkV':'Unknown\x20Test','FRUsb':function(_0x3fa08f,_0x232a29){return _0x3fa08f>_0x232a29;},'eYipp':function(_0x267222,_0x4729d5){return _0x267222===_0x4729d5;},'vtsJZ':_0x4407a1(0x1ba),'FJNgU':function(_0x38000b,_0x12658f){return _0x38000b===_0x12658f;},'MmsKw':_0x4407a1(0xe8),'KxTGp':function(_0x12d400,_0x458393){return _0x12d400===_0x458393;},'bJkLJ':_0x4407a1(0x17a),'oxKFk':function(_0x5b82f1,_0x46154d){return _0x5b82f1===_0x46154d;},'wrfeP':_0x4407a1(0xfb),'zZPvz':function(_0x81659f,_0x5527b7){return _0x81659f===_0x5527b7;},'ICTWo':_0x4407a1(0x11c),'AYCDn':function(_0x41cc93,_0x36476e){return _0x41cc93===_0x36476e;},'Dhvop':_0x4407a1(0x12b),'JhzoN':function(_0x317975,_0x4c149d){return _0x317975(_0x4c149d);},'DUjwb':_0x4407a1(0x155),'NRhrz':function(_0x2a6616){return _0x2a6616();},'WieFL':function(_0xc1d141,_0x452ade){return _0xc1d141>_0x452ade;},'hWXEH':'base64','ckDQH':'Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','wHwxd':_0x4407a1(0x17d)};this['logger'][_0x4407a1(0x16a)](_0x2ae6ab[_0x4407a1(0x147)]);const _0x9705ad=_0x44c6f9[_0x4407a1(0x13a)];if(!_0x9705ad){this[_0x4407a1(0x194)][_0x4407a1(0x16a)](_0x2ae6ab['mbaeN']);return;}try{const _0x5e2c1e=_0x44c6f9[_0x4407a1(0xfc)],_0x1d0b9e=_0x44c6f9[_0x4407a1(0x106)];let _0x244574=_0x44c6f9[_0x4407a1(0x1cd)],_0x3b1791=_0x2ae6ab[_0x4407a1(0xe6)],_0x57d889=_0x2ae6ab[_0x4407a1(0x144)],_0x84c12a=null;_0x5e2c1e&&(_0x3b1791=_0x5e2c1e['status']||_0x1d0b9e?.[_0x4407a1(0x1b1)]||_0x2ae6ab['EHjUV'],_0x57d889=_0x5e2c1e[_0x4407a1(0x127)]||_0x5e2c1e[_0x4407a1(0x18b)]||_0x1d0b9e?.[_0x4407a1(0x127)]||_0x1d0b9e?.['title']||_0x2ae6ab[_0x4407a1(0x144)],_0x84c12a=_0x5e2c1e[_0x4407a1(0x1c3)]||_0x5e2c1e[_0x4407a1(0x102)]?.[_0x4407a1(0xfe)]||null,_0x1d0b9e?.[_0x4407a1(0x111)]&&_0x2ae6ab[_0x4407a1(0x1b6)](_0x1d0b9e[_0x4407a1(0x111)][_0x4407a1(0x190)],0x0)&&(_0x84c12a=_0x84c12a||_0x1d0b9e['errorsDetailed'][_0x4407a1(0x10d)](_0x511ea5=>_0x511ea5[_0x4407a1(0xfe)]||_0x511ea5)[_0x4407a1(0x145)]('\x0a')));let _0xfc49a8=null;if(_0x2ae6ab[_0x4407a1(0x139)](_0x3b1791,_0x2ae6ab['vtsJZ']))_0xfc49a8=_0x2ae6ab[_0x4407a1(0x149)];else{if(_0x2ae6ab[_0x4407a1(0x1cc)](_0x3b1791,_0x2ae6ab[_0x4407a1(0x1d2)])||_0x2ae6ab['KxTGp'](_0x3b1791,_0x2ae6ab['bJkLJ'])||_0x2ae6ab[_0x4407a1(0x1c6)](_0x3b1791,_0x2ae6ab[_0x4407a1(0x1b3)]))_0xfc49a8=_0x2ae6ab[_0x4407a1(0x1d2)];else(_0x2ae6ab[_0x4407a1(0xe9)](_0x3b1791,_0x2ae6ab[_0x4407a1(0x19f)])||_0x2ae6ab[_0x4407a1(0x103)](_0x3b1791,_0x2ae6ab[_0x4407a1(0x1c4)]))&&(_0xfc49a8=_0x2ae6ab[_0x4407a1(0x19f)]);}this[_0x4407a1(0x140)]&&_0x2ae6ab[_0x4407a1(0x103)](this['testFrameworkData'][_0x4407a1(0x127)],FRAMEWORKS[_0x4407a1(0x184)])?(_0x244574=this[_0x4407a1(0x12c)][_0x4407a1(0x11d)](_0x5e2c1e,_0x244574),this[_0x4407a1(0x194)][_0x4407a1(0x16a)](_0x4407a1(0x153)+_0x244574)):_0x244574=_0x1d0b9e?.['id']||_0x1d0b9e?.[_0x4407a1(0x16b)]||process[_0x4407a1(0x175)]+_0x4407a1(0x167);const _0x1ebb6c=TestInfo[_0x4407a1(0x129)](_0x244574),_0x2de6d5=AutomationFramework[_0x4407a1(0x18a)](_0x9705ad,PuppeteerDriverModule[_0x4407a1(0x104)])||global['__bstackPlatformIndex'],_0x384fc5=_0x1ebb6c?.[TestFrameworkConstants[_0x4407a1(0x192)]]||this['testFrameworkData']&&this['testFrameworkData']['name'],_0x2ebbd7=_0x1ebb6c?.[TestFrameworkConstants[_0x4407a1(0x16c)]]||this[_0x4407a1(0x140)]&&this[_0x4407a1(0x140)][_0x4407a1(0x159)],_0x6d8e88=TestFrameworkState[_0x4407a1(0x14a)]['toString']()[_0x4407a1(0x12f)]('.')[0x1],_0xabb018=HookState[_0x4407a1(0x1cb)]['toString']()[_0x4407a1(0x12f)]('.')[0x1],_0x41f761=_0x9705ad[_0x4407a1(0xea)](),_0x101eca=AutomationFramework[_0x4407a1(0x18a)](_0x9705ad,PuppeteerDriverModule[_0x4407a1(0x134)],'')||BrowserstackCLI[_0x4407a1(0x114)]()['getConfig']()?.['hubUrl']||'',_0x51f8e2=AutomationFramework[_0x4407a1(0x18a)](_0x9705ad,PuppeteerDriverModule[_0x4407a1(0x173)],'')||global[_0x4407a1(0x185)]||'',_0x1022e4={'provider':_0x2ae6ab[_0x4407a1(0x122)](getPlaywrightProvider,_0x101eca),'frameworkName':_0x2ae6ab[_0x4407a1(0x1a3)],'frameworkVersion':this[_0x4407a1(0xec)]||'','frameworkSessionId':LoadTestModule[_0x4407a1(0x1a9)]()?LoadTestModule[_0x4407a1(0x11e)]():_0x51f8e2,'ref':PuppeteerDriverModule[_0x4407a1(0x163)]||_0x9705ad['getRef'](),'hubUrl':_0x101eca,'product':_0x2ae6ab[_0x4407a1(0x107)](getProductForSession)};let _0x14ba1a=AutomationFramework[_0x4407a1(0x18a)](_0x9705ad,PuppeteerDriverModule[_0x4407a1(0x120)],null)||global[_0x4407a1(0x125)]||global[_0x4407a1(0x19d)]||{};_0x14ba1a&&_0x2ae6ab[_0x4407a1(0x1be)](Object[_0x4407a1(0x13f)](_0x14ba1a)[_0x4407a1(0x190)],0x0)?_0x14ba1a=Buffer['from'](JSON['stringify'](_0x14ba1a))[_0x4407a1(0x1cf)](_0x2ae6ab[_0x4407a1(0x1b4)]):_0x14ba1a=Buffer[_0x4407a1(0x1a7)](JSON[_0x4407a1(0x1b7)]({}))[_0x4407a1(0x1cf)](_0x2ae6ab['hWXEH']);const _0x22c906={'hash':_0x41f761['getId'](),'threadId':_0x41f761['getThreadId']()[_0x4407a1(0x1cf)](),'processId':_0x41f761['getProcessId']()[_0x4407a1(0x1cf)]()},_0x34fd5d={};_0x34fd5d[_0x4407a1(0x119)]=_0x2de6d5,_0x34fd5d[_0x4407a1(0x1bc)]=_0x384fc5,_0x34fd5d[_0x4407a1(0x1a8)]=_0x2ebbd7,_0x34fd5d[_0x4407a1(0x157)]=_0x6d8e88,_0x34fd5d[_0x4407a1(0x130)]=_0xabb018,_0x34fd5d[_0x4407a1(0x100)]=_0x244574,_0x34fd5d[_0x4407a1(0x10e)]=_0x1022e4,_0x34fd5d[_0x4407a1(0x148)]=_0x14ba1a,_0x34fd5d[_0x4407a1(0x1b5)]=_0x22c906;const _0x5e6f01=_0x34fd5d;this[_0x4407a1(0x194)][_0x4407a1(0x16a)](_0x4407a1(0x1b2)+util[_0x4407a1(0x1ad)](_0x5e6f01)),GrpcClient[_0x4407a1(0x114)]()[_0x4407a1(0x10a)](_0x5e6f01),this[_0x4407a1(0x194)][_0x4407a1(0x16a)]('onAfterTest\x20CBTSession\x20complete\x20for\x20testIdentifier:\x20'+_0x244574);if(!_0xfc49a8){this[_0x4407a1(0x194)][_0x4407a1(0x16a)](_0x2ae6ab['ckDQH'],_0x3b1791);return;}this['logger'][_0x4407a1(0x16a)](_0x2ae6ab[_0x4407a1(0x14c)]),_0x5e2c1e&&await this['markSessionName'](_0x9705ad,_0x5e2c1e),await this[_0x4407a1(0x108)](_0x9705ad,_0x57d889,_0xfc49a8,_0x84c12a);}catch(_0x4dcb21){this[_0x4407a1(0x194)][_0x4407a1(0x102)](_0x4407a1(0x170)+util[_0x4407a1(0x1ad)](_0x4dcb21));}}async[a90_0x44f1ab(0xdf)](_0x445355){const _0x52e8e0=a90_0x44f1ab,_0x4a55c7={};_0x4a55c7['NlBKr']=_0x52e8e0(0x179),_0x4a55c7[_0x52e8e0(0x187)]=_0x52e8e0(0x1ac),_0x4a55c7[_0x52e8e0(0x166)]=_0x52e8e0(0x13d);const _0x1db1c3=_0x4a55c7;try{this[_0x52e8e0(0x194)][_0x52e8e0(0x16a)](_0x1db1c3[_0x52e8e0(0x189)]);const _0x335af0=_0x445355[_0x52e8e0(0x13a)];if(!_0x335af0){this['logger'][_0x52e8e0(0x16a)](_0x1db1c3[_0x52e8e0(0x187)]);return;}AutomationFramework[_0x52e8e0(0x193)](_0x335af0,PuppeteerDriverModule[_0x52e8e0(0x1d0)],null),AutomationFramework['setState'](_0x335af0,PuppeteerDriverModule[_0x52e8e0(0x1ce)],null),this[_0x52e8e0(0x194)][_0x52e8e0(0x16a)](_0x1db1c3[_0x52e8e0(0x166)]);}catch(_0x82a5e9){this[_0x52e8e0(0x194)][_0x52e8e0(0x102)](_0x52e8e0(0x1a1)+util[_0x52e8e0(0x1ad)](_0x82a5e9));}}async[a90_0x44f1ab(0xe1)](_0x185766,_0x8f31){const _0x1c764d=a90_0x44f1ab,_0x46000d={};_0x46000d[_0x1c764d(0x15a)]=_0x1c764d(0x171),_0x46000d[_0x1c764d(0x16e)]=_0x1c764d(0xf9),_0x46000d[_0x1c764d(0xf8)]='setSessionName';const _0x5e32ee=_0x46000d;try{if(CLIUtils[_0x1c764d(0x1b8)](BrowserstackCLI[_0x1c764d(0x114)]()[_0x1c764d(0x14f)]())){this[_0x1c764d(0x194)][_0x1c764d(0x16a)](_0x5e32ee[_0x1c764d(0x15a)]);return;}const _0x3971f9=AutomationFramework['getState'](_0x185766,PuppeteerDriverModule['KEY_PAGE_OBJECT']);if(!_0x3971f9){this['logger'][_0x1c764d(0x16a)](_0x5e32ee['toXsh']);return;}const _0x2e55ae=_0x8f31[_0x1c764d(0x127)]||_0x8f31['title']||_0x8f31[_0x1c764d(0x117)],_0x432359={};_0x432359['name']=_0x2e55ae;const _0x49ca9f={};_0x49ca9f[_0x1c764d(0x137)]=_0x5e32ee[_0x1c764d(0xf8)],_0x49ca9f['arguments']=_0x432359;const _0x549a42=_0x49ca9f;PerformanceTester[_0x1c764d(0x180)](PerformanceEvents['SESSION_NAME']),await this['puppeteerBstackExecutor'](_0x3971f9,_0x549a42),PerformanceTester[_0x1c764d(0x13c)](PerformanceEvents[_0x1c764d(0x1c1)]);}catch(_0x34e963){PerformanceTester[_0x1c764d(0x13c)](PerformanceEvents[_0x1c764d(0x1c1)],![],util[_0x1c764d(0x1ad)](_0x34e963)),this['logger'][_0x1c764d(0x102)](_0x1c764d(0x10c)+util[_0x1c764d(0x1ad)](_0x34e963));}}async['markSessionStatus'](_0x375f60,_0x39c889,_0x5e0c11,_0xb272c){const _0x16b3d9=a90_0x44f1ab,_0x1185f0={};_0x1185f0[_0x16b3d9(0x17b)]='markSessionStatus:\x20Skipping\x20session\x20status\x20marking',_0x1185f0[_0x16b3d9(0x1a5)]=_0x16b3d9(0x151),_0x1185f0[_0x16b3d9(0x143)]='markSessionStatus:\x20Page\x20object\x20is\x20not\x20available',_0x1185f0['wFUAE']=_0x16b3d9(0x126),_0x1185f0[_0x16b3d9(0xf2)]=_0x16b3d9(0x1aa),_0x1185f0['GuhFY']=_0x16b3d9(0x136),_0x1185f0[_0x16b3d9(0x1c8)]='markSessionStatus:\x20Marking\x20session\x20status';const _0x30d74e=_0x1185f0;if(CLIUtils[_0x16b3d9(0xe3)](BrowserstackCLI[_0x16b3d9(0x114)]()[_0x16b3d9(0x14f)]())){this[_0x16b3d9(0x194)]['debug'](_0x30d74e[_0x16b3d9(0x17b)]);return;}const _0x41890b=_0x375f60;if(!_0x41890b){this[_0x16b3d9(0x194)][_0x16b3d9(0x16a)](_0x30d74e[_0x16b3d9(0x1a5)]);return;}const _0x5b3fb9=AutomationFramework['getState'](_0x41890b,PuppeteerDriverModule[_0x16b3d9(0x1d0)]);if(!_0x5b3fb9){this[_0x16b3d9(0x194)][_0x16b3d9(0x16a)](_0x30d74e['goXoD']);return;}if(!_0x5e0c11){this[_0x16b3d9(0x194)][_0x16b3d9(0x16a)](_0x30d74e[_0x16b3d9(0x12d)],_0x5e0c11);return;}const _0x122c43={};_0x122c43['status']=_0x5e0c11;const _0xebb676={};_0xebb676[_0x16b3d9(0x137)]=_0x30d74e[_0x16b3d9(0xf2)],_0xebb676['arguments']=_0x122c43;const _0x45e513=_0xebb676;_0xb272c&&(_0x45e513[_0x16b3d9(0xfd)][_0x30d74e['GuhFY']]=_0xb272c),PerformanceTester[_0x16b3d9(0x180)](PerformanceEvents[_0x16b3d9(0x1ca)]),this['logger'][_0x16b3d9(0x16a)](_0x30d74e[_0x16b3d9(0x1c8)]),await this[_0x16b3d9(0x15b)](_0x5b3fb9,_0x45e513),PerformanceTester[_0x16b3d9(0x13c)](PerformanceEvents[_0x16b3d9(0x1ca)]);}async['puppeteerBstackExecutor'](_0x2b70cb,_0x367d12){const _0x50cf01=a90_0x44f1ab,_0x4f8134={'EWKav':function(_0x5101c4,_0x30d231,_0x26cd8a){return _0x5101c4(_0x30d231,_0x26cd8a);},'iuuXh':function(_0x5d43a8,_0x1d403f){return _0x5d43a8(_0x1d403f);}};try{const _0x1dd7f7=0x3a98,_0x3e3087=_0x50cf01(0x196)+JSON[_0x50cf01(0x1b7)](_0x367d12),_0x1f2e47=_0x2b70cb['evaluate'](_0x348c90=>{},_0x3e3087);let _0x4f30ca;await Promise[_0x50cf01(0x110)]([_0x1f2e47,new Promise((_0x55895e,_0x4ab23b)=>{const _0x25e35f=_0x50cf01;_0x4f30ca=_0x4f8134['EWKav'](setTimeout,()=>_0x4ab23b(new Error(_0x25e35f(0x1bf)+_0x1dd7f7+'ms')),_0x1dd7f7);})])[_0x50cf01(0x176)](()=>{const _0x1311d7=_0x50cf01;_0x4f8134[_0x1311d7(0x13e)](clearTimeout,_0x4f30ca);});}catch(_0x28505a){this['logger'][_0x50cf01(0x16a)](_0x50cf01(0x12a)+(_0x28505a[_0x50cf01(0xfe)]||_0x28505a));}}}module['exports']=PuppeteerDriverModule;
1
+ const a90_0xb206c7=a90_0xc92d;function a90_0xc92d(_0x52e1ad,_0x295dfc){const _0x21a027=a90_0x21a0();return a90_0xc92d=function(_0xc92d75,_0x568ce4){_0xc92d75=_0xc92d75-0xff;let _0x182581=_0x21a027[_0xc92d75];return _0x182581;},a90_0xc92d(_0x52e1ad,_0x295dfc);}(function(_0x372c88,_0x5577c7){const _0x13af13=a90_0xc92d,_0x3337df=_0x372c88();while(!![]){try{const _0x23eaa3=-parseInt(_0x13af13(0x1d5))/0x1*(parseInt(_0x13af13(0x1b4))/0x2)+parseInt(_0x13af13(0x1cd))/0x3*(parseInt(_0x13af13(0x1a5))/0x4)+-parseInt(_0x13af13(0x1b2))/0x5+parseInt(_0x13af13(0x14c))/0x6+-parseInt(_0x13af13(0x133))/0x7+parseInt(_0x13af13(0x1e2))/0x8+-parseInt(_0x13af13(0x1cc))/0x9;if(_0x23eaa3===_0x5577c7)break;else _0x3337df['push'](_0x3337df['shift']());}catch(_0x53813e){_0x3337df['push'](_0x3337df['shift']());}}}(a90_0x21a0,0xe20b7));const util=require(a90_0xb206c7(0x185)),BaseModule=require(a90_0xb206c7(0x18e)),{createClassLogger}=require('../../../helpers/classLogger.js'),{getFrameworkVersion}=require(a90_0xb206c7(0x1dd)),helper=require(a90_0xb206c7(0x12a)),{FRAMEWORKS}=require(a90_0xb206c7(0x121)),AutomationFramework=require('../framework/automationFramework.js'),AutomationFrameworkState=require('../state/automationFrameworkState.js'),HookState=require(a90_0xb206c7(0x167)),{nestedKeyValue,playwrightBstackJsExecutor}=require(a90_0xb206c7(0x1ec)),CLIUtils=require(a90_0xb206c7(0x194)),BrowserstackCLI=require(a90_0xb206c7(0x19c)),GrpcClient=require(a90_0xb206c7(0x10d)),PerformanceTester=require(a90_0xb206c7(0x124)),PerformanceEvents=require('../../../helpers/performance/constants.js')[a90_0xb206c7(0x113)],TestInfo=require('../TestInfo.js'),{getPlaywrightProvider,getProductForSession}=require('../../../helpers/helper.js'),LoadTestModule=require('./loadTestModule.js'),TestFrameworkConstants=require(a90_0xb206c7(0x12b)),TestFrameworkState=require('../state/testFrameworkState'),JestUtils=require(a90_0xb206c7(0x152)),TestFramework=require(a90_0xb206c7(0x1ed));function a90_0x21a0(){const _0x4bc47f=['getState','onAfterDriverCreate:\x20Could\x20not\x20extract\x20sessionId\x20via\x20page.evaluate:\x20','browser','error','POST','setSessionName','EHXSK','JLNZb','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','map','browserName','KEY_PLATFORM_DETAILS','onAfterDriverCreate:\x20SessionId\x20set\x20from\x20WebSocket\x20URL:\x20','arguments','TfjHK','split','5806287VgKVDF','201oKPytv','launchcaps','KEY_HUB_URL','ZoLEl','getRef','oYOVJ','testFrameworkData','result','312071aPCgOZ','markSessionStatus','OFcva','skip','registerObserver','onAfterTest\x20CBTSession\x20complete\x20for\x20testIdentifier:\x20','hubUrl','platformIndex','../../../helpers/test-observability/utils','JEST','fwLdc','getContext','browserstack_executor:\x20','1263184SpzsWA','puppeteer_platform_details','lwRMS','KEY_BROWSER_OBJECT','zSFNi','getProcessId','instance','puppeteer_page','SESSION_STATUS','onAfterTest','../../../helpers/helper.js','../framework/testFramework.js','page','evaluate','onAfterDriverCreate:\x20Setting\x20page\x20object','keys','ayjzI','__bstackPlatformIndex','onAfterDriverCreate:\x20Updated\x20capabilities\x20from\x20global.__launchCaps','getThreadId','Puppeteer','setState','DqoPG','end','puppeteer_browser','recreateIdentifierFromTestInfo','fullName','testRunId','Error\x20in\x20onAfterDriverCreate:\x20','_connection','bind','uuid','testSessionEvent','../grpcClient.js','onAfterDriverCreate:\x20Could\x20not\x20extract\x20sessionId:\x20','ftHkn','aXPjB','values','onAfterDriverCreate:\x20Error\x20extracting\x20caps\x20from\x20driverInit\x20response:\x20','AUTOMATE_EVENTS','puppeteer_platform_index','onAfterDriverCreate:\x20SessionId\x20set\x20from\x20args:\x20','KEY_TEST_FRAMEWORK_NAME','onAfterDriverCreate:\x20SessionId\x20extracted\x20via\x20browserstack_executor:\x20','tYqGQ','failed','finally','YhzDj','sJzIz','Error\x20in\x20onBeforeDriverCreate:\x20','setSessionStatus','isPuppeteer','isLTSSession','../../utils/constants','markSessionStatus:\x20Skipping\x20session\x20status\x20marking','Automation\x20onAfterTest:\x20Recreated\x20Jest\x20testIdentifier:\x20','../../../helpers/performance/performance-tester.js','from','title','EbRIC','add','markSessionName:\x20Page\x20object\x20is\x20not\x20available','../../../helpers/helper','../framework/constants/testFrameworkConstants.js','browserstack_executor\x20timeout\x20after\x20','ref','driverInit','format','cvTQD','Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','onAfterDriverCreate:\x20Extracted\x20capabilities\x20from\x20driverInit\x20response:\x20','2822463CQEWWu','PuppeteerDriverModule','TVnck','getCapabilities','tINGy','utf8','onAfterDriverCreate:\x20Puppeteer\x20driver\x20has\x20been\x20created\x20','_driverInitRef','getHubUrl','CREATE','PRE','getLTSSessionId','QUIT','markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','pid','onAfterDriverCreate:\x20driverInit\x20response\x20received','mDGAp','LHMxG','__bstackSessionId','puppeteer_capabilities','getModuleName','KEY_CAPABILITIES','qPqPt','testFrameworkName','dpvBk','4756998DRBgZi','__launchCaps','KEY_SESSION_ID','skipped','test_identifier','eiDlF','../utils/jest-utils.js','userInputParams','Automation\x20onAfterTest:\x20Setting\x20session\x20name\x20and\x20status','dixir','MlBgk',':testAnalyticsId','testHookState','testInfo','sessionId','onBeforeQuit:\x20Puppeteer\x20driver\x20is\x20about\x20to\x20quit','onBeforeQuit:\x20Cleanup\x20complete','markSessionName:\x20Skipping\x20session\x20name\x20marking','onBeforeDriverCreate','onAfterDriverCreate:\x20Setting\x20browser\x20object','getConfig','wQFSz','join','puppeteer_test_id','KEY_PAGE_OBJECT','onAfterDriverCreate:\x20Stored\x20full\x20W3C\x20capabilities\x20from\x20DriverInit\x20response','onAfterDriverCreate:\x20SessionId\x20set\x20from\x20global:\x20','../state/hookState.js','message','MODULE_NAME','FqNtI',',\x20skipping\x20duplicate','puppeteer_hub_url','Automation\x20onAfterTest:\x20Test\x20completed','object','test','onAfterDriverCreate','start','onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','name','automationSession','_driverInitCalledForRef','sAPSc','Error\x20in\x20markSessionName:\x20','toString','getId','puppeteerBstackExecutor','_url','logger','debug','stringify','RnvgB','Error\x20in\x20onBeforeQuit:\x20','otAOV','vTEun','getInstance','action','util','onBeforeQuit','testFrameworkVersion','GLjst','shouldSkipSessionName','gBpfZ','yQjkp','Ovdhu','Unknown\x20Test','./baseModule','has','timedout','onBeforeDriverCreate:\x20Puppeteer\x20driver\x20is\x20about\x20to\x20be\x20created','length','Palse','../cliUtils.js','hashed_id','SESSION_NAME','string','iziyp','RqMdX','wgNlW','0|3|10|7|4|5|9|8|1|11|6|2','../browserstackCLI.js','markSessionName','errorsDetailed','onBeforeQuit:\x20No\x20automation\x20instance\x20available','browserstack_executor:\x20{\x22action\x22:\x22getSessionDetails\x22}','NTSRQ','vyDYl','dUuni','PeNmr','92764BLHJln','parse','onAfterDriverCreate:\x20driverInit\x20already\x20called\x20for\x20ref\x20','KEY_PLATFORM_INDEX','onAfterTest\x20CBTSession\x20payload:\x20','capabilities','SGjyV','oEHpt','failureMessage','jestUtils','OZQKq','yAbcL','xqcIZ','1091130FCuJlr','onAfterDriverCreate:\x20No\x20testInfo\x20available\x20(browser\x20created\x20outside\x20test\x20context).\x20Session\x20name\x20will\x20be\x20deferred\x20to\x20executeDeferredCloses.','2EUXekH','version','puppeteerVersion','pBtrk','yRggp','WBKdG','TEST','status'];a90_0x21a0=function(){return _0x4bc47f;};return a90_0x21a0();}class PuppeteerDriverModule extends BaseModule{static [a90_0xb206c7(0x1e5)]=a90_0xb206c7(0x104);static [a90_0xb206c7(0x164)]=a90_0xb206c7(0x1e9);static ['KEY_SESSION_ID']='puppeteer_session_id';static ['KEY_PLATFORM_INDEX']=a90_0xb206c7(0x114);static [a90_0xb206c7(0x148)]=a90_0xb206c7(0x146);static ['KEY_HUB_URL']=a90_0xb206c7(0x16c);static [a90_0xb206c7(0x1c7)]=a90_0xb206c7(0x1e3);static ['KEY_TEST_ID']=a90_0xb206c7(0x163);static ['MODULE_NAME']=a90_0xb206c7(0x134);static [a90_0xb206c7(0x175)]=new Set();static [a90_0xb206c7(0x13a)]=null;[a90_0xb206c7(0x17c)]=createClassLogger(a90_0xb206c7(0x134));constructor(_0x30dd5b=null){const _0x2a22dd=a90_0xb206c7,_0x1b3786={};_0x1b3786['yQjkp']=_0x2a22dd(0x19b),_0x1b3786[_0x2a22dd(0x1e4)]=_0x2a22dd(0x134);const _0x1dd1b2=_0x1b3786,_0x9f1dc1=_0x1dd1b2[_0x2a22dd(0x18b)][_0x2a22dd(0x1cb)]('|');let _0x5b2371=0x0;while(!![]){switch(_0x9f1dc1[_0x5b2371++]){case'0':super(_0x30dd5b);continue;case'1':AutomationFramework[_0x2a22dd(0x1d9)](AutomationFrameworkState[_0x2a22dd(0x13c)],HookState['PRE'],this[_0x2a22dd(0x15e)][_0x2a22dd(0x10a)](this));continue;case'2':AutomationFramework[_0x2a22dd(0x1d9)](AutomationFrameworkState[_0x2a22dd(0x13f)],HookState[_0x2a22dd(0x13d)],this[_0x2a22dd(0x186)]['bind'](this));continue;case'3':this[_0x2a22dd(0x173)]=_0x1dd1b2['lwRMS'];continue;case'4':this['browserVersion']=null;continue;case'5':this['platforms']=[];continue;case'6':TestFramework[_0x2a22dd(0x1d9)](TestFrameworkState['TEST'],HookState[_0x2a22dd(0x1c0)],this[_0x2a22dd(0x1eb)][_0x2a22dd(0x10a)](this));continue;case'7':this[_0x2a22dd(0x1c6)]=null;continue;case'8':this['jestUtils']=new JestUtils();continue;case'9':this[_0x2a22dd(0x107)]=null;continue;case'10':this[_0x2a22dd(0x1b6)]=null;continue;case'11':AutomationFramework[_0x2a22dd(0x1d9)](AutomationFrameworkState[_0x2a22dd(0x13c)],HookState[_0x2a22dd(0x1c0)],this['onAfterDriverCreate'][_0x2a22dd(0x10a)](this));continue;}break;}}[a90_0xb206c7(0x147)](){const _0xcb3a05=a90_0xb206c7;return PuppeteerDriverModule[_0xcb3a05(0x169)];}async[a90_0xb206c7(0x15e)](_0xf452d6){const _0x48de29=a90_0xb206c7,_0x15fbdb={};_0x15fbdb[_0x48de29(0x1b1)]=_0x48de29(0x191),_0x15fbdb[_0x48de29(0x1ac)]='base64',_0x15fbdb[_0x48de29(0x1d2)]=_0x48de29(0x142),_0x15fbdb[_0x48de29(0x188)]=_0x48de29(0x138),_0x15fbdb['PeNmr']=function(_0x4985ba,_0x50dd49){return _0x4985ba===_0x50dd49;},_0x15fbdb[_0x48de29(0x1b7)]=_0x48de29(0x16e),_0x15fbdb[_0x48de29(0x198)]=function(_0x26d83e,_0x45e743){return _0x26d83e!==_0x45e743;},_0x15fbdb[_0x48de29(0x17f)]=_0x48de29(0x197),_0x15fbdb[_0x48de29(0x1ab)]=function(_0x50e5b8,_0x599154){return _0x50e5b8>_0x599154;},_0x15fbdb[_0x48de29(0x14b)]=_0x48de29(0x165);const _0xe9cf83=_0x15fbdb;try{this[_0x48de29(0x17c)][_0x48de29(0x17d)](_0xe9cf83[_0x48de29(0x1b1)]);const _0x472ae4=_0xf452d6[_0x48de29(0x1ce)],_0x36d369=_0xf452d6[_0x48de29(0x1db)];AutomationFramework['setState'](_0xf452d6[_0x48de29(0x1e8)],PuppeteerDriverModule[_0x48de29(0x148)],_0x472ae4),AutomationFramework['setState'](_0xf452d6[_0x48de29(0x1e8)],PuppeteerDriverModule[_0x48de29(0x1cf)],_0x36d369);const _0xbe5387=_0xf452d6['instance'][_0x48de29(0x1d1)](),_0x3ec567=global['__bstackPlatformIndex']||0x0;AutomationFramework[_0x48de29(0x101)](_0xf452d6[_0x48de29(0x1e8)],PuppeteerDriverModule[_0x48de29(0x1a8)],_0x3ec567);if(PuppeteerDriverModule[_0x48de29(0x175)][_0x48de29(0x18f)](_0xbe5387))this[_0x48de29(0x17c)][_0x48de29(0x17d)](_0x48de29(0x1a7)+_0xbe5387+_0x48de29(0x16b));else{PuppeteerDriverModule[_0x48de29(0x175)][_0x48de29(0x128)](_0xbe5387),PuppeteerDriverModule[_0x48de29(0x13a)]=_0xbe5387;const _0x1ba2fc={..._0x472ae4};_0x1ba2fc[_0x48de29(0x11f)]=!![];const _0x1c71a9=Buffer[_0x48de29(0x125)](JSON[_0x48de29(0x17e)](_0x1ba2fc)['toString'](_0xe9cf83[_0x48de29(0x1ac)])),_0x1d275b={};_0x1d275b[_0x48de29(0x1dc)]=_0x3ec567,_0x1d275b[_0x48de29(0x12d)]=_0xbe5387,_0x1d275b[_0x48de29(0x153)]=_0x1c71a9,_0x1d275b[_0x48de29(0x1db)]=_0x36d369;const _0x3f540b=await GrpcClient[_0x48de29(0x183)]()[_0x48de29(0x12e)](_0x1d275b);this[_0x48de29(0x17c)][_0x48de29(0x17d)](_0xe9cf83[_0x48de29(0x1d2)]);if(_0x3f540b)try{const _0xb1627b=_0x3f540b[_0x48de29(0x136)]?_0x3f540b[_0x48de29(0x136)]():_0x3f540b[_0x48de29(0x1aa)];if(_0xb1627b){let _0x1e9a60;if(Buffer['isBuffer'](_0xb1627b))_0x1e9a60=JSON[_0x48de29(0x1a6)](_0xb1627b[_0x48de29(0x178)](_0xe9cf83[_0x48de29(0x188)]));else{if(_0xe9cf83['PeNmr'](typeof _0xb1627b,_0xe9cf83[_0x48de29(0x1b7)])&&_0xe9cf83[_0x48de29(0x198)](_0xb1627b,null)){const _0x176f60=Buffer[_0x48de29(0x125)](Object[_0x48de29(0x111)](_0xb1627b));_0x1e9a60=JSON[_0x48de29(0x1a6)](_0x176f60[_0x48de29(0x178)](_0xe9cf83['GLjst']));}else _0xe9cf83[_0x48de29(0x1a4)](typeof _0xb1627b,_0xe9cf83['RnvgB'])?_0x1e9a60=JSON[_0x48de29(0x1a6)](_0xb1627b):_0x1e9a60=_0xb1627b;}this['logger'][_0x48de29(0x17d)](_0x48de29(0x132)+JSON[_0x48de29(0x17e)](_0x1e9a60)),_0x1e9a60&&_0xe9cf83[_0x48de29(0x1ab)](Object['keys'](_0x1e9a60)[_0x48de29(0x192)],0x0)&&(AutomationFramework[_0x48de29(0x101)](_0xf452d6['instance'],PuppeteerDriverModule[_0x48de29(0x148)],_0x1e9a60),global[_0x48de29(0x14d)]=_0x1e9a60,this[_0x48de29(0x17c)][_0x48de29(0x17d)](_0xe9cf83[_0x48de29(0x14b)]));}const _0x30bed3=_0x3f540b['getHubUrl']?_0x3f540b[_0x48de29(0x13b)]():_0x3f540b[_0x48de29(0x1db)];_0x30bed3&&AutomationFramework[_0x48de29(0x101)](_0xf452d6[_0x48de29(0x1e8)],PuppeteerDriverModule['KEY_HUB_URL'],_0x30bed3);}catch(_0x149962){this['logger']['debug'](_0x48de29(0x112)+util[_0x48de29(0x12f)](_0x149962));}}}catch(_0x55571e){this[_0x48de29(0x17c)][_0x48de29(0x1bf)](_0x48de29(0x11d)+util[_0x48de29(0x12f)](_0x55571e));}}async[a90_0xb206c7(0x170)](_0x1f8600){const _0x9709ea=a90_0xb206c7,_0x29627d={'LHMxG':function(_0xc4406e,_0xf25cbe){return _0xc4406e(_0xf25cbe);},'gBpfZ':_0x9709ea(0x1f0),'RqMdX':_0x9709ea(0x172),'UXDhr':_0x9709ea(0x1b3),'dUuni':_0x9709ea(0x15f),'cvTQD':function(_0x1ce704,_0x1e655c){return _0x1ce704>_0x1e655c;},'mDGAp':_0x9709ea(0x1f4),'Ovdhu':_0x9709ea(0x1a0),'vTEun':function(_0x51c878,_0x181e80){return _0x51c878===_0x181e80;},'eiDlF':_0x9709ea(0x197)};try{this[_0x9709ea(0x17c)][_0x9709ea(0x17d)](_0x9709ea(0x139)+JSON[_0x9709ea(0x17e)](_0x1f8600));const _0x585984=_0x1f8600[_0x9709ea(0x1e8)];this['puppeteerVersion']=_0x29627d[_0x9709ea(0x144)](getFrameworkVersion,FRAMEWORKS['PUPPETEER']);_0x1f8600[_0x9709ea(0x1ee)]&&(this[_0x9709ea(0x17c)][_0x9709ea(0x17d)](_0x29627d[_0x9709ea(0x18a)]),AutomationFramework[_0x9709ea(0x101)](_0x585984,PuppeteerDriverModule[_0x9709ea(0x164)],_0x1f8600[_0x9709ea(0x1ee)]),_0x1f8600[_0x9709ea(0x159)]?(this[_0x9709ea(0x17c)]['debug'](_0x29627d[_0x9709ea(0x199)]),AutomationFramework['setState'](_0x585984,PuppeteerDriverModule['KEY_TEST_ID'],_0x1f8600[_0x9709ea(0x159)]['id']||''),await this[_0x9709ea(0x19d)](_0x585984,_0x1f8600[_0x9709ea(0x159)])):this['logger'][_0x9709ea(0x17d)](_0x29627d['UXDhr']));if(_0x1f8600[_0x9709ea(0x1be)]){this[_0x9709ea(0x17c)]['debug'](_0x29627d[_0x9709ea(0x1a3)]),AutomationFramework['setState'](_0x585984,PuppeteerDriverModule['KEY_BROWSER_OBJECT'],_0x1f8600[_0x9709ea(0x1be)]);global[_0x9709ea(0x14d)]&&_0x29627d[_0x9709ea(0x130)](Object['keys'](global[_0x9709ea(0x14d)])['length'],0x0)&&(AutomationFramework[_0x9709ea(0x101)](_0x585984,PuppeteerDriverModule['KEY_CAPABILITIES'],global[_0x9709ea(0x14d)]),this[_0x9709ea(0x17c)][_0x9709ea(0x17d)](_0x29627d[_0x9709ea(0x143)]));if(_0x1f8600['sessionId'])AutomationFramework['setState'](_0x585984,PuppeteerDriverModule[_0x9709ea(0x14e)],_0x1f8600[_0x9709ea(0x15a)]),this[_0x9709ea(0x17c)][_0x9709ea(0x17d)](_0x9709ea(0x115)+_0x1f8600[_0x9709ea(0x15a)]);else{if(global['__bstackSessionId'])AutomationFramework[_0x9709ea(0x101)](_0x585984,PuppeteerDriverModule[_0x9709ea(0x14e)],global['__bstackSessionId']),this[_0x9709ea(0x17c)][_0x9709ea(0x17d)](_0x9709ea(0x166)+global[_0x9709ea(0x145)]);else try{const _0x1ae930=_0x1f8600[_0x9709ea(0x1ee)]||AutomationFramework[_0x9709ea(0x1bc)](_0x585984,PuppeteerDriverModule['KEY_PAGE_OBJECT']);if(_0x1ae930){const _0x2d685d=await _0x1ae930[_0x9709ea(0x1ef)](_0xf9da2c=>{},_0x29627d[_0x9709ea(0x18c)]);if(_0x2d685d){const _0x28547e=_0x29627d[_0x9709ea(0x182)](typeof _0x2d685d,_0x29627d[_0x9709ea(0x151)])?JSON[_0x9709ea(0x1a6)](_0x2d685d):_0x2d685d;_0x28547e&&_0x28547e['hashed_id']&&(AutomationFramework[_0x9709ea(0x101)](_0x585984,PuppeteerDriverModule[_0x9709ea(0x14e)],_0x28547e[_0x9709ea(0x195)]),global['__bstackSessionId']=_0x28547e[_0x9709ea(0x195)],this[_0x9709ea(0x17c)][_0x9709ea(0x17d)](_0x9709ea(0x117)+_0x28547e[_0x9709ea(0x195)]));}}}catch(_0x4cf72e){this[_0x9709ea(0x17c)][_0x9709ea(0x17d)](_0x9709ea(0x1bd)+util[_0x9709ea(0x12f)](_0x4cf72e));if(_0x1f8600[_0x9709ea(0x1be)]['_connection']&&_0x1f8600[_0x9709ea(0x1be)][_0x9709ea(0x109)][_0x9709ea(0x17b)])try{const _0x1a9ac3=_0x1f8600[_0x9709ea(0x1be)][_0x9709ea(0x109)][_0x9709ea(0x17b)];AutomationFramework[_0x9709ea(0x101)](_0x585984,PuppeteerDriverModule[_0x9709ea(0x14e)],_0x1a9ac3),this[_0x9709ea(0x17c)][_0x9709ea(0x17d)](_0x9709ea(0x1c8)+_0x1a9ac3);}catch(_0x316b2f){this['logger'][_0x9709ea(0x17d)](_0x9709ea(0x10e)+util[_0x9709ea(0x12f)](_0x316b2f));}}}}}catch(_0x20754e){this[_0x9709ea(0x17c)][_0x9709ea(0x1bf)](_0x9709ea(0x108)+util[_0x9709ea(0x12f)](_0x20754e));}}async[a90_0xb206c7(0x1eb)](_0x22a158){const _0x270f4c=a90_0xb206c7,_0x159881={'lnETv':_0x270f4c(0x16d),'bctLH':_0x270f4c(0x131),'ftHkn':'unknown','sJzIz':_0x270f4c(0x18d),'ayjzI':function(_0x1623bb,_0x5938ef){return _0x1623bb>_0x5938ef;},'sAPSc':function(_0x1fa60e,_0x12ca54){return _0x1fa60e===_0x12ca54;},'tINGy':'passed','yRggp':function(_0x2ca8d0,_0x46897c){return _0x2ca8d0===_0x46897c;},'YhzDj':_0x270f4c(0x119),'otAOV':_0x270f4c(0x190),'WBKdG':function(_0x49b7c9,_0x4a6bc8){return _0x49b7c9===_0x4a6bc8;},'OZQKq':'timedOut','JLNZb':_0x270f4c(0x14f),'ZoLEl':function(_0x327392,_0x332ce3){return _0x327392===_0x332ce3;},'mUGFP':_0x270f4c(0x1d8),'zSFNi':function(_0xf2b9b6,_0x5012c3){return _0xf2b9b6(_0x5012c3);},'aXPjB':_0x270f4c(0x100),'NTSRQ':function(_0x2205f5){return _0x2205f5();},'dixir':function(_0x56b5cf,_0x3ebe83){return _0x56b5cf>_0x3ebe83;},'DqoPG':'base64','yAbcL':_0x270f4c(0x1c4),'qPqPt':_0x270f4c(0x154)};this[_0x270f4c(0x17c)][_0x270f4c(0x17d)](_0x159881['lnETv']);const _0x253a9a=_0x22a158[_0x270f4c(0x1e8)];if(!_0x253a9a){this['logger'][_0x270f4c(0x17d)](_0x159881['bctLH']);return;}try{const _0x28ab72=_0x22a158['testInfo'],_0x5d3397=_0x22a158[_0x270f4c(0x16f)];let _0x4a03b9=_0x22a158['testIdentifier'],_0x318d4d=_0x159881[_0x270f4c(0x10f)],_0x4649b9=_0x159881[_0x270f4c(0x11c)],_0x59ccce=null;_0x28ab72&&(_0x318d4d=_0x28ab72[_0x270f4c(0x1bb)]||_0x5d3397?.[_0x270f4c(0x1d4)]||_0x159881[_0x270f4c(0x10f)],_0x4649b9=_0x28ab72['name']||_0x28ab72[_0x270f4c(0x126)]||_0x5d3397?.['name']||_0x5d3397?.[_0x270f4c(0x126)]||_0x159881[_0x270f4c(0x11c)],_0x59ccce=_0x28ab72[_0x270f4c(0x1ad)]||_0x28ab72[_0x270f4c(0x1bf)]?.['message']||null,_0x5d3397?.[_0x270f4c(0x19e)]&&_0x159881[_0x270f4c(0x1f2)](_0x5d3397['errorsDetailed'][_0x270f4c(0x192)],0x0)&&(_0x59ccce=_0x59ccce||_0x5d3397[_0x270f4c(0x19e)][_0x270f4c(0x1c5)](_0x42e6b0=>_0x42e6b0[_0x270f4c(0x168)]||_0x42e6b0)[_0x270f4c(0x162)]('\x0a')));let _0x2dd013=null;if(_0x159881[_0x270f4c(0x176)](_0x318d4d,_0x159881['tINGy']))_0x2dd013=_0x159881[_0x270f4c(0x137)];else{if(_0x159881[_0x270f4c(0x1b8)](_0x318d4d,_0x159881[_0x270f4c(0x11b)])||_0x159881[_0x270f4c(0x176)](_0x318d4d,_0x159881[_0x270f4c(0x181)])||_0x159881[_0x270f4c(0x1b9)](_0x318d4d,_0x159881[_0x270f4c(0x1af)]))_0x2dd013=_0x159881[_0x270f4c(0x11b)];else(_0x159881[_0x270f4c(0x1b8)](_0x318d4d,_0x159881[_0x270f4c(0x1c3)])||_0x159881[_0x270f4c(0x1d0)](_0x318d4d,_0x159881['mUGFP']))&&(_0x2dd013=_0x159881[_0x270f4c(0x1c3)]);}this[_0x270f4c(0x1d3)]&&_0x159881['yRggp'](this[_0x270f4c(0x1d3)][_0x270f4c(0x173)],FRAMEWORKS[_0x270f4c(0x1de)])?(_0x4a03b9=this[_0x270f4c(0x1ae)][_0x270f4c(0x105)](_0x28ab72,_0x4a03b9),this[_0x270f4c(0x17c)][_0x270f4c(0x17d)](_0x270f4c(0x123)+_0x4a03b9)):_0x4a03b9=_0x5d3397?.['id']||_0x5d3397?.[_0x270f4c(0x10b)]||process[_0x270f4c(0x141)]+_0x270f4c(0x157);const _0x39bcd1=TestInfo['getTestDetails'](_0x4a03b9),_0x39c883=AutomationFramework[_0x270f4c(0x1bc)](_0x253a9a,PuppeteerDriverModule[_0x270f4c(0x1a8)])||global[_0x270f4c(0x1f3)],_0x59be19=_0x39bcd1?.[TestFrameworkConstants[_0x270f4c(0x116)]]||this['testFrameworkData']&&this[_0x270f4c(0x1d3)][_0x270f4c(0x173)],_0x5b7dc7=_0x39bcd1?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]||this[_0x270f4c(0x1d3)]&&this[_0x270f4c(0x1d3)][_0x270f4c(0x1b5)],_0x39b842=TestFrameworkState[_0x270f4c(0x1ba)]['toString']()[_0x270f4c(0x1cb)]('.')[0x1],_0x118393=HookState[_0x270f4c(0x1c0)][_0x270f4c(0x178)]()[_0x270f4c(0x1cb)]('.')[0x1],_0x151dfd=_0x253a9a[_0x270f4c(0x1e0)](),_0x344d99=AutomationFramework[_0x270f4c(0x1bc)](_0x253a9a,PuppeteerDriverModule[_0x270f4c(0x1cf)],'')||BrowserstackCLI[_0x270f4c(0x183)]()['getConfig']()?.['hubUrl']||'',_0x5a753a=AutomationFramework[_0x270f4c(0x1bc)](_0x253a9a,PuppeteerDriverModule[_0x270f4c(0x14e)],'')||global[_0x270f4c(0x145)]||'',_0x40d266={'provider':_0x159881[_0x270f4c(0x1e6)](getPlaywrightProvider,_0x344d99),'frameworkName':_0x159881[_0x270f4c(0x110)],'frameworkVersion':this[_0x270f4c(0x1b6)]||'','frameworkSessionId':LoadTestModule[_0x270f4c(0x120)]()?LoadTestModule[_0x270f4c(0x13e)]():_0x5a753a,'ref':PuppeteerDriverModule[_0x270f4c(0x13a)]||_0x253a9a[_0x270f4c(0x1d1)](),'hubUrl':_0x344d99,'product':_0x159881[_0x270f4c(0x1a1)](getProductForSession)};let _0x264b76=AutomationFramework[_0x270f4c(0x1bc)](_0x253a9a,PuppeteerDriverModule[_0x270f4c(0x148)],null)||global['__launchCaps']||global['__platformCaps']||{};_0x264b76&&_0x159881[_0x270f4c(0x155)](Object[_0x270f4c(0x1f1)](_0x264b76)['length'],0x0)?_0x264b76=Buffer[_0x270f4c(0x125)](JSON[_0x270f4c(0x17e)](_0x264b76))[_0x270f4c(0x178)](_0x159881[_0x270f4c(0x102)]):_0x264b76=Buffer[_0x270f4c(0x125)](JSON[_0x270f4c(0x17e)]({}))['toString'](_0x159881[_0x270f4c(0x102)]);const _0x4c6e08={'hash':_0x151dfd[_0x270f4c(0x179)](),'threadId':_0x151dfd[_0x270f4c(0xff)]()[_0x270f4c(0x178)](),'processId':_0x151dfd[_0x270f4c(0x1e7)]()[_0x270f4c(0x178)]()},_0x3ce929={};_0x3ce929[_0x270f4c(0x1dc)]=_0x39c883,_0x3ce929[_0x270f4c(0x14a)]=_0x59be19,_0x3ce929[_0x270f4c(0x187)]=_0x5b7dc7,_0x3ce929['testFrameworkState']=_0x39b842,_0x3ce929[_0x270f4c(0x158)]=_0x118393,_0x3ce929[_0x270f4c(0x150)]=_0x4a03b9,_0x3ce929[_0x270f4c(0x174)]=_0x40d266,_0x3ce929['capabilities']=_0x264b76,_0x3ce929['executionContext']=_0x4c6e08;const _0xb37335=_0x3ce929;this[_0x270f4c(0x17c)][_0x270f4c(0x17d)](_0x270f4c(0x1a9)+util['format'](_0xb37335)),GrpcClient[_0x270f4c(0x183)]()[_0x270f4c(0x10c)](_0xb37335),this[_0x270f4c(0x17c)][_0x270f4c(0x17d)](_0x270f4c(0x1da)+_0x4a03b9);if(!_0x2dd013){this[_0x270f4c(0x17c)][_0x270f4c(0x17d)](_0x159881[_0x270f4c(0x1b0)],_0x318d4d);return;}this[_0x270f4c(0x17c)][_0x270f4c(0x17d)](_0x159881[_0x270f4c(0x149)]),_0x28ab72&&await this[_0x270f4c(0x19d)](_0x253a9a,_0x28ab72),await this[_0x270f4c(0x1d6)](_0x253a9a,_0x4649b9,_0x2dd013,_0x59ccce);}catch(_0x550a30){this['logger']['error']('Error\x20in\x20onAfterTest:\x20'+util[_0x270f4c(0x12f)](_0x550a30));}}async['onBeforeQuit'](_0xfb3699){const _0x3fc65c=a90_0xb206c7,_0x4c5bfc={};_0x4c5bfc[_0x3fc65c(0x1ca)]=_0x3fc65c(0x15b),_0x4c5bfc['MlBgk']=_0x3fc65c(0x19f),_0x4c5bfc['RrAhe']=_0x3fc65c(0x15c);const _0x4122cb=_0x4c5bfc;try{this['logger'][_0x3fc65c(0x17d)](_0x4122cb[_0x3fc65c(0x1ca)]);const _0x4724d2=_0xfb3699[_0x3fc65c(0x1e8)];if(!_0x4724d2){this['logger']['debug'](_0x4122cb[_0x3fc65c(0x156)]);return;}AutomationFramework['setState'](_0x4724d2,PuppeteerDriverModule[_0x3fc65c(0x164)],null),AutomationFramework[_0x3fc65c(0x101)](_0x4724d2,PuppeteerDriverModule[_0x3fc65c(0x1e5)],null),this[_0x3fc65c(0x17c)][_0x3fc65c(0x17d)](_0x4122cb['RrAhe']);}catch(_0x120f49){this['logger']['error'](_0x3fc65c(0x180)+util[_0x3fc65c(0x12f)](_0x120f49));}}async['markSessionName'](_0x5ea6c6,_0x4246ec){const _0x438841=a90_0xb206c7,_0x36907f={};_0x36907f[_0x438841(0x1df)]=_0x438841(0x15d),_0x36907f[_0x438841(0x118)]=_0x438841(0x129),_0x36907f[_0x438841(0x1c2)]=_0x438841(0x1c1);const _0x4323ea=_0x36907f;try{if(CLIUtils[_0x438841(0x189)](BrowserstackCLI['getInstance']()[_0x438841(0x160)]())){this['logger'][_0x438841(0x17d)](_0x4323ea['fwLdc']);return;}const _0x3c1743=AutomationFramework['getState'](_0x5ea6c6,PuppeteerDriverModule[_0x438841(0x164)]);if(!_0x3c1743){this[_0x438841(0x17c)]['debug'](_0x4323ea['tYqGQ']);return;}const _0x1dc4f8=_0x4246ec[_0x438841(0x173)]||_0x4246ec[_0x438841(0x126)]||_0x4246ec[_0x438841(0x106)],_0x3ae162={};_0x3ae162['name']=_0x1dc4f8;const _0x54928b={};_0x54928b[_0x438841(0x184)]=_0x4323ea[_0x438841(0x1c2)],_0x54928b[_0x438841(0x1c9)]=_0x3ae162;const _0x3ecc49=_0x54928b;PerformanceTester['start'](PerformanceEvents[_0x438841(0x196)]),await this[_0x438841(0x17a)](_0x3c1743,_0x3ecc49),PerformanceTester[_0x438841(0x103)](PerformanceEvents[_0x438841(0x196)]);}catch(_0x450c7f){PerformanceTester[_0x438841(0x103)](PerformanceEvents[_0x438841(0x196)],![],util[_0x438841(0x12f)](_0x450c7f)),this[_0x438841(0x17c)][_0x438841(0x1bf)](_0x438841(0x177)+util[_0x438841(0x12f)](_0x450c7f));}}async[a90_0xb206c7(0x1d6)](_0x27e567,_0x305548,_0x5d638c,_0x25f721){const _0x394e7f=a90_0xb206c7,_0x1823b8={};_0x1823b8[_0x394e7f(0x135)]=_0x394e7f(0x122),_0x1823b8[_0x394e7f(0x1d7)]='markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available',_0x1823b8['Palse']=_0x394e7f(0x140),_0x1823b8[_0x394e7f(0x161)]=_0x394e7f(0x1c4),_0x1823b8[_0x394e7f(0x127)]=_0x394e7f(0x11e),_0x1823b8[_0x394e7f(0x19a)]='reason',_0x1823b8[_0x394e7f(0x16a)]='markSessionStatus:\x20Marking\x20session\x20status';const _0x4b42c6=_0x1823b8;if(CLIUtils['shouldSkipSessionStatus'](BrowserstackCLI['getInstance']()[_0x394e7f(0x160)]())){this[_0x394e7f(0x17c)]['debug'](_0x4b42c6[_0x394e7f(0x135)]);return;}const _0x283341=_0x27e567;if(!_0x283341){this[_0x394e7f(0x17c)][_0x394e7f(0x17d)](_0x4b42c6['OFcva']);return;}const _0x4ffea5=AutomationFramework[_0x394e7f(0x1bc)](_0x283341,PuppeteerDriverModule[_0x394e7f(0x164)]);if(!_0x4ffea5){this[_0x394e7f(0x17c)][_0x394e7f(0x17d)](_0x4b42c6[_0x394e7f(0x193)]);return;}if(!_0x5d638c){this[_0x394e7f(0x17c)][_0x394e7f(0x17d)](_0x4b42c6[_0x394e7f(0x161)],_0x5d638c);return;}const _0x5595e1={};_0x5595e1[_0x394e7f(0x1bb)]=_0x5d638c;const _0x37ad0d={};_0x37ad0d['action']=_0x4b42c6['EbRIC'],_0x37ad0d[_0x394e7f(0x1c9)]=_0x5595e1;const _0x1b6278=_0x37ad0d;_0x25f721&&(_0x1b6278[_0x394e7f(0x1c9)][_0x4b42c6[_0x394e7f(0x19a)]]=_0x25f721),PerformanceTester[_0x394e7f(0x171)](PerformanceEvents[_0x394e7f(0x1ea)]),this[_0x394e7f(0x17c)][_0x394e7f(0x17d)](_0x4b42c6[_0x394e7f(0x16a)]),await this[_0x394e7f(0x17a)](_0x4ffea5,_0x1b6278),PerformanceTester[_0x394e7f(0x103)](PerformanceEvents[_0x394e7f(0x1ea)]);}async[a90_0xb206c7(0x17a)](_0x267d9f,_0x4a64fb){const _0x144c02=a90_0xb206c7,_0x5dbc69={'vyDYl':function(_0x16872e,_0x484794,_0x483a37){return _0x16872e(_0x484794,_0x483a37);},'QQBoS':function(_0x193311,_0x23e500){return _0x193311(_0x23e500);}};try{const _0x405569=0x3a98,_0x5079b4=_0x144c02(0x1e1)+JSON[_0x144c02(0x17e)](_0x4a64fb),_0x45e312=_0x267d9f[_0x144c02(0x1ef)](_0x47a088=>{},_0x5079b4);let _0x1a7c61;await Promise['race']([_0x45e312,new Promise((_0x10f69e,_0x38beca)=>{const _0x18a09e=_0x144c02;_0x1a7c61=_0x5dbc69[_0x18a09e(0x1a2)](setTimeout,()=>_0x38beca(new Error(_0x18a09e(0x12c)+_0x405569+'ms')),_0x405569);})])[_0x144c02(0x11a)](()=>{_0x5dbc69['QQBoS'](clearTimeout,_0x1a7c61);});}catch(_0x4123a9){this[_0x144c02(0x17c)][_0x144c02(0x17d)]('Error\x20in\x20puppeteerBstackExecutor:\x20'+(_0x4123a9[_0x144c02(0x168)]||_0x4123a9));}}}module['exports']=PuppeteerDriverModule;
@@ -1 +1 @@
1
- const a91_0x144a3a=a91_0x247c;function a91_0x247c(_0x5e0714,_0x3e79d7){const _0x2f5278=a91_0x2f52();return a91_0x247c=function(_0x247c49,_0x8d58f){_0x247c49=_0x247c49-0x1d3;let _0x57e2c6=_0x2f5278[_0x247c49];return _0x57e2c6;},a91_0x247c(_0x5e0714,_0x3e79d7);}(function(_0x568837,_0x3f2226){const _0x3e74b5=a91_0x247c,_0x170eed=_0x568837();while(!![]){try{const _0x4271dd=-parseInt(_0x3e74b5(0x245))/0x1+-parseInt(_0x3e74b5(0x1d3))/0x2*(parseInt(_0x3e74b5(0x1f7))/0x3)+parseInt(_0x3e74b5(0x1e0))/0x4*(-parseInt(_0x3e74b5(0x20e))/0x5)+-parseInt(_0x3e74b5(0x21d))/0x6*(-parseInt(_0x3e74b5(0x20f))/0x7)+-parseInt(_0x3e74b5(0x22a))/0x8+-parseInt(_0x3e74b5(0x240))/0x9*(parseInt(_0x3e74b5(0x219))/0xa)+-parseInt(_0x3e74b5(0x1e4))/0xb*(-parseInt(_0x3e74b5(0x237))/0xc);if(_0x4271dd===_0x3f2226)break;else _0x170eed['push'](_0x170eed['shift']());}catch(_0x58c717){_0x170eed['push'](_0x170eed['shift']());}}}(a91_0x2f52,0xcdb08));const util=require(a91_0x144a3a(0x1d7)),BaseModule=require(a91_0x144a3a(0x1ff)),{createClassLogger}=require(a91_0x144a3a(0x244)),AutomationFramework=require(a91_0x144a3a(0x1d4)),AutomationFrameworkState=require(a91_0x144a3a(0x211)),HookState=require(a91_0x144a3a(0x204)),TestFramework=require(a91_0x144a3a(0x220)),TestFrameworkState=require(a91_0x144a3a(0x242)),PlaywrightDriverModule=require(a91_0x144a3a(0x1f1)),PuppeteerDriverModule=require('./puppeteerDriverModule.js'),TestFrameworkConstants=require(a91_0x144a3a(0x20d)),GrpcClient=require('../grpcClient.js'),CLIUtils=require(a91_0x144a3a(0x238)),TestInfo=require('../TestInfo.js'),testHubConstants=require(a91_0x144a3a(0x1f8)),{FRAMEWORKS}=require(a91_0x144a3a(0x23b)),helper=require(a91_0x144a3a(0x1ec)),LoadTestModule=require(a91_0x144a3a(0x21f)),JestUtils=require('../utils/jest-utils.js'),BrowserstackCLI=require(a91_0x144a3a(0x224)),{getPlaywrightProvider,getProductForSession}=require('../../../helpers/helper.js');class TestHubModule extends BaseModule{['logger']=createClassLogger('TestHubModule');constructor(_0x38f2c6,_0x56f956=null){const _0x64e5cc=a91_0x144a3a,_0x3bbd02={};_0x3bbd02[_0x64e5cc(0x1e2)]=_0x64e5cc(0x1e8),_0x3bbd02[_0x64e5cc(0x1fe)]='TestHubModule';const _0x82ada4=_0x3bbd02,_0x320e54=_0x82ada4[_0x64e5cc(0x1e2)][_0x64e5cc(0x239)]('|');let _0x55bc1f=0x0;while(!![]){switch(_0x320e54[_0x55bc1f++]){case'0':Object[_0x64e5cc(0x1e1)](TestFrameworkState)[_0x64e5cc(0x234)](_0x3c80f1=>{const _0xbf0260=_0x64e5cc;Object[_0xbf0260(0x1e1)](HookState)['forEach'](_0x1e7244=>{const _0x5460d6=_0xbf0260;TestFramework[_0x5460d6(0x1f4)](_0x3c80f1,_0x1e7244,this[_0x5460d6(0x205)]['bind'](this));});});continue;case'1':this[_0x64e5cc(0x203)]=new JestUtils();continue;case'2':this[_0x64e5cc(0x23a)]=_0x38f2c6;continue;case'3':BrowserstackCLI[_0x64e5cc(0x1e9)]=this[_0x64e5cc(0x23a)][_0x64e5cc(0x1e3)]();continue;case'4':process[_0x64e5cc(0x1e6)][testHubConstants['ENV_VAR'][_0x64e5cc(0x1de)]]=this['testhubConfig'][_0x64e5cc(0x210)]();continue;case'5':this[_0x64e5cc(0x1d9)]=_0x82ada4['xolow'];continue;case'6':super(_0x56f956);continue;case'7':process[_0x64e5cc(0x1e6)][testHubConstants[_0x64e5cc(0x225)][_0x64e5cc(0x1f3)]]=this[_0x64e5cc(0x23a)][_0x64e5cc(0x1e3)]();continue;case'8':AutomationFramework[_0x64e5cc(0x1f4)](AutomationFrameworkState['CREATE'],HookState[_0x64e5cc(0x1d5)],this['onPageCreate'][_0x64e5cc(0x1d8)](this));continue;}break;}}[a91_0x144a3a(0x1fa)](){const _0x159255=a91_0x144a3a;return TestHubModule[_0x159255(0x200)];}[a91_0x144a3a(0x205)](_0x6af9fe){const _0x52ca4a=a91_0x144a3a,_0x143777={};_0x143777[_0x52ca4a(0x21c)]=function(_0x4b3a41,_0xc91a68){return _0x4b3a41===_0xc91a68;};const _0x5d21d1=_0x143777,_0x22fa1e=_0x6af9fe['instance'],_0x36c712=_0x22fa1e[_0x52ca4a(0x1eb)]();(_0x5d21d1[_0x52ca4a(0x21c)](_0x36c712,TestFrameworkState[_0x52ca4a(0x21e)])||CLIUtils[_0x52ca4a(0x1dc)](_0x36c712[_0x52ca4a(0x216)]()[_0x52ca4a(0x239)]('.')[0x1]))&&this[_0x52ca4a(0x228)](_0x6af9fe);}async['sendTestFrameworkEvent'](_0xbefdc){const _0x2d9213=a91_0x144a3a,_0x583d3b={};_0x583d3b['FVLyv']=function(_0x24b251,_0x42e86b){return _0x24b251===_0x42e86b;},_0x583d3b['OmMSo']=_0x2d9213(0x1dd);const _0x44cf6f=_0x583d3b;try{const _0x327a1a=BrowserstackCLI[_0x2d9213(0x212)]()[_0x2d9213(0x1e5)]()[_0x2d9213(0x21a)](_0xbefdc);if(!_0x327a1a||_0x44cf6f[_0x2d9213(0x1fc)](Object[_0x2d9213(0x1db)](_0x327a1a)[_0x2d9213(0x207)],0x0)){this[_0x2d9213(0x235)][_0x2d9213(0x20a)](_0x44cf6f['OmMSo']);return;}const _0x55ec58=await GrpcClient[_0x2d9213(0x212)]()[_0x2d9213(0x215)](_0x327a1a);this['logger']['debug'](_0x2d9213(0x1ee)+_0x327a1a[_0x2d9213(0x22f)]+_0x2d9213(0x241)+_0x327a1a[_0x2d9213(0x22e)]);}catch(_0x198887){this[_0x2d9213(0x235)][_0x2d9213(0x243)](_0x2d9213(0x208)+util[_0x2d9213(0x1d6)](_0x198887));}}async[a91_0x144a3a(0x214)](_0x10a3b6){const _0x2ffc01=a91_0x144a3a,_0x4d9289={'fSXmt':function(_0x55123c,_0x3d11e0){return _0x55123c===_0x3d11e0;},'alpiK':_0x2ffc01(0x229),'DHzmf':function(_0x41448e,_0x25540d){return _0x41448e(_0x25540d);},'GJefU':function(_0x2d8407){return _0x2d8407();},'urHja':_0x2ffc01(0x236),'SBmmj':function(_0x3a5e74,_0x21beb7){return _0x3a5e74===_0x21beb7;}};try{if(_0x10a3b6[_0x2ffc01(0x23c)]){const _0x17fc58=this[_0x2ffc01(0x23d)](_0x10a3b6);this[_0x2ffc01(0x235)][_0x2ffc01(0x20a)]('onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20'+_0x17fc58);if(this[_0x2ffc01(0x20c)]&&_0x4d9289[_0x2ffc01(0x206)](this['testFrameworkData'][_0x2ffc01(0x1d9)],FRAMEWORKS[_0x2ffc01(0x23e)])&&!_0x10a3b6['testInfo']){this[_0x2ffc01(0x235)]['debug'](_0x4d9289[_0x2ffc01(0x1fb)]);return;}let _0x1e4723,_0x1b777d;if(this[_0x2ffc01(0x20c)]&&_0x4d9289[_0x2ffc01(0x206)](this[_0x2ffc01(0x20c)]['name'],FRAMEWORKS[_0x2ffc01(0x1f6)]))_0x1e4723=_0x17fc58,_0x1b777d=TestInfo[_0x2ffc01(0x233)](_0x1e4723);else this[_0x2ffc01(0x20c)]&&_0x4d9289[_0x2ffc01(0x206)](this[_0x2ffc01(0x20c)][_0x2ffc01(0x1d9)],FRAMEWORKS[_0x2ffc01(0x23e)])?(_0x1e4723=this[_0x2ffc01(0x203)]['recreateIdentifierFromTestInfo'](_0x10a3b6['testInfo']),this[_0x2ffc01(0x235)][_0x2ffc01(0x20a)]('onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20'+_0x1e4723)):(_0x1e4723=TestInfo[_0x2ffc01(0x1ed)](_0x10a3b6['testInfo'],_0x10a3b6[_0x2ffc01(0x1f9)]['retry']),_0x1b777d=TestInfo[_0x2ffc01(0x233)](_0x1e4723));const _0x343560=TestInfo[_0x2ffc01(0x1ef)](_0x1e4723),_0x19b002=_0x10a3b6[_0x2ffc01(0x1f0)],_0x2076d6=AutomationFramework[_0x2ffc01(0x218)](_0x19b002,PlaywrightDriverModule['KEY_PLATFORM_INDEX'])||AutomationFramework[_0x2ffc01(0x218)](_0x19b002,PuppeteerDriverModule[_0x2ffc01(0x201)]),_0x496822=_0x343560?.[TestFrameworkConstants[_0x2ffc01(0x221)]]||this['testFrameworkData']&&this[_0x2ffc01(0x20c)][_0x2ffc01(0x1d9)],_0x4f0d81=_0x343560?.[TestFrameworkConstants[_0x2ffc01(0x213)]]||this[_0x2ffc01(0x20c)]&&this[_0x2ffc01(0x20c)][_0x2ffc01(0x209)],_0x5d4b4f=TestFrameworkState['TEST'][_0x2ffc01(0x216)]()['split']('.')[0x1],_0x505f3f=HookState['POST'][_0x2ffc01(0x216)]()[_0x2ffc01(0x239)]('.')[0x1],_0x38076e=_0x19b002[_0x2ffc01(0x230)](),_0x1fb810=AutomationFramework[_0x2ffc01(0x218)](_0x19b002,PlaywrightDriverModule[_0x2ffc01(0x1f2)],'')||AutomationFramework[_0x2ffc01(0x218)](_0x19b002,PuppeteerDriverModule[_0x2ffc01(0x1f2)],''),_0x464cd3=LoadTestModule[_0x2ffc01(0x226)]()?LoadTestModule['getLTSSessionId']():AutomationFramework[_0x2ffc01(0x218)](_0x19b002,PlaywrightDriverModule['KEY_SESSION_ID'],'')||AutomationFramework[_0x2ffc01(0x218)](_0x19b002,PuppeteerDriverModule[_0x2ffc01(0x23f)],''),_0x3551e6={'provider':_0x4d9289[_0x2ffc01(0x22b)](getPlaywrightProvider,_0x1fb810),'frameworkName':_0x19b002[_0x2ffc01(0x1ea)],'frameworkVersion':_0x19b002['frameworkVersion'],'frameworkSessionId':_0x464cd3,'ref':_0x19b002['getRef'](),'hubUrl':_0x1fb810,'product':_0x4d9289[_0x2ffc01(0x1da)](getProductForSession)},_0x54f650=AutomationFramework[_0x2ffc01(0x218)](_0x19b002,PlaywrightDriverModule[_0x2ffc01(0x1f5)],null)||AutomationFramework[_0x2ffc01(0x218)](_0x19b002,PuppeteerDriverModule['KEY_CAPABILITIES'],null),_0x5020b9=_0x54f650?Buffer['from'](JSON[_0x2ffc01(0x21b)](_0x54f650))['toString'](_0x4d9289[_0x2ffc01(0x202)]):null,_0x383220={'hash':_0x38076e[_0x2ffc01(0x22d)](),'threadId':_0x38076e[_0x2ffc01(0x217)]()['toString'](),'processId':_0x38076e[_0x2ffc01(0x22c)]()[_0x2ffc01(0x216)]()},_0x85c7e7={};_0x85c7e7['test_identifier']=_0x1e4723;const _0x48708c={};_0x48708c['testUuid']=_0x1b777d;const _0x2928a5={'platformIndex':_0x2076d6,'testFrameworkName':_0x496822,'testFrameworkVersion':_0x4f0d81,'testFrameworkState':_0x5d4b4f,'testHookState':_0x505f3f,...this[_0x2ffc01(0x20c)]&&_0x4d9289[_0x2ffc01(0x206)](this['testFrameworkData'][_0x2ffc01(0x1d9)],FRAMEWORKS[_0x2ffc01(0x23e)])?_0x85c7e7:_0x48708c,'automationSession':_0x3551e6,'capabilities':_0x5020b9,'executionContext':_0x383220};this['logger']['debug'](_0x2ffc01(0x222)+util[_0x2ffc01(0x1d6)](_0x2928a5));const _0x2ca4d2=await GrpcClient[_0x2ffc01(0x212)]()[_0x2ffc01(0x1df)](_0x2928a5);this['logger']['debug'](_0x2ffc01(0x223)+_0x17fc58+(this[_0x2ffc01(0x20c)]&&_0x4d9289[_0x2ffc01(0x20b)](this[_0x2ffc01(0x20c)][_0x2ffc01(0x1d9)],FRAMEWORKS[_0x2ffc01(0x23e)])?_0x2ffc01(0x1e7)+_0x1e4723:''));}}catch(_0x16254e){this[_0x2ffc01(0x235)]['error'](_0x2ffc01(0x1fd)+util[_0x2ffc01(0x1d6)](_0x16254e));}}}function a91_0x2f52(){const _0xd4fbee=['DHzmf','getProcessId','getId','hookState','testFrameworkState','getContext','test_deferred','TestHubModule','getTestUUID','forEach','logger','base64','396852HzDydh','../cliUtils.js','split','testhubConfig','../../../helpers/test-observability/constants.js','page','getTestId','JEST','KEY_SESSION_ID','72rbhMon','\x20hookState:\x20','../state/testFrameworkState.js','error','../../../helpers/classLogger.js','315792wsuPLw','1804576IzqLnQ','../framework/automationFramework.js','POST','format','util','bind','name','GJefU','keys','matchHookRegex','sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','BROWSERSTACK_TESTHUB_JWT','testSessionEvent','4NtAIdN','values','dsNMk','getBuildHashedId','1045FKUggr','getTestFramework','env',',\x20test_identifier:\x20','6|5|2|1|8|0|4|7|3','O11yHashedID','frameworkName','getCurrentTestState','../../../helpers/helper.js','getTestIdentifierFromTestInfo','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','getTestDetails','instance','./playwrightDriverModule.js','KEY_HUB_URL','BROWSERSTACK_TESTHUB_UUID','registerObserver','KEY_CAPABILITIES','CUCUMBER','3eiwREW','../../../helpers/testhub/constants','testInfo','getModuleName','alpiK','FVLyv','Error\x20in\x20sending\x20CBTSession:\x20','xolow','./baseModule','MODULE_NAME','KEY_PLATFORM_INDEX','urHja','jestUtils','../state/hookState.js','onAllTestEvents','fSXmt','length','Error\x20in\x20sendTestFrameworkEvent:\x20','version','debug','SBmmj','testFrameworkData','../framework/constants/testFrameworkConstants.js','5221285DzKxcB','35uhKfek','getJwt','../state/automationFrameworkState.js','getInstance','KEY_TEST_FRAMEWORK_VERSION','onPageCreate','testFrameworkEvent','toString','getThreadId','getState','378520BeQuHG','createTestFrameworkEventPayload','stringify','wfAIl','935736csELdn','TEST','./loadTestModule.js','../framework/testFramework.js','KEY_TEST_FRAMEWORK_NAME','onPageCreate\x20CBTSession\x20payload:\x20','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','../browserstackCLI.js','ENV_VAR','isLTSSession','KEY_TEST_DEFERRED','sendTestFrameworkEvent','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','4110944xHcjPT'];a91_0x2f52=function(){return _0xd4fbee;};return a91_0x2f52();}TestHubModule[a91_0x144a3a(0x200)]=a91_0x144a3a(0x232),TestHubModule[a91_0x144a3a(0x227)]=a91_0x144a3a(0x231),module['exports']=TestHubModule;
1
+ const a91_0xf2a093=a91_0x5ca7;(function(_0x1c3efa,_0x43cd40){const _0xad1fef=a91_0x5ca7,_0x4dcd88=_0x1c3efa();while(!![]){try{const _0x591ec2=parseInt(_0xad1fef(0x115))/0x1*(parseInt(_0xad1fef(0x14f))/0x2)+parseInt(_0xad1fef(0x135))/0x3+-parseInt(_0xad1fef(0x164))/0x4+parseInt(_0xad1fef(0x156))/0x5+-parseInt(_0xad1fef(0x162))/0x6+parseInt(_0xad1fef(0x14a))/0x7*(-parseInt(_0xad1fef(0x12c))/0x8)+-parseInt(_0xad1fef(0x10e))/0x9*(parseInt(_0xad1fef(0x12a))/0xa);if(_0x591ec2===_0x43cd40)break;else _0x4dcd88['push'](_0x4dcd88['shift']());}catch(_0x2acb49){_0x4dcd88['push'](_0x4dcd88['shift']());}}}(a91_0x286d,0x7dbdb));function a91_0x286d(){const _0x259125=['9459729HbaSrt','instance','KEY_TEST_DEFERRED','getContext','TZFLi','KEY_SESSION_ID','../../../helpers/test-observability/constants.js','94xpNuXH','Error\x20in\x20sendTestFrameworkEvent:\x20','getId','env','testSessionEvent','stringify','testUuid','Error\x20in\x20sending\x20CBTSession:\x20','getModuleName','format','KEY_TEST_FRAMEWORK_VERSION','TEST','O11yHashedID','getTestUUID','testInfo','./loadTestModule.js','INdKF','../browserstackCLI.js','CREATE','jestUtils','getBuildHashedId','10HnHuwG','split','16936VrDUur','matchHookRegex','getLTSSessionId','oZFKF','hookState','bind','toString','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','getJwt','2291790lBvisO','from','../../../helpers/helper.js','POST','./playwrightDriverModule.js','qAthy','BROWSERSTACK_TESTHUB_UUID','exports','error','getThreadId','getInstance','name','../state/hookState.js','getRef','getTestId','../TestInfo.js','testFrameworkEvent','onAllTestEvents','testFrameworkData','recreateIdentifierFromTestInfo','util','259RvUOnQ','SAKJu','nSuyU','isLTSSession','wGVHt','10640Gfltml','TestHubModule','frameworkVersion','sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','testhubConfig','../../../helpers/classLogger.js','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','4649625FQNPRD','getTestDetails',',\x20test_identifier:\x20','values','KEY_HUB_URL','testFrameworkState','VbRDK','logger','getTestIdentifierFromTestInfo','MODULE_NAME','onPageCreate','GBMHQ','2583582rEvOAK','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','475572uqxzBQ','sendTestFrameworkEvent','KEY_PLATFORM_INDEX','\x20hookState:\x20','base64','keys','zUvAu','getState','frameworkName','debug','getCurrentTestState','createTestFrameworkEventPayload','forEach','AtZCf','getProcessId','JEST','KEY_CAPABILITIES','../framework/automationFramework.js','page','../framework/constants/testFrameworkConstants.js','../state/testFrameworkState.js','retry','getTestFramework','../framework/testFramework.js'];a91_0x286d=function(){return _0x259125;};return a91_0x286d();}const util=require(a91_0xf2a093(0x149)),BaseModule=require('./baseModule'),{createClassLogger}=require(a91_0xf2a093(0x154)),AutomationFramework=require(a91_0xf2a093(0x175)),AutomationFrameworkState=require('../state/automationFrameworkState.js'),HookState=require(a91_0xf2a093(0x141)),TestFramework=require(a91_0xf2a093(0x10d)),TestFrameworkState=require(a91_0xf2a093(0x10a)),PlaywrightDriverModule=require(a91_0xf2a093(0x139)),PuppeteerDriverModule=require('./puppeteerDriverModule.js'),TestFrameworkConstants=require(a91_0xf2a093(0x109)),GrpcClient=require('../grpcClient.js'),CLIUtils=require('../cliUtils.js'),TestInfo=require(a91_0xf2a093(0x144)),testHubConstants=require('../../../helpers/testhub/constants'),{FRAMEWORKS}=require(a91_0xf2a093(0x114)),helper=require(a91_0xf2a093(0x137)),LoadTestModule=require(a91_0xf2a093(0x124)),JestUtils=require('../utils/jest-utils.js'),BrowserstackCLI=require(a91_0xf2a093(0x126)),{getPlaywrightProvider,getProductForSession}=require(a91_0xf2a093(0x137));class TestHubModule extends BaseModule{['logger']=createClassLogger(a91_0xf2a093(0x150));constructor(_0x3daa09,_0x1eb10f=null){const _0x26f397=a91_0xf2a093,_0x384e58={};_0x384e58[_0x26f397(0x13a)]='1|0|8|6|3|4|2|5|7',_0x384e58[_0x26f397(0x125)]=_0x26f397(0x150);const _0x5635bc=_0x384e58,_0x2de15d=_0x5635bc[_0x26f397(0x13a)][_0x26f397(0x12b)]('|');let _0x257f73=0x0;while(!![]){switch(_0x2de15d[_0x257f73++]){case'0':this['name']=_0x5635bc[_0x26f397(0x125)];continue;case'1':super(_0x1eb10f);continue;case'2':process[_0x26f397(0x118)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_JWT']]=this[_0x26f397(0x153)][_0x26f397(0x134)]();continue;case'3':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x26f397(0x127)],HookState[_0x26f397(0x138)],this[_0x26f397(0x160)][_0x26f397(0x131)](this));continue;case'4':Object[_0x26f397(0x159)](TestFrameworkState)[_0x26f397(0x170)](_0xd4a9fd=>{const _0x487a3f=_0x26f397;Object[_0x487a3f(0x159)](HookState)[_0x487a3f(0x170)](_0x1dc288=>{const _0x5f3811=_0x487a3f;TestFramework['registerObserver'](_0xd4a9fd,_0x1dc288,this[_0x5f3811(0x146)][_0x5f3811(0x131)](this));});});continue;case'5':process[_0x26f397(0x118)][testHubConstants['ENV_VAR'][_0x26f397(0x13b)]]=this['testhubConfig'][_0x26f397(0x129)]();continue;case'6':this[_0x26f397(0x128)]=new JestUtils();continue;case'7':BrowserstackCLI[_0x26f397(0x121)]=this[_0x26f397(0x153)][_0x26f397(0x129)]();continue;case'8':this[_0x26f397(0x153)]=_0x3daa09;continue;}break;}}[a91_0xf2a093(0x11d)](){const _0x3e9633=a91_0xf2a093;return TestHubModule[_0x3e9633(0x15f)];}[a91_0xf2a093(0x146)](_0x594c8b){const _0x5e1e01=a91_0xf2a093,_0x2c23d3={};_0x2c23d3[_0x5e1e01(0x14c)]=function(_0x262c73,_0x93036b){return _0x262c73===_0x93036b;};const _0x4859ae=_0x2c23d3,_0x10471c=_0x594c8b[_0x5e1e01(0x10f)],_0x458c49=_0x10471c[_0x5e1e01(0x16e)]();(_0x4859ae[_0x5e1e01(0x14c)](_0x458c49,TestFrameworkState[_0x5e1e01(0x120)])||CLIUtils[_0x5e1e01(0x12d)](_0x458c49['toString']()[_0x5e1e01(0x12b)]('.')[0x1]))&&this['sendTestFrameworkEvent'](_0x594c8b);}async[a91_0xf2a093(0x165)](_0xe37422){const _0x9df4c2=a91_0xf2a093,_0x3ddec1={};_0x3ddec1['SAKJu']=function(_0x5ab2e6,_0xaf1652){return _0x5ab2e6===_0xaf1652;},_0x3ddec1['AtZCf']=_0x9df4c2(0x152);const _0x2134d7=_0x3ddec1;try{const _0x224450=BrowserstackCLI[_0x9df4c2(0x13f)]()[_0x9df4c2(0x10c)]()[_0x9df4c2(0x16f)](_0xe37422);if(!_0x224450||_0x2134d7[_0x9df4c2(0x14b)](Object[_0x9df4c2(0x169)](_0x224450)['length'],0x0)){this[_0x9df4c2(0x15d)][_0x9df4c2(0x16d)](_0x2134d7[_0x9df4c2(0x171)]);return;}const _0x36898c=await GrpcClient['getInstance']()[_0x9df4c2(0x145)](_0x224450);this[_0x9df4c2(0x15d)][_0x9df4c2(0x16d)]('sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20'+_0x224450[_0x9df4c2(0x15b)]+_0x9df4c2(0x167)+_0x224450[_0x9df4c2(0x130)]);}catch(_0x18dab7){this[_0x9df4c2(0x15d)][_0x9df4c2(0x13d)](_0x9df4c2(0x116)+util[_0x9df4c2(0x11e)](_0x18dab7));}}async[a91_0xf2a093(0x160)](_0x5ba17c){const _0x1b758a=a91_0xf2a093,_0x46fd5={'TZFLi':function(_0x4bee8a,_0x51ec21){return _0x4bee8a===_0x51ec21;},'GBMHQ':_0x1b758a(0x155),'oZFKF':function(_0x342a99,_0x6c84dc){return _0x342a99(_0x6c84dc);},'wGVHt':function(_0x12e4ab){return _0x12e4ab();},'VbRDK':_0x1b758a(0x168),'zUvAu':function(_0x446f25,_0x1ecff0){return _0x446f25===_0x1ecff0;}};try{if(_0x5ba17c[_0x1b758a(0x108)]){const _0x34e6fb=this[_0x1b758a(0x143)](_0x5ba17c);this[_0x1b758a(0x15d)]['debug'](_0x1b758a(0x163)+_0x34e6fb);if(this['testFrameworkData']&&_0x46fd5['TZFLi'](this['testFrameworkData'][_0x1b758a(0x140)],FRAMEWORKS['JEST'])&&!_0x5ba17c[_0x1b758a(0x123)]){this[_0x1b758a(0x15d)]['debug'](_0x46fd5[_0x1b758a(0x161)]);return;}let _0x24e4fd,_0x5cf52c;if(this[_0x1b758a(0x147)]&&_0x46fd5[_0x1b758a(0x112)](this[_0x1b758a(0x147)][_0x1b758a(0x140)],FRAMEWORKS['CUCUMBER']))_0x24e4fd=_0x34e6fb,_0x5cf52c=TestInfo[_0x1b758a(0x122)](_0x24e4fd);else this['testFrameworkData']&&_0x46fd5['TZFLi'](this['testFrameworkData'][_0x1b758a(0x140)],FRAMEWORKS[_0x1b758a(0x173)])?(_0x24e4fd=this[_0x1b758a(0x128)][_0x1b758a(0x148)](_0x5ba17c[_0x1b758a(0x123)]),this[_0x1b758a(0x15d)][_0x1b758a(0x16d)]('onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20'+_0x24e4fd)):(_0x24e4fd=TestInfo[_0x1b758a(0x15e)](_0x5ba17c[_0x1b758a(0x123)],_0x5ba17c[_0x1b758a(0x123)][_0x1b758a(0x10b)]),_0x5cf52c=TestInfo[_0x1b758a(0x122)](_0x24e4fd));const _0x13eec7=TestInfo[_0x1b758a(0x157)](_0x24e4fd),_0xd2bf4f=_0x5ba17c['instance'],_0x5520b9=AutomationFramework['getState'](_0xd2bf4f,PlaywrightDriverModule[_0x1b758a(0x166)])||AutomationFramework[_0x1b758a(0x16b)](_0xd2bf4f,PuppeteerDriverModule[_0x1b758a(0x166)]),_0x5c4836=_0x13eec7?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]||this['testFrameworkData']&&this['testFrameworkData'][_0x1b758a(0x140)],_0x3e8466=_0x13eec7?.[TestFrameworkConstants[_0x1b758a(0x11f)]]||this[_0x1b758a(0x147)]&&this['testFrameworkData']['version'],_0x23b916=TestFrameworkState['TEST'][_0x1b758a(0x132)]()['split']('.')[0x1],_0x22cd13=HookState[_0x1b758a(0x138)][_0x1b758a(0x132)]()[_0x1b758a(0x12b)]('.')[0x1],_0x4d86cd=_0xd2bf4f[_0x1b758a(0x111)](),_0x27572b=AutomationFramework[_0x1b758a(0x16b)](_0xd2bf4f,PlaywrightDriverModule[_0x1b758a(0x15a)],'')||AutomationFramework[_0x1b758a(0x16b)](_0xd2bf4f,PuppeteerDriverModule[_0x1b758a(0x15a)],''),_0x16be0e=LoadTestModule[_0x1b758a(0x14d)]()?LoadTestModule[_0x1b758a(0x12e)]():AutomationFramework[_0x1b758a(0x16b)](_0xd2bf4f,PlaywrightDriverModule[_0x1b758a(0x113)],'')||AutomationFramework['getState'](_0xd2bf4f,PuppeteerDriverModule[_0x1b758a(0x113)],''),_0x306675={'provider':_0x46fd5[_0x1b758a(0x12f)](getPlaywrightProvider,_0x27572b),'frameworkName':_0xd2bf4f[_0x1b758a(0x16c)],'frameworkVersion':_0xd2bf4f[_0x1b758a(0x151)],'frameworkSessionId':_0x16be0e,'ref':_0xd2bf4f[_0x1b758a(0x142)](),'hubUrl':_0x27572b,'product':_0x46fd5[_0x1b758a(0x14e)](getProductForSession)},_0x3b399f=AutomationFramework[_0x1b758a(0x16b)](_0xd2bf4f,PlaywrightDriverModule[_0x1b758a(0x174)],null)||AutomationFramework[_0x1b758a(0x16b)](_0xd2bf4f,PuppeteerDriverModule[_0x1b758a(0x174)],null),_0x53a5cc=_0x3b399f?Buffer[_0x1b758a(0x136)](JSON[_0x1b758a(0x11a)](_0x3b399f))['toString'](_0x46fd5[_0x1b758a(0x15c)]):null,_0x4c4dc0={'hash':_0x4d86cd[_0x1b758a(0x117)](),'threadId':_0x4d86cd[_0x1b758a(0x13e)]()['toString'](),'processId':_0x4d86cd[_0x1b758a(0x172)]()[_0x1b758a(0x132)]()},_0x2dc8cf={};_0x2dc8cf['test_identifier']=_0x24e4fd;const _0x429557={};_0x429557[_0x1b758a(0x11b)]=_0x5cf52c;const _0xe9f6cd={'platformIndex':_0x5520b9,'testFrameworkName':_0x5c4836,'testFrameworkVersion':_0x3e8466,'testFrameworkState':_0x23b916,'testHookState':_0x22cd13,...this[_0x1b758a(0x147)]&&_0x46fd5[_0x1b758a(0x16a)](this[_0x1b758a(0x147)][_0x1b758a(0x140)],FRAMEWORKS[_0x1b758a(0x173)])?_0x2dc8cf:_0x429557,'automationSession':_0x306675,'capabilities':_0x53a5cc,'executionContext':_0x4c4dc0};this[_0x1b758a(0x15d)]['debug']('onPageCreate\x20CBTSession\x20payload:\x20'+util[_0x1b758a(0x11e)](_0xe9f6cd));const _0x572150=await GrpcClient[_0x1b758a(0x13f)]()[_0x1b758a(0x119)](_0xe9f6cd);this[_0x1b758a(0x15d)][_0x1b758a(0x16d)](_0x1b758a(0x133)+_0x34e6fb+(this[_0x1b758a(0x147)]&&_0x46fd5['zUvAu'](this['testFrameworkData'][_0x1b758a(0x140)],FRAMEWORKS['JEST'])?_0x1b758a(0x158)+_0x24e4fd:''));}}catch(_0x1e83a2){this['logger'][_0x1b758a(0x13d)](_0x1b758a(0x11c)+util[_0x1b758a(0x11e)](_0x1e83a2));}}}function a91_0x5ca7(_0x321af1,_0x58eda6){const _0x286d78=a91_0x286d();return a91_0x5ca7=function(_0x5ca748,_0x141922){_0x5ca748=_0x5ca748-0x108;let _0x446b5a=_0x286d78[_0x5ca748];return _0x446b5a;},a91_0x5ca7(_0x321af1,_0x58eda6);}TestHubModule['MODULE_NAME']=a91_0xf2a093(0x150),TestHubModule[a91_0xf2a093(0x110)]='test_deferred',module[a91_0xf2a093(0x13c)]=TestHubModule;
@@ -1 +1 @@
1
- const a92_0x164bee=a92_0x4973;function a92_0x4973(_0x91b972,_0x15693c){const _0x3147de=a92_0x3147();return a92_0x4973=function(_0x4973e7,_0x5d9a0d){_0x4973e7=_0x4973e7-0xdb;let _0x5dd77b=_0x3147de[_0x4973e7];return _0x5dd77b;},a92_0x4973(_0x91b972,_0x15693c);}(function(_0x1d7d04,_0x4a4dd9){const _0x49dfd7=a92_0x4973,_0x53f0b7=_0x1d7d04();while(!![]){try{const _0x13020b=-parseInt(_0x49dfd7(0xe3))/0x1+parseInt(_0x49dfd7(0xed))/0x2*(parseInt(_0x49dfd7(0xeb))/0x3)+parseInt(_0x49dfd7(0xe8))/0x4*(-parseInt(_0x49dfd7(0xe9))/0x5)+-parseInt(_0x49dfd7(0xf0))/0x6+parseInt(_0x49dfd7(0xec))/0x7+-parseInt(_0x49dfd7(0xdc))/0x8+parseInt(_0x49dfd7(0xe2))/0x9*(parseInt(_0x49dfd7(0xdf))/0xa);if(_0x13020b===_0x4a4dd9)break;else _0x53f0b7['push'](_0x53f0b7['shift']());}catch(_0x1d6113){_0x53f0b7['push'](_0x53f0b7['shift']());}}}(a92_0x3147,0x44423));const {PLAYWRIGHT}=require('../../utils/constants'),a92_0xf27fcf={};a92_0xf27fcf[a92_0x164bee(0xdd)]=0x0,a92_0xf27fcf[a92_0x164bee(0xe5)]=function(){const _0x16ee86=a92_0x164bee,_0x433ddc={};_0x433ddc[_0x16ee86(0xe1)]=_0x16ee86(0xe7);const _0x4b6075=_0x433ddc;return _0x4b6075[_0x16ee86(0xe1)];};const a92_0x3d315f={};a92_0x3d315f[a92_0x164bee(0xdd)]=0x1,a92_0x3d315f[a92_0x164bee(0xe5)]=function(){const _0x2c8a17=a92_0x164bee,_0x5c203e={};_0x5c203e[_0x2c8a17(0xe6)]='AutomationFrameworkState.CREATE';const _0x4211c2=_0x5c203e;return _0x4211c2[_0x2c8a17(0xe6)];};const a92_0x22375d={};function a92_0x3147(){const _0x2fa43a=['4uNMYbC','1604350jAHDLZ','HWlkO','3JMEhCU','2371726zPBuWc','500334eOcLTZ','values','exports','3135708hiLcKQ','TTpJn','AutomationFrameworkState.IDLE','vZLsA','3577760OYCViB','value','find','351620kBQtPt','AutomationFrameworkState.EXECUTE','YcWmQ','279UaxtnK','108712XNrnoR','AutomationFrameworkState.PLAYWRIGHT_DISPATCH','toString','WqmlH','AutomationFrameworkState.NONE'];a92_0x3147=function(){return _0x2fa43a;};return a92_0x3147();}a92_0x22375d[a92_0x164bee(0xdd)]=0x2,a92_0x22375d['toString']=function(){const _0x49d356=a92_0x164bee,_0x2906d2={};_0x2906d2[_0x49d356(0xea)]=_0x49d356(0xe4);const _0x36b719=_0x2906d2;return _0x36b719[_0x49d356(0xea)];};const a92_0x574be7={};a92_0x574be7[a92_0x164bee(0xdd)]=0x3,a92_0x574be7[a92_0x164bee(0xe5)]=function(){const _0x340f29=a92_0x164bee,_0xd321ee={};_0xd321ee['sgWdl']=_0x340f29(0xe0);const _0xc0ae79=_0xd321ee;return _0xc0ae79['sgWdl'];};const a92_0x308dcd={};a92_0x308dcd[a92_0x164bee(0xdd)]=0x4,a92_0x308dcd['toString']=function(){const _0x1ef721=a92_0x164bee,_0x54e8b1={};_0x54e8b1[_0x1ef721(0xf1)]=_0x1ef721(0xf2);const _0x369871=_0x54e8b1;return _0x369871[_0x1ef721(0xf1)];};const a92_0x2be646={};a92_0x2be646[a92_0x164bee(0xdd)]=0x5,a92_0x2be646['toString']=function(){const _0x57a6f9=a92_0x164bee,_0x4f69f6={};_0x4f69f6[_0x57a6f9(0xdb)]='AutomationFrameworkState.QUIT';const _0xbbdf54=_0x4f69f6;return _0xbbdf54[_0x57a6f9(0xdb)];};const AutomationFrameworkState=Object['freeze']({'NONE':a92_0xf27fcf,'CREATE':a92_0x3d315f,'PLAYWRIGHT_DISPATCH':a92_0x22375d,'EXECUTE':a92_0x574be7,'IDLE':a92_0x308dcd,'QUIT':a92_0x2be646,'fromValue'(_0x6a68b5){const _0x1652eb=a92_0x164bee;return Object[_0x1652eb(0xee)](AutomationFrameworkState)[_0x1652eb(0xde)](_0xa4f569=>_0xa4f569[_0x1652eb(0xdd)]===_0x6a68b5);}});module[a92_0x164bee(0xef)]=AutomationFrameworkState;
1
+ const a92_0x578b83=a92_0x456e;(function(_0x6169e,_0x5930ff){const _0x411f96=a92_0x456e,_0x14c210=_0x6169e();while(!![]){try{const _0x2ed37b=-parseInt(_0x411f96(0x134))/0x1*(parseInt(_0x411f96(0x13f))/0x2)+parseInt(_0x411f96(0x142))/0x3+-parseInt(_0x411f96(0x13a))/0x4*(parseInt(_0x411f96(0x137))/0x5)+-parseInt(_0x411f96(0x13d))/0x6+parseInt(_0x411f96(0x139))/0x7+-parseInt(_0x411f96(0x130))/0x8+parseInt(_0x411f96(0x144))/0x9;if(_0x2ed37b===_0x5930ff)break;else _0x14c210['push'](_0x14c210['shift']());}catch(_0x5dda31){_0x14c210['push'](_0x14c210['shift']());}}}(a92_0x405f,0xcb5cd));function a92_0x456e(_0x4b4d8d,_0xebb67e){const _0x405ffc=a92_0x405f();return a92_0x456e=function(_0x456e9c,_0x539b54){_0x456e9c=_0x456e9c-0x12d;let _0x1852e5=_0x405ffc[_0x456e9c];return _0x1852e5;},a92_0x456e(_0x4b4d8d,_0xebb67e);}const {PLAYWRIGHT}=require(a92_0x578b83(0x13b)),a92_0x146e18={};a92_0x146e18[a92_0x578b83(0x12f)]=0x0,a92_0x146e18[a92_0x578b83(0x135)]=function(){const _0xdfeb4b=a92_0x578b83,_0x48e687={};_0x48e687[_0xdfeb4b(0x145)]=_0xdfeb4b(0x143);const _0x5d3851=_0x48e687;return _0x5d3851[_0xdfeb4b(0x145)];};const a92_0x37a368={};a92_0x37a368['value']=0x1,a92_0x37a368[a92_0x578b83(0x135)]=function(){const _0x185775=a92_0x578b83,_0x5e24f3={};_0x5e24f3[_0x185775(0x141)]=_0x185775(0x132);const _0xd23ed7=_0x5e24f3;return _0xd23ed7[_0x185775(0x141)];};const a92_0x7d59bb={};a92_0x7d59bb[a92_0x578b83(0x12f)]=0x2,a92_0x7d59bb['toString']=function(){const _0x4f0636=a92_0x578b83,_0x11eb29={};_0x11eb29[_0x4f0636(0x131)]=_0x4f0636(0x136);const _0xf12373=_0x11eb29;return _0xf12373[_0x4f0636(0x131)];};const a92_0xeb4bc3={};a92_0xeb4bc3['value']=0x3,a92_0xeb4bc3[a92_0x578b83(0x135)]=function(){const _0x37d779=a92_0x578b83,_0x31ca7e={};_0x31ca7e[_0x37d779(0x13e)]=_0x37d779(0x12e);const _0x419bd5=_0x31ca7e;return _0x419bd5[_0x37d779(0x13e)];};function a92_0x405f(){const _0x276e65=['dVOfL','8107560aHDeDX','SFdxf','695926OiGXIE','AutomationFrameworkState.IDLE','CNdps','22536LPxPjU','AutomationFrameworkState.NONE','37924344VGreCF','vdcJT','wZWwV','exports','AutomationFrameworkState.EXECUTE','value','12441632jsIZPD','aMCJF','AutomationFrameworkState.CREATE','find','1lefmnF','toString','AutomationFrameworkState.PLAYWRIGHT_DISPATCH','220ibUCez','AutomationFrameworkState.QUIT','4996740UZojnZ','77068qQWkrT','../../utils/constants'];a92_0x405f=function(){return _0x276e65;};return a92_0x405f();}const a92_0x149053={};a92_0x149053[a92_0x578b83(0x12f)]=0x4,a92_0x149053[a92_0x578b83(0x135)]=function(){const _0x3045ff=a92_0x578b83,_0x5013ee={};_0x5013ee[_0x3045ff(0x146)]=_0x3045ff(0x140);const _0x133f21=_0x5013ee;return _0x133f21[_0x3045ff(0x146)];};const a92_0xc9122b={};a92_0xc9122b[a92_0x578b83(0x12f)]=0x5,a92_0xc9122b[a92_0x578b83(0x135)]=function(){const _0x41a40a=a92_0x578b83,_0x1e2328={};_0x1e2328[_0x41a40a(0x13c)]=_0x41a40a(0x138);const _0xdd2290=_0x1e2328;return _0xdd2290[_0x41a40a(0x13c)];};const AutomationFrameworkState=Object['freeze']({'NONE':a92_0x146e18,'CREATE':a92_0x37a368,'PLAYWRIGHT_DISPATCH':a92_0x7d59bb,'EXECUTE':a92_0xeb4bc3,'IDLE':a92_0x149053,'QUIT':a92_0xc9122b,'fromValue'(_0x34b6df){const _0x141f2b=a92_0x578b83;return Object['values'](AutomationFrameworkState)[_0x141f2b(0x133)](_0x40ab6d=>_0x40ab6d['value']===_0x34b6df);}});module[a92_0x578b83(0x12d)]=AutomationFrameworkState;
@@ -1 +1 @@
1
- const a93_0x5d5de8=a93_0x2a99;function a93_0x3676(){const _0x1b476f=['1884892EEqVxJ','1981112AdanQl','282858iXYvNQ','exports','3245274vfEtAd','value','DHCqc','hGYjj','5261490yopLOo','TJzhj','HookState.POST','values','10yXtxDy','find','toString','679329UukIyR','HookState.PRE','HookState.NONE','freeze','1205332qGIbhs','105SoFmWU'];a93_0x3676=function(){return _0x1b476f;};return a93_0x3676();}(function(_0x32f08d,_0x16ec21){const _0x32ad17=a93_0x2a99,_0x16c5c4=_0x32f08d();while(!![]){try{const _0x36d5db=parseInt(_0x32ad17(0x1df))/0x1+parseInt(_0x32ad17(0x1e5))/0x2+parseInt(_0x32ad17(0x1d4))/0x3+parseInt(_0x32ad17(0x1e3))/0x4*(-parseInt(_0x32ad17(0x1dc))/0x5)+-parseInt(_0x32ad17(0x1e7))/0x6*(parseInt(_0x32ad17(0x1e4))/0x7)+-parseInt(_0x32ad17(0x1e6))/0x8+-parseInt(_0x32ad17(0x1d8))/0x9;if(_0x36d5db===_0x16ec21)break;else _0x16c5c4['push'](_0x16c5c4['shift']());}catch(_0x2f3f9a){_0x16c5c4['push'](_0x16c5c4['shift']());}}}(a93_0x3676,0x89141));const a93_0x1120a6={};a93_0x1120a6[a93_0x5d5de8(0x1d5)]=0x0,a93_0x1120a6[a93_0x5d5de8(0x1de)]=function(){const _0xa92ae0=a93_0x5d5de8,_0x20658e={};_0x20658e['TJzhj']=_0xa92ae0(0x1e1);const _0x2fc7bb=_0x20658e;return _0x2fc7bb[_0xa92ae0(0x1d9)];};const a93_0x54b986={};a93_0x54b986[a93_0x5d5de8(0x1d5)]=0x1,a93_0x54b986[a93_0x5d5de8(0x1de)]=function(){const _0x2fde22=a93_0x5d5de8,_0x4cead4={};_0x4cead4[_0x2fde22(0x1d6)]=_0x2fde22(0x1e0);const _0x3c8ae4=_0x4cead4;return _0x3c8ae4['DHCqc'];};const a93_0x18212b={};a93_0x18212b[a93_0x5d5de8(0x1d5)]=0x2,a93_0x18212b[a93_0x5d5de8(0x1de)]=function(){const _0x4d1ed1=a93_0x5d5de8,_0x45d78b={};_0x45d78b['hGYjj']=_0x4d1ed1(0x1da);const _0x45ef9b=_0x45d78b;return _0x45ef9b[_0x4d1ed1(0x1d7)];};function a93_0x2a99(_0x5cecdb,_0x42cb65){const _0x367621=a93_0x3676();return a93_0x2a99=function(_0x2a99b1,_0x469471){_0x2a99b1=_0x2a99b1-0x1d3;let _0x44ee3b=_0x367621[_0x2a99b1];return _0x44ee3b;},a93_0x2a99(_0x5cecdb,_0x42cb65);}const HookState=Object[a93_0x5d5de8(0x1e2)]({'NONE':a93_0x1120a6,'PRE':a93_0x54b986,'POST':a93_0x18212b,'fromValue'(_0x5d38cf){const _0x508d03=a93_0x5d5de8;return Object[_0x508d03(0x1db)](HookState)[_0x508d03(0x1dd)](_0x1e9204=>_0x1e9204['value']===_0x5d38cf);}});module[a93_0x5d5de8(0x1d3)]=HookState;
1
+ const a93_0x34d871=a93_0x4e67;(function(_0x1ec7b0,_0x425d6b){const _0x10eae9=a93_0x4e67,_0x2dede9=_0x1ec7b0();while(!![]){try{const _0x22ba5f=-parseInt(_0x10eae9(0xc7))/0x1+parseInt(_0x10eae9(0xc6))/0x2*(parseInt(_0x10eae9(0xc8))/0x3)+-parseInt(_0x10eae9(0xbc))/0x4+parseInt(_0x10eae9(0xbf))/0x5*(-parseInt(_0x10eae9(0xcc))/0x6)+-parseInt(_0x10eae9(0xc9))/0x7+-parseInt(_0x10eae9(0xbb))/0x8+parseInt(_0x10eae9(0xc0))/0x9*(parseInt(_0x10eae9(0xc4))/0xa);if(_0x22ba5f===_0x425d6b)break;else _0x2dede9['push'](_0x2dede9['shift']());}catch(_0x3a7998){_0x2dede9['push'](_0x2dede9['shift']());}}}(a93_0x1a26,0xbf5eb));function a93_0x4e67(_0x2a5417,_0x10b1c8){const _0x1a2629=a93_0x1a26();return a93_0x4e67=function(_0x4e6765,_0x1ae6d8){_0x4e6765=_0x4e6765-0xba;let _0x2d4d88=_0x1a2629[_0x4e6765];return _0x2d4d88;},a93_0x4e67(_0x2a5417,_0x10b1c8);}const a93_0x5d0ad1={};a93_0x5d0ad1[a93_0x34d871(0xc5)]=0x0,a93_0x5d0ad1['toString']=function(){const _0x1fb078=a93_0x34d871,_0x4f1889={};_0x4f1889['lRorL']=_0x1fb078(0xbd);const _0x35fbb1=_0x4f1889;return _0x35fbb1['lRorL'];};const a93_0x52f2fa={};a93_0x52f2fa[a93_0x34d871(0xc5)]=0x1,a93_0x52f2fa['toString']=function(){const _0x41e71e=a93_0x34d871,_0x5aae17={};_0x5aae17[_0x41e71e(0xba)]=_0x41e71e(0xc3);const _0x17bb8d=_0x5aae17;return _0x17bb8d['eTwGu'];};const a93_0x24cb3c={};function a93_0x1a26(){const _0x1ee9be=['values','6WDTqjF','find','eTwGu','11032808fWoUiK','1824272XpIdCM','HookState.NONE','toString','55995QbEQOi','9QGKNNG','exports','freeze','HookState.PRE','24023830xnWwbS','value','1941206mFoZgY','180728YvRxKj','3RCBXjW','3934273WDGmuI','HookState.POST'];a93_0x1a26=function(){return _0x1ee9be;};return a93_0x1a26();}a93_0x24cb3c[a93_0x34d871(0xc5)]=0x2,a93_0x24cb3c[a93_0x34d871(0xbe)]=function(){const _0x137302=a93_0x34d871,_0x4429fa={};_0x4429fa['ZxPbR']=_0x137302(0xca);const _0x371aaf=_0x4429fa;return _0x371aaf['ZxPbR'];};const HookState=Object[a93_0x34d871(0xc2)]({'NONE':a93_0x5d0ad1,'PRE':a93_0x52f2fa,'POST':a93_0x24cb3c,'fromValue'(_0x389f37){const _0x309e47=a93_0x34d871;return Object[_0x309e47(0xcb)](HookState)[_0x309e47(0xcd)](_0x23a4a4=>_0x23a4a4[_0x309e47(0xc5)]===_0x389f37);}});module[a93_0x34d871(0xc1)]=HookState;
@@ -1 +1 @@
1
- const a94_0x5017c0=a94_0x52a4;(function(_0x52f9bc,_0x4c74f8){const _0x562f31=a94_0x52a4,_0x584097=_0x52f9bc();while(!![]){try{const _0x2110ff=-parseInt(_0x562f31(0x19d))/0x1*(-parseInt(_0x562f31(0x196))/0x2)+-parseInt(_0x562f31(0x1a7))/0x3+parseInt(_0x562f31(0x1a2))/0x4+-parseInt(_0x562f31(0x1bc))/0x5+-parseInt(_0x562f31(0x19e))/0x6*(parseInt(_0x562f31(0x1b8))/0x7)+parseInt(_0x562f31(0x1b1))/0x8*(parseInt(_0x562f31(0x1b0))/0x9)+-parseInt(_0x562f31(0x1b4))/0xa*(-parseInt(_0x562f31(0x1a4))/0xb);if(_0x2110ff===_0x4c74f8)break;else _0x584097['push'](_0x584097['shift']());}catch(_0x7c0111){_0x584097['push'](_0x584097['shift']());}}}(a94_0x3fa4,0x877a3));const a94_0x30a1e1={};a94_0x30a1e1[a94_0x5017c0(0x1a1)]=0x0,a94_0x30a1e1[a94_0x5017c0(0x19b)]=function(){const _0xaf3741=a94_0x5017c0,_0x449fc7={};_0x449fc7[_0xaf3741(0x1b2)]=_0xaf3741(0x19a);const _0x1a6cbc=_0x449fc7;return _0x1a6cbc[_0xaf3741(0x1b2)];};const a94_0x15d104={};a94_0x15d104[a94_0x5017c0(0x1a1)]=0x1,a94_0x15d104[a94_0x5017c0(0x19b)]=function(){const _0x5dbd70=a94_0x5017c0,_0x7c5fab={};_0x7c5fab[_0x5dbd70(0x198)]=_0x5dbd70(0x1ae);const _0x13ddf4=_0x7c5fab;return _0x13ddf4[_0x5dbd70(0x198)];};const a94_0x3b67a9={};a94_0x3b67a9[a94_0x5017c0(0x1a1)]=0x2,a94_0x3b67a9['toString']=function(){const _0x2424d1=a94_0x5017c0,_0xeee034={};_0xeee034[_0x2424d1(0x1aa)]=_0x2424d1(0x1ba);const _0x5baafe=_0xeee034;return _0x5baafe[_0x2424d1(0x1aa)];};const a94_0x23b6a2={};a94_0x23b6a2[a94_0x5017c0(0x1a1)]=0x3,a94_0x23b6a2[a94_0x5017c0(0x19b)]=function(){const _0x27022c=a94_0x5017c0,_0x59be7f={};_0x59be7f[_0x27022c(0x1a3)]=_0x27022c(0x19c);const _0x4981fc=_0x59be7f;return _0x4981fc[_0x27022c(0x1a3)];};const a94_0x2c1f19={};a94_0x2c1f19[a94_0x5017c0(0x1a1)]=0x4,a94_0x2c1f19[a94_0x5017c0(0x19b)]=function(){const _0x18fed3=a94_0x5017c0,_0x19f8f7={};_0x19f8f7[_0x18fed3(0x1b7)]=_0x18fed3(0x1a8);const _0x1aab2f=_0x19f8f7;return _0x1aab2f[_0x18fed3(0x1b7)];};const a94_0x216299={};a94_0x216299[a94_0x5017c0(0x1a1)]=0x5,a94_0x216299[a94_0x5017c0(0x19b)]=function(){const _0x818ef8=a94_0x5017c0,_0x38b9f3={};_0x38b9f3[_0x818ef8(0x1b3)]=_0x818ef8(0x1bb);const _0x694d99=_0x38b9f3;return _0x694d99[_0x818ef8(0x1b3)];};const a94_0xcd046b={};a94_0xcd046b['value']=0x6,a94_0xcd046b[a94_0x5017c0(0x19b)]=function(){const _0x146e99=a94_0x5017c0,_0x4aeef3={};_0x4aeef3[_0x146e99(0x1ad)]=_0x146e99(0x1a0);const _0x284b16=_0x4aeef3;return _0x284b16[_0x146e99(0x1ad)];};const a94_0x383635={};a94_0x383635[a94_0x5017c0(0x1a1)]=0x7,a94_0x383635['toString']=function(){const _0x589f99=a94_0x5017c0,_0x43c2f5={};_0x43c2f5[_0x589f99(0x199)]=_0x589f99(0x1be);const _0xa6bf73=_0x43c2f5;return _0xa6bf73[_0x589f99(0x199)];};const a94_0x1f7784={};a94_0x1f7784['value']=0x8,a94_0x1f7784[a94_0x5017c0(0x19b)]=function(){const _0x5f00d6=a94_0x5017c0,_0x5e2a43={};_0x5e2a43[_0x5f00d6(0x1b6)]=_0x5f00d6(0x19f);const _0xecfc88=_0x5e2a43;return _0xecfc88[_0x5f00d6(0x1b6)];};const a94_0xa72530={};a94_0xa72530[a94_0x5017c0(0x1a1)]=0x9,a94_0xa72530['toString']=function(){const _0x151196=a94_0x5017c0,_0x1f1c1a={};_0x1f1c1a['mpgNf']='TestFrameworkState.LOG_REPORT';const _0x575fa7=_0x1f1c1a;return _0x575fa7[_0x151196(0x1bd)];};const a94_0x5b94bd={};a94_0x5b94bd[a94_0x5017c0(0x1a1)]=0xa,a94_0x5b94bd[a94_0x5017c0(0x19b)]=function(){const _0x4ffffe=a94_0x5017c0,_0x5c34e3={};_0x5c34e3[_0x4ffffe(0x1af)]=_0x4ffffe(0x1a6);const _0x1d8e04=_0x5c34e3;return _0x1d8e04['saKyl'];};const a94_0x1fb913={};a94_0x1fb913[a94_0x5017c0(0x1a1)]=0xb,a94_0x1fb913[a94_0x5017c0(0x19b)]=function(){const _0x34f254=a94_0x5017c0,_0x49366f={};_0x49366f[_0x34f254(0x1a9)]=_0x34f254(0x197);const _0x4706ac=_0x49366f;return _0x4706ac['LLCQr'];};const a94_0x554efb={};a94_0x554efb[a94_0x5017c0(0x1a1)]=0xc,a94_0x554efb['toString']=function(){const _0x3f1a8e=a94_0x5017c0,_0x4366bd={};_0x4366bd[_0x3f1a8e(0x1ac)]=_0x3f1a8e(0x1a5);const _0x23b1a0=_0x4366bd;return _0x23b1a0[_0x3f1a8e(0x1ac)];};function a94_0x52a4(_0x5489d6,_0x53f4aa){const _0x3fa4a7=a94_0x3fa4();return a94_0x52a4=function(_0x52a453,_0x1b9007){_0x52a453=_0x52a453-0x196;let _0x5cb41a=_0x3fa4a7[_0x52a453];return _0x5cb41a;},a94_0x52a4(_0x5489d6,_0x53f4aa);}function a94_0x3fa4(){const _0x410d0c=['TestFrameworkState.TEST_SCREENSHOT','TAdSf','wGCpr','TestFrameworkState.NONE','toString','TestFrameworkState.SETUP_FIXTURE','1pKTXfa','102AUJEgh','TestFrameworkState.STEP','TestFrameworkState.AFTER_EACH','value','3686192ctjMZJ','rtmDR','145651WkAKAH','TestFrameworkState.TEST_STEP','TestFrameworkState.AFTER_ALL','209091ITyFwN','TestFrameworkState.INIT_TEST','LLCQr','hoooV','values','qJqNO','SxsZg','TestFrameworkState.BEFORE_ALL','saKyl','2126583kqBKpF','8DfDeZk','rlYGk','UGSZf','10OUNDZd','freeze','jPrOQ','QfCgl','68033lvoTUS','find','TestFrameworkState.LOG','TestFrameworkState.BEFORE_EACH','3490950elADav','mpgNf','TestFrameworkState.TEST','633898xdOLUv'];a94_0x3fa4=function(){return _0x410d0c;};return a94_0x3fa4();}const TestFrameworkState=Object[a94_0x5017c0(0x1b5)]({'NONE':a94_0x30a1e1,'BEFORE_ALL':a94_0x15d104,'LOG':a94_0x3b67a9,'SETUP_FIXTURE':a94_0x23b6a2,'INIT_TEST':a94_0x2c1f19,'BEFORE_EACH':a94_0x216299,'AFTER_EACH':a94_0xcd046b,'TEST':a94_0x383635,'STEP':a94_0x1f7784,'LOG_REPORT':a94_0xa72530,'AFTER_ALL':a94_0x5b94bd,'TEST_SCREENSHOT':a94_0x1fb913,'TEST_STEP':a94_0x554efb,'fromValue'(_0x4c7fb9){const _0x142761=a94_0x5017c0;return Object[_0x142761(0x1ab)](TestFrameworkState)[_0x142761(0x1b9)](_0x5a4d97=>_0x5a4d97[_0x142761(0x1a1)]===_0x4c7fb9);}});module['exports']=TestFrameworkState;
1
+ const a94_0x15b8fb=a94_0x1cc1;function a94_0x1cc1(_0x37d11b,_0xcdf122){const _0x202902=a94_0x2029();return a94_0x1cc1=function(_0x1cc13d,_0xfa9c0f){_0x1cc13d=_0x1cc13d-0x1cf;let _0x19cf35=_0x202902[_0x1cc13d];return _0x19cf35;},a94_0x1cc1(_0x37d11b,_0xcdf122);}(function(_0x30b131,_0x513c6d){const _0x1ba321=a94_0x1cc1,_0x586479=_0x30b131();while(!![]){try{const _0x27a29f=parseInt(_0x1ba321(0x1eb))/0x1*(-parseInt(_0x1ba321(0x1d9))/0x2)+parseInt(_0x1ba321(0x1d1))/0x3*(-parseInt(_0x1ba321(0x1da))/0x4)+-parseInt(_0x1ba321(0x1dd))/0x5+parseInt(_0x1ba321(0x1cf))/0x6+parseInt(_0x1ba321(0x1e2))/0x7+-parseInt(_0x1ba321(0x1ed))/0x8*(parseInt(_0x1ba321(0x1ea))/0x9)+parseInt(_0x1ba321(0x1ec))/0xa;if(_0x27a29f===_0x513c6d)break;else _0x586479['push'](_0x586479['shift']());}catch(_0x126e5a){_0x586479['push'](_0x586479['shift']());}}}(a94_0x2029,0xe5a4e));const a94_0x2612f0={};a94_0x2612f0['value']=0x0,a94_0x2612f0[a94_0x15b8fb(0x1e1)]=function(){const _0x2423c4=a94_0x15b8fb,_0x3234ac={};_0x3234ac[_0x2423c4(0x1f0)]=_0x2423c4(0x1d6);const _0x409eed=_0x3234ac;return _0x409eed[_0x2423c4(0x1f0)];};const a94_0x1054ac={};a94_0x1054ac[a94_0x15b8fb(0x1e4)]=0x1,a94_0x1054ac[a94_0x15b8fb(0x1e1)]=function(){const _0x4e1623=a94_0x15b8fb,_0x10fed5={};_0x10fed5[_0x4e1623(0x1ef)]=_0x4e1623(0x1e6);const _0xda84=_0x10fed5;return _0xda84[_0x4e1623(0x1ef)];};const a94_0x4b2f30={};a94_0x4b2f30[a94_0x15b8fb(0x1e4)]=0x2,a94_0x4b2f30['toString']=function(){const _0x3808a7=a94_0x15b8fb,_0x9ff7e2={};_0x9ff7e2['UoiWU']=_0x3808a7(0x1e9);const _0xcf935d=_0x9ff7e2;return _0xcf935d[_0x3808a7(0x1d7)];};const a94_0xde4f09={};a94_0xde4f09['value']=0x3,a94_0xde4f09['toString']=function(){const _0x137439=a94_0x15b8fb,_0x287223={};_0x287223[_0x137439(0x1e8)]='TestFrameworkState.SETUP_FIXTURE';const _0x56017c=_0x287223;return _0x56017c[_0x137439(0x1e8)];};const a94_0x2dadae={};function a94_0x2029(){const _0x53f162=['SQUrO','toString','2495381QtQkEX','rqbvz','value','zMWer','TestFrameworkState.BEFORE_ALL','freeze','uIYai','TestFrameworkState.LOG','10656027YMZQpG','70693ITOqgX','52973340pOozcO','8rybJfM','TestFrameworkState.BEFORE_EACH','vDRKP','KTDKw','5994396YrBfYb','EdmvM','39VzVkEl','lYskH','values','CCQXw','IvlGT','TestFrameworkState.NONE','UoiWU','TestFrameworkState.INIT_TEST','42ZMdYpx','465484DovJrO','TestFrameworkState.STEP','TestFrameworkState.AFTER_EACH','7654410FVxHwF','find','kZinA'];a94_0x2029=function(){return _0x53f162;};return a94_0x2029();}a94_0x2dadae[a94_0x15b8fb(0x1e4)]=0x4,a94_0x2dadae[a94_0x15b8fb(0x1e1)]=function(){const _0x471e11=a94_0x15b8fb,_0x4e86e4={};_0x4e86e4[_0x471e11(0x1e5)]=_0x471e11(0x1d8);const _0x4b4081=_0x4e86e4;return _0x4b4081[_0x471e11(0x1e5)];};const a94_0x1d310f={};a94_0x1d310f['value']=0x5,a94_0x1d310f[a94_0x15b8fb(0x1e1)]=function(){const _0x52a4e6=a94_0x15b8fb,_0x254924={};_0x254924[_0x52a4e6(0x1df)]=_0x52a4e6(0x1ee);const _0x281d89=_0x254924;return _0x281d89[_0x52a4e6(0x1df)];};const a94_0x568abe={};a94_0x568abe['value']=0x6,a94_0x568abe['toString']=function(){const _0x45fcc7=a94_0x15b8fb,_0x206d41={};_0x206d41[_0x45fcc7(0x1e3)]=_0x45fcc7(0x1dc);const _0x35a310=_0x206d41;return _0x35a310[_0x45fcc7(0x1e3)];};const a94_0x2acb74={};a94_0x2acb74[a94_0x15b8fb(0x1e4)]=0x7,a94_0x2acb74['toString']=function(){const _0x13dca0=a94_0x15b8fb,_0x85e72f={};_0x85e72f[_0x13dca0(0x1d2)]='TestFrameworkState.TEST';const _0x35c0a1=_0x85e72f;return _0x35c0a1[_0x13dca0(0x1d2)];};const a94_0x4d3be5={};a94_0x4d3be5['value']=0x8,a94_0x4d3be5['toString']=function(){const _0x1ee057=a94_0x15b8fb,_0x11013c={};_0x11013c[_0x1ee057(0x1d0)]=_0x1ee057(0x1db);const _0x4fa408=_0x11013c;return _0x4fa408[_0x1ee057(0x1d0)];};const a94_0x28b8cc={};a94_0x28b8cc['value']=0x9,a94_0x28b8cc[a94_0x15b8fb(0x1e1)]=function(){const _0x5b569e=a94_0x15b8fb,_0x27c09e={};_0x27c09e['IvlGT']='TestFrameworkState.LOG_REPORT';const _0x4d5414=_0x27c09e;return _0x4d5414[_0x5b569e(0x1d5)];};const a94_0x24c95d={};a94_0x24c95d['value']=0xa,a94_0x24c95d[a94_0x15b8fb(0x1e1)]=function(){const _0x28651d={};_0x28651d['HBfYP']='TestFrameworkState.AFTER_ALL';const _0x4d484b=_0x28651d;return _0x4d484b['HBfYP'];};const a94_0x5064eb={};a94_0x5064eb[a94_0x15b8fb(0x1e4)]=0xb,a94_0x5064eb['toString']=function(){const _0x358772=a94_0x15b8fb,_0x5007db={};_0x5007db[_0x358772(0x1d4)]='TestFrameworkState.TEST_SCREENSHOT';const _0xcd2038=_0x5007db;return _0xcd2038[_0x358772(0x1d4)];};const a94_0x4b6dcf={};a94_0x4b6dcf[a94_0x15b8fb(0x1e4)]=0xc,a94_0x4b6dcf[a94_0x15b8fb(0x1e1)]=function(){const _0xbef833=a94_0x15b8fb,_0x5216f5={};_0x5216f5[_0xbef833(0x1e0)]='TestFrameworkState.TEST_STEP';const _0x26405e=_0x5216f5;return _0x26405e[_0xbef833(0x1e0)];};const TestFrameworkState=Object[a94_0x15b8fb(0x1e7)]({'NONE':a94_0x2612f0,'BEFORE_ALL':a94_0x1054ac,'LOG':a94_0x4b2f30,'SETUP_FIXTURE':a94_0xde4f09,'INIT_TEST':a94_0x2dadae,'BEFORE_EACH':a94_0x1d310f,'AFTER_EACH':a94_0x568abe,'TEST':a94_0x2acb74,'STEP':a94_0x4d3be5,'LOG_REPORT':a94_0x28b8cc,'AFTER_ALL':a94_0x24c95d,'TEST_SCREENSHOT':a94_0x5064eb,'TEST_STEP':a94_0x4b6dcf,'fromValue'(_0x24808e){const _0x6df34c=a94_0x15b8fb;return Object[_0x6df34c(0x1d3)](TestFrameworkState)[_0x6df34c(0x1de)](_0x208e3d=>_0x208e3d[_0x6df34c(0x1e4)]===_0x24808e);}});module['exports']=TestFrameworkState;
@@ -1 +1 @@
1
- function a95_0x3600(){const _0x1f0a9e=['wCxNM','Scqph','XMgsu','unlinkSync','get','KEY_FILE_NAME','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','JiYLk','.browserstack','ccPcd','ySTjb','https://','BQMPD','Cleared\x20attachment\x20folder','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','join','pipe','vNheV','uploadAttachmentsManager','homedir','statusCode','close','7CUhnUU','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','util','__jestCurrentTestIdentifier','logger','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','testhubConfig','dLyoX','toLowerCase','getTestIdentifierFromTestInfo','statSync','NCfCx','5845374KQmnDf','getTestFramework','testInfo','UASav','path','mkdirSync','./browserstackCLI','JbWQC','./TestInfo','sIXTE','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','trackFile','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','retry','tHLeJ','Attachment\x20recevied\x20for\x20path:\x20%s','trim','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','TEST','4MazCGs','Fdpef','3sWcyJG','1768135ZJDXGT','ZcABI','1389066gFktFz','./framework/constants/testFrameworkConstants','7001307SKfwjJ','buildHashedId','Created\x20.browserstack\x20folder\x20at:\x20%s','./state/hookState','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','KEY_FILE_PATH','format','MqoeL','Created\x20folder:\x20%s','force',',\x20filepath:\x20','finish','koBua','GDlyf','toFixed','File\x20downloaded\x20to:\x20%s','getTrackedInstance','copyFileSync','uploadAttachments','../../helpers/classLogger.js','GKraj','createWriteStream','message','./modules/playwrightDriverModule','xwHqR','http://','isRunning','resolveInstance','basename','toObject','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','size','KEY_TEST_ATTACHMENTS','vCwle','oHOIE','2005502kgwnGk','KEY_TEST_ID','getState','TestHubModule','currentTest','existsSync','DAoVE','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','./state/testFrameworkState','modules','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','TestLevel','debug','getAllData','recursive','getTestFrameworkDetail','./framework/automationFramework','RzUKo','BuildLevel','getInstance','NdRNZ','11353880fsAPlM','addMultipleEntries','jfRhg','jest','startsWith','oiqpl','rmSync','4557490lrEVkN','LmXdH'];a95_0x3600=function(){return _0x1f0a9e;};return a95_0x3600();}const a95_0x4783b2=a95_0xb933;(function(_0x624851,_0x35906f){const _0x5cdc32=a95_0xb933,_0x47a3c9=_0x624851();while(!![]){try{const _0x4a8f6a=parseInt(_0x5cdc32(0x16b))/0x1+parseInt(_0x5cdc32(0x113))/0x2*(-parseInt(_0x5cdc32(0x168))/0x3)+-parseInt(_0x5cdc32(0x166))/0x4*(parseInt(_0x5cdc32(0x169))/0x5)+parseInt(_0x5cdc32(0x153))/0x6*(parseInt(_0x5cdc32(0x147))/0x7)+-parseInt(_0x5cdc32(0x128))/0x8+parseInt(_0x5cdc32(0x16d))/0x9+parseInt(_0x5cdc32(0x12f))/0xa;if(_0x4a8f6a===_0x35906f)break;else _0x47a3c9['push'](_0x47a3c9['shift']());}catch(_0x28bf03){_0x47a3c9['push'](_0x47a3c9['shift']());}}}(a95_0x3600,0xc886a));const os=require('os'),fs=require('fs'),path=require(a95_0x4783b2(0x157)),util=require(a95_0x4783b2(0x149)),BrowserstackCLI=require(a95_0x4783b2(0x159)),https=require('https'),http=require('http'),AutomationFramework=require(a95_0x4783b2(0x123)),PlaywrightDriverModule=require(a95_0x4783b2(0x184)),TestInfo=require(a95_0x4783b2(0x15b)),TestFrameworkConstants=require(a95_0x4783b2(0x16c)),{createClassLogger}=require(a95_0x4783b2(0x180));function a95_0xb933(_0x3657aa,_0x2a12c6){const _0x3600c3=a95_0x3600();return a95_0xb933=function(_0xb93353,_0x436e65){_0xb93353=_0xb93353-0x113;let _0x131ce5=_0x3600c3[_0xb93353];return _0x131ce5;},a95_0xb933(_0x3657aa,_0x2a12c6);}class uploadAttachmentsManager{static ['logger']=createClassLogger(a95_0x4783b2(0x143));static[a95_0x4783b2(0x17f)](_0x3e2621,_0x39752e=![]){const _0xc67f2=a95_0x4783b2,_0x891117={};_0x891117['meAtY']=function(_0x2e6d2b,_0x181046){return _0x2e6d2b/_0x181046;},_0x891117['ySTjb']=function(_0x1bd16e,_0x1bd901){return _0x1bd16e*_0x1bd901;},_0x891117['JbWQC']=function(_0x217f25,_0x11ffc3){return _0x217f25>_0x11ffc3;},_0x891117[_0xc67f2(0x17a)]=_0xc67f2(0x18b),_0x891117['AYtze']=_0xc67f2(0x17c),_0x891117[_0xc67f2(0x127)]=function(_0x5bef22,_0x1d2c76){return _0x5bef22===_0x1d2c76;},_0x891117[_0xc67f2(0x119)]=_0xc67f2(0x178),_0x891117['Riorh']=_0xc67f2(0x13f),_0x891117[_0xc67f2(0x142)]=_0xc67f2(0x14c),_0x891117[_0xc67f2(0x167)]=_0xc67f2(0x162),_0x891117[_0xc67f2(0x14e)]=_0xc67f2(0x139),_0x891117[_0xc67f2(0x130)]='.browserstack\x20folder\x20not\x20found\x20at:\x20%s',_0x891117[_0xc67f2(0x132)]=_0xc67f2(0x16f),_0x891117[_0xc67f2(0x124)]=_0xc67f2(0x175),_0x891117[_0xc67f2(0x12a)]=function(_0x112877,_0x3a9fbd){return _0x112877===_0x3a9fbd;},_0x891117[_0xc67f2(0x179)]='Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.',_0x891117[_0xc67f2(0x138)]=_0xc67f2(0x13c),_0x891117['GGusU']=_0xc67f2(0x186),_0x891117[_0xc67f2(0x133)]='error',_0x891117[_0xc67f2(0x16a)]='Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s',_0x891117['bBYiS']=function(_0x3c27ab,_0x51f742){return _0x3c27ab/_0x51f742;},_0x891117[_0xc67f2(0x161)]=_0xc67f2(0x148);const _0x96c7a1=_0x891117;this[_0xc67f2(0x14b)][_0xc67f2(0x11f)](util[_0xc67f2(0x173)](_0x96c7a1['Fdpef'],_0x3e2621));const _0x5f2490=os[_0xc67f2(0x144)](),_0x43a5f9=path['join'](_0x5f2490,_0x96c7a1[_0xc67f2(0x14e)]);!fs[_0xc67f2(0x118)](_0x43a5f9)&&(this[_0xc67f2(0x14b)][_0xc67f2(0x11f)](util['format'](_0x96c7a1[_0xc67f2(0x130)],_0x43a5f9)),fs['mkdirSync'](_0x43a5f9),this[_0xc67f2(0x14b)][_0xc67f2(0x11f)](util['format'](_0x96c7a1[_0xc67f2(0x132)],_0x43a5f9)));const _0x27b3e0=BrowserstackCLI['getInstance']()[_0xc67f2(0x11c)]['TestHubModule']?.[_0xc67f2(0x14d)]?.[_0xc67f2(0x18a)]()?.[_0xc67f2(0x16e)],_0x1b87dd=path[_0xc67f2(0x140)](_0x43a5f9,_0x27b3e0);!fs[_0xc67f2(0x118)](_0x1b87dd)&&(fs[_0xc67f2(0x158)](_0x1b87dd),this['logger'][_0xc67f2(0x11f)](util[_0xc67f2(0x173)](_0x96c7a1[_0xc67f2(0x124)],_0x1b87dd)));if(_0x96c7a1[_0xc67f2(0x12a)](_0x3e2621[_0xc67f2(0x163)](),'')){this[_0xc67f2(0x14b)][_0xc67f2(0x11f)](util[_0xc67f2(0x173)](_0x96c7a1['koBua']));return;}if(_0x3e2621['startsWith'](_0x96c7a1[_0xc67f2(0x138)])||_0x3e2621[_0xc67f2(0x12c)](_0x96c7a1['GGusU'])){const _0x2e1e73=_0x3e2621[_0xc67f2(0x12c)](_0x96c7a1[_0xc67f2(0x138)])?https:http,_0x3d948e=path[_0xc67f2(0x189)](_0x3e2621),_0x586f2c=path['join'](_0x1b87dd,_0x3d948e),_0x54f643=fs[_0xc67f2(0x182)](_0x586f2c);_0x2e1e73[_0xc67f2(0x135)](_0x3e2621,_0x1fc3cc=>{const _0x338ba6=_0xc67f2;if(_0x96c7a1[_0x338ba6(0x127)](_0x1fc3cc[_0x338ba6(0x145)],0xc8))_0x1fc3cc[_0x338ba6(0x141)](_0x54f643),_0x54f643['on'](_0x96c7a1[_0x338ba6(0x119)],()=>{const _0x1d703f=_0x338ba6;_0x54f643['close']();const _0x33c618=fs[_0x1d703f(0x151)](_0x586f2c),_0x2039c5=_0x96c7a1['meAtY'](_0x33c618[_0x1d703f(0x18c)],_0x96c7a1[_0x1d703f(0x13b)](0x400,0x400));if(_0x96c7a1[_0x1d703f(0x15a)](_0x2039c5,0x64)){this[_0x1d703f(0x14b)]['debug'](util[_0x1d703f(0x173)](_0x96c7a1['GDlyf'],_0x2039c5['toFixed'](0x2))),fs['unlinkSync'](_0x586f2c);return;}this[_0x1d703f(0x14b)][_0x1d703f(0x11f)](util[_0x1d703f(0x173)](_0x96c7a1['AYtze'],_0x586f2c)),uploadAttachmentsManager[_0x1d703f(0x15e)](_0x586f2c,_0x39752e);});else{this[_0x338ba6(0x14b)][_0x338ba6(0x11f)](util[_0x338ba6(0x173)](_0x96c7a1['Riorh'],_0x1fc3cc[_0x338ba6(0x145)])),_0x54f643[_0x338ba6(0x146)](),fs[_0x338ba6(0x134)](_0x586f2c);return;}})['on'](_0x96c7a1[_0xc67f2(0x133)],_0x45f475=>{const _0x318749=_0xc67f2;this[_0x318749(0x14b)]['debug'](util[_0x318749(0x173)](_0x96c7a1[_0x318749(0x142)],_0x45f475[_0x318749(0x183)])),_0x54f643['close'](),fs['unlinkSync'](_0x586f2c);return;});}else{if(!fs[_0xc67f2(0x118)](_0x3e2621)){this[_0xc67f2(0x14b)][_0xc67f2(0x11f)](util[_0xc67f2(0x173)](_0x96c7a1[_0xc67f2(0x16a)],_0x3e2621));return;}const _0x2eec02=fs['statSync'](_0x3e2621),_0x38995b=_0x96c7a1['bBYiS'](_0x2eec02['size'],_0x96c7a1['ySTjb'](0x400,0x400));if(_0x96c7a1[_0xc67f2(0x15a)](_0x38995b,0x64)){this[_0xc67f2(0x14b)][_0xc67f2(0x11f)](util['format'](_0x96c7a1[_0xc67f2(0x161)],_0x38995b[_0xc67f2(0x17b)](0x2)));return;}const _0x5600f1=path['basename'](_0x3e2621),_0x27315d=path[_0xc67f2(0x140)](_0x1b87dd,_0x5600f1);fs[_0xc67f2(0x17e)](_0x3e2621,_0x27315d),uploadAttachmentsManager[_0xc67f2(0x15e)](_0x27315d,_0x39752e);}}static[a95_0x4783b2(0x15e)](_0x178d12,_0xcec61d){const _0x30e662=a95_0x4783b2,_0x1e6fe5={'sIXTE':function(_0x2b6158,_0x3b3e7c){return _0x2b6158(_0x3b3e7c);},'xwHqR':_0x30e662(0x159),'vCwle':'./cliUtils','BQMPD':function(_0x1be6b8,_0x335200){return _0x1be6b8===_0x335200;},'oiqpl':_0x30e662(0x12b),'gEjeu':'trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','BHCUU':_0x30e662(0x125),'dtTLo':_0x30e662(0x11e),'cKWLF':'trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','NCfCx':function(_0x4cfd78,_0x2c919b){return _0x4cfd78(_0x2c919b);},'zPLUF':_0x30e662(0x11b),'GKraj':_0x30e662(0x170),'rXjxB':_0x30e662(0x164),'oHOIE':_0x30e662(0x11d),'wCxNM':_0x30e662(0x15f)};try{let _0x1d82a4;const _0x3c8578=global['__workerDetails']?.[_0x30e662(0x117)]?.[_0x30e662(0x155)],_0x514f4f=_0x1e6fe5['sIXTE'](require,_0x1e6fe5[_0x30e662(0x185)]),_0x4491ec=_0x1e6fe5[_0x30e662(0x15c)](require,_0x1e6fe5[_0x30e662(0x18e)]),_0x28ce6e=_0x514f4f[_0x30e662(0x126)]()[_0x30e662(0x187)]()&&_0x1e6fe5[_0x30e662(0x13d)](_0x4491ec[_0x30e662(0x122)]()?.['name']?.[_0x30e662(0x14f)](),_0x1e6fe5[_0x30e662(0x12d)]);if(_0x28ce6e){_0x1d82a4=global[_0x30e662(0x14a)];if(!_0x1d82a4){const _0x40af03=AutomationFramework['getTrackedInstance']();_0x1d82a4=AutomationFramework[_0x30e662(0x115)](_0x40af03,PlaywrightDriverModule[_0x30e662(0x114)],'');}this[_0x30e662(0x14b)][_0x30e662(0x11f)](_0x30e662(0x15d)+_0x1d82a4);}else{if(!_0x3c8578){const _0x57cd78=AutomationFramework[_0x30e662(0x17d)]();_0x1d82a4=AutomationFramework[_0x30e662(0x115)](_0x57cd78,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0x1d82a4=TestInfo[_0x30e662(0x150)](_0x3c8578,_0x3c8578[_0x30e662(0x160)]);this['logger'][_0x30e662(0x11f)](_0x30e662(0x11a)+_0x1d82a4);}if(!_0x1d82a4){this[_0x30e662(0x14b)]['debug'](_0x1e6fe5['gEjeu']);return;}const _0x2f7f1c={[TestFrameworkConstants['KEY_FILE_SIZE']]:fs[_0x30e662(0x151)](_0x178d12)[_0x30e662(0x18c)],[TestFrameworkConstants[_0x30e662(0x136)]]:path[_0x30e662(0x189)](_0x178d12),[TestFrameworkConstants[_0x30e662(0x172)]]:_0x178d12,[TestFrameworkConstants['KEY_FILE_LEVEL']]:_0xcec61d?_0x1e6fe5['BHCUU']:_0x1e6fe5['dtTLo']};if(_0x28ce6e){const _0x1e7e2c=_0x514f4f[_0x30e662(0x126)]()[_0x30e662(0x154)]();if(!_0x1e7e2c){this['logger'][_0x30e662(0x11f)](_0x1e6fe5['cKWLF']);return;}const _0x495149=_0x1e6fe5['NCfCx'](require,_0x1e6fe5['zPLUF']),_0x23922f=_0x1e6fe5[_0x30e662(0x152)](require,_0x1e6fe5[_0x30e662(0x181)]),_0x488def=_0x1e7e2c[_0x30e662(0x188)](_0x495149[_0x30e662(0x165)],_0x23922f['POST']);if(!_0x488def){this[_0x30e662(0x14b)]['debug'](_0x1e6fe5['rXjxB']);return;}const _0x3fc730=_0x488def[_0x30e662(0x120)]()[_0x30e662(0x135)](_0x1d82a4)||{},_0x4ed685=_0x3fc730[TestFrameworkConstants[_0x30e662(0x18d)]]||{},_0x47e242={..._0x4ed685};_0x47e242[_0x178d12]=_0x2f7f1c;const _0x17dab4=_0x47e242,_0x51b6e2={[TestFrameworkConstants[_0x30e662(0x18d)]]:_0x17dab4},_0x15f860={};_0x15f860[_0x1d82a4]=_0x51b6e2,_0x488def[_0x30e662(0x129)](_0x15f860),this[_0x30e662(0x14b)][_0x30e662(0x11f)](_0x30e662(0x137)+_0x1d82a4+_0x30e662(0x177)+_0x178d12);}else{const _0xeec447=TestInfo['getTestDetails'](_0x1d82a4),_0xfb5f3a=_0xeec447[TestFrameworkConstants[_0x30e662(0x18d)]]||{};_0xfb5f3a[_0x178d12]=_0x2f7f1c,_0xeec447[TestFrameworkConstants[_0x30e662(0x18d)]]=_0xfb5f3a,TestInfo['setTestDetails'](_0x1d82a4,_0xeec447),this['logger'][_0x30e662(0x11f)](_0x30e662(0x171)+_0x1d82a4+_0x30e662(0x177)+_0x178d12);}this[_0x30e662(0x14b)][_0x30e662(0x11f)](util['format'](_0x1e6fe5[_0x30e662(0x18f)],_0x178d12));}catch(_0x529962){this[_0x30e662(0x14b)]['debug'](util[_0x30e662(0x173)](_0x1e6fe5[_0x30e662(0x131)],_0x529962[_0x30e662(0x183)]));}}static['clearAttachments'](){const _0x1b83b1=a95_0x4783b2,_0x457cd2={};_0x457cd2[_0x1b83b1(0x13a)]=_0x1b83b1(0x139),_0x457cd2[_0x1b83b1(0x156)]='No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s',_0x457cd2[_0x1b83b1(0x174)]=_0x1b83b1(0x13e);const _0x236d3f=_0x457cd2,_0x130f86=os['homedir'](),_0x54117a=path['join'](_0x130f86,_0x236d3f[_0x1b83b1(0x13a)]);if(!fs[_0x1b83b1(0x118)](_0x54117a))return;const _0x2dd5f1=BrowserstackCLI['getInstance']()[_0x1b83b1(0x11c)][_0x1b83b1(0x116)]?.[_0x1b83b1(0x14d)]?.['toObject']()?.[_0x1b83b1(0x16e)],_0x57dbb3=_0x2dd5f1?path['join'](_0x54117a,_0x2dd5f1):null;if(!_0x57dbb3||!fs['existsSync'](_0x57dbb3)){this['logger'][_0x1b83b1(0x11f)](util[_0x1b83b1(0x173)](_0x236d3f['UASav'],_0x2dd5f1));return;}const _0x531994={};_0x531994[_0x1b83b1(0x121)]=!![],_0x531994[_0x1b83b1(0x176)]=!![],fs[_0x1b83b1(0x12e)](_0x57dbb3,_0x531994),this[_0x1b83b1(0x14b)][_0x1b83b1(0x11f)](util[_0x1b83b1(0x173)](_0x236d3f[_0x1b83b1(0x174)]));}}module['exports']=uploadAttachmentsManager;
1
+ const a95_0x96e849=a95_0x2953;(function(_0xd48988,_0x5b2c83){const _0x2187fd=a95_0x2953,_0x4f0587=_0xd48988();while(!![]){try{const _0x1e139b=-parseInt(_0x2187fd(0x1eb))/0x1+parseInt(_0x2187fd(0x220))/0x2+-parseInt(_0x2187fd(0x216))/0x3+-parseInt(_0x2187fd(0x218))/0x4*(parseInt(_0x2187fd(0x21c))/0x5)+parseInt(_0x2187fd(0x1dd))/0x6+parseInt(_0x2187fd(0x1e3))/0x7+parseInt(_0x2187fd(0x21f))/0x8*(parseInt(_0x2187fd(0x1d7))/0x9);if(_0x1e139b===_0x5b2c83)break;else _0x4f0587['push'](_0x4f0587['shift']());}catch(_0x224d04){_0x4f0587['push'](_0x4f0587['shift']());}}}(a95_0x31ec,0x740c4));const os=require('os'),fs=require('fs'),path=require(a95_0x96e849(0x225)),util=require(a95_0x96e849(0x230)),BrowserstackCLI=require(a95_0x96e849(0x237)),https=require('https'),http=require(a95_0x96e849(0x202)),AutomationFramework=require(a95_0x96e849(0x224)),PlaywrightDriverModule=require(a95_0x96e849(0x235)),TestInfo=require(a95_0x96e849(0x238)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require('../../helpers/classLogger.js');class uploadAttachmentsManager{static [a95_0x96e849(0x1e6)]=createClassLogger(a95_0x96e849(0x1fd));static['uploadAttachments'](_0x1bc30c,_0x42f255=![]){const _0x3386a6=a95_0x96e849,_0x4493bc={};_0x4493bc[_0x3386a6(0x23e)]=function(_0x3315e9,_0x324de3){return _0x3315e9/_0x324de3;},_0x4493bc[_0x3386a6(0x1fe)]=function(_0x4811db,_0x40ecc5){return _0x4811db*_0x40ecc5;},_0x4493bc['OBDSa']=function(_0x268b98,_0x11de31){return _0x268b98>_0x11de31;},_0x4493bc[_0x3386a6(0x1e5)]='Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.',_0x4493bc[_0x3386a6(0x223)]='File\x20downloaded\x20to:\x20%s',_0x4493bc['elrGU']=function(_0x434812,_0x8abb4f){return _0x434812===_0x8abb4f;},_0x4493bc['fXTnl']='finish',_0x4493bc[_0x3386a6(0x211)]=_0x3386a6(0x1d6),_0x4493bc['crSTV']=_0x3386a6(0x20e),_0x4493bc['utJuO']='Attachment\x20recevied\x20for\x20path:\x20%s',_0x4493bc[_0x3386a6(0x229)]=_0x3386a6(0x221),_0x4493bc[_0x3386a6(0x249)]=_0x3386a6(0x22a),_0x4493bc[_0x3386a6(0x1dc)]=_0x3386a6(0x233),_0x4493bc[_0x3386a6(0x203)]=_0x3386a6(0x1fa),_0x4493bc[_0x3386a6(0x21a)]=function(_0x1cc421,_0x21e84c){return _0x1cc421===_0x21e84c;},_0x4493bc['TTDpI']='Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.',_0x4493bc[_0x3386a6(0x1ec)]=_0x3386a6(0x244),_0x4493bc[_0x3386a6(0x20c)]=_0x3386a6(0x243),_0x4493bc['ZWptA']='error',_0x4493bc[_0x3386a6(0x217)]=_0x3386a6(0x242),_0x4493bc[_0x3386a6(0x240)]=_0x3386a6(0x215);const _0x581da4=_0x4493bc;this[_0x3386a6(0x1e6)][_0x3386a6(0x1df)](util[_0x3386a6(0x21b)](_0x581da4['utJuO'],_0x1bc30c));const _0x5cabe7=os[_0x3386a6(0x200)](),_0x8e1bae=path[_0x3386a6(0x1d8)](_0x5cabe7,_0x581da4[_0x3386a6(0x229)]);!fs[_0x3386a6(0x22d)](_0x8e1bae)&&(this['logger']['debug'](util[_0x3386a6(0x21b)](_0x581da4[_0x3386a6(0x249)],_0x8e1bae)),fs[_0x3386a6(0x1d4)](_0x8e1bae),this[_0x3386a6(0x1e6)]['debug'](util['format'](_0x581da4[_0x3386a6(0x1dc)],_0x8e1bae)));const _0x15b7ac=BrowserstackCLI['getInstance']()['modules'][_0x3386a6(0x1fb)]?.['testhubConfig']?.[_0x3386a6(0x1e7)]()?.[_0x3386a6(0x1e2)],_0x610e26=path['join'](_0x8e1bae,_0x15b7ac);!fs[_0x3386a6(0x22d)](_0x610e26)&&(fs['mkdirSync'](_0x610e26),this['logger'][_0x3386a6(0x1df)](util[_0x3386a6(0x21b)](_0x581da4['yWKWa'],_0x610e26)));if(_0x581da4['pWaea'](_0x1bc30c[_0x3386a6(0x23a)](),'')){this[_0x3386a6(0x1e6)][_0x3386a6(0x1df)](util[_0x3386a6(0x21b)](_0x581da4[_0x3386a6(0x209)]));return;}if(_0x1bc30c[_0x3386a6(0x248)](_0x581da4['HvWQX'])||_0x1bc30c[_0x3386a6(0x248)](_0x581da4[_0x3386a6(0x20c)])){const _0x33a69b=_0x1bc30c[_0x3386a6(0x248)](_0x581da4[_0x3386a6(0x1ec)])?https:http,_0x1757f8=path[_0x3386a6(0x1d3)](_0x1bc30c),_0x4f2680=path[_0x3386a6(0x1d8)](_0x610e26,_0x1757f8),_0x331154=fs[_0x3386a6(0x1da)](_0x4f2680);_0x33a69b[_0x3386a6(0x1e8)](_0x1bc30c,_0x45d997=>{const _0xb79743=_0x3386a6;if(_0x581da4[_0xb79743(0x1f1)](_0x45d997['statusCode'],0xc8))_0x45d997['pipe'](_0x331154),_0x331154['on'](_0x581da4[_0xb79743(0x1fc)],()=>{const _0x1a73b7=_0xb79743;_0x331154[_0x1a73b7(0x24a)]();const _0x35c5d3=fs[_0x1a73b7(0x231)](_0x4f2680),_0x499dab=_0x581da4[_0x1a73b7(0x23e)](_0x35c5d3['size'],_0x581da4[_0x1a73b7(0x1fe)](0x400,0x400));if(_0x581da4[_0x1a73b7(0x1f8)](_0x499dab,0x64)){this[_0x1a73b7(0x1e6)][_0x1a73b7(0x1df)](util['format'](_0x581da4[_0x1a73b7(0x1e5)],_0x499dab['toFixed'](0x2))),fs['unlinkSync'](_0x4f2680);return;}this[_0x1a73b7(0x1e6)][_0x1a73b7(0x1df)](util[_0x1a73b7(0x21b)](_0x581da4['rvpIb'],_0x4f2680)),uploadAttachmentsManager['trackFile'](_0x4f2680,_0x42f255);});else{this[_0xb79743(0x1e6)][_0xb79743(0x1df)](util[_0xb79743(0x21b)](_0x581da4[_0xb79743(0x211)],_0x45d997[_0xb79743(0x236)])),_0x331154[_0xb79743(0x24a)](),fs[_0xb79743(0x21e)](_0x4f2680);return;}})['on'](_0x581da4[_0x3386a6(0x1d9)],_0x316bd4=>{const _0x23b705=_0x3386a6;this[_0x23b705(0x1e6)][_0x23b705(0x1df)](util['format'](_0x581da4['crSTV'],_0x316bd4[_0x23b705(0x23f)])),_0x331154[_0x23b705(0x24a)](),fs[_0x23b705(0x21e)](_0x4f2680);return;});}else{if(!fs[_0x3386a6(0x22d)](_0x1bc30c)){this[_0x3386a6(0x1e6)][_0x3386a6(0x1df)](util[_0x3386a6(0x21b)](_0x581da4[_0x3386a6(0x217)],_0x1bc30c));return;}const _0x1b963c=fs[_0x3386a6(0x231)](_0x1bc30c),_0x17765c=_0x581da4[_0x3386a6(0x23e)](_0x1b963c['size'],_0x581da4[_0x3386a6(0x1fe)](0x400,0x400));if(_0x581da4[_0x3386a6(0x1f8)](_0x17765c,0x64)){this[_0x3386a6(0x1e6)][_0x3386a6(0x1df)](util['format'](_0x581da4[_0x3386a6(0x240)],_0x17765c['toFixed'](0x2)));return;}const _0x3016fc=path[_0x3386a6(0x1d3)](_0x1bc30c),_0x3cb26c=path[_0x3386a6(0x1d8)](_0x610e26,_0x3016fc);fs['copyFileSync'](_0x1bc30c,_0x3cb26c),uploadAttachmentsManager[_0x3386a6(0x1e0)](_0x3cb26c,_0x42f255);}}static['trackFile'](_0x5c92ea,_0x22ba5f){const _0x412278=a95_0x96e849,_0x13b327={'bhIDC':function(_0x2bf1ea,_0x4497da){return _0x2bf1ea(_0x4497da);},'HHnUH':'./browserstackCLI','xHYBg':_0x412278(0x22f),'QglDk':function(_0x477113,_0x2b67a5){return _0x477113===_0x2b67a5;},'aNLMx':_0x412278(0x1e1),'mySiA':_0x412278(0x1f6),'ALRHP':_0x412278(0x226),'hTcCW':_0x412278(0x1f4),'OynwB':_0x412278(0x24d),'mgTjb':function(_0xa6ec10,_0x8b0b05){return _0xa6ec10(_0x8b0b05);},'OOPzD':_0x412278(0x214),'GOJSn':_0x412278(0x1d5),'NtIfz':_0x412278(0x247),'LcDMA':_0x412278(0x241),'YyUlG':_0x412278(0x21d)};try{let _0x467d1f;const _0x22ae62=global[_0x412278(0x1f5)]?.['currentTest']?.['testInfo'],_0x342d60=_0x13b327[_0x412278(0x208)](require,_0x13b327[_0x412278(0x1e9)]),_0x5557e4=_0x13b327[_0x412278(0x208)](require,_0x13b327['xHYBg']),_0x3472af=_0x342d60[_0x412278(0x24c)]()[_0x412278(0x204)]()&&_0x13b327[_0x412278(0x207)](_0x5557e4[_0x412278(0x222)]()?.['name']?.[_0x412278(0x24b)](),_0x13b327[_0x412278(0x1e4)]);if(_0x3472af){_0x467d1f=global['__jestCurrentTestIdentifier'];if(!_0x467d1f){const _0x38d016=AutomationFramework[_0x412278(0x1f0)]();_0x467d1f=AutomationFramework[_0x412278(0x1f3)](_0x38d016,PlaywrightDriverModule[_0x412278(0x205)],'');}this[_0x412278(0x1e6)][_0x412278(0x1df)](_0x412278(0x210)+_0x467d1f);}else{if(!_0x22ae62){const _0x542bca=AutomationFramework[_0x412278(0x1f0)]();_0x467d1f=AutomationFramework['getState'](_0x542bca,PlaywrightDriverModule[_0x412278(0x205)],'');}else _0x467d1f=TestInfo[_0x412278(0x23d)](_0x22ae62,_0x22ae62[_0x412278(0x239)]);this[_0x412278(0x1e6)][_0x412278(0x1df)]('trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20'+_0x467d1f);}if(!_0x467d1f){this[_0x412278(0x1e6)][_0x412278(0x1df)](_0x13b327[_0x412278(0x22b)]);return;}const _0xc441d={[TestFrameworkConstants[_0x412278(0x22e)]]:fs[_0x412278(0x231)](_0x5c92ea)[_0x412278(0x201)],[TestFrameworkConstants[_0x412278(0x1f7)]]:path[_0x412278(0x1d3)](_0x5c92ea),[TestFrameworkConstants['KEY_FILE_PATH']]:_0x5c92ea,[TestFrameworkConstants[_0x412278(0x1de)]]:_0x22ba5f?_0x13b327[_0x412278(0x1ee)]:_0x13b327['hTcCW']};if(_0x3472af){const _0x251394=_0x342d60[_0x412278(0x24c)]()[_0x412278(0x20d)]();if(!_0x251394){this[_0x412278(0x1e6)][_0x412278(0x1df)](_0x13b327[_0x412278(0x227)]);return;}const _0x2e3638=_0x13b327['mgTjb'](require,_0x13b327['OOPzD']),_0x5f4cd2=_0x13b327['bhIDC'](require,_0x13b327[_0x412278(0x232)]),_0x1a4b7b=_0x251394[_0x412278(0x20a)](_0x2e3638['TEST'],_0x5f4cd2[_0x412278(0x1f9)]);if(!_0x1a4b7b){this['logger'][_0x412278(0x1df)](_0x13b327['NtIfz']);return;}const _0x31e748=_0x1a4b7b['getAllData']()[_0x412278(0x1e8)](_0x467d1f)||{},_0x4c5075=_0x31e748[TestFrameworkConstants[_0x412278(0x219)]]||{},_0x36e0cc={..._0x4c5075};_0x36e0cc[_0x5c92ea]=_0xc441d;const _0x57ab82=_0x36e0cc,_0x48695f={[TestFrameworkConstants[_0x412278(0x219)]]:_0x57ab82},_0x2094ae={};_0x2094ae[_0x467d1f]=_0x48695f,_0x1a4b7b[_0x412278(0x228)](_0x2094ae),this['logger'][_0x412278(0x1df)](_0x412278(0x20b)+_0x467d1f+_0x412278(0x245)+_0x5c92ea);}else{const _0xae7c65=TestInfo[_0x412278(0x234)](_0x467d1f),_0x1ddc64=_0xae7c65[TestFrameworkConstants[_0x412278(0x219)]]||{};_0x1ddc64[_0x5c92ea]=_0xc441d,_0xae7c65[TestFrameworkConstants[_0x412278(0x219)]]=_0x1ddc64,TestInfo['setTestDetails'](_0x467d1f,_0xae7c65),this['logger'][_0x412278(0x1df)](_0x412278(0x22c)+_0x467d1f+_0x412278(0x245)+_0x5c92ea);}this[_0x412278(0x1e6)][_0x412278(0x1df)](util['format'](_0x13b327[_0x412278(0x1ff)],_0x5c92ea));}catch(_0x3cbe7c){this['logger']['debug'](util['format'](_0x13b327[_0x412278(0x20f)],_0x3cbe7c[_0x412278(0x23f)]));}}static[a95_0x96e849(0x23b)](){const _0x1c0b20=a95_0x96e849,_0x429525={};_0x429525['iiQUl']=_0x1c0b20(0x221),_0x429525[_0x1c0b20(0x1f2)]=_0x1c0b20(0x212),_0x429525[_0x1c0b20(0x1ed)]=_0x1c0b20(0x1db);const _0x2268fb=_0x429525,_0x4e3533=os['homedir'](),_0x58917d=path[_0x1c0b20(0x1d8)](_0x4e3533,_0x2268fb['iiQUl']);if(!fs[_0x1c0b20(0x22d)](_0x58917d))return;const _0x92e1af=BrowserstackCLI[_0x1c0b20(0x24c)]()[_0x1c0b20(0x1ea)][_0x1c0b20(0x1fb)]?.[_0x1c0b20(0x213)]?.['toObject']()?.[_0x1c0b20(0x1e2)],_0x23c6cd=_0x92e1af?path[_0x1c0b20(0x1d8)](_0x58917d,_0x92e1af):null;if(!_0x23c6cd||!fs[_0x1c0b20(0x22d)](_0x23c6cd)){this[_0x1c0b20(0x1e6)]['debug'](util[_0x1c0b20(0x21b)](_0x2268fb[_0x1c0b20(0x1f2)],_0x92e1af));return;}const _0x158d6b={};_0x158d6b[_0x1c0b20(0x1ef)]=!![],_0x158d6b[_0x1c0b20(0x246)]=!![],fs[_0x1c0b20(0x23c)](_0x23c6cd,_0x158d6b),this[_0x1c0b20(0x1e6)][_0x1c0b20(0x1df)](util[_0x1c0b20(0x21b)](_0x2268fb[_0x1c0b20(0x1ed)]));}}function a95_0x2953(_0x3a1ca0,_0x260df6){const _0x31ecdf=a95_0x31ec();return a95_0x2953=function(_0x2953a6,_0x37a405){_0x2953a6=_0x2953a6-0x1d3;let _0x11c293=_0x31ecdf[_0x2953a6];return _0x11c293;},a95_0x2953(_0x3a1ca0,_0x260df6);}module[a95_0x96e849(0x206)]=uploadAttachmentsManager;function a95_0x31ec(){const _0x4c6acc=['statSync','GOJSn','Created\x20.browserstack\x20folder\x20at:\x20%s','getTestDetails','./modules/playwrightDriverModule','statusCode','./browserstackCLI','./TestInfo','retry','trim','clearAttachments','rmSync','getTestIdentifierFromTestInfo','oFzEC','message','rmAPK','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','http://','https://',',\x20filepath:\x20','force','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','startsWith','Uctoi','close','toLowerCase','getInstance','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','basename','mkdirSync','./state/hookState','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','45wnqYxI','join','ZWptA','createWriteStream','Cleared\x20attachment\x20folder','YDEPv','1006122DsycjA','KEY_FILE_LEVEL','debug','trackFile','jest','buildHashedId','5548977SEZwSE','aNLMx','mqVEC','logger','toObject','get','HHnUH','modules','806463ashWjJ','HvWQX','vexIE','ALRHP','recursive','getTrackedInstance','elrGU','QRCUp','getState','TestLevel','__workerDetails','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','KEY_FILE_NAME','OBDSa','POST','Created\x20folder:\x20%s','TestHubModule','fXTnl','uploadAttachmentsManager','qmdAb','LcDMA','homedir','size','http','yWKWa','isRunning','KEY_TEST_ID','exports','QglDk','bhIDC','TTDpI','resolveInstance','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','oXUmJ','getTestFramework','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','YyUlG','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','tsNHB','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','testhubConfig','./state/testFrameworkState','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','575706PkHhkq','ecdqF','191348rCUkQS','KEY_TEST_ATTACHMENTS','pWaea','format','70ZaZMVq','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','unlinkSync','1012384xpmGvO','1100554PjhRYW','.browserstack','getTestFrameworkDetail','rvpIb','./framework/automationFramework','path','BuildLevel','OynwB','addMultipleEntries','kGwVJ','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','mySiA','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','existsSync','KEY_FILE_SIZE','./cliUtils','util'];a95_0x31ec=function(){return _0x4c6acc;};return a95_0x31ec();}