dropdown details
January February
As per the HTML to print list of months present in dropdown you can use the following solution:
selectmonth = Select(driver.find_element_by_name('fromMonth')) for option in selectmonth.options: print(option.text)