I've been exploring ways to select an element if its value contains "6 months." Here are a few examples where all values include the phrase "6 months" in different scenarios. I'd like to avoid clicking on each one individually, but rather click based on the bank type specified.
<input type="button" aria-label="AMEX 6 months Extended Payment Plan" title="AMEX 6 months Extended Payment Plan" value="AMEX 6 months Extended Payment Plan" class="pm-button pp-content-btn pm-button-half">
<input type="button" aria-label="DBS IPP 6 months 0%" title="DBS IPP 6 months 0%" value="DBS IPP 6 months 0%" class="pm-button pp-content-btn pm-button-half">
<input type="button" aria-label="UOBSG IPP 6 months 0%" title="UOBSG IPP 6 months 0%" value="UOBSG IPP 6 months 0%" class="pm-button pp-content-btn pm-button-half">
Is it possible to click on an element if the value/title contains the string "6 months"?
EDIT: Using protractor for testing.