@wdio/sync
Advanced tools
Comparing version 5.16.12 to 5.16.14
@@ -39,6 +39,16 @@ "use strict"; | ||
const executeSync = async function (fn, retries, args = []) { | ||
delete global.browser._NOT_FIBER; | ||
this.retries = retries.attempts; | ||
const defaultRetries = { | ||
attempts: 0, | ||
limit: 0 | ||
}; | ||
const executeSync = async function (fn, retries = defaultRetries, args = []) { | ||
if (global.browser) { | ||
delete global.browser._NOT_FIBER; | ||
} | ||
if (this) { | ||
this.retries = retries.attempts; | ||
} | ||
try { | ||
@@ -45,0 +55,0 @@ global._HAS_FIBER_CONTEXT = true; |
{ | ||
"name": "@wdio/sync", | ||
"version": "5.16.12", | ||
"version": "5.16.14", | ||
"description": "A WebdriverIO plugin. Helper module to run WebdriverIO commands synchronously", | ||
@@ -46,3 +46,3 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
}, | ||
"gitHead": "6bb593e8170fd9f7032fd0d1767147ce167d4c89" | ||
"gitHead": "679e841c2e06c36f19f918ad6806f7555f4c514c" | ||
} |
39411
1035