My xpath is: /html/body/div/table/tbody/tr[2]/td[4]
/html/body/div/table/tbody/tr[2]/td[4]
I need to get an CSS to use it in jsoup selector.
I found a comparison between xpath and css
Are you looking for something like this:
http://jsfiddle.net/YZu8D/
.tablecont tr:nth-child(2) td:nth-child(4) {background-color: yellow; } .tablecont tr:nth-child(3) td:nth-child(4) {background-color: yellow; }