Capybara: How to fill a textarea without an 'id'? Capybara: How to fill a textarea without an 'id'? selenium selenium

Capybara: How to fill a textarea without an 'id'?


There are different location techniques and ways to get to the desired element. stock-description-input class looks like a good thing to rely on. Use send_keys() to fill the area:

text_area = first(:css, 'textarea.stock-description-input').nativetext_area.send_keys('Test')