请告知是否接受这种方法来使用 Selenium 取货
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
driver.get("https://www.spicejet.com/");
Thread.sleep(3000);
JavascriptExecutor js = ((JavascriptExecutor)driver);
js.executeScript ("document.getElementById('ctl00_mainContent_view_date1').removeAttribute('readonly',0);");
WebElement onwards_date = driver.findElement(By.id("ctl00_mainContent_view_date1"));
onwards_date.clear();
onwards_date.sendKeys("28/02");
js.executeScript ("document.getElementById('ctl00_mainContent_view_date2').removeAttribute('readonly',0);");
WebElement return_Date = driver.findElement(By.id("ctl00_mainContent_view_date2"));
return_Date.clear();
return_Date.sendKeys("27/03");