플그래밍/파이써언

[파이썬] Selenium - ValueError: There is no such driver by url

훗티v 2023. 9. 1. 15:37
728x90
반응형

ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/LATEST_RELEASE_116.0.5845

 

파이썬 selenium 드라이버가 제대로 잡히질 않아서 발생하는 오류입니다

 


from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager

driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()))

 

드라이버 잡아주는 코드를 수정하면 정상 작동합니다


# 변경 전
driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()))

# 변경 후
driver = webdriver.Chrome()

반응형