0

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)

phil o.O
  • 406
  • 2
  • 4
  • 20

1 Answers1

0

It could be a various amount of different factors. Such as the web driver, iframe, or even how long it takes for the page to render. Please consider the following links:

Web Driver: Selenium InternetExplorerDriver unable to find element that is clearly there

Iframe: Selenium WebDriver: unable to locate element inside iframe using TinyMCE editor

Page rendering issue: Selenium Unable to Find Element

Please consider looking at the version of your web driver, selenium, and installed browsers.

Community
  • 1
  • 1
phil o.O
  • 406
  • 2
  • 4
  • 20