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

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -