Re: [Wtr-general] same text fordifferent urls..

2007-01-23 Thread Naga Harish Kanegolla
Its giving the error Unable to locate object url and http://localhost:3000/data_entry/ajax_add_term/133?contract_id=140; - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6183messageID=17526#17526

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-23 Thread Željko Filipin
On 1/23/07, Jason He [EMAIL PROTECTED] wrote: Do these test cases are compatible both running in IE and firefox? How about it to the test cases with/without using test unit? Should each test cases need to be changed, or just change the browser name at the control list. I do not understand

Re: [Wtr-general] error happened when calling verify_match() ...

2007-01-23 Thread Željko Filipin
On 1/23/07, Jason He [EMAIL PROTECTED] wrote: I found that these methods are defined in watir/assertions.rb. Did I miss anything when use those methods? Try adding this at the beginning of the script. require 'watir/assertions' -- Zeljko Filipin zeljkofilipin.com

Re: [Wtr-general] Inserting date from a Date picker handled thru javascript

2007-01-23 Thread Željko Filipin
On 1/23/07, sarita [EMAIL PROTECTED] wrote: There is a read-only text box where date is inserted from a Date picker thru java script. How to automate this? What? Selecting date? How do you do it manually? -- Zeljko Filipin zeljkofilipin.com ___

Re: [Wtr-general] How to retrieve TH in table

2007-01-23 Thread Željko Filipin
Can you post table html? -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-23 Thread Angrez Singh
Hi Jason, Currently Watir and FireWatir are two different projects. You need to download two separate packages in case you want your test cases to run both on IE and Firefox. As FireWatir is written using Watir code base 1.4.1, so there would be very few changes that are required to your test

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] Inserting date from a Date picker handled thrujavascript

2007-01-23 Thread Attebery, Bill
I've had some success with these depending on the particular implementation the solution differs - I'd need more detail to try to help. When you say date picker, is it a calendar-like element. Does it open in another window, or get displayed through some ajax type method in the same window.

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] How to retrieve TH in table

2007-01-23 Thread Brad
Hi,br Thanks for the reply.  Below is the HTML code for the table.  BTW, is there a way to attach files to postings?brbr Thanks,br Brad/p p~~/p ptable cellpadding=10 width=100%br    trbr    tdbr    divbr table cellspacing=0 cellpadding=4 border=0

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] Inserting date from a Date picker handled thru javascript

2007-01-23 Thread sarita
An image link is there. when it's clicked, the Date picker appears where date, month, year are there. When u click on a date, that date is inserted in the text box immediately the Date picker disappears. - Posted via Jive

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