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

Subscribe to TestingQ.Net

To receive daily posted Interview Questions
Just enter your email address below and click 'Subscribe'

Enter your email address: