Re: [Wtr-general] undefined method `[]' for

2007-01-24 Thread John Lolis
Another way to say this is: t.each {|x| puts x[0]} I'm enjoying this thread, heres another way. Sans 0! for element in (t.index(t.first)..t.index(t.last)) puts t[element].first end - Posted via Jive Forums

Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???

2007-01-24 Thread Paul Carvalho
On 23/01/07, Bret Pettichord wrote: This is largely because Watir is stupid in this area. We made a bad design choice with Watir 1.0. We'd now like to make Watir consistent and start with 0 everywhere (like everything else in Ruby) but this would raise compatibility issues. We welcome your

Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???

2007-01-24 Thread mi
Whoever you are, you are FREAKING FUNNY and made an excellent point here:-) So, Paul, how many children do you have? Well, my first boy would be 0, and my second son would be 1, so I guess I have 1 child. Even the Cat in the Hat's best friends are Thing 1 and Thing 2. I would have like

Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???

2007-01-24 Thread Bret Pettichord
Željko Filipin wrote: We'd now like to make Watir consistent and start with 0 everywhere (like everything else in Ruby) but this would raise compatibility issues. We welcome your thoughts in this area. I vote for start with 0 everywhere. Here is where you and everyone with an

Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???

2007-01-24 Thread Paul Rogers
, January 24, 2007 2:40 pm Subject: Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array??? Željko Filipin wrote: We'd now like to make Watir consistent and start with 0 everywhere (like everything else in Ruby) but this would raise

Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???

2007-01-24 Thread Bret Pettichord
Paul Rogers wrote: do we have the ability to vote 'Yes - with no backwards compatability' 'Yes - with backwards compatability' or 'No' or just yes or no I created two sub tickets. Vote for the one you want. Without backwards compatibility http://jira.openqa.org/browse/WTR-135 With

Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???

2007-01-23 Thread Chris McMahon
On 1/22/07, mi [EMAIL PROTECTED] wrote: t = [[a, b], [aa, bb]] 0.upto (t.length) { |x| puts t[x][0] } For some reason i'm getting the following error at the end of the loop, any idea WHY??? 0.upto (t.length-1) { |x| puts t[x][0] } should do it, but I think you figured that out.

Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???

2007-01-23 Thread Paul Carvalho
This is one of those times when I'll never understand why some things in programming start counting at 1 and some things start counting at 0. I, too, have several similar loops in some of my scripts, but I opted for the more readable format of saying: t.length.times { |x| puts t[x][0] } I

Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???

2007-01-23 Thread Bret Pettichord
Paul Carvalho wrote: This is one of those times when I'll never understand why some things in programming start counting at 1 and some things start counting at 0. This is largely because Watir is stupid in this area. We made a bad design choice with Watir 1.0. We'd now like to make Watir

Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???

2007-01-23 Thread Željko Filipin
On 1/24/07, Bret Pettichord [EMAIL PROTECTED] wrote: We'd now like to make Watir consistent and start with 0 everywhere (like everything else in Ruby) but this would raise compatibility issues. We welcome your thoughts in this area. I vote for start with 0 everywhere. -- Zeljko Filipin

Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???

2007-01-22 Thread mi
sorry, i keep forgetting that the array starts at 0:-( mi wrote: t = [[a, b], [aa, bb]] 0.upto (t.length) { |x| puts t[x][0] } For some reason i'm getting the following error at the end of the loop, any idea WHY??? a aa undefined method `[]' for nil:NilClass (NoMethodError) Thanks

[Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???

2007-01-22 Thread mi
t = [[a, b], [aa, bb]] 0.upto (t.length) { |x| puts t[x][0] } For some reason i'm getting the following error at the end of the loop, any idea WHY??? a aa undefined method `[]' for nil:NilClass (NoMethodError) Thanks in advance! ___ Wtr-general

Re: [Wtr-general] undefined method - clickWindowsButton

2006-08-08 Thread Charley Baker
Hi Chintakrindi, You should be able to do this by creating a new WinClicker object: wc = WinClicker.new wc.clickWindowsButton(Microsoft Internet Explorer, OK)-Charley On 8/8/06, Chintakrindi Meghanath [EMAIL PROTECTED] wrote: Hi AllI am using the clickWindowsButton to handle window pop ups in my

Re: [Wtr-general] Undefined Method Error

2006-03-24 Thread Zeljko Filipin
Add this at the beggining of your script:require test/unit/assertionsinclude Test::Unit::AssertionsOn 3/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I want to make assertions in test_myTestCase. ___ Wtr-general mailing list

Re: [Wtr-general] Undefined Method Error

2006-03-23 Thread David.J.Solis
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: Monday, March 20, 2006 9:09 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Undefined Method Error David, That error message indicates that $ie is nil, which is to say, it hasn't been initialized. It needs

[Wtr-general] undefined method `add_assertion' for nil:NilClass

2006-03-21 Thread Paatsch, Bernd
Title: undefined method `add_assertion' for nil:NilClass Hello watir team, I tried to use assertion's in my code and had absolutely now success today. I always get following error: TEST FAILED.undefined method `add_assertion' for nil:NilClass

Re: [Wtr-general] undefined method `add_assertion' for nil:NilClass

2006-03-21 Thread Bret Pettichord
On 3/21/06, Paatsch, Bernd [EMAIL PROTECTED] wrote: def .some code begin I suspect your problem is somewhere in here. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] undefined method `add_assertion' for nil:NilCla ss

2006-03-21 Thread Paatsch, Bernd
Title: RE: [Wtr-general] undefined method `add_assertion' for nil:NilClass Still the same after I changed the code to: def bpVerifyPopupWindowOpen( ieCont, verify) #how, what, framename, verify ) begin assert( ieCont.contains_text( verify) ) puts(TEST PASSED. Found test string

