How to get a multi_line text ? - 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: How to get a multi_line text ? (/Thread-How-to-get-a-multi-line-text) |
How to get a multi_line text ? - Vandembergue - 04-22-2010 [attachment=422]Hi There, I cannot find how to get a multi-line text. My problem is that a dialog box appears when a mandatory editbox is not filled up when clicking to get to the next page. I have to get the text written in the dialog box. I tried to use GetROProperty this way : Code: If Browser("Connexion à PeopleSoft").Dialog("Microsoft Internet Explorer").Exist(1) Then 1) As the text is <multi-line value> => error Thanks Alain RE: How to get a multi_line text ? - manishbhalshankar - 04-23-2010 Hi Alain, Seems as if you clicked on the title bar of your dialog box. Try recording the click event directly on the text message and then replace the .Click with GetROProperty. After recording the click event check which property gives you the complete text message. RE: How to get a multi_line text ? - Vandembergue - 04-23-2010 Thanks for replying but I finally solve my problem using this : Code: Dialog_Text = Browser("Connexion à PeopleSoft").Dialog("Microsoft Internet Explorer").GetVisibleText Regards Alain |