Add ability to pass block to attribute

This allows for the ability to modify/typecast the string coming back
from Capybara.