froth-webdriverio-framework 7.0.93 → 7.0.94
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,22 @@ 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');
|
|
179
|
+
|
|
180
|
+
if (capabilities.platformName === 'android') {
|
|
181
|
+
capabilities['autoGrantPermissions'] = true;
|
|
182
|
+
capabilities['appium:autoGrantPermissions'] = true;
|
|
183
|
+
// capabilities['appium:autoGrantPermissions'] = bsCaps.autoGrantPermissions;
|
|
184
|
+
}
|
|
185
|
+
else
|
|
186
|
+
capabilities['autoAcceptAlerts'] = true;
|
|
178
187
|
|
|
179
188
|
}
|
|
180
189
|
console.log("Config deatils :" + JSON.stringify(config, null, 2));
|
|
181
190
|
|
|
182
191
|
|
|
183
|
-
|
|
192
|
+
|
|
184
193
|
|
|
185
194
|
}
|
|
186
195
|
console.log('🔎 Final capabilities:', JSON.stringify(capabilities, null, 2));
|