카테고리 없음
selenium 에서 자식 선택자 사용
땅진
2017. 12. 24. 16:07
Only the following pseudo-classes are implemented: nth-of-type.
위 에러 발생 시, 해결 방법
selenium에서는 구글 크롬 개발자도구에서 셀렉터 카피에서 나오는 child 선택자인 nth-child 를 지원하지 않는다.
하여, nth-of-type 로 쓰면 매우 잘 된다.
아래 글에 있는 p + p + p 방식을 써도 매우 잘된다.
#참조
https://stackoverflow.com/questions/24720442/selecting-second-child-in-beautiful-soup-with-soup-select