Forum Discussion
anna_v
Staff
13 years agoHi,
Specify Depth = 1 in your FindChild method:
Set link = page.FindChild(props, values, 1)
As far as I can see, your tested web page's hierarchy is as follows: sys--process--page--table--links, and your script searches among the page object's children. Since you didn't specify the depth in your FindChild method, it uses the default value (0). This value means that FindChild searches only among the page's direct children. When you specify Depth = 1, FindChild will search in child and grandchild objects of the page - and it will find your links.
In this case which is most suitable url? ( url1 or url2)
I guess, it does not matter for your script since you are using the Page("*") notation. However, check how your browser represents the needed URL and use it in your tests.
I hope this helps.
Ann