The name for the object, choose us. It is like a name of variable.
It doesn't do anything to make QTP recognize the objects, but it makes
to coder itself clear what is this object and what you expect from it.
If the same button once called "button1" another "button2" it is not
OK, it should called "Meaningful Name", and code/properties should be
fixed. If doesn't work, there are option to use descriptive
programming.
Today there are a lot of tools with generate HTML code automatically,
developers can't add ids to all such objects, even if they can, next
version, ids will be lost, after compilation. But there is still a lot
of ways to recognize an objects. One of them to see a context where
the object located, it can be in the same row in a  table with other
element, or the object can be button just before/after an edit edit
box, dynamic Ids, usually have some name convention, etc... or, if
there is only two buttons, ordinary property may work very well.


On Thu, Feb 10, 2011 at 7:58 PM,  <[email protected]> wrote:
> Hello Roman,
>
> Please give some more detail or direct to where in User Guide I can find out
> how to "Give normal names to image objects".  I have to give a unique id to
> some button images because the html id keeps changing in the .NET framework.
> If I click the little gold star in the Add Properties pop-up, is this where
> I look into it?
>
> In a message dated 2/9/11 11:16:57 P.M. Eastern Standard Time,
> [email protected] writes:
>
> Hi Neil,
>
> Try to use:
>
> "file name:=bt_select\.jpg"
> index: 0
>
> "file name:=bt_select\.jpg",
> index:1 //you can use location as well
>
> and give to the image objects normal names (as
> Page("Kiosk").Image("Find Product"), Page("Kiosk").Image("Add To
> Basket") ), not bt_select_3. It adds all the confusion to the
> discussion.
>
> If you have only  two images, it will work
>
> Roman
>
> --
> 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

-- 
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