title: Mink selectors: any way to get the element in base of the content inside?
body: <p>for example, given the text of a link, retrieve the hole link element. </p>
  
  <p>I tried this:</p>
  
  <pre><code>$page = $this-&gt;getSession()-&gt;getPage();
  $page-&gt;find('content', 'Italiano');
  </code></pre>
  
  <p>But it says:</p>
  
  <blockquote>
    <p>Selector "content" is not registered.</p>
  </blockquote>
  
  <p><strong>EDIT</strong>: after check the links of the everzet's answers I have this:</p>
  
  <pre><code>$el = $page-&gt;find('named', array(
          'content', $this-&gt;getMainContext()-&gt;getSession()-&gt;getSelectorsHandler()-&gt;xpathLiteral('Pound')));
  
  $el-&gt;click();
  </code></pre>
  
  <p>but I'm getting this error about <code>click()</code> function:</p>
  
  <blockquote>
  <pre><code>When I choose "Pound sterling" #
  </code></pre>
    
    <p>MyFirm\FrontendBundle\Features\Context\CurrencyControllerContext::iChoose()</p>
    
    <p>error:_click(_byXPath("(//html/./descendant-or-self::*[contains(normalize-space(.),
    'Pound')])[1]"))
          TypeError: parent.tagName is undefined
          ([object
    HTMLHtmlElement],"A",1)@http://myfirm.localhost/<em>s</em>/spr/concat.js:3286
          ([object
    HTMLHtmlElement],"A")@http://myfirm.localhost/<em>s</em>/spr/concat.js:3762
          ([object
    HTMLHtmlElement])@http://myfirm.localhost/<em>s</em>/spr/concat.js:331
          ([object HTMLHtmlElement],false,false,(void
    0))@http://myfirm.localhost/<em>s</em>/spr/concat.js:708
          ([object
    HTMLHtmlElement])@http://myfirm.localhost/<em>s</em>/spr/concat.js:478
          ()@http://myfirm.localhost/<em>s</em>/spr/concat.js:3016
          ()@http://myfirm.localhost/<em>s</em>/spr/concat.js:3016
          @http://myfirm.localhost/<em>s</em>/spr/concat.js:2822</p>
  
  <pre><code>  &lt;a
  </code></pre>
    
    <p>href='/<em>s</em>/dyn/Log_getBrowserScript?href=null&amp;n=3286'><b>Click for
    browser script</b></p>
  </blockquote>
  
  <p>This is the beginning of the output of <code>var_dump($el)</code>:</p>
  
  <pre><code>object(Behat\Mink\Element\NodeElement)#438 (2) {
    ["xpath":"Behat\Mink\Element\NodeElement":private]=&gt;
    string(74) "(//html/./descendant-or-self::*[contains(normalize-space(.), 'Pound')])[1]"
  </code></pre>
  
  <p>And the output of <code>$el-&gt;getTagName()</code> is 'html'.</p>
  
  <p>Is that because I'm trying to click something that is not an element but just content? In that case, any way to get the element from the content?</p>