Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Possibility to change proxy runtime #13190

Closed
wants to merge 1 commit into from
Closed

Possibility to change proxy runtime #13190

wants to merge 1 commit into from

Conversation

pdeszynski
Copy link
Contributor

Added setProxy method for to a page:

page.setProxy('http://my.proxy.com:8080');
 //or
page.setProxy('socks5://someproxy:8080');

Theoretically username and password should work also:

http://username:password@example.com/

There's also a possibility to set proxy using page.openUrl method:

page.openUrl('http://example.com', 'get', {'proxy': 'http://my.proxy.com:8080'});

@vitallium
Copy link
Collaborator

LGTM
/cc @ariya

@zackw
Copy link
Collaborator

zackw commented Dec 21, 2015

Merged, thank you.

Would you consider writing some documentation for this new feature? It goes in gh-pages.

@zackw zackw closed this Dec 21, 2015
@a0s
Copy link

a0s commented Dec 29, 2016

Have any idea how to call setProxy when --webdriver is using (Watir::Browser context)?
For example

browser.driver.execute_script("return page.setProxy('socks5://localhost:5555');")

is not working

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants