Tricentis Tosca 16.0 Released on Feb-2023 ----- UFT has been upgraded from UFT 15.0.1 to UFT One 15.0.2, Beginning at November 2020.

Saturday 30 January 2021

Find all the list objects on a Web page, and then to select an item in each list, Using ChildObjects method.



Set oDesc = Description.Create()
oDesc("micclass").Value = "WebList" 
Set Lists = Browser("Shopping").Page("Shopping").ChildObjects(oDesc)
NumberOfLists = Lists.Count()

For i = 0 To NumberOfLists - 1
    Lists(i).Select i + 1
Next





No comments:

Post a Comment

Note: only a member of this blog may post a comment.