capsulating watir logic in class