add class and remove class for html element in BasePageObject.java