Hey there, I could use some assistance with retrieving the bubble rating from this website:
svg class="lazysvg-loaded" data-url="/fact-sheet/assets/icons/graphics/icons.htm"
aria-hidden="true" focusable="false"> use xlink:href="#icon-gss-rating-45"></use></svg*
I've attempted a few methods:
rating = container[j].find_element_by_xpath(".//svg[contains(@class, 'lazysvg-loaded')]").get_attribute("class").split("_")[3]
rating = container[j].find_element_by_xpath(".//svg[contains(@class, 'icon-gss-rating-')]").get_attribute("class").split("_")[3]
rating = container[j].find_element_by_xpath(".//svg[contains(@href, 'icon-gss-rating-')]").get_attribute("class").split("_")[3]
However, I keep encountering this error:
NoSuchElementException:
Message: no such element: Unable to locate element: {"method":"xpath","selector":".//svg[contains(@class, 'icon-gss-rating-')]"}
If anyone can provide guidance on the correct approach, it would be greatly appreciated!
Thank you very much