I'm trying to scroll the page up and down could someone help me? I'm using appium version 1.6. and java client 6.01For latest Version it is Not Showing driver.scroll()methods or TouchAction action = new TouchAction (this.driver);action.press (startX, startY).moveTo (endX, endY) .release () .perform(); it is not performing press
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- selenium的webdriver可以实现验证页面中,异步请求状态码的操作吗?
- appiumUI自动化send_keys()或者set_value()输入字符不识别,提示Did y
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
These methods are untested as I currently have no test apps that require scrolling, but I've put these together for my own future potential use. I have two methods for each scroll/swipe direction - one using Appium and the other using javascript executor. I'll show just the two scroll down routines I have below, and you should be able to determine easily how to write the other direcections from just these two examples.
First, the Appium version:
Now the corresponding javascript version:
Remember, neither of these are tested, but I am using the information I gathered from the Appium web site itself, so they should both work.