Thanks, that works with the new version (doesn't with the old, so am waiting to see if we can resolve our javascript button problems). -- Lisa
On Mon, Sep 13, 2010 at 1:25 AM, Marc Guillemot <[email protected]> wrote: > Hi Lisa, > > HtmlUnit's API has changed. You have to change: > > > println index + "-> name: " + it.name <http://it.name> + ", url: > " + > > it.enclosedPage.webResponse.url > > to > println index + "-> name: " + it.name <http://it.name> + ", url: " + > it.enclosedPage.url > > > cheers, > Marc. > -- > HtmlUnit support & consulting from the source > Blog: http://mguillem.wordpress.com > > > > On 09/09/2010 09:39 PM, Lisa Crispin wrote: > >> One of our webtest scripts gets this error with the latest version (we >> are on R_1762 currently, and I'm trying to move to R_1809). I searched >> on the error, but the results did not enlighten me. >> >> Webtest script has: >> <clickLink description="click to see the trade file" >> href="epltrade"/> >> >> <!-- This will show the open window. --> >> <groovy> >> def windows = step.context.webClient.webWindows >> def index = 0 >> windows.each >> { >> println index + "-> name: " + it.name <http://it.name> + ", url: " >> + >> >> it.enclosedPage.webResponse.url >> } >> </groovy> >> >> The clickLink works fine, brings up the file, but then there is an error >> on the groovy step: >> Error invoking groovy: No such property: url for class: >> com.gargoylesoftware.htmlunit.WebResponse >> >> Does groovy not support 'url' anymore? Or am I just missing something? >> Have I missed something in installing WebTest that is causing these >> errors we're seeing with the new version? >> thanks >> Lisa >> >> -- >> Lisa Crispin >> Co-author with Janet Gregory, _Agile Testing: A Practical Guide for >> Testers and Agile Teams_ (Addison-Wesley 2009) >> Contributor to _Beautiful Testing_ (O'Reilly 2009) >> http://lisacrispin.com >> @lisacrispin on Twitter >> >> > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter

