Adds a by.inputName function to protractors `by` object.