I've following markup:
<div class='foo'>
<form>
<input class='bar' type='text'>
</form>
<div/>
<div class='foo'>
<form>
<input class='bar' type='text'>
</form>
</div>
I'd like to fill input in the second .foo
container. How I can achieve this in Capybara ?
What about:
within all('.foo').last do
find('.bar').set 'a value'
end
Check within and set.
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