try this out

Dim Links
Set Links = Description.Create()
Links("micclass").Value =  "Link"
Links("height").Value = 17
Set TotalLinks  = Browser("Home").Page("Home").ChildObjects(Links)

Links("height").Value = 22
Set TotalLinks  = Browser("Home").Page("Home").ChildObjects(Links)



On Tue, Aug 4, 2009 at 8:31 PM, Steve <[email protected]> wrote:

>
> Here is my code so far:
>
> ----------------------------------------------
>
> Dim Links
>
> Set Links = Description.Create()
> Links("micclass").Value =  "Link"
> Links("height").Value = 17
> Links("height").Value = 22
>
>
> Set TotalLinks  = Browser("Home").Page("Home").ChildObjects(Links)
>
> ---------------------------------------------
>
> But after Links("height").Value = 17 is ran the value of Links
> ("height").Value = 22 replaces it.
>
> I tried using [1-2][2-7] but that throws an error. Please note, I do
> want numbers 17 and 22, but I do not want numbers 14 and 15.
>
> I then tried:
>
> --------------------------------------------
>
> Dim Links
>
> Set Links = Description.Create()
> Links("micclass").Value =  "Link"
> Links("class").Value <> "toolbarLink"
>
> Set TotalLinks  = Browser("Home").Page("Home").ChildObjects(Links)
>
> ---------------------------------------------
>
> Because I don't want the property "class" value to equal
> "toolbarLink", but that also threw an error. The property "class"
> value I do want is both "wpsNavItem wpsNavLevel1" and " ", which is a
> blank.
>
> Can anyone help me with this?
>
> Thanks,
> Steve
>
> >
>


-- 
Mallipeddi Sreedhar
91-9000994721

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