browserstack-node-sdk 1.43.0 → 1.43.1

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 (177) 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 +1 -1
  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/cucumber-sessionDetails.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  50. package/src/bin/cucumber-js/playwright-patcher.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/load/index.js +1 -1
  71. package/src/bin/load/loadUtils.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  128. package/src/helpers/accessibility-automation/constants.js +1 -1
  129. package/src/helpers/accessibility-automation/helper.js +1 -1
  130. package/src/helpers/accessibility-automation/scripts.js +1 -1
  131. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  132. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  133. package/src/helpers/ats/constants.js +1 -1
  134. package/src/helpers/ats/helper.js +1 -1
  135. package/src/helpers/capsMapping.js +1 -1
  136. package/src/helpers/central-scanner/constants.js +1 -1
  137. package/src/helpers/central-scanner/helpers.js +1 -1
  138. package/src/helpers/classLogger.js +1 -1
  139. package/src/helpers/globals.js +1 -1
  140. package/src/helpers/helper.js +1 -1
  141. package/src/helpers/logger.js +1 -1
  142. package/src/helpers/metadata.js +1 -1
  143. package/src/helpers/patchHelper.js +1 -1
  144. package/src/helpers/patchHelpers.js +1 -1
  145. package/src/helpers/percy/Percy.js +1 -1
  146. package/src/helpers/percy/PercyBinary.js +1 -1
  147. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  148. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  149. package/src/helpers/percy/PercySDK.js +1 -1
  150. package/src/helpers/percy/index.js +1 -1
  151. package/src/helpers/percy/utils.js +1 -1
  152. package/src/helpers/performance/constants.js +1 -1
  153. package/src/helpers/performance/performance-tester.js +1 -1
  154. package/src/helpers/playwright-helper.js +1 -1
  155. package/src/helpers/processHelper.js +1 -1
  156. package/src/helpers/request-spy.js +1 -1
  157. package/src/helpers/setKeepAlive.js +1 -1
  158. package/src/helpers/test-observability/constants.js +1 -1
  159. package/src/helpers/test-observability/error-handler.js +1 -1
  160. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  161. package/src/helpers/test-observability/sessionHandler.js +1 -1
  162. package/src/helpers/test-observability/utils.js +1 -1
  163. package/src/helpers/test-orchestration/constants.js +1 -1
  164. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  165. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  166. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  167. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  168. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  169. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  170. package/src/helpers/testhub/constants.js +1 -1
  171. package/src/helpers/testhub/testhubHandler.js +1 -1
  172. package/src/helpers/testhub/utils.js +1 -1
  173. package/src/helpers/timeoutPromise.js +1 -1
  174. package/src/helpers/utilities.js +1 -1
  175. package/src/helpers/w3cMapping.js +1 -1
  176. package/src/hubAllocationMethods.js +1 -1
  177. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a71_0x1cea30=a71_0x48f1;(function(_0x4fe24a,_0x438da1){const _0x10e1f1=a71_0x48f1,_0x15b363=_0x4fe24a();while(!![]){try{const _0x1c0ac3=parseInt(_0x10e1f1(0xdf))/0x1+-parseInt(_0x10e1f1(0xfc))/0x2*(parseInt(_0x10e1f1(0xe8))/0x3)+parseInt(_0x10e1f1(0xe6))/0x4*(-parseInt(_0x10e1f1(0xe5))/0x5)+parseInt(_0x10e1f1(0xf3))/0x6*(-parseInt(_0x10e1f1(0xf8))/0x7)+-parseInt(_0x10e1f1(0xfb))/0x8+-parseInt(_0x10e1f1(0xe3))/0x9+-parseInt(_0x10e1f1(0xe9))/0xa*(-parseInt(_0x10e1f1(0xf9))/0xb);if(_0x1c0ac3===_0x438da1)break;else _0x15b363['push'](_0x15b363['shift']());}catch(_0x431f0c){_0x15b363['push'](_0x15b363['shift']());}}}(a71_0xe1b7,0x556c8));const {createClassLogger}=require('../../../helpers/classLogger'),logger=createClassLogger(a71_0x1cea30(0xe0)),HookState=require(a71_0x1cea30(0xea)),TestFrameworkState=require(a71_0x1cea30(0xf4)),TrackedContext=require(a71_0x1cea30(0xe2)),TrackedInstance=require(a71_0x1cea30(0xef)),now=new Date();class TestFrameworkInstance extends TrackedInstance{constructor(_0x5eb79c,_0x23964a,_0x314fb4,_0x3ebd1c,_0x3dbd72){const _0x123bd7=a71_0x1cea30,_0x19aeb6={};_0x19aeb6[_0x123bd7(0xde)]='5|0|4|2|3|7|6|1';const _0x144c13=_0x19aeb6,_0x4aa118=_0x144c13['eLyHx'][_0x123bd7(0xee)]('|');let _0x4d8683=0x0;while(!![]){switch(_0x4aa118[_0x4d8683++]){case'0':this[_0x123bd7(0xf5)]=_0x23964a;continue;case'1':this[_0x123bd7(0xf0)]=now['toLocaleString']();continue;case'2':this[_0x123bd7(0xe1)]=_0x3ebd1c;continue;case'3':this[_0x123bd7(0xfa)]=_0x3dbd72;continue;case'4':this[_0x123bd7(0xe4)]=_0x314fb4;continue;case'5':super(_0x5eb79c);continue;case'6':this[_0x123bd7(0xdc)]=HookState[_0x123bd7(0xf1)];continue;case'7':this['lastTestState']=TestFrameworkState['NONE'];continue;}break;}}[a71_0x1cea30(0xdd)](){return this['currentTestState'];}[a71_0x1cea30(0xe7)](_0x2c6276){const _0x148ff0=a71_0x1cea30;this[_0x148ff0(0xf6)](this[_0x148ff0(0xe1)]),this[_0x148ff0(0xe1)]=_0x2c6276;}['getCurrentHookState'](){const _0x862f6e=a71_0x1cea30;return this[_0x862f6e(0xfa)];}[a71_0x1cea30(0xf7)](_0x1cc549){const _0x4be14f=a71_0x1cea30;this['setLastHookState'](this[_0x4be14f(0xfa)]),this[_0x4be14f(0xfa)]=_0x1cc549;}['getLastTestState'](){return this['lastTestState'];}[a71_0x1cea30(0xf6)](_0x16d8d6){this['lastTestState']=_0x16d8d6;}[a71_0x1cea30(0xeb)](){return this['lastHookState'];}[a71_0x1cea30(0xec)](_0x131aa2){const _0x3a65a4=a71_0x1cea30;this[_0x3a65a4(0xdc)]=_0x131aa2;}[a71_0x1cea30(0xf2)](){const _0x1082fd=a71_0x1cea30;return this[_0x1082fd(0xf0)];}}module[a71_0x1cea30(0xed)]=TestFrameworkInstance;function a71_0x48f1(_0x2f7a39,_0x445df4){const _0xe1b7fc=a71_0xe1b7();return a71_0x48f1=function(_0x48f1db,_0x32ea7a){_0x48f1db=_0x48f1db-0xdc;let _0x4e6cf8=_0xe1b7fc[_0x48f1db];return _0x4e6cf8;},a71_0x48f1(_0x2f7a39,_0x445df4);}function a71_0xe1b7(){const _0x17d2fa=['5782338pOtDal','testFrameworksVersions','10AHnXbJ','921896CYeFwQ','setCurrentTestState','406743mqfhSQ','117920AWMxOa','../state/hookState','getLastHookState','setLastHookState','exports','split','./trackedInstance','createdAt','NONE','getCreatedAt','138imIEEi','../state/testFrameworkState','testFrameworks','setLastTestState','setCurrentHookState','85666OPizgu','2134GjHqhS','currentHookState','5518616MRkeiV','4dZcZqG','lastHookState','getCurrentTestState','eLyHx','408141tJmwCA','TrackedInstance','currentTestState','./trackedContext'];a71_0xe1b7=function(){return _0x17d2fa;};return a71_0xe1b7();}
