Skip to main content
3 of 3
added 32 characters in body
demouser123
  • 3.5k
  • 5
  • 29
  • 41

Access webelement in Selenium webdriver

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

<td class="text_overflow-1">
<u>
<a targrt="_parent();" href="subscriberall.php?key=138">8</a>
</u>
</td>

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