摘要: 定位使用xpath后,定位消息文本,然后使用text获取消息文本做断言。toast_loc = ("xpath", ".//*[contains(@text,'切换运营商成功')]")elm = WebDriverWait(self.driver, 5).until(EC.presence_of_e 阅读全文
posted @ 2018-11-02 18:11 迁就时光的小孩 阅读(1154) 评论(0) 推荐(0) 编辑