Hi,
   If HTML has image source say src = "">
try
ie.image(:src,/IMAGE_SRC.jpg/).click
 


Hrishikesh Jamadagni <[EMAIL PROTECTED]> wrote:
Hi
 
Let me know if this is the correct medium to ask doubts,
 
I have a problem , I want to click a button a jpg image ,
 
ie.button(:name, "pc_banner1").click
 
the given syntax is giving errors, cannot find the value or name of the button in view scource/html code
 
how do I click the button?
 
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of chaya shetty
Sent:
Thursday, November 24, 2005 5:42 PM
To: wtr
Subject: [Wtr-general] How to check maxlength validation for a textfieldusing watir?
 
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
_______________________________________________
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