I tried the below code in my machine, it worked fine,
Dim myArray(1)
Set
myArray(0)=Browser("creationtime:=0").Page("micclass:=Page","index:=0").Link("html
id:=createNewAccountLink")
myArray(0).Highlight
Sent on my BlackBerry® from Vodafone
-----Original Message-----
From: Jon <[email protected]>
Date: Fri, 17 May 2013 07:29:23
To: <[email protected]>
Cc: <[email protected]>; <[email protected]>
Subject: Re: Objects in an Array
I'll try this out. It makes little difference if the value is stored in a
dictionary object, or directly set in the array, the end result is the same.
Dim myArray(1)
> Set myArray(0) = Browser(...).Page(...).Link(...)
> Set myArray(1) = Browser(...).Page(...).Link(...)
>
> If myArray(1).Exist Then
> msgbox "yes"
> Else
> msgbox "no"
> End If
is what I tried, but i'm getting errors at the *Set myArray*
section."Object doesn't support this method or property". Could you assist
in writing this out a bit more?
As for Chethu, I'm not really sure what you're talking about or even how
that would allow me to cycle through a defined list of links and verify if
they exist, and if they exist, to run additional scripts.
--
--
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.