Method: Capybara::Session#windows
- Defined in:
- lib/capybara/session.rb
#windows ⇒ Array<Capybara::Window>
Get all opened windows. The order of windows in returned array is not defined. The driver may sort windows by their creation time but it's not required.
471 472 473 474 475 |
# File 'lib/capybara/session.rb', line 471 def windows driver.window_handles.map do |handle| Window.new(self, handle) end end |