Closed
Description
Hi,
trying to enable a proxy with authentication. Proxy string is "username:password@ip:port", but it still triggers a dialog popup, which is a system level popup, so not possible to interact with it with Javascript.
Since you discourage to use selenium wire or other Header injection techniques, what should I do ?
Chrome version is chrome=135.0.7049.42
Here is the code :
browser = Driver(
locale='fr',
uc=True,
user_data_dir=path_to_li_cookies,
headless2=True,
proxy="username:password@ip:port",
agent=UserAgent(browsers=['Chrome', 'Edge', 'Firefox']).random,
block_images=True,
size=f'{random.randint(800, 1921)}, {random.randint(800, 1081)}'
)
Thanks
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
lambdina commentedon Apr 9, 2025
Good to know :
The proxy provider specifies :
Proxies format is IP:Port:Username:Password
And even when setting up the proxy manually on my laptop, I still have the dialog popup with my browser.
mdmintz commentedon Apr 9, 2025
I'm not able to reproduce this.
I also see some discrepancies in your code chunk:
user_data_dir
to what looks like a cookie dir.agent
to a possibly incompatible value.Note that once you set the
user_data_dir
, you can't change theproxy
after that.The
proxy
that you used when initiating theuser_data_dir
must always be used.mkuchuman commentedon Apr 10, 2025
Have the same issue only on mac, on windows work perfect
lectricas commentedon May 24, 2025
Same here, mac m1. 136 chrome version (seems like manifest v2 is removed and extenstions are not working. @mdmintz can you help me please?
lectricas commentedon May 24, 2025
Chrome is up to date
Version 137.0.7151.41 (Official Build) (arm64)
mdmintz commentedon May 24, 2025
There's a situation going on now related to extensions / setting a proxy. See #3771 for details.