Example of dynamic programmatic description

- Suppose there are some itineraries in the Itinerary page, and you want to check on all of them.

Set MyDescription = Description.Create()

MyDescription("html tag").Value = "INPUT"

MyDescription("type").Value = "checkbox"

Set Checkboxes = Browser("micclass:=Browser").Page("Title:=Itenerary: Mercury Tours").ChildObjects(MyDescription)

NoOfChildObjs = Checkboxes.Count

For Counter=0 to NoOfChildObjs-1

            Checkboxes(Counter).Set "ON"

Next

原文地址:https://www.cnblogs.com/ellie-test/p/3803816.html