Hi,
I'm trying to write some tests that test various attribute keys in <DIV>
elements for particular values. The <DIV> in question has a "class" attribute
but even though I know the attribute is defined, invoking
attribute_value("class") always returns nil. I've tried this on other elements
aside from <DIV> and I've also seen similar issues. Is there something I'm
missing here?
Example (non <DIV> tag example actually an image):
type:
id:
name:
value:
disabled: false
src: http://blahmachine/blahapplication/blahicons/blah.gif
file date: 04/23/2007
file size: 1246
width: 17
height: 17
alt:
And from IRB if I type:
irb(main):135:0> puts fr.images[1].attribute_value("file date")
nil
=> nil
irb(main):136:0> puts fr.images[1].attribute_value("src")
http://blahmachine/blahapplication/blahicons/blah.gif
=> nil
irb(main):137:0> puts fr.images[1].attribute_value("file size")
nil
=> nil
irb(main):138:0> puts fr.images[1].attribute_value("width")
17
=> nil
irb(main):139:0> puts fr.images[1].attribute_value("height")
17
=> nil
So as you can see, "file date" and "file size" are nil but by my reckoning
shouldn't be.
I haven't tried this on 1158 yet, as there's something (frames related) that
caused me to revert to 1145 a few days ago so that I could get some tests going.
Thanks very much for shedding any light on this.
Regards,
Derek Wong.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general