Hi all.

I wrote a mail to the jwebunit-users mailing list last week about providing a way to use the method

tester.setFormElementWithLabel

from a FIT-test using WebFixture. The response I got pointed to patch #711451. The comment to this patch is that it would be incorporated in WebFixture as soon as it was available in core jWebUnit. This is not the case, there is no way to use this method from WebFixture.

My suggestion would be to add the following method to WebFixture:
        
public void enterWithLabel() throws Exception {
        tester.setFormElementWithLabel(
                cells.more.text(),
                cells.more.more.text());
        }

and use the FIT notation:
|enter with label|<label>|<value>|

similar to when using IDs:
|enter|<elementID>|<value>|
which call the method

public void enter() throws Exception {
        tester.setFormElement(
                cells.more.text(),
                cells.more.more.text());
    }


Should I submit this as a patch at the sourceforge site? How? I have not been able to create a test-case for this addition, but it works when I use it.


--
TronD
--------------------------------------------------
Why do geeks get Halloween and Christmas confused?

Because 31oct = 25dec


------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ Jwebunit-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to