ruby on rails - Capybara integration test and fill_in for text fields -
i writing integration test following html structure stuck on text fields , capybara fill_in method
<div class="row" id="attr_3"> <div class="span4"> <input name="description[]" type="text" value="air conditioning" /> </div> <div class="span4"> <input id="value_" name="value[]" type="text" value="" /> </div> </div> <div class="row" id="attr_20"> <div class="span4"> <input id="description_" name="description[]" type="text" value="autopilot" /> </div> <div class="span4"> <input id="value_" name="value[]" type="text" value="" /> </div> </div> this chunk of code have fill value of text box description "air condition". how can that? because there no formal structure of html , air condition not label text box.
Comments
Post a Comment