System.setProperty("webdriver.gecko.driver", "src/geckodriver");
WebDriver driver = new FirefoxDriver();
driver.get("link of your website");
Select select= new Select(driver.findElement(By.id("requestreason")));
select.selectByVisibleText("Medicare Risk Review");
WebElement select_element= driver.findElement(By.id("requestreason"));
select_element.findElement(By.xpath("./option[text()='Stars']")).click();
YOU CAN REPLACE IT BY ANY TEXT YOU WANT TO SELECT.
Hi Akshat,I have tried with the value but item is not selected.Can you check the snapshot once.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/92be63df-bbfe-43c4-ae56-513ea04fdbbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
also could you take a look of the webelement, there are some dropdowns as input elements instead of select
On Tue, Jun 13, 2017 at 8:14 AM, Sunitha Gummadi <sunit...@gmail.com> wrote:
Hi Akshat,I have tried with the value but item is not selected.Can you check the snapshot once.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.