Thanks Paul, I tried following but could not get it to
work,
<storeXPath
description="Extract href of next button"
xpath="//[EMAIL
PROTECTED]'form1:table1:_tableActionsBottom:_paginationNextButton']"
property="uri" />
<ifStep test="${uri}" >
<clickElement
xpath="//[EMAIL
PROTECTED]'form1:table1:_tableActionsBottom:_paginationNextButton']"
/>
<verifytitle
text="All Domains"/>
.....
</ifStep>
it could not pass the test though the button is
present. Do you spot any problem with above code?
thanks,
Mary
--- Paul King <[EMAIL PROTECTED]> wrote:
>
> Maybe ifStep is what you are after:
>
> http://webtest.canoo.com/webtest/manual/ifStep.html
>
> Store an xpath that would be true based on the next
> link
> and use that as the test parameter.
>
> Paul.
>
> Chang Su wrote:
> > Hi,
> >
> > I have a BUI page which mainly includes a table.
> If
> > the rows in the table are more than 10, then there
> is
> > a "Next" button shown on the page and clicking on
> it
> > goes to next page of the table.
> >
> > So I need to implement something like,
> >
> > 1. use <scriptStep> to obtain table contents on
> page 1
> >
> > 2. If there is a "Next" button on the page, click
> the
> > button to go to next page
> >
> > 3. use <scriptStep> to obtain table contents on
> page 2
> >
> > I know how to do 1) and 3), however I don't know
> how
> > to implement the if logic using webtest. Anyone
> has
> > idea how to implement this?
> >
> >
> > thanks,
> >
> > Chang
> >
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Food fight? Enjoy some healthy debate
> > in the Yahoo! Answers Food & Drink Q&A.
> >
>
http://answers.yahoo.com/dir/?link=list&sid=396545367
> > _______________________________________________
> > WebTest mailing list
> > [email protected]
> > http://lists.canoo.com/mailman/listinfo/webtest
> >
> >
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest