Read more

Navigating through the browser history in a cucumber feature using selenium

Andreas Robecke
May 08, 2012Software engineer

In order to navigate through the browser history. you can manipulate the window.history object via javascript like follows:

When /^I go back in the browser history$/ do
  page.evaluate_script('window.history.back()')
end 
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

For further functions of the window and history objects check out this link Show archive.org snapshot .


An improved version of this step is now part of our gem spreewald on Github Show archive.org snapshot .

Posted by Andreas Robecke to makandra dev (2012-05-08 14:58)