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

posted @ 2014-06-23 13:04  Ellie_Auto  阅读(177)  评论(0编辑  收藏  举报