上一页 1 2 3 4 5 6 ··· 12 下一页
  2020年1月20日
摘要: 阅读全文
posted @ 2020-01-20 14:31 wenjingtester 阅读(75) 评论(0) 推荐(0) 编辑
  2020年1月19日
摘要: XPath Helper Chrome插件 https://chromecj.com/web-development/2018-01/892.html 阅读全文
posted @ 2020-01-19 17:26 wenjingtester 阅读(107) 评论(0) 推荐(0) 编辑
  2020年1月17日
摘要: info_eles = driver.find_element_by_class_name('Ptable-item') result_list = [] for info_ele in info_eles: info_ele_dict = get_info_ele_dict(info_ele) r 阅读全文
posted @ 2020-01-17 16:32 wenjingtester 阅读(268) 评论(0) 推荐(0) 编辑
摘要: #切换句柄(2个标签)handles = driver.window_handlescurrent_handles = driver.current_window_handlefor handle in handles: if handle != current_handles: driver.sw 阅读全文
posted @ 2020-01-17 16:29 wenjingtester 阅读(305) 评论(0) 推荐(0) 编辑
  2020年1月16日
摘要: 1.json.dumps()用于将dict类型的数据转成str 2.json.loads():用于将str类型的数据转成dict 3.json.dump()用于将dict类型的数据转成str,并写入到json文件中 4.json.load()用于从json文件中读取数据 阅读全文
posted @ 2020-01-16 10:33 wenjingtester 阅读(617) 评论(0) 推荐(0) 编辑
  2020年1月15日
摘要: from selenium import webdriverfrom selenium.webdriver.common.action_chains import ActionChainsimport time,os,jsondriver = webdriver.Chrome()url = "htt 阅读全文
posted @ 2020-01-15 15:42 wenjingtester 阅读(231) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriverimport time,os,jsondriver = webdriver.Chrome()driver.maximize_window()url = "https://www.cnblogs.com/"driver.get(url)#保存 阅读全文
posted @ 2020-01-15 11:22 wenjingtester 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 操作滚动条: # 第一个参数横轴最左侧,10000代表最右侧;# #第二个参数代表上和下,0是代表最上边,10000代表最下边 js = "window.scrollTo(0,1500)"#操作浏览器右侧滚动条 driver.execute_script(js) 总结了几种js常用的定位元素方法,并 阅读全文
posted @ 2020-01-15 11:18 wenjingtester 阅读(7437) 评论(0) 推荐(0) 编辑
  2020年1月14日
摘要: from selenium import webdriverfrom selenium.webdriver.common.action_chains import ActionChainsimport timeimport osdef screenshot(driver,file_path = No 阅读全文
posted @ 2020-01-14 15:13 wenjingtester 阅读(2817) 评论(0) 推荐(0) 编辑
  2020年1月13日
摘要: 1.X86和X86-64的区别:系統是32 bit 的版本还是 64bit 的 2.web-based ,executable , embeddable zipfile区别 web-based: 透过网络安装的,就是执行安装后才透过网络下载python executable: 可執行文件的,既把要安 阅读全文
posted @ 2020-01-13 17:09 wenjingtester 阅读(694) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页