[wtr-general] Re: Test Results output capturing

2009-02-05 Thread H2006
Great! this works now. Question: I have multiple tests running in Test plan. If I use this in each file.. then it creates new result file for each testscript. Is it possible to have only one result file for testplan and all other scripts insert the output in the same? Thanks.. On Jan 21, 6:47

[wtr-general] Unable to open IE window

2009-02-05 Thread Jaz
Hi! Recently installed ruby to use watir, and I get a strange error when I execute the steps in Watir in 5 minutes http://wiki.openqa.org/display/WTR/Watir+in+5+Minutes These are the steps I follow: 1. require watir 2. ie = Watir::IE.new When I perform step 2 I get the following error:

[wtr-general] Re: Unable to open IE window

2009-02-05 Thread aidy lewis
At a guess try updating your windows api gem Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: Hi! Recently installed ruby to use watir, and I get a strange error when I execute the steps in Watir in 5 minutes http://wiki.openqa.org/display/WTR/Watir+in+5+Minutes These are the steps I

[wtr-general] Re: Eclipse is displaying the execution summary

2009-02-05 Thread aidy lewis
Hi, For dynamic and duck typed languages I am not sure that you need and IDE. IDE's may be useful when you have got to build a lot of scaffold in languages like Java and C#. They also can be slow. I use: Notepad++ It's Explorer plugin And the command line

[wtr-general] Re: Retaining variables between tests in a thread-safe manner

2009-02-05 Thread aidy lewis
You could use a Singleton or pass your browser object around as a parameter. Aidy 2009/2/5 Justin Ko justin.t...@gmail.com: We are creating a smoke test for our web based application using the Test/Unit module in Ruby (v1.8.6) with Watir (v1.6.2). The smoke test would consist of a series

[wtr-general] Re: Unable to open IE window

2009-02-05 Thread aidy lewis
gem list -r win* gem update windows-api -y Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: How do I do that? On Feb 5, 12:36 pm, aidy lewis aidy.le...@googlemail.com wrote: At a guess try updating your windows api gem Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: Hi!

[wtr-general] Re: Unable to open IE window

2009-02-05 Thread Jaz
Hi! Thanks for answering so fast Aidy Unfortuneatly it still doesn't work =( (Going crazy soon...) /jasmin On Feb 5, 1:59 pm, aidy lewis aidy.le...@googlemail.com wrote: gem list -r win* gem update windows-api -y Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: How do I do that?

[wtr-general] Re: Unable to open IE window

2009-02-05 Thread aidy lewis
This will work require 'watir' Watir::Browser.default = ie @browser ||= Watir::Browser.new Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: Hi! Thanks for answering so fast Aidy Unfortuneatly it still doesn't work =( (Going crazy soon...) /jasmin On Feb 5, 1:59 pm, aidy lewis

[wtr-general] Re: Unable to install watir

2009-02-05 Thread aruna prabha
then how do i install watir in that case. Aruna On 2/5/09, Bret Pettichord b...@pettichord.com wrote: The error indicates that the gem installer is unable to access rubyforge.org, where the gems are stored. This can happen if there is a firewall, in which case you need to set a proxy.

[wtr-general] Re: Unable to install watir

2009-02-05 Thread Bret Pettichord
connect your computer to the internet. aruna prabha wrote: then how do i install watir in that case. Aruna On 2/5/09, *Bret Pettichord* b...@pettichord.com mailto:b...@pettichord.com wrote: The error indicates that the gem installer is unable to access rubyforge.org

[wtr-general] Re: count the number of div elements (without divs.find_all)

2009-02-05 Thread Paul Rogers
some one else asked a similar question a while back. I pointed them to some kind of solution, but I really cant remember what it was. It may have been something like taking the html, and using scan to get the div tags, and then using index to find the ones you are after. Paul On Wed, Feb 4,

[wtr-general] New to ruby and watir

2009-02-05 Thread Louie
I was using ruby and watir and now I seem to have broken it when I try to run a small script I get an error How do I get it fixed The script is below here require watir ie = Watir::IE.new_process() ie.maximize test_site = http://hw.expedata.net/admin; ie.goto test_site The error is below

[wtr-general] Re: New to ruby and watir

2009-02-05 Thread Charley Baker
Try this: gem update windows-pr which should updated your windows-pr gem to 0.9.9 and give it another go. Let me know. Charley Baker blog: http://charleybakersblog.blogspot.com/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Thu, Feb 5, 2009 at 9:00 AM, Louie

[wtr-general] Re: Unable to open IE window

2009-02-05 Thread Charley Baker
It seems there are some compatibility issues here with some of the win32utils. Try updating your win32-api gem, win32-process and the windows-pr gem as well. Same instructions that Aidy mentioned before with those gems. Charley Baker blog: http://charleybakersblog.blogspot.com/ Lead Developer,

