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.
- when page downloaded - "src" attribute in img tag empty
- 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
Post a Comment