edge浏览器webdriver下载地址
https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
下载之后解压,把解压的exe文件放入python.exe文件里面
`
from time import sleep
from selenium import webdriver
driver = webdriver.Edge()
driver.get(r'https://www.baidu.com/')
sleep(5)
driver.close()
火狐浏览器webdriver官网下载:https://github.com/mozilla/geckodriver/releases
下载之后和上面edge浏览器一样的,注意浏览器版本和webdriver版本保持一致。