말 그대로 'WebDriver'에
find_element_by_id
find_element_by_class 등의 함수가 없다는 말이다.
셀레니움 업데이트 이후 해당 문법이 바뀌게 되었다.
아래 공식문서에 언어별 사용할 문법이 잘 나와있다
https://www.selenium.dev/documentation/webdriver/elements/finders/
업그레이드 되기 전 셀레니움을 사용하는것도 방법이다.
굳이 싶지만 selenium 4버전 미만을 설치하면 된다
설치된 selenium 버전 확인:
from selenium import webdriver
print ("Selenium webdriver Version: %s" % (webdriver.__version__))
=> Selenium webdriver Version: 4.9.1
설치된 selenium 삭제 : pip uninstall selenium
낮은 버전 설치: pip install selenium==버전