selenium chromedriver - Get chrome logs in WebdriverIO -
i'm trying chrome's logs when launched through webdriverio. these options use in webdriverio:
{ desiredcapabilities: { browsername: 'chrome', chromeoptions: { binary: path.resolve('/usr/bin/google-chrome'), args: [ '--load-and-launch-app=' + path.resolve('./build/chrome/'), '--enable-logging', '--v=1', '--no-sandbox', ] } } } }
the browser (and extension) launched properly, can't find chrome_deug.log
file in ~/.config/google-chrome/
folder.
however, if manually, in, launching chrome terminal (google-chrome --enable-logging --v=1
), log file appear. leads me believe i'm either doing wrong or issue webdriverio.
i'm on ubuntu 14.04, using chrome 48, i've noticed same thing on osx chrome 49 too.
can point me in right direction? thanks.
you can browser logs in tests .log webdriver-io function:
browser.log('browser')
the important thing .log function call clears browser log if want have complete log need concatenate results .log function. this:
this.browserlog = this.browserlog.concat(browser.log('browser').value);
Comments
Post a Comment