Sunday, March 4, 2018

Childobjects and ChildItem methods in UFT

Children:
- Children is used to find similar objects in the page
Ex:
set desc= Create.Description()   
desc("name").value="a1"
desc("micclass").value="link"


Browser("a").Page("b").weblink(desc).click

set O1 = Browser("a").Page("b").Childobjects(desc)

for i =0 to O1.count-1

a= O1(i).GetROProperty("innertext")
msgbox a
Next


Childitem:
Is only for object in WebTable




Debug (line by line) code in UFT

- Use break point to debug the code
- once you apply breakpoint, then you can use step into, step over and step return to line by line execution of code