selenium iterate through options in dropdown select
<p>I'm using selenium in python, and I have a dropdown that I'm trying to select from. Essentially, I just want to iterate through all the options, like so:</p>

<pre><code>select first option 
  submit page 
  \\ do stuff
select second option 
  submit page 
  \\ do stuff
select third option 
  submit page 
  \\ do stuff
etc...
</code></pre>

<p>I know it's possible to do this if you know what each of the option values are (you just create a list of those values), but is there a way of just iterating through all the options when you don't know what the option values are?</p>

<p>Thanks! </p>