hmn

1、下面是图片

1
2
3
4
5
6
7
8
9
10
11
12
13
# 创建driver对象
driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", caps)
width_x = driver.get_window_size()["width"]
width_y = driver.get_window_size()["height"]
print("等待开始······")
time.sleep(10)
print("等待结束······")
count = 0
while count <= 1800:
# 左滑屏幕
# driver.swipe(width_x, width_y * 1 / 2, 0, width_y * 1 / 2, duration=70)
driver.swipe(width_x * 4 / 5, width_y * 1 / 9, width_x * 2 / 5, width_y * 1 / 9, duratio
count += 1