I have a table that looks like this:
<table class="theClass"> <tr> <td class="anotherClass"><strong>Label1:</strong></td> <td colspan="3">Value1a<br/>Value1b<br/>Value1c</td> </tr> <tr> <td class="anotherClass"><strong>Label2:</strong></td> <td colspan="3">Value2a<br/>Value2b<br/>Value2c</td> </tr> <tr> <td class="anotherClass"><strong>Label3:</strong></td> <td colspan="3">Value3a<br/>Value3b<br/>Value3c</td> </tr> </table>
How can I use Selenium RC to extract Value1a, Value1b and Value1c? Can I use selenium.getText (...) or storeText (...)? If so, what is the correct xpath I should use? Suppose a table cannot be modified. Thanks!
source share