phantomjs - Detecting Image on Page Load -


i want test whether particular image loaded javascript on page load. this image loaded after particular js library gets executed.

for reference : using utility js library - zurb's foundation detects view port , user agent , loads appropriate image.

  1. when page downloaded - "src" attribute in img tag empty
  2. when foundation js executes loads image adding src tag on img tag.

in onresourcereceived - image never shows up.

in onloadfinished - image tag attribute src not present.

how tackle scenario when image load triggered javascript library. ?

basically test case want execute : test whether right quality image being loaded based on device.


Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -