[wtr-general] Re: Mac FireWatir PopUp

2009-09-29 Thread Angrez Singh
We need to figure out a way on how to handle download dialogs in Firewatir to make in platform independent. As of now we are using AutoIT to do the same in Firewatir on windows. I'll be working on it. Thanks, Angrez On Mon, Sep 28, 2009 at 11:38 PM, Brad bradask...@gmail.com wrote: Surly I'm

[wtr-general] Re: Elements supported by Watir

2009-09-29 Thread Željko Filipin
On Mon, Sep 28, 2009 at 6:08 PM, Bret Pettichord bpettich...@gmail.com wrote: def is_element_subclass? klass while klass = klass.superclass return true if klass == Watir::Element end end ObjectSpace.each_object(Class){|c| puts c if is_element_subclass?(c)} I executed this code on Mac

[wtr-general] Right Click and Element Script

2009-09-29 Thread Pallavi Sharma
Hi All I am trying to work on the script: require 'watir' module Watir class Element def top_edge assert_exists assert_enabled ole_object.getBoundingClientRect.top.to_i end def top_edge_absolute top_edge + container.document.parentWindow.screenTop.to_i

[wtr-general] Re: Right Click and Element Script

2009-09-29 Thread Raveendran P
Hi pallavi, Pls add and try again May be try this all possibilities require 'rubygems' require 'watir' require 'pp' require 'win32ole' require win32ole_pp require 'watir/WindowHelper' Awaiting your reply... Thanks On Tue, Sep 29, 2009 at 3:17 PM, Pallavi Sharma write2pall...@gmail.comwrote:

[wtr-general] Cannot use the index in SafariWatir

2009-09-29 Thread yuping zhong
Dear All, I use the watir to test in Safari. When I use the index method to the button and radio,it doesn't work. Here is the error: irb(main):049:0 sf.button(:value=Enter,index=1).click NameError: undefined local variable or method `index' for main:Object from (irb):49 from :0

[wtr-general] Re: Right Click and Element Script

2009-09-29 Thread Pallavi Sharma
Hey Ravee Thanks a ton, maybe some one can update the stuff there at tha link, it will surely help. by the way: win32ole_pp throws an error so i removed it. One more thing i will be using this on a div containg table, and its table cell will it work?? Thanks Pallavi On Tue, Sep 29, 2009 at

[wtr-general] Re: Right Click and Element Script

2009-09-29 Thread Raveendran P
Hi pallavi, Yes. Def it will work.. If not then pls paste ur html code here. Thanks P.Raveendran On Tue, Sep 29, 2009 at 4:10 PM, Pallavi Sharma write2pall...@gmail.comwrote: Hey Ravee Thanks a ton, maybe some one can update the stuff there at tha link, it will surely help. by the way:

[wtr-general] Cinfiguring Fitnesse with ruby slim

2009-09-29 Thread Rinku Garg
Hi Everybody, I want to configure Rubyslim with fitnesse. Can anybody tell me the steps how to do that. I simple small example will be really appreciated. Regards Rinku Garg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[wtr-general] Re: Cinfiguring Fitnesse with ruby slim

2009-09-29 Thread Željko Filipin
On Tue, Sep 29, 2009 at 1:20 PM, Rinku Garg rinkugar...@gmail.com wrote: I want to configure Rubyslim with fitnesse. You are probably at the wrong place. This is Watir group. Try posting this to Rubyslim and/or fitnesse groups. Željko -- http://watirpodcast.com/

[wtr-general] Re: Right Click and Element Script

2009-09-29 Thread Raveendran P
Hi Pallavi, May be the focus missing here. So please adjust the changes here and try it. (its not a exact solution but it may be help some times) # Windows API constants INPUT_MOUSE = 0 MOUSEEVENTF_LEFTDOWN = 0x0002 MOUSEEVENTF_LEFTUP = 0x0004 MOUSEEVENTF_RIGHTDOWN = 0x0008

[wtr-general] Load Testing with WATIR

2009-09-29 Thread venky
Hi. It's nice to come across to see your thoughts on WATIR (GOOGLE GROUPS). Actually I need some help at this piont, could you please I am working on a java application testing manually till now but our client insisted us to test the load/performance of the application using WATIR tool

[wtr-general] Load Testing with WATIR configuration settings - USERS/ Concurrency/ Rampup

2009-09-29 Thread venky
Hi, Could anybody help me on how/ where to configure the users/ load/ other settings in WATIR for load/stress/performance testing. Thanks, venky --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group.

[wtr-general] Re: Load Testing with WATIR

