title: Clicking id with random number in c#
body: <p>Using c# winforms and selenium webdrivers.</p>
  
  <p>I've tried this </p>
  
  <pre><code>driver2.FindElement(By.XPath("//div[@class='ad-ttl']/a")).Click();
  </code></pre>
  
  <p>in order to click it but i didn't work.</p>
  
  <p>HTML Code : </p>
  
  <pre><code>&lt;div id="yui_3_10_0_1_1418194162300_146" class="ad-ttl"&gt;&lt;a id="yui_3_10_0_1_1418194162300_145" href="http://ri.search.yahoo.com/_ylt=AwrTcdjy7IdUt3sATg9jmolQ;_ylu=X3oDMTB2MDNwMXMxBHNlYwNvdi10b3AEY29sbwNncTEEdnRpZAMEcG9zAzE-/RV=2/RE=1418222962/RO=10/RU=http%3a%2f%2f2668877.r.msn.com%2f%3fld%3dd33WakoDkJAIMxn5dGh8YwQDVUCUx0AKspPeVBIRqpFXcgYxytW-8aith7k2jbZMjUQNoLg76hIiV1F-jmHcvooccYvps7YCw2Ma04LDJIzxVXvVI1D8uWvNQZu6l6BzAZyCkpSURwY7WpZxCcUbZvL4AqxnA%26u%3dwww.teamspiritandfitness.com%252flebron-james-jerseys%252f/RK=0/RS=7FYmf.oFNCuguXRDjriSVwIXsLQ-?p=Lebron+James+Cleveland" target="_blank" class=""&gt;&lt;strong&gt;LeBron&lt;/strong&gt; &lt;strong&gt;James&lt;/strong&gt; Jerseys $89 - All Stitched and Free Shipping&lt;/a&gt;&lt;/div&gt;
  </code></pre>
  
  <p>As you can tell the ID is never the same but it always has "yui" in it and the class clicking above didn't work. href always changed as well, so any sollution to this? Basically everything above it always changed.</p>