I was having a hard time using Selenium web driver to find the label text for the below scenario.
<tr id="row">
<td width="148" height="22" align="left">
<b> Label Text</b>
</td> </tr>
How do I get the Label Text using webdriver ?
Thanks in advance.
Thanks for the reply. I think I should have been more specific. I have a list of td tags inside the tr tag. For eg:
<tr id="row">
<td width="148" height="22" align="left">
<b> Label Text 1</b>
<td width="148" height="22" align="left">
<b> Label Text 2</b>
<td width="148" height="22" align="left">
<b> Label Text 3</b>
</td> </tr>
driver.findElement(By.id("row")).getText() would retrieve me all of those label values. Can I get the label value based on the location in the page ? Thanks.