are you using
text_field(..).set('a string')
or
text_field(..).value='a string'
set should honour the max length value of the text field ( as specified in the
html)
.value= will put the whole string in
Paul
Content-Type: multipart/alternative; boundary="0-1924482286-1132893504=:77538"
Content-Transfer-Encoding: 8bit
--0-1924482286-1132893504=:77538
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi,
I want to write a test case to check maxlength validation for a text
field.
When I try to input a string which exceeds maxlength into a text field
using watir, the text field accepts the value and also saves it.
But when I try to manually enter a string that exceeds maxlength it
truncates the excess characters.
How do I handle this??
---------------------------------
Enjoy this Diwali with Y! India Click here
--0-1924482286-1132893504=:77538
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<DIV id=RTEContent> <DIV id=RTEContent> <DIV id=RTEContent> <DIV
class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt">Hi,</SPAN></FONT></DIV></DIV> <DIV> <DIV
class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"> I want to write a
test case to check maxlength validation for a text
field.</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal
style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">When I try to input a string which exceeds
maxlength into a text field using watir, the text field accepts the
value and also saves it. </SPAN></FONT></DIV></DIV> <DIV> <DIV
class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt">But when I try to manually enter a
string that exceeds maxlength it truncates the excess
characters.</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal
style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">How do I handle
this??</SPAN></FONT></DIV></DIV></DIV></DIV><p>
<hr size=1>
Enjoy this Diwali with Y! India <a
href="http://in.promos.yahoo.com/fabmall/index.html">Click here</a>
--0-1924482286-1132893504=:77538--
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general