html DOM model to find Image\'s filename property
There are 2 image icons (square icon and triangle icon) in a web table. I want to check whether triangle icon is present in the second row. There are no index numbers for each of these icons.
I am thinking of retrieving the "file name" property of triangle icon in a webpage and then use a count to tell the position o the icon.
Anyone know how to use html DOM model to get filename property of an Image (icon)?
I tried this but got a run time error:
doc = browser().page().object
For each element in doc.all
If each.innerhtml = "working.gif" then
count = count + 1
Re: html DOM model to find Image\'s filename property
Look in QTP help for ChildItem method that you can use with WebTable.