I have a webpage, and when I view the source I get the following:
<td>
<a href="www.example.com">Ryhanu Datta</a>
</td>
<td> daffodil</td>
<td> b2/24 </td>
How can I read the <td> values of a table on a webpage using selenium-webdriver in Ruby?
The information that goes between and is known as the table data. Here is a more fleshed out table, and the meanings:
So you have the pair of tags for the table itself .. , then the pair for the header or title … , and the pair of tags for each row … , and finally, the tag you are asking about is where the table data goes: … . It is really very simple.
Sorry about the half post. I was having some finger trouble, and my old mac was not cooperating either. CHEERS!
I’ve added this. It doesn’t format really well in the comment. So you need the following code to load the page (assuming google.ca, for example), and then to find the tag:
Again, I worked out how to do this from here.
CHEERS. (I hope I understood you properly this time).