commit | 3e1caa77f46c924e196744c05943b0d49d66c0d0 | [log] [tgz] |
---|---|---|
author | Alexander Sorokin <alexander.sorokin@akvelon.com> | Tue Aug 02 11:47:18 2016 +0300 |
committer | Alexander Sorokin <alexander.sorokin@akvelon.com> | Tue Aug 02 11:47:18 2016 +0300 |
tree | 1622062c6f21063f0071eb73ba9b4e437933cbb5 | |
parent | 8b6fc48b040d543b85e60e61ccaeafc89069b3df [diff] |
Fixed "driver.then is not a function"
diff --git a/lib/appium/helpers/wdHelper.js b/lib/appium/helpers/wdHelper.js index 370352b..791d578 100644 --- a/lib/appium/helpers/wdHelper.js +++ b/lib/appium/helpers/wdHelper.js
@@ -107,6 +107,7 @@ } // no webview context, the app is still loading return driver + .sleep(1000) .then(function () { if (retries > 0) { console.log('No webview context. Retries remaining: ' + retries);