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
> :<br><br>ie.div(:class => 'contentItem', :index => 3) #
> access the 3rd div with a class of '> > > > Perfect - 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 there yet. I
> have started writing both up, and hope to get a good bit> done over the next
> week and a half.> > Happy scripting!> Jeff> > -- >
> http://testingjeff.wordpress.com> -------------- next part --------------> An
> HTML attachment was scrubbed...> URL:
> http://rubyforge.org/pipermail/wtr-general/attachments/20070502/57e74ddd/attachment-0001.html
> > > ------------------------------> > Message: 5> Date: Wed, 2 May 2007
> 15:57:03 -0700> From: "Suman Goel" <[EMAIL PROTECTED]>> Subject: Re:
> [Wtr-general] Error when loading iframe> To: <wtr-general@rubyforge.org>>
> Message-ID: <[EMAIL PROTECTED]>> Content-Type: text/plain;
> charset="us-ascii"> > Try adding the following line after creating the ie
> instance> ie.logger.level = Logger::ERROR> > This will not show these
> warnings.> > -----Original Message-----> From: [EMAIL PROTECTED]>
> [mailto:[EMAIL PROTECTED] On Behalf Of Charley Baker> Sent: Wednesday, May
> 02, 2007 7:46 AM> To: wtr-general@rubyforge.org> Subject: Re: [Wtr-general]
> Error when loading iframe> > Try running the latest code from svn, there've
> been some changes around> dealing with frame access errors. Follow this link
> for the instructions:> http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgem > >
> -Charley > > > On 5/2/07, John <[EMAIL PROTECTED]> wrote:> > Hi,> > When you
> click on a link in my website an iframe is loaded in the> middle of the page.
> It seems watir has trouble with it, because it gives an> error (see below). I
> use this to click on the link: $ie.link(:url,>
> /club_philips_streamium_management/).click > It then returns this error:> >
> irb(main):011:0> ie.link(:url,> /club_philips_streamium_management/).click>
> WIN32OLERuntimeError: document> OLE error code:80070005 in <Unknown>> Access
> is denied. > > HRESULT error code:0x80020009> Exception occurred.> from>
> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1830:in>
> `method_missing'> from C:/ruby/lib/ruby/gems/1.8/gems/watir->
> 1.5.1.1158/./watir.rb:1830:in `wait'> from>
> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1829:in `times'>
> from> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1829:in
> `wait' > from>
> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:2577:in `click'>
> from (irb):11> _______________________________________________> Wtr-general
> mailing list> Wtr-general@rubyforge.org <mailto:Wtr-general@rubyforge.org> >
> http://rubyforge.org/mailman/listinfo/wtr-general> > > > > > >
> ------------------------------> > Message: 6> Date: Wed, 2 May 2007 17:56:14
> -0600> From: "Chris McMahon" <[EMAIL PROTECTED]>> Subject: [Wtr-general]
> playing with FireWatir on OSX> To: wtr-general@rubyforge.org> Message-ID:>
> <[EMAIL PROTECTED]>> Content-Type: text/plain; charset=ISO-8859-1;
> format=flowed> > I've got jssh in place, and I can establish a connection on
> port 9997,> but all the unittest scripts (and my little spike) hang as if
> nothing> is going over the socket. Here's the stack trace after doing
> CTRL-C:> > > ^C./../container.rb:842:in `recv': Interrupt> from
> ./../container.rb:842:in `read_socket'> from ./../container.rb:837:in `each'>
> from ./../container.rb:837:in `read_socket'> from ./../firewatir.rb:547:in
> `wait'> from ./../firewatir.rb:259:in `goto'> from form_test.rb:11:in
> `setup'> from /usr/local/lib/ruby/1.8/test/unit/testcase.rb:77:in `run'> from
> /usr/local/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run'> ... 9 levels...>
> from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run'> from
> /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run'> from
> /usr/local/lib/ruby/1.8/test/unit.rb:278> from form_test.rb:233> > >
> ------------------------------> > Message: 7> Date: Wed, 2 May 2007 20:06:55
> -0400> From: "Timm Mason" <[EMAIL PROTECTED]>> Subject: [Wtr-general] problem
> filling text_field - validation fails> To: <wtr-general@rubyforge.org>>
> Message-ID:> <[EMAIL PROTECTED]>> Content-Type: text/plain;
> charset="us-ascii"> > Hi, I'm having a problem with a text_field. If I
> populate the value> with Watir, then submit, there is a validation that
> fails. However, I> can manually type in the same value and the validation
> passes.> > Here's some HTML:> <li class="post">> <a
> onclick="toggle('ownerToolbox_reportSale');>
> $('ownerToolbox_askingPrice').focus();" href="javascript:void(0)">
> id="ownerToolbox_reportSale">Tell us it's for sale</a>> > <div
> id="ownerToolbox_reportSale_toggleArea" class="hide tooltip> reportForSale">>
> <a onclick="toggle('ownerToolbox_reportSale')"> href="javascript:void(0)"
> class="close">Close</a>> <dl>> <dt>Is This Home For Sale?</dt>> > <dd>> <form
> method="post">
> action="/HomeDetails,ownerToolbox.reportForSalePopup.reportForSaleForm.s>
> direct" name="reportForSaleForm_0" id="reportForSaleForm_0">> <div
> style="display:none;"><input type="hidden" name="formids">
> value="ownerToolbox_askingPrice,salePriceField,claimTypeRadioGroup,Submi>
> tButton"/>> <input type="hidden" name="form:HomeDetails">
> value="ZH4sIAAAAAAAAAI1Svy9DURQ+r9EY/EhpYkNDrQ8J0ZEmGk2kXjB1u7zTuvp673Xe>
> fb1tB2FhsLIZDMb+K0a7WIVVYnJfUSGRGu5w7znfd77z3a/zDEkzDAD2JEPNNCozCDDQVtwP>
> CcYOWYO5ARNVtyg0VpHGH29uX0/PcwlwipBssCDCJkHqu68U1feQzjpXk0OXDxcJgKZKPBXA>
> LDowLY1A2pUy2JNNl1BJ0gVJOyxAT6pIwYhCCnmo0S/H84/gGKALzjmQkZUKUlFUpJsNuKiF>
> WY9khQe47nO9aR8g3UNvo45IeKyKGlL1VpsHgTTzn/1mwYGpbzLNarjVQPJkqLmo9hEyCjAk>
> iaOwVnEpNCRLdokDs+LAXBstQ91auIHMR3KZ7+dJ1pCsjnhUH+rVf1NM9Ch6xRKr213BLDkw>
> 85ukr9GxhkGz7MDsb2ikfHuJcX8t8IFNA6S0xa75occo1mJ7fsQnb38dmbjL0Mn99duLjU/5>
> Kz4KupHb57ql3gFtyY3GkAIAAA=="/>> <input type="hidden" name="reservedids"
> value="form:HomeDetails"/>> <input type="hidden" name="submitmode"
> value=""/>> <input type="hidden" name="submitname" value=""/>> </div>>
> <fieldset>> <p class="price"><label for="ownerToolbox_askingPrice">Sale>
> price<span class="required">*</span>:</label> <!-- sale price -->> > <input
> type="text" name="salePriceField" value=""> id="ownerToolbox_askingPrice"/>>
> > </p>> > <p>What is your relationship to this home?</p>> > <ul
> class="ownerToolbox_relation">> <li><input type="radio"
> name="claimTypeRadioGroup" value="0"> id="ownerToolbox_owner"/> <label>
> for="ownerToolbox_owner">Owner</label></li>> <li><input type="radio"
> name="claimTypeRadioGroup" value="1"> id="ownerToolbox_agent"/> <label
> for="ownerToolbox_agent">Listing> agent</label></li>> <li><input type="radio"
> name="claimTypeRadioGroup"> checked="checked" value="2"
> id="ownerToolbox_other"/> <label>
> for="ownerToolbox_other">Other</label></li>> </ul>> > > <input type="hidden">
> name="HomeDetails/ownerToolbox.reportForSalePopup.reportForSaleForm_Subm>
> itButton_submitflag">
> id="HomeDetails/ownerToolbox.reportForSalePopup.reportForSaleForm_Submit>
> Button_submitflag" value="0"></input>> <button type="submit"
> name="SubmitButton">
> onclick="document.getElementById('HomeDetails/ownerToolbox.reportForSale>
> Popup.reportForSaleForm_SubmitButton_submitflag').value='1';"> title="Submit"
> class="primary">> <span>Save</span>> </button>> > <button
> onclick="toggle('ownerToolbox_reportSale')"> href="javascript:void(0)"
> type="button" class="em">> <span>Cancel</span>> </button>> > </fieldset>>
> </form>> </dd>> > </dl>> </div>> </li>> > And my code:> $b.link(:id,
> "ownerToolbox_reportSale").click> $b.text_field(:id,
> "ownerToolbox_askingPrice").set("234567")> $b.radio(:id,
> "ownerToolbox_agent").set> $b.button(:name, "SubmitButton").click> > Just
> started working with Watir and it's great so far. Any help is> appreciated!>
> > ____________________________________________________ > > Timm Mason>
> Software Test Engineer> P (206) 757-2736> F (206) 470-7001> >
> <http://www.zillow.com/> > > -------------- next part --------------> An HTML
> attachment was scrubbed...> URL:
> http://rubyforge.org/pipermail/wtr-general/attachments/20070502/fedce310/attachment.html
> > -------------- next part --------------> A non-text attachment was
> scrubbed...> Name: not available> Type: image/gif> Size: 1128 bytes> Desc:
> zillow_logo_emailsig.gif> Url :
> http://rubyforge.org/pipermail/wtr-general/attachments/20070502/fedce310/attachment.gif
> > > ------------------------------> >
> _______________________________________________> Wtr-general mailing list>
> Wtr-general@rubyforge.org> http://rubyforge.org/mailman/listinfo/wtr-general>
> > End of Wtr-general Digest, Vol 42, Issue 3>
> ******************************************
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general