1from selenium import webdriver
2
3browser = webdriver.Firefox()
4
5select_box = browser.find_element_by_name("month")
6
7options = [x for x in select_box.find_elements_by_tag_name("option")]
8
9for element in options:
10 print element.get_attribute("value")
1WebElement element = driver.findElement(By.id(""));
2Select select = new Select(element);
3List<WebElement> list = select.getOptions();
4for(int i=0; i<list.size(); i++)
5 {
6 System.out.println(list.get(i).getText());
7 }