Hello!
I have html-code like the following:
=== snip ===
tda href=http://www.happy.com/test.hmtl;text/a/td
=== snap ===
Now my question: I want to get the value of the href-attribute within
this table-cell for further using. Any ideas/ suggestions how to get this?
Thanks in advance,
Christian
ie.link(:text, text).hrefZeljko-- http://zeljkofilipin.com/
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hey Christian,
Try something along these lines:
irb(main):019:0 require 'watir'
irb(main):019:0 include Watir
irb(main):019:0 ie = IE.start('http://www.google.com')
= #Watir::IE:0x2f2c480
# Get the table cell, pull the first link's href, there are a few
links in this cell
irb(main):020:0
Hello Charley,
thanks, that works fine.
Kind Regards,
Christian
Charley Baker schrieb:
Hey Christian,
Try something along these lines:
irb(main):019:0 require 'watir'
irb(main):019:0 include Watir
irb(main):019:0 ie = IE.start('http://www.google.com')
= #Watir::IE:0x2f2c480
#