Appium学习笔记||九、操作不可见元素
原则很简单:滑动页面,直到元素可见
screensize = driver.get_window_size() screenW = screensize['width'] screenH = screensize['height'] x = screenW/2 y1 = int(screenH * 0.8) y2 = int(screenW * 0.4) driver.swipe(x, y1, x, y2, 3000) driver.find_element_by_id("com.tencent.qqlive:id/ahs").click()