I have the next div ->
<div id="grid">
<div id="grid-item" onClick="sendServer(1)">Data 1 </div>
<div id="grid-item" onClick="sendServer(2)">Data 2 </div>
<div id="grid-item" onClick="sendServer(3)">Data 3 </div>
</div>
sendServer() is an ajax that validate and send datas to the server and go to route '/irCurso{id}'.
I want to test the result when those div has clicked, I know that I can't use ->click() method be cause it just works with <a> tag. This is my code :
$this->visit('/cursos')
->click('id=grid-item')
->seePage('irCurso/1');
Thank you :)