ERROR
AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'
ram_
2022. 11. 22. 20:16
Why?
강사님 selenium version과 내 version이 달라서 error이 발생했다.
이번 selenium 4.0 이상 업데이트 되면서 발생한 에러라고 한다.
해결 방법 01. import
from selenium.webdriver.common.by import by
해결 방법 02. code exchange
find_element_by_xpath("")를 | find_element(By.XPATH, "")로 바꿔준다. |
XPATH가 아닌 다른 툴의 사용방법은 아래 링크를 참고한다.
참고 링크
https://hoood.tistory.com/1613
[파이썬 에러] AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'
0. 에러 AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath' 이번 Selenium 4.0 업데이트로 인해 발생하는 에러입니다. 🔗 Selenium 4.0 Beta 1 changelog 1. 업데이트 및 모듈 추가 from selenium.webdriver.comm
hoood.tistory.com