Capybara: How do I fill in a input field by its ID January 20, 2023 by Tarik fill_in accepts the id as first parameter: fill_in 'course_group_courses_attributes_2_name', :with => 'some text'