I have the following HTML
<span class="aaa">row is locked</span>
I want to extract that from the response. the following code will print out the response content but will not print out anything between the span tags.
private void printElementsWithAttributes(WebResponse webresponse) throws Exception
{
String [] elementNames = webresponse.getElementNames();
for(int index = 0; index < elementNames.length; index++)
{
HTMLElement [] htmlelements = webresponse.getElementsWithName(elementNames[index]);
for(int jindex = 0; jindex < htmlelements.length; jindex++)
{
System.out.print(htmlelements[jindex].getName()+" | ");
System.out.print(htmlelements[jindex].getTagName()+" | ");
System.out.print(htmlelements[jindex].getText());
}
}
}
Thanks for any help
Tony