4142434445464748495051
PageElement achievement = getAchievementElement(achievementId); if (achievement.find(By.className("active")) != null) { // Achievement is enable, else do nothing achievement.click(); } return this; }
5455565758596061626364
PageElement achievement = getAchievementElement(achievementId); if (!achievement.find(By.className("mask")).hasClass("active")) { // Achievement is enable, else do nothing achievement.click(); } return this; }