I am using Selenium for the first time and am overwhelmed by the options. I am using the IDE in Firefox.
When my page loads, it subsequently fetches values via an JS
Its work for me:
WebElement element = driver.findElement(By.xpath("//select[@name='NamE']/option[1]")); return element.getAttribute("text");