title: Selenium c# how to findElement by JavaScript?
body: <p>I'm working with an old portal and I have to use <code>IE</code>. There are some things that it doesn't find, cause it's part of a <code>&lt;td&gt;</code> menu, I tried to find it by <code>XPath</code>, but doesn't help. </p>
  
  <p>I found the form is being rendered by a <code>JavaScript</code> function. And I'd like to click on them just to execute it, but how can I locate the page elements using selenium <code>WebDriver</code>??</p>
  
  <p>For example: if I had this code</p>
  
  <pre><code>&lt;div class="logout-link ng-scope" 
       ng-click="login(&amp;quot;github&amp;quot;)" 
       ng-show="!me" ng-controller="MenuCtrl"&gt;login&lt;/div&gt;
  </code></pre>
  
  <p>How can I execute the ng-click part with the Selenium WebDriver?</p>