title: How to get list of values from dropdown list with selenium and python
body: <p>I've tried to get list of all values from dropdown.</p>
  <p>The problem is the dropdown is activated after click on it. The list of values shows only after click on dropdown</p>
  <p>Now I've got code like this:</p>
  <pre><code>browser.find_element_by_xpath(&quot;/html/body/div[3]/div[8]/div[2]/div[1]/div[4]&quot;).click()
  </code></pre>
  <p>It enable me to activate dropdown but I don't know completely how to extract all possible values from this dropdown</p>
  <h1>HTML:</h1>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;option value=""&gt;-&lt;/option&gt;&lt;option value="0401"&gt;Aleksandrowski&lt;/option&gt;&lt;option value="2001"&gt;Augustowski&lt;/option&gt; </code></pre>
  </div>
  </div>
  </p>