static public void main( String[] args ) {
Document playerpage =
Jsoup.connect("http://en.wikipedia.org/wiki/Diego_Forl%C3%A1n").get();
Elements table = playerpage.getElementsByTag("table").select("table.infobox");
Elements ind = table.select("tr:contains(Club information)");
As you can see, I successfully selected the row of the table which contains the text: Club information.
How can I return the row index of this element as I want to use the number for the next search?
1 Answer