hi, all
In my html file, there are some script like below,
<input type = "text" id="id1", name="wiston" > <br>
<input type = "text" id="id2", name="wiston" > <br>
<input type = "text" id="id3", name="wiston" > <br>
develop the watir code like this,
ie=Watir::IE.attach(:title, /title/)
ie.element_by_xpath("//input[@name='wiston']/").set("hello")
it throws C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/watir/RubyApplication2/lib/main.rb:90:in `method_missing': unknown property or method `set' (WIN32OLERuntimeError)
HRESULT error code:0x80020006
Anybody can tell me How do make the element_by_xpath work?