From: Parham, C. <cp...@bi...> - 2015-07-08 14:50:33
|
Ahmed, Do you know how often Maven snapshot builds are posted? We would like to verify your change but the last build is still from June: https://oss.sonatype.org/content/repositories/snapshots/net/sourceforge/htmlunit/htmlunit/2.18-SNAPSHOT/ Thanks. From: Parham, Clinton Sent: Friday, July 03, 2015 9:25 AM To: 'htm...@li...' Subject: RichFaces fileUpload: Cannot call method "match" of undefined Hello HTMLUnit users, I've been using HTMLUnit for a while with the RichFaces fileUpload component. But after a recent RichFaces update (from 4.3.7 to 4.5.7), my test no longer works: TypeError: Cannot call method "match" of undefined I've tried updating to HTMLUnit 2.17 and still get the error. A testcase to reproduce is included below. How can I get this working again? Thanks, Clint package myTests; import org.junit.Test; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlInput; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HTMLUnitTestCase { final WebClient webClient = new WebClient(); @Test public void testRichFacesFileUpload() throws Exception { final HtmlPage page = webClient .getPage("http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload&skin=blueSky"); HtmlInput htmlInput = (HtmlInput) page.getByXPath( "//input[@type='file']").get(0); htmlInput.setValueAttribute("/tmp/KYN_TopLeft.PNG"); } } ________________________________ The contents contained herein may contain confidential information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or action taken on the contents is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete this message. |