froth-webdriverio-framework 7.0.93 → 7.0.95

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.
@@ -39,13 +39,6 @@ module.exports = (bsCaps) => {
39
39
  if (uploadMediaList?.length) {
40
40
  bstackOptions.uploadMedia = uploadMediaList;
41
41
  }
42
- if (bsCaps.platformName === 'android'){
43
- capabilities['autoGrantPermissions'] = true;
44
- capabilities['appium:autoGrantPermissions'] = true;
45
- }
46
- else
47
- // capabilities['appium:autoGrantPermissions'] = bsCaps.autoGrantPermissions;
48
- capabilities['autoAcceptAlerts'] = true;
49
42
 
50
43
 
51
44
  return {
@@ -174,13 +174,21 @@ const commonHooks = {
174
174
 
175
175
  bsOpts.app = appPath;
176
176
  capabilities['appium:app'] = appPath;
177
+
177
178
  console.log('✅ App & media set in before session');
178
179
 
180
+ if (capabilities.platformName === 'android') {
181
+ capabilities['appium:autoGrantPermissions'] = true;
182
+ // capabilities['appium:autoGrantPermissions'] = bsCaps.autoGrantPermissions;
183
+ }
184
+ else
185
+ capabilities['autoAcceptAlerts'] = true;
186
+
179
187
  }
180
188
  console.log("Config deatils :" + JSON.stringify(config, null, 2));
181
189
 
182
190
 
183
-
191
+
184
192
 
185
193
  }
186
194
  console.log('🔎 Final capabilities:', JSON.stringify(capabilities, null, 2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "7.0.93",
3
+ "version": "7.0.95",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",