C
Chris McMahon
Hi...
After googling for lots of Win32OLE goodies, I've hacked the Watir
goto() method to pass Basic Authentication credentials:
def goto(url)
#@ie.navigate(url)
@ie.navigate(url,nil,nil,nil,"Authorization: Basic
AbdXyz46bG1ubw==\n")
wait()
sleep 0.2
return @down_load_time
end
and it works!!
The only problem is that it works only for the very first transaction.
I'm now getting authorization popups for inline images and things on
the very first page.
Under normal circumstances, the browser, having passed basic
authentication credentials once to this site would know to *always*
pass
those credentials to that site for every subsequent GET/POST/whatever.
But that doesn't seem to be the case when I navigate() to the site from
within Watir's goto() method.
Any suggestions for persuading IE-controlled-by-Watir to always pass
auth credentials for every GET/POST would be welcome.
After googling for lots of Win32OLE goodies, I've hacked the Watir
goto() method to pass Basic Authentication credentials:
def goto(url)
#@ie.navigate(url)
@ie.navigate(url,nil,nil,nil,"Authorization: Basic
AbdXyz46bG1ubw==\n")
wait()
sleep 0.2
return @down_load_time
end
and it works!!
The only problem is that it works only for the very first transaction.
I'm now getting authorization popups for inline images and things on
the very first page.
Under normal circumstances, the browser, having passed basic
authentication credentials once to this site would know to *always*
pass
those credentials to that site for every subsequent GET/POST/whatever.
But that doesn't seem to be the case when I navigate() to the site from
within Watir's goto() method.
Any suggestions for persuading IE-controlled-by-Watir to always pass
auth credentials for every GET/POST would be welcome.