python3 How do I click dropdown box using selenium
<p>I'm trying to click on dropbox using selenium on python3.
but I got an error msg.</p>

<pre><code> raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchWindowException: Message: Unable to find element on closed window
</code></pre>

<p>My code is below.</p>

<pre><code>driver.find_element_by_css_selector("#RegularCategory&gt;div.pagination dl.dropdown dt a span").click()
</code></pre>

<p>and..code is ...
I want to click on "sort by" but I can't.
<a href="http://i.stack.imgur.com/3bDFl.jpg" rel="nofollow"><img src="http://i.stack.imgur.com/3bDFl.jpg" alt="enter image description here"></a></p>

<p>You can use selenium's <strong>select</strong> Class and its APIs like select_by_index or select_by_value:
refer : <a href="http://selenium-python.readthedocs.io/api.html" rel="nofollow">[http://selenium-python.readthedocs.io/api.html]</a></p>

python selenium