[wtr-general] Re: (Fire)Watir Code Generator?

2009-08-04 Thread sHiVa
Hi Mojares, Recorders will help at the early stages of learning. Those are not meant for complex tasks. It can record events performed on web objects. But coming to a alert popup, It is a window based component. We must call the win32api to handle such components. Better not to relay on

[wtr-general] Re: JSSH problem on Windows server 2003

2009-08-04 Thread Angrez Singh
Can you check event logs or error console of Firefox? On Tue, Aug 4, 2009 at 10:51 AM, pallavi shashidhar pals.sha...@gmail.comwrote: Hi, I have logged in as Administrator and then clicked the link for for windows and firefox 3.0 on this page:

[wtr-general] How To “remote Control” Your IPod With Your Cell / Mobile Phone

2009-08-04 Thread saiskai Nomsaiska
How To “remote Control” Your IPod With Your Cell / Mobile Phone http://bit.ly/pRfHk http://bit.ly/pRfHk http://bit.ly/pRfHk How To “remote Control” Your IPod With Your Cell / Mobile Phone --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Re: Getting an error saying undefined method `length' when trying to use date in a text field.

2009-08-04 Thread Suhaim Abdussamad
On 8/3/09, Dylan mej...@gmail.com wrote: Date.today() returns a Date object, while .set requires a string. Somewhere in the set function it is trying to get the length of the string it was passed, which is why you're getting that error. You might try something like:

[wtr-general] Re: Error while retrieving an integer from spreadsheet

2009-08-04 Thread balbao
Darryl - when I use $regno = oo.cell(row,6).to_i, I get the same error. The irony is this works fine in IRB, but executed as a script it returns zero. Dylan - to_i.to_s did the magic ! Thanks a bunch - Balbao require watir require rubygems require roo ie = Watir::IE.new oo =

[wtr-general] Re: Error while retrieving an integer from spreadsheet

2009-08-04 Thread balbao
Tried $regno = oo.cell(row,6).to_i in the script and got the same error. However, this works fine with irb. Do i need to include some more library files to get this one working... On Aug 4, 5:44 am, Darryl (gem dandy) Brown d-l- br...@roadrunner.com wrote: Hello  Balbao, $regno =

