Re: Photo input

Stefan Büche <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <[email protected]>
Hi,

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"

Cheers,
Stefan


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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.