hi, all
For my script like this,
ie.frame(:name,"LeftFrame").text_field(:xpath,"//input[@name='wiston']/").set("hello")
it throws error like below,
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/input_elements.rb:6:in `locate': undefined method `element_by_xpath' for #<Watir::Frame:0x3a1bb18> (NoMethodError)
from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/element.rb:53:in `assert_exists'
from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/element.rb:288:in `enabled?'
from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/element.rb:60:in `assert_enabled'
from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/input_elements.rb:328:in `set'
from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/watir/RubyApplication2/lib/main.rb:91
whether the frame support the XPath or not? if Yes, how do such a step?