prot = 'appnium的prot'
driver = webdriver.Remote(f'http://{id}:{prot}/wd/hub', desired_caps)
二.向各个方向滑动...width']
y = driver.get_window_size()['height']
return x,y
def swipeUp(driver, t=500, n=1):
'''向上滑动屏幕...i in range(n):
driver.swipe(x1, y1, x1, y2, t)
def swipeDown(driver, t=500, n=1):
'''向下滑动屏幕...for i in range(n):
driver.swipe(x1, y1, x1, y2,t)
def swipLeft(driver, t=500, n=1):
'''向左滑动屏幕...i in range(n):
driver.swipe(x1, y1, x2, y1, t)
def swipRight(driver, t=500, n=1):
'''向右滑动屏幕