python UI自动化 splinter
2016-01-25 18:15
671 查看
下载zip文件
到 splinter 文件夹下面
python setup.py install
官网:
http://splinter.readthedocs.org/en/latest/finding.html
到 splinter 文件夹下面
python setup.py install
官网:
http://splinter.readthedocs.org/en/latest/finding.html
from splinter import Browser browser = Browser() browser.visit('https://www.baidu.com/') browser.fill('wd', 'abc') # browser.find_by_name('btnG').click() browser.find_by_id('su') if browser.is_text_present('abc360'): print "Yes, ======!" else: print "No, ============" browser.quit()
相关文章推荐
- 自学Python十二 战斗吧Scrapy!
- python 之class (Overriding methods)
- Sentry: Python 实时日志平台
- 决策树(Decision Tree)
- python解析git log后生成页面显示git更新日志信息
- python 学习第四天
- python-推荐
- ipython notebook安装及使用(一)
- 2. Some scripts of the turtlebot(python)
- Python set 集合
- python常错: join() 方法
- python数字图像处理(10):图像简单滤波
- python数字图像处理(9):直方图与均衡化
- python数字图像处理(8):对比度与亮度调整
- 我的Python成长之路---第四天---Python基础(15)---2016年1月23日(寒风刺骨)
- 我开始学python了(3)
- Learn Python The Hard Way Ex40翻译
- python动手实践(1)
- python黑魔法之编码转换
- python爬虫-爬取美女图片