Cucumber/Capybara Selecting Button from Specific Class?
问题 So i've ran into an issue, im trying to click a button...which unfortunately has the same text (IE there are 2 buttons on the page which the same text, basically a save button) Lets pretend the button text is just "Save". I did notice that they had different classes. <button data-action="submit" class="btn btn-primary btn-save">Save</button> whereas the other button is: <button name="button" type="submit" class="btn btn-primary set-right"> <i class="glyphicon glyphicon-floppy-disk"></i> Save