Python Selenium: Unable to click button
<p>I'm new to python and want to write a web scraper which involves mouse clicking an "OK" button on a pop-up window. </p>

<p>Everything else went well but I'm not able to click the final button which leads to the data downloading. </p>

<p>The javascript is as follows:</p>

<p><a href="http://i.stack.imgur.com/SYSWp.png" rel="nofollow"><img src="http://i.stack.imgur.com/SYSWp.png" alt="enter image description here"></a></p>

<p>I tried finding element by id but the following error message appeared:</p>

<p><a href="http://i.stack.imgur.com/SJY2n.png" rel="nofollow"><img src="http://i.stack.imgur.com/SJY2n.png" alt="enter image description here"></a></p>

<p>try this:</p>

<pre><code>browser.find_element_by_id('ctl00_ContentContainer1_ctl00_ButtonsContent_ExportOptionsBottomButtons_OkLabel').click()
</code></pre>

<p>Changed this:</p>

<pre><code>find_elements_by_id
</code></pre>

<p>to this:</p>

<pre><code>find_element_by_id
</code></pre>

javascript python selenium