parse resources and items, set class elms, make sure that all the elms are WebElement