title: Selenium > Web Drive : how to find a nested element by xpath (ruby)
body: <p>I have a nested &lt;div&gt;:</p>
  
  <pre><code>&lt;div id="international-map"&gt;
   &lt;div id='a'&gt;
      &lt;a&gt; link a1 &lt;/a&gt;
      &lt;a&gt; link a2 &lt;/a&gt;
      &lt;a&gt; link a3 &lt;/a&gt;
    &lt;/div&gt;
    &lt;div id='b'&gt;
         &lt;a&gt; link b1 &lt;/a&gt;
         &lt;a&gt; link b2 &lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can I get all the links under 'international-map'?</p>
  
  <p>I tried  two approaches and failed :( </p>
  
  <ol>
  <li><code>div= @driver.find_element(:id =&gt; 'international-map')</code></li>
  <li><code>e=@driver.find_elements(:xpath =&gt;   "//div[@id='international-map']//div[@tag_name='a']")</code></li>
  </ol>
  
  <p>thank you (<b>even a C# and Java code </b> helps)</p>