[Webtest] Re: How to handle multiple Links with ClickLink?
Lisa Crispin
webtest@lists.canoo.com
Fri, 06 Aug 2004 20:07:22 +0000
I agree, it's not likely that all our existing HTML pages will be updated, but the programmers are using id's in all the new HTML.
I use Ji's suggestion of storeregex to pick up the URL and use invoke when clicklink/clickbutton doesn't work for whatever reason. Here's an example. I send in the expression as a property because it can be different.
<storeregex stepid="get type of adoption agreement"
text="${adoptionExp}"
property="adoptionType"
group="1"
/>
<invoke stepid="get adoption agreement"
url="pdfsend?type=#{adoptionType}"/>
Jeannie Graham sent me these examples when I was starting out and they helped me a lot.
link code: <clicklink
stepid="Click Get a Quote button/link"
label=""
href="/NALController.srv?action=NEW_SEARCH" />
button code: <clickbutton
stepid="Click Next Page button"
label="" >
<form name="rate_form" />
<index value="0" />
</clickbutton>
-- Lisa
-------------- Original message from "Ji Kim" : --------------
> I believe that if the links have different parameters then you can
> specify the distinct part of the url in href attribute.
> Example to pick
> the second one. Another way will be extract the url with
> and and use to get the page.
>
> I don't know about others but it's not likely that I can have people
> start updating immense work of html pages so that I can test better
> though I will try to ask them to follow the standard better.
>
> -----Original Message-----
> From: webtest-admin@gate2.canoo.com
> [mailto:webtest-admin@gate2.canoo.com] On Behalf Of Andre Heilmann
> Sent: Friday, August 06, 2004 7:03 AM
> To: webtest@gate2.canoo.com
> Subject: [Webtest] Re: How to handle multiple Links with ClickLink?
>
> for the future it would be the best. In most of our tags we have id's
> which were automaticly generated but not on this site cause there are
> only links on it.
>
> Thanks for the fast help
> Andre
>
> > can you change the html code? If positive, then give your links an id
> > and you will never have to care anymore on the labels or urls, just on
>
> > the functionality of the links.
> >
> > > > id="linkRegisterA">Registrierung
> > > > id="linkRegisterB">Registrierung
> >
> > > > stepid="Link Registrierung folgen"
> > htmlid="linkRegisterB"
> > />
> >
> > Marc.
> >
> > Andre Heilmann wrote:
> >
> >> Hello everybody,
> >>
> >> There are two Links:
> >> > >> href="catapult/Login/setModus?loginModus=ic&forward=registration">Reg
> >> istrierung
> >>
> >> > >> href="catapult/Login/setModus?loginModus=ez&forward=registration">Reg
> >> istrierung
> >>
> >>
> >> I want to follow the second Link with but this won't work
>
> >> because it follows the first one. The Parameters are different so how
>
> >> can i handle it? Both Links are for different registration.
> >>
> >> My code:
> >> > >> stepid="Link Registrierung folgen"
> >> label="Registrierung"
> >> href="catapult/Login/setModus?loginModus=ez&forward=registration"
>
> >> />
> >>
> >> Unfortunately the serverresponce is like following the first Link.
> >>
> >> Thanks for help
> >> Andre
> >>
> >> _______________________________________________
> >> WebTest mailing list
> >> WebTest@lists.canoo.com
> >> http://lists.canoo.com/mailman/listinfo/webtest
> >>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest