Add assertion on the value of an element's attribute