Good, this is bad. Using jquery to switch the class in the div containing the html in the question meant that although users see the div appear, the class that hides the div is still in the tag. A bit like this
<div class="hideThis showThis"></div>
This makes Selenium right does not give me text value. It is strange, however, that the Visual Studio debugger believes that there should be a value. Visual Studio seems to come with what I see, but Selenium is more pedantic in that this hideThis class exists.
I agree that if you can’t see it, you can’t interact with it, so it’s worth looking at the html graph from the element, which, as you expect, will matter to see if any class is present, will hide your item.
Feel free to recommend me to remove this pretty obvious wisdom.
source share