selenium之python(二)、简单的实例
2018-07-14 16:34
204 查看
创建一个demo.py
from selenium import webdriverdr = webdriver.Chrome()dr.get("http://www.baidu.com")dr.find_element_by_id("kw").send_keys(search)dr.find_element_by_id("su").click()dr.close()保存运行即可看到我们的效果了。
相关文章推荐
- python+selenium简单实现拖动元素实例
- Python+Selenium 简单的实例
- python 简单实例训练(11~20)
- python_慕课\Python开发简单爬虫\5-3 Python爬虫urlib2实例代码.py
- Selenium_python实例代码(3)
- python实现的简单FTP上传下载文件实例
- python实现的简单FTP上传下载文件实例
- Python Tkinter简单布局实例教程
- Python3的动态加载模块简单实例
- Python selenium的简单使用
- Python简单爬虫导出CSV文件的实例讲解
- Python实现的简单算术游戏实例
- python selenium expected_conditions使用实例
- Python Sleep休眠函数使用简单实例
- python 简单实例训练(61~70)
- python的多线程简单实例理解
- python爬虫系列(1)——一个简单的爬虫实例
- Python实现的简单hangman游戏实例
- Python 编码Basic Auth使用方法简单实例
- python 多进程简单实例