강의

멘토링

커뮤니티

Inflearn Community Q&A

bizzare8726's profile image
bizzare8726

asked

Free Python Course (Usage 4) - Business Automation (RPA)

Selenium Basics 1

find_element_by_id, find_element_by_link_text 등의 함수가 존재하지 않습니다.

Written on

·

462

0

셀레늄의 browser에 find_element, find_elements만 존재합니다.

원인을 모르겠습니다.

 

rpa

Answer 1

0

selenium버전이 강의에서 사용하신것 보다 높아서 그런것으로 보입니다.

아래처럼 한번 확인 해보시면 좋을것 같습니다.

from selenium import webdriver
from selenium.webdriver.common.by import By

browser = selenium.Chrome()
browser.find_element(By.ID, "id")

첫번째 인자로 넣어줄때 By.ID / By.XPATH 이런식으로 가능합니다

bizzare8726's profile image
bizzare8726

asked

Ask a question