2.1在日期选择器上进行日期选择
被测网页的网址:
https://www.html5tricks.com/demo/Kalendae/index.html
Java语言版本的API实例代码
@Test
public void testdataPicker()throws Exception {
WebElement dataInputBox = driver.findElement(By.id("input1"));
dataInputBox.clear();
//通过文本框中输入日期来对日期选择器进行选择
dataInputBox.sendKeys("3/20/2019");
}