Re: [Wtr-general] Wtr-general Digest, Vol 42, Issue 3

2007-05-03 Thread Imran Hussain
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 
(WIN32OLERuntimeError)OLE error code:800A083E in htmlfile  Can't move 
focus to the control because it is invisible, not enabled, or of 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:3388:in `set' 
Thanks,
Imran



 From: [EMAIL PROTECTED] Subject: Wtr-general Digest, Vol 42, Issue 3 To: 
 wtr-general@rubyforge.org Date: Wed, 2 May 2007 20:19:00 -0400  Send 
 Wtr-general mailing list submissions to wtr-general@rubyforge.org  To 
 subscribe or unsubscribe via the World Wide Web, visit 
 http://rubyforge.org/mailman/listinfo/wtr-general or, via email, send a 
 message with subject or body 'help' to [EMAIL PROTECTED]  You can reach 
 the person managing the list at [EMAIL PROTECTED]  When replying, please 
 edit your Subject line so it is more specific than Re: Contents of 
 Wtr-general digest...   Today's Topics:  1. Re: How to identify the nth 
 instance of a div? (Jason) 2. 'Unable to locate object' problem (Imran 
 Hussain) 3. Re: 'Unable to locate object' problem (Charley Baker) 4. Re: 
 How to identify the nth instance of a div? (Jeff Fry) 5. Re: Error when 
 loading iframe (Suman Goel) 6. playing with FireWatir on OSX (Chris 
 McMahon) 7. problem filling text_field - validation fails (Timm Mason)   
 --  
 Message: 1 Date: Wed, 02 May 2007 10:27:48 CDT From: Jason [EMAIL 
 PROTECTED] Subject: Re: [Wtr-general] How to identify the nth instance of a 
 div? To: wtr-general@rubyforge.org Message-ID: [EMAIL PROTECTED]  
 Content-Type: text/plain; charset=ISO-8859-1   You can also identify 
 elements using multiple attributes, for example :class and :index 
 :brbrie.div(:class =gt; #39;contentItem#39;, :index =gt; 3)nbsp; # 
 access the 3rd div with a class of #39Perfect - that's exactly what 
 I was after. Must have missed that in my tutorials and readings. Lovely.   
 --  Message: 2 Date: Wed, 2 May 2007 17:04:45 
 +0100 From: Imran Hussain [EMAIL PROTECTED] Subject: [Wtr-general] 
 'Unable to locate object' problem To: wtr-general@rubyforge.org Cc: 
 [EMAIL PROTECTED] [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] 
 Content-Type: text/plain; charset=iso-8859-1  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 -- next part -- An HTML attachment was 
 scrubbed... URL: 
 http://rubyforge.org/pipermail/wtr-general/attachments/20070502/57205157/attachment-0001.html
--  Message: 3 Date: Wed, 2 May 2007 
 10:19:26 -0600 From: Charley Baker [EMAIL PROTECTED] Subject: Re: 
 [Wtr-general] 'Unable to locate object' problem To: 
 wtr-general@rubyforge.org Message-ID: [EMAIL PROTECTED] Content-Type: 
 text/plain; charset=iso-8859-1  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  -- next 
 part -- An HTML attachment was scrubbed... URL: 
 http://rubyforge.org/pipermail/wtr-general/attachments/20070502/5bbc8640/attachment-0001.html
--  Message: 4 Date: Wed, 2 May 2007 
 10:42:09 -0700 From: Jeff Fry [EMAIL PROTECTED] Subject: Re: 
 [Wtr-general] How to identify the nth instance of a div? To: 
 wtr-general@rubyforge.org Message-ID: [EMAIL PROTECTED] Content-Type: 
 text/plain; charset=iso-8859-1  On 5/2/07, Jason [EMAIL PROTECTED] 
 wrote:Perfect - that's exactly what I was after.   Cool.  Must 
 have missed that in my tutorials and readings. Lovely.   :index is in the 
 rdoc already, but :class and multiple attribute support aren't

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

2007-05-02 Thread Imran Hussain
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