Re: [Wtr-general] undefined method `add_assertion' for nil:NilCla ss

2006-03-21 Thread Paatsch, Bernd
Title: RE: [Wtr-general] undefined method `add_assertion' for nil:NilCla ss Now I get: TEST FAILED.undefined method `include' for (WebAC::BPUtils):WebAC::BPUtils -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Bret Pettichord Sent: Tuesday, March

Re: [Wtr-general] undefined method `add_assertion' for nil:NilCla ss

2006-03-21 Thread Bret Pettichord
] On Behalf Of Bret Pettichord Sent: Tuesday, March 21, 2006 6:37 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] undefined method `add_assertion' for nil:NilCla ss That's what i needed to see. Make this change... On 3/21/06, Paatsch, Bernd [EMAIL PROTECTED] wrote: Still the same

[Wtr-general] Undefined Method Error

2006-03-20 Thread David Solis
Hello,I’m running into a problem I think is a probably a programming error in my part. Here is what I’m trying to accomplish: I have script with 2800 lines of code. My test cases in the script have many repeatable steps. For each test case, I’m basically

Re: [Wtr-general] Undefined Method Error

2006-03-20 Thread Bret Pettichord
David, That error message indicates that $ie is nil, which is to say, it hasn't been initialized. It needs to be assigned in the test_* method or the initialize method. (Or you need to get fancy, which is what we do in our unit tests.) You said that you are trying to structure your test scripts.

Re: [Wtr-general] undefined method `document' for nil:NilClass = Error

2005-10-26 Thread Jesús JCE . Collado Pérez
Hi folks, two weeks ago I send a bug to this mailing list about undefined method `document' for nil:NilClass = Error as you can see below, and no one could help me out. Ive found the solution. Its quite simple. You can just launch the sentence written in Watir under your WET

[Wtr-general] undefined method `document' for nil:NilClass = Error

2005-10-13 Thread Jesús JCE . Collado Pérez
Hi folks, I've found a weird error using WET and I'm afraid this may be a WET bug (I hope it's just my fault with code ;-) ) I'm trying to set either a text field and a checkbox that is found in a second level frame as following:

[Wtr-general] Undefined method getObject when attempting to do a set on a text field.

2005-08-29 Thread Stephanie Mayfield
I apologize in advance if this question has already been asked. I'm new to the list and the hunting and pecking in the archives didn't turn up an answer. (Aside: is there a search engine on the archives?) My problem is I'm getting an error when attempting to do a very simple assignment to a

Re: [Wtr-general] Undefined method getObject when attempting to do a set on a text field.

2005-08-29 Thread Raghu Venkataramana
Hi Stephanie, Are you using a released version of Watir 1.4 or something off the SCM repository? I was trying to locate the source of the problem from your stack trace: from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1766:in `assert_exists' from

Re: [Wtr-general] Undefined method getObject when attempting to do a set on a text field.

2005-08-29 Thread Stephanie Mayfield
Raghu, I installed 1.4 originally then I overwrote that installation via the gem. The gem is listed as 1.4.1. Thanks for looking into this! Steph On 8/29/05, Raghu Venkataramana [EMAIL PROTECTED] wrote: Hi Stephanie, Are you using a released version of Watir 1.4 or something off the SCM

Re: [Wtr-general] Undefined method getObject when attempting to do a set on a text field.

2005-08-29 Thread Raghu Venkataramana
Hi Stephanie, This is getting intersting. I just did a gem install of watir myself, but still couldn't find the method 'locate' as shown by: D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3205:in `locate': undefined However I got the latest version HEAD version from cvs repository and that

Re: [Wtr-general] Undefined method getObject when attempting to do a set on a text field.

2005-08-29 Thread Stephanie Mayfield
Raghu, My simple case works! But I had to replace all the .rb files from the gem, not just the watir one. I have no idea how I got the CVS version of Watir installed. Thanks so much for the help! Steph On 8/29/05, Raghu Venkataramana [EMAIL PROTECTED] wrote: Hi Stephanie, This is

Re: [Wtr-general] Undefined method getObject when attempting to do a set on a text field.

2005-08-29 Thread Bret Pettichord
I'm pretty sure than none of the Watir releases included the 'locate' method -- that is only in head. When we created the 1.4.1 release, we were careful to only include minor fixes and updates that we were pretty sure would not break WET (for 1.4). It may be worth noting that the regular