I tried .refreshobject. But did not work I am using qtp11
Sent from my iPhone On May 16, 2012, at 11:04 AM, Rajat Gulati <mail2ra...@gmail.com> wrote: > > In your case, since the execution of - objrow1.set "ON" leads to reload of > the page/webtable object at run time, you would need to execute : > objrow1.RefreshObject. > > Try this: > > set objrow1 = B(..).page(..).webtable(xx).childitem(1,2,"webcheckbox",0) > objrow1.set "ON" > objrow1.RefreshObject > objrow1.set "ON" > > Thanks, > Rajat > > On Wed, May 16, 2012 at 9:02 PM, Kiran Ogeti <kse...@yahoo.com> wrote: > I was able to narrow down the issue.. > > Its not the dynamic webtable, basically the object getting nullified after i > go back and forth (or) even refresh the screen > > set objrow1 = B(..).page(..).webtable(xx).childitem(1,2,"webcheckbox",0) > > objrow1.set "ON" >> works fine, but when refresh the screen (no change in > webtable what soever) > > objrow1.set "ON" >> object not recognized > > > > > --- On Wed, 5/16/12, Kiran Ogeti <kse...@yahoo.com> wrote: > > From: Kiran Ogeti <kse...@yahoo.com> > > Subject: Re: Prior Object dies after create new one - Webtable > To: mercuryqtp@googlegroups.com > Date: Wednesday, May 16, 2012, 2:32 PM > > > this does not work for me as i need to create objects on each row of the table > > this may be a lame question.. but when I create object a, object b, object c > and so on from a webtable for each row > > why would the object change its value unless I modified them manually. > > --- On Wed, 5/16/12, MANU CHADHA <manu.chadh...@gmail.com> wrote: > > From: MANU CHADHA <manu.chadh...@gmail.com> > Subject: Re: Prior Object dies after create new one - Webtable > To: mercuryqtp@googlegroups.com > Date: Wednesday, May 16, 2012, 2:04 PM > > this happens sometimes.Some times webtable is not identified by the QTP > .always create a object like this as per my knowledge and real time exp > set objrow = B(..).page(..) > > objrow.webtable(xx).childitem(1,2,"webcheckbox",0).set "ON" > objrow.webtable(xx).childitem(2,2,"webcheckbox",0).set "ON" > objrow.webtable(xx).childitem(3,2,"webcheckbox",0).set "ON" > > > this will works fine. > > On 5/16/12, kse...@yahoo.com <kse...@yahoo.com> wrote: > > Sounds interesting Can I have a snippet please > > > > Sent from my iPhone > > > > On May 16, 2012, at 5:58 AM, suman ch <suman...@gmail.com> wrote: > > > >> Get the Combobox object during run time. > >> > >> Regards, > >> Suman Ch > >> > >> On Wed, May 16, 2012 at 3:08 PM, <kse...@yahoo.com> wrote: > >> Yeah it does , the web table is dynamic and the rows are shifting down as > >> new one adds up > >> > >> The q is. How can I preserve the same value in the object when created > >> > >> > >> > >> Sent from my iPhone > >> > >> On May 15, 2012, at 7:57 PM, Sumanhyd <suman...@gmail.com> wrote: > >> > >>> Seems the object properties are changing after selection. Try to take > >>> objects after each selection. > >>> Regards > >>> Suman > >>> > >>> Sent from my iPhone > >>> > >>> On 16-May-2012, at 2:27, Kiran Ogeti <kse...@yahoo.com> wrote: > >>> > >>>> I created objects for each of rows in webtable so I thought I could play > >>>> them later one.. here the example. > >>>> > >>>> got webtable with 20 rows with a check box selection to select desired > >>>> row.. > >>>> > >>>> created objects as below: > >>>> > >>>> set objrow1 = > >>>> B(..).page(..).webtable(xx).childitem(1,2,"webcheckbox",0) > >>>> > >>>> set objrow2 = > >>>> B(..).page(..).webtable(xx).childitem(2,2,"webcheckbox",0) > >>>> > >>>> set objrow3 = > >>>> B(..).page(..).webtable(xx).childitem(3,2,"webcheckbox",0) > >>>> > >>>> when I do objrow1.set "ON" --- works fine > >>>> > >>>> but when i do objrow2. set "ON" followed by objrow1.set "ON".. the > >>>> objrow1 does not work and it seems died > >>>> > >>>> Please help. and yes I did not terminate any objects > >>>> > >>>> thx > >>>> -- > >>>> 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 MercuryQTP@googlegroups.com > >>>> To unsubscribe from this group, send email to > >>>> mercuryqtp+unsubscr...@googlegroups.com > >>>> 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 MercuryQTP@googlegroups.com > >>> To unsubscribe from this group, send email to > >>> mercuryqtp+unsubscr...@googlegroups.com > >>> 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 MercuryQTP@googlegroups.com > >> To unsubscribe from this group, send email to > >> mercuryqtp+unsubscr...@googlegroups.com > >> 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 MercuryQTP@googlegroups.com > >> To unsubscribe from this group, send email to > >> mercuryqtp+unsubscr...@googlegroups.com > >> 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 MercuryQTP@googlegroups.com > > To unsubscribe from this group, send email to > > mercuryqtp+unsubscr...@googlegroups.com > > For more options, visit this group at > > http://groups.google.com/group/MercuryQTP?hl=en > > > > > -- > With Regards > Manu Chadha > +919818091428 > > -- > 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 MercuryQTP@googlegroups.com > To unsubscribe from this group, send email to > mercuryqtp+unsubscr...@googlegroups.com > 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 MercuryQTP@googlegroups.com > To unsubscribe from this group, send email to > mercuryqtp+unsubscr...@googlegroups.com > 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 MercuryQTP@googlegroups.com > To unsubscribe from this group, send email to > mercuryqtp+unsubscr...@googlegroups.com > 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 MercuryQTP@googlegroups.com > To unsubscribe from this group, send email to > mercuryqtp+unsubscr...@googlegroups.com > 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 MercuryQTP@googlegroups.com To unsubscribe from this group, send email to mercuryqtp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en