Re: [Wtr-general] Setting focus in a frame in IE7

2007-05-08 Thread Trevor Mason
Hi Charley, The problem with using set on a text_field is that you it will set more than the maximum field length, so foobar will be entered as foobar and not foo. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listin

Re: [Wtr-general] Setting focus in a frame in IE7

2007-05-08 Thread Trevor Mason
Hi Paul, I'll look into using the maxLength option. As a matter of interest, I have used ie.send_keys("{tab}") to tab away from the address bar, and I can then set the focus in my frame! Very strange! ___ Wtr-general mailing list Wtr-general@rubyforge.or

[Wtr-general] How to contribute to WATIR User Guide and other documentation

2007-05-08 Thread Dhrubojyoti Biswas
The company for which I work is heavily using WATIR to write web application tests. Recently we built a generic framework using WATIR as the base for writing UI Automated Tests for all our products. We wrote wrappers on top of WATIR to abstract UI operations. For example we thought that editing

[Wtr-general] Running multiple test concurrenty in Watir

2007-05-08 Thread Vipul
While running multiple test concurrenty does each thread run parallel or sequentially. For eg require 'thread' require 'watir' def test_google ie = Watir::IE.start('http://www.google.com') ie.text_field(:name, "q").set("pickaxe") ie.button(:value, "Google Search").click end `

[Wtr-general] How to selecting Menu item in Watir

2007-05-08 Thread Vipul
I want to write the script for following scenario 1) Enter Username and Password in login screen. 2) Click Login Button. 3) From Menu Tab Select 'Session Menu' 4) Click "Data Administration" under Session Menu. i have written the script for login but i could not wriite script for selecting menu

Re: [Wtr-general] How to selecting Menu item in Watir

2007-05-08 Thread Željko Filipin
Hi Vipul, I did not understand what you want to do. Click div tag with "Data Administration" text? That can be done with one of these ie.div(:id, "DataAdmin").click ie.div(:text, "Data Administration").click Maybe you will have to click his parent span tag. ie.span(:id, "Sessions").click ie.s

Re: [Wtr-general] How to contribute to WATIR User Guide and other documentation

2007-05-08 Thread Željko Filipin
On 5/8/07, Dhrubojyoti Biswas <[EMAIL PROTECTED]> wrote: Can somebody gimme some pointers in where to start with the Doc Contributions? Hi Dhruv, Jeff Fry is focusing on Rdoc I will update user guide. This list is good place for suggestions. What would you like to work on? Zeljko -- ZeljkoF

Re: [Wtr-general] Using an ie.table.each do |row| loop when thepage in the ie window refreshes itself

2007-05-08 Thread Ethan Jewett
Ian, Sorry about the "rows" and "each_with_index" issues. Hopefully that'll teach me to test suggestions : ) table(:index,29) clearly does the same thing I thought table(:index,29).rows does. As for the "each_with_index", if you just mixin the Enumerable module to the Watir::Table class like th

Re: [Wtr-general] Remote Watir

2007-05-08 Thread Charley Baker
Bill Agee uploaded a rails app to run tests remotely, it's in the user contributions area on the wiki: http://wiki.openqa.org/display/WTR/Rails+test+runner+example+app -Charley On 5/7/07, Paul Rogers <[EMAIL PROTECTED]> wrote: drb might be what you want. Also search the list here - someone po

Re: [Wtr-general] Wtr-general Digest, Vol 42, Issue 14

2007-05-08 Thread Russ DeWolfe
Here is the message I get when I attempt to install this gem: ERROR: While executing gem ... (RuntimeError) Error instaling unroller: unroller requires facets >= 1.8.54 NOTE: I DID install the win32console gem -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECT

Re: [Wtr-general] Community involvement with Watir

2007-05-08 Thread Chris McMahon
You're right, I misspoke. The one from alephzarro worked, but the one from people.mozilla.com/davel didn't. Which was strange, because the files have the same names and are exactly the same size. Sorry I got confused... -Chris > Hmm...the only message I could find was this one, which suggest th

Re: [Wtr-general] Community involvement with Watir

2007-05-08 Thread Bret Pettichord
Christopher Rasch wrote: > Thanks! How should we contribute to the User Guide? It doesn't appear > to be user editable: > > http://wtr.rubyforge.org/watir_user_guide.html > This HTML file is stored in our SVN repository. I think one question Zeljko needs to address is what form he wants it t

Re: [Wtr-general] The Plan for Watir

2007-05-08 Thread Bret Pettichord
Christopher Rasch wrote: > I'm looking forward to ... better support for modal_dialogs on the supported > platforms. Nothing is planned in this area. What were you hoping for? Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge

Re: [Wtr-general] unknown property or method `readyState'

2007-05-08 Thread Bret Pettichord
I'm not sure i understand the context (is this supposed to be part of a thread? because it isn't). In any case, there are some recent changes that I made to trunk that might fix this problem. Bret Ken Lim wrote: > Good day. > Hope I understood your request for stack traces correctly. > Please

