Skip to content

Commit 6cc85ab

Browse files
committed
Release v1.3.4
1 parent f45dc7e commit 6cc85ab

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

.vscode/settings.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"python.pythonPath": "/home/user/.cache/pypoetry/virtualenvs/selenium-requests-IaaUwCCb-py3.9/bin/python"
2+
"python.testing.pytestArgs": [
3+
"tests"
4+
],
5+
"python.testing.unittestEnabled": false,
6+
"python.testing.pytestEnabled": true
37
}

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,17 @@ Installation
4646
------------
4747
```pip install selenium-requests```
4848

49+
4950
Remote WebDriver
5051
----------------
51-
When using `webdriver.Remote` it is very likely that the HTTP Proxy Server spawned by `selenium-requests` does not run on the same machine. By default the webdriver tries to access the Proxy Server under `127.0.0.1`. This can be changed by passing the `proxy_host=` argument with the correct IP or hostname to the webdriver.
52+
When using `webdriver.Remote` it is very likely that the HTTP proxy server spawned by `selenium-requests` does not run
53+
on the same machine. By default, the webdriver tries to access the proxy server under `127.0.0.1`. This can be changed
54+
by passing the `proxy_host=` argument with the correct IP or hostname to the webdriver.
5255

5356
```python
5457
driver = seleniumrequests.Remote(
5558
'http://192.168.101.1:4444/wd/hub',
5659
options=chrome_options,
5760
proxy_host='192.168.101.2'
58-
)
59-
61+
)
6062
```

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "selenium-requests"
3-
version = "1.3.3"
3+
version = "1.3.4"
44
description = "Extends Selenium WebDriver classes to include the request function from the Requests library, while doing all the needed cookie and request headers handling."
55
readme = "README.md"
66
authors = ["Chris Braun <[email protected]>"]

seleniumrequests/request.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def get_unused_port():
5050
return port
5151

5252

53-
def get_webdriver_request_headers(webdriver, proxy_host='127.0.0.1'):
53+
def get_webdriver_request_headers(webdriver, proxy_host="127.0.0.1"):
5454
# There's a small chance that the port was taken since the call of get_unused_port(), so make sure we try as often
5555
# as needed
5656
while True:
@@ -140,7 +140,7 @@ def predicate(webdriver):
140140

141141

142142
class RequestsSessionMixin(object):
143-
def __init__(self, *args, proxy_host='127.0.0.1', **kwargs):
143+
def __init__(self, *args, proxy_host="127.0.0.1", **kwargs):
144144
super(RequestsSessionMixin, self).__init__(*args, **kwargs)
145145
self.requests_session = requests.Session()
146146

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name="selenium-requests",
9-
version="1.3.3",
9+
version="1.3.4",
1010
description=(
1111
"Extends Selenium WebDriver classes to include the request function "
1212
"from the Requests library, while doing all the needed cookie and "

0 commit comments

Comments
 (0)