How to click an empty space in Goutte?

The original document says; do that to click a link:

$crawler = $client->click($crawler->selectLink('Sign in')->link());

However, the area I would like to click is something like the code below. There is no text. In the browser, you can only see an icon.

<div id="Wrap" class="IconWrap">
    <span class="Icon">&nbsp;</span>
</div>

Searched but could not find it. I would be happy to hear from you. If you have an idea.

Answer

I have found out that ->link() does not accept any input other than < a > , therefore there has to be a real link to be recognised as a link.

Leave a Reply

Your email address will not be published. Required fields are marked *