[Webtest] Setinputfield not working
Koorosh Vakhshoori
webtest@lists.canoo.com
Thu, 06 Jan 2005 11:40:16 -0800
Hi Jerry,
I am new with Webtest, but with the latest version with support for
HTMLUNIT, it seems the 'TYPE' attribute in 'INPUT' tag is case sensitive.
Try changing your HTML to lower case. So change your HTML 'INPUT" tag to:
<INPUT TYPE="text" NAME="JERRY">XXXAAA
Take care,
Koorosh
At 11:23 AM 1/6/2005 -0600, HURSTG@Nationwide.com wrote:
>Is there some odd trick to making the setinputfield step work? I have been
>trying the most simple example I could think of and I can't get it to work.
>
>I have these steps in my test page:
>
><invoke
> stepid="get login page2"
> url="login.cfm" />
><verifytext
> stepid="find text"
> text='XXXAAA' />
><setinputfield
> stepid="enter"
> name="JERRY"
> value="pgh" />
>
>The HTML of my form page looks like this:
>
><HTML>
><HEAD>
></HEAD>
><BODY>
><FORM ACTION="FORMACTION.CFM" METHOD="POST">
><INPUT TYPE="TEXT" NAME="JERRY">XXXAAA
Koorosh: Change the above INPUT Tag to:
<INPUT TYPE="text" NAME="JERRY">XXXAAA
></FORM>
></BODY>
></HTML>
>
>I always get the error:
>
>Test step setinputfield (E:\_TESTING\urbcfd01\Modules\loginandstep.xml:10:
>) named "enter" failed with message "No form found with text field named
>"JERRY""
>
>The verifytext step works like a charm. The setinputfield step never
>works. I have tried different combinations of attributes in the HTML form,
>different placement, different ordering, different step ids, step names,
>values, etc. I tried new_setinputfield too. Nada.
>
>My response from the invocation of the form page looks perfect, as does
>its source. Everything looks like it should work, it just doesn't.
>
>Ideas?
>
>Jerry Hurst