from selenium import webdriver
from selenium.webdriver.chrome.service import Service
import time
path = 'D:\dev\python\python3.11.5\chromedriver.exe' # chromedriver.exe所在的位置
service = Service(path)
driver = webdriver.Chrome(service=service)
driver.get('http://www.baidu.com')
time.sleep(10)
print('Open success!')
为什么不加sleep函数浏览器打开后会立马退出,我的selenium版本是4.15.2版本,是因为selenium版本过高吗,这个现象正常吗,求解答