Micro Focus QTP (UFT) Forums
How to send mail from yahoo through Descriptive Programming - 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 send mail from yahoo through Descriptive Programming (/Thread-How-to-send-mail-from-yahoo-through-Descriptive-Programming)



How to send mail from yahoo through Descriptive Programming - jinnah1978 - 02-19-2012

Hi This is my very first post. I have just started learning QTP from this month. I am working hard to learn it. Hope this forum will help me.

Anyway. I am trying to send an email from yahoo mail. But I can't compose the text in the body. Object name is WebElement, so SET"" doesn't work. All other things are fine. Please help me how to compose in the body part.


RE: How to send mail from yahoo through Descriptive Programming - inborntester - 02-20-2012

hi jinnah1978,

it may happen in qtp projects, application GUI objects are not recognized properly. we have to go with workarounds. Below i have used DOM feature to make it.

Code:
set a=Browser("").Page("").Frame("").WebElement("WebElement").Object
a.innerText="how are you"

All the best for your QTP journey!


RE: How to send mail from yahoo through Descriptive Programming - mrajeshtnl - 02-21-2012

i am new to QTP, can u pls tell me about DOM feature? where & when it can be useful, and importance of it..

thank you


RE: How to send mail from yahoo through Descriptive Programming - jinnah1978 - 02-21-2012

Thanks inborntester. You are great! Hope to get you guys throughout my journey