Here is an example. If I want to select the listbox that is near by my email td tag, and the HTML looks like the follows:
Another example, if I want to select the checkbox that is near by my email td tag, I can use the following way to do so:
Or, if I want to get some information in a table, what can I do for this?
OK, if I have the table's HTML code like this:
I can use "Get Table Cell" keyword with xpath //table[@class='your table's class name'] and the information in which row and column, then you can finish the task to get the data from the cell in the table. Here you go:
Reference:
http://stackoverflow.com/questions/247135/using-xpath-to-search-text-containing