Shantanu: Very nice.
Parke On Sat, Nov 2, 2013 at 9:13 AM, Shantanu Joshi <[email protected]>wrote: > Hi All, > > Thanks for the help. > > The issue is solved using following code. > > I used DP approach. > > Set oName = Description.Create() > oName("micclass").Value = "WebTable" > oName("cols").Value = 2 > > Set FindTables = Browser("").Page("").ChildObjects(oName) > > For i = 0 to FindTables.count -1 > Rowcount = FindTables(i).RowCount > for j = 0 to RowCount -1 > str = FindTables(i).GetCellData(j,2) > If strComp(Trim(str),"Shantanu") = 0 then > Set ObjWebCheckBox = > FindTable(i).ChildItem(j,2,"webCheckBox", 0) > ObjWebCheckBox.Click > Flag = 1 > End If > Exit For > Next > if Flag = 1 then > Exit For > end If > next > > Thanks for the guidance provided. > > > Enjoy Automation > Shantanu > > On Saturday, 26 October 2013 00:37:05 UTC+5:30, Shantanu Joshi wrote: >> >> Hi All, >> >> I am working on a automation script which makes use of Webtable. >> >> I have come across following problems while handling this issue: >> 1. The Webtable has changing index value. The Webtable index value >> changes when any operation on the same page is done(e.g. inserting textbox >> vale, checking checkbox). So when I use the same WebTable Object stored in >> shared OR in any other script, QTP fails to identify the Webtable object as >> the index value changes. >> >> 2. Also, the WebTable has 2 columns and it does not have any titles for >> the columns. The first row values are taken as column names. As the row >> values are unpredictable as per environment and data created, we can not >> traverse through webtable. >> >> 3. I want to check a WebCheckBox against an instructor's name present in >> that WebTable. The WebTalbe has two columns. 1st one is of instructors name >> and 2nd one contains the webcheckboxes for respective instructor names. >> >> 4. The WebTable object changes as per environment. We dont want to add >> many objects per environment. We want to use a single WebTabel object >> stored in shared OR which can be used runtime on every environment. >> >> I have tried using DP(Desc.programng) but as the Webtable properties are >> not distinctive, it cant be used. >> >> Please provide suggestions n solutions for solving the problem >> >> Your help is appreciated. >> >> Regards, >> Shantanu Joshi >> Automation Engineer >> > -- > -- > 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 Groups > "QTP - HP Quick Test Professional - Automated Software Testing" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Parke Cell: 770-842-0121 -- -- 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 Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
