I have a code
driver.findElement(By.cssSelector("#lmv-dialog-add-id-_newFundAllocation-targetAllocation-88-F03 >td.tright > a.lmv-show")).click();
88 which occurs in the code is variable. How to modify the code to the code was searched regardless of whether there will be 88, 99, 12 or any other number?
in addition. On the same naming three elements xpath :
id('lmv-dialog-add-id-_newFundAllocation-targetAllocation-88-F01')/x:td[3]/x:a
id('lmv-dialog-add-id-_newFundAllocation-targetAllocation-88-F02')/x:td[3]/x:a
id('lmv-dialog-add-id-_newFundAllocation-targetAllocation-88-F03')/x:td[3]/x:a
I want to click on the third item. For this 88 is variable and I would like to do this can be for any numerical value that appears in this place.