title: How do I use Click Element function with robot framework when the element does not have id or name?
body: <p>I'm currently using the Selenium2Library in robot framework to automate some web tests. Currently, I'm having problems automating the click of a login button with the Click Element function.</p>
  
  <p>This is the element I would like to use:</p>
  
  <p><code>&lt;a class="transparentBtn loginLink ng-scope" ng-click="commonService.gigyaRaasLogin()" translate="BTN_ADMIN_LOGIN_WATCHLIST"&gt;LOGIN&lt;/a&gt;</code></p>
  
  <p>and this is the xpath if I copy from the console:
  <code>//*[@id="menu"]/div/div[5]/div/div/div[2]/ul/li[2]/a</code></p>
  
  <p>I have trouble finding which locator to use if I want to click this element.</p>
  
  <p>These are some of the things I've tried so far:</p>
  
  <ol>
  <li><code>Click Element  css=a.loginLink</code></li>
  <li><code>Click Element  link=LOGIN</code></li>
  </ol>