[Webtest] Photo input

Stefan Büche Stefan Büche
Mon, 23 Jan 2012 13:43:44 +0100


this looks to me as if Webtest works as expected. Your script references 
the div (id=product-image-input-file-1), where you cannot set any value. 
To upload your picture, you should reference the id of your input field:
setInputField htmlId: "imageUrl1", value: "listingImage.jpg"


Am 23.01.2012 13:29, schrieb mascis:
> Hi,
> I'm trying to input a photo for a test product but can't get it work.
> Webtest says: "Found div when looking for input".
> My input is: "setInputField htmlId: "product-image-input-file-1", value:
> "listingImage.jpg"" (groovy).
> Firebug describes element:
> <div id="product-image-input-url-1" class="product-image-input-url">
> <label for="test">Photo URL:</label>
> <input id="imageUrl1" type="text" value="" name="imageUrls">
> </div>