Basic http access authentication

16 views
Skip to first unread message

Willem Vermeer

unread,
Mar 19, 2014, 6:57:45 AM3/19/14
to subs...@googlegroups.com
Hi,

With the present version of Substeps I don't think it's possible to test against a URL protected by basic http access authentication. I've tried adding the user/pasword in the URL configuration like this:

base.url=http://user:pass...@test.server.nl


but this doesn't seem to be working. Is there another way to set this up?


Thanks,

Willem

Ian Moore

unread,
Mar 20, 2014, 4:05:38 AM3/20/14
to subs...@googlegroups.com
Hi Willem,

This isn't something we've had to try ourselves yet so I'm not sure what the best workaround is, I think this is possibly a limitation of webdriver - if you google "webdriver basic authentication" you'll find plenty of people asking the same thing.  If using Firefox is seems like you need to tweak the Driver that's created.  As a suggestion, are you able to request the page using credentials not using the NavigateTo method, just using the underlying webdriver in your own step implementation ?

If you do need to customise the Driver with a profile or setting etc, you could create your own WebDriverFactory and set via the property webdriver.factory.class=MySpecialWebDriverFactory, that implements the WebDriverFactory interface.

Hope that helps a bit, if you find a solution I'd be interested to hear how you did it!
cheers
Ian


On Wednesday, 19 March 2014 10:57:45 UTC, Willem Vermeer wrote:
Hi,

With the present version of Substeps I don't think it's possible to test against a URL protected by basic http access authentication. I've tried adding the user/pasword in the URL configuration like this:

Reply all
Reply to author
Forward
0 new messages