0

In the context of BDD and php, I've been looking for a way to check that all resources on a page are loaded.

I thought about using the status code but it looks like the only status code I can check using mink is the status code of the page itself like this:

$session->getStatusCode()

I'm looking for a way to make sure that the requests made to get the resources on the page (javascript, css, images etc.) also return status codes of 200.

Any idea on how to do that?

Hub 20xx
  • 401
  • 5
  • 14

1 Answers1

0

Only JavaScript can help you, try to send an AJAX request when the "onload" event is triggered.