title: Xcode UI Test - How to Find and tap() an Element Inside a WebView
body: <p>I am trying to find a way to tap a link with the following HTML structure:</p>
  
  <pre><code>&lt;a&gt;
    &lt;div id="facebook_sharing"&gt;&lt;/div&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>The <code>a</code> tag does not have any attributes or text associated with it, just the <code>div</code> tag inside.</p>
  
  <p>I have tried the following but with no success:</p>
  
  <pre><code>app.links["facebook_sharing"].tap()
  </code></pre>
  
  <p>Is there a way to find the <code>div</code> tag element and tap on it?</p>
  
  <p>Thanks!</p>