Class: Watir::Container::TableRow

Inherits:
Object
  • Object
show all
Defined in:
lib/safariwatir.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scripter, how, what, table = nil) ⇒ TableRow

Returns a new instance of TableRow.



337
338
339
340
341
342
# File 'lib/safariwatir.rb', line 337

def initialize(scripter, how, what, table = nil)
  @scripter = scripter
  @how = how
  @what = what
  @table = table
end

Instance Attribute Details

#howObject (readonly)

Returns the value of attribute how.



344
345
346
# File 'lib/safariwatir.rb', line 344

def how
  @how
end

#tableObject (readonly)

Returns the value of attribute table.



344
345
346
# File 'lib/safariwatir.rb', line 344

def table
  @table
end

#whatObject (readonly)

Returns the value of attribute what.



344
345
346
# File 'lib/safariwatir.rb', line 344

def what
  @what
end

Instance Method Details

#[](index) ⇒ Object



350
351
352
# File 'lib/safariwatir.rb', line 350

def [](index)
  TableCell.new(@scripter, :index, index, self)
end

#column_countObject



354
355
356
# File 'lib/safariwatir.rb', line 354

def column_count
  # TODO
end

#eachObject



346
347
348
# File 'lib/safariwatir.rb', line 346

def each
  # TODO
end

#tagObject



358
# File 'lib/safariwatir.rb', line 358

def tag; "TR"; end