摘要:
from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from appium.webdriver.commo 阅读全文
摘要:
import time from appium.webdriver import Remote """可使用uc浏览器小工具uc-devtools来查看H5混合页面""" caps = { "platformName": "Android", "appPackage": "com.lemon.lem 阅读全文
摘要:
一、基于坐标的点击 1 startx = 792 2 endx = 900 3 starty = 49 4 endy = 137 5 center_x = (startx + starty) / 2 6 center_y = (endx + endy) / 2 7 8 # 基于坐标的点击, 9 # 阅读全文
摘要:
1 import time 2 3 from appium.webdriver import Remote 4 from selenium.webdriver import ActionChains 5 from selenium.webdriver.common.actions.mouse_but 阅读全文
摘要:
1 class BasePage(): 2 def __init__(self, driver): 3 self.driver = driver 4 5 def swipe_left(self): 6 """从右到左滑动""" 7 size = self.driver.get_window_rect 阅读全文
摘要:
1 from appium.webdriver import Remote 2 3 4 caps = { 5 "platformName": "Android", 6 "appPackage": "com.lemon.lemonban", 7 "appActivity": ".activity.We 阅读全文