Hi,
you can also use something like this:
<repeat xpath="//a[contains(@href,'http')]/@href" counterName="curLink">
<storeXPath xpath="$curLink" property="uri" />
<invoke description="Click link" url="#{uri}"/>
<previousresponse/>
</repeat>
Roman.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ???
Sent: Friday, November 28, 2008 7:52 AM
To: [email protected]
Subject: [Webtest] help about canoo
Hi, guys
i want to use canoo as spider to crawl some pages ,
Problem
when i invoke index.html ,i want to use reg exp to find some suitables links
and crawl sub link's information .
but canoo only give me the one suitable link and download ,i want all of
suitable links. it looks it has not loop function . how can i do it ?
Any idea? Thanks !
This is my some part of my test.xml
<group description="using StoreRegEx">
<storeRegEx description="find suitable "
text="<a[^>]+href="([^"]+)"[^>]*>" group="1"
property="targetLocation" />
<invoke description="Invoke target page specified in
suitable link" url="#{targetLocation}" save="targetPage" />
</group>