gpt4 book ai didi

android - 如何使用 espresso 对 android 中的特定单元格进行表格 View 和滚动的自动化测试?

转载 作者:行者123 更新时间:2023-11-29 19:15:01 30 4
gpt4 key购买 nike

表格 View 的自动化测试和特定单元格的滚动,即使用 espresso 的 android 中的行和列。在表格中,我无法滚动到特定的单元格,

最佳答案

试试这个 UI Automator

 UiScrollable app2 = new UiScrollable(new UiSelector().scrollable(true));
app2.swipeLeft(200);

UiScrollable app3 = new UiScrollable(new UiSelector().scrollable(true));
app3.swipeRight(200);

UiScrollable app4 = new UiScrollable(new UiSelector().scrollable(true));
app4.swipeDown(200);

UiScrollable app5 = new UiScrollable(new UiSelector().scrollable(true));
app5.swipeUp(200);

关于android - 如何使用 espresso 对 android 中的特定单元格进行表格 View 和滚动的自动化测试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43865239/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com