【发布时间】:2016-03-22 07:42:46
【问题描述】:
我使用了以下代码,但它不起作用:
int startX = driver.findElement(By.xpath("//*[@class='android.widget.FrameLayout' and @index='1']")).getLocation.getX();
int startY = driver.findElement(By.xpath("//*[@class='android.widget.FrameLayout' and @index='1']")).getLocation.getY();
我得到的错误是:
getLocation cannot be resolved or is not a field
【问题讨论】:
-
使用Swipe方法刷屏。
标签: android selenium-webdriver testng swipe appium