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