[Wtr-general] 'Unable to locate object' problem
Hi, 'Unable to locate object' problem When running the following show_all_objects command, I get; rb(main):016:0> ie.show_all_objects---Objects in page - HTML Document name= id=SN_NOTESSFrame src=textarea name=SN_NOTESSText id= value= How do I write to this object? do I use this: ie.text_field(:id ,"SN_NOTESSFrame").set("TESTING 1234") Is this within a frame?? This doesn't seem to be working can someone help? Thanks,Imran___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] 'Unable to locate object' problem
You're trying to write to what appears to be a frame not the textarea. ie.text_field(:name, 'SN_NOTESSText').set('this should work') -Charley On 5/2/07, Imran Hussain <[EMAIL PROTECTED]> wrote: Hi, 'Unable to locate object' problem When running the following show_all_objects command, I get; rb(main):016:0> ie.show_all_objects ---Objects in page - HTML Document name= id=SN_NOTESSFrame src= textarea name=SN_NOTESSText id= value= How do I write to this object? do I use this: ie.text_field(:id ,"SN_NOTESSFrame").set("TESTING 1234") Is this within a frame?? This doesn't seem to be working can someone help? Thanks, Imran ___ 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
Re: [Wtr-general] 'Unable to locate object' problem
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 <[EMAIL PROTECTED]> 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 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general