Skip to main content
1 of 3

Access webelement in Selenium webdriver

Have to inspect element 8. When click the element 8 on webpage.It should redirects to next page

** 8

**

I have tried the following locators

//a[@href="subscriberall.php?key=138"] driver.findElement(By.linkText("8")).click();

When run the above code in selenium webdriver. What actually happened means, it inspects element 8. But it doesnot clickable to next page