Hi All,

Thanks for the reply.
The below code worked for me:
Set webObject =  Description.Create
                                                webObject ("html
tag").value ="INPUT"
                                                webObject ("Image
Type").value = "Image Button"

I think the issue was earlier I was considering it as a "micclass" as
image. However it was taking it has "html tag" object. Not sure why

Thanks as the issue is resolved now.

Thanks,
Harshad


On Jan 10, 5:13 am, BABA <[email protected]> wrote:
> Hi,
>
> I  have 2 objects of same name viz 1) hidden variable 2) button type
> object
>
> (Please find the html of both the objects below)
> <input name='register' value='register' type='hidden'>
> <input src='images/btn_submit1.gif' alt='' class='imageborder'
> name='register' value='register' type='image' id='button_register'>
>
> I want to click on the button using vb script/descriptive programming.
>
> QTP is unable to locate the object button and gives me an error.
>
> I have tried to find if there is index for the 2nd object using object
> repository feature. however there is no index for this object. since
> the other is hidden variable i am unable to find any other infor on
> the hidden object using object repository feature.
>
> Can any one help me with this?
>
> Thanks in advance.
> :Harshad

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