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