Webdriver code for dropdown selection is not working

Jeeva patrose at 06h29
Webdriver code for dropdown selection is not working


I am using the below code in Selenium Webdriver-JUNIT for selecting the list of values from dropdown

import org.openqa.selenium.WebElement;

static void selectValue(String valToBeSelected){

List options =

for (WebElement option : options)


This topic belongs to the forum
  • Numbers of topics : 2338
  • Numbers of messages : 6053
  • Numbers of users : 5036
  • Numbers of points : 142
Similar topics
I am using selenium rc with ie7. my application is having ajax drop down list when an item in a dropdown is selected, the text of a label on the page changes to the same text of selection in the dropdown. But when the item is selected, the text of a
I am using selenium in Firefox. My application is having a ajax drop down list with autosuggestion option from where i need to select data. When I start typing in the text area, autosuggest control provides similar options available in the
Hi, I'm new to selenium. Can any one help me to select value from drop down boxes for below code. Below one is the HTML Source code: Active Time Spent Inactive Time Spent My Time Spent (Current Week) My Time Spent (Last Week) Team Time Spent
I am trying to automate an application that has a drop down that dynamically populates with customer names. The drop down does not actually populate with data until it is selected. When running through the script it thinks it selects something and passe
Hi All, how to select a value in drop down below are the id and value of drop down @id=drpyear @value=2002-03 please let me know the correct syntax
Forums from same category