driver.get("https://flight.qunar.com/");
        WebElement radioOne=driver.findElement(By.xpath("//*[@id='searchTypeSng']"));
        radioOne.click();
        WebElement startPlace=driver.findElement(By.xpath("//*[@id='dfsForm']/div[2]/div[1]/div/input"));

        startPlace.clear();
        startPlace.sendKeys("北京");
        WebDriverWait wait=new WebDriverWait(driver, 10);
       wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath("//div[@class='qcbox-fixed js-suggestcontainer'][1]//td[contains(text(),'北京')]")));
       WebElement endPlace1=driver.findElement(By.xpath("//div[@class='qcbox-fixed js-suggestcontainer'][1]//td[contains(text(),'北京')]"));

附 firbug 截图


↙↙↙阅读原文可查看相关链接,并与作者交流