I\'m using Rspec and Capybara.
How can I write a step to check a checkbox? I\'ve tried check by value but it can\'t find my checkbox<
checkbox
check
checkbox<
I know this is an older question, but I have been working through this myself, and having tried all of the above, this is what finally worked for me:
find("input[type='checkbox'][value='#{cityID.id}']").set(true)
Hope this is helpful to someone. I am using Capybara 2.4.4.