links in the email content in outlook from QTP
I am using QTP tool to read the emails .
I can retrieve the CC, sender name, subject and email content too which in HTML format.
But I am not able to click on the link in the email content.
From QTP we are not able to record this.
please suggest me how I can handle this from VB script and by using OUTLOOK objects.
Re: links in the email content in outlook from QTP
Please help me out.
My Scenario is to click on hyperlink in the email body, which I can retrieve from below code:
Set objOutlook = CreateObject "Outlook.Application")
Set myNameSpace = objOutlook.GetNameSpace("MAPI")
Set ClientFolder = myNameSpace.GetDefaultFolder(6)
Set myItems = ClientFolder.Items
Set myItem = myItems.GetFirst
EmailBodyStr = myItem.Body
How can I click on the hyperlink in the email content?