Yea, it is really bad code. And, I have just been told to see if its easy to reverse make a spreadsheet of what has already been made. I do what I am told.
There probably wont be any changes to the code, and if there is, I can manage it. The script I am writing really is not all that complex. Thank you for all the help! Chris On Apr 7, 11:56 am, Chuck van der Linden <sqa...@gmail.com> wrote: > On Apr 7, 3:13 am, catepillar <cmay...@gmail.com> wrote: > > > > > Hahaha. Will do. > > > This is just a random question, but what would you do if there were no > > id tag. > > > So the code looked something like: > > <div> > > <div>4/2</div> > > <div>97</div> > > <div>95</div> > > <div>100</div> > > </div> > > > Now there is nothing to set them apart, but I would still need to set > > them to individual variables. > > What Would I do? > > The first thing I'd do is have a serious talk with my developers about > this concept called 'testability' Then I'd ask to see their unit > tests for this stuff and try to figure out how they are not going to > break the first time the dev refactors the page. > > because yes you can access these by index, but since the index could > easily change with the addition of just one more div above it on the > page, it creates a test that tends to be very fragile, high > maintainance, and prone to false alarms. None of that is good... > > having something simple like an ID or Title in the divs so that they > can be easily identified will make life easier for everyone. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---