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