2009-09-29 Thread Željko Filipin
On Tue, Sep 29, 2009 at 3:50 PM, venky greet.ven...@gmail.com wrote: test the load/performance of the application using WATIR tool We have an example on the wiki: http://wiki.openqa.org/display/WTR/Re-Usable+Load+Testing+Example Željko -- http://watirpodcast.com/

[wtr-general] Re: adding utf-8 character to text fields

2009-09-29 Thread Loft_Tester
Ok, I got this to work. Here is the code: require 'win32ole' require 'watir' WIN32OLE.codepage = WIN32OLE::CP_UTF8 #UTF-8 ### $Browser = nil ENV[watir_browser]=ie $Browser = Watir::Browser.new $Browser.goto www.google.com

[wtr-general] Can you determine if a link will pop up a dialog?

2009-09-29 Thread Brad
Hey, Running through a web site and clicking on links I have put in things like this: code snippet when .zip link.click_no_wait is_popup(@dialog_text_1) # text on dialog box when .pdf link.click_no_wait is_popup(@dialog_text_1) # text on dialog box /code snippet So I can handle the pop up

[wtr-general] Re: Sai

2009-09-29 Thread Lisa Crispin
That is a good idea, where can we update the doc? Is it all in github also? -- Lisa On Mon, Sep 28, 2009 at 10:22 PM, Paul Rogers paul.rog...@shaw.ca wrote: You're a good writer, documentation is always in need of improvemnet. Paul On Mon, Sep 28, 2009 at 6:14 PM, Lisa Crispin

[wtr-general] Re: Sai

2009-09-29 Thread Charley Baker
Hey Lisa, This lists where to find our documentation: http://watir.com/documentation/ You're welcome to join in the fray. :) - Charley On Tue, Sep 29, 2009 at 10:51 AM, Lisa Crispin lisa.cris...@gmail.comwrote: That is a good idea, where can we update the doc? Is it all in github also? --

[wtr-general] Trying to get xpath to recognize long string with possible special characters... not working

2009-09-29 Thread bert
Thanks in advance! I am trying to click on the following element using xpath by referencing its unique onclick property: a onclick=dijit.byId('queryDetail').href='DISPLAY-QUERY-SUMMARY.do? taskId=6type=details'; dijit.byId('queryDetail').show(); return false; href=details/a I have tried

[wtr-general] Re: Cannot use the index in SafariWatir

2009-09-29 Thread yuping zhong
Željko ,Good catch! But I type sf.button(:value=Enter,:index=1).click,get the following: irb(main):011:0 sf.button(:value=Enter,:index=1).click ArgumentError: wrong number of arguments (1 for 2) from (irb):11:in `button' from (irb):11 from :0 BWT, if I don't use the

[wtr-general] Re: Right Click and Element Script

2009-09-29 Thread Alan Baird
Pallavi - I've tested the code at http://wiki.openqa.org/display/WTR/Right+Click+an+Element a lot and I'm pretty sure it works. If you run the code that's in the box it should work. I would try that first. You should not have to do any additional requires to make it work (since win32api is

[wtr-general] Re: Right Click and Element Script

2009-09-29 Thread Pallavi Sharma
Hi Alan Thanks for the reply, i saw your post but until i made these require 'rubygems' require 'watir' require 'pp' require 'win32ole' require win32ole_pp require 'watir/WindowHelper' require statements i was getting the Name Error, which was over after i included them all. I don't know the

[wtr-general] Re: Load Testing with WATIR configuration settings - USERS/ Concurrency/ Rampup

2009-09-29 Thread Raveendran P
Hi, I hope you will get the sample code from here -- http://wiki.openqa.org/display/WTR/Re-Usable+Load+Testing+Example Do you need to run this sample code in your local machine ? it means do u need help to install the dependencies ? Thanks On Tue, Sep 29, 2009 at 7:23 PM, venky

[wtr-general] Re: Issue with a Calendar in a Div /Table Object

2009-09-29 Thread srikanth gudikadi
Hi pallavi, This is srikanth from ACTi, pune, try this one to click on calendar event date. browser.div(:class, calendar).cell(:text,26).fire_event(ondblclick) and also try the below to fetching data. days = browser.table(:class, paramlist admintable).row(:text, Display Events the of the

[wtr-general] Re: Not able to click on a TD through Watir, though manually it is possible

2009-09-29 Thread srikanth gudikadi
Hi Isabel, try this one to click on calendar to select date. browser.div(:class, calendar).cell(:text,26).fire_event(ondblclick) thnx srik On Fri, Sep 25, 2009 at 12:45 PM, Isabel joybe...@gmail.com wrote: I have a calendar using which I can set the date in the given text area. For this