12-05-2011, 05:21 PM
Hi Soumya,
The error message itself tells about the problem.
QTP finds more than one object with the description properties given by you and unable to recognize object.
You need to use ordinal identifier in this case.
Use below code, it should work -
The error message itself tells about the problem.
QTP finds more than one object with the description properties given by you and unable to recognize object.
You need to use ordinal identifier in this case.
Use below code, it should work -
Code:
browser("name:=Google").page("title:=Google").webbutton("name:=Google Search", "index:=0").Click