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><code>find_elements_by_id</code> returns a list of elements. Either iterate over the list that <code>find_elements_by_id</code> returns or use <code>find_element_by_id</code> (notice the missing 's') which will return only a single element (if any).</p>

javascript python selenium