Method: RWebSpec::Driver#cell_with_id
- Defined in:
- lib/rwebspec/driver.rb
#cell_with_id(cell_id, options = {}) ⇒ Object Also known as: table_data_with_id
return the text of specific (identified by attribute “id”) ta tag For page containing
<td id="preferred_recorder">iTest2/Watir Recorder</span>
td_with_id(“preferred_recorder”) # => iTest2/Watir Recorder
555 556 557 558 559 560 561 |
# File 'lib/rwebspec/driver.rb', line 555 def cell_with_id(cell_id, = {}) if && [:index] then cell(:id => cell_id.to_s, :index => [:index]).text else cell(:id, cell_id).text end end |