That's actually a bug I've known about in Watir, but i think this is the 
first time some one has reported it. It was introduced when we did some 
performance optimizations some time ago.


Jarmo Pertman wrote:
> Hi.
> I stumbled into one interesting problem, which haven't happened
> before. I tried to access text_field with id, and got link object
> instead.
> Here is my commands and output:
> $browser.text_field(:id, "info").value = "test"
> unknown property or method: `value'
>     HRESULT error code:0x80020006
>       Unknown name.
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/input_elements.rb:
> 349:in `method_missing'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/input_elements.rb:
> 349:in `value='
> $browser.text_field(:id, "info").html
> "<A id=info class=someclassname href=\"javascript:methodcall('param')
> \">my link</A>"
> When doing .flash, then link is flashing indeed.
> How is this even possible? There isn't actually any text_fields with
> that id on that page. Why did Watir pick that link up just because it
> had "info" as it's id?
> Jarmo
> >

Bret Pettichord
CTO, WatirCraft LLC,
Lead Developer, Watir,

Watir Training: Portland/Beaverton April 16-17

You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to
Before posting, please read the following guidelines:
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to