Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clicking a link in an outlook email using QTP
#1
Not Solved
Hi ,
I need to automate clicking on an activation link which is sent as part of an auto-generated email.

I am able to display the email,but unable to get QTP to focus on the link to click it.

Here's my code :

Code:
Set objOutlook = CreateObject("Outlook.Application")
Set objNameSpace = objOutlook.GetNamespace("MAPI")

' Secondary mailbox
Set objFolder= objNameSpace.Folders(2)
'msgbox objFolder
' Display the mailbox
objFolder.display()
'Set the Folder
Set InboxFolder =objFolder.Folders("Inbox")
msgbox "Opened " &objFolder
    

For Each x In InboxFolder.Items
        x.Display
'Exit the for loop once the first email is found  
Exit For  
Next


The email contains a link that I need to click on.

Any suggestions /help will be highly appreciated.

Thanks,
Kirti
Reply


Messages In This Thread
Clicking a link in an outlook email using QTP - by kirti - 06-15-2014, 01:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Send automatic email notification when test run started helmzshelmz 0 1,068 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  Winbutton slow in clicking kpat 0 1,802 05-23-2016, 12:09 PM
Last Post: kpat
  Clicking on sublink venkatesh9032 1 2,771 06-01-2015, 08:26 PM
Last Post: babu123
  How to attach HTML file to Email Naresh 0 3,062 04-06-2015, 02:04 PM
Last Post: Naresh
Exclamation Login & logout in Siebel and clicking pop-up button yuetling926 7 11,337 07-09-2014, 10:43 PM
Last Post: hhamilton

Forum Jump:


Users browsing this thread: 1 Guest(s)