[wtr-general] Re: How to create a file and save it.

2010-06-03 Thread Adam Reed
I agree with Jason, and I would also recommend Everyday Scripting
with Ruby/Marick - great book for scripters that know more about
WATIR than they do about Ruby.

http://pragprog.com/titles/bmsft/everyday-scripting-with-ruby

On Jun 3, 8:30 am, Jason Trebilcock jason.trebilc...@gmail.com
wrote:
 Watir is really a tool for interacting with web applications.  For what you
 want to do, you may want to rephrase the question as being Ruby-specific and
 not related to Watir. Further, you may want to invest a little time
 researching your problem.  There are plenty of resources available to help
 you solve this problem.

 An initial hint is to google for 'ruby creating text file'.
 After that, once you have some code, you may want to reach out to a Ruby
 mailing list for further help.  But, note that when you do reach out for
 help, there is going to be an expectation that you have specific questions
 that you're not able to solve rather than a blanket request for help.

 On Thu, Jun 3, 2010 at 7:28 AM, meaculpa harismah...@gmail.com wrote:
  I need to create a text file and save it using watir.

  How is it possible. Can anybody help ?

  --
  Before posting, please readhttp://watir.com/support. In short: search
  before you ask, be nice.

  You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
  To post: watir-general@googlegroups.com
  To unsubscribe: 
  watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com



-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: How to create a file and save it.

2010-06-03 Thread meaculpa


Its WATIR specific only. And This is not a blanket request for help.

Everyone in this forum are having experience and they are not just
NOOBS. So they can surely understand what i mean... Also After
googling only I post here...

I believe this group is mainly for helping each other than creating
specific rules !!!

I accept that my question was little.

My actual problem is :

From a webpage I get a Order Id. I want to save that in a notepad. I
googled and didnt find any help.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


RE: [wtr-general] Re: How to create a file and save it.

2010-06-03 Thread Rohan Premvallabh Ojha
Hi,

You can have something like.

f=File.new(fileName,w)   # to create a new text file
f.puts(variableName) # to input that in your text file 
(have it in a while loop for multiple values)
f.close

Hope this will help you.:)

Cheers and Chill..

Thanks
Rohan Ojha
00 44 07950310117

From: watir-general@googlegroups.com [watir-gene...@googlegroups.com] On Behalf 
Of meaculpa [harismah...@gmail.com]
Sent: 03 June 2010 19:47
To: Watir General
Subject: [wtr-general] Re: How to create a file and save it.

Its WATIR specific only. And This is not a blanket request for help.

Everyone in this forum are having experience and they are not just
NOOBS. So they can surely understand what i mean... Also After
googling only I post here...

I believe this group is mainly for helping each other than creating
specific rules !!!

I accept that my question was little.

My actual problem is :

From a webpage I get a Order Id. I want to save that in a notepad. I
googled and didnt find any help.

--
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: How to create a file and save it.

2010-06-03 Thread Adam Reed
With respect, file manipulation is a basic feature of Ruby.  WATIR is
a testing library/tool that makes use of the basic built-in Ruby
functionality.  That is the distinction that is being made.

In your case, you would need to design a way to locate the Order Id,
temporarily assign that value to a variable, open or create a text
file, and finally write this value to the file.

Which step in that process are you having difficulty coding?

Thanks,
Adam

On Jun 3, 9:17 am, meaculpa harismah...@gmail.com wrote:
 Its WATIR specific only. And This is not a blanket request for help.

 Everyone in this forum are having experience and they are not just
 NOOBS. So they can surely understand what i mean... Also After
 googling only I post here...

 I believe this group is mainly for helping each other than creating
 specific rules !!!

 I accept that my question was little.

 My actual problem is :

 From a webpage I get a Order Id. I want to save that in a notepad. I
 googled and didnt find any help.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: How to create a file and save it.

2010-06-03 Thread orde
The Ruby IO and File classes contain untold goodies.   I'd suggest
reading up on them:

http://www.ruby-doc.org/core/classes/File.html
http://www.ruby-doc.org/core/classes/IO.html

Hope it helps.

orde


On Jun 3, 7:49 am, Adam Reed reed.a...@gmail.com wrote:
 With respect, file manipulation is a basic feature of Ruby.  WATIR is
 a testing library/tool that makes use of the basic built-in Ruby
 functionality.  That is the distinction that is being made.

 In your case, you would need to design a way to locate the Order Id,
 temporarily assign that value to a variable, open or create a text
 file, and finally write this value to the file.

 Which step in that process are you having difficulty coding?

 Thanks,
 Adam

 On Jun 3, 9:17 am, meaculpa harismah...@gmail.com wrote:



  Its WATIR specific only. And This is not a blanket request for help.

  Everyone in this forum are having experience and they are not just
  NOOBS. So they can surely understand what i mean... Also After
  googling only I post here...

  I believe this group is mainly for helping each other than creating
  specific rules !!!

  I accept that my question was little.

  My actual problem is :

  From a webpage I get a Order Id. I want to save that in a notepad. I
  googled and didnt find any help.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: How to create a file and save it.

2010-06-03 Thread Wesley Chen
When you have installed Ruby, there is a man doc, I think for the newbie,
you can study a lot from it, and it is really basic but important.


Wesley.
For life, the easier, the better.


On Fri, Jun 4, 2010 at 2:01 AM, orde ohil...@gmail.com wrote:

 The Ruby IO and File classes contain untold goodies.   I'd suggest
 reading up on them:

 http://www.ruby-doc.org/core/classes/File.html
 http://www.ruby-doc.org/core/classes/IO.html

 Hope it helps.

 orde


 On Jun 3, 7:49 am, Adam Reed reed.a...@gmail.com wrote:
  With respect, file manipulation is a basic feature of Ruby.  WATIR is
  a testing library/tool that makes use of the basic built-in Ruby
  functionality.  That is the distinction that is being made.
 
  In your case, you would need to design a way to locate the Order Id,
  temporarily assign that value to a variable, open or create a text
  file, and finally write this value to the file.
 
  Which step in that process are you having difficulty coding?
 
  Thanks,
  Adam
 
  On Jun 3, 9:17 am, meaculpa harismah...@gmail.com wrote:
 
 
 
   Its WATIR specific only. And This is not a blanket request for help.
 
   Everyone in this forum are having experience and they are not just
   NOOBS. So they can surely understand what i mean... Also After
   googling only I post here...
 
   I believe this group is mainly for helping each other than creating
   specific rules !!!
 
   I accept that my question was little.
 
   My actual problem is :
 
   From a webpage I get a Order Id. I want to save that in a notepad. I
   googled and didnt find any help.

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 You received this message because you are subscribed to
 http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 To unsubscribe: 
 watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com