Hi gajendra , Please correct me if this is not your query - You want to first identify the number of text-boxes on the webpage on the basis of their names ( assuming this the propertyname through which we are identifying text-boxes ) ad then the number of webedits we encounter we put the number in those webedits after appening the number the value with label-name ????? If above statement is your query then i believe you just have to identify the all the webobjects having the same name and then find the number of objects on the parent object ( in our case page ) with using childobject property and then just simple refer each object to set a value in the text-box. Since you've referred you are a beginner that's why not given you the code but the approach ..... if i'm not being clear, do let me know. All the Best & Cheers..
On Tuesday, July 31, 2012 3:34:14 PM UTC+5:30, gajendra wrote: > Hi Crown, > > I know that the code which you mentioned works fine for the attached html > tag. > > I gave the html tag just for an example. > > Assume that If i have to enter the value just by passing the Label name > without any object properties, How could i achieve this? > > Regards, > Gajendra > > On Tue, Jul 31, 2012 at 10:25 AM, J Crown <[email protected]>wrote: > >> Hi Gajendra, >> >> Try with the below code: >> >> Browser("name:=test").Page("title:=test").WebEdit("name:=accountName").Set >> "Hello" >> >> >> Kishor, >> >> I doubt whether we can achieve this by VisualRelation >> >> Visual Relation is used to identify an object relative to another object >> depending on the visual relation (Obj1 is left to Obj2). And we use it >> only when there is no unique property to identify the object. >> >> -- >> >> With Regards, >> JCrown >> >> On Mon, Jul 30, 2012 at 8:50 PM, Kishor Kumar <[email protected]>wrote: >> >>> use VisualRelation(QTP11) to identify the the text field based on >>> AccountName Label. >>> >>> On Mon, Jul 30, 2012 at 7:04 PM, Gajendra Jain >>> <[email protected]>wrote: >>> >>>> Hi, >>>> >>>> I want to enter the value in the text field by passing the >>>> label(Account Name) against to it using descriptive programming or by any >>>> means? >>>> >>>> Account Name >>>> <input name="accountName" class="text" id="accountName0" type="text" >>>> jQuery17109562255427902675="3"/> >>>> >>>> Could you please help me? >>>> >>>> Regards, >>>> Gajendra >>>> >>>> -- >>>> 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 >>> >> >> >> >> >> >> -- >> 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
