Skip to content

Commit

Permalink
Add wait after proxy plugin install and change use_subprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
coskundeniz committed Oct 9, 2024
1 parent 29df1ce commit 6ae629f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ def create_webdriver(
host, port = proxy.split("@")[1].split(":")

install_plugin(chrome_options, host, int(port), username, password, plugin_folder_name)
sleep(2)

else:
chrome_options.add_argument(f"--proxy-server={proxy}")
Expand All @@ -484,6 +485,7 @@ def create_webdriver(
),
options=chrome_options,
user_multi_procs=multi_procs_enabled,
use_subprocess=False,
)

accuracy = 95
Expand Down Expand Up @@ -514,6 +516,7 @@ def create_webdriver(
),
options=chrome_options,
user_multi_procs=multi_procs_enabled,
use_subprocess=False,
)

if config.webdriver.window_size:
Expand Down

0 comments on commit 6ae629f

Please sign in to comment.