Unable to retrieve text selenium
<p>Script:</p>

<pre><code>List&lt;WebElement&gt; addCheck=driver.findElements(By.name("ticketLess"));
for(WebElement checkbox : addCheck ){
    System.out.println(checkbox.getAttribute("Text"));
}
</code></pre>

<p>HTML:</p>

<pre><code>&lt;input type="checkbox" name="ticketLess" value="checkbox"&gt;
&lt;font face="Arial, Helvetica, sans-serif" size="2"&gt;
        Same as Billing Address&amp;nbsp;&lt;/font&gt;
</code></pre>

<p>The text i am trying to get is <code>Same as Billing Address</code>. I tried using <code>getText()</code> also but its not returning nothing.</p>