froth-webdriverio-framework 7.0.92 → 7.0.93

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,6 +39,14 @@ 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
  return {
44
52
  ...commonHooks,
@@ -30,6 +30,7 @@ module.exports = (bsCaps) => {
30
30
  if (uploadMediaList?.length) {
31
31
  bstackOptions.uploadMedia = uploadMediaList;
32
32
  }
33
+
33
34
 
34
35
  return {
35
36
  ...commonHooks,
@@ -180,19 +180,7 @@ const commonHooks = {
180
180
  console.log("Config deatils :" + JSON.stringify(config, null, 2));
181
181
 
182
182
 
183
- // if (process.env.MEDIA_FILES) {
184
- // try {
185
- // const mediaList = JSON.parse(process.env.MEDIA_FILES);
186
- // console.log("media files are", mediaList)
187
- // if (Array.isArray(mediaList) && mediaList.length > 0) {
188
- // bsOpts.uploadMedia = mediaList;
189
- // console.log('✅ uploadMedia injected:', mediaList);
190
- // }
191
- // } catch (err) {
192
- // console.warn('⚠️ MEDIA_FILES is not valid JSON', err);
193
- // }
194
- // }
195
- // capabilities['bstack:options'] = bsOpts;
183
+
196
184
 
197
185
  }
198
186
  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.92",
3
+ "version": "7.0.93",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",