Try with 'input-textfield' instead of "input-textfield".
--
Alexander
ya i could successfully do that using irb. i mean accessing ur data in
frame on ur website
I've just read throught this entire thread. I'm pretty sure there is a
bug in Watir here with nested frames. I would love to be able to
investigate this further. Do you think there might be a way where we
could reproduce this problem?
Bret
mats wrote:
> I am using watir to enter text in a text box.
>
> I am on a web page(qa1.test.com) which has a frame and i enter data
> into this frame which works fine, later an iframe is loaded from
> another server(qa2.test.com) and i am trying to enter a info in this
> new frame.
>
> If I use dom inspector and inspect the object, its a frame inside a
> frame.
>
> so, I am using the code
> ie.frame(:name,"frame1").frame(:name,"frame2").text_field(:id,"input-
> textfield").set("1234")
>
>
> but it gives this error
>
> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./watir/frame.rb:13:in
> `method_missing': unknown property or method
> `-' (WIN32OLERuntimeError)
> HRESULT error code:0x80020006
> Unknown name. from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./
> watir/frame.rb:13:in `locate'
> from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./watir/frame.rb:
> 47:in `initialize'
> from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./watir/container.rb:
> 100:in `new'
> from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./watir/container.rb:
> 100:in `frame'
>
>
>
> I tried increasing the amount of sleep seconds and tried adding
> ie.wait but no luck
>
>
> >
>
--
Bret Pettichord
Lead Developer, Watir, http://wtr.rubyforge.org
Blog, http://www.io.com/~wazmo/blog