When you run the following action:

Browser("title:=.*").Back

You are instructing QTP to find a browser with any title to navigate
back. However, if there are 2 or more browsers running on your
Desktop, QTP will not know which browser to run the above action on
since it will be able to match the description you provided with more
than 1 browser. Thus, the cause of the following error message:

The "[ Browser ]" 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.

If you observe the error message, it hints that you might have to add
one or more properties to uniquely identify it. As Roman mentioned in
his post, you could use the 'creationtime' property of the browser,
which is unique to each open browser. You could also use index, but
this one can be a little tricky. You could also use the title that you
did in the following action of yours:

Browser("title:=Google").Page("title:=Google").ChildObjects(oDesc)

The idea is that whenever you receive this particular error message,
you would have to write a description that would help QTP uniquely
identify the object you are running your test on.

I hope this helps a little.

- Anshoo Arora

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