로딩
요청 처리 중입니다...

[Python] DeprecationWarning: executable_path has been deprecated, please pass in a Service object

 [Python] DeprecationWarning: executable_path has been deprecated, please pass in a Service object

동작에는 문제가 없는 코드이지만 자꾸 executable_path가 deprecated 되었다는 경고가 떠서 수정해야겠다. from selenium import webdriver from selenium.webdriver.common.by import By options = webdriver.ChromeOptions() options.add_experimental_option("excludeSwitches", ["enable-logging"]) dr = webdriver.Chrome(options=options, executable_path=r'chromedriver.exe 경로') dr.set_window_size(414, 800) dr.get('https://www.google.com/') time.sleep(2) DeprecationWarning: executable_path has been deprecated, please pass in a Service object web-...

# python # 파이썬