How can I create an Xpath for individual elements within the same class name? The element ids (eg. id='some_item_12') is not constant (ie. could be 12,3, etc on next iteration) so I can't use a direct xpath to the element.
I have used the one below but it fetches the first element in that class eg. //*[@id='someitem_12']/td[5]/div/a[1] while I want a[2]
//*[contains(concat(' ', normalize-space(@class), ' '), ' $classname ')]
Thanks.
LP