摘要:
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') 阅读全文
摘要:
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() 阅读全文