WebElementobject's description matches more than one of the objects - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: WebElementobject's description matches more than one of the objects (/Thread-WebElementobject-s-description-matches-more-than-one-of-the-objects) |
WebElementobject's description matches more than one of the objects - sumanth - 10-29-2013 HI, I am trying to Automate the logon button using static DP. My code is like below: Code: Browser("title:=****").Page("title:=****").WebElement("htmltag:=***").Click The "[ WebElement ]" 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. When i am using the above code ,getting the below error. I have tried adding index and checked,not getting the error but not clicking on the logon button. Please suggest me what are the steps to resolve the above issue. Thank you, Sumanth RE: WebElementobject's description matches more than one of the objects - Sathiya - 10-29-2013 Hi Sumanth, Before doing it via DP please try once using recording option and then check for the objects projects captured in the OR. try to use regular expression and add few more properties to identify. RE: WebElementobject's description matches more than one of the objects - sumanth - 10-29-2013 Hi, I have added the objects in OR and tried ,it is working fine. I have added few more properties also ,still the same error .Also added the index ,now no error but not clicking on logon button. Please let me know what needs to be done to solve the below issue using DP. The "[ WebElement ]" 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. Thanks. RE: WebElementobject's description matches more than one of the objects - Sathiya - 10-29-2013 is it possible to share the screenshot of that objects properties? RE: WebElementobject's description matches more than one of the objects - sumanth - 10-29-2013 Hi, I am unable to attach a screen shot. RE: WebElementobject's description matches more than one of the objects - Sathiya - 10-29-2013 ok no probs. did you try with adding additional properties to identify that object? |