Skip to content

Commit

Permalink
fix for #28
Browse files Browse the repository at this point in the history
  • Loading branch information
kaliiiiiiiiii committed Mar 16, 2023
1 parent 05ee138 commit 487e32a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
selenium_profiles==2.2.5.2
requests==2.28.2
selenium==4.8.2 # 4.1.0 for touch_actions
setuptools==67.3.3
setuptools==67.4.0
undetected-chromedriver==3.4.6
trio
pillow
Expand Down
3 changes: 2 additions & 1 deletion src/selenium_profiles/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def start(self, profile: dict, uc_driver: bool = False, executable_path:str = No
import os
from selenium_profiles.utils.colab_utils import patch_uc
os.system('pip install undetected-chromedriver')
patch_uc()
if is_colab():
patch_uc()
# noinspection PyUnboundLocalVariable
self.options = uc.ChromeOptions() # selenium.webdriver options, https://peter.sh/experiments/chromium-command-line-switches/
else:
Expand Down

0 comments on commit 487e32a

Please sign in to comment.