sclevine / agouti

A WebDriver client and acceptance testing library for Go
MIT License
821 stars 105 forks source link

Possibility to use a torbrowser #140

Closed marcelloh closed 6 years ago

marcelloh commented 6 years ago

I want to test with changing ip adresses via tor. Is this possible?

I found this for 'simple' browsing: https://gist.github.com/Yawning/bac58e08a05fc378a8cc but not sure in how to use this with Agouti

sclevine commented 6 years ago

You would need to configure Agouti to connect to a WebDriver that controls a browser that is configured to use Tor. One way to do this would be to run an HTTP proxy configured to use a tor SOCKS proxy, and provide the HTTP proxy in the DesiredCapabilities when connecting: https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities

sclevine commented 6 years ago

Also helpful: https://godoc.org/github.com/sclevine/agouti#ProxyConfig

sclevine commented 6 years ago

Closing as resolved. Let me know if you have more questions.