I used htmlunit to get htmltable rows.But I cannot set them to mysql database. My database has columns like the htmltable.How can i save current row to my database?? Can anybody help me? Here is my code:
final HtmlTable table = HtmlTable)currentPage.getByXPath("//table[@role='grid']").get(0);
int i = 0;
for(final HtmlTableRow row : table.getRows()){
System.out.println(row.asText());
rows[i] = row.toString();
i++;
}