desktoppr / wbench

It benchmarks websites, YO!
MIT License
1.34k stars 58 forks source link

Any way to have it run the tests in the background? #7

Closed nbashaw closed 11 years ago

nbashaw commented 11 years ago

First of all, I really love wbench. Awesome stuff. That being said, is there any way to make it not open and close google chrome in the foreground to run the tests? It would be much nicer if that stuff ran in the background.

Thanks!

mariovisic commented 11 years ago

As far as i'm aware, there's not an easy way to do this, wbench uses selenium to drive the browser, we need it open to grab information from the browser.

You could change the browser to be a headless driver that doesn't open in the foreground, for example phantomjs:

wbench -b phantomjs http://www.google.com/

You'll need phantomJS installed, but this doesn't seem to work at the moment, phantomJS browser doesn't seem to have window.performance.timing defined.

nbashaw commented 11 years ago

Cool! Thanks for answering. — Typed on a phone

On Fri, Mar 1, 2013 at 10:38 PM, Mario Visic notifications@github.com wrote:

As far as i'm aware, there's not an easy way to do this, wbench uses selenium to drive the browser, we need it open to grab information from the browser. You could change the browser to be a headless driver that doesn't open in the foreground, for example phantomjs:

wbench -b phantomjs http://www.google.com/

You'll need phantomJS installed, but this doesn't seem to work at the moment, phantomJS browser doesn't seem to have window.performance.timing defined.

Reply to this email directly or view it on GitHub: https://github.com/desktoppr/wbench/issues/7#issuecomment-14324060

cassioKenji commented 6 years ago

Hello! Since version 59 Google Chrome is being shipped with a headless feature and it is easy to run headless with chrome: --headless.

There is an way to pass flags to Chrome with wbench?

Thanks!