Hey, u used wrong regular expression.

Use following regular expression for each of the field in page.
_JF:A[1-9]+2
_JF:A[1-9]+5
_JF:A[1-9]+9

i.e. last digital for the above filed in 2 page are same.

-Hokrani

On Tue, Nov 18, 2008 at 4:13 PM, mabobine <[EMAIL PROTECTED]> wrote:

>
> There are three text fields on two pages say Name, Place, Location
>
> All other property of the text field are unique except for the
> property name.
>
> The property "name" of these fields on page 1 are:  _JF:A12, _JF:A25,
> _JF:A59
>
> The property "name" of these fields on page 2 are:  _JF:A32, _JF:A45,
> _JF:A99
>
> I used regular expression and function so that these three fields can
> be used on two pages one by one. To regularize them, I did _JF:A.*
>
> It worked fine on page1, but on page2, it displayed me an error
> message
>
> The "Location Name" object's description matches more than one of the
> objects currently displayed in your application. Add additional
> properties to the object description in order to uniquely identify the
> object.
>
> Q. 1. Why is the error message displayed when there are only 3 text
> fields on the page? If you go with the logic, then for the first text
> field, it see _JF:A.* and goes on to next field. Then does the same
> and so on.
> Q.2.  There is no other unique ID that i could use except for the
> property name. I don't want to use it as unique as it changes from one
> build to the other.
>
> I would appreciate if someone would elaborate so that i can get some
> concept of what is going on.
>
> Thanks in advance
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to