Method: Capybara::Session#within_window

Defined in:
lib/capybara/session.rb

- (Object) within_window(handle, &blk)

Execute the given block within the given window. Only works on some drivers (e.g. Selenium)

Parameters:

  • handle (String)

    of the window



277
278
279
# File 'lib/capybara/session.rb', line 277

def within_window(handle, &blk)
  driver.within_window(handle, &blk)
end

Comments