Question: I am using Selenium to test web application. I am trying to select from drop down the day but it is not loading the value.

I am using Selenium to test web application. I am trying to select from drop down the day but it is not loading the value. It keeps waiting and throws exception so I added some wait to it so after reaching wait time, it throws exception.

WebElement daySelect = driver.findElement(By.id("days"));

Select days = new Select(daySelect);

days.selectByValue("Value");

I am using Selenium to test web application. I am trying to

NebElement dayselectElement woi tM.until (ExpectedCondi tions.elenent ToBeClickableBy. id Select days new Select(daySelectElement); days: days.select3yWalue3 /* driver.manageC).tineoutsO.implicitlyWoit(18, TimeUnit. SECONDS); WebElenent monthSelectElenent - waitH.until(ExpectedConditions.element ToeClickableCBy. idC"months")); Select monthe new Select(monthSelectElement); month.selectByValue(2); driver.monageC) tineoutsO.implicitlywait(10, Tinelnit. SECONDs); NebElenent yearsSelectElenent wai tM,until(ExpectedConditions.visibilityOfElementLocated(By. idC"years"))); Select yearse new Select(yearsSelectElement); years.selectByIndex(20)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!