串起截图和上传

This commit is contained in:
2026-02-10 09:20:12 +08:00
parent ac4d41c70b
commit 2441031bb6
26 changed files with 18384 additions and 18432 deletions

View File

@@ -178,7 +178,7 @@ class MoreDownloadPage:
"""滑动年份选择器的滚轮"""
try:
# 获取年份选择器滚轮元素
year_wheel = self.driver.find_element(AppiumBy.ID, "com.bjjw.cjgc:id/wheelView2")
year_wheel = self.driver.find_element(AppiumBy.ID, "com.bjjw.cjgc:id/wheelView1")
# 获取滚轮的位置和尺寸
location = year_wheel.location
@@ -191,7 +191,7 @@ class MoreDownloadPage:
# 计算滑动距离 - 滚轮高度的1/5
swipe_distance = size['height'] // 5
for i in range(3):
for i in range(1):
# 执行滑动操作 - 从中心向上滑动1/5高度
self.driver.swipe(center_x, center_y - swipe_distance, center_x, center_y, 500)
@@ -369,7 +369,7 @@ class MoreDownloadPage:
continue
return False
def wait_for_loading_dialog(self, timeout=900, download_type="unknown", retry_count=0):
def wait_for_loading_dialog(self, timeout=1200, download_type="unknown", retry_count=0):
"""
检查加载弹窗的出现和消失支持最多1次重试总共执行2次
"""