swift - 无法使用 EarlGrey 滚动操作进行滚动
问题描述
我无法滚动表格视图的初始状态。当到达带有长表的页面时,我尝试使用向下滚动,scrollInDirection()
但收到错误 ( cannot scroll, scrollview is already at edge
)。如果我执行一个swipeUp()
操作然后尝试滚动,我可以使用相同的代码上下滚动。如果没有不必要的滑动动作,我无法弄清楚如何滚动。
滚动代码:
EarlGrey.selectElement(with: grey_kindOfClass(UITableView.self)).perform(grey_scrollInDirection(GREYDirection.down, 300))
收到错误:
"NSLocalizedDescription" : "Cannot scroll, the scrollview is already at the edge"
解决方案
推荐阅读
- python - 给定 y 轴的直方图
- r - 将 file.txt 加载到 R 中的 df
- docker - 响应状态码不表示成功:401(未经授权)- Azure Devops Feed ASP.NET Core 3.1 Docker Build
- java - 如何计算图中红色和白色节点之间的边数?
- c# - 如何在 C# 表单的 4 个文本框中显示 4 个随机数?
- pandas - 如何删除具有已知列值的行?
- vim - “策略”E667:使用 vim 编辑 pcie_aspm/parameters/policy 时 Fsync 失败
- r - R:随着时间的推移,使用 3D 数组(纬度、经度和时间)计算函数的最佳方法是什么?
- c# - 我只想要 SQL Server 中的日期(SQL Server 2005 版本)
- mysql - MySQL JSON 数据类型/JPA 编码问题