셀레니움 질문 드립니다.

from selenium import webdriver
browser = webdriver.Chrome("./chromedriver.exe") # "./chromedriver.exe"
browser.get("http://naver.com")
elem = browser.find_element_by_class_name("link_login")
elem.click()

위와 같이 실행시 아래와 같이 네이버 화면까지는 뜨는데 로그인 버튼 클릭이 안되네요..
왜이럴까요..

C:\Users\user\Desktop\PYTHONWORKSPACE>"C:/Program Files/Python310/python.exe" c:/Users/user/Desktop/PYTHONWORKSPACE/webscraping_basic/13_selenium.py

DevTools listening on ws://127.0.0.1:51206/devtools/browser/effeed89-6356-4e59-b029-661a9a78cdbf
Traceback (most recent call last):
File "c:\Users\user\Desktop\PYTHONWORKSPACE\webscraping_basic\13_selenium.py", line 9, in elem = browser.find_element_by_class_name("link_login")
AttributeError: 'WebDriver' object has no attribute 'find_element_by_class_name'

C:\Users\user\Desktop\PYTHONWORKSPACE>[18020:18500:0718/233004.546:ERROR:device_event_log_impl.cc(214)] [23:30:04.546] Bluetooth: bluetooth_adapter_winrt.cc:1074 Getting Default Adapter failed.

leeyeonkuk 63

2022년 7월 18일 11:37 오후

목록으로