get count the child object(link) under that area like div /frame and click the last link item like

Set oDesc = Description.Create()
oDesc("micclass").Value = "Link"
Set Links = Browser("Google Labs").Page("Google Labs").ChildObjects(oDesc)
Msgbox "Total links: " & Links.Count
Set Links = Browser("Google Labs").Page("Google Labs").Object.Links
Msgbox "Total links: " & Links.Length
Links(Links.Length).click

On , roopa shree <[email protected]> wrote:
Hi,

I am trying to click on the most recently added element present as a hyperlink in a page. I have tried to explain with the following example. I want to click on "Link 3"

Eg:
Link 1

Link 2
Link 3

Please let me know how to select this particular element using descriptive programming.

Thanks and Regards,
Roopashree





--

You received this message because you are subscribed to the Google

"QTP - HP Quick Test Professional - Automated Software Testing"

group.

To post to this group, send email to [email protected]

To unsubscribe from this group, send email to

[email protected]

For more options, visit this group at

http://groups.google.com/group/MercuryQTP?hl=en

--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to