amoktar's avatar

How can I count html elemets in laravel test

Is there a way to count html dom elements with laravel test, with css or xpath selectors

I've tried this but getting error below

$this->assertCount($number, $this->crawler->filter($selector));

Undefined property: Tests\Feature\PublicUrlsTest::$crawler

Thanks

0 likes
2 replies

Please or to participate in this conversation.