BrowserSteps - BrowserSteps was not always following proxy information

pull/1561/head
dgtlmoon 2 years ago
parent ba76c2a280
commit cf3f3e4497

@ -169,7 +169,18 @@ def construct_blueprint(datastore: ChangeDetectionStore):
if proxy_id:
proxy_url = datastore.proxy_list.get(proxy_id).get('url')
if proxy_url:
# Playwright needs separate username and password values
from urllib.parse import urlparse
parsed = urlparse(proxy_url)
proxy = {'server': proxy_url}
if parsed.username:
proxy['username'] = parsed.username
if parsed.password:
proxy['password'] = parsed.password
print("Browser Steps: UUID {} Using proxy {}".format(uuid, proxy_url))
# Begin the new "Playwright Context" that re-uses the playwright interface

Loading…
Cancel
Save