随笔分类 -  Selenium

摘要:官方文档:https://www.selenium.dev/selenium/docs/api/java/ Selenium WebDriver | Selenium 中文文档: https://wizardforcel.gitbooks.io/selenium-doc/content/offici 阅读全文
posted @ 2020-06-22 09:35 船长博客 阅读(629) 评论(0) 推荐(0) 编辑
摘要:官方文档:https://www.selenium.dev/selenium/docs/api/py/api.html 有搜索功能,比如搜索find https://selenium-python.readthedocs.io/api.html#locate-elements-by 中文文档: ht 阅读全文
posted @ 2020-06-22 09:24 船长博客 阅读(200) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/python # -*- coding: utf-8 -*- from selenium import webdriver import time # browser = webdriver.Firefox() # browser = webdriver.Ie() browse 阅读全文
posted @ 2020-06-22 08:08 船长博客 阅读(709) 评论(0) 推荐(0) 编辑
摘要:下载相应版本geckodriver http://npm.taobao.org/mirrors/geckodriver/ 解压后放入C:\Python27目录下(我之前已经将其设置为环境变量) 我是win10 64位,选择的是:http://npm.taobao.org/mirrors/geckod 阅读全文
posted @ 2020-06-21 16:08 船长博客 阅读(406) 评论(0) 推荐(0) 编辑
摘要:http://npm.taobao.org/mirrors/chromedriver/ Firefox:http://npm.taobao.org/mirrors/geckodriver/ http://npm.taobao.org/mirrors/selenium/ 版本下有IEDriverSer 阅读全文
posted @ 2020-06-20 10:01 船长博客 阅读(842) 评论(0) 推荐(0) 编辑
摘要:pip list显示selenium版本 selenium 3.141.0 下载相应版本IEDriverServer http://npm.taobao.org/mirrors/selenium/ 解压后放入C:\Python27目录下(我之前已经将其设置为环境变量) 我这里选择的是:http:// 阅读全文
posted @ 2020-06-20 09:57 船长博客 阅读(1147) 评论(0) 推荐(1) 编辑
摘要:查看Chrome版本号: chrome://settings/help 下载相应版本chromedriver http://npm.taobao.org/mirrors/chromedriver/ 解压后放入C:\Python27目录下(我之前已经将其设置为环境变量) 阅读全文
posted @ 2020-06-20 09:51 船长博客 阅读(164) 评论(0) 推荐(0) 编辑
摘要:如果没有安装GeckoDriver会提示: selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH. 一、下载GeckoDriver 下载地址:https 阅读全文
posted @ 2020-06-20 08:09 船长博客 阅读(5531) 评论(1) 推荐(4) 编辑
摘要:解决: selenium传入中文时前面加u browser.find_element_by_id("kw").send_keys(u"船长博客") #!/usr/bin/python # coding:utf-8 from selenium import webdriver import time 阅读全文
posted @ 2020-06-20 07:57 船长博客 阅读(1269) 评论(0) 推荐(0) 编辑
摘要:Python 3.7.6 1.安装selenium pip install selenium 2.根据自己的chrome版本下载相应版本的chromedriver http://npm.taobao.org/mirrors/chromedriver/ 3.把chromedriver解压后拷贝到PAT 阅读全文
posted @ 2020-06-01 23:51 船长博客 阅读(2426) 评论(0) 推荐(1) 编辑
摘要:http://npm.taobao.org/mirrors/chromedriver/ 阅读全文
posted @ 2020-06-01 23:33 船长博客 阅读(3314) 评论(0) 推荐(0) 编辑
摘要:pip install selenium # openbaidu.py#!usr/bin/python from selenium import webdriver import time browser = webdriver.Firefox() browser.get("http://www.b 阅读全文
posted @ 2017-01-02 18:07 船长博客 阅读(8576) 评论(0) 推荐(0) 编辑

永远相信美好的事情即将发生!
点击右上角即可分享
微信分享提示