📌  相关文章
📜  javascript 转换为 java - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:23.050000             🧑  作者: Mango

代码示例6
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);