📅  最后修改于: 2022-03-11 15:04:23.050000             🧑  作者: Mango
public static void Selectdatefromcalendar() throws InterruptedException {
WebElement DateBox=driver.findElement(By.xpath("//input[@formcontrolname='categoryDateRange']"));
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("arguments[0].value='01Sep2021-30Sep2021';", DateBox);