boonhoo wrote:

>I have some difficulty such as tampering with parameters in drop-down
>lists, checkboxes or bypassing javascript validation controls on form
>fields, as watir APIs don't seem to support changes to the html
>elements (apart from text field values...)
>  
>

I have needed, on occaision, to disable client-side validations in order 
to test server-side routines.  We found a very simple method of doing 
this using OLE.

You can do something like:

ie.document.parentWindow.execScript("function validateMainForm() { 
return true; }")

This will kill a validator function (you need to know the function name 
in advance) for your next form submit.

-- 
Alf Whitehead [EMAIL PROTECTED] 416-214-4977 x260
Quality Assurance Specialist
Klick Communications, http://klick.com/

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to