Hi
Angrez,
This
is is the code I'm trying to run
require 'watir'
ie =
Watir::IE.start("http://dev/index.asp")
ie.element_by_xpath("//[EMAIL PROTECTED]'top_menu_map']/area[6]/").click()
I've
tried various modifications to the XPath but what you see above is what I get
from the XPath browser and even though I haven't done much with XPAth recently
it looks okay to me.
I've
attached the error.xml file. I can't see anything to suggest there is a problem
Let me know what you reckon.
Regards
Chris
-----Original Message-----
From: Angrez Singh [mailto:[EMAIL PROTECTED]
Sent: Monday, February 27, 2006 3:27 PM
To: [email protected]
Subject: Re: [Wtr-general] xpath support doesn't work for meDid you get an 'error.xml' file in the folder from where you are executing the trial.rb? There is nothing wrong with the XPath query. Could you please send me the HTML & code that you are trying to execute?Hi Chris,
web_pages>ruby trial.rb
C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1922:in `elements_by_xpath': undefined method `elements' for nil:NilClass (NoMethodError)
from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1912:in `element_by_xpath'
from trial.rb:5
Regards,
Angrez
error.xml
Description: Binary data
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
