Not able to select the Drop down

Hi Guys,

If some 1 could help me with this mystery..

First let me know if you guys are able to load this URL

https://www.schoolofdragons.com/Parents/ActivateAccount.aspx?key=bop15Gn9jl9MCWB369XU5fPJoFrOjtdhjU3bZ5pbB0bqyFTvVTNM8BqlLbGCl%2fDXOMKADtPwUQFJ21IfnTdwT2cMayD739a9eKS%2fPqODwTuYz61Vk8H4Iu%2fzcjg1x0q%2bfNaTfaeLqb%2fMLwRE%2b859cw%3d%3d&lang=en-US

Here if you can see the Date of Birth Fields i am able to select the Month and Date but i am not able to select Year

Could some 1 help me with this ?

Thanks
Subbu

Default Asked on February 8, 2015 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    Select sel = new Select(driver.findElement(By.xpath(“//*[@id=’ctl00_mcp_ddlYear’]”)));

    sel.selectByVisibleText(“2009”);

    Train Answered on February 19, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.