浏览器窗口大小设置
页面前进后退
页面刷新
from selenium import webdriver
from time import sleep
driver = webdriver.Chrome()
driver.get('https://www.51zxw.net/NewAn/WebSearch/Course')
# 设置窗口最大化
driver.maximize_window()
sleep(2)
driver.get('https://www.51zxw.net/list.aspx?cid=615#!fenye=3')
# 设置窗口大小
driver.set_window_size(600, 900)
# 刷新
driver.refresh()
sleep(2)
# 后退
driver.back()
sleep(2)
# 前进
driver.forward()
sleep(2)
driver.quit()