added a method to query web elements with class name