Here is the link I'm trying to click:
<a href="#" onclick="OpenAddKeywords();return false;" id="btnAddKeywords">Add Keywords</a>
I tried a few options(listed below) but they didn't work; any ideas?
self.br.find_element_by_xpath("//*[@id='btnAddKeywords']").click()
self.br.execute_script("OpenAddKeywords();return false;")
This is the error I've got for execute_script
:
Message: u'Error Message => \'Can\'t find variable: OpenAddKeywords\'\n caused by Request =>
And this is the one that I've got for xpath
:
Message: u'Error Message => \'Unable to find element with xpath \'//*[@id=\'btnAddKeywords\']\'\'\n caused by Request =>