Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent the "Enhanced ad privacy" pop-up from appearing #2202

Merged
merged 4 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions help_docs/method_summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -1006,8 +1006,6 @@ driver.uc_open_with_tab(url)
driver.uc_open_with_reconnect(url, reconnect_time=None)

driver.uc_click(selector)

############
```

--------
Expand Down
4 changes: 2 additions & 2 deletions help_docs/recorder_mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<img src="https://seleniumbase.github.io/cdn/img/sb_recorder_notification.png" title="SeleniumBase" width="380">

ℹ️ Recorder Mode can be activated from the command-line interface, or from the Recorder Desktop App.
⏺️ Recorder Mode can be activated from the command-line interface or the Recorder Desktop App.

⏺️ To make a new recording from the command-line interface, use ``sbase mkrec``, ``sbase codegen``, or ``sbase record``):
⏺️ To make a new recording from the command-line interface, use ``sbase mkrec``, ``sbase codegen``, or ``sbase record``:

```bash
sbase mkrec TEST_NAME.py --url=URL
Expand Down
2 changes: 1 addition & 1 deletion mkdocs_build/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

regex>=2023.10.3
PyYAML>=6.0.1
pymdown-extensions>=10.3
pymdown-extensions>=10.3.1
pipdeptree>=2.13.0
python-dateutil>=2.8.2
Markdown==3.5
Expand Down
2 changes: 1 addition & 1 deletion seleniumbase/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# seleniumbase package
__version__ = "4.20.4"
__version__ = "4.20.5"
28 changes: 20 additions & 8 deletions seleniumbase/core/browser_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,10 +1030,16 @@ def _set_chrome_options(
if headless or headless2 or is_using_uc(undetectable, browser_name):
chrome_options.add_argument("--disable-renderer-backgrounding")
chrome_options.add_argument("--disable-backgrounding-occluded-windows")
chrome_options.add_argument(
'--disable-features=OptimizationHintsFetching,'
'OptimizationTargetPrediction'
)
if user_data_dir:
chrome_options.add_argument(
"--disable-features=OptimizationHintsFetching,"
"OptimizationTargetPrediction,PrivacySandboxSettings4"
)
else:
chrome_options.add_argument(
"--disable-features=OptimizationHintsFetching,"
"OptimizationTargetPrediction"
)
if (
is_using_uc(undetectable, browser_name)
and (
Expand Down Expand Up @@ -2458,10 +2464,16 @@ def get_local_driver(
edge_options.add_argument(
"--disable-autofill-keyboard-accessory-view[8]"
)
edge_options.add_argument(
'--disable-features=OptimizationHintsFetching,'
'OptimizationTargetPrediction'
)
if user_data_dir:
edge_options.add_argument(
"--disable-features=OptimizationHintsFetching,"
"OptimizationTargetPrediction,PrivacySandboxSettings4"
)
else:
edge_options.add_argument(
"--disable-features=OptimizationHintsFetching,"
"OptimizationTargetPrediction"
)
edge_options.add_argument("--disable-browser-side-navigation")
edge_options.add_argument("--disable-translate")
if not enable_ws:
Expand Down