【发布时间】:2016-05-17 11:00:59
【问题描述】:
我正在使用 nexus 5 进行测试。如何在 Android 中使用 appium 从图库中选择图像。当我使用以下代码时:
driver.findElement(By.xpath("//android.widget.ImageView[@content-desc='Photo
taken on 13 May 2016 12.50']")).click();
我遇到了这样的异常:
Exception in thread "main" org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. (WARNING:The server did not provide any stacktrace information) Command duration or timeout: 50.56 seconds
【问题讨论】:
标签: appium nosuchelementexception