Skip to content

Commit

Permalink
apply loggingPrefs for desktop browser - closes #933
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Jan 22, 2016
1 parent 054f7ef commit 25fb74a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/webdriverio.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ let WebdriverIO = function (args, modifier) {

let { isMobile, isIOS, isAndroid } = mobileDetector(desiredCapabilities)

if (!isMobile && typeof desiredCapabilities.loggingPrefs === 'undefined') {
desiredCapabilities.loggingPrefs = {
browser: 'ALL',
driver: 'ALL'
}
}

let resolve = function (result, onFulfilled, onRejected, context) {
if (typeof result === 'function') {
this.isExecuted = true
Expand Down

0 comments on commit 25fb74a

Please sign in to comment.