Hi,
I'm looking to do the following,
attempt to enter text into a field where the max length is x, + one
character.

I've tried

ie.text_field(:name,/tb_FirstName/).set('PHHHHHHHHHHHHHHPL')
 puts 'Name entered greater than 16 characters'

if ie.contains_text("PHHHHHHHHHHHHHHPL")
puts("Test Failed. data greater than 16 characters accepted in first name
field")
else
puts("Test Passed. no more than 16 character can be entered in the first
name field")
end


TEST FAILED. following String found in First Name: 'PHHHHHHHHHHHHHHPL'
character length greater than 16 characters
F


but this did not work as the data entered is being read, as opposed to the
data displayed.
hope this makes sense.

--
In the beginning there was nothing. God said, 'Let there be light!' And
there was light. There was still nothing, but you could see it a whole lot
better.
 - Ellen DeGeneres

--
In the beginning there was nothing. God said, 'Let there be light!' And
there was light. There was still nothing, but you could see it a whole lot
better.
 - Ellen DeGeneres
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to