Skip to content

Commit 4abc2ae

Browse files
ENH: Adjusting the treatment for the active page only for undetected_chrome
1 parent 152d689 commit 4abc2ae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

botcity/web/bot.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,11 @@ def _others_configurations(self):
356356
https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/260#issuecomment-901276808.
357357
It will be a temporary solution.
358358
"""
359-
try:
360-
self.driver.get("about:blank")
361-
except Exception:
362-
pass
359+
if self.browser == Browser.UNDETECTED_CHROME:
360+
try:
361+
self.driver.get("about:blank")
362+
except Exception:
363+
pass
363364

364365
params = {
365366
"behavior": "allow",

0 commit comments

Comments
 (0)