waynard
waynard

Reputation: 83

Trying to use a proxy with Watir... (Rails)

I have a few proxies I want to use with my Watir integration that use authentication. There is no documentation for auth with proxies (http://watir.com/guides/proxies/). From a previous SO article, I read that it's supposed to be in this format:

proxy = {
      http: 'http://user:[email protected]:3128',
      ssl:  'https://user:[email protected]:3128'
    }

I create my browser object with the proxy like this: browser = Watir::Browser.new :chrome, headless: true, proxy: proxy

What am I doing wrong? Why isn't it routing the connection through the proxy?

Upvotes: 3

Views: 441

Answers (1)

Aymen Bou
Aymen Bou

Reputation: 1109

Watir is largely based on selenium. Selenium does not support authorization with proxying as of the time of this posting.

An issue has been brought up https://github.com/watir/watir/issues/798 but nothing has come of it yet. Possibly in the future; but I would suggest looking at alternative methods for right now.

Upvotes: 1

Related Questions