I have a message that appears with a different number at the end,

(*) wild cards - where the number would be
Message = You have successfully saved the new screening data. (ID =
***)

#Check to see if * (wild card exist)
if message.index("*") != nil
      #Formats string to ignore wild card text and anything after
that.
      message = message[0,message.index("*")]
      #Try to find the message using formated - Fails here
      puts $ie.div(:text,eval("/"+message+"/"))
end

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to