selenium-xpath

selecting the last node from a list of matches

Hi everyone, I'm trying to figure out a way of finding the last node that matches a given xpath using last() function. The problem is that the last element of path also has a constraint specified. "//div[@id='someId']/ul/li/div[@class='class1 class2 ']/span[@class='someType2 ']" if I use "//div[@id='someId']/ul/li/div[@class='class...