[wtr-general] Re: Trying to test for table data

2010-09-16 Thread Watir General
Watir? 1.6.5 OS? OSX 10.6.4 Browser? Safari 5.0.2 Ruby? 1.8.7 On Sep 16, 4:32 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: What version of Watir are you using? OS? Browser? Ruby? Rubygems? Željko -- Before posting, please read http://watir.com/support. In short: search

[wtr-general] Re: Trying to test for table data

2010-09-16 Thread Watir General
^ Rubygems? 1.3.5 On Sep 16, 9:42 am, Watir General sean...@gmail.com wrote: Watir?  1.6.5 OS?  OSX 10.6.4 Browser? Safari 5.0.2 Ruby?  1.8.7 On Sep 16, 4:32 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: What version of Watir are you using? OS? Browser? Ruby? Rubygems?

Re: [wtr-general] Re: Trying to test for table data

2010-09-16 Thread Željko Filipin
On Thu, Sep 16, 2010 at 3:42 PM, Watir General sean...@gmail.com wrote: OS? OSX 10.6.4 Browser? Safari 5.0.2 Well if you have said earlier the problem would be solved long time ago. :) You are not using watir gem, but safariwatir gem. Looks like safariwatir does not have text method

[wtr-general] Re: Trying to test for table data

2010-09-16 Thread Chuck van der Linden
I'll wager the ID value 'Table_01' is not unique within the document, and some other element that is NOT a table is being returned when Watir goes out and tries to get 'the element with ID 'Table_01'. I've seen that kind of thing before where people have invalid HTML and ID values are not

[wtr-general] Re: Trying to test for table data

2010-09-16 Thread Chuck van der Linden
So in addition to the SafariWatir aspect of the issue. I just checked that page, and there are 4 tables all with the same ID value.. That's going to need to be fixed for you to use ID to reliably identify the proper table.Until that's changed, you'll need to use some other way to identify

[wtr-general] Re: Trying to test for table data

2010-09-15 Thread Watir General
I appreciate everyone's input! :) however I still get NoMethodErrors... I have a similar version of the script I'm trying to create here for just some random website with table data: require 'rubygems' require 'safariwatir' browser = Watir::Safari.new

Re: [wtr-general] Re: Trying to test for table data

2010-09-15 Thread Rajiv Nanduani
hi try this as Z suggested require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).text.include?(33 lbs) puts Data Verify passed else puts Data Verify FAILED. Ouch. end or require

[wtr-general] Re: Trying to test for table data

2010-09-15 Thread Watir General
For those I get: NoMethodError: undefined method ‘text’ for #Watir::Container::Table: 0x1010edec0 at top levelin Test for Cell Data Kayaks.rb at line 6 NoMethodError: undefined method ‘html’ for #Watir::Container::Table: 0x1010edec0 at top levelin Test for Cell Data Kayaks.rb at line 6

Re: [wtr-general] Re: Trying to test for table data

2010-09-15 Thread Rajiv Nanduani
hi do one thing just check this puts browser.table(:id, Table_01).exists? wt is output ? then check methods puts browser.table(:id, Table_01).methods.sort or check is table with in frame or not? if yes then puts browser.frame(:id,uridvalue).table(:id, Table_01).text On Wed, Sep 15, 2010

[wtr-general] Re: Trying to test for table data

2010-09-15 Thread Watir General
For this: require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) puts browser.table(:id, Table_01).methods.sort Output: == === =~ [] __id__ __send__ blank? class clone column_count display dup each enum_for eql?

[wtr-general] Re: Trying to test for table data

2010-09-15 Thread Watir General
For this: require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) puts browser.table(:id, Table_01).methods.sort Output: == === =~ [] __id__ __send__ blank? class clone column_count display dup each enum_for eql?