摘要: 1 # -*- coding:utf-8 -*- 2 3 """ 4 下拉列表处理 5 """ 6 7 from selenium import webdriver 8 from selenium.webdriver.support.select import Select 9 10 driver = webdriver.Firefox()11 12 driver.get(r'F:\电子书\selenium\Selenium Testing Tools Cookbook(中文)\demo\Droplist.html') 阅读全文
posted @ 2013-06-29 14:12 Roger| 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding:utf-8 -*- 2 3 """ 4 浏览器最大化 5 """ 6 7 from selenium import webdriver 8 9 driver = webdriver.Firefox()10 driver.get('http://www.baidu.com')11 driver.maximize_window() 阅读全文
posted @ 2013-06-29 13:06 Roger| 阅读(202) 评论(0) 推荐(0) 编辑