[Wtr-general] 'Unable to locate object' problem

Charley Baker charley.baker at gmail.com
Thu May 3 10:48:40 EDT 2007


Hi,

  Please edit responses to refer to the original header and not the digest
header. I missed the fact that the src attribute is pointing to textarea,
it's not a text control. Try using IE developer toolbar to find the control
and some sort of identifiable attribute - name, id, index. Then use that to
set it in Watir.

http://www.microsoft.com/downloads/details.aspx?FamilyID=E59C3964-672D-4511-BB3E-2D5E1DB91038

-Charley

On 5/3/07, Imran Hussain <imran_x at hotmail.com> wrote:
>
> Hi Charley,
>
> Thanks for the info but it still doesn't work, I now get the following
> error:
>
> c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3388:in `method_missing': focus
> (WIN32OL
> ERuntimeError)
>     OLE error code:800A083E in htmlfile
>       Can't move focus to the control because it is invisible, not
> enabled, or o
> f a type that does not accept the focus.
>     HRESULT error code:0x80020009
>       Exception occurred.       from
> c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:338
> 8:in `set'
>
>
> Thanks,
> Imran
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070503/705b0836/attachment-0001.html 


More information about the Wtr-general mailing list