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 + ", 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

Reply via email to