[Wtr-general] Want to display data in the same row using Puts

2007-06-13 Thread sapna
Hi, I want display data in the same row using puts. For the reference see below. Thanks in advance. puts {a[4][1]):{a[4][2]} -- This is not working but. Tell me how to put this value. Regards Sapna ___ Wtr-general mailing list

[Wtr-general] how to properly use the snippet function?

2007-06-13 Thread reinier
I am trying to get rid of all cookies via a function. On this forum I found the Snippet thingy. http://rubyforge.org/snippet/detail.php?type=snippetid=26 So I included that code in my script and trying to use it, but I can't figure out how. this is the code: [code] DeleteUrlCacheEntry =

Re: [Wtr-general] syntax error, unexpected tIVAR

2007-06-13 Thread Željko Filipin
On 6/12/07, Jeff Fry [EMAIL PROTECTED] wrote: @ie.button(:class ='Button Menu', :index = 2).click c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:1098:in `send': {:class=Button Menu, :index=2} is not a symbol (TypeError) Hi Jeff, I guess that button is one of those elements that

Re: [Wtr-general] Want to display data in the same row using Puts

2007-06-13 Thread Željko Filipin
Hi Sapna, If you have variable called var, you can display its value inside string like this. puts var = #{var} Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Best Combination of Ruby and Watir

2007-06-13 Thread Željko Filipin
On 6/8/07, Bret Pettichord [EMAIL PROTECTED] wrote: However, if you are using the Watir::IE#modal_dialog method, you must use Ruby 1.8.2-14 and not a more recent version. I just installed ruby182-14.exe on clean xp pro machine. Components: only RubyGems Package Manager. Then I tried to

[Wtr-general] Porting Watir to JRuby

2007-06-13 Thread Nivetha Padmanaban
Any plans of porting WATIR to JRuby?? Regards, Nivetha Email - [EMAIL PROTECTED] Mobile - (0) 98807 17518___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] how to delete cookies (trying now with snippet but this is quite unclear)

2007-06-13 Thread reinier
got it working myself. by calling the delete_cache and including the file mentioned below (got that from this forum somewhere) [code] #!/bin/ruby # # # # # # set TEMPIF=%USERPROFILE%\Local Settings\Temporary Internet Files # %TEMPIF%\Content.IE5\Index.DAT require 'Win32API' # # # HashMethods =

Re: [Wtr-general] Porting Watir to JRuby

2007-06-13 Thread Nick Sieger
On 6/13/07, Nivetha Padmanaban [EMAIL PROTECTED] wrote: Any plans of porting WATIR to JRuby?? None that I know of at the moment. The stumbling block is to get a compatible version of 'win32ole' on JRuby which we don't have. /Nick ___ Wtr-general

Re: [Wtr-general] $ie.text.include? problem

2007-06-13 Thread imran
Hi, *carabasu* Please execute the code below, i have just removed form your code an extra *end*. and added require 'watir' and replaced IE.new with Watir::IE.new because i didn't use include WATIR Execute below code it will print one .. OK require 'watir' testSite = 'http://www.google.com'

[Wtr-general] Carl L Shaulis is out of the office.

2007-06-13 Thread carl . l . shaulis
I will be out of the office starting 06/13/2007 and will not return until 06/14/2007. If you need immediate assistance please try Cari Spruiell or my cell phone at 512-560-5773. Thanks! -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys

Re: [Wtr-general] how to properly use the snippet function?

2007-06-13 Thread Cain, Mark
The attached file works on my Windows XP/IE7 machine. It will delete all the temporary internet files and the cookies. I don't remember where I got it or who wrote it originally, but I tweaked it to get it to work right for me. Hope this helps, --Mark -Original Message- From:

[Wtr-general] Carl L Shaulis is out of the office.

2007-06-13 Thread carl . l . shaulis
I will be out of the office starting 06/13/2007 and will not return until 06/14/2007. If you need immediate assistance please try Cari Spruiell or my cell phone at 512-560-5773. Thanks! -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys

[Wtr-general] Microsoft Tab Strip Issues - urgent

2007-06-13 Thread imran
Hi, All I am working on writing the scripts for my web application but the problem is that i am unable to locate the object named Microsoft Tab strip. Code is like that TR TD colSpan=4?IMPORT NAMESPACE = TSNS IMPLEMENTATION = http://zaigham/webctrl_client/1_0/tabstrip.htc; DECLARENAMESPACE

Re: [Wtr-general] how to properly use the snippet function?

2007-06-13 Thread Bill Agee
When I needed to use that snippet, I just left the whole thing in a separate file, and initiated the cache/cookie cleanup with system('ruby del_cache.rb') You could also probably paste the whole blob of code into a new method and it should work. It would be possible to do the same work in fewer

Re: [Wtr-general] Best Combination of Ruby and Watir

2007-06-13 Thread Bret Pettichord
Željko Filipin wrote: On 6/8/07, *Bret Pettichord* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I just installed ruby182-14.exe on clean xp pro machine. Components: only RubyGems Package Manager. Then I tried to install watir-1.5.1.1192.gem. I first executed Y:\gem install

Re: [Wtr-general] Upgrading the gem for watir 1.5.1.1192

2007-06-13 Thread Bret Pettichord
imran wrote: But there is another query. If you have a new question, please submit it under a (different) subject line that describes the problem. ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] NoMethodError :Undefined method Process_id for 1808:Fixnum

2007-06-13 Thread Bret Pettichord
Simba wrote: When i Run Below is code in IRB ,its throwinf error require 'watir' ie=Watir::IE.start(www.google.com) Error : NoMethodError :Undefined method Process_id for 1808:Fixnum Please some body tell me why this error is coming? Before Going into IRB , I had installed Win32-process

Re: [Wtr-general] Microsoft Tab Strip Issues - urgent

2007-06-13 Thread Bret Pettichord
This looks like an ActiveX control. I don't know how to handle ActiveX controls with Watir. Can you point us to a page that includes this control? Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Save results to file

2007-06-13 Thread Adam Reed
There are quite a few other steps that I'm skipping because they're pretty easy to google (checking if a log file exists already, appending the log name with the date to preven overwrites, etc), but here's a real simple intro: textlog = File.open(text.log,

Re: [Wtr-general] Save results to file

2007-06-13 Thread B Smith
Thanks, The File Create worked...But How do I d'l all the hyperink to the file? I.E. I thought of ie.put(:text,hyperlink that is dynamically created from search query here) But, this syntax is more of a 'push' and I'm trying to 'pull' the result data (i.e. scrape results and iterate thru the

Re: [Wtr-general] Save results to file

2007-06-13 Thread Adam Reed
I'm not sure what you're trying to say -- you lost me here. If you want to scrape a page for URLs and then write them to the log file: ie.links.each do |link| # for each link on the current page in IE... textlog.puts link.src # print url of the link in the textlog we created end

Re: [Wtr-general] Save results to file

2007-06-13 Thread Adam Reed
I don't know what's up with the formatting, the end #ie.links.each should be on the next line (or else it'll get tied into the previous comment). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Reed Sent: Wednesday, June 13, 2007 2:24 PM To:

[Wtr-general] OT: ruby/eclipse question

2007-06-13 Thread Jeff Fry
Hey, I know a few of y'all use Eclipse so I figured its worth a shot to ask this here. The shop I'm working for has a bunch of (non-GUI) automation written in Python, to which I'll be adding some GUI scripts written in Ruby/Watir. There is an existing svn repository like

Re: [Wtr-general] OT: ruby/eclipse question

2007-06-13 Thread Charley Baker
Hey Jeff, You can create a .project file at the root of your project directory and put this in it - replace project_name with your project name. ?xml version=1.0 encoding=UTF-8? projectDescription nameproject_name/name comment/comment projects /projects buildSpec

Re: [Wtr-general] OT: ruby/eclipse question

2007-06-13 Thread Jeff Fry
Thanks Jason, Normally I do that, but I didn't with this one because when I created it it was a Python project. That said - I found the solution. I went exploring again and found the amusingly straightforward Project Add Ruby Nature...which did the trick. It leaves me wondering what a

Re: [Wtr-general] Want to display data in the same row using Puts

2007-06-13 Thread Angrez Singh
Hi, The question you asked was related to Ruby and not to Watir. I think you should start reading the book Programming Ruby. It will be there in your installation directory i.e. where you have installed ruby. - Angrez On 6/14/07, sapna [EMAIL PROTECTED] wrote: Thanks a lot Zeljko. Is there