Forum Discussion
gid_216
11 years agoFrequent Contributor
Instead of find use findallchildren. It will return a collection of objects (in your case a collection of both objects). in a for loop, check for another property that is different for these two.
E.g.
colObj = page.NativeWebObject.FindAllChildren("contentText", CatDesc, 30, True);
For Each obj in colObj
if obj.Visible then '//Use appropriate property if require
obj.Click
end if
Next
E.g.
colObj = page.NativeWebObject.FindAllChildren("contentText", CatDesc, 30, True);
For Each obj in colObj
if obj.Visible then '//Use appropriate property if require
obj.Click
end if
Next
Related Content
- 10 years agoamithsid
Recent Discussions
- 11 hours agosimonaferrara
- 20 hours agoSubhraDas