Skip to content

Instantly share code, notes, and snippets.

@jarib
Created May 28, 2014 20:51
Show Gist options
  • Save jarib/00776bde0e5c536ea730 to your computer and use it in GitHub Desktop.
Save jarib/00776bde0e5c536ea730 to your computer and use it in GitHub Desktop.
1) Capybara::Session selenium #window_opened_by with :wait option should raise error if value of :wait is less than timeout
Failure/Error: expect do
expected Capybara::WindowError with "block passed to #window_opened_by opened 0 windows instead of 1" but nothing was raised
# ./lib/capybara/spec/session/window/window_opened_by_spec.rb:20:in `block (4 levels) in <top (required)>'
# ./lib/capybara.rb:234:in `using_wait_time'
# ./lib/capybara/spec/session/window/window_opened_by_spec.rb:19:in `block (3 levels) in <top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment