- Share This:
- Google+
Dropdown Example
Related Posts:
Radio Button Example 1 2 3 4 5 6 … Read More
Working With Eclipse Videos Working With Eclipse Videos Installing Java, working with eclipse, creating workspace, Project , Package, Class … Read More
Download POI API jars Download POI API jars … Read More
Download JXL jars Download JXL jars … Read More
How to download selenium webdriver jar and configure into Project Navigation for Downloading selenium webdriver jars Open Browser and type seleniumhq.org Click on Download Tab Under selenium standalone ser… Read More
How to handle 2 dropdowns which has same name.
ReplyDelete//I have written code like this, but its select only first dropdown, its not going to 2nd dropdown:
WebElement rel = driver.findElement(By.name("customerBean.relationCd"));
if(rel.isDisplayed()){
Select se = new Select(rel);
se.selectByIndex(18);
}
//Even I tried this code too, but its not working:
List ref = driver.findElements(By.name("customerBean.relationCd"));
System.out.println("reference dropdowns " + ref.size());
((Select) ref.get(0)).selectByIndex(18);
((Select) ref.get(1)).selectByIndex(18);
ares mp3 apk
ReplyDeletesports whatsapp groups
ReplyDeleteYour article is very helpful.You can visit my website:fmovies apk
ReplyDeleteIf Your are not ediot then try this app SketchBook Mod Apk
ReplyDelete