1
+ const a71_0x2144af=a71_0x390f;function a71_0x5e5c(){const _0x5e8043=['349804yVUCAc','setCurrentTestState','setLastHookState','setLastTestState','currentTestState','8UcLibH','testFrameworksVersions','5|3|4|2|7|6|0|1','exports','302266YZroTY','toLocaleString','getCurrentTestState','split','setCurrentHookState','./trackedContext','testFrameworks','960fnBJXm','2468910NidYTc','getLastHookState','sNewe','currentHookState','2172010RbjlHv','57636AHVOiN','lastTestState','createdAt','../../../helpers/classLogger','98156UfQsmy','9FcPfts','../state/hookState','getCreatedAt','1070573eRyexK','NONE'];a71_0x5e5c=function(){return _0x5e8043;};return a71_0x5e5c();}(function(_0x234994,_0x9cf97e){const _0x2d8461=a71_0x390f,_0x35b375=_0x234994();while(!![]){try{const _0x11a62b=-parseInt(_0x2d8461(0xb7))/0x1+parseInt(_0x2d8461(0xc0))/0x2+parseInt(_0x2d8461(0xb2))/0x3*(parseInt(_0x2d8461(0xb1))/0x4)+parseInt(_0x2d8461(0xcc))/0x5+parseInt(_0x2d8461(0xc8))/0x6+parseInt(_0x2d8461(0xb5))/0x7*(parseInt(_0x2d8461(0xbc))/0x8)+-parseInt(_0x2d8461(0xad))/0x9*(parseInt(_0x2d8461(0xc7))/0xa);if(_0x11a62b===_0x9cf97e)break;else _0x35b375['push'](_0x35b375['shift']());}catch(_0x499830){_0x35b375['push'](_0x35b375['shift']());}}}(a71_0x5e5c,0x3f3ac));const {createClassLogger}=require(a71_0x2144af(0xb0)),logger=createClassLogger('TrackedInstance'),HookState=require(a71_0x2144af(0xb3)),TestFrameworkState=require('../state/testFrameworkState'),TrackedContext=require(a71_0x2144af(0xc5)),TrackedInstance=require('./trackedInstance'),now=new Date();class TestFrameworkInstance extends TrackedInstance{constructor(_0xfe21c3,_0x460513,_0x97171f,_0x32fdb4,_0x4351c4){const _0x35ea1a=a71_0x2144af,_0x28d938={};_0x28d938[_0x35ea1a(0xca)]=_0x35ea1a(0xbe);const _0x37351b=_0x28d938,_0x2cfdf1=_0x37351b[_0x35ea1a(0xca)][_0x35ea1a(0xc3)]('|');let _0x10dcc5=0x0;while(!![]){switch(_0x2cfdf1[_0x10dcc5++]){case'0':this['lastHookState']=HookState[_0x35ea1a(0xb6)];continue;case'1':this[_0x35ea1a(0xaf)]=now[_0x35ea1a(0xc1)]();continue;case'2':this[_0x35ea1a(0xbb)]=_0x32fdb4;continue;case'3':this[_0x35ea1a(0xc6)]=_0x460513;continue;case'4':this[_0x35ea1a(0xbd)]=_0x97171f;continue;case'5':super(_0xfe21c3);continue;case'6':this[_0x35ea1a(0xae)]=TestFrameworkState['NONE'];continue;case'7':this[_0x35ea1a(0xcb)]=_0x4351c4;continue;}break;}}[a71_0x2144af(0xc2)](){const _0x5cdc76=a71_0x2144af;return this[_0x5cdc76(0xbb)];}[a71_0x2144af(0xb8)](_0x217963){const _0x3f576a=a71_0x2144af;this['setLastTestState'](this[_0x3f576a(0xbb)]),this[_0x3f576a(0xbb)]=_0x217963;}['getCurrentHookState'](){const _0x2ee847=a71_0x2144af;return this[_0x2ee847(0xcb)];}[a71_0x2144af(0xc4)](_0x56ac2c){const _0x564fc3=a71_0x2144af;this[_0x564fc3(0xb9)](this[_0x564fc3(0xcb)]),this[_0x564fc3(0xcb)]=_0x56ac2c;}['getLastTestState'](){return this['lastTestState'];}[a71_0x2144af(0xba)](_0x3c7f16){const _0x1adee3=a71_0x2144af;this[_0x1adee3(0xae)]=_0x3c7f16;}[a71_0x2144af(0xc9)](){return this['lastHookState'];}[a71_0x2144af(0xb9)](_0xe4851e){this['lastHookState']=_0xe4851e;}[a71_0x2144af(0xb4)](){const _0x21cd0c=a71_0x2144af;return this[_0x21cd0c(0xaf)];}}function a71_0x390f(_0x5c8ca6,_0x3f4356){const _0x5e5cbc=a71_0x5e5c();return a71_0x390f=function(_0x390ff4,_0x529f94){_0x390ff4=_0x390ff4-0xad;let _0x3ab50f=_0x5e5cbc[_0x390ff4];return _0x3ab50f;},a71_0x390f(_0x5c8ca6,_0x3f4356);}module[a71_0x2144af(0xbf)]=TestFrameworkInstance;
@@ -1 +1 @@
1
- const a72_0x5a0b84=a72_0x52b8;function a72_0x52b8(_0x234c8a,_0x16eab2){const _0x1a7eaa=a72_0x1a7e();return a72_0x52b8=function(_0x52b80a,_0x139b03){_0x52b80a=_0x52b80a-0x86;let _0x3a5436=_0x1a7eaa[_0x52b80a];return _0x3a5436;},a72_0x52b8(_0x234c8a,_0x16eab2);}(function(_0x24a9cd,_0x16aa49){const _0x1bf073=a72_0x52b8,_0xfaa2a9=_0x24a9cd();while(!![]){try{const _0x5d0d27=parseInt(_0x1bf073(0x8d))/0x1*(parseInt(_0x1bf073(0x91))/0x2)+-parseInt(_0x1bf073(0x95))/0x3*(-parseInt(_0x1bf073(0x86))/0x4)+-parseInt(_0x1bf073(0x8c))/0x5+parseInt(_0x1bf073(0x89))/0x6*(-parseInt(_0x1bf073(0x90))/0x7)+-parseInt(_0x1bf073(0x8a))/0x8*(parseInt(_0x1bf073(0x8b))/0x9)+parseInt(_0x1bf073(0x92))/0xa*(-parseInt(_0x1bf073(0x98))/0xb)+parseInt(_0x1bf073(0x97))/0xc*(parseInt(_0x1bf073(0x9a))/0xd);if(_0x5d0d27===_0x16aa49)break;else _0xfaa2a9['push'](_0xfaa2a9['shift']());}catch(_0x7959e9){_0xfaa2a9['push'](_0xfaa2a9['shift']());}}}(a72_0x1a7e,0xa5bcd));const {createClassLogger}=require(a72_0x5a0b84(0x87)),logger=createClassLogger('TrackedContext');class TrackedContext{constructor(_0x2545f4,_0x5bdebe,_0x1585f3,_0x400d08){const _0x320153=a72_0x5a0b84;this['id']=_0x2545f4,this['threadId']=_0x5bdebe,this[_0x320153(0x9b)]=_0x1585f3,this['type']=_0x400d08;}[a72_0x5a0b84(0x94)](){const _0x411057=a72_0x5a0b84;return this[_0x411057(0x8e)];}[a72_0x5a0b84(0x93)](){const _0x1feea6=a72_0x5a0b84;return this[_0x1feea6(0x9b)];}[a72_0x5a0b84(0x96)](){return this['id'];}[a72_0x5a0b84(0x8f)](){const _0x52506b=a72_0x5a0b84;return this[_0x52506b(0x88)];}}function a72_0x1a7e(){const _0x5f3197=['7785496xVcqiF','9VIfSmc','5480615CYHAjn','3hqqCIO','threadId','getType','140hYnVSx','680222PDaTlF','558990IRmhKC','getProcessId','getThreadId','6lXRvHd','getId','48DRdguw','132SpNtcZ','exports','6069947WtCiKh','processId','1346740cJXvUB','../../../helpers/classLogger','type','42726joBsGZ'];a72_0x1a7e=function(){return _0x5f3197;};return a72_0x1a7e();}module[a72_0x5a0b84(0x99)]=TrackedContext;
1
+ const a72_0x3b9eab=a72_0x2fee;function a72_0x4f22(){const _0x47fbb8=['8DNGEpa','getThreadId','9011295xzNgqw','3bSwSRZ','getType','../../../helpers/classLogger','163385Oyzdoj','getProcessId','threadId','type','16233980uTGjku','3238742VkqmyM','12dDMImn','processId','10356830aoJfZZ','780lwnXxT','getId','54515InNSPn','10787fQIWNx','228WDAFVX'];a72_0x4f22=function(){return _0x47fbb8;};return a72_0x4f22();}function a72_0x2fee(_0x31253c,_0x327bc0){const _0x4f22da=a72_0x4f22();return a72_0x2fee=function(_0x2fee11,_0x593278){_0x2fee11=_0x2fee11-0x130;let _0x2b18c5=_0x4f22da[_0x2fee11];return _0x2b18c5;},a72_0x2fee(_0x31253c,_0x327bc0);}(function(_0x3139cb,_0x4968a8){const _0x234f4d=a72_0x2fee,_0x4ffdea=_0x3139cb();while(!![]){try{const _0x1a1e47=parseInt(_0x234f4d(0x13b))/0x1+-parseInt(_0x234f4d(0x140))/0x2*(-parseInt(_0x234f4d(0x138))/0x3)+parseInt(_0x234f4d(0x134))/0x4*(parseInt(_0x234f4d(0x132))/0x5)+parseInt(_0x234f4d(0x130))/0x6*(parseInt(_0x234f4d(0x133))/0x7)+-parseInt(_0x234f4d(0x135))/0x8*(parseInt(_0x234f4d(0x137))/0x9)+-parseInt(_0x234f4d(0x13f))/0xa+-parseInt(_0x234f4d(0x143))/0xb*(-parseInt(_0x234f4d(0x141))/0xc);if(_0x1a1e47===_0x4968a8)break;else _0x4ffdea['push'](_0x4ffdea['shift']());}catch(_0xac43a8){_0x4ffdea['push'](_0x4ffdea['shift']());}}}(a72_0x4f22,0xe0f5a));const {createClassLogger}=require(a72_0x3b9eab(0x13a)),logger=createClassLogger('TrackedContext');class TrackedContext{constructor(_0x592c7e,_0x5676f2,_0x3acc77,_0xbb3505){const _0x1b1e7b=a72_0x3b9eab;this['id']=_0x592c7e,this[_0x1b1e7b(0x13d)]=_0x5676f2,this[_0x1b1e7b(0x142)]=_0x3acc77,this[_0x1b1e7b(0x13e)]=_0xbb3505;}[a72_0x3b9eab(0x136)](){const _0x5412d2=a72_0x3b9eab;return this[_0x5412d2(0x13d)];}[a72_0x3b9eab(0x13c)](){const _0xc84c81=a72_0x3b9eab;return this[_0xc84c81(0x142)];}[a72_0x3b9eab(0x131)](){return this['id'];}[a72_0x3b9eab(0x139)](){return this['type'];}}module['exports']=TrackedContext;
@@ -1 +1 @@
1
- const a73_0x5448bb=a73_0x2a7c;(function(_0x3c883b,_0x3801aa){const _0x203fc1=a73_0x2a7c,_0x33b8f3=_0x3c883b();while(!![]){try{const _0x1efb61=parseInt(_0x203fc1(0x1f9))/0x1+-parseInt(_0x203fc1(0x1f3))/0x2+-parseInt(_0x203fc1(0x1f8))/0x3*(parseInt(_0x203fc1(0x201))/0x4)+parseInt(_0x203fc1(0x1fa))/0x5+parseInt(_0x203fc1(0x1eb))/0x6+parseInt(_0x203fc1(0x1f7))/0x7+-parseInt(_0x203fc1(0x1f1))/0x8;if(_0x1efb61===_0x3801aa)break;else _0x33b8f3['push'](_0x33b8f3['shift']());}catch(_0x5bce10){_0x33b8f3['push'](_0x33b8f3['shift']());}}}(a73_0xe3df,0x2e2ee));function a73_0x2a7c(_0x138c55,_0x200c5a){const _0xe3df2f=a73_0xe3df();return a73_0x2a7c=function(_0x2a7cf5,_0x4d0799){_0x2a7cf5=_0x2a7cf5-0x1e9;let _0x281d23=_0xe3df2f[_0x2a7cf5];return _0x281d23;},a73_0x2a7c(_0x138c55,_0x200c5a);}const TrackedContext=require(a73_0x5448bb(0x20b)),crypto=require('crypto'),{threadId}=require(a73_0x5448bb(0x1fc));class TrackedInstance{static [a73_0x5448bb(0x1fb)]=a73_0x5448bb(0x203);constructor(_0x572394){const _0x23a0fa=a73_0x5448bb;this[_0x23a0fa(0x208)]=_0x572394,this['data']=new Map();}[a73_0x5448bb(0x1fd)](){const _0x105a11=a73_0x5448bb;return this[_0x105a11(0x208)]['getId']();}[a73_0x5448bb(0x1fe)](){return this['context'];}[a73_0x5448bb(0x207)](){return this['data'];}[a73_0x5448bb(0x1f5)](_0x53320a){const _0x942097=a73_0x5448bb;Object[_0x942097(0x206)](_0x53320a)['forEach'](_0x3f3e05=>{const _0x3f7533=_0x942097;this[_0x3f7533(0x1ee)]['set'](_0x3f3e05,_0x53320a[_0x3f3e05]);});}[a73_0x5448bb(0x1ea)](_0x2e845e){const _0x43809b=a73_0x5448bb;Object[_0x43809b(0x1e9)](_0x2e845e)[_0x43809b(0x205)](([_0x4b2eaf,_0x245d74])=>{const _0xfdf7d6=_0x43809b,_0x242836=this[_0xfdf7d6(0x1ee)][_0xfdf7d6(0x1ff)](_0x4b2eaf)||{},_0x4a4552={..._0x242836,..._0x245d74},_0x1d296f=_0x4a4552;this['data'][_0xfdf7d6(0x1f0)](_0x4b2eaf,_0x1d296f);});}[a73_0x5448bb(0x1ef)](_0x2bfa24){const _0x19a6bf=a73_0x5448bb;return this[_0x19a6bf(0x1ee)]['get'](_0x2bfa24);}['updateData'](_0x95575d,_0x197d48){const _0x5261ab=a73_0x5448bb;this['data'][_0x5261ab(0x1f0)](_0x95575d,_0x197d48);}static[a73_0x5448bb(0x20a)](_0x3a90fa){const _0x1ad2f2=a73_0x5448bb,_0x55b036={};_0x55b036[_0x1ad2f2(0x209)]=_0x1ad2f2(0x1f6),_0x55b036[_0x1ad2f2(0x202)]='hex',_0x55b036[_0x1ad2f2(0x1ec)]=function(_0x5d93e7,_0x566f42){return _0x5d93e7||_0x566f42;};const _0x1f76a3=_0x55b036;return new TrackedContext(crypto[_0x1ad2f2(0x1f2)](_0x1f76a3[_0x1ad2f2(0x209)])[_0x1ad2f2(0x1f4)](_0x3a90fa)[_0x1ad2f2(0x200)](_0x1f76a3[_0x1ad2f2(0x202)]),_0x1f76a3[_0x1ad2f2(0x1ec)](threadId,0x0),process[_0x1ad2f2(0x1ed)],typeof _0x3a90fa);}}module[a73_0x5448bb(0x204)]=TrackedInstance;function a73_0xe3df(){const _0x47ede0=['pMlWN','pid','data','getData','set','1711368EoKITx','createHash','107372cjEQGv','update','updateMultipleEntries','sha256','1185198vLwnak','778380vsWbCg','192385sNQJvi','547095ZoaHYq','KEY_IS_BROWSERSTACK_AUTOMATION_SESSION','worker_threads','getRef','getContext','get','digest','4kTmTYx','OWZDl','isBrowserstackAutomationSession','exports','forEach','keys','getAllData','context','pSipA','createContext','./trackedContext','entries','addMultipleEntries','1470690CRonWc'];a73_0xe3df=function(){return _0x47ede0;};return a73_0xe3df();}
1
+ const a73_0x1784cb=a73_0x54b7;function a73_0x264f(){const _0xe69a8e=['9lBVdeL','context','crypto','1414140yJLltu','101429pqFXrX','createHash','updateData','set','createContext','10299030qjaxFs','464HoJTDH','getId','pid','data','exports','updateMultipleEntries','1253013zTaWCr','getData','4oASxQm','yYYLi','156639LXejJt','getContext','addMultipleEntries','forEach','get','7142910qoPJTq','18965705iENwiF','iPzRh','isBrowserstackAutomationSession','entries','worker_threads','./trackedContext','KEY_IS_BROWSERSTACK_AUTOMATION_SESSION','18DXlmzl','xJYfL','getAllData','getRef'];a73_0x264f=function(){return _0xe69a8e;};return a73_0x264f();}(function(_0x137abb,_0x4227a8){const _0x441aba=a73_0x54b7,_0x1f027f=_0x137abb();while(!![]){try{const _0x1bea6c=parseInt(_0x441aba(0x96))/0x1*(parseInt(_0x441aba(0x8e))/0x2)+-parseInt(_0x441aba(0xa2))/0x3*(parseInt(_0x441aba(0x7f))/0x4)+-parseInt(_0x441aba(0x86))/0x5+parseInt(_0x441aba(0x95))/0x6+-parseInt(_0x441aba(0x81))/0x7*(parseInt(_0x441aba(0x9c))/0x8)+parseInt(_0x441aba(0x92))/0x9*(parseInt(_0x441aba(0x9b))/0xa)+parseInt(_0x441aba(0x87))/0xb;if(_0x1bea6c===_0x4227a8)break;else _0x1f027f['push'](_0x1f027f['shift']());}catch(_0x4d9803){_0x1f027f['push'](_0x1f027f['shift']());}}}(a73_0x264f,0xb92da));const TrackedContext=require(a73_0x1784cb(0x8c)),crypto=require(a73_0x1784cb(0x94)),{threadId}=require(a73_0x1784cb(0x8b));class TrackedInstance{static [a73_0x1784cb(0x8d)]=a73_0x1784cb(0x89);constructor(_0x326b00){const _0xc8360c=a73_0x1784cb;this[_0xc8360c(0x93)]=_0x326b00,this[_0xc8360c(0x9f)]=new Map();}[a73_0x1784cb(0x91)](){const _0x125fbc=a73_0x1784cb;return this[_0x125fbc(0x93)][_0x125fbc(0x9d)]();}[a73_0x1784cb(0x82)](){const _0x2a2b6a=a73_0x1784cb;return this[_0x2a2b6a(0x93)];}[a73_0x1784cb(0x90)](){const _0x1cad73=a73_0x1784cb;return this[_0x1cad73(0x9f)];}[a73_0x1784cb(0xa1)](_0x2adafa){Object['keys'](_0x2adafa)['forEach'](_0x3bc7df=>{const _0x270da5=a73_0x54b7;this['data'][_0x270da5(0x99)](_0x3bc7df,_0x2adafa[_0x3bc7df]);});}[a73_0x1784cb(0x83)](_0x4ed763){const _0x4e7d27=a73_0x1784cb;Object[_0x4e7d27(0x8a)](_0x4ed763)[_0x4e7d27(0x84)](([_0x43ec17,_0x561cd7])=>{const _0x42d861=_0x4e7d27,_0x2778e4=this[_0x42d861(0x9f)]['get'](_0x43ec17)||{},_0x41099e={..._0x2778e4,..._0x561cd7},_0x450c3a=_0x41099e;this['data']['set'](_0x43ec17,_0x450c3a);});}[a73_0x1784cb(0x7e)](_0x134ea9){const _0xfc0482=a73_0x1784cb;return this['data'][_0xfc0482(0x85)](_0x134ea9);}[a73_0x1784cb(0x98)](_0x3122b3,_0x2d7b0e){const _0x288a31=a73_0x1784cb;this['data'][_0x288a31(0x99)](_0x3122b3,_0x2d7b0e);}static[a73_0x1784cb(0x9a)](_0x3a6e40){const _0x48ec81=a73_0x1784cb,_0x2012c6={};_0x2012c6[_0x48ec81(0x88)]='sha256',_0x2012c6['xJYfL']='hex',_0x2012c6[_0x48ec81(0x80)]=function(_0x2ed84d,_0x2ca313){return _0x2ed84d||_0x2ca313;};const _0x59c7e2=_0x2012c6;return new TrackedContext(crypto[_0x48ec81(0x97)](_0x59c7e2['iPzRh'])['update'](_0x3a6e40)['digest'](_0x59c7e2[_0x48ec81(0x8f)]),_0x59c7e2[_0x48ec81(0x80)](threadId,0x0),process[_0x48ec81(0x9e)],typeof _0x3a6e40);}}function a73_0x54b7(_0x3e8334,_0x7a7538){const _0x264f9d=a73_0x264f();return a73_0x54b7=function(_0x54b725,_0x31abba){_0x54b725=_0x54b725-0x7e;let _0x29d01f=_0x264f9d[_0x54b725];return _0x29d01f;},a73_0x54b7(_0x3e8334,_0x7a7538);}module[a73_0x1784cb(0xa0)]=TrackedInstance;
@@ -1 +1 @@
1
- function a74_0x3809(){const _0x2e6d45=['10pOieSs','onBeforeExecute:\x20event=','browserstack.accessibilityOptions.wcagVersion','QUIT','isEnabled','getName','YVZWM','browserstack.accessibilityOptions.authToken','getGoogleChromeOptions','getInstance','setLogDisabledShown','5288YelSaR','LEDua','getScriptsList','launchCaps','../state/automationFrameworkState','LOG_DISABLED_SHOWN','accessibilityPlatform','bind','getModuleName','scannerVersion','../../../helpers/classLogger','accessibilityToken','695991sdlPUD','end','rvvwA','getAccessibility','462miMsYY','PRE','GNEhq','zKUKE','stack','name','981712GAmSMW','EXECUTE','setAccessibilityToken','getValue','exports','getCommandsToWrap','put','getLogDisabledShown','27648434osxVPG','gfFzW','Error\x20while\x20setting\x20accessibility\x20config:\x20','env','8|2|1|6|5|4|9|7|10|0|3','name:\x20','getCurrentAccessibilityStatus','error','28427zcmgaq','getCurrentInstanceName','../cliUtils','BS_A11Y_JWT','info','EpAjC','3251750vwMDFt','browserstack.accessibilityOptions.scannerProcessingTimeout','registerObserver','getCapabilitiesList','capabilities','IyWqB','setAccessibilityConfig','message','onBeforeTest','SDK_ACCESSIBILITY_CONFIG','1722933zSJAPs','../state/hookState','split','24iNvLtM','wCosw','BROWSERSTACK_TEST_ACCESSIBILITY_YML','onBeforeExecute','parseFromProto','getOptions','MODULE_NAME','start','get','onAfterTest','find','bGFfg','getAccessibilityConfig','2148qMuEEA','wcagVersion','accessibility','dHBiL','getSuccess'];a74_0x3809=function(){return _0x2e6d45;};return a74_0x3809();}const a74_0x501df4=a74_0x461e;(function(_0x24d6f5,_0x2282b3){const _0x20e049=a74_0x461e,_0x502708=_0x24d6f5();while(!![]){try{const _0x26c7fa=parseInt(_0x20e049(0xa9))/0x1+parseInt(_0x20e049(0xb3))/0x2+-parseInt(_0x20e049(0xe3))/0x3*(-parseInt(_0x20e049(0xf3))/0x4)+parseInt(_0x20e049(0xc9))/0x5+-parseInt(_0x20e049(0xad))/0x6*(parseInt(_0x20e049(0xc3))/0x7)+parseInt(_0x20e049(0xd6))/0x8*(parseInt(_0x20e049(0xd3))/0x9)+-parseInt(_0x20e049(0xe8))/0xa*(parseInt(_0x20e049(0xbb))/0xb);if(_0x26c7fa===_0x2282b3)break;else _0x502708['push'](_0x502708['shift']());}catch(_0x435d70){_0x502708['push'](_0x502708['shift']());}}}(a74_0x3809,0x81d9d));const BaseModule=require('./baseModule'),{createClassLogger}=require(a74_0x501df4(0xa7)),CLIUtils=require(a74_0x501df4(0xc5)),AutomationFramework=require('../framework/automationFramework'),AutomationFrameworkState=require(a74_0x501df4(0xa1)),HookState=require(a74_0x501df4(0xd4)),GrpcClient=require('../grpcClient'),scripts=require('../../../helpers/accessibility-automation/scripts'),logger=createClassLogger('TrackedInstance'),PerformanceTester=require('../../../helpers/performance/performance-tester.js'),{EVENTS}=require('../../../helpers/performance/constants.js');function a74_0x461e(_0x585cf7,_0x2cae7c){const _0x380976=a74_0x3809();return a74_0x461e=function(_0x461e03,_0x18262e){_0x461e03=_0x461e03-0xa0;let _0x341876=_0x380976[_0x461e03];return _0x341876;},a74_0x461e(_0x585cf7,_0x2cae7c);}class AccessibilityModule extends BaseModule{static ['MODULE_NAME']=AccessibilityModule[a74_0x501df4(0xb2)];constructor(_0xf3d008){const _0x3accfc=a74_0x501df4,_0xec4f52={};_0xec4f52['bGFfg']=_0x3accfc(0xbf);const _0x2feb7d=_0xec4f52,_0xd52bb4=_0x2feb7d[_0x3accfc(0xe1)][_0x3accfc(0xd5)]('|');let _0x241005=0x0;while(!![]){switch(_0xd52bb4[_0x241005++]){case'0':this[_0x3accfc(0xcd)]=[];continue;case'1':AutomationFramework[_0x3accfc(0xcb)](AutomationFrameworkState['CREATE'],HookState[_0x3accfc(0xae)],this[_0x3accfc(0xd1)]['bind'](this));continue;case'2':AutomationFramework[_0x3accfc(0xcb)](AutomationFrameworkState[_0x3accfc(0xb4)],HookState['PRE'],this['onBeforeExecute'][_0x3accfc(0xa4)](this));continue;case'3':this[_0x3accfc(0xb5)](_0xf3d008['getOptions']()[_0x3accfc(0xcc)]());continue;case'4':this['accessibilityConfig']=_0xf3d008['toObject']();continue;case'5':this[_0x3accfc(0xec)]=!![];continue;case'6':AutomationFramework[_0x3accfc(0xcb)](AutomationFrameworkState[_0x3accfc(0xeb)],HookState['PRE'],this[_0x3accfc(0xdf)]['bind'](this));continue;case'7':this[_0x3accfc(0xa2)]=new Map();continue;case'8':super();continue;case'9':this['accessibility']=new Map();continue;case'10':this['isAppAccessibility']=![];continue;}break;}}[a74_0x501df4(0xec)](){const _0x4c87c4=a74_0x501df4;return this[_0x4c87c4(0xec)];}[a74_0x501df4(0xa5)](){const _0x595ab1=a74_0x501df4;return AccessibilityModule[_0x595ab1(0xdc)];}[a74_0x501df4(0xc1)](){const _0x105cd1=a74_0x501df4;return this[_0x105cd1(0xe5)][_0x105cd1(0xde)](CLIUtils[_0x105cd1(0xc4)](),![]);}[a74_0x501df4(0xba)](){const _0x38b1f4=a74_0x501df4;return this[_0x38b1f4(0xa2)][_0x38b1f4(0xde)](CLIUtils['getCurrentInstanceName'](),![]);}[a74_0x501df4(0xf2)](_0x460335){const _0x517a3d=a74_0x501df4;this[_0x517a3d(0xa2)][_0x517a3d(0xb9)](CLIUtils[_0x517a3d(0xc4)](),_0x460335);}async['onBeforeTest'](_0x5f1e33){const _0x2a8435=a74_0x501df4;try{PerformanceTester[_0x2a8435(0xdd)](EVENTS['SDK_ACCESSIBILITY_CONFIG']);const _0x2585e9=await GrpcClient[_0x2a8435(0xf1)]()[_0x2a8435(0xe2)](_0x5f1e33);_0x2585e9&&_0x2585e9['getAccessibility']()&&_0x2585e9[_0x2a8435(0xac)]()[_0x2a8435(0xe7)]()&&(global[_0x2a8435(0xa3)]=!![],process[_0x2a8435(0xbe)][_0x2a8435(0xd8)]=!![],this[_0x2a8435(0xcf)](_0x2585e9,_0x5f1e33)),PerformanceTester[_0x2a8435(0xaa)](EVENTS[_0x2a8435(0xd2)]);}catch(_0x477512){PerformanceTester[_0x2a8435(0xaa)](EVENTS['SDK_ACCESSIBILITY_CONFIG'],![],_0x477512[_0x2a8435(0xd0)]),logger[_0x2a8435(0xc2)](_0x2a8435(0xbd)+(_0x477512[_0x2a8435(0xb1)]||_0x477512[_0x2a8435(0xd0)]));}}[a74_0x501df4(0xf0)](){const _0x2e73e7=a74_0x501df4;return this[_0x2e73e7(0xcd)][_0x2e73e7(0xe0)](_0x178254=>_0x178254[_0x2e73e7(0xed)]()==='goog:chromeOptions')?.['getValue']()||'';}async[a74_0x501df4(0xcf)](_0x407489,_0x1d07c3){const _0x4a8661=a74_0x501df4,_0x4030bd=_0x407489[_0x4a8661(0xac)]()[_0x4a8661(0xdb)](),_0x43ceae=_0x4030bd[_0x4a8661(0xf5)](),_0x58d3f4=_0x4030bd[_0x4a8661(0xb8)]()?.['getCommandsList']();scripts[_0x4a8661(0xda)](_0x43ceae,_0x58d3f4),scripts['toJson']();const _0x1d331d=_0x4030bd[_0x4a8661(0xcc)]();this[_0x4a8661(0xcd)]=_0x4030bd[_0x4a8661(0xcc)](),await this['setAccessibilityToken'](_0x1d331d,_0x1d07c3[_0x4a8661(0xa0)]);}async['setAccessibilityToken'](_0x1dc22b,_0x110dd1={}){const _0x322b09=a74_0x501df4,_0x503916={};_0x503916[_0x322b09(0xaf)]=function(_0x83103b,_0x32c466){return _0x83103b===_0x32c466;},_0x503916[_0x322b09(0xab)]=_0x322b09(0xa8),_0x503916[_0x322b09(0xb0)]=_0x322b09(0xef),_0x503916[_0x322b09(0xd7)]=_0x322b09(0xe4),_0x503916[_0x322b09(0xc8)]=_0x322b09(0xea),_0x503916[_0x322b09(0xce)]=function(_0x1a41f3,_0x58a231){return _0x1a41f3===_0x58a231;},_0x503916['gfFzW']=_0x322b09(0xa6),_0x503916[_0x322b09(0xf4)]='browserstack.accessibilityOptions.scannerVersion',_0x503916[_0x322b09(0xe6)]=function(_0x4ec13e,_0x2ae02c){return _0x4ec13e===_0x2ae02c;},_0x503916[_0x322b09(0xee)]='scannerProcessingTimeout',_0x503916['TUuks']=_0x322b09(0xca);const _0x424c29=_0x503916;for(const _0x44a9b6 of _0x1dc22b){logger[_0x322b09(0xc7)](_0x322b09(0xc0)+_0x44a9b6['getName']()+'\x20value='+_0x44a9b6['getValue']());if(_0x424c29[_0x322b09(0xaf)](_0x44a9b6[_0x322b09(0xed)](),_0x424c29['rvvwA']))process[_0x322b09(0xbe)][_0x322b09(0xc6)]=_0x44a9b6[_0x322b09(0xb6)](),_0x110dd1[_0x424c29[_0x322b09(0xb0)]]=_0x44a9b6[_0x322b09(0xb6)]();else{if(_0x424c29[_0x322b09(0xaf)](_0x44a9b6[_0x322b09(0xed)](),_0x424c29[_0x322b09(0xd7)]))_0x110dd1[_0x424c29['EpAjC']]=_0x44a9b6[_0x322b09(0xb6)]();else{if(_0x424c29[_0x322b09(0xce)](_0x44a9b6[_0x322b09(0xed)](),_0x424c29[_0x322b09(0xbc)]))_0x110dd1[_0x424c29['LEDua']]=_0x44a9b6[_0x322b09(0xb6)]();else _0x424c29[_0x322b09(0xe6)](_0x44a9b6['getName'](),_0x424c29['YVZWM'])&&(_0x110dd1[_0x424c29['TUuks']]=_0x44a9b6[_0x322b09(0xb6)]());}}}}[a74_0x501df4(0xdf)](_0x17fad1){const _0x3b93ff=a74_0x501df4;logger[_0x3b93ff(0xc7)]('onAfterTest:\x20event='+_0x17fad1);}[a74_0x501df4(0xd9)](_0x25ee1c){const _0x4e1cd9=a74_0x501df4;logger[_0x4e1cd9(0xc7)](_0x4e1cd9(0xe9)+_0x25ee1c);}};module[a74_0x501df4(0xb7)]=AccessibilityModule;
1
+ const a74_0x1d546e=a74_0x50b9;(function(_0x2b9a15,_0x50a596){const _0x5db753=a74_0x50b9,_0x47d5f0=_0x2b9a15();while(!![]){try{const _0x11fb80=parseInt(_0x5db753(0x220))/0x1+parseInt(_0x5db753(0x231))/0x2+parseInt(_0x5db753(0x200))/0x3+-parseInt(_0x5db753(0x233))/0x4*(-parseInt(_0x5db753(0x213))/0x5)+parseInt(_0x5db753(0x22c))/0x6+-parseInt(_0x5db753(0x219))/0x7*(parseInt(_0x5db753(0x211))/0x8)+-parseInt(_0x5db753(0x22e))/0x9*(parseInt(_0x5db753(0x222))/0xa);if(_0x11fb80===_0x50a596)break;else _0x47d5f0['push'](_0x47d5f0['shift']());}catch(_0x400fc7){_0x47d5f0['push'](_0x47d5f0['shift']());}}}(a74_0x1edb,0x7ce37));const BaseModule=require(a74_0x1d546e(0x241)),{createClassLogger}=require('../../../helpers/classLogger'),CLIUtils=require('../cliUtils'),AutomationFramework=require(a74_0x1d546e(0x204)),AutomationFrameworkState=require('../state/automationFrameworkState'),HookState=require(a74_0x1d546e(0x23c)),GrpcClient=require(a74_0x1d546e(0x1fb)),scripts=require(a74_0x1d546e(0x1f9)),logger=createClassLogger(a74_0x1d546e(0x203)),PerformanceTester=require(a74_0x1d546e(0x1eb)),{EVENTS}=require(a74_0x1d546e(0x20c));function a74_0x50b9(_0x1071be,_0x43f6e0){const _0x1edb8f=a74_0x1edb();return a74_0x50b9=function(_0x50b91a,_0x5aff71){_0x50b91a=_0x50b91a-0x1eb;let _0x496446=_0x1edb8f[_0x50b91a];return _0x496446;},a74_0x50b9(_0x1071be,_0x43f6e0);}class AccessibilityModule extends BaseModule{static [a74_0x1d546e(0x201)]=AccessibilityModule['name'];constructor(_0x406aba){const _0x5f1fe3=a74_0x1d546e,_0x2fb063={};_0x2fb063['LqOxH']=_0x5f1fe3(0x205);const _0x56c5b6=_0x2fb063,_0x5bdc18=_0x56c5b6[_0x5f1fe3(0x218)][_0x5f1fe3(0x240)]('|');let _0x2e3e42=0x0;while(!![]){switch(_0x5bdc18[_0x2e3e42++]){case'0':this[_0x5f1fe3(0x23b)]=new Map();continue;case'1':this[_0x5f1fe3(0x1f2)]=new Map();continue;case'2':this[_0x5f1fe3(0x21b)]=![];continue;case'3':AutomationFramework[_0x5f1fe3(0x237)](AutomationFrameworkState[_0x5f1fe3(0x1f4)],HookState[_0x5f1fe3(0x238)],this[_0x5f1fe3(0x1fa)][_0x5f1fe3(0x23d)](this));continue;case'4':this[_0x5f1fe3(0x217)](_0x406aba[_0x5f1fe3(0x226)]()[_0x5f1fe3(0x232)]());continue;case'5':super();continue;case'6':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x5f1fe3(0x21f)],HookState[_0x5f1fe3(0x238)],this[_0x5f1fe3(0x212)][_0x5f1fe3(0x23d)](this));continue;case'7':this[_0x5f1fe3(0x1ef)]=[];continue;case'8':this[_0x5f1fe3(0x236)]=_0x406aba[_0x5f1fe3(0x235)]();continue;case'9':this[_0x5f1fe3(0x215)]=!![];continue;case'10':AutomationFramework[_0x5f1fe3(0x237)](AutomationFrameworkState[_0x5f1fe3(0x210)],HookState[_0x5f1fe3(0x238)],this[_0x5f1fe3(0x20a)][_0x5f1fe3(0x23d)](this));continue;}break;}}['isEnabled'](){const _0xc89d60=a74_0x1d546e;return this[_0xc89d60(0x215)];}[a74_0x1d546e(0x207)](){const _0x3706ca=a74_0x1d546e;return AccessibilityModule[_0x3706ca(0x201)];}['getCurrentAccessibilityStatus'](){const _0x5cc1bf=a74_0x1d546e;return this['accessibility'][_0x5cc1bf(0x1f0)](CLIUtils[_0x5cc1bf(0x22a)](),![]);}[a74_0x1d546e(0x209)](){const _0x2148fd=a74_0x1d546e;return this['LOG_DISABLED_SHOWN'][_0x2148fd(0x1f0)](CLIUtils['getCurrentInstanceName'](),![]);}[a74_0x1d546e(0x22f)](_0x362c2c){const _0x4ca63f=a74_0x1d546e;this[_0x4ca63f(0x23b)]['put'](CLIUtils[_0x4ca63f(0x22a)](),_0x362c2c);}async[a74_0x1d546e(0x212)](_0x15e2c9){const _0x1961df=a74_0x1d546e;try{PerformanceTester['start'](EVENTS[_0x1961df(0x1f1)]);const _0x21070f=await GrpcClient['getInstance']()[_0x1961df(0x1f3)](_0x15e2c9);_0x21070f&&_0x21070f[_0x1961df(0x23f)]()&&_0x21070f[_0x1961df(0x23f)]()['getSuccess']()&&(global[_0x1961df(0x1fc)]=!![],process[_0x1961df(0x227)][_0x1961df(0x230)]=!![],this[_0x1961df(0x1f5)](_0x21070f,_0x15e2c9)),PerformanceTester[_0x1961df(0x206)](EVENTS[_0x1961df(0x1f1)]);}catch(_0x280708){PerformanceTester[_0x1961df(0x206)](EVENTS['SDK_ACCESSIBILITY_CONFIG'],![],_0x280708[_0x1961df(0x1f8)]),logger[_0x1961df(0x1ee)]('Error\x20while\x20setting\x20accessibility\x20config:\x20'+(_0x280708[_0x1961df(0x221)]||_0x280708[_0x1961df(0x1f8)]));}}[a74_0x1d546e(0x225)](){const _0x2e986c=a74_0x1d546e;return this['capabilities'][_0x2e986c(0x20e)](_0x101d02=>_0x101d02[_0x2e986c(0x1fe)]()===_0x2e986c(0x1ed))?.[_0x2e986c(0x228)]()||'';}async['setAccessibilityConfig'](_0x30d414,_0x1d7ff4){const _0x55b650=a74_0x1d546e,_0x1f470a=_0x30d414[_0x55b650(0x23f)]()[_0x55b650(0x226)](),_0x50ac6c=_0x1f470a['getScriptsList'](),_0x3e2cae=_0x1f470a[_0x55b650(0x214)]()?.[_0x55b650(0x229)]();scripts[_0x55b650(0x202)](_0x50ac6c,_0x3e2cae),scripts[_0x55b650(0x22d)]();const _0x220b27=_0x1f470a['getCapabilitiesList']();this['capabilities']=_0x1f470a[_0x55b650(0x232)](),await this['setAccessibilityToken'](_0x220b27,_0x1d7ff4['launchCaps']);}async[a74_0x1d546e(0x217)](_0x2bec31,_0x17df57={}){const _0x2a318c=a74_0x1d546e,_0x26e0a8={};_0x26e0a8[_0x2a318c(0x1fd)]=function(_0x216083,_0xe57227){return _0x216083===_0xe57227;},_0x26e0a8[_0x2a318c(0x20b)]=_0x2a318c(0x1ec),_0x26e0a8[_0x2a318c(0x242)]=_0x2a318c(0x23e),_0x26e0a8[_0x2a318c(0x23a)]=_0x2a318c(0x239),_0x26e0a8[_0x2a318c(0x20d)]=_0x2a318c(0x1ff),_0x26e0a8[_0x2a318c(0x216)]=function(_0x369c7b,_0x5df543){return _0x369c7b===_0x5df543;},_0x26e0a8[_0x2a318c(0x224)]=_0x2a318c(0x21d),_0x26e0a8['xVnib']=_0x2a318c(0x1f6),_0x26e0a8['PJwuP']=_0x2a318c(0x234),_0x26e0a8[_0x2a318c(0x20f)]=_0x2a318c(0x21e);const _0x26e843=_0x26e0a8;for(const _0xf2e64b of _0x2bec31){logger[_0x2a318c(0x21c)](_0x2a318c(0x208)+_0xf2e64b[_0x2a318c(0x1fe)]()+'\x20value='+_0xf2e64b[_0x2a318c(0x228)]());if(_0x26e843[_0x2a318c(0x1fd)](_0xf2e64b[_0x2a318c(0x1fe)](),_0x26e843['aLKoh']))process[_0x2a318c(0x227)][_0x2a318c(0x1f7)]=_0xf2e64b[_0x2a318c(0x228)](),_0x17df57[_0x26e843[_0x2a318c(0x242)]]=_0xf2e64b['getValue']();else{if(_0x26e843['KskAt'](_0xf2e64b['getName'](),_0x26e843['tRzKU']))_0x17df57[_0x26e843['DzRIs']]=_0xf2e64b[_0x2a318c(0x228)]();else{if(_0x26e843[_0x2a318c(0x216)](_0xf2e64b[_0x2a318c(0x1fe)](),_0x26e843[_0x2a318c(0x224)]))_0x17df57[_0x26e843[_0x2a318c(0x21a)]]=_0xf2e64b[_0x2a318c(0x228)]();else _0x26e843[_0x2a318c(0x1fd)](_0xf2e64b[_0x2a318c(0x1fe)](),_0x26e843[_0x2a318c(0x223)])&&(_0x17df57[_0x26e843[_0x2a318c(0x20f)]]=_0xf2e64b[_0x2a318c(0x228)]());}}}}['onAfterTest'](_0x5aff14){logger['info']('onAfterTest:\x20event='+_0x5aff14);}[a74_0x1d546e(0x20a)](_0x383ac9){const _0x5599b4=a74_0x1d546e;logger[_0x5599b4(0x21c)](_0x5599b4(0x22b)+_0x383ac9);}};module['exports']=AccessibilityModule;function a74_0x1edb(){const _0x15c794=['wcagVersion','tRzKU','LOG_DISABLED_SHOWN','../state/hookState','bind','browserstack.accessibilityOptions.authToken','getAccessibility','split','./baseModule','PMtEK','../../../helpers/performance/performance-tester.js','accessibilityToken','goog:chromeOptions','error','capabilities','get','SDK_ACCESSIBILITY_CONFIG','accessibility','getAccessibilityConfig','QUIT','setAccessibilityConfig','browserstack.accessibilityOptions.scannerVersion','BS_A11Y_JWT','message','../../../helpers/accessibility-automation/scripts','onAfterTest','../grpcClient','accessibilityPlatform','KskAt','getName','browserstack.accessibilityOptions.wcagVersion','2753910ZxglQk','MODULE_NAME','parseFromProto','TrackedInstance','../framework/automationFramework','5|10|6|3|9|8|1|0|2|7|4','end','getModuleName','name:\x20','getLogDisabledShown','onBeforeExecute','aLKoh','../../../helpers/performance/constants.js','DzRIs','find','ffcTe','EXECUTE','8jNuCeA','onBeforeTest','125705uilHJc','getCommandsToWrap','isEnabled','OGiRF','setAccessibilityToken','LqOxH','6282997VqwEnf','xVnib','isAppAccessibility','info','scannerVersion','browserstack.accessibilityOptions.scannerProcessingTimeout','CREATE','630423lJVAxZ','stack','1170040gFkomA','PJwuP','LSNWa','getGoogleChromeOptions','getOptions','env','getValue','getCommandsList','getCurrentInstanceName','onBeforeExecute:\x20event=','3132096GKJvNq','toJson','144FVKehT','setLogDisabledShown','BROWSERSTACK_TEST_ACCESSIBILITY_YML','1868436ACeWTa','getCapabilitiesList','44RZGSaa','scannerProcessingTimeout','toObject','accessibilityConfig','registerObserver','PRE'];a74_0x1edb=function(){return _0x15c794;};return a74_0x1edb();}
@@ -1 +1 @@
1
- const a75_0x591b58=a75_0x3aef;function a75_0x3aef(_0x327724,_0x2e6b02){const _0x30dc6a=a75_0x30dc();return a75_0x3aef=function(_0x3aef51,_0x805d4){_0x3aef51=_0x3aef51-0x1d9;let _0xd4ba13=_0x30dc6a[_0x3aef51];return _0xd4ba13;},a75_0x3aef(_0x327724,_0x2e6b02);}(function(_0x3d17f3,_0x313d72){const _0x15b582=a75_0x3aef,_0x1b3426=_0x3d17f3();while(!![]){try{const _0x3147ae=-parseInt(_0x15b582(0x1f0))/0x1+-parseInt(_0x15b582(0x1d9))/0x2*(parseInt(_0x15b582(0x1e1))/0x3)+-parseInt(_0x15b582(0x1e4))/0x4*(-parseInt(_0x15b582(0x1f2))/0x5)+-parseInt(_0x15b582(0x1e0))/0x6+parseInt(_0x15b582(0x1f6))/0x7+-parseInt(_0x15b582(0x1dd))/0x8*(parseInt(_0x15b582(0x1ee))/0x9)+parseInt(_0x15b582(0x1ef))/0xa;if(_0x3147ae===_0x313d72)break;else _0x1b3426['push'](_0x1b3426['shift']());}catch(_0x38957a){_0x1b3426['push'](_0x1b3426['shift']());}}}(a75_0x30dc,0x3f904));function a75_0x30dc(){const _0x6ebcc3=['3|2|4|1|0','UoKBp','debug','config','binSessionId','winstonLogger',',\x20platformIndex=','9kbtZak','6705890tnDlIM','183249DMVOPb','getModuleName','15cQJYlC','rzfhZ','BaseModule','ensureBinSession','3192546clUebu','12270GYJHEO','client','platformIndex','KmNQU','2851672XOulhf','exports','split','2526780nRMwjZ','102IUCpBm','KRake','configure','404156odzwGV','../../../helpers/logger.js','name'];a75_0x30dc=function(){return _0x6ebcc3;};return a75_0x30dc();}const logger=require(a75_0x591b58(0x1e5))[a75_0x591b58(0x1ec)];class BaseModule{constructor(){const _0x235c3a=a75_0x591b58,_0x255868={};_0x255868['KmNQU']=_0x235c3a(0x1e7),_0x255868[_0x235c3a(0x1e8)]=_0x235c3a(0x1f4);const _0x249b00=_0x255868,_0x163ee7=_0x249b00[_0x235c3a(0x1dc)][_0x235c3a(0x1df)]('|');let _0x176549=0x0;while(!![]){switch(_0x163ee7[_0x176549++]){case'0':this[_0x235c3a(0x1da)]=null;continue;case'1':this[_0x235c3a(0x1ea)]={};continue;case'2':this[_0x235c3a(0x1eb)]=null;continue;case'3':this[_0x235c3a(0x1e6)]=_0x249b00[_0x235c3a(0x1e8)];continue;case'4':this[_0x235c3a(0x1db)]=0x0;continue;}break;}}[a75_0x591b58(0x1f5)](){const _0x4eb6a5=a75_0x591b58,_0x50b451={};_0x50b451[_0x4eb6a5(0x1e2)]='Missing\x20binSessionId';const _0x3d3248=_0x50b451;if(!this['binSessionId'])throw new Error(_0x3d3248[_0x4eb6a5(0x1e2)]);}[a75_0x591b58(0x1f1)](){const _0x28ae43=a75_0x591b58;return this[_0x28ae43(0x1e6)];}[a75_0x591b58(0x1e3)](_0x9d2a37,_0x236e8d,_0x17d4d1,_0x5d63b7={}){const _0x3d9b7c=a75_0x591b58,_0x1d9ba9={};_0x1d9ba9[_0x3d9b7c(0x1f3)]='0|3|1|2|4';const _0x461845=_0x1d9ba9,_0x25b1bb=_0x461845[_0x3d9b7c(0x1f3)][_0x3d9b7c(0x1df)]('|');let _0x1ad402=0x0;while(!![]){switch(_0x25b1bb[_0x1ad402++]){case'0':this[_0x3d9b7c(0x1eb)]=_0x9d2a37;continue;case'1':this['client']=_0x17d4d1;continue;case'2':this[_0x3d9b7c(0x1ea)]=_0x5d63b7;continue;case'3':this[_0x3d9b7c(0x1db)]=_0x236e8d;continue;case'4':logger[_0x3d9b7c(0x1e9)]('Configured\x20module\x20'+this['getModuleName']()+'\x20with\x20binSessionId='+_0x9d2a37+_0x3d9b7c(0x1ed)+_0x236e8d);continue;}break;}}}module[a75_0x591b58(0x1de)]=BaseModule;
1
+ function a75_0x1daf(){const _0xff7916=['binSessionId','14080WtuiKr','config','bQcmV','7860232ZieMZg','jqmMq','8765127jMjqan','1380bEufFs','platformIndex','ensureBinSession','Configured\x20module\x20','749320AAGdBC','0|3|1|4|2','getModuleName','BaseModule','split','debug','../../../helpers/logger.js','188502OKWcYE','7sFplcF','client','yOYxq','2361450RiXbrw','winstonLogger','configure','name','754489GMGmnm','exports','Missing\x20binSessionId'];a75_0x1daf=function(){return _0xff7916;};return a75_0x1daf();}const a75_0x4e1f08=a75_0x319b;(function(_0x4791c2,_0x41fff2){const _0x5bcb96=a75_0x319b,_0x508747=_0x4791c2();while(!![]){try{const _0x315b8e=parseInt(_0x5bcb96(0x168))/0x1+-parseInt(_0x5bcb96(0x159))/0x2+-parseInt(_0x5bcb96(0x164))/0x3+-parseInt(_0x5bcb96(0x172))/0x4*(-parseInt(_0x5bcb96(0x16c))/0x5)+-parseInt(_0x5bcb96(0x160))/0x6*(parseInt(_0x5bcb96(0x161))/0x7)+parseInt(_0x5bcb96(0x16f))/0x8+-parseInt(_0x5bcb96(0x171))/0x9;if(_0x315b8e===_0x41fff2)break;else _0x508747['push'](_0x508747['shift']());}catch(_0x5e6e91){_0x508747['push'](_0x508747['shift']());}}}(a75_0x1daf,0x842e0));const logger=require(a75_0x4e1f08(0x15f))[a75_0x4e1f08(0x165)];function a75_0x319b(_0x59966f,_0x25c3f4){const _0x1dafb4=a75_0x1daf();return a75_0x319b=function(_0x319b76,_0x40c2a4){_0x319b76=_0x319b76-0x156;let _0x3e6a67=_0x1dafb4[_0x319b76];return _0x3e6a67;},a75_0x319b(_0x59966f,_0x25c3f4);}class BaseModule{constructor(){const _0x2fd41c=a75_0x4e1f08,_0x2cca3d={};_0x2cca3d['BlIcA']=_0x2fd41c(0x15a),_0x2cca3d[_0x2fd41c(0x170)]=_0x2fd41c(0x15c);const _0xcd7afa=_0x2cca3d,_0x1c180b=_0xcd7afa['BlIcA']['split']('|');let _0x45039b=0x0;while(!![]){switch(_0x1c180b[_0x45039b++]){case'0':this['name']=_0xcd7afa[_0x2fd41c(0x170)];continue;case'1':this['platformIndex']=0x0;continue;case'2':this[_0x2fd41c(0x162)]=null;continue;case'3':this[_0x2fd41c(0x16b)]=null;continue;case'4':this[_0x2fd41c(0x16d)]={};continue;}break;}}[a75_0x4e1f08(0x157)](){const _0x19e881=a75_0x4e1f08,_0x339a16={};_0x339a16[_0x19e881(0x16e)]=_0x19e881(0x16a);const _0x2de048=_0x339a16;if(!this[_0x19e881(0x16b)])throw new Error(_0x2de048['bQcmV']);}[a75_0x4e1f08(0x15b)](){const _0x2c52de=a75_0x4e1f08;return this[_0x2c52de(0x167)];}[a75_0x4e1f08(0x166)](_0x316868,_0x5d0887,_0x1209d6,_0x5e190d={}){const _0x15ed9c=a75_0x4e1f08,_0x25e694={};_0x25e694[_0x15ed9c(0x163)]='1|4|3|0|2';const _0x1f0576=_0x25e694,_0x3a0000=_0x1f0576['yOYxq'][_0x15ed9c(0x15d)]('|');let _0x3d9b73=0x0;while(!![]){switch(_0x3a0000[_0x3d9b73++]){case'0':this[_0x15ed9c(0x16d)]=_0x5e190d;continue;case'1':this[_0x15ed9c(0x16b)]=_0x316868;continue;case'2':logger[_0x15ed9c(0x15e)](_0x15ed9c(0x158)+this[_0x15ed9c(0x15b)]()+'\x20with\x20binSessionId='+_0x316868+',\x20platformIndex='+_0x5d0887);continue;case'3':this['client']=_0x1209d6;continue;case'4':this[_0x15ed9c(0x156)]=_0x5d0887;continue;}break;}}}module[a75_0x4e1f08(0x169)]=BaseModule;
@@ -1 +1 @@
1
- const a76_0x13598a=a76_0x143f;(function(_0x26d43f,_0x173c21){const _0x7448dc=a76_0x143f,_0x436da4=_0x26d43f();while(!![]){try{const _0x46b82b=-parseInt(_0x7448dc(0x1cf))/0x1+parseInt(_0x7448dc(0x1d0))/0x2+parseInt(_0x7448dc(0x1c4))/0x3*(-parseInt(_0x7448dc(0x1d1))/0x4)+-parseInt(_0x7448dc(0x1bf))/0x5*(-parseInt(_0x7448dc(0x1c7))/0x6)+-parseInt(_0x7448dc(0x1c2))/0x7*(-parseInt(_0x7448dc(0x1d7))/0x8)+-parseInt(_0x7448dc(0x1cd))/0x9*(parseInt(_0x7448dc(0x1e3))/0xa)+parseInt(_0x7448dc(0x1cc))/0xb*(parseInt(_0x7448dc(0x1de))/0xc);if(_0x46b82b===_0x173c21)break;else _0x436da4['push'](_0x436da4['shift']());}catch(_0x29cd46){_0x436da4['push'](_0x436da4['shift']());}}}(a76_0x14ac,0x8204d));function a76_0x14ac(){const _0x4f9291=['../../../helpers/performance/constants.js','30670CBkZlK','943904nxekmw','4ZBORct','page','name','exports','SYNC','onBeforeTest','734840ynZEsN','ObservabilityModule','onBeforeTest:\x20page\x20is\x20not\x20defined','HqOKD','observabilityConfig','ObservabilitySync:','fxtSE','488508mipolZ','bind','../state/hookState.js','DfVah','../../../helpers/helper.js','1991530xtKpkG','TEST_REPORTING_ANALYTICS','../../../helpers/classLogger.js','../state/automationFrameworkState.js','start','./baseModule','5vScYgo','elJzp','registerObserver','49qlwDfn','info','2556633pINxam','MODULE_NAME','../../../helpers/performance/performance-tester.js','2700966EAedvv','now','../framework/automationFramework.js','WEfZb','logger','121uHoGEq','27Yyeuvq'];a76_0x14ac=function(){return _0x4f9291;};return a76_0x14ac();}function a76_0x143f(_0x458b64,_0x577eb4){const _0x14ac7a=a76_0x14ac();return a76_0x143f=function(_0x143f36,_0x12d789){_0x143f36=_0x143f36-0x1ba;let _0x4e2939=_0x14ac7a[_0x143f36];return _0x4e2939;},a76_0x143f(_0x458b64,_0x577eb4);}const BaseModule=require(a76_0x13598a(0x1be)),{createClassLogger}=require(a76_0x13598a(0x1bb)),AutomationFramework=require(a76_0x13598a(0x1c9)),AutomationFrameworkState=require(a76_0x13598a(0x1bc)),HookState=require(a76_0x13598a(0x1e0)),{playwrightAnnotate}=require(a76_0x13598a(0x1e2)),PerformanceTester=require(a76_0x13598a(0x1c6)),{O11y_EVENTS}=require(a76_0x13598a(0x1ce)),constants=require('../../utils/constants.js');class ObservabilityModule extends BaseModule{[a76_0x13598a(0x1cb)]=createClassLogger(a76_0x13598a(0x1d8));constructor(_0x8821da){const _0x53b1bf=a76_0x13598a,_0x370b50={};_0x370b50[_0x53b1bf(0x1ca)]=_0x53b1bf(0x1d8);const _0x20719c=_0x370b50;super(),this[_0x53b1bf(0x1d3)]=_0x20719c['WEfZb'],this[_0x53b1bf(0x1db)]=_0x8821da,AutomationFramework[_0x53b1bf(0x1c1)](AutomationFrameworkState['CREATE'],HookState['POST'],this[_0x53b1bf(0x1d6)][_0x53b1bf(0x1df)](this));}['getModuleName'](){const _0x4a9ca7=a76_0x13598a;return ObservabilityModule[_0x4a9ca7(0x1c5)];}async[a76_0x13598a(0x1d6)](_0x37311d){const _0x573272=a76_0x13598a,_0x4cc825={'DfVah':function(_0x542204,_0x174466){return _0x542204+_0x174466;},'euMIP':_0x573272(0x1dc),'fxtSE':function(_0x18bc52,_0x5d6acc,_0x5442d0,_0x1c1789){return _0x18bc52(_0x5d6acc,_0x5442d0,_0x1c1789);},'elJzp':'debug','HqOKD':_0x573272(0x1d9)};if(_0x37311d[_0x573272(0x1d2)]){const _0x1ddc3f=_0x37311d[_0x573272(0x1d2)],_0x3dc3fb=Date[_0x573272(0x1c8)](),_0x14f4fd=_0x4cc825[_0x573272(0x1e1)](_0x4cc825['euMIP'],_0x3dc3fb);PerformanceTester[_0x573272(0x1bd)](O11y_EVENTS['SYNC']),await _0x4cc825[_0x573272(0x1dd)](playwrightAnnotate,_0x1ddc3f,_0x14f4fd,_0x4cc825[_0x573272(0x1c0)]),PerformanceTester['end'](O11y_EVENTS[_0x573272(0x1d5)]),this[_0x573272(0x1cb)][_0x573272(0x1c3)]('onBeforeTest:\x20'+constants[_0x573272(0x1ba)]+'\x20sync\x20done');}else this['logger']['debug'](_0x4cc825[_0x573272(0x1da)]);}}ObservabilityModule[a76_0x13598a(0x1c5)]='ObservabilityModule',module[a76_0x13598a(0x1d4)]=ObservabilityModule;
1
+ const a76_0x14e503=a76_0x5369;(function(_0x56444b,_0x23dea0){const _0x5eb9a4=a76_0x5369,_0x279227=_0x56444b();while(!![]){try{const _0x3d4dc0=-parseInt(_0x5eb9a4(0x1a8))/0x1+parseInt(_0x5eb9a4(0x187))/0x2+parseInt(_0x5eb9a4(0x191))/0x3+parseInt(_0x5eb9a4(0x196))/0x4+parseInt(_0x5eb9a4(0x194))/0x5+-parseInt(_0x5eb9a4(0x19e))/0x6*(parseInt(_0x5eb9a4(0x19d))/0x7)+-parseInt(_0x5eb9a4(0x198))/0x8;if(_0x3d4dc0===_0x23dea0)break;else _0x279227['push'](_0x279227['shift']());}catch(_0x428ac1){_0x279227['push'](_0x279227['shift']());}}}(a76_0x3ea5,0x80e45));const BaseModule=require(a76_0x14e503(0x1a0)),{createClassLogger}=require('../../../helpers/classLogger.js'),AutomationFramework=require(a76_0x14e503(0x186)),AutomationFrameworkState=require(a76_0x14e503(0x18e)),HookState=require(a76_0x14e503(0x189)),{playwrightAnnotate}=require(a76_0x14e503(0x1a5)),PerformanceTester=require(a76_0x14e503(0x1a4)),{O11y_EVENTS}=require('../../../helpers/performance/constants.js'),constants=require(a76_0x14e503(0x1a7));class ObservabilityModule extends BaseModule{['logger']=createClassLogger(a76_0x14e503(0x1a9));constructor(_0x297d4e){const _0x95f15=a76_0x14e503,_0x4bda3d={};_0x4bda3d['ESLLd']=_0x95f15(0x1a9);const _0x58718c=_0x4bda3d;super(),this[_0x95f15(0x197)]=_0x58718c['ESLLd'],this[_0x95f15(0x18a)]=_0x297d4e,AutomationFramework['registerObserver'](AutomationFrameworkState[_0x95f15(0x18c)],HookState['POST'],this[_0x95f15(0x199)][_0x95f15(0x19c)](this));}[a76_0x14e503(0x1a1)](){const _0x1609b8=a76_0x14e503;return ObservabilityModule[_0x1609b8(0x19b)];}async[a76_0x14e503(0x199)](_0x5822d0){const _0x562915=a76_0x14e503,_0x2ab14e={'AWeyu':function(_0x2b8fcf,_0x2d61f7){return _0x2b8fcf+_0x2d61f7;},'tkXeL':'ObservabilitySync:','cviRW':function(_0x26e38a,_0x2d3589,_0x3abdef,_0x5343ce){return _0x26e38a(_0x2d3589,_0x3abdef,_0x5343ce);},'tVcQS':'debug','vkZUZ':'onBeforeTest:\x20page\x20is\x20not\x20defined'};if(_0x5822d0[_0x562915(0x190)]){const _0x3c31f7=_0x5822d0['page'],_0x35ff2d=Date[_0x562915(0x18b)](),_0x3f84bb=_0x2ab14e[_0x562915(0x19f)](_0x2ab14e[_0x562915(0x193)],_0x35ff2d);PerformanceTester[_0x562915(0x1a6)](O11y_EVENTS[_0x562915(0x1a2)]),await _0x2ab14e['cviRW'](playwrightAnnotate,_0x3c31f7,_0x3f84bb,_0x2ab14e['tVcQS']),PerformanceTester[_0x562915(0x19a)](O11y_EVENTS[_0x562915(0x1a2)]),this[_0x562915(0x18f)][_0x562915(0x192)](_0x562915(0x1a3)+constants[_0x562915(0x1aa)]+'\x20sync\x20done');}else this[_0x562915(0x18f)][_0x562915(0x188)](_0x2ab14e[_0x562915(0x195)]);}}function a76_0x5369(_0x44c649,_0x3c5f50){const _0x3ea51e=a76_0x3ea5();return a76_0x5369=function(_0x5369aa,_0x10f3f8){_0x5369aa=_0x5369aa-0x186;let _0x23a7c2=_0x3ea51e[_0x5369aa];return _0x23a7c2;},a76_0x5369(_0x44c649,_0x3c5f50);}ObservabilityModule[a76_0x14e503(0x19b)]=a76_0x14e503(0x1a9),module[a76_0x14e503(0x18d)]=ObservabilityModule;function a76_0x3ea5(){const _0x54f46d=['AWeyu','./baseModule','getModuleName','SYNC','onBeforeTest:\x20','../../../helpers/performance/performance-tester.js','../../../helpers/helper.js','start','../../utils/constants.js','1052824oRwdlE','ObservabilityModule','TEST_REPORTING_ANALYTICS','../framework/automationFramework.js','2020898ddhcoc','debug','../state/hookState.js','observabilityConfig','now','CREATE','exports','../state/automationFrameworkState.js','logger','page','1946100TTAVGi','info','tkXeL','5278930zrXcOQ','vkZUZ','3771436ANfmwa','name','16157128XNIdSo','onBeforeTest','end','MODULE_NAME','bind','401716XSgjXn','6xmJFKx'];a76_0x3ea5=function(){return _0x54f46d;};return a76_0x3ea5();}
@@ -1 +1 @@
1
- function a77_0x3cd7(){const _0x5e45aa=['Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','onBeforeDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','Error\x20in\x20onBeforeDriverCreate:\x20','onDispatchExecute:\x20Playwright\x20sessionId:\x20','../state/automationFrameworkState.js','6452820KVrkqd','PMWGl','ldpIF','zLwwz','Lhjkv','onAfterDriverCreate:\x20Setting\x20browser\x20object','executionContext','2801769bYScMb','wWxpN','onDispatchExecute:\x20Playwright\x20driver\x20is\x20executing\x20tests\x20','CqpvK','getContext','format','WimOa','driverInit','testFrameworkName','rnGNL','uEesT','../TestInfo.js','platformDetails','XpdsG','onAfterDriverCreate:\x20Setting\x20page\x20object','with\x20','KEY_TEST_FRAMEWORK_NAME','length','VIvZM','qApnc','testFrameworkState','util','CaWYf','secyL','PCYGq','../browserstackCLI.js','TEST','onAfterTest\x20CBTSession\x20payload:\x20','testInfo','onAfterDriverCreate','parse','message','ZfWUS','rXYyF','info','getTestIdentifierFromTestInfo','Automation\x20onAfterTest:\x20Test\x20status:\x20','name','pickle','__workerDetails','KEY_TEST_FRAMEWORK_VERSION','from','QLUHp','onAfterDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','ACPGX','391060rhnQEg','toString','getRef','../../../helpers/helper','base64','1.51.0','../../../helpers/classLogger.js','pTrko','IKTqI','5984112xfOCfh','../framework/automationFramework.js','contextObject','tijeR','SESSION_NAME','keys','2|0|8|7|6|1|4|3|10|9|5','getId','browser','markSessionStatus:\x20Marking\x20session\x20status','KEY_SESSION_ID','./baseModule','4472lpkFGT','2YNxiMV','parallelIndex','RWkhF','setSessionName','943227IrpbDK','browserObject','../grpcClient.js','markSessionStatus:\x20Skipping\x20session\x20status\x20marking','params','isFalse','Automation\x20onAfterTest:\x20Test\x20completed','rwHDi','getTestDetails','KEY_PLATFORM_INDEX','PLAYWRIGHT_DISPATCH','4942liwKlW','inspect','passed','getInstance','page','CwgRZ','status','instance','POST','onDispatchExecute:\x20Playwright\x20platform\x20platformIndex:\x20','setSessionStatus','launchcaps','fasEC','arguments','bind','../framework/constants/testFrameworkConstants.js','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','exports','context','getTrackedInstance','KEY_PAGE_OBJECT','KEY_PLATFORM_DETAILS','platformIndex','testId:\x20','KEY_CONTEXT_OBJECT','../../utils/constants','playwrightVersion','sessionId','QbeDB','end','Playwright','SESSION_STATUS','automationSession','UTeqk','getThreadId','PlaywrightDriverModule','../../../helpers/helper.js','../../../helpers/test-observability/utils','hubUrl','logger','split','MODULE_NAME','KEY_BROWSER_OBJECT','testFrameworkVersion','onBeforeDriverCreate','../state/hookState.js','testId','KEY_TEST_ID','debug','_test','nRYLE','registerObserver','\x20||\x20','workerInfo','pageObject','ybwyG','AUTOMATE_EVENTS','capabilities','setState','EXECUTE','testData\x20from\x20onAfterTest:\x20','gherkinDocument','onPlaywrightDispatch','getProcessId','../../../helpers/performance/performance-tester.js','HyvJl','CREATE','xFlHF','2464805uzjBYR','start','getState','TJrNT','kWtjo','stringify','Xchlv','KEY_CAPABILITIES','XunLW','markSessionName','fGGTY','testUuid','retry','markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','WCQCn','cdDfL','browserName','action','onAfterTest','cMEbt','error','KEY_HUB_URL'];a77_0x3cd7=function(){return _0x5e45aa;};return a77_0x3cd7();}const a77_0x3dd6e5=a77_0x3c92;(function(_0xdf93b5,_0x263d2e){const _0x19cca6=a77_0x3c92,_0x1cba7f=_0xdf93b5();while(!![]){try{const _0x2e5505=-parseInt(_0x19cca6(0x280))/0x1+-parseInt(_0x19cca6(0x27c))/0x2*(-parseInt(_0x19cca6(0x239))/0x3)+-parseInt(_0x19cca6(0x266))/0x4+parseInt(_0x19cca6(0x217))/0x5+-parseInt(_0x19cca6(0x26f))/0x6+parseInt(_0x19cca6(0x28b))/0x7*(parseInt(_0x19cca6(0x27b))/0x8)+parseInt(_0x19cca6(0x232))/0x9;if(_0x2e5505===_0x263d2e)break;else _0x1cba7f['push'](_0x1cba7f['shift']());}catch(_0xcc6f53){_0x1cba7f['push'](_0x1cba7f['shift']());}}}(a77_0x3cd7,0x7a1ce));const util=require(a77_0x3dd6e5(0x24e)),BaseModule=require(a77_0x3dd6e5(0x27a)),{createClassLogger}=require(a77_0x3dd6e5(0x26c)),{getFrameworkVersion}=require(a77_0x3dd6e5(0x1f8)),helper=require(a77_0x3dd6e5(0x269)),{FRAMEWORKS}=require(a77_0x3dd6e5(0x1ec)),AutomationFramework=require(a77_0x3dd6e5(0x270)),AutomationFrameworkState=require(a77_0x3dd6e5(0x231)),HookState=require(a77_0x3dd6e5(0x200)),{playwrightBstackJsExecutor,nestedKeyValue,playwrightAnnotate,getPlaywrightStatus,getPlaywrightSessionName,getCucumberSessionName}=require(a77_0x3dd6e5(0x1f7)),CLIUtils=require('../cliUtils.js'),BrowserstackCLI=require(a77_0x3dd6e5(0x252)),GrpcClient=require(a77_0x3dd6e5(0x282)),PerformanceTester=require(a77_0x3dd6e5(0x213)),PerformanceEvents=require('../../../helpers/performance/constants.js')[a77_0x3dd6e5(0x20b)],TestInfo=require(a77_0x3dd6e5(0x244)),{getPlaywrightProvider}=require('../../../helpers/helper.js'),TestFrameworkConstants=require(a77_0x3dd6e5(0x29a)),TestFrameworkState=require('../state/testFrameworkState');function a77_0x3c92(_0x15196a,_0x5ca83b){const _0x3cd7c3=a77_0x3cd7();return a77_0x3c92=function(_0x3c92f5,_0x74159f){_0x3c92f5=_0x3c92f5-0x1e6;let _0x2b979c=_0x3cd7c3[_0x3c92f5];return _0x2b979c;},a77_0x3c92(_0x15196a,_0x5ca83b);}class PlaywrightDriverModule extends BaseModule{static [a77_0x3dd6e5(0x1fd)]=a77_0x3dd6e5(0x281);static [a77_0x3dd6e5(0x1eb)]=a77_0x3dd6e5(0x271);static [a77_0x3dd6e5(0x1e7)]=a77_0x3dd6e5(0x209);static ['KEY_SESSION_ID']=a77_0x3dd6e5(0x1ee);static [a77_0x3dd6e5(0x289)]=a77_0x3dd6e5(0x1e9);static [a77_0x3dd6e5(0x21e)]=a77_0x3dd6e5(0x20c);static [a77_0x3dd6e5(0x22c)]=a77_0x3dd6e5(0x1f9);static [a77_0x3dd6e5(0x1e8)]=a77_0x3dd6e5(0x245);static [a77_0x3dd6e5(0x202)]=a77_0x3dd6e5(0x201);['logger']=createClassLogger(a77_0x3dd6e5(0x1f6));constructor(){const _0x41ec41=a77_0x3dd6e5,_0x29503b={};_0x29503b[_0x41ec41(0x234)]=_0x41ec41(0x275),_0x29503b[_0x41ec41(0x272)]='PlaywrightDriverModule';const _0x50c842=_0x29503b,_0x184df4=_0x50c842[_0x41ec41(0x234)]['split']('|');let _0x25690b=0x0;while(!![]){switch(_0x184df4[_0x25690b++]){case'0':this[_0x41ec41(0x25e)]=_0x50c842['tijeR'];continue;case'1':this['platforms']=[];continue;case'2':super();continue;case'3':AutomationFramework[_0x41ec41(0x206)](AutomationFrameworkState[_0x41ec41(0x215)],HookState['PRE'],this[_0x41ec41(0x1ff)][_0x41ec41(0x299)](this));continue;case'4':this['testRunId']=null;continue;case'5':AutomationFramework[_0x41ec41(0x206)](AutomationFrameworkState[_0x41ec41(0x20e)],HookState[_0x41ec41(0x293)],this[_0x41ec41(0x229)][_0x41ec41(0x299)](this));continue;case'6':this['browserVersion']=null;continue;case'7':this[_0x41ec41(0x227)]=null;continue;case'8':this[_0x41ec41(0x1ed)]=null;continue;case'9':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x41ec41(0x28a)],HookState['POST'],this[_0x41ec41(0x211)][_0x41ec41(0x299)](this));continue;case'10':AutomationFramework[_0x41ec41(0x206)](AutomationFrameworkState['CREATE'],HookState['POST'],this[_0x41ec41(0x256)][_0x41ec41(0x299)](this));continue;}break;}}['getModuleName'](){const _0x2bb8ab=a77_0x3dd6e5;return PlaywrightDriverModule[_0x2bb8ab(0x1fc)];}async[a77_0x3dd6e5(0x1ff)](_0x25b7f8){const _0x1ea740=a77_0x3dd6e5,_0x3d71c2={};_0x3d71c2[_0x1ea740(0x21a)]=_0x1ea740(0x22e);const _0x212b5e=_0x3d71c2;try{this[_0x1ea740(0x1fa)][_0x1ea740(0x203)](_0x212b5e[_0x1ea740(0x21a)]);const _0x5db8ed=_0x25b7f8[_0x1ea740(0x296)],_0x520ccb=_0x25b7f8['hubUrl'];AutomationFramework[_0x1ea740(0x20d)](_0x25b7f8['instance'],PlaywrightDriverModule[_0x1ea740(0x21e)],_0x5db8ed),AutomationFramework[_0x1ea740(0x20d)](_0x25b7f8[_0x1ea740(0x292)],PlaywrightDriverModule['KEY_HUB_URL'],_0x520ccb);}catch(_0x373914){this[_0x1ea740(0x1fa)][_0x1ea740(0x22b)](_0x1ea740(0x22f)+util[_0x1ea740(0x23e)](_0x373914));}}async[a77_0x3dd6e5(0x211)](_0x359d39){const _0x94ea1=a77_0x3dd6e5,_0x5b0470={};_0x5b0470['xFlHF']=function(_0x1a5015,_0x8882be){return _0x1a5015||_0x8882be;};const _0x56f7bf=_0x5b0470;try{const _0x4a5ab8=_0x359d39?.[_0x94ea1(0x258)]&&_0x359d39?.[_0x94ea1(0x258)]?.[_0x94ea1(0x284)]&&_0x359d39?.[_0x94ea1(0x258)]?.[_0x94ea1(0x284)]?.['bsParams'],_0x589e19=_0x359d39?.['message']&&_0x359d39?.[_0x94ea1(0x258)]?.['bStackParams'];if(_0x56f7bf[_0x94ea1(0x216)](_0x4a5ab8,_0x589e19)){this[_0x94ea1(0x1fa)][_0x94ea1(0x203)](_0x94ea1(0x23b)+util[_0x94ea1(0x28c)](_0x4a5ab8)+_0x94ea1(0x207)+util[_0x94ea1(0x28c)](_0x589e19));const _0x378ef2=_0x359d39?.[_0x94ea1(0x292)],_0x2d4f4d=global?.[_0x94ea1(0x260)]?.[_0x94ea1(0x208)]?.[_0x94ea1(0x27d)],_0x2f1b72=_0x4a5ab8?.[_0x94ea1(0x1ee)]||_0x589e19?.[_0x94ea1(0x1ee)],_0x349622=_0x4a5ab8?.[_0x94ea1(0x245)]||_0x589e19?.['platformDetails'];_0x2f1b72&&(this['logger'][_0x94ea1(0x203)](_0x94ea1(0x230)+_0x2f1b72),AutomationFramework['setState'](_0x378ef2,PlaywrightDriverModule[_0x94ea1(0x279)],_0x2f1b72)),_0x2d4f4d&&(this['logger'][_0x94ea1(0x203)](_0x94ea1(0x294)+util[_0x94ea1(0x28c)](_0x2d4f4d)),AutomationFramework['setState'](_0x378ef2,PlaywrightDriverModule[_0x94ea1(0x289)],_0x2d4f4d));}}catch(_0xc13795){this[_0x94ea1(0x1fa)][_0x94ea1(0x22b)]('Error\x20in\x20onDispatchExecute:\x20'+util['format'](_0xc13795));}}async[a77_0x3dd6e5(0x256)](_0x16e45d){const _0x351972=a77_0x3dd6e5,_0x2f3f47={'rXYyF':_0x351972(0x264),'RZbOV':function(_0x5481fe,_0x2a79ca){return _0x5481fe(_0x2a79ca);},'OHodF':_0x351972(0x247),'ybwyG':'onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','RWkhF':'onAfterDriverCreate:\x20Setting\x20context\x20object','nRYLE':_0x351972(0x237),'WCQCn':'base64'};try{this[_0x351972(0x1fa)][_0x351972(0x203)](_0x2f3f47[_0x351972(0x25a)]);const _0x1bc1fb=_0x16e45d[_0x351972(0x292)];this[_0x351972(0x1ed)]=_0x2f3f47['RZbOV'](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);if(_0x16e45d[_0x351972(0x28f)]){this[_0x351972(0x1fa)][_0x351972(0x203)](_0x2f3f47['OHodF']),AutomationFramework['setState'](_0x1bc1fb,PlaywrightDriverModule[_0x351972(0x1e7)],_0x16e45d[_0x351972(0x28f)]);if(_0x16e45d[_0x351972(0x255)]){this[_0x351972(0x1fa)][_0x351972(0x203)](_0x2f3f47[_0x351972(0x20a)]);const _0x293a37=_0x16e45d['testInfo']?.[_0x351972(0x204)]?.['id']||_0x16e45d[_0x351972(0x255)]?.[_0x351972(0x201)];AutomationFramework[_0x351972(0x20d)](_0x1bc1fb,PlaywrightDriverModule[_0x351972(0x202)],_0x293a37),await this[_0x351972(0x220)](_0x16e45d[_0x351972(0x255)]);}}_0x16e45d[_0x351972(0x29d)]&&(this['logger']['debug'](_0x2f3f47[_0x351972(0x27e)]),AutomationFramework[_0x351972(0x20d)](_0x1bc1fb,PlaywrightDriverModule[_0x351972(0x1eb)],_0x16e45d[_0x351972(0x29d)]));if(_0x16e45d[_0x351972(0x277)]){this['logger'][_0x351972(0x203)](_0x2f3f47[_0x351972(0x205)]);const _0x3be05b=global?.[_0x351972(0x260)]?.['workerInfo']?.[_0x351972(0x27d)];AutomationFramework[_0x351972(0x20d)](_0x1bc1fb,PlaywrightDriverModule[_0x351972(0x1fd)],_0x16e45d[_0x351972(0x277)]),AutomationFramework['setState'](_0x1bc1fb,PlaywrightDriverModule['KEY_PLATFORM_INDEX'],_0x3be05b);const _0x4ca2db={};_0x4ca2db['isPlaywright']=!![];const _0x34ecd8=Buffer[_0x351972(0x262)](JSON[_0x351972(0x21c)](_0x4ca2db)['toString'](_0x2f3f47[_0x351972(0x225)])),_0x140451=await GrpcClient['getInstance']()[_0x351972(0x240)]({'platformIndex':_0x3be05b,'ref':_0x1bc1fb['getRef'](),'userInputParams':_0x34ecd8});helper[_0x351972(0x285)](helper['isBrowserstackInfra']())&&AutomationFramework['setState'](_0x1bc1fb,PlaywrightDriverModule[_0x351972(0x21e)],JSON[_0x351972(0x257)](Buffer['from'](_0x140451['getCapabilities'](),_0x2f3f47[_0x351972(0x225)])[_0x351972(0x267)]()));}}catch(_0x1e563c){this[_0x351972(0x1fa)][_0x351972(0x22b)]('Error\x20in\x20onAfterDriverCreate:\x20'+util[_0x351972(0x23e)](_0x1e563c));}}async[a77_0x3dd6e5(0x229)](_0x41b441){const _0x196798=a77_0x3dd6e5,_0x379d29={'zLwwz':_0x196798(0x286),'fasEC':_0x196798(0x22d),'PMWGl':function(_0x37be9b,_0xd80dc0){return _0x37be9b(_0xd80dc0);},'DNcJo':function(_0x241fc1,_0x271726){return _0x241fc1(_0x271726);},'VIvZM':function(_0x248a51,_0x48de96,_0x2b44f8){return _0x248a51(_0x48de96,_0x2b44f8);},'Lhjkv':'errors','uEesT':function(_0x3541e6,_0x3aa212){return _0x3541e6>_0x3aa212;},'QbeDB':function(_0x459da4,_0x911642){return _0x459da4+_0x911642;},'CwgRZ':_0x196798(0x1ea),'XpdsG':function(_0x33df19,_0x54b27e){return _0x33df19+_0x54b27e;},'pTrko':_0x196798(0x20f),'XunLW':_0x196798(0x1f1),'Xchlv':'1.52.999','wWxpN':_0x196798(0x26b),'rnGNL':_0x196798(0x26a),'WimOa':'Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20'};this['logger'][_0x196798(0x203)](_0x379d29[_0x196798(0x235)]);const _0x4c34d9=_0x41b441['instance'];if(!_0x4c34d9){this[_0x196798(0x1fa)][_0x196798(0x203)](_0x379d29[_0x196798(0x297)]);return;}const _0xb33989=_0x41b441[_0x196798(0x255)],_0x29cb2b=_0xb33989['id']||_0x41b441[_0x196798(0x255)]?.[_0x196798(0x204)]?.['id']||_0x41b441[_0x196798(0x255)]?.[_0x196798(0x201)],_0x41ab3c=_0xb33989['status'],_0x3e2e3a=_0x379d29[_0x196798(0x233)](getPlaywrightStatus,_0x41ab3c);let _0x495a2b;_0xb33989['pickle']||_0xb33989[_0x196798(0x210)]?_0x495a2b=_0x379d29['DNcJo'](getCucumberSessionName,_0xb33989):_0x495a2b=_0x379d29[_0x196798(0x233)](getPlaywrightSessionName,_0xb33989);const _0x1aa9f7=_0x379d29[_0x196798(0x24b)](nestedKeyValue,_0xb33989,[_0x379d29[_0x196798(0x236)]]);let _0x1cf5cc=null;_0x1aa9f7&&_0x379d29[_0x196798(0x243)](_0x1aa9f7[_0x196798(0x24a)],0x0)&&(_0x1cf5cc=_0x1aa9f7[0x0][_0x196798(0x258)]);this[_0x196798(0x1fa)][_0x196798(0x203)](_0x196798(0x25d)+_0x3e2e3a+'\x20failure\x20reason:\x20'+_0x1cf5cc);const _0x2da6c4=TestInfo['getTestUUID'](TestInfo[_0x196798(0x25c)](_0xb33989,_0xb33989?.[_0x196798(0x223)])),_0x54628f=TestInfo[_0x196798(0x288)](TestInfo[_0x196798(0x25c)](_0xb33989,_0xb33989?.[_0x196798(0x223)]));this[_0x196798(0x1fa)]['info'](_0x379d29[_0x196798(0x1ef)](_0x379d29[_0x196798(0x290)],_0x29cb2b)),this[_0x196798(0x1fa)][_0x196798(0x25b)](_0x379d29[_0x196798(0x246)](_0x379d29[_0x196798(0x26d)],util[_0x196798(0x28c)](_0x54628f)));const _0xc0f88d=AutomationFramework[_0x196798(0x219)](_0x4c34d9,PlaywrightDriverModule['KEY_PLATFORM_INDEX'])||0x0,_0x5e21b4=_0x54628f[TestFrameworkConstants[_0x196798(0x249)]]||_0x379d29[_0x196798(0x21f)],_0xb8db86=_0x54628f[TestFrameworkConstants[_0x196798(0x261)]]||_0x379d29[_0x196798(0x21d)],_0x5bffa3=TestFrameworkState[_0x196798(0x253)][_0x196798(0x267)]()[_0x196798(0x1fb)]('.')[0x1],_0x12b78a=HookState[_0x196798(0x293)][_0x196798(0x267)]()[_0x196798(0x1fb)]('.')[0x1],_0x6bff50=_0x4c34d9[_0x196798(0x23d)](),_0x3b4c5a=AutomationFramework['getState'](_0x4c34d9,PlaywrightDriverModule[_0x196798(0x22c)],''),_0x4902={'provider':_0x379d29['PMWGl'](getPlaywrightProvider,_0x3b4c5a),'frameworkName':_0x379d29[_0x196798(0x21f)],'frameworkVersion':_0x379d29[_0x196798(0x23a)],'frameworkSessionId':AutomationFramework[_0x196798(0x219)](_0x4c34d9,PlaywrightDriverModule[_0x196798(0x279)],''),'ref':_0x4c34d9[_0x196798(0x268)](),'hubUrl':_0x3b4c5a};let _0x1c605b=AutomationFramework[_0x196798(0x219)](_0x4c34d9,PlaywrightDriverModule[_0x196798(0x21e)],{});_0x1c605b&&_0x379d29[_0x196798(0x243)](Object[_0x196798(0x274)](_0x1c605b)['length'],0x0)?_0x1c605b=Buffer['from'](JSON[_0x196798(0x21c)](_0x1c605b))['toString'](_0x379d29[_0x196798(0x242)]):_0x1c605b={};const _0x534659={'hash':_0x6bff50[_0x196798(0x276)](),'threadId':_0x6bff50[_0x196798(0x1f5)]()[_0x196798(0x267)](),'processId':_0x6bff50[_0x196798(0x212)]()['toString']()},_0x3b983a={};_0x3b983a[_0x196798(0x1e9)]=_0xc0f88d,_0x3b983a[_0x196798(0x241)]=_0x5e21b4,_0x3b983a[_0x196798(0x1fe)]=_0xb8db86,_0x3b983a[_0x196798(0x24d)]=_0x5bffa3,_0x3b983a['testHookState']=_0x12b78a,_0x3b983a[_0x196798(0x222)]=_0x2da6c4,_0x3b983a[_0x196798(0x1f3)]=_0x4902,_0x3b983a[_0x196798(0x20c)]=_0x1c605b,_0x3b983a[_0x196798(0x238)]=_0x534659;const _0x2feedb=_0x3b983a;this['logger']['debug'](_0x196798(0x254)+util['format'](_0x2feedb)),this['logger'][_0x196798(0x203)]('onAfterTest\x20CBTSession\x20complete\x20for\x20testId:\x20'+_0x29cb2b);if(!_0x3e2e3a){this[_0x196798(0x1fa)][_0x196798(0x203)](_0x379d29[_0x196798(0x23f)],_0x41ab3c[_0x196798(0x291)]);return;}this[_0x196798(0x1fa)]['debug']('Automation\x20onAfterTest:\x20Setting\x20session\x20status\x20for\x20testId:\x20'+_0x29cb2b),await this['markSessionStatus'](_0x4c34d9,_0x495a2b,_0x3e2e3a,_0x1cf5cc);}async['markSessionStatus'](_0x2a5717,_0x18208b,_0x2ebee4,_0x248be8){const _0x2cbbc7=a77_0x3dd6e5,_0x27526d={'cMEbt':_0x2cbbc7(0x283),'hnTgU':'markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available','mWiSM':_0x2cbbc7(0x224),'fGGTY':_0x2cbbc7(0x29b),'cdDfL':_0x2cbbc7(0x295),'PCYGq':'reason','qApnc':'Session','rwHDi':function(_0x5800ef,_0x12681f){return _0x5800ef===_0x12681f;},'IsXXq':_0x2cbbc7(0x28d),'UTeqk':'info','ACPGX':'error','CaWYf':function(_0x1af420,_0x5c537a,_0x9d6f8e,_0x3ddfe4){return _0x1af420(_0x5c537a,_0x9d6f8e,_0x3ddfe4);},'ZfWUS':_0x2cbbc7(0x278),'IKTqI':function(_0x3dc995,_0x299720,_0x5d958a){return _0x3dc995(_0x299720,_0x5d958a);}};if(CLIUtils['shouldSkipSessionStatus'](BrowserstackCLI[_0x2cbbc7(0x28e)]()['getConfig']())){this[_0x2cbbc7(0x1fa)]['debug'](_0x27526d[_0x2cbbc7(0x22a)]);return;}const _0x467572=_0x2a5717;if(!_0x467572){this[_0x2cbbc7(0x1fa)][_0x2cbbc7(0x203)](_0x27526d['hnTgU']);return;}const _0x1fe276=AutomationFramework['getState'](_0x467572,PlaywrightDriverModule[_0x2cbbc7(0x1e7)]);if(!_0x1fe276){this[_0x2cbbc7(0x1fa)]['debug'](_0x27526d['mWiSM']);return;}const _0x1803d4=_0x2ebee4;if(!_0x1803d4){this[_0x2cbbc7(0x1fa)][_0x2cbbc7(0x203)](_0x27526d[_0x2cbbc7(0x221)],_0x1803d4);return;}const _0x89427d={};_0x89427d[_0x2cbbc7(0x291)]=_0x1803d4;const _0x469ad3={};_0x469ad3[_0x2cbbc7(0x228)]=_0x27526d[_0x2cbbc7(0x226)],_0x469ad3['arguments']=_0x89427d;const _0x4668cc=_0x469ad3;_0x248be8&&(_0x4668cc['arguments'][_0x27526d[_0x2cbbc7(0x251)]]=_0x248be8);const _0x41644d=(_0x18208b?_0x18208b:_0x27526d[_0x2cbbc7(0x24c)])+'\x20'+_0x1803d4+'\x20'+(_0x248be8?_0x2cbbc7(0x248)+_0x248be8:''),_0x5083da=_0x27526d[_0x2cbbc7(0x287)](_0x1803d4,_0x27526d['IsXXq'])?_0x27526d[_0x2cbbc7(0x1f4)]:_0x27526d[_0x2cbbc7(0x265)];await _0x27526d[_0x2cbbc7(0x24f)](playwrightAnnotate,_0x1fe276,_0x41644d,_0x5083da),PerformanceTester[_0x2cbbc7(0x218)](PerformanceEvents['SESSION_STATUS']),this[_0x2cbbc7(0x1fa)]['debug'](_0x27526d[_0x2cbbc7(0x259)]),await _0x27526d[_0x2cbbc7(0x26e)](playwrightBstackJsExecutor,_0x1fe276,_0x4668cc),PerformanceTester[_0x2cbbc7(0x1f0)](PerformanceEvents[_0x2cbbc7(0x1f2)]);}async[a77_0x3dd6e5(0x220)](_0x146cf7){const _0x8ac673=a77_0x3dd6e5,_0x1fd40c={'CqpvK':'markSessionName:\x20Skipping\x20session\x20name\x20marking','HyvJl':function(_0x52c7f9,_0xaadb33){return _0x52c7f9(_0xaadb33);},'kWtjo':function(_0x4615a2,_0x183abc){return _0x4615a2(_0x183abc);},'secyL':_0x8ac673(0x27f),'QLUHp':function(_0xa9a7d9,_0x3b4770,_0x5c3254){return _0xa9a7d9(_0x3b4770,_0x5c3254);}};try{if(CLIUtils['shouldSkipSessionName'](BrowserstackCLI[_0x8ac673(0x28e)]()['getConfig']())){this[_0x8ac673(0x1fa)][_0x8ac673(0x203)](_0x1fd40c[_0x8ac673(0x23c)]);return;}const _0x28f63d=AutomationFramework[_0x8ac673(0x219)](AutomationFramework[_0x8ac673(0x1e6)](),PlaywrightDriverModule[_0x8ac673(0x1e7)]);let _0x2c7bbb;_0x146cf7[_0x8ac673(0x25f)]||_0x146cf7[_0x8ac673(0x210)]?_0x2c7bbb=_0x1fd40c[_0x8ac673(0x214)](getCucumberSessionName,_0x146cf7):_0x2c7bbb=_0x1fd40c[_0x8ac673(0x21b)](getPlaywrightSessionName,_0x146cf7);const _0x353bf4={};_0x353bf4[_0x8ac673(0x25e)]=_0x2c7bbb;const _0x48a72d={};_0x48a72d['action']=_0x1fd40c[_0x8ac673(0x250)],_0x48a72d[_0x8ac673(0x298)]=_0x353bf4;const _0x358177=_0x48a72d;PerformanceTester[_0x8ac673(0x218)](PerformanceEvents[_0x8ac673(0x273)]),await _0x1fd40c[_0x8ac673(0x263)](playwrightBstackJsExecutor,_0x28f63d,_0x358177),PerformanceTester[_0x8ac673(0x1f0)](PerformanceEvents[_0x8ac673(0x273)]);}catch(_0x2a4863){PerformanceTester[_0x8ac673(0x1f0)](PerformanceEvents[_0x8ac673(0x273)],![],util['format'](_0x2a4863)),this['logger'][_0x8ac673(0x22b)]('Error\x20in\x20markSessionName:\x20'+util[_0x8ac673(0x23e)](_0x2a4863));}}}PlaywrightDriverModule[a77_0x3dd6e5(0x1fc)]='PlaywrightDriverModule',module[a77_0x3dd6e5(0x29c)]=PlaywrightDriverModule;
1
+ const a77_0x16466a=a77_0x4f33;(function(_0x3de776,_0x2297fd){const _0x326639=a77_0x4f33,_0x372e61=_0x3de776();while(!![]){try{const _0xceec76=parseInt(_0x326639(0x162))/0x1*(parseInt(_0x326639(0x17c))/0x2)+parseInt(_0x326639(0x1c1))/0x3*(parseInt(_0x326639(0x167))/0x4)+parseInt(_0x326639(0x186))/0x5+-parseInt(_0x326639(0x1a5))/0x6*(parseInt(_0x326639(0x135))/0x7)+-parseInt(_0x326639(0x114))/0x8+-parseInt(_0x326639(0x155))/0x9*(-parseInt(_0x326639(0x157))/0xa)+-parseInt(_0x326639(0x15f))/0xb*(-parseInt(_0x326639(0x126))/0xc);if(_0xceec76===_0x2297fd)break;else _0x372e61['push'](_0x372e61['shift']());}catch(_0xc4f178){_0x372e61['push'](_0x372e61['shift']());}}}(a77_0x534a,0xc9d77));function a77_0x534a(){const _0x5ab2f2=['1.52.999','xvTYh','CREATE','EiPrO','12469040fiIlOp','../browserstackCLI.js','AUTOMATE_EVENTS','context','name','FeJwF','rvhpB','keys','../framework/constants/testFrameworkConstants.js','from','inspect','getTestUUID','platformIndex','end','NGRhG','onAfterDriverCreate:\x20Setting\x20context\x20object','onPlaywrightDispatch','onBeforeDriverCreate','24FCHNla','KEY_BROWSER_OBJECT','KEY_CAPABILITIES','testFrameworkVersion','YZDzH','PKSRo','testId:\x20','getTrackedInstance','length','qJThJ','Hqhbv','logger','gherkinDocument','hubUrl','markSessionStatus:\x20Skipping\x20session\x20status\x20marking','167146VXIzbu','getConfig','Error\x20in\x20onAfterDriverCreate:\x20','ldirE','testId','browserObject','KEY_HUB_URL','markSessionName:\x20Skipping\x20session\x20name\x20marking','EXECUTE','driverInit','../framework/automationFramework.js','playwrightVersion','Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','PlaywrightDriverModule','bsParams','params','reason','1.51.0','arguments','onAfterTest','KEY_CONTEXT_OBJECT','FcWSJ','rCIWB','sJxSB','onDispatchExecute:\x20Playwright\x20platform\x20platformIndex:\x20','markSessionName','onAfterTest\x20CBTSession\x20complete\x20for\x20testId:\x20','capabilities','Session','PLAYWRIGHT_DISPATCH','onAfterDriverCreate:\x20Setting\x20page\x20object','wFCZD','56043LTCHmx','passed','660UAqqJx','VJBsr','wQBSj','bExBR','getState','bStackParams','KEY_PAGE_OBJECT','iPAWR','11396077WQMPif','aBTnA','onDispatchExecute:\x20Playwright\x20driver\x20is\x20executing\x20tests\x20','18BFWSdx','getInstance','TEST','base64','format','200fgnRpi','browserName','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','error','dQeQz','parse','registerObserver','getProcessId','onDispatchExecute:\x20Playwright\x20sessionId:\x20','GKWqU','stringify','../grpcClient.js','testRunId','getContext','bKIky','onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','dIdHv','../../../helpers/classLogger.js','NCfNN','../state/automationFrameworkState.js','bind','72742kYfusE','../state/hookState.js','testHookState','SESSION_NAME','Error\x20in\x20onDispatchExecute:\x20','status','testData\x20from\x20onAfterTest:\x20','lvFfX','YGugL','KEY_TEST_ID','1545575UCOIkU','debug','KEY_SESSION_ID','onAfterTest\x20CBTSession\x20payload:\x20','isPlaywright','page','getThreadId','setState','Playwright','onAfterDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','BeHdz','pageObject','\x20failure\x20reason:\x20','getId','message','parallelIndex','QkkDu','onAfterDriverCreate:\x20Setting\x20browser\x20object','LoCbV','SEGFp','markSessionStatus','executionContext','testInfo','KEY_PLATFORM_INDEX','suksK','browser','../TestInfo.js','../../../helpers/helper','shouldSkipSessionStatus','getRef','KEY_TEST_FRAMEWORK_NAME','282iPudgo','platformDetails','toString','__workerDetails','contextObject','info','Error\x20in\x20markSessionName:\x20','isFalse','_test','shouldSkipSessionName','../cliUtils.js','split','workerInfo','../../../helpers/performance/performance-tester.js','onBeforeDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','errors','../../../helpers/helper.js','start','LoXXA','markSessionStatus:\x20Marking\x20session\x20status','../../../helpers/test-observability/utils','POST','sessionId','instance','PLAYWRIGHT','SESSION_STATUS','../../../helpers/performance/constants.js','testUuid','3651GKoaDR','onAfterDriverCreate','action','testFrameworkState','KEY_PLATFORM_DETAILS','isBrowserstackInfra'];a77_0x534a=function(){return _0x5ab2f2;};return a77_0x534a();}function a77_0x4f33(_0x19829f,_0x13f2d3){const _0x534a17=a77_0x534a();return a77_0x4f33=function(_0x4f3347,_0x3704e3){_0x4f3347=_0x4f3347-0x110;let _0x41bb3f=_0x534a17[_0x4f3347];return _0x41bb3f;},a77_0x4f33(_0x19829f,_0x13f2d3);}const util=require('util'),BaseModule=require('./baseModule'),{createClassLogger}=require(a77_0x16466a(0x178)),{getFrameworkVersion}=require(a77_0x16466a(0x1b9)),helper=require(a77_0x16466a(0x1a1)),{FRAMEWORKS}=require('../../utils/constants'),AutomationFramework=require(a77_0x16466a(0x13f)),AutomationFrameworkState=require(a77_0x16466a(0x17a)),HookState=require(a77_0x16466a(0x17d)),{playwrightBstackJsExecutor,nestedKeyValue,playwrightAnnotate,getPlaywrightStatus,getPlaywrightSessionName,getCucumberSessionName}=require(a77_0x16466a(0x1b5)),CLIUtils=require(a77_0x16466a(0x1af)),BrowserstackCLI=require(a77_0x16466a(0x115)),GrpcClient=require(a77_0x16466a(0x172)),PerformanceTester=require(a77_0x16466a(0x1b2)),PerformanceEvents=require(a77_0x16466a(0x1bf))[a77_0x16466a(0x116)],TestInfo=require(a77_0x16466a(0x1a0)),{getPlaywrightProvider}=require(a77_0x16466a(0x1b5)),TestFrameworkConstants=require(a77_0x16466a(0x11c)),TestFrameworkState=require('../state/testFrameworkState');class PlaywrightDriverModule extends BaseModule{static ['KEY_BROWSER_OBJECT']=a77_0x16466a(0x13a);static [a77_0x16466a(0x149)]=a77_0x16466a(0x1a9);static [a77_0x16466a(0x15d)]=a77_0x16466a(0x191);static ['KEY_SESSION_ID']=a77_0x16466a(0x1bb);static ['KEY_PLATFORM_INDEX']=a77_0x16466a(0x120);static [a77_0x16466a(0x128)]=a77_0x16466a(0x150);static [a77_0x16466a(0x13b)]=a77_0x16466a(0x133);static [a77_0x16466a(0x1c5)]=a77_0x16466a(0x1a6);static [a77_0x16466a(0x185)]=a77_0x16466a(0x139);['logger']=createClassLogger(a77_0x16466a(0x142));constructor(){const _0x1dcf4e=a77_0x16466a,_0x1d7712={};_0x1d7712[_0x1dcf4e(0x159)]='1|5|7|6|9|3|8|4|0|10|2',_0x1d7712[_0x1dcf4e(0x111)]='PlaywrightDriverModule';const _0x5c1869=_0x1d7712,_0x5a80a8=_0x5c1869[_0x1dcf4e(0x159)][_0x1dcf4e(0x1b0)]('|');let _0x404136=0x0;while(!![]){switch(_0x5a80a8[_0x404136++]){case'0':AutomationFramework[_0x1dcf4e(0x16d)](AutomationFrameworkState[_0x1dcf4e(0x112)],HookState['POST'],this['onAfterDriverCreate'][_0x1dcf4e(0x17b)](this));continue;case'1':super();continue;case'2':AutomationFramework[_0x1dcf4e(0x16d)](AutomationFrameworkState[_0x1dcf4e(0x13d)],HookState[_0x1dcf4e(0x1ba)],this[_0x1dcf4e(0x148)]['bind'](this));continue;case'3':this['platforms']=[];continue;case'4':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x1dcf4e(0x112)],HookState['PRE'],this[_0x1dcf4e(0x125)][_0x1dcf4e(0x17b)](this));continue;case'5':this[_0x1dcf4e(0x118)]=_0x5c1869[_0x1dcf4e(0x111)];continue;case'6':this[_0x1dcf4e(0x168)]=null;continue;case'7':this[_0x1dcf4e(0x140)]=null;continue;case'8':this[_0x1dcf4e(0x173)]=null;continue;case'9':this['browserVersion']=null;continue;case'10':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x1dcf4e(0x152)],HookState[_0x1dcf4e(0x1ba)],this[_0x1dcf4e(0x124)]['bind'](this));continue;}break;}}['getModuleName'](){return PlaywrightDriverModule['MODULE_NAME'];}async[a77_0x16466a(0x125)](_0x4cf846){const _0x123235=a77_0x16466a,_0x29fdf6={};_0x29fdf6['bKIky']=_0x123235(0x1b3);const _0x3a9cb2=_0x29fdf6;try{this[_0x123235(0x131)][_0x123235(0x187)](_0x3a9cb2[_0x123235(0x175)]);const _0x101d6b=_0x4cf846['launchcaps'],_0x1e8e47=_0x4cf846[_0x123235(0x133)];AutomationFramework['setState'](_0x4cf846[_0x123235(0x1bc)],PlaywrightDriverModule[_0x123235(0x128)],_0x101d6b),AutomationFramework[_0x123235(0x18d)](_0x4cf846[_0x123235(0x1bc)],PlaywrightDriverModule['KEY_HUB_URL'],_0x1e8e47);}catch(_0x285e5e){this[_0x123235(0x131)][_0x123235(0x16a)]('Error\x20in\x20onBeforeDriverCreate:\x20'+util[_0x123235(0x166)](_0x285e5e));}}async['onPlaywrightDispatch'](_0x48c765){const _0x3d3266=a77_0x16466a,_0x12810e={};_0x12810e['NGRhG']=function(_0x599f20,_0x1affb9){return _0x599f20||_0x1affb9;};const _0x1190e0=_0x12810e;try{const _0x2ee4b4=_0x48c765?.[_0x3d3266(0x194)]&&_0x48c765?.[_0x3d3266(0x194)]?.[_0x3d3266(0x144)]&&_0x48c765?.[_0x3d3266(0x194)]?.[_0x3d3266(0x144)]?.[_0x3d3266(0x143)],_0x3b88f9=_0x48c765?.[_0x3d3266(0x194)]&&_0x48c765?.[_0x3d3266(0x194)]?.[_0x3d3266(0x15c)];if(_0x1190e0[_0x3d3266(0x122)](_0x2ee4b4,_0x3b88f9)){this[_0x3d3266(0x131)][_0x3d3266(0x187)](_0x3d3266(0x161)+util[_0x3d3266(0x11e)](_0x2ee4b4)+'\x20||\x20'+util[_0x3d3266(0x11e)](_0x3b88f9));const _0x432ba8=_0x48c765?.[_0x3d3266(0x1bc)],_0x1dca49=global?.[_0x3d3266(0x1a8)]?.[_0x3d3266(0x1b1)]?.['parallelIndex'],_0x200718=_0x2ee4b4?.[_0x3d3266(0x1bb)]||_0x3b88f9?.['sessionId'],_0x335d0f=_0x2ee4b4?.[_0x3d3266(0x1a6)]||_0x3b88f9?.[_0x3d3266(0x1a6)];_0x200718&&(this[_0x3d3266(0x131)][_0x3d3266(0x187)](_0x3d3266(0x16f)+_0x200718),AutomationFramework[_0x3d3266(0x18d)](_0x432ba8,PlaywrightDriverModule[_0x3d3266(0x188)],_0x200718)),_0x1dca49&&(this[_0x3d3266(0x131)][_0x3d3266(0x187)](_0x3d3266(0x14d)+util[_0x3d3266(0x11e)](_0x1dca49)),AutomationFramework[_0x3d3266(0x18d)](_0x432ba8,PlaywrightDriverModule[_0x3d3266(0x19d)],_0x1dca49));}}catch(_0x204e88){this['logger'][_0x3d3266(0x16a)](_0x3d3266(0x180)+util['format'](_0x204e88));}}async[a77_0x16466a(0x1c2)](_0xdd1b6a){const _0x5a5a05=a77_0x16466a,_0x444ac3={'FeJwF':_0x5a5a05(0x18f),'lvFfX':function(_0x59fecd,_0x5eb77b){return _0x59fecd(_0x5eb77b);},'bExBR':_0x5a5a05(0x153),'aBTnA':_0x5a5a05(0x176),'iPAWR':_0x5a5a05(0x123),'yOsSL':_0x5a5a05(0x197),'Hqhbv':_0x5a5a05(0x165)};try{this[_0x5a5a05(0x131)][_0x5a5a05(0x187)](_0x444ac3[_0x5a5a05(0x119)]);const _0x9088b1=_0xdd1b6a[_0x5a5a05(0x1bc)];this[_0x5a5a05(0x140)]=_0x444ac3[_0x5a5a05(0x183)](getFrameworkVersion,FRAMEWORKS[_0x5a5a05(0x1bd)]);if(_0xdd1b6a[_0x5a5a05(0x18b)]){this[_0x5a5a05(0x131)][_0x5a5a05(0x187)](_0x444ac3[_0x5a5a05(0x15a)]),AutomationFramework[_0x5a5a05(0x18d)](_0x9088b1,PlaywrightDriverModule[_0x5a5a05(0x15d)],_0xdd1b6a[_0x5a5a05(0x18b)]);if(_0xdd1b6a['testInfo']){this[_0x5a5a05(0x131)][_0x5a5a05(0x187)](_0x444ac3[_0x5a5a05(0x160)]);const _0x6d2915=_0xdd1b6a['testInfo']?.[_0x5a5a05(0x1ad)]?.['id']||_0xdd1b6a[_0x5a5a05(0x19c)]?.[_0x5a5a05(0x139)];AutomationFramework[_0x5a5a05(0x18d)](_0x9088b1,PlaywrightDriverModule[_0x5a5a05(0x185)],_0x6d2915),await this[_0x5a5a05(0x14e)](_0xdd1b6a[_0x5a5a05(0x19c)]);}}_0xdd1b6a[_0x5a5a05(0x117)]&&(this[_0x5a5a05(0x131)][_0x5a5a05(0x187)](_0x444ac3[_0x5a5a05(0x15e)]),AutomationFramework[_0x5a5a05(0x18d)](_0x9088b1,PlaywrightDriverModule['KEY_CONTEXT_OBJECT'],_0xdd1b6a[_0x5a5a05(0x117)]));if(_0xdd1b6a[_0x5a5a05(0x19f)]){this[_0x5a5a05(0x131)][_0x5a5a05(0x187)](_0x444ac3['yOsSL']);const _0x3ddf0f=global?.[_0x5a5a05(0x1a8)]?.['workerInfo']?.[_0x5a5a05(0x195)];AutomationFramework[_0x5a5a05(0x18d)](_0x9088b1,PlaywrightDriverModule[_0x5a5a05(0x127)],_0xdd1b6a[_0x5a5a05(0x19f)]),AutomationFramework[_0x5a5a05(0x18d)](_0x9088b1,PlaywrightDriverModule[_0x5a5a05(0x19d)],_0x3ddf0f);const _0x537fcd={};_0x537fcd[_0x5a5a05(0x18a)]=!![];const _0x4afdb2=Buffer[_0x5a5a05(0x11d)](JSON[_0x5a5a05(0x171)](_0x537fcd)['toString'](_0x444ac3[_0x5a5a05(0x130)])),_0x441b18=await GrpcClient[_0x5a5a05(0x163)]()[_0x5a5a05(0x13e)]({'platformIndex':_0x3ddf0f,'ref':_0x9088b1[_0x5a5a05(0x1a3)](),'userInputParams':_0x4afdb2});helper[_0x5a5a05(0x1ac)](helper[_0x5a5a05(0x1c6)]())&&AutomationFramework['setState'](_0x9088b1,PlaywrightDriverModule['KEY_CAPABILITIES'],JSON[_0x5a5a05(0x16c)](Buffer[_0x5a5a05(0x11d)](_0x441b18['getCapabilities'](),_0x444ac3[_0x5a5a05(0x130)])[_0x5a5a05(0x1a7)]()));}}catch(_0x550fc1){this[_0x5a5a05(0x131)]['error'](_0x5a5a05(0x137)+util[_0x5a5a05(0x166)](_0x550fc1));}}async[a77_0x16466a(0x148)](_0x16036f){const _0x3ed3ad=a77_0x16466a,_0x29bcc4={'hccyB':'Automation\x20onAfterTest:\x20Test\x20completed','VJBsr':_0x3ed3ad(0x141),'LoXXA':function(_0x201c22,_0x38723d){return _0x201c22(_0x38723d);},'YGugL':function(_0x4a6aa2,_0x3477a6){return _0x4a6aa2(_0x3477a6);},'cTAFm':function(_0x22670a,_0x87f333,_0x4faa31){return _0x22670a(_0x87f333,_0x4faa31);},'FcWSJ':_0x3ed3ad(0x1b4),'dIdHv':function(_0xdd8984,_0x30d996){return _0xdd8984>_0x30d996;},'qJThJ':function(_0x40cb11,_0x28def8){return _0x40cb11+_0x28def8;},'LoCbV':_0x3ed3ad(0x12c),'NfxKb':_0x3ed3ad(0x182),'EiPrO':_0x3ed3ad(0x18e),'kWDHT':_0x3ed3ad(0x110),'rCIWB':_0x3ed3ad(0x146),'QkkDu':function(_0x32b92d,_0x16c2e1){return _0x32b92d>_0x16c2e1;},'ldirE':_0x3ed3ad(0x165),'suksK':_0x3ed3ad(0x169)};this[_0x3ed3ad(0x131)]['debug'](_0x29bcc4['hccyB']);const _0xba7397=_0x16036f[_0x3ed3ad(0x1bc)];if(!_0xba7397){this[_0x3ed3ad(0x131)][_0x3ed3ad(0x187)](_0x29bcc4[_0x3ed3ad(0x158)]);return;}const _0xef5ac0=_0x16036f[_0x3ed3ad(0x19c)],_0x2169a9=_0xef5ac0['id']||_0x16036f['testInfo']?.['_test']?.['id']||_0x16036f['testInfo']?.[_0x3ed3ad(0x139)],_0x511202=_0xef5ac0['status'],_0x5c76a1=_0x29bcc4['LoXXA'](getPlaywrightStatus,_0x511202);let _0x389baf;_0xef5ac0['pickle']||_0xef5ac0[_0x3ed3ad(0x132)]?_0x389baf=_0x29bcc4[_0x3ed3ad(0x184)](getCucumberSessionName,_0xef5ac0):_0x389baf=_0x29bcc4[_0x3ed3ad(0x1b7)](getPlaywrightSessionName,_0xef5ac0);const _0x136160=_0x29bcc4['cTAFm'](nestedKeyValue,_0xef5ac0,[_0x29bcc4[_0x3ed3ad(0x14a)]]);let _0x40b2c2=null;_0x136160&&_0x29bcc4[_0x3ed3ad(0x177)](_0x136160['length'],0x0)&&(_0x40b2c2=_0x136160[0x0][_0x3ed3ad(0x194)]);this[_0x3ed3ad(0x131)][_0x3ed3ad(0x187)]('Automation\x20onAfterTest:\x20Test\x20status:\x20'+_0x5c76a1+_0x3ed3ad(0x192)+_0x40b2c2);const _0x1af17d=TestInfo[_0x3ed3ad(0x11f)](TestInfo['getTestIdentifierFromTestInfo'](_0xef5ac0,_0xef5ac0?.['retry'])),_0x3489d9=TestInfo['getTestDetails'](TestInfo['getTestIdentifierFromTestInfo'](_0xef5ac0,_0xef5ac0?.['retry']));this[_0x3ed3ad(0x131)]['info'](_0x29bcc4['qJThJ'](_0x29bcc4[_0x3ed3ad(0x198)],_0x2169a9)),this[_0x3ed3ad(0x131)][_0x3ed3ad(0x1aa)](_0x29bcc4[_0x3ed3ad(0x12f)](_0x29bcc4['NfxKb'],util['inspect'](_0x3489d9)));const _0x2cd552=AutomationFramework[_0x3ed3ad(0x15b)](_0xba7397,PlaywrightDriverModule[_0x3ed3ad(0x19d)])||0x0,_0x870c7e=_0x3489d9[TestFrameworkConstants[_0x3ed3ad(0x1a4)]]||_0x29bcc4[_0x3ed3ad(0x113)],_0xf01fc7=_0x3489d9[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]||_0x29bcc4['kWDHT'],_0x5c07b3=TestFrameworkState[_0x3ed3ad(0x164)][_0x3ed3ad(0x1a7)]()[_0x3ed3ad(0x1b0)]('.')[0x1],_0x3b01b2=HookState[_0x3ed3ad(0x1ba)][_0x3ed3ad(0x1a7)]()['split']('.')[0x1],_0x4ea659=_0xba7397[_0x3ed3ad(0x174)](),_0x570b36=AutomationFramework['getState'](_0xba7397,PlaywrightDriverModule[_0x3ed3ad(0x13b)],''),_0x3304e8={'provider':_0x29bcc4[_0x3ed3ad(0x1b7)](getPlaywrightProvider,_0x570b36),'frameworkName':_0x29bcc4[_0x3ed3ad(0x113)],'frameworkVersion':_0x29bcc4[_0x3ed3ad(0x14b)],'frameworkSessionId':AutomationFramework[_0x3ed3ad(0x15b)](_0xba7397,PlaywrightDriverModule['KEY_SESSION_ID'],''),'ref':_0xba7397['getRef'](),'hubUrl':_0x570b36};let _0x541153=AutomationFramework[_0x3ed3ad(0x15b)](_0xba7397,PlaywrightDriverModule['KEY_CAPABILITIES'],{});_0x541153&&_0x29bcc4[_0x3ed3ad(0x196)](Object[_0x3ed3ad(0x11b)](_0x541153)[_0x3ed3ad(0x12e)],0x0)?_0x541153=Buffer[_0x3ed3ad(0x11d)](JSON['stringify'](_0x541153))[_0x3ed3ad(0x1a7)](_0x29bcc4[_0x3ed3ad(0x138)]):_0x541153={};const _0x1cfd7d={'hash':_0x4ea659[_0x3ed3ad(0x193)](),'threadId':_0x4ea659[_0x3ed3ad(0x18c)]()[_0x3ed3ad(0x1a7)](),'processId':_0x4ea659[_0x3ed3ad(0x16e)]()[_0x3ed3ad(0x1a7)]()},_0x5a3a71={};_0x5a3a71['platformIndex']=_0x2cd552,_0x5a3a71['testFrameworkName']=_0x870c7e,_0x5a3a71[_0x3ed3ad(0x129)]=_0xf01fc7,_0x5a3a71[_0x3ed3ad(0x1c4)]=_0x5c07b3,_0x5a3a71[_0x3ed3ad(0x17e)]=_0x3b01b2,_0x5a3a71[_0x3ed3ad(0x1c0)]=_0x1af17d,_0x5a3a71['automationSession']=_0x3304e8,_0x5a3a71[_0x3ed3ad(0x150)]=_0x541153,_0x5a3a71[_0x3ed3ad(0x19b)]=_0x1cfd7d;const _0x13a382=_0x5a3a71;this[_0x3ed3ad(0x131)]['debug'](_0x3ed3ad(0x189)+util[_0x3ed3ad(0x166)](_0x13a382)),this[_0x3ed3ad(0x131)][_0x3ed3ad(0x187)](_0x3ed3ad(0x14f)+_0x2169a9);if(!_0x5c76a1){this[_0x3ed3ad(0x131)][_0x3ed3ad(0x187)](_0x29bcc4[_0x3ed3ad(0x19e)],_0x511202[_0x3ed3ad(0x181)]);return;}this[_0x3ed3ad(0x131)][_0x3ed3ad(0x187)]('Automation\x20onAfterTest:\x20Setting\x20session\x20status\x20for\x20testId:\x20'+_0x2169a9),await this[_0x3ed3ad(0x19a)](_0xba7397,_0x389baf,_0x5c76a1,_0x40b2c2);}async['markSessionStatus'](_0x2dde32,_0x4540e2,_0x5af18c,_0x494000){const _0x2af04a=a77_0x16466a,_0x504cfd={'wFCZD':_0x2af04a(0x134),'qlMQZ':'markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available','LXVMs':'markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','rvhpB':_0x2af04a(0x169),'NCfNN':'setSessionStatus','itWEL':_0x2af04a(0x145),'FNisw':_0x2af04a(0x151),'PKSRo':function(_0x27f47a,_0x4b119c){return _0x27f47a===_0x4b119c;},'dQeQz':_0x2af04a(0x156),'sJxSB':_0x2af04a(0x1aa),'eLECA':_0x2af04a(0x16a),'Puvfi':function(_0x36dcbf,_0x243c01,_0xf2e041,_0x5a4e54){return _0x36dcbf(_0x243c01,_0xf2e041,_0x5a4e54);},'YZDzH':_0x2af04a(0x1b8),'SEGFp':function(_0xfea02b,_0x563749,_0x2a02a0){return _0xfea02b(_0x563749,_0x2a02a0);}};if(CLIUtils[_0x2af04a(0x1a2)](BrowserstackCLI[_0x2af04a(0x163)]()[_0x2af04a(0x136)]())){this['logger'][_0x2af04a(0x187)](_0x504cfd[_0x2af04a(0x154)]);return;}const _0x3c567d=_0x2dde32;if(!_0x3c567d){this['logger'][_0x2af04a(0x187)](_0x504cfd['qlMQZ']);return;}const _0x36d0a4=AutomationFramework[_0x2af04a(0x15b)](_0x3c567d,PlaywrightDriverModule['KEY_PAGE_OBJECT']);if(!_0x36d0a4){this[_0x2af04a(0x131)][_0x2af04a(0x187)](_0x504cfd['LXVMs']);return;}const _0x53ca0f=_0x5af18c;if(!_0x53ca0f){this[_0x2af04a(0x131)][_0x2af04a(0x187)](_0x504cfd[_0x2af04a(0x11a)],_0x53ca0f);return;}const _0x6a4006={};_0x6a4006[_0x2af04a(0x181)]=_0x53ca0f;const _0x433c9f={};_0x433c9f[_0x2af04a(0x1c3)]=_0x504cfd[_0x2af04a(0x179)],_0x433c9f[_0x2af04a(0x147)]=_0x6a4006;const _0x20bb50=_0x433c9f;_0x494000&&(_0x20bb50[_0x2af04a(0x147)][_0x504cfd['itWEL']]=_0x494000);const _0x4d7e7a=(_0x4540e2?_0x4540e2:_0x504cfd['FNisw'])+'\x20'+_0x53ca0f+'\x20'+(_0x494000?'with\x20'+_0x494000:''),_0x169964=_0x504cfd[_0x2af04a(0x12b)](_0x53ca0f,_0x504cfd[_0x2af04a(0x16b)])?_0x504cfd[_0x2af04a(0x14c)]:_0x504cfd['eLECA'];await _0x504cfd['Puvfi'](playwrightAnnotate,_0x36d0a4,_0x4d7e7a,_0x169964),PerformanceTester[_0x2af04a(0x1b6)](PerformanceEvents[_0x2af04a(0x1be)]),this[_0x2af04a(0x131)][_0x2af04a(0x187)](_0x504cfd[_0x2af04a(0x12a)]),await _0x504cfd[_0x2af04a(0x199)](playwrightBstackJsExecutor,_0x36d0a4,_0x20bb50),PerformanceTester['end'](PerformanceEvents[_0x2af04a(0x1be)]);}async['markSessionName'](_0x5c843c){const _0xf489e4=a77_0x16466a,_0x34abdf={'BeHdz':_0xf489e4(0x13c),'wBwYf':function(_0x501c30,_0x4547ef){return _0x501c30(_0x4547ef);},'ZUHSE':'setSessionName','GKWqU':function(_0x441f17,_0x296e03,_0x4dca2a){return _0x441f17(_0x296e03,_0x4dca2a);}};try{if(CLIUtils[_0xf489e4(0x1ae)](BrowserstackCLI[_0xf489e4(0x163)]()[_0xf489e4(0x136)]())){this['logger'][_0xf489e4(0x187)](_0x34abdf[_0xf489e4(0x190)]);return;}const _0x436614=AutomationFramework['getState'](AutomationFramework[_0xf489e4(0x12d)](),PlaywrightDriverModule[_0xf489e4(0x15d)]);let _0x27fdd1;_0x5c843c['pickle']||_0x5c843c[_0xf489e4(0x132)]?_0x27fdd1=_0x34abdf['wBwYf'](getCucumberSessionName,_0x5c843c):_0x27fdd1=_0x34abdf['wBwYf'](getPlaywrightSessionName,_0x5c843c);const _0xce4e2f={};_0xce4e2f[_0xf489e4(0x118)]=_0x27fdd1;const _0x21704a={};_0x21704a[_0xf489e4(0x1c3)]=_0x34abdf['ZUHSE'],_0x21704a[_0xf489e4(0x147)]=_0xce4e2f;const _0x2d8ff4=_0x21704a;PerformanceTester['start'](PerformanceEvents[_0xf489e4(0x17f)]),await _0x34abdf[_0xf489e4(0x170)](playwrightBstackJsExecutor,_0x436614,_0x2d8ff4),PerformanceTester['end'](PerformanceEvents[_0xf489e4(0x17f)]);}catch(_0xe287e5){PerformanceTester[_0xf489e4(0x121)](PerformanceEvents[_0xf489e4(0x17f)],![],util[_0xf489e4(0x166)](_0xe287e5)),this[_0xf489e4(0x131)]['error'](_0xf489e4(0x1ab)+util[_0xf489e4(0x166)](_0xe287e5));}}}PlaywrightDriverModule['MODULE_NAME']=a77_0x16466a(0x142),module['exports']=PlaywrightDriverModule;
@@ -1 +1 @@
1
- const a78_0x87f43a=a78_0x10d2;function a78_0x10d2(_0x4ac1be,_0x4d841d){const _0x2508bc=a78_0x2508();return a78_0x10d2=function(_0x10d254,_0x284440){_0x10d254=_0x10d254-0x18b;let _0x5945cc=_0x2508bc[_0x10d254];return _0x5945cc;},a78_0x10d2(_0x4ac1be,_0x4d841d);}(function(_0x411e47,_0x47aa02){const _0x2135f3=a78_0x10d2,_0x93f686=_0x411e47();while(!![]){try{const _0xcb567a=parseInt(_0x2135f3(0x18b))/0x1+parseInt(_0x2135f3(0x1a6))/0x2+parseInt(_0x2135f3(0x1a3))/0x3*(-parseInt(_0x2135f3(0x1ac))/0x4)+-parseInt(_0x2135f3(0x1c0))/0x5*(parseInt(_0x2135f3(0x1d5))/0x6)+-parseInt(_0x2135f3(0x1c2))/0x7+-parseInt(_0x2135f3(0x1aa))/0x8+parseInt(_0x2135f3(0x1ce))/0x9;if(_0xcb567a===_0x47aa02)break;else _0x93f686['push'](_0x93f686['shift']());}catch(_0x51f1ce){_0x93f686['push'](_0x93f686['shift']());}}}(a78_0x2508,0xc86b2));const util=require(a78_0x87f43a(0x1bc)),BaseModule=require('./baseModule'),{createClassLogger}=require(a78_0x87f43a(0x1a4)),AutomationFramework=require(a78_0x87f43a(0x1b8)),AutomationFrameworkState=require(a78_0x87f43a(0x199)),HookState=require(a78_0x87f43a(0x1c3)),TestFramework=require(a78_0x87f43a(0x19a)),TestFrameworkState=require(a78_0x87f43a(0x1bb)),PlaywrightDriverModule=require(a78_0x87f43a(0x1ea)),TestFrameworkConstants=require(a78_0x87f43a(0x191)),GrpcClient=require(a78_0x87f43a(0x1e1)),CLIUtils=require(a78_0x87f43a(0x1ab)),TestInfo=require(a78_0x87f43a(0x1b2)),testHubConstants=require(a78_0x87f43a(0x190)),BrowserstackCLI=require(a78_0x87f43a(0x1c6)),{getPlaywrightProvider}=require('../../../helpers/helper.js'),{getTestRunIdentifier}=require(a78_0x87f43a(0x19e));function a78_0x2508(){const _0xbd9a3=['../framework/automationFramework.js','stringify','instance','../state/testFrameworkState.js','util','logger','error','KEY_TEST_FRAMEWORK_NAME','70ZksgdB','IERGW','4530617sWYORJ','../state/hookState.js','parallelIndex','getAllData','../browserstackCLI.js','onPageCreate\x20CBTSession\x20payload:\x20','get','values','page','getTestDetails','testFrameworkVersion','getRef','37587483eBsFIV','registerObserver','XDeyT','testSessionEvent','testhubConfig','getInstance','testFrameworkState','257592MLRepn','KEY_CAPABILITIES','kukTo','executionContext','startedAt','debug','from','bind','sendTestFrameworkEvent\x20complete\x20for\x20testId:\x20','POST','result','FzrOO','../grpcClient.js','KEY_TEST_STARTED_AT','TEST','KEY_HUB_URL','sendTestFrameworkEvent\x20testId:\x20','getTestIdentifierFromTestInfo','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','BROWSERSTACK_TESTHUB_UUID','testFrameworkName','./playwrightDriverModule.js','getState','capabilities','testHookState','getJwt','getId','test','toString','Error\x20in\x20sending\x20CBTSession:\x20','157910WuYnee','2|5|4|0|3|7|1|6','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','ENV_VAR','MODULE_NAME','../../../helpers/testhub/constants','../framework/constants/testFrameworkConstants.js','base64','TestHubModule','platformIndex','getCurrentHookState','forEach','KEY_TEST_DEFERRED','test_deferred','../state/automationFrameworkState.js','../framework/testFramework.js','exports','\x20hookState:\x20','automationSession','../../playwright/reporter/pwUtils.js','TmLQG','split','getCurrentTestState','matchHookRegex','590412KVQCSN','../../../helpers/classLogger.js','sendTestFrameworkEvent','475750TlsHww','format','onPageCreate','env','9002808HMJtLZ','../cliUtils.js','28CakclF','getContext','frAQm','getProcessId','KEY_TEST_ENDED_AT','getBuildHashedId','../TestInfo.js','testInfo','rJlah','KEY_SESSION_ID','BROWSERSTACK_TESTHUB_JWT','KEY_TEST_FRAMEWORK_VERSION'];a78_0x2508=function(){return _0xbd9a3;};return a78_0x2508();}class TestHubModule extends BaseModule{[a78_0x87f43a(0x1bd)]=createClassLogger(a78_0x87f43a(0x193));constructor(_0x512409){const _0x549a81=a78_0x87f43a,_0x5a2077={};_0x5a2077[_0x549a81(0x1c1)]=_0x549a81(0x18c),_0x5a2077['frAQm']=_0x549a81(0x193);const _0x37dcf0=_0x5a2077,_0x118640=_0x37dcf0[_0x549a81(0x1c1)]['split']('|');let _0x1ba462=0x0;while(!![]){switch(_0x118640[_0x1ba462++]){case'0':AutomationFramework[_0x549a81(0x1cf)](AutomationFrameworkState['CREATE'],HookState[_0x549a81(0x1de)],this['onPageCreate'][_0x549a81(0x1dc)](this));continue;case'1':process[_0x549a81(0x1a9)][testHubConstants[_0x549a81(0x18e)][_0x549a81(0x1e8)]]=this[_0x549a81(0x1d2)][_0x549a81(0x1b1)]();continue;case'2':super();continue;case'3':Object['values'](TestFrameworkState)['forEach'](_0x17d685=>{const _0x9baa4c=_0x549a81;Object[_0x9baa4c(0x1c9)](HookState)[_0x9baa4c(0x196)](_0x5d0adc=>{const _0xd526e1=_0x9baa4c;TestFramework[_0xd526e1(0x1cf)](_0x17d685,_0x5d0adc,this['onAllTestEvents'][_0xd526e1(0x1dc)](this));});});continue;case'4':this[_0x549a81(0x1d2)]=_0x512409;continue;case'5':this['name']=_0x37dcf0[_0x549a81(0x1ae)];continue;case'6':BrowserstackCLI['O11yHashedID']=this[_0x549a81(0x1d2)][_0x549a81(0x1b1)]();continue;case'7':process[_0x549a81(0x1a9)][testHubConstants[_0x549a81(0x18e)][_0x549a81(0x1b6)]]=this[_0x549a81(0x1d2)][_0x549a81(0x1ee)]();continue;}break;}}['getModuleName'](){const _0x93879c=a78_0x87f43a;return TestHubModule[_0x93879c(0x18f)];}['onAllTestEvents'](_0x641b52){const _0x2e454e=a78_0x87f43a,_0x2ac931={};_0x2ac931[_0x2e454e(0x1e0)]=function(_0x5b0766,_0x1723f2){return _0x5b0766===_0x1723f2;};const _0x3c1454=_0x2ac931,_0x1ea9fd=_0x641b52['instance'],_0x5c7da8=_0x1ea9fd[_0x2e454e(0x1a1)]();(_0x3c1454[_0x2e454e(0x1e0)](_0x5c7da8,TestFrameworkState['TEST'])||CLIUtils[_0x2e454e(0x1a2)](_0x5c7da8[_0x2e454e(0x1f1)]()[_0x2e454e(0x1a0)]('.')[0x1]))&&this[_0x2e454e(0x1a5)](_0x641b52);}async[a78_0x87f43a(0x1a5)](_0x1746d0){const _0x16f3dc=a78_0x87f43a,_0x38c0f3={'XDeyT':function(_0x19ab78,_0x29bcd2,_0x5066c1){return _0x19ab78(_0x29bcd2,_0x5066c1);},'kukTo':_0x16f3dc(0x192)};try{const _0x316f08=_0x1746d0[_0x16f3dc(0x1f0)]['id'],_0x2abc53=_0x38c0f3[_0x16f3dc(0x1d0)](getTestRunIdentifier,_0x1746d0[_0x16f3dc(0x1f0)],_0x1746d0[_0x16f3dc(0x1df)]['retry']),_0xa522c6=_0x1746d0[_0x16f3dc(0x1ba)],_0x54dd76=_0xa522c6[_0x16f3dc(0x1ad)](),_0x12cc28=_0xa522c6[_0x16f3dc(0x1c5)]()[_0x16f3dc(0x1c8)](_0x2abc53);this[_0x16f3dc(0x1bd)][_0x16f3dc(0x1da)](_0x16f3dc(0x1e5)+_0x316f08);const {[TestFrameworkConstants[_0x16f3dc(0x1bf)]]:_0x5fdd07='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x1b0987='',[TestFrameworkConstants[_0x16f3dc(0x1e2)]]:_0x454c36='',[TestFrameworkConstants[_0x16f3dc(0x1b0)]]:_0x3f4536=''}=_0x12cc28,_0x2b5a4e=_0xa522c6[_0x16f3dc(0x1a1)]()[_0x16f3dc(0x1f1)]()[_0x16f3dc(0x1a0)]('.')[0x1],_0x448863=_0xa522c6[_0x16f3dc(0x195)]()[_0x16f3dc(0x1f1)]()[_0x16f3dc(0x1a0)]('.')[0x1],_0x3b0458=global?.['__workerDetails']?.['workerInfo']?.[_0x16f3dc(0x1c4)];;const _0x55d5b5=_0xa522c6[_0x16f3dc(0x1cd)](),_0x4f5193=Buffer['from'](JSON['stringify'](_0x12cc28))[_0x16f3dc(0x1f1)](_0x38c0f3[_0x16f3dc(0x1d7)]),_0xe61e1d={'hash':_0x54dd76['getId'](),'threadId':_0x54dd76['getThreadId']()[_0x16f3dc(0x1f1)](),'processId':_0x54dd76[_0x16f3dc(0x1af)]()[_0x16f3dc(0x1f1)]()},_0x3356c7={};_0x3356c7[_0x16f3dc(0x194)]=_0x3b0458,_0x3356c7['testFrameworkName']=_0x5fdd07,_0x3356c7[_0x16f3dc(0x1cc)]=_0x1b0987,_0x3356c7[_0x16f3dc(0x1d4)]=_0x2b5a4e,_0x3356c7['hookState']=_0x448863,_0x3356c7[_0x16f3dc(0x1d9)]=_0x454c36,_0x3356c7['endedAt']=_0x3f4536,_0x3356c7['uuid']=_0x55d5b5,_0x3356c7['eventJson']=_0x4f5193,_0x3356c7[_0x16f3dc(0x1d8)]=_0xe61e1d;const _0x6a63f5=_0x3356c7,_0x565fba=await GrpcClient[_0x16f3dc(0x1d3)]()['testFrameworkEvent'](_0x6a63f5);this[_0x16f3dc(0x1bd)][_0x16f3dc(0x1da)](_0x16f3dc(0x1dd)+_0x316f08+'\x20testState:\x20'+_0x2b5a4e+_0x16f3dc(0x19c)+_0x448863);}catch(_0x490832){this[_0x16f3dc(0x1bd)][_0x16f3dc(0x1be)]('Error\x20in\x20sendTestFrameworkEvent:\x20'+util['format'](_0x490832));}}async[a78_0x87f43a(0x1a8)](_0x479832){const _0x2e1ccd=a78_0x87f43a,_0x47609c={'rJlah':function(_0x58d3ab,_0x56b7cd){return _0x58d3ab(_0x56b7cd);},'TmLQG':_0x2e1ccd(0x192)};try{if(_0x479832[_0x2e1ccd(0x1ca)]){const _0x2423fa=_0x479832[_0x2e1ccd(0x1b3)]['testId'];this[_0x2e1ccd(0x1bd)][_0x2e1ccd(0x1da)](_0x2e1ccd(0x1e7)+_0x2423fa);const _0x11e68f=TestInfo[_0x2e1ccd(0x1e6)](_0x479832['testInfo'],_0x479832[_0x2e1ccd(0x1b3)]['retry']),_0x4241bc=TestInfo['getTestUUID'](_0x11e68f),_0x1e08e5=TestInfo[_0x2e1ccd(0x1cb)](_0x11e68f),_0x59d26c=_0x479832['instance'],_0xff1848=AutomationFramework[_0x2e1ccd(0x1eb)](_0x59d26c,PlaywrightDriverModule['KEY_PLATFORM_INDEX']),_0x459feb=_0x1e08e5[TestFrameworkConstants[_0x2e1ccd(0x1bf)]],_0x4b15cf=_0x1e08e5[TestFrameworkConstants[_0x2e1ccd(0x1b7)]],_0x478a2a=TestFrameworkState[_0x2e1ccd(0x1e3)][_0x2e1ccd(0x1f1)]()[_0x2e1ccd(0x1a0)]('.')[0x1],_0x17c000=HookState[_0x2e1ccd(0x1de)][_0x2e1ccd(0x1f1)]()['split']('.')[0x1],_0xb86b39=_0x59d26c['getContext'](),_0x1c427b=AutomationFramework['getState'](_0x59d26c,PlaywrightDriverModule[_0x2e1ccd(0x1e4)],''),_0x61d84f={'provider':_0x47609c[_0x2e1ccd(0x1b4)](getPlaywrightProvider,_0x1c427b),'frameworkName':_0x59d26c['frameworkName'],'frameworkVersion':_0x59d26c['frameworkVersion'],'frameworkSessionId':AutomationFramework[_0x2e1ccd(0x1eb)](_0x59d26c,PlaywrightDriverModule[_0x2e1ccd(0x1b5)],''),'ref':_0x59d26c[_0x2e1ccd(0x1cd)](),'hubUrl':_0x1c427b};let _0x46815b=AutomationFramework[_0x2e1ccd(0x1eb)](_0x59d26c,PlaywrightDriverModule[_0x2e1ccd(0x1d6)],{});_0x46815b=Buffer[_0x2e1ccd(0x1db)](JSON[_0x2e1ccd(0x1b9)](_0x46815b))[_0x2e1ccd(0x1f1)](_0x47609c[_0x2e1ccd(0x19f)]);const _0x3577dd={'hash':_0xb86b39[_0x2e1ccd(0x1ef)](),'threadId':_0xb86b39['getThreadId']()[_0x2e1ccd(0x1f1)](),'processId':_0xb86b39[_0x2e1ccd(0x1af)]()['toString']()},_0x10cab6={};_0x10cab6[_0x2e1ccd(0x194)]=_0xff1848,_0x10cab6[_0x2e1ccd(0x1e9)]=_0x459feb,_0x10cab6[_0x2e1ccd(0x1cc)]=_0x4b15cf,_0x10cab6['testFrameworkState']=_0x478a2a,_0x10cab6[_0x2e1ccd(0x1ed)]=_0x17c000,_0x10cab6['testUuid']=_0x4241bc,_0x10cab6[_0x2e1ccd(0x19d)]=_0x61d84f,_0x10cab6[_0x2e1ccd(0x1ec)]=_0x46815b,_0x10cab6['executionContext']=_0x3577dd;const _0xd4e296=_0x10cab6;this[_0x2e1ccd(0x1bd)][_0x2e1ccd(0x1da)](_0x2e1ccd(0x1c7)+util[_0x2e1ccd(0x1a7)](_0xd4e296));const _0xcd518b=await GrpcClient[_0x2e1ccd(0x1d3)]()[_0x2e1ccd(0x1d1)](_0xd4e296);this[_0x2e1ccd(0x1bd)]['debug'](_0x2e1ccd(0x18d)+_0x2423fa);}}catch(_0x516aa2){this['logger'][_0x2e1ccd(0x1be)](_0x2e1ccd(0x1f2)+util['format'](_0x516aa2));}}}TestHubModule['MODULE_NAME']=a78_0x87f43a(0x193),TestHubModule[a78_0x87f43a(0x197)]=a78_0x87f43a(0x198),module[a78_0x87f43a(0x19b)]=TestHubModule;
1
+ const a78_0x3071e7=a78_0x1bf7;function a78_0x2992(){const _0x174e7b=['wwxBU','getTestDetails','retry','ENV_VAR','KEY_SESSION_ID','CREATE','getCurrentTestState','testFrameworkVersion','TEST','getAllData','testFrameworkName','automationSession','257848sQehYi','capabilities','QDnAr','2725814JhSwAo','../grpcClient.js','aGMzD','error','executionContext','getJwt','856996REcnjg','testSessionEvent','20CFyoUD','onAllTestEvents','POST','registerObserver','stringify','getModuleName','KEY_HUB_URL','logger','../framework/constants/testFrameworkConstants.js','base64','../TestInfo.js','values','onPageCreate','lFOLM','from','./baseModule','getTestUUID','gkHrd','result','../state/testFrameworkState.js','../../../helpers/classLogger.js','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','2883IpjMOu','getCurrentHookState','bVJqf','HPMgc','../browserstackCLI.js','test','KEY_TEST_ENDED_AT','frameworkName','O11yHashedID','uuid','KEY_TEST_DEFERRED','sendTestFrameworkEvent','name','getState','sendTestFrameworkEvent\x20testId:\x20','getId','MODULE_NAME','get','\x20testState:\x20','getProcessId','1658sCGWUY','KEY_TEST_FRAMEWORK_VERSION','../../../helpers/testhub/constants','BROWSERSTACK_TESTHUB_JWT','../state/automationFrameworkState.js','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','instance','369sBoabR','getBuildHashedId','testInfo','frameworkVersion','getRef','forEach','split','../framework/automationFramework.js','util','__workerDetails','getTestIdentifierFromTestInfo','startedAt','1854786xMtmOd','getThreadId','testFrameworkState','\x20hookState:\x20','testhubConfig','../state/hookState.js','2795096uBjPaW','sendTestFrameworkEvent\x20complete\x20for\x20testId:\x20','bind','testId','1|2|4|5|6|0|7|3','getContext','toString','env','hookState','test_deferred','TestHubModule','workerInfo','debug','testHookState','../../../helpers/helper.js','exports','13994440gPWPhI','KEY_PLATFORM_INDEX','format','getInstance'];a78_0x2992=function(){return _0x174e7b;};return a78_0x2992();}(function(_0x470553,_0x5292c0){const _0x757f56=a78_0x1bf7,_0x3731bb=_0x470553();while(!![]){try{const _0x373be2=parseInt(_0x757f56(0xaf))/0x1+-parseInt(_0x757f56(0xdb))/0x2*(-parseInt(_0x757f56(0xc7))/0x3)+parseInt(_0x757f56(0x86))/0x4+-parseInt(_0x757f56(0xb1))/0x5*(parseInt(_0x757f56(0xee))/0x6)+-parseInt(_0x757f56(0xa9))/0x7+-parseInt(_0x757f56(0xa6))/0x8*(parseInt(_0x757f56(0xe2))/0x9)+parseInt(_0x757f56(0x96))/0xa;if(_0x373be2===_0x5292c0)break;else _0x3731bb['push'](_0x3731bb['shift']());}catch(_0x4eae5d){_0x3731bb['push'](_0x3731bb['shift']());}}}(a78_0x2992,0xc4686));const util=require(a78_0x3071e7(0xea)),BaseModule=require(a78_0x3071e7(0xc0)),{createClassLogger}=require(a78_0x3071e7(0xc5)),AutomationFramework=require(a78_0x3071e7(0xe9)),AutomationFrameworkState=require(a78_0x3071e7(0xdf)),HookState=require(a78_0x3071e7(0xf3)),TestFramework=require('../framework/testFramework.js'),TestFrameworkState=require(a78_0x3071e7(0xc4)),PlaywrightDriverModule=require('./playwrightDriverModule.js'),TestFrameworkConstants=require(a78_0x3071e7(0xb9)),GrpcClient=require(a78_0x3071e7(0xaa)),CLIUtils=require('../cliUtils.js'),TestInfo=require(a78_0x3071e7(0xbb)),testHubConstants=require(a78_0x3071e7(0xdd)),BrowserstackCLI=require(a78_0x3071e7(0xcb)),{getPlaywrightProvider}=require(a78_0x3071e7(0x94)),{getTestRunIdentifier}=require('../../playwright/reporter/pwUtils.js');class TestHubModule extends BaseModule{[a78_0x3071e7(0xb8)]=createClassLogger(a78_0x3071e7(0x90));constructor(_0x3b8ae8){const _0x54f0b6=a78_0x3071e7,_0x557275={};_0x557275[_0x54f0b6(0xc9)]=_0x54f0b6(0x8a),_0x557275[_0x54f0b6(0xa8)]=_0x54f0b6(0x90);const _0x76711b=_0x557275,_0x23a9e4=_0x76711b[_0x54f0b6(0xc9)][_0x54f0b6(0xe8)]('|');let _0x235760=0x0;while(!![]){switch(_0x23a9e4[_0x235760++]){case'0':process[_0x54f0b6(0x8d)][testHubConstants[_0x54f0b6(0x9d)][_0x54f0b6(0xde)]]=this[_0x54f0b6(0xf2)][_0x54f0b6(0xae)]();continue;case'1':super();continue;case'2':this[_0x54f0b6(0xd3)]=_0x76711b[_0x54f0b6(0xa8)];continue;case'3':BrowserstackCLI[_0x54f0b6(0xcf)]=this[_0x54f0b6(0xf2)][_0x54f0b6(0xe3)]();continue;case'4':this[_0x54f0b6(0xf2)]=_0x3b8ae8;continue;case'5':AutomationFramework[_0x54f0b6(0xb4)](AutomationFrameworkState[_0x54f0b6(0x9f)],HookState[_0x54f0b6(0xb3)],this[_0x54f0b6(0xbd)]['bind'](this));continue;case'6':Object[_0x54f0b6(0xbc)](TestFrameworkState)[_0x54f0b6(0xe7)](_0xe1f2c9=>{const _0x2762c9=_0x54f0b6;Object[_0x2762c9(0xbc)](HookState)[_0x2762c9(0xe7)](_0x3eb983=>{const _0x15024e=_0x2762c9;TestFramework[_0x15024e(0xb4)](_0xe1f2c9,_0x3eb983,this[_0x15024e(0xb2)][_0x15024e(0x88)](this));});});continue;case'7':process[_0x54f0b6(0x8d)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']]=this[_0x54f0b6(0xf2)]['getBuildHashedId']();continue;}break;}}[a78_0x3071e7(0xb6)](){const _0xf9dd03=a78_0x3071e7;return TestHubModule[_0xf9dd03(0xd7)];}[a78_0x3071e7(0xb2)](_0x3c914c){const _0x4481c7=a78_0x3071e7,_0x5914cb={};_0x5914cb[_0x4481c7(0xca)]=function(_0x33b38c,_0x3da555){return _0x33b38c===_0x3da555;};const _0x2fed0a=_0x5914cb,_0x693325=_0x3c914c[_0x4481c7(0xe1)],_0x187224=_0x693325['getCurrentTestState']();(_0x2fed0a['HPMgc'](_0x187224,TestFrameworkState[_0x4481c7(0xa2)])||CLIUtils['matchHookRegex'](_0x187224[_0x4481c7(0x8c)]()['split']('.')[0x1]))&&this[_0x4481c7(0xd2)](_0x3c914c);}async[a78_0x3071e7(0xd2)](_0x19dd3a){const _0x205e21=a78_0x3071e7,_0x88fbfc={'gkHrd':function(_0x363983,_0x2494fc,_0x49c8d3){return _0x363983(_0x2494fc,_0x49c8d3);},'wwxBU':_0x205e21(0xba)};try{const _0x4a4ca7=_0x19dd3a[_0x205e21(0xcc)]['id'],_0x649787=_0x88fbfc[_0x205e21(0xc2)](getTestRunIdentifier,_0x19dd3a[_0x205e21(0xcc)],_0x19dd3a[_0x205e21(0xc3)][_0x205e21(0x9c)]),_0xc6755f=_0x19dd3a[_0x205e21(0xe1)],_0x359bde=_0xc6755f['getContext'](),_0x24268c=_0xc6755f[_0x205e21(0xa3)]()[_0x205e21(0xd8)](_0x649787);this['logger'][_0x205e21(0x92)](_0x205e21(0xd5)+_0x4a4ca7);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x1e4450='',[TestFrameworkConstants[_0x205e21(0xdc)]]:_0x3aa80a='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x4db72b='',[TestFrameworkConstants[_0x205e21(0xcd)]]:_0x506c79=''}=_0x24268c,_0x21f441=_0xc6755f[_0x205e21(0xa0)]()[_0x205e21(0x8c)]()[_0x205e21(0xe8)]('.')[0x1],_0x5f3422=_0xc6755f[_0x205e21(0xc8)]()[_0x205e21(0x8c)]()['split']('.')[0x1],_0x36538e=global?.[_0x205e21(0xeb)]?.[_0x205e21(0x91)]?.['parallelIndex'];;const _0x410817=_0xc6755f[_0x205e21(0xe6)](),_0x10f2d2=Buffer[_0x205e21(0xbf)](JSON[_0x205e21(0xb5)](_0x24268c))['toString'](_0x88fbfc[_0x205e21(0x9a)]),_0x2db313={'hash':_0x359bde['getId'](),'threadId':_0x359bde[_0x205e21(0xef)]()[_0x205e21(0x8c)](),'processId':_0x359bde[_0x205e21(0xda)]()[_0x205e21(0x8c)]()},_0x39e549={};_0x39e549['platformIndex']=_0x36538e,_0x39e549[_0x205e21(0xa4)]=_0x1e4450,_0x39e549[_0x205e21(0xa1)]=_0x3aa80a,_0x39e549[_0x205e21(0xf0)]=_0x21f441,_0x39e549[_0x205e21(0x8e)]=_0x5f3422,_0x39e549[_0x205e21(0xed)]=_0x4db72b,_0x39e549['endedAt']=_0x506c79,_0x39e549[_0x205e21(0xd0)]=_0x410817,_0x39e549['eventJson']=_0x10f2d2,_0x39e549[_0x205e21(0xad)]=_0x2db313;const _0x4edf9c=_0x39e549,_0x1fdf57=await GrpcClient[_0x205e21(0x99)]()['testFrameworkEvent'](_0x4edf9c);this[_0x205e21(0xb8)][_0x205e21(0x92)](_0x205e21(0x87)+_0x4a4ca7+_0x205e21(0xd9)+_0x21f441+_0x205e21(0xf1)+_0x5f3422);}catch(_0x1a3712){this[_0x205e21(0xb8)][_0x205e21(0xac)]('Error\x20in\x20sendTestFrameworkEvent:\x20'+util[_0x205e21(0x98)](_0x1a3712));}}async['onPageCreate'](_0x7e2e40){const _0x2aa28d=a78_0x3071e7,_0x34b0a9={'aGMzD':function(_0x5eb4cd,_0x4e4028){return _0x5eb4cd(_0x4e4028);},'lFOLM':_0x2aa28d(0xba)};try{if(_0x7e2e40['page']){const _0x161d86=_0x7e2e40[_0x2aa28d(0xe4)][_0x2aa28d(0x89)];this[_0x2aa28d(0xb8)][_0x2aa28d(0x92)](_0x2aa28d(0xe0)+_0x161d86);const _0x73939e=TestInfo[_0x2aa28d(0xec)](_0x7e2e40[_0x2aa28d(0xe4)],_0x7e2e40[_0x2aa28d(0xe4)][_0x2aa28d(0x9c)]),_0x5b3464=TestInfo[_0x2aa28d(0xc1)](_0x73939e),_0x42711b=TestInfo[_0x2aa28d(0x9b)](_0x73939e),_0x2c1d40=_0x7e2e40[_0x2aa28d(0xe1)],_0x3d27fc=AutomationFramework[_0x2aa28d(0xd4)](_0x2c1d40,PlaywrightDriverModule[_0x2aa28d(0x97)]),_0x4d73ac=_0x42711b[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']],_0x55b381=_0x42711b[TestFrameworkConstants[_0x2aa28d(0xdc)]],_0x14feb7=TestFrameworkState[_0x2aa28d(0xa2)][_0x2aa28d(0x8c)]()['split']('.')[0x1],_0x4bfaac=HookState['POST'][_0x2aa28d(0x8c)]()['split']('.')[0x1],_0x16e2ab=_0x2c1d40[_0x2aa28d(0x8b)](),_0x6cf0cc=AutomationFramework['getState'](_0x2c1d40,PlaywrightDriverModule[_0x2aa28d(0xb7)],''),_0x1d25f5={'provider':_0x34b0a9[_0x2aa28d(0xab)](getPlaywrightProvider,_0x6cf0cc),'frameworkName':_0x2c1d40[_0x2aa28d(0xce)],'frameworkVersion':_0x2c1d40[_0x2aa28d(0xe5)],'frameworkSessionId':AutomationFramework[_0x2aa28d(0xd4)](_0x2c1d40,PlaywrightDriverModule[_0x2aa28d(0x9e)],''),'ref':_0x2c1d40[_0x2aa28d(0xe6)](),'hubUrl':_0x6cf0cc};let _0x1ad3f9=AutomationFramework[_0x2aa28d(0xd4)](_0x2c1d40,PlaywrightDriverModule['KEY_CAPABILITIES'],{});_0x1ad3f9=Buffer['from'](JSON['stringify'](_0x1ad3f9))[_0x2aa28d(0x8c)](_0x34b0a9[_0x2aa28d(0xbe)]);const _0x3fd41b={'hash':_0x16e2ab[_0x2aa28d(0xd6)](),'threadId':_0x16e2ab[_0x2aa28d(0xef)]()['toString'](),'processId':_0x16e2ab[_0x2aa28d(0xda)]()[_0x2aa28d(0x8c)]()},_0x27a5cd={};_0x27a5cd['platformIndex']=_0x3d27fc,_0x27a5cd['testFrameworkName']=_0x4d73ac,_0x27a5cd[_0x2aa28d(0xa1)]=_0x55b381,_0x27a5cd[_0x2aa28d(0xf0)]=_0x14feb7,_0x27a5cd[_0x2aa28d(0x93)]=_0x4bfaac,_0x27a5cd['testUuid']=_0x5b3464,_0x27a5cd[_0x2aa28d(0xa5)]=_0x1d25f5,_0x27a5cd[_0x2aa28d(0xa7)]=_0x1ad3f9,_0x27a5cd['executionContext']=_0x3fd41b;const _0x3ab3a2=_0x27a5cd;this[_0x2aa28d(0xb8)][_0x2aa28d(0x92)]('onPageCreate\x20CBTSession\x20payload:\x20'+util[_0x2aa28d(0x98)](_0x3ab3a2));const _0x3b5f5b=await GrpcClient[_0x2aa28d(0x99)]()[_0x2aa28d(0xb0)](_0x3ab3a2);this[_0x2aa28d(0xb8)][_0x2aa28d(0x92)](_0x2aa28d(0xc6)+_0x161d86);}}catch(_0x121248){this['logger'][_0x2aa28d(0xac)]('Error\x20in\x20sending\x20CBTSession:\x20'+util[_0x2aa28d(0x98)](_0x121248));}}}function a78_0x1bf7(_0x3c1611,_0x1c787c){const _0x2992ab=a78_0x2992();return a78_0x1bf7=function(_0x1bf7cf,_0xf30840){_0x1bf7cf=_0x1bf7cf-0x86;let _0x3b5dd7=_0x2992ab[_0x1bf7cf];return _0x3b5dd7;},a78_0x1bf7(_0x3c1611,_0x1c787c);}TestHubModule[a78_0x3071e7(0xd7)]='TestHubModule',TestHubModule[a78_0x3071e7(0xd1)]=a78_0x3071e7(0x8f),module[a78_0x3071e7(0x95)]=TestHubModule;
@@ -1 +1 @@
1
- const a79_0x2de4a3=a79_0x119b;(function(_0x5f0ad1,_0x222796){const _0x3938ec=a79_0x119b,_0x31c244=_0x5f0ad1();while(!![]){try{const _0x55bc66=parseInt(_0x3938ec(0xa7))/0x1*(parseInt(_0x3938ec(0xc0))/0x2)+parseInt(_0x3938ec(0xae))/0x3*(-parseInt(_0x3938ec(0xbb))/0x4)+-parseInt(_0x3938ec(0xaa))/0x5*(-parseInt(_0x3938ec(0xa9))/0x6)+-parseInt(_0x3938ec(0xb6))/0x7+parseInt(_0x3938ec(0xb8))/0x8*(-parseInt(_0x3938ec(0xc1))/0x9)+parseInt(_0x3938ec(0xad))/0xa*(parseInt(_0x3938ec(0xac))/0xb)+-parseInt(_0x3938ec(0xbe))/0xc;if(_0x55bc66===_0x222796)break;else _0x31c244['push'](_0x31c244['shift']());}catch(_0x1eef1b){_0x31c244['push'](_0x31c244['shift']());}}}(a79_0x22d3,0x2ca06));const {PLAYWRIGHT}=require('../../utils/constants'),a79_0x25abc4={};a79_0x25abc4[a79_0x2de4a3(0xaf)]=0x0,a79_0x25abc4['toString']=function(){const _0x5252ab=a79_0x2de4a3,_0x2c4455={};_0x2c4455[_0x5252ab(0xb9)]=_0x5252ab(0xb1);const _0x465e9b=_0x2c4455;return _0x465e9b['DkHkP'];};const a79_0x4ef43d={};a79_0x4ef43d[a79_0x2de4a3(0xaf)]=0x1,a79_0x4ef43d[a79_0x2de4a3(0xb5)]=function(){const _0x17a8bc=a79_0x2de4a3,_0x1b58d0={};_0x1b58d0[_0x17a8bc(0xbf)]='AutomationFrameworkState.CREATE';const _0x45147c=_0x1b58d0;return _0x45147c['AeEGe'];};const a79_0x17421f={};a79_0x17421f[a79_0x2de4a3(0xaf)]=0x2,a79_0x17421f[a79_0x2de4a3(0xb5)]=function(){const _0x3e05b8=a79_0x2de4a3,_0x595c06={};_0x595c06['zGLSC']=_0x3e05b8(0xab);const _0x1c7c35=_0x595c06;return _0x1c7c35[_0x3e05b8(0xb4)];};const a79_0x7fcaee={};a79_0x7fcaee[a79_0x2de4a3(0xaf)]=0x3,a79_0x7fcaee['toString']=function(){const _0x3c69da=a79_0x2de4a3,_0xe2d31b={};_0xe2d31b[_0x3c69da(0xa8)]='AutomationFrameworkState.EXECUTE';const _0x377f1c=_0xe2d31b;return _0x377f1c[_0x3c69da(0xa8)];};const a79_0x196e86={};a79_0x196e86['value']=0x4,a79_0x196e86[a79_0x2de4a3(0xb5)]=function(){const _0x531f84=a79_0x2de4a3,_0x46a315={};_0x46a315[_0x531f84(0xb7)]=_0x531f84(0xbd);const _0x3ab919=_0x46a315;return _0x3ab919[_0x531f84(0xb7)];};const a79_0x183b09={};a79_0x183b09[a79_0x2de4a3(0xaf)]=0x5,a79_0x183b09['toString']=function(){const _0x2cccbb=a79_0x2de4a3,_0x11e45a={};_0x11e45a[_0x2cccbb(0xb3)]=_0x2cccbb(0xb0);const _0x3933fb=_0x11e45a;return _0x3933fb['HzbGv'];};const AutomationFrameworkState=Object[a79_0x2de4a3(0xba)]({'NONE':a79_0x25abc4,'CREATE':a79_0x4ef43d,'PLAYWRIGHT_DISPATCH':a79_0x17421f,'EXECUTE':a79_0x7fcaee,'IDLE':a79_0x196e86,'QUIT':a79_0x183b09,'fromValue'(_0x44f99d){const _0x1a19ca=a79_0x2de4a3;return Object['values'](AutomationFrameworkState)[_0x1a19ca(0xb2)](_0x2ca533=>_0x2ca533[_0x1a19ca(0xaf)]===_0x44f99d);}});function a79_0x22d3(){const _0x5a2f80=['3261929dRdrrR','10AKQxrO','55623tsplzU','value','AutomationFrameworkState.QUIT','AutomationFrameworkState.NONE','find','HzbGv','zGLSC','toString','823410VHJbtK','mDlam','27248jhMxCm','DkHkP','freeze','44ipCJst','exports','AutomationFrameworkState.IDLE','1275060xdeqfh','AeEGe','386HGyWYs','36NQdlra','484wskyqX','ZBikR','402WdQBag','17485BrJfGZ','AutomationFrameworkState.PLAYWRIGHT_DISPATCH'];a79_0x22d3=function(){return _0x5a2f80;};return a79_0x22d3();}function a79_0x119b(_0x572f1d,_0x1db9ab){const _0x22d392=a79_0x22d3();return a79_0x119b=function(_0x119bf3,_0x337597){_0x119bf3=_0x119bf3-0xa7;let _0x24b177=_0x22d392[_0x119bf3];return _0x24b177;},a79_0x119b(_0x572f1d,_0x1db9ab);}module[a79_0x2de4a3(0xbc)]=AutomationFrameworkState;
1
+ const a79_0x394f88=a79_0x102f;(function(_0x3ebd21,_0x331155){const _0x43c57e=a79_0x102f,_0x1051e1=_0x3ebd21();while(!![]){try{const _0x3b3e6b=-parseInt(_0x43c57e(0x1dd))/0x1*(parseInt(_0x43c57e(0x1e3))/0x2)+-parseInt(_0x43c57e(0x1db))/0x3*(parseInt(_0x43c57e(0x1e7))/0x4)+-parseInt(_0x43c57e(0x1ec))/0x5+-parseInt(_0x43c57e(0x1eb))/0x6+-parseInt(_0x43c57e(0x1e5))/0x7+parseInt(_0x43c57e(0x1d9))/0x8*(parseInt(_0x43c57e(0x1d2))/0x9)+-parseInt(_0x43c57e(0x1d3))/0xa*(-parseInt(_0x43c57e(0x1e4))/0xb);if(_0x3b3e6b===_0x331155)break;else _0x1051e1['push'](_0x1051e1['shift']());}catch(_0x1a615e){_0x1051e1['push'](_0x1051e1['shift']());}}}(a79_0xda08,0x71962));const {PLAYWRIGHT}=require('../../utils/constants'),a79_0xc7b200={};a79_0xc7b200[a79_0x394f88(0x1e1)]=0x0,a79_0xc7b200['toString']=function(){const _0x2f2447=a79_0x394f88,_0x1ad176={};_0x1ad176[_0x2f2447(0x1e2)]=_0x2f2447(0x1e0);const _0x245dfa=_0x1ad176;return _0x245dfa[_0x2f2447(0x1e2)];};const a79_0x2f5a69={};a79_0x2f5a69[a79_0x394f88(0x1e1)]=0x1,a79_0x2f5a69[a79_0x394f88(0x1de)]=function(){const _0x484a16=a79_0x394f88,_0x5d7b96={};_0x5d7b96[_0x484a16(0x1da)]=_0x484a16(0x1d4);const _0x2ff993=_0x5d7b96;return _0x2ff993[_0x484a16(0x1da)];};function a79_0x102f(_0x5ce8ee,_0x9a2317){const _0xda08c9=a79_0xda08();return a79_0x102f=function(_0x102fbe,_0x103809){_0x102fbe=_0x102fbe-0x1d1;let _0x5509df=_0xda08c9[_0x102fbe];return _0x5509df;},a79_0x102f(_0x5ce8ee,_0x9a2317);}const a79_0x15fbc7={};function a79_0xda08(){const _0x5e73e4=['8644JbbWMh','2357839xHaqws','5247165wJobMt','QioaK','4SBPVda','AutomationFrameworkState.EXECUTE','find','AutomationFrameworkState.IDLE','3141636PZTnVs','3646835zuKVAo','AutomationFrameworkState.PLAYWRIGHT_DISPATCH','14454VQPejo','130ZtgUNo','AutomationFrameworkState.CREATE','XrGRT','exports','IJaYJ','ZAPWA','240OZHlHW','NWsUZ','283839QVWZLk','freeze','63Yfzkqz','toString','AutomationFrameworkState.QUIT','AutomationFrameworkState.NONE','value','ZRlro'];a79_0xda08=function(){return _0x5e73e4;};return a79_0xda08();}a79_0x15fbc7['value']=0x2,a79_0x15fbc7['toString']=function(){const _0x545615=a79_0x394f88,_0x1cc485={};_0x1cc485[_0x545615(0x1d5)]=_0x545615(0x1d1);const _0x4d9c69=_0x1cc485;return _0x4d9c69[_0x545615(0x1d5)];};const a79_0x1b4239={};a79_0x1b4239[a79_0x394f88(0x1e1)]=0x3,a79_0x1b4239[a79_0x394f88(0x1de)]=function(){const _0x14fc4a=a79_0x394f88,_0x4c1915={};_0x4c1915['ZAPWA']=_0x14fc4a(0x1e8);const _0x54ccae=_0x4c1915;return _0x54ccae[_0x14fc4a(0x1d8)];};const a79_0x5a8768={};a79_0x5a8768['value']=0x4,a79_0x5a8768[a79_0x394f88(0x1de)]=function(){const _0x706d6b=a79_0x394f88,_0x462d1c={};_0x462d1c[_0x706d6b(0x1d7)]=_0x706d6b(0x1ea);const _0x564f53=_0x462d1c;return _0x564f53[_0x706d6b(0x1d7)];};const a79_0x268654={};a79_0x268654[a79_0x394f88(0x1e1)]=0x5,a79_0x268654[a79_0x394f88(0x1de)]=function(){const _0x3c4af5=a79_0x394f88,_0x24f36b={};_0x24f36b[_0x3c4af5(0x1e6)]=_0x3c4af5(0x1df);const _0x22da75=_0x24f36b;return _0x22da75[_0x3c4af5(0x1e6)];};const AutomationFrameworkState=Object[a79_0x394f88(0x1dc)]({'NONE':a79_0xc7b200,'CREATE':a79_0x2f5a69,'PLAYWRIGHT_DISPATCH':a79_0x15fbc7,'EXECUTE':a79_0x1b4239,'IDLE':a79_0x5a8768,'QUIT':a79_0x268654,'fromValue'(_0x36e5e7){const _0x32be98=a79_0x394f88;return Object['values'](AutomationFrameworkState)[_0x32be98(0x1e9)](_0x41c90a=>_0x41c90a[_0x32be98(0x1e1)]===_0x36e5e7);}});module[a79_0x394f88(0x1d6)]=AutomationFrameworkState;
@@ -1 +1 @@
1
- const a80_0x178d0b=a80_0x4d4e;function a80_0x3169(){const _0x322d22=['7731IlegAL','14qyhaKU','7054992fZjowR','XzJgB','4840317OsLbjl','4849024olaOOC','327656FYkkKh','freeze','42891400FxjqXJ','JfQHB','HookState.PRE','1054346FnboOT','70TPuOjV','value','bNVMz','toString','values','586sStSjl','HookState.POST','find'];a80_0x3169=function(){return _0x322d22;};return a80_0x3169();}(function(_0x22ce62,_0x2d52bb){const _0x25e652=a80_0x4d4e,_0x1533d3=_0x22ce62();while(!![]){try{const _0x134308=-parseInt(_0x25e652(0x9c))/0x1+parseInt(_0x25e652(0x8e))/0x2*(-parseInt(_0x25e652(0x91))/0x3)+-parseInt(_0x25e652(0x97))/0x4*(-parseInt(_0x25e652(0x9d))/0x5)+-parseInt(_0x25e652(0x93))/0x6+parseInt(_0x25e652(0x92))/0x7*(-parseInt(_0x25e652(0x96))/0x8)+-parseInt(_0x25e652(0x95))/0x9+parseInt(_0x25e652(0x99))/0xa;if(_0x134308===_0x2d52bb)break;else _0x1533d3['push'](_0x1533d3['shift']());}catch(_0x4bddb6){_0x1533d3['push'](_0x1533d3['shift']());}}}(a80_0x3169,0xab0d4));const a80_0x5f24ee={};function a80_0x4d4e(_0x5ce057,_0x45ac23){const _0x3169b6=a80_0x3169();return a80_0x4d4e=function(_0x4d4e2d,_0x48706a){_0x4d4e2d=_0x4d4e2d-0x8e;let _0x3979f7=_0x3169b6[_0x4d4e2d];return _0x3979f7;},a80_0x4d4e(_0x5ce057,_0x45ac23);}a80_0x5f24ee[a80_0x178d0b(0x9e)]=0x0,a80_0x5f24ee[a80_0x178d0b(0xa0)]=function(){const _0xb7e382=a80_0x178d0b,_0x27d645={};_0x27d645[_0xb7e382(0x9f)]='HookState.NONE';const _0x47d6bc=_0x27d645;return _0x47d6bc[_0xb7e382(0x9f)];};const a80_0x41ae54={};a80_0x41ae54[a80_0x178d0b(0x9e)]=0x1,a80_0x41ae54['toString']=function(){const _0x52475c=a80_0x178d0b,_0x59582e={};_0x59582e[_0x52475c(0x9a)]=_0x52475c(0x9b);const _0x1c75ba=_0x59582e;return _0x1c75ba[_0x52475c(0x9a)];};const a80_0x4a3849={};a80_0x4a3849[a80_0x178d0b(0x9e)]=0x2,a80_0x4a3849[a80_0x178d0b(0xa0)]=function(){const _0x152165=a80_0x178d0b,_0x49800f={};_0x49800f[_0x152165(0x94)]=_0x152165(0x8f);const _0x2d0249=_0x49800f;return _0x2d0249[_0x152165(0x94)];};const HookState=Object[a80_0x178d0b(0x98)]({'NONE':a80_0x5f24ee,'PRE':a80_0x41ae54,'POST':a80_0x4a3849,'fromValue'(_0x4ee70f){const _0x256762=a80_0x178d0b;return Object[_0x256762(0xa1)](HookState)[_0x256762(0x90)](_0x1997bf=>_0x1997bf[_0x256762(0x9e)]===_0x4ee70f);}});module['exports']=HookState;
1
+ const a80_0x225d88=a80_0x17ff;(function(_0x467146,_0x24abf6){const _0x345280=a80_0x17ff,_0x223e96=_0x467146();while(!![]){try{const _0xdfdf8b=-parseInt(_0x345280(0x1f2))/0x1*(parseInt(_0x345280(0x1e5))/0x2)+parseInt(_0x345280(0x1f0))/0x3+-parseInt(_0x345280(0x1e9))/0x4+parseInt(_0x345280(0x1ee))/0x5*(-parseInt(_0x345280(0x1e7))/0x6)+-parseInt(_0x345280(0x1ea))/0x7+parseInt(_0x345280(0x1f3))/0x8+-parseInt(_0x345280(0x1e8))/0x9*(-parseInt(_0x345280(0x1f5))/0xa);if(_0xdfdf8b===_0x24abf6)break;else _0x223e96['push'](_0x223e96['shift']());}catch(_0x43264e){_0x223e96['push'](_0x223e96['shift']());}}}(a80_0xc8f6,0x77b73));const a80_0x5f53fc={};a80_0x5f53fc[a80_0x225d88(0x1eb)]=0x0,a80_0x5f53fc[a80_0x225d88(0x1e6)]=function(){const _0x466a37=a80_0x225d88,_0x178a02={};_0x178a02['jRaTz']=_0x466a37(0x1ed);const _0x3a2c75=_0x178a02;return _0x3a2c75[_0x466a37(0x1f7)];};function a80_0x17ff(_0x59639f,_0x388baf){const _0xc8f639=a80_0xc8f6();return a80_0x17ff=function(_0x17ff28,_0x236af){_0x17ff28=_0x17ff28-0x1e4;let _0x26189a=_0xc8f639[_0x17ff28];return _0x26189a;},a80_0x17ff(_0x59639f,_0x388baf);}const a80_0x35c5f5={};a80_0x35c5f5[a80_0x225d88(0x1eb)]=0x1,a80_0x35c5f5[a80_0x225d88(0x1e6)]=function(){const _0x503b1a=a80_0x225d88,_0x37f846={};_0x37f846[_0x503b1a(0x1f6)]=_0x503b1a(0x1ef);const _0x463206=_0x37f846;return _0x463206['WBohs'];};const a80_0x5c8e3d={};a80_0x5c8e3d['value']=0x2,a80_0x5c8e3d['toString']=function(){const _0x37e710=a80_0x225d88,_0xe1e244={};_0xe1e244[_0x37e710(0x1f4)]=_0x37e710(0x1f1);const _0x4e0378=_0xe1e244;return _0x4e0378[_0x37e710(0x1f4)];};const HookState=Object[a80_0x225d88(0x1e4)]({'NONE':a80_0x5f53fc,'PRE':a80_0x35c5f5,'POST':a80_0x5c8e3d,'fromValue'(_0x55cd1c){const _0x45aa62=a80_0x225d88;return Object[_0x45aa62(0x1ec)](HookState)['find'](_0x8c780a=>_0x8c780a[_0x45aa62(0x1eb)]===_0x55cd1c);}});module['exports']=HookState;function a80_0xc8f6(){const _0x2a5c98=['3205790KwSDlv','value','values','HookState.NONE','2400SsyOMz','HookState.PRE','2919927gpNmrc','HookState.POST','1SFrLcL','4222952AyIjGR','gbqrq','170AYmqbQ','WBohs','jRaTz','freeze','1831436IkoBsT','toString','894mZedGl','704538DiemWZ','3585636slGZgW'];a80_0xc8f6=function(){return _0x2a5c98;};return a80_0xc8f6();}
@@ -1 +1 @@
1
- function a81_0xa541(_0x5f3584,_0x1cd270){const _0x4e691e=a81_0x4e69();return a81_0xa541=function(_0xa54150,_0x221d84){_0xa54150=_0xa54150-0x11c;let _0x1b166d=_0x4e691e[_0xa54150];return _0x1b166d;},a81_0xa541(_0x5f3584,_0x1cd270);}const a81_0x56231a=a81_0xa541;(function(_0x3278c0,_0x2b69db){const _0x2e9431=a81_0xa541,_0x3c7c9b=_0x3278c0();while(!![]){try{const _0x38458b=parseInt(_0x2e9431(0x138))/0x1*(-parseInt(_0x2e9431(0x120))/0x2)+-parseInt(_0x2e9431(0x130))/0x3*(-parseInt(_0x2e9431(0x129))/0x4)+-parseInt(_0x2e9431(0x13a))/0x5+-parseInt(_0x2e9431(0x13b))/0x6*(-parseInt(_0x2e9431(0x133))/0x7)+parseInt(_0x2e9431(0x125))/0x8*(parseInt(_0x2e9431(0x12d))/0x9)+-parseInt(_0x2e9431(0x128))/0xa+parseInt(_0x2e9431(0x131))/0xb;if(_0x38458b===_0x2b69db)break;else _0x3c7c9b['push'](_0x3c7c9b['shift']());}catch(_0x33f172){_0x3c7c9b['push'](_0x3c7c9b['shift']());}}}(a81_0x4e69,0xb8648));const a81_0x13e91c={};a81_0x13e91c['value']=0x0,a81_0x13e91c[a81_0x56231a(0x134)]=function(){const _0x5b8fef=a81_0x56231a,_0x5438a4={};_0x5438a4[_0x5b8fef(0x124)]=_0x5b8fef(0x11d);const _0x5c57e5=_0x5438a4;return _0x5c57e5[_0x5b8fef(0x124)];};const a81_0x437b89={};a81_0x437b89[a81_0x56231a(0x127)]=0x1,a81_0x437b89[a81_0x56231a(0x134)]=function(){const _0x226088=a81_0x56231a,_0x5cefde={};_0x5cefde[_0x226088(0x12f)]='TestFrameworkState.BEFORE_ALL';const _0x3c45ef=_0x5cefde;return _0x3c45ef[_0x226088(0x12f)];};const a81_0x2d2b6b={};a81_0x2d2b6b['value']=0x2,a81_0x2d2b6b[a81_0x56231a(0x134)]=function(){const _0x4c9f73=a81_0x56231a,_0x1f56ad={};_0x1f56ad['ctLmo']=_0x4c9f73(0x121);const _0x52608c=_0x1f56ad;return _0x52608c[_0x4c9f73(0x137)];};const a81_0x1dda27={};a81_0x1dda27['value']=0x3,a81_0x1dda27[a81_0x56231a(0x134)]=function(){const _0x246de9=a81_0x56231a,_0x501954={};_0x501954[_0x246de9(0x122)]=_0x246de9(0x12b);const _0x4825ab=_0x501954;return _0x4825ab['RdklH'];};const a81_0x15b3de={};a81_0x15b3de[a81_0x56231a(0x127)]=0x4,a81_0x15b3de['toString']=function(){const _0x104a07=a81_0x56231a,_0x533892={};_0x533892[_0x104a07(0x126)]='TestFrameworkState.INIT_TEST';const _0x588a22=_0x533892;return _0x588a22[_0x104a07(0x126)];};function a81_0x4e69(){const _0x4aac7e=['73166bIPrqF','TestFrameworkState.LOG','RdklH','RNKAV','fIfvV','5384oYPZzn','DAmCO','value','6332890ewblfL','744rxvDae','TestFrameworkState.AFTER_ALL','TestFrameworkState.SETUP_FIXTURE','TestFrameworkState.BEFORE_EACH','6516lYbqda','OkXfO','uSzVl','16935wkTPfS','4200339WkCnfL','sVakx','1162lFtPTg','toString','ptNKd','freeze','ctLmo','2duGKHo','CqGsU','6278190JZYZCb','28854eHkVew','TestFrameworkState.TEST_SCREENSHOT','TestFrameworkState.STEP','TestFrameworkState.NONE','values','UfLSw'];a81_0x4e69=function(){return _0x4aac7e;};return a81_0x4e69();}const a81_0x1fe17c={};a81_0x1fe17c['value']=0x5,a81_0x1fe17c[a81_0x56231a(0x134)]=function(){const _0xc09468=a81_0x56231a,_0x5d7d6d={};_0x5d7d6d['jLNjc']=_0xc09468(0x12c);const _0x58c42b=_0x5d7d6d;return _0x58c42b['jLNjc'];};const a81_0x279659={};a81_0x279659[a81_0x56231a(0x127)]=0x6,a81_0x279659[a81_0x56231a(0x134)]=function(){const _0x126c2c=a81_0x56231a,_0xb2fe41={};_0xb2fe41[_0x126c2c(0x11f)]='TestFrameworkState.AFTER_EACH';const _0xc9aca1=_0xb2fe41;return _0xc9aca1[_0x126c2c(0x11f)];};const a81_0x430691={};a81_0x430691[a81_0x56231a(0x127)]=0x7,a81_0x430691[a81_0x56231a(0x134)]=function(){const _0x253ef9=a81_0x56231a,_0x3388d4={};_0x3388d4['OkXfO']='TestFrameworkState.TEST';const _0x5ace1e=_0x3388d4;return _0x5ace1e[_0x253ef9(0x12e)];};const a81_0xd0d239={};a81_0xd0d239[a81_0x56231a(0x127)]=0x8,a81_0xd0d239[a81_0x56231a(0x134)]=function(){const _0x39f514=a81_0x56231a,_0x51ca2c={};_0x51ca2c['sVakx']=_0x39f514(0x11c);const _0x5e5d09=_0x51ca2c;return _0x5e5d09[_0x39f514(0x132)];};const a81_0x17d2a4={};a81_0x17d2a4['value']=0x9,a81_0x17d2a4[a81_0x56231a(0x134)]=function(){const _0x23e58b=a81_0x56231a,_0x16f485={};_0x16f485[_0x23e58b(0x135)]='TestFrameworkState.LOG_REPORT';const _0x22e3a1=_0x16f485;return _0x22e3a1[_0x23e58b(0x135)];};const a81_0x539520={};a81_0x539520[a81_0x56231a(0x127)]=0xa,a81_0x539520[a81_0x56231a(0x134)]=function(){const _0x4480fa=a81_0x56231a,_0x452da8={};_0x452da8[_0x4480fa(0x139)]=_0x4480fa(0x12a);const _0x2e3c94=_0x452da8;return _0x2e3c94[_0x4480fa(0x139)];};const a81_0x59de95={};a81_0x59de95[a81_0x56231a(0x127)]=0xb,a81_0x59de95[a81_0x56231a(0x134)]=function(){const _0x220fdc=a81_0x56231a,_0x684fa3={};_0x684fa3[_0x220fdc(0x123)]=_0x220fdc(0x13c);const _0x276261=_0x684fa3;return _0x276261['RNKAV'];};const TestFrameworkState=Object[a81_0x56231a(0x136)]({'NONE':a81_0x13e91c,'BEFORE_ALL':a81_0x437b89,'LOG':a81_0x2d2b6b,'SETUP_FIXTURE':a81_0x1dda27,'INIT_TEST':a81_0x15b3de,'BEFORE_EACH':a81_0x1fe17c,'AFTER_EACH':a81_0x279659,'TEST':a81_0x430691,'STEP':a81_0xd0d239,'LOG_REPORT':a81_0x17d2a4,'AFTER_ALL':a81_0x539520,'TEST_SCREENSHOT':a81_0x59de95,'fromValue'(_0x536e29){const _0x22eb0e=a81_0x56231a;return Object[_0x22eb0e(0x11e)](TestFrameworkState)['find'](_0x55c643=>_0x55c643[_0x22eb0e(0x127)]===_0x536e29);}});module['exports']=TestFrameworkState;
1
+ const a81_0x1f6915=a81_0xd142;function a81_0x4a8b(){const _0x1a4071=['2194820yrQNFE','MNjMM','TestFrameworkState.LOG','value','4oBrZHU','106909oUONkX','TKmVc','TestFrameworkState.BEFORE_EACH','TestFrameworkState.SETUP_FIXTURE','199737ntHTMz','120YrkrIO','1556121RWZEYd','1997340yWUKHB','toString','exports','dvlXs','YJfin','TestFrameworkState.NONE','qFTUp','691ZsLcAP','nChGm','IkaXd','ypNiH','DadQZ','TestFrameworkState.TEST','yrTLd','values','TestFrameworkState.BEFORE_ALL','TestFrameworkState.STEP','aApni','3613080aKywlh','zpVHM','freeze','630JFfxpf','1910IrKDZd','TestFrameworkState.AFTER_EACH','find'];a81_0x4a8b=function(){return _0x1a4071;};return a81_0x4a8b();}(function(_0x247af1,_0x1a55cf){const _0x55c5c9=a81_0xd142,_0x35749d=_0x247af1();while(!![]){try{const _0x51403f=-parseInt(_0x55c5c9(0xb6))/0x1*(parseInt(_0x55c5c9(0xc5))/0x2)+parseInt(_0x55c5c9(0xaf))/0x3+-parseInt(_0x55c5c9(0xcc))/0x4*(-parseInt(_0x55c5c9(0xc8))/0x5)+-parseInt(_0x55c5c9(0xc1))/0x6+parseInt(_0x55c5c9(0xd3))/0x7+-parseInt(_0x55c5c9(0xd2))/0x8*(parseInt(_0x55c5c9(0xd1))/0x9)+parseInt(_0x55c5c9(0xc4))/0xa*(parseInt(_0x55c5c9(0xcd))/0xb);if(_0x51403f===_0x1a55cf)break;else _0x35749d['push'](_0x35749d['shift']());}catch(_0x224eeb){_0x35749d['push'](_0x35749d['shift']());}}}(a81_0x4a8b,0x5412c));const a81_0x3ff3bb={};a81_0x3ff3bb[a81_0x1f6915(0xcb)]=0x0,a81_0x3ff3bb['toString']=function(){const _0x1127e2=a81_0x1f6915,_0x1ee583={};_0x1ee583[_0x1127e2(0xb3)]=_0x1127e2(0xb4);const _0x14ec6f=_0x1ee583;return _0x14ec6f[_0x1127e2(0xb3)];};const a81_0xe8e21d={};a81_0xe8e21d[a81_0x1f6915(0xcb)]=0x1,a81_0xe8e21d[a81_0x1f6915(0xb0)]=function(){const _0x4ab31b=a81_0x1f6915,_0x8a7c6b={};_0x8a7c6b[_0x4ab31b(0xb7)]=_0x4ab31b(0xbe);const _0x3803c4=_0x8a7c6b;return _0x3803c4[_0x4ab31b(0xb7)];};const a81_0x4bc80b={};function a81_0xd142(_0x27892a,_0x2b6fa2){const _0x4a8bb1=a81_0x4a8b();return a81_0xd142=function(_0xd1421c,_0x2ccac4){_0xd1421c=_0xd1421c-0xaf;let _0x395985=_0x4a8bb1[_0xd1421c];return _0x395985;},a81_0xd142(_0x27892a,_0x2b6fa2);}a81_0x4bc80b[a81_0x1f6915(0xcb)]=0x2,a81_0x4bc80b['toString']=function(){const _0x2087b8=a81_0x1f6915,_0x2aa58c={};_0x2aa58c[_0x2087b8(0xc0)]=_0x2087b8(0xca);const _0x1608e7=_0x2aa58c;return _0x1608e7[_0x2087b8(0xc0)];};const a81_0x4a8401={};a81_0x4a8401[a81_0x1f6915(0xcb)]=0x3,a81_0x4a8401[a81_0x1f6915(0xb0)]=function(){const _0x5951ed=a81_0x1f6915,_0x34ca75={};_0x34ca75[_0x5951ed(0xb8)]=_0x5951ed(0xd0);const _0x2b779e=_0x34ca75;return _0x2b779e[_0x5951ed(0xb8)];};const a81_0x13a662={};a81_0x13a662[a81_0x1f6915(0xcb)]=0x4,a81_0x13a662[a81_0x1f6915(0xb0)]=function(){const _0x3c8154=a81_0x1f6915,_0x59cc06={};_0x59cc06[_0x3c8154(0xc9)]='TestFrameworkState.INIT_TEST';const _0x585cfa=_0x59cc06;return _0x585cfa['MNjMM'];};const a81_0x21b769={};a81_0x21b769['value']=0x5,a81_0x21b769[a81_0x1f6915(0xb0)]=function(){const _0x22c038=a81_0x1f6915,_0x57a6aa={};_0x57a6aa[_0x22c038(0xce)]=_0x22c038(0xcf);const _0x114720=_0x57a6aa;return _0x114720['TKmVc'];};const a81_0x5a6544={};a81_0x5a6544['value']=0x6,a81_0x5a6544['toString']=function(){const _0x2ccd60=a81_0x1f6915,_0xf311df={};_0xf311df[_0x2ccd60(0xb2)]=_0x2ccd60(0xc6);const _0xd71a96=_0xf311df;return _0xd71a96[_0x2ccd60(0xb2)];};const a81_0x49caa7={};a81_0x49caa7[a81_0x1f6915(0xcb)]=0x7,a81_0x49caa7[a81_0x1f6915(0xb0)]=function(){const _0x91336a=a81_0x1f6915,_0x174bca={};_0x174bca[_0x91336a(0xbc)]=_0x91336a(0xbb);const _0x26ef5c=_0x174bca;return _0x26ef5c[_0x91336a(0xbc)];};const a81_0x1c725f={};a81_0x1c725f[a81_0x1f6915(0xcb)]=0x8,a81_0x1c725f[a81_0x1f6915(0xb0)]=function(){const _0x32aa38=a81_0x1f6915,_0x15d9d2={};_0x15d9d2[_0x32aa38(0xb5)]=_0x32aa38(0xbf);const _0x2f0f4f=_0x15d9d2;return _0x2f0f4f[_0x32aa38(0xb5)];};const a81_0x224812={};a81_0x224812[a81_0x1f6915(0xcb)]=0x9,a81_0x224812[a81_0x1f6915(0xb0)]=function(){const _0x1b2511=a81_0x1f6915,_0x2ae3ac={};_0x2ae3ac[_0x1b2511(0xc2)]='TestFrameworkState.LOG_REPORT';const _0x4b7aa6=_0x2ae3ac;return _0x4b7aa6[_0x1b2511(0xc2)];};const a81_0x167e81={};a81_0x167e81[a81_0x1f6915(0xcb)]=0xa,a81_0x167e81['toString']=function(){const _0xa17d9d=a81_0x1f6915,_0x4685c7={};_0x4685c7[_0xa17d9d(0xb9)]='TestFrameworkState.AFTER_ALL';const _0x18c79e=_0x4685c7;return _0x18c79e[_0xa17d9d(0xb9)];};const a81_0x5a422c={};a81_0x5a422c['value']=0xb,a81_0x5a422c[a81_0x1f6915(0xb0)]=function(){const _0xeee72a=a81_0x1f6915,_0x3540e5={};_0x3540e5[_0xeee72a(0xba)]='TestFrameworkState.TEST_SCREENSHOT';const _0x16dd2a=_0x3540e5;return _0x16dd2a[_0xeee72a(0xba)];};const TestFrameworkState=Object[a81_0x1f6915(0xc3)]({'NONE':a81_0x3ff3bb,'BEFORE_ALL':a81_0xe8e21d,'LOG':a81_0x4bc80b,'SETUP_FIXTURE':a81_0x4a8401,'INIT_TEST':a81_0x13a662,'BEFORE_EACH':a81_0x21b769,'AFTER_EACH':a81_0x5a6544,'TEST':a81_0x49caa7,'STEP':a81_0x1c725f,'LOG_REPORT':a81_0x224812,'AFTER_ALL':a81_0x167e81,'TEST_SCREENSHOT':a81_0x5a422c,'fromValue'(_0x3ff87a){const _0x995834=a81_0x1f6915;return Object[_0x995834(0xbd)](TestFrameworkState)[_0x995834(0xc7)](_0x52b75d=>_0x52b75d['value']===_0x3ff87a);}});module[a81_0x1f6915(0xb1)]=TestFrameworkState;
@@ -1 +1 @@
1
- const a82_0xbda3fa=a82_0x33da;(function(_0x16d29d,_0x203461){const _0x9d5102=a82_0x33da,_0x115d98=_0x16d29d();while(!![]){try{const _0xe6625d=parseInt(_0x9d5102(0x241))/0x1+-parseInt(_0x9d5102(0x237))/0x2+parseInt(_0x9d5102(0x1e3))/0x3*(-parseInt(_0x9d5102(0x247))/0x4)+-parseInt(_0x9d5102(0x1f5))/0x5*(-parseInt(_0x9d5102(0x226))/0x6)+-parseInt(_0x9d5102(0x223))/0x7*(parseInt(_0x9d5102(0x1ed))/0x8)+parseInt(_0x9d5102(0x1e8))/0x9*(parseInt(_0x9d5102(0x1e6))/0xa)+parseInt(_0x9d5102(0x203))/0xb;if(_0xe6625d===_0x203461)break;else _0x115d98['push'](_0x115d98['shift']());}catch(_0x5d26b4){_0x115d98['push'](_0x115d98['shift']());}}}(a82_0x337c,0xea1d3));const os=require('os'),fs=require('fs'),path=require(a82_0xbda3fa(0x211)),util=require(a82_0xbda3fa(0x248)),BrowserstackCLI=require(a82_0xbda3fa(0x23c)),https=require(a82_0xbda3fa(0x1f3)),http=require(a82_0xbda3fa(0x227)),AutomationFramework=require(a82_0xbda3fa(0x20b)),PlaywrightDriverModule=require(a82_0xbda3fa(0x213)),TestInfo=require('./TestInfo'),TestFrameworkConstants=require(a82_0xbda3fa(0x23b)),{createClassLogger}=require(a82_0xbda3fa(0x210));class uploadAttachmentsManager{static ['logger']=createClassLogger(a82_0xbda3fa(0x207));static[a82_0xbda3fa(0x246)](_0x234210,_0x35f657=![]){const _0x5d69e5=a82_0xbda3fa,_0x21b7e5={};_0x21b7e5[_0x5d69e5(0x20e)]=function(_0x16c4dc,_0x242a09){return _0x16c4dc/_0x242a09;},_0x21b7e5[_0x5d69e5(0x20c)]=function(_0x12d3d4,_0x5124d4){return _0x12d3d4*_0x5124d4;},_0x21b7e5[_0x5d69e5(0x231)]=function(_0x31afe1,_0x3e94f2){return _0x31afe1>_0x3e94f2;},_0x21b7e5[_0x5d69e5(0x1ff)]=_0x5d69e5(0x22a),_0x21b7e5[_0x5d69e5(0x1fa)]=_0x5d69e5(0x205),_0x21b7e5['REMbh']=function(_0x4d3466,_0x5633f3){return _0x4d3466===_0x5633f3;},_0x21b7e5[_0x5d69e5(0x204)]='finish',_0x21b7e5[_0x5d69e5(0x238)]=_0x5d69e5(0x1e7),_0x21b7e5[_0x5d69e5(0x1ee)]=_0x5d69e5(0x22c),_0x21b7e5[_0x5d69e5(0x230)]='Attachment\x20recevied\x20for\x20path:\x20%s',_0x21b7e5['FetwU']=_0x5d69e5(0x225),_0x21b7e5[_0x5d69e5(0x217)]='.browserstack\x20folder\x20not\x20found\x20at:\x20%s',_0x21b7e5[_0x5d69e5(0x23d)]='Created\x20.browserstack\x20folder\x20at:\x20%s',_0x21b7e5[_0x5d69e5(0x20d)]='Created\x20folder:\x20%s',_0x21b7e5[_0x5d69e5(0x235)]=function(_0x3814ff,_0x4cb5ab){return _0x3814ff===_0x4cb5ab;},_0x21b7e5[_0x5d69e5(0x24b)]='Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.',_0x21b7e5[_0x5d69e5(0x1f1)]=_0x5d69e5(0x1e4),_0x21b7e5[_0x5d69e5(0x21a)]=_0x5d69e5(0x234),_0x21b7e5[_0x5d69e5(0x22b)]=_0x5d69e5(0x201),_0x21b7e5[_0x5d69e5(0x244)]=_0x5d69e5(0x245),_0x21b7e5['DmKxs']=function(_0x3fc7f9,_0xbf8d4c){return _0x3fc7f9/_0xbf8d4c;},_0x21b7e5[_0x5d69e5(0x21e)]='File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.';const _0xbbc298=_0x21b7e5;this[_0x5d69e5(0x1e2)][_0x5d69e5(0x208)](util['format'](_0xbbc298['pdZsA'],_0x234210));const _0x14a781=os[_0x5d69e5(0x23a)](),_0x3e9dc0=path[_0x5d69e5(0x20a)](_0x14a781,_0xbbc298['FetwU']);!fs[_0x5d69e5(0x1ef)](_0x3e9dc0)&&(this[_0x5d69e5(0x1e2)]['debug'](util[_0x5d69e5(0x22f)](_0xbbc298['jgWRw'],_0x3e9dc0)),fs[_0x5d69e5(0x202)](_0x3e9dc0),this[_0x5d69e5(0x1e2)][_0x5d69e5(0x208)](util[_0x5d69e5(0x22f)](_0xbbc298[_0x5d69e5(0x23d)],_0x3e9dc0)));const _0x366295=BrowserstackCLI[_0x5d69e5(0x228)]()[_0x5d69e5(0x1f9)]['TestHubModule']?.[_0x5d69e5(0x23f)]?.[_0x5d69e5(0x1ea)]()?.[_0x5d69e5(0x236)],_0x4ec7fb=path[_0x5d69e5(0x20a)](_0x3e9dc0,_0x366295);!fs['existsSync'](_0x4ec7fb)&&(fs[_0x5d69e5(0x202)](_0x4ec7fb),this['logger']['debug'](util[_0x5d69e5(0x22f)](_0xbbc298['IYMKM'],_0x4ec7fb)));if(_0xbbc298[_0x5d69e5(0x235)](_0x234210[_0x5d69e5(0x242)](),'')){this['logger'][_0x5d69e5(0x208)](util['format'](_0xbbc298[_0x5d69e5(0x24b)]));return;}if(_0x234210['startsWith'](_0xbbc298[_0x5d69e5(0x1f1)])||_0x234210[_0x5d69e5(0x221)](_0xbbc298['wtGEI'])){const _0x3056f0=_0x234210[_0x5d69e5(0x221)](_0xbbc298[_0x5d69e5(0x1f1)])?https:http,_0x4d0a1c=path[_0x5d69e5(0x1f8)](_0x234210),_0x418898=path[_0x5d69e5(0x20a)](_0x4ec7fb,_0x4d0a1c),_0x4bc892=fs[_0x5d69e5(0x1eb)](_0x418898);_0x3056f0[_0x5d69e5(0x1fe)](_0x234210,_0x9c9f04=>{const _0x24760c=_0x5d69e5;if(_0xbbc298[_0x24760c(0x233)](_0x9c9f04[_0x24760c(0x20f)],0xc8))_0x9c9f04[_0x24760c(0x215)](_0x4bc892),_0x4bc892['on'](_0xbbc298['tsjgO'],()=>{const _0x25c7b9=_0x24760c;_0x4bc892[_0x25c7b9(0x1e9)]();const _0x50a157=fs[_0x25c7b9(0x216)](_0x418898),_0xdf893f=_0xbbc298[_0x25c7b9(0x20e)](_0x50a157[_0x25c7b9(0x219)],_0xbbc298[_0x25c7b9(0x20c)](0x400,0x400));if(_0xbbc298[_0x25c7b9(0x231)](_0xdf893f,0x64)){this[_0x25c7b9(0x1e2)][_0x25c7b9(0x208)](util[_0x25c7b9(0x22f)](_0xbbc298[_0x25c7b9(0x1ff)],_0xdf893f['toFixed'](0x2))),fs[_0x25c7b9(0x232)](_0x418898);return;}this['logger'][_0x25c7b9(0x208)](util[_0x25c7b9(0x22f)](_0xbbc298[_0x25c7b9(0x1fa)],_0x418898)),uploadAttachmentsManager['trackFile'](_0x418898,_0x35f657);});else{this['logger']['debug'](util[_0x24760c(0x22f)](_0xbbc298[_0x24760c(0x238)],_0x9c9f04['statusCode'])),_0x4bc892[_0x24760c(0x1e9)](),fs[_0x24760c(0x232)](_0x418898);return;}})['on'](_0xbbc298[_0x5d69e5(0x22b)],_0x4c0db5=>{const _0x25afee=_0x5d69e5;this[_0x25afee(0x1e2)][_0x25afee(0x208)](util[_0x25afee(0x22f)](_0xbbc298[_0x25afee(0x1ee)],_0x4c0db5[_0x25afee(0x224)])),_0x4bc892[_0x25afee(0x1e9)](),fs[_0x25afee(0x232)](_0x418898);return;});}else{if(!fs['existsSync'](_0x234210)){this[_0x5d69e5(0x1e2)][_0x5d69e5(0x208)](util[_0x5d69e5(0x22f)](_0xbbc298[_0x5d69e5(0x244)],_0x234210));return;}const _0x3c78fa=fs['statSync'](_0x234210),_0x4b76a6=_0xbbc298[_0x5d69e5(0x21d)](_0x3c78fa[_0x5d69e5(0x219)],_0xbbc298['sdRZV'](0x400,0x400));if(_0xbbc298[_0x5d69e5(0x231)](_0x4b76a6,0x64)){this['logger']['debug'](util[_0x5d69e5(0x22f)](_0xbbc298[_0x5d69e5(0x21e)],_0x4b76a6[_0x5d69e5(0x21b)](0x2)));return;}const _0x38fa2a=path[_0x5d69e5(0x1f8)](_0x234210),_0xd17c4c=path[_0x5d69e5(0x20a)](_0x4ec7fb,_0x38fa2a);fs[_0x5d69e5(0x1ec)](_0x234210,_0xd17c4c),uploadAttachmentsManager['trackFile'](_0xd17c4c,_0x35f657);}}static[a82_0xbda3fa(0x220)](_0x451403,_0x37d2ce){const _0x281c58=a82_0xbda3fa,_0x2b4d6e={};_0x2b4d6e[_0x281c58(0x222)]=_0x281c58(0x1fb),_0x2b4d6e[_0x281c58(0x240)]=_0x281c58(0x200),_0x2b4d6e[_0x281c58(0x1f7)]=_0x281c58(0x209),_0x2b4d6e[_0x281c58(0x22d)]=_0x281c58(0x212);const _0x3626d1=_0x2b4d6e;try{const _0x113454=global['__workerDetails']?.[_0x281c58(0x1f6)]?.[_0x281c58(0x1e5)],_0x16f16c=TestInfo[_0x281c58(0x24a)](_0x113454,_0x113454?.['retry']),_0x59617d=TestInfo[_0x281c58(0x243)](_0x16f16c),_0x3e600c=_0x59617d[TestFrameworkConstants[_0x281c58(0x23e)]]||{};_0x3e600c[_0x451403]={[TestFrameworkConstants[_0x281c58(0x249)]]:fs['statSync'](_0x451403)['size'],[TestFrameworkConstants[_0x281c58(0x218)]]:path['basename'](_0x451403),[TestFrameworkConstants[_0x281c58(0x21f)]]:_0x451403,[TestFrameworkConstants[_0x281c58(0x21c)]]:_0x37d2ce?_0x3626d1[_0x281c58(0x222)]:_0x3626d1[_0x281c58(0x240)]},_0x59617d[TestFrameworkConstants[_0x281c58(0x23e)]]=_0x3e600c,TestInfo[_0x281c58(0x1f2)](_0x16f16c,_0x59617d),this[_0x281c58(0x1e2)][_0x281c58(0x208)](util[_0x281c58(0x22f)](_0x3626d1['odish'],_0x451403));}catch(_0x33d93f){this['logger'][_0x281c58(0x208)](util['format'](_0x3626d1['YkuLU'],_0x33d93f[_0x281c58(0x224)]));}}static[a82_0xbda3fa(0x1fc)](){const _0x418bed=a82_0xbda3fa,_0x43d166={};_0x43d166[_0x418bed(0x206)]=_0x418bed(0x225),_0x43d166[_0x418bed(0x1f4)]=_0x418bed(0x214),_0x43d166[_0x418bed(0x1fd)]='Cleared\x20attachment\x20folder';const _0x3a5684=_0x43d166,_0x1304a5=os[_0x418bed(0x23a)](),_0x5dff48=path['join'](_0x1304a5,_0x3a5684[_0x418bed(0x206)]);if(!fs['existsSync'](_0x5dff48))return;const _0x3fa251=BrowserstackCLI[_0x418bed(0x228)]()[_0x418bed(0x1f9)][_0x418bed(0x239)]?.['testhubConfig']?.[_0x418bed(0x1ea)]()?.[_0x418bed(0x236)],_0xe5302d=_0x3fa251?path[_0x418bed(0x20a)](_0x5dff48,_0x3fa251):null;if(!_0xe5302d||!fs[_0x418bed(0x1ef)](_0xe5302d)){this[_0x418bed(0x1e2)][_0x418bed(0x208)](util['format'](_0x3a5684[_0x418bed(0x1f4)],_0x3fa251));return;}const _0x474f68={};_0x474f68['recursive']=!![],_0x474f68[_0x418bed(0x229)]=!![],fs[_0x418bed(0x1f0)](_0xe5302d,_0x474f68),this['logger']['debug'](util[_0x418bed(0x22f)](_0x3a5684['wmdMi']));}}function a82_0x33da(_0x59806b,_0x45e973){const _0x337cba=a82_0x337c();return a82_0x33da=function(_0x33dad2,_0x4f19aa){_0x33dad2=_0x33dad2-0x1e2;let _0xbeaec8=_0x337cba[_0x33dad2];return _0xbeaec8;},a82_0x33da(_0x59806b,_0x45e973);}function a82_0x337c(){const _0x77dee4=['statSync','jgWRw','KEY_FILE_NAME','size','wtGEI','toFixed','KEY_FILE_LEVEL','DmKxs','MbdVc','KEY_FILE_PATH','trackFile','startsWith','wtbly','7AwPsHQ','message','.browserstack','30JTjiCk','http','getInstance','force','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','HEVrC','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','YkuLU','exports','format','pdZsA','JZLfK','unlinkSync','REMbh','http://','OKybR','buildHashedId','3078778zPnjcc','nRQJJ','TestHubModule','homedir','./framework/constants/testFrameworkConstants','./browserstackCLI','bvpNr','KEY_TEST_ATTACHMENTS','testhubConfig','oQYAB','1152249pLXYfr','trim','getTestDetails','MiTIK','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','uploadAttachments','4756hBDiPf','util','KEY_FILE_SIZE','getTestIdentifierFromTestInfo','bWASf','logger','3981TXKvmi','https://','testInfo','6389710QGoQEV','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','9IHBHMV','close','toObject','createWriteStream','copyFileSync','7433872LIBIoq','IXYLc','existsSync','rmSync','iDDqf','setTestDetails','https','eMSCq','1230955tnePSP','currentTest','odish','basename','modules','JCIWJ','BuildLevel','clearAttachments','wmdMi','get','vUSMZ','TestLevel','error','mkdirSync','21815002ZMDVWA','tsjgO','File\x20downloaded\x20to:\x20%s','NtQjW','uploadAttachmentsManager','debug','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','join','./framework/automationFramework','sdRZV','IYMKM','xmwZE','statusCode','../../helpers/classLogger.js','path','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','./modules/playwrightDriverModule','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','pipe'];a82_0x337c=function(){return _0x77dee4;};return a82_0x337c();}module[a82_0xbda3fa(0x22e)]=uploadAttachmentsManager;
1
+ const a82_0x32f3c0=a82_0x25bb;function a82_0x25bb(_0x4a1ecf,_0x485b4d){const _0x38de98=a82_0x38de();return a82_0x25bb=function(_0x25bbfb,_0x5c1207){_0x25bbfb=_0x25bbfb-0x13c;let _0x3e4da2=_0x38de98[_0x25bbfb];return _0x3e4da2;},a82_0x25bb(_0x4a1ecf,_0x485b4d);}(function(_0x145212,_0x47c401){const _0x1e8aed=a82_0x25bb,_0x1cc932=_0x145212();while(!![]){try{const _0xfc999d=parseInt(_0x1e8aed(0x19a))/0x1*(-parseInt(_0x1e8aed(0x179))/0x2)+parseInt(_0x1e8aed(0x142))/0x3*(parseInt(_0x1e8aed(0x154))/0x4)+-parseInt(_0x1e8aed(0x18b))/0x5+-parseInt(_0x1e8aed(0x156))/0x6+-parseInt(_0x1e8aed(0x163))/0x7*(-parseInt(_0x1e8aed(0x182))/0x8)+-parseInt(_0x1e8aed(0x16f))/0x9+parseInt(_0x1e8aed(0x180))/0xa*(parseInt(_0x1e8aed(0x197))/0xb);if(_0xfc999d===_0x47c401)break;else _0x1cc932['push'](_0x1cc932['shift']());}catch(_0x5840fa){_0x1cc932['push'](_0x1cc932['shift']());}}}(a82_0x38de,0x56cd5));const os=require('os'),fs=require('fs'),path=require('path'),util=require(a82_0x32f3c0(0x160)),BrowserstackCLI=require(a82_0x32f3c0(0x165)),https=require(a82_0x32f3c0(0x191)),http=require('http'),AutomationFramework=require(a82_0x32f3c0(0x170)),PlaywrightDriverModule=require(a82_0x32f3c0(0x192)),TestInfo=require(a82_0x32f3c0(0x14b)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require('../../helpers/classLogger.js');function a82_0x38de(){const _0x18f789=['caVxl','LUfbu','finish','NKuLz','debug','logger','recursive','268728RHXKZT','testhubConfig','2955348vqwieq','mkdirSync','https://','UErnm','CEKDu','basename','size','File\x20downloaded\x20to:\x20%s','homedir','wWVTv','util','toFixed','enOuI','2352nypzKN','vqrUM','./browserstackCLI','zuTWY','XsEzp','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','testInfo','buildHashedId','TestHubModule','KEY_FILE_PATH','getInstance','existsSync','1650060hPkTsK','./framework/automationFramework','WHuXt','HZIMO','statSync','KEY_FILE_SIZE','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','yxaCf','AcZZM','unlinkSync','16zkEdKH','KEY_TEST_ATTACHMENTS','uploadAttachmentsManager','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','XrmBE','rmSync','trackFile','11182350QSPhug','dkqwv','16832lDRoSv','LjjIs','startsWith','JWPpR','message','error','http://','uploadAttachments','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','3279370AzLbcr','afMee','eLaJJ','TestLevel','join','Ntuwo','https','./modules/playwrightDriverModule','ZCSAo','Attachment\x20recevied\x20for\x20path:\x20%s','FcRoU','PZnao','11YompsI','statusCode','.browserstack','59222MubSlv','DQoHg','QRqRd','force','qRGPE','MmlQJ','fAjEA','BuildLevel','KEY_FILE_NAME','abCBY','15HpmtKo','close','createWriteStream','Created\x20folder:\x20%s','KEY_FILE_LEVEL','OARAD','currentTest','__workerDetails','modules','./TestInfo','format'];a82_0x38de=function(){return _0x18f789;};return a82_0x38de();}class uploadAttachmentsManager{static [a82_0x32f3c0(0x152)]=createClassLogger(a82_0x32f3c0(0x17b));static[a82_0x32f3c0(0x189)](_0x11483c,_0xb4d307=![]){const _0x5cad80=a82_0x32f3c0,_0x1e6530={};_0x1e6530[_0x5cad80(0x14d)]=function(_0x1acda0,_0x3b47d7){return _0x1acda0/_0x3b47d7;},_0x1e6530[_0x5cad80(0x13d)]=function(_0x390136,_0xc64496){return _0x390136*_0xc64496;},_0x1e6530[_0x5cad80(0x13e)]=function(_0x57e254,_0x4129a3){return _0x57e254>_0x4129a3;},_0x1e6530[_0x5cad80(0x181)]='Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.',_0x1e6530[_0x5cad80(0x19b)]=_0x5cad80(0x15d),_0x1e6530[_0x5cad80(0x13c)]=function(_0x498167,_0x16df25){return _0x498167===_0x16df25;},_0x1e6530[_0x5cad80(0x141)]=_0x5cad80(0x14f),_0x1e6530[_0x5cad80(0x196)]='Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload',_0x1e6530[_0x5cad80(0x195)]='Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload',_0x1e6530['zuTWY']=_0x5cad80(0x194),_0x1e6530[_0x5cad80(0x190)]=_0x5cad80(0x199),_0x1e6530[_0x5cad80(0x183)]=_0x5cad80(0x18a),_0x1e6530[_0x5cad80(0x14e)]='Created\x20.browserstack\x20folder\x20at:\x20%s',_0x1e6530[_0x5cad80(0x18c)]=_0x5cad80(0x145),_0x1e6530[_0x5cad80(0x167)]=function(_0xa5364f,_0x56b474){return _0xa5364f===_0x56b474;},_0x1e6530[_0x5cad80(0x18d)]='Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.',_0x1e6530['AcZZM']=_0x5cad80(0x158),_0x1e6530[_0x5cad80(0x162)]=_0x5cad80(0x188),_0x1e6530[_0x5cad80(0x15f)]=_0x5cad80(0x187),_0x1e6530[_0x5cad80(0x150)]=_0x5cad80(0x168),_0x1e6530[_0x5cad80(0x15a)]=function(_0xf85bda,_0x193833){return _0xf85bda>_0x193833;},_0x1e6530['QRqRd']='File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.';const _0x3adb35=_0x1e6530;this[_0x5cad80(0x152)][_0x5cad80(0x151)](util[_0x5cad80(0x14c)](_0x3adb35[_0x5cad80(0x166)],_0x11483c));const _0x68425c=os[_0x5cad80(0x15e)](),_0x75a4d3=path['join'](_0x68425c,_0x3adb35[_0x5cad80(0x190)]);!fs['existsSync'](_0x75a4d3)&&(this['logger'][_0x5cad80(0x151)](util[_0x5cad80(0x14c)](_0x3adb35[_0x5cad80(0x183)],_0x75a4d3)),fs[_0x5cad80(0x157)](_0x75a4d3),this['logger'][_0x5cad80(0x151)](util['format'](_0x3adb35[_0x5cad80(0x14e)],_0x75a4d3)));const _0x1f7ee3=BrowserstackCLI[_0x5cad80(0x16d)]()[_0x5cad80(0x14a)][_0x5cad80(0x16b)]?.[_0x5cad80(0x155)]?.['toObject']()?.[_0x5cad80(0x16a)],_0x131daf=path[_0x5cad80(0x18f)](_0x75a4d3,_0x1f7ee3);!fs[_0x5cad80(0x16e)](_0x131daf)&&(fs[_0x5cad80(0x157)](_0x131daf),this[_0x5cad80(0x152)][_0x5cad80(0x151)](util[_0x5cad80(0x14c)](_0x3adb35[_0x5cad80(0x18c)],_0x131daf)));if(_0x3adb35[_0x5cad80(0x167)](_0x11483c['trim'](),'')){this[_0x5cad80(0x152)][_0x5cad80(0x151)](util['format'](_0x3adb35[_0x5cad80(0x18d)]));return;}if(_0x11483c[_0x5cad80(0x184)](_0x3adb35[_0x5cad80(0x177)])||_0x11483c[_0x5cad80(0x184)](_0x3adb35[_0x5cad80(0x162)])){const _0x2bc67d=_0x11483c[_0x5cad80(0x184)](_0x3adb35['AcZZM'])?https:http,_0x4d7666=path['basename'](_0x11483c),_0xbfa1b9=path[_0x5cad80(0x18f)](_0x131daf,_0x4d7666),_0x29b0de=fs[_0x5cad80(0x144)](_0xbfa1b9);_0x2bc67d['get'](_0x11483c,_0x3fb6e3=>{const _0x352ea4=_0x5cad80,_0x49b591={'WHuXt':function(_0x3e41fa,_0x3c45b7){const _0x156c8b=a82_0x25bb;return _0x3adb35[_0x156c8b(0x14d)](_0x3e41fa,_0x3c45b7);},'KijHo':function(_0x158855,_0x73b215){const _0x34bac8=a82_0x25bb;return _0x3adb35[_0x34bac8(0x13d)](_0x158855,_0x73b215);},'JWPpR':function(_0x5b61cb,_0x3f47d0){return _0x3adb35['fAjEA'](_0x5b61cb,_0x3f47d0);},'JpZaC':_0x3adb35[_0x352ea4(0x181)],'ZTkVt':_0x3adb35[_0x352ea4(0x19b)]};if(_0x3adb35['qRGPE'](_0x3fb6e3[_0x352ea4(0x198)],0xc8))_0x3fb6e3['pipe'](_0x29b0de),_0x29b0de['on'](_0x3adb35['abCBY'],()=>{const _0x344540=_0x352ea4;_0x29b0de['close']();const _0x23971e=fs[_0x344540(0x173)](_0xbfa1b9),_0x390c49=_0x49b591[_0x344540(0x171)](_0x23971e[_0x344540(0x15c)],_0x49b591['KijHo'](0x400,0x400));if(_0x49b591[_0x344540(0x185)](_0x390c49,0x64)){this[_0x344540(0x152)][_0x344540(0x151)](util[_0x344540(0x14c)](_0x49b591['JpZaC'],_0x390c49[_0x344540(0x161)](0x2))),fs[_0x344540(0x178)](_0xbfa1b9);return;}this['logger'][_0x344540(0x151)](util['format'](_0x49b591['ZTkVt'],_0xbfa1b9)),uploadAttachmentsManager[_0x344540(0x17f)](_0xbfa1b9,_0xb4d307);});else{this[_0x352ea4(0x152)]['debug'](util[_0x352ea4(0x14c)](_0x3adb35['PZnao'],_0x3fb6e3[_0x352ea4(0x198)])),_0x29b0de['close'](),fs[_0x352ea4(0x178)](_0xbfa1b9);return;}})['on'](_0x3adb35['wWVTv'],_0x4a5792=>{const _0x3e2fa2=_0x5cad80;this[_0x3e2fa2(0x152)][_0x3e2fa2(0x151)](util[_0x3e2fa2(0x14c)](_0x3adb35[_0x3e2fa2(0x195)],_0x4a5792[_0x3e2fa2(0x186)])),_0x29b0de[_0x3e2fa2(0x143)](),fs['unlinkSync'](_0xbfa1b9);return;});}else{if(!fs['existsSync'](_0x11483c)){this[_0x5cad80(0x152)][_0x5cad80(0x151)](util[_0x5cad80(0x14c)](_0x3adb35[_0x5cad80(0x150)],_0x11483c));return;}const _0x1496eb=fs['statSync'](_0x11483c),_0x56fb0f=_0x3adb35['caVxl'](_0x1496eb[_0x5cad80(0x15c)],_0x3adb35[_0x5cad80(0x13d)](0x400,0x400));if(_0x3adb35[_0x5cad80(0x15a)](_0x56fb0f,0x64)){this[_0x5cad80(0x152)][_0x5cad80(0x151)](util[_0x5cad80(0x14c)](_0x3adb35[_0x5cad80(0x19c)],_0x56fb0f[_0x5cad80(0x161)](0x2)));return;}const _0x33f364=path[_0x5cad80(0x15b)](_0x11483c),_0x315cff=path['join'](_0x131daf,_0x33f364);fs['copyFileSync'](_0x11483c,_0x315cff),uploadAttachmentsManager[_0x5cad80(0x17f)](_0x315cff,_0xb4d307);}}static[a82_0x32f3c0(0x17f)](_0x52692f,_0x12872c){const _0x309e1b=a82_0x32f3c0,_0x56ad91={};_0x56ad91[_0x309e1b(0x176)]=_0x309e1b(0x13f),_0x56ad91[_0x309e1b(0x193)]=_0x309e1b(0x18e),_0x56ad91[_0x309e1b(0x172)]=_0x309e1b(0x175),_0x56ad91[_0x309e1b(0x17d)]=_0x309e1b(0x17c);const _0x54e793=_0x56ad91;try{const _0x57b589=global[_0x309e1b(0x149)]?.[_0x309e1b(0x148)]?.[_0x309e1b(0x169)],_0x5d7050=TestInfo['getTestIdentifierFromTestInfo'](_0x57b589,_0x57b589?.['retry']),_0x13fff7=TestInfo['getTestDetails'](_0x5d7050),_0x4478af=_0x13fff7[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{};_0x4478af[_0x52692f]={[TestFrameworkConstants[_0x309e1b(0x174)]]:fs[_0x309e1b(0x173)](_0x52692f)[_0x309e1b(0x15c)],[TestFrameworkConstants[_0x309e1b(0x140)]]:path['basename'](_0x52692f),[TestFrameworkConstants[_0x309e1b(0x16c)]]:_0x52692f,[TestFrameworkConstants[_0x309e1b(0x146)]]:_0x12872c?_0x54e793[_0x309e1b(0x176)]:_0x54e793[_0x309e1b(0x193)]},_0x13fff7[TestFrameworkConstants[_0x309e1b(0x17a)]]=_0x4478af,TestInfo['setTestDetails'](_0x5d7050,_0x13fff7),this[_0x309e1b(0x152)][_0x309e1b(0x151)](util[_0x309e1b(0x14c)](_0x54e793[_0x309e1b(0x172)],_0x52692f));}catch(_0xe85c6d){this[_0x309e1b(0x152)][_0x309e1b(0x151)](util[_0x309e1b(0x14c)](_0x54e793[_0x309e1b(0x17d)],_0xe85c6d[_0x309e1b(0x186)]));}}static['clearAttachments'](){const _0x58d9d1=a82_0x32f3c0,_0x44d43e={};_0x44d43e['UErnm']=_0x58d9d1(0x199),_0x44d43e[_0x58d9d1(0x147)]='No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s',_0x44d43e[_0x58d9d1(0x164)]='Cleared\x20attachment\x20folder';const _0x347fe1=_0x44d43e,_0x1f2b5a=os[_0x58d9d1(0x15e)](),_0x4a45de=path[_0x58d9d1(0x18f)](_0x1f2b5a,_0x347fe1[_0x58d9d1(0x159)]);if(!fs[_0x58d9d1(0x16e)](_0x4a45de))return;const _0x3f613b=BrowserstackCLI[_0x58d9d1(0x16d)]()['modules'][_0x58d9d1(0x16b)]?.[_0x58d9d1(0x155)]?.['toObject']()?.[_0x58d9d1(0x16a)],_0x5f176f=_0x3f613b?path['join'](_0x4a45de,_0x3f613b):null;if(!_0x5f176f||!fs[_0x58d9d1(0x16e)](_0x5f176f)){this[_0x58d9d1(0x152)][_0x58d9d1(0x151)](util[_0x58d9d1(0x14c)](_0x347fe1[_0x58d9d1(0x147)],_0x3f613b));return;}const _0x47d94f={};_0x47d94f[_0x58d9d1(0x153)]=!![],_0x47d94f[_0x58d9d1(0x19d)]=!![],fs[_0x58d9d1(0x17e)](_0x5f176f,_0x47d94f),this[_0x58d9d1(0x152)][_0x58d9d1(0x151)](util[_0x58d9d1(0x14c)](_0x347fe1['vqrUM']));}}module['exports']=uploadAttachmentsManager;