Hi Lily,
if you use the webtest-recorder you can verify the xpath-expression wenn
you open the result-file in the browser and enter the xpath-expression
in the left lower area of the recorder bar.
so its easy to verify the xpath-expression on your page.
Michael
Meng, Lily schrieb:
Thank you Ahmed.
It returns error message “ .. matched no nodes”. Any other suggestions?
Lily
------------------------------------------------------------------------
*From:* [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] *On Behalf Of *Ahmed Ashour
*Sent:* Monday, October 27, 2008 12:31 PM
*To:* [email protected]
*Subject:* Re: [Webtest] use two attributes to identify a node
Dear Lily,
Try:
//[EMAIL PROTECTED]'blah' and @maxLength='10']
Yours,
Ahmed
------------------------------------------------------------------------
*From:* "Meng, Lily" <[EMAIL PROTECTED]>
*To:* "[email protected]" <[email protected]>
*Sent:* Monday, October 27, 2008 8:27:00 PM
*Subject:* [Webtest] use two attributes to identify a node
Hi,
Does anyone know how to identify a node using two attributes in XPath?
I am testing the max length of an input field; I would liek to use
XPath to point to the name of the input field as well as testing the
length of it.
For example,
<tr><td>
<input maxLength=”10” name=”blah”></input>
</td></tr>
How should I verify this particular input field’s maxLength is 10?
Thank you,
Lily
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest