froth-webdriverio-framework 4.0.71 → 4.0.72

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.
@@ -145,9 +145,9 @@ const commonconfig = {
145
145
  console.log("Error in beforeSuite:", e);
146
146
  }
147
147
  },
148
-
148
+
149
149
  before: async function (capabilities, specs) {
150
- if (capabilities.platformName === 'web') {
150
+ if (process.env.BS_SESSION_TYPE === 'automate') {
151
151
  console.log('==== BEFORE HOOK ====')
152
152
  await browser.maximizeWindow()
153
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "4.0.71",
3
+ "version": "4.0.72",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",