0
i ein Radio ein-Wege-Taste ein Flug Seite .i des Gewürzes Jet Buch klicken möchten, klicken Sie auf den folgenden Code in Web-Treiber-Format geschrieben, aber nicht in der Lage Tastenicht in der Lage das Optionsfeld
public void flight() throws Exception{
driver.get("http://www.spicejet.com/FlyForSure.aspx");
driver.manage().window().maximize();
WebDriverWait wait=new WebDriverWait(driver,40);
driver.findElement(By.cssSelector("input.AvailabilitySearchInputCompactSearchVi_OneWay")).click();
}
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
spice a1=new spice();
a1.flight();
}
}
Fehler klicken Botschaft;
Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"css selector","selector":"input.AvailabilitySearchInputCompactSearchView_OneWay"}
Command duration or timeout: 15.96 seconds
wie ... können Sie deutlich machen, bitte – swagatika