On Tue, Jul 21, 2009 at 10:39 AM, Dheeraj Gambhir < checktestingthi...@gmail.com> wrote: >"Your Order-No is :<random-order-no> > And i want to pick this "random-order-no" and store it in any file.
browser.div(:id, "intro").span(:index, 2).text.split(": ")[1] => "2316019" Let me know if you would like to know how this works. To save to file: File.open("file.txt", "w") do |file| file.puts "some text" end Let me know if you need more help with files. Željko -- http://watirpodcast.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 -~----------~----~----~----~------~----~------~--~---