Hi,
 
I am using ie.text_field(..).set('a string').
 
But still the textfield accepts a string that  exceeds the max length.
When I retrieve the contents of the text field it gives the entire string (i.e all the characters including the ones that exceed the max length)
 
How do I deal with this?
 
Thanks
Chaya
 

Paul Rogers <[EMAIL PROTECTED]> wrote:
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

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--
_______________________________________________
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


Enjoy this Diwali with Y! India Click here
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to