摘要: 1 driver.current_activity #获取当前activity 2 3 driver.current_package #获取包名 4 5 driver.lock(seconds=2) #息屏 6 7 #收起虚拟键盘 8 driver.hide_keyboard() 9 10 #获取屏 阅读全文
posted @ 2019-11-11 11:19 小天可以 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1 from selenium.webdriver.support.ui import WebDriverWait 2 from selenium.webdriver.support import expected_conditions as ES 3 4 def is_toast_exist(dr 阅读全文
posted @ 2019-11-11 11:11 小天可以 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 1 class handleswipe(): 2 """ 3 屏幕滑动操作 4 """ 5 6 def __init__(self, driver, function, num=None): 7 self.driver = driver 8 self.function = function 9 se 阅读全文
posted @ 2019-11-11 11:09 小天可以 阅读(307) 评论(0) 推荐(0) 编辑