How to calculate number of images in webpage using description object? - TestingQ.com

-->Exclusive Portal for Testing Jobs

How to calculate number of images in webpage using description object?

Ans:
Set objImage=Description.Create

objImage("micclass").Value="Image"

objImage("html tag").Value="Img"

Set imageColl=Browser().page().Childobjects(objImage)

msgbox imageColl.Count



To receive daily posted JOBS & Interview Questions
Just enter your email address below and click 'Submit'
Enter your email address:

Make sure to activate your subscription by clicking on the activation link sent to your email