froth-webdriverio-framework 6.0.10 → 6.0.12

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.
@@ -79,16 +79,16 @@ const commonconfig = {
79
79
  // set the capability like media and app and bs local
80
80
  if (process.env.PLATFORM === 'browserstack') {
81
81
  /// console.log("capabilities:", capabilities);
82
- console.log("====> BROWSERSTACK_LOCAL : " + process.env.BROWSERSTACK_LOCAL);
83
-
84
- const isLocalEnabled = process.env.BROWSERSTACK_LOCAL === "true";
85
- console.log("isLocalEnabled:", isLocalEnabled);
86
- if (isLocalEnabled) {
87
- console.log("====> Starting BrowserStack Local...");
88
- if (!capabilities['bstack:options']) capabilities['bstack:options'] = {};
89
- capabilities['bstack:options'].browserstackLocal = true;
90
- console.log("✔ BrowserStack Local enabled dynamically");
91
- }
82
+ // console.log("====> BROWSERSTACK_LOCAL : " + process.env.BROWSERSTACK_LOCAL);
83
+
84
+ // const isLocalEnabled = process.env.BROWSERSTACK_LOCAL === "true";
85
+ // console.log("isLocalEnabled:", isLocalEnabled);
86
+ // if (isLocalEnabled) {
87
+ // console.log("====> Starting BrowserStack Local...");
88
+ // if (!capabilities['bstack:options']) capabilities['bstack:options'] = {};
89
+ // capabilities['bstack:options'].browserstackLocal = true;
90
+ // console.log("✔ BrowserStack Local enabled dynamically");
91
+ // }
92
92
 
93
93
  // capabilities.accessKey = Buffer.from(capabilities.accessKey, 'base64').toString('utf-8');
94
94
  if (capabilities.platformName === 'android' || capabilities.platformName === 'ios') {
@@ -344,15 +344,7 @@ const commonconfig = {
344
344
 
345
345
  await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
346
346
 
347
- if (bsLocal && bsLocal.isRunning()) {
348
- console.log("====> Stopping BrowserStack Local...");
349
- await new Promise((resolve) => {
350
- bsLocal.stop(() => {
351
- console.log("====> BrowserStack Local stopped.");
352
- resolve();
353
- });
354
- });
355
- }
347
+
356
348
  // Perform any cleanup or post-test actions here
357
349
  BUFFER.clear();
358
350
  },
@@ -169,7 +169,7 @@ exports.config = deepmerge(commonconfig,
169
169
  // debug: true,
170
170
  // execArgv: ['--inspect-brk'],
171
171
  services: PLATFORM === 'browserstack'
172
- ? [['browserstack', { browserstackLocal: false }]]
172
+ ? ['browserstack']
173
173
  : PLATFORM === 'saucelabs'
174
174
  ? ['sauce']
175
175
  : [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "6.0.10",
3
+ "version": "6.0.12",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",