Skip to content

Commit

Permalink
Workaround should only be for marionette
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Jun 6, 2018
1 parent 1947103 commit 3aed7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara/selenium/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def click(keys = [], **options)
scroll_to_center
end

if e.is_a?(::Selenium::WebDriver::Error::ElementNotInteractableError) && driver.firefox? && (tag_name == "tr")
if driver.marionette? && e.is_a?(::Selenium::WebDriver::Error::ElementNotInteractableError) && (tag_name == "tr")
warn "You are attempting to click a table row which has issues in geckodriver/marionette - see https://github.com/mozilla/geckodriver/issues/1228. " \
"Your test should probably be clicking on a table cell like a user would. Clicking the first cell in the row instead."
return find_css('th:first-child,td:first-child')[0].click
Expand Down

0 comments on commit 3aed7fe

Please sign in to comment.