title: Ruby ,Mechanize. How to get specific <a> tag text
body: <p>My goal is to get  "I want this text"  text.</p>
  
  <pre><code>&lt;div class="class1"&gt;
  &lt;b&gt;xxxxx&lt;/b&gt;
  &lt;a href="http://example.com/want/xxxx"&gt;I want this text&lt;/a&gt;
  &lt;a href="http://example.com/want/yyyy"&gt;I want this text&lt;/a&gt;
  &lt;b&gt;yyyyy&lt;/b&gt;
  &lt;a href="http://example.com/unnece/xxxx"&gt;no need&lt;/a&gt;
  &lt;a href="http://example.com/unnece/xxxx"&gt;no need&lt;/a&gt;
  &lt;/div&gt;
  
  &lt;div class="class2"&gt;
  &lt;a href="http://example.com/want/xxxx"&gt;no need&lt;/a&gt;
  &lt;a href="http://example.com/want/yyyy"&gt;no need&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I try to write code.</p>
  
  <pre><code>test = agent.page.search("div[@class='class1'] / a").text
  </code></pre>
  
  <p>However,I also got "no need" text</p>
  
  <p>How can I do it ? I am using the gems:</p>
  
  <pre><code>require 'mechanize'
  require 'open-uri'
  </code></pre>
  
  <p>I want to place commma between the text if possible...</p>