What's the difference between '<invoke url="somepage">' and 'ant.invoke(url: 
somepage)' ?

I've got a test where, if I use the former, I get the page content I expect, 
but if I use the latter, the page content is not as expected...

This works as I expect, allowing retrieval of the correct anchors:

      <invoke url="somepage" description="Get it"/>
      <scriptStep description="Process it" language="groovy">
        document.getHtmlElementsByAttribute('a', 'title', 'SpecialAnchor').each 
{
            ...
        }
      </scriptStep>

But this doesn't:

      <scriptStep description="Process it" language="groovy">
        ant = new com.canoo.webtest.extension.groovy.MacroStepBuilder(step)
        ant.invoke(url: somepage);
        document.getHtmlElementsByAttribute('a', 'title', 'SpecialAnchor').each 
{
            ...
        }
      </scriptStep>

Anyone have some insight as to why?

Many thanks...

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

Reply via email to