Class: Watir::Container::TableCell

Inherits:
ContentElement show all
Defined in:
lib/safariwatir.rb

Constant Summary

Constants included from Watir::Container

DEFAULT_TYPING_LAG

Constants inherited from HtmlElement

HtmlElement::OPERATIONS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ContentElement

#html, #speak, #text

Methods included from Watir::Container

#button, #cell, #checkbox, #contains_text, #div, #form, #frame, #image, #label, #link, #p, #password, #radio, #select_list, #set_fast_speed, #set_slow_speed, #span, #speed=, #table, #text_field

Methods included from Clickable

#click

Methods inherited from HtmlElement

#exists?, #name, #speak

Constructor Details

#initialize(scripter, how, what, row = nil) ⇒ TableCell

Returns a new instance of TableCell.



362
363
364
365
366
367
368
369
# File 'lib/safariwatir.rb', line 362

def initialize(scripter, how, what, row = nil)
  @scripter = scripter.for_table(self)
  set_slow_speed # TODO: Need to inherit this somehow

  @how = how
  @what = what
  @row = row
end

Instance Attribute Details

#howObject (readonly)

Returns the value of attribute how.



371
372
373
# File 'lib/safariwatir.rb', line 371

def how
  @how
end

#rowObject (readonly)

Returns the value of attribute row.



371
372
373
# File 'lib/safariwatir.rb', line 371

def row
  @row
end

#whatObject (readonly)

Returns the value of attribute what.



371
372
373
# File 'lib/safariwatir.rb', line 371

def what
  @what
end

Instance Method Details

#operate(&block) ⇒ Object



373
374
375
# File 'lib/safariwatir.rb', line 373

def operate(&block)
  @scripter.operate_by_table_cell(self, &block)
end

#tagObject



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

def tag; "TD"; end