Skip to content

Commit 6a8da81

Browse files
committed
Fetch w/ brower's default
1 parent b0d3682 commit 6a8da81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/capybara/cuprite/page.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def dismiss_prompt
6868

6969
def find_modal(options)
7070
start = Ferrum.monotonic_time
71-
timeout = options.fetch(:wait) { session_wait_time }
71+
timeout = options.fetch(:wait, browser.timeout)
7272
expect_text = options[:text]
7373
expect_regexp = expect_text.is_a?(Regexp) ? expect_text : Regexp.escape(expect_text.to_s)
7474
not_found_msg = "Unable to find modal dialog"

0 commit comments

Comments
 (0)