摘要: 1. html的class属性,class="light-chip alternate-fakebox show-fakebox-icon"的中间存在空格,表示有三个属性名称,定位时选取一个就好,不然无法定位到 阅读全文
posted @ 2020-01-08 20:44 badbadboy 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 1. 获取cookies 实现代码如下: import time from selenium import webdriver class cookies_login: wd=webdriver.Chrome() def getCookies(self): wd=self.wd wd.maximiz 阅读全文
posted @ 2020-01-08 19:48 badbadboy 阅读(471) 评论(0) 推荐(0) 编辑