[![Html Code](https://i.stack.imgur.com/OrWZ2.png)](https://i.stack.imgur.com/OrWZ2.png)

How would I get the contents of the div tag that I underlined? I have already tried copying and pasting the xpath, but it doesn't work when printing the contents of the div. 

```
div = driver.find_element_by_xpath('//div[@class="sold_out_tag"]') 

```

is another thing I've tried, but when I try typing `div.text`, it just prints empty spaces.