Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

cant able to select drop down otions

View previous topic View next topic Go down

cant able to select drop down otions

Post by anbarasi 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");

anbarasi
Amateur
Amateur

Posts : 48
Join date : 2012-04-30
Age : 29
Location : chennai

Back to top Go down

Re: cant able to select drop down otions

Post by anbuchozhan 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.

anbuchozhan

Posts : 7
Join date : 2016-07-29

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum