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 6a8da81 commit 98bdf13Copy full SHA for 98bdf13
lib/capybara/cuprite/page.rb
@@ -5,6 +5,7 @@
5
module Capybara::Cuprite
6
module Page
7
MODAL_WAIT = ENV.fetch("CUPRITE_MODAL_WAIT", 0.05).to_f
8
+ TRIGGER_CLICK_WAIT = ENV.fetch("CUPRITE_TRIGGER_CLICK_WAIT", 0.1).to_f
9
10
extend Forwardable
11
delegate %i[at_css at_xpath css xpath
@@ -30,7 +31,7 @@ def select(node, value)
30
31
32
def trigger(node, event)
33
options = {}
- options.merge!(wait: Ferrum::Mouse::CLICK_WAIT) if event.to_s == "click"
34
+ options.merge!(wait: TRIGGER_CLICK_WAIT) if event.to_s == "click" && TRIGGER_CLICK_WAIT > 0
35
evaluate_on(node: node, expression: %(_cuprite.trigger(this, "#{event}")), **options)
36
end
37
0 commit comments