I am trying to automate a webpage where I am unable to identify a static drop down.
<select name = "homeURL" tabIndex = "4" class = "storeId" >..</select>
I tried to identify it using below mentioned code using Select class
Select dropdown = new Select(driver.findElement(By.name("homeURL")));
dropdown.selectByIndex(2);
I am getting the following error:
Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to find element with name == homeURL (WARNING: The server did not provide any stacktrace information)