The value of attribute method of the form element which contains this button is read and checked against the expected value