随笔分类 -  selenium-python

摘要:1.WebDriverWait等设置等待时间和超时时间 https://www.cnblogs.com/BigFishFly/p/6337153.html 2. expected_conditions判断页面元素 https://www.cnblogs.com/linbao/p/8082293.ht 阅读全文
posted @ 2019-01-09 18:34 M兔 阅读(123) 评论(0) 推荐(0)
摘要:1.下载 chromedriver.exe,并放到chrome的安装目录2.将chrome的安装目录添加到系统变量中3.重启电脑4.写一个比见到脚本# coding = utf-8 from selenium import webdriver browser = webdriver.Chrome() 阅读全文
posted @ 2019-01-09 16:44 M兔 阅读(180) 评论(0) 推荐(0)
摘要:1. Python is likely shutting down 解决方案https://www.cnblogs.com/drake-guo/p/6188366.html 2. Selenium 报错:Element is not clickable at point的解决办法 org.openq 阅读全文
posted @ 2019-01-09 16:09 M兔 阅读(166) 评论(0) 推荐(0)
摘要:1. Selenium with Python 官方资料 https://selenium-python.readthedocs.io/index.html 2.下载chromedriver.exe http://chromedriver.storage.googleapis.com/index.h 阅读全文
posted @ 2019-01-09 15:38 M兔 阅读(108) 评论(0) 推荐(0)
摘要:其中有一片文章提到了xpath元素定位,但是该文章中有些并不能适应一些特殊与个性化的场景。在文本中提供xpath元素的定位终极篇,你一定能在这里找到你需要的解决办法。 第一种方法:通过绝对路径做定位(相信大家不会使用这种方式) By.xpath("html/body/div/form/input") 阅读全文
posted @ 2018-08-22 11:37 M兔 阅读(360) 评论(0) 推荐(0)