[rspec-users] functional testing with(through?) chrome
matt at mattwynne.net
Sun Aug 7 07:01:27 EDT 2011
On 6 Aug 2011, at 03:21, John Sayeau wrote:
> Not sure if this can be done using RSpec and something else but I'm
> trying to test a website using Chrome specifically. The website seems
> to intermittently hang up Chrome but not Safari and it passes functional
> tests without a browser.
> I want to run a test that loops through loading the site with chrome and
> measure the load time or record the error I get on a load fail.
> Hope this makes sense.
I would recommend Capybara with the Selenium driver configured to use Chrome:
Capybara.register_driver :selenium do |app|
Capybara::Selenium::Driver.new(app, :browser => :chrome)
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
+44(0)7974430184 | http://twitter.com/mattwynne
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users