When you capitalize your variable (Status) it becomes a constant and retains its value. You need to make it lower case instead (status).
Bret Amit wrote: > Hi, > Is there any function to flush the value from a variable in RUBY / > WATIR. I am facing problem while following code > I am trying to use following code > > Status=sheet1.getCellByPosition(5, I).Formula > ie.text_field(:name, "FieldName").value =Status > > > and it works fine, but On itetrating this piece of code for multiple I/ > Ps, variable 'name', retains its old value for some of the cases. I > identified this as a cache problem. Please suggest if there any flush > () type function or action in Ruby/watir to clear the garbage value. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---