[Wtr-general] Checking whether images inside a table are enabled or disabled

Željko Filipin zeljko.filipin at gmail.com
Mon Dec 4 05:15:40 EST 2006


In your case, disabled link is not a link with disabled property (<a href="
page.htm" disabled="disabled">link text</a>), it is a table cell (<td>cell
text</td>).

This will tell you that "Step 1. Details" is link, not in table cell.

irb(main):025:0> ie.link(:text, "Step 1. Details").exists?
=> true
irb(main):026:0> ie.cell(:text, "Step 1. Details").exists?
=> false

This will tell you that "Step 2. Inventors" is in table cell, not link.

irb(main):023:0> ie.link(:text, "Step 2. Inventors").exists?
=> false
irb(main):024:0> ie.cell(:text, "Step 2. Inventors").exists?
=> true

You should take a look at http://w3schools.com/html/default.asp, it is good
html tutorial.
-- 
Zeljko Filipin
zeljkofilipin.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20061204/8898624c/attachment.html 


More information about the Wtr-general mailing list