[wtr-general] Re: Retaining variables between tests in a thread-safe manner

2009-02-05 Thread Michael Hwee
If you use only IE, try replacing following Watir::IE.new with Watir::IE.new_process Michael - Original Message From: Justin Ko justin.t...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, February 5, 2009 4:11:24 AM Subject: [wtr-general] Retaining

[wtr-general] Re: Extending the IE class

2009-02-05 Thread Brian Tomlin
I took the include Watir out and that gave me a different error: ./portal.rb:20: uninitialized constant IE (NameError) from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `ge m_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:

[wtr-general] Re: Extending the IE class

2009-02-05 Thread Brian Tomlin
Actually it turns out this is a larger problem than I thought. It's not just an issue with class inheritance. I am suddenly and for some unknown reason unable to run anything in Watir at all. Basically anytime I run a watir script I get this error: uninitialized constant Windows::API::Error

[wtr-general] Re: Unable to open IE window

2009-02-05 Thread aidy lewis
Your right Charley gem install windows-pr Will do it. Aidy 2009/2/5 Charley Baker charley.ba...@gmail.com: It seems there are some compatibility issues here with some of the win32utils. Try updating your win32-api gem, win32-process and the windows-pr gem as well. Same instructions that

[wtr-general] Re: Extending the IE class

2009-02-05 Thread Charley Baker
I just answered another person on the list having the same problems: gem update windows-pr There seem to be some compatibility issues with the win32utils libraries in the latest release. Charley Baker blog: http://charleybakersblog.blogspot.com/ Lead Developer, Watir, http://wtr.rubyforge.org

[wtr-general] QA with Watir experience needed at columbus, OH

2009-02-05 Thread lgeo...@everesttech.com
Dear listers, My direcr client needs a QA engineer (about 10 years of experience) with deep knowledge as well as experience in WatiR for their Columbus location. I need 5 candidates at the earliest. Please mail me at lgeo...@everesttech.com Thanks Leah

[wtr-general] Re: Extending the IE class

2009-02-05 Thread Brian Tomlin
Thanks, Charley! Sorry that I didn't see the other thread, I was distracted by my red herring. I will pass this along to the folks on the Ruby forum with due credit, of course. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[wtr-general] Problems with Javascript image

2009-02-05 Thread dcg
I'm having trouble clicking an image that fires javascript. The button has no ID or NAME tag, so I have to reference it by SRC. The source for the button is: tr td class=vSpace3/td /tr tr

[wtr-general] Re: Problems with Javascript image

2009-02-05 Thread dcg
Got it: ie.image(:src,/startquotebutton/).click --~--~-~--~~~---~--~~ 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

[wtr-general] Re: Unable to open IE window

2009-02-05 Thread Jaz
HI again! I have now tried both gem install win32-api gem install win32-process gem install windows-pr and gem update win32-api gem update win32-process gem update windows-pr This is really confusing Here is the complete text in the prompt: C:\Documents and Settings\JasminCirb

[wtr-general] Re: Unable to open IE window

2009-02-05 Thread Al Snow
Jasmin, Put this in a file, two-minute.rb, and run ruby two-minute.rb on it. require watir ie = Watir::Browser.new ie.goto http://www.google.com; ie.text_field(:name, q).set WSO2 WSAS ie.button(:name, btnG).click Call me on Google Talk if you have problems. Thanks, Al On Feb 5, 1:59 pm,

[wtr-general] Watir stuck waiting for a page to load

2009-02-05 Thread Paul
Hi there, I was fishing through some old Watir examples when I decided to try the joke script found at: http://agileworks.blogspot.com/2006/04/geeks-version-of-joke.html When I run the code, I notice that Watir gets stuck waiting for the first page to load (the only URL specified in that

[wtr-general] How to get table size

2009-02-05 Thread zeng0...@gmail.com
I am writing a script to zoom in and zoom out. After the operation, I need to check the effect. Is there any way I can get the table size (width or height)? The HTML shows there are some attribute associated with the table. But I cannot find any methods to get them. Any suggestions are

[wtr-general] Re: How to get table size

2009-02-05 Thread Paul Rogers
ie.table(...).style.width On Thu, Feb 5, 2009 at 12:51 PM, zeng0...@gmail.com zeng0...@gmail.com wrote: I tried ie.table(:class=calendar-grid, :index=1).attribute_value (width) and ie.table(:class=calendar-grid, :index=1).attribute_value(width (css)) but get and nil. In the IE

[wtr-general] Urgent QA Watir Need

2009-02-05 Thread Annie637
We will need this applicant to have extensive Ruby Watir experience. Prefer applicant to be from Central Ohio, Columbus, area. Start Date: Immediate The Automation Test Engineer works as a project team member to jointly deliver high quality applications on time and budget. The Automation Test

[wtr-general] `assert_exists': Unable to locate element

