前
if( input.get(i).getAttribute("value").contentEquals(DateUtils.getDate())){
Assert.assertEquals(input.get(i).getAttribute("value"), DateUtils.getDate());
log.info("Assertplayer USTA# default value display");
}else{
Assert.assertEquals(input.get(i).getAttribute("value"), DateUtils.getDate(-1));
log.info("AssertActive Date default value display");
}
}
后
String value =input.get(i).getAttribute("value");
Assert.assertTrue(value.equals(DateUtils.getDate()) || value.equals(DateUtils.getDate(-1)),"Should be today or yesterday");