[Wtr-general] How To Add A Cookie Earned From Watir To Mechanize...
san
forum-watir-users at openqa.org
Fri May 4 08:43:07 EDT 2007
Hi People...
I Need To Add A Cookie From A Site That I Accessed Through Watir To A WWW::Mechanize Agent...
Is There Any Way To Do It, Or Will It Be Possible To Be Really Authenticated In The Site Then By Mechanize Agent..
e.g If I Say If I Login In Yahoo By Watir And Then Try To Access My Inbox By A New Mechanize Agent Will It Do?
ie=IE.new
ie.goto('....')
ie.... # Logged In
cookie = ie.document.cookie
agent = WWW::Mechanize.new
page = agent.get('....') # here I Want To Go To My Inbox But I Have Authentication Problem 401 error
I Hope If I Can Transfer Cookie To Mechanize It Will Authenticate Me...
Any Suggestions...
Thanks...
More information about the Wtr-general
mailing list