Hi

On 1 mars 07, at 01:09, Chang Su wrote:

The xml is as follows,

...
<storeXPath
description="Extract href of next button"
xpath="//a [EMAIL PROTECTED]'form1:table1:_tableActionsBottom:_paginationNextButton']"
property="uri" />

<ifStep test="#{uri}" >
<clickElement
xpath="//a [EMAIL PROTECTED]'form1:table1:_tableActionsBottom:_paginationNextButton']"
/>
<verifytitle
      text="All Domains"/>
.....
</ifStep>


If I use test="#{uri}", I got exception as below, and
if I use "${uri}" the test fails even though the
button exists in the page.

Seems test parameter in <ifStep> only recognize "true"
or "false" but nothing else. How do I translate the
property of xpath into a boolean "true" or "false"?

about something like:

<ifStep>
        <condition>
<verifyXPath xpath="boolean(//a [EMAIL PROTECTED]'form1:table1:_tableActionsBottom:_paginationNextButton'])" />
        </condition>

<clickElement xpath="//a [EMAIL PROTECTED]'form1:table1:_tableActionsBottom:_paginationNextButton']" />
...
</ifStep>


Best
        dna

--
No one can write decently who is distrustful of the reader's intelligence, or whose attitude is patronizing.
  - William Strunk & E. B. White, The elements of style


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to