title: How to click an element using Selenium Python
body: <p>So I have this element in HTML...</p>
  <p><code>&lt;a href=&quot;#&quot; onclick=&quot;on_catolog(2);&quot;&gt;&lt;span style=&quot;font-size:11pt&quot;&gt;Security&lt;/span&gt;&lt;/a&gt;</code></p>
  <p>... and I want to click it using Selenium in python. How can I do it? (Maybe I can identify it using onclick, but how?)</p>
  <p>Also, here is what I've tried:</p>
  <pre><code>security = driver.find_element_by_xpath(&quot;//button[@onclick=\&quot;on_catolog(2);\&quot;]&quot;)
  security.click()
  </code></pre>