Hi, Try with the height property. If the object is hidden height property for that obj is 0 and for other obj which is visble height will be greater than 0.
Regards, Suman Ch On Tue, Jan 10, 2012 at 3:43 PM, 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 -- 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
