<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi Charley,<BR>
<BR>
Thanks for the info but it still doesn't work, I now get the following error:<BR>
<BR>
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3388:in `method_missing': focus (WIN32OL<BR>ERuntimeError)<BR> OLE error code:800A083E in htmlfile<BR> Can't move focus to the control because it is invisible, not enabled, or o<BR>f a type that does not accept the focus.<BR> HRESULT error code:0x80020009<BR> Exception occurred. from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:338<BR>8:in `set'<BR><BR> <BR>Thanks,<BR>
Imran<BR><BR><BR>
<HR id=stopSpelling>
<BR>
> From: wtr-general-request@rubyforge.org<BR>> Subject: Wtr-general Digest, Vol 42, Issue 3<BR>> To: wtr-general@rubyforge.org<BR>> Date: Wed, 2 May 2007 20:19:00 -0400<BR>> <BR>> Send Wtr-general mailing list submissions to<BR>> wtr-general@rubyforge.org<BR>> <BR>> To subscribe or unsubscribe via the World Wide Web, visit<BR>> http://rubyforge.org/mailman/listinfo/wtr-general<BR>> or, via email, send a message with subject or body 'help' to<BR>> wtr-general-request@rubyforge.org<BR>> <BR>> You can reach the person managing the list at<BR>> wtr-general-owner@rubyforge.org<BR>> <BR>> When replying, please edit your Subject line so it is more specific<BR>> than "Re: Contents of Wtr-general digest..."<BR>> <BR>> <BR>> Today's Topics:<BR>> <BR>> 1. Re: How to identify the nth instance of a div? (Jason)<BR>> 2. 'Unable to locate object' problem (Imran Hussain)<BR>> 3. Re: 'Unable to locate object' problem (Charley Baker)<BR>> 4. Re: How to identify the nth instance of a div? (Jeff Fry)<BR>> 5. Re: Error when loading iframe (Suman Goel)<BR>> 6. playing with FireWatir on OSX (Chris McMahon)<BR>> 7. problem filling text_field - validation fails (Timm Mason)<BR>> <BR>> <BR>> ----------------------------------------------------------------------<BR>> <BR>> Message: 1<BR>> Date: Wed, 02 May 2007 10:27:48 CDT<BR>> From: Jason <forum-watir-users@openqa.org><BR>> Subject: Re: [Wtr-general] How to identify the nth instance of a div?<BR>> To: wtr-general@rubyforge.org<BR>> Message-ID:<BR>> <32078010.18571178119698374.JavaMail.oqa-j2ee@openqa01.managed.contegix.com><BR>> <BR>> Content-Type: text/plain; charset=ISO-8859-1<BR>> <BR>> > You can also identify elements using multiple attributes, for example :class and :index :<br><br>ie.div(:class =&gt; &#39;contentItem&#39;, :index =&gt; 3)&nbsp; # access the 3rd div with a class of &#39<BR>> > <BR>> <BR>> Perfect - that's exactly what I was after. Must have missed that in my tutorials and readings. Lovely.<BR>> <BR>> <BR>> ------------------------------<BR>> <BR>> Message: 2<BR>> Date: Wed, 2 May 2007 17:04:45 +0100<BR>> From: Imran Hussain <imran_x@hotmail.com><BR>> Subject: [Wtr-general] 'Unable to locate object' problem<BR>> To: <wtr-general@rubyforge.org><BR>> Cc: "imran_x@hotmail.com" <imran_x@hotmail.com><BR>> Message-ID: <BAY121-W18D960BB41241DD3B95BB891420@phx.gbl><BR>> Content-Type: text/plain; charset="iso-8859-1"<BR>> <BR>> Hi,<BR>> <BR>> 'Unable to locate object' problem<BR>> <BR>> When running the following show_all_objects command, I get;<BR>> <BR>> rb(main):016:0> ie.show_all_objects-----------Objects in page -------------<BR>> HTML Document name= id=SN_NOTESSFrame src=textarea name=SN_NOTESSText id= value=<BR>> <BR>> How do I write to this object? do I use this:<BR>> <BR>> ie.text_field(:id ,"SN_NOTESSFrame").set("TESTING 1234")<BR>> <BR>> Is this within a frame??<BR>> This doesn't seem to be working .... can someone help?<BR>> <BR>> Thanks,Imran<BR>> -------------- next part --------------<BR>> An HTML attachment was scrubbed...<BR>> URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070502/57205157/attachment-0001.html <BR>> <BR>> ------------------------------<BR>> <BR>> Message: 3<BR>> Date: Wed, 2 May 2007 10:19:26 -0600<BR>> From: "Charley Baker" <charley.baker@gmail.com><BR>> Subject: Re: [Wtr-general] 'Unable to locate object' problem<BR>> To: wtr-general@rubyforge.org<BR>> Message-ID:<BR>> <f96821860705020919v26a420cepa223082ce1dc05fc@mail.gmail.com><BR>> Content-Type: text/plain; charset="iso-8859-1"<BR>> <BR>> You're trying to write to what appears to be a frame not the textarea.<BR>> <BR>> ie.text_field(:name, 'SN_NOTESSText').set('this should work')<BR>> <BR>> <BR>> <BR>> -Charley<BR>> <BR>> <BR>> On 5/2/07, Imran Hussain <imran_x@hotmail.com> wrote:<BR>> ><BR>> > Hi,<BR>> ><BR>> > 'Unable to locate object' problem<BR>> ><BR>> > When running the following show_all_objects command, I get;<BR>> ><BR>> > rb(main):016:0> ie.show_all_objects<BR>> > -----------Objects in page -------------<BR>> > HTML Document name= id=SN_NOTESSFrame src=<BR>> > textarea name=SN_NOTESSText id= value=<BR>> ><BR>> > How do I write to this object? do I use this:<BR>> ><BR>> > ie.text_field(:id ,"SN_NOTESSFrame").set("TESTING 1234")<BR>> ><BR>> > Is this within a frame??<BR>> > This doesn't seem to be working .... can someone help?<BR>> ><BR>> > Thanks,<BR>> > Imran<BR>> ><BR>> ><BR>> ><BR>> > _______________________________________________<BR>> > Wtr-general mailing list<BR>> > Wtr-general@rubyforge.org<BR>> > http://rubyforge.org/mailman/listinfo/wtr-general<BR>> ><BR>> -------------- next part --------------<BR>> An HTML attachment was scrubbed...<BR>> URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070502/5bbc8640/attachment-0001.html <BR>> <BR>> ------------------------------<BR>> <BR>> Message: 4<BR>> Date: Wed, 2 May 2007 10:42:09 -0700<BR>> From: "Jeff Fry" <jeff.fry@gmail.com><BR>> Subject: Re: [Wtr-general] How to identify the nth instance of a div?<BR>> To: wtr-general@rubyforge.org<BR>> Message-ID:<BR>> <970956b0705021042u541cad35y5ac3818caf110f33@mail.gmail.com><BR>> Content-Type: text/plain; charset="iso-8859-1"<BR>> <BR>> On 5/2/07, Jason <forum-watir-users@openqa.org> wrote:<BR>> ><BR>> ><BR>> > Perfect - that's exactly what I was after.<BR>> <BR>> <BR>> Cool.<BR>> <BR>> Must have missed that in my tutorials and readings. Lovely.<BR>> <BR>> <BR>> :index is in the rdoc already, but :class and multiple attribute support<BR>> aren't there yet. I have started writing both up, and hope to get a good bit<BR>> done over the next week and a half.<BR>> <BR>> Happy scripting!<BR>> Jeff<BR>> <BR>> -- <BR>> http://testingjeff.wordpress.com<BR>> -------------- next part --------------<BR>> An HTML attachment was scrubbed...<BR>> URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070502/57e74ddd/attachment-0001.html <BR>> <BR>> ------------------------------<BR>> <BR>> Message: 5<BR>> Date: Wed, 2 May 2007 15:57:03 -0700<BR>> From: "Suman Goel" <sgoel@yahoo-inc.com><BR>> Subject: Re: [Wtr-general] Error when loading iframe<BR>> To: <wtr-general@rubyforge.org><BR>> Message-ID: <008001c78d0d$34605c10$e39b15ac@ds.corp.yahoo.com><BR>> Content-Type: text/plain; charset="us-ascii"<BR>> <BR>> Try adding the following line after creating the ie instance<BR>> ie.logger.level = Logger::ERROR<BR>> <BR>> This will not show these warnings.<BR>> <BR>> -----Original Message-----<BR>> From: wtr-general-bounces@rubyforge.org<BR>> [mailto:wtr-general-bounces@rubyforge.org] On Behalf Of Charley Baker<BR>> Sent: Wednesday, May 02, 2007 7:46 AM<BR>> To: wtr-general@rubyforge.org<BR>> Subject: Re: [Wtr-general] Error when loading iframe<BR>> <BR>> Try running the latest code from svn, there've been some changes around<BR>> dealing with frame access errors. Follow this link for the instructions:<BR>> http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgem <BR>> <BR>> -Charley <BR>> <BR>> <BR>> On 5/2/07, John <forum-watir-users@openqa.org> wrote:<BR>> <BR>> Hi,<BR>> <BR>> When you click on a link in my website an iframe is loaded in the<BR>> middle of the page. It seems watir has trouble with it, because it gives an<BR>> error (see below). I use this to click on the link: $ie.link(:url,<BR>> /club_philips_streamium_management/).click <BR>> It then returns this error:<BR>> <BR>> irb(main):011:0> ie.link(:url,<BR>> /club_philips_streamium_management/).click<BR>> WIN32OLERuntimeError: document<BR>> OLE error code:80070005 in <Unknown><BR>> Access is denied. <BR>> <BR>> HRESULT error code:0x80020009<BR>> Exception occurred.<BR>> from<BR>> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1830:in<BR>> `method_missing'<BR>> from C:/ruby/lib/ruby/gems/1.8/gems/watir-<BR>> 1.5.1.1158/./watir.rb:1830:in `wait'<BR>> from<BR>> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1829:in `times'<BR>> from<BR>> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1829:in `wait' <BR>> from<BR>> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:2577:in `click'<BR>> from (irb):11<BR>> _______________________________________________<BR>> Wtr-general mailing list<BR>> Wtr-general@rubyforge.org <mailto:Wtr-general@rubyforge.org> <BR>> http://rubyforge.org/mailman/listinfo/wtr-general<BR>> <BR>> <BR>> <BR>> <BR>> <BR>> <BR>> ------------------------------<BR>> <BR>> Message: 6<BR>> Date: Wed, 2 May 2007 17:56:14 -0600<BR>> From: "Chris McMahon" <christopher.mcmahon@gmail.com><BR>> Subject: [Wtr-general] playing with FireWatir on OSX<BR>> To: wtr-general@rubyforge.org<BR>> Message-ID:<BR>> <72799cd70705021656x56feb7bdq88a86c3429371b24@mail.gmail.com><BR>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed<BR>> <BR>> I've got jssh in place, and I can establish a connection on port 9997,<BR>> but all the unittest scripts (and my little spike) hang as if nothing<BR>> is going over the socket. Here's the stack trace after doing CTRL-C:<BR>> <BR>> <BR>> ^C./../container.rb:842:in `recv': Interrupt<BR>> from ./../container.rb:842:in `read_socket'<BR>> from ./../container.rb:837:in `each'<BR>> from ./../container.rb:837:in `read_socket'<BR>> from ./../firewatir.rb:547:in `wait'<BR>> from ./../firewatir.rb:259:in `goto'<BR>> from form_test.rb:11:in `setup'<BR>> from /usr/local/lib/ruby/1.8/test/unit/testcase.rb:77:in `run'<BR>> from /usr/local/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run'<BR>> ... 9 levels...<BR>> from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run'<BR>> from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run'<BR>> from /usr/local/lib/ruby/1.8/test/unit.rb:278<BR>> from form_test.rb:233<BR>> <BR>> <BR>> ------------------------------<BR>> <BR>> Message: 7<BR>> Date: Wed, 2 May 2007 20:06:55 -0400<BR>> From: "Timm Mason" <timm@zillow.com><BR>> Subject: [Wtr-general] problem filling text_field - validation fails<BR>> To: <wtr-general@rubyforge.org><BR>> Message-ID:<BR>> <4514A6353D36BD4AAE97E53D00D28D0503DD73D3@ms07.mse2.exchange.ms><BR>> Content-Type: text/plain; charset="us-ascii"<BR>> <BR>> Hi, I'm having a problem with a text_field. If I populate the value<BR>> with Watir, then submit, there is a validation that fails. However, I<BR>> can manually type in the same value and the validation passes.<BR>> <BR>> Here's some HTML:<BR>> <li class="post"><BR>> <a onclick="toggle('ownerToolbox_reportSale');<BR>> $('ownerToolbox_askingPrice').focus();" href="javascript:void(0)"<BR>> id="ownerToolbox_reportSale">Tell us it's for sale</a><BR>> <BR>> <div id="ownerToolbox_reportSale_toggleArea" class="hide tooltip<BR>> reportForSale"><BR>> <a onclick="toggle('ownerToolbox_reportSale')"<BR>> href="javascript:void(0)" class="close">Close</a><BR>> <dl><BR>> <dt>Is This Home For Sale?</dt><BR>> <BR>> <dd><BR>> <form method="post"<BR>> action="/HomeDetails,ownerToolbox.reportForSalePopup.reportForSaleForm.s<BR>> direct" name="reportForSaleForm_0" id="reportForSaleForm_0"><BR>> <div style="display:none;"><input type="hidden" name="formids"<BR>> value="ownerToolbox_askingPrice,salePriceField,claimTypeRadioGroup,Submi<BR>> tButton"/><BR>> <input type="hidden" name="form:HomeDetails"<BR>> value="ZH4sIAAAAAAAAAI1Svy9DURQ+r9EY/EhpYkNDrQ8J0ZEmGk2kXjB1u7zTuvp673Xe<BR>> fb1tB2FhsLIZDMb+K0a7WIVVYnJfUSGRGu5w7znfd77z3a/zDEkzDAD2JEPNNCozCDDQVtwP<BR>> CcYOWYO5ARNVtyg0VpHGH29uX0/PcwlwipBssCDCJkHqu68U1feQzjpXk0OXDxcJgKZKPBXA<BR>> LDowLY1A2pUy2JNNl1BJ0gVJOyxAT6pIwYhCCnmo0S/H84/gGKALzjmQkZUKUlFUpJsNuKiF<BR>> WY9khQe47nO9aR8g3UNvo45IeKyKGlL1VpsHgTTzn/1mwYGpbzLNarjVQPJkqLmo9hEyCjAk<BR>> iaOwVnEpNCRLdokDs+LAXBstQ91auIHMR3KZ7+dJ1pCsjnhUH+rVf1NM9Ch6xRKr213BLDkw<BR>> 85ukr9GxhkGz7MDsb2ikfHuJcX8t8IFNA6S0xa75occo1mJ7fsQnb38dmbjL0Mn99duLjU/5<BR>> Kz4KupHb57ql3gFtyY3GkAIAAA=="/><BR>> <input type="hidden" name="reservedids" value="form:HomeDetails"/><BR>> <input type="hidden" name="submitmode" value=""/><BR>> <input type="hidden" name="submitname" value=""/><BR>> </div><BR>> <fieldset><BR>> <p class="price"><label for="ownerToolbox_askingPrice">Sale<BR>> price<span class="required">*</span>:</label> <!-- sale price --><BR>> <BR>> <input type="text" name="salePriceField" value=""<BR>> id="ownerToolbox_askingPrice"/><BR>> <BR>> </p><BR>> <BR>> <p>What is your relationship to this home?</p><BR>> <BR>> <ul class="ownerToolbox_relation"><BR>> <li><input type="radio" name="claimTypeRadioGroup" value="0"<BR>> id="ownerToolbox_owner"/> <label<BR>> for="ownerToolbox_owner">Owner</label></li><BR>> <li><input type="radio" name="claimTypeRadioGroup" value="1"<BR>> id="ownerToolbox_agent"/> <label for="ownerToolbox_agent">Listing<BR>> agent</label></li><BR>> <li><input type="radio" name="claimTypeRadioGroup"<BR>> checked="checked" value="2" id="ownerToolbox_other"/> <label<BR>> for="ownerToolbox_other">Other</label></li><BR>> </ul><BR>> <BR>> <BR>> <input type="hidden"<BR>> name="HomeDetails/ownerToolbox.reportForSalePopup.reportForSaleForm_Subm<BR>> itButton_submitflag"<BR>> id="HomeDetails/ownerToolbox.reportForSalePopup.reportForSaleForm_Submit<BR>> Button_submitflag" value="0"></input><BR>> <button type="submit" name="SubmitButton"<BR>> onclick="document.getElementById('HomeDetails/ownerToolbox.reportForSale<BR>> Popup.reportForSaleForm_SubmitButton_submitflag').value='1';"<BR>> title="Submit" class="primary"><BR>> <span>Save</span><BR>> </button><BR>> <BR>> <button onclick="toggle('ownerToolbox_reportSale')"<BR>> href="javascript:void(0)" type="button" class="em"><BR>> <span>Cancel</span><BR>> </button><BR>> <BR>> </fieldset><BR>> </form><BR>> </dd><BR>> <BR>> </dl><BR>> </div><BR>> </li><BR>> <BR>> And my code:<BR>> $b.link(:id, "ownerToolbox_reportSale").click<BR>> $b.text_field(:id, "ownerToolbox_askingPrice").set("234567")<BR>> $b.radio(:id, "ownerToolbox_agent").set<BR>> $b.button(:name, "SubmitButton").click<BR>> <BR>> Just started working with Watir and it's great so far. Any help is<BR>> appreciated!<BR>> <BR>> ____________________________________________________ <BR>> <BR>> Timm Mason<BR>> Software Test Engineer<BR>> P (206) 757-2736<BR>> F (206) 470-7001<BR>> <BR>> <http://www.zillow.com/> <BR>> <BR>> -------------- next part --------------<BR>> An HTML attachment was scrubbed...<BR>> URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070502/fedce310/attachment.html <BR>> -------------- next part --------------<BR>> A non-text attachment was scrubbed...<BR>> Name: not available<BR>> Type: image/gif<BR>> Size: 1128 bytes<BR>> Desc: zillow_logo_emailsig.gif<BR>> Url : http://rubyforge.org/pipermail/wtr-general/attachments/20070502/fedce310/attachment.gif <BR>> <BR>> ------------------------------<BR>> <BR>> _______________________________________________<BR>> Wtr-general mailing list<BR>> Wtr-general@rubyforge.org<BR>> http://rubyforge.org/mailman/listinfo/wtr-general<BR>> <BR>> End of Wtr-general Digest, Vol 42, Issue 3<BR>> ******************************************<BR><BR></body>
</html>