如何在包含driver.get("http://www.yatra.com");
driver.findElement(By.className("iconBeta")).click();
driver.findElement(By.xpath(".//input[contains(@id,'nlp_query')]")).sendKeys("go air evening flight from Mumbai to Chennai coming Sunday");
driver.findElement(By.xpath(".//input[contains(@id,'nlp_submit')]")).click();
try
{
Thread.sleep(5000);
}
catch (InterruptedException e)
{
e.printStackTrace();
}
WebElement we = driver.findElement(By.xpath("(//div[@class='js-flightRow js-flightItem ng-scope']//div[@class='my-res-info full']//span[contains(text(),'Book Now')])[last()]"));
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("arguments[0].click()", we);
数组
这就是我为GIF制作动画的方式:
animationImages
需要在此Imageview上添加文字。
答案 0 :(得分:1)
我只想在gif上面添加一个UILabel。