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:
I have tried absolute xpath also for the same. But nothing I've tried seems to work. Help.