I have a text field that is dynamically created via javascript with the long id:
user_user_skills_attributes_69878013874980_skill_title
where the 69878013874980
is a generated timestamp.
How do I fill in the field with this id in a capybara test?
Thanks
You can use the set
command. Something like:
find(:css, "input[id^='user_user_skills_attributes_'][id$='_skill_title']").set("This is a test title")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With