[wtr-general] Re: Getting an error saying undefined method `length' when trying to use date in a text field.

2009-08-04 Thread moorecats
Thank You That makes sense. This worked for me also. - ie.text_field(:name, q).set today.to_s On Aug 3, 7:50 pm, Dylan mej...@gmail.com wrote: Date.today() returns a Date object, while .set requires a string. Somewhere in the set function it is trying to get the length of the string it

[wtr-general] Re: Watir Install/Basic Error, It doesn't launch browser

2009-08-04 Thread DF
I found the answer. With the new version I need to use ie=Watir::IE.new not include Watir. On Aug 3, 7:04 pm, Dylan mej...@gmail.com wrote: I would try uninstall/reinstalling and running gem update --system beforehand so you have the latest version of rubygems before you try installing

[wtr-general] Re: Error while retrieving an integer from spreadsheet

2009-08-04 Thread balbao
Dylan, This returns 0 regardless of the value in the spreadsheet. Tried this with the following snippet. require rubygems require Watir require roo require win32ole require Win32API def getkeyword(filename, sheetname) oo = Openoffice.new(filename) oo.default_sheet = sheetname header_row =

[wtr-general] Re: JSSH problem on Windows server 2003

2009-08-04 Thread Angrez Singh
thats the standard error .. can you try removing the extension? then remove the extension folder from your profile folder: C:/Documents%20and%20Settings/Administrator/Application%20Data/Mozilla/Firefox/Profiles/b9gcfasq.default/ Restart the machine, install XPI again. Thanks, Angrez On Tue, Aug

[wtr-general] Re: JSSH problem on Windows server 2003

2009-08-04 Thread pallavi shashidhar
Hi Angrez, Yes, I deleted the extension folder, uninstalled jssh Restarted the machine and reinstalled jssh and XPI as administrator. It is working fine now. Thanx for all your replies. Regards, Pallavi On Tue, Aug 4, 2009 at 3:21 PM, Angrez Singh ang...@gmail.com wrote: thats the standard

[wtr-general] clicking ok on popups

2009-08-04 Thread rs77
I am new to Watir 1. I have an HTML page with fields, 2. When I click Proceed button 3. I get 2 consecutive alert popups with OK button 4. after clicking 'OK' on both of them another IE browser window pops up 5. with another alert popup, which I click OK 6. Click Save button on the newly opened

[wtr-general] concurrent problems in pop ups

2009-08-04 Thread Vale
Hello everyone Im new at ruby/watir and im trying to do a performance test. To do this I have to run a lot of script concurrently. My problem is: when I do ie.link(:url,the url).click this opens a pop up, but how do I now which pop up has open this instance? if I do iePopUp =

[wtr-general] Re: clicking ok on popups

2009-08-04 Thread Smruti Ranjan Kar
If I'm getting you, is this the requirement ? - You click 'Proceed', Popup A appears - Click 'OK', Popup B appears - Click 'OK', New browser opens with a popup - Click 'OK' - Click 'Save' - Click 'OK' on the confirmation And what are the type of pop-ups at different steps ? i.e: modal, JS, new

[wtr-general] Re: concurrent problems in pop ups

2009-08-04 Thread Smruti Ranjan Kar
Either use require 'watir/contrib/enabled_popup' and hwnd1 = browser.enabled_popup(5) Or use AutoITand WinGetHandle method On Tue, Aug 4, 2009 at 7:55 PM, Vale vsant...@gmail.com wrote: Hello everyone Im new at ruby/watir and im trying to do a performance test. To do this I have to run a

[wtr-general] Re: concurrent problems in pop ups

2009-08-04 Thread Valeria
Thanks a lot Smruti but I try use: require 'watir/contrib/enabled_popup' hwnd1 = $ie.enabled_popup(10) $ie.link(:url, the url).click and I get this error message: Timed out after 10.5 seconds what can i do? thks valeria pd.: same error if I put: $ie.link(:url, the

[wtr-general] Re: concurrent problems in pop ups

2009-08-04 Thread Valeria
May be its important to say that the windows are not modal 2009/8/4 Valeria vsant...@gmail.com Thanks a lot Smruti but I try use: require 'watir/contrib/enabled_popup' hwnd1 = $ie.enabled_popup(10) $ie.link(:url, the url).click and I get this error message:

[wtr-general] Re: Not able to select the Printer Dialog Box contents !

2009-08-04 Thread Chuck van der Linden
That dialog box is effectively a 'popup' you can find a bunch of stuff via the watir FAQ on dealing with popups This message from about 6 months ago might help also http://groups.google.com/group/watir-general/browse_thread/thread/0f87efefd3b4a8d7?hl=en# On Aug 2, 9:43 am, CHANDRA SHEKAR

[wtr-general] Re: concurrent problems in pop ups

2009-08-04 Thread Smruti Ranjan Kar
Try click_no_wait instead of click. On Tue, Aug 4, 2009 at 9:17 PM, Valeria vsant...@gmail.com wrote: May be its important to say that the windows are not modal 2009/8/4 Valeria vsant...@gmail.com Thanks a lot Smruti but I try use: require 'watir/contrib/enabled_popup'

[wtr-general] Re: concurrent problems in pop ups

2009-08-04 Thread Valeria
I tried it, but I got same result :( I dont know what else can i do... 2009/8/4 Smruti Ranjan Kar smrutiranjan@gmail.com Try click_no_wait instead of click. On Tue, Aug 4, 2009 at 9:17 PM, Valeria vsant...@gmail.com wrote: May be its important to say that the windows are not modal

[wtr-general] Re: JSSH problem on Windows server 2003

2009-08-04 Thread Angrez Singh
Glad to help you. Thanks, Angrez On Tue, Aug 4, 2009 at 4:29 PM, pallavi shashidhar pals.sha...@gmail.comwrote: Hi Angrez, Yes, I deleted the extension folder, uninstalled jssh Restarted the machine and reinstalled jssh and XPI as administrator. It is working fine now. Thanx for all your

[wtr-general] Re: concurrent problems in pop ups

2009-08-04 Thread Smruti Ranjan Kar
Can you elaborate the problem a little more, may be some screenshots, so that I can have an idea about what you are trying to do. On Tue, Aug 4, 2009 at 11:05 PM, Valeria vsant...@gmail.com wrote: I tried it, but I got same result :( I dont know what else can i do... 2009/8/4 Smruti Ranjan

[wtr-general] Re: concurrent problems in pop ups

2009-08-04 Thread Valeria
Thanks for your interest ! The problem is: I run 3 or more rubys concurrently from an archive .bat that run the rubys in the ruby code I have: $ie.table(:id, 'W0003TABLE2').link(:text,Ver el reclamo completo).click; this opens a pop up but all the ruby process that are running opens windows with

[wtr-general] graph/charts

2009-08-04 Thread anna barbara ostrowska
Hi there, Can you recommend me any tool/ruby library that allows me convert data (metrics) to graph/charts ect? Thanks in advance. Anna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to

[wtr-general] Re: graph/charts

2009-08-04 Thread Dylan
I would ask generic ruby questions here: http://groups.google.com/group/comp.lang.ruby/topics -Dylan On Aug 4, 12:38 pm, anna barbara ostrowska ab.ostrow...@gmail.com wrote: Hi there, Can you recommend me any tool/ruby library that allows me convert data (metrics) to graph/charts ect?

[wtr-general] Re: ocra couldn't work in loop for watir

2009-08-04 Thread Alex.Dev
Thanks for your solution. now it works well. unless defined?(Ocra) .code end if not defined?(Ocra) code end On Aug 4, 5:35 pm, Jarmo Pertman jarm...@gmail.com wrote: You can do it like this. Just make sure that all require statements are outside of that unless block: require