if the links are dynamic and also if there is table cell i which the
link is created, then please add the table first to the OR
now this can be done by cliking on the OR - Add object to local - then
click on the link, so here u will see the table before the link object
add tht first . it will save a lot of coding

now write down the following code, let me knw how it goes

Dim oAnchors
Dim oAnchor
Dim blnFound
Set oAnchors =
Browser(X).Page(X).WebTable(X).Object.GetElementsByTagName("A") 'This
will grab all of the links in the page.
blnFound = False
For Each oAnchor in oAnchors
  'Use some property to identify which link you are on
  'And if it's the right one....
  If oAnchor.innertext = "Whatever" Then
     oAnchor.Click()
     blnFound = True
  End If
  Set oAnchor = Nothing
  If blnFound = True Then Exit For
Next 'oAnchor
Set oAnchors = Nothing

~Arya



On Mar 7, 7:19 am, gayathri kamalanathan <[email protected]> wrote:
> Hi,
> I'm facing an issue while writing scripts. An object is identified in the
> application, during design time. But the same object is not been identified
> in run time.
> E.g., I'm able to highlight/identify an object(e.g., link) in the
> application during design time, but when I tried to run the script, that
> particular object(link) is not identified by qtp.
> Could any one suggest a solution for this issue?

-- 
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