title: Robot Framework: How to get xpath of an element?
body: <p>I am trying to retrieve the id of a parent (grand-grand-parent) element.</p>
  
  <p>All the information I have is that //div[@class="preset_name"] is "all". Knowing that, I need to retrieve "preset_3" (as a string) using any of the Robot Framework keywords.
  How would I do that? Or how can I obtain the full xpath of "all"?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table id="preset_list"&gt;
    &lt;tbody&gt;
      &lt;tr id="preset_0"&gt;
        &lt;td&gt;
          &lt;div class="preset_title_line"&gt;
            &lt;div class="preset_button_group"&gt;
              &lt;button class="preset_button"&gt;Apply&lt;/button&gt;
            &lt;/div&gt;
            &lt;div class="preset_name"&gt;Factory default&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="preset_sections"&gt;System, Network, Sources, EDID, Channels, Automatic File Upload, Touch screen, Output ports&lt;/div&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr id="preset_1"&gt;
        &lt;td&gt;
         ...</code></pre>
  </div>
  </div>
  </p>