Hi chuck,
You are still not getting me.
Im am using Watir, and an webapplicaiton.
From my application, i can send notification.
Once notification is received in Outlook Inbox, i have to get the
links in that emails.
I automated using Watir till i can send the notification on an web
application.
I have written code to get emails also from the Outlook in watir
script [which i have pasted in last thread].
Now im getting some different result which i dont understand as why
hash value is returned instead of actual links.
Hence i posted the query in Watir forum.
This thread is now going in some different direction instead of my
problem.
Since im not using "mail" gem, i cannot post an query to ruby-mail
forum.
this is simple WATIR script.
Here is the Snapshot of the full script.
######################
# encoding: utf-8
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '../..') if $0 ==
__FILE__
require 'Lib/KazeonCommon/BasicMethodLibrary'
require 'Lib/KazeonCommon/LegalUIMethodLibrary'
require 'Lib/KazeonCommon/WebAutosetup.rb'
class Mail < Test::Unit::TestCase
def test_0010
$ie.goto($legalLink)
sleep(5)
kazeonLegalLogin("LEGALUI",domain="Local",
loginName="legaladmin")
#kazeonLegalLogin("LEGALUI",domain="Local",
loginName="legaladmin")
sleep(10)
printTestCaseInfo("LEGALUI0007", "create a case with case id,
status 'open', value in Description and value in Responsible
Attorney")
#puts "Select and add reviewers in legal"
# $ie.div(:class => "x-grid3-cell-inner x-grid3-col-
reviewername", :text => "bhavesh").click
# sleep(5)
# $ie.link(:id, "button2").click
# sleep(5)
sleep(5)
puts "Select Active Case"
selectActiveCase("case4")
clickOkButton()
puts "Select Notify Custodian Button"
$_ = $ie.html
$ie.button(:class, "x-btn-text sendemail").click
sleep(5)
puts "Select Add Receipient Button"
$ie.button(:class => "x-btn-text addReviewer", :index => 2).click
sleep(5)
puts "Select Non Ad User Radio Button"
$ie.radio(:value, "nonADUser").click
sleep(5)
puts "Enter Username"
$ie.text_field(:id, "lookupFilter").set("
bhavesh...@emc.com")
sleep(5)
puts "Click Go Button"
#$ie.link(:id, "getData").click
sleep(5)
puts "Select User"
$ie.div(:class => "x-grid3-cell-inner x-grid3-col-2", :text =>
"
bhavesh...@emc.com").flash
sleep(2)
$ie.div(:class => "x-grid3-cell-inner x-grid3-col-2", :text =>
"
bhavesh...@emc.com").left_click
sleep(5)
puts "Select Add selected Button"
$ie.button(:value, "Add Selected").click
sleep(3)
puts "Select Close Button"
$ie.button(:value, "Close").click
sleep(5)
puts "Select Send Notification button"
$ie.button(:text, "Send Notifications").click
sleep(10)
puts "Done"
outlook = WIN32OLE.new('Outlook.Application')
mapi = outlook.GetNameSpace('MAPI')
folders = mapi.Folders
new_messages = 0
#Getting email body of unred email
inbox = mapi.GetDefaultFolder(6)
inbox.Items.each do |message|
#puts message.body if message.Unread
puts message.Links if message.Unread
end
end
end
##################
Last line im getting unexpected result, for which i posted the query.
I dont want to put all code in the post, otherwise it is very big .
I hope im clear this time.
bhavesh
> > tutorialhttp://
wiki.openqa.org/display/WTR/Tutorialor with the Watir
> > Bookhttp://
watir.com/book/(which<
http://watir.com/book/%28which> tends