Handle flag checkbox in assertFieldByXPath