Share
Go down
anbarasi
Amateur
Amateur
Posts : 49
Join date : 2012-04-30
Age : 30
Location : chennai

cant able to select drop down otions

on Thu Apr 13, 2017 6:08 pm
can any one say y i cant able to select the options in drop down list



abc= new FirefoxDriver();
abc.manage().window().maximize();
abc.get("http://www...........");
Thread.sleep(6000);
Select dropdown = new Select(drop.findElement(By.xpath(".//*[@id='ddlsalution']")));
dropdown.selectByValue("Ms");
anbuchozhan
Active particpant
Active particpant
Posts : 10
Join date : 2016-07-29
Location : Chennai

Re: cant able to select drop down otions

on Wed May 17, 2017 1:56 pm
Hi,

For this first you should check whether the tag name of HTML tag which you found for drop down. If that tag name starts with select then no problem you can use select class to choose drop down or else you have to go with other option like find out that element & options & then proceed with the drop down selection without using select class.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum