Dear all,
I'm facing a problem with Canoo on a page which upload a file.
My page contains an <input type="file">, to fill-in with the file name, and a submit button.
I fill-in the file name  with the function setFileField:
<setFileField name="fileArchive" fileName="c:\temp\GrilleTarifaire_274.zip"/>

Then I simulate a click on the button to upload the file.
<clickButton xpath="//[EMAIL PROTECTED]'charger']"/> (I use xpath because this button has no name or whatever so far..)

It works manually, but with Canoo the response is HTTP404.
Here is an extract of the code source:

        <form id="uploadFilesForm" method="POST" action="/admin/uploadFiles.to" 
enctype="multipart/form-data">

                ...
                <div class="column">
                Charger une nouvelle grille tarifaire :
                </div>
                <div class="action-charger">
                <input type="file" name="fileArchive" value="" 
onchange="CheckFormat_Archive();" class="rechercher" />
                        <input type="submit" value="Charger" onclick="return 
verifForm(this.form);" class="charger" />
                        <input type="hidden" name="productId" value="1081" />
                </div>
                ...
        </form>

Note: of course I checked that I have only one button with class="charger".

Would you have any idea?

Many thanks for your help
Delphine



_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to