Select a drop down values but not visible in a Dropdown | Selenium Forum
M
Posted on 24/02/2016
Hi
Selecting a drop down values after that not visible in a Dropdown Herewith i have attached the screenshot of dropdown.Why this is not displaying after selecting a values.I am using this code for Dropdown
Driver.findElement(By.id("dnn1348Dropdown")).click();
new Select(Driver.findElement(By.id("dnn1348Dropdown"))).selectByVisibleText("Days");
Driver.findElement(By.cssSelector("option[value=\"1\"]")).click();


I have trying another method also But Still not work out

WebElement StGraceChoice = Driver.findElement(By.id("dnn1348Dropdown']"));

Select SelectDropDown = new Select(StGraceChoice);

SelectDropDown.selectByVisibleText("Days");

M
Replied on 24/02/2016

try this

Driver.findElement(By.id("dnn1348Dropdown")).sendkeys("Days");


M
Replied on 24/02/2016

Sorry Sir .. This is also working in a same manner.Selecting value but not visible in Dropdown.Please can you help me asap


M
Replied on 25/02/2016

can i access the website