Re: Custom XPATH functions?

Manish Ranade <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <CAHm3MGPGOfmovM2RXQroPxygLZyocVnhXtd+=Q5k8LkcfkxvGA@mail.gmail.com>
Hi Denis,

Thanks for the response. I was just wondering if there is any easier
way to reuse the complex xpath expressions rather than copying and
pasting again and again....or...make them like a function call. You
mention "steps with definitions"...I think I am not familiar with
that. Can you explain more what you mean by that?

Thanks,
Manish

On Fri, Feb 3, 2012 at 12:27 AM, Christ, Denis
<Denis.Christ-UPY0+Y04XXlSq5J3+rkI/[email protected]> wrote:
> Hi Manish,
>
> what do you mean with "use custom xpath functions"?
>
> The most time we use xpath expressions within the normal Webtest Steps like
>
>        <clickLink xpath="//div[@id='someID' and contains(*, '@{someNumber}')]/p[a='a Reference']/a"/>
>
> You could reuse this steps with definitions.
> Also:
>
> http://webtest.canoo.com/webtest/manual/verifyXPath.html
>
> could be interesting for you.
>
>
> Kind Regards,
> Denis
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:[email protected]] Im Auftrag von Manish Ranade
> Gesendet: Freitag, 03. Februar 2012 09:14
> An: [email protected]
> Betreff: [Webtest] Custom XPATH functions?
>
> Hi,
>
> Where can I find examples on how to create and use custom xpath functions in Canoo Webtest framework?
>
> Thanks,
> Manish
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest



-- 
Regards,
Manish Ranade
Phone: 408-596-6546
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.