The only thing html has with the button is:
<button onclick="exportTableToCSV('hahaha.csv')">export as csv</button>
No class or id or name or type.
Tried with xpath and link text, neither works.
browser.find_element_by_xpath("//button[onclick=\"exportTableToCSV('hahaha.csv')\"]").click()
browser.find_element_by_link_text("export as csv").click()
Both return to error:
Message: no such element: Unable to locate element: {"method":"xpath","selector":"//button[onclick="exportTableToCSV('hahaha.csv')"]"}
Message: no such element: Unable to locate element: {"method":"link text","selector":"export as csv"}
Help appreciated!!!