Hi Ahmed, here is the html. Thank you much!
<tr> <th> Please Input a Name Here:* </th> <td> <input type="text" name="blah" maxlength="10" size="10" value="" onchange="onchange_planName(this)"> (maximum 10 characters) </td> </tr> ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ahmed Ashour Sent: Monday, October 27, 2008 12:45 PM To: webtest@lists.canoo.com Subject: Re: [Webtest] use two attributes to identify a node It works for me, can you please post your complete html? Ahmed ________________________________ From: "Meng, Lily" <[EMAIL PROTECTED]> To: "webtest@lists.canoo.com" <webtest@lists.canoo.com>; Ahmed Ashour <[EMAIL PROTECTED]> Sent: Monday, October 27, 2008 8:36:59 PM Subject: RE: [Webtest] use two attributes to identify a node 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: webtest@lists.canoo.com 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: " webtest@lists.canoo.com " < webtest@lists.canoo.com > 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