Hi,
I've just started using Watir and have run into a problem with links inside of divs.
 
example page:
<html>
 <head></head>
 <body>
  <div id="div1">
   <a href="">Googlehttp://www.google.com">Google</a>
  </div>
 </body>
</html>

when i try the script:

require 'Watir'
ie = Watir::IE.start("C:\\testwatir.html")
# Test initial display
wpdiv = ie.div(:id, "div1")
wpdiv.link(:index, 1).click
ie.close
 


I get an error saying that, "document" is undefined. This happens in the "getLink" method.
 
Can anybody explain what I am doing incorrectly?
 
Thanks
 
Kwan



La future messagerie instantanée : Essayez gratuitement Windows Live Messenger Beta
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to