Today I Learned

A Hashrocket project

within_window capybara

Capybara lets you test things in multiple windows. Which blows my mind for some reason.

window = page.drivers.window_handles.first
within_window(window) do
  test_the_form
end
Looking for help? Hashrocket has been an industry leader in Ruby on Rails since 2008. Rails is a core skill for each developer at Hashrocket, and we'd love to take a look at your project. Contact us and find out how we can help you.