![]() |
Can QTP AOM identify word documents that are already opened - 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: Can QTP AOM identify word documents that are already opened (/Thread-Can-QTP-AOM-identify-word-documents-that-are-already-opened) |
Can QTP AOM identify word documents that are already opened - anil2u - 08-06-2013 Hi, One of my application opens two word documents. My test objective is like this: 1. Check If there are two word documents opened 2. Close one of the word document and check the other is still open or not 3. Close the second document and check no word documents are open. I am trying to handle this documents using QTP AOM, but I am not able to find anything that works. Can anyone help on this. Best regards, Anil RE: Can QTP AOM identify word documents that are already opened - tanyamrz - 08-13-2013 Hi Anil, sorry for Late Reply. Please check the below code Code: Set element = description.Create it might be useful for some other people Thanks -Tanya RE: Can QTP AOM identify word documents that are already opened - anil2u - 09-05-2013 Hi Tanya, Thanks for the reply. The above approach works very well. I was trying to use AOM i.e CreateObject("Word.Application") which wasn't identifying already created word docs. I think what you suggested is the best way to deal with this, which I did too. Cheers, Anil |