Class: Celerity::TableCell
- Celerity::Element
- Celerity::TableCell
Included Modules
Celerity::Exception, Celerity::ClickableElement, Celerity::Container
Constants
- ATTRIBUTES
- BASE_ATTRIBUTES | CELLHALIGN_ATTRIBUTES | CELLVALIGN_ATTRIBUTES | [:abbr, :axis, :headers, :scope, :rowspan, :colspan]
- DEFAULT_HOW
- :id
- TAGS
- [ Identifier.new('td') ]
Constants Inherited from Celerity::Element
BASE_ATTRIBUTES, CELLHALIGN_ATTRIBUTES, CELLVALIGN_ATTRIBUTES, HTML_401_TRANSITIONAL, TO_S_SIZE
Constructor Summary
This class inherits a constructor from Celerity::Element.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Celerity::Element
Dynamically get element attributes.
235 236 237 238 239 240 241 242 243 244 245 |
# File 'lib/celerity/element.rb', line 235 def method_missing(meth, *args, &blk) assert_exists meth = selector_to_attribute(meth) if self.class::ATTRIBUTES.include?(meth) || (self.class == Element && @object.hasAttribute(meth.to_s)) return @object.getAttribute(meth.to_s) end Log.warn "Element\#method_missing calling super with #{meth.inspect}" super end |
Public Visibility
Public Instance Method Summary
#colspan |
---|
Public Instance Methods Inherited from Celerity::Element
assert_exists, attribute_string, attribute_value, exists?, fire_event, focus, locate, methods, object, parent, respond_to?, text, to_xml, visible?, xpath
Public Instance Methods Included from Celerity::ClickableElement
click, click_and_attach, double_click, download, right_click
Public Instance Methods Included from Celerity::Container
area, areas, button, buttons, cell, cells, check_box, checkboxes, container, contains_text, dd, dds, div, divs, dl, dls, dt, dts, em, ems, file_field, file_fields, form, forms, frame, frames, h1, h1s, h2, h2s, h3, h3s, h4, h4s, h5, h5s, h6, h6s, hidden, hiddens, image, images, inspect, label, labels, li, link, links, lis, map, maps, meta, metas, ol, ols, option, p, pre, pres, ps, radio, radios, row, rows, select_list, select_lists, span, spans, strong, strongs, table, tables, tbodies, tbody, text_field, text_fields, tfoot, tfoots, th, thead, theads, ths, ul, uls, update_page
Public Instance Method Details
colspan
16 17 18 19 20 |
# File 'lib/celerity/elements/table_cell.rb', line 16 def colspan assert_exists attribute_value = @object.getAttribute('colspan').to_i attribute_value > 0 ? attribute_value : 1 end |