froth-webdriverio-framework 7.0.61 → 7.0.63

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.
@@ -335,6 +335,7 @@ async function normalizeWdioError(error) {
335
335
  return `Automation framework error: ${msg}`;
336
336
  }
337
337
  async function getBrowserStackCapabilities(baseCaps) {
338
+
338
339
  if (
339
340
  process.env.PLATFORM !== 'browserstack' &&
340
341
  process.env.PLATFORM !== 'browserstacklocal'
@@ -342,6 +343,18 @@ async function getBrowserStackCapabilities(baseCaps) {
342
343
  return baseCaps;
343
344
  }
344
345
 
346
+ if (process.env.BS_SESSION_TYPE === 'app-automate') {
347
+ const appPath = process.env.BROWSERSTACK_APP_PATH;
348
+ if (!appPath) {
349
+ await failExecution('BROWSERSTACK_APP_PATH is missing');
350
+ }
351
+
352
+ //baseCaps.app = appPath;
353
+ baseCaps['appium:app'] = appPath;
354
+ console.log('✅ App & media set in before session');
355
+
356
+ }
357
+
345
358
  // Ensure we work with array
346
359
  const capsArray = Array.isArray(baseCaps) ? baseCaps : [baseCaps];
347
360
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "7.0.61",
3
+ "version": "7.0.63",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",