inflearn logo
강의

講義

知識共有

[新規改訂版] これが本当のエクセル自動化だ - 基本編

Google Chrome 업데이트 이후 크롬드라이브 실행 오류

2158

c995028875438

投稿した質問数 1

0

알려주신 크롬 드라이브 코드를 잘 사용하고 있었는데 Google Chrome을 최신 업데이트 한 이후에 크롬 드라이버 실행하는데 계속 오류가 발생하고 있습니다ㅠㅠㅠㅠ

도움 주시면 감사드리겠습니다:-)

import time
import openpyxl
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import UnexpectedAlertPresentException, NoAlertPresentException
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.alert import Alert
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.action_chains import ActionChains
from selenium.common.exceptions import NoSuchWindowException
  
# 크롬 드라이버 자동 업데이트
from webdriver_manager.chrome import ChromeDriverManager
 
  
# 브라우저 꺼짐 방지
chrome_options = Options()
chrome_options.add_experimental_option("detach", True)
 
# 불필요한 에러 메세지 없애기
chrome_options.add_experimental_option("excludeSwitches" , ["enable-logging"])
 
# 창 최대화
chrome_options.add_argument("--start-maximized")
  
service = Service(executable_path=ChromeDriverManager().install())
driver = webdriver.Chrome(service=service , options=chrome_options)
 
 
# 로그인 페이지로 이동
driver.get("https://eclogin.cafe24.com/Shop/")

python selenium

回答 2

1

dldnjssh123

오류를 이미 해결하셨는지 모르겠지만, 방금 해결해서 방법 알려드립니다.
오류가 나는 이유는 구글 쪽에서 크롬 드라이버 설치 경로를 변경한 걸로 보입니다.
그래서 최신 버전 드라이버를 다운로드하려면, 없는 주소라고 나오더라고요.


해결방법은 webdriver-manager 패키지를 최신버전으로 설치해주시면 됩니다.
pip uninstall webdriver-manager 하시고
pip install webdriver-manager 해주시면 될것같습니다.

0

startcoding

아래와 같이 드라이버 생성해 보세요~

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
import time

# 브라우저 꺼짐 방지
chrome_options = Options()
chrome_options.add_experimental_option("detach", True)

# 불필요한 에러 메시지 없애기
chrome_options.add_experimental_option("excludeSwitches", ["enable-logging"])

# 드라이버 생성
driver = webdriver.Chrome(options=chrome_options)

선생님 셀에서 전체 실행은 어떻게하나요?

0

86

2

전자는 보안때매 안되나요?

0

150

2

보고서, 데이터, 계산서 자동 정리 프로그램 오류

0

208

1

사이트 접속 후 로그인 버튼 클릭 시 문제점

0

280

3

엑셀 파일 제목 중복되면 (1),(2) 씩 늘어나게 해서 생성하게 하기

0

407

1

엑셀 다루기 기초에서 날짜 1일씩 늘어나게 하기

0

847

1

크롬창이 자꾸 꺼져요!!

0

912

1

mouseInfo

0

284

1

pyautogui.mousInfo() 질문(영상 11:03)

0

221

2

네이버 메일 자동화 실습 문의

0

372

1

pip명령이 vscode 명령프롬프트에서만 않되네요

0

4450

2

매출데이터 생성 price 오류

0

366

2

네이버 자동화 실습 관련 질의

0

448

1

pyautogui.center(pyautogui.locateOnScreen('wmp.PNG', grayscale=True, confidence=0.7)) 좌표 이상

0

538

2

블로그에 강의 코드를 정리해서 올려도 괜찮을까요??

0

408

1

Chrome version 116, Selenium version 4.11.2 이후

0

719

1

python upgrade 후 selenium 인식 불가

0

810

1

크롬드라이브 실행 오류

1

15385

4

오프라인 pip설치문의

0

1232

2

네이버 메일 자동화, 메일 창이 새탭에 생성

0

908

1

팝업 설명창?

0

419

1

셀레니움 기초 사용법

0

545

1

키보드 자동화_소문자 ko 입력 안되는 이유 질문 드려요

0

487

1

TypeError: 'module' object is not callable 이런 오류가 뜹니다

0

733

1