We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0d3682 commit 6a8da81Copy full SHA for 6a8da81
lib/capybara/cuprite/page.rb
@@ -68,7 +68,7 @@ def dismiss_prompt
68
69
def find_modal(options)
70
start = Ferrum.monotonic_time
71
- timeout = options.fetch(:wait) { session_wait_time }
+ timeout = options.fetch(:wait, browser.timeout)
72
expect_text = options[:text]
73
expect_regexp = expect_text.is_a?(Regexp) ? expect_text : Regexp.escape(expect_text.to_s)
74
not_found_msg = "Unable to find modal dialog"
0 commit comments