내 영화 목록의 영화 이름 뒤에 셀에 imdb 등급을 쓰려고 합니다. 불행히도 imdb 값을 저장할 수 없습니다.
Sub seleniumtest()
Dim RS
Set GC = New Selenium.ChromeDriver
GC.Start
GC.Get ("https://www.imdb.com/title/tt0993840/")
Set RS = GC.FindElementByCss("[class='AggregateRatingButton__RatingScore-sc-1ll29m0-1 iTLWoV']")
RS는 5.8이어야 합니다.
오류로 다음을 얻습니다.
Element not found for Css=.AggregateRatingButton__RatingScore-sc-1ll29m0-1 iTLWoV```
I think it is because of the space
아래 CSS를 사용할 수 있습니다.
span[class^='AggregateRatingButton']
코드에서처럼 :
Debug.Print GC.FindElementByCss("span[class^='AggregateRatingButton']").Text
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다