Headless gem uses xvfb and it is extremely easy (so long as you are using a Mac). It works just as well with chrome as Firefox (and chrome is faster).
Headless gem is a much better solution than phantomjs. I believe chrome is still faster than phantom, as well as less buggy. The whole point of going through the trouble to do UI testing is to verify a user can actually do these things on your site. A real user does not use an emulated browser. Google is much more likely to find and fix bugs in their browser and driver than the phantom team. The only place phantomjs might make more sense is if you want to run the tests on a machine that does not have a gui at all, but even then, recognize the tradeoffs. On Jun 18, 2015 7:33 PM, "RM" <[email protected]> wrote: > Hello, > > I have 'headless' gem installed and is running fine with watir-webdriver > (it use the default firefox headless). > would like to know if anyone has successfully done headless testing with > chrome and watir-webdriver? > > Any help would be appreciated. > > Thanks > > RM > > -- > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > [email protected] > http://groups.google.com/group/watir-general > [email protected] > > --- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
