我很努力從jquery datepicker日期範圍選擇器中使用selenium web驅動程序選擇一個日期範圍。無法從jquery datepicker日期範圍選擇器中選擇一個日期範圍在Selenium JAVA
下圖顯示了日期選擇器。
我需要從這個日曆中選擇一個日期範圍。我試過以下鏈接。
只有我發現相關的是下面的代碼段。
driver.switchTo().frame(driver.findElement(By.xpath("//iframe[@class='demo-frame'][@src='/resources/demos/datepicker/default.html']")));
driver.findElement(By.id("datepicker")).click();
System.out.println("Datepicker Clicked");
但是,它不顯示如何從日期選擇器中選擇日期範圍。
在此先感謝。 :-)
這是什麼dateBox? –
更新了我的答案。 – Kapil
我沒有輸入日期的文本字段。只有日曆 –