Re: [Wtr-general] Using an ie.table.each do |row| loop when thepagein the ie window refreshes itself

2007-05-08 Thread Ian Webb
This worked great! I only had to make a couple of minor corrections. First off, each_with_index starts counting at 0, while Watir starts counting as 1. So I had to do rows_to_click << (i+1). And when iterating back through the table to actually click the links, I had to add ie.wait to that loop to

Re: [Wtr-general] Running multiple test concurrenty in Watir

2007-05-08 Thread Bret Pettichord
Vipul wrote: > While running multiple test concurrenty does each thread run parallel or > sequentially. > Concurrent threads run in parallel. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Wtr-general Digest, Vol 42, Issue 14

2007-05-08 Thread Charley Baker
Not to be too blunt, butinstall facets >= 1.8.54. gem install facets -c On 5/8/07, Russ DeWolfe <[EMAIL PROTECTED]> wrote: Here is the message I get when I attempt to install this gem: ERROR: While executing gem ... (RuntimeError) Error instaling unroller: unroller requires f

Re: [Wtr-general] The Plan for Watir

2007-05-08 Thread Christopher Rasch
Bret Pettichord wrote: > Christopher Rasch wrote: >> I'm looking forward to ... better support for modal_dialogs on the supported platforms. > Nothing is planned in this area. What were you hoping for? > > Bret Well, ultimately, I want to be able to handle any popup that the browser throws up: att

Re: [Wtr-general] Community involvement with Watir

2007-05-08 Thread Christopher Rasch
Bret Pettichord wrote: > Christopher Rasch wrote: >> Thanks! How should we contribute to the User Guide? It doesn't appear >> to be user editable: >> >> http://wtr.rubyforge.org/watir_user_guide.html >> > This HTML file is stored in our SVN repository. > > I think one question Zeljko needs t

Re: [Wtr-general] The Plan for Watir

2007-05-08 Thread Chris McMahon
> Since integration of the various watirs is also part of the roadmap, I > expect that some of the better modal dialog support will also be > migrated to the other watir flavors. Perhaps I have the wrong impression? I think it's a terminology problem: "modal dialog" is an artifact of IE only.

Re: [Wtr-general] The Plan for Watir

2007-05-08 Thread Paul Rogers
It seems like we need a seperate 'service' that runs next to watir and deals with any type of pop up Psuedo code: # this line tells the other service to expect a # Modal dialog dialog_clicker :expect => 'Windows Modal' , :click => 'ok' @ie.button(:value , 'Show Modal').click # the service no

[Wtr-general] FireWater: click on link should launch new page/tab, but does not

2007-05-08 Thread Chris McMahon
Run the script below. The script runs without error. But when you click the "Help" button manually, a new window or tab (depending on FF settings) will open; but when clicking with FireWatir, the new window does not open. I would like to be able to click the link and then to attach to the new wi

[Wtr-general] RDOC - Help determining what needs documentation

2007-05-08 Thread Jeff Fry
OK, I've learned (and documented on the wiki ) how to: create a svn working copy, edit the rdoc text, generate an rdoc using rake, and then generate a patch file. There is of course a crucial step missing there...and that

Re: [Wtr-general] RDOC - Help determining what needs documentation

2007-05-08 Thread Paul Rogers
not so much about what needs to go in, but more whats a good example of rdoc - look at the rails docs - api.rubyonrails.org I think the content is very good. I'll read through the latest source now, and hopefully I'll send you some more thoughts later tonight Paul - Original Message -

Re: [Wtr-general] RDOC - Help determining what needs documentation

2007-05-08 Thread Paul Rogers
In my opionion, the rdocs are really dificult to read right now. I think if I was picking up watir now and looking at the rdocs for the first time, Id be a bit disheartened. I would make sure that only relevant ( to the end user ) methods/classes/modules are in the rdoc you can switch off rdoc

Re: [Wtr-general] RDOC - Help determining what needs documentation

2007-05-08 Thread Paul Rogers
Ive also been meaning for ages to write up how the error checkers work. I'll try and do that between now and then end of the week. Paul - Original Message - From: Paul Rogers To: wtr-general@rubyforge.org Sent: Tuesday, May 08, 2007 9:47 PM Subject: Re: [Wtr-general] RDOC - H

[Wtr-general] How to handle pop dialouge boxes by clicking on OK button

2007-05-08 Thread vamsi
My application having confirmation messages as "Pop up dialogue box". the application will not move to next page until you click on 'OK' button. the popup winodw will be like this.. Windows intrenet explorer

Re: [Wtr-general] FireWater: click on link should launch new page/tab, but does not

2007-05-08 Thread Angrez Singh
Hi Chris, I was able to click on the help link which opened in new window. Currently you can connect to only new window not new tab. Make sure you have allowed popups for that site. I got error that Firefox prevented from opening a pop up from the site. When I allowed pop ups I was able to click

