Skip to main content
1 of 3
kaushik3993
  • 61
  • 1
  • 2
  • 5

No such element exception while handling elements inside tables in Selenium Webdriver

I'm trying to access a select HTML element using Selenium WebDriver. But I'm getting a org.openqa.selenium.NoSuchElementException. This is happening only while handling elements inside a table. Otherwise elements are located easily.

Xpath I'm using:

Select URLSelect=new Select(driver.findElement(By.xpath("//table/tbody/tr/td[1]/select")));
URLSelect.selectByValue("Integration Console");

Screenshot of firepath console: enter image description here

I have tried absolute xpath also for the same. But nothing I've tried seems to work. Help.

kaushik3993
  • 61
  • 1
  • 2
  • 5