How to click on a button with Selenium?
<p>I am trying to use the Python Selenium API in order to click on a button. The HTML code is as follows: </p>

<pre><code>&lt;button class="btn wizard-next btn-primary" type="button"&gt;Weiter&lt;/button&gt;
</code></pre>

<p>How to best identify this element? I was trying the following code</p>

<pre><code>driver.find_element_by_class_name("btn wizard-next btn-primary").click()
</code></pre>

<p>but got an error </p>

<pre><code>selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: Compound class names not permitted
</code></pre>

<p>What else can I do to select this element?</p>