I am trying to grab some values from the following code example but am unable to get a successful answer.
Using the US Patent and Trademark Office's website with a random trademark entered in this link. I want to grab the Registration Date which has a value of May 12, 2015
<div class="double table">
<div class="row">
<div class="key">US Serial Number:</div>
<div class="value">85931937</div>
<div class="key">Application Filing Date:</div>
<div class="value">May 14, 2013</div>
</div>
<div class="row">
<div class="key">US Registration Number:</div>
<div class="value">4735834</div>
<div class="key">Registration Date:</div>
<div class="value">May 12, 2015</div>
</div>
Notice this would be the fourth time the class name value
is being called in the code example and is nested within other div classes.
This is what I have tried so far:
values = browser.find_elements(By.CLASS_NAME, 'value')
print(values[3])
but values returns an empty list []
Please advise on what I am doing wrong, thank you in advance.