A female teacher has been found guilty of indecently assaulting two pupils at an all-boys school.