2009-02-05 Thread RK
Hi Frnd, I have updated ruby Watir from 1.5.3 to 1.6.2 and getting below issues. Code: require 'rubygems' require 'watir' @@browser = Watir::IE.new() @@browser.goto(www.google.com) @@browser.text_field(:name,'q').set('watir') @@browser.close Issues : 1) It Opens two browser windows( Blank

[wtr-general] Re: `assert_exists': Unable to locate element

2009-02-05 Thread Al Snow
RK, If your OS is Vista, then the answer is in the FAQ - http://wiki.openqa.org/display/WTR/FAQ#FAQ-WhatshouldIdoiftwobrowserwindowsappearwhenrunningatestunderWindowsVista%3F Al On Feb 5, 1:47 pm, RK wctr...@gmail.com wrote: Hi Frnd, I have updated ruby Watir from 1.5.3 to 1.6.2 and

[wtr-general] Re: How to get table size

2009-02-05 Thread zeng0...@gmail.com
Still return . On Feb 5, 3:23 pm, Paul Rogers paul.rog...@shaw.ca wrote: ie.table(...).style.width On Thu, Feb 5, 2009 at 12:51 PM, zeng0...@gmail.com zeng0...@gmail.com wrote: I tried  ie.table(:class=calendar-grid, :index=1).attribute_value (width) and  

[wtr-general] Re: `assert_exists': Unable to locate element

2009-02-05 Thread Paul Rogers
i think this happens on Vista. try searching the maillist for vista and see if you get asolution. Im sure it has been solved, just dont remember right now how. Paul On Thu, Feb 5, 2009 at 11:47 AM, RK wctr...@gmail.com wrote: Hi Frnd, I have updated ruby Watir from 1.5.3 to 1.6.2 and

[wtr-general] Re: Watir stuck waiting for a page to load

2009-02-05 Thread Paul
At someone's suggestion that the page just takes a long time to load, I decided to wrap a timer around the initial page IE.start command and discovered that it takes over 7.5 minutes for the page to load! That's like _eons_ in internet time! ;) Anyhoo, that particular script no longer works

[wtr-general] Enabled_popup and alt text/tooltip

2009-02-05 Thread JackieH
We are using the enabled_popup.rb to handle window pop-up messages...We return the text found in that window to validate we are getting the correct message for the correct field: def get_window_message(ie, title='Microsoft Internet Explorer', btn=OK) begin hwnd = ie.enabled_popup(30)

[wtr-general] gem install windows-pr -- this is the answer

2009-02-05 Thread Bret Pettichord
Many people who have recently installed Watir are reporting new problems. We've tracked them down to some new windows gems that Watir uses. They have some incompatibilities. Many people are able to fix these problems by doing gem install windows-pr Give it a shot. It might work for you

[wtr-general] Re: `assert_exists': Unable to locate element

2009-02-05 Thread Ravi Kumar
Hi We should run Ruby as a Windows Administrator, GoTo your ruby/bin/ Give and On Thu, Feb 5, 2009 at 3:15 PM, Al Snow jasn...@gmail.com wrote: RK, If your OS is Vista, then the answer is in the FAQ -

[wtr-general] Re: `assert_exists': Unable to locate element

2009-02-05 Thread Ravi Kumar
Hi Run RUBY with Administrator privileges , Go to your ruby/bin folder and select Run this program as an administrator in ruby properties window. Sure it should resolve both the issues mentioned. Thanks On Thu, Feb 5, 2009 at 4:22 PM, Ravi Kumar mvraviku...@gmail.com wrote: Hi We should

[wtr-general] Re: Eclipse is displaying the execution summary

2009-02-05 Thread Niharika Patro
Thanks Aidy, This information is really helpful :) Regards Niharika On Thu, Feb 5, 2009 at 5:12 PM, aidy lewis aidy.le...@googlemail.comwrote: Hi, For dynamic and duck typed languages I am not sure that you need and IDE. IDE's may be useful when you have got to build a lot of scaffold in

[wtr-general] Re: How to append results to an existing Excel file

2009-02-05 Thread Karthikeyan K
I am not able to understand your code. However assuming you want to add contents to an existing excel sheet, You can use the UsedRange property to find the already used rows and add one to it to go to the next available row. For example newStartingRow = $worksheet.UsedRange.Rows.Count + 1

[wtr-general] Fixing the new Watir problem

2009-02-05 Thread Bret Pettichord
See Daniel's advice below. He is the developer of the gems in question. Bret -- Forwarded message -- From: Daniel Berger djber...@gmail.com Date: Thu, Feb 5, 2009 at 7:04 PM Subject: Re: Watir is acting retarded To: ruby-talk ML ruby-t...@ruby-lang.org Daniel Waite wrote: