Hi,

have you replaced htmlunit-1.11.jar with a recent snapshot? I think that
this is a regression that has been present for 1 or 2 weeks in HtmlUnit
builds (now fixed).

Marc.


Andrew Sickorsky wrote:
> 
> Hi all!
>   I've got an exception:
> 
> 2007-07-31 10:43:09,925 [INFO,Step,main] Message was: Unexpected 
> exception caught: java.lang.IllegalArgumentException: Invalid 'value' 
> attribute: H:\texuna\services-new\analysis\test-web\testdata\excelfeed.xls
> 
> during test execution after attempt to use 'file' field.
> Note, that file is valid, file path is valid and all seems working 
> several times ago. Latest build of Canoo Webtest was used. The error 
> occures for IE and Firefox user agents.
> Test code:
>     <verifyTitle text="Bitcut"/>
>     <verifyXPath 
> xpath="//[EMAIL PROTECTED]'dashboard-icons']/[EMAIL PROTECTED]'create']"/>
>     <clickElement 
> xpath="//[EMAIL PROTECTED]'dashboard-icons']/[EMAIL 
> PROTECTED]'import_excel']"/>
>     <setFileField 
> xpath="//[EMAIL PROTECTED]'import-excel']//[EMAIL PROTECTED]'field']" 
> fileName="${analysis-test-web.dir}/testdata/${excel.name}"/>
>     <clickElement 
> xpath="//[EMAIL PROTECTED]'import-excel']//[EMAIL 
> PROTECTED]'upload-button']"/>
> 
>   what is the problem and how i can repair the test?
> 
> Stacktrace:
> 2007-07-31 10:43:09,784 [INFO,Step,main] >>>> Start Step: clickElement 
> (18/31)
> 2007-07-31 10:43:09,784 [INFO,AbstractTargetAction,main] -> gotoTarget 
> by clickElement with xpath: 
> //[EMAIL PROTECTED]'import-excel']//[EMAIL PROTECTED]'upload-button']
> 2007-07-31 10:43:09,831 [INFO,WebClientContext,main] Content of window 
> changed to about:blank (text/html)
> 2007-07-31 10:43:09,831 [INFO,WebClientContext,main] Content of window 
> changed with javascript, it will NOT become current response
> 2007-07-31 10:43:09,909 [INFO,Step,main] Running with: Canoo Webtest: 
> R_1551.
> 2007-07-31 10:43:09,909 [INFO,Step,main] Exception thrown from this 
> class: java.lang.IllegalArgumentException
> 2007-07-31 10:43:09,909 [INFO,Step,main] Message was: Invalid 'value' 
> attribute: H:\texuna\services-new\analysis\test-web\testdata\excelfeed.xls
> 2007-07-31 10:43:09,909 [ERROR,Step,main] Cannot handle unexpected 
> exception in step ClickElement at 
> H:\texuna\services-new\analysis\test-web\use-cases\debug-test.xml:8:  
> with (taskName="clickElement")
> java.lang.IllegalArgumentException: Invalid 'value' attribute: 
> H:\texuna\services-new\analysis\test-web\testdata\excelfeed.xls
>     at 
> com.gargoylesoftware.htmlunit.html.HtmlFileInput.getSubmitKeyValuePairs(HtmlFileInput.java:118)
>     at 
> com.gargoylesoftware.htmlunit.html.HtmlForm.getParameterListForSubmit(HtmlForm.java:259)
>     at
> com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:189)
>     at 
> com.gargoylesoftware.htmlunit.html.HtmlImageInput.doClickAction(HtmlImageInput.java:150)
>     at 
> com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:129)
>     at 
> com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
>     at 
> com.gargoylesoftware.htmlunit.html.HtmlImageInput.click(HtmlImageInput.java:176)
>     at 
> com.gargoylesoftware.htmlunit.html.HtmlImageInput.click(HtmlImageInput.java:132)
>     at 
> com.canoo.webtest.steps.request.ClickElement.findTarget(ClickElement.java:73)
>     at 
> com.canoo.webtest.steps.request.AbstractTargetAction$1.call(AbstractTargetAction.java:108)
>     at 
> com.canoo.webtest.steps.request.TargetHelper.protectedGoto(TargetHelper.java:88)
>     at 
> com.canoo.webtest.steps.request.AbstractTargetAction.gotoTarget(AbstractTargetAction.java:106)
>     at 
> com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTargetAction.java:78)
>     at com.canoo.webtest.steps.Step.execute(Step.java:104)
>     at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> 
> 
> begin:vcard
> fn:Andrew Sickorsky
> n:Sickorsky;Andrew
> org:Texuna Technologies Ltd.
> email;internet:[EMAIL PROTECTED]
> title:Tester
> tel;cell:+7 909 9070328
> x-mozilla-html:TRUE
> url:www.texunatech.com
> version:2.1
> end:vcard
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/java.lang.IllegalArgumentException%3A-Invalid-%27value%27-attribute-after-attempt-to-upload-file-tf4191270.html#a11921437
Sent from the WebTest mailing list archive at Nabble.com.

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

Reply via email to