I'm having trouble getting the inner text of a web element on this page (Using VBA + Selenium): https://www.accuweather.com/en/ch/geneva/313082/daily-weather-forecast/313082?day=2
I'm trying to get the text (The "20°") in the following element:
<div class="temperature" style="">20°</div>
I tried using mystring = driver.FindElementByCss(".row.first > .temperature:nth-of-type(2)").text
but for some reason it doesn't seem to work, it returns an empty value in Excel, as if it's not getting anything from the element.
I'd appreciate any help, I've been trying to get this working for a little while now.