diff --git a/lib/avo/test_helpers.rb b/lib/avo/test_helpers.rb index 9fba97c50..4730e6957 100644 --- a/lib/avo/test_helpers.rb +++ b/lib/avo/test_helpers.rb @@ -315,7 +315,11 @@ def tag_suggestions(field:, input:) end def type(...) - page.driver.browser.keyboard.type(...) + if page.driver.browser.respond_to?(:keyboard) + page.driver.browser.keyboard.type(...) + else + page.send_keys(...) + end end def accept_custom_alert(&block)