[Wtr-general] OT: find min/max values in an array of floats

2007-05-08 Thread Chris McMahon
I can think of a couple of ways to do this, but they're all painful in one way or another. Ruby being Ruby, I wonder if there's some nifty shortcut. Given floats = [] floats << 3.456 floats << 1.53 floats << 5.123 show that the least element of the array is 1.53 and the greatest element of the

Re: [Wtr-general] FireWater: click on link should launch new page/tab, but does not

2007-05-08 Thread Chris McMahon
> I was able to click on the help link which opened in new window. Currently > you can connect to only new window not new tab. Make sure you have allowed > popups for that site. I got error that Firefox prevented from opening a pop > up from the site. When I allowed pop ups I was able to click on t

Re: [Wtr-general] How to handle pop dialouge boxes by clicking on OK button

2007-05-08 Thread SHALINI GUPTA
hi, U can use this code def startClicker( button , waitTime = 3) w = WinClicker.new longName = $ie.dir.gsub("/" , "\\" ) shortName = w.getShortFileName(longName) c = "start ruby #{shortName}\\watir\\clickJSDialog.rb #{button} #{waitTime} " puts "Starting #{c}" w.winsystem(c) w=nil ###end of fun

Re: [Wtr-general] OT: find min/max values in an array of floats

2007-05-08 Thread Chris McMahon
Neat. I guess I should have just written the code and tried it out. On 5/8/07, Bret Pettichord <[EMAIL PROTECTED]> wrote: > Chris McMahon wrote: > > I can think of a couple of ways to do this, but they're all painful in > > one way or another. Ruby being Ruby, I wonder if there's some nifty > >

Re: [Wtr-general] OT: find min/max values in an array of floats

2007-05-08 Thread Bret Pettichord
Chris McMahon wrote: > I can think of a couple of ways to do this, but they're all painful in > one way or another. Ruby being Ruby, I wonder if there's some nifty > shortcut. Given > > floats = [] > floats << 3.456 > floats << 1.53 > floats << 5.123 > > show that the least element of the array i

Re: [Wtr-general] FireWater: click on link should launch new page/tab, but does not

2007-05-08 Thread Chris McMahon
Close enough. It seems like when you do Apple-R in TextMate, TextMate doesn't capture stderr, only stdout. When I ran the script from IRB, I got irb(main):020:0> ff.link(:src, "/help/index.cgi?socialtext_documentation").click FireWatir::Exception::UnknownObjectException: Unable to locate object,

[Wtr-general] FireWatir: test/unit assertions can't be found?

2007-05-08 Thread Chris McMahon
This is odd: require 'rubygems' require 'firewatir' require 'test/unit' require 'firewatir/testUnitAddons' include FireWatir ff = FireWatir::Firefox.new() ff.goto("http://www.socialtext.net/stoss/index.cgi?mcmahon_test";) ff.link(:text, "Help").click sleep 5 ff.attach(:title, /Documentation/) ass

Re: [Wtr-general] RDOC - Help determining what needs documentation

2007-05-08 Thread Bret Pettichord
Jeff Fry wrote: > I'm left hoping we can find another way for me to learn what's been > added but not documented in v1.5. So Brett, Charley, Paul, or others > involved in building v1.5...if you were going to update the rdoc, how > would you know what to edit? If you were going to be making the e

Re: [Wtr-general] RDOC - Help determining what needs documentation

2007-05-08 Thread Bret Pettichord
Paul Rogers wrote: > In my opionion, the rdocs are really dificult to read right now. I > think if I was picking up watir now and looking at the rdocs for the > first time, Id be a bit disheartened. > > I would make sure that only relevant ( to the end user ) > methods/classes/modules are in t

Re: [Wtr-general] Community involvement with Watir

2007-05-08 Thread Helder Ribeiro
2007/5/5, Željko Filipin <[EMAIL PROTECTED]>: > On 5/5/07, Bret Pettichord <[EMAIL PROTECTED]> wrote: > > I think i convinced Zeljko today to take the lead in updating the users > > guide. > > You certainly did. Last night I had a dream how I bribed cartoon foxes from > why's (poignant) guide to ru

Re: [Wtr-general] FireWatir: test/unit assertions can't be found?

2007-05-08 Thread Bret Pettichord
Chris McMahon wrote: > require 'rubygems' > require 'firewatir' > require 'test/unit' > require 'firewatir/testUnitAddons' > include FireWatir > include Test::Unit::Assertions # you need to mix in the assertion methods if you want to use them outside of a testcase. > ff = FireWatir::Firefox.new

Re: [Wtr-general] Community involvement with Watir

2007-05-08 Thread Bret Pettichord
Helder Ribeiro wrote: > I think a section of "recipes", where people could post clear and well > commented code on how to do specific tasks, would also be very useful, > perhaps even some non-testing stuff like automating airline ticket > searching or emptying large gmail labels. It could start wit