Python Selenium: How do I select a value from drop down menu
<p>I am writing a python selenium script. I wanted to select below class:</p>

<pre><code>    &lt;select style="position: absolute; left: 0px; top: 0px;" class="gwt-ListBox project-list"&gt;
    &lt;option value="10"&gt;Case Notes&lt;/option&gt;
</code></pre>

<p>but got failed:</p>

<pre><code>elem  = self.driver.find_element_by_xpath("//contains[@class=gwt-ListBox.project-list']")
</code></pre>

<p>Can any one explore please.</p>

<p>Actually you missed a quote <code>'</code> after the <code>=</code>. The following will work:</p>

<pre><code>elem  = self.driver.find_element_by_xpath("//contains[@class='gwt-ListBox.dashboard-listbox.project-list']")
</code></pre>

<p>Hope it worked</p>

python selenium