浏览器窗口大小设置
driver.maximize_window
页面前进后退
driver.back
driver.forward
页面刷新
driver.refush
from selenium import webdriverfrom time import sleepdriver=webdriver.Chrome()driver.get("http://www.51zxw.com")driver.maximize_window()sleep(3)driver.get("http://www.51job.com")driver.set_window_size(400,800)driver.refresh()sleep(2)driver.back()sleep(2)driver.forward()sleep(2)driver.quit()