Sorry I put down the wrong error message. I'm actually getting /Library/Ruby/Gems/1.8/gems/safariwatir-0.4.0/lib/safariwatir/ scripter.rb:189:in `find_cell': uninitialized constant Watir::JavaScripter::MissingWayOfFindingObjectException (NameError)
My code: require 'rubygems' require 'safariwatir' @b = Watir::Safari.new @b.goto(my_webpage) cell = @b.table(:class, "user-table")[0][1] #getting row 0 cell 1 puts cell.text I followed all the instructions on this page https://github.com/zeljkofilipin/watirbook/blob/master/installation/mac.md All of my gems are up to date. Thanks for your help On Dec 8, 4:49 am, Željko Filipin <[email protected]> wrote: > On Wed, Dec 7, 2011 at 5:32 PM, Brad <[email protected]> wrote: > > It seems like this should be working > > cell = @b.table(:class, "user-table")[0][1] #getting row 0 cell 1 > > puts cell.text > > O have replied at SO: > > http://stackoverflow.com/questions/8419360/getting-cell-text-from-a-t... > > Željko > -- > watir.com/book - author -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
