Read more

Reload the page in your Cucumber features

Arne Hartherz
September 28, 2010Software engineer at makandra GmbH

Both these approaches will keep your GET parameters -- and will only work for GET requests.

  • Capybara:

    When /^I reload the page$/ do
      visit [ current_path, page.driver.request.env['QUERY_STRING'] ].reject(&:blank?).join('?')
    end
    
  • Webrat:

    When /^I reload the page$/ do
      visit url_for(request.params)
    end
    
Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

For a step that distinguishes between drivers (Selenium, Rack::Test, Culerity), check n4k3d.com Show archive.org snapshot .

Posted by Arne Hartherz to makandra dev (2010-09-28 11:55)