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()