I'd like to do the following but can't due to the nature of fill_in expecting a locator as the first argument.
find(:css, "input[id$='donation_pledge_hundreds']").fill_in :with => "10"
I've also tried doing
element = find(:css, "input[id$='donation_pledge_hundreds']")
fill_in element.<method> , :with => "10"
but there are no methods that return any data to identify the element to fill_in.
Any ideas of the best way of finding a field via a regex for use with fill_in?