04 2019 档案

摘要:1. 对webview页面元素的处理self.driver.switch_to.context("WEBVIEW_com.aaa.bbb")source = self.driver.page_sourceprint("订单支付页面>>",source)print("context>>",self.d 阅读全文
posted @ 2019-04-19 14:06 jiguanghover 阅读(129) 评论(0) 推荐(0) 编辑
摘要:一、定义fixture方法 阅读全文
posted @ 2019-04-18 15:59 jiguanghover 阅读(243) 评论(0) 推荐(0) 编辑
摘要:在客户端登录或者退出登录的时候会有吐司提示,因此需要抓取来验证用户登录成功或者注销成功; 在获取toast之前需要添加 desired_caps['automationName'] = 'Uiautomator2' , 否则无法获取到toast 调用toast方法一: 阅读全文
posted @ 2019-04-12 14:54 jiguanghover 阅读(208) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示