Skip to content

Commit

Permalink
Fixed google-colab
Browse files Browse the repository at this point in the history
  • Loading branch information
kaliiiiiiiiii committed Jan 13, 2023
1 parent 0f19ba8 commit 1dd2951
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/selenium_profiles/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ def start(self, profile: dict, uc_driver: bool = False):
if self.profile["options"]["browser"]["sandbox"] is True:
warnings.warn('Google-colab doesn\'t work with sandbox enabled yet, disabling..')
else:
self.profile["options"]["browser"].update({"sandbox":True})
self.profile["options"]["browser"].update({"sandbox":False})
else:
self.profile["options"].update({"browser":{"sandbox":True}})
self.profile["options"].update({"browser":{"sandbox":False}})
else:
# noinspection PyTypeChecker
self.profile.update({"options":{"browser":{"sandbox":True}}})
self.profile.update({"options":{"browser":{"sandbox":False}}})

if uc_driver:
try:
Expand Down

0 comments on commit 1dd2951

Please sign in to comment.