I have an HTML partial that looks like this:
<input id="order_date" name="order_date" class="date-applied"
onchange="restoreDate=false;" type="text" value="01/05/2016"
size="12" maxlength="10"/>
I need to retrieve the value of attribute value
using Capybara. I have tried using this code, without success:
find(:xpath,"//table[2']/tbody/tr[7]/td[@name='order_date]")['value']
How do I make this work?