<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Timm</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I dont see any code that would do validations in
the html you've supplied</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>you can also try this, which may help</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2>$b.link(:id,
"ownerToolbox_reportSale").click</FONT></SPAN></DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2>$b.text_field(:id,
"ownerToolbox_askingPrice").value="234567"</FONT></SPAN></DIV>
<DIV><SPAN class=230243723-02052007></SPAN> </DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2>$b.radio(:id,
"ownerToolbox_agent").set</FONT></SPAN></DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2>$b.button(:name,
"SubmitButton").click</FONT></SPAN></DIV>
<DIV><SPAN class=230243723-02052007></SPAN> </DIV>
<DIV><SPAN class=230243723-02052007>this does some slightly different
things</SPAN></DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial
size=2></FONT></SPAN> </DIV></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=timm@zillow.com href="mailto:timm@zillow.com">Timm Mason</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=wtr-general@rubyforge.org
href="mailto:wtr-general@rubyforge.org">wtr-general@rubyforge.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, May 02, 2007 6:06
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Wtr-general] problem filling
text_field - validation fails</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2>Here's some
HTML:</FONT></SPAN></DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2><li
class="post"><BR><a onclick="toggle('ownerToolbox_reportSale');
$('ownerToolbox_askingPrice').focus();" href="javascript:void(0)"
id="ownerToolbox_reportSale">Tell us it's for
sale</a></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2><div
id="ownerToolbox_reportSale_toggleArea" class="hide tooltip
reportForSale"><BR> <a onclick="toggle('ownerToolbox_reportSale')"
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"
action="/HomeDetails,ownerToolbox.reportForSalePopup.reportForSaleForm.sdirect"
name="reportForSaleForm_0" id="reportForSaleForm_0"><BR><div
style="display:none;"><input type="hidden" name="formids"
value="ownerToolbox_askingPrice,salePriceField,claimTypeRadioGroup,SubmitButton"/><BR><input
type="hidden" name="form:HomeDetails"
value="ZH4sIAAAAAAAAAI1Svy9DURQ+r9EY/EhpYkNDrQ8J0ZEmGk2kXjB1u7zTuvp673Xefb1tB2FhsLIZDMb+K0a7WIVVYnJfUSGRGu5w7znfd77z3a/zDEkzDAD2JEPNNCozCDDQVtwPCcYOWYO5ARNVtyg0VpHGH29uX0/PcwlwipBssCDCJkHqu68U1feQzjpXk0OXDxcJgKZKPBXALDowLY1A2pUy2JNNl1BJ0gVJOyxAT6pIwYhCCnmo0S/H84/gGKALzjmQkZUKUlFUpJsNuKiFWY9khQe47nO9aR8g3UNvo45IeKyKGlL1VpsHgTTzn/1mwYGpbzLNarjVQPJkqLmo9hEyCjAkiaOwVnEpNCRLdokDs+LAXBstQ91auIHMR3KZ7+dJ1pCsjnhUH+rVf1NM9Ch6xRKr213BLDkw85ukr9GxhkGz7MDsb2ikfHuJcX8t8IFNA6S0xa75occo1mJ7fsQnb38dmbjL0Mn99duLjU/5Kz4KupHb57ql3gFtyY3GkAIAAA=="/><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
price<span class="required">*</span>:</label> <!-- sale
price --></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2><input
type="text" name="salePriceField" value=""
id="ownerToolbox_askingPrice"/></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial
size=2></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"
id="ownerToolbox_owner"/> <label
for="ownerToolbox_owner">Owner</label></li><BR>
<li><input type="radio" name="claimTypeRadioGroup" value="1"
id="ownerToolbox_agent"/> <label for="ownerToolbox_agent">Listing
agent</label></li><BR>
<li><input type="radio" name="claimTypeRadioGroup" checked="checked"
value="2" id="ownerToolbox_other"/> <label
for="ownerToolbox_other">Other</label></li><BR> </ul><BR> <BR> <BR> <input
type="hidden"
name="HomeDetails/ownerToolbox.reportForSalePopup.reportForSaleForm_SubmitButton_submitflag"
id="HomeDetails/ownerToolbox.reportForSalePopup.reportForSaleForm_SubmitButton_submitflag"
value="0"></input><BR><button type="submit" name="SubmitButton"
onclick="document.getElementById('HomeDetails/ownerToolbox.reportForSalePopup.reportForSaleForm_SubmitButton_submitflag').value='1';"
title="Submit"
class="primary"><BR> <span>Save</span><BR> </button><BR> <BR> <button
onclick="toggle('ownerToolbox_reportSale')" 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></FONT></SPAN></DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2>And my
code:</FONT></SPAN></DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2>$b.link(:id,
"ownerToolbox_reportSale").click</FONT></SPAN></DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2>$b.text_field(:id,
"ownerToolbox_askingPrice").set("234567")</FONT></SPAN></DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2>$b.radio(:id,
"ownerToolbox_agent").set</FONT></SPAN></DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2>$b.button(:name,
"SubmitButton").click</FONT></SPAN></DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=230243723-02052007><FONT face=Arial size=2>Just started
working with Watir and it's great so far. Any help is
appreciated!</DIV></FONT></SPAN>
<DIV> </DIV>
<DIV align=left><FONT face=Verdana color=#666666
size=1>____________________________________________________ </FONT><BR><BR><STRONG><FONT
face=Verdana color=#5577bb size=1>Timm Mason</FONT></STRONG><BR><FONT
face=Verdana color=#666666 size=1>Software Test Engineer<BR>P (206)
757-2736<BR>F (206) 470-7001<BR></FONT><BR><A
href="http://www.zillow.com/"><IMG alt="Zillow.com, Your Edge in Real Estate"
src="cid:06fc01c78d33$fde65e10$6400a8c0@laptop" border=0></A> </DIV>
<DIV> </DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Wtr-general mailing
list<BR>Wtr-general@rubyforge.org<BR>http://rubyforge.org/mailman/listinfo/wtr-general</BLOCKQUOTE></BODY></HTML>