Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Click icon Laravel Dusk

<a id="show-'.$item.'" href="'.route($item.'.view', ['action' => 'show', 'id' =>$id]).'" title="'.trans('Content::actions.view').'">
    <span class="fa fa-eye" style="width: 22px; position: relative; font-size: 15px; top: 1px; font-weight: 500;" title="'.trans('Content::actions.view').'"></span>
</a>

<a id="edit-'.$item.'" href="'.route($item.'.view', ['action' => 'edit', 'id' =>$id]).'" title="'.trans('Content::actions.edit').'">
    <span class="fa fa-edit" style="width: 22px; position: relative; font-size: 15px; font-weight: 500;" title="'.trans('Content::actions.edit').'"></span>
</a>

<a id="delete-'.$item.'" href="/home" onClick="'.$item.'Delete('.$id.'); return false;" class="fa fa-trash-alt delete-'.$item.'" style="width: 22px; position: relative; font-size: 15px; font-weight: 500;  cursor: pointer" title="'.trans('Content::actions.delete').'"></a>

This is my html for the 3 types of icons. can't use the delete icon; editar and show not a problem. here is a image of the icons.icons

For use the icons view and edit use the following code:

$browser->visit(
    $browser->attribute("'show-'.$item.'", 'href')
)
$browser->visit(
    $browser->attribute("'edit-'.$item.'", 'href')
)

My question is how can i press the icons.

Error from (->click('#delete')) Screenshot

Comments