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 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 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)