Re: [Wtr-general] Watir and smartclient

2007-05-08 Thread Sadeesh Vinoth
Hi Angrez, What i have attched is the source that is got by right clicking on the page. I think this is what you are refering in your prevoius reply. Thanks, Sadeesh Vinoth T ___ Wtr-general mailing list Wtr-general@rubyforge.org

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

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.org

[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

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 --

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 this:

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

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

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 to

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

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] 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

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 to address is

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 now

[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

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

2007-05-08 Thread Jeff Fry
OK, I've learned (and documented on the wiki http://wiki.openqa.org/display/WTR/How+To+Update+RDOC+and+Submit+Patches) 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

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 -

[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 array

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 the

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 function