728x90
반응형
[Python] 셀레니움(Selenium) Element 텍스트 읽기 & 가져오기 !
셋중에 편하신걸 쓰시면 되세요 !
.text는 가끔 가지고 오지 못할때가 있더라구요ㅠ
text = driver.find_element_by_xpath('').text
text = driver.find_element_by_xpath('').get_attribute('innerText')
text = driver.find_element_by_xpath('').get_attribute('innerHTML')
728x90
반응형
'Coding > Python' 카테고리의 다른 글
[Python] 초간단 파이썬 소수점 자리수 반올림 하는 방법 !! (0) | 2022.08.18 |
---|---|
[Python] 파이썬 TypeError: string indices must be integers 에러 원인 및 해결 방법 !! (0) | 2022.07.27 |
[Python] 셀레니움(Selenium) 페이지 스크롤 기능 만들기 ! (0) | 2022.07.01 |
이미지 & 사진 크롤링(Crawling) 프로그램 - 원하는 사진 한번에 다운 받기! (0) | 2022.06.22 |
[Python & tkinter] 파이썬 GUI 입력 및 콤보박스(Combobox) 만드는 방법 - #2 (frame 추가) (0) | 2022.06.17 |
댓글