![]() |
|
an object with same name displayed twice on a web page - 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: an object with same name displayed twice on a web page (/Thread-an-object-with-same-name-displayed-twice-on-a-web-page) |
an object with same name displayed twice on a web page - reejais - 09-28-2010 Hi All, My problem goes like this. I have a web page which contains company details and user details. There is an "edit" button for both company details and user details. With same values except for the co-ordinate change(I am talking about object properties here). The other thing is that the "edit" button for user details is not visible when I first open the page. I have to scroll down to click on edit button of user details. Now when I record this and run it says "object not matching.." My smart identification is ON too. Can anybody tell me how can I write my script so that it can identify the edit button of user details. Thanks in advance. Regards, Reema. RE: an object with same name displayed twice on a web page - QTPLearn - 09-29-2010 check the unique property of the edit button and then add it as an object. The error message which you are reffering is basically specifying the Object identification issue. While adding the Object ,don't add coordinates property. co-ordinates are dynamic and they are not reliable. ~Regards RE: an object with same name displayed twice on a web page - guin.anirban - 09-29-2010 Use index to differentiate same objects. RE: an object with same name displayed twice on a web page - balaji4u - 09-29-2010 Hi , You can use the index property or location property to identify those objects uniquely which shares the same Label or text. Regards. Balaji RE: an object with same name displayed twice on a web page - reejais - 09-30-2010 Index Property for the Edit object is "None" and I don't want to use Location because I feel it is not the right way to do it. Actually I would like to mention here is that the Edit object is not a "button" but a "Link" RE: an object with same name displayed twice on a web page - guin.anirban - 09-30-2010 you store the same object in the repository with the different logical name keeping the index 0 and 1 respectively. |