Hi Rahul, Thanks for the input.
I can enter the value in the Account by capturing the object in OR. But i want to know Is there any way to identify the object with is label? I don't know how to work on any object by using XPath Regards Gajendra On Thu, Aug 2, 2012 at 12:56 AM, iRahulSingh <[email protected]>wrote: > gajendra, have you considered usage of regular expression to save the > object in OR, DP or hard-coding in script as well ?? > > Set textboxObj = B().P().WebEdit("html > tag:=input","micclass:=WebEdit","type:=text","html id:=.*accountname.*") { > assuming you have accountname string in your html-id field constant > everytime as well as this string in not used in anyother text-box accross > any page in your application ) > > using XPath will also save your day pretty easily so your choice now... > > Hope it help else do let the group know.... > > Cheers. > > > > On Wednesday, August 1, 2012 12:02:24 PM UTC+5:30, gajendra wrote: >> >> Any help in terms of Coding would be appreciated >> >> Regards, >> Gajendra >> >> On Wed, Aug 1, 2012 at 11:43 AM, Anshoo Arora <[email protected]>wrote: >> >>> You can use use either XPath or HTML DOM for this if VRI is not an >>> option. >>> On Aug 1, 2012 11:01 AM, "Gajendra Jain" <[email protected]> >>> wrote: >>> >>>> Hi, >>>> >>>> I am working on a site where i have an Account Name field in almost all >>>> the page. >>>> The properties of an object Account Name is different in different >>>> Pages(EX: in Page1 the property is id = accountName, Page2 the property is >>>> id = newAccountName etc ) >>>> >>>> Only one thing is common in all the page is a Label which is attached >>>> to the web edit(Account Name). But this property is not captured in OR >>>> >>>> So I want to avoid, adding same object multiple time in the OR. >>>> >>>> Is there any way where i can find the Account Name label and enter the >>>> value in the webedit? >>>> >>>> Ex. Browser().page().webelement()*.object.label*(Account Name).set >>>> "account 1324"? >>>> Or >>>> Using Descriptive program? >>>> >>>> I hope my requirement is clear to you. if you have any doubt please let >>>> me knwo. >>>> >>>> Regards >>>> Gajendra >>>> >>>> >>>> >>>> On Wed, Aug 1, 2012 at 12:08 AM, iRahulSingh <[email protected] >>>> > wrote: >>>> >>>>> >>>>> 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("**ti**tle:=test").WebEdit("name:=**acc**ountName").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 >>>>>>>>> MercuryQTP+unsubscribe@**googleg**roups.com<mercuryqtp%[email protected]> >>>>>>>>> For more options, visit this group at >>>>>>>>> http://groups.google.com/**group**/MercuryQTP?hl=en<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 >>>>>>>> MercuryQTP+unsubscribe@**googleg**roups.com<mercuryqtp%[email protected]> >>>>>>>> For more options, visit this group at >>>>>>>> http://groups.google.com/**group**/MercuryQTP?hl=en<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 >>>>>>> MercuryQTP+unsubscribe@**googleg**roups.com<mercuryqtp%[email protected]> >>>>>>> For more options, visit this group at >>>>>>> http://groups.google.com/**group**/MercuryQTP?hl=en<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 >>>>> MercuryQTP+unsubscribe@**googlegroups.com<mercuryqtp%[email protected]> >>>>> For more options, visit this group at >>>>> http://groups.google.com/**group/MercuryQTP?hl=en<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 >>>> MercuryQTP+unsubscribe@**googlegroups.com<mercuryqtp%[email protected]> >>>> For more options, visit this group at >>>> http://groups.google.com/**group/MercuryQTP?hl=en<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 >>> MercuryQTP+unsubscribe@**googlegroups.com<mercuryqtp%[email protected]> >>> For more options, visit this group at >>> http://groups.google.com/**group/MercuryQTP?hl=en<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
