Ok, so setting the links as an array worked, but I'm not getting it to 
cycle through. Instead it just tests the first array object 42 times.

Dim myArray(1)
> Set myArray(0)=Browser("...").Page("...").Link("...")
> Set myArray(1)=Browser("...").Page("...").Link("...")
>
 

> For Each present In myArray
> If myArray(0).Exist Then
> Reporter.ReportEvent micPass, "Link ", " exists"
> Else
> Reporter.ReportEvent micFail, "Link ", " does not exist"
> End If
> Next 


If I change "Next" to "Next present" it returns in an error.
I've tried various other approaches found in tutorials around the web, but 
either I don't understand how to convert it or it doesn't work.

Chethu, I tried this from your example, but it returned an error, "expected 
("


function ValidateLink Exits(object)
> set Var=object
>
If Var.Exist Then 

    msgbox "yes"
> Else
>     msgbox "no"
> End If
>  
> End Function


>

-- 
-- 
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 Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to