Skip to content

Commit 216b593

Browse files
committed
Update the SOCKS4 and SOCKS5 proxy docs
1 parent 5c807a7 commit 216b593

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,18 +569,26 @@ pytest test_suite.py --alluredir=allure_results
569569
570570
<h3><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32" /> Using a Proxy Server:</h3>
571571
572-
If you wish to use a proxy server for your browser tests (Chrome and Firefox only), you can add ``--proxy=IP_ADDRESS:PORT`` as an argument on the command-line.
572+
If you wish to use a proxy server for your browser tests (Chromium or Firefox), you can add ``--proxy=IP_ADDRESS:PORT`` as an argument on the command line.
573573
574574
```bash
575575
pytest proxy_test.py --proxy=IP_ADDRESS:PORT
576576
```
577577
578-
If the proxy server that you wish to use requires authentication, you can do the following (Chrome only):
578+
If the proxy server that you wish to use requires authentication, you can do the following (Chromium only):
579579
580580
```bash
581581
pytest proxy_test.py --proxy=USERNAME:PASSWORD@IP_ADDRESS:PORT
582582
```
583583
584+
SeleniumBase also supports SOCKS4 and SOCKS5 proxies:
585+
586+
```bash
587+
pytest proxy_test.py --proxy="socks4://IP_ADDRESS:PORT"
588+
589+
pytest proxy_test.py --proxy="socks5://IP_ADDRESS:PORT"
590+
```
591+
584592
To make things easier, you can add your frequently-used proxies to PROXY_LIST in [proxy_list.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/proxy_list.py), and then use ``--proxy=KEY_FROM_PROXY_LIST`` to use the IP_ADDRESS:PORT of that key.
585593
586594
```bash

help_docs/customizing_test_runs.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,18 +338,26 @@ nosetests test_suite.py --report
338338

339339
<h3><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="28" /> Using a Proxy Server:</h3>
340340

341-
If you wish to use a proxy server for your browser tests (Chrome and Firefox only), you can add ``--proxy=IP_ADDRESS:PORT`` as an argument on the command line.
341+
If you wish to use a proxy server for your browser tests (Chromium or Firefox), you can add ``--proxy=IP_ADDRESS:PORT`` as an argument on the command line.
342342

343343
```bash
344344
pytest proxy_test.py --proxy=IP_ADDRESS:PORT
345345
```
346346

347-
If the proxy server that you wish to use requires authentication, you can do the following (Chrome only):
347+
If the proxy server that you wish to use requires authentication, you can do the following (Chromium only):
348348

349349
```bash
350350
pytest proxy_test.py --proxy=USERNAME:PASSWORD@IP_ADDRESS:PORT
351351
```
352352

353+
SeleniumBase also supports SOCKS4 and SOCKS5 proxies:
354+
355+
```bash
356+
pytest proxy_test.py --proxy="socks4://IP_ADDRESS:PORT"
357+
358+
pytest proxy_test.py --proxy="socks5://IP_ADDRESS:PORT"
359+
```
360+
353361
To make things easier, you can add your frequently-used proxies to PROXY_LIST in [proxy_list.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/proxy_list.py), and then use ``--proxy=KEY_FROM_PROXY_LIST`` to use the IP_ADDRESS:PORT of that key.
354362

355363
```bash

0 commit comments

Comments
 (0)