title: How to click an ng show element with dynamic id using selenium
body: <p>How do I click on an ng show element with dynamic id using selenium, the element looks like the one below:</p>
  
  <pre><code>&lt;i ng-show="courseDetails.lmstype !='3rdParty' &amp;amp;&amp;amp; courseContentLevel.levelName != 'Pre-Requisite' &amp;amp;&amp;amp; courseContentLevel.levelName != 'End of Course'" class="fa fa-plus-circle font-20 pointer-cursor margin-right-25" data-toggle="dropdown" id="dropdownMenu40282cf567bbb4d00167c117ccbb016b" ng-class="{'margin-right-25' : courseContentLevel.levelName == 'Course Outcome'}"&gt;&lt;/i&gt;
  ::before == $0
  &lt;/i&gt;
  </code></pre>
  
  <p>Here the id keeps on changing everytime, so I cannot rely on the By.id to click that.
  If I plan to go after the xpath of it, that too comes like:</p>
  
  <pre><code>//*[@id="dropdownMenu40282cf567bbb4d00167c117ccbb016b"]
  </code></pre>
  
  <p>that too based on the id I hope, which is also of no use it seems.</p>
  
  <p>Kindly give some other workaround here...</p>
  
  <p>Thanks in advance.</p>