Then show us some example HTML and some code that is using watir that shows what you are trying to do.
I have for example zero idea what mail system you are even trying to access, you've given us pretty much zero info other than the code you want to replace (which itself has very little info we could infer). if you are expecting the folks here to write your code for you, that's not going to happen. we'll provide guidance, advice, and try to get you unstuck etc. but we're not going to port code from some other gem over to use watir starting from nothing. Nearly all of us have our hands full doing our own work, and little time to do someone elses work for free. If you have not already done so, spend some time in the watir tutorial http://wiki.openqa.org/display/WTR/Tutorial or with the Watir Book http://watir.com/book/ (which tends to be more current than the wiki tutorial) to get you started. On Tuesday, April 24, 2012 1:49:14 PM UTC-7, Bhavesh wrote: > > Yes, im doing this in watir. > > Instead of using mail gem, im using this method to retrive emails. > > I dont want to install gem "mail". > > I need to know how to get values instead of these hash values. > > Bhavesh > > On Apr 24, 1:36 pm, Chuck van der Linden <[email protected]> wrote: > > The mail gem has it's own google group, the link is in the readme look > > here: https://github.com/mikel/mail/ > > > > That would be the better place to ask your question > > > > On Tuesday, April 24, 2012 1:32:00 PM UTC-7, Chuck van der Linden wrote: > > > > > > > > > > > > > > > > > > > > > I see no watir in your code below, why are you posting this question > > > here? > > > > > On Tuesday, April 24, 2012 1:28:08 PM UTC-7, Bhavesh wrote: > > > > >> Hi, > > > > >> Im trying to access links inside an email. > > > > >> Im am not using Gem “mail”. > > > > >> Im doing very simple stuff here. > > > > >> Just getting unread email from the mailbox and then getting the links > > >> present inside that email. > > > > >> When I try to get email bocdy, I get without error. > > > > >> But similarly when I try to get links present inside that email, it > > >> shows Hash value instead of actual links. > > > > >> Code is : > > > > >> #Getting email body/Links of unread email > > >> inbox = mapi.GetDefaultFolder(6) > > >> inbox.Items.each do |message| > > >> #puts message.body if message.Unread > > >> puts message.Links if message.Unread > > > > >> What I have to change to get the actual links. > > > > >> Bhavesh -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
