I need to click on one of many links which are similar the only difference is the number. Can somebody help me with that? (using Java)
<a href="/edit-files.php?i=26"><i class="fa fa-pencil-square-o"></i></a>
<a href="/edit-files.php?i=21"><i class="fa fa-pencil-square-o"></i></a>
I tried these didnt work:
driver.findElement(By.xpath("//a[@href='/edit-files.php?i=26']")).click();
driver.findElement(By.cssSelector("a[href*='/edit-files.php?i=26']")).click();
