Menu

Need to select an option that doesn't exist

Help
Brian John
2004-07-16
2004-08-03
  • Brian John

    Brian John - 2004-07-16

    I need to test a scenario that should not be possible in a web page conventionally.  What I basically need to do is to select an option from a select list that doesn't exist.  For instance, the select box has options with values 100,101,102,103,etc. and I need to be able to set that parameter to the value 1.  HttpUnit will not allow me to set this parameter to 1, even if I use form.getScriptableObject().setParameterValue().

    The way I see it there are two possibilities here:
    1.  Somehow force the parameter to the value 1.
    2.  Rewrite one of the options in the form to have the value 1 on the client side.

    Does anyone have any clue how I can accomplish this?

    Thanks,
    Brian

     
    • Vlad

      Vlad - 2004-08-03

      set
      HttpUnitOptions.setParameterValuesValidated(false);

      reset it back to true afterwards

       

Log in to post a comment.

MongoDB Logo MongoDB