Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Željko Filipin
Chris, Thanks for your suggestions. Comments are inline. On 5/18/07, Chris McMahon [EMAIL PROTECTED] wrote: Clearly this is going to be iterative :) You don't drink the whole beer at once, right? You iterate until it is done. :) If it were me, I would have done require 'watir' include

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Walter Kruse
I vote for: require 'watir' include Watir (it's magic anyway, it won't hurt) ie = IE.new (let people see a blank browser) ie.goto(http://www.google.com ) Show people the steps and show them later how to abbreviate it with a small explanation of the Ruby idiom. It's also important to

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Željko Filipin
And we have the first user contribution! Christopher Rasch added anchors for installation instructions for platforms and browsers other than Windows/IE. It is something that I do not want there, but I guess it has to be somewhere. Christopher, you can put Certified Watir user guide contributor

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Željko Filipin
On 5/18/07, Željko Filipin [EMAIL PROTECTED] wrote: http://wiki.openqa.org/display/WTR/New+Watir+User+Guide+%28beta%29 I just can not look at ugly urls. I had to change it. http://wiki.openqa.org/display/WTR/User+Guide Zeljko ___ Wtr-general

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Željko Filipin
On 5/18/07, Željko Filipin [EMAIL PROTECTED] wrote: Christopher Rasch added anchors for installation instructions for platforms and browsers other than Windows/IE. Christopher, I have moved your contribution to http://wiki.openqa.org/display/WTR/Install+instructions and linked to it from

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

2007-05-18 Thread Grzesiek
Hi, For me it works this way (watir-1.5.1.1166) require 'watir/contrib/enabled_popup' ie.button(:value, /#{valid_text}/).click_no_wait#pressing button after which popup shows hwnd = ie.enabled_popup(15) # get a handle if one exists if (hwnd)

[Wtr-general] Watir wiki

2007-05-18 Thread Željko Filipin
Why is Project Home child of FAQ at Watir wiki? Is this a bug? Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Watir wiki

2007-05-18 Thread Željko Filipin
I have been browsing Watir Wiki and http://wiki.openqa.org/display/WTR/Watir+Committers has error message Error formatting macro: userlister: java.lang.NullPointerException. Zeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Željko Filipin
On 5/18/07, Chris McMahon [EMAIL PROTECTED] wrote: include Watir (it's magic anyway, it won't hurt) ie = IE.new (let people see a blank browser) I still do not think this easier to understand than ie = Watir::IE.new I do not know how to explain what it does in few words, except start IE,

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Željko Filipin
Chris, Walter, I separated steps for starting IE and navigating to Google, as you have suggested. That means that you have become contributor of Watir user guide. Now you can put Certified Watir user guide contributor! text at your site (with link to user guide, if possible). :) Zeljko

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Bret Pettichord
Walter Kruse wrote: require 'watir' include Watir (it's magic anyway, it won't hurt) ie = IE.new (let people see a blank browser) ie.goto(http://www.google.com http://www.google.com) Show people the steps and show them later how to abbreviate it with a small explanation of the Ruby idiom.

Re: [Wtr-general] Watir wiki

2007-05-18 Thread Bret Pettichord
Željko Filipin wrote: I have been browsing Watir Wiki and http://wiki.openqa.org/display/WTR/Watir+Committers has error message Error formatting macro: userlister: java.lang.NullPointerException. You can report this to Patrick if you like. This used to work. Bret

Re: [Wtr-general] :beforeText and :afterText

2007-05-18 Thread Bret Pettichord
Jeff Fry wrote: Cool. In that case, I will not only remove the example I added, I will also remove it anywhere it's listed as an allowed 'how' value. Here is the jira ticket. http://jira.openqa.org/browse/WTR-154 ___ Wtr-general mailing list

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Željko Filipin
On 5/18/07, Walter Kruse [EMAIL PROTECTED] wrote: I don't know what it does, except that you need it to load watir when using irb :-) I guess that you are referring to include Watir Actually, you do not have to type it when using Watir in irb (as my user guide shows). Zeljko

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Walter Kruse
I don't know what it does, except that you need it to load watir when using irb :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: 18 May 2007 03:14 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] New Watir User Guide

Re: [Wtr-general] Watir wiki

2007-05-18 Thread Bret Pettichord
Željko Filipin wrote: Why is Project Home child of FAQ at Watir wiki? Is this a bug? Probably. Feel free to fix it. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Chris McMahon
My experience is that the include Watir line is never understood and in fact people end up thinking that it is some kind of magic. That, to me, is a reason to avoid it. Eh. I had the opposite experience. It made me go read about what a Module is.

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Bret Pettichord
Chris McMahon wrote: Eh. I had the opposite experience. It made me go read about what a Module is. They why did you say it's magic anyway? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Chris McMahon
I meant to the new user, all of this looks like magic, so we might as well break down the Watir setup commands in as granular a fashion as possible On 5/18/07, Bret Pettichord [EMAIL PROTECTED] wrote: Chris McMahon wrote: Eh. I had the opposite experience. It made me go read about what a

Re: [Wtr-general] Error message with a dropdown

2007-05-18 Thread Ken
I downloaded Watir 1.5.1.1166 but I it still gives me one error: ItemShopping.rb:40: undefined method `Select' for #Watir::SelectList:0x2d64ca8 (NoMethodError) Again, here is the line it is referring to: ie.select_list(:name, frameMain:_ctl5:_ctl1:SearchType).Select(Supplier SKU) I noticed

Re: [Wtr-general] Error message with a dropdown

2007-05-18 Thread Bret Pettichord
Ken wrote: ItemShopping.rb:40: undefined method `Select' for #Watir::SelectList:0x2d64ca8 (NoMethodError) Again, here is the line it is referring to: ie.select_list(:name, frameMain:_ctl5:_ctl1:SearchType).Select(Supplier SKU) I noticed that when i use the Dev tool to ensure that the

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Željko Filipin
On 5/18/07, Chris McMahon [EMAIL PROTECTED] wrote: I meant to the new user, all of this looks like magic, so we might as well break down the Watir setup commands in as granular a fashion as possible I did not think to learn them Ruby. There are good books about it. When they see how easy it

Re: [Wtr-general] Error message with a dropdown

2007-05-18 Thread Ken
Yea, I realized that about 2 min after i posted it. I fixed the select command and what I have suspected all along is what I am seeing in the console. Its unable to locate the object. Since the Dev Tool cannot locate it either, this is not a surprise to me. What bugs me is I have no idea

[Wtr-general] How to include asserts from Watir::Simple module?

2007-05-18 Thread Jorj
Guys, can you help me? I can work with asserts from Test::Unit::Assertions. But how, for example, work with following assert: assert_image_with_src(link)? What I shell do? Help me! ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Chris McMahon
I just think ie = IE.new is nicer than ie = Watir::IE.new On 5/18/07, Željko Filipin [EMAIL PROTECTED] wrote: On 5/18/07, Chris McMahon [EMAIL PROTECTED] wrote: I meant to the new user, all of this looks like magic, so we might as well break down the Watir setup commands in as granular a

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Bret Pettichord
Chris McMahon wrote: I just think ie = IE.new is nicer than ie = Watir::IE.new If we are going to tell everyone to do 'include Watir', then we could make things easier by putting just this line of code in watir.rb and have it execute automatically when the 'require watir' happens. Or

Re: [Wtr-general] exists? method not working inside my assert - can

2007-05-18 Thread Lauren
Thanks Bret for writing in. I guess what I meant was when the statement inside the assert statement is true - assert(true) wouldn't the +value+ then be true...meaning not false...meaning +shouldn't+ fail or throw an exception ? If the object above exists and I wrap an assert around it -

Re: [Wtr-general] Error message with a dropdown

2007-05-18 Thread Bret Pettichord
Ken wrote: Here is the HTML for the object: TD SELECT class=StdDropDownList id=frameMain__ctl5__ctl1_SearchType name=frameMain:_ctl5:_ctl1:SearchType OPTION value=KeywordKeyword/OPTION OPTION value=SupplierSKUSupplier SKU/OPTION OPTION value=SupplierNameSupplier Name/OPTION OPTION

Re: [Wtr-general] exists? method not working inside my assert - can

2007-05-18 Thread Lauren
{quote:title=bret wrote:}{quote} Is it possible that you actually have more code than you are showing us? Nope. That's the whole thing. I did edit out the (http://) address for the forum's benefit. The actual code goes to the actual test site. Other than that, it's exactly the same.

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Christopher Rasch
Željko Filipin wrote: On 5/18/07, Željko Filipin [EMAIL PROTECTED] wrote: Christopher Rasch added anchors for installation instructions for platforms and browsers other than Windows/IE. Christopher, I have moved your contribution to

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Jeff Fry
On 5/18/07, Bret Pettichord [EMAIL PROTECTED] wrote: If we are going to tell everyone to do 'include Watir', then we could make things easier by putting just this line of code in watir.rb and have it execute automatically when the 'require watir' happens. Huh, could you do that? Here are

Re: [Wtr-general] exists? method not working inside my assert - can

2007-05-18 Thread Lauren
I figured it out: It was the: *$ie.close* Wrapping it in a method solved the problem. (See below for example) -- require 'watir' require 'test/unit' require 'test/unit/testcase' $ie = Watir::IE.start(http://cashwest.com/TestTheForm/Form/?reset=1test=1cf=8143forcePage=1;) $ie.bring_to_front

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Chris McMahon
From my perspective, I always start out by requiring and including watir, because I'd rather paste it into the top of a script once than have to type Watir:: several times below. I was planning to say that I'd love to have watir automatically included whenever I require it...but that might

[Wtr-general] How to select option on Menu button with multiple levels of the option list

2007-05-18 Thread Kui Zhang
Hello, I need to select an option in the Menu button with multiple levels of the option list. 1. Click on the menu button, a list of option is displayed 2. Move mouse over to the option 3, a list of option is displayed for option 3 3. Select the option 3.2 I tried with “span(:id,

[Wtr-general] ie.maximize does not always work

2007-05-18 Thread jim_matt
Interestingly I posted something earlier today and I do not see it in the mail. Anyway, to the topic at hand. I have tried to use ie.maximize and ie.minimize and they do not seem to work. Thinking that I might have a problem with my Watir installation, I went and ran the unit test with Watir

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Bret Pettichord
Chris McMahon wrote: From my perspective, I always start out by requiring and including watir, because I'd rather paste it into the top of a script once than have to type Watir:: several times below. I was planning to say that I'd love to have watir automatically included whenever I require

[Wtr-general] gem error installing 'builder'

2007-05-18 Thread jim_matt
I am resending this because I have not seen it show up in email distribution. I sent it earlier in the day than the one titled ie.maximize does not always work. I did more research after I sent the following message. Most of the solutions seemed to be for unix based systems. The best one I