I'm running into some trouble attempting to fill_in
a Text form on a form group.
HTML:
<div class="form-group">
<label class="control-label">First Name</label>
<input class="form-control" type="text" data-filter="0">
</div>
I've tried using fill_in via using the label text IE "First Name" with no luck; I've also tried using the "data-filter="0"" with no luck (I'm not even sure what this is; it doesn't seem to be an id of any sort).
I figured maybe I could use the xpath? but can you even do a finder on the xpath of something and then fill it in? I couldn't find anything that seemed to reference being able to in the capybara module docs.
for
attribute whose value would be theid
of the input (if there was one), or it would need to wrap the input to tie it to the input – Thomas Walpole