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


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

Forum Jump:


Users browsing this thread: 1 Guest(s)