You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.
I'm trying to choose a hidden radio input by it's label with Capybara Webkit, but I'm getting Capybara::Webkit::ClickFailed: Failed to find position for element ... because it is not visible.
Hey @lpender. There are a couple of things going on here. choose 'one' will still try to click the button. Providing the label text is an alternative, but in this case it's duplicated, and ultimately this will still end up with a click on the button itself. Instead, you can click on the label. In your case, find('label[for=two]').click will choose the hidden button.
Hi!
I'm trying to
choose
a hidden radio input by it's label with Capybara Webkit, but I'm gettingCapybara::Webkit::ClickFailed: Failed to find position for element ... because it is not visible
.Here is a simple case for reproduction:
The spec would have a line something like:
choose 'one'
Would be great to get this working! No issues with vanilla Capybara.
Thanks!
-Lee
The text was updated successfully, but these errors were encountered: