Hi Hue,

The error that you get indicates that the second level frame (name:=search)
could not be identified. Could you try a

Browser("title:=Client").Frame("name:=leftframe").show_frames()

and see if the name is not misspelt or duplicate? If it is a
duplicate, then you could try to add the second index identifier, eg.:- Frame("name:-search", "index:=1"). Let us know if it works.
Thanks
Raghu



Hue Mach Dieu wrote:

Hi ALL
My script as like this
Browser("title:=Client").Frame("name:=leftframe").Image("index:=1").clic
k
Browser("title:=Client").Frame("name:=leftframe").Link("index:=1").click
Browser("title:=Client").Frame("name:=leftframe").Frame("name:=search").
TextField("name:=time2").set "2005/08/012"

I got the error as like this
DEBUG: OLE=#<WIN32OLE:0x29b8c50>
DEBUG: OLE=#<WIN32OLE:0x2936368>
DEBUG: OLE=#<WIN32OLE:0x29267f8>
DEBUG: OLE=
D:/Applications/ruby/lib/ruby/site_ruby/1.8/watir.rb:1844:in
`getDocument': undefined method `document' for nil:NilClass
(NoMethodError)
       from D:\Applications\wet/qantom/webobjects/WebEdit.rb:40:in
`initialize'

       from D:\Applications\wet/qantom/webobjects/WebContainer.rb:81:in
`new'
       from D:\Applications\wet/qantom/webobjects/WebContainer.rb:81:in
`TextField'
..

Thank you for help

Hue



_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to