게을러서 제대로 정리를 못했는데 잘 정리되어 있는 페이지가 있어 링크 겁니다.
1. executable_path has been deprecated, please pass in a Service object 경고가 뜬다면
Selenium4 에서는 Service 개체에 executable_path를 설정해야 합니다.
https://www.selenium.dev/documentation/webdriver/getting_started/upgrade_to_selenium_4/
Upgrade to Selenium 4
Are you still using Selenium 3? This guide will help you upgrade to the latest release!
www.selenium.dev
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
options = webdriver.ChromeOptions()
s = ChromeService(executable_path='/home/python/chromedriver')
driver = webdriver.Chrome(service=s, options=options)
'Python' 카테고리의 다른 글
우분투 (Ubuntu) 에서 다른 버전의 python 사용하기 (1) | 2022.09.20 |
---|---|
pip 설치된 라이브러리 확인, 특정 버전 설치 (0) | 2022.04.11 |
Centos 8 python3.6 삭제 하고 python3.9 설치 (0) | 2022.03.22 |
윈도우에서 python selenium 사용하여 네이버 까페 조회수, 댓글수 가져오기 (0) | 2022.02.11 |
Jupyter notebook 자동줄바꿈 (0) | 2021.11.17 |