Re: [Wtr-general] new installers

2005-08-31 Thread Dave Burt
Bret Pettichord wrote: I'm thinking about using rake for the cli installer (rake install, with other targets for lib-install, etc). But that would mean that the users of the installer would need to have rake installed, which isn't part of the ruby distro. (although you can do a gem install rake

Re: [Wtr-general] new installers

2005-08-31 Thread Raghu Venkataramana
I have thoughts going both ways:- One part of me says that the installer itself. should be least-dependant of other packages. At the same time, I was looking at rake yesterday. Rake easily is to 'Ruby' what 'make' is to c/cpp or 'ant' is to Java(and a lot simpler). I was surprised 'Rake' was no

[Wtr-general] How to detect the number of certain word in a page

2005-08-31 Thread jim che
Hi all     I want to detect the number of certain word in a page .For example in a page there contains 20 'Hello' and I want to get the number of 'Hello'    How can I detect it which apis can be used?   Thank you Start your day with Yahoo! - make it your home page __

Re: [Wtr-general] new installers

2005-08-31 Thread Bret Pettichord
I'm thinking about using rake for the cli installer (rake install, with other targets for lib-install, etc). But that would mean that the users of the installer would need to have rake installed, which isn't part of the ruby distro. (although you can do a gem install rake.) Thoughts? Bret At

[Wtr-general] Re: Problem with link inside a DIV (or XML data)

2005-08-31 Thread Bret Pettichord
Jared, I checked in a fix for this bug. This was quite hairy. The problem occured because you have XML data with an id of 'tags'. This blocks our normal call to document.all.tags(TAGNAME). Thanks for the detailed report. Bret At 12:33 AM 8/9/2005, you wrote: Hi Bret, Paul sent me an e-mai

Re: [Wtr-general] new installers

2005-08-31 Thread Jeff Wood
Bret Pettichord wrote: Our new installers have been out for a bit. And we need to update our docs to reflect this. Should we tell people about the one-click installer, the gem or both? We have scattered reports of problems with the new one-click installer. We'd appreciate hearing mo

Re: [Wtr-general] new installers

2005-08-31 Thread Raghu Venkataramana
Gem - preferred installer CLI Installer - Optional components only. That is, the command line installer is over and above the Gem Also, it probably is a good idea to include docs / helper scripts to uninstall older versions of Watir. My few cents. Raghu Bret Pettichord wrote: Our new ins

Re: [Wtr-general] Works in Watir but NOT in WET...any ideas?

2005-08-31 Thread Sathya Shankar
Hi John, The same code is working in my machine. can you just tell me which version of the WET and Watir your using? Thanks Satti John Hobbs wrote: WATIR Code: ie = IE.attach(:url , /MY.jsp/ ) f = ie.frame(:name, "MYFrame") puts f.html WET Code: b = Browser("url:=/MY.jsp/"

[Wtr-general] new installers

2005-08-31 Thread Bret Pettichord
Our new installers have been out for a bit. And we need to update our docs to reflect this. Should we tell people about the one-click installer, the gem or both? We have scattered reports of problems with the new one-click installer. We'd appreciate hearing more about it? Is it working for you

Re: [Wtr-general] Re: Javascript dialogs - reading and closing

2005-08-31 Thread Dave Burt
Joe Yakich wrote: Thanks so much for posting this code, it looks like it will be exactly what we need to start handling our Javascript dialogs. You're welcome. I hope it works as well for you as it does for me. Did I mention it requires AutoIt? I have a question (and it's probably an obvious

Re: [Wtr-general] Unicode and Watir

2005-08-31 Thread Dave Burt
Jeff Wood suggested: http://www.dave.burt.id.au/ruby/iconv.zip Hope that helps. I haven't played with it yet, but I thought I'd pass the info along. It works for me. Documentation for iconv is available with the doco for the rest of the Ruby standard library, at http://www.ruby-doc.org/ In p

[Wtr-general] How to connect the database using the ruby or how to run the java program during ruby code

2005-08-31 Thread jim che
hi everybody,     I want to do some database operations during the execution of ruby code,but I don't know how to connect the database and how to operate the database by ruby language. I also wonder whether the java program can be called by ruby or not if can how should I do it. It is very nice if 

RE: [Wtr-general] Unicode and Watir

2005-08-31 Thread Peter Chau
I've had scripts running on a Shift-JIS website to read/write Japanese. I had more problems configuring Windows, DOS, and the text editor than I did with Ruby/Watir. >From what I remember, I had to install an East Asian Language Package in Control Panel, Regional and Language Options and then acti

Re: [Wtr-general] Unicode and Watir

2005-08-31 Thread Chris McMahon
On 8/31/05, Bret Pettichord <[EMAIL PROTECTED]> wrote: > I have a client who would like to use Watir to test a Unicode enabled > application, supporting double-byte languages such as Chinese and Japanese. > It looks to me like it doesn't work, but i haven't done Unicode with Ruby > before and thoug

Re: [Wtr-general] Unicode and Watir

2005-08-31 Thread Jeff Wood
I believe the normal method is to use iconv   Which, was recently sent to the ruby-talk mailing list where a user had packaged them up nice and easy for windows users.   Original Message was from Dave Burt [EMAIL PROTECTED] :    I posted this while the gateway was down a couple of days ago: > Hi,

[Wtr-general] Unicode and Watir

2005-08-31 Thread Bret Pettichord
I have a client who would like to use Watir to test a Unicode enabled application, supporting double-byte languages such as Chinese and Japanese. It looks to me like it doesn't work, but i haven't done Unicode with Ruby before and thought i would check to see if any one else had looked into this

[Wtr-general] Works in Watir but NOT in WET...any ideas?

2005-08-31 Thread John Hobbs
WATIR Code: ie = IE.attach(:url , /MY.jsp/ ) f = ie.frame(:name, "MYFrame") puts f.html WET Code: b = Browser("url:=/MY.jsp/") f = b.Frame("name:=MYFrame") puts f.html In both cases, I have already logged in to the system and navigated to MY.jsp. When I run the Wa

[Wtr-general] [ wtr-Bugs-2351 ] http://wtr.rubyforge.org/example_testcase.html errors

2005-08-31 Thread noreply
Bugs item #2351, was opened at 2005-08-31 15:32 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=487&aid=2351&group_id=104 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: http://wtr.rub

Re: [Wtr-general] Rubyforge stats: Watir #1

2005-08-31 Thread Bret Pettichord
Look at our rate of activity growth: http://rubyforge.org/project/stats/?group_id=104 At 12:51 PM 8/31/2005, Chris McMahon wrote: Hey... I just noticed that Watir is the most active project on rubyforge right now. And it's creeping up the list of top project downloads, too. -Chris _

RE: [Wtr-general] assert PASSED and FAILED

2005-08-31 Thread Bret Pettichord
At 09:58 AM 8/31/2005, Zeljko Filipin wrote: Will you describe installation of watir as gem in user guide? I think it is the most simple way. Good suggestion. I think we need to consolidate the way's people get the Basic information about Watir. Currently we have: - users guide - main web s

Re: [Wtr-general] Cygwin Ruby and Watir

2005-08-31 Thread Bret Pettichord
i think i've done this before. you'll have to manually install 'win32ole'. At 09:58 AM 8/31/2005, Sean Gallagher wrote: Is anyone running Watir automation from Cygwin? If so, any advice, issues, etc? Thanks. -sean ___ Wtr-general mailing list Wtr-gen

Re: begin/assert/rescue harrmful? Re: [Wtr-general] assert PASSED and FAILED

2005-08-31 Thread Bret Pettichord
>At 10:05 AM 8/31/2005, Ian Phillips wrote: >For one thing I cannot get it to work. Exactly. There is no reason to explain how to throw and catch exceptions in an introduction. Also, a common coding error (which also occurs several places in watir, sigh) is to catch more exceptions than you r

[Wtr-general] Re: [Wet-users] undefined local variable or method `object_exist_check'

2005-08-31 Thread Raghu Venkataramana
Hi Ian, Stephanie, I have fixed this problem and posted a new zip archive in the downloads area. If you navigate to the downloads page from wet.qantom.org, you can get the new version. Make sure that you are downloading 0.5.2. Thanks for reporting this. Raghu Ian Phillips wrote: Hi. I am ex

[Wtr-general] Re: [Wet-users] undefined local variable or method `object_exist_check'

2005-08-31 Thread Raghu Venkataramana
Hi Ian, Stephanie, We fixed this problem and posted a new zip archive in the downloads area. If you navigate to the downloads page from wet.qantom.org, you can get the new version. Make sure that you are downloading 0.5.2. Thanks for reporting this. Raghu Ian Phillips wrote: Hi. I am execut

[Wtr-general] Rubyforge stats: Watir #1

2005-08-31 Thread Chris McMahon
Hey... I just noticed that Watir is the most active project on rubyforge right now. And it's creeping up the list of top project downloads, too. -Chris ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-g

Re: [Wtr-general] Where is object_exist_check?

2005-08-31 Thread Stephanie Mayfield
Oh good.  Glad to see you are on top of the problem! Steph On 8/31/05, Raghu Venkataramana <[EMAIL PROTECTED]> wrote: Hi Stephanie,Ian Phillips found that there was a problem with the archive in thedownloads.I have just fixed it and we are runinng some tests on it. If all goeswell, I'llbe putting

[Wtr-general] Re: Javascript dialogs - reading and closing

2005-08-31 Thread Joe Yakich
Dave,   Thanks so much for posting this code, it looks like it will be exactly what we need to start handling our _javascript_ dialogs.   I have a question (and it’s probably an obvious one that I should know, so please excuse my ignorance).   Does one actually modify Test::Unit::Asse

Re: [Wtr-general] Where is object_exist_check?

2005-08-31 Thread Raghu Venkataramana
Hi Stephanie, Ian Phillips found that there was a problem with the archive in the downloads. I have just fixed it and we are runinng some tests on it. If all goes well, I'll be putting it up there in around an hours time. I'll keep you posted. Thanks Raghu Stephanie Mayfield wrote: I have a

[Wtr-general] Where is object_exist_check?

2005-08-31 Thread Stephanie Mayfield
I have a very simple script that attempts to log into a website.   I'm trying to use WET as well as I have windows popups to test later on.  When attempting to press the login button I'm getting this error:  1) Error: test_remove_category_missing_name(TC_sample_tests): NameError: undefined loca

Re: [Wtr-general] Running tests in source code order

2005-08-31 Thread Paul Rogers
unfortunately, I dont think it does. The public_instance_methods method, seems to return methods in a random order (im sure its not random, it just looks random) class Tester def test_020 puts "020" end def test_030 puts "030" end def test_100 puts

[Wtr-general] breakpoint and scite

2005-08-31 Thread Bret Pettichord
I often teach ruby to people and usually use scite to do this. It's quick and easy and F5 is very convenient. I also use scite when i am working on lab machines. (Otherwise I use eclipse when i can.) When i use breakpoint with a script that i am running from scite using F5, the irb session sho

Re: begin/assert/rescue harrmful? Re: [Wtr-general] assert PASSED and FAILED

2005-08-31 Thread Ian Phillips
For one thing I cannot get it to work. IanOn 8/31/05, Chris McMahon <[EMAIL PROTECTED]> wrote: > 3. "begin/assert/rescue" is really a bad idea and we will stop suggesting it.I *like* begin/assert/rescue.  It's my friend.  Why is it a bad idea?-Chris___ W

begin/assert/rescue harrmful? Re: [Wtr-general] assert PASSED and FAILED

2005-08-31 Thread Chris McMahon
> 3. "begin/assert/rescue" is really a bad idea and we will stop suggesting it. I *like* begin/assert/rescue. It's my friend. Why is it a bad idea? -Chris ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/

[Wtr-general] Cygwin Ruby and Watir

2005-08-31 Thread Sean Gallagher
Is anyone running Watir automation from Cygwin? If so, any advice, issues, etc? Thanks. -sean ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

RE: [Wtr-general] assert PASSED and FAILED

2005-08-31 Thread Zeljko Filipin
Will you describe installation of watir as gem in user guide? I think it is the most simple way. Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: Wednesday, August 31, 2005 3:11 PM To: wtr-general@rubyforge.org Subject: Re: [W

Re: [Wtr-general] assert PASSED and FAILED

2005-08-31 Thread Bret Pettichord
I have removed the incorrect and confusing examples from the user guide. Thanks for pointing out the errors: 1. "if assert..." never works. Assert does not return a value. 2. "assert_false" is actually not part of test::unit. Use "assert !" instead. 3. "begin/assert/rescue" is really a bad idea

[Wtr-general] WARN -- : runtime error in wait busy

2005-08-31 Thread Mike Harris
When I run my script I get this error returned: .Test 7...Creating a workflow W, [31-Aug-2005 14:02:56#2956] WARN -- : runtime error in wait busy OLE error code:80004005 in HRESULT error code:0x80020009 Exception occurred. How can I find the cause of this runtime error? The

RE: [Wtr-general] Connecting to a second window

2005-08-31 Thread Mike Harris
The second window is not invoked. The Developer tells me that the link to has been created with java script. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 31 August 2005 03:09 To: wtr-general@rubyforge.org Subject: RE: [Wtr-gener

RE: [Wtr-general] select box contains?

2005-08-31 Thread Jan.Montano
Thanks. I guess I just have to traverse the contents. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Zeljko Filipin Sent: Wednesday, August 31, 2005 4:32 PM To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] select box contains? ie.selectBox(:index,1

RE: [Wtr-general] select box contains?

2005-08-31 Thread Zeljko Filipin
ie.selectBox(:index,1).getAllContents will return text of all options in select box. I guess it depends how you installed watir (installer, gem), but there is documentation start > All Programs > Watir > API Reference. Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PRO

[Wtr-general] Javascript dialogs - reading and closing

2005-08-31 Thread Dave Burt
Hi List, I've been using the following script to read and close javascript alert() and confirm() dialogs in Watir. It could fairly easily be extended to deal with file choosers, as I saw someone asking for earlier. To be clear, it will wait a dialog to be shown and close it using the given bu

[Wtr-general] select box contains?

2005-08-31 Thread Jan.Montano
What's the best way to know if a selectbox contains a particular text? P.S. I hope in the near future, there's a good documentation for watir libraries. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-g

RE: [Wtr-general] Connecting to a second window

2005-08-31 Thread Mike Harris
Thanks for this. It is a pop up that is invoked using java script. I have been looking for AutoIt in the Watir API, but can not find it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: 31 August 2005 05:31 To: wtr-general@rubyforge.o

Re: [Wtr-general] assert PASSED and FAILED

2005-08-31 Thread Ian Phillips
Hi. I have followed the documentation at http://wtr.rubyforge.org/watir_user_guide.html and I can not see why I shouldn't use assert??  Are there some rules to using assert?  The thing I don't understand is that very similar code in test_logger1.rb works but mine does not.  I have not worked out