I am doing automation using Selenium. I am using DefaultSelenium class, in our application I have a drop down. I want to get a value from this drop down.
Initially, I have scripted with selenium IDE, it gave me the code as:
selenium.select("id=skuOptionSIZE1c4b403", "label=8");
but when i start writing in code (Java), Eclipse throws an error while I am still able to see the drop down id present on the page:
Exception in thread "main" com.thoughtworks.selenium.SeleniumException: ERROR: Element id=skuOptionSIZE1cd7bfd not found
Can any one please help me how to get the values from drop down?