【发布时间】:2017-05-02 10:11:55
【问题描述】:
我正在测试一个需要放大 4 倍才能到达特定区域的应用。
我使用了以下 xpath:
@FindBy(xpath= "//android.widget.ImageView[@content-desc='Zoom in']")
WebElement btnZoomIn;
但是,我收到以下错误:
An element could not be located on the page using the given search parameters.
我也尝试过使用
List<WebElement> listImageView = driver.findElements(By.className(("android.widget.ImageView")));
但是,listImageView.size() 返回 0
下面是 UIAutomatorViewer 截图:
请帮助我解决问题。谢谢!
【问题讨论】:
标签: android junit automated-tests appium