[DONOTMERGE] Repodiscovery

Basically looking for some feedback and to learn a few tricks. I need a method that given a list of checkboxes (i.e. "//input[@style='checkbox']"), it would check check them all. Given a list of names, then it would only check those checkboxes where @value='<arg>'.