Inline responses... > -----Original Message----- > From: watir-general@googlegroups.com [mailto:watir- > gene...@googlegroups.com] On Behalf Of maximore > Sent: Wednesday, March 11, 2009 12:22 PM > To: Watir General > Subject: [wtr-general] Okay little more help > > > Okay my previous post was about a way of reading value from a > text field in IE . However I did git that part done correct and will > like to test a condition that require program to test value from > text field and compare.. > > this is ruby syntax used to read text field, that infact was used > to read field:
I doubt these are really what you are using to read the field, since you are still using name instead of :name > ie.text_field(name,'read').value > result=ie.text_field(name,'read').value > also I want to subtract 12-result You probably want: num = 12 - result.to_i which will try to turn the string/object stored in result into an integer. "13 >".to_i => 13 "26".to_i => 26 "".to_i => 0 nil.to_i => 0 "abc".to_i => 0 "3.14".to_i => 3 > when (num=12-result) is executed and the program run with out any > error message . I get no values pass to num ? I understand I am > reading strings . any idea what is wrong with my assignment > statement ? atleast there should be some value passed anyway ? Hope this helps. /\/\ark __________ Information from ESET NOD32 Antivirus, version of virus signature database 3927 (20090311) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---