vendredi 8 mai 2015

Page Visibility API Testing

Is it possible to use PhantomJS to test a page's functionality/network traffic/etc. when it is loaded without being "visible" according to the Page Visibility API? And then what happens as the page does become visible?

Essentially, the use case I'd like to hit is:

  1. Page is loaded in the background, or pre-cached (i.e., document.hidden=true)
  2. Test inspects page, makes assertions
  3. Page becomes visible, or document.hidden is set to false
  4. Test inspects page/network traffic/makes assertions

I'm wondering how regression testing of the page visibility stuff is currently done.

Aucun commentaire:

Enregistrer un commentaire