修改测量页面线路列表滑动范围
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -44,15 +44,15 @@ class ScreenshotPage:
|
||||
|
||||
if direction == "down":
|
||||
# 向下滑动
|
||||
start_y = list_container.location['y'] + list_container.size['height'] * 0.95
|
||||
end_y = list_container.location['y'] + list_container.size['height'] * 0.05
|
||||
start_y = list_container.location['y'] + list_container.size['height'] * 0.90
|
||||
end_y = list_container.location['y'] + list_container.size['height'] * 0.1
|
||||
self.logger.info("向下滑动列表")
|
||||
else:
|
||||
# 向上滑动
|
||||
# 记录滑动前的项目,用于判断是否滑动到顶
|
||||
before_scroll_items = self.get_current_items()
|
||||
start_y = list_container.location['y'] + list_container.size['height'] * 0.05
|
||||
end_y = list_container.location['y'] + list_container.size['height'] * 0.95
|
||||
start_y = list_container.location['y'] + list_container.size['height'] * 0.1
|
||||
end_y = list_container.location['y'] + list_container.size['height'] * 0.90
|
||||
self.logger.info("向上滑动列表")
|
||||
|
||||
# 执行滑动
|
||||
|
||||
Reference in New Issue
Block a user