Notice
Recent Posts
Recent Comments
Link
250x250
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 7월 일기
- pip install
- 텍스트크롤링
- 주피터
- 양재 회식
- 양재 맛집
- 신병훈련소 태블로
- 조리원이야기
- python
- 과천 맛집
- 조리원생활
- 과천 한식
- 신병훈련소
- 크롤링
- 칼국수 맛집
- 태블로 신병훈련소
- 칼국수 어디로
- 조리원
- 용인 사찰
- 용인 절
- 한전아트센터 웨딩홀
- 태블로
- Selenium
- 을지로3가
- 태블로 탭파이
- Tabpy
- 취준일기
- 남한산성 사찰
- 일기
- vscode
Archives
- Today
- Total
김빵디
AttributeError: 'list' object has no attribute 'get_attribute'. Did you mean: '__getattribute__'? 해결방법 본문
외로운 싸움/Selenium
AttributeError: 'list' object has no attribute 'get_attribute'. Did you mean: '__getattribute__'? 해결방법
김빵디 2022. 5. 20. 18:09728x90
잘못되면 고치면되지!
elements → element로 사용하면 됨
ex.
img = driver.find_elements_by_css_selector('._image') (X)
img = driver.find_element_by_css_selector('._image') (O)
a = driver.find_element_by_css_selector('abcd')
b = img.get_attribute('src')
728x90
'외로운 싸움 > Selenium' 카테고리의 다른 글
| Python+Selenium Unittest 단위테스트 실행해보기(단순) + 파이어폭스 웹드라이버 설치하기(Firefox webdriver install download) (0) | 2022.05.24 |
|---|---|
| python+selenium 네이버 이미지 크롤링(여러장 다운받기) (0) | 2022.05.20 |
| Python+Selenium 네이버검색한 View 제목 텍스트들을 크롤링해보자! (0) | 2022.05.20 |
| Python+Selenium 구글사이트 자동검색 후 네이버 웹페이지 열어보기 (0) | 2022.05.20 |
| Python+Selenium 구글사이트 자동검색 해보기 (0) | 2022.05.20 |