[英]How to scroll down to click the element in Android using appium and java?
[英]How to automatically click “read more” in the WeChat message using Appium(java)
当我使用appium + eclipse使用微信进行自动化时,我发现找不到“ Read more
链接。 所有内容都包含在FrameLayout
,但是不能选择所有元素。 我尝试通过使用appdriver.tap(1, x, y, 1)
命令单击“阅读更多”链接,x和y是“阅读更多”链接的坐标,但是没有用。 有什么好主意吗? 在此处输入图片说明
use driver.tap(1, yourelement, 1000)
driver.tap(int finger, WebElement, int duration) //this is the function i use above
还有一个功能,那就是
driver.tap(int finger, int x,int y, int duration)
如果这样做没有帮助,您可以使用如下所示的touchaction tap:
TouchAction action = new TouchAction(driver);
action.tap(int x, int y).release().perform();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.